aws-sdk-iam 1.98.0 → 1.99.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 83118ebd6c913d29903c1806d47dd49e385e960e3a83ee82bbfdff44d31d6083
4
- data.tar.gz: d4f83d4d037e29c3f1c35199bc6055cbcaf1fe3cc32138b5c49b3b32e3e0131d
3
+ metadata.gz: e33c265b4ce6e57a7265976075b5146784243d051b72c574a4a41ed8c6b40efd
4
+ data.tar.gz: db025a9f724fb3b1eb7800029eabf43d18cb4bdd0cb05cc47965b2bf191eb94e
5
5
  SHA512:
6
- metadata.gz: f670a22ee535c07d844b47355c74b454dadbbf87e21a66ae121823afaa9f5cec66d075645bb0bc676536ba3cef7a63cecb2716b3d1e5f0199ad9d6b394162bd7
7
- data.tar.gz: a72f637cb0d99cd930442671e4708be2696558e9216aad9147eaad40f96295bcfe171d61f45121e0dbc256c6005270d7d660598f9efbf06aa4d2b3d592192e51
6
+ metadata.gz: cea9b820a7651f8cc145f7d73e910c2e42bbc423297871f9149d8d09e54642e3ea6db37dbaa8bf653fa964de942b3acff43f7e2e6bc7ee7c70e26cfdbb846a9f
7
+ data.tar.gz: e966db6d84ad124d88baf33952ab8c26d70e5a2d9fe64771d51021feba171c9fa1f52d461eea7ec16df415b49294864b5b1a100af4846d244225b8c0168f298e
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.99.0 (2024-06-05)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
4
9
  1.98.0 (2024-05-13)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.98.0
1
+ 1.99.0
@@ -180,7 +180,7 @@ module Aws::IAM
180
180
  :retry
181
181
  end
182
182
  end
183
- Aws::Plugins::UserAgent.feature('resource') do
183
+ Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
184
184
  Aws::Waiters::Waiter.new(options).wait({})
185
185
  end
186
186
  end
@@ -198,7 +198,7 @@ module Aws::IAM
198
198
  access_key_id: @id,
199
199
  status: "Active"
200
200
  )
201
- resp = Aws::Plugins::UserAgent.feature('resource') do
201
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
202
202
  @client.update_access_key(options)
203
203
  end
204
204
  resp.data
@@ -215,7 +215,7 @@ module Aws::IAM
215
215
  access_key_id: @id,
216
216
  status: "Inactive"
217
217
  )
218
- resp = Aws::Plugins::UserAgent.feature('resource') do
218
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
219
219
  @client.update_access_key(options)
220
220
  end
221
221
  resp.data
@@ -231,7 +231,7 @@ module Aws::IAM
231
231
  user_name: @user_name,
232
232
  access_key_id: @id
233
233
  )
234
- resp = Aws::Plugins::UserAgent.feature('resource') do
234
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
235
235
  @client.delete_access_key(options)
236
236
  end
237
237
  resp.data
@@ -189,7 +189,7 @@ module Aws::IAM
189
189
  :retry
190
190
  end
191
191
  end
192
- Aws::Plugins::UserAgent.feature('resource') do
192
+ Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
193
193
  Aws::Waiters::Waiter.new(options).wait({})
194
194
  end
195
195
  end
@@ -207,7 +207,7 @@ module Aws::IAM
207
207
  access_key_id: @id,
208
208
  status: "Active"
209
209
  )
210
- resp = Aws::Plugins::UserAgent.feature('resource') do
210
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
211
211
  @client.update_access_key(options)
212
212
  end
213
213
  resp.data
@@ -224,7 +224,7 @@ module Aws::IAM
224
224
  access_key_id: @id,
225
225
  status: "Inactive"
226
226
  )
227
- resp = Aws::Plugins::UserAgent.feature('resource') do
227
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
228
228
  @client.update_access_key(options)
229
229
  end
230
230
  resp.data
@@ -240,7 +240,7 @@ module Aws::IAM
240
240
  user_name: @user_name,
241
241
  access_key_id: @id
242
242
  )
243
- resp = Aws::Plugins::UserAgent.feature('resource') do
243
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
244
244
  @client.delete_access_key(options)
245
245
  end
246
246
  resp.data
@@ -116,7 +116,7 @@ module Aws::IAM
116
116
  #
117
117
  # @return [self]
118
118
  def load
119
- resp = Aws::Plugins::UserAgent.feature('resource') do
119
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
120
120
  @client.get_account_password_policy
121
121
  end
122
122
  @data = resp.password_policy
@@ -233,7 +233,7 @@ module Aws::IAM
233
233
  :retry
234
234
  end
235
235
  end
236
- Aws::Plugins::UserAgent.feature('resource') do
236
+ Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
237
237
  Aws::Waiters::Waiter.new(options).wait({})
238
238
  end
239
239
  end
@@ -246,7 +246,7 @@ module Aws::IAM
246
246
  # @param [Hash] options ({})
247
247
  # @return [EmptyStructure]
248
248
  def delete(options = {})
249
- resp = Aws::Plugins::UserAgent.feature('resource') do
249
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
250
250
  @client.delete_account_password_policy(options)
251
251
  end
252
252
  resp.data
@@ -351,7 +351,7 @@ module Aws::IAM
351
351
  # </note>
352
352
  # @return [EmptyStructure]
353
353
  def update(options = {})
354
- resp = Aws::Plugins::UserAgent.feature('resource') do
354
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
355
355
  @client.update_account_password_policy(options)
356
356
  end
357
357
  resp.data
@@ -45,7 +45,7 @@ module Aws::IAM
45
45
  #
46
46
  # @return [self]
47
47
  def load
48
- resp = Aws::Plugins::UserAgent.feature('resource') do
48
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
49
49
  @client.get_account_summary
50
50
  end
51
51
  @data = resp.data
@@ -162,7 +162,7 @@ module Aws::IAM
162
162
  :retry
163
163
  end
164
164
  end
165
- Aws::Plugins::UserAgent.feature('resource') do
165
+ Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
166
166
  Aws::Waiters::Waiter.new(options).wait({})
167
167
  end
168
168
  end
@@ -156,7 +156,7 @@ module Aws::IAM
156
156
  :retry
157
157
  end
158
158
  end
159
- Aws::Plugins::UserAgent.feature('resource') do
159
+ Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
160
160
  Aws::Waiters::Waiter.new(options).wait({})
161
161
  end
162
162
  end
@@ -195,7 +195,7 @@ module Aws::IAM
195
195
  # @return [EmptyStructure]
196
196
  def update(options = {})
197
197
  options = options.merge(role_name: @role_name)
198
- resp = Aws::Plugins::UserAgent.feature('resource') do
198
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
199
199
  @client.update_assume_role_policy(options)
200
200
  end
201
201
  resp.data
@@ -13500,7 +13500,7 @@ module Aws::IAM
13500
13500
  params: params,
13501
13501
  config: config)
13502
13502
  context[:gem_name] = 'aws-sdk-iam'
13503
- context[:gem_version] = '1.98.0'
13503
+ context[:gem_version] = '1.99.0'
13504
13504
  Seahorse::Client::Request.new(handlers, context)
13505
13505
  end
13506
13506
 
@@ -145,7 +145,7 @@ module Aws::IAM
145
145
  #
146
146
  # @return [self]
147
147
  def load
148
- resp = Aws::Plugins::UserAgent.feature('resource') do
148
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
149
149
  @client.get_user
150
150
  end
151
151
  @data = resp.user
@@ -262,7 +262,7 @@ module Aws::IAM
262
262
  :retry
263
263
  end
264
264
  end
265
- Aws::Plugins::UserAgent.feature('resource') do
265
+ Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
266
266
  Aws::Waiters::Waiter.new(options).wait({})
267
267
  end
268
268
  end
@@ -289,7 +289,7 @@ module Aws::IAM
289
289
  # @return [AccessKey::Collection]
290
290
  def access_keys(options = {})
291
291
  batches = Enumerator.new do |y|
292
- resp = Aws::Plugins::UserAgent.feature('resource') do
292
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
293
293
  @client.list_access_keys(options)
294
294
  end
295
295
  resp.each_page do |page|
@@ -328,7 +328,7 @@ module Aws::IAM
328
328
  # @return [MfaDevice::Collection]
329
329
  def mfa_devices(options = {})
330
330
  batches = Enumerator.new do |y|
331
- resp = Aws::Plugins::UserAgent.feature('resource') do
331
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
332
332
  @client.list_mfa_devices(options)
333
333
  end
334
334
  resp.each_page do |page|
@@ -368,7 +368,7 @@ module Aws::IAM
368
368
  # @return [SigningCertificate::Collection]
369
369
  def signing_certificates(options = {})
370
370
  batches = Enumerator.new do |y|
371
- resp = Aws::Plugins::UserAgent.feature('resource') do
371
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
372
372
  @client.list_signing_certificates(options)
373
373
  end
374
374
  resp.each_page do |page|
@@ -9,7 +9,7 @@ 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
- Aws::Plugins::UserAgent.feature('resource') do
12
+ Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
13
13
  if name = @client.list_account_aliases.account_aliases.first
14
14
  @client.delete_account_alias(account_alias: name)
15
15
  else
@@ -95,7 +95,7 @@ module Aws::IAM
95
95
  #
96
96
  # @return [self]
97
97
  def load
98
- resp = Aws::Plugins::UserAgent.feature('resource') do
98
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
99
99
  @client.get_group(group_name: @name)
100
100
  end
101
101
  @data = resp.group
@@ -212,7 +212,7 @@ module Aws::IAM
212
212
  :retry
213
213
  end
214
214
  end
215
- Aws::Plugins::UserAgent.feature('resource') do
215
+ Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
216
216
  Aws::Waiters::Waiter.new(options).wait({})
217
217
  end
218
218
  end
@@ -239,7 +239,7 @@ module Aws::IAM
239
239
  # @return [EmptyStructure]
240
240
  def add_user(options = {})
241
241
  options = options.merge(group_name: @name)
242
- resp = Aws::Plugins::UserAgent.feature('resource') do
242
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
243
243
  @client.add_user_to_group(options)
244
244
  end
245
245
  resp.data
@@ -263,7 +263,7 @@ module Aws::IAM
263
263
  # @return [EmptyStructure]
264
264
  def attach_policy(options = {})
265
265
  options = options.merge(group_name: @name)
266
- resp = Aws::Plugins::UserAgent.feature('resource') do
266
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
267
267
  @client.attach_group_policy(options)
268
268
  end
269
269
  resp.data
@@ -296,7 +296,7 @@ module Aws::IAM
296
296
  # @return [Group]
297
297
  def create(options = {})
298
298
  options = options.merge(group_name: @name)
299
- resp = Aws::Plugins::UserAgent.feature('resource') do
299
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
300
300
  @client.create_group(options)
301
301
  end
302
302
  Group.new(
@@ -350,7 +350,7 @@ module Aws::IAM
350
350
  # @return [GroupPolicy]
351
351
  def create_policy(options = {})
352
352
  options = options.merge(group_name: @name)
353
- Aws::Plugins::UserAgent.feature('resource') do
353
+ Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
354
354
  @client.put_group_policy(options)
355
355
  end
356
356
  GroupPolicy.new(
@@ -367,7 +367,7 @@ module Aws::IAM
367
367
  # @return [EmptyStructure]
368
368
  def delete(options = {})
369
369
  options = options.merge(group_name: @name)
370
- resp = Aws::Plugins::UserAgent.feature('resource') do
370
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
371
371
  @client.delete_group(options)
372
372
  end
373
373
  resp.data
@@ -391,7 +391,7 @@ module Aws::IAM
391
391
  # @return [EmptyStructure]
392
392
  def detach_policy(options = {})
393
393
  options = options.merge(group_name: @name)
394
- resp = Aws::Plugins::UserAgent.feature('resource') do
394
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
395
395
  @client.detach_group_policy(options)
396
396
  end
397
397
  resp.data
@@ -417,7 +417,7 @@ module Aws::IAM
417
417
  # @return [EmptyStructure]
418
418
  def remove_user(options = {})
419
419
  options = options.merge(group_name: @name)
420
- resp = Aws::Plugins::UserAgent.feature('resource') do
420
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
421
421
  @client.remove_user_from_group(options)
422
422
  end
423
423
  resp.data
@@ -454,7 +454,7 @@ module Aws::IAM
454
454
  # @return [Group]
455
455
  def update(options = {})
456
456
  options = options.merge(group_name: @name)
457
- Aws::Plugins::UserAgent.feature('resource') do
457
+ Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
458
458
  @client.update_group(options)
459
459
  end
460
460
  Group.new(
@@ -490,7 +490,7 @@ module Aws::IAM
490
490
  def attached_policies(options = {})
491
491
  batches = Enumerator.new do |y|
492
492
  options = options.merge(group_name: @name)
493
- resp = Aws::Plugins::UserAgent.feature('resource') do
493
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
494
494
  @client.list_attached_group_policies(options)
495
495
  end
496
496
  resp.each_page do |page|
@@ -515,7 +515,7 @@ module Aws::IAM
515
515
  def policies(options = {})
516
516
  batches = Enumerator.new do |y|
517
517
  options = options.merge(group_name: @name)
518
- resp = Aws::Plugins::UserAgent.feature('resource') do
518
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
519
519
  @client.list_group_policies(options)
520
520
  end
521
521
  resp.each_page do |page|
@@ -551,7 +551,7 @@ module Aws::IAM
551
551
  def users(options = {})
552
552
  batches = Enumerator.new do |y|
553
553
  options = options.merge(group_name: @name)
554
- resp = Aws::Plugins::UserAgent.feature('resource') do
554
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
555
555
  @client.get_group(options)
556
556
  end
557
557
  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.feature('resource') do
71
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
72
72
  @client.get_group_policy(
73
73
  group_name: @group_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.feature('resource') do
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
  group_name: @group_name,
206
206
  policy_name: @name
207
207
  )
208
- resp = Aws::Plugins::UserAgent.feature('resource') do
208
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
209
209
  @client.delete_group_policy(options)
210
210
  end
211
211
  resp.data
@@ -246,7 +246,7 @@ module Aws::IAM
246
246
  group_name: @group_name,
247
247
  policy_name: @name
248
248
  )
249
- resp = Aws::Plugins::UserAgent.feature('resource') do
249
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
250
250
  @client.put_group_policy(options)
251
251
  end
252
252
  resp.data
@@ -102,7 +102,7 @@ module Aws::IAM
102
102
  #
103
103
  # @return [self]
104
104
  def load
105
- resp = Aws::Plugins::UserAgent.feature('resource') do
105
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
106
106
  @client.get_instance_profile(instance_profile_name: @name)
107
107
  end
108
108
  @data = resp.instance_profile
@@ -149,7 +149,7 @@ module Aws::IAM
149
149
  options, params = separate_params_and_options(options)
150
150
  waiter = Waiters::InstanceProfileExists.new(options)
151
151
  yield_waiter_and_warn(waiter, &block) if block_given?
152
- Aws::Plugins::UserAgent.feature('resource') do
152
+ Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
153
153
  waiter.wait(params.merge(instance_profile_name: @name))
154
154
  end
155
155
  InstanceProfile.new({
@@ -252,7 +252,7 @@ module Aws::IAM
252
252
  :retry
253
253
  end
254
254
  end
255
- Aws::Plugins::UserAgent.feature('resource') do
255
+ Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
256
256
  Aws::Waiters::Waiter.new(options).wait({})
257
257
  end
258
258
  end
@@ -279,7 +279,7 @@ module Aws::IAM
279
279
  # @return [EmptyStructure]
280
280
  def add_role(options = {})
281
281
  options = options.merge(instance_profile_name: @name)
282
- resp = Aws::Plugins::UserAgent.feature('resource') do
282
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
283
283
  @client.add_role_to_instance_profile(options)
284
284
  end
285
285
  resp.data
@@ -292,7 +292,7 @@ module Aws::IAM
292
292
  # @return [EmptyStructure]
293
293
  def delete(options = {})
294
294
  options = options.merge(instance_profile_name: @name)
295
- resp = Aws::Plugins::UserAgent.feature('resource') do
295
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
296
296
  @client.delete_instance_profile(options)
297
297
  end
298
298
  resp.data
@@ -318,7 +318,7 @@ module Aws::IAM
318
318
  # @return [EmptyStructure]
319
319
  def remove_role(options = {})
320
320
  options = options.merge(instance_profile_name: @name)
321
- resp = Aws::Plugins::UserAgent.feature('resource') do
321
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
322
322
  @client.remove_role_from_instance_profile(options)
323
323
  end
324
324
  resp.data
@@ -61,7 +61,7 @@ module Aws::IAM
61
61
  #
62
62
  # @return [self]
63
63
  def load
64
- resp = Aws::Plugins::UserAgent.feature('resource') do
64
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
65
65
  @client.get_login_profile(user_name: @user_name)
66
66
  end
67
67
  @data = resp.login_profile
@@ -178,7 +178,7 @@ module Aws::IAM
178
178
  :retry
179
179
  end
180
180
  end
181
- Aws::Plugins::UserAgent.feature('resource') do
181
+ Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
182
182
  Aws::Waiters::Waiter.new(options).wait({})
183
183
  end
184
184
  end
@@ -214,7 +214,7 @@ module Aws::IAM
214
214
  # @return [LoginProfile]
215
215
  def create(options = {})
216
216
  options = options.merge(user_name: @user_name)
217
- resp = Aws::Plugins::UserAgent.feature('resource') do
217
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
218
218
  @client.create_login_profile(options)
219
219
  end
220
220
  LoginProfile.new(
@@ -231,7 +231,7 @@ module Aws::IAM
231
231
  # @return [EmptyStructure]
232
232
  def delete(options = {})
233
233
  options = options.merge(user_name: @user_name)
234
- resp = Aws::Plugins::UserAgent.feature('resource') do
234
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
235
235
  @client.delete_login_profile(options)
236
236
  end
237
237
  resp.data
@@ -272,7 +272,7 @@ module Aws::IAM
272
272
  # @return [EmptyStructure]
273
273
  def update(options = {})
274
274
  options = options.merge(user_name: @user_name)
275
- resp = Aws::Plugins::UserAgent.feature('resource') do
275
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
276
276
  @client.update_login_profile(options)
277
277
  end
278
278
  resp.data
@@ -172,7 +172,7 @@ module Aws::IAM
172
172
  :retry
173
173
  end
174
174
  end
175
- Aws::Plugins::UserAgent.feature('resource') do
175
+ Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
176
176
  Aws::Waiters::Waiter.new(options).wait({})
177
177
  end
178
178
  end
@@ -222,7 +222,7 @@ module Aws::IAM
222
222
  user_name: @user_name,
223
223
  serial_number: @serial_number
224
224
  )
225
- resp = Aws::Plugins::UserAgent.feature('resource') do
225
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
226
226
  @client.enable_mfa_device(options)
227
227
  end
228
228
  resp.data
@@ -238,7 +238,7 @@ module Aws::IAM
238
238
  user_name: @user_name,
239
239
  serial_number: @serial_number
240
240
  )
241
- resp = Aws::Plugins::UserAgent.feature('resource') do
241
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
242
242
  @client.deactivate_mfa_device(options)
243
243
  end
244
244
  resp.data
@@ -265,7 +265,7 @@ module Aws::IAM
265
265
  user_name: @user_name,
266
266
  serial_number: @serial_number
267
267
  )
268
- resp = Aws::Plugins::UserAgent.feature('resource') do
268
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
269
269
  @client.resync_mfa_device(options)
270
270
  end
271
271
  resp.data
@@ -163,7 +163,7 @@ module Aws::IAM
163
163
  #
164
164
  # @return [self]
165
165
  def load
166
- resp = Aws::Plugins::UserAgent.feature('resource') do
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.feature('resource') do
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.feature('resource') do
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.feature('resource') do
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.feature('resource') do
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.feature('resource') do
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.feature('resource') do
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.feature('resource') do
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.feature('resource') do
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.feature('resource') do
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.feature('resource') do
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.feature('resource') do
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.feature('resource') do
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.feature('resource') do
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|