aws-sdk-dynamodb 1.175.0 → 1.176.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 +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-dynamodb/client.rb +1 -1
- data/lib/aws-sdk-dynamodb/endpoint_provider.rb +46 -25
- data/lib/aws-sdk-dynamodb.rb +1 -1
- data/sig/errors.rbs +34 -34
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 35697eb019066aa283304ec68458c74307923fde5ebe7419b45940cddf2ce657
|
|
4
|
+
data.tar.gz: 11faa1afeebfca6664772cbef077b77d898f19de9dda541006179384b9ed02fa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 59490f8bb5ed93283a5d1be8073e5d34e46e64aefb05008ac07283a2c4cac8d35c07cb4f2436a75557709b7af7e59ba29d96629950c21a8f51d3a4471851bf2c
|
|
7
|
+
data.tar.gz: e55467c983471dafa766a3546d7fdcda6adb717b603b2e5465acd215e446c837dfd167c5a0a49079cc8b43a05dd30bba498618d05b3b1cc7b326def06e3c6580
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.176.0
|
|
@@ -43,13 +43,19 @@ module Aws::DynamoDB
|
|
|
43
43
|
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
|
44
44
|
raise ArgumentError, "Invalid Configuration: Dualstack and local endpoint are not supported"
|
|
45
45
|
end
|
|
46
|
-
return Aws::Endpoints::Endpoint.new(url: "http://localhost:8000", headers: {}, properties: {"authSchemes" => [{"signingRegion" => "us-east-1", "
|
|
46
|
+
return Aws::Endpoints::Endpoint.new(url: "http://localhost:8000", headers: {}, properties: {"authSchemes" => [{"signingRegion" => "us-east-1", "name" => "sigv4", "signingName" => "dynamodb"}]}, metadata: { account_id_endpoint: false })
|
|
47
47
|
end
|
|
48
48
|
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
|
49
49
|
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true) && Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"), true)
|
|
50
50
|
if Aws::Endpoints::Matchers.set?(parameters.account_id_endpoint_mode) && Aws::Endpoints::Matchers.string_equals?(parameters.account_id_endpoint_mode, "required")
|
|
51
51
|
raise ArgumentError, "Invalid Configuration: AccountIdEndpointMode is required and FIPS is enabled, but FIPS account endpoints are not supported"
|
|
52
52
|
end
|
|
53
|
+
if Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws")) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(parameters.region, "us-gov-east-1")) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(parameters.region, "us-gov-west-1")) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(parameters.region, "cn-north-1")) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(parameters.region, "cn-northwest-1"))
|
|
54
|
+
if Aws::Endpoints::Matchers.set?(parameters.is_search_operation) && Aws::Endpoints::Matchers.boolean_equals?(parameters.is_search_operation, true)
|
|
55
|
+
return Aws::Endpoints::Endpoint.new(url: "https://search-dynamodb-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
|
|
56
|
+
end
|
|
57
|
+
return Aws::Endpoints::Endpoint.new(url: "https://dynamodb-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
|
|
58
|
+
end
|
|
53
59
|
if Aws::Endpoints::Matchers.set?(parameters.is_search_operation) && Aws::Endpoints::Matchers.boolean_equals?(parameters.is_search_operation, true)
|
|
54
60
|
return Aws::Endpoints::Endpoint.new(url: "https://search-dynamodb-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
|
|
55
61
|
end
|
|
@@ -59,17 +65,26 @@ module Aws::DynamoDB
|
|
|
59
65
|
end
|
|
60
66
|
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
|
|
61
67
|
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
|
68
|
+
if Aws::Endpoints::Matchers.set?(parameters.account_id_endpoint_mode) && Aws::Endpoints::Matchers.string_equals?(parameters.account_id_endpoint_mode, "required")
|
|
69
|
+
raise ArgumentError, "Invalid Configuration: AccountIdEndpointMode is required and FIPS is enabled, but FIPS account endpoints are not supported"
|
|
70
|
+
end
|
|
62
71
|
if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-us-gov")
|
|
63
|
-
if Aws::Endpoints::Matchers.
|
|
64
|
-
|
|
72
|
+
if Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws")) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(parameters.region, "us-gov-east-1")) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(parameters.region, "us-gov-west-1")) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(parameters.region, "cn-north-1")) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(parameters.region, "cn-northwest-1"))
|
|
73
|
+
if Aws::Endpoints::Matchers.set?(parameters.is_search_operation) && Aws::Endpoints::Matchers.boolean_equals?(parameters.is_search_operation, true)
|
|
74
|
+
return Aws::Endpoints::Endpoint.new(url: "https://search-dynamodb.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
|
|
75
|
+
end
|
|
76
|
+
return Aws::Endpoints::Endpoint.new(url: "https://dynamodb.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
|
|
65
77
|
end
|
|
66
78
|
if Aws::Endpoints::Matchers.set?(parameters.is_search_operation) && Aws::Endpoints::Matchers.boolean_equals?(parameters.is_search_operation, true)
|
|
67
79
|
return Aws::Endpoints::Endpoint.new(url: "https://search-dynamodb.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
|
|
68
80
|
end
|
|
69
81
|
return Aws::Endpoints::Endpoint.new(url: "https://dynamodb.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
|
|
70
82
|
end
|
|
71
|
-
if Aws::Endpoints::Matchers.
|
|
72
|
-
|
|
83
|
+
if Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws")) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(parameters.region, "us-gov-east-1")) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(parameters.region, "us-gov-west-1")) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(parameters.region, "cn-north-1")) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(parameters.region, "cn-northwest-1"))
|
|
84
|
+
if Aws::Endpoints::Matchers.set?(parameters.is_search_operation) && Aws::Endpoints::Matchers.boolean_equals?(parameters.is_search_operation, true)
|
|
85
|
+
return Aws::Endpoints::Endpoint.new(url: "https://search-dynamodb-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
|
|
86
|
+
end
|
|
87
|
+
return Aws::Endpoints::Endpoint.new(url: "https://dynamodb-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
|
|
73
88
|
end
|
|
74
89
|
if Aws::Endpoints::Matchers.set?(parameters.is_search_operation) && Aws::Endpoints::Matchers.boolean_equals?(parameters.is_search_operation, true)
|
|
75
90
|
return Aws::Endpoints::Endpoint.new(url: "https://search-dynamodb-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
|
|
@@ -80,19 +95,28 @@ module Aws::DynamoDB
|
|
|
80
95
|
end
|
|
81
96
|
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
|
82
97
|
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"), true)
|
|
83
|
-
if Aws::Endpoints::Matchers.
|
|
98
|
+
if Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws")) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(parameters.region, "us-gov-east-1")) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(parameters.region, "us-gov-west-1")) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(parameters.region, "cn-north-1")) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(parameters.region, "cn-northwest-1"))
|
|
99
|
+
if Aws::Endpoints::Matchers.set?(parameters.account_id_endpoint_mode) && Aws::Endpoints::Matchers.string_equals?(parameters.account_id_endpoint_mode, "required")
|
|
100
|
+
raise ArgumentError, "Invalid Configuration: AccountIdEndpointMode is required but account endpoints are not supported in this region"
|
|
101
|
+
end
|
|
102
|
+
if Aws::Endpoints::Matchers.set?(parameters.is_search_operation) && Aws::Endpoints::Matchers.boolean_equals?(parameters.is_search_operation, true)
|
|
103
|
+
return Aws::Endpoints::Endpoint.new(url: "https://search-dynamodb.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
|
|
104
|
+
end
|
|
105
|
+
return Aws::Endpoints::Endpoint.new(url: "https://dynamodb.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
|
|
106
|
+
end
|
|
107
|
+
if Aws::Endpoints::Matchers.set?(parameters.account_id_endpoint_mode) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(parameters.account_id_endpoint_mode, "disabled")) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)) && Aws::Endpoints::Matchers.set?(parameters.resource_arn) && (parsed_arn = Aws::Endpoints::Matchers.aws_parse_arn(parameters.resource_arn)) && Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(parsed_arn, "service"), "dynamodb") && Aws::Endpoints::Matchers.valid_host_label?(Aws::Endpoints::Matchers.attr(parsed_arn, "region"), false) && Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(parsed_arn, "region"), "#{parameters.region}") && Aws::Endpoints::Matchers.valid_host_label?(Aws::Endpoints::Matchers.attr(parsed_arn, "accountId"), false)
|
|
84
108
|
if Aws::Endpoints::Matchers.set?(parameters.is_search_operation) && Aws::Endpoints::Matchers.boolean_equals?(parameters.is_search_operation, true)
|
|
85
109
|
return Aws::Endpoints::Endpoint.new(url: "https://#{parsed_arn['accountId']}.search-ddb.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {"metricValues" => ["O"]}, metadata: { account_id_endpoint: false })
|
|
86
110
|
end
|
|
87
111
|
return Aws::Endpoints::Endpoint.new(url: "https://#{parsed_arn['accountId']}.ddb.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {"metricValues" => ["O"]}, metadata: { account_id_endpoint: false })
|
|
88
112
|
end
|
|
89
|
-
if Aws::Endpoints::Matchers.set?(parameters.account_id_endpoint_mode) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(parameters.account_id_endpoint_mode, "disabled")) && Aws::Endpoints::Matchers.
|
|
113
|
+
if Aws::Endpoints::Matchers.set?(parameters.account_id_endpoint_mode) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(parameters.account_id_endpoint_mode, "disabled")) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)) && Aws::Endpoints::Matchers.set?(parameters.resource_arn_list) && (first_arn = Aws::Endpoints::Matchers.attr(parameters.resource_arn_list, "[0]")) && (parsed_arn = Aws::Endpoints::Matchers.aws_parse_arn(first_arn)) && Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(parsed_arn, "service"), "dynamodb") && Aws::Endpoints::Matchers.valid_host_label?(Aws::Endpoints::Matchers.attr(parsed_arn, "region"), false) && Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(parsed_arn, "region"), "#{parameters.region}") && Aws::Endpoints::Matchers.valid_host_label?(Aws::Endpoints::Matchers.attr(parsed_arn, "accountId"), false)
|
|
90
114
|
if Aws::Endpoints::Matchers.set?(parameters.is_search_operation) && Aws::Endpoints::Matchers.boolean_equals?(parameters.is_search_operation, true)
|
|
91
115
|
return Aws::Endpoints::Endpoint.new(url: "https://#{parsed_arn['accountId']}.search-ddb.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {"metricValues" => ["O"]}, metadata: { account_id_endpoint: false })
|
|
92
116
|
end
|
|
93
117
|
return Aws::Endpoints::Endpoint.new(url: "https://#{parsed_arn['accountId']}.ddb.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {"metricValues" => ["O"]}, metadata: { account_id_endpoint: false })
|
|
94
118
|
end
|
|
95
|
-
if Aws::Endpoints::Matchers.set?(parameters.account_id_endpoint_mode) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(parameters.account_id_endpoint_mode, "disabled")) && Aws::Endpoints::Matchers.
|
|
119
|
+
if Aws::Endpoints::Matchers.set?(parameters.account_id_endpoint_mode) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(parameters.account_id_endpoint_mode, "disabled")) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)) && Aws::Endpoints::Matchers.set?(parameters.account_id)
|
|
96
120
|
if Aws::Endpoints::Matchers.valid_host_label?(parameters.account_id, false)
|
|
97
121
|
if Aws::Endpoints::Matchers.set?(parameters.is_search_operation) && Aws::Endpoints::Matchers.boolean_equals?(parameters.is_search_operation, true)
|
|
98
122
|
return Aws::Endpoints::Endpoint.new(url: "https://#{parameters.account_id}.search-ddb.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {"metricValues" => ["O"]}, metadata: { account_id_endpoint: true })
|
|
@@ -102,13 +126,7 @@ module Aws::DynamoDB
|
|
|
102
126
|
raise ArgumentError, "Credentials-sourced account ID parameter is invalid"
|
|
103
127
|
end
|
|
104
128
|
if Aws::Endpoints::Matchers.set?(parameters.account_id_endpoint_mode) && Aws::Endpoints::Matchers.string_equals?(parameters.account_id_endpoint_mode, "required")
|
|
105
|
-
|
|
106
|
-
if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws")
|
|
107
|
-
raise ArgumentError, "AccountIdEndpointMode is required but no AccountID was provided or able to be loaded"
|
|
108
|
-
end
|
|
109
|
-
raise ArgumentError, "Invalid Configuration: AccountIdEndpointMode is required but account endpoints are not supported in this partition"
|
|
110
|
-
end
|
|
111
|
-
raise ArgumentError, "Invalid Configuration: AccountIdEndpointMode is required and FIPS is enabled, but FIPS account endpoints are not supported"
|
|
129
|
+
raise ArgumentError, "AccountIdEndpointMode is required but no AccountID was provided or able to be loaded"
|
|
112
130
|
end
|
|
113
131
|
if Aws::Endpoints::Matchers.set?(parameters.is_search_operation) && Aws::Endpoints::Matchers.boolean_equals?(parameters.is_search_operation, true)
|
|
114
132
|
return Aws::Endpoints::Endpoint.new(url: "https://search-dynamodb.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
|
|
@@ -117,19 +135,28 @@ module Aws::DynamoDB
|
|
|
117
135
|
end
|
|
118
136
|
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
|
119
137
|
end
|
|
120
|
-
if Aws::Endpoints::Matchers.
|
|
138
|
+
if Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws")) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(parameters.region, "us-gov-east-1")) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(parameters.region, "us-gov-west-1")) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(parameters.region, "cn-north-1")) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(parameters.region, "cn-northwest-1"))
|
|
139
|
+
if Aws::Endpoints::Matchers.set?(parameters.account_id_endpoint_mode) && Aws::Endpoints::Matchers.string_equals?(parameters.account_id_endpoint_mode, "required")
|
|
140
|
+
raise ArgumentError, "Invalid Configuration: AccountIdEndpointMode is required but account endpoints are not supported in this region"
|
|
141
|
+
end
|
|
142
|
+
if Aws::Endpoints::Matchers.set?(parameters.is_search_operation) && Aws::Endpoints::Matchers.boolean_equals?(parameters.is_search_operation, true)
|
|
143
|
+
return Aws::Endpoints::Endpoint.new(url: "https://search-dynamodb.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
|
|
144
|
+
end
|
|
145
|
+
return Aws::Endpoints::Endpoint.new(url: "https://dynamodb.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
|
|
146
|
+
end
|
|
147
|
+
if Aws::Endpoints::Matchers.set?(parameters.account_id_endpoint_mode) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(parameters.account_id_endpoint_mode, "disabled")) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)) && Aws::Endpoints::Matchers.set?(parameters.resource_arn) && (parsed_arn = Aws::Endpoints::Matchers.aws_parse_arn(parameters.resource_arn)) && Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(parsed_arn, "service"), "dynamodb") && Aws::Endpoints::Matchers.valid_host_label?(Aws::Endpoints::Matchers.attr(parsed_arn, "region"), false) && Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(parsed_arn, "region"), "#{parameters.region}") && Aws::Endpoints::Matchers.valid_host_label?(Aws::Endpoints::Matchers.attr(parsed_arn, "accountId"), false)
|
|
121
148
|
if Aws::Endpoints::Matchers.set?(parameters.is_search_operation) && Aws::Endpoints::Matchers.boolean_equals?(parameters.is_search_operation, true)
|
|
122
149
|
return Aws::Endpoints::Endpoint.new(url: "https://#{parsed_arn['accountId']}.search-ddb.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {"metricValues" => ["O"]}, metadata: { account_id_endpoint: false })
|
|
123
150
|
end
|
|
124
151
|
return Aws::Endpoints::Endpoint.new(url: "https://#{parsed_arn['accountId']}.ddb.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {"metricValues" => ["O"]}, metadata: { account_id_endpoint: false })
|
|
125
152
|
end
|
|
126
|
-
if Aws::Endpoints::Matchers.set?(parameters.account_id_endpoint_mode) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(parameters.account_id_endpoint_mode, "disabled")) && Aws::Endpoints::Matchers.
|
|
153
|
+
if Aws::Endpoints::Matchers.set?(parameters.account_id_endpoint_mode) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(parameters.account_id_endpoint_mode, "disabled")) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)) && Aws::Endpoints::Matchers.set?(parameters.resource_arn_list) && (first_arn = Aws::Endpoints::Matchers.attr(parameters.resource_arn_list, "[0]")) && (parsed_arn = Aws::Endpoints::Matchers.aws_parse_arn(first_arn)) && Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(parsed_arn, "service"), "dynamodb") && Aws::Endpoints::Matchers.valid_host_label?(Aws::Endpoints::Matchers.attr(parsed_arn, "region"), false) && Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(parsed_arn, "region"), "#{parameters.region}") && Aws::Endpoints::Matchers.valid_host_label?(Aws::Endpoints::Matchers.attr(parsed_arn, "accountId"), false)
|
|
127
154
|
if Aws::Endpoints::Matchers.set?(parameters.is_search_operation) && Aws::Endpoints::Matchers.boolean_equals?(parameters.is_search_operation, true)
|
|
128
155
|
return Aws::Endpoints::Endpoint.new(url: "https://#{parsed_arn['accountId']}.search-ddb.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {"metricValues" => ["O"]}, metadata: { account_id_endpoint: false })
|
|
129
156
|
end
|
|
130
157
|
return Aws::Endpoints::Endpoint.new(url: "https://#{parsed_arn['accountId']}.ddb.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {"metricValues" => ["O"]}, metadata: { account_id_endpoint: false })
|
|
131
158
|
end
|
|
132
|
-
if Aws::Endpoints::Matchers.set?(parameters.account_id_endpoint_mode) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(parameters.account_id_endpoint_mode, "disabled")) && Aws::Endpoints::Matchers.
|
|
159
|
+
if Aws::Endpoints::Matchers.set?(parameters.account_id_endpoint_mode) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.string_equals?(parameters.account_id_endpoint_mode, "disabled")) && Aws::Endpoints::Matchers.not(Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)) && Aws::Endpoints::Matchers.set?(parameters.account_id)
|
|
133
160
|
if Aws::Endpoints::Matchers.valid_host_label?(parameters.account_id, false)
|
|
134
161
|
if Aws::Endpoints::Matchers.set?(parameters.is_search_operation) && Aws::Endpoints::Matchers.boolean_equals?(parameters.is_search_operation, true)
|
|
135
162
|
return Aws::Endpoints::Endpoint.new(url: "https://#{parameters.account_id}.search-ddb.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {"metricValues" => ["O"]}, metadata: { account_id_endpoint: true })
|
|
@@ -139,13 +166,7 @@ module Aws::DynamoDB
|
|
|
139
166
|
raise ArgumentError, "Credentials-sourced account ID parameter is invalid"
|
|
140
167
|
end
|
|
141
168
|
if Aws::Endpoints::Matchers.set?(parameters.account_id_endpoint_mode) && Aws::Endpoints::Matchers.string_equals?(parameters.account_id_endpoint_mode, "required")
|
|
142
|
-
|
|
143
|
-
if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws")
|
|
144
|
-
raise ArgumentError, "AccountIdEndpointMode is required but no AccountID was provided or able to be loaded"
|
|
145
|
-
end
|
|
146
|
-
raise ArgumentError, "Invalid Configuration: AccountIdEndpointMode is required but account endpoints are not supported in this partition"
|
|
147
|
-
end
|
|
148
|
-
raise ArgumentError, "Invalid Configuration: AccountIdEndpointMode is required and FIPS is enabled, but FIPS account endpoints are not supported"
|
|
169
|
+
raise ArgumentError, "AccountIdEndpointMode is required but no AccountID was provided or able to be loaded"
|
|
149
170
|
end
|
|
150
171
|
if Aws::Endpoints::Matchers.set?(parameters.is_search_operation) && Aws::Endpoints::Matchers.boolean_equals?(parameters.is_search_operation, true)
|
|
151
172
|
return Aws::Endpoints::Endpoint.new(url: "https://search-dynamodb.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}, metadata: { account_id_endpoint: false })
|
data/lib/aws-sdk-dynamodb.rb
CHANGED
data/sig/errors.rbs
CHANGED
|
@@ -11,111 +11,111 @@ module Aws
|
|
|
11
11
|
class ServiceError < ::Aws::Errors::ServiceError
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
-
class BackupInUseException <
|
|
14
|
+
class BackupInUseException < ServiceError
|
|
15
15
|
def message: () -> ::String
|
|
16
16
|
end
|
|
17
|
-
class BackupNotFoundException <
|
|
17
|
+
class BackupNotFoundException < ServiceError
|
|
18
18
|
def message: () -> ::String
|
|
19
19
|
end
|
|
20
|
-
class ConditionalCheckFailedException <
|
|
20
|
+
class ConditionalCheckFailedException < ServiceError
|
|
21
21
|
def message: () -> ::String
|
|
22
22
|
def item: () -> ::String
|
|
23
23
|
end
|
|
24
|
-
class ContinuousBackupsUnavailableException <
|
|
24
|
+
class ContinuousBackupsUnavailableException < ServiceError
|
|
25
25
|
def message: () -> ::String
|
|
26
26
|
end
|
|
27
|
-
class DuplicateItemException <
|
|
27
|
+
class DuplicateItemException < ServiceError
|
|
28
28
|
def message: () -> ::String
|
|
29
29
|
end
|
|
30
|
-
class ExportConflictException <
|
|
30
|
+
class ExportConflictException < ServiceError
|
|
31
31
|
def message: () -> ::String
|
|
32
32
|
end
|
|
33
|
-
class ExportNotFoundException <
|
|
33
|
+
class ExportNotFoundException < ServiceError
|
|
34
34
|
def message: () -> ::String
|
|
35
35
|
end
|
|
36
|
-
class GlobalTableAlreadyExistsException <
|
|
36
|
+
class GlobalTableAlreadyExistsException < ServiceError
|
|
37
37
|
def message: () -> ::String
|
|
38
38
|
end
|
|
39
|
-
class GlobalTableNotFoundException <
|
|
39
|
+
class GlobalTableNotFoundException < ServiceError
|
|
40
40
|
def message: () -> ::String
|
|
41
41
|
end
|
|
42
|
-
class IdempotentParameterMismatchException <
|
|
42
|
+
class IdempotentParameterMismatchException < ServiceError
|
|
43
43
|
def message: () -> ::String
|
|
44
44
|
end
|
|
45
|
-
class ImportConflictException <
|
|
45
|
+
class ImportConflictException < ServiceError
|
|
46
46
|
def message: () -> ::String
|
|
47
47
|
end
|
|
48
|
-
class ImportNotFoundException <
|
|
48
|
+
class ImportNotFoundException < ServiceError
|
|
49
49
|
def message: () -> ::String
|
|
50
50
|
end
|
|
51
|
-
class IndexNotFoundException <
|
|
51
|
+
class IndexNotFoundException < ServiceError
|
|
52
52
|
def message: () -> ::String
|
|
53
53
|
end
|
|
54
|
-
class InternalServerError <
|
|
54
|
+
class InternalServerError < ServiceError
|
|
55
55
|
def message: () -> ::String
|
|
56
56
|
end
|
|
57
|
-
class InvalidExportTimeException <
|
|
57
|
+
class InvalidExportTimeException < ServiceError
|
|
58
58
|
def message: () -> ::String
|
|
59
59
|
end
|
|
60
|
-
class InvalidRestoreTimeException <
|
|
60
|
+
class InvalidRestoreTimeException < ServiceError
|
|
61
61
|
def message: () -> ::String
|
|
62
62
|
end
|
|
63
|
-
class ItemCollectionSizeLimitExceededException <
|
|
63
|
+
class ItemCollectionSizeLimitExceededException < ServiceError
|
|
64
64
|
def message: () -> ::String
|
|
65
65
|
end
|
|
66
|
-
class LimitExceededException <
|
|
66
|
+
class LimitExceededException < ServiceError
|
|
67
67
|
def message: () -> ::String
|
|
68
68
|
end
|
|
69
|
-
class PointInTimeRecoveryUnavailableException <
|
|
69
|
+
class PointInTimeRecoveryUnavailableException < ServiceError
|
|
70
70
|
def message: () -> ::String
|
|
71
71
|
end
|
|
72
|
-
class PolicyNotFoundException <
|
|
72
|
+
class PolicyNotFoundException < ServiceError
|
|
73
73
|
def message: () -> ::String
|
|
74
74
|
end
|
|
75
|
-
class ProvisionedThroughputExceededException <
|
|
75
|
+
class ProvisionedThroughputExceededException < ServiceError
|
|
76
76
|
def message: () -> ::String
|
|
77
77
|
def throttling_reasons: () -> ::String
|
|
78
78
|
end
|
|
79
|
-
class ReplicaAlreadyExistsException <
|
|
79
|
+
class ReplicaAlreadyExistsException < ServiceError
|
|
80
80
|
def message: () -> ::String
|
|
81
81
|
end
|
|
82
|
-
class ReplicaNotFoundException <
|
|
82
|
+
class ReplicaNotFoundException < ServiceError
|
|
83
83
|
def message: () -> ::String
|
|
84
84
|
end
|
|
85
|
-
class ReplicatedWriteConflictException <
|
|
85
|
+
class ReplicatedWriteConflictException < ServiceError
|
|
86
86
|
def message: () -> ::String
|
|
87
87
|
end
|
|
88
|
-
class RequestLimitExceeded <
|
|
88
|
+
class RequestLimitExceeded < ServiceError
|
|
89
89
|
def message: () -> ::String
|
|
90
90
|
def throttling_reasons: () -> ::String
|
|
91
91
|
end
|
|
92
|
-
class ResourceInUseException <
|
|
92
|
+
class ResourceInUseException < ServiceError
|
|
93
93
|
def message: () -> ::String
|
|
94
94
|
end
|
|
95
|
-
class ResourceNotFoundException <
|
|
95
|
+
class ResourceNotFoundException < ServiceError
|
|
96
96
|
def message: () -> ::String
|
|
97
97
|
end
|
|
98
|
-
class TableAlreadyExistsException <
|
|
98
|
+
class TableAlreadyExistsException < ServiceError
|
|
99
99
|
def message: () -> ::String
|
|
100
100
|
end
|
|
101
|
-
class TableInUseException <
|
|
101
|
+
class TableInUseException < ServiceError
|
|
102
102
|
def message: () -> ::String
|
|
103
103
|
end
|
|
104
|
-
class TableNotFoundException <
|
|
104
|
+
class TableNotFoundException < ServiceError
|
|
105
105
|
def message: () -> ::String
|
|
106
106
|
end
|
|
107
|
-
class ThrottlingException <
|
|
107
|
+
class ThrottlingException < ServiceError
|
|
108
108
|
def message: () -> ::String
|
|
109
109
|
def throttling_reasons: () -> ::String
|
|
110
110
|
end
|
|
111
|
-
class TransactionCanceledException <
|
|
111
|
+
class TransactionCanceledException < ServiceError
|
|
112
112
|
def message: () -> ::String
|
|
113
113
|
def cancellation_reasons: () -> ::String
|
|
114
114
|
end
|
|
115
|
-
class TransactionConflictException <
|
|
115
|
+
class TransactionConflictException < ServiceError
|
|
116
116
|
def message: () -> ::String
|
|
117
117
|
end
|
|
118
|
-
class TransactionInProgressException <
|
|
118
|
+
class TransactionInProgressException < ServiceError
|
|
119
119
|
def message: () -> ::String
|
|
120
120
|
end
|
|
121
121
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: aws-sdk-dynamodb
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.176.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.
|
|
21
|
+
version: 3.258.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.
|
|
31
|
+
version: 3.258.0
|
|
32
32
|
- !ruby/object:Gem::Dependency
|
|
33
33
|
name: aws-sigv4
|
|
34
34
|
requirement: !ruby/object:Gem::Requirement
|