aws-sdk-iam 1.97.0 → 1.99.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 +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-iam/access_key.rb +4 -4
- data/lib/aws-sdk-iam/access_key_pair.rb +4 -4
- data/lib/aws-sdk-iam/account_password_policy.rb +4 -4
- data/lib/aws-sdk-iam/account_summary.rb +2 -2
- data/lib/aws-sdk-iam/assume_role_policy.rb +2 -2
- data/lib/aws-sdk-iam/client.rb +4 -3
- data/lib/aws-sdk-iam/current_user.rb +5 -5
- data/lib/aws-sdk-iam/customizations/resource.rb +1 -1
- data/lib/aws-sdk-iam/group.rb +13 -13
- data/lib/aws-sdk-iam/group_policy.rb +4 -4
- data/lib/aws-sdk-iam/instance_profile.rb +6 -6
- data/lib/aws-sdk-iam/login_profile.rb +5 -5
- data/lib/aws-sdk-iam/mfa_device.rb +4 -4
- data/lib/aws-sdk-iam/policy.rb +14 -14
- data/lib/aws-sdk-iam/policy_version.rb +4 -4
- data/lib/aws-sdk-iam/resource.rb +20 -20
- data/lib/aws-sdk-iam/role.rb +8 -8
- data/lib/aws-sdk-iam/role_policy.rb +4 -4
- data/lib/aws-sdk-iam/saml_provider.rb +4 -4
- data/lib/aws-sdk-iam/server_certificate.rb +4 -4
- data/lib/aws-sdk-iam/signing_certificate.rb +4 -4
- data/lib/aws-sdk-iam/user.rb +20 -20
- data/lib/aws-sdk-iam/user_policy.rb +4 -4
- data/lib/aws-sdk-iam/virtual_mfa_device.rb +2 -2
- data/lib/aws-sdk-iam.rb +1 -1
- metadata +4 -4
@@ -96,7 +96,7 @@ module Aws::IAM
|
|
96
96
|
#
|
97
97
|
# @return [self]
|
98
98
|
def load
|
99
|
-
resp = Aws::Plugins::UserAgent.
|
99
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
100
100
|
@client.get_policy_version(
|
101
101
|
policy_arn: @arn,
|
102
102
|
version_id: @version_id
|
@@ -216,7 +216,7 @@ module Aws::IAM
|
|
216
216
|
:retry
|
217
217
|
end
|
218
218
|
end
|
219
|
-
Aws::Plugins::UserAgent.
|
219
|
+
Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
220
220
|
Aws::Waiters::Waiter.new(options).wait({})
|
221
221
|
end
|
222
222
|
end
|
@@ -233,7 +233,7 @@ module Aws::IAM
|
|
233
233
|
policy_arn: @arn,
|
234
234
|
version_id: @version_id
|
235
235
|
)
|
236
|
-
resp = Aws::Plugins::UserAgent.
|
236
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
237
237
|
@client.delete_policy_version(options)
|
238
238
|
end
|
239
239
|
resp.data
|
@@ -249,7 +249,7 @@ module Aws::IAM
|
|
249
249
|
policy_arn: @arn,
|
250
250
|
version_id: @version_id
|
251
251
|
)
|
252
|
-
resp = Aws::Plugins::UserAgent.
|
252
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
253
253
|
@client.set_default_policy_version(options)
|
254
254
|
end
|
255
255
|
resp.data
|
data/lib/aws-sdk-iam/resource.rb
CHANGED
@@ -63,7 +63,7 @@ module Aws::IAM
|
|
63
63
|
# [1]: http://wikipedia.org/wiki/regex
|
64
64
|
# @return [EmptyStructure]
|
65
65
|
def change_password(options = {})
|
66
|
-
resp = Aws::Plugins::UserAgent.
|
66
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
67
67
|
@client.change_password(options)
|
68
68
|
end
|
69
69
|
resp.data
|
@@ -88,7 +88,7 @@ module Aws::IAM
|
|
88
88
|
# [1]: http://wikipedia.org/wiki/regex
|
89
89
|
# @return [EmptyStructure]
|
90
90
|
def create_account_alias(options = {})
|
91
|
-
resp = Aws::Plugins::UserAgent.
|
91
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
92
92
|
@client.create_account_alias(options)
|
93
93
|
end
|
94
94
|
resp.data
|
@@ -193,7 +193,7 @@ module Aws::IAM
|
|
193
193
|
# </note>
|
194
194
|
# @return [AccountPasswordPolicy]
|
195
195
|
def create_account_password_policy(options = {})
|
196
|
-
Aws::Plugins::UserAgent.
|
196
|
+
Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
197
197
|
@client.update_account_password_policy(options)
|
198
198
|
end
|
199
199
|
AccountPasswordPolicy.new(client: @client)
|
@@ -233,7 +233,7 @@ module Aws::IAM
|
|
233
233
|
# create resources named both "MyResource" and "myresource".
|
234
234
|
# @return [Group]
|
235
235
|
def create_group(options = {})
|
236
|
-
resp = Aws::Plugins::UserAgent.
|
236
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
237
237
|
@client.create_group(options)
|
238
238
|
end
|
239
239
|
Group.new(
|
@@ -302,7 +302,7 @@ module Aws::IAM
|
|
302
302
|
# [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html
|
303
303
|
# @return [InstanceProfile]
|
304
304
|
def create_instance_profile(options = {})
|
305
|
-
resp = Aws::Plugins::UserAgent.
|
305
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
306
306
|
@client.create_instance_profile(options)
|
307
307
|
end
|
308
308
|
InstanceProfile.new(
|
@@ -417,7 +417,7 @@ module Aws::IAM
|
|
417
417
|
# [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html
|
418
418
|
# @return [Policy]
|
419
419
|
def create_policy(options = {})
|
420
|
-
resp = Aws::Plugins::UserAgent.
|
420
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
421
421
|
@client.create_policy(options)
|
422
422
|
end
|
423
423
|
Policy.new(
|
@@ -559,7 +559,7 @@ module Aws::IAM
|
|
559
559
|
# [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html
|
560
560
|
# @return [Role]
|
561
561
|
def create_role(options = {})
|
562
|
-
resp = Aws::Plugins::UserAgent.
|
562
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
563
563
|
@client.create_role(options)
|
564
564
|
end
|
565
565
|
Role.new(
|
@@ -624,7 +624,7 @@ module Aws::IAM
|
|
624
624
|
# [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html
|
625
625
|
# @return [SamlProvider]
|
626
626
|
def create_saml_provider(options = {})
|
627
|
-
resp = Aws::Plugins::UserAgent.
|
627
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
628
628
|
@client.create_saml_provider(options)
|
629
629
|
end
|
630
630
|
SamlProvider.new(
|
@@ -756,7 +756,7 @@ module Aws::IAM
|
|
756
756
|
# [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html
|
757
757
|
# @return [ServerCertificate]
|
758
758
|
def create_server_certificate(options = {})
|
759
|
-
Aws::Plugins::UserAgent.
|
759
|
+
Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
760
760
|
@client.upload_server_certificate(options)
|
761
761
|
end
|
762
762
|
ServerCertificate.new(
|
@@ -803,7 +803,7 @@ module Aws::IAM
|
|
803
803
|
# [1]: http://wikipedia.org/wiki/regex
|
804
804
|
# @return [SigningCertificate]
|
805
805
|
def create_signing_certificate(options = {})
|
806
|
-
resp = Aws::Plugins::UserAgent.
|
806
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
807
807
|
@client.upload_signing_certificate(options)
|
808
808
|
end
|
809
809
|
SigningCertificate.new(
|
@@ -885,7 +885,7 @@ module Aws::IAM
|
|
885
885
|
# [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html
|
886
886
|
# @return [User]
|
887
887
|
def create_user(options = {})
|
888
|
-
resp = Aws::Plugins::UserAgent.
|
888
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
889
889
|
@client.create_user(options)
|
890
890
|
end
|
891
891
|
User.new(
|
@@ -955,7 +955,7 @@ module Aws::IAM
|
|
955
955
|
# [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html
|
956
956
|
# @return [VirtualMfaDevice]
|
957
957
|
def create_virtual_mfa_device(options = {})
|
958
|
-
resp = Aws::Plugins::UserAgent.
|
958
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
959
959
|
@client.create_virtual_mfa_device(options)
|
960
960
|
end
|
961
961
|
VirtualMfaDevice.new(
|
@@ -1016,7 +1016,7 @@ module Aws::IAM
|
|
1016
1016
|
# @return [Group::Collection]
|
1017
1017
|
def groups(options = {})
|
1018
1018
|
batches = Enumerator.new do |y|
|
1019
|
-
resp = Aws::Plugins::UserAgent.
|
1019
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
1020
1020
|
@client.list_groups(options)
|
1021
1021
|
end
|
1022
1022
|
resp.each_page do |page|
|
@@ -1069,7 +1069,7 @@ module Aws::IAM
|
|
1069
1069
|
# @return [InstanceProfile::Collection]
|
1070
1070
|
def instance_profiles(options = {})
|
1071
1071
|
batches = Enumerator.new do |y|
|
1072
|
-
resp = Aws::Plugins::UserAgent.
|
1072
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
1073
1073
|
@client.list_instance_profiles(options)
|
1074
1074
|
end
|
1075
1075
|
resp.each_page do |page|
|
@@ -1138,7 +1138,7 @@ module Aws::IAM
|
|
1138
1138
|
# @return [Policy::Collection]
|
1139
1139
|
def policies(options = {})
|
1140
1140
|
batches = Enumerator.new do |y|
|
1141
|
-
resp = Aws::Plugins::UserAgent.
|
1141
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
1142
1142
|
@client.list_policies(options)
|
1143
1143
|
end
|
1144
1144
|
resp.each_page do |page|
|
@@ -1199,7 +1199,7 @@ module Aws::IAM
|
|
1199
1199
|
# @return [Role::Collection]
|
1200
1200
|
def roles(options = {})
|
1201
1201
|
batches = Enumerator.new do |y|
|
1202
|
-
resp = Aws::Plugins::UserAgent.
|
1202
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
1203
1203
|
@client.list_roles(options)
|
1204
1204
|
end
|
1205
1205
|
resp.each_page do |page|
|
@@ -1234,7 +1234,7 @@ module Aws::IAM
|
|
1234
1234
|
def saml_providers(options = {})
|
1235
1235
|
batches = Enumerator.new do |y|
|
1236
1236
|
batch = []
|
1237
|
-
resp = Aws::Plugins::UserAgent.
|
1237
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
1238
1238
|
@client.list_saml_providers(options)
|
1239
1239
|
end
|
1240
1240
|
resp.data.saml_provider_list.each do |s|
|
@@ -1283,7 +1283,7 @@ module Aws::IAM
|
|
1283
1283
|
# @return [ServerCertificate::Collection]
|
1284
1284
|
def server_certificates(options = {})
|
1285
1285
|
batches = Enumerator.new do |y|
|
1286
|
-
resp = Aws::Plugins::UserAgent.
|
1286
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
1287
1287
|
@client.list_server_certificates(options)
|
1288
1288
|
end
|
1289
1289
|
resp.each_page do |page|
|
@@ -1334,7 +1334,7 @@ module Aws::IAM
|
|
1334
1334
|
# @return [User::Collection]
|
1335
1335
|
def users(options = {})
|
1336
1336
|
batches = Enumerator.new do |y|
|
1337
|
-
resp = Aws::Plugins::UserAgent.
|
1337
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
1338
1338
|
@client.list_users(options)
|
1339
1339
|
end
|
1340
1340
|
resp.each_page do |page|
|
@@ -1374,7 +1374,7 @@ module Aws::IAM
|
|
1374
1374
|
# @return [VirtualMfaDevice::Collection]
|
1375
1375
|
def virtual_mfa_devices(options = {})
|
1376
1376
|
batches = Enumerator.new do |y|
|
1377
|
-
resp = Aws::Plugins::UserAgent.
|
1377
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
1378
1378
|
@client.list_virtual_mfa_devices(options)
|
1379
1379
|
end
|
1380
1380
|
resp.each_page do |page|
|
data/lib/aws-sdk-iam/role.rb
CHANGED
@@ -157,7 +157,7 @@ module Aws::IAM
|
|
157
157
|
#
|
158
158
|
# @return [self]
|
159
159
|
def load
|
160
|
-
resp = Aws::Plugins::UserAgent.
|
160
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
161
161
|
@client.get_role(role_name: @name)
|
162
162
|
end
|
163
163
|
@data = resp.role
|
@@ -274,7 +274,7 @@ module Aws::IAM
|
|
274
274
|
:retry
|
275
275
|
end
|
276
276
|
end
|
277
|
-
Aws::Plugins::UserAgent.
|
277
|
+
Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
278
278
|
Aws::Waiters::Waiter.new(options).wait({})
|
279
279
|
end
|
280
280
|
end
|
@@ -299,7 +299,7 @@ module Aws::IAM
|
|
299
299
|
# @return [EmptyStructure]
|
300
300
|
def attach_policy(options = {})
|
301
301
|
options = options.merge(role_name: @name)
|
302
|
-
resp = Aws::Plugins::UserAgent.
|
302
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
303
303
|
@client.attach_role_policy(options)
|
304
304
|
end
|
305
305
|
resp.data
|
@@ -312,7 +312,7 @@ module Aws::IAM
|
|
312
312
|
# @return [EmptyStructure]
|
313
313
|
def delete(options = {})
|
314
314
|
options = options.merge(role_name: @name)
|
315
|
-
resp = Aws::Plugins::UserAgent.
|
315
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
316
316
|
@client.delete_role(options)
|
317
317
|
end
|
318
318
|
resp.data
|
@@ -336,7 +336,7 @@ module Aws::IAM
|
|
336
336
|
# @return [EmptyStructure]
|
337
337
|
def detach_policy(options = {})
|
338
338
|
options = options.merge(role_name: @name)
|
339
|
-
resp = Aws::Plugins::UserAgent.
|
339
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
340
340
|
@client.detach_role_policy(options)
|
341
341
|
end
|
342
342
|
resp.data
|
@@ -377,7 +377,7 @@ module Aws::IAM
|
|
377
377
|
def attached_policies(options = {})
|
378
378
|
batches = Enumerator.new do |y|
|
379
379
|
options = options.merge(role_name: @name)
|
380
|
-
resp = Aws::Plugins::UserAgent.
|
380
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
381
381
|
@client.list_attached_role_policies(options)
|
382
382
|
end
|
383
383
|
resp.each_page do |page|
|
@@ -402,7 +402,7 @@ module Aws::IAM
|
|
402
402
|
def instance_profiles(options = {})
|
403
403
|
batches = Enumerator.new do |y|
|
404
404
|
options = options.merge(role_name: @name)
|
405
|
-
resp = Aws::Plugins::UserAgent.
|
405
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
406
406
|
@client.list_instance_profiles_for_role(options)
|
407
407
|
end
|
408
408
|
resp.each_page do |page|
|
@@ -428,7 +428,7 @@ module Aws::IAM
|
|
428
428
|
def policies(options = {})
|
429
429
|
batches = Enumerator.new do |y|
|
430
430
|
options = options.merge(role_name: @name)
|
431
|
-
resp = Aws::Plugins::UserAgent.
|
431
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
432
432
|
@client.list_role_policies(options)
|
433
433
|
end
|
434
434
|
resp.each_page do |page|
|
@@ -68,7 +68,7 @@ module Aws::IAM
|
|
68
68
|
#
|
69
69
|
# @return [self]
|
70
70
|
def load
|
71
|
-
resp = Aws::Plugins::UserAgent.
|
71
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
72
72
|
@client.get_role_policy(
|
73
73
|
role_name: @role_name,
|
74
74
|
policy_name: @name
|
@@ -188,7 +188,7 @@ module Aws::IAM
|
|
188
188
|
:retry
|
189
189
|
end
|
190
190
|
end
|
191
|
-
Aws::Plugins::UserAgent.
|
191
|
+
Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
192
192
|
Aws::Waiters::Waiter.new(options).wait({})
|
193
193
|
end
|
194
194
|
end
|
@@ -205,7 +205,7 @@ module Aws::IAM
|
|
205
205
|
role_name: @role_name,
|
206
206
|
policy_name: @name
|
207
207
|
)
|
208
|
-
resp = Aws::Plugins::UserAgent.
|
208
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
209
209
|
@client.delete_role_policy(options)
|
210
210
|
end
|
211
211
|
resp.data
|
@@ -246,7 +246,7 @@ module Aws::IAM
|
|
246
246
|
role_name: @role_name,
|
247
247
|
policy_name: @name
|
248
248
|
)
|
249
|
-
resp = Aws::Plugins::UserAgent.
|
249
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
250
250
|
@client.put_role_policy(options)
|
251
251
|
end
|
252
252
|
resp.data
|
@@ -79,7 +79,7 @@ module Aws::IAM
|
|
79
79
|
#
|
80
80
|
# @return [self]
|
81
81
|
def load
|
82
|
-
resp = Aws::Plugins::UserAgent.
|
82
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
83
83
|
@client.get_saml_provider(saml_provider_arn: @arn)
|
84
84
|
end
|
85
85
|
@data = resp.data
|
@@ -196,7 +196,7 @@ module Aws::IAM
|
|
196
196
|
:retry
|
197
197
|
end
|
198
198
|
end
|
199
|
-
Aws::Plugins::UserAgent.
|
199
|
+
Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
200
200
|
Aws::Waiters::Waiter.new(options).wait({})
|
201
201
|
end
|
202
202
|
end
|
@@ -210,7 +210,7 @@ module Aws::IAM
|
|
210
210
|
# @return [EmptyStructure]
|
211
211
|
def delete(options = {})
|
212
212
|
options = options.merge(saml_provider_arn: @arn)
|
213
|
-
resp = Aws::Plugins::UserAgent.
|
213
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
214
214
|
@client.delete_saml_provider(options)
|
215
215
|
end
|
216
216
|
resp.data
|
@@ -232,7 +232,7 @@ module Aws::IAM
|
|
232
232
|
# @return [Types::UpdateSAMLProviderResponse]
|
233
233
|
def update(options = {})
|
234
234
|
options = options.merge(saml_provider_arn: @arn)
|
235
|
-
resp = Aws::Plugins::UserAgent.
|
235
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
236
236
|
@client.update_saml_provider(options)
|
237
237
|
end
|
238
238
|
resp.data
|
@@ -79,7 +79,7 @@ module Aws::IAM
|
|
79
79
|
#
|
80
80
|
# @return [self]
|
81
81
|
def load
|
82
|
-
resp = Aws::Plugins::UserAgent.
|
82
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
83
83
|
@client.get_server_certificate(server_certificate_name: @name)
|
84
84
|
end
|
85
85
|
@data = resp.server_certificate
|
@@ -196,7 +196,7 @@ module Aws::IAM
|
|
196
196
|
:retry
|
197
197
|
end
|
198
198
|
end
|
199
|
-
Aws::Plugins::UserAgent.
|
199
|
+
Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
200
200
|
Aws::Waiters::Waiter.new(options).wait({})
|
201
201
|
end
|
202
202
|
end
|
@@ -210,7 +210,7 @@ module Aws::IAM
|
|
210
210
|
# @return [EmptyStructure]
|
211
211
|
def delete(options = {})
|
212
212
|
options = options.merge(server_certificate_name: @name)
|
213
|
-
resp = Aws::Plugins::UserAgent.
|
213
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
214
214
|
@client.delete_server_certificate(options)
|
215
215
|
end
|
216
216
|
resp.data
|
@@ -253,7 +253,7 @@ module Aws::IAM
|
|
253
253
|
# @return [ServerCertificate]
|
254
254
|
def update(options = {})
|
255
255
|
options = options.merge(server_certificate_name: @name)
|
256
|
-
Aws::Plugins::UserAgent.
|
256
|
+
Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
257
257
|
@client.update_server_certificate(options)
|
258
258
|
end
|
259
259
|
ServerCertificate.new(
|
@@ -186,7 +186,7 @@ module Aws::IAM
|
|
186
186
|
:retry
|
187
187
|
end
|
188
188
|
end
|
189
|
-
Aws::Plugins::UserAgent.
|
189
|
+
Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
190
190
|
Aws::Waiters::Waiter.new(options).wait({})
|
191
191
|
end
|
192
192
|
end
|
@@ -204,7 +204,7 @@ module Aws::IAM
|
|
204
204
|
certificate_id: @id,
|
205
205
|
status: "Active"
|
206
206
|
)
|
207
|
-
resp = Aws::Plugins::UserAgent.
|
207
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
208
208
|
@client.update_signing_certificate(options)
|
209
209
|
end
|
210
210
|
resp.data
|
@@ -221,7 +221,7 @@ module Aws::IAM
|
|
221
221
|
certificate_id: @id,
|
222
222
|
status: "Inactive"
|
223
223
|
)
|
224
|
-
resp = Aws::Plugins::UserAgent.
|
224
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
225
225
|
@client.update_signing_certificate(options)
|
226
226
|
end
|
227
227
|
resp.data
|
@@ -237,7 +237,7 @@ module Aws::IAM
|
|
237
237
|
user_name: @user_name,
|
238
238
|
certificate_id: @id
|
239
239
|
)
|
240
|
-
resp = Aws::Plugins::UserAgent.
|
240
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
241
241
|
@client.delete_signing_certificate(options)
|
242
242
|
end
|
243
243
|
resp.data
|
data/lib/aws-sdk-iam/user.rb
CHANGED
@@ -150,7 +150,7 @@ module Aws::IAM
|
|
150
150
|
#
|
151
151
|
# @return [self]
|
152
152
|
def load
|
153
|
-
resp = Aws::Plugins::UserAgent.
|
153
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
154
154
|
@client.get_user(user_name: @name)
|
155
155
|
end
|
156
156
|
@data = resp.user
|
@@ -197,7 +197,7 @@ module Aws::IAM
|
|
197
197
|
options, params = separate_params_and_options(options)
|
198
198
|
waiter = Waiters::UserExists.new(options)
|
199
199
|
yield_waiter_and_warn(waiter, &block) if block_given?
|
200
|
-
Aws::Plugins::UserAgent.
|
200
|
+
Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
201
201
|
waiter.wait(params.merge(user_name: @name))
|
202
202
|
end
|
203
203
|
User.new({
|
@@ -300,7 +300,7 @@ module Aws::IAM
|
|
300
300
|
:retry
|
301
301
|
end
|
302
302
|
end
|
303
|
-
Aws::Plugins::UserAgent.
|
303
|
+
Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
304
304
|
Aws::Waiters::Waiter.new(options).wait({})
|
305
305
|
end
|
306
306
|
end
|
@@ -327,7 +327,7 @@ module Aws::IAM
|
|
327
327
|
# @return [EmptyStructure]
|
328
328
|
def add_group(options = {})
|
329
329
|
options = options.merge(user_name: @name)
|
330
|
-
resp = Aws::Plugins::UserAgent.
|
330
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
331
331
|
@client.add_user_to_group(options)
|
332
332
|
end
|
333
333
|
resp.data
|
@@ -351,7 +351,7 @@ module Aws::IAM
|
|
351
351
|
# @return [EmptyStructure]
|
352
352
|
def attach_policy(options = {})
|
353
353
|
options = options.merge(user_name: @name)
|
354
|
-
resp = Aws::Plugins::UserAgent.
|
354
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
355
355
|
@client.attach_user_policy(options)
|
356
356
|
end
|
357
357
|
resp.data
|
@@ -423,7 +423,7 @@ module Aws::IAM
|
|
423
423
|
# @return [User]
|
424
424
|
def create(options = {})
|
425
425
|
options = options.merge(user_name: @name)
|
426
|
-
resp = Aws::Plugins::UserAgent.
|
426
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
427
427
|
@client.create_user(options)
|
428
428
|
end
|
429
429
|
User.new(
|
@@ -440,7 +440,7 @@ module Aws::IAM
|
|
440
440
|
# @return [AccessKeyPair]
|
441
441
|
def create_access_key_pair(options = {})
|
442
442
|
options = options.merge(user_name: @name)
|
443
|
-
resp = Aws::Plugins::UserAgent.
|
443
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
444
444
|
@client.create_access_key(options)
|
445
445
|
end
|
446
446
|
AccessKeyPair.new(
|
@@ -481,7 +481,7 @@ module Aws::IAM
|
|
481
481
|
# @return [LoginProfile]
|
482
482
|
def create_login_profile(options = {})
|
483
483
|
options = options.merge(user_name: @name)
|
484
|
-
resp = Aws::Plugins::UserAgent.
|
484
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
485
485
|
@client.create_login_profile(options)
|
486
486
|
end
|
487
487
|
LoginProfile.new(
|
@@ -535,7 +535,7 @@ module Aws::IAM
|
|
535
535
|
# @return [UserPolicy]
|
536
536
|
def create_policy(options = {})
|
537
537
|
options = options.merge(user_name: @name)
|
538
|
-
Aws::Plugins::UserAgent.
|
538
|
+
Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
539
539
|
@client.put_user_policy(options)
|
540
540
|
end
|
541
541
|
UserPolicy.new(
|
@@ -552,7 +552,7 @@ module Aws::IAM
|
|
552
552
|
# @return [EmptyStructure]
|
553
553
|
def delete(options = {})
|
554
554
|
options = options.merge(user_name: @name)
|
555
|
-
resp = Aws::Plugins::UserAgent.
|
555
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
556
556
|
@client.delete_user(options)
|
557
557
|
end
|
558
558
|
resp.data
|
@@ -576,7 +576,7 @@ module Aws::IAM
|
|
576
576
|
# @return [EmptyStructure]
|
577
577
|
def detach_policy(options = {})
|
578
578
|
options = options.merge(user_name: @name)
|
579
|
-
resp = Aws::Plugins::UserAgent.
|
579
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
580
580
|
@client.detach_user_policy(options)
|
581
581
|
end
|
582
582
|
resp.data
|
@@ -635,7 +635,7 @@ module Aws::IAM
|
|
635
635
|
# @return [MfaDevice]
|
636
636
|
def enable_mfa(options = {})
|
637
637
|
options = options.merge(user_name: @name)
|
638
|
-
Aws::Plugins::UserAgent.
|
638
|
+
Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
639
639
|
@client.enable_mfa_device(options)
|
640
640
|
end
|
641
641
|
MfaDevice.new(
|
@@ -665,7 +665,7 @@ module Aws::IAM
|
|
665
665
|
# @return [EmptyStructure]
|
666
666
|
def remove_group(options = {})
|
667
667
|
options = options.merge(user_name: @name)
|
668
|
-
resp = Aws::Plugins::UserAgent.
|
668
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
669
669
|
@client.remove_user_from_group(options)
|
670
670
|
end
|
671
671
|
resp.data
|
@@ -702,7 +702,7 @@ module Aws::IAM
|
|
702
702
|
# @return [User]
|
703
703
|
def update(options = {})
|
704
704
|
options = options.merge(user_name: @name)
|
705
|
-
Aws::Plugins::UserAgent.
|
705
|
+
Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
706
706
|
@client.update_user(options)
|
707
707
|
end
|
708
708
|
User.new(
|
@@ -731,7 +731,7 @@ module Aws::IAM
|
|
731
731
|
def access_keys(options = {})
|
732
732
|
batches = Enumerator.new do |y|
|
733
733
|
options = options.merge(user_name: @name)
|
734
|
-
resp = Aws::Plugins::UserAgent.
|
734
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
735
735
|
@client.list_access_keys(options)
|
736
736
|
end
|
737
737
|
resp.each_page do |page|
|
@@ -775,7 +775,7 @@ module Aws::IAM
|
|
775
775
|
def attached_policies(options = {})
|
776
776
|
batches = Enumerator.new do |y|
|
777
777
|
options = options.merge(user_name: @name)
|
778
|
-
resp = Aws::Plugins::UserAgent.
|
778
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
779
779
|
@client.list_attached_user_policies(options)
|
780
780
|
end
|
781
781
|
resp.each_page do |page|
|
@@ -800,7 +800,7 @@ module Aws::IAM
|
|
800
800
|
def groups(options = {})
|
801
801
|
batches = Enumerator.new do |y|
|
802
802
|
options = options.merge(user_name: @name)
|
803
|
-
resp = Aws::Plugins::UserAgent.
|
803
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
804
804
|
@client.list_groups_for_user(options)
|
805
805
|
end
|
806
806
|
resp.each_page do |page|
|
@@ -844,7 +844,7 @@ module Aws::IAM
|
|
844
844
|
def mfa_devices(options = {})
|
845
845
|
batches = Enumerator.new do |y|
|
846
846
|
options = options.merge(user_name: @name)
|
847
|
-
resp = Aws::Plugins::UserAgent.
|
847
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
848
848
|
@client.list_mfa_devices(options)
|
849
849
|
end
|
850
850
|
resp.each_page do |page|
|
@@ -871,7 +871,7 @@ module Aws::IAM
|
|
871
871
|
def policies(options = {})
|
872
872
|
batches = Enumerator.new do |y|
|
873
873
|
options = options.merge(user_name: @name)
|
874
|
-
resp = Aws::Plugins::UserAgent.
|
874
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
875
875
|
@client.list_user_policies(options)
|
876
876
|
end
|
877
877
|
resp.each_page do |page|
|
@@ -917,7 +917,7 @@ module Aws::IAM
|
|
917
917
|
def signing_certificates(options = {})
|
918
918
|
batches = Enumerator.new do |y|
|
919
919
|
options = options.merge(user_name: @name)
|
920
|
-
resp = Aws::Plugins::UserAgent.
|
920
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
921
921
|
@client.list_signing_certificates(options)
|
922
922
|
end
|
923
923
|
resp.each_page do |page|
|
@@ -68,7 +68,7 @@ module Aws::IAM
|
|
68
68
|
#
|
69
69
|
# @return [self]
|
70
70
|
def load
|
71
|
-
resp = Aws::Plugins::UserAgent.
|
71
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
72
72
|
@client.get_user_policy(
|
73
73
|
user_name: @user_name,
|
74
74
|
policy_name: @name
|
@@ -188,7 +188,7 @@ module Aws::IAM
|
|
188
188
|
:retry
|
189
189
|
end
|
190
190
|
end
|
191
|
-
Aws::Plugins::UserAgent.
|
191
|
+
Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
192
192
|
Aws::Waiters::Waiter.new(options).wait({})
|
193
193
|
end
|
194
194
|
end
|
@@ -205,7 +205,7 @@ module Aws::IAM
|
|
205
205
|
user_name: @user_name,
|
206
206
|
policy_name: @name
|
207
207
|
)
|
208
|
-
resp = Aws::Plugins::UserAgent.
|
208
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
209
209
|
@client.delete_user_policy(options)
|
210
210
|
end
|
211
211
|
resp.data
|
@@ -246,7 +246,7 @@ module Aws::IAM
|
|
246
246
|
user_name: @user_name,
|
247
247
|
policy_name: @name
|
248
248
|
)
|
249
|
-
resp = Aws::Plugins::UserAgent.
|
249
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
250
250
|
@client.put_user_policy(options)
|
251
251
|
end
|
252
252
|
resp.data
|
@@ -198,7 +198,7 @@ module Aws::IAM
|
|
198
198
|
:retry
|
199
199
|
end
|
200
200
|
end
|
201
|
-
Aws::Plugins::UserAgent.
|
201
|
+
Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
202
202
|
Aws::Waiters::Waiter.new(options).wait({})
|
203
203
|
end
|
204
204
|
end
|
@@ -212,7 +212,7 @@ module Aws::IAM
|
|
212
212
|
# @return [EmptyStructure]
|
213
213
|
def delete(options = {})
|
214
214
|
options = options.merge(serial_number: @serial_number)
|
215
|
-
resp = Aws::Plugins::UserAgent.
|
215
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
216
216
|
@client.delete_virtual_mfa_device(options)
|
217
217
|
end
|
218
218
|
resp.data
|