aws-sdk-cloudfront 1.62.0 → 1.65.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 +15 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-cloudfront/client.rb +21 -1
- data/lib/aws-sdk-cloudfront/client_api.rb +13 -0
- data/lib/aws-sdk-cloudfront/errors.rb +16 -0
- data/lib/aws-sdk-cloudfront/types.rb +94 -1
- data/lib/aws-sdk-cloudfront.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: db5775c7bf0df4823bf53e86e6e9436e4865b20b5fad30330b8bed1a6831bf0d
|
4
|
+
data.tar.gz: 01bd4ae0492355c68f80ab23026bdeaed51a00b3f43247cbb25d44f4c3f16edc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4927d3a5df725664d2992c3cf387bc25bff5d730a885ad49fca8d9ac3eb9c2f04d1e9e262b55ce81b22204f6d37de6ceb5c03d72ddd9ccd6b8fe8485debc16ec
|
7
|
+
data.tar.gz: 011f41b13bae4268bf85b30df00337d190f892465ff8e111ccaa6e9b7273beb981afd1088a60cdad29bc806a77349b263ca6ac95e14bc13fdb916bae36914d48
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,21 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.65.0 (2022-05-16)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Introduced a new error (TooLongCSPInResponseHeadersPolicy) that is returned when the value of the Content-Security-Policy header in a response headers policy exceeds the maximum allowed length.
|
8
|
+
|
9
|
+
1.64.0 (2022-04-26)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - CloudFront now supports the Server-Timing header in HTTP responses sent from CloudFront. You can use this header to view metrics that help you gain insights about the behavior and performance of CloudFront. To use this header, enable it in a response headers policy.
|
13
|
+
|
14
|
+
1.63.0 (2022-02-24)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
18
|
+
|
4
19
|
1.62.0 (2022-02-03)
|
5
20
|
------------------
|
6
21
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.65.0
|
@@ -27,6 +27,7 @@ require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
|
|
27
27
|
require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
|
28
28
|
require 'aws-sdk-core/plugins/transfer_encoding.rb'
|
29
29
|
require 'aws-sdk-core/plugins/http_checksum.rb'
|
30
|
+
require 'aws-sdk-core/plugins/checksum_algorithm.rb'
|
30
31
|
require 'aws-sdk-core/plugins/defaults_mode.rb'
|
31
32
|
require 'aws-sdk-core/plugins/recursion_detection.rb'
|
32
33
|
require 'aws-sdk-core/plugins/signature_v4.rb'
|
@@ -75,6 +76,7 @@ module Aws::CloudFront
|
|
75
76
|
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
76
77
|
add_plugin(Aws::Plugins::TransferEncoding)
|
77
78
|
add_plugin(Aws::Plugins::HttpChecksum)
|
79
|
+
add_plugin(Aws::Plugins::ChecksumAlgorithm)
|
78
80
|
add_plugin(Aws::Plugins::DefaultsMode)
|
79
81
|
add_plugin(Aws::Plugins::RecursionDetection)
|
80
82
|
add_plugin(Aws::Plugins::SignatureV4)
|
@@ -2170,6 +2172,10 @@ module Aws::CloudFront
|
|
2170
2172
|
# },
|
2171
2173
|
# ],
|
2172
2174
|
# },
|
2175
|
+
# server_timing_headers_config: {
|
2176
|
+
# enabled: false, # required
|
2177
|
+
# sampling_rate: 1.0,
|
2178
|
+
# },
|
2173
2179
|
# },
|
2174
2180
|
# })
|
2175
2181
|
#
|
@@ -2214,6 +2220,8 @@ module Aws::CloudFront
|
|
2214
2220
|
# resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].header #=> String
|
2215
2221
|
# resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].value #=> String
|
2216
2222
|
# resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].override #=> Boolean
|
2223
|
+
# resp.response_headers_policy.response_headers_policy_config.server_timing_headers_config.enabled #=> Boolean
|
2224
|
+
# resp.response_headers_policy.response_headers_policy_config.server_timing_headers_config.sampling_rate #=> Float
|
2217
2225
|
# resp.location #=> String
|
2218
2226
|
# resp.etag #=> String
|
2219
2227
|
#
|
@@ -4175,6 +4183,8 @@ module Aws::CloudFront
|
|
4175
4183
|
# resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].header #=> String
|
4176
4184
|
# resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].value #=> String
|
4177
4185
|
# resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].override #=> Boolean
|
4186
|
+
# resp.response_headers_policy.response_headers_policy_config.server_timing_headers_config.enabled #=> Boolean
|
4187
|
+
# resp.response_headers_policy.response_headers_policy_config.server_timing_headers_config.sampling_rate #=> Float
|
4178
4188
|
# resp.etag #=> String
|
4179
4189
|
#
|
4180
4190
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetResponseHeadersPolicy AWS API Documentation
|
@@ -4254,6 +4264,8 @@ module Aws::CloudFront
|
|
4254
4264
|
# resp.response_headers_policy_config.custom_headers_config.items[0].header #=> String
|
4255
4265
|
# resp.response_headers_policy_config.custom_headers_config.items[0].value #=> String
|
4256
4266
|
# resp.response_headers_policy_config.custom_headers_config.items[0].override #=> Boolean
|
4267
|
+
# resp.response_headers_policy_config.server_timing_headers_config.enabled #=> Boolean
|
4268
|
+
# resp.response_headers_policy_config.server_timing_headers_config.sampling_rate #=> Float
|
4257
4269
|
# resp.etag #=> String
|
4258
4270
|
#
|
4259
4271
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetResponseHeadersPolicyConfig AWS API Documentation
|
@@ -5997,6 +6009,8 @@ module Aws::CloudFront
|
|
5997
6009
|
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].header #=> String
|
5998
6010
|
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].value #=> String
|
5999
6011
|
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].override #=> Boolean
|
6012
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.server_timing_headers_config.enabled #=> Boolean
|
6013
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.server_timing_headers_config.sampling_rate #=> Float
|
6000
6014
|
#
|
6001
6015
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListResponseHeadersPolicies AWS API Documentation
|
6002
6016
|
#
|
@@ -7588,6 +7602,10 @@ module Aws::CloudFront
|
|
7588
7602
|
# },
|
7589
7603
|
# ],
|
7590
7604
|
# },
|
7605
|
+
# server_timing_headers_config: {
|
7606
|
+
# enabled: false, # required
|
7607
|
+
# sampling_rate: 1.0,
|
7608
|
+
# },
|
7591
7609
|
# },
|
7592
7610
|
# id: "string", # required
|
7593
7611
|
# if_match: "string",
|
@@ -7634,6 +7652,8 @@ module Aws::CloudFront
|
|
7634
7652
|
# resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].header #=> String
|
7635
7653
|
# resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].value #=> String
|
7636
7654
|
# resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].override #=> Boolean
|
7655
|
+
# resp.response_headers_policy.response_headers_policy_config.server_timing_headers_config.enabled #=> Boolean
|
7656
|
+
# resp.response_headers_policy.response_headers_policy_config.server_timing_headers_config.sampling_rate #=> Float
|
7637
7657
|
# resp.etag #=> String
|
7638
7658
|
#
|
7639
7659
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateResponseHeadersPolicy AWS API Documentation
|
@@ -7748,7 +7768,7 @@ module Aws::CloudFront
|
|
7748
7768
|
params: params,
|
7749
7769
|
config: config)
|
7750
7770
|
context[:gem_name] = 'aws-sdk-cloudfront'
|
7751
|
-
context[:gem_version] = '1.
|
7771
|
+
context[:gem_version] = '1.65.0'
|
7752
7772
|
Seahorse::Client::Request.new(handlers, context)
|
7753
7773
|
end
|
7754
7774
|
|
@@ -426,6 +426,7 @@ module Aws::CloudFront
|
|
426
426
|
ResponseHeadersPolicyList = Shapes::StructureShape.new(name: 'ResponseHeadersPolicyList')
|
427
427
|
ResponseHeadersPolicyReferrerPolicy = Shapes::StructureShape.new(name: 'ResponseHeadersPolicyReferrerPolicy')
|
428
428
|
ResponseHeadersPolicySecurityHeadersConfig = Shapes::StructureShape.new(name: 'ResponseHeadersPolicySecurityHeadersConfig')
|
429
|
+
ResponseHeadersPolicyServerTimingHeadersConfig = Shapes::StructureShape.new(name: 'ResponseHeadersPolicyServerTimingHeadersConfig')
|
429
430
|
ResponseHeadersPolicyStrictTransportSecurity = Shapes::StructureShape.new(name: 'ResponseHeadersPolicyStrictTransportSecurity')
|
430
431
|
ResponseHeadersPolicySummary = Shapes::StructureShape.new(name: 'ResponseHeadersPolicySummary')
|
431
432
|
ResponseHeadersPolicySummaryList = Shapes::ListShape.new(name: 'ResponseHeadersPolicySummaryList')
|
@@ -435,6 +436,7 @@ module Aws::CloudFront
|
|
435
436
|
S3Origin = Shapes::StructureShape.new(name: 'S3Origin')
|
436
437
|
S3OriginConfig = Shapes::StructureShape.new(name: 'S3OriginConfig')
|
437
438
|
SSLSupportMethod = Shapes::StringShape.new(name: 'SSLSupportMethod')
|
439
|
+
SamplingRate = Shapes::FloatShape.new(name: 'SamplingRate')
|
438
440
|
Signer = Shapes::StructureShape.new(name: 'Signer')
|
439
441
|
SignerList = Shapes::ListShape.new(name: 'SignerList')
|
440
442
|
SslProtocol = Shapes::StringShape.new(name: 'SslProtocol')
|
@@ -462,6 +464,7 @@ module Aws::CloudFront
|
|
462
464
|
TestFunctionRequest = Shapes::StructureShape.new(name: 'TestFunctionRequest')
|
463
465
|
TestFunctionResult = Shapes::StructureShape.new(name: 'TestFunctionResult')
|
464
466
|
TestResult = Shapes::StructureShape.new(name: 'TestResult')
|
467
|
+
TooLongCSPInResponseHeadersPolicy = Shapes::StructureShape.new(name: 'TooLongCSPInResponseHeadersPolicy')
|
465
468
|
TooManyCacheBehaviors = Shapes::StructureShape.new(name: 'TooManyCacheBehaviors')
|
466
469
|
TooManyCachePolicies = Shapes::StructureShape.new(name: 'TooManyCachePolicies')
|
467
470
|
TooManyCertificates = Shapes::StructureShape.new(name: 'TooManyCertificates')
|
@@ -2158,6 +2161,7 @@ module Aws::CloudFront
|
|
2158
2161
|
ResponseHeadersPolicyConfig.add_member(:cors_config, Shapes::ShapeRef.new(shape: ResponseHeadersPolicyCorsConfig, location_name: "CorsConfig"))
|
2159
2162
|
ResponseHeadersPolicyConfig.add_member(:security_headers_config, Shapes::ShapeRef.new(shape: ResponseHeadersPolicySecurityHeadersConfig, location_name: "SecurityHeadersConfig"))
|
2160
2163
|
ResponseHeadersPolicyConfig.add_member(:custom_headers_config, Shapes::ShapeRef.new(shape: ResponseHeadersPolicyCustomHeadersConfig, location_name: "CustomHeadersConfig"))
|
2164
|
+
ResponseHeadersPolicyConfig.add_member(:server_timing_headers_config, Shapes::ShapeRef.new(shape: ResponseHeadersPolicyServerTimingHeadersConfig, location_name: "ServerTimingHeadersConfig"))
|
2161
2165
|
ResponseHeadersPolicyConfig.struct_class = Types::ResponseHeadersPolicyConfig
|
2162
2166
|
|
2163
2167
|
ResponseHeadersPolicyContentSecurityPolicy.add_member(:override, Shapes::ShapeRef.new(shape: boolean, required: true, location_name: "Override"))
|
@@ -2212,6 +2216,10 @@ module Aws::CloudFront
|
|
2212
2216
|
ResponseHeadersPolicySecurityHeadersConfig.add_member(:strict_transport_security, Shapes::ShapeRef.new(shape: ResponseHeadersPolicyStrictTransportSecurity, location_name: "StrictTransportSecurity"))
|
2213
2217
|
ResponseHeadersPolicySecurityHeadersConfig.struct_class = Types::ResponseHeadersPolicySecurityHeadersConfig
|
2214
2218
|
|
2219
|
+
ResponseHeadersPolicyServerTimingHeadersConfig.add_member(:enabled, Shapes::ShapeRef.new(shape: boolean, required: true, location_name: "Enabled"))
|
2220
|
+
ResponseHeadersPolicyServerTimingHeadersConfig.add_member(:sampling_rate, Shapes::ShapeRef.new(shape: SamplingRate, location_name: "SamplingRate"))
|
2221
|
+
ResponseHeadersPolicyServerTimingHeadersConfig.struct_class = Types::ResponseHeadersPolicyServerTimingHeadersConfig
|
2222
|
+
|
2215
2223
|
ResponseHeadersPolicyStrictTransportSecurity.add_member(:override, Shapes::ShapeRef.new(shape: boolean, required: true, location_name: "Override"))
|
2216
2224
|
ResponseHeadersPolicyStrictTransportSecurity.add_member(:include_subdomains, Shapes::ShapeRef.new(shape: boolean, location_name: "IncludeSubdomains"))
|
2217
2225
|
ResponseHeadersPolicyStrictTransportSecurity.add_member(:preload, Shapes::ShapeRef.new(shape: boolean, location_name: "Preload"))
|
@@ -2352,6 +2360,9 @@ module Aws::CloudFront
|
|
2352
2360
|
TestResult.add_member(:function_output, Shapes::ShapeRef.new(shape: sensitiveStringType, location_name: "FunctionOutput"))
|
2353
2361
|
TestResult.struct_class = Types::TestResult
|
2354
2362
|
|
2363
|
+
TooLongCSPInResponseHeadersPolicy.add_member(:message, Shapes::ShapeRef.new(shape: string, location_name: "Message"))
|
2364
|
+
TooLongCSPInResponseHeadersPolicy.struct_class = Types::TooLongCSPInResponseHeadersPolicy
|
2365
|
+
|
2355
2366
|
TooManyCacheBehaviors.add_member(:message, Shapes::ShapeRef.new(shape: string, location_name: "Message"))
|
2356
2367
|
TooManyCacheBehaviors.struct_class = Types::TooManyCacheBehaviors
|
2357
2368
|
|
@@ -3020,6 +3031,7 @@ module Aws::CloudFront
|
|
3020
3031
|
o.errors << Shapes::ShapeRef.new(shape: ResponseHeadersPolicyAlreadyExists)
|
3021
3032
|
o.errors << Shapes::ShapeRef.new(shape: TooManyResponseHeadersPolicies)
|
3022
3033
|
o.errors << Shapes::ShapeRef.new(shape: TooManyCustomHeadersInResponseHeadersPolicy)
|
3034
|
+
o.errors << Shapes::ShapeRef.new(shape: TooLongCSPInResponseHeadersPolicy)
|
3023
3035
|
end)
|
3024
3036
|
|
3025
3037
|
api.add_operation(:create_streaming_distribution, Seahorse::Model::Operation.new.tap do |o|
|
@@ -4031,6 +4043,7 @@ module Aws::CloudFront
|
|
4031
4043
|
o.errors << Shapes::ShapeRef.new(shape: PreconditionFailed)
|
4032
4044
|
o.errors << Shapes::ShapeRef.new(shape: ResponseHeadersPolicyAlreadyExists)
|
4033
4045
|
o.errors << Shapes::ShapeRef.new(shape: TooManyCustomHeadersInResponseHeadersPolicy)
|
4046
|
+
o.errors << Shapes::ShapeRef.new(shape: TooLongCSPInResponseHeadersPolicy)
|
4034
4047
|
end)
|
4035
4048
|
|
4036
4049
|
api.add_operation(:update_streaming_distribution, Seahorse::Model::Operation.new.tap do |o|
|
@@ -104,6 +104,7 @@ module Aws::CloudFront
|
|
104
104
|
# * {StreamingDistributionAlreadyExists}
|
105
105
|
# * {StreamingDistributionNotDisabled}
|
106
106
|
# * {TestFunctionFailed}
|
107
|
+
# * {TooLongCSPInResponseHeadersPolicy}
|
107
108
|
# * {TooManyCacheBehaviors}
|
108
109
|
# * {TooManyCachePolicies}
|
109
110
|
# * {TooManyCertificates}
|
@@ -1316,6 +1317,21 @@ module Aws::CloudFront
|
|
1316
1317
|
end
|
1317
1318
|
end
|
1318
1319
|
|
1320
|
+
class TooLongCSPInResponseHeadersPolicy < ServiceError
|
1321
|
+
|
1322
|
+
# @param [Seahorse::Client::RequestContext] context
|
1323
|
+
# @param [String] message
|
1324
|
+
# @param [Aws::CloudFront::Types::TooLongCSPInResponseHeadersPolicy] data
|
1325
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
1326
|
+
super(context, message, data)
|
1327
|
+
end
|
1328
|
+
|
1329
|
+
# @return [String]
|
1330
|
+
def message
|
1331
|
+
@message || @data[:message]
|
1332
|
+
end
|
1333
|
+
end
|
1334
|
+
|
1319
1335
|
class TooManyCacheBehaviors < ServiceError
|
1320
1336
|
|
1321
1337
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -3102,6 +3102,10 @@ module Aws::CloudFront
|
|
3102
3102
|
# },
|
3103
3103
|
# ],
|
3104
3104
|
# },
|
3105
|
+
# server_timing_headers_config: {
|
3106
|
+
# enabled: false, # required
|
3107
|
+
# sampling_rate: 1.0,
|
3108
|
+
# },
|
3105
3109
|
# },
|
3106
3110
|
# }
|
3107
3111
|
#
|
@@ -11674,6 +11678,10 @@ module Aws::CloudFront
|
|
11674
11678
|
# },
|
11675
11679
|
# ],
|
11676
11680
|
# },
|
11681
|
+
# server_timing_headers_config: {
|
11682
|
+
# enabled: false, # required
|
11683
|
+
# sampling_rate: 1.0,
|
11684
|
+
# },
|
11677
11685
|
# }
|
11678
11686
|
#
|
11679
11687
|
# @!attribute [rw] comment
|
@@ -11702,6 +11710,11 @@ module Aws::CloudFront
|
|
11702
11710
|
# A configuration for a set of custom HTTP response headers.
|
11703
11711
|
# @return [Types::ResponseHeadersPolicyCustomHeadersConfig]
|
11704
11712
|
#
|
11713
|
+
# @!attribute [rw] server_timing_headers_config
|
11714
|
+
# A configuration for enabling the `Server-Timing` header in HTTP
|
11715
|
+
# responses sent from CloudFront.
|
11716
|
+
# @return [Types::ResponseHeadersPolicyServerTimingHeadersConfig]
|
11717
|
+
#
|
11705
11718
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ResponseHeadersPolicyConfig AWS API Documentation
|
11706
11719
|
#
|
11707
11720
|
class ResponseHeadersPolicyConfig < Struct.new(
|
@@ -11709,7 +11722,8 @@ module Aws::CloudFront
|
|
11709
11722
|
:name,
|
11710
11723
|
:cors_config,
|
11711
11724
|
:security_headers_config,
|
11712
|
-
:custom_headers_config
|
11725
|
+
:custom_headers_config,
|
11726
|
+
:server_timing_headers_config)
|
11713
11727
|
SENSITIVE = []
|
11714
11728
|
include Aws::Structure
|
11715
11729
|
end
|
@@ -12270,6 +12284,60 @@ module Aws::CloudFront
|
|
12270
12284
|
include Aws::Structure
|
12271
12285
|
end
|
12272
12286
|
|
12287
|
+
# A configuration for enabling the `Server-Timing` header in HTTP
|
12288
|
+
# responses sent from CloudFront. CloudFront adds this header to HTTP
|
12289
|
+
# responses that it sends in response to requests that match a cache
|
12290
|
+
# behavior that's associated with this response headers policy.
|
12291
|
+
#
|
12292
|
+
# You can use the `Server-Timing` header to view metrics that can help
|
12293
|
+
# you gain insights about the behavior and performance of CloudFront.
|
12294
|
+
# For example, you can see which cache layer served a cache hit, or the
|
12295
|
+
# first byte latency from the origin when there was a cache miss. You
|
12296
|
+
# can use the metrics in the `Server-Timing` header to troubleshoot
|
12297
|
+
# issues or test the efficiency of your CloudFront configuration. For
|
12298
|
+
# more information, see [Server-Timing header][1] in the *Amazon
|
12299
|
+
# CloudFront Developer Guide*.
|
12300
|
+
#
|
12301
|
+
#
|
12302
|
+
#
|
12303
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/understanding-response-headers-policies.html#server-timing-header
|
12304
|
+
#
|
12305
|
+
# @note When making an API call, you may pass ResponseHeadersPolicyServerTimingHeadersConfig
|
12306
|
+
# data as a hash:
|
12307
|
+
#
|
12308
|
+
# {
|
12309
|
+
# enabled: false, # required
|
12310
|
+
# sampling_rate: 1.0,
|
12311
|
+
# }
|
12312
|
+
#
|
12313
|
+
# @!attribute [rw] enabled
|
12314
|
+
# A Boolean that determines whether CloudFront adds the
|
12315
|
+
# `Server-Timing` header to HTTP responses that it sends in response
|
12316
|
+
# to requests that match a cache behavior that's associated with this
|
12317
|
+
# response headers policy.
|
12318
|
+
# @return [Boolean]
|
12319
|
+
#
|
12320
|
+
# @!attribute [rw] sampling_rate
|
12321
|
+
# A number 0–100 (inclusive) that specifies the percentage of
|
12322
|
+
# responses that you want CloudFront to add the `Server-Timing` header
|
12323
|
+
# to. When you set the sampling rate to 100, CloudFront adds the
|
12324
|
+
# `Server-Timing` header to the HTTP response for every request that
|
12325
|
+
# matches the cache behavior that this response headers policy is
|
12326
|
+
# attached to. When you set it to 50, CloudFront adds the header to
|
12327
|
+
# 50% of the responses for requests that match the cache behavior. You
|
12328
|
+
# can set the sampling rate to any number 0–100 with up to four
|
12329
|
+
# decimal places.
|
12330
|
+
# @return [Float]
|
12331
|
+
#
|
12332
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ResponseHeadersPolicyServerTimingHeadersConfig AWS API Documentation
|
12333
|
+
#
|
12334
|
+
class ResponseHeadersPolicyServerTimingHeadersConfig < Struct.new(
|
12335
|
+
:enabled,
|
12336
|
+
:sampling_rate)
|
12337
|
+
SENSITIVE = []
|
12338
|
+
include Aws::Structure
|
12339
|
+
end
|
12340
|
+
|
12273
12341
|
# Determines whether CloudFront includes the `Strict-Transport-Security`
|
12274
12342
|
# HTTP response header and the header’s value.
|
12275
12343
|
#
|
@@ -13282,6 +13350,27 @@ module Aws::CloudFront
|
|
13282
13350
|
include Aws::Structure
|
13283
13351
|
end
|
13284
13352
|
|
13353
|
+
# The length of the `Content-Security-Policy` header value in the
|
13354
|
+
# response headers policy exceeds the maximum.
|
13355
|
+
#
|
13356
|
+
# For more information, see [Quotas][1] (formerly known as limits) in
|
13357
|
+
# the *Amazon CloudFront Developer Guide*.
|
13358
|
+
#
|
13359
|
+
#
|
13360
|
+
#
|
13361
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html
|
13362
|
+
#
|
13363
|
+
# @!attribute [rw] message
|
13364
|
+
# @return [String]
|
13365
|
+
#
|
13366
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/TooLongCSPInResponseHeadersPolicy AWS API Documentation
|
13367
|
+
#
|
13368
|
+
class TooLongCSPInResponseHeadersPolicy < Struct.new(
|
13369
|
+
:message)
|
13370
|
+
SENSITIVE = []
|
13371
|
+
include Aws::Structure
|
13372
|
+
end
|
13373
|
+
|
13285
13374
|
# You cannot create more cache behaviors for the distribution.
|
13286
13375
|
#
|
13287
13376
|
# @!attribute [rw] message
|
@@ -15168,6 +15257,10 @@ module Aws::CloudFront
|
|
15168
15257
|
# },
|
15169
15258
|
# ],
|
15170
15259
|
# },
|
15260
|
+
# server_timing_headers_config: {
|
15261
|
+
# enabled: false, # required
|
15262
|
+
# sampling_rate: 1.0,
|
15263
|
+
# },
|
15171
15264
|
# },
|
15172
15265
|
# id: "string", # required
|
15173
15266
|
# if_match: "string",
|
data/lib/aws-sdk-cloudfront.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-cloudfront
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.65.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-05-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.127.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.127.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|