aws-sdk-cloudfront 1.75.1 → 1.76.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: 857ba3303e0025b34a3a3009b8aa41bc5ab0af5f2ab12bee8c3c0ad13d8d4013
4
- data.tar.gz: f68bdf3d7edff1e1789e3252988ee9de65bb608dc3d8843756716158799dd3b7
3
+ metadata.gz: 1b5c2579ef05ec67c46c81123da58d622a313925cfc6358b0f403536b72d1e55
4
+ data.tar.gz: 11f868e0146c23378d2133965f19701b77d2eea259b17f9362ee54bd2bf07680
5
5
  SHA512:
6
- metadata.gz: 1c7d69492ca25a2061353fd714a3768abba5001368b6f481ff1b09e9659d0c35029a536d5156ce777e4780e8a4d3684f99e382d7a0ef18636447dd1830945830
7
- data.tar.gz: 414a3b8e12d0140f082cea76d4e20a94bb17da3be86ac26bf5ad5a4a3bb4573b8d6ee9ccea8e1d029c885c0105bf60fbac959efd351d578cd30d9c26078f3cd4
6
+ metadata.gz: 8c4e74c1d7c4350579ec9ce68c32893ccafd049bd371125997f333a149133ffc956c3fd0fc9473e461f018bce8ce04d76efde34011bb7c42ff8e42bb6ba27be2
7
+ data.tar.gz: df74190916b3a5f32061a509df4ee13b405939704d746df53ec89b03f02fa6ae1cbc9f29dc298cecf284fd825efd318f894191e9e674ad29fe005b44f256136d
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.76.0 (2023-02-22)
5
+ ------------------
6
+
7
+ * Feature - CloudFront now supports block lists in origin request policies so that you can forward all headers, cookies, or query string from viewer requests to the origin *except* for those specified in the block list.
8
+
9
+ 1.75.2 (2023-02-21)
10
+ ------------------
11
+
12
+ * Issue - Improve performance of URL signing
13
+
4
14
  1.75.1 (2023-02-15)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.75.1
1
+ 1.76.0
@@ -669,10 +669,10 @@ module Aws::CloudFront
669
669
  # want objects to stay in the CloudFront cache.
670
670
  #
671
671
  # The headers, cookies, and query strings that are included in the cache
672
- # key are automatically included in requests that CloudFront sends to
673
- # the origin. CloudFront sends a request when it can't find an object
674
- # in its cache that matches the request's cache key. If you want to
675
- # send values to the origin but *not* include them in the cache key, use
672
+ # key are also included in requests that CloudFront sends to the origin.
673
+ # CloudFront sends a request when it can't find an object in its cache
674
+ # that matches the request's cache key. If you want to send values to
675
+ # the origin but *not* include them in the cache key, use
676
676
  # `OriginRequestPolicy`.
677
677
  #
678
678
  # For more information about cache policies, see [Controlling the cache
@@ -2290,21 +2290,21 @@ module Aws::CloudFront
2290
2290
  # comment: "string",
2291
2291
  # name: "string", # required
2292
2292
  # headers_config: { # required
2293
- # header_behavior: "none", # required, accepts none, whitelist, allViewer, allViewerAndWhitelistCloudFront
2293
+ # header_behavior: "none", # required, accepts none, whitelist, allViewer, allViewerAndWhitelistCloudFront, allExcept
2294
2294
  # headers: {
2295
2295
  # quantity: 1, # required
2296
2296
  # items: ["string"],
2297
2297
  # },
2298
2298
  # },
2299
2299
  # cookies_config: { # required
2300
- # cookie_behavior: "none", # required, accepts none, whitelist, all
2300
+ # cookie_behavior: "none", # required, accepts none, whitelist, all, allExcept
2301
2301
  # cookies: {
2302
2302
  # quantity: 1, # required
2303
2303
  # items: ["string"],
2304
2304
  # },
2305
2305
  # },
2306
2306
  # query_strings_config: { # required
2307
- # query_string_behavior: "none", # required, accepts none, whitelist, all
2307
+ # query_string_behavior: "none", # required, accepts none, whitelist, all, allExcept
2308
2308
  # query_strings: {
2309
2309
  # quantity: 1, # required
2310
2310
  # items: ["string"],
@@ -2319,15 +2319,15 @@ module Aws::CloudFront
2319
2319
  # resp.origin_request_policy.last_modified_time #=> Time
2320
2320
  # resp.origin_request_policy.origin_request_policy_config.comment #=> String
2321
2321
  # resp.origin_request_policy.origin_request_policy_config.name #=> String
2322
- # resp.origin_request_policy.origin_request_policy_config.headers_config.header_behavior #=> String, one of "none", "whitelist", "allViewer", "allViewerAndWhitelistCloudFront"
2322
+ # resp.origin_request_policy.origin_request_policy_config.headers_config.header_behavior #=> String, one of "none", "whitelist", "allViewer", "allViewerAndWhitelistCloudFront", "allExcept"
2323
2323
  # resp.origin_request_policy.origin_request_policy_config.headers_config.headers.quantity #=> Integer
2324
2324
  # resp.origin_request_policy.origin_request_policy_config.headers_config.headers.items #=> Array
2325
2325
  # resp.origin_request_policy.origin_request_policy_config.headers_config.headers.items[0] #=> String
2326
- # resp.origin_request_policy.origin_request_policy_config.cookies_config.cookie_behavior #=> String, one of "none", "whitelist", "all"
2326
+ # resp.origin_request_policy.origin_request_policy_config.cookies_config.cookie_behavior #=> String, one of "none", "whitelist", "all", "allExcept"
2327
2327
  # resp.origin_request_policy.origin_request_policy_config.cookies_config.cookies.quantity #=> Integer
2328
2328
  # resp.origin_request_policy.origin_request_policy_config.cookies_config.cookies.items #=> Array
2329
2329
  # resp.origin_request_policy.origin_request_policy_config.cookies_config.cookies.items[0] #=> String
2330
- # resp.origin_request_policy.origin_request_policy_config.query_strings_config.query_string_behavior #=> String, one of "none", "whitelist", "all"
2330
+ # resp.origin_request_policy.origin_request_policy_config.query_strings_config.query_string_behavior #=> String, one of "none", "whitelist", "all", "allExcept"
2331
2331
  # resp.origin_request_policy.origin_request_policy_config.query_strings_config.query_strings.quantity #=> Integer
2332
2332
  # resp.origin_request_policy.origin_request_policy_config.query_strings_config.query_strings.items #=> Array
2333
2333
  # resp.origin_request_policy.origin_request_policy_config.query_strings_config.query_strings.items[0] #=> String
@@ -4549,15 +4549,15 @@ module Aws::CloudFront
4549
4549
  # resp.origin_request_policy.last_modified_time #=> Time
4550
4550
  # resp.origin_request_policy.origin_request_policy_config.comment #=> String
4551
4551
  # resp.origin_request_policy.origin_request_policy_config.name #=> String
4552
- # resp.origin_request_policy.origin_request_policy_config.headers_config.header_behavior #=> String, one of "none", "whitelist", "allViewer", "allViewerAndWhitelistCloudFront"
4552
+ # resp.origin_request_policy.origin_request_policy_config.headers_config.header_behavior #=> String, one of "none", "whitelist", "allViewer", "allViewerAndWhitelistCloudFront", "allExcept"
4553
4553
  # resp.origin_request_policy.origin_request_policy_config.headers_config.headers.quantity #=> Integer
4554
4554
  # resp.origin_request_policy.origin_request_policy_config.headers_config.headers.items #=> Array
4555
4555
  # resp.origin_request_policy.origin_request_policy_config.headers_config.headers.items[0] #=> String
4556
- # resp.origin_request_policy.origin_request_policy_config.cookies_config.cookie_behavior #=> String, one of "none", "whitelist", "all"
4556
+ # resp.origin_request_policy.origin_request_policy_config.cookies_config.cookie_behavior #=> String, one of "none", "whitelist", "all", "allExcept"
4557
4557
  # resp.origin_request_policy.origin_request_policy_config.cookies_config.cookies.quantity #=> Integer
4558
4558
  # resp.origin_request_policy.origin_request_policy_config.cookies_config.cookies.items #=> Array
4559
4559
  # resp.origin_request_policy.origin_request_policy_config.cookies_config.cookies.items[0] #=> String
4560
- # resp.origin_request_policy.origin_request_policy_config.query_strings_config.query_string_behavior #=> String, one of "none", "whitelist", "all"
4560
+ # resp.origin_request_policy.origin_request_policy_config.query_strings_config.query_string_behavior #=> String, one of "none", "whitelist", "all", "allExcept"
4561
4561
  # resp.origin_request_policy.origin_request_policy_config.query_strings_config.query_strings.quantity #=> Integer
4562
4562
  # resp.origin_request_policy.origin_request_policy_config.query_strings_config.query_strings.items #=> Array
4563
4563
  # resp.origin_request_policy.origin_request_policy_config.query_strings_config.query_strings.items[0] #=> String
@@ -4604,15 +4604,15 @@ module Aws::CloudFront
4604
4604
  #
4605
4605
  # resp.origin_request_policy_config.comment #=> String
4606
4606
  # resp.origin_request_policy_config.name #=> String
4607
- # resp.origin_request_policy_config.headers_config.header_behavior #=> String, one of "none", "whitelist", "allViewer", "allViewerAndWhitelistCloudFront"
4607
+ # resp.origin_request_policy_config.headers_config.header_behavior #=> String, one of "none", "whitelist", "allViewer", "allViewerAndWhitelistCloudFront", "allExcept"
4608
4608
  # resp.origin_request_policy_config.headers_config.headers.quantity #=> Integer
4609
4609
  # resp.origin_request_policy_config.headers_config.headers.items #=> Array
4610
4610
  # resp.origin_request_policy_config.headers_config.headers.items[0] #=> String
4611
- # resp.origin_request_policy_config.cookies_config.cookie_behavior #=> String, one of "none", "whitelist", "all"
4611
+ # resp.origin_request_policy_config.cookies_config.cookie_behavior #=> String, one of "none", "whitelist", "all", "allExcept"
4612
4612
  # resp.origin_request_policy_config.cookies_config.cookies.quantity #=> Integer
4613
4613
  # resp.origin_request_policy_config.cookies_config.cookies.items #=> Array
4614
4614
  # resp.origin_request_policy_config.cookies_config.cookies.items[0] #=> String
4615
- # resp.origin_request_policy_config.query_strings_config.query_string_behavior #=> String, one of "none", "whitelist", "all"
4615
+ # resp.origin_request_policy_config.query_strings_config.query_string_behavior #=> String, one of "none", "whitelist", "all", "allExcept"
4616
4616
  # resp.origin_request_policy_config.query_strings_config.query_strings.quantity #=> Integer
4617
4617
  # resp.origin_request_policy_config.query_strings_config.query_strings.items #=> Array
4618
4618
  # resp.origin_request_policy_config.query_strings_config.query_strings.items[0] #=> String
@@ -6551,15 +6551,15 @@ module Aws::CloudFront
6551
6551
  # resp.origin_request_policy_list.items[0].origin_request_policy.last_modified_time #=> Time
6552
6552
  # resp.origin_request_policy_list.items[0].origin_request_policy.origin_request_policy_config.comment #=> String
6553
6553
  # resp.origin_request_policy_list.items[0].origin_request_policy.origin_request_policy_config.name #=> String
6554
- # resp.origin_request_policy_list.items[0].origin_request_policy.origin_request_policy_config.headers_config.header_behavior #=> String, one of "none", "whitelist", "allViewer", "allViewerAndWhitelistCloudFront"
6554
+ # resp.origin_request_policy_list.items[0].origin_request_policy.origin_request_policy_config.headers_config.header_behavior #=> String, one of "none", "whitelist", "allViewer", "allViewerAndWhitelistCloudFront", "allExcept"
6555
6555
  # resp.origin_request_policy_list.items[0].origin_request_policy.origin_request_policy_config.headers_config.headers.quantity #=> Integer
6556
6556
  # resp.origin_request_policy_list.items[0].origin_request_policy.origin_request_policy_config.headers_config.headers.items #=> Array
6557
6557
  # resp.origin_request_policy_list.items[0].origin_request_policy.origin_request_policy_config.headers_config.headers.items[0] #=> String
6558
- # resp.origin_request_policy_list.items[0].origin_request_policy.origin_request_policy_config.cookies_config.cookie_behavior #=> String, one of "none", "whitelist", "all"
6558
+ # resp.origin_request_policy_list.items[0].origin_request_policy.origin_request_policy_config.cookies_config.cookie_behavior #=> String, one of "none", "whitelist", "all", "allExcept"
6559
6559
  # resp.origin_request_policy_list.items[0].origin_request_policy.origin_request_policy_config.cookies_config.cookies.quantity #=> Integer
6560
6560
  # resp.origin_request_policy_list.items[0].origin_request_policy.origin_request_policy_config.cookies_config.cookies.items #=> Array
6561
6561
  # resp.origin_request_policy_list.items[0].origin_request_policy.origin_request_policy_config.cookies_config.cookies.items[0] #=> String
6562
- # resp.origin_request_policy_list.items[0].origin_request_policy.origin_request_policy_config.query_strings_config.query_string_behavior #=> String, one of "none", "whitelist", "all"
6562
+ # resp.origin_request_policy_list.items[0].origin_request_policy.origin_request_policy_config.query_strings_config.query_string_behavior #=> String, one of "none", "whitelist", "all", "allExcept"
6563
6563
  # resp.origin_request_policy_list.items[0].origin_request_policy.origin_request_policy_config.query_strings_config.query_strings.quantity #=> Integer
6564
6564
  # resp.origin_request_policy_list.items[0].origin_request_policy.origin_request_policy_config.query_strings_config.query_strings.items #=> Array
6565
6565
  # resp.origin_request_policy_list.items[0].origin_request_policy.origin_request_policy_config.query_strings_config.query_strings.items[0] #=> String
@@ -8408,21 +8408,21 @@ module Aws::CloudFront
8408
8408
  # comment: "string",
8409
8409
  # name: "string", # required
8410
8410
  # headers_config: { # required
8411
- # header_behavior: "none", # required, accepts none, whitelist, allViewer, allViewerAndWhitelistCloudFront
8411
+ # header_behavior: "none", # required, accepts none, whitelist, allViewer, allViewerAndWhitelistCloudFront, allExcept
8412
8412
  # headers: {
8413
8413
  # quantity: 1, # required
8414
8414
  # items: ["string"],
8415
8415
  # },
8416
8416
  # },
8417
8417
  # cookies_config: { # required
8418
- # cookie_behavior: "none", # required, accepts none, whitelist, all
8418
+ # cookie_behavior: "none", # required, accepts none, whitelist, all, allExcept
8419
8419
  # cookies: {
8420
8420
  # quantity: 1, # required
8421
8421
  # items: ["string"],
8422
8422
  # },
8423
8423
  # },
8424
8424
  # query_strings_config: { # required
8425
- # query_string_behavior: "none", # required, accepts none, whitelist, all
8425
+ # query_string_behavior: "none", # required, accepts none, whitelist, all, allExcept
8426
8426
  # query_strings: {
8427
8427
  # quantity: 1, # required
8428
8428
  # items: ["string"],
@@ -8439,15 +8439,15 @@ module Aws::CloudFront
8439
8439
  # resp.origin_request_policy.last_modified_time #=> Time
8440
8440
  # resp.origin_request_policy.origin_request_policy_config.comment #=> String
8441
8441
  # resp.origin_request_policy.origin_request_policy_config.name #=> String
8442
- # resp.origin_request_policy.origin_request_policy_config.headers_config.header_behavior #=> String, one of "none", "whitelist", "allViewer", "allViewerAndWhitelistCloudFront"
8442
+ # resp.origin_request_policy.origin_request_policy_config.headers_config.header_behavior #=> String, one of "none", "whitelist", "allViewer", "allViewerAndWhitelistCloudFront", "allExcept"
8443
8443
  # resp.origin_request_policy.origin_request_policy_config.headers_config.headers.quantity #=> Integer
8444
8444
  # resp.origin_request_policy.origin_request_policy_config.headers_config.headers.items #=> Array
8445
8445
  # resp.origin_request_policy.origin_request_policy_config.headers_config.headers.items[0] #=> String
8446
- # resp.origin_request_policy.origin_request_policy_config.cookies_config.cookie_behavior #=> String, one of "none", "whitelist", "all"
8446
+ # resp.origin_request_policy.origin_request_policy_config.cookies_config.cookie_behavior #=> String, one of "none", "whitelist", "all", "allExcept"
8447
8447
  # resp.origin_request_policy.origin_request_policy_config.cookies_config.cookies.quantity #=> Integer
8448
8448
  # resp.origin_request_policy.origin_request_policy_config.cookies_config.cookies.items #=> Array
8449
8449
  # resp.origin_request_policy.origin_request_policy_config.cookies_config.cookies.items[0] #=> String
8450
- # resp.origin_request_policy.origin_request_policy_config.query_strings_config.query_string_behavior #=> String, one of "none", "whitelist", "all"
8450
+ # resp.origin_request_policy.origin_request_policy_config.query_strings_config.query_string_behavior #=> String, one of "none", "whitelist", "all", "allExcept"
8451
8451
  # resp.origin_request_policy.origin_request_policy_config.query_strings_config.query_strings.quantity #=> Integer
8452
8452
  # resp.origin_request_policy.origin_request_policy_config.query_strings_config.query_strings.items #=> Array
8453
8453
  # resp.origin_request_policy.origin_request_policy_config.query_strings_config.query_strings.items[0] #=> String
@@ -8876,7 +8876,7 @@ module Aws::CloudFront
8876
8876
  params: params,
8877
8877
  config: config)
8878
8878
  context[:gem_name] = 'aws-sdk-cloudfront'
8879
- context[:gem_version] = '1.75.1'
8879
+ context[:gem_version] = '1.76.0'
8880
8880
  Seahorse::Client::Request.new(handlers, context)
8881
8881
  end
8882
8882
 
@@ -50,9 +50,6 @@ module Aws::CloudFront
50
50
 
51
51
  def initialize(options = {})
52
52
  self[:region] = options[:region]
53
- if self[:region].nil?
54
- raise ArgumentError, "Missing required EndpointParameter: :region"
55
- end
56
53
  self[:use_dual_stack] = options[:use_dual_stack]
57
54
  self[:use_dual_stack] = false if self[:use_dual_stack].nil?
58
55
  if self[:use_dual_stack].nil?
@@ -14,84 +14,90 @@ module Aws::CloudFront
14
14
  use_dual_stack = parameters.use_dual_stack
15
15
  use_fips = parameters.use_fips
16
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: {})
17
+ if Aws::Endpoints::Matchers.set?(endpoint)
18
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
19
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
26
20
  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"}]})
21
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
22
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
23
+ end
24
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
25
+ end
26
+ if Aws::Endpoints::Matchers.set?(region)
27
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
28
+ if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws")
29
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
30
+ 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"))
31
+ return Aws::Endpoints::Endpoint.new(url: "https://cloudfront-fips.#{region}.api.aws", headers: {}, properties: {})
32
+ end
33
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
31
34
  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"}]})
35
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
36
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
37
+ return Aws::Endpoints::Endpoint.new(url: "https://cloudfront-fips.amazonaws.com", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"cloudfront", "signingRegion"=>"us-east-1"}]})
38
+ end
39
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
37
40
  end
38
- raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
41
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
42
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
43
+ return Aws::Endpoints::Endpoint.new(url: "https://cloudfront.#{region}.api.aws", headers: {}, properties: {})
44
+ end
45
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
46
+ end
47
+ return Aws::Endpoints::Endpoint.new(url: "https://cloudfront.amazonaws.com", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"cloudfront", "signingRegion"=>"us-east-1"}]})
39
48
  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"}]})
49
+ if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-cn")
50
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
51
+ 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"))
52
+ return Aws::Endpoints::Endpoint.new(url: "https://cloudfront-fips.#{region}.api.amazonwebservices.com.cn", headers: {}, properties: {})
53
+ end
54
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
43
55
  end
44
- raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
56
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
57
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
58
+ return Aws::Endpoints::Endpoint.new(url: "https://cloudfront-fips.#{region}.amazonaws.com.cn", headers: {}, properties: {})
59
+ end
60
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
61
+ end
62
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
63
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
64
+ return Aws::Endpoints::Endpoint.new(url: "https://cloudfront.#{region}.api.amazonwebservices.com.cn", headers: {}, properties: {})
65
+ end
66
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
67
+ end
68
+ return Aws::Endpoints::Endpoint.new(url: "https://cloudfront.cn-northwest-1.amazonaws.com.cn", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"cloudfront", "signingRegion"=>"cn-northwest-1"}]})
45
69
  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
70
  if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
50
71
  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"}]})
72
+ return Aws::Endpoints::Endpoint.new(url: "https://cloudfront-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
52
73
  end
53
74
  raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
54
75
  end
55
76
  if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
56
77
  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"}]})
78
+ if Aws::Endpoints::Matchers.string_equals?(region, "aws-global")
79
+ return Aws::Endpoints::Endpoint.new(url: "https://cloudfront-fips.amazonaws.com", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"cloudfront", "signingRegion"=>"us-east-1"}]})
80
+ end
81
+ return Aws::Endpoints::Endpoint.new(url: "https://cloudfront-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
58
82
  end
59
83
  raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
60
84
  end
61
85
  if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
62
86
  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"}]})
87
+ return Aws::Endpoints::Endpoint.new(url: "https://cloudfront.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
64
88
  end
65
89
  raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
66
90
  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: {})
91
+ if Aws::Endpoints::Matchers.string_equals?(region, "aws-global")
92
+ return Aws::Endpoints::Endpoint.new(url: "https://cloudfront.amazonaws.com", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"cloudfront", "signingRegion"=>"us-east-1"}]})
72
93
  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: {})
94
+ if Aws::Endpoints::Matchers.string_equals?(region, "aws-cn-global")
95
+ return Aws::Endpoints::Endpoint.new(url: "https://cloudfront.cn-northwest-1.amazonaws.com.cn", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"cloudfront", "signingRegion"=>"cn-northwest-1"}]})
78
96
  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"}]})
97
+ return Aws::Endpoints::Endpoint.new(url: "https://cloudfront.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
92
98
  end
93
- return Aws::Endpoints::Endpoint.new(url: "https://cloudfront.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
94
99
  end
100
+ raise ArgumentError, "Invalid Configuration: Missing Region"
95
101
  raise ArgumentError, 'No endpoint could be resolved'
96
102
 
97
103
  end
@@ -15,7 +15,8 @@ module Aws
15
15
  # @option options [String] :private_key_path
16
16
  def initialize(options = {})
17
17
  @key_pair_id = key_pair_id(options)
18
- @private_key = private_key(options)
18
+ @cipher = OpenSSL::Digest::SHA1.new
19
+ @private_key = OpenSSL::PKey::RSA.new(private_key(options))
19
20
  end
20
21
 
21
22
  private
@@ -97,8 +98,7 @@ module Aws
97
98
 
98
99
  # create the signature string with policy signed
99
100
  def sign_policy(policy)
100
- key = OpenSSL::PKey::RSA.new(@private_key)
101
- key.sign(OpenSSL::Digest::SHA1.new, policy)
101
+ @private_key.sign(@cipher, policy)
102
102
  end
103
103
 
104
104
  # create canned policy that used for signing
@@ -649,11 +649,11 @@ module Aws::CloudFront
649
649
  # want objects to stay in the CloudFront cache.
650
650
  #
651
651
  # The headers, cookies, and query strings that are included in the cache
652
- # key are automatically included in requests that CloudFront sends to
653
- # the origin. CloudFront sends a request when it can't find a valid
654
- # object in its cache that matches the request's cache key. If you want
655
- # to send values to the origin but *not* include them in the cache key,
656
- # use `OriginRequestPolicy`.
652
+ # key are also included in requests that CloudFront sends to the origin.
653
+ # CloudFront sends a request when it can't find a valid object in its
654
+ # cache that matches the request's cache key. If you want to send
655
+ # values to the origin but *not* include them in the cache key, use
656
+ # `OriginRequestPolicy`.
657
657
  #
658
658
  # @!attribute [rw] id
659
659
  # The unique identifier for the cache policy.
@@ -705,11 +705,11 @@ module Aws::CloudFront
705
705
  # want objects to stay in the CloudFront cache.
706
706
  #
707
707
  # The headers, cookies, and query strings that are included in the cache
708
- # key are automatically included in requests that CloudFront sends to
709
- # the origin. CloudFront sends a request when it can't find a valid
710
- # object in its cache that matches the request's cache key. If you want
711
- # to send values to the origin but *not* include them in the cache key,
712
- # use `OriginRequestPolicy`.
708
+ # key are also included in requests that CloudFront sends to the origin.
709
+ # CloudFront sends a request when it can't find a valid object in its
710
+ # cache that matches the request's cache key. If you want to send
711
+ # values to the origin but *not* include them in the cache key, use
712
+ # `OriginRequestPolicy`.
713
713
  #
714
714
  # @!attribute [rw] comment
715
715
  # A comment to describe the cache policy. The comment cannot be longer
@@ -772,8 +772,8 @@ module Aws::CloudFront
772
772
  #
773
773
  # @!attribute [rw] parameters_in_cache_key_and_forwarded_to_origin
774
774
  # The HTTP headers, cookies, and URL query strings to include in the
775
- # cache key. The values included in the cache key are automatically
776
- # included in requests that CloudFront sends to the origin.
775
+ # cache key. The values included in the cache key are also included in
776
+ # requests that CloudFront sends to the origin.
777
777
  # @return [Types::ParametersInCacheKeyAndForwardedToOrigin]
778
778
  #
779
779
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CachePolicyConfig AWS API Documentation
@@ -790,33 +790,30 @@ module Aws::CloudFront
790
790
  end
791
791
 
792
792
  # An object that determines whether any cookies in viewer requests (and
793
- # if so, which cookies) are included in the cache key and automatically
794
- # included in requests that CloudFront sends to the origin.
793
+ # if so, which cookies) are included in the cache key and in requests
794
+ # that CloudFront sends to the origin.
795
795
  #
796
796
  # @!attribute [rw] cookie_behavior
797
797
  # Determines whether any cookies in viewer requests are included in
798
- # the cache key and automatically included in requests that CloudFront
799
- # sends to the origin. Valid values are:
800
- #
801
- # * `none` – Cookies in viewer requests are not included in the cache
802
- # key and are not automatically included in requests that CloudFront
803
- # sends to the origin. Even when this field is set to `none`, any
804
- # cookies that are listed in an `OriginRequestPolicy` *are* included
805
- # in origin requests.
806
- #
807
- # * `whitelist` – The cookies in viewer requests that are listed in
808
- # the `CookieNames` type are included in the cache key and
809
- # automatically included in requests that CloudFront sends to the
810
- # origin.
798
+ # the cache key and in requests that CloudFront sends to the origin.
799
+ # Valid values are:
811
800
  #
812
- # * `allExcept` – All cookies in viewer requests that are <i>
813
- # <b>not</b> </i> listed in the `CookieNames` type are included in
814
- # the cache key and automatically included in requests that
815
- # CloudFront sends to the origin.
801
+ # * `none` – No cookies in viewer requests are included in the cache
802
+ # key or in requests that CloudFront sends to the origin. Even when
803
+ # this field is set to `none`, any cookies that are listed in an
804
+ # `OriginRequestPolicy` *are* included in origin requests.
805
+ #
806
+ # * `whitelist` – Only the cookies in viewer requests that are listed
807
+ # in the `CookieNames` type are included in the cache key and in
808
+ # requests that CloudFront sends to the origin.
809
+ #
810
+ # * `allExcept` – All cookies in viewer requests are included in the
811
+ # cache key and in requests that CloudFront sends to the origin, <i>
812
+ # <b>except</b> </i> for those that are listed in the `CookieNames`
813
+ # type, which are not included.
816
814
  #
817
815
  # * `all` – All cookies in viewer requests are included in the cache
818
- # key and are automatically included in requests that CloudFront
819
- # sends to the origin.
816
+ # key and in requests that CloudFront sends to the origin.
820
817
  # @return [String]
821
818
  #
822
819
  # @!attribute [rw] cookies
@@ -833,23 +830,22 @@ module Aws::CloudFront
833
830
  end
834
831
 
835
832
  # An object that determines whether any HTTP headers (and if so, which
836
- # headers) are included in the cache key and automatically included in
837
- # requests that CloudFront sends to the origin.
833
+ # headers) are included in the cache key and in requests that CloudFront
834
+ # sends to the origin.
838
835
  #
839
836
  # @!attribute [rw] header_behavior
840
837
  # Determines whether any HTTP headers are included in the cache key
841
- # and automatically included in requests that CloudFront sends to the
842
- # origin. Valid values are:
838
+ # and in requests that CloudFront sends to the origin. Valid values
839
+ # are:
843
840
  #
844
- # * `none` – HTTP headers are not included in the cache key and are
845
- # not automatically included in requests that CloudFront sends to
846
- # the origin. Even when this field is set to `none`, any headers
847
- # that are listed in an `OriginRequestPolicy` *are* included in
848
- # origin requests.
841
+ # * `none` – No HTTP headers are included in the cache key or in
842
+ # requests that CloudFront sends to the origin. Even when this field
843
+ # is set to `none`, any headers that are listed in an
844
+ # `OriginRequestPolicy` *are* included in origin requests.
849
845
  #
850
- # * `whitelist` – The HTTP headers that are listed in the `Headers`
851
- # type are included in the cache key and are automatically included
852
- # in requests that CloudFront sends to the origin.
846
+ # * `whitelist` – Only the HTTP headers that are listed in the
847
+ # `Headers` type are included in the cache key and in requests that
848
+ # CloudFront sends to the origin.
853
849
  # @return [String]
854
850
  #
855
851
  # @!attribute [rw] headers
@@ -913,44 +909,41 @@ module Aws::CloudFront
913
909
 
914
910
  # An object that determines whether any URL query strings in viewer
915
911
  # requests (and if so, which query strings) are included in the cache
916
- # key and automatically included in requests that CloudFront sends to
917
- # the origin.
912
+ # key and in requests that CloudFront sends to the origin.
918
913
  #
919
914
  # @!attribute [rw] query_string_behavior
920
915
  # Determines whether any URL query strings in viewer requests are
921
- # included in the cache key and automatically included in requests
922
- # that CloudFront sends to the origin. Valid values are:
916
+ # included in the cache key and in requests that CloudFront sends to
917
+ # the origin. Valid values are:
923
918
  #
924
- # * `none` – Query strings in viewer requests are not included in the
925
- # cache key and are not automatically included in requests that
926
- # CloudFront sends to the origin. Even when this field is set to
927
- # `none`, any query strings that are listed in an
928
- # `OriginRequestPolicy` *are* included in origin requests.
919
+ # * `none` – No query strings in viewer requests are included in the
920
+ # cache key or in requests that CloudFront sends to the origin. Even
921
+ # when this field is set to `none`, any query strings that are
922
+ # listed in an `OriginRequestPolicy` *are* included in origin
923
+ # requests.
929
924
  #
930
- # * `whitelist` – The query strings in viewer requests that are listed
931
- # in the `QueryStringNames` type are included in the cache key and
932
- # automatically included in requests that CloudFront sends to the
933
- # origin.
925
+ # * `whitelist` – Only the query strings in viewer requests that are
926
+ # listed in the `QueryStringNames` type are included in the cache
927
+ # key and in requests that CloudFront sends to the origin.
934
928
  #
935
- # * `allExcept` – All query strings in viewer requests that are <i>
936
- # <b>not</b> </i> listed in the `QueryStringNames` type are included
937
- # in the cache key and automatically included in requests that
938
- # CloudFront sends to the origin.
929
+ # * `allExcept` – All query strings in viewer requests are included in
930
+ # the cache key and in requests that CloudFront sends to the origin,
931
+ # <i> <b>except</b> </i> those that are listed in the
932
+ # `QueryStringNames` type, which are not included.
939
933
  #
940
934
  # * `all` – All query strings in viewer requests are included in the
941
- # cache key and are automatically included in requests that
942
- # CloudFront sends to the origin.
935
+ # cache key and in requests that CloudFront sends to the origin.
943
936
  # @return [String]
944
937
  #
945
938
  # @!attribute [rw] query_strings
946
939
  # Contains the specific query strings in viewer requests that either
947
940
  # <i> <b>are</b> </i> or <i> <b>are not</b> </i> included in the cache
948
- # key and automatically included in requests that CloudFront sends to
949
- # the origin. The behavior depends on whether the
950
- # `QueryStringBehavior` field in the `CachePolicyQueryStringsConfig`
951
- # type is set to `whitelist` (the listed query strings <i> <b>are</b>
952
- # </i> included) or `allExcept` (the listed query strings <i> <b>are
953
- # not</b> </i> included, but all other query strings are).
941
+ # key and in requests that CloudFront sends to the origin. The
942
+ # behavior depends on whether the `QueryStringBehavior` field in the
943
+ # `CachePolicyQueryStringsConfig` type is set to `whitelist` (the
944
+ # listed query strings <i> <b>are</b> </i> included) or `allExcept`
945
+ # (the listed query strings <i> <b>are not</b> </i> included, but all
946
+ # other query strings are).
954
947
  # @return [Types::QueryStringNames]
955
948
  #
956
949
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CachePolicyQueryStringsConfig AWS API Documentation
@@ -8403,17 +8396,22 @@ module Aws::CloudFront
8403
8396
  # Determines whether cookies in viewer requests are included in
8404
8397
  # requests that CloudFront sends to the origin. Valid values are:
8405
8398
  #
8406
- # * `none` – Cookies in viewer requests are not included in requests
8399
+ # * `none` – No cookies in viewer requests are included in requests
8407
8400
  # that CloudFront sends to the origin. Even when this field is set
8408
8401
  # to `none`, any cookies that are listed in a `CachePolicy` *are*
8409
8402
  # included in origin requests.
8410
8403
  #
8411
- # * `whitelist` – The cookies in viewer requests that are listed in
8412
- # the `CookieNames` type are included in requests that CloudFront
8404
+ # * `whitelist` – Only the cookies in viewer requests that are listed
8405
+ # in the `CookieNames` type are included in requests that CloudFront
8413
8406
  # sends to the origin.
8414
8407
  #
8415
8408
  # * `all` – All cookies in viewer requests are included in requests
8416
8409
  # that CloudFront sends to the origin.
8410
+ #
8411
+ # * `allExcept` – All cookies in viewer requests are included in
8412
+ # requests that CloudFront sends to the origin, <i> <b>except</b>
8413
+ # </i> for those listed in the `CookieNames` type, which are not
8414
+ # included.
8417
8415
  # @return [String]
8418
8416
  #
8419
8417
  # @!attribute [rw] cookies
@@ -8436,13 +8434,14 @@ module Aws::CloudFront
8436
8434
  # Determines whether any HTTP headers are included in requests that
8437
8435
  # CloudFront sends to the origin. Valid values are:
8438
8436
  #
8439
- # * `none` – HTTP headers are not included in requests that CloudFront
8440
- # sends to the origin. Even when this field is set to `none`, any
8441
- # headers that are listed in a `CachePolicy` *are* included in
8442
- # origin requests.
8437
+ # * `none` – No HTTP headers in viewer requests are included in
8438
+ # requests that CloudFront sends to the origin. Even when this field
8439
+ # is set to `none`, any headers that are listed in a `CachePolicy`
8440
+ # *are* included in origin requests.
8443
8441
  #
8444
- # * `whitelist` – The HTTP headers that are listed in the `Headers`
8445
- # type are included in requests that CloudFront sends to the origin.
8442
+ # * `whitelist` – Only the HTTP headers that are listed in the
8443
+ # `Headers` type are included in requests that CloudFront sends to
8444
+ # the origin.
8446
8445
  #
8447
8446
  # * `allViewer` – All HTTP headers in viewer requests are included in
8448
8447
  # requests that CloudFront sends to the origin.
@@ -8451,6 +8450,11 @@ module Aws::CloudFront
8451
8450
  # requests and the additional CloudFront headers that are listed in
8452
8451
  # the `Headers` type are included in requests that CloudFront sends
8453
8452
  # to the origin. The additional headers are added by CloudFront.
8453
+ #
8454
+ # * `allExcept` – All HTTP headers in viewer requests are included in
8455
+ # requests that CloudFront sends to the origin, <i> <b>except</b>
8456
+ # </i> for those listed in the `Headers` type, which are not
8457
+ # included.
8454
8458
  # @return [String]
8455
8459
  #
8456
8460
  # @!attribute [rw] headers
@@ -8522,22 +8526,33 @@ module Aws::CloudFront
8522
8526
  # included in requests that CloudFront sends to the origin. Valid
8523
8527
  # values are:
8524
8528
  #
8525
- # * `none` – Query strings in viewer requests are not included in
8529
+ # * `none` – No query strings in viewer requests are included in
8526
8530
  # requests that CloudFront sends to the origin. Even when this field
8527
8531
  # is set to `none`, any query strings that are listed in a
8528
8532
  # `CachePolicy` *are* included in origin requests.
8529
8533
  #
8530
- # * `whitelist` – The query strings in viewer requests that are listed
8531
- # in the `QueryStringNames` type are included in requests that
8532
- # CloudFront sends to the origin.
8534
+ # * `whitelist` – Only the query strings in viewer requests that are
8535
+ # listed in the `QueryStringNames` type are included in requests
8536
+ # that CloudFront sends to the origin.
8533
8537
  #
8534
8538
  # * `all` – All query strings in viewer requests are included in
8535
8539
  # requests that CloudFront sends to the origin.
8540
+ #
8541
+ # * `allExcept` – All query strings in viewer requests are included in
8542
+ # requests that CloudFront sends to the origin, <i> <b>except</b>
8543
+ # </i> for those listed in the `QueryStringNames` type, which are
8544
+ # not included.
8536
8545
  # @return [String]
8537
8546
  #
8538
8547
  # @!attribute [rw] query_strings
8539
- # Contains a list of the query strings in viewer requests that are
8540
- # included in requests that CloudFront sends to the origin.
8548
+ # Contains the specific query strings in viewer requests that either
8549
+ # <i> <b>are</b> </i> or <i> <b>are not</b> </i> included in requests
8550
+ # that CloudFront sends to the origin. The behavior depends on whether
8551
+ # the `QueryStringBehavior` field in the
8552
+ # `OriginRequestPolicyQueryStringsConfig` type is set to `whitelist`
8553
+ # (the listed query strings <i> <b>are</b> </i> included) or
8554
+ # `allExcept` (the listed query strings <i> <b>are not</b> </i>
8555
+ # included, but all other query strings are).
8541
8556
  # @return [Types::QueryStringNames]
8542
8557
  #
8543
8558
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/OriginRequestPolicyQueryStringsConfig AWS API Documentation
@@ -8666,10 +8681,10 @@ module Aws::CloudFront
8666
8681
  # cache that it can return to the viewer.
8667
8682
  #
8668
8683
  # The headers, cookies, and query strings that are included in the cache
8669
- # key are automatically included in requests that CloudFront sends to
8670
- # the origin. CloudFront sends a request when it can't find an object
8671
- # in its cache that matches the request's cache key. If you want to
8672
- # send values to the origin but *not* include them in the cache key, use
8684
+ # key are also included in requests that CloudFront sends to the origin.
8685
+ # CloudFront sends a request when it can't find an object in its cache
8686
+ # that matches the request's cache key. If you want to send values to
8687
+ # the origin but *not* include them in the cache key, use
8673
8688
  # `OriginRequestPolicy`.
8674
8689
  #
8675
8690
  # @!attribute [rw] enable_accept_encoding_gzip
@@ -8752,22 +8767,20 @@ module Aws::CloudFront
8752
8767
  #
8753
8768
  # @!attribute [rw] headers_config
8754
8769
  # An object that determines whether any HTTP headers (and if so, which
8755
- # headers) are included in the cache key and automatically included in
8756
- # requests that CloudFront sends to the origin.
8770
+ # headers) are included in the cache key and in requests that
8771
+ # CloudFront sends to the origin.
8757
8772
  # @return [Types::CachePolicyHeadersConfig]
8758
8773
  #
8759
8774
  # @!attribute [rw] cookies_config
8760
8775
  # An object that determines whether any cookies in viewer requests
8761
- # (and if so, which cookies) are included in the cache key and
8762
- # automatically included in requests that CloudFront sends to the
8763
- # origin.
8776
+ # (and if so, which cookies) are included in the cache key and in
8777
+ # requests that CloudFront sends to the origin.
8764
8778
  # @return [Types::CachePolicyCookiesConfig]
8765
8779
  #
8766
8780
  # @!attribute [rw] query_strings_config
8767
8781
  # An object that determines whether any URL query strings in viewer
8768
8782
  # requests (and if so, which query strings) are included in the cache
8769
- # key and automatically included in requests that CloudFront sends to
8770
- # the origin.
8783
+ # key and in requests that CloudFront sends to the origin.
8771
8784
  # @return [Types::CachePolicyQueryStringsConfig]
8772
8785
  #
8773
8786
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ParametersInCacheKeyAndForwardedToOrigin AWS API Documentation
@@ -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.75.1'
56
+ GEM_VERSION = '1.76.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.75.1
4
+ version: 1.76.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: 2023-02-15 00:00:00.000000000 Z
11
+ date: 2023-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core