aws-sdk-cloudfront 1.75.2 → 1.77.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-cloudfront/client.rb +32 -27
- data/lib/aws-sdk-cloudfront/endpoint_parameters.rb +0 -3
- data/lib/aws-sdk-cloudfront/endpoint_provider.rb +59 -53
- data/lib/aws-sdk-cloudfront/types.rb +131 -118
- data/lib/aws-sdk-cloudfront.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b5112cb9b1ae8925379d3db3d59d4ad912703bfc6250dc224fa5cb27a8e4689
|
4
|
+
data.tar.gz: c4ad0450b70850727fa1408b0c42da8b3dff40e08c3e8fe0943896e0a920cec7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7bd3d18d1ab125b718086f1e78fd09f1a76a345bee7b865f15d214a5a471a261099e725564f899fe7dca4754775df7215a17cc5e5f53f7ab04e2d1441122bfa4
|
7
|
+
data.tar.gz: 0a9955faaf324e98d11575361a46174064173980402db7a56d9d86ac471f505a807ea7b0c96a9d2c1b09df0d2602ff6a5ec51a218f1d1f81c385537f9431c019
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.77.0 (2023-05-31)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
1.76.0 (2023-02-22)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* 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.
|
13
|
+
|
4
14
|
1.75.2 (2023-02-21)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.77.0
|
@@ -275,6 +275,11 @@ module Aws::CloudFront
|
|
275
275
|
# in the future.
|
276
276
|
#
|
277
277
|
#
|
278
|
+
# @option options [String] :sdk_ua_app_id
|
279
|
+
# A unique and opaque application ID that is appended to the
|
280
|
+
# User-Agent header as app/<sdk_ua_app_id>. It should have a
|
281
|
+
# maximum length of 50.
|
282
|
+
#
|
278
283
|
# @option options [String] :secret_access_key
|
279
284
|
#
|
280
285
|
# @option options [String] :session_token
|
@@ -669,10 +674,10 @@ module Aws::CloudFront
|
|
669
674
|
# want objects to stay in the CloudFront cache.
|
670
675
|
#
|
671
676
|
# The headers, cookies, and query strings that are included in the cache
|
672
|
-
# key are
|
673
|
-
#
|
674
|
-
#
|
675
|
-
#
|
677
|
+
# key are also included in requests that CloudFront sends to the origin.
|
678
|
+
# CloudFront sends a request when it can't find an object in its cache
|
679
|
+
# that matches the request's cache key. If you want to send values to
|
680
|
+
# the origin but *not* include them in the cache key, use
|
676
681
|
# `OriginRequestPolicy`.
|
677
682
|
#
|
678
683
|
# For more information about cache policies, see [Controlling the cache
|
@@ -2290,21 +2295,21 @@ module Aws::CloudFront
|
|
2290
2295
|
# comment: "string",
|
2291
2296
|
# name: "string", # required
|
2292
2297
|
# headers_config: { # required
|
2293
|
-
# header_behavior: "none", # required, accepts none, whitelist, allViewer, allViewerAndWhitelistCloudFront
|
2298
|
+
# header_behavior: "none", # required, accepts none, whitelist, allViewer, allViewerAndWhitelistCloudFront, allExcept
|
2294
2299
|
# headers: {
|
2295
2300
|
# quantity: 1, # required
|
2296
2301
|
# items: ["string"],
|
2297
2302
|
# },
|
2298
2303
|
# },
|
2299
2304
|
# cookies_config: { # required
|
2300
|
-
# cookie_behavior: "none", # required, accepts none, whitelist, all
|
2305
|
+
# cookie_behavior: "none", # required, accepts none, whitelist, all, allExcept
|
2301
2306
|
# cookies: {
|
2302
2307
|
# quantity: 1, # required
|
2303
2308
|
# items: ["string"],
|
2304
2309
|
# },
|
2305
2310
|
# },
|
2306
2311
|
# query_strings_config: { # required
|
2307
|
-
# query_string_behavior: "none", # required, accepts none, whitelist, all
|
2312
|
+
# query_string_behavior: "none", # required, accepts none, whitelist, all, allExcept
|
2308
2313
|
# query_strings: {
|
2309
2314
|
# quantity: 1, # required
|
2310
2315
|
# items: ["string"],
|
@@ -2319,15 +2324,15 @@ module Aws::CloudFront
|
|
2319
2324
|
# resp.origin_request_policy.last_modified_time #=> Time
|
2320
2325
|
# resp.origin_request_policy.origin_request_policy_config.comment #=> String
|
2321
2326
|
# 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"
|
2327
|
+
# resp.origin_request_policy.origin_request_policy_config.headers_config.header_behavior #=> String, one of "none", "whitelist", "allViewer", "allViewerAndWhitelistCloudFront", "allExcept"
|
2323
2328
|
# resp.origin_request_policy.origin_request_policy_config.headers_config.headers.quantity #=> Integer
|
2324
2329
|
# resp.origin_request_policy.origin_request_policy_config.headers_config.headers.items #=> Array
|
2325
2330
|
# 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"
|
2331
|
+
# resp.origin_request_policy.origin_request_policy_config.cookies_config.cookie_behavior #=> String, one of "none", "whitelist", "all", "allExcept"
|
2327
2332
|
# resp.origin_request_policy.origin_request_policy_config.cookies_config.cookies.quantity #=> Integer
|
2328
2333
|
# resp.origin_request_policy.origin_request_policy_config.cookies_config.cookies.items #=> Array
|
2329
2334
|
# 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"
|
2335
|
+
# resp.origin_request_policy.origin_request_policy_config.query_strings_config.query_string_behavior #=> String, one of "none", "whitelist", "all", "allExcept"
|
2331
2336
|
# resp.origin_request_policy.origin_request_policy_config.query_strings_config.query_strings.quantity #=> Integer
|
2332
2337
|
# resp.origin_request_policy.origin_request_policy_config.query_strings_config.query_strings.items #=> Array
|
2333
2338
|
# resp.origin_request_policy.origin_request_policy_config.query_strings_config.query_strings.items[0] #=> String
|
@@ -3280,7 +3285,7 @@ module Aws::CloudFront
|
|
3280
3285
|
# Delete a streaming distribution. To delete an RTMP distribution using
|
3281
3286
|
# the CloudFront API, perform the following steps.
|
3282
3287
|
#
|
3283
|
-
# **To delete an RTMP distribution using the CloudFront API
|
3288
|
+
# **To delete an RTMP distribution using the CloudFront API**:
|
3284
3289
|
#
|
3285
3290
|
# 1. Disable the RTMP distribution.
|
3286
3291
|
#
|
@@ -4549,15 +4554,15 @@ module Aws::CloudFront
|
|
4549
4554
|
# resp.origin_request_policy.last_modified_time #=> Time
|
4550
4555
|
# resp.origin_request_policy.origin_request_policy_config.comment #=> String
|
4551
4556
|
# 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"
|
4557
|
+
# resp.origin_request_policy.origin_request_policy_config.headers_config.header_behavior #=> String, one of "none", "whitelist", "allViewer", "allViewerAndWhitelistCloudFront", "allExcept"
|
4553
4558
|
# resp.origin_request_policy.origin_request_policy_config.headers_config.headers.quantity #=> Integer
|
4554
4559
|
# resp.origin_request_policy.origin_request_policy_config.headers_config.headers.items #=> Array
|
4555
4560
|
# 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"
|
4561
|
+
# resp.origin_request_policy.origin_request_policy_config.cookies_config.cookie_behavior #=> String, one of "none", "whitelist", "all", "allExcept"
|
4557
4562
|
# resp.origin_request_policy.origin_request_policy_config.cookies_config.cookies.quantity #=> Integer
|
4558
4563
|
# resp.origin_request_policy.origin_request_policy_config.cookies_config.cookies.items #=> Array
|
4559
4564
|
# 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"
|
4565
|
+
# resp.origin_request_policy.origin_request_policy_config.query_strings_config.query_string_behavior #=> String, one of "none", "whitelist", "all", "allExcept"
|
4561
4566
|
# resp.origin_request_policy.origin_request_policy_config.query_strings_config.query_strings.quantity #=> Integer
|
4562
4567
|
# resp.origin_request_policy.origin_request_policy_config.query_strings_config.query_strings.items #=> Array
|
4563
4568
|
# resp.origin_request_policy.origin_request_policy_config.query_strings_config.query_strings.items[0] #=> String
|
@@ -4604,15 +4609,15 @@ module Aws::CloudFront
|
|
4604
4609
|
#
|
4605
4610
|
# resp.origin_request_policy_config.comment #=> String
|
4606
4611
|
# resp.origin_request_policy_config.name #=> String
|
4607
|
-
# resp.origin_request_policy_config.headers_config.header_behavior #=> String, one of "none", "whitelist", "allViewer", "allViewerAndWhitelistCloudFront"
|
4612
|
+
# resp.origin_request_policy_config.headers_config.header_behavior #=> String, one of "none", "whitelist", "allViewer", "allViewerAndWhitelistCloudFront", "allExcept"
|
4608
4613
|
# resp.origin_request_policy_config.headers_config.headers.quantity #=> Integer
|
4609
4614
|
# resp.origin_request_policy_config.headers_config.headers.items #=> Array
|
4610
4615
|
# 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"
|
4616
|
+
# resp.origin_request_policy_config.cookies_config.cookie_behavior #=> String, one of "none", "whitelist", "all", "allExcept"
|
4612
4617
|
# resp.origin_request_policy_config.cookies_config.cookies.quantity #=> Integer
|
4613
4618
|
# resp.origin_request_policy_config.cookies_config.cookies.items #=> Array
|
4614
4619
|
# 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"
|
4620
|
+
# resp.origin_request_policy_config.query_strings_config.query_string_behavior #=> String, one of "none", "whitelist", "all", "allExcept"
|
4616
4621
|
# resp.origin_request_policy_config.query_strings_config.query_strings.quantity #=> Integer
|
4617
4622
|
# resp.origin_request_policy_config.query_strings_config.query_strings.items #=> Array
|
4618
4623
|
# resp.origin_request_policy_config.query_strings_config.query_strings.items[0] #=> String
|
@@ -6551,15 +6556,15 @@ module Aws::CloudFront
|
|
6551
6556
|
# resp.origin_request_policy_list.items[0].origin_request_policy.last_modified_time #=> Time
|
6552
6557
|
# resp.origin_request_policy_list.items[0].origin_request_policy.origin_request_policy_config.comment #=> String
|
6553
6558
|
# 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"
|
6559
|
+
# 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
6560
|
# resp.origin_request_policy_list.items[0].origin_request_policy.origin_request_policy_config.headers_config.headers.quantity #=> Integer
|
6556
6561
|
# resp.origin_request_policy_list.items[0].origin_request_policy.origin_request_policy_config.headers_config.headers.items #=> Array
|
6557
6562
|
# 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"
|
6563
|
+
# 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
6564
|
# resp.origin_request_policy_list.items[0].origin_request_policy.origin_request_policy_config.cookies_config.cookies.quantity #=> Integer
|
6560
6565
|
# resp.origin_request_policy_list.items[0].origin_request_policy.origin_request_policy_config.cookies_config.cookies.items #=> Array
|
6561
6566
|
# 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"
|
6567
|
+
# 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
6568
|
# resp.origin_request_policy_list.items[0].origin_request_policy.origin_request_policy_config.query_strings_config.query_strings.quantity #=> Integer
|
6564
6569
|
# resp.origin_request_policy_list.items[0].origin_request_policy.origin_request_policy_config.query_strings_config.query_strings.items #=> Array
|
6565
6570
|
# resp.origin_request_policy_list.items[0].origin_request_policy.origin_request_policy_config.query_strings_config.query_strings.items[0] #=> String
|
@@ -8408,21 +8413,21 @@ module Aws::CloudFront
|
|
8408
8413
|
# comment: "string",
|
8409
8414
|
# name: "string", # required
|
8410
8415
|
# headers_config: { # required
|
8411
|
-
# header_behavior: "none", # required, accepts none, whitelist, allViewer, allViewerAndWhitelistCloudFront
|
8416
|
+
# header_behavior: "none", # required, accepts none, whitelist, allViewer, allViewerAndWhitelistCloudFront, allExcept
|
8412
8417
|
# headers: {
|
8413
8418
|
# quantity: 1, # required
|
8414
8419
|
# items: ["string"],
|
8415
8420
|
# },
|
8416
8421
|
# },
|
8417
8422
|
# cookies_config: { # required
|
8418
|
-
# cookie_behavior: "none", # required, accepts none, whitelist, all
|
8423
|
+
# cookie_behavior: "none", # required, accepts none, whitelist, all, allExcept
|
8419
8424
|
# cookies: {
|
8420
8425
|
# quantity: 1, # required
|
8421
8426
|
# items: ["string"],
|
8422
8427
|
# },
|
8423
8428
|
# },
|
8424
8429
|
# query_strings_config: { # required
|
8425
|
-
# query_string_behavior: "none", # required, accepts none, whitelist, all
|
8430
|
+
# query_string_behavior: "none", # required, accepts none, whitelist, all, allExcept
|
8426
8431
|
# query_strings: {
|
8427
8432
|
# quantity: 1, # required
|
8428
8433
|
# items: ["string"],
|
@@ -8439,15 +8444,15 @@ module Aws::CloudFront
|
|
8439
8444
|
# resp.origin_request_policy.last_modified_time #=> Time
|
8440
8445
|
# resp.origin_request_policy.origin_request_policy_config.comment #=> String
|
8441
8446
|
# 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"
|
8447
|
+
# resp.origin_request_policy.origin_request_policy_config.headers_config.header_behavior #=> String, one of "none", "whitelist", "allViewer", "allViewerAndWhitelistCloudFront", "allExcept"
|
8443
8448
|
# resp.origin_request_policy.origin_request_policy_config.headers_config.headers.quantity #=> Integer
|
8444
8449
|
# resp.origin_request_policy.origin_request_policy_config.headers_config.headers.items #=> Array
|
8445
8450
|
# 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"
|
8451
|
+
# resp.origin_request_policy.origin_request_policy_config.cookies_config.cookie_behavior #=> String, one of "none", "whitelist", "all", "allExcept"
|
8447
8452
|
# resp.origin_request_policy.origin_request_policy_config.cookies_config.cookies.quantity #=> Integer
|
8448
8453
|
# resp.origin_request_policy.origin_request_policy_config.cookies_config.cookies.items #=> Array
|
8449
8454
|
# 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"
|
8455
|
+
# resp.origin_request_policy.origin_request_policy_config.query_strings_config.query_string_behavior #=> String, one of "none", "whitelist", "all", "allExcept"
|
8451
8456
|
# resp.origin_request_policy.origin_request_policy_config.query_strings_config.query_strings.quantity #=> Integer
|
8452
8457
|
# resp.origin_request_policy.origin_request_policy_config.query_strings_config.query_strings.items #=> Array
|
8453
8458
|
# resp.origin_request_policy.origin_request_policy_config.query_strings_config.query_strings.items[0] #=> String
|
@@ -8876,7 +8881,7 @@ module Aws::CloudFront
|
|
8876
8881
|
params: params,
|
8877
8882
|
config: config)
|
8878
8883
|
context[:gem_name] = 'aws-sdk-cloudfront'
|
8879
|
-
context[:gem_version] = '1.
|
8884
|
+
context[:gem_version] = '1.77.0'
|
8880
8885
|
Seahorse::Client::Request.new(handlers, context)
|
8881
8886
|
end
|
8882
8887
|
|
@@ -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
|
18
|
-
if Aws::Endpoints::Matchers.
|
19
|
-
|
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.
|
28
|
-
|
29
|
-
|
30
|
-
|
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
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
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
|
-
|
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.
|
41
|
-
if Aws::Endpoints::Matchers.boolean_equals?(
|
42
|
-
|
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
|
-
|
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}
|
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
|
-
|
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}
|
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
|
-
|
68
|
-
|
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
|
-
|
74
|
-
|
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
|
-
|
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
|
@@ -362,14 +362,14 @@ module Aws::CloudFront
|
|
362
362
|
# specified by `TargetOriginId` when a request matches the path
|
363
363
|
# pattern in `PathPattern`. You can specify the following options:
|
364
364
|
#
|
365
|
-
# * `allow-all
|
365
|
+
# * `allow-all`: Viewers can use HTTP or HTTPS.
|
366
366
|
#
|
367
|
-
# * `redirect-to-https
|
367
|
+
# * `redirect-to-https`: If a viewer submits an HTTP request,
|
368
368
|
# CloudFront returns an HTTP status code of 301 (Moved Permanently)
|
369
369
|
# to the viewer along with the HTTPS URL. The viewer then resubmits
|
370
370
|
# the request using the new URL.
|
371
371
|
#
|
372
|
-
# * `https-only
|
372
|
+
# * `https-only`: If a viewer sends an HTTP request, CloudFront
|
373
373
|
# returns an HTTP status code of 403 (Forbidden).
|
374
374
|
#
|
375
375
|
# For more information about requiring the HTTPS protocol, see
|
@@ -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
|
653
|
-
#
|
654
|
-
#
|
655
|
-
#
|
656
|
-
#
|
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
|
709
|
-
#
|
710
|
-
#
|
711
|
-
#
|
712
|
-
#
|
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
|
776
|
-
#
|
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
|
794
|
-
#
|
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
|
799
|
-
#
|
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
|
-
# * `
|
813
|
-
#
|
814
|
-
#
|
815
|
-
#
|
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
|
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
|
837
|
-
#
|
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
|
842
|
-
#
|
838
|
+
# and in requests that CloudFront sends to the origin. Valid values
|
839
|
+
# are:
|
843
840
|
#
|
844
|
-
# * `none` – HTTP headers are
|
845
|
-
#
|
846
|
-
#
|
847
|
-
#
|
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` –
|
851
|
-
# type are included in the cache key and
|
852
|
-
#
|
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
|
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
|
922
|
-
#
|
916
|
+
# included in the cache key and in requests that CloudFront sends to
|
917
|
+
# the origin. Valid values are:
|
923
918
|
#
|
924
|
-
# * `none` –
|
925
|
-
# cache key
|
926
|
-
#
|
927
|
-
#
|
928
|
-
#
|
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` –
|
931
|
-
# in the `QueryStringNames` type are included in the cache
|
932
|
-
#
|
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
|
936
|
-
#
|
937
|
-
#
|
938
|
-
#
|
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
|
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
|
949
|
-
#
|
950
|
-
# `
|
951
|
-
#
|
952
|
-
#
|
953
|
-
#
|
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
|
@@ -2532,7 +2525,7 @@ module Aws::CloudFront
|
|
2532
2525
|
# @return [Integer]
|
2533
2526
|
#
|
2534
2527
|
# @!attribute [rw] items
|
2535
|
-
# **Optional
|
2528
|
+
# **Optional**: A list that contains one `OriginCustomHeader` element
|
2536
2529
|
# for each custom header that you want CloudFront to forward to the
|
2537
2530
|
# origin. If Quantity is `0`, omit `Items`.
|
2538
2531
|
# @return [Array<Types::OriginCustomHeader>]
|
@@ -2685,14 +2678,14 @@ module Aws::CloudFront
|
|
2685
2678
|
# specified by `TargetOriginId` when a request matches the path
|
2686
2679
|
# pattern in `PathPattern`. You can specify the following options:
|
2687
2680
|
#
|
2688
|
-
# * `allow-all
|
2681
|
+
# * `allow-all`: Viewers can use HTTP or HTTPS.
|
2689
2682
|
#
|
2690
|
-
# * `redirect-to-https
|
2683
|
+
# * `redirect-to-https`: If a viewer submits an HTTP request,
|
2691
2684
|
# CloudFront returns an HTTP status code of 301 (Moved Permanently)
|
2692
2685
|
# to the viewer along with the HTTPS URL. The viewer then resubmits
|
2693
2686
|
# the request using the new URL.
|
2694
2687
|
#
|
2695
|
-
# * `https-only
|
2688
|
+
# * `https-only`: If a viewer sends an HTTP request, CloudFront
|
2696
2689
|
# returns an HTTP status code of 403 (Forbidden).
|
2697
2690
|
#
|
2698
2691
|
# For more information about requiring the HTTPS protocol, see
|
@@ -4739,13 +4732,13 @@ module Aws::CloudFront
|
|
4739
4732
|
# The method that you want to use to restrict distribution of your
|
4740
4733
|
# content by country:
|
4741
4734
|
#
|
4742
|
-
# * `none
|
4735
|
+
# * `none`: No geo restriction is enabled, meaning access to content
|
4743
4736
|
# is not restricted by client geo location.
|
4744
4737
|
#
|
4745
|
-
# * `blacklist
|
4738
|
+
# * `blacklist`: The `Location` elements specify the countries in
|
4746
4739
|
# which you don't want CloudFront to distribute your content.
|
4747
4740
|
#
|
4748
|
-
# * `whitelist
|
4741
|
+
# * `whitelist`: The `Location` elements specify the countries in
|
4749
4742
|
# which you want CloudFront to distribute your content.
|
4750
4743
|
# @return [String]
|
4751
4744
|
#
|
@@ -6492,21 +6485,21 @@ module Aws::CloudFront
|
|
6492
6485
|
# Specifies the event type that triggers a Lambda@Edge function
|
6493
6486
|
# invocation. You can specify the following values:
|
6494
6487
|
#
|
6495
|
-
# * `viewer-request
|
6496
|
-
#
|
6488
|
+
# * `viewer-request`: The function executes when CloudFront receives a
|
6489
|
+
# request from a viewer and before it checks to see whether the
|
6497
6490
|
# requested object is in the edge cache.
|
6498
6491
|
#
|
6499
|
-
# * `origin-request
|
6500
|
-
#
|
6501
|
-
# the edge cache, the function doesn't execute.
|
6502
|
-
#
|
6503
|
-
# * `origin-response`\: The function executes after CloudFront
|
6504
|
-
# receives a response from the origin and before it caches the
|
6505
|
-
# object in the response. When the requested object is in the edge
|
6492
|
+
# * `origin-request`: The function executes only when CloudFront sends
|
6493
|
+
# a request to your origin. When the requested object is in the edge
|
6506
6494
|
# cache, the function doesn't execute.
|
6507
6495
|
#
|
6508
|
-
# * `
|
6509
|
-
#
|
6496
|
+
# * `origin-response`: The function executes after CloudFront receives
|
6497
|
+
# a response from the origin and before it caches the object in the
|
6498
|
+
# response. When the requested object is in the edge cache, the
|
6499
|
+
# function doesn't execute.
|
6500
|
+
#
|
6501
|
+
# * `viewer-response`: The function executes before CloudFront returns
|
6502
|
+
# the requested object to the viewer. The function executes
|
6510
6503
|
# regardless of whether the object was already in the edge cache.
|
6511
6504
|
#
|
6512
6505
|
# If the origin returns an HTTP status code other than HTTP 200
|
@@ -6554,7 +6547,7 @@ module Aws::CloudFront
|
|
6554
6547
|
# @return [Integer]
|
6555
6548
|
#
|
6556
6549
|
# @!attribute [rw] items
|
6557
|
-
# **Optional
|
6550
|
+
# **Optional**: A complex type that contains
|
6558
6551
|
# `LambdaFunctionAssociation` items for this cache behavior. If
|
6559
6552
|
# `Quantity` is `0`, you can omit `Items`.
|
6560
6553
|
# @return [Array<Types::LambdaFunctionAssociation>]
|
@@ -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` –
|
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` –
|
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
|
8440
|
-
# sends to the origin. Even when this field
|
8441
|
-
# headers that are listed in a `CachePolicy`
|
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` –
|
8445
|
-
# type are included in requests that CloudFront sends to
|
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` –
|
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` –
|
8531
|
-
# in the `QueryStringNames` type are included in requests
|
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
|
8540
|
-
#
|
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
|
8670
|
-
#
|
8671
|
-
#
|
8672
|
-
#
|
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
|
8756
|
-
#
|
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
|
-
#
|
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
|
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
|
data/lib/aws-sdk-cloudfront.rb
CHANGED
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.
|
4
|
+
version: 1.77.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-
|
11
|
+
date: 2023-05-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.174.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.174.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|