aws-sdk-cloudfront 1.56.0 → 1.60.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +20 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-cloudfront/client.rb +707 -10
- data/lib/aws-sdk-cloudfront/client_api.rb +334 -3
- data/lib/aws-sdk-cloudfront/errors.rb +96 -0
- data/lib/aws-sdk-cloudfront/signer.rb +1 -1
- data/lib/aws-sdk-cloudfront/types.rb +1761 -162
- data/lib/aws-sdk-cloudfront.rb +1 -1
- metadata +4 -4
@@ -119,7 +119,9 @@ module Aws::CloudFront
|
|
119
119
|
# * EC2/ECS IMDS instance profile - When used by default, the timeouts
|
120
120
|
# are very aggressive. Construct and pass an instance of
|
121
121
|
# `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
|
122
|
-
# enable retries and extended timeouts.
|
122
|
+
# enable retries and extended timeouts. Instance profile credential
|
123
|
+
# fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED']
|
124
|
+
# to true.
|
123
125
|
#
|
124
126
|
# @option options [required, String] :region
|
125
127
|
# The AWS region to connect to. The configured `:region` is
|
@@ -275,6 +277,15 @@ module Aws::CloudFront
|
|
275
277
|
# ** Please note ** When response stubbing is enabled, no HTTP
|
276
278
|
# requests are made, and retries are disabled.
|
277
279
|
#
|
280
|
+
# @option options [Boolean] :use_dualstack_endpoint
|
281
|
+
# When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
|
282
|
+
# will be used if available.
|
283
|
+
#
|
284
|
+
# @option options [Boolean] :use_fips_endpoint
|
285
|
+
# When set to `true`, fips compatible endpoints will be used if available.
|
286
|
+
# When a `fips` region is used, the region is normalized and this config
|
287
|
+
# is set to `true`.
|
288
|
+
#
|
278
289
|
# @option options [Boolean] :validate_params (true)
|
279
290
|
# When `true`, request parameters are validated before
|
280
291
|
# sending the request.
|
@@ -578,7 +589,7 @@ module Aws::CloudFront
|
|
578
589
|
# items: [
|
579
590
|
# {
|
580
591
|
# header_name: "string", # required
|
581
|
-
# header_value: "
|
592
|
+
# header_value: "sensitiveStringType", # required
|
582
593
|
# },
|
583
594
|
# ],
|
584
595
|
# },
|
@@ -673,6 +684,7 @@ module Aws::CloudFront
|
|
673
684
|
# realtime_log_config_arn: "string",
|
674
685
|
# cache_policy_id: "string",
|
675
686
|
# origin_request_policy_id: "string",
|
687
|
+
# response_headers_policy_id: "string",
|
676
688
|
# forwarded_values: {
|
677
689
|
# query_string: false, # required
|
678
690
|
# cookies: { # required
|
@@ -745,6 +757,7 @@ module Aws::CloudFront
|
|
745
757
|
# realtime_log_config_arn: "string",
|
746
758
|
# cache_policy_id: "string",
|
747
759
|
# origin_request_policy_id: "string",
|
760
|
+
# response_headers_policy_id: "string",
|
748
761
|
# forwarded_values: {
|
749
762
|
# query_string: false, # required
|
750
763
|
# cookies: { # required
|
@@ -900,6 +913,7 @@ module Aws::CloudFront
|
|
900
913
|
# resp.distribution.distribution_config.default_cache_behavior.realtime_log_config_arn #=> String
|
901
914
|
# resp.distribution.distribution_config.default_cache_behavior.cache_policy_id #=> String
|
902
915
|
# resp.distribution.distribution_config.default_cache_behavior.origin_request_policy_id #=> String
|
916
|
+
# resp.distribution.distribution_config.default_cache_behavior.response_headers_policy_id #=> String
|
903
917
|
# resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string #=> Boolean
|
904
918
|
# resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all"
|
905
919
|
# resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.quantity #=> Integer
|
@@ -948,6 +962,7 @@ module Aws::CloudFront
|
|
948
962
|
# resp.distribution.distribution_config.cache_behaviors.items[0].realtime_log_config_arn #=> String
|
949
963
|
# resp.distribution.distribution_config.cache_behaviors.items[0].cache_policy_id #=> String
|
950
964
|
# resp.distribution.distribution_config.cache_behaviors.items[0].origin_request_policy_id #=> String
|
965
|
+
# resp.distribution.distribution_config.cache_behaviors.items[0].response_headers_policy_id #=> String
|
951
966
|
# resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string #=> Boolean
|
952
967
|
# resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all"
|
953
968
|
# resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.quantity #=> Integer
|
@@ -1038,7 +1053,7 @@ module Aws::CloudFront
|
|
1038
1053
|
# items: [
|
1039
1054
|
# {
|
1040
1055
|
# header_name: "string", # required
|
1041
|
-
# header_value: "
|
1056
|
+
# header_value: "sensitiveStringType", # required
|
1042
1057
|
# },
|
1043
1058
|
# ],
|
1044
1059
|
# },
|
@@ -1133,6 +1148,7 @@ module Aws::CloudFront
|
|
1133
1148
|
# realtime_log_config_arn: "string",
|
1134
1149
|
# cache_policy_id: "string",
|
1135
1150
|
# origin_request_policy_id: "string",
|
1151
|
+
# response_headers_policy_id: "string",
|
1136
1152
|
# forwarded_values: {
|
1137
1153
|
# query_string: false, # required
|
1138
1154
|
# cookies: { # required
|
@@ -1205,6 +1221,7 @@ module Aws::CloudFront
|
|
1205
1221
|
# realtime_log_config_arn: "string",
|
1206
1222
|
# cache_policy_id: "string",
|
1207
1223
|
# origin_request_policy_id: "string",
|
1224
|
+
# response_headers_policy_id: "string",
|
1208
1225
|
# forwarded_values: {
|
1209
1226
|
# query_string: false, # required
|
1210
1227
|
# cookies: { # required
|
@@ -1369,6 +1386,7 @@ module Aws::CloudFront
|
|
1369
1386
|
# resp.distribution.distribution_config.default_cache_behavior.realtime_log_config_arn #=> String
|
1370
1387
|
# resp.distribution.distribution_config.default_cache_behavior.cache_policy_id #=> String
|
1371
1388
|
# resp.distribution.distribution_config.default_cache_behavior.origin_request_policy_id #=> String
|
1389
|
+
# resp.distribution.distribution_config.default_cache_behavior.response_headers_policy_id #=> String
|
1372
1390
|
# resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string #=> Boolean
|
1373
1391
|
# resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all"
|
1374
1392
|
# resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.quantity #=> Integer
|
@@ -1417,6 +1435,7 @@ module Aws::CloudFront
|
|
1417
1435
|
# resp.distribution.distribution_config.cache_behaviors.items[0].realtime_log_config_arn #=> String
|
1418
1436
|
# resp.distribution.distribution_config.cache_behaviors.items[0].cache_policy_id #=> String
|
1419
1437
|
# resp.distribution.distribution_config.cache_behaviors.items[0].origin_request_policy_id #=> String
|
1438
|
+
# resp.distribution.distribution_config.cache_behaviors.items[0].response_headers_policy_id #=> String
|
1420
1439
|
# resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string #=> Boolean
|
1421
1440
|
# resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all"
|
1422
1441
|
# resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.quantity #=> Integer
|
@@ -2051,6 +2070,151 @@ module Aws::CloudFront
|
|
2051
2070
|
req.send_request(options)
|
2052
2071
|
end
|
2053
2072
|
|
2073
|
+
# Creates a response headers policy.
|
2074
|
+
#
|
2075
|
+
# A response headers policy contains information about a set of HTTP
|
2076
|
+
# response headers and their values. To create a response headers
|
2077
|
+
# policy, you provide some metadata about the policy, and a set of
|
2078
|
+
# configurations that specify the response headers.
|
2079
|
+
#
|
2080
|
+
# After you create a response headers policy, you can use its ID to
|
2081
|
+
# attach it to one or more cache behaviors in a CloudFront distribution.
|
2082
|
+
# When it’s attached to a cache behavior, CloudFront adds the headers in
|
2083
|
+
# the policy to HTTP responses that it sends for requests that match the
|
2084
|
+
# cache behavior.
|
2085
|
+
#
|
2086
|
+
# @option params [required, Types::ResponseHeadersPolicyConfig] :response_headers_policy_config
|
2087
|
+
# Contains metadata about the response headers policy, and a set of
|
2088
|
+
# configurations that specify the response headers.
|
2089
|
+
#
|
2090
|
+
# @return [Types::CreateResponseHeadersPolicyResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2091
|
+
#
|
2092
|
+
# * {Types::CreateResponseHeadersPolicyResult#response_headers_policy #response_headers_policy} => Types::ResponseHeadersPolicy
|
2093
|
+
# * {Types::CreateResponseHeadersPolicyResult#location #location} => String
|
2094
|
+
# * {Types::CreateResponseHeadersPolicyResult#etag #etag} => String
|
2095
|
+
#
|
2096
|
+
# @example Request syntax with placeholder values
|
2097
|
+
#
|
2098
|
+
# resp = client.create_response_headers_policy({
|
2099
|
+
# response_headers_policy_config: { # required
|
2100
|
+
# comment: "string",
|
2101
|
+
# name: "string", # required
|
2102
|
+
# cors_config: {
|
2103
|
+
# access_control_allow_origins: { # required
|
2104
|
+
# quantity: 1, # required
|
2105
|
+
# items: ["string"], # required
|
2106
|
+
# },
|
2107
|
+
# access_control_allow_headers: { # required
|
2108
|
+
# quantity: 1, # required
|
2109
|
+
# items: ["string"], # required
|
2110
|
+
# },
|
2111
|
+
# access_control_allow_methods: { # required
|
2112
|
+
# quantity: 1, # required
|
2113
|
+
# items: ["GET"], # required, accepts GET, POST, OPTIONS, PUT, DELETE, PATCH, HEAD, ALL
|
2114
|
+
# },
|
2115
|
+
# access_control_allow_credentials: false, # required
|
2116
|
+
# access_control_expose_headers: {
|
2117
|
+
# quantity: 1, # required
|
2118
|
+
# items: ["string"],
|
2119
|
+
# },
|
2120
|
+
# access_control_max_age_sec: 1,
|
2121
|
+
# origin_override: false, # required
|
2122
|
+
# },
|
2123
|
+
# security_headers_config: {
|
2124
|
+
# xss_protection: {
|
2125
|
+
# override: false, # required
|
2126
|
+
# protection: false, # required
|
2127
|
+
# mode_block: false,
|
2128
|
+
# report_uri: "string",
|
2129
|
+
# },
|
2130
|
+
# frame_options: {
|
2131
|
+
# override: false, # required
|
2132
|
+
# frame_option: "DENY", # required, accepts DENY, SAMEORIGIN
|
2133
|
+
# },
|
2134
|
+
# referrer_policy: {
|
2135
|
+
# override: false, # required
|
2136
|
+
# referrer_policy: "no-referrer", # required, accepts no-referrer, no-referrer-when-downgrade, origin, origin-when-cross-origin, same-origin, strict-origin, strict-origin-when-cross-origin, unsafe-url
|
2137
|
+
# },
|
2138
|
+
# content_security_policy: {
|
2139
|
+
# override: false, # required
|
2140
|
+
# content_security_policy: "string", # required
|
2141
|
+
# },
|
2142
|
+
# content_type_options: {
|
2143
|
+
# override: false, # required
|
2144
|
+
# },
|
2145
|
+
# strict_transport_security: {
|
2146
|
+
# override: false, # required
|
2147
|
+
# include_subdomains: false,
|
2148
|
+
# preload: false,
|
2149
|
+
# access_control_max_age_sec: 1, # required
|
2150
|
+
# },
|
2151
|
+
# },
|
2152
|
+
# custom_headers_config: {
|
2153
|
+
# quantity: 1, # required
|
2154
|
+
# items: [
|
2155
|
+
# {
|
2156
|
+
# header: "string", # required
|
2157
|
+
# value: "string", # required
|
2158
|
+
# override: false, # required
|
2159
|
+
# },
|
2160
|
+
# ],
|
2161
|
+
# },
|
2162
|
+
# },
|
2163
|
+
# })
|
2164
|
+
#
|
2165
|
+
# @example Response structure
|
2166
|
+
#
|
2167
|
+
# resp.response_headers_policy.id #=> String
|
2168
|
+
# resp.response_headers_policy.last_modified_time #=> Time
|
2169
|
+
# resp.response_headers_policy.response_headers_policy_config.comment #=> String
|
2170
|
+
# resp.response_headers_policy.response_headers_policy_config.name #=> String
|
2171
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_origins.quantity #=> Integer
|
2172
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_origins.items #=> Array
|
2173
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_origins.items[0] #=> String
|
2174
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_headers.quantity #=> Integer
|
2175
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_headers.items #=> Array
|
2176
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_headers.items[0] #=> String
|
2177
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_methods.quantity #=> Integer
|
2178
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_methods.items #=> Array
|
2179
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_methods.items[0] #=> String, one of "GET", "POST", "OPTIONS", "PUT", "DELETE", "PATCH", "HEAD", "ALL"
|
2180
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_credentials #=> Boolean
|
2181
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_expose_headers.quantity #=> Integer
|
2182
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_expose_headers.items #=> Array
|
2183
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_expose_headers.items[0] #=> String
|
2184
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_max_age_sec #=> Integer
|
2185
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.origin_override #=> Boolean
|
2186
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.xss_protection.override #=> Boolean
|
2187
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.xss_protection.protection #=> Boolean
|
2188
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.xss_protection.mode_block #=> Boolean
|
2189
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.xss_protection.report_uri #=> String
|
2190
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.frame_options.override #=> Boolean
|
2191
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.frame_options.frame_option #=> String, one of "DENY", "SAMEORIGIN"
|
2192
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.referrer_policy.override #=> Boolean
|
2193
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.referrer_policy.referrer_policy #=> String, one of "no-referrer", "no-referrer-when-downgrade", "origin", "origin-when-cross-origin", "same-origin", "strict-origin", "strict-origin-when-cross-origin", "unsafe-url"
|
2194
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.content_security_policy.override #=> Boolean
|
2195
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.content_security_policy.content_security_policy #=> String
|
2196
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.content_type_options.override #=> Boolean
|
2197
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.strict_transport_security.override #=> Boolean
|
2198
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.strict_transport_security.include_subdomains #=> Boolean
|
2199
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.strict_transport_security.preload #=> Boolean
|
2200
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.strict_transport_security.access_control_max_age_sec #=> Integer
|
2201
|
+
# resp.response_headers_policy.response_headers_policy_config.custom_headers_config.quantity #=> Integer
|
2202
|
+
# resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items #=> Array
|
2203
|
+
# resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].header #=> String
|
2204
|
+
# resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].value #=> String
|
2205
|
+
# resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].override #=> Boolean
|
2206
|
+
# resp.location #=> String
|
2207
|
+
# resp.etag #=> String
|
2208
|
+
#
|
2209
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateResponseHeadersPolicy AWS API Documentation
|
2210
|
+
#
|
2211
|
+
# @overload create_response_headers_policy(params = {})
|
2212
|
+
# @param [Hash] params ({})
|
2213
|
+
def create_response_headers_policy(params = {}, options = {})
|
2214
|
+
req = build_request(:create_response_headers_policy, params)
|
2215
|
+
req.send_request(options)
|
2216
|
+
end
|
2217
|
+
|
2054
2218
|
# This API is deprecated. Amazon CloudFront is deprecating real-time
|
2055
2219
|
# messaging protocol (RTMP) distributions on December 31, 2020. For more
|
2056
2220
|
# information, [read the announcement][1] on the Amazon CloudFront
|
@@ -2583,6 +2747,47 @@ module Aws::CloudFront
|
|
2583
2747
|
req.send_request(options)
|
2584
2748
|
end
|
2585
2749
|
|
2750
|
+
# Deletes a response headers policy.
|
2751
|
+
#
|
2752
|
+
# You cannot delete a response headers policy if it’s attached to a
|
2753
|
+
# cache behavior. First update your distributions to remove the response
|
2754
|
+
# headers policy from all cache behaviors, then delete the response
|
2755
|
+
# headers policy.
|
2756
|
+
#
|
2757
|
+
# To delete a response headers policy, you must provide the policy’s
|
2758
|
+
# identifier and version. To get these values, you can use
|
2759
|
+
# `ListResponseHeadersPolicies` or `GetResponseHeadersPolicy`.
|
2760
|
+
#
|
2761
|
+
# @option params [required, String] :id
|
2762
|
+
# The identifier for the response headers policy that you are deleting.
|
2763
|
+
#
|
2764
|
+
# To get the identifier, you can use `ListResponseHeadersPolicies`.
|
2765
|
+
#
|
2766
|
+
# @option params [String] :if_match
|
2767
|
+
# The version of the response headers policy that you are deleting.
|
2768
|
+
#
|
2769
|
+
# The version is the response headers policy’s `ETag` value, which you
|
2770
|
+
# can get using `ListResponseHeadersPolicies`,
|
2771
|
+
# `GetResponseHeadersPolicy`, or `GetResponseHeadersPolicyConfig`.
|
2772
|
+
#
|
2773
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
2774
|
+
#
|
2775
|
+
# @example Request syntax with placeholder values
|
2776
|
+
#
|
2777
|
+
# resp = client.delete_response_headers_policy({
|
2778
|
+
# id: "string", # required
|
2779
|
+
# if_match: "string",
|
2780
|
+
# })
|
2781
|
+
#
|
2782
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteResponseHeadersPolicy AWS API Documentation
|
2783
|
+
#
|
2784
|
+
# @overload delete_response_headers_policy(params = {})
|
2785
|
+
# @param [Hash] params ({})
|
2786
|
+
def delete_response_headers_policy(params = {}, options = {})
|
2787
|
+
req = build_request(:delete_response_headers_policy, params)
|
2788
|
+
req.send_request(options)
|
2789
|
+
end
|
2790
|
+
|
2586
2791
|
# Delete a streaming distribution. To delete an RTMP distribution using
|
2587
2792
|
# the CloudFront API, perform the following steps.
|
2588
2793
|
#
|
@@ -2993,6 +3198,7 @@ module Aws::CloudFront
|
|
2993
3198
|
# resp.distribution.distribution_config.default_cache_behavior.realtime_log_config_arn #=> String
|
2994
3199
|
# resp.distribution.distribution_config.default_cache_behavior.cache_policy_id #=> String
|
2995
3200
|
# resp.distribution.distribution_config.default_cache_behavior.origin_request_policy_id #=> String
|
3201
|
+
# resp.distribution.distribution_config.default_cache_behavior.response_headers_policy_id #=> String
|
2996
3202
|
# resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string #=> Boolean
|
2997
3203
|
# resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all"
|
2998
3204
|
# resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.quantity #=> Integer
|
@@ -3041,6 +3247,7 @@ module Aws::CloudFront
|
|
3041
3247
|
# resp.distribution.distribution_config.cache_behaviors.items[0].realtime_log_config_arn #=> String
|
3042
3248
|
# resp.distribution.distribution_config.cache_behaviors.items[0].cache_policy_id #=> String
|
3043
3249
|
# resp.distribution.distribution_config.cache_behaviors.items[0].origin_request_policy_id #=> String
|
3250
|
+
# resp.distribution.distribution_config.cache_behaviors.items[0].response_headers_policy_id #=> String
|
3044
3251
|
# resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string #=> Boolean
|
3045
3252
|
# resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all"
|
3046
3253
|
# resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.quantity #=> Integer
|
@@ -3187,6 +3394,7 @@ module Aws::CloudFront
|
|
3187
3394
|
# resp.distribution_config.default_cache_behavior.realtime_log_config_arn #=> String
|
3188
3395
|
# resp.distribution_config.default_cache_behavior.cache_policy_id #=> String
|
3189
3396
|
# resp.distribution_config.default_cache_behavior.origin_request_policy_id #=> String
|
3397
|
+
# resp.distribution_config.default_cache_behavior.response_headers_policy_id #=> String
|
3190
3398
|
# resp.distribution_config.default_cache_behavior.forwarded_values.query_string #=> Boolean
|
3191
3399
|
# resp.distribution_config.default_cache_behavior.forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all"
|
3192
3400
|
# resp.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.quantity #=> Integer
|
@@ -3235,6 +3443,7 @@ module Aws::CloudFront
|
|
3235
3443
|
# resp.distribution_config.cache_behaviors.items[0].realtime_log_config_arn #=> String
|
3236
3444
|
# resp.distribution_config.cache_behaviors.items[0].cache_policy_id #=> String
|
3237
3445
|
# resp.distribution_config.cache_behaviors.items[0].origin_request_policy_id #=> String
|
3446
|
+
# resp.distribution_config.cache_behaviors.items[0].response_headers_policy_id #=> String
|
3238
3447
|
# resp.distribution_config.cache_behaviors.items[0].forwarded_values.query_string #=> Boolean
|
3239
3448
|
# resp.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all"
|
3240
3449
|
# resp.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.quantity #=> Integer
|
@@ -3884,6 +4093,167 @@ module Aws::CloudFront
|
|
3884
4093
|
req.send_request(options)
|
3885
4094
|
end
|
3886
4095
|
|
4096
|
+
# Gets a response headers policy, including metadata (the policy’s
|
4097
|
+
# identifier and the date and time when the policy was last modified).
|
4098
|
+
#
|
4099
|
+
# To get a response headers policy, you must provide the policy’s
|
4100
|
+
# identifier. If the response headers policy is attached to a
|
4101
|
+
# distribution’s cache behavior, you can get the policy’s identifier
|
4102
|
+
# using `ListDistributions` or `GetDistribution`. If the response
|
4103
|
+
# headers policy is not attached to a cache behavior, you can get the
|
4104
|
+
# identifier using `ListResponseHeadersPolicies`.
|
4105
|
+
#
|
4106
|
+
# @option params [required, String] :id
|
4107
|
+
# The identifier for the response headers policy.
|
4108
|
+
#
|
4109
|
+
# If the response headers policy is attached to a distribution’s cache
|
4110
|
+
# behavior, you can get the policy’s identifier using
|
4111
|
+
# `ListDistributions` or `GetDistribution`. If the response headers
|
4112
|
+
# policy is not attached to a cache behavior, you can get the identifier
|
4113
|
+
# using `ListResponseHeadersPolicies`.
|
4114
|
+
#
|
4115
|
+
# @return [Types::GetResponseHeadersPolicyResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
4116
|
+
#
|
4117
|
+
# * {Types::GetResponseHeadersPolicyResult#response_headers_policy #response_headers_policy} => Types::ResponseHeadersPolicy
|
4118
|
+
# * {Types::GetResponseHeadersPolicyResult#etag #etag} => String
|
4119
|
+
#
|
4120
|
+
# @example Request syntax with placeholder values
|
4121
|
+
#
|
4122
|
+
# resp = client.get_response_headers_policy({
|
4123
|
+
# id: "string", # required
|
4124
|
+
# })
|
4125
|
+
#
|
4126
|
+
# @example Response structure
|
4127
|
+
#
|
4128
|
+
# resp.response_headers_policy.id #=> String
|
4129
|
+
# resp.response_headers_policy.last_modified_time #=> Time
|
4130
|
+
# resp.response_headers_policy.response_headers_policy_config.comment #=> String
|
4131
|
+
# resp.response_headers_policy.response_headers_policy_config.name #=> String
|
4132
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_origins.quantity #=> Integer
|
4133
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_origins.items #=> Array
|
4134
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_origins.items[0] #=> String
|
4135
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_headers.quantity #=> Integer
|
4136
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_headers.items #=> Array
|
4137
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_headers.items[0] #=> String
|
4138
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_methods.quantity #=> Integer
|
4139
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_methods.items #=> Array
|
4140
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_methods.items[0] #=> String, one of "GET", "POST", "OPTIONS", "PUT", "DELETE", "PATCH", "HEAD", "ALL"
|
4141
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_credentials #=> Boolean
|
4142
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_expose_headers.quantity #=> Integer
|
4143
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_expose_headers.items #=> Array
|
4144
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_expose_headers.items[0] #=> String
|
4145
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_max_age_sec #=> Integer
|
4146
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.origin_override #=> Boolean
|
4147
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.xss_protection.override #=> Boolean
|
4148
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.xss_protection.protection #=> Boolean
|
4149
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.xss_protection.mode_block #=> Boolean
|
4150
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.xss_protection.report_uri #=> String
|
4151
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.frame_options.override #=> Boolean
|
4152
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.frame_options.frame_option #=> String, one of "DENY", "SAMEORIGIN"
|
4153
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.referrer_policy.override #=> Boolean
|
4154
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.referrer_policy.referrer_policy #=> String, one of "no-referrer", "no-referrer-when-downgrade", "origin", "origin-when-cross-origin", "same-origin", "strict-origin", "strict-origin-when-cross-origin", "unsafe-url"
|
4155
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.content_security_policy.override #=> Boolean
|
4156
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.content_security_policy.content_security_policy #=> String
|
4157
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.content_type_options.override #=> Boolean
|
4158
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.strict_transport_security.override #=> Boolean
|
4159
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.strict_transport_security.include_subdomains #=> Boolean
|
4160
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.strict_transport_security.preload #=> Boolean
|
4161
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.strict_transport_security.access_control_max_age_sec #=> Integer
|
4162
|
+
# resp.response_headers_policy.response_headers_policy_config.custom_headers_config.quantity #=> Integer
|
4163
|
+
# resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items #=> Array
|
4164
|
+
# resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].header #=> String
|
4165
|
+
# resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].value #=> String
|
4166
|
+
# resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].override #=> Boolean
|
4167
|
+
# resp.etag #=> String
|
4168
|
+
#
|
4169
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetResponseHeadersPolicy AWS API Documentation
|
4170
|
+
#
|
4171
|
+
# @overload get_response_headers_policy(params = {})
|
4172
|
+
# @param [Hash] params ({})
|
4173
|
+
def get_response_headers_policy(params = {}, options = {})
|
4174
|
+
req = build_request(:get_response_headers_policy, params)
|
4175
|
+
req.send_request(options)
|
4176
|
+
end
|
4177
|
+
|
4178
|
+
# Gets a response headers policy configuration.
|
4179
|
+
#
|
4180
|
+
# To get a response headers policy configuration, you must provide the
|
4181
|
+
# policy’s identifier. If the response headers policy is attached to a
|
4182
|
+
# distribution’s cache behavior, you can get the policy’s identifier
|
4183
|
+
# using `ListDistributions` or `GetDistribution`. If the response
|
4184
|
+
# headers policy is not attached to a cache behavior, you can get the
|
4185
|
+
# identifier using `ListResponseHeadersPolicies`.
|
4186
|
+
#
|
4187
|
+
# @option params [required, String] :id
|
4188
|
+
# The identifier for the response headers policy.
|
4189
|
+
#
|
4190
|
+
# If the response headers policy is attached to a distribution’s cache
|
4191
|
+
# behavior, you can get the policy’s identifier using
|
4192
|
+
# `ListDistributions` or `GetDistribution`. If the response headers
|
4193
|
+
# policy is not attached to a cache behavior, you can get the identifier
|
4194
|
+
# using `ListResponseHeadersPolicies`.
|
4195
|
+
#
|
4196
|
+
# @return [Types::GetResponseHeadersPolicyConfigResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
4197
|
+
#
|
4198
|
+
# * {Types::GetResponseHeadersPolicyConfigResult#response_headers_policy_config #response_headers_policy_config} => Types::ResponseHeadersPolicyConfig
|
4199
|
+
# * {Types::GetResponseHeadersPolicyConfigResult#etag #etag} => String
|
4200
|
+
#
|
4201
|
+
# @example Request syntax with placeholder values
|
4202
|
+
#
|
4203
|
+
# resp = client.get_response_headers_policy_config({
|
4204
|
+
# id: "string", # required
|
4205
|
+
# })
|
4206
|
+
#
|
4207
|
+
# @example Response structure
|
4208
|
+
#
|
4209
|
+
# resp.response_headers_policy_config.comment #=> String
|
4210
|
+
# resp.response_headers_policy_config.name #=> String
|
4211
|
+
# resp.response_headers_policy_config.cors_config.access_control_allow_origins.quantity #=> Integer
|
4212
|
+
# resp.response_headers_policy_config.cors_config.access_control_allow_origins.items #=> Array
|
4213
|
+
# resp.response_headers_policy_config.cors_config.access_control_allow_origins.items[0] #=> String
|
4214
|
+
# resp.response_headers_policy_config.cors_config.access_control_allow_headers.quantity #=> Integer
|
4215
|
+
# resp.response_headers_policy_config.cors_config.access_control_allow_headers.items #=> Array
|
4216
|
+
# resp.response_headers_policy_config.cors_config.access_control_allow_headers.items[0] #=> String
|
4217
|
+
# resp.response_headers_policy_config.cors_config.access_control_allow_methods.quantity #=> Integer
|
4218
|
+
# resp.response_headers_policy_config.cors_config.access_control_allow_methods.items #=> Array
|
4219
|
+
# resp.response_headers_policy_config.cors_config.access_control_allow_methods.items[0] #=> String, one of "GET", "POST", "OPTIONS", "PUT", "DELETE", "PATCH", "HEAD", "ALL"
|
4220
|
+
# resp.response_headers_policy_config.cors_config.access_control_allow_credentials #=> Boolean
|
4221
|
+
# resp.response_headers_policy_config.cors_config.access_control_expose_headers.quantity #=> Integer
|
4222
|
+
# resp.response_headers_policy_config.cors_config.access_control_expose_headers.items #=> Array
|
4223
|
+
# resp.response_headers_policy_config.cors_config.access_control_expose_headers.items[0] #=> String
|
4224
|
+
# resp.response_headers_policy_config.cors_config.access_control_max_age_sec #=> Integer
|
4225
|
+
# resp.response_headers_policy_config.cors_config.origin_override #=> Boolean
|
4226
|
+
# resp.response_headers_policy_config.security_headers_config.xss_protection.override #=> Boolean
|
4227
|
+
# resp.response_headers_policy_config.security_headers_config.xss_protection.protection #=> Boolean
|
4228
|
+
# resp.response_headers_policy_config.security_headers_config.xss_protection.mode_block #=> Boolean
|
4229
|
+
# resp.response_headers_policy_config.security_headers_config.xss_protection.report_uri #=> String
|
4230
|
+
# resp.response_headers_policy_config.security_headers_config.frame_options.override #=> Boolean
|
4231
|
+
# resp.response_headers_policy_config.security_headers_config.frame_options.frame_option #=> String, one of "DENY", "SAMEORIGIN"
|
4232
|
+
# resp.response_headers_policy_config.security_headers_config.referrer_policy.override #=> Boolean
|
4233
|
+
# resp.response_headers_policy_config.security_headers_config.referrer_policy.referrer_policy #=> String, one of "no-referrer", "no-referrer-when-downgrade", "origin", "origin-when-cross-origin", "same-origin", "strict-origin", "strict-origin-when-cross-origin", "unsafe-url"
|
4234
|
+
# resp.response_headers_policy_config.security_headers_config.content_security_policy.override #=> Boolean
|
4235
|
+
# resp.response_headers_policy_config.security_headers_config.content_security_policy.content_security_policy #=> String
|
4236
|
+
# resp.response_headers_policy_config.security_headers_config.content_type_options.override #=> Boolean
|
4237
|
+
# resp.response_headers_policy_config.security_headers_config.strict_transport_security.override #=> Boolean
|
4238
|
+
# resp.response_headers_policy_config.security_headers_config.strict_transport_security.include_subdomains #=> Boolean
|
4239
|
+
# resp.response_headers_policy_config.security_headers_config.strict_transport_security.preload #=> Boolean
|
4240
|
+
# resp.response_headers_policy_config.security_headers_config.strict_transport_security.access_control_max_age_sec #=> Integer
|
4241
|
+
# resp.response_headers_policy_config.custom_headers_config.quantity #=> Integer
|
4242
|
+
# resp.response_headers_policy_config.custom_headers_config.items #=> Array
|
4243
|
+
# resp.response_headers_policy_config.custom_headers_config.items[0].header #=> String
|
4244
|
+
# resp.response_headers_policy_config.custom_headers_config.items[0].value #=> String
|
4245
|
+
# resp.response_headers_policy_config.custom_headers_config.items[0].override #=> Boolean
|
4246
|
+
# resp.etag #=> String
|
4247
|
+
#
|
4248
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetResponseHeadersPolicyConfig AWS API Documentation
|
4249
|
+
#
|
4250
|
+
# @overload get_response_headers_policy_config(params = {})
|
4251
|
+
# @param [Hash] params ({})
|
4252
|
+
def get_response_headers_policy_config(params = {}, options = {})
|
4253
|
+
req = build_request(:get_response_headers_policy_config, params)
|
4254
|
+
req.send_request(options)
|
4255
|
+
end
|
4256
|
+
|
3887
4257
|
# Gets information about a specified RTMP distribution, including the
|
3888
4258
|
# distribution configuration.
|
3889
4259
|
#
|
@@ -3996,7 +4366,7 @@ module Aws::CloudFront
|
|
3996
4366
|
#
|
3997
4367
|
# You can optionally apply a filter to return only the managed policies
|
3998
4368
|
# created by Amazon Web Services, or only the custom policies created in
|
3999
|
-
# your account.
|
4369
|
+
# your Amazon Web Services account.
|
4000
4370
|
#
|
4001
4371
|
# You can optionally specify the maximum number of items to receive in
|
4002
4372
|
# the response. If the total number of items in the list exceeds the
|
@@ -4012,7 +4382,8 @@ module Aws::CloudFront
|
|
4012
4382
|
# * `managed` – Returns only the managed policies created by Amazon Web
|
4013
4383
|
# Services.
|
4014
4384
|
#
|
4015
|
-
# * `custom` – Returns only the custom policies created in your
|
4385
|
+
# * `custom` – Returns only the custom policies created in your Amazon
|
4386
|
+
# Web Services account.
|
4016
4387
|
#
|
4017
4388
|
# @option params [String] :marker
|
4018
4389
|
# Use this field when paginating results to indicate where to begin in
|
@@ -4310,6 +4681,7 @@ module Aws::CloudFront
|
|
4310
4681
|
# resp.distribution_list.items[0].default_cache_behavior.realtime_log_config_arn #=> String
|
4311
4682
|
# resp.distribution_list.items[0].default_cache_behavior.cache_policy_id #=> String
|
4312
4683
|
# resp.distribution_list.items[0].default_cache_behavior.origin_request_policy_id #=> String
|
4684
|
+
# resp.distribution_list.items[0].default_cache_behavior.response_headers_policy_id #=> String
|
4313
4685
|
# resp.distribution_list.items[0].default_cache_behavior.forwarded_values.query_string #=> Boolean
|
4314
4686
|
# resp.distribution_list.items[0].default_cache_behavior.forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all"
|
4315
4687
|
# resp.distribution_list.items[0].default_cache_behavior.forwarded_values.cookies.whitelisted_names.quantity #=> Integer
|
@@ -4358,6 +4730,7 @@ module Aws::CloudFront
|
|
4358
4730
|
# resp.distribution_list.items[0].cache_behaviors.items[0].realtime_log_config_arn #=> String
|
4359
4731
|
# resp.distribution_list.items[0].cache_behaviors.items[0].cache_policy_id #=> String
|
4360
4732
|
# resp.distribution_list.items[0].cache_behaviors.items[0].origin_request_policy_id #=> String
|
4733
|
+
# resp.distribution_list.items[0].cache_behaviors.items[0].response_headers_policy_id #=> String
|
4361
4734
|
# resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.query_string #=> Boolean
|
4362
4735
|
# resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all"
|
4363
4736
|
# resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.quantity #=> Integer
|
@@ -4697,6 +5070,7 @@ module Aws::CloudFront
|
|
4697
5070
|
# resp.distribution_list.items[0].default_cache_behavior.realtime_log_config_arn #=> String
|
4698
5071
|
# resp.distribution_list.items[0].default_cache_behavior.cache_policy_id #=> String
|
4699
5072
|
# resp.distribution_list.items[0].default_cache_behavior.origin_request_policy_id #=> String
|
5073
|
+
# resp.distribution_list.items[0].default_cache_behavior.response_headers_policy_id #=> String
|
4700
5074
|
# resp.distribution_list.items[0].default_cache_behavior.forwarded_values.query_string #=> Boolean
|
4701
5075
|
# resp.distribution_list.items[0].default_cache_behavior.forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all"
|
4702
5076
|
# resp.distribution_list.items[0].default_cache_behavior.forwarded_values.cookies.whitelisted_names.quantity #=> Integer
|
@@ -4745,6 +5119,7 @@ module Aws::CloudFront
|
|
4745
5119
|
# resp.distribution_list.items[0].cache_behaviors.items[0].realtime_log_config_arn #=> String
|
4746
5120
|
# resp.distribution_list.items[0].cache_behaviors.items[0].cache_policy_id #=> String
|
4747
5121
|
# resp.distribution_list.items[0].cache_behaviors.items[0].origin_request_policy_id #=> String
|
5122
|
+
# resp.distribution_list.items[0].cache_behaviors.items[0].response_headers_policy_id #=> String
|
4748
5123
|
# resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.query_string #=> Boolean
|
4749
5124
|
# resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all"
|
4750
5125
|
# resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.quantity #=> Integer
|
@@ -4795,6 +5170,62 @@ module Aws::CloudFront
|
|
4795
5170
|
req.send_request(options)
|
4796
5171
|
end
|
4797
5172
|
|
5173
|
+
# Gets a list of distribution IDs for distributions that have a cache
|
5174
|
+
# behavior that’s associated with the specified response headers policy.
|
5175
|
+
#
|
5176
|
+
# You can optionally specify the maximum number of items to receive in
|
5177
|
+
# the response. If the total number of items in the list exceeds the
|
5178
|
+
# maximum that you specify, or the default maximum, the response is
|
5179
|
+
# paginated. To get the next page of items, send a subsequent request
|
5180
|
+
# that specifies the `NextMarker` value from the current response as the
|
5181
|
+
# `Marker` value in the subsequent request.
|
5182
|
+
#
|
5183
|
+
# @option params [String] :marker
|
5184
|
+
# Use this field when paginating results to indicate where to begin in
|
5185
|
+
# your list of distribution IDs. The response includes distribution IDs
|
5186
|
+
# in the list that occur after the marker. To get the next page of the
|
5187
|
+
# list, set this field’s value to the value of `NextMarker` from the
|
5188
|
+
# current page’s response.
|
5189
|
+
#
|
5190
|
+
# @option params [Integer] :max_items
|
5191
|
+
# The maximum number of distribution IDs that you want to get in the
|
5192
|
+
# response.
|
5193
|
+
#
|
5194
|
+
# @option params [required, String] :response_headers_policy_id
|
5195
|
+
# The ID of the response headers policy whose associated distribution
|
5196
|
+
# IDs you want to list.
|
5197
|
+
#
|
5198
|
+
# @return [Types::ListDistributionsByResponseHeadersPolicyIdResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
5199
|
+
#
|
5200
|
+
# * {Types::ListDistributionsByResponseHeadersPolicyIdResult#distribution_id_list #distribution_id_list} => Types::DistributionIdList
|
5201
|
+
#
|
5202
|
+
# @example Request syntax with placeholder values
|
5203
|
+
#
|
5204
|
+
# resp = client.list_distributions_by_response_headers_policy_id({
|
5205
|
+
# marker: "string",
|
5206
|
+
# max_items: 1,
|
5207
|
+
# response_headers_policy_id: "string", # required
|
5208
|
+
# })
|
5209
|
+
#
|
5210
|
+
# @example Response structure
|
5211
|
+
#
|
5212
|
+
# resp.distribution_id_list.marker #=> String
|
5213
|
+
# resp.distribution_id_list.next_marker #=> String
|
5214
|
+
# resp.distribution_id_list.max_items #=> Integer
|
5215
|
+
# resp.distribution_id_list.is_truncated #=> Boolean
|
5216
|
+
# resp.distribution_id_list.quantity #=> Integer
|
5217
|
+
# resp.distribution_id_list.items #=> Array
|
5218
|
+
# resp.distribution_id_list.items[0] #=> String
|
5219
|
+
#
|
5220
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListDistributionsByResponseHeadersPolicyId AWS API Documentation
|
5221
|
+
#
|
5222
|
+
# @overload list_distributions_by_response_headers_policy_id(params = {})
|
5223
|
+
# @param [Hash] params ({})
|
5224
|
+
def list_distributions_by_response_headers_policy_id(params = {}, options = {})
|
5225
|
+
req = build_request(:list_distributions_by_response_headers_policy_id, params)
|
5226
|
+
req.send_request(options)
|
5227
|
+
end
|
5228
|
+
|
4798
5229
|
# List the distributions that are associated with a specified WAF web
|
4799
5230
|
# ACL.
|
4800
5231
|
#
|
@@ -4905,6 +5336,7 @@ module Aws::CloudFront
|
|
4905
5336
|
# resp.distribution_list.items[0].default_cache_behavior.realtime_log_config_arn #=> String
|
4906
5337
|
# resp.distribution_list.items[0].default_cache_behavior.cache_policy_id #=> String
|
4907
5338
|
# resp.distribution_list.items[0].default_cache_behavior.origin_request_policy_id #=> String
|
5339
|
+
# resp.distribution_list.items[0].default_cache_behavior.response_headers_policy_id #=> String
|
4908
5340
|
# resp.distribution_list.items[0].default_cache_behavior.forwarded_values.query_string #=> Boolean
|
4909
5341
|
# resp.distribution_list.items[0].default_cache_behavior.forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all"
|
4910
5342
|
# resp.distribution_list.items[0].default_cache_behavior.forwarded_values.cookies.whitelisted_names.quantity #=> Integer
|
@@ -4953,6 +5385,7 @@ module Aws::CloudFront
|
|
4953
5385
|
# resp.distribution_list.items[0].cache_behaviors.items[0].realtime_log_config_arn #=> String
|
4954
5386
|
# resp.distribution_list.items[0].cache_behaviors.items[0].cache_policy_id #=> String
|
4955
5387
|
# resp.distribution_list.items[0].cache_behaviors.items[0].origin_request_policy_id #=> String
|
5388
|
+
# resp.distribution_list.items[0].cache_behaviors.items[0].response_headers_policy_id #=> String
|
4956
5389
|
# resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.query_string #=> Boolean
|
4957
5390
|
# resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all"
|
4958
5391
|
# resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.quantity #=> Integer
|
@@ -5111,7 +5544,8 @@ module Aws::CloudFront
|
|
5111
5544
|
req.send_request(options)
|
5112
5545
|
end
|
5113
5546
|
|
5114
|
-
# Gets a list of all CloudFront functions in your
|
5547
|
+
# Gets a list of all CloudFront functions in your Amazon Web Services
|
5548
|
+
# account.
|
5115
5549
|
#
|
5116
5550
|
# You can optionally apply a filter to return only the functions that
|
5117
5551
|
# are in the specified stage, either `DEVELOPMENT` or `LIVE`.
|
@@ -5283,7 +5717,7 @@ module Aws::CloudFront
|
|
5283
5717
|
#
|
5284
5718
|
# You can optionally apply a filter to return only the managed policies
|
5285
5719
|
# created by Amazon Web Services, or only the custom policies created in
|
5286
|
-
# your account.
|
5720
|
+
# your Amazon Web Services account.
|
5287
5721
|
#
|
5288
5722
|
# You can optionally specify the maximum number of items to receive in
|
5289
5723
|
# the response. If the total number of items in the list exceeds the
|
@@ -5299,7 +5733,8 @@ module Aws::CloudFront
|
|
5299
5733
|
# * `managed` – Returns only the managed policies created by Amazon Web
|
5300
5734
|
# Services.
|
5301
5735
|
#
|
5302
|
-
# * `custom` – Returns only the custom policies created in your
|
5736
|
+
# * `custom` – Returns only the custom policies created in your Amazon
|
5737
|
+
# Web Services account.
|
5303
5738
|
#
|
5304
5739
|
# @option params [String] :marker
|
5305
5740
|
# Use this field when paginating results to indicate where to begin in
|
@@ -5459,6 +5894,108 @@ module Aws::CloudFront
|
|
5459
5894
|
req.send_request(options)
|
5460
5895
|
end
|
5461
5896
|
|
5897
|
+
# Gets a list of response headers policies.
|
5898
|
+
#
|
5899
|
+
# You can optionally apply a filter to get only the managed policies
|
5900
|
+
# created by Amazon Web Services, or only the custom policies created in
|
5901
|
+
# your Amazon Web Services account.
|
5902
|
+
#
|
5903
|
+
# You can optionally specify the maximum number of items to receive in
|
5904
|
+
# the response. If the total number of items in the list exceeds the
|
5905
|
+
# maximum that you specify, or the default maximum, the response is
|
5906
|
+
# paginated. To get the next page of items, send a subsequent request
|
5907
|
+
# that specifies the `NextMarker` value from the current response as the
|
5908
|
+
# `Marker` value in the subsequent request.
|
5909
|
+
#
|
5910
|
+
# @option params [String] :type
|
5911
|
+
# A filter to get only the specified kind of response headers policies.
|
5912
|
+
# Valid values are:
|
5913
|
+
#
|
5914
|
+
# * `managed` – Gets only the managed policies created by Amazon Web
|
5915
|
+
# Services.
|
5916
|
+
#
|
5917
|
+
# * `custom` – Gets only the custom policies created in your Amazon Web
|
5918
|
+
# Services account.
|
5919
|
+
#
|
5920
|
+
# @option params [String] :marker
|
5921
|
+
# Use this field when paginating results to indicate where to begin in
|
5922
|
+
# your list of response headers policies. The response includes response
|
5923
|
+
# headers policies in the list that occur after the marker. To get the
|
5924
|
+
# next page of the list, set this field’s value to the value of
|
5925
|
+
# `NextMarker` from the current page’s response.
|
5926
|
+
#
|
5927
|
+
# @option params [Integer] :max_items
|
5928
|
+
# The maximum number of response headers policies that you want to get
|
5929
|
+
# in the response.
|
5930
|
+
#
|
5931
|
+
# @return [Types::ListResponseHeadersPoliciesResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
5932
|
+
#
|
5933
|
+
# * {Types::ListResponseHeadersPoliciesResult#response_headers_policy_list #response_headers_policy_list} => Types::ResponseHeadersPolicyList
|
5934
|
+
#
|
5935
|
+
# @example Request syntax with placeholder values
|
5936
|
+
#
|
5937
|
+
# resp = client.list_response_headers_policies({
|
5938
|
+
# type: "managed", # accepts managed, custom
|
5939
|
+
# marker: "string",
|
5940
|
+
# max_items: 1,
|
5941
|
+
# })
|
5942
|
+
#
|
5943
|
+
# @example Response structure
|
5944
|
+
#
|
5945
|
+
# resp.response_headers_policy_list.next_marker #=> String
|
5946
|
+
# resp.response_headers_policy_list.max_items #=> Integer
|
5947
|
+
# resp.response_headers_policy_list.quantity #=> Integer
|
5948
|
+
# resp.response_headers_policy_list.items #=> Array
|
5949
|
+
# resp.response_headers_policy_list.items[0].type #=> String, one of "managed", "custom"
|
5950
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.id #=> String
|
5951
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.last_modified_time #=> Time
|
5952
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.comment #=> String
|
5953
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.name #=> String
|
5954
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_origins.quantity #=> Integer
|
5955
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_origins.items #=> Array
|
5956
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_origins.items[0] #=> String
|
5957
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_headers.quantity #=> Integer
|
5958
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_headers.items #=> Array
|
5959
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_headers.items[0] #=> String
|
5960
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_methods.quantity #=> Integer
|
5961
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_methods.items #=> Array
|
5962
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_methods.items[0] #=> String, one of "GET", "POST", "OPTIONS", "PUT", "DELETE", "PATCH", "HEAD", "ALL"
|
5963
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_credentials #=> Boolean
|
5964
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.cors_config.access_control_expose_headers.quantity #=> Integer
|
5965
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.cors_config.access_control_expose_headers.items #=> Array
|
5966
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.cors_config.access_control_expose_headers.items[0] #=> String
|
5967
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.cors_config.access_control_max_age_sec #=> Integer
|
5968
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.cors_config.origin_override #=> Boolean
|
5969
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.security_headers_config.xss_protection.override #=> Boolean
|
5970
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.security_headers_config.xss_protection.protection #=> Boolean
|
5971
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.security_headers_config.xss_protection.mode_block #=> Boolean
|
5972
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.security_headers_config.xss_protection.report_uri #=> String
|
5973
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.security_headers_config.frame_options.override #=> Boolean
|
5974
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.security_headers_config.frame_options.frame_option #=> String, one of "DENY", "SAMEORIGIN"
|
5975
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.security_headers_config.referrer_policy.override #=> Boolean
|
5976
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.security_headers_config.referrer_policy.referrer_policy #=> String, one of "no-referrer", "no-referrer-when-downgrade", "origin", "origin-when-cross-origin", "same-origin", "strict-origin", "strict-origin-when-cross-origin", "unsafe-url"
|
5977
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.security_headers_config.content_security_policy.override #=> Boolean
|
5978
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.security_headers_config.content_security_policy.content_security_policy #=> String
|
5979
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.security_headers_config.content_type_options.override #=> Boolean
|
5980
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.security_headers_config.strict_transport_security.override #=> Boolean
|
5981
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.security_headers_config.strict_transport_security.include_subdomains #=> Boolean
|
5982
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.security_headers_config.strict_transport_security.preload #=> Boolean
|
5983
|
+
# 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
|
5984
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.custom_headers_config.quantity #=> Integer
|
5985
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.custom_headers_config.items #=> Array
|
5986
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].header #=> String
|
5987
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].value #=> String
|
5988
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].override #=> Boolean
|
5989
|
+
#
|
5990
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListResponseHeadersPolicies AWS API Documentation
|
5991
|
+
#
|
5992
|
+
# @overload list_response_headers_policies(params = {})
|
5993
|
+
# @param [Hash] params ({})
|
5994
|
+
def list_response_headers_policies(params = {}, options = {})
|
5995
|
+
req = build_request(:list_response_headers_policies, params)
|
5996
|
+
req.send_request(options)
|
5997
|
+
end
|
5998
|
+
|
5462
5999
|
# List streaming distributions.
|
5463
6000
|
#
|
5464
6001
|
# @option params [String] :marker
|
@@ -6000,7 +6537,7 @@ module Aws::CloudFront
|
|
6000
6537
|
# items: [
|
6001
6538
|
# {
|
6002
6539
|
# header_name: "string", # required
|
6003
|
-
# header_value: "
|
6540
|
+
# header_value: "sensitiveStringType", # required
|
6004
6541
|
# },
|
6005
6542
|
# ],
|
6006
6543
|
# },
|
@@ -6095,6 +6632,7 @@ module Aws::CloudFront
|
|
6095
6632
|
# realtime_log_config_arn: "string",
|
6096
6633
|
# cache_policy_id: "string",
|
6097
6634
|
# origin_request_policy_id: "string",
|
6635
|
+
# response_headers_policy_id: "string",
|
6098
6636
|
# forwarded_values: {
|
6099
6637
|
# query_string: false, # required
|
6100
6638
|
# cookies: { # required
|
@@ -6167,6 +6705,7 @@ module Aws::CloudFront
|
|
6167
6705
|
# realtime_log_config_arn: "string",
|
6168
6706
|
# cache_policy_id: "string",
|
6169
6707
|
# origin_request_policy_id: "string",
|
6708
|
+
# response_headers_policy_id: "string",
|
6170
6709
|
# forwarded_values: {
|
6171
6710
|
# query_string: false, # required
|
6172
6711
|
# cookies: { # required
|
@@ -6324,6 +6863,7 @@ module Aws::CloudFront
|
|
6324
6863
|
# resp.distribution.distribution_config.default_cache_behavior.realtime_log_config_arn #=> String
|
6325
6864
|
# resp.distribution.distribution_config.default_cache_behavior.cache_policy_id #=> String
|
6326
6865
|
# resp.distribution.distribution_config.default_cache_behavior.origin_request_policy_id #=> String
|
6866
|
+
# resp.distribution.distribution_config.default_cache_behavior.response_headers_policy_id #=> String
|
6327
6867
|
# resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string #=> Boolean
|
6328
6868
|
# resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all"
|
6329
6869
|
# resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.quantity #=> Integer
|
@@ -6372,6 +6912,7 @@ module Aws::CloudFront
|
|
6372
6912
|
# resp.distribution.distribution_config.cache_behaviors.items[0].realtime_log_config_arn #=> String
|
6373
6913
|
# resp.distribution.distribution_config.cache_behaviors.items[0].cache_policy_id #=> String
|
6374
6914
|
# resp.distribution.distribution_config.cache_behaviors.items[0].origin_request_policy_id #=> String
|
6915
|
+
# resp.distribution.distribution_config.cache_behaviors.items[0].response_headers_policy_id #=> String
|
6375
6916
|
# resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string #=> Boolean
|
6376
6917
|
# resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all"
|
6377
6918
|
# resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.quantity #=> Integer
|
@@ -6937,6 +7478,162 @@ module Aws::CloudFront
|
|
6937
7478
|
req.send_request(options)
|
6938
7479
|
end
|
6939
7480
|
|
7481
|
+
# Updates a response headers policy.
|
7482
|
+
#
|
7483
|
+
# When you update a response headers policy, the entire policy is
|
7484
|
+
# replaced. You cannot update some policy fields independent of others.
|
7485
|
+
# To update a response headers policy configuration:
|
7486
|
+
#
|
7487
|
+
# 1. Use `GetResponseHeadersPolicyConfig` to get the current policy’s
|
7488
|
+
# configuration.
|
7489
|
+
#
|
7490
|
+
# 2. Modify the fields in the response headers policy configuration
|
7491
|
+
# that you want to update.
|
7492
|
+
#
|
7493
|
+
# 3. Call `UpdateResponseHeadersPolicy`, providing the entire response
|
7494
|
+
# headers policy configuration, including the fields that you
|
7495
|
+
# modified and those that you didn’t.
|
7496
|
+
#
|
7497
|
+
# @option params [required, Types::ResponseHeadersPolicyConfig] :response_headers_policy_config
|
7498
|
+
# A response headers policy configuration.
|
7499
|
+
#
|
7500
|
+
# @option params [required, String] :id
|
7501
|
+
# The identifier for the response headers policy that you are updating.
|
7502
|
+
#
|
7503
|
+
# @option params [String] :if_match
|
7504
|
+
# The version of the response headers policy that you are updating.
|
7505
|
+
#
|
7506
|
+
# The version is returned in the cache policy’s `ETag` field in the
|
7507
|
+
# response to `GetResponseHeadersPolicyConfig`.
|
7508
|
+
#
|
7509
|
+
# @return [Types::UpdateResponseHeadersPolicyResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
7510
|
+
#
|
7511
|
+
# * {Types::UpdateResponseHeadersPolicyResult#response_headers_policy #response_headers_policy} => Types::ResponseHeadersPolicy
|
7512
|
+
# * {Types::UpdateResponseHeadersPolicyResult#etag #etag} => String
|
7513
|
+
#
|
7514
|
+
# @example Request syntax with placeholder values
|
7515
|
+
#
|
7516
|
+
# resp = client.update_response_headers_policy({
|
7517
|
+
# response_headers_policy_config: { # required
|
7518
|
+
# comment: "string",
|
7519
|
+
# name: "string", # required
|
7520
|
+
# cors_config: {
|
7521
|
+
# access_control_allow_origins: { # required
|
7522
|
+
# quantity: 1, # required
|
7523
|
+
# items: ["string"], # required
|
7524
|
+
# },
|
7525
|
+
# access_control_allow_headers: { # required
|
7526
|
+
# quantity: 1, # required
|
7527
|
+
# items: ["string"], # required
|
7528
|
+
# },
|
7529
|
+
# access_control_allow_methods: { # required
|
7530
|
+
# quantity: 1, # required
|
7531
|
+
# items: ["GET"], # required, accepts GET, POST, OPTIONS, PUT, DELETE, PATCH, HEAD, ALL
|
7532
|
+
# },
|
7533
|
+
# access_control_allow_credentials: false, # required
|
7534
|
+
# access_control_expose_headers: {
|
7535
|
+
# quantity: 1, # required
|
7536
|
+
# items: ["string"],
|
7537
|
+
# },
|
7538
|
+
# access_control_max_age_sec: 1,
|
7539
|
+
# origin_override: false, # required
|
7540
|
+
# },
|
7541
|
+
# security_headers_config: {
|
7542
|
+
# xss_protection: {
|
7543
|
+
# override: false, # required
|
7544
|
+
# protection: false, # required
|
7545
|
+
# mode_block: false,
|
7546
|
+
# report_uri: "string",
|
7547
|
+
# },
|
7548
|
+
# frame_options: {
|
7549
|
+
# override: false, # required
|
7550
|
+
# frame_option: "DENY", # required, accepts DENY, SAMEORIGIN
|
7551
|
+
# },
|
7552
|
+
# referrer_policy: {
|
7553
|
+
# override: false, # required
|
7554
|
+
# referrer_policy: "no-referrer", # required, accepts no-referrer, no-referrer-when-downgrade, origin, origin-when-cross-origin, same-origin, strict-origin, strict-origin-when-cross-origin, unsafe-url
|
7555
|
+
# },
|
7556
|
+
# content_security_policy: {
|
7557
|
+
# override: false, # required
|
7558
|
+
# content_security_policy: "string", # required
|
7559
|
+
# },
|
7560
|
+
# content_type_options: {
|
7561
|
+
# override: false, # required
|
7562
|
+
# },
|
7563
|
+
# strict_transport_security: {
|
7564
|
+
# override: false, # required
|
7565
|
+
# include_subdomains: false,
|
7566
|
+
# preload: false,
|
7567
|
+
# access_control_max_age_sec: 1, # required
|
7568
|
+
# },
|
7569
|
+
# },
|
7570
|
+
# custom_headers_config: {
|
7571
|
+
# quantity: 1, # required
|
7572
|
+
# items: [
|
7573
|
+
# {
|
7574
|
+
# header: "string", # required
|
7575
|
+
# value: "string", # required
|
7576
|
+
# override: false, # required
|
7577
|
+
# },
|
7578
|
+
# ],
|
7579
|
+
# },
|
7580
|
+
# },
|
7581
|
+
# id: "string", # required
|
7582
|
+
# if_match: "string",
|
7583
|
+
# })
|
7584
|
+
#
|
7585
|
+
# @example Response structure
|
7586
|
+
#
|
7587
|
+
# resp.response_headers_policy.id #=> String
|
7588
|
+
# resp.response_headers_policy.last_modified_time #=> Time
|
7589
|
+
# resp.response_headers_policy.response_headers_policy_config.comment #=> String
|
7590
|
+
# resp.response_headers_policy.response_headers_policy_config.name #=> String
|
7591
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_origins.quantity #=> Integer
|
7592
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_origins.items #=> Array
|
7593
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_origins.items[0] #=> String
|
7594
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_headers.quantity #=> Integer
|
7595
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_headers.items #=> Array
|
7596
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_headers.items[0] #=> String
|
7597
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_methods.quantity #=> Integer
|
7598
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_methods.items #=> Array
|
7599
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_methods.items[0] #=> String, one of "GET", "POST", "OPTIONS", "PUT", "DELETE", "PATCH", "HEAD", "ALL"
|
7600
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_credentials #=> Boolean
|
7601
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_expose_headers.quantity #=> Integer
|
7602
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_expose_headers.items #=> Array
|
7603
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_expose_headers.items[0] #=> String
|
7604
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_max_age_sec #=> Integer
|
7605
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.origin_override #=> Boolean
|
7606
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.xss_protection.override #=> Boolean
|
7607
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.xss_protection.protection #=> Boolean
|
7608
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.xss_protection.mode_block #=> Boolean
|
7609
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.xss_protection.report_uri #=> String
|
7610
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.frame_options.override #=> Boolean
|
7611
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.frame_options.frame_option #=> String, one of "DENY", "SAMEORIGIN"
|
7612
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.referrer_policy.override #=> Boolean
|
7613
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.referrer_policy.referrer_policy #=> String, one of "no-referrer", "no-referrer-when-downgrade", "origin", "origin-when-cross-origin", "same-origin", "strict-origin", "strict-origin-when-cross-origin", "unsafe-url"
|
7614
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.content_security_policy.override #=> Boolean
|
7615
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.content_security_policy.content_security_policy #=> String
|
7616
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.content_type_options.override #=> Boolean
|
7617
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.strict_transport_security.override #=> Boolean
|
7618
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.strict_transport_security.include_subdomains #=> Boolean
|
7619
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.strict_transport_security.preload #=> Boolean
|
7620
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.strict_transport_security.access_control_max_age_sec #=> Integer
|
7621
|
+
# resp.response_headers_policy.response_headers_policy_config.custom_headers_config.quantity #=> Integer
|
7622
|
+
# resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items #=> Array
|
7623
|
+
# resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].header #=> String
|
7624
|
+
# resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].value #=> String
|
7625
|
+
# resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].override #=> Boolean
|
7626
|
+
# resp.etag #=> String
|
7627
|
+
#
|
7628
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateResponseHeadersPolicy AWS API Documentation
|
7629
|
+
#
|
7630
|
+
# @overload update_response_headers_policy(params = {})
|
7631
|
+
# @param [Hash] params ({})
|
7632
|
+
def update_response_headers_policy(params = {}, options = {})
|
7633
|
+
req = build_request(:update_response_headers_policy, params)
|
7634
|
+
req.send_request(options)
|
7635
|
+
end
|
7636
|
+
|
6940
7637
|
# Update a streaming distribution.
|
6941
7638
|
#
|
6942
7639
|
# @option params [required, Types::StreamingDistributionConfig] :streaming_distribution_config
|
@@ -7040,7 +7737,7 @@ module Aws::CloudFront
|
|
7040
7737
|
params: params,
|
7041
7738
|
config: config)
|
7042
7739
|
context[:gem_name] = 'aws-sdk-cloudfront'
|
7043
|
-
context[:gem_version] = '1.
|
7740
|
+
context[:gem_version] = '1.60.0'
|
7044
7741
|
Seahorse::Client::Request.new(handlers, context)
|
7045
7742
|
end
|
7046
7743
|
|