aws-sdk-cloudfront 1.81.0 → 1.82.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-cloudfront/client.rb +54 -10
- data/lib/aws-sdk-cloudfront/client_api.rb +6 -0
- data/lib/aws-sdk-cloudfront/endpoint_provider.rb +5 -47
- data/lib/aws-sdk-cloudfront/types.rb +17 -9
- data/lib/aws-sdk-cloudfront.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca3641df43214ec418ea1ab604016654da6ca02bd6fcc4afb1c6cf26be3b65ef
|
4
|
+
data.tar.gz: 139dcc4c78385d6fc146b37728c224f3b96b90b72a0b6fcbce05ec75eb0eaf27
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 441e695d126d8a81a220e703b0bd8fa8b1106e9f5bc075b70dd2f0598fd25007b87bbb16c45d2bae92d84d668fbd002dd53285249594d5aca6a5211f57915c46
|
7
|
+
data.tar.gz: d9ec0dce7750cb8e438ba92de4979820effe429f10115ae336d4b99f0284c0ba042c0e0643c1c72a8aa06cc46d288522b429882418f1e97b4ba005b4e33624f5
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.82.0
|
@@ -442,6 +442,20 @@ module Aws::CloudFront
|
|
442
442
|
# configuration. Then you can use `CreateContinuousDeploymentPolicy` to
|
443
443
|
# incrementally move traffic to the staging distribution.
|
444
444
|
#
|
445
|
+
# This API operation requires the following IAM permissions:
|
446
|
+
#
|
447
|
+
# * [GetDistribution][1]
|
448
|
+
#
|
449
|
+
# * [CreateDistribution][2]
|
450
|
+
#
|
451
|
+
# * [CopyDistribution][3]
|
452
|
+
#
|
453
|
+
#
|
454
|
+
#
|
455
|
+
# [1]: https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_GetDistribution.html
|
456
|
+
# [2]: https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_CreateDistribution.html
|
457
|
+
# [3]: https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_CopyDistribution.html
|
458
|
+
#
|
445
459
|
# @option params [required, String] :primary_distribution_id
|
446
460
|
# The identifier of the primary distribution whose configuration you are
|
447
461
|
# copying. To get a distribution ID, use `ListDistributions`.
|
@@ -461,6 +475,14 @@ module Aws::CloudFront
|
|
461
475
|
# helps to prevent CloudFront from creating a duplicate resource if you
|
462
476
|
# accidentally resubmit an identical request.
|
463
477
|
#
|
478
|
+
# @option params [Boolean] :enabled
|
479
|
+
# A Boolean flag to specify the state of the staging distribution when
|
480
|
+
# it's created. When you set this value to `True`, the staging
|
481
|
+
# distribution is enabled. When you set this value to `False`, the
|
482
|
+
# staging distribution is disabled.
|
483
|
+
#
|
484
|
+
# If you omit this field, the default value is `True`.
|
485
|
+
#
|
464
486
|
# @return [Types::CopyDistributionResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
465
487
|
#
|
466
488
|
# * {Types::CopyDistributionResult#distribution #distribution} => Types::Distribution
|
@@ -474,6 +496,7 @@ module Aws::CloudFront
|
|
474
496
|
# staging: false,
|
475
497
|
# if_match: "string",
|
476
498
|
# caller_reference: "string", # required
|
499
|
+
# enabled: false,
|
477
500
|
# })
|
478
501
|
#
|
479
502
|
# @example Response structure
|
@@ -1373,7 +1396,17 @@ module Aws::CloudFront
|
|
1373
1396
|
req.send_request(options)
|
1374
1397
|
end
|
1375
1398
|
|
1376
|
-
# Create a new distribution with tags.
|
1399
|
+
# Create a new distribution with tags. This API operation requires the
|
1400
|
+
# following IAM permissions:
|
1401
|
+
#
|
1402
|
+
# * [CreateDistribution][1]
|
1403
|
+
#
|
1404
|
+
# * [TagResource][2]
|
1405
|
+
#
|
1406
|
+
#
|
1407
|
+
#
|
1408
|
+
# [1]: https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_CreateDistribution.html
|
1409
|
+
# [2]: https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_TagResource.html
|
1377
1410
|
#
|
1378
1411
|
# @option params [required, Types::DistributionConfigWithTags] :distribution_config_with_tags
|
1379
1412
|
# The distribution's configuration information.
|
@@ -2030,7 +2063,7 @@ module Aws::CloudFront
|
|
2030
2063
|
# name: "FunctionName", # required
|
2031
2064
|
# function_config: { # required
|
2032
2065
|
# comment: "string", # required
|
2033
|
-
# runtime: "cloudfront-js-1.0", # required, accepts cloudfront-js-1.0
|
2066
|
+
# runtime: "cloudfront-js-1.0", # required, accepts cloudfront-js-1.0, cloudfront-js-2.0
|
2034
2067
|
# },
|
2035
2068
|
# function_code: "data", # required
|
2036
2069
|
# })
|
@@ -2040,7 +2073,7 @@ module Aws::CloudFront
|
|
2040
2073
|
# resp.function_summary.name #=> String
|
2041
2074
|
# resp.function_summary.status #=> String
|
2042
2075
|
# resp.function_summary.function_config.comment #=> String
|
2043
|
-
# resp.function_summary.function_config.runtime #=> String, one of "cloudfront-js-1.0"
|
2076
|
+
# resp.function_summary.function_config.runtime #=> String, one of "cloudfront-js-1.0", "cloudfront-js-2.0"
|
2044
2077
|
# resp.function_summary.function_metadata.function_arn #=> String
|
2045
2078
|
# resp.function_summary.function_metadata.stage #=> String, one of "DEVELOPMENT", "LIVE"
|
2046
2079
|
# resp.function_summary.function_metadata.created_time #=> Time
|
@@ -3398,7 +3431,7 @@ module Aws::CloudFront
|
|
3398
3431
|
# resp.function_summary.name #=> String
|
3399
3432
|
# resp.function_summary.status #=> String
|
3400
3433
|
# resp.function_summary.function_config.comment #=> String
|
3401
|
-
# resp.function_summary.function_config.runtime #=> String, one of "cloudfront-js-1.0"
|
3434
|
+
# resp.function_summary.function_config.runtime #=> String, one of "cloudfront-js-1.0", "cloudfront-js-2.0"
|
3402
3435
|
# resp.function_summary.function_metadata.function_arn #=> String
|
3403
3436
|
# resp.function_summary.function_metadata.stage #=> String, one of "DEVELOPMENT", "LIVE"
|
3404
3437
|
# resp.function_summary.function_metadata.created_time #=> Time
|
@@ -6337,7 +6370,7 @@ module Aws::CloudFront
|
|
6337
6370
|
# resp.function_list.items[0].name #=> String
|
6338
6371
|
# resp.function_list.items[0].status #=> String
|
6339
6372
|
# resp.function_list.items[0].function_config.comment #=> String
|
6340
|
-
# resp.function_list.items[0].function_config.runtime #=> String, one of "cloudfront-js-1.0"
|
6373
|
+
# resp.function_list.items[0].function_config.runtime #=> String, one of "cloudfront-js-1.0", "cloudfront-js-2.0"
|
6341
6374
|
# resp.function_list.items[0].function_metadata.function_arn #=> String
|
6342
6375
|
# resp.function_list.items[0].function_metadata.stage #=> String, one of "DEVELOPMENT", "LIVE"
|
6343
6376
|
# resp.function_list.items[0].function_metadata.created_time #=> Time
|
@@ -6924,7 +6957,7 @@ module Aws::CloudFront
|
|
6924
6957
|
# resp.function_summary.name #=> String
|
6925
6958
|
# resp.function_summary.status #=> String
|
6926
6959
|
# resp.function_summary.function_config.comment #=> String
|
6927
|
-
# resp.function_summary.function_config.runtime #=> String, one of "cloudfront-js-1.0"
|
6960
|
+
# resp.function_summary.function_config.runtime #=> String, one of "cloudfront-js-1.0", "cloudfront-js-2.0"
|
6928
6961
|
# resp.function_summary.function_metadata.function_arn #=> String
|
6929
6962
|
# resp.function_summary.function_metadata.stage #=> String, one of "DEVELOPMENT", "LIVE"
|
6930
6963
|
# resp.function_summary.function_metadata.created_time #=> Time
|
@@ -7029,7 +7062,7 @@ module Aws::CloudFront
|
|
7029
7062
|
# resp.test_result.function_summary.name #=> String
|
7030
7063
|
# resp.test_result.function_summary.status #=> String
|
7031
7064
|
# resp.test_result.function_summary.function_config.comment #=> String
|
7032
|
-
# resp.test_result.function_summary.function_config.runtime #=> String, one of "cloudfront-js-1.0"
|
7065
|
+
# resp.test_result.function_summary.function_config.runtime #=> String, one of "cloudfront-js-1.0", "cloudfront-js-2.0"
|
7033
7066
|
# resp.test_result.function_summary.function_metadata.function_arn #=> String
|
7034
7067
|
# resp.test_result.function_summary.function_metadata.stage #=> String, one of "DEVELOPMENT", "LIVE"
|
7035
7068
|
# resp.test_result.function_summary.function_metadata.created_time #=> Time
|
@@ -7835,6 +7868,17 @@ module Aws::CloudFront
|
|
7835
7868
|
# will disable the continuous deployment policy and move your domain's
|
7836
7869
|
# traffic back to the primary distribution.
|
7837
7870
|
#
|
7871
|
+
# This API operation requires the following IAM permissions:
|
7872
|
+
#
|
7873
|
+
# * [GetDistribution][1]
|
7874
|
+
#
|
7875
|
+
# * [UpdateDistribution][2]
|
7876
|
+
#
|
7877
|
+
#
|
7878
|
+
#
|
7879
|
+
# [1]: https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_GetDistribution.html
|
7880
|
+
# [2]: https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_UpdateDistribution.html
|
7881
|
+
#
|
7838
7882
|
# @option params [required, String] :id
|
7839
7883
|
# The identifier of the primary distribution to which you are copying a
|
7840
7884
|
# staging distribution's configuration.
|
@@ -8247,7 +8291,7 @@ module Aws::CloudFront
|
|
8247
8291
|
# if_match: "string", # required
|
8248
8292
|
# function_config: { # required
|
8249
8293
|
# comment: "string", # required
|
8250
|
-
# runtime: "cloudfront-js-1.0", # required, accepts cloudfront-js-1.0
|
8294
|
+
# runtime: "cloudfront-js-1.0", # required, accepts cloudfront-js-1.0, cloudfront-js-2.0
|
8251
8295
|
# },
|
8252
8296
|
# function_code: "data", # required
|
8253
8297
|
# })
|
@@ -8257,7 +8301,7 @@ module Aws::CloudFront
|
|
8257
8301
|
# resp.function_summary.name #=> String
|
8258
8302
|
# resp.function_summary.status #=> String
|
8259
8303
|
# resp.function_summary.function_config.comment #=> String
|
8260
|
-
# resp.function_summary.function_config.runtime #=> String, one of "cloudfront-js-1.0"
|
8304
|
+
# resp.function_summary.function_config.runtime #=> String, one of "cloudfront-js-1.0", "cloudfront-js-2.0"
|
8261
8305
|
# resp.function_summary.function_metadata.function_arn #=> String
|
8262
8306
|
# resp.function_summary.function_metadata.stage #=> String, one of "DEVELOPMENT", "LIVE"
|
8263
8307
|
# resp.function_summary.function_metadata.created_time #=> Time
|
@@ -8896,7 +8940,7 @@ module Aws::CloudFront
|
|
8896
8940
|
params: params,
|
8897
8941
|
config: config)
|
8898
8942
|
context[:gem_name] = 'aws-sdk-cloudfront'
|
8899
|
-
context[:gem_version] = '1.
|
8943
|
+
context[:gem_version] = '1.82.0'
|
8900
8944
|
Seahorse::Client::Request.new(handlers, context)
|
8901
8945
|
end
|
8902
8946
|
|
@@ -855,6 +855,7 @@ module Aws::CloudFront
|
|
855
855
|
CopyDistributionRequest.add_member(:staging, Shapes::ShapeRef.new(shape: boolean, location: "header", location_name: "Staging"))
|
856
856
|
CopyDistributionRequest.add_member(:if_match, Shapes::ShapeRef.new(shape: string, location: "header", location_name: "If-Match"))
|
857
857
|
CopyDistributionRequest.add_member(:caller_reference, Shapes::ShapeRef.new(shape: string, required: true, location_name: "CallerReference"))
|
858
|
+
CopyDistributionRequest.add_member(:enabled, Shapes::ShapeRef.new(shape: boolean, location_name: "Enabled"))
|
858
859
|
CopyDistributionRequest.struct_class = Types::CopyDistributionRequest
|
859
860
|
|
860
861
|
CopyDistributionResult.add_member(:distribution, Shapes::ShapeRef.new(shape: Distribution, location_name: "Distribution"))
|
@@ -3125,6 +3126,7 @@ module Aws::CloudFront
|
|
3125
3126
|
o.errors << Shapes::ShapeRef.new(shape: TooManyDistributionsAssociatedToFieldLevelEncryptionConfig)
|
3126
3127
|
o.errors << Shapes::ShapeRef.new(shape: NoSuchCachePolicy)
|
3127
3128
|
o.errors << Shapes::ShapeRef.new(shape: TooManyDistributionsAssociatedToCachePolicy)
|
3129
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyDistributionsAssociatedToOriginAccessControl)
|
3128
3130
|
o.errors << Shapes::ShapeRef.new(shape: NoSuchResponseHeadersPolicy)
|
3129
3131
|
o.errors << Shapes::ShapeRef.new(shape: TooManyDistributionsAssociatedToResponseHeadersPolicy)
|
3130
3132
|
o.errors << Shapes::ShapeRef.new(shape: NoSuchOriginRequestPolicy)
|
@@ -3263,6 +3265,7 @@ module Aws::CloudFront
|
|
3263
3265
|
o.errors << Shapes::ShapeRef.new(shape: InvalidOrigin)
|
3264
3266
|
o.errors << Shapes::ShapeRef.new(shape: InvalidOriginAccessIdentity)
|
3265
3267
|
o.errors << Shapes::ShapeRef.new(shape: InvalidOriginAccessControl)
|
3268
|
+
o.errors << Shapes::ShapeRef.new(shape: IllegalOriginAccessConfiguration)
|
3266
3269
|
o.errors << Shapes::ShapeRef.new(shape: AccessDenied)
|
3267
3270
|
o.errors << Shapes::ShapeRef.new(shape: TooManyTrustedSigners)
|
3268
3271
|
o.errors << Shapes::ShapeRef.new(shape: TrustedSignerDoesNotExist)
|
@@ -3310,6 +3313,7 @@ module Aws::CloudFront
|
|
3310
3313
|
o.errors << Shapes::ShapeRef.new(shape: TooManyDistributionsAssociatedToFieldLevelEncryptionConfig)
|
3311
3314
|
o.errors << Shapes::ShapeRef.new(shape: NoSuchCachePolicy)
|
3312
3315
|
o.errors << Shapes::ShapeRef.new(shape: TooManyDistributionsAssociatedToCachePolicy)
|
3316
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyDistributionsAssociatedToOriginAccessControl)
|
3313
3317
|
o.errors << Shapes::ShapeRef.new(shape: NoSuchResponseHeadersPolicy)
|
3314
3318
|
o.errors << Shapes::ShapeRef.new(shape: TooManyDistributionsAssociatedToResponseHeadersPolicy)
|
3315
3319
|
o.errors << Shapes::ShapeRef.new(shape: NoSuchOriginRequestPolicy)
|
@@ -4452,6 +4456,7 @@ module Aws::CloudFront
|
|
4452
4456
|
o.errors << Shapes::ShapeRef.new(shape: TooManyDistributionsAssociatedToFieldLevelEncryptionConfig)
|
4453
4457
|
o.errors << Shapes::ShapeRef.new(shape: NoSuchCachePolicy)
|
4454
4458
|
o.errors << Shapes::ShapeRef.new(shape: TooManyDistributionsAssociatedToCachePolicy)
|
4459
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyDistributionsAssociatedToOriginAccessControl)
|
4455
4460
|
o.errors << Shapes::ShapeRef.new(shape: NoSuchResponseHeadersPolicy)
|
4456
4461
|
o.errors << Shapes::ShapeRef.new(shape: TooManyDistributionsAssociatedToResponseHeadersPolicy)
|
4457
4462
|
o.errors << Shapes::ShapeRef.new(shape: NoSuchOriginRequestPolicy)
|
@@ -4525,6 +4530,7 @@ module Aws::CloudFront
|
|
4525
4530
|
o.errors << Shapes::ShapeRef.new(shape: TooManyDistributionsAssociatedToFieldLevelEncryptionConfig)
|
4526
4531
|
o.errors << Shapes::ShapeRef.new(shape: NoSuchCachePolicy)
|
4527
4532
|
o.errors << Shapes::ShapeRef.new(shape: TooManyDistributionsAssociatedToCachePolicy)
|
4533
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyDistributionsAssociatedToOriginAccessControl)
|
4528
4534
|
o.errors << Shapes::ShapeRef.new(shape: NoSuchResponseHeadersPolicy)
|
4529
4535
|
o.errors << Shapes::ShapeRef.new(shape: TooManyDistributionsAssociatedToResponseHeadersPolicy)
|
4530
4536
|
o.errors << Shapes::ShapeRef.new(shape: NoSuchOriginRequestPolicy)
|
@@ -25,46 +25,13 @@ module Aws::CloudFront
|
|
25
25
|
end
|
26
26
|
if Aws::Endpoints::Matchers.set?(region)
|
27
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"
|
34
|
-
end
|
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"
|
40
|
-
end
|
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
|
28
|
+
if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws") && Aws::Endpoints::Matchers.boolean_equals?(use_fips, false) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, false)
|
47
29
|
return Aws::Endpoints::Endpoint.new(url: "https://cloudfront.amazonaws.com", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"cloudfront", "signingRegion"=>"us-east-1"}]})
|
48
30
|
end
|
49
|
-
if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
end
|
54
|
-
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
55
|
-
end
|
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
|
31
|
+
if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws") && Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, false)
|
32
|
+
return Aws::Endpoints::Endpoint.new(url: "https://cloudfront-fips.amazonaws.com", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingName"=>"cloudfront", "signingRegion"=>"us-east-1"}]})
|
33
|
+
end
|
34
|
+
if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-cn") && Aws::Endpoints::Matchers.boolean_equals?(use_fips, false) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, false)
|
68
35
|
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"}]})
|
69
36
|
end
|
70
37
|
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
@@ -75,9 +42,6 @@ module Aws::CloudFront
|
|
75
42
|
end
|
76
43
|
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
77
44
|
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
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
45
|
return Aws::Endpoints::Endpoint.new(url: "https://cloudfront-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
82
46
|
end
|
83
47
|
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
@@ -88,12 +52,6 @@ module Aws::CloudFront
|
|
88
52
|
end
|
89
53
|
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
90
54
|
end
|
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"}]})
|
93
|
-
end
|
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"}]})
|
96
|
-
end
|
97
55
|
return Aws::Endpoints::Endpoint.new(url: "https://cloudfront.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
98
56
|
end
|
99
57
|
end
|
@@ -59,9 +59,8 @@ module Aws::CloudFront
|
|
59
59
|
#
|
60
60
|
# @!attribute [rw] enabled
|
61
61
|
# This field is `true` if any of the Amazon Web Services accounts in
|
62
|
-
# the list
|
63
|
-
#
|
64
|
-
# this field is `false`.
|
62
|
+
# the list are configured as trusted signers. If not, this field is
|
63
|
+
# `false`.
|
65
64
|
# @return [Boolean]
|
66
65
|
#
|
67
66
|
# @!attribute [rw] quantity
|
@@ -1653,13 +1652,23 @@ module Aws::CloudFront
|
|
1653
1652
|
# if you accidentally resubmit an identical request.
|
1654
1653
|
# @return [String]
|
1655
1654
|
#
|
1655
|
+
# @!attribute [rw] enabled
|
1656
|
+
# A Boolean flag to specify the state of the staging distribution when
|
1657
|
+
# it's created. When you set this value to `True`, the staging
|
1658
|
+
# distribution is enabled. When you set this value to `False`, the
|
1659
|
+
# staging distribution is disabled.
|
1660
|
+
#
|
1661
|
+
# If you omit this field, the default value is `True`.
|
1662
|
+
# @return [Boolean]
|
1663
|
+
#
|
1656
1664
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CopyDistributionRequest AWS API Documentation
|
1657
1665
|
#
|
1658
1666
|
class CopyDistributionRequest < Struct.new(
|
1659
1667
|
:primary_distribution_id,
|
1660
1668
|
:staging,
|
1661
1669
|
:if_match,
|
1662
|
-
:caller_reference
|
1670
|
+
:caller_reference,
|
1671
|
+
:enabled)
|
1663
1672
|
SENSITIVE = []
|
1664
1673
|
include Aws::Structure
|
1665
1674
|
end
|
@@ -4581,8 +4590,7 @@ module Aws::CloudFront
|
|
4581
4590
|
# @return [String]
|
4582
4591
|
#
|
4583
4592
|
# @!attribute [rw] runtime
|
4584
|
-
# The function's runtime environment.
|
4585
|
-
# `cloudfront-js-1.0`.
|
4593
|
+
# The function's runtime environment verion.
|
4586
4594
|
# @return [String]
|
4587
4595
|
#
|
4588
4596
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/FunctionConfig AWS API Documentation
|
@@ -11950,9 +11958,9 @@ module Aws::CloudFront
|
|
11950
11958
|
# can use to verify the signatures of signed URLs and signed cookies.
|
11951
11959
|
#
|
11952
11960
|
# @!attribute [rw] enabled
|
11953
|
-
# This field is `true` if any of the Amazon Web Services accounts
|
11954
|
-
#
|
11955
|
-
#
|
11961
|
+
# This field is `true` if any of the Amazon Web Services accounts in
|
11962
|
+
# the list are configured as trusted signers. If not, this field is
|
11963
|
+
# `false`.
|
11956
11964
|
# @return [Boolean]
|
11957
11965
|
#
|
11958
11966
|
# @!attribute [rw] quantity
|
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.82.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-07-
|
11
|
+
date: 2023-07-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|