aws-sdk-ec2 1.380.0 → 1.381.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-ec2/classic_address.rb +15 -5
- data/lib/aws-sdk-ec2/client.rb +6 -1
- data/lib/aws-sdk-ec2/customizations/instance.rb +3 -1
- data/lib/aws-sdk-ec2/customizations/resource.rb +3 -1
- data/lib/aws-sdk-ec2/dhcp_options.rb +18 -6
- data/lib/aws-sdk-ec2/image.rb +27 -9
- data/lib/aws-sdk-ec2/instance.rb +114 -38
- data/lib/aws-sdk-ec2/internet_gateway.rb +21 -7
- data/lib/aws-sdk-ec2/key_pair.rb +6 -2
- data/lib/aws-sdk-ec2/key_pair_info.rb +9 -3
- data/lib/aws-sdk-ec2/nat_gateway.rb +15 -5
- data/lib/aws-sdk-ec2/network_acl.rb +27 -9
- data/lib/aws-sdk-ec2/network_interface.rb +36 -12
- data/lib/aws-sdk-ec2/network_interface_association.rb +9 -3
- data/lib/aws-sdk-ec2/placement_group.rb +12 -4
- data/lib/aws-sdk-ec2/resource.rb +114 -38
- data/lib/aws-sdk-ec2/route.rb +9 -3
- data/lib/aws-sdk-ec2/route_table.rb +21 -7
- data/lib/aws-sdk-ec2/route_table_association.rb +9 -3
- data/lib/aws-sdk-ec2/security_group.rb +27 -9
- data/lib/aws-sdk-ec2/snapshot.rb +30 -10
- data/lib/aws-sdk-ec2/subnet.rb +30 -10
- data/lib/aws-sdk-ec2/tag.rb +12 -4
- data/lib/aws-sdk-ec2/volume.rb +39 -13
- data/lib/aws-sdk-ec2/vpc.rb +90 -30
- data/lib/aws-sdk-ec2/vpc_address.rb +12 -4
- data/lib/aws-sdk-ec2/vpc_peering_connection.rb +18 -6
- data/lib/aws-sdk-ec2.rb +1 -1
- metadata +4 -4
data/lib/aws-sdk-ec2/instance.rb
CHANGED
@@ -443,7 +443,9 @@ module Aws::EC2
|
|
443
443
|
#
|
444
444
|
# @return [self]
|
445
445
|
def load
|
446
|
-
resp =
|
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 =
|
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 =
|
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 =
|
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 =
|
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::
|
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 =
|
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 =
|
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 =
|
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 =
|
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 =
|
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 =
|
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 =
|
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 =
|
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 =
|
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 =
|
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 =
|
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 =
|
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 =
|
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 =
|
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 =
|
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 =
|
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 =
|
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 =
|
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 =
|
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 =
|
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 =
|
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 =
|
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 =
|
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 =
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
@@ -68,7 +68,9 @@ module Aws::EC2
|
|
68
68
|
#
|
69
69
|
# @return [self]
|
70
70
|
def load
|
71
|
-
resp =
|
71
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
72
|
+
@client.describe_internet_gateways(internet_gateway_ids: [@id])
|
73
|
+
end
|
72
74
|
@data = resp.internet_gateways[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::
|
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 attach_to_vpc(options = {})
|
207
211
|
options = options.merge(internet_gateway_id: @id)
|
208
|
-
resp =
|
212
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
213
|
+
@client.attach_internet_gateway(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 =
|
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 =
|
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(internet_gateway_id: @id)
|
308
|
-
resp =
|
318
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
319
|
+
@client.delete_internet_gateway(options)
|
320
|
+
end
|
309
321
|
resp.data
|
310
322
|
end
|
311
323
|
|
@@ -326,7 +338,9 @@ module Aws::EC2
|
|
326
338
|
# @return [EmptyStructure]
|
327
339
|
def detach_from_vpc(options = {})
|
328
340
|
options = options.merge(internet_gateway_id: @id)
|
329
|
-
resp =
|
341
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
342
|
+
@client.detach_internet_gateway(options)
|
343
|
+
end
|
330
344
|
resp.data
|
331
345
|
end
|
332
346
|
|
data/lib/aws-sdk-ec2/key_pair.rb
CHANGED
@@ -188,7 +188,9 @@ module Aws::EC2
|
|
188
188
|
:retry
|
189
189
|
end
|
190
190
|
end
|
191
|
-
Aws::
|
191
|
+
Aws::Plugins::UserAgent.feature('resource') do
|
192
|
+
Aws::Waiters::Waiter.new(options).wait({})
|
193
|
+
end
|
192
194
|
end
|
193
195
|
|
194
196
|
# @!group Actions
|
@@ -210,7 +212,9 @@ module Aws::EC2
|
|
210
212
|
# @return [EmptyStructure]
|
211
213
|
def delete(options = {})
|
212
214
|
options = options.merge(key_name: @name)
|
213
|
-
resp =
|
215
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
216
|
+
@client.delete_key_pair(options)
|
217
|
+
end
|
214
218
|
resp.data
|
215
219
|
end
|
216
220
|
|
@@ -116,7 +116,9 @@ module Aws::EC2
|
|
116
116
|
#
|
117
117
|
# @return [self]
|
118
118
|
def load
|
119
|
-
resp =
|
119
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
120
|
+
@client.describe_key_pairs(key_names: [@name])
|
121
|
+
end
|
120
122
|
@data = resp.key_pairs[0]
|
121
123
|
self
|
122
124
|
end
|
@@ -231,7 +233,9 @@ module Aws::EC2
|
|
231
233
|
:retry
|
232
234
|
end
|
233
235
|
end
|
234
|
-
Aws::
|
236
|
+
Aws::Plugins::UserAgent.feature('resource') do
|
237
|
+
Aws::Waiters::Waiter.new(options).wait({})
|
238
|
+
end
|
235
239
|
end
|
236
240
|
|
237
241
|
# @!group Actions
|
@@ -253,7 +257,9 @@ module Aws::EC2
|
|
253
257
|
# @return [EmptyStructure]
|
254
258
|
def delete(options = {})
|
255
259
|
options = options.merge(key_name: @name)
|
256
|
-
resp =
|
260
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
261
|
+
@client.delete_key_pair(options)
|
262
|
+
end
|
257
263
|
resp.data
|
258
264
|
end
|
259
265
|
|
@@ -163,7 +163,9 @@ module Aws::EC2
|
|
163
163
|
#
|
164
164
|
# @return [self]
|
165
165
|
def load
|
166
|
-
resp =
|
166
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
167
|
+
@client.describe_nat_gateways(nat_gateway_ids: [@id])
|
168
|
+
end
|
167
169
|
@data = resp.nat_gateways[0]
|
168
170
|
self
|
169
171
|
end
|
@@ -278,7 +280,9 @@ module Aws::EC2
|
|
278
280
|
:retry
|
279
281
|
end
|
280
282
|
end
|
281
|
-
Aws::
|
283
|
+
Aws::Plugins::UserAgent.feature('resource') do
|
284
|
+
Aws::Waiters::Waiter.new(options).wait({})
|
285
|
+
end
|
282
286
|
end
|
283
287
|
|
284
288
|
# @!group Actions
|
@@ -308,7 +312,9 @@ module Aws::EC2
|
|
308
312
|
def create_tags(options = {})
|
309
313
|
batch = []
|
310
314
|
options = Aws::Util.deep_merge(options, resources: [@id])
|
311
|
-
resp =
|
315
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
316
|
+
@client.create_tags(options)
|
317
|
+
end
|
312
318
|
options[:tags].each do |t|
|
313
319
|
batch << Tag.new(
|
314
320
|
resource_id: @id,
|
@@ -353,7 +359,9 @@ module Aws::EC2
|
|
353
359
|
def delete_tags(options = {})
|
354
360
|
batch = []
|
355
361
|
options = Aws::Util.deep_merge(options, resources: [@id])
|
356
|
-
resp =
|
362
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
363
|
+
@client.delete_tags(options)
|
364
|
+
end
|
357
365
|
options[:tags].each do |t|
|
358
366
|
batch << Tag.new(
|
359
367
|
resource_id: @id,
|
@@ -379,7 +387,9 @@ module Aws::EC2
|
|
379
387
|
# @return [Types::DeleteNatGatewayResult]
|
380
388
|
def delete(options = {})
|
381
389
|
options = options.merge(nat_gateway_id: @id)
|
382
|
-
resp =
|
390
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
391
|
+
@client.delete_nat_gateway(options)
|
392
|
+
end
|
383
393
|
resp.data
|
384
394
|
end
|
385
395
|
|
@@ -85,7 +85,9 @@ module Aws::EC2
|
|
85
85
|
#
|
86
86
|
# @return [self]
|
87
87
|
def load
|
88
|
-
resp =
|
88
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
89
|
+
@client.describe_network_acls(network_acl_ids: [@id])
|
90
|
+
end
|
89
91
|
@data = resp.network_acls[0]
|
90
92
|
self
|
91
93
|
end
|
@@ -200,7 +202,9 @@ module Aws::EC2
|
|
200
202
|
:retry
|
201
203
|
end
|
202
204
|
end
|
203
|
-
Aws::
|
205
|
+
Aws::Plugins::UserAgent.feature('resource') do
|
206
|
+
Aws::Waiters::Waiter.new(options).wait({})
|
207
|
+
end
|
204
208
|
end
|
205
209
|
|
206
210
|
# @!group Actions
|
@@ -268,7 +272,9 @@ module Aws::EC2
|
|
268
272
|
# @return [EmptyStructure]
|
269
273
|
def create_entry(options = {})
|
270
274
|
options = options.merge(network_acl_id: @id)
|
271
|
-
resp =
|
275
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
276
|
+
@client.create_network_acl_entry(options)
|
277
|
+
end
|
272
278
|
resp.data
|
273
279
|
end
|
274
280
|
|
@@ -297,7 +303,9 @@ module Aws::EC2
|
|
297
303
|
def create_tags(options = {})
|
298
304
|
batch = []
|
299
305
|
options = Aws::Util.deep_merge(options, resources: [@id])
|
300
|
-
resp =
|
306
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
307
|
+
@client.create_tags(options)
|
308
|
+
end
|
301
309
|
options[:tags].each do |t|
|
302
310
|
batch << Tag.new(
|
303
311
|
resource_id: @id,
|
@@ -342,7 +350,9 @@ module Aws::EC2
|
|
342
350
|
def delete_tags(options = {})
|
343
351
|
batch = []
|
344
352
|
options = Aws::Util.deep_merge(options, resources: [@id])
|
345
|
-
resp =
|
353
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
354
|
+
@client.delete_tags(options)
|
355
|
+
end
|
346
356
|
options[:tags].each do |t|
|
347
357
|
batch << Tag.new(
|
348
358
|
resource_id: @id,
|
@@ -368,7 +378,9 @@ module Aws::EC2
|
|
368
378
|
# @return [EmptyStructure]
|
369
379
|
def delete(options = {})
|
370
380
|
options = options.merge(network_acl_id: @id)
|
371
|
-
resp =
|
381
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
382
|
+
@client.delete_network_acl(options)
|
383
|
+
end
|
372
384
|
resp.data
|
373
385
|
end
|
374
386
|
|
@@ -392,7 +404,9 @@ module Aws::EC2
|
|
392
404
|
# @return [EmptyStructure]
|
393
405
|
def delete_entry(options = {})
|
394
406
|
options = options.merge(network_acl_id: @id)
|
395
|
-
resp =
|
407
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
408
|
+
@client.delete_network_acl_entry(options)
|
409
|
+
end
|
396
410
|
resp.data
|
397
411
|
end
|
398
412
|
|
@@ -414,7 +428,9 @@ module Aws::EC2
|
|
414
428
|
# @return [Types::ReplaceNetworkAclAssociationResult]
|
415
429
|
def replace_association(options = {})
|
416
430
|
options = options.merge(network_acl_id: @id)
|
417
|
-
resp =
|
431
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
432
|
+
@client.replace_network_acl_association(options)
|
433
|
+
end
|
418
434
|
resp.data
|
419
435
|
end
|
420
436
|
|
@@ -476,7 +492,9 @@ module Aws::EC2
|
|
476
492
|
# @return [EmptyStructure]
|
477
493
|
def replace_entry(options = {})
|
478
494
|
options = options.merge(network_acl_id: @id)
|
479
|
-
resp =
|
495
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
496
|
+
@client.replace_network_acl_entry(options)
|
497
|
+
end
|
480
498
|
resp.data
|
481
499
|
end
|
482
500
|
|