aws-sdk-cloudfront 1.57.0 → 1.58.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-cloudfront/client.rb +695 -9
- 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 +2 -2
@@ -578,7 +578,7 @@ module Aws::CloudFront
|
|
578
578
|
# items: [
|
579
579
|
# {
|
580
580
|
# header_name: "string", # required
|
581
|
-
# header_value: "
|
581
|
+
# header_value: "sensitiveStringType", # required
|
582
582
|
# },
|
583
583
|
# ],
|
584
584
|
# },
|
@@ -673,6 +673,7 @@ module Aws::CloudFront
|
|
673
673
|
# realtime_log_config_arn: "string",
|
674
674
|
# cache_policy_id: "string",
|
675
675
|
# origin_request_policy_id: "string",
|
676
|
+
# response_headers_policy_id: "string",
|
676
677
|
# forwarded_values: {
|
677
678
|
# query_string: false, # required
|
678
679
|
# cookies: { # required
|
@@ -745,6 +746,7 @@ module Aws::CloudFront
|
|
745
746
|
# realtime_log_config_arn: "string",
|
746
747
|
# cache_policy_id: "string",
|
747
748
|
# origin_request_policy_id: "string",
|
749
|
+
# response_headers_policy_id: "string",
|
748
750
|
# forwarded_values: {
|
749
751
|
# query_string: false, # required
|
750
752
|
# cookies: { # required
|
@@ -900,6 +902,7 @@ module Aws::CloudFront
|
|
900
902
|
# resp.distribution.distribution_config.default_cache_behavior.realtime_log_config_arn #=> String
|
901
903
|
# resp.distribution.distribution_config.default_cache_behavior.cache_policy_id #=> String
|
902
904
|
# resp.distribution.distribution_config.default_cache_behavior.origin_request_policy_id #=> String
|
905
|
+
# resp.distribution.distribution_config.default_cache_behavior.response_headers_policy_id #=> String
|
903
906
|
# resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string #=> Boolean
|
904
907
|
# resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all"
|
905
908
|
# resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.quantity #=> Integer
|
@@ -948,6 +951,7 @@ module Aws::CloudFront
|
|
948
951
|
# resp.distribution.distribution_config.cache_behaviors.items[0].realtime_log_config_arn #=> String
|
949
952
|
# resp.distribution.distribution_config.cache_behaviors.items[0].cache_policy_id #=> String
|
950
953
|
# resp.distribution.distribution_config.cache_behaviors.items[0].origin_request_policy_id #=> String
|
954
|
+
# resp.distribution.distribution_config.cache_behaviors.items[0].response_headers_policy_id #=> String
|
951
955
|
# resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string #=> Boolean
|
952
956
|
# resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all"
|
953
957
|
# resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.quantity #=> Integer
|
@@ -1038,7 +1042,7 @@ module Aws::CloudFront
|
|
1038
1042
|
# items: [
|
1039
1043
|
# {
|
1040
1044
|
# header_name: "string", # required
|
1041
|
-
# header_value: "
|
1045
|
+
# header_value: "sensitiveStringType", # required
|
1042
1046
|
# },
|
1043
1047
|
# ],
|
1044
1048
|
# },
|
@@ -1133,6 +1137,7 @@ module Aws::CloudFront
|
|
1133
1137
|
# realtime_log_config_arn: "string",
|
1134
1138
|
# cache_policy_id: "string",
|
1135
1139
|
# origin_request_policy_id: "string",
|
1140
|
+
# response_headers_policy_id: "string",
|
1136
1141
|
# forwarded_values: {
|
1137
1142
|
# query_string: false, # required
|
1138
1143
|
# cookies: { # required
|
@@ -1205,6 +1210,7 @@ module Aws::CloudFront
|
|
1205
1210
|
# realtime_log_config_arn: "string",
|
1206
1211
|
# cache_policy_id: "string",
|
1207
1212
|
# origin_request_policy_id: "string",
|
1213
|
+
# response_headers_policy_id: "string",
|
1208
1214
|
# forwarded_values: {
|
1209
1215
|
# query_string: false, # required
|
1210
1216
|
# cookies: { # required
|
@@ -1369,6 +1375,7 @@ module Aws::CloudFront
|
|
1369
1375
|
# resp.distribution.distribution_config.default_cache_behavior.realtime_log_config_arn #=> String
|
1370
1376
|
# resp.distribution.distribution_config.default_cache_behavior.cache_policy_id #=> String
|
1371
1377
|
# resp.distribution.distribution_config.default_cache_behavior.origin_request_policy_id #=> String
|
1378
|
+
# resp.distribution.distribution_config.default_cache_behavior.response_headers_policy_id #=> String
|
1372
1379
|
# resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string #=> Boolean
|
1373
1380
|
# resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all"
|
1374
1381
|
# resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.quantity #=> Integer
|
@@ -1417,6 +1424,7 @@ module Aws::CloudFront
|
|
1417
1424
|
# resp.distribution.distribution_config.cache_behaviors.items[0].realtime_log_config_arn #=> String
|
1418
1425
|
# resp.distribution.distribution_config.cache_behaviors.items[0].cache_policy_id #=> String
|
1419
1426
|
# resp.distribution.distribution_config.cache_behaviors.items[0].origin_request_policy_id #=> String
|
1427
|
+
# resp.distribution.distribution_config.cache_behaviors.items[0].response_headers_policy_id #=> String
|
1420
1428
|
# resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string #=> Boolean
|
1421
1429
|
# resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all"
|
1422
1430
|
# resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.quantity #=> Integer
|
@@ -2051,6 +2059,151 @@ module Aws::CloudFront
|
|
2051
2059
|
req.send_request(options)
|
2052
2060
|
end
|
2053
2061
|
|
2062
|
+
# Creates a response headers policy.
|
2063
|
+
#
|
2064
|
+
# A response headers policy contains information about a set of HTTP
|
2065
|
+
# response headers and their values. To create a response headers
|
2066
|
+
# policy, you provide some metadata about the policy, and a set of
|
2067
|
+
# configurations that specify the response headers.
|
2068
|
+
#
|
2069
|
+
# After you create a response headers policy, you can use its ID to
|
2070
|
+
# attach it to one or more cache behaviors in a CloudFront distribution.
|
2071
|
+
# When it’s attached to a cache behavior, CloudFront adds the headers in
|
2072
|
+
# the policy to HTTP responses that it sends for requests that match the
|
2073
|
+
# cache behavior.
|
2074
|
+
#
|
2075
|
+
# @option params [required, Types::ResponseHeadersPolicyConfig] :response_headers_policy_config
|
2076
|
+
# Contains metadata about the response headers policy, and a set of
|
2077
|
+
# configurations that specify the response headers.
|
2078
|
+
#
|
2079
|
+
# @return [Types::CreateResponseHeadersPolicyResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2080
|
+
#
|
2081
|
+
# * {Types::CreateResponseHeadersPolicyResult#response_headers_policy #response_headers_policy} => Types::ResponseHeadersPolicy
|
2082
|
+
# * {Types::CreateResponseHeadersPolicyResult#location #location} => String
|
2083
|
+
# * {Types::CreateResponseHeadersPolicyResult#etag #etag} => String
|
2084
|
+
#
|
2085
|
+
# @example Request syntax with placeholder values
|
2086
|
+
#
|
2087
|
+
# resp = client.create_response_headers_policy({
|
2088
|
+
# response_headers_policy_config: { # required
|
2089
|
+
# comment: "string",
|
2090
|
+
# name: "string", # required
|
2091
|
+
# cors_config: {
|
2092
|
+
# access_control_allow_origins: { # required
|
2093
|
+
# quantity: 1, # required
|
2094
|
+
# items: ["string"], # required
|
2095
|
+
# },
|
2096
|
+
# access_control_allow_headers: { # required
|
2097
|
+
# quantity: 1, # required
|
2098
|
+
# items: ["string"], # required
|
2099
|
+
# },
|
2100
|
+
# access_control_allow_methods: { # required
|
2101
|
+
# quantity: 1, # required
|
2102
|
+
# items: ["GET"], # required, accepts GET, POST, OPTIONS, PUT, DELETE, PATCH, HEAD, ALL
|
2103
|
+
# },
|
2104
|
+
# access_control_allow_credentials: false, # required
|
2105
|
+
# access_control_expose_headers: {
|
2106
|
+
# quantity: 1, # required
|
2107
|
+
# items: ["string"],
|
2108
|
+
# },
|
2109
|
+
# access_control_max_age_sec: 1,
|
2110
|
+
# origin_override: false, # required
|
2111
|
+
# },
|
2112
|
+
# security_headers_config: {
|
2113
|
+
# xss_protection: {
|
2114
|
+
# override: false, # required
|
2115
|
+
# protection: false, # required
|
2116
|
+
# mode_block: false,
|
2117
|
+
# report_uri: "string",
|
2118
|
+
# },
|
2119
|
+
# frame_options: {
|
2120
|
+
# override: false, # required
|
2121
|
+
# frame_option: "DENY", # required, accepts DENY, SAMEORIGIN
|
2122
|
+
# },
|
2123
|
+
# referrer_policy: {
|
2124
|
+
# override: false, # required
|
2125
|
+
# 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
|
2126
|
+
# },
|
2127
|
+
# content_security_policy: {
|
2128
|
+
# override: false, # required
|
2129
|
+
# content_security_policy: "string", # required
|
2130
|
+
# },
|
2131
|
+
# content_type_options: {
|
2132
|
+
# override: false, # required
|
2133
|
+
# },
|
2134
|
+
# strict_transport_security: {
|
2135
|
+
# override: false, # required
|
2136
|
+
# include_subdomains: false,
|
2137
|
+
# preload: false,
|
2138
|
+
# access_control_max_age_sec: 1, # required
|
2139
|
+
# },
|
2140
|
+
# },
|
2141
|
+
# custom_headers_config: {
|
2142
|
+
# quantity: 1, # required
|
2143
|
+
# items: [
|
2144
|
+
# {
|
2145
|
+
# header: "string", # required
|
2146
|
+
# value: "string", # required
|
2147
|
+
# override: false, # required
|
2148
|
+
# },
|
2149
|
+
# ],
|
2150
|
+
# },
|
2151
|
+
# },
|
2152
|
+
# })
|
2153
|
+
#
|
2154
|
+
# @example Response structure
|
2155
|
+
#
|
2156
|
+
# resp.response_headers_policy.id #=> String
|
2157
|
+
# resp.response_headers_policy.last_modified_time #=> Time
|
2158
|
+
# resp.response_headers_policy.response_headers_policy_config.comment #=> String
|
2159
|
+
# resp.response_headers_policy.response_headers_policy_config.name #=> String
|
2160
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_origins.quantity #=> Integer
|
2161
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_origins.items #=> Array
|
2162
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_origins.items[0] #=> String
|
2163
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_headers.quantity #=> Integer
|
2164
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_headers.items #=> Array
|
2165
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_headers.items[0] #=> String
|
2166
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_methods.quantity #=> Integer
|
2167
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_methods.items #=> Array
|
2168
|
+
# 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"
|
2169
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_credentials #=> Boolean
|
2170
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_expose_headers.quantity #=> Integer
|
2171
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_expose_headers.items #=> Array
|
2172
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_expose_headers.items[0] #=> String
|
2173
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_max_age_sec #=> Integer
|
2174
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.origin_override #=> Boolean
|
2175
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.xss_protection.override #=> Boolean
|
2176
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.xss_protection.protection #=> Boolean
|
2177
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.xss_protection.mode_block #=> Boolean
|
2178
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.xss_protection.report_uri #=> String
|
2179
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.frame_options.override #=> Boolean
|
2180
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.frame_options.frame_option #=> String, one of "DENY", "SAMEORIGIN"
|
2181
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.referrer_policy.override #=> Boolean
|
2182
|
+
# 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"
|
2183
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.content_security_policy.override #=> Boolean
|
2184
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.content_security_policy.content_security_policy #=> String
|
2185
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.content_type_options.override #=> Boolean
|
2186
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.strict_transport_security.override #=> Boolean
|
2187
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.strict_transport_security.include_subdomains #=> Boolean
|
2188
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.strict_transport_security.preload #=> Boolean
|
2189
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.strict_transport_security.access_control_max_age_sec #=> Integer
|
2190
|
+
# resp.response_headers_policy.response_headers_policy_config.custom_headers_config.quantity #=> Integer
|
2191
|
+
# resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items #=> Array
|
2192
|
+
# resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].header #=> String
|
2193
|
+
# resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].value #=> String
|
2194
|
+
# resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].override #=> Boolean
|
2195
|
+
# resp.location #=> String
|
2196
|
+
# resp.etag #=> String
|
2197
|
+
#
|
2198
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateResponseHeadersPolicy AWS API Documentation
|
2199
|
+
#
|
2200
|
+
# @overload create_response_headers_policy(params = {})
|
2201
|
+
# @param [Hash] params ({})
|
2202
|
+
def create_response_headers_policy(params = {}, options = {})
|
2203
|
+
req = build_request(:create_response_headers_policy, params)
|
2204
|
+
req.send_request(options)
|
2205
|
+
end
|
2206
|
+
|
2054
2207
|
# This API is deprecated. Amazon CloudFront is deprecating real-time
|
2055
2208
|
# messaging protocol (RTMP) distributions on December 31, 2020. For more
|
2056
2209
|
# information, [read the announcement][1] on the Amazon CloudFront
|
@@ -2583,6 +2736,47 @@ module Aws::CloudFront
|
|
2583
2736
|
req.send_request(options)
|
2584
2737
|
end
|
2585
2738
|
|
2739
|
+
# Deletes a response headers policy.
|
2740
|
+
#
|
2741
|
+
# You cannot delete a response headers policy if it’s attached to a
|
2742
|
+
# cache behavior. First update your distributions to remove the response
|
2743
|
+
# headers policy from all cache behaviors, then delete the response
|
2744
|
+
# headers policy.
|
2745
|
+
#
|
2746
|
+
# To delete a response headers policy, you must provide the policy’s
|
2747
|
+
# identifier and version. To get these values, you can use
|
2748
|
+
# `ListResponseHeadersPolicies` or `GetResponseHeadersPolicy`.
|
2749
|
+
#
|
2750
|
+
# @option params [required, String] :id
|
2751
|
+
# The identifier for the response headers policy that you are deleting.
|
2752
|
+
#
|
2753
|
+
# To get the identifier, you can use `ListResponseHeadersPolicies`.
|
2754
|
+
#
|
2755
|
+
# @option params [String] :if_match
|
2756
|
+
# The version of the response headers policy that you are deleting.
|
2757
|
+
#
|
2758
|
+
# The version is the response headers policy’s `ETag` value, which you
|
2759
|
+
# can get using `ListResponseHeadersPolicies`,
|
2760
|
+
# `GetResponseHeadersPolicy`, or `GetResponseHeadersPolicyConfig`.
|
2761
|
+
#
|
2762
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
2763
|
+
#
|
2764
|
+
# @example Request syntax with placeholder values
|
2765
|
+
#
|
2766
|
+
# resp = client.delete_response_headers_policy({
|
2767
|
+
# id: "string", # required
|
2768
|
+
# if_match: "string",
|
2769
|
+
# })
|
2770
|
+
#
|
2771
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteResponseHeadersPolicy AWS API Documentation
|
2772
|
+
#
|
2773
|
+
# @overload delete_response_headers_policy(params = {})
|
2774
|
+
# @param [Hash] params ({})
|
2775
|
+
def delete_response_headers_policy(params = {}, options = {})
|
2776
|
+
req = build_request(:delete_response_headers_policy, params)
|
2777
|
+
req.send_request(options)
|
2778
|
+
end
|
2779
|
+
|
2586
2780
|
# Delete a streaming distribution. To delete an RTMP distribution using
|
2587
2781
|
# the CloudFront API, perform the following steps.
|
2588
2782
|
#
|
@@ -2993,6 +3187,7 @@ module Aws::CloudFront
|
|
2993
3187
|
# resp.distribution.distribution_config.default_cache_behavior.realtime_log_config_arn #=> String
|
2994
3188
|
# resp.distribution.distribution_config.default_cache_behavior.cache_policy_id #=> String
|
2995
3189
|
# resp.distribution.distribution_config.default_cache_behavior.origin_request_policy_id #=> String
|
3190
|
+
# resp.distribution.distribution_config.default_cache_behavior.response_headers_policy_id #=> String
|
2996
3191
|
# resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string #=> Boolean
|
2997
3192
|
# resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all"
|
2998
3193
|
# resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.quantity #=> Integer
|
@@ -3041,6 +3236,7 @@ module Aws::CloudFront
|
|
3041
3236
|
# resp.distribution.distribution_config.cache_behaviors.items[0].realtime_log_config_arn #=> String
|
3042
3237
|
# resp.distribution.distribution_config.cache_behaviors.items[0].cache_policy_id #=> String
|
3043
3238
|
# resp.distribution.distribution_config.cache_behaviors.items[0].origin_request_policy_id #=> String
|
3239
|
+
# resp.distribution.distribution_config.cache_behaviors.items[0].response_headers_policy_id #=> String
|
3044
3240
|
# resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string #=> Boolean
|
3045
3241
|
# resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all"
|
3046
3242
|
# resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.quantity #=> Integer
|
@@ -3187,6 +3383,7 @@ module Aws::CloudFront
|
|
3187
3383
|
# resp.distribution_config.default_cache_behavior.realtime_log_config_arn #=> String
|
3188
3384
|
# resp.distribution_config.default_cache_behavior.cache_policy_id #=> String
|
3189
3385
|
# resp.distribution_config.default_cache_behavior.origin_request_policy_id #=> String
|
3386
|
+
# resp.distribution_config.default_cache_behavior.response_headers_policy_id #=> String
|
3190
3387
|
# resp.distribution_config.default_cache_behavior.forwarded_values.query_string #=> Boolean
|
3191
3388
|
# resp.distribution_config.default_cache_behavior.forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all"
|
3192
3389
|
# resp.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.quantity #=> Integer
|
@@ -3235,6 +3432,7 @@ module Aws::CloudFront
|
|
3235
3432
|
# resp.distribution_config.cache_behaviors.items[0].realtime_log_config_arn #=> String
|
3236
3433
|
# resp.distribution_config.cache_behaviors.items[0].cache_policy_id #=> String
|
3237
3434
|
# resp.distribution_config.cache_behaviors.items[0].origin_request_policy_id #=> String
|
3435
|
+
# resp.distribution_config.cache_behaviors.items[0].response_headers_policy_id #=> String
|
3238
3436
|
# resp.distribution_config.cache_behaviors.items[0].forwarded_values.query_string #=> Boolean
|
3239
3437
|
# resp.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all"
|
3240
3438
|
# resp.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.quantity #=> Integer
|
@@ -3884,6 +4082,167 @@ module Aws::CloudFront
|
|
3884
4082
|
req.send_request(options)
|
3885
4083
|
end
|
3886
4084
|
|
4085
|
+
# Gets a response headers policy, including metadata (the policy’s
|
4086
|
+
# identifier and the date and time when the policy was last modified).
|
4087
|
+
#
|
4088
|
+
# To get a response headers policy, you must provide the policy’s
|
4089
|
+
# identifier. If the response headers policy is attached to a
|
4090
|
+
# distribution’s cache behavior, you can get the policy’s identifier
|
4091
|
+
# using `ListDistributions` or `GetDistribution`. If the response
|
4092
|
+
# headers policy is not attached to a cache behavior, you can get the
|
4093
|
+
# identifier using `ListResponseHeadersPolicies`.
|
4094
|
+
#
|
4095
|
+
# @option params [required, String] :id
|
4096
|
+
# The identifier for the response headers policy.
|
4097
|
+
#
|
4098
|
+
# If the response headers policy is attached to a distribution’s cache
|
4099
|
+
# behavior, you can get the policy’s identifier using
|
4100
|
+
# `ListDistributions` or `GetDistribution`. If the response headers
|
4101
|
+
# policy is not attached to a cache behavior, you can get the identifier
|
4102
|
+
# using `ListResponseHeadersPolicies`.
|
4103
|
+
#
|
4104
|
+
# @return [Types::GetResponseHeadersPolicyResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
4105
|
+
#
|
4106
|
+
# * {Types::GetResponseHeadersPolicyResult#response_headers_policy #response_headers_policy} => Types::ResponseHeadersPolicy
|
4107
|
+
# * {Types::GetResponseHeadersPolicyResult#etag #etag} => String
|
4108
|
+
#
|
4109
|
+
# @example Request syntax with placeholder values
|
4110
|
+
#
|
4111
|
+
# resp = client.get_response_headers_policy({
|
4112
|
+
# id: "string", # required
|
4113
|
+
# })
|
4114
|
+
#
|
4115
|
+
# @example Response structure
|
4116
|
+
#
|
4117
|
+
# resp.response_headers_policy.id #=> String
|
4118
|
+
# resp.response_headers_policy.last_modified_time #=> Time
|
4119
|
+
# resp.response_headers_policy.response_headers_policy_config.comment #=> String
|
4120
|
+
# resp.response_headers_policy.response_headers_policy_config.name #=> String
|
4121
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_origins.quantity #=> Integer
|
4122
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_origins.items #=> Array
|
4123
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_origins.items[0] #=> String
|
4124
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_headers.quantity #=> Integer
|
4125
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_headers.items #=> Array
|
4126
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_headers.items[0] #=> String
|
4127
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_methods.quantity #=> Integer
|
4128
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_methods.items #=> Array
|
4129
|
+
# 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"
|
4130
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_credentials #=> Boolean
|
4131
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_expose_headers.quantity #=> Integer
|
4132
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_expose_headers.items #=> Array
|
4133
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_expose_headers.items[0] #=> String
|
4134
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_max_age_sec #=> Integer
|
4135
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.origin_override #=> Boolean
|
4136
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.xss_protection.override #=> Boolean
|
4137
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.xss_protection.protection #=> Boolean
|
4138
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.xss_protection.mode_block #=> Boolean
|
4139
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.xss_protection.report_uri #=> String
|
4140
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.frame_options.override #=> Boolean
|
4141
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.frame_options.frame_option #=> String, one of "DENY", "SAMEORIGIN"
|
4142
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.referrer_policy.override #=> Boolean
|
4143
|
+
# 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"
|
4144
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.content_security_policy.override #=> Boolean
|
4145
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.content_security_policy.content_security_policy #=> String
|
4146
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.content_type_options.override #=> Boolean
|
4147
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.strict_transport_security.override #=> Boolean
|
4148
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.strict_transport_security.include_subdomains #=> Boolean
|
4149
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.strict_transport_security.preload #=> Boolean
|
4150
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.strict_transport_security.access_control_max_age_sec #=> Integer
|
4151
|
+
# resp.response_headers_policy.response_headers_policy_config.custom_headers_config.quantity #=> Integer
|
4152
|
+
# resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items #=> Array
|
4153
|
+
# resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].header #=> String
|
4154
|
+
# resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].value #=> String
|
4155
|
+
# resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].override #=> Boolean
|
4156
|
+
# resp.etag #=> String
|
4157
|
+
#
|
4158
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetResponseHeadersPolicy AWS API Documentation
|
4159
|
+
#
|
4160
|
+
# @overload get_response_headers_policy(params = {})
|
4161
|
+
# @param [Hash] params ({})
|
4162
|
+
def get_response_headers_policy(params = {}, options = {})
|
4163
|
+
req = build_request(:get_response_headers_policy, params)
|
4164
|
+
req.send_request(options)
|
4165
|
+
end
|
4166
|
+
|
4167
|
+
# Gets a response headers policy configuration.
|
4168
|
+
#
|
4169
|
+
# To get a response headers policy configuration, you must provide the
|
4170
|
+
# policy’s identifier. If the response headers policy is attached to a
|
4171
|
+
# distribution’s cache behavior, you can get the policy’s identifier
|
4172
|
+
# using `ListDistributions` or `GetDistribution`. If the response
|
4173
|
+
# headers policy is not attached to a cache behavior, you can get the
|
4174
|
+
# identifier using `ListResponseHeadersPolicies`.
|
4175
|
+
#
|
4176
|
+
# @option params [required, String] :id
|
4177
|
+
# The identifier for the response headers policy.
|
4178
|
+
#
|
4179
|
+
# If the response headers policy is attached to a distribution’s cache
|
4180
|
+
# behavior, you can get the policy’s identifier using
|
4181
|
+
# `ListDistributions` or `GetDistribution`. If the response headers
|
4182
|
+
# policy is not attached to a cache behavior, you can get the identifier
|
4183
|
+
# using `ListResponseHeadersPolicies`.
|
4184
|
+
#
|
4185
|
+
# @return [Types::GetResponseHeadersPolicyConfigResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
4186
|
+
#
|
4187
|
+
# * {Types::GetResponseHeadersPolicyConfigResult#response_headers_policy_config #response_headers_policy_config} => Types::ResponseHeadersPolicyConfig
|
4188
|
+
# * {Types::GetResponseHeadersPolicyConfigResult#etag #etag} => String
|
4189
|
+
#
|
4190
|
+
# @example Request syntax with placeholder values
|
4191
|
+
#
|
4192
|
+
# resp = client.get_response_headers_policy_config({
|
4193
|
+
# id: "string", # required
|
4194
|
+
# })
|
4195
|
+
#
|
4196
|
+
# @example Response structure
|
4197
|
+
#
|
4198
|
+
# resp.response_headers_policy_config.comment #=> String
|
4199
|
+
# resp.response_headers_policy_config.name #=> String
|
4200
|
+
# resp.response_headers_policy_config.cors_config.access_control_allow_origins.quantity #=> Integer
|
4201
|
+
# resp.response_headers_policy_config.cors_config.access_control_allow_origins.items #=> Array
|
4202
|
+
# resp.response_headers_policy_config.cors_config.access_control_allow_origins.items[0] #=> String
|
4203
|
+
# resp.response_headers_policy_config.cors_config.access_control_allow_headers.quantity #=> Integer
|
4204
|
+
# resp.response_headers_policy_config.cors_config.access_control_allow_headers.items #=> Array
|
4205
|
+
# resp.response_headers_policy_config.cors_config.access_control_allow_headers.items[0] #=> String
|
4206
|
+
# resp.response_headers_policy_config.cors_config.access_control_allow_methods.quantity #=> Integer
|
4207
|
+
# resp.response_headers_policy_config.cors_config.access_control_allow_methods.items #=> Array
|
4208
|
+
# resp.response_headers_policy_config.cors_config.access_control_allow_methods.items[0] #=> String, one of "GET", "POST", "OPTIONS", "PUT", "DELETE", "PATCH", "HEAD", "ALL"
|
4209
|
+
# resp.response_headers_policy_config.cors_config.access_control_allow_credentials #=> Boolean
|
4210
|
+
# resp.response_headers_policy_config.cors_config.access_control_expose_headers.quantity #=> Integer
|
4211
|
+
# resp.response_headers_policy_config.cors_config.access_control_expose_headers.items #=> Array
|
4212
|
+
# resp.response_headers_policy_config.cors_config.access_control_expose_headers.items[0] #=> String
|
4213
|
+
# resp.response_headers_policy_config.cors_config.access_control_max_age_sec #=> Integer
|
4214
|
+
# resp.response_headers_policy_config.cors_config.origin_override #=> Boolean
|
4215
|
+
# resp.response_headers_policy_config.security_headers_config.xss_protection.override #=> Boolean
|
4216
|
+
# resp.response_headers_policy_config.security_headers_config.xss_protection.protection #=> Boolean
|
4217
|
+
# resp.response_headers_policy_config.security_headers_config.xss_protection.mode_block #=> Boolean
|
4218
|
+
# resp.response_headers_policy_config.security_headers_config.xss_protection.report_uri #=> String
|
4219
|
+
# resp.response_headers_policy_config.security_headers_config.frame_options.override #=> Boolean
|
4220
|
+
# resp.response_headers_policy_config.security_headers_config.frame_options.frame_option #=> String, one of "DENY", "SAMEORIGIN"
|
4221
|
+
# resp.response_headers_policy_config.security_headers_config.referrer_policy.override #=> Boolean
|
4222
|
+
# 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"
|
4223
|
+
# resp.response_headers_policy_config.security_headers_config.content_security_policy.override #=> Boolean
|
4224
|
+
# resp.response_headers_policy_config.security_headers_config.content_security_policy.content_security_policy #=> String
|
4225
|
+
# resp.response_headers_policy_config.security_headers_config.content_type_options.override #=> Boolean
|
4226
|
+
# resp.response_headers_policy_config.security_headers_config.strict_transport_security.override #=> Boolean
|
4227
|
+
# resp.response_headers_policy_config.security_headers_config.strict_transport_security.include_subdomains #=> Boolean
|
4228
|
+
# resp.response_headers_policy_config.security_headers_config.strict_transport_security.preload #=> Boolean
|
4229
|
+
# resp.response_headers_policy_config.security_headers_config.strict_transport_security.access_control_max_age_sec #=> Integer
|
4230
|
+
# resp.response_headers_policy_config.custom_headers_config.quantity #=> Integer
|
4231
|
+
# resp.response_headers_policy_config.custom_headers_config.items #=> Array
|
4232
|
+
# resp.response_headers_policy_config.custom_headers_config.items[0].header #=> String
|
4233
|
+
# resp.response_headers_policy_config.custom_headers_config.items[0].value #=> String
|
4234
|
+
# resp.response_headers_policy_config.custom_headers_config.items[0].override #=> Boolean
|
4235
|
+
# resp.etag #=> String
|
4236
|
+
#
|
4237
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetResponseHeadersPolicyConfig AWS API Documentation
|
4238
|
+
#
|
4239
|
+
# @overload get_response_headers_policy_config(params = {})
|
4240
|
+
# @param [Hash] params ({})
|
4241
|
+
def get_response_headers_policy_config(params = {}, options = {})
|
4242
|
+
req = build_request(:get_response_headers_policy_config, params)
|
4243
|
+
req.send_request(options)
|
4244
|
+
end
|
4245
|
+
|
3887
4246
|
# Gets information about a specified RTMP distribution, including the
|
3888
4247
|
# distribution configuration.
|
3889
4248
|
#
|
@@ -3996,7 +4355,7 @@ module Aws::CloudFront
|
|
3996
4355
|
#
|
3997
4356
|
# You can optionally apply a filter to return only the managed policies
|
3998
4357
|
# created by Amazon Web Services, or only the custom policies created in
|
3999
|
-
# your account.
|
4358
|
+
# your Amazon Web Services account.
|
4000
4359
|
#
|
4001
4360
|
# You can optionally specify the maximum number of items to receive in
|
4002
4361
|
# the response. If the total number of items in the list exceeds the
|
@@ -4012,7 +4371,8 @@ module Aws::CloudFront
|
|
4012
4371
|
# * `managed` – Returns only the managed policies created by Amazon Web
|
4013
4372
|
# Services.
|
4014
4373
|
#
|
4015
|
-
# * `custom` – Returns only the custom policies created in your
|
4374
|
+
# * `custom` – Returns only the custom policies created in your Amazon
|
4375
|
+
# Web Services account.
|
4016
4376
|
#
|
4017
4377
|
# @option params [String] :marker
|
4018
4378
|
# Use this field when paginating results to indicate where to begin in
|
@@ -4310,6 +4670,7 @@ module Aws::CloudFront
|
|
4310
4670
|
# resp.distribution_list.items[0].default_cache_behavior.realtime_log_config_arn #=> String
|
4311
4671
|
# resp.distribution_list.items[0].default_cache_behavior.cache_policy_id #=> String
|
4312
4672
|
# resp.distribution_list.items[0].default_cache_behavior.origin_request_policy_id #=> String
|
4673
|
+
# resp.distribution_list.items[0].default_cache_behavior.response_headers_policy_id #=> String
|
4313
4674
|
# resp.distribution_list.items[0].default_cache_behavior.forwarded_values.query_string #=> Boolean
|
4314
4675
|
# resp.distribution_list.items[0].default_cache_behavior.forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all"
|
4315
4676
|
# resp.distribution_list.items[0].default_cache_behavior.forwarded_values.cookies.whitelisted_names.quantity #=> Integer
|
@@ -4358,6 +4719,7 @@ module Aws::CloudFront
|
|
4358
4719
|
# resp.distribution_list.items[0].cache_behaviors.items[0].realtime_log_config_arn #=> String
|
4359
4720
|
# resp.distribution_list.items[0].cache_behaviors.items[0].cache_policy_id #=> String
|
4360
4721
|
# resp.distribution_list.items[0].cache_behaviors.items[0].origin_request_policy_id #=> String
|
4722
|
+
# resp.distribution_list.items[0].cache_behaviors.items[0].response_headers_policy_id #=> String
|
4361
4723
|
# resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.query_string #=> Boolean
|
4362
4724
|
# resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all"
|
4363
4725
|
# resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.quantity #=> Integer
|
@@ -4697,6 +5059,7 @@ module Aws::CloudFront
|
|
4697
5059
|
# resp.distribution_list.items[0].default_cache_behavior.realtime_log_config_arn #=> String
|
4698
5060
|
# resp.distribution_list.items[0].default_cache_behavior.cache_policy_id #=> String
|
4699
5061
|
# resp.distribution_list.items[0].default_cache_behavior.origin_request_policy_id #=> String
|
5062
|
+
# resp.distribution_list.items[0].default_cache_behavior.response_headers_policy_id #=> String
|
4700
5063
|
# resp.distribution_list.items[0].default_cache_behavior.forwarded_values.query_string #=> Boolean
|
4701
5064
|
# resp.distribution_list.items[0].default_cache_behavior.forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all"
|
4702
5065
|
# resp.distribution_list.items[0].default_cache_behavior.forwarded_values.cookies.whitelisted_names.quantity #=> Integer
|
@@ -4745,6 +5108,7 @@ module Aws::CloudFront
|
|
4745
5108
|
# resp.distribution_list.items[0].cache_behaviors.items[0].realtime_log_config_arn #=> String
|
4746
5109
|
# resp.distribution_list.items[0].cache_behaviors.items[0].cache_policy_id #=> String
|
4747
5110
|
# resp.distribution_list.items[0].cache_behaviors.items[0].origin_request_policy_id #=> String
|
5111
|
+
# resp.distribution_list.items[0].cache_behaviors.items[0].response_headers_policy_id #=> String
|
4748
5112
|
# resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.query_string #=> Boolean
|
4749
5113
|
# resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all"
|
4750
5114
|
# resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.quantity #=> Integer
|
@@ -4795,6 +5159,62 @@ module Aws::CloudFront
|
|
4795
5159
|
req.send_request(options)
|
4796
5160
|
end
|
4797
5161
|
|
5162
|
+
# Gets a list of distribution IDs for distributions that have a cache
|
5163
|
+
# behavior that’s associated with the specified response headers policy.
|
5164
|
+
#
|
5165
|
+
# You can optionally specify the maximum number of items to receive in
|
5166
|
+
# the response. If the total number of items in the list exceeds the
|
5167
|
+
# maximum that you specify, or the default maximum, the response is
|
5168
|
+
# paginated. To get the next page of items, send a subsequent request
|
5169
|
+
# that specifies the `NextMarker` value from the current response as the
|
5170
|
+
# `Marker` value in the subsequent request.
|
5171
|
+
#
|
5172
|
+
# @option params [String] :marker
|
5173
|
+
# Use this field when paginating results to indicate where to begin in
|
5174
|
+
# your list of distribution IDs. The response includes distribution IDs
|
5175
|
+
# in the list that occur after the marker. To get the next page of the
|
5176
|
+
# list, set this field’s value to the value of `NextMarker` from the
|
5177
|
+
# current page’s response.
|
5178
|
+
#
|
5179
|
+
# @option params [Integer] :max_items
|
5180
|
+
# The maximum number of distribution IDs that you want to get in the
|
5181
|
+
# response.
|
5182
|
+
#
|
5183
|
+
# @option params [required, String] :response_headers_policy_id
|
5184
|
+
# The ID of the response headers policy whose associated distribution
|
5185
|
+
# IDs you want to list.
|
5186
|
+
#
|
5187
|
+
# @return [Types::ListDistributionsByResponseHeadersPolicyIdResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
5188
|
+
#
|
5189
|
+
# * {Types::ListDistributionsByResponseHeadersPolicyIdResult#distribution_id_list #distribution_id_list} => Types::DistributionIdList
|
5190
|
+
#
|
5191
|
+
# @example Request syntax with placeholder values
|
5192
|
+
#
|
5193
|
+
# resp = client.list_distributions_by_response_headers_policy_id({
|
5194
|
+
# marker: "string",
|
5195
|
+
# max_items: 1,
|
5196
|
+
# response_headers_policy_id: "string", # required
|
5197
|
+
# })
|
5198
|
+
#
|
5199
|
+
# @example Response structure
|
5200
|
+
#
|
5201
|
+
# resp.distribution_id_list.marker #=> String
|
5202
|
+
# resp.distribution_id_list.next_marker #=> String
|
5203
|
+
# resp.distribution_id_list.max_items #=> Integer
|
5204
|
+
# resp.distribution_id_list.is_truncated #=> Boolean
|
5205
|
+
# resp.distribution_id_list.quantity #=> Integer
|
5206
|
+
# resp.distribution_id_list.items #=> Array
|
5207
|
+
# resp.distribution_id_list.items[0] #=> String
|
5208
|
+
#
|
5209
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListDistributionsByResponseHeadersPolicyId AWS API Documentation
|
5210
|
+
#
|
5211
|
+
# @overload list_distributions_by_response_headers_policy_id(params = {})
|
5212
|
+
# @param [Hash] params ({})
|
5213
|
+
def list_distributions_by_response_headers_policy_id(params = {}, options = {})
|
5214
|
+
req = build_request(:list_distributions_by_response_headers_policy_id, params)
|
5215
|
+
req.send_request(options)
|
5216
|
+
end
|
5217
|
+
|
4798
5218
|
# List the distributions that are associated with a specified WAF web
|
4799
5219
|
# ACL.
|
4800
5220
|
#
|
@@ -4905,6 +5325,7 @@ module Aws::CloudFront
|
|
4905
5325
|
# resp.distribution_list.items[0].default_cache_behavior.realtime_log_config_arn #=> String
|
4906
5326
|
# resp.distribution_list.items[0].default_cache_behavior.cache_policy_id #=> String
|
4907
5327
|
# resp.distribution_list.items[0].default_cache_behavior.origin_request_policy_id #=> String
|
5328
|
+
# resp.distribution_list.items[0].default_cache_behavior.response_headers_policy_id #=> String
|
4908
5329
|
# resp.distribution_list.items[0].default_cache_behavior.forwarded_values.query_string #=> Boolean
|
4909
5330
|
# resp.distribution_list.items[0].default_cache_behavior.forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all"
|
4910
5331
|
# resp.distribution_list.items[0].default_cache_behavior.forwarded_values.cookies.whitelisted_names.quantity #=> Integer
|
@@ -4953,6 +5374,7 @@ module Aws::CloudFront
|
|
4953
5374
|
# resp.distribution_list.items[0].cache_behaviors.items[0].realtime_log_config_arn #=> String
|
4954
5375
|
# resp.distribution_list.items[0].cache_behaviors.items[0].cache_policy_id #=> String
|
4955
5376
|
# resp.distribution_list.items[0].cache_behaviors.items[0].origin_request_policy_id #=> String
|
5377
|
+
# resp.distribution_list.items[0].cache_behaviors.items[0].response_headers_policy_id #=> String
|
4956
5378
|
# resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.query_string #=> Boolean
|
4957
5379
|
# resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all"
|
4958
5380
|
# resp.distribution_list.items[0].cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.quantity #=> Integer
|
@@ -5111,7 +5533,8 @@ module Aws::CloudFront
|
|
5111
5533
|
req.send_request(options)
|
5112
5534
|
end
|
5113
5535
|
|
5114
|
-
# Gets a list of all CloudFront functions in your
|
5536
|
+
# Gets a list of all CloudFront functions in your Amazon Web Services
|
5537
|
+
# account.
|
5115
5538
|
#
|
5116
5539
|
# You can optionally apply a filter to return only the functions that
|
5117
5540
|
# are in the specified stage, either `DEVELOPMENT` or `LIVE`.
|
@@ -5283,7 +5706,7 @@ module Aws::CloudFront
|
|
5283
5706
|
#
|
5284
5707
|
# You can optionally apply a filter to return only the managed policies
|
5285
5708
|
# created by Amazon Web Services, or only the custom policies created in
|
5286
|
-
# your account.
|
5709
|
+
# your Amazon Web Services account.
|
5287
5710
|
#
|
5288
5711
|
# You can optionally specify the maximum number of items to receive in
|
5289
5712
|
# the response. If the total number of items in the list exceeds the
|
@@ -5299,7 +5722,8 @@ module Aws::CloudFront
|
|
5299
5722
|
# * `managed` – Returns only the managed policies created by Amazon Web
|
5300
5723
|
# Services.
|
5301
5724
|
#
|
5302
|
-
# * `custom` – Returns only the custom policies created in your
|
5725
|
+
# * `custom` – Returns only the custom policies created in your Amazon
|
5726
|
+
# Web Services account.
|
5303
5727
|
#
|
5304
5728
|
# @option params [String] :marker
|
5305
5729
|
# Use this field when paginating results to indicate where to begin in
|
@@ -5459,6 +5883,108 @@ module Aws::CloudFront
|
|
5459
5883
|
req.send_request(options)
|
5460
5884
|
end
|
5461
5885
|
|
5886
|
+
# Gets a list of response headers policies.
|
5887
|
+
#
|
5888
|
+
# You can optionally apply a filter to get only the managed policies
|
5889
|
+
# created by Amazon Web Services, or only the custom policies created in
|
5890
|
+
# your Amazon Web Services account.
|
5891
|
+
#
|
5892
|
+
# You can optionally specify the maximum number of items to receive in
|
5893
|
+
# the response. If the total number of items in the list exceeds the
|
5894
|
+
# maximum that you specify, or the default maximum, the response is
|
5895
|
+
# paginated. To get the next page of items, send a subsequent request
|
5896
|
+
# that specifies the `NextMarker` value from the current response as the
|
5897
|
+
# `Marker` value in the subsequent request.
|
5898
|
+
#
|
5899
|
+
# @option params [String] :type
|
5900
|
+
# A filter to get only the specified kind of response headers policies.
|
5901
|
+
# Valid values are:
|
5902
|
+
#
|
5903
|
+
# * `managed` – Gets only the managed policies created by Amazon Web
|
5904
|
+
# Services.
|
5905
|
+
#
|
5906
|
+
# * `custom` – Gets only the custom policies created in your Amazon Web
|
5907
|
+
# Services account.
|
5908
|
+
#
|
5909
|
+
# @option params [String] :marker
|
5910
|
+
# Use this field when paginating results to indicate where to begin in
|
5911
|
+
# your list of response headers policies. The response includes response
|
5912
|
+
# headers policies in the list that occur after the marker. To get the
|
5913
|
+
# next page of the list, set this field’s value to the value of
|
5914
|
+
# `NextMarker` from the current page’s response.
|
5915
|
+
#
|
5916
|
+
# @option params [Integer] :max_items
|
5917
|
+
# The maximum number of response headers policies that you want to get
|
5918
|
+
# in the response.
|
5919
|
+
#
|
5920
|
+
# @return [Types::ListResponseHeadersPoliciesResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
5921
|
+
#
|
5922
|
+
# * {Types::ListResponseHeadersPoliciesResult#response_headers_policy_list #response_headers_policy_list} => Types::ResponseHeadersPolicyList
|
5923
|
+
#
|
5924
|
+
# @example Request syntax with placeholder values
|
5925
|
+
#
|
5926
|
+
# resp = client.list_response_headers_policies({
|
5927
|
+
# type: "managed", # accepts managed, custom
|
5928
|
+
# marker: "string",
|
5929
|
+
# max_items: 1,
|
5930
|
+
# })
|
5931
|
+
#
|
5932
|
+
# @example Response structure
|
5933
|
+
#
|
5934
|
+
# resp.response_headers_policy_list.next_marker #=> String
|
5935
|
+
# resp.response_headers_policy_list.max_items #=> Integer
|
5936
|
+
# resp.response_headers_policy_list.quantity #=> Integer
|
5937
|
+
# resp.response_headers_policy_list.items #=> Array
|
5938
|
+
# resp.response_headers_policy_list.items[0].type #=> String, one of "managed", "custom"
|
5939
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.id #=> String
|
5940
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.last_modified_time #=> Time
|
5941
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.comment #=> String
|
5942
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.name #=> String
|
5943
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_origins.quantity #=> Integer
|
5944
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_origins.items #=> Array
|
5945
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_origins.items[0] #=> String
|
5946
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_headers.quantity #=> Integer
|
5947
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_headers.items #=> Array
|
5948
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_headers.items[0] #=> String
|
5949
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_methods.quantity #=> Integer
|
5950
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_methods.items #=> Array
|
5951
|
+
# 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"
|
5952
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_credentials #=> Boolean
|
5953
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.cors_config.access_control_expose_headers.quantity #=> Integer
|
5954
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.cors_config.access_control_expose_headers.items #=> Array
|
5955
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.cors_config.access_control_expose_headers.items[0] #=> String
|
5956
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.cors_config.access_control_max_age_sec #=> Integer
|
5957
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.cors_config.origin_override #=> Boolean
|
5958
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.security_headers_config.xss_protection.override #=> Boolean
|
5959
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.security_headers_config.xss_protection.protection #=> Boolean
|
5960
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.security_headers_config.xss_protection.mode_block #=> Boolean
|
5961
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.security_headers_config.xss_protection.report_uri #=> String
|
5962
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.security_headers_config.frame_options.override #=> Boolean
|
5963
|
+
# 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"
|
5964
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.security_headers_config.referrer_policy.override #=> Boolean
|
5965
|
+
# 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"
|
5966
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.security_headers_config.content_security_policy.override #=> Boolean
|
5967
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.security_headers_config.content_security_policy.content_security_policy #=> String
|
5968
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.security_headers_config.content_type_options.override #=> Boolean
|
5969
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.security_headers_config.strict_transport_security.override #=> Boolean
|
5970
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.security_headers_config.strict_transport_security.include_subdomains #=> Boolean
|
5971
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.security_headers_config.strict_transport_security.preload #=> Boolean
|
5972
|
+
# 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
|
5973
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.custom_headers_config.quantity #=> Integer
|
5974
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.custom_headers_config.items #=> Array
|
5975
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].header #=> String
|
5976
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].value #=> String
|
5977
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].override #=> Boolean
|
5978
|
+
#
|
5979
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListResponseHeadersPolicies AWS API Documentation
|
5980
|
+
#
|
5981
|
+
# @overload list_response_headers_policies(params = {})
|
5982
|
+
# @param [Hash] params ({})
|
5983
|
+
def list_response_headers_policies(params = {}, options = {})
|
5984
|
+
req = build_request(:list_response_headers_policies, params)
|
5985
|
+
req.send_request(options)
|
5986
|
+
end
|
5987
|
+
|
5462
5988
|
# List streaming distributions.
|
5463
5989
|
#
|
5464
5990
|
# @option params [String] :marker
|
@@ -6000,7 +6526,7 @@ module Aws::CloudFront
|
|
6000
6526
|
# items: [
|
6001
6527
|
# {
|
6002
6528
|
# header_name: "string", # required
|
6003
|
-
# header_value: "
|
6529
|
+
# header_value: "sensitiveStringType", # required
|
6004
6530
|
# },
|
6005
6531
|
# ],
|
6006
6532
|
# },
|
@@ -6095,6 +6621,7 @@ module Aws::CloudFront
|
|
6095
6621
|
# realtime_log_config_arn: "string",
|
6096
6622
|
# cache_policy_id: "string",
|
6097
6623
|
# origin_request_policy_id: "string",
|
6624
|
+
# response_headers_policy_id: "string",
|
6098
6625
|
# forwarded_values: {
|
6099
6626
|
# query_string: false, # required
|
6100
6627
|
# cookies: { # required
|
@@ -6167,6 +6694,7 @@ module Aws::CloudFront
|
|
6167
6694
|
# realtime_log_config_arn: "string",
|
6168
6695
|
# cache_policy_id: "string",
|
6169
6696
|
# origin_request_policy_id: "string",
|
6697
|
+
# response_headers_policy_id: "string",
|
6170
6698
|
# forwarded_values: {
|
6171
6699
|
# query_string: false, # required
|
6172
6700
|
# cookies: { # required
|
@@ -6324,6 +6852,7 @@ module Aws::CloudFront
|
|
6324
6852
|
# resp.distribution.distribution_config.default_cache_behavior.realtime_log_config_arn #=> String
|
6325
6853
|
# resp.distribution.distribution_config.default_cache_behavior.cache_policy_id #=> String
|
6326
6854
|
# resp.distribution.distribution_config.default_cache_behavior.origin_request_policy_id #=> String
|
6855
|
+
# resp.distribution.distribution_config.default_cache_behavior.response_headers_policy_id #=> String
|
6327
6856
|
# resp.distribution.distribution_config.default_cache_behavior.forwarded_values.query_string #=> Boolean
|
6328
6857
|
# resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all"
|
6329
6858
|
# resp.distribution.distribution_config.default_cache_behavior.forwarded_values.cookies.whitelisted_names.quantity #=> Integer
|
@@ -6372,6 +6901,7 @@ module Aws::CloudFront
|
|
6372
6901
|
# resp.distribution.distribution_config.cache_behaviors.items[0].realtime_log_config_arn #=> String
|
6373
6902
|
# resp.distribution.distribution_config.cache_behaviors.items[0].cache_policy_id #=> String
|
6374
6903
|
# resp.distribution.distribution_config.cache_behaviors.items[0].origin_request_policy_id #=> String
|
6904
|
+
# resp.distribution.distribution_config.cache_behaviors.items[0].response_headers_policy_id #=> String
|
6375
6905
|
# resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.query_string #=> Boolean
|
6376
6906
|
# resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.forward #=> String, one of "none", "whitelist", "all"
|
6377
6907
|
# resp.distribution.distribution_config.cache_behaviors.items[0].forwarded_values.cookies.whitelisted_names.quantity #=> Integer
|
@@ -6937,6 +7467,162 @@ module Aws::CloudFront
|
|
6937
7467
|
req.send_request(options)
|
6938
7468
|
end
|
6939
7469
|
|
7470
|
+
# Updates a response headers policy.
|
7471
|
+
#
|
7472
|
+
# When you update a response headers policy, the entire policy is
|
7473
|
+
# replaced. You cannot update some policy fields independent of others.
|
7474
|
+
# To update a response headers policy configuration:
|
7475
|
+
#
|
7476
|
+
# 1. Use `GetResponseHeadersPolicyConfig` to get the current policy’s
|
7477
|
+
# configuration.
|
7478
|
+
#
|
7479
|
+
# 2. Modify the fields in the response headers policy configuration
|
7480
|
+
# that you want to update.
|
7481
|
+
#
|
7482
|
+
# 3. Call `UpdateResponseHeadersPolicy`, providing the entire response
|
7483
|
+
# headers policy configuration, including the fields that you
|
7484
|
+
# modified and those that you didn’t.
|
7485
|
+
#
|
7486
|
+
# @option params [required, Types::ResponseHeadersPolicyConfig] :response_headers_policy_config
|
7487
|
+
# A response headers policy configuration.
|
7488
|
+
#
|
7489
|
+
# @option params [required, String] :id
|
7490
|
+
# The identifier for the response headers policy that you are updating.
|
7491
|
+
#
|
7492
|
+
# @option params [String] :if_match
|
7493
|
+
# The version of the response headers policy that you are updating.
|
7494
|
+
#
|
7495
|
+
# The version is returned in the cache policy’s `ETag` field in the
|
7496
|
+
# response to `GetResponseHeadersPolicyConfig`.
|
7497
|
+
#
|
7498
|
+
# @return [Types::UpdateResponseHeadersPolicyResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
7499
|
+
#
|
7500
|
+
# * {Types::UpdateResponseHeadersPolicyResult#response_headers_policy #response_headers_policy} => Types::ResponseHeadersPolicy
|
7501
|
+
# * {Types::UpdateResponseHeadersPolicyResult#etag #etag} => String
|
7502
|
+
#
|
7503
|
+
# @example Request syntax with placeholder values
|
7504
|
+
#
|
7505
|
+
# resp = client.update_response_headers_policy({
|
7506
|
+
# response_headers_policy_config: { # required
|
7507
|
+
# comment: "string",
|
7508
|
+
# name: "string", # required
|
7509
|
+
# cors_config: {
|
7510
|
+
# access_control_allow_origins: { # required
|
7511
|
+
# quantity: 1, # required
|
7512
|
+
# items: ["string"], # required
|
7513
|
+
# },
|
7514
|
+
# access_control_allow_headers: { # required
|
7515
|
+
# quantity: 1, # required
|
7516
|
+
# items: ["string"], # required
|
7517
|
+
# },
|
7518
|
+
# access_control_allow_methods: { # required
|
7519
|
+
# quantity: 1, # required
|
7520
|
+
# items: ["GET"], # required, accepts GET, POST, OPTIONS, PUT, DELETE, PATCH, HEAD, ALL
|
7521
|
+
# },
|
7522
|
+
# access_control_allow_credentials: false, # required
|
7523
|
+
# access_control_expose_headers: {
|
7524
|
+
# quantity: 1, # required
|
7525
|
+
# items: ["string"],
|
7526
|
+
# },
|
7527
|
+
# access_control_max_age_sec: 1,
|
7528
|
+
# origin_override: false, # required
|
7529
|
+
# },
|
7530
|
+
# security_headers_config: {
|
7531
|
+
# xss_protection: {
|
7532
|
+
# override: false, # required
|
7533
|
+
# protection: false, # required
|
7534
|
+
# mode_block: false,
|
7535
|
+
# report_uri: "string",
|
7536
|
+
# },
|
7537
|
+
# frame_options: {
|
7538
|
+
# override: false, # required
|
7539
|
+
# frame_option: "DENY", # required, accepts DENY, SAMEORIGIN
|
7540
|
+
# },
|
7541
|
+
# referrer_policy: {
|
7542
|
+
# override: false, # required
|
7543
|
+
# 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
|
7544
|
+
# },
|
7545
|
+
# content_security_policy: {
|
7546
|
+
# override: false, # required
|
7547
|
+
# content_security_policy: "string", # required
|
7548
|
+
# },
|
7549
|
+
# content_type_options: {
|
7550
|
+
# override: false, # required
|
7551
|
+
# },
|
7552
|
+
# strict_transport_security: {
|
7553
|
+
# override: false, # required
|
7554
|
+
# include_subdomains: false,
|
7555
|
+
# preload: false,
|
7556
|
+
# access_control_max_age_sec: 1, # required
|
7557
|
+
# },
|
7558
|
+
# },
|
7559
|
+
# custom_headers_config: {
|
7560
|
+
# quantity: 1, # required
|
7561
|
+
# items: [
|
7562
|
+
# {
|
7563
|
+
# header: "string", # required
|
7564
|
+
# value: "string", # required
|
7565
|
+
# override: false, # required
|
7566
|
+
# },
|
7567
|
+
# ],
|
7568
|
+
# },
|
7569
|
+
# },
|
7570
|
+
# id: "string", # required
|
7571
|
+
# if_match: "string",
|
7572
|
+
# })
|
7573
|
+
#
|
7574
|
+
# @example Response structure
|
7575
|
+
#
|
7576
|
+
# resp.response_headers_policy.id #=> String
|
7577
|
+
# resp.response_headers_policy.last_modified_time #=> Time
|
7578
|
+
# resp.response_headers_policy.response_headers_policy_config.comment #=> String
|
7579
|
+
# resp.response_headers_policy.response_headers_policy_config.name #=> String
|
7580
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_origins.quantity #=> Integer
|
7581
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_origins.items #=> Array
|
7582
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_origins.items[0] #=> String
|
7583
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_headers.quantity #=> Integer
|
7584
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_headers.items #=> Array
|
7585
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_headers.items[0] #=> String
|
7586
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_methods.quantity #=> Integer
|
7587
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_methods.items #=> Array
|
7588
|
+
# 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"
|
7589
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_allow_credentials #=> Boolean
|
7590
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_expose_headers.quantity #=> Integer
|
7591
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_expose_headers.items #=> Array
|
7592
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_expose_headers.items[0] #=> String
|
7593
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.access_control_max_age_sec #=> Integer
|
7594
|
+
# resp.response_headers_policy.response_headers_policy_config.cors_config.origin_override #=> Boolean
|
7595
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.xss_protection.override #=> Boolean
|
7596
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.xss_protection.protection #=> Boolean
|
7597
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.xss_protection.mode_block #=> Boolean
|
7598
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.xss_protection.report_uri #=> String
|
7599
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.frame_options.override #=> Boolean
|
7600
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.frame_options.frame_option #=> String, one of "DENY", "SAMEORIGIN"
|
7601
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.referrer_policy.override #=> Boolean
|
7602
|
+
# 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"
|
7603
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.content_security_policy.override #=> Boolean
|
7604
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.content_security_policy.content_security_policy #=> String
|
7605
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.content_type_options.override #=> Boolean
|
7606
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.strict_transport_security.override #=> Boolean
|
7607
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.strict_transport_security.include_subdomains #=> Boolean
|
7608
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.strict_transport_security.preload #=> Boolean
|
7609
|
+
# resp.response_headers_policy.response_headers_policy_config.security_headers_config.strict_transport_security.access_control_max_age_sec #=> Integer
|
7610
|
+
# resp.response_headers_policy.response_headers_policy_config.custom_headers_config.quantity #=> Integer
|
7611
|
+
# resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items #=> Array
|
7612
|
+
# resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].header #=> String
|
7613
|
+
# resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].value #=> String
|
7614
|
+
# resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].override #=> Boolean
|
7615
|
+
# resp.etag #=> String
|
7616
|
+
#
|
7617
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateResponseHeadersPolicy AWS API Documentation
|
7618
|
+
#
|
7619
|
+
# @overload update_response_headers_policy(params = {})
|
7620
|
+
# @param [Hash] params ({})
|
7621
|
+
def update_response_headers_policy(params = {}, options = {})
|
7622
|
+
req = build_request(:update_response_headers_policy, params)
|
7623
|
+
req.send_request(options)
|
7624
|
+
end
|
7625
|
+
|
6940
7626
|
# Update a streaming distribution.
|
6941
7627
|
#
|
6942
7628
|
# @option params [required, Types::StreamingDistributionConfig] :streaming_distribution_config
|
@@ -7040,7 +7726,7 @@ module Aws::CloudFront
|
|
7040
7726
|
params: params,
|
7041
7727
|
config: config)
|
7042
7728
|
context[:gem_name] = 'aws-sdk-cloudfront'
|
7043
|
-
context[:gem_version] = '1.
|
7729
|
+
context[:gem_version] = '1.58.0'
|
7044
7730
|
Seahorse::Client::Request.new(handlers, context)
|
7045
7731
|
end
|
7046
7732
|
|