aws-sdk-ec2 1.380.0 → 1.381.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
@@ -202,7 +202,9 @@ module Aws::EC2
|
|
202
202
|
#
|
203
203
|
# @return [self]
|
204
204
|
def load
|
205
|
-
resp =
|
205
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
206
|
+
@client.describe_network_interfaces(network_interface_ids: [@id])
|
207
|
+
end
|
206
208
|
@data = resp.network_interfaces[0]
|
207
209
|
self
|
208
210
|
end
|
@@ -317,7 +319,9 @@ module Aws::EC2
|
|
317
319
|
:retry
|
318
320
|
end
|
319
321
|
end
|
320
|
-
Aws::
|
322
|
+
Aws::Plugins::UserAgent.feature('resource') do
|
323
|
+
Aws::Waiters::Waiter.new(options).wait({})
|
324
|
+
end
|
321
325
|
end
|
322
326
|
|
323
327
|
# @!group Actions
|
@@ -357,7 +361,9 @@ module Aws::EC2
|
|
357
361
|
# @return [Types::AssignPrivateIpAddressesResult]
|
358
362
|
def assign_private_ip_addresses(options = {})
|
359
363
|
options = options.merge(network_interface_id: @id)
|
360
|
-
resp =
|
364
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
365
|
+
@client.assign_private_ip_addresses(options)
|
366
|
+
end
|
361
367
|
resp.data
|
362
368
|
end
|
363
369
|
|
@@ -395,7 +401,9 @@ module Aws::EC2
|
|
395
401
|
# @return [Types::AttachNetworkInterfaceResult]
|
396
402
|
def attach(options = {})
|
397
403
|
options = options.merge(network_interface_id: @id)
|
398
|
-
resp =
|
404
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
405
|
+
@client.attach_network_interface(options)
|
406
|
+
end
|
399
407
|
resp.data
|
400
408
|
end
|
401
409
|
|
@@ -424,7 +432,9 @@ module Aws::EC2
|
|
424
432
|
def create_tags(options = {})
|
425
433
|
batch = []
|
426
434
|
options = Aws::Util.deep_merge(options, resources: [@id])
|
427
|
-
resp =
|
435
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
436
|
+
@client.create_tags(options)
|
437
|
+
end
|
428
438
|
options[:tags].each do |t|
|
429
439
|
batch << Tag.new(
|
430
440
|
resource_id: @id,
|
@@ -469,7 +479,9 @@ module Aws::EC2
|
|
469
479
|
def delete_tags(options = {})
|
470
480
|
batch = []
|
471
481
|
options = Aws::Util.deep_merge(options, resources: [@id])
|
472
|
-
resp =
|
482
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
483
|
+
@client.delete_tags(options)
|
484
|
+
end
|
473
485
|
options[:tags].each do |t|
|
474
486
|
batch << Tag.new(
|
475
487
|
resource_id: @id,
|
@@ -495,7 +507,9 @@ module Aws::EC2
|
|
495
507
|
# @return [EmptyStructure]
|
496
508
|
def delete(options = {})
|
497
509
|
options = options.merge(network_interface_id: @id)
|
498
|
-
resp =
|
510
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
511
|
+
@client.delete_network_interface(options)
|
512
|
+
end
|
499
513
|
resp.data
|
500
514
|
end
|
501
515
|
|
@@ -516,7 +530,9 @@ module Aws::EC2
|
|
516
530
|
# @return [Types::DescribeNetworkInterfaceAttributeResult]
|
517
531
|
def describe_attribute(options = {})
|
518
532
|
options = options.merge(network_interface_id: @id)
|
519
|
-
resp =
|
533
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
534
|
+
@client.describe_network_interface_attribute(options)
|
535
|
+
end
|
520
536
|
resp.data
|
521
537
|
end
|
522
538
|
|
@@ -557,7 +573,9 @@ module Aws::EC2
|
|
557
573
|
# @return [EmptyStructure]
|
558
574
|
def detach(options = {})
|
559
575
|
options = options.merge(attachment_id: data[:attachment][:attachment_id])
|
560
|
-
resp =
|
576
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
577
|
+
@client.detach_network_interface(options)
|
578
|
+
end
|
561
579
|
resp.data
|
562
580
|
end
|
563
581
|
|
@@ -611,7 +629,9 @@ module Aws::EC2
|
|
611
629
|
# @return [EmptyStructure]
|
612
630
|
def modify_attribute(options = {})
|
613
631
|
options = options.merge(network_interface_id: @id)
|
614
|
-
resp =
|
632
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
633
|
+
@client.modify_network_interface_attribute(options)
|
634
|
+
end
|
615
635
|
resp.data
|
616
636
|
end
|
617
637
|
|
@@ -632,7 +652,9 @@ module Aws::EC2
|
|
632
652
|
# @return [EmptyStructure]
|
633
653
|
def reset_attribute(options = {})
|
634
654
|
options = options.merge(network_interface_id: @id)
|
635
|
-
resp =
|
655
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
656
|
+
@client.reset_network_interface_attribute(options)
|
657
|
+
end
|
636
658
|
resp.data
|
637
659
|
end
|
638
660
|
|
@@ -652,7 +674,9 @@ module Aws::EC2
|
|
652
674
|
# @return [EmptyStructure]
|
653
675
|
def unassign_private_ip_addresses(options = {})
|
654
676
|
options = options.merge(network_interface_id: @id)
|
655
|
-
resp =
|
677
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
678
|
+
@client.unassign_private_ip_addresses(options)
|
679
|
+
end
|
656
680
|
resp.data
|
657
681
|
end
|
658
682
|
|
@@ -79,10 +79,12 @@ module Aws::EC2
|
|
79
79
|
#
|
80
80
|
# @return [self]
|
81
81
|
def load
|
82
|
-
resp =
|
82
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
83
|
+
@client.describe_network_interfaces(filters: [{
|
83
84
|
name: "association.association-id",
|
84
85
|
values: [@id]
|
85
86
|
}])
|
87
|
+
end
|
86
88
|
@data = resp.network_interfaces[0].association
|
87
89
|
self
|
88
90
|
end
|
@@ -197,7 +199,9 @@ module Aws::EC2
|
|
197
199
|
:retry
|
198
200
|
end
|
199
201
|
end
|
200
|
-
Aws::
|
202
|
+
Aws::Plugins::UserAgent.feature('resource') do
|
203
|
+
Aws::Waiters::Waiter.new(options).wait({})
|
204
|
+
end
|
201
205
|
end
|
202
206
|
|
203
207
|
# @!group Actions
|
@@ -219,7 +223,9 @@ module Aws::EC2
|
|
219
223
|
# @return [EmptyStructure]
|
220
224
|
def delete(options = {})
|
221
225
|
options = options.merge(association_id: @id)
|
222
|
-
resp =
|
226
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
227
|
+
@client.disassociate_address(options)
|
228
|
+
end
|
223
229
|
resp.data
|
224
230
|
end
|
225
231
|
|
@@ -93,7 +93,9 @@ module Aws::EC2
|
|
93
93
|
#
|
94
94
|
# @return [self]
|
95
95
|
def load
|
96
|
-
resp =
|
96
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
97
|
+
@client.describe_placement_groups(group_names: [@name])
|
98
|
+
end
|
97
99
|
@data = resp.placement_groups[0]
|
98
100
|
self
|
99
101
|
end
|
@@ -208,7 +210,9 @@ module Aws::EC2
|
|
208
210
|
:retry
|
209
211
|
end
|
210
212
|
end
|
211
|
-
Aws::
|
213
|
+
Aws::Plugins::UserAgent.feature('resource') do
|
214
|
+
Aws::Waiters::Waiter.new(options).wait({})
|
215
|
+
end
|
212
216
|
end
|
213
217
|
|
214
218
|
# @!group Actions
|
@@ -227,7 +231,9 @@ module Aws::EC2
|
|
227
231
|
# @return [EmptyStructure]
|
228
232
|
def delete(options = {})
|
229
233
|
options = options.merge(group_name: @name)
|
230
|
-
resp =
|
234
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
235
|
+
@client.delete_placement_group(options)
|
236
|
+
end
|
231
237
|
resp.data
|
232
238
|
end
|
233
239
|
|
@@ -542,7 +548,9 @@ module Aws::EC2
|
|
542
548
|
name: "placement-group-name",
|
543
549
|
values: [@name]
|
544
550
|
}])
|
545
|
-
resp =
|
551
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
552
|
+
@client.describe_instances(options)
|
553
|
+
end
|
546
554
|
resp.each_page do |page|
|
547
555
|
batch = []
|
548
556
|
page.data.reservations.each do |r|
|
data/lib/aws-sdk-ec2/resource.rb
CHANGED
@@ -69,7 +69,9 @@ module Aws::EC2
|
|
69
69
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
70
70
|
# @return [DhcpOptions]
|
71
71
|
def create_dhcp_options(options = {})
|
72
|
-
resp =
|
72
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
73
|
+
@client.create_dhcp_options(options)
|
74
|
+
end
|
73
75
|
DhcpOptions.new(
|
74
76
|
id: resp.data.dhcp_options.dhcp_options_id,
|
75
77
|
data: resp.data.dhcp_options,
|
@@ -601,7 +603,9 @@ module Aws::EC2
|
|
601
603
|
# @return [Instance::Collection]
|
602
604
|
def create_instances(options = {})
|
603
605
|
batch = []
|
604
|
-
resp =
|
606
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
607
|
+
@client.run_instances(options)
|
608
|
+
end
|
605
609
|
resp.data.instances.each do |i|
|
606
610
|
batch << Instance.new(
|
607
611
|
id: i.instance_id,
|
@@ -638,7 +642,9 @@ module Aws::EC2
|
|
638
642
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
639
643
|
# @return [InternetGateway]
|
640
644
|
def create_internet_gateway(options = {})
|
641
|
-
resp =
|
645
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
646
|
+
@client.create_internet_gateway(options)
|
647
|
+
end
|
642
648
|
InternetGateway.new(
|
643
649
|
id: resp.data.internet_gateway.internet_gateway_id,
|
644
650
|
data: resp.data.internet_gateway,
|
@@ -688,7 +694,9 @@ module Aws::EC2
|
|
688
694
|
# Default: `pem`
|
689
695
|
# @return [KeyPair]
|
690
696
|
def create_key_pair(options = {})
|
691
|
-
resp =
|
697
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
698
|
+
@client.create_key_pair(options)
|
699
|
+
end
|
692
700
|
KeyPair.new(
|
693
701
|
name: resp.data.key_name,
|
694
702
|
data: resp.data,
|
@@ -780,7 +788,9 @@ module Aws::EC2
|
|
780
788
|
# [1]: https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html#nat-gateway-creating
|
781
789
|
# @return [NatGateway]
|
782
790
|
def create_nat_gateway(options = {})
|
783
|
-
resp =
|
791
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
792
|
+
@client.create_nat_gateway(options)
|
793
|
+
end
|
784
794
|
NatGateway.new(
|
785
795
|
id: resp.data.nat_gateway.nat_gateway_id,
|
786
796
|
data: resp.data.nat_gateway,
|
@@ -817,7 +827,9 @@ module Aws::EC2
|
|
817
827
|
# The tags to assign to the network ACL.
|
818
828
|
# @return [NetworkAcl]
|
819
829
|
def create_network_acl(options = {})
|
820
|
-
resp =
|
830
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
831
|
+
@client.create_network_acl(options)
|
832
|
+
end
|
821
833
|
NetworkAcl.new(
|
822
834
|
id: resp.data.network_acl.network_acl_id,
|
823
835
|
data: resp.data.network_acl,
|
@@ -965,7 +977,9 @@ module Aws::EC2
|
|
965
977
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
|
966
978
|
# @return [NetworkInterface]
|
967
979
|
def create_network_interface(options = {})
|
968
|
-
resp =
|
980
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
981
|
+
@client.create_network_interface(options)
|
982
|
+
end
|
969
983
|
NetworkInterface.new(
|
970
984
|
id: resp.data.network_interface.network_interface_id,
|
971
985
|
data: resp.data.network_interface,
|
@@ -1019,7 +1033,9 @@ module Aws::EC2
|
|
1019
1033
|
# * Rack – No usage restrictions.
|
1020
1034
|
# @return [PlacementGroup]
|
1021
1035
|
def create_placement_group(options = {})
|
1022
|
-
|
1036
|
+
Aws::Plugins::UserAgent.feature('resource') do
|
1037
|
+
@client.create_placement_group(options)
|
1038
|
+
end
|
1023
1039
|
PlacementGroup.new(
|
1024
1040
|
name: options[:group_name],
|
1025
1041
|
client: @client
|
@@ -1055,7 +1071,9 @@ module Aws::EC2
|
|
1055
1071
|
# The tags to assign to the route table.
|
1056
1072
|
# @return [RouteTable]
|
1057
1073
|
def create_route_table(options = {})
|
1058
|
-
resp =
|
1074
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
1075
|
+
@client.create_route_table(options)
|
1076
|
+
end
|
1059
1077
|
RouteTable.new(
|
1060
1078
|
id: resp.data.route_table.route_table_id,
|
1061
1079
|
data: resp.data.route_table,
|
@@ -1112,7 +1130,9 @@ module Aws::EC2
|
|
1112
1130
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
1113
1131
|
# @return [SecurityGroup]
|
1114
1132
|
def create_security_group(options = {})
|
1115
|
-
resp =
|
1133
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
1134
|
+
@client.create_security_group(options)
|
1135
|
+
end
|
1116
1136
|
SecurityGroup.new(
|
1117
1137
|
id: resp.data.group_id,
|
1118
1138
|
client: @client
|
@@ -1173,7 +1193,9 @@ module Aws::EC2
|
|
1173
1193
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
1174
1194
|
# @return [Snapshot]
|
1175
1195
|
def create_snapshot(options = {})
|
1176
|
-
resp =
|
1196
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
1197
|
+
@client.create_snapshot(options)
|
1198
|
+
end
|
1177
1199
|
Snapshot.new(
|
1178
1200
|
id: resp.data.snapshot_id,
|
1179
1201
|
data: resp.data,
|
@@ -1254,7 +1276,9 @@ module Aws::EC2
|
|
1254
1276
|
# Indicates whether to create an IPv6 only subnet.
|
1255
1277
|
# @return [Subnet]
|
1256
1278
|
def create_subnet(options = {})
|
1257
|
-
resp =
|
1279
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
1280
|
+
@client.create_subnet(options)
|
1281
|
+
end
|
1258
1282
|
Subnet.new(
|
1259
1283
|
id: resp.data.subnet.subnet_id,
|
1260
1284
|
data: resp.data.subnet,
|
@@ -1291,7 +1315,9 @@ module Aws::EC2
|
|
1291
1315
|
# set the value to an empty string.
|
1292
1316
|
# @return [EmptyStructure]
|
1293
1317
|
def create_tags(options = {})
|
1294
|
-
resp =
|
1318
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
1319
|
+
@client.create_tags(options)
|
1320
|
+
end
|
1295
1321
|
resp.data
|
1296
1322
|
end
|
1297
1323
|
|
@@ -1332,7 +1358,9 @@ module Aws::EC2
|
|
1332
1358
|
# Constraints: Up to 1000 tags.
|
1333
1359
|
# @return [EmptyStructure]
|
1334
1360
|
def delete_tags(options = {})
|
1335
|
-
resp =
|
1361
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
1362
|
+
@client.delete_tags(options)
|
1363
|
+
end
|
1336
1364
|
resp.data
|
1337
1365
|
end
|
1338
1366
|
|
@@ -1509,7 +1537,9 @@ module Aws::EC2
|
|
1509
1537
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
|
1510
1538
|
# @return [Volume]
|
1511
1539
|
def create_volume(options = {})
|
1512
|
-
resp =
|
1540
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
1541
|
+
@client.create_volume(options)
|
1542
|
+
end
|
1513
1543
|
Volume.new(
|
1514
1544
|
id: resp.data.volume_id,
|
1515
1545
|
data: resp.data,
|
@@ -1626,7 +1656,9 @@ module Aws::EC2
|
|
1626
1656
|
# The tags to assign to the VPC.
|
1627
1657
|
# @return [Vpc]
|
1628
1658
|
def create_vpc(options = {})
|
1629
|
-
resp =
|
1659
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
1660
|
+
@client.create_vpc(options)
|
1661
|
+
end
|
1630
1662
|
Vpc.new(
|
1631
1663
|
id: resp.data.vpc.vpc_id,
|
1632
1664
|
data: resp.data.vpc,
|
@@ -1679,7 +1711,9 @@ module Aws::EC2
|
|
1679
1711
|
# The tags to assign to the peering connection.
|
1680
1712
|
# @return [VpcPeeringConnection]
|
1681
1713
|
def create_vpc_peering_connection(options = {})
|
1682
|
-
resp =
|
1714
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
1715
|
+
@client.create_vpc_peering_connection(options)
|
1716
|
+
end
|
1683
1717
|
VpcPeeringConnection.new(
|
1684
1718
|
id: resp.data.vpc_peering_connection.vpc_peering_connection_id,
|
1685
1719
|
data: resp.data.vpc_peering_connection,
|
@@ -1704,7 +1738,9 @@ module Aws::EC2
|
|
1704
1738
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
1705
1739
|
# @return [EmptyStructure]
|
1706
1740
|
def disassociate_route_table(options = {})
|
1707
|
-
resp =
|
1741
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
1742
|
+
@client.disassociate_route_table(options)
|
1743
|
+
end
|
1708
1744
|
resp.data
|
1709
1745
|
end
|
1710
1746
|
|
@@ -1741,7 +1777,9 @@ module Aws::EC2
|
|
1741
1777
|
# The tags to apply to the imported key pair.
|
1742
1778
|
# @return [KeyPairInfo]
|
1743
1779
|
def import_key_pair(options = {})
|
1744
|
-
resp =
|
1780
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
1781
|
+
@client.import_key_pair(options)
|
1782
|
+
end
|
1745
1783
|
KeyPairInfo.new(
|
1746
1784
|
name: resp.data.key_name,
|
1747
1785
|
client: @client
|
@@ -1921,7 +1959,9 @@ module Aws::EC2
|
|
1921
1959
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-IMDS-new-instances.html#configure-IMDS-new-instances-ami-configuration
|
1922
1960
|
# @return [Image]
|
1923
1961
|
def register_image(options = {})
|
1924
|
-
resp =
|
1962
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
1963
|
+
@client.register_image(options)
|
1964
|
+
end
|
1925
1965
|
Image.new(
|
1926
1966
|
id: resp.data.image_id,
|
1927
1967
|
client: @client
|
@@ -2000,7 +2040,9 @@ module Aws::EC2
|
|
2000
2040
|
name: "domain",
|
2001
2041
|
values: ["standard"]
|
2002
2042
|
}])
|
2003
|
-
resp =
|
2043
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
2044
|
+
@client.describe_addresses(options)
|
2045
|
+
end
|
2004
2046
|
resp.data.addresses.each do |a|
|
2005
2047
|
batch << ClassicAddress.new(
|
2006
2048
|
public_ip: a.public_ip,
|
@@ -2068,7 +2110,9 @@ module Aws::EC2
|
|
2068
2110
|
# @return [DhcpOptions::Collection]
|
2069
2111
|
def dhcp_options_sets(options = {})
|
2070
2112
|
batches = Enumerator.new do |y|
|
2071
|
-
resp =
|
2113
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
2114
|
+
@client.describe_dhcp_options(options)
|
2115
|
+
end
|
2072
2116
|
resp.each_page do |page|
|
2073
2117
|
batch = []
|
2074
2118
|
page.data.dhcp_options.each do |d|
|
@@ -2249,7 +2293,9 @@ module Aws::EC2
|
|
2249
2293
|
# @return [Image::Collection]
|
2250
2294
|
def images(options = {})
|
2251
2295
|
batches = Enumerator.new do |y|
|
2252
|
-
resp =
|
2296
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
2297
|
+
@client.describe_images(options)
|
2298
|
+
end
|
2253
2299
|
resp.each_page do |page|
|
2254
2300
|
batch = []
|
2255
2301
|
page.data.images.each do |i|
|
@@ -2579,7 +2625,9 @@ module Aws::EC2
|
|
2579
2625
|
# @return [Instance::Collection]
|
2580
2626
|
def instances(options = {})
|
2581
2627
|
batches = Enumerator.new do |y|
|
2582
|
-
resp =
|
2628
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
2629
|
+
@client.describe_instances(options)
|
2630
|
+
end
|
2583
2631
|
resp.each_page do |page|
|
2584
2632
|
batch = []
|
2585
2633
|
page.data.reservations.each do |r|
|
@@ -2654,7 +2702,9 @@ module Aws::EC2
|
|
2654
2702
|
# @return [InternetGateway::Collection]
|
2655
2703
|
def internet_gateways(options = {})
|
2656
2704
|
batches = Enumerator.new do |y|
|
2657
|
-
resp =
|
2705
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
2706
|
+
@client.describe_internet_gateways(options)
|
2707
|
+
end
|
2658
2708
|
resp.each_page do |page|
|
2659
2709
|
batch = []
|
2660
2710
|
page.data.internet_gateways.each do |i|
|
@@ -2731,7 +2781,9 @@ module Aws::EC2
|
|
2731
2781
|
def key_pairs(options = {})
|
2732
2782
|
batches = Enumerator.new do |y|
|
2733
2783
|
batch = []
|
2734
|
-
resp =
|
2784
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
2785
|
+
@client.describe_key_pairs(options)
|
2786
|
+
end
|
2735
2787
|
resp.data.key_pairs.each do |k|
|
2736
2788
|
batch << KeyPairInfo.new(
|
2737
2789
|
name: k.key_name,
|
@@ -2797,7 +2849,9 @@ module Aws::EC2
|
|
2797
2849
|
# @return [NatGateway::Collection]
|
2798
2850
|
def nat_gateways(options = {})
|
2799
2851
|
batches = Enumerator.new do |y|
|
2800
|
-
resp =
|
2852
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
2853
|
+
@client.describe_nat_gateways(options)
|
2854
|
+
end
|
2801
2855
|
resp.each_page do |page|
|
2802
2856
|
batch = []
|
2803
2857
|
page.data.nat_gateways.each do |n|
|
@@ -2904,7 +2958,9 @@ module Aws::EC2
|
|
2904
2958
|
# @return [NetworkAcl::Collection]
|
2905
2959
|
def network_acls(options = {})
|
2906
2960
|
batches = Enumerator.new do |y|
|
2907
|
-
resp =
|
2961
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
2962
|
+
@client.describe_network_acls(options)
|
2963
|
+
end
|
2908
2964
|
resp.each_page do |page|
|
2909
2965
|
batch = []
|
2910
2966
|
page.data.network_acls.each do |n|
|
@@ -3071,7 +3127,9 @@ module Aws::EC2
|
|
3071
3127
|
# @return [NetworkInterface::Collection]
|
3072
3128
|
def network_interfaces(options = {})
|
3073
3129
|
batches = Enumerator.new do |y|
|
3074
|
-
resp =
|
3130
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
3131
|
+
@client.describe_network_interfaces(options)
|
3132
|
+
end
|
3075
3133
|
resp.each_page do |page|
|
3076
3134
|
batch = []
|
3077
3135
|
page.data.network_interfaces.each do |n|
|
@@ -3151,7 +3209,9 @@ module Aws::EC2
|
|
3151
3209
|
def placement_groups(options = {})
|
3152
3210
|
batches = Enumerator.new do |y|
|
3153
3211
|
batch = []
|
3154
|
-
resp =
|
3212
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
3213
|
+
@client.describe_placement_groups(options)
|
3214
|
+
end
|
3155
3215
|
resp.data.placement_groups.each do |p|
|
3156
3216
|
batch << PlacementGroup.new(
|
3157
3217
|
name: p.group_name,
|
@@ -3277,7 +3337,9 @@ module Aws::EC2
|
|
3277
3337
|
# @return [RouteTable::Collection]
|
3278
3338
|
def route_tables(options = {})
|
3279
3339
|
batches = Enumerator.new do |y|
|
3280
|
-
resp =
|
3340
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
3341
|
+
@client.describe_route_tables(options)
|
3342
|
+
end
|
3281
3343
|
resp.each_page do |page|
|
3282
3344
|
batch = []
|
3283
3345
|
page.data.route_tables.each do |r|
|
@@ -3418,7 +3480,9 @@ module Aws::EC2
|
|
3418
3480
|
# @return [SecurityGroup::Collection]
|
3419
3481
|
def security_groups(options = {})
|
3420
3482
|
batches = Enumerator.new do |y|
|
3421
|
-
resp =
|
3483
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
3484
|
+
@client.describe_security_groups(options)
|
3485
|
+
end
|
3422
3486
|
resp.each_page do |page|
|
3423
3487
|
batch = []
|
3424
3488
|
page.data.security_groups.each do |s|
|
@@ -3520,7 +3584,9 @@ module Aws::EC2
|
|
3520
3584
|
# @return [Snapshot::Collection]
|
3521
3585
|
def snapshots(options = {})
|
3522
3586
|
batches = Enumerator.new do |y|
|
3523
|
-
resp =
|
3587
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
3588
|
+
@client.describe_snapshots(options)
|
3589
|
+
end
|
3524
3590
|
resp.each_page do |page|
|
3525
3591
|
batch = []
|
3526
3592
|
page.data.snapshots.each do |s|
|
@@ -3659,7 +3725,9 @@ module Aws::EC2
|
|
3659
3725
|
# @return [Subnet::Collection]
|
3660
3726
|
def subnets(options = {})
|
3661
3727
|
batches = Enumerator.new do |y|
|
3662
|
-
resp =
|
3728
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
3729
|
+
@client.describe_subnets(options)
|
3730
|
+
end
|
3663
3731
|
resp.each_page do |page|
|
3664
3732
|
batch = []
|
3665
3733
|
page.data.subnets.each do |s|
|
@@ -3761,7 +3829,9 @@ module Aws::EC2
|
|
3761
3829
|
# @return [Volume::Collection]
|
3762
3830
|
def volumes(options = {})
|
3763
3831
|
batches = Enumerator.new do |y|
|
3764
|
-
resp =
|
3832
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
3833
|
+
@client.describe_volumes(options)
|
3834
|
+
end
|
3765
3835
|
resp.each_page do |page|
|
3766
3836
|
batch = []
|
3767
3837
|
page.data.volumes.each do |v|
|
@@ -3856,7 +3926,9 @@ module Aws::EC2
|
|
3856
3926
|
name: "domain",
|
3857
3927
|
values: ["vpc"]
|
3858
3928
|
}])
|
3859
|
-
resp =
|
3929
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
3930
|
+
@client.describe_addresses(options)
|
3931
|
+
end
|
3860
3932
|
resp.data.addresses.each do |a|
|
3861
3933
|
batch << VpcAddress.new(
|
3862
3934
|
allocation_id: a.allocation_id,
|
@@ -3943,7 +4015,9 @@ module Aws::EC2
|
|
3943
4015
|
# @return [VpcPeeringConnection::Collection]
|
3944
4016
|
def vpc_peering_connections(options = {})
|
3945
4017
|
batches = Enumerator.new do |y|
|
3946
|
-
resp =
|
4018
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
4019
|
+
@client.describe_vpc_peering_connections(options)
|
4020
|
+
end
|
3947
4021
|
resp.each_page do |page|
|
3948
4022
|
batch = []
|
3949
4023
|
page.data.vpc_peering_connections.each do |v|
|
@@ -4033,7 +4107,9 @@ module Aws::EC2
|
|
4033
4107
|
# @return [Vpc::Collection]
|
4034
4108
|
def vpcs(options = {})
|
4035
4109
|
batches = Enumerator.new do |y|
|
4036
|
-
resp =
|
4110
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
4111
|
+
@client.describe_vpcs(options)
|
4112
|
+
end
|
4037
4113
|
resp.each_page do |page|
|
4038
4114
|
batch = []
|
4039
4115
|
page.data.vpcs.each do |v|
|
data/lib/aws-sdk-ec2/route.rb
CHANGED
@@ -267,7 +267,9 @@ module Aws::EC2
|
|
267
267
|
:retry
|
268
268
|
end
|
269
269
|
end
|
270
|
-
Aws::
|
270
|
+
Aws::Plugins::UserAgent.feature('resource') do
|
271
|
+
Aws::Waiters::Waiter.new(options).wait({})
|
272
|
+
end
|
271
273
|
end
|
272
274
|
|
273
275
|
# @!group Actions
|
@@ -296,7 +298,9 @@ module Aws::EC2
|
|
296
298
|
route_table_id: @route_table_id,
|
297
299
|
destination_cidr_block: @destination_cidr_block
|
298
300
|
)
|
299
|
-
resp =
|
301
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
302
|
+
@client.delete_route(options)
|
303
|
+
end
|
300
304
|
resp.data
|
301
305
|
end
|
302
306
|
|
@@ -363,7 +367,9 @@ module Aws::EC2
|
|
363
367
|
route_table_id: @route_table_id,
|
364
368
|
destination_cidr_block: @destination_cidr_block
|
365
369
|
)
|
366
|
-
resp =
|
370
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
371
|
+
@client.replace_route(options)
|
372
|
+
end
|
367
373
|
resp.data
|
368
374
|
end
|
369
375
|
|