Method: Aws::CloudFront::Types::CacheBehavior#allowed_methods
- Defined in:
- lib/aws-sdk-cloudfront/types.rb
#allowed_methods ⇒ Types::AllowedMethods
A complex type that controls which HTTP methods CloudFront processes and forwards to your Amazon S3 bucket or your custom origin. There are three choices:
-
CloudFront forwards only ‘GET` and `HEAD` requests.
-
CloudFront forwards only ‘GET`, `HEAD`, and `OPTIONS` requests.
-
CloudFront forwards ‘GET, HEAD, OPTIONS, PUT, PATCH, POST`, and `DELETE` requests.
If you pick the third choice, you may need to restrict access to your Amazon S3 bucket or to your custom origin so users can’t perform operations that you don’t want them to. For example, you might not want users to have permissions to delete objects from your origin.
889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 |
# File 'lib/aws-sdk-cloudfront/types.rb', line 889 class CacheBehavior < Struct.new( :path_pattern, :target_origin_id, :trusted_signers, :trusted_key_groups, :viewer_protocol_policy, :allowed_methods, :smooth_streaming, :compress, :lambda_function_associations, :function_associations, :field_level_encryption_id, :realtime_log_config_arn, :cache_policy_id, :origin_request_policy_id, :response_headers_policy_id, :grpc_config, :forwarded_values, :min_ttl, :default_ttl, :max_ttl) SENSITIVE = [] include Aws::Structure end |