aws-sdk-dynamodb 1.160.0 → 1.161.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: 328b95af51efd052b90a860661c477ade29547c57899c415aaaada0dd0dfb891
4
- data.tar.gz: 5d8b0883789e0b5afc9e393ec1ff114e07aa2e737a250832beef6f814ac1911f
3
+ metadata.gz: 405c55d5daa2c9637f99a654498881dfff1a407c52a5a7908d3c73484443faa2
4
+ data.tar.gz: bfead9b7c9124258ab0b4d16d6c14f8dd60688c852a3162fa10ea209220422a1
5
5
  SHA512:
6
- metadata.gz: 94dc77750c6968aafcdddeadd8770ac13260492391fa933f77a3d3a861092471e5c24d2e7ab3d321120976c2c45325d21648b87e274ffea39bfb9acecf5ec03b
7
- data.tar.gz: 92813244d0564949dae20102b490ee745c90003b03ec9a383ef6e0a6809a825fe2b2b5c9189be8b9fa533b1d70af69bfbdeddb29f8f470c99eecbb4358e1f9f9
6
+ metadata.gz: 134d067ba18da31b896eaf6a031c51d17c20202cde858e24fe5e6658ad06b1a94551e127e9569ce7cd9025e8d3fe8dbb9268b9632e1660e9a51de1a5552bf36b
7
+ data.tar.gz: ceaa7a495cc2483fef01ee8ce9feafbebd9e62cf2039e75ef114c68ba6c729c5c497735dfa4c0bfeb05d147a06669250f5264331652c1c51fd6dee949a90e236
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.161.0 (2026-01-22)
5
+ ------------------
6
+
7
+ * Feature - Adds additional waiters to Amazon DynamoDB.
8
+
4
9
  1.160.0 (2026-01-16)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.160.0
1
+ 1.161.0
@@ -2669,6 +2669,11 @@ module Aws::DynamoDB
2669
2669
  # resp.failure_exception.exception_description #=> String
2670
2670
  # resp.contributor_insights_mode #=> String, one of "ACCESSED_AND_THROTTLED_KEYS", "THROTTLED_KEYS"
2671
2671
  #
2672
+ #
2673
+ # The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
2674
+ #
2675
+ # * contributor_insights_enabled
2676
+ #
2672
2677
  # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/DescribeContributorInsights AWS API Documentation
2673
2678
  #
2674
2679
  # @overload describe_contributor_insights(params = {})
@@ -2745,6 +2750,11 @@ module Aws::DynamoDB
2745
2750
  # resp.export_description.incremental_export_specification.export_to_time #=> Time
2746
2751
  # resp.export_description.incremental_export_specification.export_view_type #=> String, one of "NEW_IMAGE", "NEW_AND_OLD_IMAGES"
2747
2752
  #
2753
+ #
2754
+ # The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
2755
+ #
2756
+ # * export_completed
2757
+ #
2748
2758
  # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/DescribeExport AWS API Documentation
2749
2759
  #
2750
2760
  # @overload describe_export(params = {})
@@ -2993,6 +3003,11 @@ module Aws::DynamoDB
2993
3003
  # resp.import_table_description.failure_code #=> String
2994
3004
  # resp.import_table_description.failure_message #=> String
2995
3005
  #
3006
+ #
3007
+ # The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
3008
+ #
3009
+ # * import_completed
3010
+ #
2996
3011
  # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/DescribeImport AWS API Documentation
2997
3012
  #
2998
3013
  # @overload describe_import(params = {})
@@ -3028,6 +3043,11 @@ module Aws::DynamoDB
3028
3043
  # resp.kinesis_data_stream_destinations[0].destination_status_description #=> String
3029
3044
  # resp.kinesis_data_stream_destinations[0].approximate_creation_date_time_precision #=> String, one of "MILLISECOND", "MICROSECOND"
3030
3045
  #
3046
+ #
3047
+ # The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
3048
+ #
3049
+ # * kinesis_streaming_destination_active
3050
+ #
3031
3051
  # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/DescribeKinesisStreamingDestination AWS API Documentation
3032
3052
  #
3033
3053
  # @overload describe_kinesis_streaming_destination(params = {})
@@ -8681,7 +8701,7 @@ module Aws::DynamoDB
8681
8701
  tracer: tracer
8682
8702
  )
8683
8703
  context[:gem_name] = 'aws-sdk-dynamodb'
8684
- context[:gem_version] = '1.160.0'
8704
+ context[:gem_version] = '1.161.0'
8685
8705
  Seahorse::Client::Request.new(handlers, context)
8686
8706
  end
8687
8707
 
@@ -8747,10 +8767,14 @@ module Aws::DynamoDB
8747
8767
  # The following table lists the valid waiter names, the operations they call,
8748
8768
  # and the default `:delay` and `:max_attempts` values.
8749
8769
  #
8750
- # | waiter_name | params | :delay | :max_attempts |
8751
- # | ---------------- | ----------------------- | -------- | ------------- |
8752
- # | table_exists | {Client#describe_table} | 20 | 25 |
8753
- # | table_not_exists | {Client#describe_table} | 20 | 25 |
8770
+ # | waiter_name | params | :delay | :max_attempts |
8771
+ # | ------------------------------------ | ----------------------------------------------- | -------- | ------------- |
8772
+ # | contributor_insights_enabled | {Client#describe_contributor_insights} | 20 | 30 |
8773
+ # | export_completed | {Client#describe_export} | 20 | 60 |
8774
+ # | import_completed | {Client#describe_import} | 20 | 60 |
8775
+ # | kinesis_streaming_destination_active | {Client#describe_kinesis_streaming_destination} | 20 | 30 |
8776
+ # | table_exists | {Client#describe_table} | 20 | 25 |
8777
+ # | table_not_exists | {Client#describe_table} | 20 | 25 |
8754
8778
  #
8755
8779
  # @raise [Errors::FailureStateError] Raised when the waiter terminates
8756
8780
  # because the waiter has entered a state that it will not transition
@@ -8801,6 +8825,10 @@ module Aws::DynamoDB
8801
8825
 
8802
8826
  def waiters
8803
8827
  {
8828
+ contributor_insights_enabled: Waiters::ContributorInsightsEnabled,
8829
+ export_completed: Waiters::ExportCompleted,
8830
+ import_completed: Waiters::ImportCompleted,
8831
+ kinesis_streaming_destination_active: Waiters::KinesisStreamingDestinationActive,
8804
8832
  table_exists: Waiters::TableExists,
8805
8833
  table_not_exists: Waiters::TableNotExists
8806
8834
  }
@@ -40,7 +40,7 @@ module Aws::DynamoDB
40
40
  if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
41
41
  raise ArgumentError, "Invalid Configuration: Dualstack and local endpoint are not supported"
42
42
  end
43
- return Aws::Endpoints::Endpoint.new(url: "http://localhost:8000", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "signingName" => "dynamodb", "signingRegion" => "us-east-1"}]}, metadata: { account_id_endpoint: false })
43
+ return Aws::Endpoints::Endpoint.new(url: "http://localhost:8000", headers: {}, properties: {"authSchemes" => [{"name" => "sigv4", "signingRegion" => "us-east-1", "signingName" => "dynamodb"}]}, metadata: { account_id_endpoint: false })
44
44
  end
45
45
  if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
46
46
  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)
@@ -67,13 +67,199 @@ module Aws::DynamoDB
67
67
  # The following table lists the valid waiter names, the operations they call,
68
68
  # and the default `:delay` and `:max_attempts` values.
69
69
  #
70
- # | waiter_name | params | :delay | :max_attempts |
71
- # | ---------------- | ----------------------- | -------- | ------------- |
72
- # | table_exists | {Client#describe_table} | 20 | 25 |
73
- # | table_not_exists | {Client#describe_table} | 20 | 25 |
70
+ # | waiter_name | params | :delay | :max_attempts |
71
+ # | ------------------------------------ | ----------------------------------------------- | -------- | ------------- |
72
+ # | contributor_insights_enabled | {Client#describe_contributor_insights} | 20 | 30 |
73
+ # | export_completed | {Client#describe_export} | 20 | 60 |
74
+ # | import_completed | {Client#describe_import} | 20 | 60 |
75
+ # | kinesis_streaming_destination_active | {Client#describe_kinesis_streaming_destination} | 20 | 30 |
76
+ # | table_exists | {Client#describe_table} | 20 | 25 |
77
+ # | table_not_exists | {Client#describe_table} | 20 | 25 |
74
78
  #
75
79
  module Waiters
76
80
 
81
+ class ContributorInsightsEnabled
82
+
83
+ # @param [Hash] options
84
+ # @option options [required, Client] :client
85
+ # @option options [Integer] :max_attempts (30)
86
+ # @option options [Integer] :delay (20)
87
+ # @option options [Proc] :before_attempt
88
+ # @option options [Proc] :before_wait
89
+ def initialize(options)
90
+ @client = options.fetch(:client)
91
+ @waiter = Aws::Waiters::Waiter.new({
92
+ max_attempts: 30,
93
+ delay: 20,
94
+ poller: Aws::Waiters::Poller.new(
95
+ operation_name: :describe_contributor_insights,
96
+ acceptors: [
97
+ {
98
+ "state" => "success",
99
+ "matcher" => "path",
100
+ "argument" => "contributor_insights_status",
101
+ "expected" => "ENABLED"
102
+ },
103
+ {
104
+ "state" => "failure",
105
+ "matcher" => "path",
106
+ "argument" => "contributor_insights_status",
107
+ "expected" => "FAILED"
108
+ }
109
+ ]
110
+ )
111
+ }.merge(options))
112
+ end
113
+
114
+ # @option (see Client#describe_contributor_insights)
115
+ # @return (see Client#describe_contributor_insights)
116
+ def wait(params = {})
117
+ @waiter.wait(client: @client, params: params)
118
+ end
119
+
120
+ # @api private
121
+ attr_reader :waiter
122
+
123
+ end
124
+
125
+ class ExportCompleted
126
+
127
+ # @param [Hash] options
128
+ # @option options [required, Client] :client
129
+ # @option options [Integer] :max_attempts (60)
130
+ # @option options [Integer] :delay (20)
131
+ # @option options [Proc] :before_attempt
132
+ # @option options [Proc] :before_wait
133
+ def initialize(options)
134
+ @client = options.fetch(:client)
135
+ @waiter = Aws::Waiters::Waiter.new({
136
+ max_attempts: 60,
137
+ delay: 20,
138
+ poller: Aws::Waiters::Poller.new(
139
+ operation_name: :describe_export,
140
+ acceptors: [
141
+ {
142
+ "state" => "success",
143
+ "matcher" => "path",
144
+ "argument" => "export_description.export_status",
145
+ "expected" => "COMPLETED"
146
+ },
147
+ {
148
+ "state" => "failure",
149
+ "matcher" => "path",
150
+ "argument" => "export_description.export_status",
151
+ "expected" => "FAILED"
152
+ }
153
+ ]
154
+ )
155
+ }.merge(options))
156
+ end
157
+
158
+ # @option (see Client#describe_export)
159
+ # @return (see Client#describe_export)
160
+ def wait(params = {})
161
+ @waiter.wait(client: @client, params: params)
162
+ end
163
+
164
+ # @api private
165
+ attr_reader :waiter
166
+
167
+ end
168
+
169
+ class ImportCompleted
170
+
171
+ # @param [Hash] options
172
+ # @option options [required, Client] :client
173
+ # @option options [Integer] :max_attempts (60)
174
+ # @option options [Integer] :delay (20)
175
+ # @option options [Proc] :before_attempt
176
+ # @option options [Proc] :before_wait
177
+ def initialize(options)
178
+ @client = options.fetch(:client)
179
+ @waiter = Aws::Waiters::Waiter.new({
180
+ max_attempts: 60,
181
+ delay: 20,
182
+ poller: Aws::Waiters::Poller.new(
183
+ operation_name: :describe_import,
184
+ acceptors: [
185
+ {
186
+ "state" => "success",
187
+ "matcher" => "path",
188
+ "argument" => "import_table_description.import_status",
189
+ "expected" => "COMPLETED"
190
+ },
191
+ {
192
+ "state" => "failure",
193
+ "matcher" => "path",
194
+ "argument" => "import_table_description.import_status",
195
+ "expected" => "FAILED"
196
+ },
197
+ {
198
+ "state" => "failure",
199
+ "matcher" => "path",
200
+ "argument" => "import_table_description.import_status",
201
+ "expected" => "CANCELLED"
202
+ }
203
+ ]
204
+ )
205
+ }.merge(options))
206
+ end
207
+
208
+ # @option (see Client#describe_import)
209
+ # @return (see Client#describe_import)
210
+ def wait(params = {})
211
+ @waiter.wait(client: @client, params: params)
212
+ end
213
+
214
+ # @api private
215
+ attr_reader :waiter
216
+
217
+ end
218
+
219
+ class KinesisStreamingDestinationActive
220
+
221
+ # @param [Hash] options
222
+ # @option options [required, Client] :client
223
+ # @option options [Integer] :max_attempts (30)
224
+ # @option options [Integer] :delay (20)
225
+ # @option options [Proc] :before_attempt
226
+ # @option options [Proc] :before_wait
227
+ def initialize(options)
228
+ @client = options.fetch(:client)
229
+ @waiter = Aws::Waiters::Waiter.new({
230
+ max_attempts: 30,
231
+ delay: 20,
232
+ poller: Aws::Waiters::Poller.new(
233
+ operation_name: :describe_kinesis_streaming_destination,
234
+ acceptors: [
235
+ {
236
+ "state" => "success",
237
+ "matcher" => "pathAny",
238
+ "argument" => "kinesis_data_stream_destinations[].destination_status",
239
+ "expected" => "ACTIVE"
240
+ },
241
+ {
242
+ "state" => "failure",
243
+ "matcher" => "path",
244
+ "argument" => "length(kinesis_data_stream_destinations) > `0` && length(kinesis_data_stream_destinations[?destination_status == 'DISABLED' || destination_status == 'ENABLE_FAILED']) == length(kinesis_data_stream_destinations)",
245
+ "expected" => true
246
+ }
247
+ ]
248
+ )
249
+ }.merge(options))
250
+ end
251
+
252
+ # @option (see Client#describe_kinesis_streaming_destination)
253
+ # @return (see Client#describe_kinesis_streaming_destination)
254
+ def wait(params = {})
255
+ @waiter.wait(client: @client, params: params)
256
+ end
257
+
258
+ # @api private
259
+ attr_reader :waiter
260
+
261
+ end
262
+
77
263
  class TableExists
78
264
 
79
265
  # @param [Hash] options
@@ -56,7 +56,7 @@ module Aws::DynamoDB
56
56
  autoload :Endpoints, 'aws-sdk-dynamodb/endpoints'
57
57
  autoload :Table, 'aws-sdk-dynamodb/table'
58
58
 
59
- GEM_VERSION = '1.160.0'
59
+ GEM_VERSION = '1.161.0'
60
60
 
61
61
  end
62
62
 
data/sig/client.rbs CHANGED
@@ -1534,7 +1534,24 @@ module Aws
1534
1534
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateTimeToLiveResponseSuccess
1535
1535
 
1536
1536
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/DynamoDB/Client.html#wait_until-instance_method
1537
- def wait_until: (:table_exists waiter_name,
1537
+ def wait_until: (:contributor_insights_enabled waiter_name,
1538
+ table_name: ::String,
1539
+ ?index_name: ::String
1540
+ ) -> Client::_DescribeContributorInsightsResponseSuccess
1541
+ | (:contributor_insights_enabled waiter_name, Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> Client::_DescribeContributorInsightsResponseSuccess
1542
+ | (:export_completed waiter_name,
1543
+ export_arn: ::String
1544
+ ) -> Client::_DescribeExportResponseSuccess
1545
+ | (:export_completed waiter_name, Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> Client::_DescribeExportResponseSuccess
1546
+ | (:import_completed waiter_name,
1547
+ import_arn: ::String
1548
+ ) -> Client::_DescribeImportResponseSuccess
1549
+ | (:import_completed waiter_name, Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> Client::_DescribeImportResponseSuccess
1550
+ | (:kinesis_streaming_destination_active waiter_name,
1551
+ table_name: ::String
1552
+ ) -> Client::_DescribeKinesisStreamingDestinationResponseSuccess
1553
+ | (:kinesis_streaming_destination_active waiter_name, Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> Client::_DescribeKinesisStreamingDestinationResponseSuccess
1554
+ | (:table_exists waiter_name,
1538
1555
  table_name: ::String
1539
1556
  ) -> Client::_DescribeTableResponseSuccess
1540
1557
  | (:table_exists waiter_name, Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> Client::_DescribeTableResponseSuccess
data/sig/waiters.rbs CHANGED
@@ -9,6 +9,47 @@ module Aws
9
9
  module DynamoDB
10
10
  module Waiters
11
11
 
12
+ class ContributorInsightsEnabled
13
+ def initialize: (?client: Client, ?max_attempts: Integer, ?delay: Integer, ?before_attempt: Proc, ?before_wait: Proc) -> void
14
+ | (?Hash[Symbol, untyped]) -> void
15
+
16
+ def wait: (
17
+ table_name: ::String,
18
+ ?index_name: ::String
19
+ ) -> Client::_DescribeContributorInsightsResponseSuccess
20
+ | (Hash[Symbol, untyped]) -> Client::_DescribeContributorInsightsResponseSuccess
21
+ end
22
+
23
+ class ExportCompleted
24
+ def initialize: (?client: Client, ?max_attempts: Integer, ?delay: Integer, ?before_attempt: Proc, ?before_wait: Proc) -> void
25
+ | (?Hash[Symbol, untyped]) -> void
26
+
27
+ def wait: (
28
+ export_arn: ::String
29
+ ) -> Client::_DescribeExportResponseSuccess
30
+ | (Hash[Symbol, untyped]) -> Client::_DescribeExportResponseSuccess
31
+ end
32
+
33
+ class ImportCompleted
34
+ def initialize: (?client: Client, ?max_attempts: Integer, ?delay: Integer, ?before_attempt: Proc, ?before_wait: Proc) -> void
35
+ | (?Hash[Symbol, untyped]) -> void
36
+
37
+ def wait: (
38
+ import_arn: ::String
39
+ ) -> Client::_DescribeImportResponseSuccess
40
+ | (Hash[Symbol, untyped]) -> Client::_DescribeImportResponseSuccess
41
+ end
42
+
43
+ class KinesisStreamingDestinationActive
44
+ def initialize: (?client: Client, ?max_attempts: Integer, ?delay: Integer, ?before_attempt: Proc, ?before_wait: Proc) -> void
45
+ | (?Hash[Symbol, untyped]) -> void
46
+
47
+ def wait: (
48
+ table_name: ::String
49
+ ) -> Client::_DescribeKinesisStreamingDestinationResponseSuccess
50
+ | (Hash[Symbol, untyped]) -> Client::_DescribeKinesisStreamingDestinationResponseSuccess
51
+ end
52
+
12
53
  class TableExists
13
54
  def initialize: (?client: Client, ?max_attempts: Integer, ?delay: Integer, ?before_attempt: Proc, ?before_wait: Proc) -> void
14
55
  | (?Hash[Symbol, untyped]) -> void
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.160.0
4
+ version: 1.161.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services