aws-sdk-iam 1.77.0 → 1.79.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 +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-iam/access_key.rb +12 -4
- data/lib/aws-sdk-iam/access_key_pair.rb +12 -4
- data/lib/aws-sdk-iam/account_password_policy.rb +12 -4
- data/lib/aws-sdk-iam/account_summary.rb +6 -2
- data/lib/aws-sdk-iam/assume_role_policy.rb +6 -2
- data/lib/aws-sdk-iam/client.rb +17 -10
- data/lib/aws-sdk-iam/client_api.rb +8 -0
- data/lib/aws-sdk-iam/current_user.rb +15 -5
- data/lib/aws-sdk-iam/customizations/resource.rb +6 -4
- data/lib/aws-sdk-iam/endpoint_provider.rb +11 -92
- data/lib/aws-sdk-iam/group.rb +39 -13
- data/lib/aws-sdk-iam/group_policy.rb +12 -4
- data/lib/aws-sdk-iam/instance_profile.rb +18 -6
- data/lib/aws-sdk-iam/login_profile.rb +15 -5
- data/lib/aws-sdk-iam/mfa_device.rb +12 -4
- data/lib/aws-sdk-iam/policy.rb +42 -14
- data/lib/aws-sdk-iam/policy_version.rb +12 -4
- data/lib/aws-sdk-iam/resource.rb +60 -20
- data/lib/aws-sdk-iam/role.rb +24 -8
- data/lib/aws-sdk-iam/role_policy.rb +12 -4
- data/lib/aws-sdk-iam/saml_provider.rb +12 -4
- data/lib/aws-sdk-iam/server_certificate.rb +12 -4
- data/lib/aws-sdk-iam/signing_certificate.rb +12 -4
- data/lib/aws-sdk-iam/types.rb +1 -1
- data/lib/aws-sdk-iam/user.rb +60 -20
- data/lib/aws-sdk-iam/user_policy.rb +12 -4
- data/lib/aws-sdk-iam/virtual_mfa_device.rb +7 -3
- data/lib/aws-sdk-iam.rb +1 -1
- metadata +4 -4
data/lib/aws-sdk-iam/group.rb
CHANGED
@@ -95,7 +95,9 @@ module Aws::IAM
|
|
95
95
|
#
|
96
96
|
# @return [self]
|
97
97
|
def load
|
98
|
-
resp =
|
98
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
99
|
+
@client.get_group(group_name: @name)
|
100
|
+
end
|
99
101
|
@data = resp.group
|
100
102
|
self
|
101
103
|
end
|
@@ -210,7 +212,9 @@ module Aws::IAM
|
|
210
212
|
:retry
|
211
213
|
end
|
212
214
|
end
|
213
|
-
Aws::
|
215
|
+
Aws::Plugins::UserAgent.feature('resource') do
|
216
|
+
Aws::Waiters::Waiter.new(options).wait({})
|
217
|
+
end
|
214
218
|
end
|
215
219
|
|
216
220
|
# @!group Actions
|
@@ -235,7 +239,9 @@ module Aws::IAM
|
|
235
239
|
# @return [EmptyStructure]
|
236
240
|
def add_user(options = {})
|
237
241
|
options = options.merge(group_name: @name)
|
238
|
-
resp =
|
242
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
243
|
+
@client.add_user_to_group(options)
|
244
|
+
end
|
239
245
|
resp.data
|
240
246
|
end
|
241
247
|
|
@@ -257,7 +263,9 @@ module Aws::IAM
|
|
257
263
|
# @return [EmptyStructure]
|
258
264
|
def attach_policy(options = {})
|
259
265
|
options = options.merge(group_name: @name)
|
260
|
-
resp =
|
266
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
267
|
+
@client.attach_group_policy(options)
|
268
|
+
end
|
261
269
|
resp.data
|
262
270
|
end
|
263
271
|
|
@@ -288,7 +296,9 @@ module Aws::IAM
|
|
288
296
|
# @return [Group]
|
289
297
|
def create(options = {})
|
290
298
|
options = options.merge(group_name: @name)
|
291
|
-
resp =
|
299
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
300
|
+
@client.create_group(options)
|
301
|
+
end
|
292
302
|
Group.new(
|
293
303
|
name: options[:group_name],
|
294
304
|
data: resp.data.group,
|
@@ -340,7 +350,9 @@ module Aws::IAM
|
|
340
350
|
# @return [GroupPolicy]
|
341
351
|
def create_policy(options = {})
|
342
352
|
options = options.merge(group_name: @name)
|
343
|
-
|
353
|
+
Aws::Plugins::UserAgent.feature('resource') do
|
354
|
+
@client.put_group_policy(options)
|
355
|
+
end
|
344
356
|
GroupPolicy.new(
|
345
357
|
group_name: @name,
|
346
358
|
name: options[:policy_name],
|
@@ -355,7 +367,9 @@ module Aws::IAM
|
|
355
367
|
# @return [EmptyStructure]
|
356
368
|
def delete(options = {})
|
357
369
|
options = options.merge(group_name: @name)
|
358
|
-
resp =
|
370
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
371
|
+
@client.delete_group(options)
|
372
|
+
end
|
359
373
|
resp.data
|
360
374
|
end
|
361
375
|
|
@@ -377,7 +391,9 @@ module Aws::IAM
|
|
377
391
|
# @return [EmptyStructure]
|
378
392
|
def detach_policy(options = {})
|
379
393
|
options = options.merge(group_name: @name)
|
380
|
-
resp =
|
394
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
395
|
+
@client.detach_group_policy(options)
|
396
|
+
end
|
381
397
|
resp.data
|
382
398
|
end
|
383
399
|
|
@@ -401,7 +417,9 @@ module Aws::IAM
|
|
401
417
|
# @return [EmptyStructure]
|
402
418
|
def remove_user(options = {})
|
403
419
|
options = options.merge(group_name: @name)
|
404
|
-
resp =
|
420
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
421
|
+
@client.remove_user_from_group(options)
|
422
|
+
end
|
405
423
|
resp.data
|
406
424
|
end
|
407
425
|
|
@@ -436,7 +454,9 @@ module Aws::IAM
|
|
436
454
|
# @return [Group]
|
437
455
|
def update(options = {})
|
438
456
|
options = options.merge(group_name: @name)
|
439
|
-
|
457
|
+
Aws::Plugins::UserAgent.feature('resource') do
|
458
|
+
@client.update_group(options)
|
459
|
+
end
|
440
460
|
Group.new(
|
441
461
|
name: options[:new_group_name],
|
442
462
|
client: @client
|
@@ -470,7 +490,9 @@ module Aws::IAM
|
|
470
490
|
def attached_policies(options = {})
|
471
491
|
batches = Enumerator.new do |y|
|
472
492
|
options = options.merge(group_name: @name)
|
473
|
-
resp =
|
493
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
494
|
+
@client.list_attached_group_policies(options)
|
495
|
+
end
|
474
496
|
resp.each_page do |page|
|
475
497
|
batch = []
|
476
498
|
page.data.attached_policies.each do |a|
|
@@ -493,7 +515,9 @@ module Aws::IAM
|
|
493
515
|
def policies(options = {})
|
494
516
|
batches = Enumerator.new do |y|
|
495
517
|
options = options.merge(group_name: @name)
|
496
|
-
resp =
|
518
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
519
|
+
@client.list_group_policies(options)
|
520
|
+
end
|
497
521
|
resp.each_page do |page|
|
498
522
|
batch = []
|
499
523
|
page.data.policy_names.each do |p|
|
@@ -527,7 +551,9 @@ module Aws::IAM
|
|
527
551
|
def users(options = {})
|
528
552
|
batches = Enumerator.new do |y|
|
529
553
|
options = options.merge(group_name: @name)
|
530
|
-
resp =
|
554
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
555
|
+
@client.get_group(options)
|
556
|
+
end
|
531
557
|
resp.each_page do |page|
|
532
558
|
batch = []
|
533
559
|
page.data.users.each do |u|
|
@@ -68,10 +68,12 @@ module Aws::IAM
|
|
68
68
|
#
|
69
69
|
# @return [self]
|
70
70
|
def load
|
71
|
-
resp =
|
71
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
72
|
+
@client.get_group_policy(
|
72
73
|
group_name: @group_name,
|
73
74
|
policy_name: @name
|
74
75
|
)
|
76
|
+
end
|
75
77
|
@data = resp.data
|
76
78
|
self
|
77
79
|
end
|
@@ -186,7 +188,9 @@ module Aws::IAM
|
|
186
188
|
:retry
|
187
189
|
end
|
188
190
|
end
|
189
|
-
Aws::
|
191
|
+
Aws::Plugins::UserAgent.feature('resource') do
|
192
|
+
Aws::Waiters::Waiter.new(options).wait({})
|
193
|
+
end
|
190
194
|
end
|
191
195
|
|
192
196
|
# @!group Actions
|
@@ -201,7 +205,9 @@ module Aws::IAM
|
|
201
205
|
group_name: @group_name,
|
202
206
|
policy_name: @name
|
203
207
|
)
|
204
|
-
resp =
|
208
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
209
|
+
@client.delete_group_policy(options)
|
210
|
+
end
|
205
211
|
resp.data
|
206
212
|
end
|
207
213
|
|
@@ -240,7 +246,9 @@ module Aws::IAM
|
|
240
246
|
group_name: @group_name,
|
241
247
|
policy_name: @name
|
242
248
|
)
|
243
|
-
resp =
|
249
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
250
|
+
@client.put_group_policy(options)
|
251
|
+
end
|
244
252
|
resp.data
|
245
253
|
end
|
246
254
|
|
@@ -102,7 +102,9 @@ module Aws::IAM
|
|
102
102
|
#
|
103
103
|
# @return [self]
|
104
104
|
def load
|
105
|
-
resp =
|
105
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
106
|
+
@client.get_instance_profile(instance_profile_name: @name)
|
107
|
+
end
|
106
108
|
@data = resp.instance_profile
|
107
109
|
self
|
108
110
|
end
|
@@ -147,7 +149,9 @@ module Aws::IAM
|
|
147
149
|
options, params = separate_params_and_options(options)
|
148
150
|
waiter = Waiters::InstanceProfileExists.new(options)
|
149
151
|
yield_waiter_and_warn(waiter, &block) if block_given?
|
150
|
-
|
152
|
+
Aws::Plugins::UserAgent.feature('resource') do
|
153
|
+
waiter.wait(params.merge(instance_profile_name: @name))
|
154
|
+
end
|
151
155
|
InstanceProfile.new({
|
152
156
|
name: @name,
|
153
157
|
client: @client
|
@@ -248,7 +252,9 @@ module Aws::IAM
|
|
248
252
|
:retry
|
249
253
|
end
|
250
254
|
end
|
251
|
-
Aws::
|
255
|
+
Aws::Plugins::UserAgent.feature('resource') do
|
256
|
+
Aws::Waiters::Waiter.new(options).wait({})
|
257
|
+
end
|
252
258
|
end
|
253
259
|
|
254
260
|
# @!group Actions
|
@@ -273,7 +279,9 @@ module Aws::IAM
|
|
273
279
|
# @return [EmptyStructure]
|
274
280
|
def add_role(options = {})
|
275
281
|
options = options.merge(instance_profile_name: @name)
|
276
|
-
resp =
|
282
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
283
|
+
@client.add_role_to_instance_profile(options)
|
284
|
+
end
|
277
285
|
resp.data
|
278
286
|
end
|
279
287
|
|
@@ -284,7 +292,9 @@ module Aws::IAM
|
|
284
292
|
# @return [EmptyStructure]
|
285
293
|
def delete(options = {})
|
286
294
|
options = options.merge(instance_profile_name: @name)
|
287
|
-
resp =
|
295
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
296
|
+
@client.delete_instance_profile(options)
|
297
|
+
end
|
288
298
|
resp.data
|
289
299
|
end
|
290
300
|
|
@@ -308,7 +318,9 @@ module Aws::IAM
|
|
308
318
|
# @return [EmptyStructure]
|
309
319
|
def remove_role(options = {})
|
310
320
|
options = options.merge(instance_profile_name: @name)
|
311
|
-
resp =
|
321
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
322
|
+
@client.remove_role_from_instance_profile(options)
|
323
|
+
end
|
312
324
|
resp.data
|
313
325
|
end
|
314
326
|
|
@@ -61,7 +61,9 @@ module Aws::IAM
|
|
61
61
|
#
|
62
62
|
# @return [self]
|
63
63
|
def load
|
64
|
-
resp =
|
64
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
65
|
+
@client.get_login_profile(user_name: @user_name)
|
66
|
+
end
|
65
67
|
@data = resp.login_profile
|
66
68
|
self
|
67
69
|
end
|
@@ -176,7 +178,9 @@ module Aws::IAM
|
|
176
178
|
:retry
|
177
179
|
end
|
178
180
|
end
|
179
|
-
Aws::
|
181
|
+
Aws::Plugins::UserAgent.feature('resource') do
|
182
|
+
Aws::Waiters::Waiter.new(options).wait({})
|
183
|
+
end
|
180
184
|
end
|
181
185
|
|
182
186
|
# @!group Actions
|
@@ -210,7 +214,9 @@ module Aws::IAM
|
|
210
214
|
# @return [LoginProfile]
|
211
215
|
def create(options = {})
|
212
216
|
options = options.merge(user_name: @user_name)
|
213
|
-
resp =
|
217
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
218
|
+
@client.create_login_profile(options)
|
219
|
+
end
|
214
220
|
LoginProfile.new(
|
215
221
|
user_name: resp.data.login_profile.user_name,
|
216
222
|
data: resp.data.login_profile,
|
@@ -225,7 +231,9 @@ module Aws::IAM
|
|
225
231
|
# @return [EmptyStructure]
|
226
232
|
def delete(options = {})
|
227
233
|
options = options.merge(user_name: @user_name)
|
228
|
-
resp =
|
234
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
235
|
+
@client.delete_login_profile(options)
|
236
|
+
end
|
229
237
|
resp.data
|
230
238
|
end
|
231
239
|
|
@@ -264,7 +272,9 @@ module Aws::IAM
|
|
264
272
|
# @return [EmptyStructure]
|
265
273
|
def update(options = {})
|
266
274
|
options = options.merge(user_name: @user_name)
|
267
|
-
resp =
|
275
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
276
|
+
@client.update_login_profile(options)
|
277
|
+
end
|
268
278
|
resp.data
|
269
279
|
end
|
270
280
|
|
@@ -172,7 +172,9 @@ module Aws::IAM
|
|
172
172
|
:retry
|
173
173
|
end
|
174
174
|
end
|
175
|
-
Aws::
|
175
|
+
Aws::Plugins::UserAgent.feature('resource') do
|
176
|
+
Aws::Waiters::Waiter.new(options).wait({})
|
177
|
+
end
|
176
178
|
end
|
177
179
|
|
178
180
|
# @!group Actions
|
@@ -220,7 +222,9 @@ module Aws::IAM
|
|
220
222
|
user_name: @user_name,
|
221
223
|
serial_number: @serial_number
|
222
224
|
)
|
223
|
-
resp =
|
225
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
226
|
+
@client.enable_mfa_device(options)
|
227
|
+
end
|
224
228
|
resp.data
|
225
229
|
end
|
226
230
|
|
@@ -234,7 +238,9 @@ module Aws::IAM
|
|
234
238
|
user_name: @user_name,
|
235
239
|
serial_number: @serial_number
|
236
240
|
)
|
237
|
-
resp =
|
241
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
242
|
+
@client.deactivate_mfa_device(options)
|
243
|
+
end
|
238
244
|
resp.data
|
239
245
|
end
|
240
246
|
|
@@ -259,7 +265,9 @@ module Aws::IAM
|
|
259
265
|
user_name: @user_name,
|
260
266
|
serial_number: @serial_number
|
261
267
|
)
|
262
|
-
resp =
|
268
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
269
|
+
@client.resync_mfa_device(options)
|
270
|
+
end
|
263
271
|
resp.data
|
264
272
|
end
|
265
273
|
|
data/lib/aws-sdk-iam/policy.rb
CHANGED
@@ -163,7 +163,9 @@ module Aws::IAM
|
|
163
163
|
#
|
164
164
|
# @return [self]
|
165
165
|
def load
|
166
|
-
resp =
|
166
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
167
|
+
@client.get_policy(policy_arn: @arn)
|
168
|
+
end
|
167
169
|
@data = resp.policy
|
168
170
|
self
|
169
171
|
end
|
@@ -278,7 +280,9 @@ module Aws::IAM
|
|
278
280
|
:retry
|
279
281
|
end
|
280
282
|
end
|
281
|
-
Aws::
|
283
|
+
Aws::Plugins::UserAgent.feature('resource') do
|
284
|
+
Aws::Waiters::Waiter.new(options).wait({})
|
285
|
+
end
|
282
286
|
end
|
283
287
|
|
284
288
|
# @!group Actions
|
@@ -304,7 +308,9 @@ module Aws::IAM
|
|
304
308
|
# @return [EmptyStructure]
|
305
309
|
def attach_group(options = {})
|
306
310
|
options = options.merge(policy_arn: @arn)
|
307
|
-
resp =
|
311
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
312
|
+
@client.attach_group_policy(options)
|
313
|
+
end
|
308
314
|
resp.data
|
309
315
|
end
|
310
316
|
|
@@ -328,7 +334,9 @@ module Aws::IAM
|
|
328
334
|
# @return [EmptyStructure]
|
329
335
|
def attach_role(options = {})
|
330
336
|
options = options.merge(policy_arn: @arn)
|
331
|
-
resp =
|
337
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
338
|
+
@client.attach_role_policy(options)
|
339
|
+
end
|
332
340
|
resp.data
|
333
341
|
end
|
334
342
|
|
@@ -353,7 +361,9 @@ module Aws::IAM
|
|
353
361
|
# @return [EmptyStructure]
|
354
362
|
def attach_user(options = {})
|
355
363
|
options = options.merge(policy_arn: @arn)
|
356
|
-
resp =
|
364
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
365
|
+
@client.attach_user_policy(options)
|
366
|
+
end
|
357
367
|
resp.data
|
358
368
|
end
|
359
369
|
|
@@ -411,7 +421,9 @@ module Aws::IAM
|
|
411
421
|
# @return [PolicyVersion]
|
412
422
|
def create_version(options = {})
|
413
423
|
options = options.merge(policy_arn: @arn)
|
414
|
-
resp =
|
424
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
425
|
+
@client.create_policy_version(options)
|
426
|
+
end
|
415
427
|
PolicyVersion.new(
|
416
428
|
arn: @arn,
|
417
429
|
version_id: resp.data.policy_version.version_id,
|
@@ -426,7 +438,9 @@ module Aws::IAM
|
|
426
438
|
# @return [EmptyStructure]
|
427
439
|
def delete(options = {})
|
428
440
|
options = options.merge(policy_arn: @arn)
|
429
|
-
resp =
|
441
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
442
|
+
@client.delete_policy(options)
|
443
|
+
end
|
430
444
|
resp.data
|
431
445
|
end
|
432
446
|
|
@@ -451,7 +465,9 @@ module Aws::IAM
|
|
451
465
|
# @return [EmptyStructure]
|
452
466
|
def detach_group(options = {})
|
453
467
|
options = options.merge(policy_arn: @arn)
|
454
|
-
resp =
|
468
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
469
|
+
@client.detach_group_policy(options)
|
470
|
+
end
|
455
471
|
resp.data
|
456
472
|
end
|
457
473
|
|
@@ -476,7 +492,9 @@ module Aws::IAM
|
|
476
492
|
# @return [EmptyStructure]
|
477
493
|
def detach_role(options = {})
|
478
494
|
options = options.merge(policy_arn: @arn)
|
479
|
-
resp =
|
495
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
496
|
+
@client.detach_role_policy(options)
|
497
|
+
end
|
480
498
|
resp.data
|
481
499
|
end
|
482
500
|
|
@@ -501,7 +519,9 @@ module Aws::IAM
|
|
501
519
|
# @return [EmptyStructure]
|
502
520
|
def detach_user(options = {})
|
503
521
|
options = options.merge(policy_arn: @arn)
|
504
|
-
resp =
|
522
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
523
|
+
@client.detach_user_policy(options)
|
524
|
+
end
|
505
525
|
resp.data
|
506
526
|
end
|
507
527
|
|
@@ -546,7 +566,9 @@ module Aws::IAM
|
|
546
566
|
policy_arn: @arn,
|
547
567
|
entity_filter: "Group"
|
548
568
|
)
|
549
|
-
resp =
|
569
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
570
|
+
@client.list_entities_for_policy(options)
|
571
|
+
end
|
550
572
|
resp.each_page do |page|
|
551
573
|
batch = []
|
552
574
|
page.data.policy_groups.each do |p|
|
@@ -601,7 +623,9 @@ module Aws::IAM
|
|
601
623
|
policy_arn: @arn,
|
602
624
|
entity_filter: "Role"
|
603
625
|
)
|
604
|
-
resp =
|
626
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
627
|
+
@client.list_entities_for_policy(options)
|
628
|
+
end
|
605
629
|
resp.each_page do |page|
|
606
630
|
batch = []
|
607
631
|
page.data.policy_roles.each do |p|
|
@@ -656,7 +680,9 @@ module Aws::IAM
|
|
656
680
|
policy_arn: @arn,
|
657
681
|
entity_filter: "User"
|
658
682
|
)
|
659
|
-
resp =
|
683
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
684
|
+
@client.list_entities_for_policy(options)
|
685
|
+
end
|
660
686
|
resp.each_page do |page|
|
661
687
|
batch = []
|
662
688
|
page.data.policy_users.each do |p|
|
@@ -693,7 +719,9 @@ module Aws::IAM
|
|
693
719
|
def versions(options = {})
|
694
720
|
batches = Enumerator.new do |y|
|
695
721
|
options = options.merge(policy_arn: @arn)
|
696
|
-
resp =
|
722
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
723
|
+
@client.list_policy_versions(options)
|
724
|
+
end
|
697
725
|
resp.each_page do |page|
|
698
726
|
batch = []
|
699
727
|
page.data.versions.each do |v|
|
@@ -96,10 +96,12 @@ module Aws::IAM
|
|
96
96
|
#
|
97
97
|
# @return [self]
|
98
98
|
def load
|
99
|
-
resp =
|
99
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
100
|
+
@client.get_policy_version(
|
100
101
|
policy_arn: @arn,
|
101
102
|
version_id: @version_id
|
102
103
|
)
|
104
|
+
end
|
103
105
|
@data = resp.policy_version
|
104
106
|
self
|
105
107
|
end
|
@@ -214,7 +216,9 @@ module Aws::IAM
|
|
214
216
|
:retry
|
215
217
|
end
|
216
218
|
end
|
217
|
-
Aws::
|
219
|
+
Aws::Plugins::UserAgent.feature('resource') do
|
220
|
+
Aws::Waiters::Waiter.new(options).wait({})
|
221
|
+
end
|
218
222
|
end
|
219
223
|
|
220
224
|
# @!group Actions
|
@@ -229,7 +233,9 @@ module Aws::IAM
|
|
229
233
|
policy_arn: @arn,
|
230
234
|
version_id: @version_id
|
231
235
|
)
|
232
|
-
resp =
|
236
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
237
|
+
@client.delete_policy_version(options)
|
238
|
+
end
|
233
239
|
resp.data
|
234
240
|
end
|
235
241
|
|
@@ -243,7 +249,9 @@ module Aws::IAM
|
|
243
249
|
policy_arn: @arn,
|
244
250
|
version_id: @version_id
|
245
251
|
)
|
246
|
-
resp =
|
252
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
253
|
+
@client.set_default_policy_version(options)
|
254
|
+
end
|
247
255
|
resp.data
|
248
256
|
end
|
249
257
|
|