aws-sdk-dynamodb 1.79.0 → 1.81.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4d60a5d95ffeb1237be50040d9965a23f98a97d332bcf126f396f3e79840f3d4
4
- data.tar.gz: ce3f5e07e5f38ff1ae93eaacd191038a737e7d6d3092ee609480902738c1d654
3
+ metadata.gz: 6cd7fd0494ab2f1fc9ecf5ae9f710878776f5bca2da717f4337d94cc4cf2945d
4
+ data.tar.gz: 5aa9b171740370a8fdc1b413be5b31d6a3ca41d802a106b5c84ef65ff98801b8
5
5
  SHA512:
6
- metadata.gz: 5a1f010e7405751c57081b45b41fa97e2d04e76c51724283f48e23b210029300e9ee4294462aa5aeaaa9e1ef1e98ea4f42befec48592e95309c3515ca152d334
7
- data.tar.gz: 1894e6f51432e3c02df1ceacc46f780280bd586e17499be466f9a1fa4047666b286be76c30960c487dfc6de0f5caafe850f50288788425f7da31a192c098da11
6
+ metadata.gz: 8675be1a64038f174cb51a16e0e45a0d25dcc09bdee0a09ea35bdfefa1c3f4771c4745d8ec0d7070048d9a7bf6c2f27e229b308d438ea470651f5c90695fc550
7
+ data.tar.gz: '099f941b83b515de7ce13b96c40be03a26fc7eb3df03e5ffb275d25df1c7befaf623d2c1665293bda5718da0f6e86bed8c57c60c0d3e67641fafb6c8d41e4156'
data/CHANGELOG.md CHANGED
@@ -1,6 +1,18 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.81.0 (2023-01-18)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ * Issue - Replace runtime endpoint resolution approach with generated ruby code.
10
+
11
+ 1.80.0 (2022-12-06)
12
+ ------------------
13
+
14
+ * Feature - Endpoint Ruleset update: Use http instead of https for the "local" region.
15
+
4
16
  1.79.0 (2022-11-18)
5
17
  ------------------
6
18
 
@@ -489,4 +501,4 @@ Unreleased Changes
489
501
  1.0.0.rc1 (2016-12-05)
490
502
  ------------------
491
503
 
492
- * Feature - Initial preview release of the `aws-sdk-dynamodb` gem.
504
+ * Feature - Initial preview release of the `aws-sdk-dynamodb` gem.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.79.0
1
+ 1.81.0
@@ -7648,7 +7648,7 @@ module Aws::DynamoDB
7648
7648
  params: params,
7649
7649
  config: config)
7650
7650
  context[:gem_name] = 'aws-sdk-dynamodb'
7651
- context[:gem_version] = '1.79.0'
7651
+ context[:gem_version] = '1.81.0'
7652
7652
  Seahorse::Client::Request.new(handlers, context)
7653
7653
  end
7654
7654
 
@@ -50,6 +50,9 @@ module Aws::DynamoDB
50
50
 
51
51
  def initialize(options = {})
52
52
  self[:region] = options[:region]
53
+ if self[:region].nil?
54
+ raise ArgumentError, "Missing required EndpointParameter: :region"
55
+ end
53
56
  self[:use_dual_stack] = options[:use_dual_stack]
54
57
  self[:use_dual_stack] = false if self[:use_dual_stack].nil?
55
58
  if self[:use_dual_stack].nil?
@@ -9,115 +9,49 @@
9
9
 
10
10
  module Aws::DynamoDB
11
11
  class EndpointProvider
12
- def initialize(rule_set = nil)
13
- @@rule_set ||= begin
14
- endpoint_rules = Aws::Json.load(Base64.decode64(RULES))
15
- Aws::Endpoints::RuleSet.new(
16
- version: endpoint_rules['version'],
17
- service_id: endpoint_rules['serviceId'],
18
- parameters: endpoint_rules['parameters'],
19
- rules: endpoint_rules['rules']
20
- )
12
+ def resolve_endpoint(parameters)
13
+ region = parameters.region
14
+ use_dual_stack = parameters.use_dual_stack
15
+ use_fips = parameters.use_fips
16
+ endpoint = parameters.endpoint
17
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
18
+ if Aws::Endpoints::Matchers.set?(endpoint)
19
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
20
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
21
+ end
22
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
23
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
24
+ end
25
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
26
+ end
27
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
28
+ 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"))
29
+ return Aws::Endpoints::Endpoint.new(url: "https://dynamodb-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
30
+ end
31
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
32
+ end
33
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
34
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
35
+ if Aws::Endpoints::Matchers.string_equals?("aws-us-gov", Aws::Endpoints::Matchers.attr(partition_result, "name"))
36
+ return Aws::Endpoints::Endpoint.new(url: "https://dynamodb.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
37
+ end
38
+ return Aws::Endpoints::Endpoint.new(url: "https://dynamodb-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
39
+ end
40
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
41
+ end
42
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
43
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
44
+ return Aws::Endpoints::Endpoint.new(url: "https://dynamodb.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
45
+ end
46
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
47
+ end
48
+ if Aws::Endpoints::Matchers.string_equals?(region, "local")
49
+ return Aws::Endpoints::Endpoint.new(url: "http://localhost:8000", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingRegion"=>"us-east-1", "signingName"=>"dynamodb"}]})
50
+ end
51
+ return Aws::Endpoints::Endpoint.new(url: "https://dynamodb.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
21
52
  end
22
- @provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
23
- end
53
+ raise ArgumentError, 'No endpoint could be resolved'
24
54
 
25
- def resolve_endpoint(parameters)
26
- @provider.resolve_endpoint(parameters)
27
55
  end
28
-
29
- # @api private
30
- RULES = <<-JSON
31
- eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
32
- bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOmZhbHNlLCJkb2N1bWVu
33
- dGF0aW9uIjoiVGhlIEFXUyByZWdpb24gdXNlZCB0byBkaXNwYXRjaCB0aGUg
34
- cmVxdWVzdC4iLCJ0eXBlIjoiU3RyaW5nIn0sIlVzZUR1YWxTdGFjayI6eyJi
35
- dWlsdEluIjoiQVdTOjpVc2VEdWFsU3RhY2siLCJyZXF1aXJlZCI6dHJ1ZSwi
36
- ZGVmYXVsdCI6ZmFsc2UsImRvY3VtZW50YXRpb24iOiJXaGVuIHRydWUsIHVz
37
- ZSB0aGUgZHVhbC1zdGFjayBlbmRwb2ludC4gSWYgdGhlIGNvbmZpZ3VyZWQg
38
- ZW5kcG9pbnQgZG9lcyBub3Qgc3VwcG9ydCBkdWFsLXN0YWNrLCBkaXNwYXRj
39
- aGluZyB0aGUgcmVxdWVzdCBNQVkgcmV0dXJuIGFuIGVycm9yLiIsInR5cGUi
40
- OiJCb29sZWFuIn0sIlVzZUZJUFMiOnsiYnVpbHRJbiI6IkFXUzo6VXNlRklQ
41
- UyIsInJlcXVpcmVkIjp0cnVlLCJkZWZhdWx0IjpmYWxzZS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BlbmFibGVkIGJ1dCB0aGlzIHBhcnRp
109
- dGlvbiBkb2VzIG5vdCBzdXBwb3J0IER1YWxTdGFjayIsInR5cGUiOiJlcnJv
110
- ciJ9XX0seyJjb25kaXRpb25zIjpbXSwidHlwZSI6InRyZWUiLCJydWxlcyI6
111
- W3siY29uZGl0aW9ucyI6W3siZm4iOiJzdHJpbmdFcXVhbHMiLCJhcmd2Ijpb
112
- eyJyZWYiOiJSZWdpb24ifSwibG9jYWwiXX1dLCJlbmRwb2ludCI6eyJ1cmwi
113
- OiJodHRwczovL2xvY2FsaG9zdDo4MDAwIiwicHJvcGVydGllcyI6eyJhdXRo
114
- U2NoZW1lcyI6W3sibmFtZSI6InNpZ3Y0Iiwic2lnbmluZ1JlZ2lvbiI6InVz
115
- LWVhc3QtMSIsInNpZ25pbmdOYW1lIjoiZHluYW1vZGIifV19LCJoZWFkZXJz
116
- Ijp7fX0sInR5cGUiOiJlbmRwb2ludCJ9LHsiY29uZGl0aW9ucyI6W10sImVu
117
- ZHBvaW50Ijp7InVybCI6Imh0dHBzOi8vZHluYW1vZGIue1JlZ2lvbn0ue1Bh
118
- cnRpdGlvblJlc3VsdCNkbnNTdWZmaXh9IiwicHJvcGVydGllcyI6e30sImhl
119
- YWRlcnMiOnt9fSwidHlwZSI6ImVuZHBvaW50In1dfV19XX0=
120
-
121
- JSON
122
56
  end
123
57
  end