aws-sdk-cloudfront 1.118.0 → 1.123.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 +25 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-cloudfront/client.rb +219 -80
- data/lib/aws-sdk-cloudfront/client_api.rb +18 -9
- data/lib/aws-sdk-cloudfront/endpoint_parameters.rb +9 -9
- data/lib/aws-sdk-cloudfront/endpoint_provider.rb +14 -11
- data/lib/aws-sdk-cloudfront/types.rb +419 -138
- data/lib/aws-sdk-cloudfront.rb +1 -1
- data/sig/client.rbs +10 -3
- data/sig/resource.rbs +1 -0
- data/sig/types.rbs +4 -2
- metadata +4 -4
@@ -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:
|
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:
|
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:
|
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:
|
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
|
|
@@ -2841,6 +2842,7 @@ module Aws::CloudFront
|
|
2841
2842
|
Origin.add_member(:vpc_origin_config, Shapes::ShapeRef.new(shape: VpcOriginConfig, location_name: "VpcOriginConfig"))
|
2842
2843
|
Origin.add_member(:connection_attempts, Shapes::ShapeRef.new(shape: integer, location_name: "ConnectionAttempts"))
|
2843
2844
|
Origin.add_member(:connection_timeout, Shapes::ShapeRef.new(shape: integer, location_name: "ConnectionTimeout"))
|
2845
|
+
Origin.add_member(:response_completion_timeout, Shapes::ShapeRef.new(shape: integer, location_name: "ResponseCompletionTimeout"))
|
2844
2846
|
Origin.add_member(:origin_shield, Shapes::ShapeRef.new(shape: OriginShield, location_name: "OriginShield"))
|
2845
2847
|
Origin.add_member(:origin_access_control_id, Shapes::ShapeRef.new(shape: string, location_name: "OriginAccessControlId"))
|
2846
2848
|
Origin.struct_class = Types::Origin
|
@@ -3031,7 +3033,7 @@ module Aws::CloudFront
|
|
3031
3033
|
|
3032
3034
|
PublicKeySummaryList.member = Shapes::ShapeRef.new(shape: PublicKeySummary, location_name: "PublicKeySummary")
|
3033
3035
|
|
3034
|
-
PublishFunctionRequest.add_member(:name, Shapes::ShapeRef.new(shape:
|
3036
|
+
PublishFunctionRequest.add_member(:name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location: "uri", location_name: "Name"))
|
3035
3037
|
PublishFunctionRequest.add_member(:if_match, Shapes::ShapeRef.new(shape: string, required: true, location: "header", location_name: "If-Match"))
|
3036
3038
|
PublishFunctionRequest.struct_class = Types::PublishFunctionRequest
|
3037
3039
|
|
@@ -3227,6 +3229,7 @@ module Aws::CloudFront
|
|
3227
3229
|
S3Origin.struct_class = Types::S3Origin
|
3228
3230
|
|
3229
3231
|
S3OriginConfig.add_member(:origin_access_identity, Shapes::ShapeRef.new(shape: string, required: true, location_name: "OriginAccessIdentity"))
|
3232
|
+
S3OriginConfig.add_member(:origin_read_timeout, Shapes::ShapeRef.new(shape: integer, location_name: "OriginReadTimeout"))
|
3230
3233
|
S3OriginConfig.struct_class = Types::S3OriginConfig
|
3231
3234
|
|
3232
3235
|
SessionStickinessConfig.add_member(:idle_ttl, Shapes::ShapeRef.new(shape: integer, required: true, location_name: "IdleTTL"))
|
@@ -3313,7 +3316,7 @@ module Aws::CloudFront
|
|
3313
3316
|
StreamingLoggingConfig.add_member(:prefix, Shapes::ShapeRef.new(shape: string, required: true, location_name: "Prefix"))
|
3314
3317
|
StreamingLoggingConfig.struct_class = Types::StreamingLoggingConfig
|
3315
3318
|
|
3316
|
-
StringSchemaConfig.add_member(:comment, Shapes::ShapeRef.new(shape:
|
3319
|
+
StringSchemaConfig.add_member(:comment, Shapes::ShapeRef.new(shape: sensitiveStringType, location_name: "Comment"))
|
3317
3320
|
StringSchemaConfig.add_member(:default_value, Shapes::ShapeRef.new(shape: ParameterValue, location_name: "DefaultValue"))
|
3318
3321
|
StringSchemaConfig.add_member(:required, Shapes::ShapeRef.new(shape: boolean, required: true, location_name: "Required"))
|
3319
3322
|
StringSchemaConfig.struct_class = Types::StringSchemaConfig
|
@@ -3344,7 +3347,7 @@ module Aws::CloudFront
|
|
3344
3347
|
TestFunctionFailed.add_member(:message, Shapes::ShapeRef.new(shape: string, location_name: "Message"))
|
3345
3348
|
TestFunctionFailed.struct_class = Types::TestFunctionFailed
|
3346
3349
|
|
3347
|
-
TestFunctionRequest.add_member(:name, Shapes::ShapeRef.new(shape:
|
3350
|
+
TestFunctionRequest.add_member(:name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location: "uri", location_name: "Name"))
|
3348
3351
|
TestFunctionRequest.add_member(:if_match, Shapes::ShapeRef.new(shape: string, required: true, location: "header", location_name: "If-Match"))
|
3349
3352
|
TestFunctionRequest.add_member(:stage, Shapes::ShapeRef.new(shape: FunctionStage, location_name: "Stage"))
|
3350
3353
|
TestFunctionRequest.add_member(:event_object, Shapes::ShapeRef.new(shape: FunctionEventObject, required: true, location_name: "EventObject"))
|
@@ -3679,7 +3682,7 @@ module Aws::CloudFront
|
|
3679
3682
|
UpdateFieldLevelEncryptionProfileResult[:payload] = :field_level_encryption_profile
|
3680
3683
|
UpdateFieldLevelEncryptionProfileResult[:payload_member] = UpdateFieldLevelEncryptionProfileResult.member(:field_level_encryption_profile)
|
3681
3684
|
|
3682
|
-
UpdateFunctionRequest.add_member(:name, Shapes::ShapeRef.new(shape:
|
3685
|
+
UpdateFunctionRequest.add_member(:name, Shapes::ShapeRef.new(shape: FunctionName, required: true, location: "uri", location_name: "Name"))
|
3683
3686
|
UpdateFunctionRequest.add_member(:if_match, Shapes::ShapeRef.new(shape: string, required: true, location: "header", location_name: "If-Match"))
|
3684
3687
|
UpdateFunctionRequest.add_member(:function_config, Shapes::ShapeRef.new(shape: FunctionConfig, required: true, location_name: "FunctionConfig"))
|
3685
3688
|
UpdateFunctionRequest.add_member(:function_code, Shapes::ShapeRef.new(shape: FunctionBlob, required: true, location_name: "FunctionCode"))
|
@@ -3818,7 +3821,7 @@ module Aws::CloudFront
|
|
3818
3821
|
VerifyDnsConfigurationResult.struct_class = Types::VerifyDnsConfigurationResult
|
3819
3822
|
|
3820
3823
|
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:
|
3824
|
+
ViewerCertificate.add_member(:iam_certificate_id, Shapes::ShapeRef.new(shape: ServerCertificateId, location_name: "IAMCertificateId"))
|
3822
3825
|
ViewerCertificate.add_member(:acm_certificate_arn, Shapes::ShapeRef.new(shape: string, location_name: "ACMCertificateArn"))
|
3823
3826
|
ViewerCertificate.add_member(:ssl_support_method, Shapes::ShapeRef.new(shape: SSLSupportMethod, location_name: "SSLSupportMethod"))
|
3824
3827
|
ViewerCertificate.add_member(:minimum_protocol_version, Shapes::ShapeRef.new(shape: MinimumProtocolVersion, location_name: "MinimumProtocolVersion"))
|
@@ -5585,6 +5588,12 @@ module Aws::CloudFront
|
|
5585
5588
|
o.input = Shapes::ShapeRef.new(shape: ListOriginAccessControlsRequest)
|
5586
5589
|
o.output = Shapes::ShapeRef.new(shape: ListOriginAccessControlsResult)
|
5587
5590
|
o.errors << Shapes::ShapeRef.new(shape: InvalidArgument)
|
5591
|
+
o[:pager] = Aws::Pager.new(
|
5592
|
+
limit_key: "max_items",
|
5593
|
+
tokens: {
|
5594
|
+
"origin_access_control_list.next_marker" => "marker"
|
5595
|
+
}
|
5596
|
+
)
|
5588
5597
|
end)
|
5589
5598
|
|
5590
5599
|
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,
|
25
|
-
return Aws::Endpoints::Endpoint.new(url: "https://cloudfront.
|
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,
|
28
|
-
return Aws::Endpoints::Endpoint.new(url: "https://cloudfront-fips.
|
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", "
|
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.#{
|
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.#{
|
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.#{
|
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.#{
|
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"
|