aws-sdk-ec2 1.459.0 → 1.460.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-ec2/classic_address.rb +5 -5
- data/lib/aws-sdk-ec2/client.rb +1 -1
- data/lib/aws-sdk-ec2/customizations/instance.rb +1 -1
- data/lib/aws-sdk-ec2/customizations/resource.rb +1 -1
- data/lib/aws-sdk-ec2/dhcp_options.rb +6 -6
- data/lib/aws-sdk-ec2/image.rb +9 -9
- data/lib/aws-sdk-ec2/instance.rb +38 -38
- data/lib/aws-sdk-ec2/internet_gateway.rb +7 -7
- data/lib/aws-sdk-ec2/key_pair.rb +2 -2
- data/lib/aws-sdk-ec2/key_pair_info.rb +3 -3
- data/lib/aws-sdk-ec2/nat_gateway.rb +5 -5
- data/lib/aws-sdk-ec2/network_acl.rb +9 -9
- data/lib/aws-sdk-ec2/network_interface.rb +12 -12
- data/lib/aws-sdk-ec2/network_interface_association.rb +3 -3
- data/lib/aws-sdk-ec2/placement_group.rb +4 -4
- data/lib/aws-sdk-ec2/resource.rb +38 -38
- data/lib/aws-sdk-ec2/route.rb +3 -3
- data/lib/aws-sdk-ec2/route_table.rb +7 -7
- data/lib/aws-sdk-ec2/route_table_association.rb +3 -3
- data/lib/aws-sdk-ec2/security_group.rb +9 -9
- data/lib/aws-sdk-ec2/snapshot.rb +10 -10
- data/lib/aws-sdk-ec2/subnet.rb +10 -10
- data/lib/aws-sdk-ec2/tag.rb +4 -4
- data/lib/aws-sdk-ec2/volume.rb +13 -13
- data/lib/aws-sdk-ec2/vpc.rb +30 -30
- data/lib/aws-sdk-ec2/vpc_address.rb +4 -4
- data/lib/aws-sdk-ec2/vpc_peering_connection.rb +6 -6
- data/lib/aws-sdk-ec2.rb +1 -1
- metadata +4 -4
@@ -163,7 +163,7 @@ module Aws::EC2
|
|
163
163
|
#
|
164
164
|
# @return [self]
|
165
165
|
def load
|
166
|
-
resp = Aws::Plugins::UserAgent.
|
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.
|
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.
|
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.
|
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.
|
390
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
391
391
|
@client.delete_nat_gateway(options)
|
392
392
|
end
|
393
393
|
resp.data
|
@@ -85,7 +85,7 @@ module Aws::EC2
|
|
85
85
|
#
|
86
86
|
# @return [self]
|
87
87
|
def load
|
88
|
-
resp = Aws::Plugins::UserAgent.
|
88
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
89
89
|
@client.describe_network_acls(network_acl_ids: [@id])
|
90
90
|
end
|
91
91
|
@data = resp.network_acls[0]
|
@@ -202,7 +202,7 @@ module Aws::EC2
|
|
202
202
|
:retry
|
203
203
|
end
|
204
204
|
end
|
205
|
-
Aws::Plugins::UserAgent.
|
205
|
+
Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
206
206
|
Aws::Waiters::Waiter.new(options).wait({})
|
207
207
|
end
|
208
208
|
end
|
@@ -272,7 +272,7 @@ module Aws::EC2
|
|
272
272
|
# @return [EmptyStructure]
|
273
273
|
def create_entry(options = {})
|
274
274
|
options = options.merge(network_acl_id: @id)
|
275
|
-
resp = Aws::Plugins::UserAgent.
|
275
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
276
276
|
@client.create_network_acl_entry(options)
|
277
277
|
end
|
278
278
|
resp.data
|
@@ -303,7 +303,7 @@ module Aws::EC2
|
|
303
303
|
def create_tags(options = {})
|
304
304
|
batch = []
|
305
305
|
options = Aws::Util.deep_merge(options, resources: [@id])
|
306
|
-
resp = Aws::Plugins::UserAgent.
|
306
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
307
307
|
@client.create_tags(options)
|
308
308
|
end
|
309
309
|
options[:tags].each do |t|
|
@@ -350,7 +350,7 @@ module Aws::EC2
|
|
350
350
|
def delete_tags(options = {})
|
351
351
|
batch = []
|
352
352
|
options = Aws::Util.deep_merge(options, resources: [@id])
|
353
|
-
resp = Aws::Plugins::UserAgent.
|
353
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
354
354
|
@client.delete_tags(options)
|
355
355
|
end
|
356
356
|
options[:tags].each do |t|
|
@@ -378,7 +378,7 @@ module Aws::EC2
|
|
378
378
|
# @return [EmptyStructure]
|
379
379
|
def delete(options = {})
|
380
380
|
options = options.merge(network_acl_id: @id)
|
381
|
-
resp = Aws::Plugins::UserAgent.
|
381
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
382
382
|
@client.delete_network_acl(options)
|
383
383
|
end
|
384
384
|
resp.data
|
@@ -404,7 +404,7 @@ module Aws::EC2
|
|
404
404
|
# @return [EmptyStructure]
|
405
405
|
def delete_entry(options = {})
|
406
406
|
options = options.merge(network_acl_id: @id)
|
407
|
-
resp = Aws::Plugins::UserAgent.
|
407
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
408
408
|
@client.delete_network_acl_entry(options)
|
409
409
|
end
|
410
410
|
resp.data
|
@@ -428,7 +428,7 @@ module Aws::EC2
|
|
428
428
|
# @return [Types::ReplaceNetworkAclAssociationResult]
|
429
429
|
def replace_association(options = {})
|
430
430
|
options = options.merge(network_acl_id: @id)
|
431
|
-
resp = Aws::Plugins::UserAgent.
|
431
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
432
432
|
@client.replace_network_acl_association(options)
|
433
433
|
end
|
434
434
|
resp.data
|
@@ -492,7 +492,7 @@ module Aws::EC2
|
|
492
492
|
# @return [EmptyStructure]
|
493
493
|
def replace_entry(options = {})
|
494
494
|
options = options.merge(network_acl_id: @id)
|
495
|
-
resp = Aws::Plugins::UserAgent.
|
495
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
496
496
|
@client.replace_network_acl_entry(options)
|
497
497
|
end
|
498
498
|
resp.data
|
@@ -215,7 +215,7 @@ module Aws::EC2
|
|
215
215
|
#
|
216
216
|
# @return [self]
|
217
217
|
def load
|
218
|
-
resp = Aws::Plugins::UserAgent.
|
218
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
219
219
|
@client.describe_network_interfaces(network_interface_ids: [@id])
|
220
220
|
end
|
221
221
|
@data = resp.network_interfaces[0]
|
@@ -332,7 +332,7 @@ module Aws::EC2
|
|
332
332
|
:retry
|
333
333
|
end
|
334
334
|
end
|
335
|
-
Aws::Plugins::UserAgent.
|
335
|
+
Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
336
336
|
Aws::Waiters::Waiter.new(options).wait({})
|
337
337
|
end
|
338
338
|
end
|
@@ -374,7 +374,7 @@ module Aws::EC2
|
|
374
374
|
# @return [Types::AssignPrivateIpAddressesResult]
|
375
375
|
def assign_private_ip_addresses(options = {})
|
376
376
|
options = options.merge(network_interface_id: @id)
|
377
|
-
resp = Aws::Plugins::UserAgent.
|
377
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
378
378
|
@client.assign_private_ip_addresses(options)
|
379
379
|
end
|
380
380
|
resp.data
|
@@ -414,7 +414,7 @@ module Aws::EC2
|
|
414
414
|
# @return [Types::AttachNetworkInterfaceResult]
|
415
415
|
def attach(options = {})
|
416
416
|
options = options.merge(network_interface_id: @id)
|
417
|
-
resp = Aws::Plugins::UserAgent.
|
417
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
418
418
|
@client.attach_network_interface(options)
|
419
419
|
end
|
420
420
|
resp.data
|
@@ -445,7 +445,7 @@ module Aws::EC2
|
|
445
445
|
def create_tags(options = {})
|
446
446
|
batch = []
|
447
447
|
options = Aws::Util.deep_merge(options, resources: [@id])
|
448
|
-
resp = Aws::Plugins::UserAgent.
|
448
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
449
449
|
@client.create_tags(options)
|
450
450
|
end
|
451
451
|
options[:tags].each do |t|
|
@@ -492,7 +492,7 @@ module Aws::EC2
|
|
492
492
|
def delete_tags(options = {})
|
493
493
|
batch = []
|
494
494
|
options = Aws::Util.deep_merge(options, resources: [@id])
|
495
|
-
resp = Aws::Plugins::UserAgent.
|
495
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
496
496
|
@client.delete_tags(options)
|
497
497
|
end
|
498
498
|
options[:tags].each do |t|
|
@@ -520,7 +520,7 @@ module Aws::EC2
|
|
520
520
|
# @return [EmptyStructure]
|
521
521
|
def delete(options = {})
|
522
522
|
options = options.merge(network_interface_id: @id)
|
523
|
-
resp = Aws::Plugins::UserAgent.
|
523
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
524
524
|
@client.delete_network_interface(options)
|
525
525
|
end
|
526
526
|
resp.data
|
@@ -543,7 +543,7 @@ module Aws::EC2
|
|
543
543
|
# @return [Types::DescribeNetworkInterfaceAttributeResult]
|
544
544
|
def describe_attribute(options = {})
|
545
545
|
options = options.merge(network_interface_id: @id)
|
546
|
-
resp = Aws::Plugins::UserAgent.
|
546
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
547
547
|
@client.describe_network_interface_attribute(options)
|
548
548
|
end
|
549
549
|
resp.data
|
@@ -586,7 +586,7 @@ module Aws::EC2
|
|
586
586
|
# @return [EmptyStructure]
|
587
587
|
def detach(options = {})
|
588
588
|
options = options.merge(attachment_id: data[:attachment][:attachment_id])
|
589
|
-
resp = Aws::Plugins::UserAgent.
|
589
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
590
590
|
@client.detach_network_interface(options)
|
591
591
|
end
|
592
592
|
resp.data
|
@@ -671,7 +671,7 @@ module Aws::EC2
|
|
671
671
|
# @return [EmptyStructure]
|
672
672
|
def modify_attribute(options = {})
|
673
673
|
options = options.merge(network_interface_id: @id)
|
674
|
-
resp = Aws::Plugins::UserAgent.
|
674
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
675
675
|
@client.modify_network_interface_attribute(options)
|
676
676
|
end
|
677
677
|
resp.data
|
@@ -694,7 +694,7 @@ module Aws::EC2
|
|
694
694
|
# @return [EmptyStructure]
|
695
695
|
def reset_attribute(options = {})
|
696
696
|
options = options.merge(network_interface_id: @id)
|
697
|
-
resp = Aws::Plugins::UserAgent.
|
697
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
698
698
|
@client.reset_network_interface_attribute(options)
|
699
699
|
end
|
700
700
|
resp.data
|
@@ -716,7 +716,7 @@ module Aws::EC2
|
|
716
716
|
# @return [EmptyStructure]
|
717
717
|
def unassign_private_ip_addresses(options = {})
|
718
718
|
options = options.merge(network_interface_id: @id)
|
719
|
-
resp = Aws::Plugins::UserAgent.
|
719
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
720
720
|
@client.unassign_private_ip_addresses(options)
|
721
721
|
end
|
722
722
|
resp.data
|
@@ -79,7 +79,7 @@ module Aws::EC2
|
|
79
79
|
#
|
80
80
|
# @return [self]
|
81
81
|
def load
|
82
|
-
resp = Aws::Plugins::UserAgent.
|
82
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
83
83
|
@client.describe_network_interfaces(filters: [{
|
84
84
|
name: "association.association-id",
|
85
85
|
values: [@id]
|
@@ -199,7 +199,7 @@ module Aws::EC2
|
|
199
199
|
:retry
|
200
200
|
end
|
201
201
|
end
|
202
|
-
Aws::Plugins::UserAgent.
|
202
|
+
Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
203
203
|
Aws::Waiters::Waiter.new(options).wait({})
|
204
204
|
end
|
205
205
|
end
|
@@ -223,7 +223,7 @@ module Aws::EC2
|
|
223
223
|
# @return [EmptyStructure]
|
224
224
|
def delete(options = {})
|
225
225
|
options = options.merge(association_id: @id)
|
226
|
-
resp = Aws::Plugins::UserAgent.
|
226
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
227
227
|
@client.disassociate_address(options)
|
228
228
|
end
|
229
229
|
resp.data
|
@@ -93,7 +93,7 @@ module Aws::EC2
|
|
93
93
|
#
|
94
94
|
# @return [self]
|
95
95
|
def load
|
96
|
-
resp = Aws::Plugins::UserAgent.
|
96
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
97
97
|
@client.describe_placement_groups(group_names: [@name])
|
98
98
|
end
|
99
99
|
@data = resp.placement_groups[0]
|
@@ -210,7 +210,7 @@ module Aws::EC2
|
|
210
210
|
:retry
|
211
211
|
end
|
212
212
|
end
|
213
|
-
Aws::Plugins::UserAgent.
|
213
|
+
Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
214
214
|
Aws::Waiters::Waiter.new(options).wait({})
|
215
215
|
end
|
216
216
|
end
|
@@ -231,7 +231,7 @@ module Aws::EC2
|
|
231
231
|
# @return [EmptyStructure]
|
232
232
|
def delete(options = {})
|
233
233
|
options = options.merge(group_name: @name)
|
234
|
-
resp = Aws::Plugins::UserAgent.
|
234
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
235
235
|
@client.delete_placement_group(options)
|
236
236
|
end
|
237
237
|
resp.data
|
@@ -693,7 +693,7 @@ module Aws::EC2
|
|
693
693
|
name: "placement-group-name",
|
694
694
|
values: [@name]
|
695
695
|
}])
|
696
|
-
resp = Aws::Plugins::UserAgent.
|
696
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
697
697
|
@client.describe_instances(options)
|
698
698
|
end
|
699
699
|
resp.each_page do |page|
|
data/lib/aws-sdk-ec2/resource.rb
CHANGED
@@ -69,7 +69,7 @@ module Aws::EC2
|
|
69
69
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
70
70
|
# @return [DhcpOptions]
|
71
71
|
def create_dhcp_options(options = {})
|
72
|
-
resp = Aws::Plugins::UserAgent.
|
72
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
73
73
|
@client.create_dhcp_options(options)
|
74
74
|
end
|
75
75
|
DhcpOptions.new(
|
@@ -621,7 +621,7 @@ module Aws::EC2
|
|
621
621
|
# @return [Instance::Collection]
|
622
622
|
def create_instances(options = {})
|
623
623
|
batch = []
|
624
|
-
resp = Aws::Plugins::UserAgent.
|
624
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
625
625
|
@client.run_instances(options)
|
626
626
|
end
|
627
627
|
resp.data.instances.each do |i|
|
@@ -660,7 +660,7 @@ module Aws::EC2
|
|
660
660
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
661
661
|
# @return [InternetGateway]
|
662
662
|
def create_internet_gateway(options = {})
|
663
|
-
resp = Aws::Plugins::UserAgent.
|
663
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
664
664
|
@client.create_internet_gateway(options)
|
665
665
|
end
|
666
666
|
InternetGateway.new(
|
@@ -712,7 +712,7 @@ module Aws::EC2
|
|
712
712
|
# Default: `pem`
|
713
713
|
# @return [KeyPair]
|
714
714
|
def create_key_pair(options = {})
|
715
|
-
resp = Aws::Plugins::UserAgent.
|
715
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
716
716
|
@client.create_key_pair(options)
|
717
717
|
end
|
718
718
|
KeyPair.new(
|
@@ -805,7 +805,7 @@ module Aws::EC2
|
|
805
805
|
# [1]: https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html#nat-gateway-creating
|
806
806
|
# @return [NatGateway]
|
807
807
|
def create_nat_gateway(options = {})
|
808
|
-
resp = Aws::Plugins::UserAgent.
|
808
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
809
809
|
@client.create_nat_gateway(options)
|
810
810
|
end
|
811
811
|
NatGateway.new(
|
@@ -853,7 +853,7 @@ module Aws::EC2
|
|
853
853
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html
|
854
854
|
# @return [NetworkAcl]
|
855
855
|
def create_network_acl(options = {})
|
856
|
-
resp = Aws::Plugins::UserAgent.
|
856
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
857
857
|
@client.create_network_acl(options)
|
858
858
|
end
|
859
859
|
NetworkAcl.new(
|
@@ -1028,7 +1028,7 @@ module Aws::EC2
|
|
1028
1028
|
# A connection tracking specification for the network interface.
|
1029
1029
|
# @return [NetworkInterface]
|
1030
1030
|
def create_network_interface(options = {})
|
1031
|
-
resp = Aws::Plugins::UserAgent.
|
1031
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
1032
1032
|
@client.create_network_interface(options)
|
1033
1033
|
end
|
1034
1034
|
NetworkInterface.new(
|
@@ -1084,7 +1084,7 @@ module Aws::EC2
|
|
1084
1084
|
# * Rack – No usage restrictions.
|
1085
1085
|
# @return [PlacementGroup]
|
1086
1086
|
def create_placement_group(options = {})
|
1087
|
-
Aws::Plugins::UserAgent.
|
1087
|
+
Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
1088
1088
|
@client.create_placement_group(options)
|
1089
1089
|
end
|
1090
1090
|
PlacementGroup.new(
|
@@ -1131,7 +1131,7 @@ module Aws::EC2
|
|
1131
1131
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html
|
1132
1132
|
# @return [RouteTable]
|
1133
1133
|
def create_route_table(options = {})
|
1134
|
-
resp = Aws::Plugins::UserAgent.
|
1134
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
1135
1135
|
@client.create_route_table(options)
|
1136
1136
|
end
|
1137
1137
|
RouteTable.new(
|
@@ -1186,7 +1186,7 @@ module Aws::EC2
|
|
1186
1186
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
1187
1187
|
# @return [SecurityGroup]
|
1188
1188
|
def create_security_group(options = {})
|
1189
|
-
resp = Aws::Plugins::UserAgent.
|
1189
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
1190
1190
|
@client.create_security_group(options)
|
1191
1191
|
end
|
1192
1192
|
SecurityGroup.new(
|
@@ -1249,7 +1249,7 @@ module Aws::EC2
|
|
1249
1249
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
1250
1250
|
# @return [Snapshot]
|
1251
1251
|
def create_snapshot(options = {})
|
1252
|
-
resp = Aws::Plugins::UserAgent.
|
1252
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
1253
1253
|
@client.create_snapshot(options)
|
1254
1254
|
end
|
1255
1255
|
Snapshot.new(
|
@@ -1341,7 +1341,7 @@ module Aws::EC2
|
|
1341
1341
|
# An IPv6 netmask length for the subnet.
|
1342
1342
|
# @return [Subnet]
|
1343
1343
|
def create_subnet(options = {})
|
1344
|
-
resp = Aws::Plugins::UserAgent.
|
1344
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
1345
1345
|
@client.create_subnet(options)
|
1346
1346
|
end
|
1347
1347
|
Subnet.new(
|
@@ -1380,7 +1380,7 @@ module Aws::EC2
|
|
1380
1380
|
# set the value to an empty string.
|
1381
1381
|
# @return [EmptyStructure]
|
1382
1382
|
def create_tags(options = {})
|
1383
|
-
resp = Aws::Plugins::UserAgent.
|
1383
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
1384
1384
|
@client.create_tags(options)
|
1385
1385
|
end
|
1386
1386
|
resp.data
|
@@ -1423,7 +1423,7 @@ module Aws::EC2
|
|
1423
1423
|
# Constraints: Up to 1000 tags.
|
1424
1424
|
# @return [EmptyStructure]
|
1425
1425
|
def delete_tags(options = {})
|
1426
|
-
resp = Aws::Plugins::UserAgent.
|
1426
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
1427
1427
|
@client.delete_tags(options)
|
1428
1428
|
end
|
1429
1429
|
resp.data
|
@@ -1603,7 +1603,7 @@ module Aws::EC2
|
|
1603
1603
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
|
1604
1604
|
# @return [Volume]
|
1605
1605
|
def create_volume(options = {})
|
1606
|
-
resp = Aws::Plugins::UserAgent.
|
1606
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
1607
1607
|
@client.create_volume(options)
|
1608
1608
|
end
|
1609
1609
|
Volume.new(
|
@@ -1722,7 +1722,7 @@ module Aws::EC2
|
|
1722
1722
|
# The tags to assign to the VPC.
|
1723
1723
|
# @return [Vpc]
|
1724
1724
|
def create_vpc(options = {})
|
1725
|
-
resp = Aws::Plugins::UserAgent.
|
1725
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
1726
1726
|
@client.create_vpc(options)
|
1727
1727
|
end
|
1728
1728
|
Vpc.new(
|
@@ -1777,7 +1777,7 @@ module Aws::EC2
|
|
1777
1777
|
# The tags to assign to the peering connection.
|
1778
1778
|
# @return [VpcPeeringConnection]
|
1779
1779
|
def create_vpc_peering_connection(options = {})
|
1780
|
-
resp = Aws::Plugins::UserAgent.
|
1780
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
1781
1781
|
@client.create_vpc_peering_connection(options)
|
1782
1782
|
end
|
1783
1783
|
VpcPeeringConnection.new(
|
@@ -1804,7 +1804,7 @@ module Aws::EC2
|
|
1804
1804
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
1805
1805
|
# @return [EmptyStructure]
|
1806
1806
|
def disassociate_route_table(options = {})
|
1807
|
-
resp = Aws::Plugins::UserAgent.
|
1807
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
1808
1808
|
@client.disassociate_route_table(options)
|
1809
1809
|
end
|
1810
1810
|
resp.data
|
@@ -1843,7 +1843,7 @@ module Aws::EC2
|
|
1843
1843
|
# The tags to apply to the imported key pair.
|
1844
1844
|
# @return [KeyPairInfo]
|
1845
1845
|
def import_key_pair(options = {})
|
1846
|
-
resp = Aws::Plugins::UserAgent.
|
1846
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
1847
1847
|
@client.import_key_pair(options)
|
1848
1848
|
end
|
1849
1849
|
KeyPairInfo.new(
|
@@ -2047,7 +2047,7 @@ module Aws::EC2
|
|
2047
2047
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTags.html
|
2048
2048
|
# @return [Image]
|
2049
2049
|
def register_image(options = {})
|
2050
|
-
resp = Aws::Plugins::UserAgent.
|
2050
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
2051
2051
|
@client.register_image(options)
|
2052
2052
|
end
|
2053
2053
|
Image.new(
|
@@ -2125,7 +2125,7 @@ module Aws::EC2
|
|
2125
2125
|
name: "domain",
|
2126
2126
|
values: ["standard"]
|
2127
2127
|
}])
|
2128
|
-
resp = Aws::Plugins::UserAgent.
|
2128
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
2129
2129
|
@client.describe_addresses(options)
|
2130
2130
|
end
|
2131
2131
|
resp.data.addresses.each do |a|
|
@@ -2195,7 +2195,7 @@ module Aws::EC2
|
|
2195
2195
|
# @return [DhcpOptions::Collection]
|
2196
2196
|
def dhcp_options_sets(options = {})
|
2197
2197
|
batches = Enumerator.new do |y|
|
2198
|
-
resp = Aws::Plugins::UserAgent.
|
2198
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
2199
2199
|
@client.describe_dhcp_options(options)
|
2200
2200
|
end
|
2201
2201
|
resp.each_page do |page|
|
@@ -2391,7 +2391,7 @@ module Aws::EC2
|
|
2391
2391
|
# @return [Image::Collection]
|
2392
2392
|
def images(options = {})
|
2393
2393
|
batches = Enumerator.new do |y|
|
2394
|
-
resp = Aws::Plugins::UserAgent.
|
2394
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
2395
2395
|
@client.describe_images(options)
|
2396
2396
|
end
|
2397
2397
|
resp.each_page do |page|
|
@@ -2868,7 +2868,7 @@ module Aws::EC2
|
|
2868
2868
|
# @return [Instance::Collection]
|
2869
2869
|
def instances(options = {})
|
2870
2870
|
batches = Enumerator.new do |y|
|
2871
|
-
resp = Aws::Plugins::UserAgent.
|
2871
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
2872
2872
|
@client.describe_instances(options)
|
2873
2873
|
end
|
2874
2874
|
resp.each_page do |page|
|
@@ -2945,7 +2945,7 @@ module Aws::EC2
|
|
2945
2945
|
# @return [InternetGateway::Collection]
|
2946
2946
|
def internet_gateways(options = {})
|
2947
2947
|
batches = Enumerator.new do |y|
|
2948
|
-
resp = Aws::Plugins::UserAgent.
|
2948
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
2949
2949
|
@client.describe_internet_gateways(options)
|
2950
2950
|
end
|
2951
2951
|
resp.each_page do |page|
|
@@ -3024,7 +3024,7 @@ module Aws::EC2
|
|
3024
3024
|
def key_pairs(options = {})
|
3025
3025
|
batches = Enumerator.new do |y|
|
3026
3026
|
batch = []
|
3027
|
-
resp = Aws::Plugins::UserAgent.
|
3027
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
3028
3028
|
@client.describe_key_pairs(options)
|
3029
3029
|
end
|
3030
3030
|
resp.data.key_pairs.each do |k|
|
@@ -3092,7 +3092,7 @@ module Aws::EC2
|
|
3092
3092
|
# @return [NatGateway::Collection]
|
3093
3093
|
def nat_gateways(options = {})
|
3094
3094
|
batches = Enumerator.new do |y|
|
3095
|
-
resp = Aws::Plugins::UserAgent.
|
3095
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
3096
3096
|
@client.describe_nat_gateways(options)
|
3097
3097
|
end
|
3098
3098
|
resp.each_page do |page|
|
@@ -3201,7 +3201,7 @@ module Aws::EC2
|
|
3201
3201
|
# @return [NetworkAcl::Collection]
|
3202
3202
|
def network_acls(options = {})
|
3203
3203
|
batches = Enumerator.new do |y|
|
3204
|
-
resp = Aws::Plugins::UserAgent.
|
3204
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
3205
3205
|
@client.describe_network_acls(options)
|
3206
3206
|
end
|
3207
3207
|
resp.each_page do |page|
|
@@ -3368,7 +3368,7 @@ module Aws::EC2
|
|
3368
3368
|
# @return [NetworkInterface::Collection]
|
3369
3369
|
def network_interfaces(options = {})
|
3370
3370
|
batches = Enumerator.new do |y|
|
3371
|
-
resp = Aws::Plugins::UserAgent.
|
3371
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
3372
3372
|
@client.describe_network_interfaces(options)
|
3373
3373
|
end
|
3374
3374
|
resp.each_page do |page|
|
@@ -3450,7 +3450,7 @@ module Aws::EC2
|
|
3450
3450
|
def placement_groups(options = {})
|
3451
3451
|
batches = Enumerator.new do |y|
|
3452
3452
|
batch = []
|
3453
|
-
resp = Aws::Plugins::UserAgent.
|
3453
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
3454
3454
|
@client.describe_placement_groups(options)
|
3455
3455
|
end
|
3456
3456
|
resp.data.placement_groups.each do |p|
|
@@ -3581,7 +3581,7 @@ module Aws::EC2
|
|
3581
3581
|
# @return [RouteTable::Collection]
|
3582
3582
|
def route_tables(options = {})
|
3583
3583
|
batches = Enumerator.new do |y|
|
3584
|
-
resp = Aws::Plugins::UserAgent.
|
3584
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
3585
3585
|
@client.describe_route_tables(options)
|
3586
3586
|
end
|
3587
3587
|
resp.each_page do |page|
|
@@ -3722,7 +3722,7 @@ module Aws::EC2
|
|
3722
3722
|
# @return [SecurityGroup::Collection]
|
3723
3723
|
def security_groups(options = {})
|
3724
3724
|
batches = Enumerator.new do |y|
|
3725
|
-
resp = Aws::Plugins::UserAgent.
|
3725
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
3726
3726
|
@client.describe_security_groups(options)
|
3727
3727
|
end
|
3728
3728
|
resp.each_page do |page|
|
@@ -3826,7 +3826,7 @@ module Aws::EC2
|
|
3826
3826
|
# @return [Snapshot::Collection]
|
3827
3827
|
def snapshots(options = {})
|
3828
3828
|
batches = Enumerator.new do |y|
|
3829
|
-
resp = Aws::Plugins::UserAgent.
|
3829
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
3830
3830
|
@client.describe_snapshots(options)
|
3831
3831
|
end
|
3832
3832
|
resp.each_page do |page|
|
@@ -3967,7 +3967,7 @@ module Aws::EC2
|
|
3967
3967
|
# @return [Subnet::Collection]
|
3968
3968
|
def subnets(options = {})
|
3969
3969
|
batches = Enumerator.new do |y|
|
3970
|
-
resp = Aws::Plugins::UserAgent.
|
3970
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
3971
3971
|
@client.describe_subnets(options)
|
3972
3972
|
end
|
3973
3973
|
resp.each_page do |page|
|
@@ -4071,7 +4071,7 @@ module Aws::EC2
|
|
4071
4071
|
# @return [Volume::Collection]
|
4072
4072
|
def volumes(options = {})
|
4073
4073
|
batches = Enumerator.new do |y|
|
4074
|
-
resp = Aws::Plugins::UserAgent.
|
4074
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
4075
4075
|
@client.describe_volumes(options)
|
4076
4076
|
end
|
4077
4077
|
resp.each_page do |page|
|
@@ -4165,7 +4165,7 @@ module Aws::EC2
|
|
4165
4165
|
name: "domain",
|
4166
4166
|
values: ["vpc"]
|
4167
4167
|
}])
|
4168
|
-
resp = Aws::Plugins::UserAgent.
|
4168
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
4169
4169
|
@client.describe_addresses(options)
|
4170
4170
|
end
|
4171
4171
|
resp.data.addresses.each do |a|
|
@@ -4254,7 +4254,7 @@ module Aws::EC2
|
|
4254
4254
|
# @return [VpcPeeringConnection::Collection]
|
4255
4255
|
def vpc_peering_connections(options = {})
|
4256
4256
|
batches = Enumerator.new do |y|
|
4257
|
-
resp = Aws::Plugins::UserAgent.
|
4257
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
4258
4258
|
@client.describe_vpc_peering_connections(options)
|
4259
4259
|
end
|
4260
4260
|
resp.each_page do |page|
|
@@ -4346,7 +4346,7 @@ module Aws::EC2
|
|
4346
4346
|
# @return [Vpc::Collection]
|
4347
4347
|
def vpcs(options = {})
|
4348
4348
|
batches = Enumerator.new do |y|
|
4349
|
-
resp = Aws::Plugins::UserAgent.
|
4349
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
4350
4350
|
@client.describe_vpcs(options)
|
4351
4351
|
end
|
4352
4352
|
resp.each_page do |page|
|
data/lib/aws-sdk-ec2/route.rb
CHANGED
@@ -267,7 +267,7 @@ module Aws::EC2
|
|
267
267
|
:retry
|
268
268
|
end
|
269
269
|
end
|
270
|
-
Aws::Plugins::UserAgent.
|
270
|
+
Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
271
271
|
Aws::Waiters::Waiter.new(options).wait({})
|
272
272
|
end
|
273
273
|
end
|
@@ -298,7 +298,7 @@ module Aws::EC2
|
|
298
298
|
route_table_id: @route_table_id,
|
299
299
|
destination_cidr_block: @destination_cidr_block
|
300
300
|
)
|
301
|
-
resp = Aws::Plugins::UserAgent.
|
301
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
302
302
|
@client.delete_route(options)
|
303
303
|
end
|
304
304
|
resp.data
|
@@ -367,7 +367,7 @@ module Aws::EC2
|
|
367
367
|
route_table_id: @route_table_id,
|
368
368
|
destination_cidr_block: @destination_cidr_block
|
369
369
|
)
|
370
|
-
resp = Aws::Plugins::UserAgent.
|
370
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
371
371
|
@client.replace_route(options)
|
372
372
|
end
|
373
373
|
resp.data
|