aws-sdk-ec2 1.379.0 → 1.381.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -2532,6 +2532,7 @@ module Aws::EC2
2532
2532
  SecurityGroupStringList = Shapes::ListShape.new(name: 'SecurityGroupStringList')
2533
2533
  SelfServicePortal = Shapes::StringShape.new(name: 'SelfServicePortal')
2534
2534
  SendDiagnosticInterruptRequest = Shapes::StructureShape.new(name: 'SendDiagnosticInterruptRequest')
2535
+ SensitiveUrl = Shapes::StringShape.new(name: 'SensitiveUrl')
2535
2536
  SensitiveUserData = Shapes::StringShape.new(name: 'SensitiveUserData')
2536
2537
  ServiceConfiguration = Shapes::StructureShape.new(name: 'ServiceConfiguration')
2537
2538
  ServiceConfigurationSet = Shapes::ListShape.new(name: 'ServiceConfigurationSet')
@@ -9142,7 +9143,7 @@ module Aws::EC2
9142
9143
  ImageDiskContainer.add_member(:device_name, Shapes::ShapeRef.new(shape: String, location_name: "DeviceName"))
9143
9144
  ImageDiskContainer.add_member(:format, Shapes::ShapeRef.new(shape: String, location_name: "Format"))
9144
9145
  ImageDiskContainer.add_member(:snapshot_id, Shapes::ShapeRef.new(shape: SnapshotId, location_name: "SnapshotId"))
9145
- ImageDiskContainer.add_member(:url, Shapes::ShapeRef.new(shape: String, location_name: "Url"))
9146
+ ImageDiskContainer.add_member(:url, Shapes::ShapeRef.new(shape: SensitiveUrl, location_name: "Url"))
9146
9147
  ImageDiskContainer.add_member(:user_bucket, Shapes::ShapeRef.new(shape: UserBucket, location_name: "UserBucket"))
9147
9148
  ImageDiskContainer.struct_class = Types::ImageDiskContainer
9148
9149
 
@@ -12421,7 +12422,7 @@ module Aws::EC2
12421
12422
  RequestLaunchTemplateData.add_member(:ram_disk_id, Shapes::ShapeRef.new(shape: RamdiskId, location_name: "RamDiskId"))
12422
12423
  RequestLaunchTemplateData.add_member(:disable_api_termination, Shapes::ShapeRef.new(shape: Boolean, location_name: "DisableApiTermination"))
12423
12424
  RequestLaunchTemplateData.add_member(:instance_initiated_shutdown_behavior, Shapes::ShapeRef.new(shape: ShutdownBehavior, location_name: "InstanceInitiatedShutdownBehavior"))
12424
- RequestLaunchTemplateData.add_member(:user_data, Shapes::ShapeRef.new(shape: String, location_name: "UserData"))
12425
+ RequestLaunchTemplateData.add_member(:user_data, Shapes::ShapeRef.new(shape: SensitiveUserData, location_name: "UserData"))
12425
12426
  RequestLaunchTemplateData.add_member(:tag_specifications, Shapes::ShapeRef.new(shape: LaunchTemplateTagSpecificationRequestList, location_name: "TagSpecification"))
12426
12427
  RequestLaunchTemplateData.add_member(:elastic_gpu_specifications, Shapes::ShapeRef.new(shape: ElasticGpuSpecificationList, location_name: "ElasticGpuSpecification"))
12427
12428
  RequestLaunchTemplateData.add_member(:elastic_inference_accelerators, Shapes::ShapeRef.new(shape: LaunchTemplateElasticInferenceAcceleratorList, location_name: "ElasticInferenceAccelerator"))
@@ -13252,7 +13253,7 @@ module Aws::EC2
13252
13253
  SnapshotDetail.add_member(:snapshot_id, Shapes::ShapeRef.new(shape: String, location_name: "snapshotId"))
13253
13254
  SnapshotDetail.add_member(:status, Shapes::ShapeRef.new(shape: String, location_name: "status"))
13254
13255
  SnapshotDetail.add_member(:status_message, Shapes::ShapeRef.new(shape: String, location_name: "statusMessage"))
13255
- SnapshotDetail.add_member(:url, Shapes::ShapeRef.new(shape: String, location_name: "url"))
13256
+ SnapshotDetail.add_member(:url, Shapes::ShapeRef.new(shape: SensitiveUrl, location_name: "url"))
13256
13257
  SnapshotDetail.add_member(:user_bucket, Shapes::ShapeRef.new(shape: UserBucketDetails, location_name: "userBucket"))
13257
13258
  SnapshotDetail.struct_class = Types::SnapshotDetail
13258
13259
 
@@ -13260,7 +13261,7 @@ module Aws::EC2
13260
13261
 
13261
13262
  SnapshotDiskContainer.add_member(:description, Shapes::ShapeRef.new(shape: String, location_name: "Description"))
13262
13263
  SnapshotDiskContainer.add_member(:format, Shapes::ShapeRef.new(shape: String, location_name: "Format"))
13263
- SnapshotDiskContainer.add_member(:url, Shapes::ShapeRef.new(shape: String, location_name: "Url"))
13264
+ SnapshotDiskContainer.add_member(:url, Shapes::ShapeRef.new(shape: SensitiveUrl, location_name: "Url"))
13264
13265
  SnapshotDiskContainer.add_member(:user_bucket, Shapes::ShapeRef.new(shape: UserBucket, location_name: "UserBucket"))
13265
13266
  SnapshotDiskContainer.struct_class = Types::SnapshotDiskContainer
13266
13267
 
@@ -13301,7 +13302,7 @@ module Aws::EC2
13301
13302
  SnapshotTaskDetail.add_member(:snapshot_id, Shapes::ShapeRef.new(shape: String, location_name: "snapshotId"))
13302
13303
  SnapshotTaskDetail.add_member(:status, Shapes::ShapeRef.new(shape: String, location_name: "status"))
13303
13304
  SnapshotTaskDetail.add_member(:status_message, Shapes::ShapeRef.new(shape: String, location_name: "statusMessage"))
13304
- SnapshotTaskDetail.add_member(:url, Shapes::ShapeRef.new(shape: String, location_name: "url"))
13305
+ SnapshotTaskDetail.add_member(:url, Shapes::ShapeRef.new(shape: SensitiveUrl, location_name: "url"))
13305
13306
  SnapshotTaskDetail.add_member(:user_bucket, Shapes::ShapeRef.new(shape: UserBucketDetails, location_name: "userBucket"))
13306
13307
  SnapshotTaskDetail.struct_class = Types::SnapshotTaskDetail
13307
13308
 
@@ -18,7 +18,9 @@ module Aws
18
18
  private
19
19
 
20
20
  def encrypted_password
21
- bytes = client.get_password_data(instance_id: id).password_data
21
+ bytes = Aws::Plugins::UserAgent.feature('resource') do
22
+ client.get_password_data(instance_id: id).password_data
23
+ end
22
24
  if bytes == ''
23
25
  raise 'password not available yet'
24
26
  else
@@ -5,7 +5,9 @@ module Aws
5
5
  class Resource
6
6
 
7
7
  def create_tags(options)
8
- resp = @client.create_tags(options)
8
+ resp = Aws::Plugins::UserAgent.feature('resource') do
9
+ @client.create_tags(options)
10
+ end
9
11
  tags = []
10
12
  options[:resources].each do |resource_id|
11
13
  options[:tags].each do |tag|
@@ -68,7 +68,9 @@ module Aws::EC2
68
68
  #
69
69
  # @return [self]
70
70
  def load
71
- resp = @client.describe_dhcp_options(dhcp_options_ids: [@id])
71
+ resp = Aws::Plugins::UserAgent.feature('resource') do
72
+ @client.describe_dhcp_options(dhcp_options_ids: [@id])
73
+ end
72
74
  @data = resp.dhcp_options[0]
73
75
  self
74
76
  end
@@ -183,7 +185,9 @@ module Aws::EC2
183
185
  :retry
184
186
  end
185
187
  end
186
- Aws::Waiters::Waiter.new(options).wait({})
188
+ Aws::Plugins::UserAgent.feature('resource') do
189
+ Aws::Waiters::Waiter.new(options).wait({})
190
+ end
187
191
  end
188
192
 
189
193
  # @!group Actions
@@ -205,7 +209,9 @@ module Aws::EC2
205
209
  # @return [EmptyStructure]
206
210
  def associate_with_vpc(options = {})
207
211
  options = options.merge(dhcp_options_id: @id)
208
- resp = @client.associate_dhcp_options(options)
212
+ resp = Aws::Plugins::UserAgent.feature('resource') do
213
+ @client.associate_dhcp_options(options)
214
+ end
209
215
  resp.data
210
216
  end
211
217
 
@@ -234,7 +240,9 @@ module Aws::EC2
234
240
  def create_tags(options = {})
235
241
  batch = []
236
242
  options = Aws::Util.deep_merge(options, resources: [@id])
237
- resp = @client.create_tags(options)
243
+ resp = Aws::Plugins::UserAgent.feature('resource') do
244
+ @client.create_tags(options)
245
+ end
238
246
  options[:tags].each do |t|
239
247
  batch << Tag.new(
240
248
  resource_id: @id,
@@ -279,7 +287,9 @@ module Aws::EC2
279
287
  def delete_tags(options = {})
280
288
  batch = []
281
289
  options = Aws::Util.deep_merge(options, resources: [@id])
282
- resp = @client.delete_tags(options)
290
+ resp = Aws::Plugins::UserAgent.feature('resource') do
291
+ @client.delete_tags(options)
292
+ end
283
293
  options[:tags].each do |t|
284
294
  batch << Tag.new(
285
295
  resource_id: @id,
@@ -305,7 +315,9 @@ module Aws::EC2
305
315
  # @return [EmptyStructure]
306
316
  def delete(options = {})
307
317
  options = options.merge(dhcp_options_id: @id)
308
- resp = @client.delete_dhcp_options(options)
318
+ resp = Aws::Plugins::UserAgent.feature('resource') do
319
+ @client.delete_dhcp_options(options)
320
+ end
309
321
  resp.data
310
322
  end
311
323
 
@@ -274,7 +274,9 @@ module Aws::EC2
274
274
  #
275
275
  # @return [self]
276
276
  def load
277
- resp = @client.describe_images(image_ids: [@id])
277
+ resp = Aws::Plugins::UserAgent.feature('resource') do
278
+ @client.describe_images(image_ids: [@id])
279
+ end
278
280
  @data = resp.images[0]
279
281
  self
280
282
  end
@@ -319,7 +321,9 @@ module Aws::EC2
319
321
  options, params = separate_params_and_options(options)
320
322
  waiter = Waiters::ImageExists.new(options)
321
323
  yield_waiter_and_warn(waiter, &block) if block_given?
322
- resp = waiter.wait(params.merge(image_ids: [@id]))
324
+ resp = Aws::Plugins::UserAgent.feature('resource') do
325
+ waiter.wait(params.merge(image_ids: [@id]))
326
+ end
323
327
  Image.new({
324
328
  id: @id,
325
329
  data: resp.data.images[0],
@@ -421,7 +425,9 @@ module Aws::EC2
421
425
  :retry
422
426
  end
423
427
  end
424
- Aws::Waiters::Waiter.new(options).wait({})
428
+ Aws::Plugins::UserAgent.feature('resource') do
429
+ Aws::Waiters::Waiter.new(options).wait({})
430
+ end
425
431
  end
426
432
 
427
433
  # @!group Actions
@@ -451,7 +457,9 @@ module Aws::EC2
451
457
  def create_tags(options = {})
452
458
  batch = []
453
459
  options = Aws::Util.deep_merge(options, resources: [@id])
454
- resp = @client.create_tags(options)
460
+ resp = Aws::Plugins::UserAgent.feature('resource') do
461
+ @client.create_tags(options)
462
+ end
455
463
  options[:tags].each do |t|
456
464
  batch << Tag.new(
457
465
  resource_id: @id,
@@ -496,7 +504,9 @@ module Aws::EC2
496
504
  def delete_tags(options = {})
497
505
  batch = []
498
506
  options = Aws::Util.deep_merge(options, resources: [@id])
499
- resp = @client.delete_tags(options)
507
+ resp = Aws::Plugins::UserAgent.feature('resource') do
508
+ @client.delete_tags(options)
509
+ end
500
510
  options[:tags].each do |t|
501
511
  batch << Tag.new(
502
512
  resource_id: @id,
@@ -522,7 +532,9 @@ module Aws::EC2
522
532
  # @return [EmptyStructure]
523
533
  def deregister(options = {})
524
534
  options = options.merge(image_id: @id)
525
- resp = @client.deregister_image(options)
535
+ resp = Aws::Plugins::UserAgent.feature('resource') do
536
+ @client.deregister_image(options)
537
+ end
526
538
  resp.data
527
539
  end
528
540
 
@@ -548,7 +560,9 @@ module Aws::EC2
548
560
  # @return [Types::ImageAttribute]
549
561
  def describe_attribute(options = {})
550
562
  options = options.merge(image_id: @id)
551
- resp = @client.describe_image_attribute(options)
563
+ resp = Aws::Plugins::UserAgent.feature('resource') do
564
+ @client.describe_image_attribute(options)
565
+ end
552
566
  resp.data
553
567
  end
554
568
 
@@ -638,7 +652,9 @@ module Aws::EC2
638
652
  # @return [EmptyStructure]
639
653
  def modify_attribute(options = {})
640
654
  options = options.merge(image_id: @id)
641
- resp = @client.modify_image_attribute(options)
655
+ resp = Aws::Plugins::UserAgent.feature('resource') do
656
+ @client.modify_image_attribute(options)
657
+ end
642
658
  resp.data
643
659
  end
644
660
 
@@ -660,7 +676,9 @@ module Aws::EC2
660
676
  # @return [EmptyStructure]
661
677
  def reset_attribute(options = {})
662
678
  options = options.merge(image_id: @id)
663
- resp = @client.reset_image_attribute(options)
679
+ resp = Aws::Plugins::UserAgent.feature('resource') do
680
+ @client.reset_image_attribute(options)
681
+ end
664
682
  resp.data
665
683
  end
666
684
 
@@ -443,7 +443,9 @@ module Aws::EC2
443
443
  #
444
444
  # @return [self]
445
445
  def load
446
- resp = @client.describe_instances(instance_ids: [@id])
446
+ resp = Aws::Plugins::UserAgent.feature('resource') do
447
+ @client.describe_instances(instance_ids: [@id])
448
+ end
447
449
  @data = resp.reservations[0].instances[0]
448
450
  self
449
451
  end
@@ -488,7 +490,9 @@ module Aws::EC2
488
490
  options, params = separate_params_and_options(options)
489
491
  waiter = Waiters::InstanceExists.new(options)
490
492
  yield_waiter_and_warn(waiter, &block) if block_given?
491
- resp = waiter.wait(params.merge(instance_ids: [@id]))
493
+ resp = Aws::Plugins::UserAgent.feature('resource') do
494
+ waiter.wait(params.merge(instance_ids: [@id]))
495
+ end
492
496
  Instance.new({
493
497
  id: @id,
494
498
  data: resp.data.reservations[0].instances[0],
@@ -506,7 +510,9 @@ module Aws::EC2
506
510
  options, params = separate_params_and_options(options)
507
511
  waiter = Waiters::InstanceRunning.new(options)
508
512
  yield_waiter_and_warn(waiter, &block) if block_given?
509
- resp = waiter.wait(params.merge(instance_ids: [@id]))
513
+ resp = Aws::Plugins::UserAgent.feature('resource') do
514
+ waiter.wait(params.merge(instance_ids: [@id]))
515
+ end
510
516
  Instance.new({
511
517
  id: @id,
512
518
  data: resp.data.reservations[0].instances[0],
@@ -524,7 +530,9 @@ module Aws::EC2
524
530
  options, params = separate_params_and_options(options)
525
531
  waiter = Waiters::InstanceStopped.new(options)
526
532
  yield_waiter_and_warn(waiter, &block) if block_given?
527
- resp = waiter.wait(params.merge(instance_ids: [@id]))
533
+ resp = Aws::Plugins::UserAgent.feature('resource') do
534
+ waiter.wait(params.merge(instance_ids: [@id]))
535
+ end
528
536
  Instance.new({
529
537
  id: @id,
530
538
  data: resp.data.reservations[0].instances[0],
@@ -542,7 +550,9 @@ module Aws::EC2
542
550
  options, params = separate_params_and_options(options)
543
551
  waiter = Waiters::InstanceTerminated.new(options)
544
552
  yield_waiter_and_warn(waiter, &block) if block_given?
545
- resp = waiter.wait(params.merge(instance_ids: [@id]))
553
+ resp = Aws::Plugins::UserAgent.feature('resource') do
554
+ waiter.wait(params.merge(instance_ids: [@id]))
555
+ end
546
556
  Instance.new({
547
557
  id: @id,
548
558
  data: resp.data.reservations[0].instances[0],
@@ -644,7 +654,9 @@ module Aws::EC2
644
654
  :retry
645
655
  end
646
656
  end
647
- Aws::Waiters::Waiter.new(options).wait({})
657
+ Aws::Plugins::UserAgent.feature('resource') do
658
+ Aws::Waiters::Waiter.new(options).wait({})
659
+ end
648
660
  end
649
661
 
650
662
  # @!group Actions
@@ -670,7 +682,9 @@ module Aws::EC2
670
682
  # @return [Types::AttachClassicLinkVpcResult]
671
683
  def attach_classic_link_vpc(options = {})
672
684
  options = options.merge(instance_id: @id)
673
- resp = @client.attach_classic_link_vpc(options)
685
+ resp = Aws::Plugins::UserAgent.feature('resource') do
686
+ @client.attach_classic_link_vpc(options)
687
+ end
674
688
  resp.data
675
689
  end
676
690
 
@@ -695,7 +709,9 @@ module Aws::EC2
695
709
  # @return [Types::VolumeAttachment]
696
710
  def attach_volume(options = {})
697
711
  options = options.merge(instance_id: @id)
698
- resp = @client.attach_volume(options)
712
+ resp = Aws::Plugins::UserAgent.feature('resource') do
713
+ @client.attach_volume(options)
714
+ end
699
715
  resp.data
700
716
  end
701
717
 
@@ -718,7 +734,9 @@ module Aws::EC2
718
734
  # @return [Types::GetConsoleOutputResult]
719
735
  def console_output(options = {})
720
736
  options = options.merge(instance_id: @id)
721
- resp = @client.get_console_output(options)
737
+ resp = Aws::Plugins::UserAgent.feature('resource') do
738
+ @client.get_console_output(options)
739
+ end
722
740
  resp.data
723
741
  end
724
742
 
@@ -813,7 +831,9 @@ module Aws::EC2
813
831
  # @return [Image]
814
832
  def create_image(options = {})
815
833
  options = options.merge(instance_id: @id)
816
- resp = @client.create_image(options)
834
+ resp = Aws::Plugins::UserAgent.feature('resource') do
835
+ @client.create_image(options)
836
+ end
817
837
  Image.new(
818
838
  id: resp.data.image_id,
819
839
  client: @client
@@ -845,7 +865,9 @@ module Aws::EC2
845
865
  def create_tags(options = {})
846
866
  batch = []
847
867
  options = Aws::Util.deep_merge(options, resources: [@id])
848
- resp = @client.create_tags(options)
868
+ resp = Aws::Plugins::UserAgent.feature('resource') do
869
+ @client.create_tags(options)
870
+ end
849
871
  options[:tags].each do |t|
850
872
  batch << Tag.new(
851
873
  resource_id: @id,
@@ -890,7 +912,9 @@ module Aws::EC2
890
912
  def delete_tags(options = {})
891
913
  batch = []
892
914
  options = Aws::Util.deep_merge(options, resources: [@id])
893
- resp = @client.delete_tags(options)
915
+ resp = Aws::Plugins::UserAgent.feature('resource') do
916
+ @client.delete_tags(options)
917
+ end
894
918
  options[:tags].each do |t|
895
919
  batch << Tag.new(
896
920
  resource_id: @id,
@@ -921,7 +945,9 @@ module Aws::EC2
921
945
  # @return [Types::InstanceAttribute]
922
946
  def describe_attribute(options = {})
923
947
  options = options.merge(instance_id: @id)
924
- resp = @client.describe_instance_attribute(options)
948
+ resp = Aws::Plugins::UserAgent.feature('resource') do
949
+ @client.describe_instance_attribute(options)
950
+ end
925
951
  resp.data
926
952
  end
927
953
 
@@ -942,7 +968,9 @@ module Aws::EC2
942
968
  # @return [Types::DetachClassicLinkVpcResult]
943
969
  def detach_classic_link_vpc(options = {})
944
970
  options = options.merge(instance_id: @id)
945
- resp = @client.detach_classic_link_vpc(options)
971
+ resp = Aws::Plugins::UserAgent.feature('resource') do
972
+ @client.detach_classic_link_vpc(options)
973
+ end
946
974
  resp.data
947
975
  end
948
976
 
@@ -976,7 +1004,9 @@ module Aws::EC2
976
1004
  # @return [Types::VolumeAttachment]
977
1005
  def detach_volume(options = {})
978
1006
  options = options.merge(instance_id: @id)
979
- resp = @client.detach_volume(options)
1007
+ resp = Aws::Plugins::UserAgent.feature('resource') do
1008
+ @client.detach_volume(options)
1009
+ end
980
1010
  resp.data
981
1011
  end
982
1012
 
@@ -1136,7 +1166,9 @@ module Aws::EC2
1136
1166
  # @return [EmptyStructure]
1137
1167
  def modify_attribute(options = {})
1138
1168
  options = options.merge(instance_id: @id)
1139
- resp = @client.modify_instance_attribute(options)
1169
+ resp = Aws::Plugins::UserAgent.feature('resource') do
1170
+ @client.modify_instance_attribute(options)
1171
+ end
1140
1172
  resp.data
1141
1173
  end
1142
1174
 
@@ -1154,7 +1186,9 @@ module Aws::EC2
1154
1186
  # @return [Types::MonitorInstancesResult]
1155
1187
  def monitor(options = {})
1156
1188
  options = Aws::Util.deep_merge(options, instance_ids: [@id])
1157
- resp = @client.monitor_instances(options)
1189
+ resp = Aws::Plugins::UserAgent.feature('resource') do
1190
+ @client.monitor_instances(options)
1191
+ end
1158
1192
  resp.data
1159
1193
  end
1160
1194
 
@@ -1172,7 +1206,9 @@ module Aws::EC2
1172
1206
  # @return [Types::GetPasswordDataResult]
1173
1207
  def password_data(options = {})
1174
1208
  options = options.merge(instance_id: @id)
1175
- resp = @client.get_password_data(options)
1209
+ resp = Aws::Plugins::UserAgent.feature('resource') do
1210
+ @client.get_password_data(options)
1211
+ end
1176
1212
  resp.data
1177
1213
  end
1178
1214
 
@@ -1190,7 +1226,9 @@ module Aws::EC2
1190
1226
  # @return [EmptyStructure]
1191
1227
  def reboot(options = {})
1192
1228
  options = Aws::Util.deep_merge(options, instance_ids: [@id])
1193
- resp = @client.reboot_instances(options)
1229
+ resp = Aws::Plugins::UserAgent.feature('resource') do
1230
+ @client.reboot_instances(options)
1231
+ end
1194
1232
  resp.data
1195
1233
  end
1196
1234
 
@@ -1248,7 +1286,9 @@ module Aws::EC2
1248
1286
  # @return [EmptyStructure]
1249
1287
  def report_status(options = {})
1250
1288
  options = Aws::Util.deep_merge(options, instances: [@id])
1251
- resp = @client.report_instance_status(options)
1289
+ resp = Aws::Plugins::UserAgent.feature('resource') do
1290
+ @client.report_instance_status(options)
1291
+ end
1252
1292
  resp.data
1253
1293
  end
1254
1294
 
@@ -1272,7 +1312,9 @@ module Aws::EC2
1272
1312
  # @return [EmptyStructure]
1273
1313
  def reset_attribute(options = {})
1274
1314
  options = options.merge(instance_id: @id)
1275
- resp = @client.reset_instance_attribute(options)
1315
+ resp = Aws::Plugins::UserAgent.feature('resource') do
1316
+ @client.reset_instance_attribute(options)
1317
+ end
1276
1318
  resp.data
1277
1319
  end
1278
1320
 
@@ -1293,7 +1335,9 @@ module Aws::EC2
1293
1335
  instance_id: @id,
1294
1336
  attribute: "kernel"
1295
1337
  )
1296
- resp = @client.reset_instance_attribute(options)
1338
+ resp = Aws::Plugins::UserAgent.feature('resource') do
1339
+ @client.reset_instance_attribute(options)
1340
+ end
1297
1341
  resp.data
1298
1342
  end
1299
1343
 
@@ -1314,7 +1358,9 @@ module Aws::EC2
1314
1358
  instance_id: @id,
1315
1359
  attribute: "ramdisk"
1316
1360
  )
1317
- resp = @client.reset_instance_attribute(options)
1361
+ resp = Aws::Plugins::UserAgent.feature('resource') do
1362
+ @client.reset_instance_attribute(options)
1363
+ end
1318
1364
  resp.data
1319
1365
  end
1320
1366
 
@@ -1335,7 +1381,9 @@ module Aws::EC2
1335
1381
  instance_id: @id,
1336
1382
  attribute: "sourceDestCheck"
1337
1383
  )
1338
- resp = @client.reset_instance_attribute(options)
1384
+ resp = Aws::Plugins::UserAgent.feature('resource') do
1385
+ @client.reset_instance_attribute(options)
1386
+ end
1339
1387
  resp.data
1340
1388
  end
1341
1389
 
@@ -1356,7 +1404,9 @@ module Aws::EC2
1356
1404
  # @return [Types::StartInstancesResult]
1357
1405
  def start(options = {})
1358
1406
  options = Aws::Util.deep_merge(options, instance_ids: [@id])
1359
- resp = @client.start_instances(options)
1407
+ resp = Aws::Plugins::UserAgent.feature('resource') do
1408
+ @client.start_instances(options)
1409
+ end
1360
1410
  resp.data
1361
1411
  end
1362
1412
 
@@ -1394,7 +1444,9 @@ module Aws::EC2
1394
1444
  # @return [Types::StopInstancesResult]
1395
1445
  def stop(options = {})
1396
1446
  options = Aws::Util.deep_merge(options, instance_ids: [@id])
1397
- resp = @client.stop_instances(options)
1447
+ resp = Aws::Plugins::UserAgent.feature('resource') do
1448
+ @client.stop_instances(options)
1449
+ end
1398
1450
  resp.data
1399
1451
  end
1400
1452
 
@@ -1412,7 +1464,9 @@ module Aws::EC2
1412
1464
  # @return [Types::TerminateInstancesResult]
1413
1465
  def terminate(options = {})
1414
1466
  options = Aws::Util.deep_merge(options, instance_ids: [@id])
1415
- resp = @client.terminate_instances(options)
1467
+ resp = Aws::Plugins::UserAgent.feature('resource') do
1468
+ @client.terminate_instances(options)
1469
+ end
1416
1470
  resp.data
1417
1471
  end
1418
1472
 
@@ -1430,7 +1484,9 @@ module Aws::EC2
1430
1484
  # @return [Types::UnmonitorInstancesResult]
1431
1485
  def unmonitor(options = {})
1432
1486
  options = Aws::Util.deep_merge(options, instance_ids: [@id])
1433
- resp = @client.unmonitor_instances(options)
1487
+ resp = Aws::Plugins::UserAgent.feature('resource') do
1488
+ @client.unmonitor_instances(options)
1489
+ end
1434
1490
  resp.data
1435
1491
  end
1436
1492
 
@@ -1590,7 +1646,9 @@ module Aws::EC2
1590
1646
  name: "attachment.instance-id",
1591
1647
  values: [@id]
1592
1648
  }])
1593
- resp = @client.describe_volumes(options)
1649
+ resp = Aws::Plugins::UserAgent.feature('resource') do
1650
+ @client.describe_volumes(options)
1651
+ end
1594
1652
  resp.each_page do |page|
1595
1653
  batch = []
1596
1654
  page.data.volumes.each do |v|
@@ -1688,7 +1746,9 @@ module Aws::EC2
1688
1746
  name: "instance-id",
1689
1747
  values: [@id]
1690
1748
  }])
1691
- resp = @client.describe_addresses(options)
1749
+ resp = Aws::Plugins::UserAgent.feature('resource') do
1750
+ @client.describe_addresses(options)
1751
+ end
1692
1752
  resp.data.addresses.each do |a|
1693
1753
  batch << VpcAddress.new(
1694
1754
  allocation_id: a.allocation_id,
@@ -1781,7 +1841,9 @@ module Aws::EC2
1781
1841
  batch.each do |item|
1782
1842
  params[:resources] << item.id
1783
1843
  end
1784
- batch[0].client.create_tags(params)
1844
+ Aws::Plugins::UserAgent.feature('resource') do
1845
+ batch[0].client.create_tags(params)
1846
+ end
1785
1847
  end
1786
1848
  nil
1787
1849
  end
@@ -1823,7 +1885,9 @@ module Aws::EC2
1823
1885
  batch.each do |item|
1824
1886
  params[:resources] << item.id
1825
1887
  end
1826
- batch[0].client.delete_tags(params)
1888
+ Aws::Plugins::UserAgent.feature('resource') do
1889
+ batch[0].client.delete_tags(params)
1890
+ end
1827
1891
  end
1828
1892
  nil
1829
1893
  end
@@ -1847,7 +1911,9 @@ module Aws::EC2
1847
1911
  batch.each do |item|
1848
1912
  params[:instance_ids] << item.id
1849
1913
  end
1850
- batch[0].client.monitor_instances(params)
1914
+ Aws::Plugins::UserAgent.feature('resource') do
1915
+ batch[0].client.monitor_instances(params)
1916
+ end
1851
1917
  end
1852
1918
  nil
1853
1919
  end
@@ -1871,7 +1937,9 @@ module Aws::EC2
1871
1937
  batch.each do |item|
1872
1938
  params[:instance_ids] << item.id
1873
1939
  end
1874
- batch[0].client.reboot_instances(params)
1940
+ Aws::Plugins::UserAgent.feature('resource') do
1941
+ batch[0].client.reboot_instances(params)
1942
+ end
1875
1943
  end
1876
1944
  nil
1877
1945
  end
@@ -1898,7 +1966,9 @@ module Aws::EC2
1898
1966
  batch.each do |item|
1899
1967
  params[:instance_ids] << item.id
1900
1968
  end
1901
- batch[0].client.start_instances(params)
1969
+ Aws::Plugins::UserAgent.feature('resource') do
1970
+ batch[0].client.start_instances(params)
1971
+ end
1902
1972
  end
1903
1973
  nil
1904
1974
  end
@@ -1942,7 +2012,9 @@ module Aws::EC2
1942
2012
  batch.each do |item|
1943
2013
  params[:instance_ids] << item.id
1944
2014
  end
1945
- batch[0].client.stop_instances(params)
2015
+ Aws::Plugins::UserAgent.feature('resource') do
2016
+ batch[0].client.stop_instances(params)
2017
+ end
1946
2018
  end
1947
2019
  nil
1948
2020
  end
@@ -1966,7 +2038,9 @@ module Aws::EC2
1966
2038
  batch.each do |item|
1967
2039
  params[:instance_ids] << item.id
1968
2040
  end
1969
- batch[0].client.terminate_instances(params)
2041
+ Aws::Plugins::UserAgent.feature('resource') do
2042
+ batch[0].client.terminate_instances(params)
2043
+ end
1970
2044
  end
1971
2045
  nil
1972
2046
  end
@@ -1990,7 +2064,9 @@ module Aws::EC2
1990
2064
  batch.each do |item|
1991
2065
  params[:instance_ids] << item.id
1992
2066
  end
1993
- batch[0].client.unmonitor_instances(params)
2067
+ Aws::Plugins::UserAgent.feature('resource') do
2068
+ batch[0].client.unmonitor_instances(params)
2069
+ end
1994
2070
  end
1995
2071
  nil
1996
2072
  end