aws-sdk-iam 1.98.0 → 1.100.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 +6 -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
data/lib/aws-sdk-iam/policy.rb
CHANGED
@@ -163,7 +163,7 @@ module Aws::IAM
|
|
163
163
|
#
|
164
164
|
# @return [self]
|
165
165
|
def load
|
166
|
-
resp = Aws::Plugins::UserAgent.
|
166
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
167
167
|
@client.get_policy(policy_arn: @arn)
|
168
168
|
end
|
169
169
|
@data = resp.policy
|
@@ -280,7 +280,7 @@ module Aws::IAM
|
|
280
280
|
:retry
|
281
281
|
end
|
282
282
|
end
|
283
|
-
Aws::Plugins::UserAgent.
|
283
|
+
Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
284
284
|
Aws::Waiters::Waiter.new(options).wait({})
|
285
285
|
end
|
286
286
|
end
|
@@ -308,7 +308,7 @@ module Aws::IAM
|
|
308
308
|
# @return [EmptyStructure]
|
309
309
|
def attach_group(options = {})
|
310
310
|
options = options.merge(policy_arn: @arn)
|
311
|
-
resp = Aws::Plugins::UserAgent.
|
311
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
312
312
|
@client.attach_group_policy(options)
|
313
313
|
end
|
314
314
|
resp.data
|
@@ -334,7 +334,7 @@ module Aws::IAM
|
|
334
334
|
# @return [EmptyStructure]
|
335
335
|
def attach_role(options = {})
|
336
336
|
options = options.merge(policy_arn: @arn)
|
337
|
-
resp = Aws::Plugins::UserAgent.
|
337
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
338
338
|
@client.attach_role_policy(options)
|
339
339
|
end
|
340
340
|
resp.data
|
@@ -361,7 +361,7 @@ module Aws::IAM
|
|
361
361
|
# @return [EmptyStructure]
|
362
362
|
def attach_user(options = {})
|
363
363
|
options = options.merge(policy_arn: @arn)
|
364
|
-
resp = Aws::Plugins::UserAgent.
|
364
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
365
365
|
@client.attach_user_policy(options)
|
366
366
|
end
|
367
367
|
resp.data
|
@@ -421,7 +421,7 @@ module Aws::IAM
|
|
421
421
|
# @return [PolicyVersion]
|
422
422
|
def create_version(options = {})
|
423
423
|
options = options.merge(policy_arn: @arn)
|
424
|
-
resp = Aws::Plugins::UserAgent.
|
424
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
425
425
|
@client.create_policy_version(options)
|
426
426
|
end
|
427
427
|
PolicyVersion.new(
|
@@ -438,7 +438,7 @@ module Aws::IAM
|
|
438
438
|
# @return [EmptyStructure]
|
439
439
|
def delete(options = {})
|
440
440
|
options = options.merge(policy_arn: @arn)
|
441
|
-
resp = Aws::Plugins::UserAgent.
|
441
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
442
442
|
@client.delete_policy(options)
|
443
443
|
end
|
444
444
|
resp.data
|
@@ -465,7 +465,7 @@ module Aws::IAM
|
|
465
465
|
# @return [EmptyStructure]
|
466
466
|
def detach_group(options = {})
|
467
467
|
options = options.merge(policy_arn: @arn)
|
468
|
-
resp = Aws::Plugins::UserAgent.
|
468
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
469
469
|
@client.detach_group_policy(options)
|
470
470
|
end
|
471
471
|
resp.data
|
@@ -492,7 +492,7 @@ module Aws::IAM
|
|
492
492
|
# @return [EmptyStructure]
|
493
493
|
def detach_role(options = {})
|
494
494
|
options = options.merge(policy_arn: @arn)
|
495
|
-
resp = Aws::Plugins::UserAgent.
|
495
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
496
496
|
@client.detach_role_policy(options)
|
497
497
|
end
|
498
498
|
resp.data
|
@@ -519,7 +519,7 @@ module Aws::IAM
|
|
519
519
|
# @return [EmptyStructure]
|
520
520
|
def detach_user(options = {})
|
521
521
|
options = options.merge(policy_arn: @arn)
|
522
|
-
resp = Aws::Plugins::UserAgent.
|
522
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
523
523
|
@client.detach_user_policy(options)
|
524
524
|
end
|
525
525
|
resp.data
|
@@ -566,7 +566,7 @@ module Aws::IAM
|
|
566
566
|
policy_arn: @arn,
|
567
567
|
entity_filter: "Group"
|
568
568
|
)
|
569
|
-
resp = Aws::Plugins::UserAgent.
|
569
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
570
570
|
@client.list_entities_for_policy(options)
|
571
571
|
end
|
572
572
|
resp.each_page do |page|
|
@@ -623,7 +623,7 @@ module Aws::IAM
|
|
623
623
|
policy_arn: @arn,
|
624
624
|
entity_filter: "Role"
|
625
625
|
)
|
626
|
-
resp = Aws::Plugins::UserAgent.
|
626
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
627
627
|
@client.list_entities_for_policy(options)
|
628
628
|
end
|
629
629
|
resp.each_page do |page|
|
@@ -680,7 +680,7 @@ module Aws::IAM
|
|
680
680
|
policy_arn: @arn,
|
681
681
|
entity_filter: "User"
|
682
682
|
)
|
683
|
-
resp = Aws::Plugins::UserAgent.
|
683
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
684
684
|
@client.list_entities_for_policy(options)
|
685
685
|
end
|
686
686
|
resp.each_page do |page|
|
@@ -719,7 +719,7 @@ module Aws::IAM
|
|
719
719
|
def versions(options = {})
|
720
720
|
batches = Enumerator.new do |y|
|
721
721
|
options = options.merge(policy_arn: @arn)
|
722
|
-
resp = Aws::Plugins::UserAgent.
|
722
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
723
723
|
@client.list_policy_versions(options)
|
724
724
|
end
|
725
725
|
resp.each_page do |page|
|
@@ -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
|