aws-sdk-cloudfront 1.63.0 → 1.66.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ccfbd1125cea3b79a0ce0717b9184f8a6aabf6cc78bc11c9c719d99539f8a916
4
- data.tar.gz: c01a1c12e25649e45feb8fec25dda899651cb3b33c168f6685cfdf2fdadcea7e
3
+ metadata.gz: e0f77d2230ebcfb6f770f267861c4b0ecb7d2169a840803b71292986d047d73d
4
+ data.tar.gz: 65fdd1a1cf063a0ef2b488b98ba93a49eaffe17039b6073bb096cbd7ccf17362
5
5
  SHA512:
6
- metadata.gz: dad992fb87306b91802daccc8e6c0dc8d6d15d4cde2a46f8bf4528d6986773f21f2e95d9115eef9e9c1e541f0662a2818019769a86b485b896577dfffd4e1f80
7
- data.tar.gz: 871e2395ef5c86a679d64c2b04635a0017b2619091248676c31573236e8e0b04b834411f0cf12e9c80c6c811b2b5213763e3988c172f7593ebf7aaf0c20c26ba
6
+ metadata.gz: b14389d9e4a03b94e9a8e6a5e5649cb0194848fb953e6856a5f98744f9baeb592653cf2f8f079e87127a658d12c851ccc14b8f809fed78bd929facb8a7a4c79d
7
+ data.tar.gz: aacbbd1d8fe4acc90a1abb9485cc8f8dc3982dbeb4d3aa26ab1acb1348fe821fb1de47d8ca78647bf661492f6df062f00a957d65bb47555fc2c1474490b0dc88
data/CHANGELOG.md CHANGED
@@ -1,6 +1,21 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.66.0 (2022-08-15)
5
+ ------------------
6
+
7
+ * Feature - Adds Http 3 support to distributions
8
+
9
+ 1.65.0 (2022-05-16)
10
+ ------------------
11
+
12
+ * 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.
13
+
14
+ 1.64.0 (2022-04-26)
15
+ ------------------
16
+
17
+ * 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.
18
+
4
19
  1.63.0 (2022-02-24)
5
20
  ------------------
6
21
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.63.0
1
+ 1.66.0
@@ -832,7 +832,7 @@ module Aws::CloudFront
832
832
  # },
833
833
  # },
834
834
  # web_acl_id: "string",
835
- # http_version: "http1.1", # accepts http1.1, http2
835
+ # http_version: "http1.1", # accepts http1.1, http2, http3, http2and3
836
836
  # is_ipv6_enabled: false,
837
837
  # },
838
838
  # })
@@ -1015,7 +1015,7 @@ module Aws::CloudFront
1015
1015
  # resp.distribution.distribution_config.restrictions.geo_restriction.items #=> Array
1016
1016
  # resp.distribution.distribution_config.restrictions.geo_restriction.items[0] #=> String
1017
1017
  # resp.distribution.distribution_config.web_acl_id #=> String
1018
- # resp.distribution.distribution_config.http_version #=> String, one of "http1.1", "http2"
1018
+ # resp.distribution.distribution_config.http_version #=> String, one of "http1.1", "http2", "http3", "http2and3"
1019
1019
  # resp.distribution.distribution_config.is_ipv6_enabled #=> Boolean
1020
1020
  # resp.distribution.alias_icp_recordals #=> Array
1021
1021
  # resp.distribution.alias_icp_recordals[0].cname #=> String
@@ -1296,7 +1296,7 @@ module Aws::CloudFront
1296
1296
  # },
1297
1297
  # },
1298
1298
  # web_acl_id: "string",
1299
- # http_version: "http1.1", # accepts http1.1, http2
1299
+ # http_version: "http1.1", # accepts http1.1, http2, http3, http2and3
1300
1300
  # is_ipv6_enabled: false,
1301
1301
  # },
1302
1302
  # tags: { # required
@@ -1488,7 +1488,7 @@ module Aws::CloudFront
1488
1488
  # resp.distribution.distribution_config.restrictions.geo_restriction.items #=> Array
1489
1489
  # resp.distribution.distribution_config.restrictions.geo_restriction.items[0] #=> String
1490
1490
  # resp.distribution.distribution_config.web_acl_id #=> String
1491
- # resp.distribution.distribution_config.http_version #=> String, one of "http1.1", "http2"
1491
+ # resp.distribution.distribution_config.http_version #=> String, one of "http1.1", "http2", "http3", "http2and3"
1492
1492
  # resp.distribution.distribution_config.is_ipv6_enabled #=> Boolean
1493
1493
  # resp.distribution.alias_icp_recordals #=> Array
1494
1494
  # resp.distribution.alias_icp_recordals[0].cname #=> String
@@ -2172,6 +2172,10 @@ module Aws::CloudFront
2172
2172
  # },
2173
2173
  # ],
2174
2174
  # },
2175
+ # server_timing_headers_config: {
2176
+ # enabled: false, # required
2177
+ # sampling_rate: 1.0,
2178
+ # },
2175
2179
  # },
2176
2180
  # })
2177
2181
  #
@@ -2216,6 +2220,8 @@ module Aws::CloudFront
2216
2220
  # resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].header #=> String
2217
2221
  # resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].value #=> String
2218
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
2219
2225
  # resp.location #=> String
2220
2226
  # resp.etag #=> String
2221
2227
  #
@@ -3300,7 +3306,7 @@ module Aws::CloudFront
3300
3306
  # resp.distribution.distribution_config.restrictions.geo_restriction.items #=> Array
3301
3307
  # resp.distribution.distribution_config.restrictions.geo_restriction.items[0] #=> String
3302
3308
  # resp.distribution.distribution_config.web_acl_id #=> String
3303
- # resp.distribution.distribution_config.http_version #=> String, one of "http1.1", "http2"
3309
+ # resp.distribution.distribution_config.http_version #=> String, one of "http1.1", "http2", "http3", "http2and3"
3304
3310
  # resp.distribution.distribution_config.is_ipv6_enabled #=> Boolean
3305
3311
  # resp.distribution.alias_icp_recordals #=> Array
3306
3312
  # resp.distribution.alias_icp_recordals[0].cname #=> String
@@ -3496,7 +3502,7 @@ module Aws::CloudFront
3496
3502
  # resp.distribution_config.restrictions.geo_restriction.items #=> Array
3497
3503
  # resp.distribution_config.restrictions.geo_restriction.items[0] #=> String
3498
3504
  # resp.distribution_config.web_acl_id #=> String
3499
- # resp.distribution_config.http_version #=> String, one of "http1.1", "http2"
3505
+ # resp.distribution_config.http_version #=> String, one of "http1.1", "http2", "http3", "http2and3"
3500
3506
  # resp.distribution_config.is_ipv6_enabled #=> Boolean
3501
3507
  # resp.etag #=> String
3502
3508
  #
@@ -4177,6 +4183,8 @@ module Aws::CloudFront
4177
4183
  # resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].header #=> String
4178
4184
  # resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].value #=> String
4179
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
4180
4188
  # resp.etag #=> String
4181
4189
  #
4182
4190
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetResponseHeadersPolicy AWS API Documentation
@@ -4256,6 +4264,8 @@ module Aws::CloudFront
4256
4264
  # resp.response_headers_policy_config.custom_headers_config.items[0].header #=> String
4257
4265
  # resp.response_headers_policy_config.custom_headers_config.items[0].value #=> String
4258
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
4259
4269
  # resp.etag #=> String
4260
4270
  #
4261
4271
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetResponseHeadersPolicyConfig AWS API Documentation
@@ -4779,7 +4789,7 @@ module Aws::CloudFront
4779
4789
  # resp.distribution_list.items[0].restrictions.geo_restriction.items #=> Array
4780
4790
  # resp.distribution_list.items[0].restrictions.geo_restriction.items[0] #=> String
4781
4791
  # resp.distribution_list.items[0].web_acl_id #=> String
4782
- # resp.distribution_list.items[0].http_version #=> String, one of "http1.1", "http2"
4792
+ # resp.distribution_list.items[0].http_version #=> String, one of "http1.1", "http2", "http3", "http2and3"
4783
4793
  # resp.distribution_list.items[0].is_ipv6_enabled #=> Boolean
4784
4794
  # resp.distribution_list.items[0].alias_icp_recordals #=> Array
4785
4795
  # resp.distribution_list.items[0].alias_icp_recordals[0].cname #=> String
@@ -5168,7 +5178,7 @@ module Aws::CloudFront
5168
5178
  # resp.distribution_list.items[0].restrictions.geo_restriction.items #=> Array
5169
5179
  # resp.distribution_list.items[0].restrictions.geo_restriction.items[0] #=> String
5170
5180
  # resp.distribution_list.items[0].web_acl_id #=> String
5171
- # resp.distribution_list.items[0].http_version #=> String, one of "http1.1", "http2"
5181
+ # resp.distribution_list.items[0].http_version #=> String, one of "http1.1", "http2", "http3", "http2and3"
5172
5182
  # resp.distribution_list.items[0].is_ipv6_enabled #=> Boolean
5173
5183
  # resp.distribution_list.items[0].alias_icp_recordals #=> Array
5174
5184
  # resp.distribution_list.items[0].alias_icp_recordals[0].cname #=> String
@@ -5434,7 +5444,7 @@ module Aws::CloudFront
5434
5444
  # resp.distribution_list.items[0].restrictions.geo_restriction.items #=> Array
5435
5445
  # resp.distribution_list.items[0].restrictions.geo_restriction.items[0] #=> String
5436
5446
  # resp.distribution_list.items[0].web_acl_id #=> String
5437
- # resp.distribution_list.items[0].http_version #=> String, one of "http1.1", "http2"
5447
+ # resp.distribution_list.items[0].http_version #=> String, one of "http1.1", "http2", "http3", "http2and3"
5438
5448
  # resp.distribution_list.items[0].is_ipv6_enabled #=> Boolean
5439
5449
  # resp.distribution_list.items[0].alias_icp_recordals #=> Array
5440
5450
  # resp.distribution_list.items[0].alias_icp_recordals[0].cname #=> String
@@ -5999,6 +6009,8 @@ module Aws::CloudFront
5999
6009
  # resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].header #=> String
6000
6010
  # resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].value #=> String
6001
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
6002
6014
  #
6003
6015
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListResponseHeadersPolicies AWS API Documentation
6004
6016
  #
@@ -6780,7 +6792,7 @@ module Aws::CloudFront
6780
6792
  # },
6781
6793
  # },
6782
6794
  # web_acl_id: "string",
6783
- # http_version: "http1.1", # accepts http1.1, http2
6795
+ # http_version: "http1.1", # accepts http1.1, http2, http3, http2and3
6784
6796
  # is_ipv6_enabled: false,
6785
6797
  # },
6786
6798
  # id: "string", # required
@@ -6965,7 +6977,7 @@ module Aws::CloudFront
6965
6977
  # resp.distribution.distribution_config.restrictions.geo_restriction.items #=> Array
6966
6978
  # resp.distribution.distribution_config.restrictions.geo_restriction.items[0] #=> String
6967
6979
  # resp.distribution.distribution_config.web_acl_id #=> String
6968
- # resp.distribution.distribution_config.http_version #=> String, one of "http1.1", "http2"
6980
+ # resp.distribution.distribution_config.http_version #=> String, one of "http1.1", "http2", "http3", "http2and3"
6969
6981
  # resp.distribution.distribution_config.is_ipv6_enabled #=> Boolean
6970
6982
  # resp.distribution.alias_icp_recordals #=> Array
6971
6983
  # resp.distribution.alias_icp_recordals[0].cname #=> String
@@ -7590,6 +7602,10 @@ module Aws::CloudFront
7590
7602
  # },
7591
7603
  # ],
7592
7604
  # },
7605
+ # server_timing_headers_config: {
7606
+ # enabled: false, # required
7607
+ # sampling_rate: 1.0,
7608
+ # },
7593
7609
  # },
7594
7610
  # id: "string", # required
7595
7611
  # if_match: "string",
@@ -7636,6 +7652,8 @@ module Aws::CloudFront
7636
7652
  # resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].header #=> String
7637
7653
  # resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].value #=> String
7638
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
7639
7657
  # resp.etag #=> String
7640
7658
  #
7641
7659
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateResponseHeadersPolicy AWS API Documentation
@@ -7750,7 +7768,7 @@ module Aws::CloudFront
7750
7768
  params: params,
7751
7769
  config: config)
7752
7770
  context[:gem_name] = 'aws-sdk-cloudfront'
7753
- context[:gem_version] = '1.63.0'
7771
+ context[:gem_version] = '1.66.0'
7754
7772
  Seahorse::Client::Request.new(handlers, context)
7755
7773
  end
7756
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
@@ -2168,7 +2168,7 @@ module Aws::CloudFront
2168
2168
  # },
2169
2169
  # },
2170
2170
  # web_acl_id: "string",
2171
- # http_version: "http1.1", # accepts http1.1, http2
2171
+ # http_version: "http1.1", # accepts http1.1, http2, http3, http2and3
2172
2172
  # is_ipv6_enabled: false,
2173
2173
  # },
2174
2174
  # }
@@ -2466,7 +2466,7 @@ module Aws::CloudFront
2466
2466
  # },
2467
2467
  # },
2468
2468
  # web_acl_id: "string",
2469
- # http_version: "http1.1", # accepts http1.1, http2
2469
+ # http_version: "http1.1", # accepts http1.1, http2, http3, http2and3
2470
2470
  # is_ipv6_enabled: false,
2471
2471
  # },
2472
2472
  # tags: { # required
@@ -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
  #
@@ -4762,7 +4766,7 @@ module Aws::CloudFront
4762
4766
  # },
4763
4767
  # },
4764
4768
  # web_acl_id: "string",
4765
- # http_version: "http1.1", # accepts http1.1, http2
4769
+ # http_version: "http1.1", # accepts http1.1, http2, http3, http2and3
4766
4770
  # is_ipv6_enabled: false,
4767
4771
  # }
4768
4772
  #
@@ -4932,18 +4936,26 @@ module Aws::CloudFront
4932
4936
  # @return [String]
4933
4937
  #
4934
4938
  # @!attribute [rw] http_version
4935
- # (Optional) Specify the maximum HTTP version that you want viewers to
4936
- # use to communicate with CloudFront. The default value for new web
4937
- # distributions is http2. Viewers that don't support HTTP/2
4939
+ # (Optional) Specify the maximum HTTP version(s) that you want viewers
4940
+ # to use to communicate with CloudFront. The default value for new web
4941
+ # distributions is `http2`. Viewers that don't support HTTP/2
4938
4942
  # automatically use an earlier HTTP version.
4939
4943
  #
4940
- # For viewers and CloudFront to use HTTP/2, viewers must support TLS
4941
- # 1.2 or later, and must support Server Name Identification (SNI).
4944
+ # For viewers and CloudFront to use HTTP/2, viewers must support
4945
+ # TLSv1.2 or later, and must support Server Name Indication (SNI).
4946
+ #
4947
+ # For viewers and CloudFront to use HTTP/3, viewers must support
4948
+ # TLSv1.3 and Server Name Indication (SNI). CloudFront supports HTTP/3
4949
+ # connection migration to allow the viewer to switch networks without
4950
+ # losing connection. For more information about connection migration,
4951
+ # see [Connection Migration][1] at RFC 9000. For more information
4952
+ # about supported TLSv1.3 ciphers, see [Supported protocols and
4953
+ # ciphers between viewers and CloudFront][2].
4954
+ #
4942
4955
  #
4943
- # In general, configuring CloudFront to communicate with viewers using
4944
- # HTTP/2 reduces latency. You can improve performance by optimizing
4945
- # for HTTP/2. For more information, do an Internet search for "http/2
4946
- # optimization."
4956
+ #
4957
+ # [1]: https://www.rfc-editor.org/rfc/rfc9000.html#name-connection-migration
4958
+ # [2]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/secure-connections-supported-viewer-protocols-ciphers.html
4947
4959
  # @return [String]
4948
4960
  #
4949
4961
  # @!attribute [rw] is_ipv6_enabled
@@ -5270,7 +5282,7 @@ module Aws::CloudFront
5270
5282
  # },
5271
5283
  # },
5272
5284
  # web_acl_id: "string",
5273
- # http_version: "http1.1", # accepts http1.1, http2
5285
+ # http_version: "http1.1", # accepts http1.1, http2, http3, http2and3
5274
5286
  # is_ipv6_enabled: false,
5275
5287
  # },
5276
5288
  # tags: { # required
@@ -11674,6 +11686,10 @@ module Aws::CloudFront
11674
11686
  # },
11675
11687
  # ],
11676
11688
  # },
11689
+ # server_timing_headers_config: {
11690
+ # enabled: false, # required
11691
+ # sampling_rate: 1.0,
11692
+ # },
11677
11693
  # }
11678
11694
  #
11679
11695
  # @!attribute [rw] comment
@@ -11702,6 +11718,11 @@ module Aws::CloudFront
11702
11718
  # A configuration for a set of custom HTTP response headers.
11703
11719
  # @return [Types::ResponseHeadersPolicyCustomHeadersConfig]
11704
11720
  #
11721
+ # @!attribute [rw] server_timing_headers_config
11722
+ # A configuration for enabling the `Server-Timing` header in HTTP
11723
+ # responses sent from CloudFront.
11724
+ # @return [Types::ResponseHeadersPolicyServerTimingHeadersConfig]
11725
+ #
11705
11726
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ResponseHeadersPolicyConfig AWS API Documentation
11706
11727
  #
11707
11728
  class ResponseHeadersPolicyConfig < Struct.new(
@@ -11709,7 +11730,8 @@ module Aws::CloudFront
11709
11730
  :name,
11710
11731
  :cors_config,
11711
11732
  :security_headers_config,
11712
- :custom_headers_config)
11733
+ :custom_headers_config,
11734
+ :server_timing_headers_config)
11713
11735
  SENSITIVE = []
11714
11736
  include Aws::Structure
11715
11737
  end
@@ -12270,6 +12292,60 @@ module Aws::CloudFront
12270
12292
  include Aws::Structure
12271
12293
  end
12272
12294
 
12295
+ # A configuration for enabling the `Server-Timing` header in HTTP
12296
+ # responses sent from CloudFront. CloudFront adds this header to HTTP
12297
+ # responses that it sends in response to requests that match a cache
12298
+ # behavior that's associated with this response headers policy.
12299
+ #
12300
+ # You can use the `Server-Timing` header to view metrics that can help
12301
+ # you gain insights about the behavior and performance of CloudFront.
12302
+ # For example, you can see which cache layer served a cache hit, or the
12303
+ # first byte latency from the origin when there was a cache miss. You
12304
+ # can use the metrics in the `Server-Timing` header to troubleshoot
12305
+ # issues or test the efficiency of your CloudFront configuration. For
12306
+ # more information, see [Server-Timing header][1] in the *Amazon
12307
+ # CloudFront Developer Guide*.
12308
+ #
12309
+ #
12310
+ #
12311
+ # [1]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/understanding-response-headers-policies.html#server-timing-header
12312
+ #
12313
+ # @note When making an API call, you may pass ResponseHeadersPolicyServerTimingHeadersConfig
12314
+ # data as a hash:
12315
+ #
12316
+ # {
12317
+ # enabled: false, # required
12318
+ # sampling_rate: 1.0,
12319
+ # }
12320
+ #
12321
+ # @!attribute [rw] enabled
12322
+ # A Boolean that determines whether CloudFront adds the
12323
+ # `Server-Timing` header to HTTP responses that it sends in response
12324
+ # to requests that match a cache behavior that's associated with this
12325
+ # response headers policy.
12326
+ # @return [Boolean]
12327
+ #
12328
+ # @!attribute [rw] sampling_rate
12329
+ # A number 0–100 (inclusive) that specifies the percentage of
12330
+ # responses that you want CloudFront to add the `Server-Timing` header
12331
+ # to. When you set the sampling rate to 100, CloudFront adds the
12332
+ # `Server-Timing` header to the HTTP response for every request that
12333
+ # matches the cache behavior that this response headers policy is
12334
+ # attached to. When you set it to 50, CloudFront adds the header to
12335
+ # 50% of the responses for requests that match the cache behavior. You
12336
+ # can set the sampling rate to any number 0–100 with up to four
12337
+ # decimal places.
12338
+ # @return [Float]
12339
+ #
12340
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ResponseHeadersPolicyServerTimingHeadersConfig AWS API Documentation
12341
+ #
12342
+ class ResponseHeadersPolicyServerTimingHeadersConfig < Struct.new(
12343
+ :enabled,
12344
+ :sampling_rate)
12345
+ SENSITIVE = []
12346
+ include Aws::Structure
12347
+ end
12348
+
12273
12349
  # Determines whether CloudFront includes the `Strict-Transport-Security`
12274
12350
  # HTTP response header and the header’s value.
12275
12351
  #
@@ -13282,6 +13358,27 @@ module Aws::CloudFront
13282
13358
  include Aws::Structure
13283
13359
  end
13284
13360
 
13361
+ # The length of the `Content-Security-Policy` header value in the
13362
+ # response headers policy exceeds the maximum.
13363
+ #
13364
+ # For more information, see [Quotas][1] (formerly known as limits) in
13365
+ # the *Amazon CloudFront Developer Guide*.
13366
+ #
13367
+ #
13368
+ #
13369
+ # [1]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html
13370
+ #
13371
+ # @!attribute [rw] message
13372
+ # @return [String]
13373
+ #
13374
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/TooLongCSPInResponseHeadersPolicy AWS API Documentation
13375
+ #
13376
+ class TooLongCSPInResponseHeadersPolicy < Struct.new(
13377
+ :message)
13378
+ SENSITIVE = []
13379
+ include Aws::Structure
13380
+ end
13381
+
13285
13382
  # You cannot create more cache behaviors for the distribution.
13286
13383
  #
13287
13384
  # @!attribute [rw] message
@@ -14583,7 +14680,7 @@ module Aws::CloudFront
14583
14680
  # },
14584
14681
  # },
14585
14682
  # web_acl_id: "string",
14586
- # http_version: "http1.1", # accepts http1.1, http2
14683
+ # http_version: "http1.1", # accepts http1.1, http2, http3, http2and3
14587
14684
  # is_ipv6_enabled: false,
14588
14685
  # },
14589
14686
  # id: "string", # required
@@ -15168,6 +15265,10 @@ module Aws::CloudFront
15168
15265
  # },
15169
15266
  # ],
15170
15267
  # },
15268
+ # server_timing_headers_config: {
15269
+ # enabled: false, # required
15270
+ # sampling_rate: 1.0,
15271
+ # },
15171
15272
  # },
15172
15273
  # id: "string", # required
15173
15274
  # if_match: "string",
@@ -49,6 +49,6 @@ require_relative 'aws-sdk-cloudfront/customizations'
49
49
  # @!group service
50
50
  module Aws::CloudFront
51
51
 
52
- GEM_VERSION = '1.63.0'
52
+ GEM_VERSION = '1.66.0'
53
53
 
54
54
  end
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.63.0
4
+ version: 1.66.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-02-24 00:00:00.000000000 Z
11
+ date: 2022-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core