aws-sdk-cloudfront 1.72.0 → 1.74.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: 745faa16b5149bf78620ba6e9a602017d740b3e318609aa90902a2baa589a8d9
4
+ data.tar.gz: 2a98c7d6d258926030e1d371fdd8785d5711cac9c770bb260fe352596f17ee10
5
5
  SHA512:
6
- metadata.gz: 77bff94356689ed89d1b3af99b78f46d732b9f364c2ce3fbd9bccc7a7f6f98d983662d307be7e9a22b13afeffee12a8a71397a2a682788429a2bc00d7fbd5cbf
7
- data.tar.gz: 61148a9265c4a0e3c241f11d0f01e457d31dc5338bec61fbdb8c71ca2fc7a8e9a81e2e696138c7602ce861397befb18b095d81f16b177ddb5d7413f6d6be28c1
6
+ metadata.gz: 0e28b8490646de9a5b68f92bb23d283a7497b2080b1b9ea4be51a4d2872fa9f7cead78a958b03e217abbf77b71ea9a97e9cc6c38298dee0dc86e21805ebac4b4
7
+ data.tar.gz: d90dac52003cb88cdff23c61568e1912fac1b4f2d4eb652c8008876038cb2a088fd32903a32536edd9d19a754efc2b63fd44b0b6aa9f100af96bfd4ba72ba023
data/CHANGELOG.md CHANGED
@@ -1,6 +1,18 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.74.0 (2023-01-18)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ * Issue - Replace runtime endpoint resolution approach with generated ruby code.
10
+
11
+ 1.73.0 (2022-12-30)
12
+ ------------------
13
+
14
+ * Feature - Extend response headers policy to support removing headers from viewer responses
15
+
4
16
  1.72.0 (2022-12-16)
5
17
  ------------------
6
18
 
@@ -450,4 +462,4 @@ Unreleased Changes
450
462
  1.0.0.rc1 (2016-12-05)
451
463
  ------------------
452
464
 
453
- * Feature - Initial preview release of the `aws-sdk-cloudfront` gem.
465
+ * Feature - Initial preview release of the `aws-sdk-cloudfront` gem.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.72.0
1
+ 1.74.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.74.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|
@@ -9,216 +9,91 @@
9
9
 
10
10
  module Aws::CloudFront
11
11
  class EndpointProvider
12
- def initialize(rule_set = nil)
13
- @@rule_set ||= begin
14
- endpoint_rules = Aws::Json.load(Base64.decode64(RULES))
15
- Aws::Endpoints::RuleSet.new(
16
- version: endpoint_rules['version'],
17
- service_id: endpoint_rules['serviceId'],
18
- parameters: endpoint_rules['parameters'],
19
- rules: endpoint_rules['rules']
20
- )
12
+ def resolve_endpoint(parameters)
13
+ region = parameters.region
14
+ use_dual_stack = parameters.use_dual_stack
15
+ use_fips = parameters.use_fips
16
+ endpoint = parameters.endpoint
17
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
18
+ if Aws::Endpoints::Matchers.set?(endpoint)
19
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
20
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
21
+ end
22
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
23
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
24
+ end
25
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
26
+ end
27
+ if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws")
28
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
29
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
30
+ return Aws::Endpoints::Endpoint.new(url: "https://cloudfront-fips.#{region}.api.aws", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingRegion"=>"us-east-1", "signingName"=>"cloudfront"}]})
31
+ end
32
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
33
+ end
34
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
35
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
36
+ return Aws::Endpoints::Endpoint.new(url: "https://cloudfront-fips.#{region}.amazonaws.com", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingRegion"=>"us-east-1", "signingName"=>"cloudfront"}]})
37
+ end
38
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
39
+ end
40
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
41
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
42
+ return Aws::Endpoints::Endpoint.new(url: "https://cloudfront.#{region}.api.aws", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingRegion"=>"us-east-1", "signingName"=>"cloudfront"}]})
43
+ end
44
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
45
+ end
46
+ return Aws::Endpoints::Endpoint.new(url: "https://cloudfront.amazonaws.com", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingRegion"=>"us-east-1", "signingName"=>"cloudfront"}]})
47
+ end
48
+ if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-cn")
49
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
50
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
51
+ return Aws::Endpoints::Endpoint.new(url: "https://cloudfront-fips.#{region}.api.amazonwebservices.com.cn", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingRegion"=>"cn-northwest-1", "signingName"=>"cloudfront"}]})
52
+ end
53
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
54
+ end
55
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
56
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
57
+ return Aws::Endpoints::Endpoint.new(url: "https://cloudfront-fips.#{region}.amazonaws.com.cn", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingRegion"=>"cn-northwest-1", "signingName"=>"cloudfront"}]})
58
+ end
59
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
60
+ end
61
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
62
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
63
+ return Aws::Endpoints::Endpoint.new(url: "https://cloudfront.#{region}.api.amazonwebservices.com.cn", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingRegion"=>"cn-northwest-1", "signingName"=>"cloudfront"}]})
64
+ end
65
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
66
+ end
67
+ return Aws::Endpoints::Endpoint.new(url: "https://cloudfront.cn-northwest-1.amazonaws.com.cn", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingRegion"=>"cn-northwest-1", "signingName"=>"cloudfront"}]})
68
+ end
69
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
70
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
71
+ return Aws::Endpoints::Endpoint.new(url: "https://cloudfront-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
72
+ end
73
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
74
+ end
75
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
76
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
77
+ return Aws::Endpoints::Endpoint.new(url: "https://cloudfront-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
78
+ end
79
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
80
+ end
81
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
82
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
83
+ return Aws::Endpoints::Endpoint.new(url: "https://cloudfront.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
84
+ end
85
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
86
+ end
87
+ if Aws::Endpoints::Matchers.string_equals?(region, "aws-global")
88
+ return Aws::Endpoints::Endpoint.new(url: "https://cloudfront.amazonaws.com", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingRegion"=>"us-east-1", "signingName"=>"cloudfront"}]})
89
+ end
90
+ if Aws::Endpoints::Matchers.string_equals?(region, "aws-cn-global")
91
+ return Aws::Endpoints::Endpoint.new(url: "https://cloudfront.cn-northwest-1.amazonaws.com.cn", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingRegion"=>"cn-northwest-1", "signingName"=>"cloudfront"}]})
92
+ end
93
+ return Aws::Endpoints::Endpoint.new(url: "https://cloudfront.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
21
94
  end
22
- @provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
23
- end
95
+ raise ArgumentError, 'No endpoint could be resolved'
24
96
 
25
- def resolve_endpoint(parameters)
26
- @provider.resolve_endpoint(parameters)
27
97
  end
28
-
29
- # @api private
30
- RULES = <<-JSON
31
- eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
32
- bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOnRydWUsImRvY3VtZW50
33
- YXRpb24iOiJUaGUgQVdTIHJlZ2lvbiB1c2VkIHRvIGRpc3BhdGNoIHRoZSBy
34
- ZXF1ZXN0LiIsInR5cGUiOiJTdHJpbmcifSwiVXNlRHVhbFN0YWNrI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29uZGl0aW9ucyI6W10sImVuZHBvaW50
218
- Ijp7InVybCI6Imh0dHBzOi8vY2xvdWRmcm9udC57UmVnaW9ufS57UGFydGl0
219
- aW9uUmVzdWx0I2Ruc1N1ZmZpeH0iLCJwcm9wZXJ0aWVzIjp7fSwiaGVhZGVy
220
- cyI6e319LCJ0eXBlIjoiZW5kcG9pbnQifV19XX1dfQ==
221
-
222
- JSON
223
98
  end
224
99
  end
@@ -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.74.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.74.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: 2023-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core