lib/aws-sdk-cloudfront/client.rb in aws-sdk-cloudfront-1.66.0 vs lib/aws-sdk-cloudfront/client.rb in aws-sdk-cloudfront-1.67.0

- old
+ new

@@ -624,10 +624,11 @@ # connection_timeout: 1, # origin_shield: { # enabled: false, # required # origin_shield_region: "OriginShieldRegion", # }, + # origin_access_control_id: "string", # }, # ], # }, # origin_groups: { # quantity: 1, # required @@ -884,10 +885,11 @@ # resp.distribution.distribution_config.origins.items[0].custom_origin_config.origin_keepalive_timeout #=> Integer # resp.distribution.distribution_config.origins.items[0].connection_attempts #=> Integer # resp.distribution.distribution_config.origins.items[0].connection_timeout #=> Integer # resp.distribution.distribution_config.origins.items[0].origin_shield.enabled #=> Boolean # resp.distribution.distribution_config.origins.items[0].origin_shield.origin_shield_region #=> String + # resp.distribution.distribution_config.origins.items[0].origin_access_control_id #=> String # resp.distribution.distribution_config.origin_groups.quantity #=> Integer # resp.distribution.distribution_config.origin_groups.items #=> Array # resp.distribution.distribution_config.origin_groups.items[0].id #=> String # resp.distribution.distribution_config.origin_groups.items[0].failover_criteria.status_codes.quantity #=> Integer # resp.distribution.distribution_config.origin_groups.items[0].failover_criteria.status_codes.items #=> Array @@ -1088,10 +1090,11 @@ # connection_timeout: 1, # origin_shield: { # enabled: false, # required # origin_shield_region: "OriginShieldRegion", # }, + # origin_access_control_id: "string", # }, # ], # }, # origin_groups: { # quantity: 1, # required @@ -1357,10 +1360,11 @@ # resp.distribution.distribution_config.origins.items[0].custom_origin_config.origin_keepalive_timeout #=> Integer # resp.distribution.distribution_config.origins.items[0].connection_attempts #=> Integer # resp.distribution.distribution_config.origins.items[0].connection_timeout #=> Integer # resp.distribution.distribution_config.origins.items[0].origin_shield.enabled #=> Boolean # resp.distribution.distribution_config.origins.items[0].origin_shield.origin_shield_region #=> String + # resp.distribution.distribution_config.origins.items[0].origin_access_control_id #=> String # resp.distribution.distribution_config.origin_groups.quantity #=> Integer # resp.distribution.distribution_config.origin_groups.items #=> Array # resp.distribution.distribution_config.origin_groups.items[0].id #=> String # resp.distribution.distribution_config.origin_groups.items[0].failover_criteria.status_codes.quantity #=> Integer # resp.distribution.distribution_config.origin_groups.items[0].failover_criteria.status_codes.items #=> Array @@ -1856,10 +1860,68 @@ def create_monitoring_subscription(params = {}, options = {}) req = build_request(:create_monitoring_subscription, params) req.send_request(options) end + # Creates a new origin access control in CloudFront. After you create an + # origin access control, you can add it to an origin in a CloudFront + # distribution so that CloudFront sends authenticated (signed) requests + # to the origin. + # + # For an Amazon S3 origin, this makes it possible to block public access + # to the Amazon S3 bucket so that viewers (users) can access the content + # in the bucket only through CloudFront. + # + # For more information about using a CloudFront origin access control, + # see [Restricting access to an Amazon S3 origin][1] in the *Amazon + # CloudFront Developer Guide*. + # + # + # + # [1]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-restricting-access-to-s3.html + # + # @option params [required, Types::OriginAccessControlConfig] :origin_access_control_config + # Contains the origin access control. + # + # @return [Types::CreateOriginAccessControlResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods: + # + # * {Types::CreateOriginAccessControlResult#origin_access_control #origin_access_control} => Types::OriginAccessControl + # * {Types::CreateOriginAccessControlResult#location #location} => String + # * {Types::CreateOriginAccessControlResult#etag #etag} => String + # + # @example Request syntax with placeholder values + # + # resp = client.create_origin_access_control({ + # origin_access_control_config: { # required + # name: "string", # required + # description: "string", # required + # signing_protocol: "sigv4", # required, accepts sigv4 + # signing_behavior: "never", # required, accepts never, always, no-override + # origin_access_control_origin_type: "s3", # required, accepts s3 + # }, + # }) + # + # @example Response structure + # + # resp.origin_access_control.id #=> String + # resp.origin_access_control.origin_access_control_config.name #=> String + # resp.origin_access_control.origin_access_control_config.description #=> String + # resp.origin_access_control.origin_access_control_config.signing_protocol #=> String, one of "sigv4" + # resp.origin_access_control.origin_access_control_config.signing_behavior #=> String, one of "never", "always", "no-override" + # resp.origin_access_control.origin_access_control_config.origin_access_control_origin_type #=> String, one of "s3" + # resp.location #=> String + # resp.etag #=> String + # + # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateOriginAccessControl AWS API Documentation + # + # @overload create_origin_access_control(params = {}) + # @param [Hash] params ({}) + def create_origin_access_control(params = {}, options = {}) + req = build_request(:create_origin_access_control, 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 @@ -2160,24 +2222,24 @@ # include_subdomains: false, # preload: false, # access_control_max_age_sec: 1, # required # }, # }, + # server_timing_headers_config: { + # enabled: false, # required + # sampling_rate: 1.0, + # }, # custom_headers_config: { # quantity: 1, # required # items: [ # { # header: "string", # required # value: "string", # required # override: false, # required # }, # ], # }, - # server_timing_headers_config: { - # enabled: false, # required - # sampling_rate: 1.0, - # }, # }, # }) # # @example Response structure # @@ -2213,17 +2275,17 @@ # resp.response_headers_policy.response_headers_policy_config.security_headers_config.content_type_options.override #=> Boolean # resp.response_headers_policy.response_headers_policy_config.security_headers_config.strict_transport_security.override #=> Boolean # resp.response_headers_policy.response_headers_policy_config.security_headers_config.strict_transport_security.include_subdomains #=> Boolean # resp.response_headers_policy.response_headers_policy_config.security_headers_config.strict_transport_security.preload #=> Boolean # resp.response_headers_policy.response_headers_policy_config.security_headers_config.strict_transport_security.access_control_max_age_sec #=> Integer + # resp.response_headers_policy.response_headers_policy_config.server_timing_headers_config.enabled #=> Boolean + # resp.response_headers_policy.response_headers_policy_config.server_timing_headers_config.sampling_rate #=> Float # resp.response_headers_policy.response_headers_policy_config.custom_headers_config.quantity #=> Integer # resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items #=> Array # resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].header #=> String # resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].value #=> String # resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].override #=> Boolean - # resp.response_headers_policy.response_headers_policy_config.server_timing_headers_config.enabled #=> Boolean - # resp.response_headers_policy.response_headers_policy_config.server_timing_headers_config.sampling_rate #=> Float # resp.location #=> String # resp.etag #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateResponseHeadersPolicy AWS API Documentation # @@ -2660,10 +2722,42 @@ def delete_monitoring_subscription(params = {}, options = {}) req = build_request(:delete_monitoring_subscription, params) req.send_request(options) end + # Deletes a CloudFront origin access control. + # + # You cannot delete an origin access control if it's in use. First, + # update all distributions to remove the origin access control from all + # origins, then delete the origin access control. + # + # @option params [required, String] :id + # The unique identifier of the origin access control that you are + # deleting. + # + # @option params [String] :if_match + # The current version (`ETag` value) of the origin access control that + # you are deleting. + # + # @return [Struct] Returns an empty {Seahorse::Client::Response response}. + # + # @example Request syntax with placeholder values + # + # resp = client.delete_origin_access_control({ + # id: "string", # required + # if_match: "string", + # }) + # + # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteOriginAccessControl AWS API Documentation + # + # @overload delete_origin_access_control(params = {}) + # @param [Hash] params ({}) + def delete_origin_access_control(params = {}, options = {}) + req = build_request(:delete_origin_access_control, 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 @@ -3175,10 +3269,11 @@ # resp.distribution.distribution_config.origins.items[0].custom_origin_config.origin_keepalive_timeout #=> Integer # resp.distribution.distribution_config.origins.items[0].connection_attempts #=> Integer # resp.distribution.distribution_config.origins.items[0].connection_timeout #=> Integer # resp.distribution.distribution_config.origins.items[0].origin_shield.enabled #=> Boolean # resp.distribution.distribution_config.origins.items[0].origin_shield.origin_shield_region #=> String + # resp.distribution.distribution_config.origins.items[0].origin_access_control_id #=> String # resp.distribution.distribution_config.origin_groups.quantity #=> Integer # resp.distribution.distribution_config.origin_groups.items #=> Array # resp.distribution.distribution_config.origin_groups.items[0].id #=> String # resp.distribution.distribution_config.origin_groups.items[0].failover_criteria.status_codes.quantity #=> Integer # resp.distribution.distribution_config.origin_groups.items[0].failover_criteria.status_codes.items #=> Array @@ -3371,10 +3466,11 @@ # resp.distribution_config.origins.items[0].custom_origin_config.origin_keepalive_timeout #=> Integer # resp.distribution_config.origins.items[0].connection_attempts #=> Integer # resp.distribution_config.origins.items[0].connection_timeout #=> Integer # resp.distribution_config.origins.items[0].origin_shield.enabled #=> Boolean # resp.distribution_config.origins.items[0].origin_shield.origin_shield_region #=> String + # resp.distribution_config.origins.items[0].origin_access_control_id #=> String # resp.distribution_config.origin_groups.quantity #=> Integer # resp.distribution_config.origin_groups.items #=> Array # resp.distribution_config.origin_groups.items[0].id #=> String # resp.distribution_config.origin_groups.items[0].failover_criteria.status_codes.quantity #=> Integer # resp.distribution_config.origin_groups.items[0].failover_criteria.status_codes.items #=> Array @@ -3880,10 +3976,79 @@ def get_monitoring_subscription(params = {}, options = {}) req = build_request(:get_monitoring_subscription, params) req.send_request(options) end + # Gets a CloudFront origin access control. + # + # @option params [required, String] :id + # The unique identifier of the origin access control. + # + # @return [Types::GetOriginAccessControlResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods: + # + # * {Types::GetOriginAccessControlResult#origin_access_control #origin_access_control} => Types::OriginAccessControl + # * {Types::GetOriginAccessControlResult#etag #etag} => String + # + # @example Request syntax with placeholder values + # + # resp = client.get_origin_access_control({ + # id: "string", # required + # }) + # + # @example Response structure + # + # resp.origin_access_control.id #=> String + # resp.origin_access_control.origin_access_control_config.name #=> String + # resp.origin_access_control.origin_access_control_config.description #=> String + # resp.origin_access_control.origin_access_control_config.signing_protocol #=> String, one of "sigv4" + # resp.origin_access_control.origin_access_control_config.signing_behavior #=> String, one of "never", "always", "no-override" + # resp.origin_access_control.origin_access_control_config.origin_access_control_origin_type #=> String, one of "s3" + # resp.etag #=> String + # + # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetOriginAccessControl AWS API Documentation + # + # @overload get_origin_access_control(params = {}) + # @param [Hash] params ({}) + def get_origin_access_control(params = {}, options = {}) + req = build_request(:get_origin_access_control, params) + req.send_request(options) + end + + # Gets a CloudFront origin access control. + # + # @option params [required, String] :id + # The unique identifier of the origin access control. + # + # @return [Types::GetOriginAccessControlConfigResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods: + # + # * {Types::GetOriginAccessControlConfigResult#origin_access_control_config #origin_access_control_config} => Types::OriginAccessControlConfig + # * {Types::GetOriginAccessControlConfigResult#etag #etag} => String + # + # @example Request syntax with placeholder values + # + # resp = client.get_origin_access_control_config({ + # id: "string", # required + # }) + # + # @example Response structure + # + # resp.origin_access_control_config.name #=> String + # resp.origin_access_control_config.description #=> String + # resp.origin_access_control_config.signing_protocol #=> String, one of "sigv4" + # resp.origin_access_control_config.signing_behavior #=> String, one of "never", "always", "no-override" + # resp.origin_access_control_config.origin_access_control_origin_type #=> String, one of "s3" + # resp.etag #=> String + # + # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetOriginAccessControlConfig AWS API Documentation + # + # @overload get_origin_access_control_config(params = {}) + # @param [Hash] params ({}) + def get_origin_access_control_config(params = {}, options = {}) + req = build_request(:get_origin_access_control_config, 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. @@ -4176,17 +4341,17 @@ # resp.response_headers_policy.response_headers_policy_config.security_headers_config.content_type_options.override #=> Boolean # resp.response_headers_policy.response_headers_policy_config.security_headers_config.strict_transport_security.override #=> Boolean # resp.response_headers_policy.response_headers_policy_config.security_headers_config.strict_transport_security.include_subdomains #=> Boolean # resp.response_headers_policy.response_headers_policy_config.security_headers_config.strict_transport_security.preload #=> Boolean # resp.response_headers_policy.response_headers_policy_config.security_headers_config.strict_transport_security.access_control_max_age_sec #=> Integer + # resp.response_headers_policy.response_headers_policy_config.server_timing_headers_config.enabled #=> Boolean + # resp.response_headers_policy.response_headers_policy_config.server_timing_headers_config.sampling_rate #=> Float # resp.response_headers_policy.response_headers_policy_config.custom_headers_config.quantity #=> Integer # resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items #=> Array # resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].header #=> String # resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].value #=> String # resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].override #=> Boolean - # resp.response_headers_policy.response_headers_policy_config.server_timing_headers_config.enabled #=> Boolean - # resp.response_headers_policy.response_headers_policy_config.server_timing_headers_config.sampling_rate #=> Float # resp.etag #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetResponseHeadersPolicy AWS API Documentation # # @overload get_response_headers_policy(params = {}) @@ -4257,17 +4422,17 @@ # resp.response_headers_policy_config.security_headers_config.content_type_options.override #=> Boolean # resp.response_headers_policy_config.security_headers_config.strict_transport_security.override #=> Boolean # resp.response_headers_policy_config.security_headers_config.strict_transport_security.include_subdomains #=> Boolean # resp.response_headers_policy_config.security_headers_config.strict_transport_security.preload #=> Boolean # resp.response_headers_policy_config.security_headers_config.strict_transport_security.access_control_max_age_sec #=> Integer + # resp.response_headers_policy_config.server_timing_headers_config.enabled #=> Boolean + # resp.response_headers_policy_config.server_timing_headers_config.sampling_rate #=> Float # resp.response_headers_policy_config.custom_headers_config.quantity #=> Integer # resp.response_headers_policy_config.custom_headers_config.items #=> Array # resp.response_headers_policy_config.custom_headers_config.items[0].header #=> String # resp.response_headers_policy_config.custom_headers_config.items[0].value #=> String # resp.response_headers_policy_config.custom_headers_config.items[0].override #=> Boolean - # resp.response_headers_policy_config.server_timing_headers_config.enabled #=> Boolean - # resp.response_headers_policy_config.server_timing_headers_config.sampling_rate #=> Float # resp.etag #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetResponseHeadersPolicyConfig AWS API Documentation # # @overload get_response_headers_policy_config(params = {}) @@ -4662,10 +4827,11 @@ # resp.distribution_list.items[0].origins.items[0].custom_origin_config.origin_keepalive_timeout #=> Integer # resp.distribution_list.items[0].origins.items[0].connection_attempts #=> Integer # resp.distribution_list.items[0].origins.items[0].connection_timeout #=> Integer # resp.distribution_list.items[0].origins.items[0].origin_shield.enabled #=> Boolean # resp.distribution_list.items[0].origins.items[0].origin_shield.origin_shield_region #=> String + # resp.distribution_list.items[0].origins.items[0].origin_access_control_id #=> String # resp.distribution_list.items[0].origin_groups.quantity #=> Integer # resp.distribution_list.items[0].origin_groups.items #=> Array # resp.distribution_list.items[0].origin_groups.items[0].id #=> String # resp.distribution_list.items[0].origin_groups.items[0].failover_criteria.status_codes.quantity #=> Integer # resp.distribution_list.items[0].origin_groups.items[0].failover_criteria.status_codes.items #=> Array @@ -5051,10 +5217,11 @@ # resp.distribution_list.items[0].origins.items[0].custom_origin_config.origin_keepalive_timeout #=> Integer # resp.distribution_list.items[0].origins.items[0].connection_attempts #=> Integer # resp.distribution_list.items[0].origins.items[0].connection_timeout #=> Integer # resp.distribution_list.items[0].origins.items[0].origin_shield.enabled #=> Boolean # resp.distribution_list.items[0].origins.items[0].origin_shield.origin_shield_region #=> String + # resp.distribution_list.items[0].origins.items[0].origin_access_control_id #=> String # resp.distribution_list.items[0].origin_groups.quantity #=> Integer # resp.distribution_list.items[0].origin_groups.items #=> Array # resp.distribution_list.items[0].origin_groups.items[0].id #=> String # resp.distribution_list.items[0].origin_groups.items[0].failover_criteria.status_codes.quantity #=> Integer # resp.distribution_list.items[0].origin_groups.items[0].failover_criteria.status_codes.items #=> Array @@ -5317,10 +5484,11 @@ # resp.distribution_list.items[0].origins.items[0].custom_origin_config.origin_keepalive_timeout #=> Integer # resp.distribution_list.items[0].origins.items[0].connection_attempts #=> Integer # resp.distribution_list.items[0].origins.items[0].connection_timeout #=> Integer # resp.distribution_list.items[0].origins.items[0].origin_shield.enabled #=> Boolean # resp.distribution_list.items[0].origins.items[0].origin_shield.origin_shield_region #=> String + # resp.distribution_list.items[0].origins.items[0].origin_access_control_id #=> String # resp.distribution_list.items[0].origin_groups.quantity #=> Integer # resp.distribution_list.items[0].origin_groups.items #=> Array # resp.distribution_list.items[0].origin_groups.items[0].id #=> String # resp.distribution_list.items[0].origin_groups.items[0].failover_criteria.status_codes.quantity #=> Integer # resp.distribution_list.items[0].origin_groups.items[0].failover_criteria.status_codes.items #=> Array @@ -5734,10 +5902,66 @@ def list_key_groups(params = {}, options = {}) req = build_request(:list_key_groups, params) req.send_request(options) end + # Gets the list of CloudFront origin access controls in this Amazon Web + # Services 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 another request that + # specifies the `NextMarker` value from the current response as the + # `Marker` value in the next request. + # + # @option params [String] :marker + # Use this field when paginating results to indicate where to begin in + # your list of origin access controls. The response includes the items + # 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 access controls that you want in the + # response. + # + # @return [Types::ListOriginAccessControlsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods: + # + # * {Types::ListOriginAccessControlsResult#origin_access_control_list #origin_access_control_list} => Types::OriginAccessControlList + # + # @example Request syntax with placeholder values + # + # resp = client.list_origin_access_controls({ + # marker: "string", + # max_items: 1, + # }) + # + # @example Response structure + # + # resp.origin_access_control_list.marker #=> String + # resp.origin_access_control_list.next_marker #=> String + # resp.origin_access_control_list.max_items #=> Integer + # resp.origin_access_control_list.is_truncated #=> Boolean + # resp.origin_access_control_list.quantity #=> Integer + # resp.origin_access_control_list.items #=> Array + # resp.origin_access_control_list.items[0].id #=> String + # resp.origin_access_control_list.items[0].description #=> String + # resp.origin_access_control_list.items[0].name #=> String + # resp.origin_access_control_list.items[0].signing_protocol #=> String, one of "sigv4" + # resp.origin_access_control_list.items[0].signing_behavior #=> String, one of "never", "always", "no-override" + # resp.origin_access_control_list.items[0].origin_access_control_origin_type #=> String, one of "s3" + # + # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListOriginAccessControls AWS API Documentation + # + # @overload list_origin_access_controls(params = {}) + # @param [Hash] params ({}) + def list_origin_access_controls(params = {}, options = {}) + req = build_request(:list_origin_access_controls, 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 Amazon Web Services, or only the custom policies created in # your Amazon Web Services account. @@ -6002,17 +6226,17 @@ # resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.security_headers_config.content_type_options.override #=> Boolean # resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.security_headers_config.strict_transport_security.override #=> Boolean # resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.security_headers_config.strict_transport_security.include_subdomains #=> Boolean # resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.security_headers_config.strict_transport_security.preload #=> Boolean # resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.security_headers_config.strict_transport_security.access_control_max_age_sec #=> Integer + # resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.server_timing_headers_config.enabled #=> Boolean + # resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.server_timing_headers_config.sampling_rate #=> Float # resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.custom_headers_config.quantity #=> Integer # resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.custom_headers_config.items #=> Array # resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].header #=> String # resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].value #=> String # resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].override #=> Boolean - # resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.server_timing_headers_config.enabled #=> Boolean - # resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.server_timing_headers_config.sampling_rate #=> Float # # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListResponseHeadersPolicies AWS API Documentation # # @overload list_response_headers_policies(params = {}) # @param [Hash] params ({}) @@ -6584,10 +6808,11 @@ # connection_timeout: 1, # origin_shield: { # enabled: false, # required # origin_shield_region: "OriginShieldRegion", # }, + # origin_access_control_id: "string", # }, # ], # }, # origin_groups: { # quantity: 1, # required @@ -6846,10 +7071,11 @@ # resp.distribution.distribution_config.origins.items[0].custom_origin_config.origin_keepalive_timeout #=> Integer # resp.distribution.distribution_config.origins.items[0].connection_attempts #=> Integer # resp.distribution.distribution_config.origins.items[0].connection_timeout #=> Integer # resp.distribution.distribution_config.origins.items[0].origin_shield.enabled #=> Boolean # resp.distribution.distribution_config.origins.items[0].origin_shield.origin_shield_region #=> String + # resp.distribution.distribution_config.origins.items[0].origin_access_control_id #=> String # resp.distribution.distribution_config.origin_groups.quantity #=> Integer # resp.distribution.distribution_config.origin_groups.items #=> Array # resp.distribution.distribution_config.origin_groups.items[0].id #=> String # resp.distribution.distribution_config.origin_groups.items[0].failover_criteria.status_codes.quantity #=> Integer # resp.distribution.distribution_config.origin_groups.items[0].failover_criteria.status_codes.items #=> Array @@ -7266,10 +7492,61 @@ def update_key_group(params = {}, options = {}) req = build_request(:update_key_group, params) req.send_request(options) end + # Updates a CloudFront origin access control. + # + # @option params [required, Types::OriginAccessControlConfig] :origin_access_control_config + # An origin access control. + # + # @option params [required, String] :id + # The unique identifier of the origin access control that you are + # updating. + # + # @option params [String] :if_match + # The current version (`ETag` value) of the origin access control that + # you are updating. + # + # @return [Types::UpdateOriginAccessControlResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods: + # + # * {Types::UpdateOriginAccessControlResult#origin_access_control #origin_access_control} => Types::OriginAccessControl + # * {Types::UpdateOriginAccessControlResult#etag #etag} => String + # + # @example Request syntax with placeholder values + # + # resp = client.update_origin_access_control({ + # origin_access_control_config: { # required + # name: "string", # required + # description: "string", # required + # signing_protocol: "sigv4", # required, accepts sigv4 + # signing_behavior: "never", # required, accepts never, always, no-override + # origin_access_control_origin_type: "s3", # required, accepts s3 + # }, + # id: "string", # required + # if_match: "string", + # }) + # + # @example Response structure + # + # resp.origin_access_control.id #=> String + # resp.origin_access_control.origin_access_control_config.name #=> String + # resp.origin_access_control.origin_access_control_config.description #=> String + # resp.origin_access_control.origin_access_control_config.signing_protocol #=> String, one of "sigv4" + # resp.origin_access_control.origin_access_control_config.signing_behavior #=> String, one of "never", "always", "no-override" + # resp.origin_access_control.origin_access_control_config.origin_access_control_origin_type #=> String, one of "s3" + # resp.etag #=> String + # + # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateOriginAccessControl AWS API Documentation + # + # @overload update_origin_access_control(params = {}) + # @param [Hash] params ({}) + def update_origin_access_control(params = {}, options = {}) + req = build_request(:update_origin_access_control, 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 @@ -7590,24 +7867,24 @@ # include_subdomains: false, # preload: false, # access_control_max_age_sec: 1, # required # }, # }, + # server_timing_headers_config: { + # enabled: false, # required + # sampling_rate: 1.0, + # }, # custom_headers_config: { # quantity: 1, # required # items: [ # { # header: "string", # required # value: "string", # required # override: false, # required # }, # ], # }, - # server_timing_headers_config: { - # enabled: false, # required - # sampling_rate: 1.0, - # }, # }, # id: "string", # required # if_match: "string", # }) # @@ -7645,17 +7922,17 @@ # resp.response_headers_policy.response_headers_policy_config.security_headers_config.content_type_options.override #=> Boolean # resp.response_headers_policy.response_headers_policy_config.security_headers_config.strict_transport_security.override #=> Boolean # resp.response_headers_policy.response_headers_policy_config.security_headers_config.strict_transport_security.include_subdomains #=> Boolean # resp.response_headers_policy.response_headers_policy_config.security_headers_config.strict_transport_security.preload #=> Boolean # resp.response_headers_policy.response_headers_policy_config.security_headers_config.strict_transport_security.access_control_max_age_sec #=> Integer + # resp.response_headers_policy.response_headers_policy_config.server_timing_headers_config.enabled #=> Boolean + # resp.response_headers_policy.response_headers_policy_config.server_timing_headers_config.sampling_rate #=> Float # resp.response_headers_policy.response_headers_policy_config.custom_headers_config.quantity #=> Integer # resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items #=> Array # resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].header #=> String # resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].value #=> String # resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].override #=> Boolean - # resp.response_headers_policy.response_headers_policy_config.server_timing_headers_config.enabled #=> Boolean - # resp.response_headers_policy.response_headers_policy_config.server_timing_headers_config.sampling_rate #=> Float # resp.etag #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateResponseHeadersPolicy AWS API Documentation # # @overload update_response_headers_policy(params = {}) @@ -7766,10 +8043,10 @@ operation: config.api.operation(operation_name), client: self, params: params, config: config) context[:gem_name] = 'aws-sdk-cloudfront' - context[:gem_version] = '1.66.0' + context[:gem_version] = '1.67.0' Seahorse::Client::Request.new(handlers, context) end # Polls an API operation until a resource enters a desired state. #