aws-sdk-ec2 1.458.0 → 1.460.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +10 -0
  3. data/VERSION +1 -1
  4. data/lib/aws-sdk-ec2/classic_address.rb +5 -5
  5. data/lib/aws-sdk-ec2/client.rb +40 -40
  6. data/lib/aws-sdk-ec2/client_api.rb +1 -0
  7. data/lib/aws-sdk-ec2/customizations/instance.rb +1 -1
  8. data/lib/aws-sdk-ec2/customizations/resource.rb +1 -1
  9. data/lib/aws-sdk-ec2/dhcp_options.rb +6 -6
  10. data/lib/aws-sdk-ec2/image.rb +9 -9
  11. data/lib/aws-sdk-ec2/instance.rb +38 -38
  12. data/lib/aws-sdk-ec2/internet_gateway.rb +7 -7
  13. data/lib/aws-sdk-ec2/key_pair.rb +2 -2
  14. data/lib/aws-sdk-ec2/key_pair_info.rb +3 -3
  15. data/lib/aws-sdk-ec2/nat_gateway.rb +5 -5
  16. data/lib/aws-sdk-ec2/network_acl.rb +9 -9
  17. data/lib/aws-sdk-ec2/network_interface.rb +12 -12
  18. data/lib/aws-sdk-ec2/network_interface_association.rb +3 -3
  19. data/lib/aws-sdk-ec2/placement_group.rb +4 -4
  20. data/lib/aws-sdk-ec2/resource.rb +39 -39
  21. data/lib/aws-sdk-ec2/route.rb +3 -3
  22. data/lib/aws-sdk-ec2/route_table.rb +7 -7
  23. data/lib/aws-sdk-ec2/route_table_association.rb +3 -3
  24. data/lib/aws-sdk-ec2/security_group.rb +9 -9
  25. data/lib/aws-sdk-ec2/snapshot.rb +10 -10
  26. data/lib/aws-sdk-ec2/subnet.rb +11 -11
  27. data/lib/aws-sdk-ec2/tag.rb +4 -4
  28. data/lib/aws-sdk-ec2/volume.rb +13 -13
  29. data/lib/aws-sdk-ec2/vpc.rb +30 -30
  30. data/lib/aws-sdk-ec2/vpc_address.rb +4 -4
  31. data/lib/aws-sdk-ec2/vpc_peering_connection.rb +6 -6
  32. data/lib/aws-sdk-ec2.rb +1 -1
  33. data/sig/client.rbs +15 -15
  34. data/sig/instance.rbs +1 -1
  35. data/sig/resource.rbs +1 -1
  36. data/sig/subnet.rbs +1 -1
  37. data/sig/types.rbs +24 -24
  38. metadata +4 -4
@@ -15716,6 +15716,7 @@ module Aws::EC2
15716
15716
  "apiVersion" => "2016-11-15",
15717
15717
  "endpointPrefix" => "ec2",
15718
15718
  "protocol" => "ec2",
15719
+ "protocols" => ["query"],
15719
15720
  "serviceAbbreviation" => "Amazon EC2",
15720
15721
  "serviceFullName" => "Amazon Elastic Compute Cloud",
15721
15722
  "serviceId" => "EC2",
@@ -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
@@ -163,7 +163,7 @@ module Aws::EC2
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.describe_nat_gateways(nat_gateway_ids: [@id])
168
168
  end
169
169
  @data = resp.nat_gateways[0]
@@ -280,7 +280,7 @@ module Aws::EC2
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
@@ -312,7 +312,7 @@ module Aws::EC2
312
312
  def create_tags(options = {})
313
313
  batch = []
314
314
  options = Aws::Util.deep_merge(options, resources: [@id])
315
- resp = Aws::Plugins::UserAgent.feature('resource') do
315
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
316
316
  @client.create_tags(options)
317
317
  end
318
318
  options[:tags].each do |t|
@@ -359,7 +359,7 @@ module Aws::EC2
359
359
  def delete_tags(options = {})
360
360
  batch = []
361
361
  options = Aws::Util.deep_merge(options, resources: [@id])
362
- resp = Aws::Plugins::UserAgent.feature('resource') do
362
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
363
363
  @client.delete_tags(options)
364
364
  end
365
365
  options[:tags].each do |t|
@@ -387,7 +387,7 @@ module Aws::EC2
387
387
  # @return [Types::DeleteNatGatewayResult]
388
388
  def delete(options = {})
389
389
  options = options.merge(nat_gateway_id: @id)
390
- resp = Aws::Plugins::UserAgent.feature('resource') do
390
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
391
391
  @client.delete_nat_gateway(options)
392
392
  end
393
393
  resp.data