Class: Aws::CloudFront::Types::CacheBehaviors
- Inherits:
-
Struct
- Object
- Struct
- Aws::CloudFront::Types::CacheBehaviors
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-cloudfront/types.rb
Overview
Note:
When making an API call, you may pass CacheBehaviors data as a hash:
{
quantity: 1, # required
items: [
{
path_pattern: "string", # required
target_origin_id: "string", # required
trusted_signers: {
enabled: false, # required
quantity: 1, # required
items: ["string"],
},
trusted_key_groups: {
enabled: false, # required
quantity: 1, # required
items: ["string"],
},
viewer_protocol_policy: "allow-all", # required, accepts allow-all, https-only, redirect-to-https
allowed_methods: {
quantity: 1, # required
items: ["GET"], # required, accepts GET, HEAD, POST, PUT, PATCH, OPTIONS, DELETE
cached_methods: {
quantity: 1, # required
items: ["GET"], # required, accepts GET, HEAD, POST, PUT, PATCH, OPTIONS, DELETE
},
},
smooth_streaming: false,
compress: false,
lambda_function_associations: {
quantity: 1, # required
items: [
{
lambda_function_arn: "LambdaFunctionARN", # required
event_type: "viewer-request", # required, accepts viewer-request, viewer-response, origin-request, origin-response
include_body: false,
},
],
},
function_associations: {
quantity: 1, # required
items: [
{
function_arn: "FunctionARN", # required
event_type: "viewer-request", # required, accepts viewer-request, viewer-response, origin-request, origin-response
},
],
},
field_level_encryption_id: "string",
realtime_log_config_arn: "string",
cache_policy_id: "string",
origin_request_policy_id: "string",
forwarded_values: {
query_string: false, # required
cookies: { # required
forward: "none", # required, accepts none, whitelist, all
whitelisted_names: {
quantity: 1, # required
items: ["string"],
},
},
headers: {
quantity: 1, # required
items: ["string"],
},
query_string_cache_keys: {
quantity: 1, # required
items: ["string"],
},
},
min_ttl: 1,
default_ttl: 1,
max_ttl: 1,
},
],
}
A complex type that contains zero or more ‘CacheBehavior` elements.
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#items ⇒ Array<Types::CacheBehavior>
Optional: A complex type that contains cache behaviors for this distribution.
-
#quantity ⇒ Integer
The number of cache behaviors for this distribution.
Instance Attribute Details
#items ⇒ Array<Types::CacheBehavior>
Optional: A complex type that contains cache behaviors for this distribution. If ‘Quantity` is `0`, you can omit `Items`.
778 779 780 781 782 783 |
# File 'lib/aws-sdk-cloudfront/types.rb', line 778 class CacheBehaviors < Struct.new( :quantity, :items) SENSITIVE = [] include Aws::Structure end |
#quantity ⇒ Integer
The number of cache behaviors for this distribution.
778 779 780 781 782 783 |
# File 'lib/aws-sdk-cloudfront/types.rb', line 778 class CacheBehaviors < Struct.new( :quantity, :items) SENSITIVE = [] include Aws::Structure end |