aws-sdk-ec2 1.459.0 → 1.460.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: b4bff2aa6adcc4e3ef6d97d48f243f4f228328b28570ae1195233d4ec6cf279d
4
- data.tar.gz: 013ff5d35e3ffa16b93a97a5d929168c307b2bf9390d1495722fd45b5cb0f2d5
3
+ metadata.gz: 1877b4e09be57a62e49a3f11a138b0fbf62944df6af54ee95abfd17c7fafee77
4
+ data.tar.gz: 54fd8a8e37a2da6f382528d35c198bb1d4ba262b86cb0aefe57f41cf0427e6d2
5
5
  SHA512:
6
- metadata.gz: 18e12f06bafe26cc1fba6beacedf366952d6a5a5c18e2571e776c6574e0b0bf64597e3179bf6f50c075c95963881be403aad63378cd6b0b50565234aa83386b1
7
- data.tar.gz: 91fe33dae5900596b45813740b860218ba588e4ab17129607bfc5aa647c6c318ae726315fc2c78fdae73ad790c4b9b242acded916f5e9a6d68202a4eca776b45
6
+ metadata.gz: ac249b61d75f4f408a87294fb4489b3d753de377a1781c6f54f0003bbecf216fcb56f89f02309f458a53f42e9189d30db520e476e9661fc152424f6f89529b03
7
+ data.tar.gz: fe57f499edcc988d364f2acb89e0bfbbd40db93d7e12da7f23e0a1c3dbeb9b62d6f266a4e55056bd9a973b612ffe4f034e4c134e306e82a1994df1c3a9943b8b
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.460.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.459.0 (2024-06-04)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.459.0
1
+ 1.460.0
@@ -131,7 +131,7 @@ module Aws::EC2
131
131
  #
132
132
  # @return [self]
133
133
  def load
134
- resp = Aws::Plugins::UserAgent.feature('resource') do
134
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
135
135
  @client.describe_addresses(public_ips: [@public_ip])
136
136
  end
137
137
  @data = resp.addresses[0]
@@ -248,7 +248,7 @@ module Aws::EC2
248
248
  :retry
249
249
  end
250
250
  end
251
- Aws::Plugins::UserAgent.feature('resource') do
251
+ Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
252
252
  Aws::Waiters::Waiter.new(options).wait({})
253
253
  end
254
254
  end
@@ -294,7 +294,7 @@ module Aws::EC2
294
294
  # @return [Types::AssociateAddressResult]
295
295
  def associate(options = {})
296
296
  options = options.merge(public_ip: @public_ip)
297
- resp = Aws::Plugins::UserAgent.feature('resource') do
297
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
298
298
  @client.associate_address(options)
299
299
  end
300
300
  resp.data
@@ -317,7 +317,7 @@ module Aws::EC2
317
317
  # @return [EmptyStructure]
318
318
  def disassociate(options = {})
319
319
  options = options.merge(public_ip: data[:public_ip])
320
- resp = Aws::Plugins::UserAgent.feature('resource') do
320
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
321
321
  @client.disassociate_address(options)
322
322
  end
323
323
  resp.data
@@ -347,7 +347,7 @@ module Aws::EC2
347
347
  # @return [EmptyStructure]
348
348
  def release(options = {})
349
349
  options = options.merge(public_ip: data[:public_ip])
350
- resp = Aws::Plugins::UserAgent.feature('resource') do
350
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
351
351
  @client.release_address(options)
352
352
  end
353
353
  resp.data
@@ -59376,7 +59376,7 @@ module Aws::EC2
59376
59376
  params: params,
59377
59377
  config: config)
59378
59378
  context[:gem_name] = 'aws-sdk-ec2'
59379
- context[:gem_version] = '1.459.0'
59379
+ context[:gem_version] = '1.460.0'
59380
59380
  Seahorse::Client::Request.new(handlers, context)
59381
59381
  end
59382
59382
 
@@ -18,7 +18,7 @@ module Aws
18
18
  private
19
19
 
20
20
  def encrypted_password
21
- bytes = Aws::Plugins::UserAgent.feature('resource') do
21
+ bytes = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
22
22
  client.get_password_data(instance_id: id).password_data
23
23
  end
24
24
  if bytes == ''
@@ -48,7 +48,7 @@ module Aws
48
48
  class Resource
49
49
  prepend ResourcePaginationFix
50
50
  def create_tags(options)
51
- resp = Aws::Plugins::UserAgent.feature('resource') do
51
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
52
52
  @client.create_tags(options)
53
53
  end
54
54
  tags = []
@@ -68,7 +68,7 @@ module Aws::EC2
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.describe_dhcp_options(dhcp_options_ids: [@id])
73
73
  end
74
74
  @data = resp.dhcp_options[0]
@@ -185,7 +185,7 @@ module Aws::EC2
185
185
  :retry
186
186
  end
187
187
  end
188
- Aws::Plugins::UserAgent.feature('resource') do
188
+ Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
189
189
  Aws::Waiters::Waiter.new(options).wait({})
190
190
  end
191
191
  end
@@ -209,7 +209,7 @@ module Aws::EC2
209
209
  # @return [EmptyStructure]
210
210
  def associate_with_vpc(options = {})
211
211
  options = options.merge(dhcp_options_id: @id)
212
- resp = Aws::Plugins::UserAgent.feature('resource') do
212
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
213
213
  @client.associate_dhcp_options(options)
214
214
  end
215
215
  resp.data
@@ -240,7 +240,7 @@ module Aws::EC2
240
240
  def create_tags(options = {})
241
241
  batch = []
242
242
  options = Aws::Util.deep_merge(options, resources: [@id])
243
- resp = Aws::Plugins::UserAgent.feature('resource') do
243
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
244
244
  @client.create_tags(options)
245
245
  end
246
246
  options[:tags].each do |t|
@@ -287,7 +287,7 @@ module Aws::EC2
287
287
  def delete_tags(options = {})
288
288
  batch = []
289
289
  options = Aws::Util.deep_merge(options, resources: [@id])
290
- resp = Aws::Plugins::UserAgent.feature('resource') do
290
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
291
291
  @client.delete_tags(options)
292
292
  end
293
293
  options[:tags].each do |t|
@@ -315,7 +315,7 @@ module Aws::EC2
315
315
  # @return [EmptyStructure]
316
316
  def delete(options = {})
317
317
  options = options.merge(dhcp_options_id: @id)
318
- resp = Aws::Plugins::UserAgent.feature('resource') do
318
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
319
319
  @client.delete_dhcp_options(options)
320
320
  end
321
321
  resp.data
@@ -308,7 +308,7 @@ module Aws::EC2
308
308
  #
309
309
  # @return [self]
310
310
  def load
311
- resp = Aws::Plugins::UserAgent.feature('resource') do
311
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
312
312
  @client.describe_images(image_ids: [@id])
313
313
  end
314
314
  @data = resp.images[0]
@@ -355,7 +355,7 @@ module Aws::EC2
355
355
  options, params = separate_params_and_options(options)
356
356
  waiter = Waiters::ImageExists.new(options)
357
357
  yield_waiter_and_warn(waiter, &block) if block_given?
358
- resp = Aws::Plugins::UserAgent.feature('resource') do
358
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
359
359
  waiter.wait(params.merge(image_ids: [@id]))
360
360
  end
361
361
  Image.new({
@@ -459,7 +459,7 @@ module Aws::EC2
459
459
  :retry
460
460
  end
461
461
  end
462
- Aws::Plugins::UserAgent.feature('resource') do
462
+ Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
463
463
  Aws::Waiters::Waiter.new(options).wait({})
464
464
  end
465
465
  end
@@ -491,7 +491,7 @@ module Aws::EC2
491
491
  def create_tags(options = {})
492
492
  batch = []
493
493
  options = Aws::Util.deep_merge(options, resources: [@id])
494
- resp = Aws::Plugins::UserAgent.feature('resource') do
494
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
495
495
  @client.create_tags(options)
496
496
  end
497
497
  options[:tags].each do |t|
@@ -538,7 +538,7 @@ module Aws::EC2
538
538
  def delete_tags(options = {})
539
539
  batch = []
540
540
  options = Aws::Util.deep_merge(options, resources: [@id])
541
- resp = Aws::Plugins::UserAgent.feature('resource') do
541
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
542
542
  @client.delete_tags(options)
543
543
  end
544
544
  options[:tags].each do |t|
@@ -566,7 +566,7 @@ module Aws::EC2
566
566
  # @return [EmptyStructure]
567
567
  def deregister(options = {})
568
568
  options = options.merge(image_id: @id)
569
- resp = Aws::Plugins::UserAgent.feature('resource') do
569
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
570
570
  @client.deregister_image(options)
571
571
  end
572
572
  resp.data
@@ -594,7 +594,7 @@ module Aws::EC2
594
594
  # @return [Types::ImageAttribute]
595
595
  def describe_attribute(options = {})
596
596
  options = options.merge(image_id: @id)
597
- resp = Aws::Plugins::UserAgent.feature('resource') do
597
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
598
598
  @client.describe_image_attribute(options)
599
599
  end
600
600
  resp.data
@@ -686,7 +686,7 @@ module Aws::EC2
686
686
  # @return [EmptyStructure]
687
687
  def modify_attribute(options = {})
688
688
  options = options.merge(image_id: @id)
689
- resp = Aws::Plugins::UserAgent.feature('resource') do
689
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
690
690
  @client.modify_image_attribute(options)
691
691
  end
692
692
  resp.data
@@ -710,7 +710,7 @@ module Aws::EC2
710
710
  # @return [EmptyStructure]
711
711
  def reset_attribute(options = {})
712
712
  options = options.merge(image_id: @id)
713
- resp = Aws::Plugins::UserAgent.feature('resource') do
713
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
714
714
  @client.reset_image_attribute(options)
715
715
  end
716
716
  resp.data
@@ -450,7 +450,7 @@ module Aws::EC2
450
450
  #
451
451
  # @return [self]
452
452
  def load
453
- resp = Aws::Plugins::UserAgent.feature('resource') do
453
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
454
454
  @client.describe_instances(instance_ids: [@id])
455
455
  end
456
456
  @data = resp.reservations[0].instances[0]
@@ -497,7 +497,7 @@ module Aws::EC2
497
497
  options, params = separate_params_and_options(options)
498
498
  waiter = Waiters::InstanceExists.new(options)
499
499
  yield_waiter_and_warn(waiter, &block) if block_given?
500
- resp = Aws::Plugins::UserAgent.feature('resource') do
500
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
501
501
  waiter.wait(params.merge(instance_ids: [@id]))
502
502
  end
503
503
  Instance.new({
@@ -517,7 +517,7 @@ module Aws::EC2
517
517
  options, params = separate_params_and_options(options)
518
518
  waiter = Waiters::InstanceRunning.new(options)
519
519
  yield_waiter_and_warn(waiter, &block) if block_given?
520
- resp = Aws::Plugins::UserAgent.feature('resource') do
520
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
521
521
  waiter.wait(params.merge(instance_ids: [@id]))
522
522
  end
523
523
  Instance.new({
@@ -537,7 +537,7 @@ module Aws::EC2
537
537
  options, params = separate_params_and_options(options)
538
538
  waiter = Waiters::InstanceStopped.new(options)
539
539
  yield_waiter_and_warn(waiter, &block) if block_given?
540
- resp = Aws::Plugins::UserAgent.feature('resource') do
540
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
541
541
  waiter.wait(params.merge(instance_ids: [@id]))
542
542
  end
543
543
  Instance.new({
@@ -557,7 +557,7 @@ module Aws::EC2
557
557
  options, params = separate_params_and_options(options)
558
558
  waiter = Waiters::InstanceTerminated.new(options)
559
559
  yield_waiter_and_warn(waiter, &block) if block_given?
560
- resp = Aws::Plugins::UserAgent.feature('resource') do
560
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
561
561
  waiter.wait(params.merge(instance_ids: [@id]))
562
562
  end
563
563
  Instance.new({
@@ -661,7 +661,7 @@ module Aws::EC2
661
661
  :retry
662
662
  end
663
663
  end
664
- Aws::Plugins::UserAgent.feature('resource') do
664
+ Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
665
665
  Aws::Waiters::Waiter.new(options).wait({})
666
666
  end
667
667
  end
@@ -689,7 +689,7 @@ module Aws::EC2
689
689
  # @return [Types::AttachClassicLinkVpcResult]
690
690
  def attach_classic_link_vpc(options = {})
691
691
  options = options.merge(instance_id: @id)
692
- resp = Aws::Plugins::UserAgent.feature('resource') do
692
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
693
693
  @client.attach_classic_link_vpc(options)
694
694
  end
695
695
  resp.data
@@ -716,7 +716,7 @@ module Aws::EC2
716
716
  # @return [Types::VolumeAttachment]
717
717
  def attach_volume(options = {})
718
718
  options = options.merge(instance_id: @id)
719
- resp = Aws::Plugins::UserAgent.feature('resource') do
719
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
720
720
  @client.attach_volume(options)
721
721
  end
722
722
  resp.data
@@ -741,7 +741,7 @@ module Aws::EC2
741
741
  # @return [Types::GetConsoleOutputResult]
742
742
  def console_output(options = {})
743
743
  options = options.merge(instance_id: @id)
744
- resp = Aws::Plugins::UserAgent.feature('resource') do
744
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
745
745
  @client.get_console_output(options)
746
746
  end
747
747
  resp.data
@@ -852,7 +852,7 @@ module Aws::EC2
852
852
  # @return [Image]
853
853
  def create_image(options = {})
854
854
  options = options.merge(instance_id: @id)
855
- resp = Aws::Plugins::UserAgent.feature('resource') do
855
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
856
856
  @client.create_image(options)
857
857
  end
858
858
  Image.new(
@@ -886,7 +886,7 @@ module Aws::EC2
886
886
  def create_tags(options = {})
887
887
  batch = []
888
888
  options = Aws::Util.deep_merge(options, resources: [@id])
889
- resp = Aws::Plugins::UserAgent.feature('resource') do
889
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
890
890
  @client.create_tags(options)
891
891
  end
892
892
  options[:tags].each do |t|
@@ -933,7 +933,7 @@ module Aws::EC2
933
933
  def delete_tags(options = {})
934
934
  batch = []
935
935
  options = Aws::Util.deep_merge(options, resources: [@id])
936
- resp = Aws::Plugins::UserAgent.feature('resource') do
936
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
937
937
  @client.delete_tags(options)
938
938
  end
939
939
  options[:tags].each do |t|
@@ -966,7 +966,7 @@ module Aws::EC2
966
966
  # @return [Types::InstanceAttribute]
967
967
  def describe_attribute(options = {})
968
968
  options = options.merge(instance_id: @id)
969
- resp = Aws::Plugins::UserAgent.feature('resource') do
969
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
970
970
  @client.describe_instance_attribute(options)
971
971
  end
972
972
  resp.data
@@ -989,7 +989,7 @@ module Aws::EC2
989
989
  # @return [Types::DetachClassicLinkVpcResult]
990
990
  def detach_classic_link_vpc(options = {})
991
991
  options = options.merge(instance_id: @id)
992
- resp = Aws::Plugins::UserAgent.feature('resource') do
992
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
993
993
  @client.detach_classic_link_vpc(options)
994
994
  end
995
995
  resp.data
@@ -1025,7 +1025,7 @@ module Aws::EC2
1025
1025
  # @return [Types::VolumeAttachment]
1026
1026
  def detach_volume(options = {})
1027
1027
  options = options.merge(instance_id: @id)
1028
- resp = Aws::Plugins::UserAgent.feature('resource') do
1028
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
1029
1029
  @client.detach_volume(options)
1030
1030
  end
1031
1031
  resp.data
@@ -1189,7 +1189,7 @@ module Aws::EC2
1189
1189
  # @return [EmptyStructure]
1190
1190
  def modify_attribute(options = {})
1191
1191
  options = options.merge(instance_id: @id)
1192
- resp = Aws::Plugins::UserAgent.feature('resource') do
1192
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
1193
1193
  @client.modify_instance_attribute(options)
1194
1194
  end
1195
1195
  resp.data
@@ -1209,7 +1209,7 @@ module Aws::EC2
1209
1209
  # @return [Types::MonitorInstancesResult]
1210
1210
  def monitor(options = {})
1211
1211
  options = Aws::Util.deep_merge(options, instance_ids: [@id])
1212
- resp = Aws::Plugins::UserAgent.feature('resource') do
1212
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
1213
1213
  @client.monitor_instances(options)
1214
1214
  end
1215
1215
  resp.data
@@ -1229,7 +1229,7 @@ module Aws::EC2
1229
1229
  # @return [Types::GetPasswordDataResult]
1230
1230
  def password_data(options = {})
1231
1231
  options = options.merge(instance_id: @id)
1232
- resp = Aws::Plugins::UserAgent.feature('resource') do
1232
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
1233
1233
  @client.get_password_data(options)
1234
1234
  end
1235
1235
  resp.data
@@ -1249,7 +1249,7 @@ module Aws::EC2
1249
1249
  # @return [EmptyStructure]
1250
1250
  def reboot(options = {})
1251
1251
  options = Aws::Util.deep_merge(options, instance_ids: [@id])
1252
- resp = Aws::Plugins::UserAgent.feature('resource') do
1252
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
1253
1253
  @client.reboot_instances(options)
1254
1254
  end
1255
1255
  resp.data
@@ -1309,7 +1309,7 @@ module Aws::EC2
1309
1309
  # @return [EmptyStructure]
1310
1310
  def report_status(options = {})
1311
1311
  options = Aws::Util.deep_merge(options, instances: [@id])
1312
- resp = Aws::Plugins::UserAgent.feature('resource') do
1312
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
1313
1313
  @client.report_instance_status(options)
1314
1314
  end
1315
1315
  resp.data
@@ -1335,7 +1335,7 @@ module Aws::EC2
1335
1335
  # @return [EmptyStructure]
1336
1336
  def reset_attribute(options = {})
1337
1337
  options = options.merge(instance_id: @id)
1338
- resp = Aws::Plugins::UserAgent.feature('resource') do
1338
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
1339
1339
  @client.reset_instance_attribute(options)
1340
1340
  end
1341
1341
  resp.data
@@ -1358,7 +1358,7 @@ module Aws::EC2
1358
1358
  instance_id: @id,
1359
1359
  attribute: "kernel"
1360
1360
  )
1361
- resp = Aws::Plugins::UserAgent.feature('resource') do
1361
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
1362
1362
  @client.reset_instance_attribute(options)
1363
1363
  end
1364
1364
  resp.data
@@ -1381,7 +1381,7 @@ module Aws::EC2
1381
1381
  instance_id: @id,
1382
1382
  attribute: "ramdisk"
1383
1383
  )
1384
- resp = Aws::Plugins::UserAgent.feature('resource') do
1384
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
1385
1385
  @client.reset_instance_attribute(options)
1386
1386
  end
1387
1387
  resp.data
@@ -1404,7 +1404,7 @@ module Aws::EC2
1404
1404
  instance_id: @id,
1405
1405
  attribute: "sourceDestCheck"
1406
1406
  )
1407
- resp = Aws::Plugins::UserAgent.feature('resource') do
1407
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
1408
1408
  @client.reset_instance_attribute(options)
1409
1409
  end
1410
1410
  resp.data
@@ -1427,7 +1427,7 @@ module Aws::EC2
1427
1427
  # @return [Types::StartInstancesResult]
1428
1428
  def start(options = {})
1429
1429
  options = Aws::Util.deep_merge(options, instance_ids: [@id])
1430
- resp = Aws::Plugins::UserAgent.feature('resource') do
1430
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
1431
1431
  @client.start_instances(options)
1432
1432
  end
1433
1433
  resp.data
@@ -1467,7 +1467,7 @@ module Aws::EC2
1467
1467
  # @return [Types::StopInstancesResult]
1468
1468
  def stop(options = {})
1469
1469
  options = Aws::Util.deep_merge(options, instance_ids: [@id])
1470
- resp = Aws::Plugins::UserAgent.feature('resource') do
1470
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
1471
1471
  @client.stop_instances(options)
1472
1472
  end
1473
1473
  resp.data
@@ -1487,7 +1487,7 @@ module Aws::EC2
1487
1487
  # @return [Types::TerminateInstancesResult]
1488
1488
  def terminate(options = {})
1489
1489
  options = Aws::Util.deep_merge(options, instance_ids: [@id])
1490
- resp = Aws::Plugins::UserAgent.feature('resource') do
1490
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
1491
1491
  @client.terminate_instances(options)
1492
1492
  end
1493
1493
  resp.data
@@ -1507,7 +1507,7 @@ module Aws::EC2
1507
1507
  # @return [Types::UnmonitorInstancesResult]
1508
1508
  def unmonitor(options = {})
1509
1509
  options = Aws::Util.deep_merge(options, instance_ids: [@id])
1510
- resp = Aws::Plugins::UserAgent.feature('resource') do
1510
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
1511
1511
  @client.unmonitor_instances(options)
1512
1512
  end
1513
1513
  resp.data
@@ -1669,7 +1669,7 @@ module Aws::EC2
1669
1669
  name: "attachment.instance-id",
1670
1670
  values: [@id]
1671
1671
  }])
1672
- resp = Aws::Plugins::UserAgent.feature('resource') do
1672
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
1673
1673
  @client.describe_volumes(options)
1674
1674
  end
1675
1675
  resp.each_page do |page|
@@ -1766,7 +1766,7 @@ module Aws::EC2
1766
1766
  name: "instance-id",
1767
1767
  values: [@id]
1768
1768
  }])
1769
- resp = Aws::Plugins::UserAgent.feature('resource') do
1769
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
1770
1770
  @client.describe_addresses(options)
1771
1771
  end
1772
1772
  resp.data.addresses.each do |a|
@@ -1861,7 +1861,7 @@ module Aws::EC2
1861
1861
  batch.each do |item|
1862
1862
  params[:resources] << item.id
1863
1863
  end
1864
- Aws::Plugins::UserAgent.feature('resource') do
1864
+ Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
1865
1865
  batch[0].client.create_tags(params)
1866
1866
  end
1867
1867
  end
@@ -1905,7 +1905,7 @@ module Aws::EC2
1905
1905
  batch.each do |item|
1906
1906
  params[:resources] << item.id
1907
1907
  end
1908
- Aws::Plugins::UserAgent.feature('resource') do
1908
+ Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
1909
1909
  batch[0].client.delete_tags(params)
1910
1910
  end
1911
1911
  end
@@ -1931,7 +1931,7 @@ module Aws::EC2
1931
1931
  batch.each do |item|
1932
1932
  params[:instance_ids] << item.id
1933
1933
  end
1934
- Aws::Plugins::UserAgent.feature('resource') do
1934
+ Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
1935
1935
  batch[0].client.monitor_instances(params)
1936
1936
  end
1937
1937
  end
@@ -1957,7 +1957,7 @@ module Aws::EC2
1957
1957
  batch.each do |item|
1958
1958
  params[:instance_ids] << item.id
1959
1959
  end
1960
- Aws::Plugins::UserAgent.feature('resource') do
1960
+ Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
1961
1961
  batch[0].client.reboot_instances(params)
1962
1962
  end
1963
1963
  end
@@ -1986,7 +1986,7 @@ module Aws::EC2
1986
1986
  batch.each do |item|
1987
1987
  params[:instance_ids] << item.id
1988
1988
  end
1989
- Aws::Plugins::UserAgent.feature('resource') do
1989
+ Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
1990
1990
  batch[0].client.start_instances(params)
1991
1991
  end
1992
1992
  end
@@ -2032,7 +2032,7 @@ module Aws::EC2
2032
2032
  batch.each do |item|
2033
2033
  params[:instance_ids] << item.id
2034
2034
  end
2035
- Aws::Plugins::UserAgent.feature('resource') do
2035
+ Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
2036
2036
  batch[0].client.stop_instances(params)
2037
2037
  end
2038
2038
  end
@@ -2058,7 +2058,7 @@ module Aws::EC2
2058
2058
  batch.each do |item|
2059
2059
  params[:instance_ids] << item.id
2060
2060
  end
2061
- Aws::Plugins::UserAgent.feature('resource') do
2061
+ Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
2062
2062
  batch[0].client.terminate_instances(params)
2063
2063
  end
2064
2064
  end
@@ -2084,7 +2084,7 @@ module Aws::EC2
2084
2084
  batch.each do |item|
2085
2085
  params[:instance_ids] << item.id
2086
2086
  end
2087
- Aws::Plugins::UserAgent.feature('resource') do
2087
+ Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
2088
2088
  batch[0].client.unmonitor_instances(params)
2089
2089
  end
2090
2090
  end
@@ -68,7 +68,7 @@ module Aws::EC2
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.describe_internet_gateways(internet_gateway_ids: [@id])
73
73
  end
74
74
  @data = resp.internet_gateways[0]
@@ -185,7 +185,7 @@ module Aws::EC2
185
185
  :retry
186
186
  end
187
187
  end
188
- Aws::Plugins::UserAgent.feature('resource') do
188
+ Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
189
189
  Aws::Waiters::Waiter.new(options).wait({})
190
190
  end
191
191
  end
@@ -209,7 +209,7 @@ module Aws::EC2
209
209
  # @return [EmptyStructure]
210
210
  def attach_to_vpc(options = {})
211
211
  options = options.merge(internet_gateway_id: @id)
212
- resp = Aws::Plugins::UserAgent.feature('resource') do
212
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
213
213
  @client.attach_internet_gateway(options)
214
214
  end
215
215
  resp.data
@@ -240,7 +240,7 @@ module Aws::EC2
240
240
  def create_tags(options = {})
241
241
  batch = []
242
242
  options = Aws::Util.deep_merge(options, resources: [@id])
243
- resp = Aws::Plugins::UserAgent.feature('resource') do
243
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
244
244
  @client.create_tags(options)
245
245
  end
246
246
  options[:tags].each do |t|
@@ -287,7 +287,7 @@ module Aws::EC2
287
287
  def delete_tags(options = {})
288
288
  batch = []
289
289
  options = Aws::Util.deep_merge(options, resources: [@id])
290
- resp = Aws::Plugins::UserAgent.feature('resource') do
290
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
291
291
  @client.delete_tags(options)
292
292
  end
293
293
  options[:tags].each do |t|
@@ -315,7 +315,7 @@ module Aws::EC2
315
315
  # @return [EmptyStructure]
316
316
  def delete(options = {})
317
317
  options = options.merge(internet_gateway_id: @id)
318
- resp = Aws::Plugins::UserAgent.feature('resource') do
318
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
319
319
  @client.delete_internet_gateway(options)
320
320
  end
321
321
  resp.data
@@ -338,7 +338,7 @@ module Aws::EC2
338
338
  # @return [EmptyStructure]
339
339
  def detach_from_vpc(options = {})
340
340
  options = options.merge(internet_gateway_id: @id)
341
- resp = Aws::Plugins::UserAgent.feature('resource') do
341
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
342
342
  @client.detach_internet_gateway(options)
343
343
  end
344
344
  resp.data
@@ -188,7 +188,7 @@ module Aws::EC2
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
@@ -212,7 +212,7 @@ module Aws::EC2
212
212
  # @return [Types::DeleteKeyPairResult]
213
213
  def delete(options = {})
214
214
  options = options.merge(key_name: @name)
215
- resp = Aws::Plugins::UserAgent.feature('resource') do
215
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
216
216
  @client.delete_key_pair(options)
217
217
  end
218
218
  resp.data
@@ -116,7 +116,7 @@ module Aws::EC2
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.describe_key_pairs(key_names: [@name])
121
121
  end
122
122
  @data = resp.key_pairs[0]
@@ -233,7 +233,7 @@ module Aws::EC2
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
@@ -257,7 +257,7 @@ module Aws::EC2
257
257
  # @return [Types::DeleteKeyPairResult]
258
258
  def delete(options = {})
259
259
  options = options.merge(key_name: @name)
260
- resp = Aws::Plugins::UserAgent.feature('resource') do
260
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
261
261
  @client.delete_key_pair(options)
262
262
  end
263
263
  resp.data