aws-sdk-glacier 1.27.0 → 1.28.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: f480a340b8cfc70e0f8fe97da80a955942c56f01c3c58a71daaa80fec2185bd9
4
- data.tar.gz: 85357091032999177fd62fb97f6c260104585a7386932f1ced55b98e756f9e64
3
+ metadata.gz: c84d69a9f56ba7d384bf68453a87db16278b6e536b71416bc710a5c6cd5a8aad
4
+ data.tar.gz: b526ad69e26aa24f63303f5a0bdfedbe7d583a9f5bab5d81c2ef87b109e50618
5
5
  SHA512:
6
- metadata.gz: 639bf4bd747ce74626dadf28d755e9e8c6059d5cdb034c810f596390a79716b1274c431bead9e4ccbdd5ae433e01f10ba739a025ee188280a61c59747abff04e
7
- data.tar.gz: b91bcb03422a82728be18322b3749ad6fec5115addc4428f4160408d4c7a8f34a27d9c60ff4878553d89c467fe788569d8073c6408b06478234e1e096912f7ff
6
+ metadata.gz: aba4dd1050d5f624758efaa87a819a5dde3a15e73698bf3805db815c63850f35d33e7a0a13a45e7862ea63eebe50b9d9a33542d03af69aed16cc30066cb84104
7
+ data.tar.gz: 3e8907d44df163fa3a1d4db309c367a0cf313d968ac5a68dd075f61d62ef293f114326b6c00a361ae1aa00a18ab92c2ac6763990612e962347c3639270f8b6a6
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-glacier/customizations'
52
52
  # @service
53
53
  module Aws::Glacier
54
54
 
55
- GEM_VERSION = '1.27.0'
55
+ GEM_VERSION = '1.28.0'
56
56
 
57
57
  end
@@ -65,7 +65,8 @@ module Aws::Glacier
65
65
  # Waiter polls an API operation until a resource enters a desired
66
66
  # state.
67
67
  #
68
- # @note The waiting operation is performed on a copy. The original resource remains unchanged
68
+ # @note The waiting operation is performed on a copy. The original resource
69
+ # remains unchanged.
69
70
  #
70
71
  # ## Basic Usage
71
72
  #
@@ -78,13 +79,15 @@ module Aws::Glacier
78
79
  #
79
80
  # ## Example
80
81
  #
81
- # instance.wait_until(max_attempts:10, delay:5) {|instance| instance.state.name == 'running' }
82
+ # instance.wait_until(max_attempts:10, delay:5) do |instance|
83
+ # instance.state.name == 'running'
84
+ # end
82
85
  #
83
86
  # ## Configuration
84
87
  #
85
88
  # You can configure the maximum number of polling attempts, and the
86
- # delay (in seconds) between each polling attempt. The waiting condition is set
87
- # by passing a block to {#wait_until}:
89
+ # delay (in seconds) between each polling attempt. The waiting condition is
90
+ # set by passing a block to {#wait_until}:
88
91
  #
89
92
  # # poll for ~25 seconds
90
93
  # resource.wait_until(max_attempts:5,delay:5) {|resource|...}
@@ -115,17 +118,16 @@ module Aws::Glacier
115
118
  # # resource did not enter the desired state in time
116
119
  # end
117
120
  #
121
+ # @yieldparam [Resource] resource to be used in the waiting condition.
118
122
  #
119
- # @yield param [Resource] resource to be used in the waiting condition
120
- #
121
- # @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter terminates
122
- # because the waiter has entered a state that it will not transition
123
- # out of, preventing success.
123
+ # @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter
124
+ # terminates because the waiter has entered a state that it will not
125
+ # transition out of, preventing success.
124
126
  #
125
127
  # yet successful.
126
128
  #
127
- # @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is encountered
128
- # while polling for a resource that is not expected.
129
+ # @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
130
+ # encountered while polling for a resource that is not expected.
129
131
  #
130
132
  # @raise [NotImplementedError] Raised when the resource does not
131
133
  #
@@ -81,7 +81,8 @@ module Aws::Glacier
81
81
  # Waiter polls an API operation until a resource enters a desired
82
82
  # state.
83
83
  #
84
- # @note The waiting operation is performed on a copy. The original resource remains unchanged
84
+ # @note The waiting operation is performed on a copy. The original resource
85
+ # remains unchanged.
85
86
  #
86
87
  # ## Basic Usage
87
88
  #
@@ -94,13 +95,15 @@ module Aws::Glacier
94
95
  #
95
96
  # ## Example
96
97
  #
97
- # instance.wait_until(max_attempts:10, delay:5) {|instance| instance.state.name == 'running' }
98
+ # instance.wait_until(max_attempts:10, delay:5) do |instance|
99
+ # instance.state.name == 'running'
100
+ # end
98
101
  #
99
102
  # ## Configuration
100
103
  #
101
104
  # You can configure the maximum number of polling attempts, and the
102
- # delay (in seconds) between each polling attempt. The waiting condition is set
103
- # by passing a block to {#wait_until}:
105
+ # delay (in seconds) between each polling attempt. The waiting condition is
106
+ # set by passing a block to {#wait_until}:
104
107
  #
105
108
  # # poll for ~25 seconds
106
109
  # resource.wait_until(max_attempts:5,delay:5) {|resource|...}
@@ -131,17 +134,16 @@ module Aws::Glacier
131
134
  # # resource did not enter the desired state in time
132
135
  # end
133
136
  #
137
+ # @yieldparam [Resource] resource to be used in the waiting condition.
134
138
  #
135
- # @yield param [Resource] resource to be used in the waiting condition
136
- #
137
- # @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter terminates
138
- # because the waiter has entered a state that it will not transition
139
- # out of, preventing success.
139
+ # @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter
140
+ # terminates because the waiter has entered a state that it will not
141
+ # transition out of, preventing success.
140
142
  #
141
143
  # yet successful.
142
144
  #
143
- # @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is encountered
144
- # while polling for a resource that is not expected.
145
+ # @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
146
+ # encountered while polling for a resource that is not expected.
145
147
  #
146
148
  # @raise [NotImplementedError] Raised when the resource does not
147
149
  #
@@ -111,7 +111,7 @@ module Aws::Glacier
111
111
  # @option options [required, String] :region
112
112
  # The AWS region to connect to. The configured `:region` is
113
113
  # used to determine the service `:endpoint`. When not passed,
114
- # a default `:region` is search for in the following locations:
114
+ # a default `:region` is searched for in the following locations:
115
115
  #
116
116
  # * `Aws.config[:region]`
117
117
  # * `ENV['AWS_REGION']`
@@ -172,7 +172,7 @@ module Aws::Glacier
172
172
  # @option options [String] :endpoint
173
173
  # The client endpoint is normally constructed from the `:region`
174
174
  # option. You should only configure an `:endpoint` when connecting
175
- # to test endpoints. This should be avalid HTTP(S) URI.
175
+ # to test endpoints. This should be a valid HTTP(S) URI.
176
176
  #
177
177
  # @option options [Integer] :endpoint_cache_max_entries (1000)
178
178
  # Used for the maximum size limit of the LRU cache storing endpoints data
@@ -280,8 +280,7 @@ module Aws::Glacier
280
280
  #
281
281
  # @option options [Integer] :http_read_timeout (60) The default
282
282
  # number of seconds to wait for response data. This value can
283
- # safely be set
284
- # per-request on the session yielded by {#session_for}.
283
+ # safely be set per-request on the session.
285
284
  #
286
285
  # @option options [Float] :http_idle_timeout (5) The number of
287
286
  # seconds a connection is allowed to sit idle before it is
@@ -293,7 +292,7 @@ module Aws::Glacier
293
292
  # request body. This option has no effect unless the request has
294
293
  # "Expect" header set to "100-continue". Defaults to `nil` which
295
294
  # disables this behaviour. This value can safely be set per
296
- # request on the session yielded by {#session_for}.
295
+ # request on the session.
297
296
  #
298
297
  # @option options [Boolean] :http_wire_trace (false) When `true`,
299
298
  # HTTP debug output will be sent to the `:logger`.
@@ -1287,6 +1286,12 @@ module Aws::Glacier
1287
1286
  # resp.number_of_archives #=> Integer
1288
1287
  # resp.size_in_bytes #=> Integer
1289
1288
  #
1289
+ #
1290
+ # The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
1291
+ #
1292
+ # * vault_exists
1293
+ # * vault_not_exists
1294
+ #
1290
1295
  # @overload describe_vault(params = {})
1291
1296
  # @param [Hash] params ({})
1292
1297
  def describe_vault(params = {}, options = {})
@@ -2174,6 +2179,8 @@ module Aws::Glacier
2174
2179
  # * {Types::ListJobsOutput#job_list #job_list} => Array<Types::GlacierJobDescription>
2175
2180
  # * {Types::ListJobsOutput#marker #marker} => String
2176
2181
  #
2182
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2183
+ #
2177
2184
  #
2178
2185
  # @example Example: To list jobs for a vault
2179
2186
  #
@@ -2359,6 +2366,8 @@ module Aws::Glacier
2359
2366
  # * {Types::ListMultipartUploadsOutput#uploads_list #uploads_list} => Array<Types::UploadListElement>
2360
2367
  # * {Types::ListMultipartUploadsOutput#marker #marker} => String
2361
2368
  #
2369
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2370
+ #
2362
2371
  #
2363
2372
  # @example Example: To list all the in-progress multipart uploads for a vault
2364
2373
  #
@@ -2491,6 +2500,8 @@ module Aws::Glacier
2491
2500
  # * {Types::ListPartsOutput#parts #parts} => Array<Types::PartListElement>
2492
2501
  # * {Types::ListPartsOutput#marker #marker} => String
2493
2502
  #
2503
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2504
+ #
2494
2505
  #
2495
2506
  # @example Example: To list the parts of an archive that have been uploaded in a multipart upload
2496
2507
  #
@@ -2721,6 +2732,8 @@ module Aws::Glacier
2721
2732
  # * {Types::ListVaultsOutput#vault_list #vault_list} => Array<Types::DescribeVaultOutput>
2722
2733
  # * {Types::ListVaultsOutput#marker #marker} => String
2723
2734
  #
2735
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2736
+ #
2724
2737
  #
2725
2738
  # @example Example: To list all vaults owned by the calling user's account
2726
2739
  #
@@ -3346,7 +3359,7 @@ module Aws::Glacier
3346
3359
  params: params,
3347
3360
  config: config)
3348
3361
  context[:gem_name] = 'aws-sdk-glacier'
3349
- context[:gem_version] = '1.27.0'
3362
+ context[:gem_version] = '1.28.0'
3350
3363
  Seahorse::Client::Request.new(handlers, context)
3351
3364
  end
3352
3365
 
@@ -3412,10 +3425,10 @@ module Aws::Glacier
3412
3425
  # The following table lists the valid waiter names, the operations they call,
3413
3426
  # and the default `:delay` and `:max_attempts` values.
3414
3427
  #
3415
- # | waiter_name | params | :delay | :max_attempts |
3416
- # | ---------------- | ----------------- | -------- | ------------- |
3417
- # | vault_exists | {#describe_vault} | 3 | 15 |
3418
- # | vault_not_exists | {#describe_vault} | 3 | 15 |
3428
+ # | waiter_name | params | :delay | :max_attempts |
3429
+ # | ---------------- | ----------------------- | -------- | ------------- |
3430
+ # | vault_exists | {Client#describe_vault} | 3 | 15 |
3431
+ # | vault_not_exists | {Client#describe_vault} | 3 | 15 |
3419
3432
  #
3420
3433
  # @raise [Errors::FailureStateError] Raised when the waiter terminates
3421
3434
  # because the waiter has entered a state that it will not transition
@@ -258,7 +258,8 @@ module Aws::Glacier
258
258
  # Waiter polls an API operation until a resource enters a desired
259
259
  # state.
260
260
  #
261
- # @note The waiting operation is performed on a copy. The original resource remains unchanged
261
+ # @note The waiting operation is performed on a copy. The original resource
262
+ # remains unchanged.
262
263
  #
263
264
  # ## Basic Usage
264
265
  #
@@ -271,13 +272,15 @@ module Aws::Glacier
271
272
  #
272
273
  # ## Example
273
274
  #
274
- # instance.wait_until(max_attempts:10, delay:5) {|instance| instance.state.name == 'running' }
275
+ # instance.wait_until(max_attempts:10, delay:5) do |instance|
276
+ # instance.state.name == 'running'
277
+ # end
275
278
  #
276
279
  # ## Configuration
277
280
  #
278
281
  # You can configure the maximum number of polling attempts, and the
279
- # delay (in seconds) between each polling attempt. The waiting condition is set
280
- # by passing a block to {#wait_until}:
282
+ # delay (in seconds) between each polling attempt. The waiting condition is
283
+ # set by passing a block to {#wait_until}:
281
284
  #
282
285
  # # poll for ~25 seconds
283
286
  # resource.wait_until(max_attempts:5,delay:5) {|resource|...}
@@ -308,17 +311,16 @@ module Aws::Glacier
308
311
  # # resource did not enter the desired state in time
309
312
  # end
310
313
  #
314
+ # @yieldparam [Resource] resource to be used in the waiting condition.
311
315
  #
312
- # @yield param [Resource] resource to be used in the waiting condition
313
- #
314
- # @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter terminates
315
- # because the waiter has entered a state that it will not transition
316
- # out of, preventing success.
316
+ # @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter
317
+ # terminates because the waiter has entered a state that it will not
318
+ # transition out of, preventing success.
317
319
  #
318
320
  # yet successful.
319
321
  #
320
- # @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is encountered
321
- # while polling for a resource that is not expected.
322
+ # @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
323
+ # encountered while polling for a resource that is not expected.
322
324
  #
323
325
  # @raise [NotImplementedError] Raised when the resource does not
324
326
  #
@@ -111,7 +111,8 @@ module Aws::Glacier
111
111
  # Waiter polls an API operation until a resource enters a desired
112
112
  # state.
113
113
  #
114
- # @note The waiting operation is performed on a copy. The original resource remains unchanged
114
+ # @note The waiting operation is performed on a copy. The original resource
115
+ # remains unchanged.
115
116
  #
116
117
  # ## Basic Usage
117
118
  #
@@ -124,13 +125,15 @@ module Aws::Glacier
124
125
  #
125
126
  # ## Example
126
127
  #
127
- # instance.wait_until(max_attempts:10, delay:5) {|instance| instance.state.name == 'running' }
128
+ # instance.wait_until(max_attempts:10, delay:5) do |instance|
129
+ # instance.state.name == 'running'
130
+ # end
128
131
  #
129
132
  # ## Configuration
130
133
  #
131
134
  # You can configure the maximum number of polling attempts, and the
132
- # delay (in seconds) between each polling attempt. The waiting condition is set
133
- # by passing a block to {#wait_until}:
135
+ # delay (in seconds) between each polling attempt. The waiting condition is
136
+ # set by passing a block to {#wait_until}:
134
137
  #
135
138
  # # poll for ~25 seconds
136
139
  # resource.wait_until(max_attempts:5,delay:5) {|resource|...}
@@ -161,17 +164,16 @@ module Aws::Glacier
161
164
  # # resource did not enter the desired state in time
162
165
  # end
163
166
  #
167
+ # @yieldparam [Resource] resource to be used in the waiting condition.
164
168
  #
165
- # @yield param [Resource] resource to be used in the waiting condition
166
- #
167
- # @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter terminates
168
- # because the waiter has entered a state that it will not transition
169
- # out of, preventing success.
169
+ # @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter
170
+ # terminates because the waiter has entered a state that it will not
171
+ # transition out of, preventing success.
170
172
  #
171
173
  # yet successful.
172
174
  #
173
- # @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is encountered
174
- # while polling for a resource that is not expected.
175
+ # @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
176
+ # encountered while polling for a resource that is not expected.
175
177
  #
176
178
  # @raise [NotImplementedError] Raised when the resource does not
177
179
  #
@@ -97,7 +97,8 @@ module Aws::Glacier
97
97
  # Waiter polls an API operation until a resource enters a desired
98
98
  # state.
99
99
  #
100
- # @note The waiting operation is performed on a copy. The original resource remains unchanged
100
+ # @note The waiting operation is performed on a copy. The original resource
101
+ # remains unchanged.
101
102
  #
102
103
  # ## Basic Usage
103
104
  #
@@ -110,13 +111,15 @@ module Aws::Glacier
110
111
  #
111
112
  # ## Example
112
113
  #
113
- # instance.wait_until(max_attempts:10, delay:5) {|instance| instance.state.name == 'running' }
114
+ # instance.wait_until(max_attempts:10, delay:5) do |instance|
115
+ # instance.state.name == 'running'
116
+ # end
114
117
  #
115
118
  # ## Configuration
116
119
  #
117
120
  # You can configure the maximum number of polling attempts, and the
118
- # delay (in seconds) between each polling attempt. The waiting condition is set
119
- # by passing a block to {#wait_until}:
121
+ # delay (in seconds) between each polling attempt. The waiting condition is
122
+ # set by passing a block to {#wait_until}:
120
123
  #
121
124
  # # poll for ~25 seconds
122
125
  # resource.wait_until(max_attempts:5,delay:5) {|resource|...}
@@ -147,17 +150,16 @@ module Aws::Glacier
147
150
  # # resource did not enter the desired state in time
148
151
  # end
149
152
  #
153
+ # @yieldparam [Resource] resource to be used in the waiting condition.
150
154
  #
151
- # @yield param [Resource] resource to be used in the waiting condition
152
- #
153
- # @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter terminates
154
- # because the waiter has entered a state that it will not transition
155
- # out of, preventing success.
155
+ # @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter
156
+ # terminates because the waiter has entered a state that it will not
157
+ # transition out of, preventing success.
156
158
  #
157
159
  # yet successful.
158
160
  #
159
- # @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is encountered
160
- # while polling for a resource that is not expected.
161
+ # @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
162
+ # encountered while polling for a resource that is not expected.
161
163
  #
162
164
  # @raise [NotImplementedError] Raised when the resource does not
163
165
  #
@@ -6,13 +6,18 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::Glacier
9
+
9
10
  # This class provides a resource oriented interface for Glacier.
10
11
  # To create a resource object:
12
+ #
11
13
  # resource = Aws::Glacier::Resource.new(region: 'us-west-2')
14
+ #
12
15
  # You can supply a client object with custom configuration that will be used for all resource operations.
13
- # If you do not pass +:client+, a default client will be constructed.
16
+ # If you do not pass `:client`, a default client will be constructed.
17
+ #
14
18
  # client = Aws::Glacier::Client.new(region: 'us-west-2')
15
19
  # resource = Aws::Glacier::Resource.new(client: client)
20
+ #
16
21
  class Resource
17
22
 
18
23
  # @param options ({})
@@ -122,7 +122,8 @@ module Aws::Glacier
122
122
  # Waiter polls an API operation until a resource enters a desired
123
123
  # state.
124
124
  #
125
- # @note The waiting operation is performed on a copy. The original resource remains unchanged
125
+ # @note The waiting operation is performed on a copy. The original resource
126
+ # remains unchanged.
126
127
  #
127
128
  # ## Basic Usage
128
129
  #
@@ -135,13 +136,15 @@ module Aws::Glacier
135
136
  #
136
137
  # ## Example
137
138
  #
138
- # instance.wait_until(max_attempts:10, delay:5) {|instance| instance.state.name == 'running' }
139
+ # instance.wait_until(max_attempts:10, delay:5) do |instance|
140
+ # instance.state.name == 'running'
141
+ # end
139
142
  #
140
143
  # ## Configuration
141
144
  #
142
145
  # You can configure the maximum number of polling attempts, and the
143
- # delay (in seconds) between each polling attempt. The waiting condition is set
144
- # by passing a block to {#wait_until}:
146
+ # delay (in seconds) between each polling attempt. The waiting condition is
147
+ # set by passing a block to {#wait_until}:
145
148
  #
146
149
  # # poll for ~25 seconds
147
150
  # resource.wait_until(max_attempts:5,delay:5) {|resource|...}
@@ -172,17 +175,16 @@ module Aws::Glacier
172
175
  # # resource did not enter the desired state in time
173
176
  # end
174
177
  #
178
+ # @yieldparam [Resource] resource to be used in the waiting condition.
175
179
  #
176
- # @yield param [Resource] resource to be used in the waiting condition
177
- #
178
- # @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter terminates
179
- # because the waiter has entered a state that it will not transition
180
- # out of, preventing success.
180
+ # @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter
181
+ # terminates because the waiter has entered a state that it will not
182
+ # transition out of, preventing success.
181
183
  #
182
184
  # yet successful.
183
185
  #
184
- # @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is encountered
185
- # while polling for a resource that is not expected.
186
+ # @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
187
+ # encountered while polling for a resource that is not expected.
186
188
  #
187
189
  # @raise [NotImplementedError] Raised when the resource does not
188
190
  #
@@ -8,6 +8,68 @@
8
8
  require 'aws-sdk-core/waiters'
9
9
 
10
10
  module Aws::Glacier
11
+ # Waiters are utility methods that poll for a particular state to occur
12
+ # on a client. Waiters can fail after a number of attempts at a polling
13
+ # interval defined for the service client.
14
+ #
15
+ # For a list of operations that can be waited for and the
16
+ # client methods called for each operation, see the table below or the
17
+ # {Client#wait_until} field documentation for the {Client}.
18
+ #
19
+ # # Invoking a Waiter
20
+ # To invoke a waiter, call #wait_until on a {Client}. The first parameter
21
+ # is the waiter name, which is specific to the service client and indicates
22
+ # which operation is being waited for. The second parameter is a hash of
23
+ # parameters that are passed to the client method called by the waiter,
24
+ # which varies according to the waiter name.
25
+ #
26
+ # # Wait Failures
27
+ # To catch errors in a waiter, use WaiterFailed,
28
+ # as shown in the following example.
29
+ #
30
+ # rescue rescue Aws::Waiters::Errors::WaiterFailed => error
31
+ # puts "failed waiting for instance running: #{error.message}
32
+ # end
33
+ #
34
+ # # Configuring a Waiter
35
+ # Each waiter has a default polling interval and a maximum number of
36
+ # attempts it will make before returning control to your program.
37
+ # To set these values, use the `max_attempts` and `delay` parameters
38
+ # in your `#wait_until` call.
39
+ # The following example waits for up to 25 seconds, polling every five seconds.
40
+ #
41
+ # client.wait_until(...) do |w|
42
+ # w.max_attempts = 5
43
+ # w.delay = 5
44
+ # end
45
+ #
46
+ # To disable wait failures, set the value of either of these parameters
47
+ # to `nil`.
48
+ #
49
+ # # Extending a Waiter
50
+ # To modify the behavior of waiters, you can register callbacks that are
51
+ # triggered before each polling attempt and before waiting.
52
+ #
53
+ # The following example implements an exponential backoff in a waiter
54
+ # by doubling the amount of time to wait on every attempt.
55
+ #
56
+ # client.wait_until(...) do |w|
57
+ # w.interval = 0 # disable normal sleep
58
+ # w.before_wait do |n, resp|
59
+ # sleep(n ** 2)
60
+ # end
61
+ # end
62
+ #
63
+ # # Available Waiters
64
+ #
65
+ # The following table lists the valid waiter names, the operations they call,
66
+ # and the default `:delay` and `:max_attempts` values.
67
+ #
68
+ # | waiter_name | params | :delay | :max_attempts |
69
+ # | ---------------- | ----------------------- | -------- | ------------- |
70
+ # | vault_exists | {Client#describe_vault} | 3 | 15 |
71
+ # | vault_not_exists | {Client#describe_vault} | 3 | 15 |
72
+ #
11
73
  module Waiters
12
74
 
13
75
  class VaultExists
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-glacier
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.27.0
4
+ version: 1.28.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-16 00:00:00.000000000 Z
11
+ date: 2020-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -91,7 +91,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
91
91
  - !ruby/object:Gem::Version
92
92
  version: '0'
93
93
  requirements: []
94
- rubygems_version: 3.0.3
94
+ rubyforge_project:
95
+ rubygems_version: 2.7.6.2
95
96
  signing_key:
96
97
  specification_version: 4
97
98
  summary: AWS SDK for Ruby - Amazon Glacier