aws-sdk-cloudfront 1.72.0 → 1.73.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: 3beb6f85cd049942cbb38919882d23e974f7ffc0681ebe53d2c8986fc299a3c6
4
- data.tar.gz: 76939b083d1c1dc985957e0b49614e7b96fadce8e183186d10b112f408aefb22
3
+ metadata.gz: 3352cbb7d8d7b4e36a394e1b3422dd24b128daeaf03d7193099a51b59ff2d727
4
+ data.tar.gz: 0ba9416295753e1fc84f8df26be0f5aef4184b6cfdbacfc84c2605569105858a
5
5
  SHA512:
6
- metadata.gz: 77bff94356689ed89d1b3af99b78f46d732b9f364c2ce3fbd9bccc7a7f6f98d983662d307be7e9a22b13afeffee12a8a71397a2a682788429a2bc00d7fbd5cbf
7
- data.tar.gz: 61148a9265c4a0e3c241f11d0f01e457d31dc5338bec61fbdb8c71ca2fc7a8e9a81e2e696138c7602ce861397befb18b095d81f16b177ddb5d7413f6d6be28c1
6
+ metadata.gz: 8a24dd099449fae4db476a51e112c9bc69c50e6ff783e82ef466479632f7209b419e79c648c5ea5e9e2bfb7beef319b1b6e291dace500109951e127ef6e2e743
7
+ data.tar.gz: 8003342451b5ddd1d906c53af4a6df1d0ed36981cc59b2c694eee62926d052889fabb89021842ca14f151e858fc02a4689bcfc9c84b7adf8889496c51ff208df
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.73.0 (2022-12-30)
5
+ ------------------
6
+
7
+ * Feature - Extend response headers policy to support removing headers from viewer responses
8
+
4
9
  1.72.0 (2022-12-16)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.72.0
1
+ 1.73.0
@@ -2472,19 +2472,28 @@ module Aws::CloudFront
2472
2472
  # Creates a response headers policy.
2473
2473
  #
2474
2474
  # A response headers policy contains information about a set of HTTP
2475
- # response headers and their values. To create a response headers
2476
- # policy, you provide some metadata about the policy, and a set of
2477
- # configurations that specify the response headers.
2475
+ # headers. To create a response headers policy, you provide some
2476
+ # metadata about the policy and a set of configurations that specify the
2477
+ # headers.
2478
2478
  #
2479
2479
  # After you create a response headers policy, you can use its ID to
2480
2480
  # attach it to one or more cache behaviors in a CloudFront distribution.
2481
- # When it's attached to a cache behavior, CloudFront adds the headers
2482
- # in the policy to HTTP responses that it sends for requests that match
2483
- # the cache behavior.
2481
+ # When it's attached to a cache behavior, the response headers policy
2482
+ # affects the HTTP headers that CloudFront includes in HTTP responses to
2483
+ # requests that match the cache behavior. CloudFront adds or removes
2484
+ # response headers according to the configuration of the response
2485
+ # headers policy.
2486
+ #
2487
+ # For more information, see [Adding or removing HTTP headers in
2488
+ # CloudFront responses][1] in the *Amazon CloudFront Developer Guide*.
2489
+ #
2490
+ #
2491
+ #
2492
+ # [1]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/modifying-response-headers.html
2484
2493
  #
2485
2494
  # @option params [required, Types::ResponseHeadersPolicyConfig] :response_headers_policy_config
2486
2495
  # Contains metadata about the response headers policy, and a set of
2487
- # configurations that specify the response headers.
2496
+ # configurations that specify the HTTP headers.
2488
2497
  #
2489
2498
  # @return [Types::CreateResponseHeadersPolicyResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2490
2499
  #
@@ -2562,6 +2571,14 @@ module Aws::CloudFront
2562
2571
  # },
2563
2572
  # ],
2564
2573
  # },
2574
+ # remove_headers_config: {
2575
+ # quantity: 1, # required
2576
+ # items: [
2577
+ # {
2578
+ # header: "string", # required
2579
+ # },
2580
+ # ],
2581
+ # },
2565
2582
  # },
2566
2583
  # })
2567
2584
  #
@@ -2608,6 +2625,9 @@ module Aws::CloudFront
2608
2625
  # resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].header #=> String
2609
2626
  # resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].value #=> String
2610
2627
  # resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].override #=> Boolean
2628
+ # resp.response_headers_policy.response_headers_policy_config.remove_headers_config.quantity #=> Integer
2629
+ # resp.response_headers_policy.response_headers_policy_config.remove_headers_config.items #=> Array
2630
+ # resp.response_headers_policy.response_headers_policy_config.remove_headers_config.items[0].header #=> String
2611
2631
  # resp.location #=> String
2612
2632
  # resp.etag #=> String
2613
2633
  #
@@ -4794,6 +4814,9 @@ module Aws::CloudFront
4794
4814
  # resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].header #=> String
4795
4815
  # resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].value #=> String
4796
4816
  # resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].override #=> Boolean
4817
+ # resp.response_headers_policy.response_headers_policy_config.remove_headers_config.quantity #=> Integer
4818
+ # resp.response_headers_policy.response_headers_policy_config.remove_headers_config.items #=> Array
4819
+ # resp.response_headers_policy.response_headers_policy_config.remove_headers_config.items[0].header #=> String
4797
4820
  # resp.etag #=> String
4798
4821
  #
4799
4822
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetResponseHeadersPolicy AWS API Documentation
@@ -4875,6 +4898,9 @@ module Aws::CloudFront
4875
4898
  # resp.response_headers_policy_config.custom_headers_config.items[0].header #=> String
4876
4899
  # resp.response_headers_policy_config.custom_headers_config.items[0].value #=> String
4877
4900
  # resp.response_headers_policy_config.custom_headers_config.items[0].override #=> Boolean
4901
+ # resp.response_headers_policy_config.remove_headers_config.quantity #=> Integer
4902
+ # resp.response_headers_policy_config.remove_headers_config.items #=> Array
4903
+ # resp.response_headers_policy_config.remove_headers_config.items[0].header #=> String
4878
4904
  # resp.etag #=> String
4879
4905
  #
4880
4906
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetResponseHeadersPolicyConfig AWS API Documentation
@@ -6743,6 +6769,9 @@ module Aws::CloudFront
6743
6769
  # resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].header #=> String
6744
6770
  # resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].value #=> String
6745
6771
  # resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].override #=> Boolean
6772
+ # resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.remove_headers_config.quantity #=> Integer
6773
+ # resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.remove_headers_config.items #=> Array
6774
+ # resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.remove_headers_config.items[0].header #=> String
6746
6775
  #
6747
6776
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListResponseHeadersPolicies AWS API Documentation
6748
6777
  #
@@ -8674,6 +8703,14 @@ module Aws::CloudFront
8674
8703
  # },
8675
8704
  # ],
8676
8705
  # },
8706
+ # remove_headers_config: {
8707
+ # quantity: 1, # required
8708
+ # items: [
8709
+ # {
8710
+ # header: "string", # required
8711
+ # },
8712
+ # ],
8713
+ # },
8677
8714
  # },
8678
8715
  # id: "string", # required
8679
8716
  # if_match: "string",
@@ -8722,6 +8759,9 @@ module Aws::CloudFront
8722
8759
  # resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].header #=> String
8723
8760
  # resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].value #=> String
8724
8761
  # resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].override #=> Boolean
8762
+ # resp.response_headers_policy.response_headers_policy_config.remove_headers_config.quantity #=> Integer
8763
+ # resp.response_headers_policy.response_headers_policy_config.remove_headers_config.items #=> Array
8764
+ # resp.response_headers_policy.response_headers_policy_config.remove_headers_config.items[0].header #=> String
8725
8765
  # resp.etag #=> String
8726
8766
  #
8727
8767
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateResponseHeadersPolicy AWS API Documentation
@@ -8836,7 +8876,7 @@ module Aws::CloudFront
8836
8876
  params: params,
8837
8877
  config: config)
8838
8878
  context[:gem_name] = 'aws-sdk-cloudfront'
8839
- context[:gem_version] = '1.72.0'
8879
+ context[:gem_version] = '1.73.0'
8840
8880
  Seahorse::Client::Request.new(handlers, context)
8841
8881
  end
8842
8882
 
@@ -472,6 +472,9 @@ module Aws::CloudFront
472
472
  ResponseHeadersPolicyInUse = Shapes::StructureShape.new(name: 'ResponseHeadersPolicyInUse')
473
473
  ResponseHeadersPolicyList = Shapes::StructureShape.new(name: 'ResponseHeadersPolicyList')
474
474
  ResponseHeadersPolicyReferrerPolicy = Shapes::StructureShape.new(name: 'ResponseHeadersPolicyReferrerPolicy')
475
+ ResponseHeadersPolicyRemoveHeader = Shapes::StructureShape.new(name: 'ResponseHeadersPolicyRemoveHeader')
476
+ ResponseHeadersPolicyRemoveHeaderList = Shapes::ListShape.new(name: 'ResponseHeadersPolicyRemoveHeaderList')
477
+ ResponseHeadersPolicyRemoveHeadersConfig = Shapes::StructureShape.new(name: 'ResponseHeadersPolicyRemoveHeadersConfig')
475
478
  ResponseHeadersPolicySecurityHeadersConfig = Shapes::StructureShape.new(name: 'ResponseHeadersPolicySecurityHeadersConfig')
476
479
  ResponseHeadersPolicyServerTimingHeadersConfig = Shapes::StructureShape.new(name: 'ResponseHeadersPolicyServerTimingHeadersConfig')
477
480
  ResponseHeadersPolicyStrictTransportSecurity = Shapes::StructureShape.new(name: 'ResponseHeadersPolicyStrictTransportSecurity')
@@ -562,6 +565,7 @@ module Aws::CloudFront
562
565
  TooManyQueryStringsInCachePolicy = Shapes::StructureShape.new(name: 'TooManyQueryStringsInCachePolicy')
563
566
  TooManyQueryStringsInOriginRequestPolicy = Shapes::StructureShape.new(name: 'TooManyQueryStringsInOriginRequestPolicy')
564
567
  TooManyRealtimeLogConfigs = Shapes::StructureShape.new(name: 'TooManyRealtimeLogConfigs')
568
+ TooManyRemoveHeadersInResponseHeadersPolicy = Shapes::StructureShape.new(name: 'TooManyRemoveHeadersInResponseHeadersPolicy')
565
569
  TooManyResponseHeadersPolicies = Shapes::StructureShape.new(name: 'TooManyResponseHeadersPolicies')
566
570
  TooManyStreamingDistributionCNAMEs = Shapes::StructureShape.new(name: 'TooManyStreamingDistributionCNAMEs')
567
571
  TooManyStreamingDistributions = Shapes::StructureShape.new(name: 'TooManyStreamingDistributions')
@@ -2418,6 +2422,7 @@ module Aws::CloudFront
2418
2422
  ResponseHeadersPolicyConfig.add_member(:security_headers_config, Shapes::ShapeRef.new(shape: ResponseHeadersPolicySecurityHeadersConfig, location_name: "SecurityHeadersConfig"))
2419
2423
  ResponseHeadersPolicyConfig.add_member(:server_timing_headers_config, Shapes::ShapeRef.new(shape: ResponseHeadersPolicyServerTimingHeadersConfig, location_name: "ServerTimingHeadersConfig"))
2420
2424
  ResponseHeadersPolicyConfig.add_member(:custom_headers_config, Shapes::ShapeRef.new(shape: ResponseHeadersPolicyCustomHeadersConfig, location_name: "CustomHeadersConfig"))
2425
+ ResponseHeadersPolicyConfig.add_member(:remove_headers_config, Shapes::ShapeRef.new(shape: ResponseHeadersPolicyRemoveHeadersConfig, location_name: "RemoveHeadersConfig"))
2421
2426
  ResponseHeadersPolicyConfig.struct_class = Types::ResponseHeadersPolicyConfig
2422
2427
 
2423
2428
  ResponseHeadersPolicyContentSecurityPolicy.add_member(:override, Shapes::ShapeRef.new(shape: boolean, required: true, location_name: "Override"))
@@ -2464,6 +2469,15 @@ module Aws::CloudFront
2464
2469
  ResponseHeadersPolicyReferrerPolicy.add_member(:referrer_policy, Shapes::ShapeRef.new(shape: ReferrerPolicyList, required: true, location_name: "ReferrerPolicy"))
2465
2470
  ResponseHeadersPolicyReferrerPolicy.struct_class = Types::ResponseHeadersPolicyReferrerPolicy
2466
2471
 
2472
+ ResponseHeadersPolicyRemoveHeader.add_member(:header, Shapes::ShapeRef.new(shape: string, required: true, location_name: "Header"))
2473
+ ResponseHeadersPolicyRemoveHeader.struct_class = Types::ResponseHeadersPolicyRemoveHeader
2474
+
2475
+ ResponseHeadersPolicyRemoveHeaderList.member = Shapes::ShapeRef.new(shape: ResponseHeadersPolicyRemoveHeader, location_name: "ResponseHeadersPolicyRemoveHeader")
2476
+
2477
+ ResponseHeadersPolicyRemoveHeadersConfig.add_member(:quantity, Shapes::ShapeRef.new(shape: integer, required: true, location_name: "Quantity"))
2478
+ ResponseHeadersPolicyRemoveHeadersConfig.add_member(:items, Shapes::ShapeRef.new(shape: ResponseHeadersPolicyRemoveHeaderList, location_name: "Items"))
2479
+ ResponseHeadersPolicyRemoveHeadersConfig.struct_class = Types::ResponseHeadersPolicyRemoveHeadersConfig
2480
+
2467
2481
  ResponseHeadersPolicySecurityHeadersConfig.add_member(:xss_protection, Shapes::ShapeRef.new(shape: ResponseHeadersPolicyXSSProtection, location_name: "XSSProtection"))
2468
2482
  ResponseHeadersPolicySecurityHeadersConfig.add_member(:frame_options, Shapes::ShapeRef.new(shape: ResponseHeadersPolicyFrameOptions, location_name: "FrameOptions"))
2469
2483
  ResponseHeadersPolicySecurityHeadersConfig.add_member(:referrer_policy, Shapes::ShapeRef.new(shape: ResponseHeadersPolicyReferrerPolicy, location_name: "ReferrerPolicy"))
@@ -2770,6 +2784,9 @@ module Aws::CloudFront
2770
2784
  TooManyRealtimeLogConfigs.add_member(:message, Shapes::ShapeRef.new(shape: string, location_name: "Message"))
2771
2785
  TooManyRealtimeLogConfigs.struct_class = Types::TooManyRealtimeLogConfigs
2772
2786
 
2787
+ TooManyRemoveHeadersInResponseHeadersPolicy.add_member(:message, Shapes::ShapeRef.new(shape: string, location_name: "Message"))
2788
+ TooManyRemoveHeadersInResponseHeadersPolicy.struct_class = Types::TooManyRemoveHeadersInResponseHeadersPolicy
2789
+
2773
2790
  TooManyResponseHeadersPolicies.add_member(:message, Shapes::ShapeRef.new(shape: string, location_name: "Message"))
2774
2791
  TooManyResponseHeadersPolicies.struct_class = Types::TooManyResponseHeadersPolicies
2775
2792
 
@@ -3464,6 +3481,7 @@ module Aws::CloudFront
3464
3481
  o.errors << Shapes::ShapeRef.new(shape: TooManyResponseHeadersPolicies)
3465
3482
  o.errors << Shapes::ShapeRef.new(shape: TooManyCustomHeadersInResponseHeadersPolicy)
3466
3483
  o.errors << Shapes::ShapeRef.new(shape: TooLongCSPInResponseHeadersPolicy)
3484
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRemoveHeadersInResponseHeadersPolicy)
3467
3485
  end)
3468
3486
 
3469
3487
  api.add_operation(:create_streaming_distribution, Seahorse::Model::Operation.new.tap do |o|
@@ -4671,6 +4689,7 @@ module Aws::CloudFront
4671
4689
  o.errors << Shapes::ShapeRef.new(shape: ResponseHeadersPolicyAlreadyExists)
4672
4690
  o.errors << Shapes::ShapeRef.new(shape: TooManyCustomHeadersInResponseHeadersPolicy)
4673
4691
  o.errors << Shapes::ShapeRef.new(shape: TooLongCSPInResponseHeadersPolicy)
4692
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRemoveHeadersInResponseHeadersPolicy)
4674
4693
  end)
4675
4694
 
4676
4695
  api.add_operation(:update_streaming_distribution, Seahorse::Model::Operation.new.tap do |o|
@@ -163,6 +163,7 @@ module Aws::CloudFront
163
163
  # * {TooManyQueryStringsInCachePolicy}
164
164
  # * {TooManyQueryStringsInOriginRequestPolicy}
165
165
  # * {TooManyRealtimeLogConfigs}
166
+ # * {TooManyRemoveHeadersInResponseHeadersPolicy}
166
167
  # * {TooManyResponseHeadersPolicies}
167
168
  # * {TooManyStreamingDistributionCNAMEs}
168
169
  # * {TooManyStreamingDistributions}
@@ -2217,6 +2218,21 @@ module Aws::CloudFront
2217
2218
  end
2218
2219
  end
2219
2220
 
2221
+ class TooManyRemoveHeadersInResponseHeadersPolicy < ServiceError
2222
+
2223
+ # @param [Seahorse::Client::RequestContext] context
2224
+ # @param [String] message
2225
+ # @param [Aws::CloudFront::Types::TooManyRemoveHeadersInResponseHeadersPolicy] data
2226
+ def initialize(context, message, data = Aws::EmptyStructure.new)
2227
+ super(context, message, data)
2228
+ end
2229
+
2230
+ # @return [String]
2231
+ def message
2232
+ @message || @data[:message]
2233
+ end
2234
+ end
2235
+
2220
2236
  class TooManyResponseHeadersPolicies < ServiceError
2221
2237
 
2222
2238
  # @param [Seahorse::Client::RequestContext] context
@@ -2277,7 +2277,7 @@ module Aws::CloudFront
2277
2277
 
2278
2278
  # @!attribute [rw] response_headers_policy_config
2279
2279
  # Contains metadata about the response headers policy, and a set of
2280
- # configurations that specify the response headers.
2280
+ # configurations that specify the HTTP headers.
2281
2281
  # @return [Types::ResponseHeadersPolicyConfig]
2282
2282
  #
2283
2283
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateResponseHeadersPolicyRequest AWS API Documentation
@@ -9327,20 +9327,22 @@ module Aws::CloudFront
9327
9327
  # A response headers policy.
9328
9328
  #
9329
9329
  # A response headers policy contains information about a set of HTTP
9330
- # response headers and their values.
9330
+ # response headers.
9331
9331
  #
9332
9332
  # After you create a response headers policy, you can use its ID to
9333
9333
  # attach it to one or more cache behaviors in a CloudFront distribution.
9334
- # When it's attached to a cache behavior, CloudFront adds the headers
9335
- # in the policy to HTTP responses that it sends for requests that match
9336
- # the cache behavior.
9334
+ # When it's attached to a cache behavior, the response headers policy
9335
+ # affects the HTTP headers that CloudFront includes in HTTP responses to
9336
+ # requests that match the cache behavior. CloudFront adds or removes
9337
+ # response headers according to the configuration of the response
9338
+ # headers policy.
9337
9339
  #
9338
- # For more information, see [Adding HTTP headers to CloudFront
9339
- # responses][1] in the *Amazon CloudFront Developer Guide*.
9340
+ # For more information, see [Adding or removing HTTP headers in
9341
+ # CloudFront responses][1] in the *Amazon CloudFront Developer Guide*.
9340
9342
  #
9341
9343
  #
9342
9344
  #
9343
- # [1]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/adding-response-headers.html
9345
+ # [1]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/modifying-response-headers.html
9344
9346
  #
9345
9347
  # @!attribute [rw] id
9346
9348
  # The identifier for the response headers policy.
@@ -9353,11 +9355,6 @@ module Aws::CloudFront
9353
9355
  #
9354
9356
  # @!attribute [rw] response_headers_policy_config
9355
9357
  # A response headers policy configuration.
9356
- #
9357
- # A response headers policy contains information about a set of HTTP
9358
- # response headers and their values. CloudFront adds the headers in
9359
- # the policy to HTTP responses that it sends for requests that match a
9360
- # cache behavior that's associated with the policy.
9361
9358
  # @return [Types::ResponseHeadersPolicyConfig]
9362
9359
  #
9363
9360
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ResponseHeadersPolicy AWS API Documentation
@@ -9522,9 +9519,7 @@ module Aws::CloudFront
9522
9519
  #
9523
9520
  # A response headers policy configuration contains metadata about the
9524
9521
  # response headers policy, and configurations for sets of HTTP response
9525
- # headers and their values. CloudFront adds the headers in the policy to
9526
- # HTTP responses that it sends for requests that match a cache behavior
9527
- # associated with the policy.
9522
+ # headers.
9528
9523
  #
9529
9524
  # @!attribute [rw] comment
9530
9525
  # A comment to describe the response headers policy.
@@ -9557,6 +9552,11 @@ module Aws::CloudFront
9557
9552
  # A configuration for a set of custom HTTP response headers.
9558
9553
  # @return [Types::ResponseHeadersPolicyCustomHeadersConfig]
9559
9554
  #
9555
+ # @!attribute [rw] remove_headers_config
9556
+ # A configuration for a set of HTTP headers to remove from the HTTP
9557
+ # response.
9558
+ # @return [Types::ResponseHeadersPolicyRemoveHeadersConfig]
9559
+ #
9560
9560
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ResponseHeadersPolicyConfig AWS API Documentation
9561
9561
  #
9562
9562
  class ResponseHeadersPolicyConfig < Struct.new(
@@ -9565,7 +9565,8 @@ module Aws::CloudFront
9565
9565
  :cors_config,
9566
9566
  :security_headers_config,
9567
9567
  :server_timing_headers_config,
9568
- :custom_headers_config)
9568
+ :custom_headers_config,
9569
+ :remove_headers_config)
9569
9570
  SENSITIVE = []
9570
9571
  include Aws::Structure
9571
9572
  end
@@ -9920,6 +9921,43 @@ module Aws::CloudFront
9920
9921
  include Aws::Structure
9921
9922
  end
9922
9923
 
9924
+ # The name of an HTTP header that CloudFront removes from HTTP responses
9925
+ # to requests that match the cache behavior that this response headers
9926
+ # policy is attached to.
9927
+ #
9928
+ # @!attribute [rw] header
9929
+ # The HTTP header name.
9930
+ # @return [String]
9931
+ #
9932
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ResponseHeadersPolicyRemoveHeader AWS API Documentation
9933
+ #
9934
+ class ResponseHeadersPolicyRemoveHeader < Struct.new(
9935
+ :header)
9936
+ SENSITIVE = []
9937
+ include Aws::Structure
9938
+ end
9939
+
9940
+ # A list of HTTP header names that CloudFront removes from HTTP
9941
+ # responses to requests that match the cache behavior that this response
9942
+ # headers policy is attached to.
9943
+ #
9944
+ # @!attribute [rw] quantity
9945
+ # The number of HTTP header names in the list.
9946
+ # @return [Integer]
9947
+ #
9948
+ # @!attribute [rw] items
9949
+ # The list of HTTP header names.
9950
+ # @return [Array<Types::ResponseHeadersPolicyRemoveHeader>]
9951
+ #
9952
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ResponseHeadersPolicyRemoveHeadersConfig AWS API Documentation
9953
+ #
9954
+ class ResponseHeadersPolicyRemoveHeadersConfig < Struct.new(
9955
+ :quantity,
9956
+ :items)
9957
+ SENSITIVE = []
9958
+ include Aws::Structure
9959
+ end
9960
+
9923
9961
  # A configuration for a set of security-related HTTP response headers.
9924
9962
  # CloudFront adds these headers to HTTP responses that it sends for
9925
9963
  # requests that match a cache behavior associated with this response
@@ -11736,6 +11774,27 @@ module Aws::CloudFront
11736
11774
  include Aws::Structure
11737
11775
  end
11738
11776
 
11777
+ # The number of headers in `RemoveHeadersConfig` in the response headers
11778
+ # policy exceeds the maximum.
11779
+ #
11780
+ # For more information, see [Quotas][1] (formerly known as limits) in
11781
+ # the *Amazon CloudFront Developer Guide*.
11782
+ #
11783
+ #
11784
+ #
11785
+ # [1]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html
11786
+ #
11787
+ # @!attribute [rw] message
11788
+ # @return [String]
11789
+ #
11790
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/TooManyRemoveHeadersInResponseHeadersPolicy AWS API Documentation
11791
+ #
11792
+ class TooManyRemoveHeadersInResponseHeadersPolicy < Struct.new(
11793
+ :message)
11794
+ SENSITIVE = []
11795
+ include Aws::Structure
11796
+ end
11797
+
11739
11798
  # You have reached the maximum number of response headers policies for
11740
11799
  # this Amazon Web Services account.
11741
11800
  #
@@ -53,6 +53,6 @@ require_relative 'aws-sdk-cloudfront/customizations'
53
53
  # @!group service
54
54
  module Aws::CloudFront
55
55
 
56
- GEM_VERSION = '1.72.0'
56
+ GEM_VERSION = '1.73.0'
57
57
 
58
58
  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.72.0
4
+ version: 1.73.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-12-16 00:00:00.000000000 Z
11
+ date: 2022-12-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core