aws-sdk-iam 1.34.0 → 1.35.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/lib/aws-sdk-iam.rb +1 -1
- data/lib/aws-sdk-iam/access_key.rb +13 -11
- data/lib/aws-sdk-iam/access_key_pair.rb +13 -11
- data/lib/aws-sdk-iam/account_password_policy.rb +13 -11
- data/lib/aws-sdk-iam/account_summary.rb +13 -11
- data/lib/aws-sdk-iam/assume_role_policy.rb +13 -11
- data/lib/aws-sdk-iam/client.rb +107 -25
- data/lib/aws-sdk-iam/current_user.rb +13 -11
- data/lib/aws-sdk-iam/group.rb +13 -11
- data/lib/aws-sdk-iam/group_policy.rb +13 -11
- data/lib/aws-sdk-iam/instance_profile.rb +16 -12
- data/lib/aws-sdk-iam/login_profile.rb +13 -11
- data/lib/aws-sdk-iam/mfa_device.rb +13 -11
- data/lib/aws-sdk-iam/policy.rb +13 -11
- data/lib/aws-sdk-iam/policy_version.rb +13 -11
- data/lib/aws-sdk-iam/resource.rb +6 -1
- data/lib/aws-sdk-iam/role.rb +13 -11
- data/lib/aws-sdk-iam/role_policy.rb +13 -11
- data/lib/aws-sdk-iam/saml_provider.rb +13 -11
- data/lib/aws-sdk-iam/server_certificate.rb +13 -11
- data/lib/aws-sdk-iam/signing_certificate.rb +13 -11
- data/lib/aws-sdk-iam/types.rb +11 -5
- data/lib/aws-sdk-iam/user.rb +16 -12
- data/lib/aws-sdk-iam/user_policy.rb +13 -11
- data/lib/aws-sdk-iam/virtual_mfa_device.rb +13 -11
- data/lib/aws-sdk-iam/waiters.rb +64 -0
- metadata +2 -2
data/lib/aws-sdk-iam/role.rb
CHANGED
@@ -182,7 +182,8 @@ module Aws::IAM
|
|
182
182
|
# Waiter polls an API operation until a resource enters a desired
|
183
183
|
# state.
|
184
184
|
#
|
185
|
-
# @note The waiting operation is performed on a copy. The original resource
|
185
|
+
# @note The waiting operation is performed on a copy. The original resource
|
186
|
+
# remains unchanged.
|
186
187
|
#
|
187
188
|
# ## Basic Usage
|
188
189
|
#
|
@@ -195,13 +196,15 @@ module Aws::IAM
|
|
195
196
|
#
|
196
197
|
# ## Example
|
197
198
|
#
|
198
|
-
# instance.wait_until(max_attempts:10, delay:5)
|
199
|
+
# instance.wait_until(max_attempts:10, delay:5) do |instance|
|
200
|
+
# instance.state.name == 'running'
|
201
|
+
# end
|
199
202
|
#
|
200
203
|
# ## Configuration
|
201
204
|
#
|
202
205
|
# You can configure the maximum number of polling attempts, and the
|
203
|
-
# delay (in seconds) between each polling attempt. The waiting condition is
|
204
|
-
# by passing a block to {#wait_until}:
|
206
|
+
# delay (in seconds) between each polling attempt. The waiting condition is
|
207
|
+
# set by passing a block to {#wait_until}:
|
205
208
|
#
|
206
209
|
# # poll for ~25 seconds
|
207
210
|
# resource.wait_until(max_attempts:5,delay:5) {|resource|...}
|
@@ -232,17 +235,16 @@ module Aws::IAM
|
|
232
235
|
# # resource did not enter the desired state in time
|
233
236
|
# end
|
234
237
|
#
|
238
|
+
# @yieldparam [Resource] resource to be used in the waiting condition.
|
235
239
|
#
|
236
|
-
# @
|
237
|
-
#
|
238
|
-
#
|
239
|
-
# because the waiter has entered a state that it will not transition
|
240
|
-
# out of, preventing success.
|
240
|
+
# @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter
|
241
|
+
# terminates because the waiter has entered a state that it will not
|
242
|
+
# transition out of, preventing success.
|
241
243
|
#
|
242
244
|
# yet successful.
|
243
245
|
#
|
244
|
-
# @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
|
245
|
-
# while polling for a resource that is not expected.
|
246
|
+
# @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
|
247
|
+
# encountered while polling for a resource that is not expected.
|
246
248
|
#
|
247
249
|
# @raise [NotImplementedError] Raised when the resource does not
|
248
250
|
#
|
@@ -95,7 +95,8 @@ module Aws::IAM
|
|
95
95
|
# Waiter polls an API operation until a resource enters a desired
|
96
96
|
# state.
|
97
97
|
#
|
98
|
-
# @note The waiting operation is performed on a copy. The original resource
|
98
|
+
# @note The waiting operation is performed on a copy. The original resource
|
99
|
+
# remains unchanged.
|
99
100
|
#
|
100
101
|
# ## Basic Usage
|
101
102
|
#
|
@@ -108,13 +109,15 @@ module Aws::IAM
|
|
108
109
|
#
|
109
110
|
# ## Example
|
110
111
|
#
|
111
|
-
# instance.wait_until(max_attempts:10, delay:5)
|
112
|
+
# instance.wait_until(max_attempts:10, delay:5) do |instance|
|
113
|
+
# instance.state.name == 'running'
|
114
|
+
# end
|
112
115
|
#
|
113
116
|
# ## Configuration
|
114
117
|
#
|
115
118
|
# You can configure the maximum number of polling attempts, and the
|
116
|
-
# delay (in seconds) between each polling attempt. The waiting condition is
|
117
|
-
# by passing a block to {#wait_until}:
|
119
|
+
# delay (in seconds) between each polling attempt. The waiting condition is
|
120
|
+
# set by passing a block to {#wait_until}:
|
118
121
|
#
|
119
122
|
# # poll for ~25 seconds
|
120
123
|
# resource.wait_until(max_attempts:5,delay:5) {|resource|...}
|
@@ -145,17 +148,16 @@ module Aws::IAM
|
|
145
148
|
# # resource did not enter the desired state in time
|
146
149
|
# end
|
147
150
|
#
|
151
|
+
# @yieldparam [Resource] resource to be used in the waiting condition.
|
148
152
|
#
|
149
|
-
# @
|
150
|
-
#
|
151
|
-
#
|
152
|
-
# because the waiter has entered a state that it will not transition
|
153
|
-
# out of, preventing success.
|
153
|
+
# @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter
|
154
|
+
# terminates because the waiter has entered a state that it will not
|
155
|
+
# transition out of, preventing success.
|
154
156
|
#
|
155
157
|
# yet successful.
|
156
158
|
#
|
157
|
-
# @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
|
158
|
-
# while polling for a resource that is not expected.
|
159
|
+
# @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
|
160
|
+
# encountered while polling for a resource that is not expected.
|
159
161
|
#
|
160
162
|
# @raise [NotImplementedError] Raised when the resource does not
|
161
163
|
#
|
@@ -91,7 +91,8 @@ module Aws::IAM
|
|
91
91
|
# Waiter polls an API operation until a resource enters a desired
|
92
92
|
# state.
|
93
93
|
#
|
94
|
-
# @note The waiting operation is performed on a copy. The original resource
|
94
|
+
# @note The waiting operation is performed on a copy. The original resource
|
95
|
+
# remains unchanged.
|
95
96
|
#
|
96
97
|
# ## Basic Usage
|
97
98
|
#
|
@@ -104,13 +105,15 @@ module Aws::IAM
|
|
104
105
|
#
|
105
106
|
# ## Example
|
106
107
|
#
|
107
|
-
# instance.wait_until(max_attempts:10, delay:5)
|
108
|
+
# instance.wait_until(max_attempts:10, delay:5) do |instance|
|
109
|
+
# instance.state.name == 'running'
|
110
|
+
# end
|
108
111
|
#
|
109
112
|
# ## Configuration
|
110
113
|
#
|
111
114
|
# You can configure the maximum number of polling attempts, and the
|
112
|
-
# delay (in seconds) between each polling attempt. The waiting condition is
|
113
|
-
# by passing a block to {#wait_until}:
|
115
|
+
# delay (in seconds) between each polling attempt. The waiting condition is
|
116
|
+
# set by passing a block to {#wait_until}:
|
114
117
|
#
|
115
118
|
# # poll for ~25 seconds
|
116
119
|
# resource.wait_until(max_attempts:5,delay:5) {|resource|...}
|
@@ -141,17 +144,16 @@ module Aws::IAM
|
|
141
144
|
# # resource did not enter the desired state in time
|
142
145
|
# end
|
143
146
|
#
|
147
|
+
# @yieldparam [Resource] resource to be used in the waiting condition.
|
144
148
|
#
|
145
|
-
# @
|
146
|
-
#
|
147
|
-
#
|
148
|
-
# because the waiter has entered a state that it will not transition
|
149
|
-
# out of, preventing success.
|
149
|
+
# @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter
|
150
|
+
# terminates because the waiter has entered a state that it will not
|
151
|
+
# transition out of, preventing success.
|
150
152
|
#
|
151
153
|
# yet successful.
|
152
154
|
#
|
153
|
-
# @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
|
154
|
-
# while polling for a resource that is not expected.
|
155
|
+
# @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
|
156
|
+
# encountered while polling for a resource that is not expected.
|
155
157
|
#
|
156
158
|
# @raise [NotImplementedError] Raised when the resource does not
|
157
159
|
#
|
@@ -91,7 +91,8 @@ module Aws::IAM
|
|
91
91
|
# Waiter polls an API operation until a resource enters a desired
|
92
92
|
# state.
|
93
93
|
#
|
94
|
-
# @note The waiting operation is performed on a copy. The original resource
|
94
|
+
# @note The waiting operation is performed on a copy. The original resource
|
95
|
+
# remains unchanged.
|
95
96
|
#
|
96
97
|
# ## Basic Usage
|
97
98
|
#
|
@@ -104,13 +105,15 @@ module Aws::IAM
|
|
104
105
|
#
|
105
106
|
# ## Example
|
106
107
|
#
|
107
|
-
# instance.wait_until(max_attempts:10, delay:5)
|
108
|
+
# instance.wait_until(max_attempts:10, delay:5) do |instance|
|
109
|
+
# instance.state.name == 'running'
|
110
|
+
# end
|
108
111
|
#
|
109
112
|
# ## Configuration
|
110
113
|
#
|
111
114
|
# You can configure the maximum number of polling attempts, and the
|
112
|
-
# delay (in seconds) between each polling attempt. The waiting condition is
|
113
|
-
# by passing a block to {#wait_until}:
|
115
|
+
# delay (in seconds) between each polling attempt. The waiting condition is
|
116
|
+
# set by passing a block to {#wait_until}:
|
114
117
|
#
|
115
118
|
# # poll for ~25 seconds
|
116
119
|
# resource.wait_until(max_attempts:5,delay:5) {|resource|...}
|
@@ -141,17 +144,16 @@ module Aws::IAM
|
|
141
144
|
# # resource did not enter the desired state in time
|
142
145
|
# end
|
143
146
|
#
|
147
|
+
# @yieldparam [Resource] resource to be used in the waiting condition.
|
144
148
|
#
|
145
|
-
# @
|
146
|
-
#
|
147
|
-
#
|
148
|
-
# because the waiter has entered a state that it will not transition
|
149
|
-
# out of, preventing success.
|
149
|
+
# @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter
|
150
|
+
# terminates because the waiter has entered a state that it will not
|
151
|
+
# transition out of, preventing success.
|
150
152
|
#
|
151
153
|
# yet successful.
|
152
154
|
#
|
153
|
-
# @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
|
154
|
-
# while polling for a resource that is not expected.
|
155
|
+
# @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
|
156
|
+
# encountered while polling for a resource that is not expected.
|
155
157
|
#
|
156
158
|
# @raise [NotImplementedError] Raised when the resource does not
|
157
159
|
#
|
@@ -95,7 +95,8 @@ module Aws::IAM
|
|
95
95
|
# Waiter polls an API operation until a resource enters a desired
|
96
96
|
# state.
|
97
97
|
#
|
98
|
-
# @note The waiting operation is performed on a copy. The original resource
|
98
|
+
# @note The waiting operation is performed on a copy. The original resource
|
99
|
+
# remains unchanged.
|
99
100
|
#
|
100
101
|
# ## Basic Usage
|
101
102
|
#
|
@@ -108,13 +109,15 @@ module Aws::IAM
|
|
108
109
|
#
|
109
110
|
# ## Example
|
110
111
|
#
|
111
|
-
# instance.wait_until(max_attempts:10, delay:5)
|
112
|
+
# instance.wait_until(max_attempts:10, delay:5) do |instance|
|
113
|
+
# instance.state.name == 'running'
|
114
|
+
# end
|
112
115
|
#
|
113
116
|
# ## Configuration
|
114
117
|
#
|
115
118
|
# You can configure the maximum number of polling attempts, and the
|
116
|
-
# delay (in seconds) between each polling attempt. The waiting condition is
|
117
|
-
# by passing a block to {#wait_until}:
|
119
|
+
# delay (in seconds) between each polling attempt. The waiting condition is
|
120
|
+
# set by passing a block to {#wait_until}:
|
118
121
|
#
|
119
122
|
# # poll for ~25 seconds
|
120
123
|
# resource.wait_until(max_attempts:5,delay:5) {|resource|...}
|
@@ -145,17 +148,16 @@ module Aws::IAM
|
|
145
148
|
# # resource did not enter the desired state in time
|
146
149
|
# end
|
147
150
|
#
|
151
|
+
# @yieldparam [Resource] resource to be used in the waiting condition.
|
148
152
|
#
|
149
|
-
# @
|
150
|
-
#
|
151
|
-
#
|
152
|
-
# because the waiter has entered a state that it will not transition
|
153
|
-
# out of, preventing success.
|
153
|
+
# @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter
|
154
|
+
# terminates because the waiter has entered a state that it will not
|
155
|
+
# transition out of, preventing success.
|
154
156
|
#
|
155
157
|
# yet successful.
|
156
158
|
#
|
157
|
-
# @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
|
158
|
-
# while polling for a resource that is not expected.
|
159
|
+
# @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
|
160
|
+
# encountered while polling for a resource that is not expected.
|
159
161
|
#
|
160
162
|
# @raise [NotImplementedError] Raised when the resource does not
|
161
163
|
#
|
data/lib/aws-sdk-iam/types.rb
CHANGED
@@ -600,8 +600,8 @@ module Aws::IAM
|
|
600
600
|
# is used when evaluating the `Condition` elements of the input
|
601
601
|
# policies.
|
602
602
|
#
|
603
|
-
# This data type is used as an input parameter to
|
604
|
-
#
|
603
|
+
# This data type is used as an input parameter to SimulateCustomPolicy
|
604
|
+
# and SimulatePrincipalPolicy.
|
605
605
|
#
|
606
606
|
# @note When making an API call, you may pass ContextEntry
|
607
607
|
# data as a hash:
|
@@ -3021,8 +3021,11 @@ module Aws::IAM
|
|
3021
3021
|
end
|
3022
3022
|
|
3023
3023
|
# @!attribute [rw] job_id
|
3024
|
-
# The
|
3025
|
-
# GetServiceLastAccessedDetailsWithEntities operations.
|
3024
|
+
# The `JobId` that you can use in the GetServiceLastAccessedDetails or
|
3025
|
+
# GetServiceLastAccessedDetailsWithEntities operations. The `JobId`
|
3026
|
+
# returned by `GenerateServiceLastAccessedDetail` must be used by the
|
3027
|
+
# same role within a session, or by the same user when used to call
|
3028
|
+
# `GetServiceLastAccessedDetail`.
|
3026
3029
|
# @return [String]
|
3027
3030
|
#
|
3028
3031
|
# @see http://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GenerateServiceLastAccessedDetailsResponse AWS API Documentation
|
@@ -4134,7 +4137,10 @@ module Aws::IAM
|
|
4134
4137
|
#
|
4135
4138
|
# @!attribute [rw] job_id
|
4136
4139
|
# The ID of the request generated by the
|
4137
|
-
# GenerateServiceLastAccessedDetails operation.
|
4140
|
+
# GenerateServiceLastAccessedDetails operation. The `JobId` returned
|
4141
|
+
# by `GenerateServiceLastAccessedDetail` must be used by the same role
|
4142
|
+
# within a session, or by the same user when used to call
|
4143
|
+
# `GetServiceLastAccessedDetail`.
|
4138
4144
|
# @return [String]
|
4139
4145
|
#
|
4140
4146
|
# @!attribute [rw] max_items
|
data/lib/aws-sdk-iam/user.rb
CHANGED
@@ -205,7 +205,8 @@ module Aws::IAM
|
|
205
205
|
# Waiter polls an API operation until a resource enters a desired
|
206
206
|
# state.
|
207
207
|
#
|
208
|
-
# @note The waiting operation is performed on a copy. The original resource
|
208
|
+
# @note The waiting operation is performed on a copy. The original resource
|
209
|
+
# remains unchanged.
|
209
210
|
#
|
210
211
|
# ## Basic Usage
|
211
212
|
#
|
@@ -218,13 +219,15 @@ module Aws::IAM
|
|
218
219
|
#
|
219
220
|
# ## Example
|
220
221
|
#
|
221
|
-
# instance.wait_until(max_attempts:10, delay:5)
|
222
|
+
# instance.wait_until(max_attempts:10, delay:5) do |instance|
|
223
|
+
# instance.state.name == 'running'
|
224
|
+
# end
|
222
225
|
#
|
223
226
|
# ## Configuration
|
224
227
|
#
|
225
228
|
# You can configure the maximum number of polling attempts, and the
|
226
|
-
# delay (in seconds) between each polling attempt. The waiting condition is
|
227
|
-
# by passing a block to {#wait_until}:
|
229
|
+
# delay (in seconds) between each polling attempt. The waiting condition is
|
230
|
+
# set by passing a block to {#wait_until}:
|
228
231
|
#
|
229
232
|
# # poll for ~25 seconds
|
230
233
|
# resource.wait_until(max_attempts:5,delay:5) {|resource|...}
|
@@ -255,17 +258,16 @@ module Aws::IAM
|
|
255
258
|
# # resource did not enter the desired state in time
|
256
259
|
# end
|
257
260
|
#
|
261
|
+
# @yieldparam [Resource] resource to be used in the waiting condition.
|
258
262
|
#
|
259
|
-
# @
|
260
|
-
#
|
261
|
-
#
|
262
|
-
# because the waiter has entered a state that it will not transition
|
263
|
-
# out of, preventing success.
|
263
|
+
# @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter
|
264
|
+
# terminates because the waiter has entered a state that it will not
|
265
|
+
# transition out of, preventing success.
|
264
266
|
#
|
265
267
|
# yet successful.
|
266
268
|
#
|
267
|
-
# @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
|
268
|
-
# while polling for a resource that is not expected.
|
269
|
+
# @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
|
270
|
+
# encountered while polling for a resource that is not expected.
|
269
271
|
#
|
270
272
|
# @raise [NotImplementedError] Raised when the resource does not
|
271
273
|
#
|
@@ -908,7 +910,9 @@ module Aws::IAM
|
|
908
910
|
end
|
909
911
|
|
910
912
|
def separate_params_and_options(options)
|
911
|
-
opts = Set.new(
|
913
|
+
opts = Set.new(
|
914
|
+
[:client, :max_attempts, :delay, :before_attempt, :before_wait]
|
915
|
+
)
|
912
916
|
waiter_opts = {}
|
913
917
|
waiter_params = {}
|
914
918
|
options.each_pair do |key, value|
|
@@ -95,7 +95,8 @@ module Aws::IAM
|
|
95
95
|
# Waiter polls an API operation until a resource enters a desired
|
96
96
|
# state.
|
97
97
|
#
|
98
|
-
# @note The waiting operation is performed on a copy. The original resource
|
98
|
+
# @note The waiting operation is performed on a copy. The original resource
|
99
|
+
# remains unchanged.
|
99
100
|
#
|
100
101
|
# ## Basic Usage
|
101
102
|
#
|
@@ -108,13 +109,15 @@ module Aws::IAM
|
|
108
109
|
#
|
109
110
|
# ## Example
|
110
111
|
#
|
111
|
-
# instance.wait_until(max_attempts:10, delay:5)
|
112
|
+
# instance.wait_until(max_attempts:10, delay:5) do |instance|
|
113
|
+
# instance.state.name == 'running'
|
114
|
+
# end
|
112
115
|
#
|
113
116
|
# ## Configuration
|
114
117
|
#
|
115
118
|
# You can configure the maximum number of polling attempts, and the
|
116
|
-
# delay (in seconds) between each polling attempt. The waiting condition is
|
117
|
-
# by passing a block to {#wait_until}:
|
119
|
+
# delay (in seconds) between each polling attempt. The waiting condition is
|
120
|
+
# set by passing a block to {#wait_until}:
|
118
121
|
#
|
119
122
|
# # poll for ~25 seconds
|
120
123
|
# resource.wait_until(max_attempts:5,delay:5) {|resource|...}
|
@@ -145,17 +148,16 @@ module Aws::IAM
|
|
145
148
|
# # resource did not enter the desired state in time
|
146
149
|
# end
|
147
150
|
#
|
151
|
+
# @yieldparam [Resource] resource to be used in the waiting condition.
|
148
152
|
#
|
149
|
-
# @
|
150
|
-
#
|
151
|
-
#
|
152
|
-
# because the waiter has entered a state that it will not transition
|
153
|
-
# out of, preventing success.
|
153
|
+
# @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter
|
154
|
+
# terminates because the waiter has entered a state that it will not
|
155
|
+
# transition out of, preventing success.
|
154
156
|
#
|
155
157
|
# yet successful.
|
156
158
|
#
|
157
|
-
# @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
|
158
|
-
# while polling for a resource that is not expected.
|
159
|
+
# @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
|
160
|
+
# encountered while polling for a resource that is not expected.
|
159
161
|
#
|
160
162
|
# @raise [NotImplementedError] Raised when the resource does not
|
161
163
|
#
|
@@ -95,7 +95,8 @@ module Aws::IAM
|
|
95
95
|
# Waiter polls an API operation until a resource enters a desired
|
96
96
|
# state.
|
97
97
|
#
|
98
|
-
# @note The waiting operation is performed on a copy. The original resource
|
98
|
+
# @note The waiting operation is performed on a copy. The original resource
|
99
|
+
# remains unchanged.
|
99
100
|
#
|
100
101
|
# ## Basic Usage
|
101
102
|
#
|
@@ -108,13 +109,15 @@ module Aws::IAM
|
|
108
109
|
#
|
109
110
|
# ## Example
|
110
111
|
#
|
111
|
-
# instance.wait_until(max_attempts:10, delay:5)
|
112
|
+
# instance.wait_until(max_attempts:10, delay:5) do |instance|
|
113
|
+
# instance.state.name == 'running'
|
114
|
+
# end
|
112
115
|
#
|
113
116
|
# ## Configuration
|
114
117
|
#
|
115
118
|
# You can configure the maximum number of polling attempts, and the
|
116
|
-
# delay (in seconds) between each polling attempt. The waiting condition is
|
117
|
-
# by passing a block to {#wait_until}:
|
119
|
+
# delay (in seconds) between each polling attempt. The waiting condition is
|
120
|
+
# set by passing a block to {#wait_until}:
|
118
121
|
#
|
119
122
|
# # poll for ~25 seconds
|
120
123
|
# resource.wait_until(max_attempts:5,delay:5) {|resource|...}
|
@@ -145,17 +148,16 @@ module Aws::IAM
|
|
145
148
|
# # resource did not enter the desired state in time
|
146
149
|
# end
|
147
150
|
#
|
151
|
+
# @yieldparam [Resource] resource to be used in the waiting condition.
|
148
152
|
#
|
149
|
-
# @
|
150
|
-
#
|
151
|
-
#
|
152
|
-
# because the waiter has entered a state that it will not transition
|
153
|
-
# out of, preventing success.
|
153
|
+
# @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter
|
154
|
+
# terminates because the waiter has entered a state that it will not
|
155
|
+
# transition out of, preventing success.
|
154
156
|
#
|
155
157
|
# yet successful.
|
156
158
|
#
|
157
|
-
# @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
|
158
|
-
# while polling for a resource that is not expected.
|
159
|
+
# @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
|
160
|
+
# encountered while polling for a resource that is not expected.
|
159
161
|
#
|
160
162
|
# @raise [NotImplementedError] Raised when the resource does not
|
161
163
|
#
|