lib/aws-sdk-cloudfront/client.rb in aws-sdk-cloudfront-1.34.0 vs lib/aws-sdk-cloudfront/client.rb in aws-sdk-cloudfront-1.35.0

- old
+ new

@@ -310,10 +310,117 @@ super end # @!group API Operations + # Creates a cache policy. + # + # After you create a cache policy, you can attach it to one or more + # cache behaviors. When it’s attached to a cache behavior, the cache + # policy determines the following: + # + # * The values that CloudFront includes in the *cache key*. These values + # can include HTTP headers, cookies, and URL query strings. CloudFront + # uses the cache key to find an object in its cache that it can return + # to the viewer. + # + # * The default, minimum, and maximum time to live (TTL) values that you + # want objects to stay in the CloudFront cache. + # + # The headers, cookies, and query strings that are included in the cache + # key are automatically included in requests that CloudFront sends to + # the origin. CloudFront sends a request when it can’t find an object in + # its cache that matches the request’s cache key. If you want to send + # values to the origin but *not* include them in the cache key, use + # `CreateOriginRequestPolicy`. + # + # For more information about cache policies, see [Controlling the cache + # key][1] in the *Amazon CloudFront Developer Guide*. + # + # + # + # [1]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html + # + # @option params [required, Types::CachePolicyConfig] :cache_policy_config + # A cache policy configuration. + # + # @return [Types::CreateCachePolicyResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods: + # + # * {Types::CreateCachePolicyResult#cache_policy #cache_policy} => Types::CachePolicy + # * {Types::CreateCachePolicyResult#location #location} => String + # * {Types::CreateCachePolicyResult#etag #etag} => String + # + # @example Request syntax with placeholder values + # + # resp = client.create_cache_policy({ + # cache_policy_config: { # required + # comment: "string", + # name: "string", # required + # default_ttl: 1, + # max_ttl: 1, + # min_ttl: 1, # required + # parameters_in_cache_key_and_forwarded_to_origin: { + # enable_accept_encoding_gzip: false, # required + # headers_config: { # required + # header_behavior: "none", # required, accepts none, whitelist + # headers: { + # quantity: 1, # required + # items: ["string"], + # }, + # }, + # cookies_config: { # required + # cookie_behavior: "none", # required, accepts none, whitelist, allExcept, all + # cookies: { + # quantity: 1, # required + # items: ["string"], + # }, + # }, + # query_strings_config: { # required + # query_string_behavior: "none", # required, accepts none, whitelist, allExcept, all + # query_strings: { + # quantity: 1, # required + # items: ["string"], + # }, + # }, + # }, + # }, + # }) + # + # @example Response structure + # + # resp.cache_policy.id #=> String + # resp.cache_policy.last_modified_time #=> Time + # resp.cache_policy.cache_policy_config.comment #=> String + # resp.cache_policy.cache_policy_config.name #=> String + # resp.cache_policy.cache_policy_config.default_ttl #=> Integer + # resp.cache_policy.cache_policy_config.max_ttl #=> Integer + # resp.cache_policy.cache_policy_config.min_ttl #=> Integer + # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.enable_accept_encoding_gzip #=> Boolean + # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.headers_config.header_behavior #=> String, one of "none", "whitelist" + # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.headers_config.headers.quantity #=> Integer + # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.headers_config.headers.items #=> Array + # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.headers_config.headers.items[0] #=> String + # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.cookies_config.cookie_behavior #=> String, one of "none", "whitelist", "allExcept", "all" + # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.cookies_config.cookies.quantity #=> Integer + # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.cookies_config.cookies.items #=> Array + # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.cookies_config.cookies.items[0] #=> String + # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.query_strings_config.query_string_behavior #=> String, one of "none", "whitelist", "allExcept", "all" + # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.query_strings_config.query_strings.quantity #=> Integer + # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.query_strings_config.query_strings.items #=> Array + # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.query_strings_config.query_strings.items[0] #=> String + # resp.location #=> String + # resp.etag #=> String + # + # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateCachePolicy2020_05_31 AWS API Documentation + # + # @overload create_cache_policy(params = {}) + # @param [Hash] params ({}) + def create_cache_policy(params = {}, options = {}) + req = build_request(:create_cache_policy, params) + req.send_request(options) + end + # Creates a new origin access identity. If you're using Amazon S3 for # your origin, you can use an origin access identity to require users to # access your content using a CloudFront URL instead of the Amazon S3 # URL. For more information about how to use origin access identities, # see [Serving Private Content through CloudFront][1] in the *Amazon @@ -348,11 +455,11 @@ # resp.cloud_front_origin_access_identity.cloud_front_origin_access_identity_config.caller_reference #=> String # resp.cloud_front_origin_access_identity.cloud_front_origin_access_identity_config.comment #=> String # resp.location #=> String # resp.etag #=> String # - # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/CreateCloudFrontOriginAccessIdentity2019_03_26 AWS API Documentation + # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateCloudFrontOriginAccessIdentity2020_05_31 AWS API Documentation # # @overload create_cloud_front_origin_access_identity(params = {}) # @param [Hash] params ({}) def create_cloud_front_origin_access_identity(params = {}, options = {}) req = build_request(:create_cloud_front_origin_access_identity, params) @@ -455,46 +562,25 @@ # }, # ], # }, # default_cache_behavior: { # required # target_origin_id: "string", # required - # forwarded_values: { # required - # 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"], - # }, - # }, # trusted_signers: { # required # enabled: false, # required # quantity: 1, # required # items: ["string"], # }, # viewer_protocol_policy: "allow-all", # required, accepts allow-all, https-only, redirect-to-https - # min_ttl: 1, # required # 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, - # default_ttl: 1, - # max_ttl: 1, # compress: false, # lambda_function_associations: { # quantity: 1, # required # items: [ # { @@ -503,53 +589,55 @@ # include_body: false, # }, # ], # }, # field_level_encryption_id: "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, # }, # cache_behaviors: { # quantity: 1, # required # items: [ # { # path_pattern: "string", # required # target_origin_id: "string", # required - # forwarded_values: { # required - # 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"], - # }, - # }, # trusted_signers: { # required # enabled: false, # required # quantity: 1, # required # items: ["string"], # }, # viewer_protocol_policy: "allow-all", # required, accepts allow-all, https-only, redirect-to-https - # min_ttl: 1, # required # 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, - # default_ttl: 1, - # max_ttl: 1, # compress: false, # lambda_function_associations: { # quantity: 1, # required # items: [ # { @@ -558,10 +646,33 @@ # include_body: false, # }, # ], # }, # field_level_encryption_id: "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, # }, # ], # }, # custom_error_responses: { # quantity: 1, # required @@ -653,80 +764,84 @@ # resp.distribution.distribution_config.origin_groups.items[0].failover_criteria.status_codes.items[0] #=> Integer # resp.distribution.distribution_config.origin_groups.items[0].members.quantity #=> Integer # resp.distribution.distribution_config.origin_groups.items[0].members.items #=> Array # resp.distribution.distribution_config.origin_groups.items[0].members.items[0].origin_id #=> String # resp.distribution.distribution_config.default_cache_behavior.target_origin_id #=> String - # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string #=> Boolean - # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all" - # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.quantity #=> Integer - # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.items #=> Array - # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.items[0] #=> String - # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.headers.quantity #=> Integer - # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.headers.items #=> Array - # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.headers.items[0] #=> String - # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string_cache_keys.quantity #=> Integer - # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string_cache_keys.items #=> Array - # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string_cache_keys.items[0] #=> String # resp.distribution.distribution_config.default_cache_behavior.trusted_signers.enabled #=> Boolean # resp.distribution.distribution_config.default_cache_behavior.trusted_signers.quantity #=> Integer # resp.distribution.distribution_config.default_cache_behavior.trusted_signers.items #=> Array # resp.distribution.distribution_config.default_cache_behavior.trusted_signers.items[0] #=> String # resp.distribution.distribution_config.default_cache_behavior.viewer_protocol_policy #=> String, one of "allow-all", "https-only", "redirect-to-https" - # resp.distribution.distribution_config.default_cache_behavior.min_ttl #=> Integer # resp.distribution.distribution_config.default_cache_behavior.allowed_methods.quantity #=> Integer # resp.distribution.distribution_config.default_cache_behavior.allowed_methods.items #=> Array # resp.distribution.distribution_config.default_cache_behavior.allowed_methods.items[0] #=> String, one of "GET", "HEAD", "POST", "PUT", "PATCH", "OPTIONS", "DELETE" # resp.distribution.distribution_config.default_cache_behavior.allowed_methods.cached_methods.quantity #=> Integer # resp.distribution.distribution_config.default_cache_behavior.allowed_methods.cached_methods.items #=> Array # resp.distribution.distribution_config.default_cache_behavior.allowed_methods.cached_methods.items[0] #=> String, one of "GET", "HEAD", "POST", "PUT", "PATCH", "OPTIONS", "DELETE" # resp.distribution.distribution_config.default_cache_behavior.smooth_streaming #=> Boolean - # resp.distribution.distribution_config.default_cache_behavior.default_ttl #=> Integer - # resp.distribution.distribution_config.default_cache_behavior.max_ttl #=> Integer # resp.distribution.distribution_config.default_cache_behavior.compress #=> Boolean # resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.quantity #=> Integer # resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.items #=> Array # resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.items[0].lambda_function_arn #=> String # resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response" # resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.items[0].include_body #=> Boolean # resp.distribution.distribution_config.default_cache_behavior.field_level_encryption_id #=> String + # resp.distribution.distribution_config.default_cache_behavior.cache_policy_id #=> String + # resp.distribution.distribution_config.default_cache_behavior.origin_request_policy_id #=> String + # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string #=> Boolean + # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all" + # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.quantity #=> Integer + # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.items #=> Array + # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.items[0] #=> String + # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.headers.quantity #=> Integer + # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.headers.items #=> Array + # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.headers.items[0] #=> String + # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string_cache_keys.quantity #=> Integer + # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string_cache_keys.items #=> Array + # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string_cache_keys.items[0] #=> String + # resp.distribution.distribution_config.default_cache_behavior.min_ttl #=> Integer + # resp.distribution.distribution_config.default_cache_behavior.default_ttl #=> Integer + # resp.distribution.distribution_config.default_cache_behavior.max_ttl #=> Integer # resp.distribution.distribution_config.cache_behaviors.quantity #=> Integer # resp.distribution.distribution_config.cache_behaviors.items #=> Array # resp.distribution.distribution_config.cache_behaviors.items[0].path_pattern #=> String # resp.distribution.distribution_config.cache_behaviors.items[0].target_origin_id #=> String - # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string #=> Boolean - # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all" - # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.quantity #=> Integer - # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.items #=> Array - # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.items[0] #=> String - # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.headers.quantity #=> Integer - # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.headers.items #=> Array - # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.headers.items[0] #=> String - # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string_cache_keys.quantity #=> Integer - # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string_cache_keys.items #=> Array - # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string_cache_keys.items[0] #=> String # resp.distribution.distribution_config.cache_behaviors.items[0].trusted_signers.enabled #=> Boolean # resp.distribution.distribution_config.cache_behaviors.items[0].trusted_signers.quantity #=> Integer # resp.distribution.distribution_config.cache_behaviors.items[0].trusted_signers.items #=> Array # resp.distribution.distribution_config.cache_behaviors.items[0].trusted_signers.items[0] #=> String # resp.distribution.distribution_config.cache_behaviors.items[0].viewer_protocol_policy #=> String, one of "allow-all", "https-only", "redirect-to-https" - # resp.distribution.distribution_config.cache_behaviors.items[0].min_ttl #=> Integer # resp.distribution.distribution_config.cache_behaviors.items[0].allowed_methods.quantity #=> Integer # resp.distribution.distribution_config.cache_behaviors.items[0].allowed_methods.items #=> Array # resp.distribution.distribution_config.cache_behaviors.items[0].allowed_methods.items[0] #=> String, one of "GET", "HEAD", "POST", "PUT", "PATCH", "OPTIONS", "DELETE" # resp.distribution.distribution_config.cache_behaviors.items[0].allowed_methods.cached_methods.quantity #=> Integer # resp.distribution.distribution_config.cache_behaviors.items[0].allowed_methods.cached_methods.items #=> Array # resp.distribution.distribution_config.cache_behaviors.items[0].allowed_methods.cached_methods.items[0] #=> String, one of "GET", "HEAD", "POST", "PUT", "PATCH", "OPTIONS", "DELETE" # resp.distribution.distribution_config.cache_behaviors.items[0].smooth_streaming #=> Boolean - # resp.distribution.distribution_config.cache_behaviors.items[0].default_ttl #=> Integer - # resp.distribution.distribution_config.cache_behaviors.items[0].max_ttl #=> Integer # resp.distribution.distribution_config.cache_behaviors.items[0].compress #=> Boolean # resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.quantity #=> Integer # resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.items #=> Array # resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.items[0].lambda_function_arn #=> String # resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response" # resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.items[0].include_body #=> Boolean # resp.distribution.distribution_config.cache_behaviors.items[0].field_level_encryption_id #=> String + # resp.distribution.distribution_config.cache_behaviors.items[0].cache_policy_id #=> String + # resp.distribution.distribution_config.cache_behaviors.items[0].origin_request_policy_id #=> String + # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string #=> Boolean + # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all" + # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.quantity #=> Integer + # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.items #=> Array + # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.items[0] #=> String + # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.headers.quantity #=> Integer + # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.headers.items #=> Array + # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.headers.items[0] #=> String + # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string_cache_keys.quantity #=> Integer + # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string_cache_keys.items #=> Array + # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string_cache_keys.items[0] #=> String + # resp.distribution.distribution_config.cache_behaviors.items[0].min_ttl #=> Integer + # resp.distribution.distribution_config.cache_behaviors.items[0].default_ttl #=> Integer + # resp.distribution.distribution_config.cache_behaviors.items[0].max_ttl #=> Integer # resp.distribution.distribution_config.custom_error_responses.quantity #=> Integer # resp.distribution.distribution_config.custom_error_responses.items #=> Array # resp.distribution.distribution_config.custom_error_responses.items[0].error_code #=> Integer # resp.distribution.distribution_config.custom_error_responses.items[0].response_page_path #=> String # resp.distribution.distribution_config.custom_error_responses.items[0].response_code #=> String @@ -756,11 +871,11 @@ # resp.distribution.alias_icp_recordals[0].cname #=> String # resp.distribution.alias_icp_recordals[0].icp_recordal_status #=> String, one of "APPROVED", "SUSPENDED", "PENDING" # resp.location #=> String # resp.etag #=> String # - # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/CreateDistribution2019_03_26 AWS API Documentation + # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateDistribution2020_05_31 AWS API Documentation # # @overload create_distribution(params = {}) # @param [Hash] params ({}) def create_distribution(params = {}, options = {}) req = build_request(:create_distribution, params) @@ -846,46 +961,25 @@ # }, # ], # }, # default_cache_behavior: { # required # target_origin_id: "string", # required - # forwarded_values: { # required - # 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"], - # }, - # }, # trusted_signers: { # required # enabled: false, # required # quantity: 1, # required # items: ["string"], # }, # viewer_protocol_policy: "allow-all", # required, accepts allow-all, https-only, redirect-to-https - # min_ttl: 1, # required # 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, - # default_ttl: 1, - # max_ttl: 1, # compress: false, # lambda_function_associations: { # quantity: 1, # required # items: [ # { @@ -894,53 +988,55 @@ # include_body: false, # }, # ], # }, # field_level_encryption_id: "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, # }, # cache_behaviors: { # quantity: 1, # required # items: [ # { # path_pattern: "string", # required # target_origin_id: "string", # required - # forwarded_values: { # required - # 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"], - # }, - # }, # trusted_signers: { # required # enabled: false, # required # quantity: 1, # required # items: ["string"], # }, # viewer_protocol_policy: "allow-all", # required, accepts allow-all, https-only, redirect-to-https - # min_ttl: 1, # required # 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, - # default_ttl: 1, - # max_ttl: 1, # compress: false, # lambda_function_associations: { # quantity: 1, # required # items: [ # { @@ -949,10 +1045,33 @@ # include_body: false, # }, # ], # }, # field_level_encryption_id: "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, # }, # ], # }, # custom_error_responses: { # quantity: 1, # required @@ -1053,80 +1172,84 @@ # resp.distribution.distribution_config.origin_groups.items[0].failover_criteria.status_codes.items[0] #=> Integer # resp.distribution.distribution_config.origin_groups.items[0].members.quantity #=> Integer # resp.distribution.distribution_config.origin_groups.items[0].members.items #=> Array # resp.distribution.distribution_config.origin_groups.items[0].members.items[0].origin_id #=> String # resp.distribution.distribution_config.default_cache_behavior.target_origin_id #=> String - # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string #=> Boolean - # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all" - # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.quantity #=> Integer - # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.items #=> Array - # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.items[0] #=> String - # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.headers.quantity #=> Integer - # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.headers.items #=> Array - # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.headers.items[0] #=> String - # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string_cache_keys.quantity #=> Integer - # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string_cache_keys.items #=> Array - # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string_cache_keys.items[0] #=> String # resp.distribution.distribution_config.default_cache_behavior.trusted_signers.enabled #=> Boolean # resp.distribution.distribution_config.default_cache_behavior.trusted_signers.quantity #=> Integer # resp.distribution.distribution_config.default_cache_behavior.trusted_signers.items #=> Array # resp.distribution.distribution_config.default_cache_behavior.trusted_signers.items[0] #=> String # resp.distribution.distribution_config.default_cache_behavior.viewer_protocol_policy #=> String, one of "allow-all", "https-only", "redirect-to-https" - # resp.distribution.distribution_config.default_cache_behavior.min_ttl #=> Integer # resp.distribution.distribution_config.default_cache_behavior.allowed_methods.quantity #=> Integer # resp.distribution.distribution_config.default_cache_behavior.allowed_methods.items #=> Array # resp.distribution.distribution_config.default_cache_behavior.allowed_methods.items[0] #=> String, one of "GET", "HEAD", "POST", "PUT", "PATCH", "OPTIONS", "DELETE" # resp.distribution.distribution_config.default_cache_behavior.allowed_methods.cached_methods.quantity #=> Integer # resp.distribution.distribution_config.default_cache_behavior.allowed_methods.cached_methods.items #=> Array # resp.distribution.distribution_config.default_cache_behavior.allowed_methods.cached_methods.items[0] #=> String, one of "GET", "HEAD", "POST", "PUT", "PATCH", "OPTIONS", "DELETE" # resp.distribution.distribution_config.default_cache_behavior.smooth_streaming #=> Boolean - # resp.distribution.distribution_config.default_cache_behavior.default_ttl #=> Integer - # resp.distribution.distribution_config.default_cache_behavior.max_ttl #=> Integer # resp.distribution.distribution_config.default_cache_behavior.compress #=> Boolean # resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.quantity #=> Integer # resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.items #=> Array # resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.items[0].lambda_function_arn #=> String # resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response" # resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.items[0].include_body #=> Boolean # resp.distribution.distribution_config.default_cache_behavior.field_level_encryption_id #=> String + # resp.distribution.distribution_config.default_cache_behavior.cache_policy_id #=> String + # resp.distribution.distribution_config.default_cache_behavior.origin_request_policy_id #=> String + # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string #=> Boolean + # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all" + # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.quantity #=> Integer + # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.items #=> Array + # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.items[0] #=> String + # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.headers.quantity #=> Integer + # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.headers.items #=> Array + # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.headers.items[0] #=> String + # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string_cache_keys.quantity #=> Integer + # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string_cache_keys.items #=> Array + # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string_cache_keys.items[0] #=> String + # resp.distribution.distribution_config.default_cache_behavior.min_ttl #=> Integer + # resp.distribution.distribution_config.default_cache_behavior.default_ttl #=> Integer + # resp.distribution.distribution_config.default_cache_behavior.max_ttl #=> Integer # resp.distribution.distribution_config.cache_behaviors.quantity #=> Integer # resp.distribution.distribution_config.cache_behaviors.items #=> Array # resp.distribution.distribution_config.cache_behaviors.items[0].path_pattern #=> String # resp.distribution.distribution_config.cache_behaviors.items[0].target_origin_id #=> String - # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string #=> Boolean - # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all" - # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.quantity #=> Integer - # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.items #=> Array - # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.items[0] #=> String - # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.headers.quantity #=> Integer - # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.headers.items #=> Array - # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.headers.items[0] #=> String - # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string_cache_keys.quantity #=> Integer - # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string_cache_keys.items #=> Array - # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string_cache_keys.items[0] #=> String # resp.distribution.distribution_config.cache_behaviors.items[0].trusted_signers.enabled #=> Boolean # resp.distribution.distribution_config.cache_behaviors.items[0].trusted_signers.quantity #=> Integer # resp.distribution.distribution_config.cache_behaviors.items[0].trusted_signers.items #=> Array # resp.distribution.distribution_config.cache_behaviors.items[0].trusted_signers.items[0] #=> String # resp.distribution.distribution_config.cache_behaviors.items[0].viewer_protocol_policy #=> String, one of "allow-all", "https-only", "redirect-to-https" - # resp.distribution.distribution_config.cache_behaviors.items[0].min_ttl #=> Integer # resp.distribution.distribution_config.cache_behaviors.items[0].allowed_methods.quantity #=> Integer # resp.distribution.distribution_config.cache_behaviors.items[0].allowed_methods.items #=> Array # resp.distribution.distribution_config.cache_behaviors.items[0].allowed_methods.items[0] #=> String, one of "GET", "HEAD", "POST", "PUT", "PATCH", "OPTIONS", "DELETE" # resp.distribution.distribution_config.cache_behaviors.items[0].allowed_methods.cached_methods.quantity #=> Integer # resp.distribution.distribution_config.cache_behaviors.items[0].allowed_methods.cached_methods.items #=> Array # resp.distribution.distribution_config.cache_behaviors.items[0].allowed_methods.cached_methods.items[0] #=> String, one of "GET", "HEAD", "POST", "PUT", "PATCH", "OPTIONS", "DELETE" # resp.distribution.distribution_config.cache_behaviors.items[0].smooth_streaming #=> Boolean - # resp.distribution.distribution_config.cache_behaviors.items[0].default_ttl #=> Integer - # resp.distribution.distribution_config.cache_behaviors.items[0].max_ttl #=> Integer # resp.distribution.distribution_config.cache_behaviors.items[0].compress #=> Boolean # resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.quantity #=> Integer # resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.items #=> Array # resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.items[0].lambda_function_arn #=> String # resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response" # resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.items[0].include_body #=> Boolean # resp.distribution.distribution_config.cache_behaviors.items[0].field_level_encryption_id #=> String + # resp.distribution.distribution_config.cache_behaviors.items[0].cache_policy_id #=> String + # resp.distribution.distribution_config.cache_behaviors.items[0].origin_request_policy_id #=> String + # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string #=> Boolean + # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all" + # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.quantity #=> Integer + # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.items #=> Array + # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.items[0] #=> String + # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.headers.quantity #=> Integer + # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.headers.items #=> Array + # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.headers.items[0] #=> String + # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string_cache_keys.quantity #=> Integer + # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string_cache_keys.items #=> Array + # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string_cache_keys.items[0] #=> String + # resp.distribution.distribution_config.cache_behaviors.items[0].min_ttl #=> Integer + # resp.distribution.distribution_config.cache_behaviors.items[0].default_ttl #=> Integer + # resp.distribution.distribution_config.cache_behaviors.items[0].max_ttl #=> Integer # resp.distribution.distribution_config.custom_error_responses.quantity #=> Integer # resp.distribution.distribution_config.custom_error_responses.items #=> Array # resp.distribution.distribution_config.custom_error_responses.items[0].error_code #=> Integer # resp.distribution.distribution_config.custom_error_responses.items[0].response_page_path #=> String # resp.distribution.distribution_config.custom_error_responses.items[0].response_code #=> String @@ -1156,11 +1279,11 @@ # resp.distribution.alias_icp_recordals[0].cname #=> String # resp.distribution.alias_icp_recordals[0].icp_recordal_status #=> String, one of "APPROVED", "SUSPENDED", "PENDING" # resp.location #=> String # resp.etag #=> String # - # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/CreateDistributionWithTags2019_03_26 AWS API Documentation + # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateDistributionWithTags2020_05_31 AWS API Documentation # # @overload create_distribution_with_tags(params = {}) # @param [Hash] params ({}) def create_distribution_with_tags(params = {}, options = {}) req = build_request(:create_distribution_with_tags, params) @@ -1230,11 +1353,11 @@ # resp.field_level_encryption.field_level_encryption_config.content_type_profile_config.content_type_profiles.items[0].profile_id #=> String # resp.field_level_encryption.field_level_encryption_config.content_type_profile_config.content_type_profiles.items[0].content_type #=> String # resp.location #=> String # resp.etag #=> String # - # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/CreateFieldLevelEncryptionConfig2019_03_26 AWS API Documentation + # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateFieldLevelEncryptionConfig2020_05_31 AWS API Documentation # # @overload create_field_level_encryption_config(params = {}) # @param [Hash] params ({}) def create_field_level_encryption_config(params = {}, options = {}) req = build_request(:create_field_level_encryption_config, params) @@ -1290,11 +1413,11 @@ # resp.field_level_encryption_profile.field_level_encryption_profile_config.encryption_entities.items[0].field_patterns.items #=> Array # resp.field_level_encryption_profile.field_level_encryption_profile_config.encryption_entities.items[0].field_patterns.items[0] #=> String # resp.location #=> String # resp.etag #=> String # - # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/CreateFieldLevelEncryptionProfile2019_03_26 AWS API Documentation + # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateFieldLevelEncryptionProfile2020_05_31 AWS API Documentation # # @overload create_field_level_encryption_profile(params = {}) # @param [Hash] params ({}) def create_field_level_encryption_profile(params = {}, options = {}) req = build_request(:create_field_level_encryption_profile, params) @@ -1336,19 +1459,119 @@ # resp.invalidation.invalidation_batch.paths.quantity #=> Integer # resp.invalidation.invalidation_batch.paths.items #=> Array # resp.invalidation.invalidation_batch.paths.items[0] #=> String # resp.invalidation.invalidation_batch.caller_reference #=> String # - # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/CreateInvalidation2019_03_26 AWS API Documentation + # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateInvalidation2020_05_31 AWS API Documentation # # @overload create_invalidation(params = {}) # @param [Hash] params ({}) def create_invalidation(params = {}, options = {}) req = build_request(:create_invalidation, params) req.send_request(options) end + # Creates an origin request policy. + # + # After you create an origin request policy, you can attach it to one or + # more cache behaviors. When it’s attached to a cache behavior, the + # origin request policy determines the values that CloudFront includes + # in requests that it sends to the origin. Each request that CloudFront + # sends to the origin includes the following: + # + # * The request body and the URL path (without the domain name) from the + # viewer request. + # + # * The headers that CloudFront automatically includes in every origin + # request, including `Host`, `User-Agent`, and `X-Amz-Cf-Id`. + # + # * All HTTP headers, cookies, and URL query strings that are specified + # in the cache policy or the origin request policy. These can include + # items from the viewer request and, in the case of headers, + # additional ones that are added by CloudFront. + # + # CloudFront sends a request when it can’t find a valid object in its + # cache that matches the request. If you want to send values to the + # origin and also include them in the cache key, use + # `CreateCachePolicy`. + # + # For more information about origin request policies, see [Controlling + # origin requests][1] in the *Amazon CloudFront Developer Guide*. + # + # + # + # [1]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-origin-requests.html + # + # @option params [required, Types::OriginRequestPolicyConfig] :origin_request_policy_config + # An origin request policy configuration. + # + # @return [Types::CreateOriginRequestPolicyResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods: + # + # * {Types::CreateOriginRequestPolicyResult#origin_request_policy #origin_request_policy} => Types::OriginRequestPolicy + # * {Types::CreateOriginRequestPolicyResult#location #location} => String + # * {Types::CreateOriginRequestPolicyResult#etag #etag} => String + # + # @example Request syntax with placeholder values + # + # resp = client.create_origin_request_policy({ + # origin_request_policy_config: { # required + # comment: "string", + # name: "string", # required + # headers_config: { # required + # header_behavior: "none", # required, accepts none, whitelist, allViewer, allViewerAndWhitelistCloudFront + # headers: { + # quantity: 1, # required + # items: ["string"], + # }, + # }, + # cookies_config: { # required + # cookie_behavior: "none", # required, accepts none, whitelist, all + # cookies: { + # quantity: 1, # required + # items: ["string"], + # }, + # }, + # query_strings_config: { # required + # query_string_behavior: "none", # required, accepts none, whitelist, all + # query_strings: { + # quantity: 1, # required + # items: ["string"], + # }, + # }, + # }, + # }) + # + # @example Response structure + # + # resp.origin_request_policy.id #=> String + # resp.origin_request_policy.last_modified_time #=> Time + # resp.origin_request_policy.origin_request_policy_config.comment #=> String + # resp.origin_request_policy.origin_request_policy_config.name #=> String + # resp.origin_request_policy.origin_request_policy_config.headers_config.header_behavior #=> String, one of "none", "whitelist", "allViewer", "allViewerAndWhitelistCloudFront" + # resp.origin_request_policy.origin_request_policy_config.headers_config.headers.quantity #=> Integer + # resp.origin_request_policy.origin_request_policy_config.headers_config.headers.items #=> Array + # resp.origin_request_policy.origin_request_policy_config.headers_config.headers.items[0] #=> String + # resp.origin_request_policy.origin_request_policy_config.cookies_config.cookie_behavior #=> String, one of "none", "whitelist", "all" + # resp.origin_request_policy.origin_request_policy_config.cookies_config.cookies.quantity #=> Integer + # resp.origin_request_policy.origin_request_policy_config.cookies_config.cookies.items #=> Array + # resp.origin_request_policy.origin_request_policy_config.cookies_config.cookies.items[0] #=> String + # resp.origin_request_policy.origin_request_policy_config.query_strings_config.query_string_behavior #=> String, one of "none", "whitelist", "all" + # resp.origin_request_policy.origin_request_policy_config.query_strings_config.query_strings.quantity #=> Integer + # resp.origin_request_policy.origin_request_policy_config.query_strings_config.query_strings.items #=> Array + # resp.origin_request_policy.origin_request_policy_config.query_strings_config.query_strings.items[0] #=> String + # resp.location #=> String + # resp.etag #=> String + # + # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateOriginRequestPolicy2020_05_31 AWS API Documentation + # + # @overload create_origin_request_policy(params = {}) + # @param [Hash] params ({}) + def create_origin_request_policy(params = {}, options = {}) + req = build_request(:create_origin_request_policy, params) + req.send_request(options) + end + # Add a new public key to CloudFront to use, for example, for # field-level encryption. You can add a maximum of 10 public keys with # one AWS account. # # @option params [required, Types::PublicKeyConfig] :public_key_config @@ -1380,11 +1603,11 @@ # resp.public_key.public_key_config.encoded_key #=> String # resp.public_key.public_key_config.comment #=> String # resp.location #=> String # resp.etag #=> String # - # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/CreatePublicKey2019_03_26 AWS API Documentation + # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreatePublicKey2020_05_31 AWS API Documentation # # @overload create_public_key(params = {}) # @param [Hash] params ({}) def create_public_key(params = {}, options = {}) req = build_request(:create_public_key, params) @@ -1495,11 +1718,11 @@ # resp.streaming_distribution.streaming_distribution_config.price_class #=> String, one of "PriceClass_100", "PriceClass_200", "PriceClass_All" # resp.streaming_distribution.streaming_distribution_config.enabled #=> Boolean # resp.location #=> String # resp.etag #=> String # - # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/CreateStreamingDistribution2019_03_26 AWS API Documentation + # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateStreamingDistribution2020_05_31 AWS API Documentation # # @overload create_streaming_distribution(params = {}) # @param [Hash] params ({}) def create_streaming_distribution(params = {}, options = {}) req = build_request(:create_streaming_distribution, params) @@ -1587,19 +1810,56 @@ # resp.streaming_distribution.streaming_distribution_config.price_class #=> String, one of "PriceClass_100", "PriceClass_200", "PriceClass_All" # resp.streaming_distribution.streaming_distribution_config.enabled #=> Boolean # resp.location #=> String # resp.etag #=> String # - # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/CreateStreamingDistributionWithTags2019_03_26 AWS API Documentation + # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateStreamingDistributionWithTags2020_05_31 AWS API Documentation # # @overload create_streaming_distribution_with_tags(params = {}) # @param [Hash] params ({}) def create_streaming_distribution_with_tags(params = {}, options = {}) req = build_request(:create_streaming_distribution_with_tags, params) req.send_request(options) end + # Deletes a cache policy. + # + # You cannot delete a cache policy if it’s attached to a cache behavior. + # First update your distributions to remove the cache policy from all + # cache behaviors, then delete the cache policy. + # + # To delete a cache policy, you must provide the policy’s identifier and + # version. To get these values, you can use `ListCachePolicies` or + # `GetCachePolicy`. + # + # @option params [required, String] :id + # The unique identifier for the cache policy that you are deleting. To + # get the identifier, you can use `ListCachePolicies`. + # + # @option params [String] :if_match + # The version of the cache policy that you are deleting. The version is + # the cache policy’s `ETag` value, which you can get using + # `ListCachePolicies`, `GetCachePolicy`, or `GetCachePolicyConfig`. + # + # @return [Struct] Returns an empty {Seahorse::Client::Response response}. + # + # @example Request syntax with placeholder values + # + # resp = client.delete_cache_policy({ + # id: "string", # required + # if_match: "string", + # }) + # + # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteCachePolicy2020_05_31 AWS API Documentation + # + # @overload delete_cache_policy(params = {}) + # @param [Hash] params ({}) + def delete_cache_policy(params = {}, options = {}) + req = build_request(:delete_cache_policy, params) + req.send_request(options) + end + # Delete an origin access identity. # # @option params [required, String] :id # The origin access identity's ID. # @@ -1614,11 +1874,11 @@ # resp = client.delete_cloud_front_origin_access_identity({ # id: "string", # required # if_match: "string", # }) # - # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/DeleteCloudFrontOriginAccessIdentity2019_03_26 AWS API Documentation + # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteCloudFrontOriginAccessIdentity2020_05_31 AWS API Documentation # # @overload delete_cloud_front_origin_access_identity(params = {}) # @param [Hash] params ({}) def delete_cloud_front_origin_access_identity(params = {}, options = {}) req = build_request(:delete_cloud_front_origin_access_identity, params) @@ -1641,11 +1901,11 @@ # resp = client.delete_distribution({ # id: "string", # required # if_match: "string", # }) # - # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/DeleteDistribution2019_03_26 AWS API Documentation + # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteDistribution2020_05_31 AWS API Documentation # # @overload delete_distribution(params = {}) # @param [Hash] params ({}) def delete_distribution(params = {}, options = {}) req = build_request(:delete_distribution, params) @@ -1668,11 +1928,11 @@ # resp = client.delete_field_level_encryption_config({ # id: "string", # required # if_match: "string", # }) # - # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/DeleteFieldLevelEncryptionConfig2019_03_26 AWS API Documentation + # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteFieldLevelEncryptionConfig2020_05_31 AWS API Documentation # # @overload delete_field_level_encryption_config(params = {}) # @param [Hash] params ({}) def delete_field_level_encryption_config(params = {}, options = {}) req = build_request(:delete_field_level_encryption_config, params) @@ -1695,19 +1955,59 @@ # resp = client.delete_field_level_encryption_profile({ # id: "string", # required # if_match: "string", # }) # - # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/DeleteFieldLevelEncryptionProfile2019_03_26 AWS API Documentation + # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteFieldLevelEncryptionProfile2020_05_31 AWS API Documentation # # @overload delete_field_level_encryption_profile(params = {}) # @param [Hash] params ({}) def delete_field_level_encryption_profile(params = {}, options = {}) req = build_request(:delete_field_level_encryption_profile, params) req.send_request(options) end + # Deletes an origin request policy. + # + # You cannot delete an origin request policy if it’s attached to any + # cache behaviors. First update your distributions to remove the origin + # request policy from all cache behaviors, then delete the origin + # request policy. + # + # To delete an origin request policy, you must provide the policy’s + # identifier and version. To get the identifier, you can use + # `ListOriginRequestPolicies` or `GetOriginRequestPolicy`. + # + # @option params [required, String] :id + # The unique identifier for the origin request policy that you are + # deleting. To get the identifier, you can use + # `ListOriginRequestPolicies`. + # + # @option params [String] :if_match + # The version of the origin request policy that you are deleting. The + # version is the origin request policy’s `ETag` value, which you can get + # using `ListOriginRequestPolicies`, `GetOriginRequestPolicy`, or + # `GetOriginRequestPolicyConfig`. + # + # @return [Struct] Returns an empty {Seahorse::Client::Response response}. + # + # @example Request syntax with placeholder values + # + # resp = client.delete_origin_request_policy({ + # id: "string", # required + # if_match: "string", + # }) + # + # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteOriginRequestPolicy2020_05_31 AWS API Documentation + # + # @overload delete_origin_request_policy(params = {}) + # @param [Hash] params ({}) + def delete_origin_request_policy(params = {}, options = {}) + req = build_request(:delete_origin_request_policy, params) + req.send_request(options) + end + # Remove a public key you previously added to CloudFront. # # @option params [required, String] :id # The ID of the public key you want to remove from CloudFront. # @@ -1722,11 +2022,11 @@ # resp = client.delete_public_key({ # id: "string", # required # if_match: "string", # }) # - # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/DeletePublicKey2019_03_26 AWS API Documentation + # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeletePublicKey2020_05_31 AWS API Documentation # # @overload delete_public_key(params = {}) # @param [Hash] params ({}) def delete_public_key(params = {}, options = {}) req = build_request(:delete_public_key, params) @@ -1792,19 +2092,140 @@ # resp = client.delete_streaming_distribution({ # id: "string", # required # if_match: "string", # }) # - # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/DeleteStreamingDistribution2019_03_26 AWS API Documentation + # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteStreamingDistribution2020_05_31 AWS API Documentation # # @overload delete_streaming_distribution(params = {}) # @param [Hash] params ({}) def delete_streaming_distribution(params = {}, options = {}) req = build_request(:delete_streaming_distribution, params) req.send_request(options) end + # Gets a cache policy, including the following metadata: + # + # * The policy’s identifier. + # + # * The date and time when the policy was last modified. + # + # To get a cache policy, you must provide the policy’s identifier. If + # the cache policy is attached to a distribution’s cache behavior, you + # can get the policy’s identifier using `ListDistributions` or + # `GetDistribution`. If the cache policy is not attached to a cache + # behavior, you can get the identifier using `ListCachePolicies`. + # + # @option params [required, String] :id + # The unique identifier for the cache policy. If the cache policy is + # attached to a distribution’s cache behavior, you can get the policy’s + # identifier using `ListDistributions` or `GetDistribution`. If the + # cache policy is not attached to a cache behavior, you can get the + # identifier using `ListCachePolicies`. + # + # @return [Types::GetCachePolicyResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods: + # + # * {Types::GetCachePolicyResult#cache_policy #cache_policy} => Types::CachePolicy + # * {Types::GetCachePolicyResult#etag #etag} => String + # + # @example Request syntax with placeholder values + # + # resp = client.get_cache_policy({ + # id: "string", # required + # }) + # + # @example Response structure + # + # resp.cache_policy.id #=> String + # resp.cache_policy.last_modified_time #=> Time + # resp.cache_policy.cache_policy_config.comment #=> String + # resp.cache_policy.cache_policy_config.name #=> String + # resp.cache_policy.cache_policy_config.default_ttl #=> Integer + # resp.cache_policy.cache_policy_config.max_ttl #=> Integer + # resp.cache_policy.cache_policy_config.min_ttl #=> Integer + # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.enable_accept_encoding_gzip #=> Boolean + # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.headers_config.header_behavior #=> String, one of "none", "whitelist" + # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.headers_config.headers.quantity #=> Integer + # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.headers_config.headers.items #=> Array + # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.headers_config.headers.items[0] #=> String + # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.cookies_config.cookie_behavior #=> String, one of "none", "whitelist", "allExcept", "all" + # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.cookies_config.cookies.quantity #=> Integer + # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.cookies_config.cookies.items #=> Array + # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.cookies_config.cookies.items[0] #=> String + # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.query_strings_config.query_string_behavior #=> String, one of "none", "whitelist", "allExcept", "all" + # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.query_strings_config.query_strings.quantity #=> Integer + # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.query_strings_config.query_strings.items #=> Array + # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.query_strings_config.query_strings.items[0] #=> String + # resp.etag #=> String + # + # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetCachePolicy2020_05_31 AWS API Documentation + # + # @overload get_cache_policy(params = {}) + # @param [Hash] params ({}) + def get_cache_policy(params = {}, options = {}) + req = build_request(:get_cache_policy, params) + req.send_request(options) + end + + # Gets a cache policy configuration. + # + # To get a cache policy configuration, you must provide the policy’s + # identifier. If the cache policy is attached to a distribution’s cache + # behavior, you can get the policy’s identifier using + # `ListDistributions` or `GetDistribution`. If the cache policy is not + # attached to a cache behavior, you can get the identifier using + # `ListCachePolicies`. + # + # @option params [required, String] :id + # The unique identifier for the cache policy. If the cache policy is + # attached to a distribution’s cache behavior, you can get the policy’s + # identifier using `ListDistributions` or `GetDistribution`. If the + # cache policy is not attached to a cache behavior, you can get the + # identifier using `ListCachePolicies`. + # + # @return [Types::GetCachePolicyConfigResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods: + # + # * {Types::GetCachePolicyConfigResult#cache_policy_config #cache_policy_config} => Types::CachePolicyConfig + # * {Types::GetCachePolicyConfigResult#etag #etag} => String + # + # @example Request syntax with placeholder values + # + # resp = client.get_cache_policy_config({ + # id: "string", # required + # }) + # + # @example Response structure + # + # resp.cache_policy_config.comment #=> String + # resp.cache_policy_config.name #=> String + # resp.cache_policy_config.default_ttl #=> Integer + # resp.cache_policy_config.max_ttl #=> Integer + # resp.cache_policy_config.min_ttl #=> Integer + # resp.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.enable_accept_encoding_gzip #=> Boolean + # resp.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.headers_config.header_behavior #=> String, one of "none", "whitelist" + # resp.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.headers_config.headers.quantity #=> Integer + # resp.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.headers_config.headers.items #=> Array + # resp.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.headers_config.headers.items[0] #=> String + # resp.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.cookies_config.cookie_behavior #=> String, one of "none", "whitelist", "allExcept", "all" + # resp.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.cookies_config.cookies.quantity #=> Integer + # resp.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.cookies_config.cookies.items #=> Array + # resp.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.cookies_config.cookies.items[0] #=> String + # resp.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.query_strings_config.query_string_behavior #=> String, one of "none", "whitelist", "allExcept", "all" + # resp.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.query_strings_config.query_strings.quantity #=> Integer + # resp.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.query_strings_config.query_strings.items #=> Array + # resp.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.query_strings_config.query_strings.items[0] #=> String + # resp.etag #=> String + # + # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetCachePolicyConfig2020_05_31 AWS API Documentation + # + # @overload get_cache_policy_config(params = {}) + # @param [Hash] params ({}) + def get_cache_policy_config(params = {}, options = {}) + req = build_request(:get_cache_policy_config, params) + req.send_request(options) + end + # Get the information about an origin access identity. # # @option params [required, String] :id # The identity's ID. # @@ -1825,11 +2246,11 @@ # resp.cloud_front_origin_access_identity.s3_canonical_user_id #=> String # resp.cloud_front_origin_access_identity.cloud_front_origin_access_identity_config.caller_reference #=> String # resp.cloud_front_origin_access_identity.cloud_front_origin_access_identity_config.comment #=> String # resp.etag #=> String # - # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/GetCloudFrontOriginAccessIdentity2019_03_26 AWS API Documentation + # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetCloudFrontOriginAccessIdentity2020_05_31 AWS API Documentation # # @overload get_cloud_front_origin_access_identity(params = {}) # @param [Hash] params ({}) def get_cloud_front_origin_access_identity(params = {}, options = {}) req = build_request(:get_cloud_front_origin_access_identity, params) @@ -1856,11 +2277,11 @@ # # resp.cloud_front_origin_access_identity_config.caller_reference #=> String # resp.cloud_front_origin_access_identity_config.comment #=> String # resp.etag #=> String # - # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/GetCloudFrontOriginAccessIdentityConfig2019_03_26 AWS API Documentation + # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetCloudFrontOriginAccessIdentityConfig2020_05_31 AWS API Documentation # # @overload get_cloud_front_origin_access_identity_config(params = {}) # @param [Hash] params ({}) def get_cloud_front_origin_access_identity_config(params = {}, options = {}) req = build_request(:get_cloud_front_origin_access_identity_config, params) @@ -1932,80 +2353,84 @@ # resp.distribution.distribution_config.origin_groups.items[0].failover_criteria.status_codes.items[0] #=> Integer # resp.distribution.distribution_config.origin_groups.items[0].members.quantity #=> Integer # resp.distribution.distribution_config.origin_groups.items[0].members.items #=> Array # resp.distribution.distribution_config.origin_groups.items[0].members.items[0].origin_id #=> String # resp.distribution.distribution_config.default_cache_behavior.target_origin_id #=> String - # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string #=> Boolean - # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all" - # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.quantity #=> Integer - # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.items #=> Array - # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.items[0] #=> String - # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.headers.quantity #=> Integer - # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.headers.items #=> Array - # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.headers.items[0] #=> String - # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string_cache_keys.quantity #=> Integer - # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string_cache_keys.items #=> Array - # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string_cache_keys.items[0] #=> String # resp.distribution.distribution_config.default_cache_behavior.trusted_signers.enabled #=> Boolean # resp.distribution.distribution_config.default_cache_behavior.trusted_signers.quantity #=> Integer # resp.distribution.distribution_config.default_cache_behavior.trusted_signers.items #=> Array # resp.distribution.distribution_config.default_cache_behavior.trusted_signers.items[0] #=> String # resp.distribution.distribution_config.default_cache_behavior.viewer_protocol_policy #=> String, one of "allow-all", "https-only", "redirect-to-https" - # resp.distribution.distribution_config.default_cache_behavior.min_ttl #=> Integer # resp.distribution.distribution_config.default_cache_behavior.allowed_methods.quantity #=> Integer # resp.distribution.distribution_config.default_cache_behavior.allowed_methods.items #=> Array # resp.distribution.distribution_config.default_cache_behavior.allowed_methods.items[0] #=> String, one of "GET", "HEAD", "POST", "PUT", "PATCH", "OPTIONS", "DELETE" # resp.distribution.distribution_config.default_cache_behavior.allowed_methods.cached_methods.quantity #=> Integer # resp.distribution.distribution_config.default_cache_behavior.allowed_methods.cached_methods.items #=> Array # resp.distribution.distribution_config.default_cache_behavior.allowed_methods.cached_methods.items[0] #=> String, one of "GET", "HEAD", "POST", "PUT", "PATCH", "OPTIONS", "DELETE" # resp.distribution.distribution_config.default_cache_behavior.smooth_streaming #=> Boolean - # resp.distribution.distribution_config.default_cache_behavior.default_ttl #=> Integer - # resp.distribution.distribution_config.default_cache_behavior.max_ttl #=> Integer # resp.distribution.distribution_config.default_cache_behavior.compress #=> Boolean # resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.quantity #=> Integer # resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.items #=> Array # resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.items[0].lambda_function_arn #=> String # resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response" # resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.items[0].include_body #=> Boolean # resp.distribution.distribution_config.default_cache_behavior.field_level_encryption_id #=> String + # resp.distribution.distribution_config.default_cache_behavior.cache_policy_id #=> String + # resp.distribution.distribution_config.default_cache_behavior.origin_request_policy_id #=> String + # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string #=> Boolean + # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all" + # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.quantity #=> Integer + # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.items #=> Array + # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.items[0] #=> String + # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.headers.quantity #=> Integer + # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.headers.items #=> Array + # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.headers.items[0] #=> String + # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string_cache_keys.quantity #=> Integer + # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string_cache_keys.items #=> Array + # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string_cache_keys.items[0] #=> String + # resp.distribution.distribution_config.default_cache_behavior.min_ttl #=> Integer + # resp.distribution.distribution_config.default_cache_behavior.default_ttl #=> Integer + # resp.distribution.distribution_config.default_cache_behavior.max_ttl #=> Integer # resp.distribution.distribution_config.cache_behaviors.quantity #=> Integer # resp.distribution.distribution_config.cache_behaviors.items #=> Array # resp.distribution.distribution_config.cache_behaviors.items[0].path_pattern #=> String # resp.distribution.distribution_config.cache_behaviors.items[0].target_origin_id #=> String - # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string #=> Boolean - # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all" - # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.quantity #=> Integer - # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.items #=> Array - # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.items[0] #=> String - # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.headers.quantity #=> Integer - # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.headers.items #=> Array - # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.headers.items[0] #=> String - # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string_cache_keys.quantity #=> Integer - # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string_cache_keys.items #=> Array - # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string_cache_keys.items[0] #=> String # resp.distribution.distribution_config.cache_behaviors.items[0].trusted_signers.enabled #=> Boolean # resp.distribution.distribution_config.cache_behaviors.items[0].trusted_signers.quantity #=> Integer # resp.distribution.distribution_config.cache_behaviors.items[0].trusted_signers.items #=> Array # resp.distribution.distribution_config.cache_behaviors.items[0].trusted_signers.items[0] #=> String # resp.distribution.distribution_config.cache_behaviors.items[0].viewer_protocol_policy #=> String, one of "allow-all", "https-only", "redirect-to-https" - # resp.distribution.distribution_config.cache_behaviors.items[0].min_ttl #=> Integer # resp.distribution.distribution_config.cache_behaviors.items[0].allowed_methods.quantity #=> Integer # resp.distribution.distribution_config.cache_behaviors.items[0].allowed_methods.items #=> Array # resp.distribution.distribution_config.cache_behaviors.items[0].allowed_methods.items[0] #=> String, one of "GET", "HEAD", "POST", "PUT", "PATCH", "OPTIONS", "DELETE" # resp.distribution.distribution_config.cache_behaviors.items[0].allowed_methods.cached_methods.quantity #=> Integer # resp.distribution.distribution_config.cache_behaviors.items[0].allowed_methods.cached_methods.items #=> Array # resp.distribution.distribution_config.cache_behaviors.items[0].allowed_methods.cached_methods.items[0] #=> String, one of "GET", "HEAD", "POST", "PUT", "PATCH", "OPTIONS", "DELETE" # resp.distribution.distribution_config.cache_behaviors.items[0].smooth_streaming #=> Boolean - # resp.distribution.distribution_config.cache_behaviors.items[0].default_ttl #=> Integer - # resp.distribution.distribution_config.cache_behaviors.items[0].max_ttl #=> Integer # resp.distribution.distribution_config.cache_behaviors.items[0].compress #=> Boolean # resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.quantity #=> Integer # resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.items #=> Array # resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.items[0].lambda_function_arn #=> String # resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response" # resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.items[0].include_body #=> Boolean # resp.distribution.distribution_config.cache_behaviors.items[0].field_level_encryption_id #=> String + # resp.distribution.distribution_config.cache_behaviors.items[0].cache_policy_id #=> String + # resp.distribution.distribution_config.cache_behaviors.items[0].origin_request_policy_id #=> String + # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string #=> Boolean + # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all" + # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.quantity #=> Integer + # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.items #=> Array + # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.items[0] #=> String + # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.headers.quantity #=> Integer + # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.headers.items #=> Array + # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.headers.items[0] #=> String + # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string_cache_keys.quantity #=> Integer + # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string_cache_keys.items #=> Array + # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string_cache_keys.items[0] #=> String + # resp.distribution.distribution_config.cache_behaviors.items[0].min_ttl #=> Integer + # resp.distribution.distribution_config.cache_behaviors.items[0].default_ttl #=> Integer + # resp.distribution.distribution_config.cache_behaviors.items[0].max_ttl #=> Integer # resp.distribution.distribution_config.custom_error_responses.quantity #=> Integer # resp.distribution.distribution_config.custom_error_responses.items #=> Array # resp.distribution.distribution_config.custom_error_responses.items[0].error_code #=> Integer # resp.distribution.distribution_config.custom_error_responses.items[0].response_page_path #=> String # resp.distribution.distribution_config.custom_error_responses.items[0].response_code #=> String @@ -2039,11 +2464,11 @@ # # The following waiters are defined for this operation (see {Client#wait_until} for detailed usage): # # * distribution_deployed # - # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/GetDistribution2019_03_26 AWS API Documentation + # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetDistribution2020_05_31 AWS API Documentation # # @overload get_distribution(params = {}) # @param [Hash] params ({}) def get_distribution(params = {}, options = {}) req = build_request(:get_distribution, params) @@ -2102,80 +2527,84 @@ # resp.distribution_config.origin_groups.items[0].failover_criteria.status_codes.items[0] #=> Integer # resp.distribution_config.origin_groups.items[0].members.quantity #=> Integer # resp.distribution_config.origin_groups.items[0].members.items #=> Array # resp.distribution_config.origin_groups.items[0].members.items[0].origin_id #=> String # resp.distribution_config.default_cache_behavior.target_origin_id #=> String - # resp.distribution_config.default_cache_behavior.forwarded_values.query_string #=> Boolean - # resp.distribution_config.default_cache_behavior.forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all" - # resp.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.quantity #=> Integer - # resp.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.items #=> Array - # resp.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.items[0] #=> String - # resp.distribution_config.default_cache_behavior.forwarded_values.headers.quantity #=> Integer - # resp.distribution_config.default_cache_behavior.forwarded_values.headers.items #=> Array - # resp.distribution_config.default_cache_behavior.forwarded_values.headers.items[0] #=> String - # resp.distribution_config.default_cache_behavior.forwarded_values.query_string_cache_keys.quantity #=> Integer - # resp.distribution_config.default_cache_behavior.forwarded_values.query_string_cache_keys.items #=> Array - # resp.distribution_config.default_cache_behavior.forwarded_values.query_string_cache_keys.items[0] #=> String # resp.distribution_config.default_cache_behavior.trusted_signers.enabled #=> Boolean # resp.distribution_config.default_cache_behavior.trusted_signers.quantity #=> Integer # resp.distribution_config.default_cache_behavior.trusted_signers.items #=> Array # resp.distribution_config.default_cache_behavior.trusted_signers.items[0] #=> String # resp.distribution_config.default_cache_behavior.viewer_protocol_policy #=> String, one of "allow-all", "https-only", "redirect-to-https" - # resp.distribution_config.default_cache_behavior.min_ttl #=> Integer # resp.distribution_config.default_cache_behavior.allowed_methods.quantity #=> Integer # resp.distribution_config.default_cache_behavior.allowed_methods.items #=> Array # resp.distribution_config.default_cache_behavior.allowed_methods.items[0] #=> String, one of "GET", "HEAD", "POST", "PUT", "PATCH", "OPTIONS", "DELETE" # resp.distribution_config.default_cache_behavior.allowed_methods.cached_methods.quantity #=> Integer # resp.distribution_config.default_cache_behavior.allowed_methods.cached_methods.items #=> Array # resp.distribution_config.default_cache_behavior.allowed_methods.cached_methods.items[0] #=> String, one of "GET", "HEAD", "POST", "PUT", "PATCH", "OPTIONS", "DELETE" # resp.distribution_config.default_cache_behavior.smooth_streaming #=> Boolean - # resp.distribution_config.default_cache_behavior.default_ttl #=> Integer - # resp.distribution_config.default_cache_behavior.max_ttl #=> Integer # resp.distribution_config.default_cache_behavior.compress #=> Boolean # resp.distribution_config.default_cache_behavior.lambda_function_associations.quantity #=> Integer # resp.distribution_config.default_cache_behavior.lambda_function_associations.items #=> Array # resp.distribution_config.default_cache_behavior.lambda_function_associations.items[0].lambda_function_arn #=> String # resp.distribution_config.default_cache_behavior.lambda_function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response" # resp.distribution_config.default_cache_behavior.lambda_function_associations.items[0].include_body #=> Boolean # resp.distribution_config.default_cache_behavior.field_level_encryption_id #=> String + # resp.distribution_config.default_cache_behavior.cache_policy_id #=> String + # resp.distribution_config.default_cache_behavior.origin_request_policy_id #=> String + # resp.distribution_config.default_cache_behavior.forwarded_values.query_string #=> Boolean + # resp.distribution_config.default_cache_behavior.forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all" + # resp.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.quantity #=> Integer + # resp.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.items #=> Array + # resp.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.items[0] #=> String + # resp.distribution_config.default_cache_behavior.forwarded_values.headers.quantity #=> Integer + # resp.distribution_config.default_cache_behavior.forwarded_values.headers.items #=> Array + # resp.distribution_config.default_cache_behavior.forwarded_values.headers.items[0] #=> String + # resp.distribution_config.default_cache_behavior.forwarded_values.query_string_cache_keys.quantity #=> Integer + # resp.distribution_config.default_cache_behavior.forwarded_values.query_string_cache_keys.items #=> Array + # resp.distribution_config.default_cache_behavior.forwarded_values.query_string_cache_keys.items[0] #=> String + # resp.distribution_config.default_cache_behavior.min_ttl #=> Integer + # resp.distribution_config.default_cache_behavior.default_ttl #=> Integer + # resp.distribution_config.default_cache_behavior.max_ttl #=> Integer # resp.distribution_config.cache_behaviors.quantity #=> Integer # resp.distribution_config.cache_behaviors.items #=> Array # resp.distribution_config.cache_behaviors.items[0].path_pattern #=> String # resp.distribution_config.cache_behaviors.items[0].target_origin_id #=> String - # resp.distribution_config.cache_behaviors.items[0].forwarded_values.query_string #=> Boolean - # resp.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all" - # resp.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.quantity #=> Integer - # resp.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.items #=> Array - # resp.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.items[0] #=> String - # resp.distribution_config.cache_behaviors.items[0].forwarded_values.headers.quantity #=> Integer - # resp.distribution_config.cache_behaviors.items[0].forwarded_values.headers.items #=> Array - # resp.distribution_config.cache_behaviors.items[0].forwarded_values.headers.items[0] #=> String - # resp.distribution_config.cache_behaviors.items[0].forwarded_values.query_string_cache_keys.quantity #=> Integer - # resp.distribution_config.cache_behaviors.items[0].forwarded_values.query_string_cache_keys.items #=> Array - # resp.distribution_config.cache_behaviors.items[0].forwarded_values.query_string_cache_keys.items[0] #=> String # resp.distribution_config.cache_behaviors.items[0].trusted_signers.enabled #=> Boolean # resp.distribution_config.cache_behaviors.items[0].trusted_signers.quantity #=> Integer # resp.distribution_config.cache_behaviors.items[0].trusted_signers.items #=> Array # resp.distribution_config.cache_behaviors.items[0].trusted_signers.items[0] #=> String # resp.distribution_config.cache_behaviors.items[0].viewer_protocol_policy #=> String, one of "allow-all", "https-only", "redirect-to-https" - # resp.distribution_config.cache_behaviors.items[0].min_ttl #=> Integer # resp.distribution_config.cache_behaviors.items[0].allowed_methods.quantity #=> Integer # resp.distribution_config.cache_behaviors.items[0].allowed_methods.items #=> Array # resp.distribution_config.cache_behaviors.items[0].allowed_methods.items[0] #=> String, one of "GET", "HEAD", "POST", "PUT", "PATCH", "OPTIONS", "DELETE" # resp.distribution_config.cache_behaviors.items[0].allowed_methods.cached_methods.quantity #=> Integer # resp.distribution_config.cache_behaviors.items[0].allowed_methods.cached_methods.items #=> Array # resp.distribution_config.cache_behaviors.items[0].allowed_methods.cached_methods.items[0] #=> String, one of "GET", "HEAD", "POST", "PUT", "PATCH", "OPTIONS", "DELETE" # resp.distribution_config.cache_behaviors.items[0].smooth_streaming #=> Boolean - # resp.distribution_config.cache_behaviors.items[0].default_ttl #=> Integer - # resp.distribution_config.cache_behaviors.items[0].max_ttl #=> Integer # resp.distribution_config.cache_behaviors.items[0].compress #=> Boolean # resp.distribution_config.cache_behaviors.items[0].lambda_function_associations.quantity #=> Integer # resp.distribution_config.cache_behaviors.items[0].lambda_function_associations.items #=> Array # resp.distribution_config.cache_behaviors.items[0].lambda_function_associations.items[0].lambda_function_arn #=> String # resp.distribution_config.cache_behaviors.items[0].lambda_function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response" # resp.distribution_config.cache_behaviors.items[0].lambda_function_associations.items[0].include_body #=> Boolean # resp.distribution_config.cache_behaviors.items[0].field_level_encryption_id #=> String + # resp.distribution_config.cache_behaviors.items[0].cache_policy_id #=> String + # resp.distribution_config.cache_behaviors.items[0].origin_request_policy_id #=> String + # resp.distribution_config.cache_behaviors.items[0].forwarded_values.query_string #=> Boolean + # resp.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all" + # resp.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.quantity #=> Integer + # resp.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.items #=> Array + # resp.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.items[0] #=> String + # resp.distribution_config.cache_behaviors.items[0].forwarded_values.headers.quantity #=> Integer + # resp.distribution_config.cache_behaviors.items[0].forwarded_values.headers.items #=> Array + # resp.distribution_config.cache_behaviors.items[0].forwarded_values.headers.items[0] #=> String + # resp.distribution_config.cache_behaviors.items[0].forwarded_values.query_string_cache_keys.quantity #=> Integer + # resp.distribution_config.cache_behaviors.items[0].forwarded_values.query_string_cache_keys.items #=> Array + # resp.distribution_config.cache_behaviors.items[0].forwarded_values.query_string_cache_keys.items[0] #=> String + # resp.distribution_config.cache_behaviors.items[0].min_ttl #=> Integer + # resp.distribution_config.cache_behaviors.items[0].default_ttl #=> Integer + # resp.distribution_config.cache_behaviors.items[0].max_ttl #=> Integer # resp.distribution_config.custom_error_responses.quantity #=> Integer # resp.distribution_config.custom_error_responses.items #=> Array # resp.distribution_config.custom_error_responses.items[0].error_code #=> Integer # resp.distribution_config.custom_error_responses.items[0].response_page_path #=> String # resp.distribution_config.custom_error_responses.items[0].response_code #=> String @@ -2201,11 +2630,11 @@ # resp.distribution_config.web_acl_id #=> String # resp.distribution_config.http_version #=> String, one of "http1.1", "http2" # resp.distribution_config.is_ipv6_enabled #=> Boolean # resp.etag #=> String # - # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/GetDistributionConfig2019_03_26 AWS API Documentation + # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetDistributionConfig2020_05_31 AWS API Documentation # # @overload get_distribution_config(params = {}) # @param [Hash] params ({}) def get_distribution_config(params = {}, options = {}) req = build_request(:get_distribution_config, params) @@ -2246,11 +2675,11 @@ # resp.field_level_encryption.field_level_encryption_config.content_type_profile_config.content_type_profiles.items[0].format #=> String, one of "URLEncoded" # resp.field_level_encryption.field_level_encryption_config.content_type_profile_config.content_type_profiles.items[0].profile_id #=> String # resp.field_level_encryption.field_level_encryption_config.content_type_profile_config.content_type_profiles.items[0].content_type #=> String # resp.etag #=> String # - # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/GetFieldLevelEncryption2019_03_26 AWS API Documentation + # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetFieldLevelEncryption2020_05_31 AWS API Documentation # # @overload get_field_level_encryption(params = {}) # @param [Hash] params ({}) def get_field_level_encryption(params = {}, options = {}) req = build_request(:get_field_level_encryption, params) @@ -2289,11 +2718,11 @@ # resp.field_level_encryption_config.content_type_profile_config.content_type_profiles.items[0].format #=> String, one of "URLEncoded" # resp.field_level_encryption_config.content_type_profile_config.content_type_profiles.items[0].profile_id #=> String # resp.field_level_encryption_config.content_type_profile_config.content_type_profiles.items[0].content_type #=> String # resp.etag #=> String # - # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/GetFieldLevelEncryptionConfig2019_03_26 AWS API Documentation + # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetFieldLevelEncryptionConfig2020_05_31 AWS API Documentation # # @overload get_field_level_encryption_config(params = {}) # @param [Hash] params ({}) def get_field_level_encryption_config(params = {}, options = {}) req = build_request(:get_field_level_encryption_config, params) @@ -2330,11 +2759,11 @@ # resp.field_level_encryption_profile.field_level_encryption_profile_config.encryption_entities.items[0].field_patterns.quantity #=> Integer # resp.field_level_encryption_profile.field_level_encryption_profile_config.encryption_entities.items[0].field_patterns.items #=> Array # resp.field_level_encryption_profile.field_level_encryption_profile_config.encryption_entities.items[0].field_patterns.items[0] #=> String # resp.etag #=> String # - # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/GetFieldLevelEncryptionProfile2019_03_26 AWS API Documentation + # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetFieldLevelEncryptionProfile2020_05_31 AWS API Documentation # # @overload get_field_level_encryption_profile(params = {}) # @param [Hash] params ({}) def get_field_level_encryption_profile(params = {}, options = {}) req = build_request(:get_field_level_encryption_profile, params) @@ -2370,11 +2799,11 @@ # resp.field_level_encryption_profile_config.encryption_entities.items[0].field_patterns.quantity #=> Integer # resp.field_level_encryption_profile_config.encryption_entities.items[0].field_patterns.items #=> Array # resp.field_level_encryption_profile_config.encryption_entities.items[0].field_patterns.items[0] #=> String # resp.etag #=> String # - # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/GetFieldLevelEncryptionProfileConfig2019_03_26 AWS API Documentation + # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetFieldLevelEncryptionProfileConfig2020_05_31 AWS API Documentation # # @overload get_field_level_encryption_profile_config(params = {}) # @param [Hash] params ({}) def get_field_level_encryption_profile_config(params = {}, options = {}) req = build_request(:get_field_level_encryption_profile_config, params) @@ -2414,19 +2843,135 @@ # # The following waiters are defined for this operation (see {Client#wait_until} for detailed usage): # # * invalidation_completed # - # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/GetInvalidation2019_03_26 AWS API Documentation + # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetInvalidation2020_05_31 AWS API Documentation # # @overload get_invalidation(params = {}) # @param [Hash] params ({}) def get_invalidation(params = {}, options = {}) req = build_request(:get_invalidation, params) req.send_request(options) end + # Gets an origin request policy, including the following metadata: + # + # * The policy’s identifier. + # + # * The date and time when the policy was last modified. + # + # To get an origin request policy, you must provide the policy’s + # identifier. If the origin request policy is attached to a + # distribution’s cache behavior, you can get the policy’s identifier + # using `ListDistributions` or `GetDistribution`. If the origin request + # policy is not attached to a cache behavior, you can get the identifier + # using `ListOriginRequestPolicies`. + # + # @option params [required, String] :id + # The unique identifier for the origin request policy. If the origin + # request policy is attached to a distribution’s cache behavior, you can + # get the policy’s identifier using `ListDistributions` or + # `GetDistribution`. If the origin request policy is not attached to a + # cache behavior, you can get the identifier using + # `ListOriginRequestPolicies`. + # + # @return [Types::GetOriginRequestPolicyResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods: + # + # * {Types::GetOriginRequestPolicyResult#origin_request_policy #origin_request_policy} => Types::OriginRequestPolicy + # * {Types::GetOriginRequestPolicyResult#etag #etag} => String + # + # @example Request syntax with placeholder values + # + # resp = client.get_origin_request_policy({ + # id: "string", # required + # }) + # + # @example Response structure + # + # resp.origin_request_policy.id #=> String + # resp.origin_request_policy.last_modified_time #=> Time + # resp.origin_request_policy.origin_request_policy_config.comment #=> String + # resp.origin_request_policy.origin_request_policy_config.name #=> String + # resp.origin_request_policy.origin_request_policy_config.headers_config.header_behavior #=> String, one of "none", "whitelist", "allViewer", "allViewerAndWhitelistCloudFront" + # resp.origin_request_policy.origin_request_policy_config.headers_config.headers.quantity #=> Integer + # resp.origin_request_policy.origin_request_policy_config.headers_config.headers.items #=> Array + # resp.origin_request_policy.origin_request_policy_config.headers_config.headers.items[0] #=> String + # resp.origin_request_policy.origin_request_policy_config.cookies_config.cookie_behavior #=> String, one of "none", "whitelist", "all" + # resp.origin_request_policy.origin_request_policy_config.cookies_config.cookies.quantity #=> Integer + # resp.origin_request_policy.origin_request_policy_config.cookies_config.cookies.items #=> Array + # resp.origin_request_policy.origin_request_policy_config.cookies_config.cookies.items[0] #=> String + # resp.origin_request_policy.origin_request_policy_config.query_strings_config.query_string_behavior #=> String, one of "none", "whitelist", "all" + # resp.origin_request_policy.origin_request_policy_config.query_strings_config.query_strings.quantity #=> Integer + # resp.origin_request_policy.origin_request_policy_config.query_strings_config.query_strings.items #=> Array + # resp.origin_request_policy.origin_request_policy_config.query_strings_config.query_strings.items[0] #=> String + # resp.etag #=> String + # + # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetOriginRequestPolicy2020_05_31 AWS API Documentation + # + # @overload get_origin_request_policy(params = {}) + # @param [Hash] params ({}) + def get_origin_request_policy(params = {}, options = {}) + req = build_request(:get_origin_request_policy, params) + req.send_request(options) + end + + # Gets an origin request policy configuration. + # + # To get an origin request policy configuration, you must provide the + # policy’s identifier. If the origin request policy is attached to a + # distribution’s cache behavior, you can get the policy’s identifier + # using `ListDistributions` or `GetDistribution`. If the origin request + # policy is not attached to a cache behavior, you can get the identifier + # using `ListOriginRequestPolicies`. + # + # @option params [required, String] :id + # The unique identifier for the origin request policy. If the origin + # request policy is attached to a distribution’s cache behavior, you can + # get the policy’s identifier using `ListDistributions` or + # `GetDistribution`. If the origin request policy is not attached to a + # cache behavior, you can get the identifier using + # `ListOriginRequestPolicies`. + # + # @return [Types::GetOriginRequestPolicyConfigResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods: + # + # * {Types::GetOriginRequestPolicyConfigResult#origin_request_policy_config #origin_request_policy_config} => Types::OriginRequestPolicyConfig + # * {Types::GetOriginRequestPolicyConfigResult#etag #etag} => String + # + # @example Request syntax with placeholder values + # + # resp = client.get_origin_request_policy_config({ + # id: "string", # required + # }) + # + # @example Response structure + # + # resp.origin_request_policy_config.comment #=> String + # resp.origin_request_policy_config.name #=> String + # resp.origin_request_policy_config.headers_config.header_behavior #=> String, one of "none", "whitelist", "allViewer", "allViewerAndWhitelistCloudFront" + # resp.origin_request_policy_config.headers_config.headers.quantity #=> Integer + # resp.origin_request_policy_config.headers_config.headers.items #=> Array + # resp.origin_request_policy_config.headers_config.headers.items[0] #=> String + # resp.origin_request_policy_config.cookies_config.cookie_behavior #=> String, one of "none", "whitelist", "all" + # resp.origin_request_policy_config.cookies_config.cookies.quantity #=> Integer + # resp.origin_request_policy_config.cookies_config.cookies.items #=> Array + # resp.origin_request_policy_config.cookies_config.cookies.items[0] #=> String + # resp.origin_request_policy_config.query_strings_config.query_string_behavior #=> String, one of "none", "whitelist", "all" + # resp.origin_request_policy_config.query_strings_config.query_strings.quantity #=> Integer + # resp.origin_request_policy_config.query_strings_config.query_strings.items #=> Array + # resp.origin_request_policy_config.query_strings_config.query_strings.items[0] #=> String + # resp.etag #=> String + # + # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetOriginRequestPolicyConfig2020_05_31 AWS API Documentation + # + # @overload get_origin_request_policy_config(params = {}) + # @param [Hash] params ({}) + def get_origin_request_policy_config(params = {}, options = {}) + req = build_request(:get_origin_request_policy_config, params) + req.send_request(options) + end + # Get the public key information. # # @option params [required, String] :id # Request the ID for the public key. # @@ -2449,11 +2994,11 @@ # resp.public_key.public_key_config.name #=> String # resp.public_key.public_key_config.encoded_key #=> String # resp.public_key.public_key_config.comment #=> String # resp.etag #=> String # - # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/GetPublicKey2019_03_26 AWS API Documentation + # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetPublicKey2020_05_31 AWS API Documentation # # @overload get_public_key(params = {}) # @param [Hash] params ({}) def get_public_key(params = {}, options = {}) req = build_request(:get_public_key, params) @@ -2482,11 +3027,11 @@ # resp.public_key_config.name #=> String # resp.public_key_config.encoded_key #=> String # resp.public_key_config.comment #=> String # resp.etag #=> String # - # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/GetPublicKeyConfig2019_03_26 AWS API Documentation + # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetPublicKeyConfig2020_05_31 AWS API Documentation # # @overload get_public_key_config(params = {}) # @param [Hash] params ({}) def get_public_key_config(params = {}, options = {}) req = build_request(:get_public_key_config, params) @@ -2545,11 +3090,11 @@ # # The following waiters are defined for this operation (see {Client#wait_until} for detailed usage): # # * streaming_distribution_deployed # - # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/GetStreamingDistribution2019_03_26 AWS API Documentation + # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetStreamingDistribution2020_05_31 AWS API Documentation # # @overload get_streaming_distribution(params = {}) # @param [Hash] params ({}) def get_streaming_distribution(params = {}, options = {}) req = build_request(:get_streaming_distribution, params) @@ -2590,19 +3135,100 @@ # resp.streaming_distribution_config.trusted_signers.items[0] #=> String # resp.streaming_distribution_config.price_class #=> String, one of "PriceClass_100", "PriceClass_200", "PriceClass_All" # resp.streaming_distribution_config.enabled #=> Boolean # resp.etag #=> String # - # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/GetStreamingDistributionConfig2019_03_26 AWS API Documentation + # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetStreamingDistributionConfig2020_05_31 AWS API Documentation # # @overload get_streaming_distribution_config(params = {}) # @param [Hash] params ({}) def get_streaming_distribution_config(params = {}, options = {}) req = build_request(:get_streaming_distribution_config, params) req.send_request(options) end + # Gets a list of cache policies. + # + # You can optionally apply a filter to return only the managed policies + # created by AWS, or only the custom policies created in your AWS + # account. + # + # You can optionally specify the maximum number of items to receive in + # the response. If the total number of items in the list exceeds the + # maximum that you specify, or the default maximum, the response is + # paginated. To get the next page of items, send a subsequent request + # that specifies the `NextMarker` value from the current response as the + # `Marker` value in the subsequent request. + # + # @option params [String] :type + # A filter to return only the specified kinds of cache policies. Valid + # values are: + # + # * `managed` – Returns only the managed policies created by AWS. + # + # * `custom` – Returns only the custom policies created in your AWS + # account. + # + # @option params [String] :marker + # Use this field when paginating results to indicate where to begin in + # your list of cache policies. The response includes cache policies in + # the list that occur after the marker. To get the next page of the + # list, set this field’s value to the value of `NextMarker` from the + # current page’s response. + # + # @option params [Integer] :max_items + # The maximum number of cache policies that you want in the response. + # + # @return [Types::ListCachePoliciesResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods: + # + # * {Types::ListCachePoliciesResult#cache_policy_list #cache_policy_list} => Types::CachePolicyList + # + # @example Request syntax with placeholder values + # + # resp = client.list_cache_policies({ + # type: "managed", # accepts managed, custom + # marker: "string", + # max_items: 1, + # }) + # + # @example Response structure + # + # resp.cache_policy_list.next_marker #=> String + # resp.cache_policy_list.max_items #=> Integer + # resp.cache_policy_list.quantity #=> Integer + # resp.cache_policy_list.items #=> Array + # resp.cache_policy_list.items[0].type #=> String, one of "managed", "custom" + # resp.cache_policy_list.items[0].cache_policy.id #=> String + # resp.cache_policy_list.items[0].cache_policy.last_modified_time #=> Time + # resp.cache_policy_list.items[0].cache_policy.cache_policy_config.comment #=> String + # resp.cache_policy_list.items[0].cache_policy.cache_policy_config.name #=> String + # resp.cache_policy_list.items[0].cache_policy.cache_policy_config.default_ttl #=> Integer + # resp.cache_policy_list.items[0].cache_policy.cache_policy_config.max_ttl #=> Integer + # resp.cache_policy_list.items[0].cache_policy.cache_policy_config.min_ttl #=> Integer + # resp.cache_policy_list.items[0].cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.enable_accept_encoding_gzip #=> Boolean + # resp.cache_policy_list.items[0].cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.headers_config.header_behavior #=> String, one of "none", "whitelist" + # resp.cache_policy_list.items[0].cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.headers_config.headers.quantity #=> Integer + # resp.cache_policy_list.items[0].cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.headers_config.headers.items #=> Array + # resp.cache_policy_list.items[0].cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.headers_config.headers.items[0] #=> String + # resp.cache_policy_list.items[0].cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.cookies_config.cookie_behavior #=> String, one of "none", "whitelist", "allExcept", "all" + # resp.cache_policy_list.items[0].cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.cookies_config.cookies.quantity #=> Integer + # resp.cache_policy_list.items[0].cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.cookies_config.cookies.items #=> Array + # resp.cache_policy_list.items[0].cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.cookies_config.cookies.items[0] #=> String + # resp.cache_policy_list.items[0].cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.query_strings_config.query_string_behavior #=> String, one of "none", "whitelist", "allExcept", "all" + # resp.cache_policy_list.items[0].cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.query_strings_config.query_strings.quantity #=> Integer + # resp.cache_policy_list.items[0].cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.query_strings_config.query_strings.items #=> Array + # resp.cache_policy_list.items[0].cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.query_strings_config.query_strings.items[0] #=> String + # + # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListCachePolicies2020_05_31 AWS API Documentation + # + # @overload list_cache_policies(params = {}) + # @param [Hash] params ({}) + def list_cache_policies(params = {}, options = {}) + req = build_request(:list_cache_policies, params) + req.send_request(options) + end + # Lists origin access identities. # # @option params [String] :marker # Use this when paginating results to indicate where to begin in your # list of origin access identities. The results include identities in @@ -2638,11 +3264,11 @@ # resp.cloud_front_origin_access_identity_list.items #=> Array # resp.cloud_front_origin_access_identity_list.items[0].id #=> String # resp.cloud_front_origin_access_identity_list.items[0].s3_canonical_user_id #=> String # resp.cloud_front_origin_access_identity_list.items[0].comment #=> String # - # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/ListCloudFrontOriginAccessIdentities2019_03_26 AWS API Documentation + # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListCloudFrontOriginAccessIdentities2020_05_31 AWS API Documentation # # @overload list_cloud_front_origin_access_identities(params = {}) # @param [Hash] params ({}) def list_cloud_front_origin_access_identities(params = {}, options = {}) req = build_request(:list_cloud_front_origin_access_identities, params) @@ -2718,80 +3344,84 @@ # resp.distribution_list.items[0].origin_groups.items[0].failover_criteria.status_codes.items[0] #=> Integer # resp.distribution_list.items[0].origin_groups.items[0].members.quantity #=> Integer # resp.distribution_list.items[0].origin_groups.items[0].members.items #=> Array # resp.distribution_list.items[0].origin_groups.items[0].members.items[0].origin_id #=> String # resp.distribution_list.items[0].default_cache_behavior.target_origin_id #=> String - # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.query_string #=> Boolean - # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all" - # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.cookies.whitelisted_names.quantity #=> Integer - # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.cookies.whitelisted_names.items #=> Array - # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.cookies.whitelisted_names.items[0] #=> String - # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.headers.quantity #=> Integer - # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.headers.items #=> Array - # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.headers.items[0] #=> String - # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.query_string_cache_keys.quantity #=> Integer - # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.query_string_cache_keys.items #=> Array - # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.query_string_cache_keys.items[0] #=> String # resp.distribution_list.items[0].default_cache_behavior.trusted_signers.enabled #=> Boolean # resp.distribution_list.items[0].default_cache_behavior.trusted_signers.quantity #=> Integer # resp.distribution_list.items[0].default_cache_behavior.trusted_signers.items #=> Array # resp.distribution_list.items[0].default_cache_behavior.trusted_signers.items[0] #=> String # resp.distribution_list.items[0].default_cache_behavior.viewer_protocol_policy #=> String, one of "allow-all", "https-only", "redirect-to-https" - # resp.distribution_list.items[0].default_cache_behavior.min_ttl #=> Integer # resp.distribution_list.items[0].default_cache_behavior.allowed_methods.quantity #=> Integer # resp.distribution_list.items[0].default_cache_behavior.allowed_methods.items #=> Array # resp.distribution_list.items[0].default_cache_behavior.allowed_methods.items[0] #=> String, one of "GET", "HEAD", "POST", "PUT", "PATCH", "OPTIONS", "DELETE" # resp.distribution_list.items[0].default_cache_behavior.allowed_methods.cached_methods.quantity #=> Integer # resp.distribution_list.items[0].default_cache_behavior.allowed_methods.cached_methods.items #=> Array # resp.distribution_list.items[0].default_cache_behavior.allowed_methods.cached_methods.items[0] #=> String, one of "GET", "HEAD", "POST", "PUT", "PATCH", "OPTIONS", "DELETE" # resp.distribution_list.items[0].default_cache_behavior.smooth_streaming #=> Boolean - # resp.distribution_list.items[0].default_cache_behavior.default_ttl #=> Integer - # resp.distribution_list.items[0].default_cache_behavior.max_ttl #=> Integer # resp.distribution_list.items[0].default_cache_behavior.compress #=> Boolean # resp.distribution_list.items[0].default_cache_behavior.lambda_function_associations.quantity #=> Integer # resp.distribution_list.items[0].default_cache_behavior.lambda_function_associations.items #=> Array # resp.distribution_list.items[0].default_cache_behavior.lambda_function_associations.items[0].lambda_function_arn #=> String # resp.distribution_list.items[0].default_cache_behavior.lambda_function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response" # resp.distribution_list.items[0].default_cache_behavior.lambda_function_associations.items[0].include_body #=> Boolean # resp.distribution_list.items[0].default_cache_behavior.field_level_encryption_id #=> String + # resp.distribution_list.items[0].default_cache_behavior.cache_policy_id #=> String + # resp.distribution_list.items[0].default_cache_behavior.origin_request_policy_id #=> String + # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.query_string #=> Boolean + # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all" + # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.cookies.whitelisted_names.quantity #=> Integer + # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.cookies.whitelisted_names.items #=> Array + # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.cookies.whitelisted_names.items[0] #=> String + # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.headers.quantity #=> Integer + # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.headers.items #=> Array + # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.headers.items[0] #=> String + # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.query_string_cache_keys.quantity #=> Integer + # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.query_string_cache_keys.items #=> Array + # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.query_string_cache_keys.items[0] #=> String + # resp.distribution_list.items[0].default_cache_behavior.min_ttl #=> Integer + # resp.distribution_list.items[0].default_cache_behavior.default_ttl #=> Integer + # resp.distribution_list.items[0].default_cache_behavior.max_ttl #=> Integer # resp.distribution_list.items[0].cache_behaviors.quantity #=> Integer # resp.distribution_list.items[0].cache_behaviors.items #=> Array # resp.distribution_list.items[0].cache_behaviors.items[0].path_pattern #=> String # resp.distribution_list.items[0].cache_behaviors.items[0].target_origin_id #=> String - # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.query_string #=> Boolean - # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all" - # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.quantity #=> Integer - # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.items #=> Array - # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.items[0] #=> String - # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.headers.quantity #=> Integer - # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.headers.items #=> Array - # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.headers.items[0] #=> String - # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.query_string_cache_keys.quantity #=> Integer - # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.query_string_cache_keys.items #=> Array - # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.query_string_cache_keys.items[0] #=> String # resp.distribution_list.items[0].cache_behaviors.items[0].trusted_signers.enabled #=> Boolean # resp.distribution_list.items[0].cache_behaviors.items[0].trusted_signers.quantity #=> Integer # resp.distribution_list.items[0].cache_behaviors.items[0].trusted_signers.items #=> Array # resp.distribution_list.items[0].cache_behaviors.items[0].trusted_signers.items[0] #=> String # resp.distribution_list.items[0].cache_behaviors.items[0].viewer_protocol_policy #=> String, one of "allow-all", "https-only", "redirect-to-https" - # resp.distribution_list.items[0].cache_behaviors.items[0].min_ttl #=> Integer # resp.distribution_list.items[0].cache_behaviors.items[0].allowed_methods.quantity #=> Integer # resp.distribution_list.items[0].cache_behaviors.items[0].allowed_methods.items #=> Array # resp.distribution_list.items[0].cache_behaviors.items[0].allowed_methods.items[0] #=> String, one of "GET", "HEAD", "POST", "PUT", "PATCH", "OPTIONS", "DELETE" # resp.distribution_list.items[0].cache_behaviors.items[0].allowed_methods.cached_methods.quantity #=> Integer # resp.distribution_list.items[0].cache_behaviors.items[0].allowed_methods.cached_methods.items #=> Array # resp.distribution_list.items[0].cache_behaviors.items[0].allowed_methods.cached_methods.items[0] #=> String, one of "GET", "HEAD", "POST", "PUT", "PATCH", "OPTIONS", "DELETE" # resp.distribution_list.items[0].cache_behaviors.items[0].smooth_streaming #=> Boolean - # resp.distribution_list.items[0].cache_behaviors.items[0].default_ttl #=> Integer - # resp.distribution_list.items[0].cache_behaviors.items[0].max_ttl #=> Integer # resp.distribution_list.items[0].cache_behaviors.items[0].compress #=> Boolean # resp.distribution_list.items[0].cache_behaviors.items[0].lambda_function_associations.quantity #=> Integer # resp.distribution_list.items[0].cache_behaviors.items[0].lambda_function_associations.items #=> Array # resp.distribution_list.items[0].cache_behaviors.items[0].lambda_function_associations.items[0].lambda_function_arn #=> String # resp.distribution_list.items[0].cache_behaviors.items[0].lambda_function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response" # resp.distribution_list.items[0].cache_behaviors.items[0].lambda_function_associations.items[0].include_body #=> Boolean # resp.distribution_list.items[0].cache_behaviors.items[0].field_level_encryption_id #=> String + # resp.distribution_list.items[0].cache_behaviors.items[0].cache_policy_id #=> String + # resp.distribution_list.items[0].cache_behaviors.items[0].origin_request_policy_id #=> String + # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.query_string #=> Boolean + # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all" + # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.quantity #=> Integer + # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.items #=> Array + # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.items[0] #=> String + # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.headers.quantity #=> Integer + # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.headers.items #=> Array + # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.headers.items[0] #=> String + # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.query_string_cache_keys.quantity #=> Integer + # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.query_string_cache_keys.items #=> Array + # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.query_string_cache_keys.items[0] #=> String + # resp.distribution_list.items[0].cache_behaviors.items[0].min_ttl #=> Integer + # resp.distribution_list.items[0].cache_behaviors.items[0].default_ttl #=> Integer + # resp.distribution_list.items[0].cache_behaviors.items[0].max_ttl #=> Integer # resp.distribution_list.items[0].custom_error_responses.quantity #=> Integer # resp.distribution_list.items[0].custom_error_responses.items #=> Array # resp.distribution_list.items[0].custom_error_responses.items[0].error_code #=> Integer # resp.distribution_list.items[0].custom_error_responses.items[0].response_page_path #=> String # resp.distribution_list.items[0].custom_error_responses.items[0].response_code #=> String @@ -2815,19 +3445,129 @@ # resp.distribution_list.items[0].is_ipv6_enabled #=> Boolean # resp.distribution_list.items[0].alias_icp_recordals #=> Array # resp.distribution_list.items[0].alias_icp_recordals[0].cname #=> String # resp.distribution_list.items[0].alias_icp_recordals[0].icp_recordal_status #=> String, one of "APPROVED", "SUSPENDED", "PENDING" # - # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/ListDistributions2019_03_26 AWS API Documentation + # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListDistributions2020_05_31 AWS API Documentation # # @overload list_distributions(params = {}) # @param [Hash] params ({}) def list_distributions(params = {}, options = {}) req = build_request(:list_distributions, params) req.send_request(options) end + # Gets a list of distribution IDs for distributions that have a cache + # behavior that’s associated with the specified cache policy. + # + # You can optionally specify the maximum number of items to receive in + # the response. If the total number of items in the list exceeds the + # maximum that you specify, or the default maximum, the response is + # paginated. To get the next page of items, send a subsequent request + # that specifies the `NextMarker` value from the current response as the + # `Marker` value in the subsequent request. + # + # @option params [String] :marker + # Use this field when paginating results to indicate where to begin in + # your list of distribution IDs. The response includes distribution IDs + # in the list that occur after the marker. To get the next page of the + # list, set this field’s value to the value of `NextMarker` from the + # current page’s response. + # + # @option params [Integer] :max_items + # The maximum number of distribution IDs that you want in the response. + # + # @option params [required, String] :cache_policy_id + # The ID of the cache policy whose associated distribution IDs you want + # to list. + # + # @return [Types::ListDistributionsByCachePolicyIdResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods: + # + # * {Types::ListDistributionsByCachePolicyIdResult#distribution_id_list #distribution_id_list} => Types::DistributionIdList + # + # @example Request syntax with placeholder values + # + # resp = client.list_distributions_by_cache_policy_id({ + # marker: "string", + # max_items: 1, + # cache_policy_id: "string", # required + # }) + # + # @example Response structure + # + # resp.distribution_id_list.marker #=> String + # resp.distribution_id_list.next_marker #=> String + # resp.distribution_id_list.max_items #=> Integer + # resp.distribution_id_list.is_truncated #=> Boolean + # resp.distribution_id_list.quantity #=> Integer + # resp.distribution_id_list.items #=> Array + # resp.distribution_id_list.items[0] #=> String + # + # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListDistributionsByCachePolicyId2020_05_31 AWS API Documentation + # + # @overload list_distributions_by_cache_policy_id(params = {}) + # @param [Hash] params ({}) + def list_distributions_by_cache_policy_id(params = {}, options = {}) + req = build_request(:list_distributions_by_cache_policy_id, params) + req.send_request(options) + end + + # Gets a list of distribution IDs for distributions that have a cache + # behavior that’s associated with the specified origin request policy. + # + # You can optionally specify the maximum number of items to receive in + # the response. If the total number of items in the list exceeds the + # maximum that you specify, or the default maximum, the response is + # paginated. To get the next page of items, send a subsequent request + # that specifies the `NextMarker` value from the current response as the + # `Marker` value in the subsequent request. + # + # @option params [String] :marker + # Use this field when paginating results to indicate where to begin in + # your list of distribution IDs. The response includes distribution IDs + # in the list that occur after the marker. To get the next page of the + # list, set this field’s value to the value of `NextMarker` from the + # current page’s response. + # + # @option params [Integer] :max_items + # The maximum number of distribution IDs that you want in the response. + # + # @option params [required, String] :origin_request_policy_id + # The ID of the origin request policy whose associated distribution IDs + # you want to list. + # + # @return [Types::ListDistributionsByOriginRequestPolicyIdResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods: + # + # * {Types::ListDistributionsByOriginRequestPolicyIdResult#distribution_id_list #distribution_id_list} => Types::DistributionIdList + # + # @example Request syntax with placeholder values + # + # resp = client.list_distributions_by_origin_request_policy_id({ + # marker: "string", + # max_items: 1, + # origin_request_policy_id: "string", # required + # }) + # + # @example Response structure + # + # resp.distribution_id_list.marker #=> String + # resp.distribution_id_list.next_marker #=> String + # resp.distribution_id_list.max_items #=> Integer + # resp.distribution_id_list.is_truncated #=> Boolean + # resp.distribution_id_list.quantity #=> Integer + # resp.distribution_id_list.items #=> Array + # resp.distribution_id_list.items[0] #=> String + # + # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListDistributionsByOriginRequestPolicyId2020_05_31 AWS API Documentation + # + # @overload list_distributions_by_origin_request_policy_id(params = {}) + # @param [Hash] params ({}) + def list_distributions_by_origin_request_policy_id(params = {}, options = {}) + req = build_request(:list_distributions_by_origin_request_policy_id, params) + req.send_request(options) + end + # List the distributions that are associated with a specified AWS WAF # web ACL. # # @option params [String] :marker # Use `Marker` and `MaxItems` to control pagination of results. If you @@ -2902,80 +3642,84 @@ # resp.distribution_list.items[0].origin_groups.items[0].failover_criteria.status_codes.items[0] #=> Integer # resp.distribution_list.items[0].origin_groups.items[0].members.quantity #=> Integer # resp.distribution_list.items[0].origin_groups.items[0].members.items #=> Array # resp.distribution_list.items[0].origin_groups.items[0].members.items[0].origin_id #=> String # resp.distribution_list.items[0].default_cache_behavior.target_origin_id #=> String - # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.query_string #=> Boolean - # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all" - # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.cookies.whitelisted_names.quantity #=> Integer - # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.cookies.whitelisted_names.items #=> Array - # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.cookies.whitelisted_names.items[0] #=> String - # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.headers.quantity #=> Integer - # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.headers.items #=> Array - # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.headers.items[0] #=> String - # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.query_string_cache_keys.quantity #=> Integer - # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.query_string_cache_keys.items #=> Array - # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.query_string_cache_keys.items[0] #=> String # resp.distribution_list.items[0].default_cache_behavior.trusted_signers.enabled #=> Boolean # resp.distribution_list.items[0].default_cache_behavior.trusted_signers.quantity #=> Integer # resp.distribution_list.items[0].default_cache_behavior.trusted_signers.items #=> Array # resp.distribution_list.items[0].default_cache_behavior.trusted_signers.items[0] #=> String # resp.distribution_list.items[0].default_cache_behavior.viewer_protocol_policy #=> String, one of "allow-all", "https-only", "redirect-to-https" - # resp.distribution_list.items[0].default_cache_behavior.min_ttl #=> Integer # resp.distribution_list.items[0].default_cache_behavior.allowed_methods.quantity #=> Integer # resp.distribution_list.items[0].default_cache_behavior.allowed_methods.items #=> Array # resp.distribution_list.items[0].default_cache_behavior.allowed_methods.items[0] #=> String, one of "GET", "HEAD", "POST", "PUT", "PATCH", "OPTIONS", "DELETE" # resp.distribution_list.items[0].default_cache_behavior.allowed_methods.cached_methods.quantity #=> Integer # resp.distribution_list.items[0].default_cache_behavior.allowed_methods.cached_methods.items #=> Array # resp.distribution_list.items[0].default_cache_behavior.allowed_methods.cached_methods.items[0] #=> String, one of "GET", "HEAD", "POST", "PUT", "PATCH", "OPTIONS", "DELETE" # resp.distribution_list.items[0].default_cache_behavior.smooth_streaming #=> Boolean - # resp.distribution_list.items[0].default_cache_behavior.default_ttl #=> Integer - # resp.distribution_list.items[0].default_cache_behavior.max_ttl #=> Integer # resp.distribution_list.items[0].default_cache_behavior.compress #=> Boolean # resp.distribution_list.items[0].default_cache_behavior.lambda_function_associations.quantity #=> Integer # resp.distribution_list.items[0].default_cache_behavior.lambda_function_associations.items #=> Array # resp.distribution_list.items[0].default_cache_behavior.lambda_function_associations.items[0].lambda_function_arn #=> String # resp.distribution_list.items[0].default_cache_behavior.lambda_function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response" # resp.distribution_list.items[0].default_cache_behavior.lambda_function_associations.items[0].include_body #=> Boolean # resp.distribution_list.items[0].default_cache_behavior.field_level_encryption_id #=> String + # resp.distribution_list.items[0].default_cache_behavior.cache_policy_id #=> String + # resp.distribution_list.items[0].default_cache_behavior.origin_request_policy_id #=> String + # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.query_string #=> Boolean + # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all" + # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.cookies.whitelisted_names.quantity #=> Integer + # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.cookies.whitelisted_names.items #=> Array + # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.cookies.whitelisted_names.items[0] #=> String + # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.headers.quantity #=> Integer + # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.headers.items #=> Array + # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.headers.items[0] #=> String + # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.query_string_cache_keys.quantity #=> Integer + # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.query_string_cache_keys.items #=> Array + # resp.distribution_list.items[0].default_cache_behavior.forwarded_values.query_string_cache_keys.items[0] #=> String + # resp.distribution_list.items[0].default_cache_behavior.min_ttl #=> Integer + # resp.distribution_list.items[0].default_cache_behavior.default_ttl #=> Integer + # resp.distribution_list.items[0].default_cache_behavior.max_ttl #=> Integer # resp.distribution_list.items[0].cache_behaviors.quantity #=> Integer # resp.distribution_list.items[0].cache_behaviors.items #=> Array # resp.distribution_list.items[0].cache_behaviors.items[0].path_pattern #=> String # resp.distribution_list.items[0].cache_behaviors.items[0].target_origin_id #=> String - # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.query_string #=> Boolean - # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all" - # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.quantity #=> Integer - # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.items #=> Array - # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.items[0] #=> String - # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.headers.quantity #=> Integer - # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.headers.items #=> Array - # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.headers.items[0] #=> String - # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.query_string_cache_keys.quantity #=> Integer - # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.query_string_cache_keys.items #=> Array - # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.query_string_cache_keys.items[0] #=> String # resp.distribution_list.items[0].cache_behaviors.items[0].trusted_signers.enabled #=> Boolean # resp.distribution_list.items[0].cache_behaviors.items[0].trusted_signers.quantity #=> Integer # resp.distribution_list.items[0].cache_behaviors.items[0].trusted_signers.items #=> Array # resp.distribution_list.items[0].cache_behaviors.items[0].trusted_signers.items[0] #=> String # resp.distribution_list.items[0].cache_behaviors.items[0].viewer_protocol_policy #=> String, one of "allow-all", "https-only", "redirect-to-https" - # resp.distribution_list.items[0].cache_behaviors.items[0].min_ttl #=> Integer # resp.distribution_list.items[0].cache_behaviors.items[0].allowed_methods.quantity #=> Integer # resp.distribution_list.items[0].cache_behaviors.items[0].allowed_methods.items #=> Array # resp.distribution_list.items[0].cache_behaviors.items[0].allowed_methods.items[0] #=> String, one of "GET", "HEAD", "POST", "PUT", "PATCH", "OPTIONS", "DELETE" # resp.distribution_list.items[0].cache_behaviors.items[0].allowed_methods.cached_methods.quantity #=> Integer # resp.distribution_list.items[0].cache_behaviors.items[0].allowed_methods.cached_methods.items #=> Array # resp.distribution_list.items[0].cache_behaviors.items[0].allowed_methods.cached_methods.items[0] #=> String, one of "GET", "HEAD", "POST", "PUT", "PATCH", "OPTIONS", "DELETE" # resp.distribution_list.items[0].cache_behaviors.items[0].smooth_streaming #=> Boolean - # resp.distribution_list.items[0].cache_behaviors.items[0].default_ttl #=> Integer - # resp.distribution_list.items[0].cache_behaviors.items[0].max_ttl #=> Integer # resp.distribution_list.items[0].cache_behaviors.items[0].compress #=> Boolean # resp.distribution_list.items[0].cache_behaviors.items[0].lambda_function_associations.quantity #=> Integer # resp.distribution_list.items[0].cache_behaviors.items[0].lambda_function_associations.items #=> Array # resp.distribution_list.items[0].cache_behaviors.items[0].lambda_function_associations.items[0].lambda_function_arn #=> String # resp.distribution_list.items[0].cache_behaviors.items[0].lambda_function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response" # resp.distribution_list.items[0].cache_behaviors.items[0].lambda_function_associations.items[0].include_body #=> Boolean # resp.distribution_list.items[0].cache_behaviors.items[0].field_level_encryption_id #=> String + # resp.distribution_list.items[0].cache_behaviors.items[0].cache_policy_id #=> String + # resp.distribution_list.items[0].cache_behaviors.items[0].origin_request_policy_id #=> String + # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.query_string #=> Boolean + # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all" + # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.quantity #=> Integer + # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.items #=> Array + # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.items[0] #=> String + # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.headers.quantity #=> Integer + # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.headers.items #=> Array + # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.headers.items[0] #=> String + # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.query_string_cache_keys.quantity #=> Integer + # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.query_string_cache_keys.items #=> Array + # resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.query_string_cache_keys.items[0] #=> String + # resp.distribution_list.items[0].cache_behaviors.items[0].min_ttl #=> Integer + # resp.distribution_list.items[0].cache_behaviors.items[0].default_ttl #=> Integer + # resp.distribution_list.items[0].cache_behaviors.items[0].max_ttl #=> Integer # resp.distribution_list.items[0].custom_error_responses.quantity #=> Integer # resp.distribution_list.items[0].custom_error_responses.items #=> Array # resp.distribution_list.items[0].custom_error_responses.items[0].error_code #=> Integer # resp.distribution_list.items[0].custom_error_responses.items[0].response_page_path #=> String # resp.distribution_list.items[0].custom_error_responses.items[0].response_code #=> String @@ -2999,11 +3743,11 @@ # resp.distribution_list.items[0].is_ipv6_enabled #=> Boolean # resp.distribution_list.items[0].alias_icp_recordals #=> Array # resp.distribution_list.items[0].alias_icp_recordals[0].cname #=> String # resp.distribution_list.items[0].alias_icp_recordals[0].icp_recordal_status #=> String, one of "APPROVED", "SUSPENDED", "PENDING" # - # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/ListDistributionsByWebACLId2019_03_26 AWS API Documentation + # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListDistributionsByWebACLId2020_05_31 AWS API Documentation # # @overload list_distributions_by_web_acl_id(params = {}) # @param [Hash] params ({}) def list_distributions_by_web_acl_id(params = {}, options = {}) req = build_request(:list_distributions_by_web_acl_id, params) @@ -3055,11 +3799,11 @@ # resp.field_level_encryption_list.items[0].content_type_profile_config.content_type_profiles.items #=> Array # resp.field_level_encryption_list.items[0].content_type_profile_config.content_type_profiles.items[0].format #=> String, one of "URLEncoded" # resp.field_level_encryption_list.items[0].content_type_profile_config.content_type_profiles.items[0].profile_id #=> String # resp.field_level_encryption_list.items[0].content_type_profile_config.content_type_profiles.items[0].content_type #=> String # - # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/ListFieldLevelEncryptionConfigs2019_03_26 AWS API Documentation + # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListFieldLevelEncryptionConfigs2020_05_31 AWS API Documentation # # @overload list_field_level_encryption_configs(params = {}) # @param [Hash] params ({}) def list_field_level_encryption_configs(params = {}, options = {}) req = build_request(:list_field_level_encryption_configs, params) @@ -3107,11 +3851,11 @@ # resp.field_level_encryption_profile_list.items[0].encryption_entities.items[0].field_patterns.quantity #=> Integer # resp.field_level_encryption_profile_list.items[0].encryption_entities.items[0].field_patterns.items #=> Array # resp.field_level_encryption_profile_list.items[0].encryption_entities.items[0].field_patterns.items[0] #=> String # resp.field_level_encryption_profile_list.items[0].comment #=> String # - # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/ListFieldLevelEncryptionProfiles2019_03_26 AWS API Documentation + # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListFieldLevelEncryptionProfiles2020_05_31 AWS API Documentation # # @overload list_field_level_encryption_profiles(params = {}) # @param [Hash] params ({}) def list_field_level_encryption_profiles(params = {}, options = {}) req = build_request(:list_field_level_encryption_profiles, params) @@ -3161,19 +3905,97 @@ # resp.invalidation_list.items #=> Array # resp.invalidation_list.items[0].id #=> String # resp.invalidation_list.items[0].create_time #=> Time # resp.invalidation_list.items[0].status #=> String # - # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/ListInvalidations2019_03_26 AWS API Documentation + # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListInvalidations2020_05_31 AWS API Documentation # # @overload list_invalidations(params = {}) # @param [Hash] params ({}) def list_invalidations(params = {}, options = {}) req = build_request(:list_invalidations, params) req.send_request(options) end + # Gets a list of origin request policies. + # + # You can optionally apply a filter to return only the managed policies + # created by AWS, or only the custom policies created in your AWS + # account. + # + # You can optionally specify the maximum number of items to receive in + # the response. If the total number of items in the list exceeds the + # maximum that you specify, or the default maximum, the response is + # paginated. To get the next page of items, send a subsequent request + # that specifies the `NextMarker` value from the current response as the + # `Marker` value in the subsequent request. + # + # @option params [String] :type + # A filter to return only the specified kinds of origin request + # policies. Valid values are: + # + # * `managed` – Returns only the managed policies created by AWS. + # + # * `custom` – Returns only the custom policies created in your AWS + # account. + # + # @option params [String] :marker + # Use this field when paginating results to indicate where to begin in + # your list of origin request policies. The response includes origin + # request policies in the list that occur after the marker. To get the + # next page of the list, set this field’s value to the value of + # `NextMarker` from the current page’s response. + # + # @option params [Integer] :max_items + # The maximum number of origin request policies that you want in the + # response. + # + # @return [Types::ListOriginRequestPoliciesResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods: + # + # * {Types::ListOriginRequestPoliciesResult#origin_request_policy_list #origin_request_policy_list} => Types::OriginRequestPolicyList + # + # @example Request syntax with placeholder values + # + # resp = client.list_origin_request_policies({ + # type: "managed", # accepts managed, custom + # marker: "string", + # max_items: 1, + # }) + # + # @example Response structure + # + # resp.origin_request_policy_list.next_marker #=> String + # resp.origin_request_policy_list.max_items #=> Integer + # resp.origin_request_policy_list.quantity #=> Integer + # resp.origin_request_policy_list.items #=> Array + # resp.origin_request_policy_list.items[0].type #=> String, one of "managed", "custom" + # resp.origin_request_policy_list.items[0].origin_request_policy.id #=> String + # resp.origin_request_policy_list.items[0].origin_request_policy.last_modified_time #=> Time + # resp.origin_request_policy_list.items[0].origin_request_policy.origin_request_policy_config.comment #=> String + # resp.origin_request_policy_list.items[0].origin_request_policy.origin_request_policy_config.name #=> String + # resp.origin_request_policy_list.items[0].origin_request_policy.origin_request_policy_config.headers_config.header_behavior #=> String, one of "none", "whitelist", "allViewer", "allViewerAndWhitelistCloudFront" + # resp.origin_request_policy_list.items[0].origin_request_policy.origin_request_policy_config.headers_config.headers.quantity #=> Integer + # resp.origin_request_policy_list.items[0].origin_request_policy.origin_request_policy_config.headers_config.headers.items #=> Array + # resp.origin_request_policy_list.items[0].origin_request_policy.origin_request_policy_config.headers_config.headers.items[0] #=> String + # resp.origin_request_policy_list.items[0].origin_request_policy.origin_request_policy_config.cookies_config.cookie_behavior #=> String, one of "none", "whitelist", "all" + # resp.origin_request_policy_list.items[0].origin_request_policy.origin_request_policy_config.cookies_config.cookies.quantity #=> Integer + # resp.origin_request_policy_list.items[0].origin_request_policy.origin_request_policy_config.cookies_config.cookies.items #=> Array + # resp.origin_request_policy_list.items[0].origin_request_policy.origin_request_policy_config.cookies_config.cookies.items[0] #=> String + # resp.origin_request_policy_list.items[0].origin_request_policy.origin_request_policy_config.query_strings_config.query_string_behavior #=> String, one of "none", "whitelist", "all" + # resp.origin_request_policy_list.items[0].origin_request_policy.origin_request_policy_config.query_strings_config.query_strings.quantity #=> Integer + # resp.origin_request_policy_list.items[0].origin_request_policy.origin_request_policy_config.query_strings_config.query_strings.items #=> Array + # resp.origin_request_policy_list.items[0].origin_request_policy.origin_request_policy_config.query_strings_config.query_strings.items[0] #=> String + # + # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListOriginRequestPolicies2020_05_31 AWS API Documentation + # + # @overload list_origin_request_policies(params = {}) + # @param [Hash] params ({}) + def list_origin_request_policies(params = {}, options = {}) + req = build_request(:list_origin_request_policies, params) + req.send_request(options) + end + # List all public keys that have been added to CloudFront for this # account. # # @option params [String] :marker # Use this when paginating results to indicate where to begin in your @@ -3206,11 +4028,11 @@ # resp.public_key_list.items[0].name #=> String # resp.public_key_list.items[0].created_time #=> Time # resp.public_key_list.items[0].encoded_key #=> String # resp.public_key_list.items[0].comment #=> String # - # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/ListPublicKeys2019_03_26 AWS API Documentation + # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListPublicKeys2020_05_31 AWS API Documentation # # @overload list_public_keys(params = {}) # @param [Hash] params ({}) def list_public_keys(params = {}, options = {}) req = build_request(:list_public_keys, params) @@ -3262,11 +4084,11 @@ # resp.streaming_distribution_list.items[0].trusted_signers.items[0] #=> String # resp.streaming_distribution_list.items[0].comment #=> String # resp.streaming_distribution_list.items[0].price_class #=> String, one of "PriceClass_100", "PriceClass_200", "PriceClass_All" # resp.streaming_distribution_list.items[0].enabled #=> Boolean # - # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/ListStreamingDistributions2019_03_26 AWS API Documentation + # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListStreamingDistributions2020_05_31 AWS API Documentation # # @overload list_streaming_distributions(params = {}) # @param [Hash] params ({}) def list_streaming_distributions(params = {}, options = {}) req = build_request(:list_streaming_distributions, params) @@ -3292,11 +4114,11 @@ # # resp.tags.items #=> Array # resp.tags.items[0].key #=> String # resp.tags.items[0].value #=> String # - # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/ListTagsForResource2019_03_26 AWS API Documentation + # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListTagsForResource2020_05_31 AWS API Documentation # # @overload list_tags_for_resource(params = {}) # @param [Hash] params ({}) def list_tags_for_resource(params = {}, options = {}) req = build_request(:list_tags_for_resource, params) @@ -3325,11 +4147,11 @@ # }, # ], # }, # }) # - # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/TagResource2019_03_26 AWS API Documentation + # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/TagResource2020_05_31 AWS API Documentation # # @overload tag_resource(params = {}) # @param [Hash] params ({}) def tag_resource(params = {}, options = {}) req = build_request(:tag_resource, params) @@ -3353,19 +4175,124 @@ # tag_keys: { # required # items: ["TagKey"], # }, # }) # - # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/UntagResource2019_03_26 AWS API Documentation + # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UntagResource2020_05_31 AWS API Documentation # # @overload untag_resource(params = {}) # @param [Hash] params ({}) def untag_resource(params = {}, options = {}) req = build_request(:untag_resource, params) req.send_request(options) end + # Updates a cache policy configuration. + # + # When you update a cache policy configuration, all the fields are + # updated with the values provided in the request. You cannot update + # some fields independent of others. To update a cache policy + # configuration: + # + # 1. Use `GetCachePolicyConfig` to get the current configuration. + # + # 2. Locally modify the fields in the cache policy configuration that + # you want to update. + # + # 3. Call `UpdateCachePolicy` by providing the entire cache policy + # configuration, including the fields that you modified and those + # that you didn’t. + # + # @option params [required, Types::CachePolicyConfig] :cache_policy_config + # A cache policy configuration. + # + # @option params [required, String] :id + # The unique identifier for the cache policy that you are updating. The + # identifier is returned in a cache behavior’s `CachePolicyId` field in + # the response to `GetDistributionConfig`. + # + # @option params [String] :if_match + # The version of the cache policy that you are updating. The version is + # returned in the cache policy’s `ETag` field in the response to + # `GetCachePolicyConfig`. + # + # @return [Types::UpdateCachePolicyResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods: + # + # * {Types::UpdateCachePolicyResult#cache_policy #cache_policy} => Types::CachePolicy + # * {Types::UpdateCachePolicyResult#etag #etag} => String + # + # @example Request syntax with placeholder values + # + # resp = client.update_cache_policy({ + # cache_policy_config: { # required + # comment: "string", + # name: "string", # required + # default_ttl: 1, + # max_ttl: 1, + # min_ttl: 1, # required + # parameters_in_cache_key_and_forwarded_to_origin: { + # enable_accept_encoding_gzip: false, # required + # headers_config: { # required + # header_behavior: "none", # required, accepts none, whitelist + # headers: { + # quantity: 1, # required + # items: ["string"], + # }, + # }, + # cookies_config: { # required + # cookie_behavior: "none", # required, accepts none, whitelist, allExcept, all + # cookies: { + # quantity: 1, # required + # items: ["string"], + # }, + # }, + # query_strings_config: { # required + # query_string_behavior: "none", # required, accepts none, whitelist, allExcept, all + # query_strings: { + # quantity: 1, # required + # items: ["string"], + # }, + # }, + # }, + # }, + # id: "string", # required + # if_match: "string", + # }) + # + # @example Response structure + # + # resp.cache_policy.id #=> String + # resp.cache_policy.last_modified_time #=> Time + # resp.cache_policy.cache_policy_config.comment #=> String + # resp.cache_policy.cache_policy_config.name #=> String + # resp.cache_policy.cache_policy_config.default_ttl #=> Integer + # resp.cache_policy.cache_policy_config.max_ttl #=> Integer + # resp.cache_policy.cache_policy_config.min_ttl #=> Integer + # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.enable_accept_encoding_gzip #=> Boolean + # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.headers_config.header_behavior #=> String, one of "none", "whitelist" + # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.headers_config.headers.quantity #=> Integer + # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.headers_config.headers.items #=> Array + # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.headers_config.headers.items[0] #=> String + # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.cookies_config.cookie_behavior #=> String, one of "none", "whitelist", "allExcept", "all" + # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.cookies_config.cookies.quantity #=> Integer + # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.cookies_config.cookies.items #=> Array + # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.cookies_config.cookies.items[0] #=> String + # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.query_strings_config.query_string_behavior #=> String, one of "none", "whitelist", "allExcept", "all" + # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.query_strings_config.query_strings.quantity #=> Integer + # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.query_strings_config.query_strings.items #=> Array + # resp.cache_policy.cache_policy_config.parameters_in_cache_key_and_forwarded_to_origin.query_strings_config.query_strings.items[0] #=> String + # resp.etag #=> String + # + # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateCachePolicy2020_05_31 AWS API Documentation + # + # @overload update_cache_policy(params = {}) + # @param [Hash] params ({}) + def update_cache_policy(params = {}, options = {}) + req = build_request(:update_cache_policy, params) + req.send_request(options) + end + # Update an origin access identity. # # @option params [required, Types::CloudFrontOriginAccessIdentityConfig] :cloud_front_origin_access_identity_config # The identity's configuration information. # @@ -3398,11 +4325,11 @@ # resp.cloud_front_origin_access_identity.s3_canonical_user_id #=> String # resp.cloud_front_origin_access_identity.cloud_front_origin_access_identity_config.caller_reference #=> String # resp.cloud_front_origin_access_identity.cloud_front_origin_access_identity_config.comment #=> String # resp.etag #=> String # - # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/UpdateCloudFrontOriginAccessIdentity2019_03_26 AWS API Documentation + # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateCloudFrontOriginAccessIdentity2020_05_31 AWS API Documentation # # @overload update_cloud_front_origin_access_identity(params = {}) # @param [Hash] params ({}) def update_cloud_front_origin_access_identity(params = {}, options = {}) req = build_request(:update_cloud_front_origin_access_identity, params) @@ -3568,46 +4495,25 @@ # }, # ], # }, # default_cache_behavior: { # required # target_origin_id: "string", # required - # forwarded_values: { # required - # 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"], - # }, - # }, # trusted_signers: { # required # enabled: false, # required # quantity: 1, # required # items: ["string"], # }, # viewer_protocol_policy: "allow-all", # required, accepts allow-all, https-only, redirect-to-https - # min_ttl: 1, # required # 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, - # default_ttl: 1, - # max_ttl: 1, # compress: false, # lambda_function_associations: { # quantity: 1, # required # items: [ # { @@ -3616,53 +4522,55 @@ # include_body: false, # }, # ], # }, # field_level_encryption_id: "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, # }, # cache_behaviors: { # quantity: 1, # required # items: [ # { # path_pattern: "string", # required # target_origin_id: "string", # required - # forwarded_values: { # required - # 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"], - # }, - # }, # trusted_signers: { # required # enabled: false, # required # quantity: 1, # required # items: ["string"], # }, # viewer_protocol_policy: "allow-all", # required, accepts allow-all, https-only, redirect-to-https - # min_ttl: 1, # required # 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, - # default_ttl: 1, - # max_ttl: 1, # compress: false, # lambda_function_associations: { # quantity: 1, # required # items: [ # { @@ -3671,10 +4579,33 @@ # include_body: false, # }, # ], # }, # field_level_encryption_id: "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, # }, # ], # }, # custom_error_responses: { # quantity: 1, # required @@ -3768,80 +4699,84 @@ # resp.distribution.distribution_config.origin_groups.items[0].failover_criteria.status_codes.items[0] #=> Integer # resp.distribution.distribution_config.origin_groups.items[0].members.quantity #=> Integer # resp.distribution.distribution_config.origin_groups.items[0].members.items #=> Array # resp.distribution.distribution_config.origin_groups.items[0].members.items[0].origin_id #=> String # resp.distribution.distribution_config.default_cache_behavior.target_origin_id #=> String - # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string #=> Boolean - # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all" - # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.quantity #=> Integer - # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.items #=> Array - # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.items[0] #=> String - # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.headers.quantity #=> Integer - # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.headers.items #=> Array - # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.headers.items[0] #=> String - # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string_cache_keys.quantity #=> Integer - # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string_cache_keys.items #=> Array - # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string_cache_keys.items[0] #=> String # resp.distribution.distribution_config.default_cache_behavior.trusted_signers.enabled #=> Boolean # resp.distribution.distribution_config.default_cache_behavior.trusted_signers.quantity #=> Integer # resp.distribution.distribution_config.default_cache_behavior.trusted_signers.items #=> Array # resp.distribution.distribution_config.default_cache_behavior.trusted_signers.items[0] #=> String # resp.distribution.distribution_config.default_cache_behavior.viewer_protocol_policy #=> String, one of "allow-all", "https-only", "redirect-to-https" - # resp.distribution.distribution_config.default_cache_behavior.min_ttl #=> Integer # resp.distribution.distribution_config.default_cache_behavior.allowed_methods.quantity #=> Integer # resp.distribution.distribution_config.default_cache_behavior.allowed_methods.items #=> Array # resp.distribution.distribution_config.default_cache_behavior.allowed_methods.items[0] #=> String, one of "GET", "HEAD", "POST", "PUT", "PATCH", "OPTIONS", "DELETE" # resp.distribution.distribution_config.default_cache_behavior.allowed_methods.cached_methods.quantity #=> Integer # resp.distribution.distribution_config.default_cache_behavior.allowed_methods.cached_methods.items #=> Array # resp.distribution.distribution_config.default_cache_behavior.allowed_methods.cached_methods.items[0] #=> String, one of "GET", "HEAD", "POST", "PUT", "PATCH", "OPTIONS", "DELETE" # resp.distribution.distribution_config.default_cache_behavior.smooth_streaming #=> Boolean - # resp.distribution.distribution_config.default_cache_behavior.default_ttl #=> Integer - # resp.distribution.distribution_config.default_cache_behavior.max_ttl #=> Integer # resp.distribution.distribution_config.default_cache_behavior.compress #=> Boolean # resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.quantity #=> Integer # resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.items #=> Array # resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.items[0].lambda_function_arn #=> String # resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response" # resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.items[0].include_body #=> Boolean # resp.distribution.distribution_config.default_cache_behavior.field_level_encryption_id #=> String + # resp.distribution.distribution_config.default_cache_behavior.cache_policy_id #=> String + # resp.distribution.distribution_config.default_cache_behavior.origin_request_policy_id #=> String + # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string #=> Boolean + # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all" + # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.quantity #=> Integer + # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.items #=> Array + # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.items[0] #=> String + # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.headers.quantity #=> Integer + # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.headers.items #=> Array + # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.headers.items[0] #=> String + # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string_cache_keys.quantity #=> Integer + # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string_cache_keys.items #=> Array + # resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string_cache_keys.items[0] #=> String + # resp.distribution.distribution_config.default_cache_behavior.min_ttl #=> Integer + # resp.distribution.distribution_config.default_cache_behavior.default_ttl #=> Integer + # resp.distribution.distribution_config.default_cache_behavior.max_ttl #=> Integer # resp.distribution.distribution_config.cache_behaviors.quantity #=> Integer # resp.distribution.distribution_config.cache_behaviors.items #=> Array # resp.distribution.distribution_config.cache_behaviors.items[0].path_pattern #=> String # resp.distribution.distribution_config.cache_behaviors.items[0].target_origin_id #=> String - # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string #=> Boolean - # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all" - # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.quantity #=> Integer - # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.items #=> Array - # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.items[0] #=> String - # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.headers.quantity #=> Integer - # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.headers.items #=> Array - # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.headers.items[0] #=> String - # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string_cache_keys.quantity #=> Integer - # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string_cache_keys.items #=> Array - # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string_cache_keys.items[0] #=> String # resp.distribution.distribution_config.cache_behaviors.items[0].trusted_signers.enabled #=> Boolean # resp.distribution.distribution_config.cache_behaviors.items[0].trusted_signers.quantity #=> Integer # resp.distribution.distribution_config.cache_behaviors.items[0].trusted_signers.items #=> Array # resp.distribution.distribution_config.cache_behaviors.items[0].trusted_signers.items[0] #=> String # resp.distribution.distribution_config.cache_behaviors.items[0].viewer_protocol_policy #=> String, one of "allow-all", "https-only", "redirect-to-https" - # resp.distribution.distribution_config.cache_behaviors.items[0].min_ttl #=> Integer # resp.distribution.distribution_config.cache_behaviors.items[0].allowed_methods.quantity #=> Integer # resp.distribution.distribution_config.cache_behaviors.items[0].allowed_methods.items #=> Array # resp.distribution.distribution_config.cache_behaviors.items[0].allowed_methods.items[0] #=> String, one of "GET", "HEAD", "POST", "PUT", "PATCH", "OPTIONS", "DELETE" # resp.distribution.distribution_config.cache_behaviors.items[0].allowed_methods.cached_methods.quantity #=> Integer # resp.distribution.distribution_config.cache_behaviors.items[0].allowed_methods.cached_methods.items #=> Array # resp.distribution.distribution_config.cache_behaviors.items[0].allowed_methods.cached_methods.items[0] #=> String, one of "GET", "HEAD", "POST", "PUT", "PATCH", "OPTIONS", "DELETE" # resp.distribution.distribution_config.cache_behaviors.items[0].smooth_streaming #=> Boolean - # resp.distribution.distribution_config.cache_behaviors.items[0].default_ttl #=> Integer - # resp.distribution.distribution_config.cache_behaviors.items[0].max_ttl #=> Integer # resp.distribution.distribution_config.cache_behaviors.items[0].compress #=> Boolean # resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.quantity #=> Integer # resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.items #=> Array # resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.items[0].lambda_function_arn #=> String # resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response" # resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.items[0].include_body #=> Boolean # resp.distribution.distribution_config.cache_behaviors.items[0].field_level_encryption_id #=> String + # resp.distribution.distribution_config.cache_behaviors.items[0].cache_policy_id #=> String + # resp.distribution.distribution_config.cache_behaviors.items[0].origin_request_policy_id #=> String + # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string #=> Boolean + # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all" + # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.quantity #=> Integer + # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.items #=> Array + # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.items[0] #=> String + # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.headers.quantity #=> Integer + # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.headers.items #=> Array + # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.headers.items[0] #=> String + # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string_cache_keys.quantity #=> Integer + # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string_cache_keys.items #=> Array + # resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string_cache_keys.items[0] #=> String + # resp.distribution.distribution_config.cache_behaviors.items[0].min_ttl #=> Integer + # resp.distribution.distribution_config.cache_behaviors.items[0].default_ttl #=> Integer + # resp.distribution.distribution_config.cache_behaviors.items[0].max_ttl #=> Integer # resp.distribution.distribution_config.custom_error_responses.quantity #=> Integer # resp.distribution.distribution_config.custom_error_responses.items #=> Array # resp.distribution.distribution_config.custom_error_responses.items[0].error_code #=> Integer # resp.distribution.distribution_config.custom_error_responses.items[0].response_page_path #=> String # resp.distribution.distribution_config.custom_error_responses.items[0].response_code #=> String @@ -3870,11 +4805,11 @@ # resp.distribution.alias_icp_recordals #=> Array # resp.distribution.alias_icp_recordals[0].cname #=> String # resp.distribution.alias_icp_recordals[0].icp_recordal_status #=> String, one of "APPROVED", "SUSPENDED", "PENDING" # resp.etag #=> String # - # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/UpdateDistribution2019_03_26 AWS API Documentation + # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateDistribution2020_05_31 AWS API Documentation # # @overload update_distribution(params = {}) # @param [Hash] params ({}) def update_distribution(params = {}, options = {}) req = build_request(:update_distribution, params) @@ -3951,11 +4886,11 @@ # resp.field_level_encryption.field_level_encryption_config.content_type_profile_config.content_type_profiles.items[0].format #=> String, one of "URLEncoded" # resp.field_level_encryption.field_level_encryption_config.content_type_profile_config.content_type_profiles.items[0].profile_id #=> String # resp.field_level_encryption.field_level_encryption_config.content_type_profile_config.content_type_profiles.items[0].content_type #=> String # resp.etag #=> String # - # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/UpdateFieldLevelEncryptionConfig2019_03_26 AWS API Documentation + # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateFieldLevelEncryptionConfig2020_05_31 AWS API Documentation # # @overload update_field_level_encryption_config(params = {}) # @param [Hash] params ({}) def update_field_level_encryption_config(params = {}, options = {}) req = build_request(:update_field_level_encryption_config, params) @@ -4018,19 +4953,116 @@ # resp.field_level_encryption_profile.field_level_encryption_profile_config.encryption_entities.items[0].field_patterns.quantity #=> Integer # resp.field_level_encryption_profile.field_level_encryption_profile_config.encryption_entities.items[0].field_patterns.items #=> Array # resp.field_level_encryption_profile.field_level_encryption_profile_config.encryption_entities.items[0].field_patterns.items[0] #=> String # resp.etag #=> String # - # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/UpdateFieldLevelEncryptionProfile2019_03_26 AWS API Documentation + # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateFieldLevelEncryptionProfile2020_05_31 AWS API Documentation # # @overload update_field_level_encryption_profile(params = {}) # @param [Hash] params ({}) def update_field_level_encryption_profile(params = {}, options = {}) req = build_request(:update_field_level_encryption_profile, params) req.send_request(options) end + # Updates an origin request policy configuration. + # + # When you update an origin request policy configuration, all the fields + # are updated with the values provided in the request. You cannot update + # some fields independent of others. To update an origin request policy + # configuration: + # + # 1. Use `GetOriginRequestPolicyConfig` to get the current + # configuration. + # + # 2. Locally modify the fields in the origin request policy + # configuration that you want to update. + # + # 3. Call `UpdateOriginRequestPolicy` by providing the entire origin + # request policy configuration, including the fields that you + # modified and those that you didn’t. + # + # @option params [required, Types::OriginRequestPolicyConfig] :origin_request_policy_config + # An origin request policy configuration. + # + # @option params [required, String] :id + # The unique identifier for the origin request policy that you are + # updating. The identifier is returned in a cache behavior’s + # `OriginRequestPolicyId` field in the response to + # `GetDistributionConfig`. + # + # @option params [String] :if_match + # The version of the origin request policy that you are updating. The + # version is returned in the origin request policy’s `ETag` field in the + # response to `GetOriginRequestPolicyConfig`. + # + # @return [Types::UpdateOriginRequestPolicyResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods: + # + # * {Types::UpdateOriginRequestPolicyResult#origin_request_policy #origin_request_policy} => Types::OriginRequestPolicy + # * {Types::UpdateOriginRequestPolicyResult#etag #etag} => String + # + # @example Request syntax with placeholder values + # + # resp = client.update_origin_request_policy({ + # origin_request_policy_config: { # required + # comment: "string", + # name: "string", # required + # headers_config: { # required + # header_behavior: "none", # required, accepts none, whitelist, allViewer, allViewerAndWhitelistCloudFront + # headers: { + # quantity: 1, # required + # items: ["string"], + # }, + # }, + # cookies_config: { # required + # cookie_behavior: "none", # required, accepts none, whitelist, all + # cookies: { + # quantity: 1, # required + # items: ["string"], + # }, + # }, + # query_strings_config: { # required + # query_string_behavior: "none", # required, accepts none, whitelist, all + # query_strings: { + # quantity: 1, # required + # items: ["string"], + # }, + # }, + # }, + # id: "string", # required + # if_match: "string", + # }) + # + # @example Response structure + # + # resp.origin_request_policy.id #=> String + # resp.origin_request_policy.last_modified_time #=> Time + # resp.origin_request_policy.origin_request_policy_config.comment #=> String + # resp.origin_request_policy.origin_request_policy_config.name #=> String + # resp.origin_request_policy.origin_request_policy_config.headers_config.header_behavior #=> String, one of "none", "whitelist", "allViewer", "allViewerAndWhitelistCloudFront" + # resp.origin_request_policy.origin_request_policy_config.headers_config.headers.quantity #=> Integer + # resp.origin_request_policy.origin_request_policy_config.headers_config.headers.items #=> Array + # resp.origin_request_policy.origin_request_policy_config.headers_config.headers.items[0] #=> String + # resp.origin_request_policy.origin_request_policy_config.cookies_config.cookie_behavior #=> String, one of "none", "whitelist", "all" + # resp.origin_request_policy.origin_request_policy_config.cookies_config.cookies.quantity #=> Integer + # resp.origin_request_policy.origin_request_policy_config.cookies_config.cookies.items #=> Array + # resp.origin_request_policy.origin_request_policy_config.cookies_config.cookies.items[0] #=> String + # resp.origin_request_policy.origin_request_policy_config.query_strings_config.query_string_behavior #=> String, one of "none", "whitelist", "all" + # resp.origin_request_policy.origin_request_policy_config.query_strings_config.query_strings.quantity #=> Integer + # resp.origin_request_policy.origin_request_policy_config.query_strings_config.query_strings.items #=> Array + # resp.origin_request_policy.origin_request_policy_config.query_strings_config.query_strings.items[0] #=> String + # resp.etag #=> String + # + # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateOriginRequestPolicy2020_05_31 AWS API Documentation + # + # @overload update_origin_request_policy(params = {}) + # @param [Hash] params ({}) + def update_origin_request_policy(params = {}, options = {}) + req = build_request(:update_origin_request_policy, params) + req.send_request(options) + end + # Update public key information. Note that the only value you can change # is the comment. # # @option params [required, Types::PublicKeyConfig] :public_key_config # Request to update public key information. @@ -4068,11 +5100,11 @@ # resp.public_key.public_key_config.name #=> String # resp.public_key.public_key_config.encoded_key #=> String # resp.public_key.public_key_config.comment #=> String # resp.etag #=> String # - # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/UpdatePublicKey2019_03_26 AWS API Documentation + # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdatePublicKey2020_05_31 AWS API Documentation # # @overload update_public_key(params = {}) # @param [Hash] params ({}) def update_public_key(params = {}, options = {}) req = build_request(:update_public_key, params) @@ -4158,11 +5190,11 @@ # resp.streaming_distribution.streaming_distribution_config.trusted_signers.items[0] #=> String # resp.streaming_distribution.streaming_distribution_config.price_class #=> String, one of "PriceClass_100", "PriceClass_200", "PriceClass_All" # resp.streaming_distribution.streaming_distribution_config.enabled #=> Boolean # resp.etag #=> String # - # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/UpdateStreamingDistribution2019_03_26 AWS API Documentation + # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateStreamingDistribution2020_05_31 AWS API Documentation # # @overload update_streaming_distribution(params = {}) # @param [Hash] params ({}) def update_streaming_distribution(params = {}, options = {}) req = build_request(:update_streaming_distribution, params) @@ -4180,10 +5212,10 @@ operation: config.api.operation(operation_name), client: self, params: params, config: config) context[:gem_name] = 'aws-sdk-cloudfront' - context[:gem_version] = '1.34.0' + context[:gem_version] = '1.35.0' Seahorse::Client::Request.new(handlers, context) end # Polls an API operation until a resource enters a desired state. #