aws-sdk-cloudfront 1.120.0 → 1.121.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1ef9b4399543f568a93660b1a4b689dbe3675c162a48f5e62e37725bb6baf17e
4
- data.tar.gz: 35c65b45a4f39c1e189a08793f817d0f0304655826582e60fd84ee8f3d450f28
3
+ metadata.gz: 3449dbfddf944810a1b3812c5fb7ad80d25ea71eda9c254aaf358cb53d0b644f
4
+ data.tar.gz: 1ab810c7992b1618ec71c84ceb5d2cb31a9cb3b9c4174178162a931177f0cfda
5
5
  SHA512:
6
- metadata.gz: 29fedbd5b7e2778aa542ca87c3c35ac061173b30e64636ac8775fc85fcef89a55606bf9a1572d2bd97d10a43087df8cad9c0016d59c84ddefad4d3f5dea5b7e1
7
- data.tar.gz: 1489387cb2d8af3562df0d24518964a4bff522b529f79745474c60ea4091f268d55c9a44799f62a6e425ea57986d80ab4cad40c3ec159446ab7242dd188062d1
6
+ metadata.gz: 2d63e08dad36b521e933fd0b87fb9bc25730218dc1d6d6881b58c4ea583887596c9a26872cc6e64564036cff9c1f4c7faeab8de8fcc76cc9aeca28bd776911de
7
+ data.tar.gz: b81f7baadcac7a844024c4891c93ad48e021caa925db0760e0ab7107b91f3bc2d6eb0d3962bfdf693769ade108e33031177681b5e1fc45078be91564c3ca8837
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.121.0 (2025-07-21)
5
+ ------------------
6
+
7
+ * Feature - Add dualstack endpoint support
8
+
4
9
  1.120.0 (2025-07-17)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.120.0
1
+ 1.121.0
@@ -95,7 +95,7 @@ module Aws::CloudFront
95
95
  # class name or an instance of a plugin class.
96
96
  #
97
97
  # @option options [required, Aws::CredentialProvider] :credentials
98
- # Your AWS credentials. This can be an instance of any one of the
98
+ # Your AWS credentials used for authentication. This can be an instance of any one of the
99
99
  # following classes:
100
100
  #
101
101
  # * `Aws::Credentials` - Used for configuring static, non-refreshing
@@ -128,18 +128,23 @@ module Aws::CloudFront
128
128
  # locations will be searched for credentials:
129
129
  #
130
130
  # * `Aws.config[:credentials]`
131
+ #
131
132
  # * The `:access_key_id`, `:secret_access_key`, `:session_token`, and
132
133
  # `:account_id` options.
133
- # * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY'],
134
- # ENV['AWS_SESSION_TOKEN'], and ENV['AWS_ACCOUNT_ID']
134
+ #
135
+ # * `ENV['AWS_ACCESS_KEY_ID']`, `ENV['AWS_SECRET_ACCESS_KEY']`,
136
+ # `ENV['AWS_SESSION_TOKEN']`, and `ENV['AWS_ACCOUNT_ID']`.
137
+ #
135
138
  # * `~/.aws/credentials`
139
+ #
136
140
  # * `~/.aws/config`
141
+ #
137
142
  # * EC2/ECS IMDS instance profile - When used by default, the timeouts
138
143
  # are very aggressive. Construct and pass an instance of
139
144
  # `Aws::InstanceProfileCredentials` or `Aws::ECSCredentials` to
140
145
  # enable retries and extended timeouts. Instance profile credential
141
- # fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED']
142
- # to true.
146
+ # fetching can be disabled by setting `ENV['AWS_EC2_METADATA_DISABLED']`
147
+ # to `true`.
143
148
  #
144
149
  # @option options [required, String] :region
145
150
  # The AWS region to connect to. The configured `:region` is
@@ -167,6 +172,11 @@ module Aws::CloudFront
167
172
  # When false, the request will raise a `RetryCapacityNotAvailableError` and will
168
173
  # not retry instead of sleeping.
169
174
  #
175
+ # @option options [Array<String>] :auth_scheme_preference
176
+ # A list of preferred authentication schemes to use when making a request. Supported values are:
177
+ # `sigv4`, `sigv4a`, `httpBearerAuth`, and `noAuth`. When set using `ENV['AWS_AUTH_SCHEME_PREFERENCE']` or in
178
+ # shared config as `auth_scheme_preference`, the value should be a comma-separated list.
179
+ #
170
180
  # @option options [Boolean] :client_side_monitoring (false)
171
181
  # When `true`, client-side metrics will be collected for all API requests from
172
182
  # this client.
@@ -253,8 +263,8 @@ module Aws::CloudFront
253
263
  # 4 times. Used in `standard` and `adaptive` retry modes.
254
264
  #
255
265
  # @option options [String] :profile ("default")
256
- # Used when loading credentials from the shared credentials file
257
- # at HOME/.aws/credentials. When not specified, 'default' is used.
266
+ # Used when loading credentials from the shared credentials file at `HOME/.aws/credentials`.
267
+ # When not specified, 'default' is used.
258
268
  #
259
269
  # @option options [String] :request_checksum_calculation ("when_supported")
260
270
  # Determines when a checksum will be calculated for request payloads. Values are:
@@ -367,7 +377,7 @@ module Aws::CloudFront
367
377
  # `Aws::Telemetry::OTelProvider` for telemetry provider.
368
378
  #
369
379
  # @option options [Aws::TokenProvider] :token_provider
370
- # A Bearer Token Provider. This can be an instance of any one of the
380
+ # Your Bearer token used for authentication. This can be an instance of any one of the
371
381
  # following classes:
372
382
  #
373
383
  # * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
@@ -1505,7 +1515,7 @@ module Aws::CloudFront
1505
1515
  # enabled: false, # required
1506
1516
  # viewer_certificate: {
1507
1517
  # cloud_front_default_certificate: false,
1508
- # iam_certificate_id: "string",
1518
+ # iam_certificate_id: "ServerCertificateId",
1509
1519
  # acm_certificate_arn: "string",
1510
1520
  # ssl_support_method: "sni-only", # accepts sni-only, vip, static-ip
1511
1521
  # minimum_protocol_version: "SSLv3", # accepts SSLv3, TLSv1, TLSv1_2016, TLSv1.1_2016, TLSv1.2_2018, TLSv1.2_2019, TLSv1.2_2021
@@ -1531,7 +1541,7 @@ module Aws::CloudFront
1531
1541
  # name: "ParameterName", # required
1532
1542
  # definition: { # required
1533
1543
  # string_schema: {
1534
- # comment: "string",
1544
+ # comment: "sensitiveStringType",
1535
1545
  # default_value: "ParameterValue",
1536
1546
  # required: false, # required
1537
1547
  # },
@@ -2158,7 +2168,7 @@ module Aws::CloudFront
2158
2168
  # enabled: false, # required
2159
2169
  # viewer_certificate: {
2160
2170
  # cloud_front_default_certificate: false,
2161
- # iam_certificate_id: "string",
2171
+ # iam_certificate_id: "ServerCertificateId",
2162
2172
  # acm_certificate_arn: "string",
2163
2173
  # ssl_support_method: "sni-only", # accepts sni-only, vip, static-ip
2164
2174
  # minimum_protocol_version: "SSLv3", # accepts SSLv3, TLSv1, TLSv1_2016, TLSv1.1_2016, TLSv1.2_2018, TLSv1.2_2019, TLSv1.2_2021
@@ -2184,7 +2194,7 @@ module Aws::CloudFront
2184
2194
  # name: "ParameterName", # required
2185
2195
  # definition: { # required
2186
2196
  # string_schema: {
2187
- # comment: "string",
2197
+ # comment: "sensitiveStringType",
2188
2198
  # default_value: "ParameterValue",
2189
2199
  # required: false, # required
2190
2200
  # },
@@ -4013,7 +4023,7 @@ module Aws::CloudFront
4013
4023
  # @example Request syntax with placeholder values
4014
4024
  #
4015
4025
  # resp = client.delete_function({
4016
- # name: "string", # required
4026
+ # name: "FunctionName", # required
4017
4027
  # if_match: "string", # required
4018
4028
  # })
4019
4029
  #
@@ -4474,7 +4484,7 @@ module Aws::CloudFront
4474
4484
  # @example Request syntax with placeholder values
4475
4485
  #
4476
4486
  # resp = client.describe_function({
4477
- # name: "string", # required
4487
+ # name: "FunctionName", # required
4478
4488
  # stage: "DEVELOPMENT", # accepts DEVELOPMENT, LIVE
4479
4489
  # })
4480
4490
  #
@@ -5758,7 +5768,7 @@ module Aws::CloudFront
5758
5768
  # @example Request syntax with placeholder values
5759
5769
  #
5760
5770
  # resp = client.get_function({
5761
- # name: "string", # required
5771
+ # name: "FunctionName", # required
5762
5772
  # stage: "DEVELOPMENT", # accepts DEVELOPMENT, LIVE
5763
5773
  # })
5764
5774
  #
@@ -9112,6 +9122,8 @@ module Aws::CloudFront
9112
9122
  #
9113
9123
  # * {Types::ListOriginAccessControlsResult#origin_access_control_list #origin_access_control_list} => Types::OriginAccessControlList
9114
9124
  #
9125
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
9126
+ #
9115
9127
  # @example Request syntax with placeholder values
9116
9128
  #
9117
9129
  # resp = client.list_origin_access_controls({
@@ -9625,7 +9637,7 @@ module Aws::CloudFront
9625
9637
  # @example Request syntax with placeholder values
9626
9638
  #
9627
9639
  # resp = client.publish_function({
9628
- # name: "string", # required
9640
+ # name: "FunctionName", # required
9629
9641
  # if_match: "string", # required
9630
9642
  # })
9631
9643
  #
@@ -9736,7 +9748,7 @@ module Aws::CloudFront
9736
9748
  # @example Request syntax with placeholder values
9737
9749
  #
9738
9750
  # resp = client.test_function({
9739
- # name: "string", # required
9751
+ # name: "FunctionName", # required
9740
9752
  # if_match: "string", # required
9741
9753
  # stage: "DEVELOPMENT", # accepts DEVELOPMENT, LIVE
9742
9754
  # event_object: "data", # required
@@ -10402,7 +10414,7 @@ module Aws::CloudFront
10402
10414
  # enabled: false, # required
10403
10415
  # viewer_certificate: {
10404
10416
  # cloud_front_default_certificate: false,
10405
- # iam_certificate_id: "string",
10417
+ # iam_certificate_id: "ServerCertificateId",
10406
10418
  # acm_certificate_arn: "string",
10407
10419
  # ssl_support_method: "sni-only", # accepts sni-only, vip, static-ip
10408
10420
  # minimum_protocol_version: "SSLv3", # accepts SSLv3, TLSv1, TLSv1_2016, TLSv1.1_2016, TLSv1.2_2018, TLSv1.2_2019, TLSv1.2_2021
@@ -10428,7 +10440,7 @@ module Aws::CloudFront
10428
10440
  # name: "ParameterName", # required
10429
10441
  # definition: { # required
10430
10442
  # string_schema: {
10431
- # comment: "string",
10443
+ # comment: "sensitiveStringType",
10432
10444
  # default_value: "ParameterValue",
10433
10445
  # required: false, # required
10434
10446
  # },
@@ -11346,7 +11358,7 @@ module Aws::CloudFront
11346
11358
  # @example Request syntax with placeholder values
11347
11359
  #
11348
11360
  # resp = client.update_function({
11349
- # name: "string", # required
11361
+ # name: "FunctionName", # required
11350
11362
  # if_match: "string", # required
11351
11363
  # function_config: { # required
11352
11364
  # comment: "string", # required
@@ -12232,7 +12244,7 @@ module Aws::CloudFront
12232
12244
  tracer: tracer
12233
12245
  )
12234
12246
  context[:gem_name] = 'aws-sdk-cloudfront'
12235
- context[:gem_version] = '1.120.0'
12247
+ context[:gem_version] = '1.121.0'
12236
12248
  Seahorse::Client::Request.new(handlers, context)
12237
12249
  end
12238
12250
 
@@ -618,6 +618,7 @@ module Aws::CloudFront
618
618
  S3OriginConfig = Shapes::StructureShape.new(name: 'S3OriginConfig')
619
619
  SSLSupportMethod = Shapes::StringShape.new(name: 'SSLSupportMethod')
620
620
  SamplingRate = Shapes::FloatShape.new(name: 'SamplingRate')
621
+ ServerCertificateId = Shapes::StringShape.new(name: 'ServerCertificateId')
621
622
  SessionStickinessConfig = Shapes::StructureShape.new(name: 'SessionStickinessConfig')
622
623
  Signer = Shapes::StructureShape.new(name: 'Signer')
623
624
  SignerList = Shapes::ListShape.new(name: 'SignerList')
@@ -1485,7 +1486,7 @@ module Aws::CloudFront
1485
1486
  DeleteFieldLevelEncryptionProfileRequest.add_member(:if_match, Shapes::ShapeRef.new(shape: string, location: "header", location_name: "If-Match"))
1486
1487
  DeleteFieldLevelEncryptionProfileRequest.struct_class = Types::DeleteFieldLevelEncryptionProfileRequest
1487
1488
 
1488
- DeleteFunctionRequest.add_member(:name, Shapes::ShapeRef.new(shape: string, required: true, location: "uri", location_name: "Name"))
1489
+ DeleteFunctionRequest.add_member(:name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location: "uri", location_name: "Name"))
1489
1490
  DeleteFunctionRequest.add_member(:if_match, Shapes::ShapeRef.new(shape: string, required: true, location: "header", location_name: "If-Match"))
1490
1491
  DeleteFunctionRequest.struct_class = Types::DeleteFunctionRequest
1491
1492
 
@@ -1536,7 +1537,7 @@ module Aws::CloudFront
1536
1537
  DeleteVpcOriginResult[:payload] = :vpc_origin
1537
1538
  DeleteVpcOriginResult[:payload_member] = DeleteVpcOriginResult.member(:vpc_origin)
1538
1539
 
1539
- DescribeFunctionRequest.add_member(:name, Shapes::ShapeRef.new(shape: string, required: true, location: "uri", location_name: "Name"))
1540
+ DescribeFunctionRequest.add_member(:name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location: "uri", location_name: "Name"))
1540
1541
  DescribeFunctionRequest.add_member(:stage, Shapes::ShapeRef.new(shape: FunctionStage, location: "querystring", location_name: "Stage"))
1541
1542
  DescribeFunctionRequest.struct_class = Types::DescribeFunctionRequest
1542
1543
 
@@ -1651,7 +1652,7 @@ module Aws::CloudFront
1651
1652
  DistributionSummary.add_member(:default_cache_behavior, Shapes::ShapeRef.new(shape: DefaultCacheBehavior, required: true, location_name: "DefaultCacheBehavior"))
1652
1653
  DistributionSummary.add_member(:cache_behaviors, Shapes::ShapeRef.new(shape: CacheBehaviors, required: true, location_name: "CacheBehaviors"))
1653
1654
  DistributionSummary.add_member(:custom_error_responses, Shapes::ShapeRef.new(shape: CustomErrorResponses, required: true, location_name: "CustomErrorResponses"))
1654
- DistributionSummary.add_member(:comment, Shapes::ShapeRef.new(shape: string, required: true, location_name: "Comment"))
1655
+ DistributionSummary.add_member(:comment, Shapes::ShapeRef.new(shape: sensitiveStringType, required: true, location_name: "Comment"))
1655
1656
  DistributionSummary.add_member(:price_class, Shapes::ShapeRef.new(shape: PriceClass, required: true, location_name: "PriceClass"))
1656
1657
  DistributionSummary.add_member(:enabled, Shapes::ShapeRef.new(shape: boolean, required: true, location_name: "Enabled"))
1657
1658
  DistributionSummary.add_member(:viewer_certificate, Shapes::ShapeRef.new(shape: ViewerCertificate, required: true, location_name: "ViewerCertificate"))
@@ -2046,7 +2047,7 @@ module Aws::CloudFront
2046
2047
  GetFieldLevelEncryptionResult[:payload] = :field_level_encryption
2047
2048
  GetFieldLevelEncryptionResult[:payload_member] = GetFieldLevelEncryptionResult.member(:field_level_encryption)
2048
2049
 
2049
- GetFunctionRequest.add_member(:name, Shapes::ShapeRef.new(shape: string, required: true, location: "uri", location_name: "Name"))
2050
+ GetFunctionRequest.add_member(:name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location: "uri", location_name: "Name"))
2050
2051
  GetFunctionRequest.add_member(:stage, Shapes::ShapeRef.new(shape: FunctionStage, location: "querystring", location_name: "Stage"))
2051
2052
  GetFunctionRequest.struct_class = Types::GetFunctionRequest
2052
2053
 
@@ -3031,7 +3032,7 @@ module Aws::CloudFront
3031
3032
 
3032
3033
  PublicKeySummaryList.member = Shapes::ShapeRef.new(shape: PublicKeySummary, location_name: "PublicKeySummary")
3033
3034
 
3034
- PublishFunctionRequest.add_member(:name, Shapes::ShapeRef.new(shape: string, required: true, location: "uri", location_name: "Name"))
3035
+ PublishFunctionRequest.add_member(:name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location: "uri", location_name: "Name"))
3035
3036
  PublishFunctionRequest.add_member(:if_match, Shapes::ShapeRef.new(shape: string, required: true, location: "header", location_name: "If-Match"))
3036
3037
  PublishFunctionRequest.struct_class = Types::PublishFunctionRequest
3037
3038
 
@@ -3313,7 +3314,7 @@ module Aws::CloudFront
3313
3314
  StreamingLoggingConfig.add_member(:prefix, Shapes::ShapeRef.new(shape: string, required: true, location_name: "Prefix"))
3314
3315
  StreamingLoggingConfig.struct_class = Types::StreamingLoggingConfig
3315
3316
 
3316
- StringSchemaConfig.add_member(:comment, Shapes::ShapeRef.new(shape: string, location_name: "Comment"))
3317
+ StringSchemaConfig.add_member(:comment, Shapes::ShapeRef.new(shape: sensitiveStringType, location_name: "Comment"))
3317
3318
  StringSchemaConfig.add_member(:default_value, Shapes::ShapeRef.new(shape: ParameterValue, location_name: "DefaultValue"))
3318
3319
  StringSchemaConfig.add_member(:required, Shapes::ShapeRef.new(shape: boolean, required: true, location_name: "Required"))
3319
3320
  StringSchemaConfig.struct_class = Types::StringSchemaConfig
@@ -3344,7 +3345,7 @@ module Aws::CloudFront
3344
3345
  TestFunctionFailed.add_member(:message, Shapes::ShapeRef.new(shape: string, location_name: "Message"))
3345
3346
  TestFunctionFailed.struct_class = Types::TestFunctionFailed
3346
3347
 
3347
- TestFunctionRequest.add_member(:name, Shapes::ShapeRef.new(shape: string, required: true, location: "uri", location_name: "Name"))
3348
+ TestFunctionRequest.add_member(:name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location: "uri", location_name: "Name"))
3348
3349
  TestFunctionRequest.add_member(:if_match, Shapes::ShapeRef.new(shape: string, required: true, location: "header", location_name: "If-Match"))
3349
3350
  TestFunctionRequest.add_member(:stage, Shapes::ShapeRef.new(shape: FunctionStage, location_name: "Stage"))
3350
3351
  TestFunctionRequest.add_member(:event_object, Shapes::ShapeRef.new(shape: FunctionEventObject, required: true, location_name: "EventObject"))
@@ -3679,7 +3680,7 @@ module Aws::CloudFront
3679
3680
  UpdateFieldLevelEncryptionProfileResult[:payload] = :field_level_encryption_profile
3680
3681
  UpdateFieldLevelEncryptionProfileResult[:payload_member] = UpdateFieldLevelEncryptionProfileResult.member(:field_level_encryption_profile)
3681
3682
 
3682
- UpdateFunctionRequest.add_member(:name, Shapes::ShapeRef.new(shape: string, required: true, location: "uri", location_name: "Name"))
3683
+ UpdateFunctionRequest.add_member(:name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location: "uri", location_name: "Name"))
3683
3684
  UpdateFunctionRequest.add_member(:if_match, Shapes::ShapeRef.new(shape: string, required: true, location: "header", location_name: "If-Match"))
3684
3685
  UpdateFunctionRequest.add_member(:function_config, Shapes::ShapeRef.new(shape: FunctionConfig, required: true, location_name: "FunctionConfig"))
3685
3686
  UpdateFunctionRequest.add_member(:function_code, Shapes::ShapeRef.new(shape: FunctionBlob, required: true, location_name: "FunctionCode"))
@@ -3818,7 +3819,7 @@ module Aws::CloudFront
3818
3819
  VerifyDnsConfigurationResult.struct_class = Types::VerifyDnsConfigurationResult
3819
3820
 
3820
3821
  ViewerCertificate.add_member(:cloud_front_default_certificate, Shapes::ShapeRef.new(shape: boolean, location_name: "CloudFrontDefaultCertificate"))
3821
- ViewerCertificate.add_member(:iam_certificate_id, Shapes::ShapeRef.new(shape: string, location_name: "IAMCertificateId"))
3822
+ ViewerCertificate.add_member(:iam_certificate_id, Shapes::ShapeRef.new(shape: ServerCertificateId, location_name: "IAMCertificateId"))
3822
3823
  ViewerCertificate.add_member(:acm_certificate_arn, Shapes::ShapeRef.new(shape: string, location_name: "ACMCertificateArn"))
3823
3824
  ViewerCertificate.add_member(:ssl_support_method, Shapes::ShapeRef.new(shape: SSLSupportMethod, location_name: "SSLSupportMethod"))
3824
3825
  ViewerCertificate.add_member(:minimum_protocol_version, Shapes::ShapeRef.new(shape: MinimumProtocolVersion, location_name: "MinimumProtocolVersion"))
@@ -5585,6 +5586,12 @@ module Aws::CloudFront
5585
5586
  o.input = Shapes::ShapeRef.new(shape: ListOriginAccessControlsRequest)
5586
5587
  o.output = Shapes::ShapeRef.new(shape: ListOriginAccessControlsResult)
5587
5588
  o.errors << Shapes::ShapeRef.new(shape: InvalidArgument)
5589
+ o[:pager] = Aws::Pager.new(
5590
+ limit_key: "max_items",
5591
+ tokens: {
5592
+ "origin_access_control_list.next_marker" => "marker"
5593
+ }
5594
+ )
5588
5595
  end)
5589
5596
 
5590
5597
  api.add_operation(:list_origin_request_policies, Seahorse::Model::Operation.new.tap do |o|
@@ -10,11 +10,6 @@
10
10
  module Aws::CloudFront
11
11
  # Endpoint parameters used to influence endpoints per request.
12
12
  #
13
- # @!attribute region
14
- # The AWS region used to dispatch the request.
15
- #
16
- # @return [String]
17
- #
18
13
  # @!attribute use_dual_stack
19
14
  # When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
20
15
  #
@@ -30,39 +25,44 @@ module Aws::CloudFront
30
25
  #
31
26
  # @return [String]
32
27
  #
28
+ # @!attribute region
29
+ # The AWS region used to dispatch the request.
30
+ #
31
+ # @return [String]
32
+ #
33
33
  EndpointParameters = Struct.new(
34
- :region,
35
34
  :use_dual_stack,
36
35
  :use_fips,
37
36
  :endpoint,
37
+ :region,
38
38
  ) do
39
39
  include Aws::Structure
40
40
 
41
41
  # @api private
42
42
  class << self
43
43
  PARAM_MAP = {
44
- 'Region' => :region,
45
44
  'UseDualStack' => :use_dual_stack,
46
45
  'UseFIPS' => :use_fips,
47
46
  'Endpoint' => :endpoint,
47
+ 'Region' => :region,
48
48
  }.freeze
49
49
  end
50
50
 
51
51
  def initialize(options = {})
52
- self[:region] = options[:region]
53
52
  self[:use_dual_stack] = options[:use_dual_stack]
54
53
  self[:use_dual_stack] = false if self[:use_dual_stack].nil?
55
54
  self[:use_fips] = options[:use_fips]
56
55
  self[:use_fips] = false if self[:use_fips].nil?
57
56
  self[:endpoint] = options[:endpoint]
57
+ self[:region] = options[:region]
58
58
  end
59
59
 
60
60
  def self.create(config, options={})
61
61
  new({
62
- region: config.region,
63
62
  use_dual_stack: config.use_dualstack_endpoint,
64
63
  use_fips: config.use_fips_endpoint,
65
64
  endpoint: (config.endpoint.to_s unless config.regional_endpoint),
65
+ region: config.region,
66
66
  }.merge(options))
67
67
  end
68
68
  end
@@ -21,34 +21,37 @@ module Aws::CloudFront
21
21
  end
22
22
  if Aws::Endpoints::Matchers.set?(parameters.region)
23
23
  if (partition_result = Aws::Endpoints::Matchers.aws_partition(parameters.region))
24
- if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws") && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, false) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, false)
25
- return Aws::Endpoints::Endpoint.new(url: "https://cloudfront.amazonaws.com", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "signingName" => "cloudfront", "signingRegion" => "us-east-1"}]})
24
+ if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws") && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, false) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
25
+ return Aws::Endpoints::Endpoint.new(url: "https://cloudfront.global.api.aws", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "signingRegion" => "us-east-1"}]})
26
26
  end
27
- if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws") && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, false)
28
- return Aws::Endpoints::Endpoint.new(url: "https://cloudfront-fips.amazonaws.com", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "signingName" => "cloudfront", "signingRegion" => "us-east-1"}]})
27
+ if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws") && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
28
+ return Aws::Endpoints::Endpoint.new(url: "https://cloudfront-fips.global.api.aws", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "signingRegion" => "us-east-1"}]})
29
29
  end
30
30
  if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-cn") && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, false) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, false)
31
- 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"}]})
31
+ return Aws::Endpoints::Endpoint.new(url: "https://cloudfront.cn-northwest-1.amazonaws.com.cn", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "signingRegion" => "cn-northwest-1"}]})
32
+ end
33
+ if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-cn") && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, false)
34
+ return Aws::Endpoints::Endpoint.new(url: "https://cloudfront-fips.cn-northwest-1.amazonaws.com.cn", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "signingRegion" => "cn-northwest-1"}]})
32
35
  end
33
36
  if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
34
37
  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"))
35
- return Aws::Endpoints::Endpoint.new(url: "https://cloudfront-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
38
+ return Aws::Endpoints::Endpoint.new(url: "https://cloudfront-fips.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "signingRegion" => "#{partition_result['implicitGlobalRegion']}"}]})
36
39
  end
37
40
  raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
38
41
  end
39
- if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
42
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, false)
40
43
  if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
41
- return Aws::Endpoints::Endpoint.new(url: "https://cloudfront-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
44
+ return Aws::Endpoints::Endpoint.new(url: "https://cloudfront-fips.#{partition_result['dnsSuffix']}", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "signingRegion" => "#{partition_result['implicitGlobalRegion']}"}]})
42
45
  end
43
46
  raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
44
47
  end
45
- if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
48
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, false) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
46
49
  if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
47
- return Aws::Endpoints::Endpoint.new(url: "https://cloudfront.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
50
+ return Aws::Endpoints::Endpoint.new(url: "https://cloudfront.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "signingRegion" => "#{partition_result['implicitGlobalRegion']}"}]})
48
51
  end
49
52
  raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
50
53
  end
51
- return Aws::Endpoints::Endpoint.new(url: "https://cloudfront.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
54
+ return Aws::Endpoints::Endpoint.new(url: "https://cloudfront.#{partition_result['dnsSuffix']}", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "signingRegion" => "#{partition_result['implicitGlobalRegion']}"}]})
52
55
  end
53
56
  end
54
57
  raise ArgumentError, "Invalid Configuration: Missing Region"
@@ -5184,7 +5184,7 @@ module Aws::CloudFront
5184
5184
  :staging,
5185
5185
  :connection_mode,
5186
5186
  :anycast_ip_list_id)
5187
- SENSITIVE = []
5187
+ SENSITIVE = [:comment]
5188
5188
  include Aws::Structure
5189
5189
  end
5190
5190
 
@@ -13537,7 +13537,7 @@ module Aws::CloudFront
13537
13537
  :comment,
13538
13538
  :default_value,
13539
13539
  :required)
13540
- SENSITIVE = []
13540
+ SENSITIVE = [:comment]
13541
13541
  include Aws::Structure
13542
13542
  end
13543
13543
 
@@ -55,7 +55,7 @@ module Aws::CloudFront
55
55
  autoload :EndpointProvider, 'aws-sdk-cloudfront/endpoint_provider'
56
56
  autoload :Endpoints, 'aws-sdk-cloudfront/endpoints'
57
57
 
58
- GEM_VERSION = '1.120.0'
58
+ GEM_VERSION = '1.121.0'
59
59
 
60
60
  end
61
61
 
data/sig/client.rbs CHANGED
@@ -18,6 +18,7 @@ module Aws
18
18
  ?account_id: String,
19
19
  ?active_endpoint_cache: bool,
20
20
  ?adaptive_retry_wait_to_fill: bool,
21
+ ?auth_scheme_preference: Array[String],
21
22
  ?client_side_monitoring: bool,
22
23
  ?client_side_monitoring_client_id: String,
23
24
  ?client_side_monitoring_host: String,
data/sig/resource.rbs CHANGED
@@ -18,6 +18,7 @@ module Aws
18
18
  ?account_id: String,
19
19
  ?active_endpoint_cache: bool,
20
20
  ?adaptive_retry_wait_to_fill: bool,
21
+ ?auth_scheme_preference: Array[String],
21
22
  ?client_side_monitoring: bool,
22
23
  ?client_side_monitoring_client_id: String,
23
24
  ?client_side_monitoring_host: String,
data/sig/types.rbs CHANGED
@@ -1069,7 +1069,7 @@ module Aws::CloudFront
1069
1069
  attr_accessor staging: bool
1070
1070
  attr_accessor connection_mode: ("direct" | "tenant-only")
1071
1071
  attr_accessor anycast_ip_list_id: ::String
1072
- SENSITIVE: []
1072
+ SENSITIVE: [:comment]
1073
1073
  end
1074
1074
 
1075
1075
  class DistributionTenant
@@ -3192,7 +3192,7 @@ module Aws::CloudFront
3192
3192
  attr_accessor comment: ::String
3193
3193
  attr_accessor default_value: ::String
3194
3194
  attr_accessor required: bool
3195
- SENSITIVE: []
3195
+ SENSITIVE: [:comment]
3196
3196
  end
3197
3197
 
3198
3198
  class Tag
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-cloudfront
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.120.0
4
+ version: 1.121.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
@@ -18,7 +18,7 @@ dependencies:
18
18
  version: '3'
19
19
  - - ">="
20
20
  - !ruby/object:Gem::Version
21
- version: 3.225.0
21
+ version: 3.227.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -28,7 +28,7 @@ dependencies:
28
28
  version: '3'
29
29
  - - ">="
30
30
  - !ruby/object:Gem::Version
31
- version: 3.225.0
31
+ version: 3.227.0
32
32
  - !ruby/object:Gem::Dependency
33
33
  name: aws-sigv4
34
34
  requirement: !ruby/object:Gem::Requirement