aws-sdk-iam 1.77.0 → 1.78.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -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 +6 -1
- 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/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/user.rb +60 -20
- data/lib/aws-sdk-iam/user_policy.rb +12 -4
- data/lib/aws-sdk-iam/virtual_mfa_device.rb +6 -2
- data/lib/aws-sdk-iam.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 54ccdac55672360f368c4da561b6ed454a76da48a5607f0d68bb85c58b08b155
|
4
|
+
data.tar.gz: baf8204d12f25f08bd1801c59a984e199a95f1c2bb8c62921f70bb3e2b0a0dc9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e45a309faf310018bb3a127892163f868874fe58d6bd250faab0a005949a07ec52f9e08d2b16f92100108f0f4b916795babc401b9a845ce969b8439a97117c9
|
7
|
+
data.tar.gz: 3673802bec48fc185ebce9c51f919f19e29f11cde93a2ae6a528d2e6c06cfc25a224edb82b83de1fa1ba8efb692be1355793b64f302674ee8bee95940967dbf2
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.78.0
|
@@ -180,7 +180,9 @@ module Aws::IAM
|
|
180
180
|
:retry
|
181
181
|
end
|
182
182
|
end
|
183
|
-
Aws::
|
183
|
+
Aws::Plugins::UserAgent.feature('resource') do
|
184
|
+
Aws::Waiters::Waiter.new(options).wait({})
|
185
|
+
end
|
184
186
|
end
|
185
187
|
|
186
188
|
# @!group Actions
|
@@ -196,7 +198,9 @@ module Aws::IAM
|
|
196
198
|
access_key_id: @id,
|
197
199
|
status: "Active"
|
198
200
|
)
|
199
|
-
resp =
|
201
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
202
|
+
@client.update_access_key(options)
|
203
|
+
end
|
200
204
|
resp.data
|
201
205
|
end
|
202
206
|
|
@@ -211,7 +215,9 @@ module Aws::IAM
|
|
211
215
|
access_key_id: @id,
|
212
216
|
status: "Inactive"
|
213
217
|
)
|
214
|
-
resp =
|
218
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
219
|
+
@client.update_access_key(options)
|
220
|
+
end
|
215
221
|
resp.data
|
216
222
|
end
|
217
223
|
|
@@ -225,7 +231,9 @@ module Aws::IAM
|
|
225
231
|
user_name: @user_name,
|
226
232
|
access_key_id: @id
|
227
233
|
)
|
228
|
-
resp =
|
234
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
235
|
+
@client.delete_access_key(options)
|
236
|
+
end
|
229
237
|
resp.data
|
230
238
|
end
|
231
239
|
|
@@ -189,7 +189,9 @@ module Aws::IAM
|
|
189
189
|
:retry
|
190
190
|
end
|
191
191
|
end
|
192
|
-
Aws::
|
192
|
+
Aws::Plugins::UserAgent.feature('resource') do
|
193
|
+
Aws::Waiters::Waiter.new(options).wait({})
|
194
|
+
end
|
193
195
|
end
|
194
196
|
|
195
197
|
# @!group Actions
|
@@ -205,7 +207,9 @@ module Aws::IAM
|
|
205
207
|
access_key_id: @id,
|
206
208
|
status: "Active"
|
207
209
|
)
|
208
|
-
resp =
|
210
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
211
|
+
@client.update_access_key(options)
|
212
|
+
end
|
209
213
|
resp.data
|
210
214
|
end
|
211
215
|
|
@@ -220,7 +224,9 @@ module Aws::IAM
|
|
220
224
|
access_key_id: @id,
|
221
225
|
status: "Inactive"
|
222
226
|
)
|
223
|
-
resp =
|
227
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
228
|
+
@client.update_access_key(options)
|
229
|
+
end
|
224
230
|
resp.data
|
225
231
|
end
|
226
232
|
|
@@ -234,7 +240,9 @@ module Aws::IAM
|
|
234
240
|
user_name: @user_name,
|
235
241
|
access_key_id: @id
|
236
242
|
)
|
237
|
-
resp =
|
243
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
244
|
+
@client.delete_access_key(options)
|
245
|
+
end
|
238
246
|
resp.data
|
239
247
|
end
|
240
248
|
|
@@ -116,7 +116,9 @@ module Aws::IAM
|
|
116
116
|
#
|
117
117
|
# @return [self]
|
118
118
|
def load
|
119
|
-
resp =
|
119
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
120
|
+
@client.get_account_password_policy
|
121
|
+
end
|
120
122
|
@data = resp.password_policy
|
121
123
|
self
|
122
124
|
end
|
@@ -231,7 +233,9 @@ module Aws::IAM
|
|
231
233
|
:retry
|
232
234
|
end
|
233
235
|
end
|
234
|
-
Aws::
|
236
|
+
Aws::Plugins::UserAgent.feature('resource') do
|
237
|
+
Aws::Waiters::Waiter.new(options).wait({})
|
238
|
+
end
|
235
239
|
end
|
236
240
|
|
237
241
|
# @!group Actions
|
@@ -242,7 +246,9 @@ module Aws::IAM
|
|
242
246
|
# @param [Hash] options ({})
|
243
247
|
# @return [EmptyStructure]
|
244
248
|
def delete(options = {})
|
245
|
-
resp =
|
249
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
250
|
+
@client.delete_account_password_policy(options)
|
251
|
+
end
|
246
252
|
resp.data
|
247
253
|
end
|
248
254
|
|
@@ -345,7 +351,9 @@ module Aws::IAM
|
|
345
351
|
# </note>
|
346
352
|
# @return [EmptyStructure]
|
347
353
|
def update(options = {})
|
348
|
-
resp =
|
354
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
355
|
+
@client.update_account_password_policy(options)
|
356
|
+
end
|
349
357
|
resp.data
|
350
358
|
end
|
351
359
|
|
@@ -45,7 +45,9 @@ module Aws::IAM
|
|
45
45
|
#
|
46
46
|
# @return [self]
|
47
47
|
def load
|
48
|
-
resp =
|
48
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
49
|
+
@client.get_account_summary
|
50
|
+
end
|
49
51
|
@data = resp.data
|
50
52
|
self
|
51
53
|
end
|
@@ -160,7 +162,9 @@ module Aws::IAM
|
|
160
162
|
:retry
|
161
163
|
end
|
162
164
|
end
|
163
|
-
Aws::
|
165
|
+
Aws::Plugins::UserAgent.feature('resource') do
|
166
|
+
Aws::Waiters::Waiter.new(options).wait({})
|
167
|
+
end
|
164
168
|
end
|
165
169
|
|
166
170
|
# @deprecated
|
@@ -156,7 +156,9 @@ module Aws::IAM
|
|
156
156
|
:retry
|
157
157
|
end
|
158
158
|
end
|
159
|
-
Aws::
|
159
|
+
Aws::Plugins::UserAgent.feature('resource') do
|
160
|
+
Aws::Waiters::Waiter.new(options).wait({})
|
161
|
+
end
|
160
162
|
end
|
161
163
|
|
162
164
|
# @!group Actions
|
@@ -193,7 +195,9 @@ module Aws::IAM
|
|
193
195
|
# @return [EmptyStructure]
|
194
196
|
def update(options = {})
|
195
197
|
options = options.merge(role_name: @role_name)
|
196
|
-
resp =
|
198
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
199
|
+
@client.update_assume_role_policy(options)
|
200
|
+
end
|
197
201
|
resp.data
|
198
202
|
end
|
199
203
|
|
data/lib/aws-sdk-iam/client.rb
CHANGED
@@ -275,6 +275,11 @@ module Aws::IAM
|
|
275
275
|
# in the future.
|
276
276
|
#
|
277
277
|
#
|
278
|
+
# @option options [String] :sdk_ua_app_id
|
279
|
+
# A unique and opaque application ID that is appended to the
|
280
|
+
# User-Agent header as app/<sdk_ua_app_id>. It should have a
|
281
|
+
# maximum length of 50.
|
282
|
+
#
|
278
283
|
# @option options [String] :secret_access_key
|
279
284
|
#
|
280
285
|
# @option options [String] :session_token
|
@@ -13348,7 +13353,7 @@ module Aws::IAM
|
|
13348
13353
|
params: params,
|
13349
13354
|
config: config)
|
13350
13355
|
context[:gem_name] = 'aws-sdk-iam'
|
13351
|
-
context[:gem_version] = '1.
|
13356
|
+
context[:gem_version] = '1.78.0'
|
13352
13357
|
Seahorse::Client::Request.new(handlers, context)
|
13353
13358
|
end
|
13354
13359
|
|
@@ -145,7 +145,9 @@ module Aws::IAM
|
|
145
145
|
#
|
146
146
|
# @return [self]
|
147
147
|
def load
|
148
|
-
resp =
|
148
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
149
|
+
@client.get_user
|
150
|
+
end
|
149
151
|
@data = resp.user
|
150
152
|
self
|
151
153
|
end
|
@@ -260,7 +262,9 @@ module Aws::IAM
|
|
260
262
|
:retry
|
261
263
|
end
|
262
264
|
end
|
263
|
-
Aws::
|
265
|
+
Aws::Plugins::UserAgent.feature('resource') do
|
266
|
+
Aws::Waiters::Waiter.new(options).wait({})
|
267
|
+
end
|
264
268
|
end
|
265
269
|
|
266
270
|
# @!group Associations
|
@@ -285,7 +289,9 @@ module Aws::IAM
|
|
285
289
|
# @return [AccessKey::Collection]
|
286
290
|
def access_keys(options = {})
|
287
291
|
batches = Enumerator.new do |y|
|
288
|
-
resp =
|
292
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
293
|
+
@client.list_access_keys(options)
|
294
|
+
end
|
289
295
|
resp.each_page do |page|
|
290
296
|
batch = []
|
291
297
|
page.data.access_key_metadata.each do |a|
|
@@ -322,7 +328,9 @@ module Aws::IAM
|
|
322
328
|
# @return [MfaDevice::Collection]
|
323
329
|
def mfa_devices(options = {})
|
324
330
|
batches = Enumerator.new do |y|
|
325
|
-
resp =
|
331
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
332
|
+
@client.list_mfa_devices(options)
|
333
|
+
end
|
326
334
|
resp.each_page do |page|
|
327
335
|
batch = []
|
328
336
|
page.data.mfa_devices.each do |m|
|
@@ -360,7 +368,9 @@ module Aws::IAM
|
|
360
368
|
# @return [SigningCertificate::Collection]
|
361
369
|
def signing_certificates(options = {})
|
362
370
|
batches = Enumerator.new do |y|
|
363
|
-
resp =
|
371
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
372
|
+
@client.list_signing_certificates(options)
|
373
|
+
end
|
364
374
|
resp.each_page do |page|
|
365
375
|
batch = []
|
366
376
|
page.data.certificates.each do |c|
|
@@ -9,10 +9,12 @@ module Aws
|
|
9
9
|
# Returns `false` if this account had no alias to remove.
|
10
10
|
# @see Client#delete_account_alias
|
11
11
|
def delete_account_alias
|
12
|
-
|
13
|
-
@client.
|
14
|
-
|
15
|
-
|
12
|
+
Aws::Plugins::UserAgent.feature('resource') do
|
13
|
+
if name = @client.list_account_aliases.account_aliases.first
|
14
|
+
@client.delete_account_alias(account_alias: name)
|
15
|
+
else
|
16
|
+
false
|
17
|
+
end
|
16
18
|
end
|
17
19
|
end
|
18
20
|
|
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
|
|