Method: Aws::CloudFront::Types::CacheBehavior#path_pattern
- Defined in:
- lib/aws-sdk-cloudfront/types.rb
#path_pattern ⇒ String
The pattern (for example, ‘images/*.jpg`) that specifies which requests to apply the behavior to. When CloudFront receives a viewer request, the requested path is compared with path patterns in the order in which cache behaviors are listed in the distribution.
<note markdown=“1”> You can optionally include a slash (‘/`) at the beginning of the path pattern. For example, `/images/*.jpg`. CloudFront behavior is the same with or without the leading `/`.
</note>
The path pattern for the default cache behavior is ‘*` and cannot be changed. If the request for an object does not match the path pattern for any cache behaviors, CloudFront applies the behavior in the default cache behavior.
For more information, see [Path Pattern] in the Amazon CloudFront Developer Guide.
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 |