aws-sdk-cloudfront 1.63.0 → 1.64.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: 0a5df1416e2e2280e5c75b280b6ac408bc732e86250c299f62ef4cb53b1bfff8
4
+ data.tar.gz: 1b5b32525e24503c4cc7ac27fd6ae619670c828762e43400c0a76f4f1b627601
5
5
  SHA512:
6
- metadata.gz: dad992fb87306b91802daccc8e6c0dc8d6d15d4cde2a46f8bf4528d6986773f21f2e95d9115eef9e9c1e541f0662a2818019769a86b485b896577dfffd4e1f80
7
- data.tar.gz: 871e2395ef5c86a679d64c2b04635a0017b2619091248676c31573236e8e0b04b834411f0cf12e9c80c6c811b2b5213763e3988c172f7593ebf7aaf0c20c26ba
6
+ metadata.gz: b2dc665a2687560c782ba3768e22de54840cad78809c5e4c263833ee9c46d71799e615835b2243f68f53a1eea85f53dd4a1bb73fb1cab295fd6d5ebd3509ae9e
7
+ data.tar.gz: b2fc727f24a41ce236327bafddd7c375ba5b83ea5cd271c8c56da37cdc190eb986f906188e43be1b5ea8645e39e1740b05ad396a4d26263ec1bf8b27890c8011
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.64.0 (2022-04-26)
5
+ ------------------
6
+
7
+ * 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.
8
+
4
9
  1.63.0 (2022-02-24)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.63.0
1
+ 1.64.0
@@ -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
  #
@@ -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
@@ -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
  #
@@ -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.64.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')
@@ -2158,6 +2160,7 @@ module Aws::CloudFront
2158
2160
  ResponseHeadersPolicyConfig.add_member(:cors_config, Shapes::ShapeRef.new(shape: ResponseHeadersPolicyCorsConfig, location_name: "CorsConfig"))
2159
2161
  ResponseHeadersPolicyConfig.add_member(:security_headers_config, Shapes::ShapeRef.new(shape: ResponseHeadersPolicySecurityHeadersConfig, location_name: "SecurityHeadersConfig"))
2160
2162
  ResponseHeadersPolicyConfig.add_member(:custom_headers_config, Shapes::ShapeRef.new(shape: ResponseHeadersPolicyCustomHeadersConfig, location_name: "CustomHeadersConfig"))
2163
+ ResponseHeadersPolicyConfig.add_member(:server_timing_headers_config, Shapes::ShapeRef.new(shape: ResponseHeadersPolicyServerTimingHeadersConfig, location_name: "ServerTimingHeadersConfig"))
2161
2164
  ResponseHeadersPolicyConfig.struct_class = Types::ResponseHeadersPolicyConfig
2162
2165
 
2163
2166
  ResponseHeadersPolicyContentSecurityPolicy.add_member(:override, Shapes::ShapeRef.new(shape: boolean, required: true, location_name: "Override"))
@@ -2212,6 +2215,10 @@ module Aws::CloudFront
2212
2215
  ResponseHeadersPolicySecurityHeadersConfig.add_member(:strict_transport_security, Shapes::ShapeRef.new(shape: ResponseHeadersPolicyStrictTransportSecurity, location_name: "StrictTransportSecurity"))
2213
2216
  ResponseHeadersPolicySecurityHeadersConfig.struct_class = Types::ResponseHeadersPolicySecurityHeadersConfig
2214
2217
 
2218
+ ResponseHeadersPolicyServerTimingHeadersConfig.add_member(:enabled, Shapes::ShapeRef.new(shape: boolean, required: true, location_name: "Enabled"))
2219
+ ResponseHeadersPolicyServerTimingHeadersConfig.add_member(:sampling_rate, Shapes::ShapeRef.new(shape: SamplingRate, location_name: "SamplingRate"))
2220
+ ResponseHeadersPolicyServerTimingHeadersConfig.struct_class = Types::ResponseHeadersPolicyServerTimingHeadersConfig
2221
+
2215
2222
  ResponseHeadersPolicyStrictTransportSecurity.add_member(:override, Shapes::ShapeRef.new(shape: boolean, required: true, location_name: "Override"))
2216
2223
  ResponseHeadersPolicyStrictTransportSecurity.add_member(:include_subdomains, Shapes::ShapeRef.new(shape: boolean, location_name: "IncludeSubdomains"))
2217
2224
  ResponseHeadersPolicyStrictTransportSecurity.add_member(:preload, Shapes::ShapeRef.new(shape: boolean, location_name: "Preload"))
@@ -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
  #
@@ -15168,6 +15236,10 @@ module Aws::CloudFront
15168
15236
  # },
15169
15237
  # ],
15170
15238
  # },
15239
+ # server_timing_headers_config: {
15240
+ # enabled: false, # required
15241
+ # sampling_rate: 1.0,
15242
+ # },
15171
15243
  # },
15172
15244
  # id: "string", # required
15173
15245
  # 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.64.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.64.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-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core