aws-sdk-ec2 1.459.0 → 1.461.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 +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-ec2/classic_address.rb +5 -5
- data/lib/aws-sdk-ec2/client.rb +575 -483
- data/lib/aws-sdk-ec2/client_api.rb +31 -0
- 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/endpoints.rb +14 -0
- data/lib/aws-sdk-ec2/image.rb +9 -9
- data/lib/aws-sdk-ec2/instance.rb +41 -41
- 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 +7 -8
- data/lib/aws-sdk-ec2/network_acl.rb +10 -10
- data/lib/aws-sdk-ec2/network_interface.rb +13 -13
- data/lib/aws-sdk-ec2/network_interface_association.rb +3 -3
- data/lib/aws-sdk-ec2/placement_group.rb +8 -4
- data/lib/aws-sdk-ec2/plugins/endpoints.rb +2 -0
- data/lib/aws-sdk-ec2/resource.rb +97 -105
- 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 +11 -11
- data/lib/aws-sdk-ec2/snapshot.rb +24 -27
- data/lib/aws-sdk-ec2/subnet.rb +42 -41
- data/lib/aws-sdk-ec2/tag.rb +4 -4
- data/lib/aws-sdk-ec2/types.rb +421 -395
- data/lib/aws-sdk-ec2/volume.rb +17 -21
- data/lib/aws-sdk-ec2/vpc.rb +43 -43
- 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
- data/sig/client.rbs +121 -89
- data/sig/instance.rbs +1 -1
- data/sig/resource.rbs +17 -17
- data/sig/security_group.rbs +2 -2
- data/sig/snapshot.rbs +1 -1
- data/sig/subnet.rbs +2 -2
- data/sig/tag.rbs +1 -1
- data/sig/types.rbs +23 -5
- data/sig/volume.rbs +1 -1
- data/sig/vpc.rbs +5 -5
- metadata +4 -4
data/lib/aws-sdk-ec2/volume.rb
CHANGED
@@ -63,8 +63,8 @@ module Aws::EC2
|
|
63
63
|
data[:encrypted]
|
64
64
|
end
|
65
65
|
|
66
|
-
# The Amazon Resource Name (ARN) of the
|
67
|
-
#
|
66
|
+
# The Amazon Resource Name (ARN) of the KMS key that was used to protect
|
67
|
+
# the volume encryption key for the volume.
|
68
68
|
# @return [String]
|
69
69
|
def kms_key_id
|
70
70
|
data[:kms_key_id]
|
@@ -162,7 +162,7 @@ module Aws::EC2
|
|
162
162
|
#
|
163
163
|
# @return [self]
|
164
164
|
def load
|
165
|
-
resp = Aws::Plugins::UserAgent.
|
165
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
166
166
|
@client.describe_volumes(volume_ids: [@id])
|
167
167
|
end
|
168
168
|
@data = resp.volumes[0]
|
@@ -279,7 +279,7 @@ module Aws::EC2
|
|
279
279
|
:retry
|
280
280
|
end
|
281
281
|
end
|
282
|
-
Aws::Plugins::UserAgent.
|
282
|
+
Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
283
283
|
Aws::Waiters::Waiter.new(options).wait({})
|
284
284
|
end
|
285
285
|
end
|
@@ -306,7 +306,7 @@ module Aws::EC2
|
|
306
306
|
# @return [Types::VolumeAttachment]
|
307
307
|
def attach_to_instance(options = {})
|
308
308
|
options = options.merge(volume_id: @id)
|
309
|
-
resp = Aws::Plugins::UserAgent.
|
309
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
310
310
|
@client.attach_volume(options)
|
311
311
|
end
|
312
312
|
resp.data
|
@@ -319,7 +319,7 @@ module Aws::EC2
|
|
319
319
|
# outpost_arn: "String",
|
320
320
|
# tag_specifications: [
|
321
321
|
# {
|
322
|
-
# resource_type: "capacity-reservation", # accepts capacity-reservation, client-vpn-endpoint, customer-gateway, carrier-gateway, coip-pool, dedicated-host, dhcp-options, egress-only-internet-gateway, elastic-ip, elastic-gpu, export-image-task, export-instance-task, fleet, fpga-image, host-reservation, image, import-image-task, import-snapshot-task, instance, instance-event-window, internet-gateway, ipam, ipam-pool, ipam-scope, ipv4pool-ec2, ipv6pool-ec2, key-pair, launch-template, local-gateway, local-gateway-route-table, local-gateway-virtual-interface, local-gateway-virtual-interface-group, local-gateway-route-table-vpc-association, local-gateway-route-table-virtual-interface-group-association, natgateway, network-acl, network-interface, network-insights-analysis, network-insights-path, network-insights-access-scope, network-insights-access-scope-analysis, placement-group, prefix-list, replace-root-volume-task, reserved-instances, route-table, security-group, security-group-rule, snapshot, spot-fleet-request, spot-instances-request, subnet, subnet-cidr-reservation, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-connect-peer, transit-gateway-multicast-domain, transit-gateway-policy-table, transit-gateway-route-table, transit-gateway-route-table-announcement, volume, vpc, vpc-endpoint, vpc-endpoint-connection, vpc-endpoint-service, vpc-endpoint-service-permission, vpc-peering-connection, vpn-connection, vpn-gateway, vpc-flow-log, capacity-reservation-fleet, traffic-mirror-filter-rule, vpc-endpoint-connection-device-type, verified-access-instance, verified-access-group, verified-access-endpoint, verified-access-policy, verified-access-trust-provider, vpn-connection-device-type, vpc-block-public-access-exclusion, ipam-resource-discovery, ipam-resource-discovery-association, instance-connect-endpoint
|
322
|
+
# resource_type: "capacity-reservation", # accepts capacity-reservation, client-vpn-endpoint, customer-gateway, carrier-gateway, coip-pool, dedicated-host, dhcp-options, egress-only-internet-gateway, elastic-ip, elastic-gpu, export-image-task, export-instance-task, fleet, fpga-image, host-reservation, image, import-image-task, import-snapshot-task, instance, instance-event-window, internet-gateway, ipam, ipam-pool, ipam-scope, ipv4pool-ec2, ipv6pool-ec2, key-pair, launch-template, local-gateway, local-gateway-route-table, local-gateway-virtual-interface, local-gateway-virtual-interface-group, local-gateway-route-table-vpc-association, local-gateway-route-table-virtual-interface-group-association, natgateway, network-acl, network-interface, network-insights-analysis, network-insights-path, network-insights-access-scope, network-insights-access-scope-analysis, placement-group, prefix-list, replace-root-volume-task, reserved-instances, route-table, security-group, security-group-rule, snapshot, spot-fleet-request, spot-instances-request, subnet, subnet-cidr-reservation, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-connect-peer, transit-gateway-multicast-domain, transit-gateway-policy-table, transit-gateway-route-table, transit-gateway-route-table-announcement, volume, vpc, vpc-endpoint, vpc-endpoint-connection, vpc-endpoint-service, vpc-endpoint-service-permission, vpc-peering-connection, vpn-connection, vpn-gateway, vpc-flow-log, capacity-reservation-fleet, traffic-mirror-filter-rule, vpc-endpoint-connection-device-type, verified-access-instance, verified-access-group, verified-access-endpoint, verified-access-policy, verified-access-trust-provider, vpn-connection-device-type, vpc-block-public-access-exclusion, vpc-encryption-control, ipam-resource-discovery, ipam-resource-discovery-association, instance-connect-endpoint
|
323
323
|
# tags: [
|
324
324
|
# {
|
325
325
|
# key: "String",
|
@@ -364,7 +364,7 @@ module Aws::EC2
|
|
364
364
|
# @return [Snapshot]
|
365
365
|
def create_snapshot(options = {})
|
366
366
|
options = options.merge(volume_id: @id)
|
367
|
-
resp = Aws::Plugins::UserAgent.
|
367
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
368
368
|
@client.create_snapshot(options)
|
369
369
|
end
|
370
370
|
Snapshot.new(
|
@@ -399,7 +399,7 @@ module Aws::EC2
|
|
399
399
|
def create_tags(options = {})
|
400
400
|
batch = []
|
401
401
|
options = Aws::Util.deep_merge(options, resources: [@id])
|
402
|
-
resp = Aws::Plugins::UserAgent.
|
402
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
403
403
|
@client.create_tags(options)
|
404
404
|
end
|
405
405
|
options[:tags].each do |t|
|
@@ -446,7 +446,7 @@ module Aws::EC2
|
|
446
446
|
def delete_tags(options = {})
|
447
447
|
batch = []
|
448
448
|
options = Aws::Util.deep_merge(options, resources: [@id])
|
449
|
-
resp = Aws::Plugins::UserAgent.
|
449
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
450
450
|
@client.delete_tags(options)
|
451
451
|
end
|
452
452
|
options[:tags].each do |t|
|
@@ -474,7 +474,7 @@ module Aws::EC2
|
|
474
474
|
# @return [EmptyStructure]
|
475
475
|
def delete(options = {})
|
476
476
|
options = options.merge(volume_id: @id)
|
477
|
-
resp = Aws::Plugins::UserAgent.
|
477
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
478
478
|
@client.delete_volume(options)
|
479
479
|
end
|
480
480
|
resp.data
|
@@ -497,7 +497,7 @@ module Aws::EC2
|
|
497
497
|
# @return [Types::DescribeVolumeAttributeResult]
|
498
498
|
def describe_attribute(options = {})
|
499
499
|
options = options.merge(volume_id: @id)
|
500
|
-
resp = Aws::Plugins::UserAgent.
|
500
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
501
501
|
@client.describe_volume_attribute(options)
|
502
502
|
end
|
503
503
|
resp.data
|
@@ -554,11 +554,7 @@ module Aws::EC2
|
|
554
554
|
# @option options [Integer] :max_results
|
555
555
|
# The maximum number of items to return for this request. To get the
|
556
556
|
# next page of items, make another request with the token returned in
|
557
|
-
# the output.
|
558
|
-
# larger than 1,000, only 1,000 results are returned. If this parameter
|
559
|
-
# is not used, then all items are returned. You cannot specify this
|
560
|
-
# parameter and the volume IDs parameter in the same request. For more
|
561
|
-
# information, see [Pagination][1].
|
557
|
+
# the output. For more information, see [Pagination][1].
|
562
558
|
#
|
563
559
|
#
|
564
560
|
#
|
@@ -574,7 +570,7 @@ module Aws::EC2
|
|
574
570
|
# @return [Types::DescribeVolumeStatusResult]
|
575
571
|
def describe_status(options = {})
|
576
572
|
options = Aws::Util.deep_merge(options, volume_ids: [@id])
|
577
|
-
resp = Aws::Plugins::UserAgent.
|
573
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
578
574
|
@client.describe_volume_status(options)
|
579
575
|
end
|
580
576
|
resp.data
|
@@ -611,7 +607,7 @@ module Aws::EC2
|
|
611
607
|
# @return [Types::VolumeAttachment]
|
612
608
|
def detach_from_instance(options = {})
|
613
609
|
options = options.merge(volume_id: @id)
|
614
|
-
resp = Aws::Plugins::UserAgent.
|
610
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
615
611
|
@client.detach_volume(options)
|
616
612
|
end
|
617
613
|
resp.data
|
@@ -631,7 +627,7 @@ module Aws::EC2
|
|
631
627
|
# @return [EmptyStructure]
|
632
628
|
def enable_io(options = {})
|
633
629
|
options = options.merge(volume_id: @id)
|
634
|
-
resp = Aws::Plugins::UserAgent.
|
630
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
635
631
|
@client.enable_volume_io(options)
|
636
632
|
end
|
637
633
|
resp.data
|
@@ -657,7 +653,7 @@ module Aws::EC2
|
|
657
653
|
# @return [EmptyStructure]
|
658
654
|
def modify_attribute(options = {})
|
659
655
|
options = options.merge(volume_id: @id)
|
660
|
-
resp = Aws::Plugins::UserAgent.
|
656
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
661
657
|
@client.modify_volume_attribute(options)
|
662
658
|
end
|
663
659
|
resp.data
|
@@ -746,7 +742,7 @@ module Aws::EC2
|
|
746
742
|
name: "volume-id",
|
747
743
|
values: [@id]
|
748
744
|
}])
|
749
|
-
resp = Aws::Plugins::UserAgent.
|
745
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
750
746
|
@client.describe_snapshots(options)
|
751
747
|
end
|
752
748
|
resp.each_page do |page|
|
data/lib/aws-sdk-ec2/vpc.rb
CHANGED
@@ -103,7 +103,7 @@ module Aws::EC2
|
|
103
103
|
#
|
104
104
|
# @return [self]
|
105
105
|
def load
|
106
|
-
resp = Aws::Plugins::UserAgent.
|
106
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
107
107
|
@client.describe_vpcs(vpc_ids: [@id])
|
108
108
|
end
|
109
109
|
@data = resp.vpcs[0]
|
@@ -150,7 +150,7 @@ module Aws::EC2
|
|
150
150
|
options, params = separate_params_and_options(options)
|
151
151
|
waiter = Waiters::VpcAvailable.new(options)
|
152
152
|
yield_waiter_and_warn(waiter, &block) if block_given?
|
153
|
-
Aws::Plugins::UserAgent.
|
153
|
+
Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
154
154
|
waiter.wait(params.merge(vpc_ids: [@id]))
|
155
155
|
end
|
156
156
|
Vpc.new({
|
@@ -169,7 +169,7 @@ module Aws::EC2
|
|
169
169
|
options, params = separate_params_and_options(options)
|
170
170
|
waiter = Waiters::VpcExists.new(options)
|
171
171
|
yield_waiter_and_warn(waiter, &block) if block_given?
|
172
|
-
Aws::Plugins::UserAgent.
|
172
|
+
Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
173
173
|
waiter.wait(params.merge(vpc_ids: [@id]))
|
174
174
|
end
|
175
175
|
Vpc.new({
|
@@ -272,7 +272,7 @@ module Aws::EC2
|
|
272
272
|
:retry
|
273
273
|
end
|
274
274
|
end
|
275
|
-
Aws::Plugins::UserAgent.
|
275
|
+
Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
276
276
|
Aws::Waiters::Waiter.new(options).wait({})
|
277
277
|
end
|
278
278
|
end
|
@@ -297,7 +297,7 @@ module Aws::EC2
|
|
297
297
|
# @return [EmptyStructure]
|
298
298
|
def associate_dhcp_options(options = {})
|
299
299
|
options = options.merge(vpc_id: @id)
|
300
|
-
resp = Aws::Plugins::UserAgent.
|
300
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
301
301
|
@client.associate_dhcp_options(options)
|
302
302
|
end
|
303
303
|
resp.data
|
@@ -324,7 +324,7 @@ module Aws::EC2
|
|
324
324
|
# @return [Types::AttachClassicLinkVpcResult]
|
325
325
|
def attach_classic_link_instance(options = {})
|
326
326
|
options = options.merge(vpc_id: @id)
|
327
|
-
resp = Aws::Plugins::UserAgent.
|
327
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
328
328
|
@client.attach_classic_link_vpc(options)
|
329
329
|
end
|
330
330
|
resp.data
|
@@ -347,7 +347,7 @@ module Aws::EC2
|
|
347
347
|
# @return [EmptyStructure]
|
348
348
|
def attach_internet_gateway(options = {})
|
349
349
|
options = options.merge(vpc_id: @id)
|
350
|
-
resp = Aws::Plugins::UserAgent.
|
350
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
351
351
|
@client.attach_internet_gateway(options)
|
352
352
|
end
|
353
353
|
resp.data
|
@@ -359,7 +359,7 @@ module Aws::EC2
|
|
359
359
|
# dry_run: false,
|
360
360
|
# tag_specifications: [
|
361
361
|
# {
|
362
|
-
# resource_type: "capacity-reservation", # accepts capacity-reservation, client-vpn-endpoint, customer-gateway, carrier-gateway, coip-pool, dedicated-host, dhcp-options, egress-only-internet-gateway, elastic-ip, elastic-gpu, export-image-task, export-instance-task, fleet, fpga-image, host-reservation, image, import-image-task, import-snapshot-task, instance, instance-event-window, internet-gateway, ipam, ipam-pool, ipam-scope, ipv4pool-ec2, ipv6pool-ec2, key-pair, launch-template, local-gateway, local-gateway-route-table, local-gateway-virtual-interface, local-gateway-virtual-interface-group, local-gateway-route-table-vpc-association, local-gateway-route-table-virtual-interface-group-association, natgateway, network-acl, network-interface, network-insights-analysis, network-insights-path, network-insights-access-scope, network-insights-access-scope-analysis, placement-group, prefix-list, replace-root-volume-task, reserved-instances, route-table, security-group, security-group-rule, snapshot, spot-fleet-request, spot-instances-request, subnet, subnet-cidr-reservation, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-connect-peer, transit-gateway-multicast-domain, transit-gateway-policy-table, transit-gateway-route-table, transit-gateway-route-table-announcement, volume, vpc, vpc-endpoint, vpc-endpoint-connection, vpc-endpoint-service, vpc-endpoint-service-permission, vpc-peering-connection, vpn-connection, vpn-gateway, vpc-flow-log, capacity-reservation-fleet, traffic-mirror-filter-rule, vpc-endpoint-connection-device-type, verified-access-instance, verified-access-group, verified-access-endpoint, verified-access-policy, verified-access-trust-provider, vpn-connection-device-type, vpc-block-public-access-exclusion, ipam-resource-discovery, ipam-resource-discovery-association, instance-connect-endpoint
|
362
|
+
# resource_type: "capacity-reservation", # accepts capacity-reservation, client-vpn-endpoint, customer-gateway, carrier-gateway, coip-pool, dedicated-host, dhcp-options, egress-only-internet-gateway, elastic-ip, elastic-gpu, export-image-task, export-instance-task, fleet, fpga-image, host-reservation, image, import-image-task, import-snapshot-task, instance, instance-event-window, internet-gateway, ipam, ipam-pool, ipam-scope, ipv4pool-ec2, ipv6pool-ec2, key-pair, launch-template, local-gateway, local-gateway-route-table, local-gateway-virtual-interface, local-gateway-virtual-interface-group, local-gateway-route-table-vpc-association, local-gateway-route-table-virtual-interface-group-association, natgateway, network-acl, network-interface, network-insights-analysis, network-insights-path, network-insights-access-scope, network-insights-access-scope-analysis, placement-group, prefix-list, replace-root-volume-task, reserved-instances, route-table, security-group, security-group-rule, snapshot, spot-fleet-request, spot-instances-request, subnet, subnet-cidr-reservation, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-connect-peer, transit-gateway-multicast-domain, transit-gateway-policy-table, transit-gateway-route-table, transit-gateway-route-table-announcement, volume, vpc, vpc-endpoint, vpc-endpoint-connection, vpc-endpoint-service, vpc-endpoint-service-permission, vpc-peering-connection, vpn-connection, vpn-gateway, vpc-flow-log, capacity-reservation-fleet, traffic-mirror-filter-rule, vpc-endpoint-connection-device-type, verified-access-instance, verified-access-group, verified-access-endpoint, verified-access-policy, verified-access-trust-provider, vpn-connection-device-type, vpc-block-public-access-exclusion, vpc-encryption-control, ipam-resource-discovery, ipam-resource-discovery-association, instance-connect-endpoint
|
363
363
|
# tags: [
|
364
364
|
# {
|
365
365
|
# key: "String",
|
@@ -385,11 +385,11 @@ module Aws::EC2
|
|
385
385
|
#
|
386
386
|
#
|
387
387
|
#
|
388
|
-
# [1]: https://docs.aws.amazon.com/
|
388
|
+
# [1]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
|
389
389
|
# @return [NetworkAcl]
|
390
390
|
def create_network_acl(options = {})
|
391
391
|
options = options.merge(vpc_id: @id)
|
392
|
-
resp = Aws::Plugins::UserAgent.
|
392
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
393
393
|
@client.create_network_acl(options)
|
394
394
|
end
|
395
395
|
NetworkAcl.new(
|
@@ -405,7 +405,7 @@ module Aws::EC2
|
|
405
405
|
# dry_run: false,
|
406
406
|
# tag_specifications: [
|
407
407
|
# {
|
408
|
-
# resource_type: "capacity-reservation", # accepts capacity-reservation, client-vpn-endpoint, customer-gateway, carrier-gateway, coip-pool, dedicated-host, dhcp-options, egress-only-internet-gateway, elastic-ip, elastic-gpu, export-image-task, export-instance-task, fleet, fpga-image, host-reservation, image, import-image-task, import-snapshot-task, instance, instance-event-window, internet-gateway, ipam, ipam-pool, ipam-scope, ipv4pool-ec2, ipv6pool-ec2, key-pair, launch-template, local-gateway, local-gateway-route-table, local-gateway-virtual-interface, local-gateway-virtual-interface-group, local-gateway-route-table-vpc-association, local-gateway-route-table-virtual-interface-group-association, natgateway, network-acl, network-interface, network-insights-analysis, network-insights-path, network-insights-access-scope, network-insights-access-scope-analysis, placement-group, prefix-list, replace-root-volume-task, reserved-instances, route-table, security-group, security-group-rule, snapshot, spot-fleet-request, spot-instances-request, subnet, subnet-cidr-reservation, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-connect-peer, transit-gateway-multicast-domain, transit-gateway-policy-table, transit-gateway-route-table, transit-gateway-route-table-announcement, volume, vpc, vpc-endpoint, vpc-endpoint-connection, vpc-endpoint-service, vpc-endpoint-service-permission, vpc-peering-connection, vpn-connection, vpn-gateway, vpc-flow-log, capacity-reservation-fleet, traffic-mirror-filter-rule, vpc-endpoint-connection-device-type, verified-access-instance, verified-access-group, verified-access-endpoint, verified-access-policy, verified-access-trust-provider, vpn-connection-device-type, vpc-block-public-access-exclusion, ipam-resource-discovery, ipam-resource-discovery-association, instance-connect-endpoint
|
408
|
+
# resource_type: "capacity-reservation", # accepts capacity-reservation, client-vpn-endpoint, customer-gateway, carrier-gateway, coip-pool, dedicated-host, dhcp-options, egress-only-internet-gateway, elastic-ip, elastic-gpu, export-image-task, export-instance-task, fleet, fpga-image, host-reservation, image, import-image-task, import-snapshot-task, instance, instance-event-window, internet-gateway, ipam, ipam-pool, ipam-scope, ipv4pool-ec2, ipv6pool-ec2, key-pair, launch-template, local-gateway, local-gateway-route-table, local-gateway-virtual-interface, local-gateway-virtual-interface-group, local-gateway-route-table-vpc-association, local-gateway-route-table-virtual-interface-group-association, natgateway, network-acl, network-interface, network-insights-analysis, network-insights-path, network-insights-access-scope, network-insights-access-scope-analysis, placement-group, prefix-list, replace-root-volume-task, reserved-instances, route-table, security-group, security-group-rule, snapshot, spot-fleet-request, spot-instances-request, subnet, subnet-cidr-reservation, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-connect-peer, transit-gateway-multicast-domain, transit-gateway-policy-table, transit-gateway-route-table, transit-gateway-route-table-announcement, volume, vpc, vpc-endpoint, vpc-endpoint-connection, vpc-endpoint-service, vpc-endpoint-service-permission, vpc-peering-connection, vpn-connection, vpn-gateway, vpc-flow-log, capacity-reservation-fleet, traffic-mirror-filter-rule, vpc-endpoint-connection-device-type, verified-access-instance, verified-access-group, verified-access-endpoint, verified-access-policy, verified-access-trust-provider, vpn-connection-device-type, vpc-block-public-access-exclusion, vpc-encryption-control, ipam-resource-discovery, ipam-resource-discovery-association, instance-connect-endpoint
|
409
409
|
# tags: [
|
410
410
|
# {
|
411
411
|
# key: "String",
|
@@ -431,11 +431,11 @@ module Aws::EC2
|
|
431
431
|
#
|
432
432
|
#
|
433
433
|
#
|
434
|
-
# [1]: https://docs.aws.amazon.com/
|
434
|
+
# [1]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
|
435
435
|
# @return [RouteTable]
|
436
436
|
def create_route_table(options = {})
|
437
437
|
options = options.merge(vpc_id: @id)
|
438
|
-
resp = Aws::Plugins::UserAgent.
|
438
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
439
439
|
@client.create_route_table(options)
|
440
440
|
end
|
441
441
|
RouteTable.new(
|
@@ -452,7 +452,7 @@ module Aws::EC2
|
|
452
452
|
# group_name: "String", # required
|
453
453
|
# tag_specifications: [
|
454
454
|
# {
|
455
|
-
# resource_type: "capacity-reservation", # accepts capacity-reservation, client-vpn-endpoint, customer-gateway, carrier-gateway, coip-pool, dedicated-host, dhcp-options, egress-only-internet-gateway, elastic-ip, elastic-gpu, export-image-task, export-instance-task, fleet, fpga-image, host-reservation, image, import-image-task, import-snapshot-task, instance, instance-event-window, internet-gateway, ipam, ipam-pool, ipam-scope, ipv4pool-ec2, ipv6pool-ec2, key-pair, launch-template, local-gateway, local-gateway-route-table, local-gateway-virtual-interface, local-gateway-virtual-interface-group, local-gateway-route-table-vpc-association, local-gateway-route-table-virtual-interface-group-association, natgateway, network-acl, network-interface, network-insights-analysis, network-insights-path, network-insights-access-scope, network-insights-access-scope-analysis, placement-group, prefix-list, replace-root-volume-task, reserved-instances, route-table, security-group, security-group-rule, snapshot, spot-fleet-request, spot-instances-request, subnet, subnet-cidr-reservation, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-connect-peer, transit-gateway-multicast-domain, transit-gateway-policy-table, transit-gateway-route-table, transit-gateway-route-table-announcement, volume, vpc, vpc-endpoint, vpc-endpoint-connection, vpc-endpoint-service, vpc-endpoint-service-permission, vpc-peering-connection, vpn-connection, vpn-gateway, vpc-flow-log, capacity-reservation-fleet, traffic-mirror-filter-rule, vpc-endpoint-connection-device-type, verified-access-instance, verified-access-group, verified-access-endpoint, verified-access-policy, verified-access-trust-provider, vpn-connection-device-type, vpc-block-public-access-exclusion, ipam-resource-discovery, ipam-resource-discovery-association, instance-connect-endpoint
|
455
|
+
# resource_type: "capacity-reservation", # accepts capacity-reservation, client-vpn-endpoint, customer-gateway, carrier-gateway, coip-pool, dedicated-host, dhcp-options, egress-only-internet-gateway, elastic-ip, elastic-gpu, export-image-task, export-instance-task, fleet, fpga-image, host-reservation, image, import-image-task, import-snapshot-task, instance, instance-event-window, internet-gateway, ipam, ipam-pool, ipam-scope, ipv4pool-ec2, ipv6pool-ec2, key-pair, launch-template, local-gateway, local-gateway-route-table, local-gateway-virtual-interface, local-gateway-virtual-interface-group, local-gateway-route-table-vpc-association, local-gateway-route-table-virtual-interface-group-association, natgateway, network-acl, network-interface, network-insights-analysis, network-insights-path, network-insights-access-scope, network-insights-access-scope-analysis, placement-group, prefix-list, replace-root-volume-task, reserved-instances, route-table, security-group, security-group-rule, snapshot, spot-fleet-request, spot-instances-request, subnet, subnet-cidr-reservation, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-connect-peer, transit-gateway-multicast-domain, transit-gateway-policy-table, transit-gateway-route-table, transit-gateway-route-table-announcement, volume, vpc, vpc-endpoint, vpc-endpoint-connection, vpc-endpoint-service, vpc-endpoint-service-permission, vpc-peering-connection, vpn-connection, vpn-gateway, vpc-flow-log, capacity-reservation-fleet, traffic-mirror-filter-rule, vpc-endpoint-connection-device-type, verified-access-instance, verified-access-group, verified-access-endpoint, verified-access-policy, verified-access-trust-provider, vpn-connection-device-type, vpc-block-public-access-exclusion, vpc-encryption-control, ipam-resource-discovery, ipam-resource-discovery-association, instance-connect-endpoint
|
456
456
|
# tags: [
|
457
457
|
# {
|
458
458
|
# key: "String",
|
@@ -488,7 +488,7 @@ module Aws::EC2
|
|
488
488
|
# @return [SecurityGroup]
|
489
489
|
def create_security_group(options = {})
|
490
490
|
options = options.merge(vpc_id: @id)
|
491
|
-
resp = Aws::Plugins::UserAgent.
|
491
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
492
492
|
@client.create_security_group(options)
|
493
493
|
end
|
494
494
|
SecurityGroup.new(
|
@@ -502,7 +502,7 @@ module Aws::EC2
|
|
502
502
|
# subnet = vpc.create_subnet({
|
503
503
|
# tag_specifications: [
|
504
504
|
# {
|
505
|
-
# resource_type: "capacity-reservation", # accepts capacity-reservation, client-vpn-endpoint, customer-gateway, carrier-gateway, coip-pool, dedicated-host, dhcp-options, egress-only-internet-gateway, elastic-ip, elastic-gpu, export-image-task, export-instance-task, fleet, fpga-image, host-reservation, image, import-image-task, import-snapshot-task, instance, instance-event-window, internet-gateway, ipam, ipam-pool, ipam-scope, ipv4pool-ec2, ipv6pool-ec2, key-pair, launch-template, local-gateway, local-gateway-route-table, local-gateway-virtual-interface, local-gateway-virtual-interface-group, local-gateway-route-table-vpc-association, local-gateway-route-table-virtual-interface-group-association, natgateway, network-acl, network-interface, network-insights-analysis, network-insights-path, network-insights-access-scope, network-insights-access-scope-analysis, placement-group, prefix-list, replace-root-volume-task, reserved-instances, route-table, security-group, security-group-rule, snapshot, spot-fleet-request, spot-instances-request, subnet, subnet-cidr-reservation, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-connect-peer, transit-gateway-multicast-domain, transit-gateway-policy-table, transit-gateway-route-table, transit-gateway-route-table-announcement, volume, vpc, vpc-endpoint, vpc-endpoint-connection, vpc-endpoint-service, vpc-endpoint-service-permission, vpc-peering-connection, vpn-connection, vpn-gateway, vpc-flow-log, capacity-reservation-fleet, traffic-mirror-filter-rule, vpc-endpoint-connection-device-type, verified-access-instance, verified-access-group, verified-access-endpoint, verified-access-policy, verified-access-trust-provider, vpn-connection-device-type, vpc-block-public-access-exclusion, ipam-resource-discovery, ipam-resource-discovery-association, instance-connect-endpoint
|
505
|
+
# resource_type: "capacity-reservation", # accepts capacity-reservation, client-vpn-endpoint, customer-gateway, carrier-gateway, coip-pool, dedicated-host, dhcp-options, egress-only-internet-gateway, elastic-ip, elastic-gpu, export-image-task, export-instance-task, fleet, fpga-image, host-reservation, image, import-image-task, import-snapshot-task, instance, instance-event-window, internet-gateway, ipam, ipam-pool, ipam-scope, ipv4pool-ec2, ipv6pool-ec2, key-pair, launch-template, local-gateway, local-gateway-route-table, local-gateway-virtual-interface, local-gateway-virtual-interface-group, local-gateway-route-table-vpc-association, local-gateway-route-table-virtual-interface-group-association, natgateway, network-acl, network-interface, network-insights-analysis, network-insights-path, network-insights-access-scope, network-insights-access-scope-analysis, placement-group, prefix-list, replace-root-volume-task, reserved-instances, route-table, security-group, security-group-rule, snapshot, spot-fleet-request, spot-instances-request, subnet, subnet-cidr-reservation, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-connect-peer, transit-gateway-multicast-domain, transit-gateway-policy-table, transit-gateway-route-table, transit-gateway-route-table-announcement, volume, vpc, vpc-endpoint, vpc-endpoint-connection, vpc-endpoint-service, vpc-endpoint-service-permission, vpc-peering-connection, vpn-connection, vpn-gateway, vpc-flow-log, capacity-reservation-fleet, traffic-mirror-filter-rule, vpc-endpoint-connection-device-type, verified-access-instance, verified-access-group, verified-access-endpoint, verified-access-policy, verified-access-trust-provider, vpn-connection-device-type, vpc-block-public-access-exclusion, vpc-encryption-control, ipam-resource-discovery, ipam-resource-discovery-association, instance-connect-endpoint
|
506
506
|
# tags: [
|
507
507
|
# {
|
508
508
|
# key: "String",
|
@@ -535,14 +535,14 @@ module Aws::EC2
|
|
535
535
|
#
|
536
536
|
# To create a subnet in a Local Zone, set this value to the Local Zone
|
537
537
|
# ID, for example `us-west-2-lax-1a`. For information about the Regions
|
538
|
-
# that support Local Zones, see [Local Zones
|
538
|
+
# that support Local Zones, see [Available Local Zones][1].
|
539
539
|
#
|
540
540
|
# To create a subnet in an Outpost, set this value to the Availability
|
541
541
|
# Zone for the Outpost and specify the Outpost ARN.
|
542
542
|
#
|
543
543
|
#
|
544
544
|
#
|
545
|
-
# [1]:
|
545
|
+
# [1]: https://docs.aws.amazon.com/local-zones/latest/ug/available-local-zones.html
|
546
546
|
# @option options [String] :availability_zone_id
|
547
547
|
# The AZ ID or the Local Zone ID of the subnet.
|
548
548
|
# @option options [String] :cidr_block
|
@@ -577,7 +577,7 @@ module Aws::EC2
|
|
577
577
|
# @return [Subnet]
|
578
578
|
def create_subnet(options = {})
|
579
579
|
options = options.merge(vpc_id: @id)
|
580
|
-
resp = Aws::Plugins::UserAgent.
|
580
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
581
581
|
@client.create_subnet(options)
|
582
582
|
end
|
583
583
|
Subnet.new(
|
@@ -612,7 +612,7 @@ module Aws::EC2
|
|
612
612
|
def create_tags(options = {})
|
613
613
|
batch = []
|
614
614
|
options = Aws::Util.deep_merge(options, resources: [@id])
|
615
|
-
resp = Aws::Plugins::UserAgent.
|
615
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
616
616
|
@client.create_tags(options)
|
617
617
|
end
|
618
618
|
options[:tags].each do |t|
|
@@ -659,7 +659,7 @@ module Aws::EC2
|
|
659
659
|
def delete_tags(options = {})
|
660
660
|
batch = []
|
661
661
|
options = Aws::Util.deep_merge(options, resources: [@id])
|
662
|
-
resp = Aws::Plugins::UserAgent.
|
662
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
663
663
|
@client.delete_tags(options)
|
664
664
|
end
|
665
665
|
options[:tags].each do |t|
|
@@ -687,7 +687,7 @@ module Aws::EC2
|
|
687
687
|
# @return [EmptyStructure]
|
688
688
|
def delete(options = {})
|
689
689
|
options = options.merge(vpc_id: @id)
|
690
|
-
resp = Aws::Plugins::UserAgent.
|
690
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
691
691
|
@client.delete_vpc(options)
|
692
692
|
end
|
693
693
|
resp.data
|
@@ -710,7 +710,7 @@ module Aws::EC2
|
|
710
710
|
# @return [Types::DescribeVpcAttributeResult]
|
711
711
|
def describe_attribute(options = {})
|
712
712
|
options = options.merge(vpc_id: @id)
|
713
|
-
resp = Aws::Plugins::UserAgent.
|
713
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
714
714
|
@client.describe_vpc_attribute(options)
|
715
715
|
end
|
716
716
|
resp.data
|
@@ -733,7 +733,7 @@ module Aws::EC2
|
|
733
733
|
# @return [Types::DetachClassicLinkVpcResult]
|
734
734
|
def detach_classic_link_instance(options = {})
|
735
735
|
options = options.merge(vpc_id: @id)
|
736
|
-
resp = Aws::Plugins::UserAgent.
|
736
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
737
737
|
@client.detach_classic_link_vpc(options)
|
738
738
|
end
|
739
739
|
resp.data
|
@@ -756,7 +756,7 @@ module Aws::EC2
|
|
756
756
|
# @return [EmptyStructure]
|
757
757
|
def detach_internet_gateway(options = {})
|
758
758
|
options = options.merge(vpc_id: @id)
|
759
|
-
resp = Aws::Plugins::UserAgent.
|
759
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
760
760
|
@client.detach_internet_gateway(options)
|
761
761
|
end
|
762
762
|
resp.data
|
@@ -776,7 +776,7 @@ module Aws::EC2
|
|
776
776
|
# @return [Types::DisableVpcClassicLinkResult]
|
777
777
|
def disable_classic_link(options = {})
|
778
778
|
options = options.merge(vpc_id: @id)
|
779
|
-
resp = Aws::Plugins::UserAgent.
|
779
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
780
780
|
@client.disable_vpc_classic_link(options)
|
781
781
|
end
|
782
782
|
resp.data
|
@@ -796,7 +796,7 @@ module Aws::EC2
|
|
796
796
|
# @return [Types::EnableVpcClassicLinkResult]
|
797
797
|
def enable_classic_link(options = {})
|
798
798
|
options = options.merge(vpc_id: @id)
|
799
|
-
resp = Aws::Plugins::UserAgent.
|
799
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
800
800
|
@client.enable_vpc_classic_link(options)
|
801
801
|
end
|
802
802
|
resp.data
|
@@ -840,7 +840,7 @@ module Aws::EC2
|
|
840
840
|
# @return [EmptyStructure]
|
841
841
|
def modify_attribute(options = {})
|
842
842
|
options = options.merge(vpc_id: @id)
|
843
|
-
resp = Aws::Plugins::UserAgent.
|
843
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
844
844
|
@client.modify_vpc_attribute(options)
|
845
845
|
end
|
846
846
|
resp.data
|
@@ -855,7 +855,7 @@ module Aws::EC2
|
|
855
855
|
# peer_region: "String",
|
856
856
|
# tag_specifications: [
|
857
857
|
# {
|
858
|
-
# resource_type: "capacity-reservation", # accepts capacity-reservation, client-vpn-endpoint, customer-gateway, carrier-gateway, coip-pool, dedicated-host, dhcp-options, egress-only-internet-gateway, elastic-ip, elastic-gpu, export-image-task, export-instance-task, fleet, fpga-image, host-reservation, image, import-image-task, import-snapshot-task, instance, instance-event-window, internet-gateway, ipam, ipam-pool, ipam-scope, ipv4pool-ec2, ipv6pool-ec2, key-pair, launch-template, local-gateway, local-gateway-route-table, local-gateway-virtual-interface, local-gateway-virtual-interface-group, local-gateway-route-table-vpc-association, local-gateway-route-table-virtual-interface-group-association, natgateway, network-acl, network-interface, network-insights-analysis, network-insights-path, network-insights-access-scope, network-insights-access-scope-analysis, placement-group, prefix-list, replace-root-volume-task, reserved-instances, route-table, security-group, security-group-rule, snapshot, spot-fleet-request, spot-instances-request, subnet, subnet-cidr-reservation, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-connect-peer, transit-gateway-multicast-domain, transit-gateway-policy-table, transit-gateway-route-table, transit-gateway-route-table-announcement, volume, vpc, vpc-endpoint, vpc-endpoint-connection, vpc-endpoint-service, vpc-endpoint-service-permission, vpc-peering-connection, vpn-connection, vpn-gateway, vpc-flow-log, capacity-reservation-fleet, traffic-mirror-filter-rule, vpc-endpoint-connection-device-type, verified-access-instance, verified-access-group, verified-access-endpoint, verified-access-policy, verified-access-trust-provider, vpn-connection-device-type, vpc-block-public-access-exclusion, ipam-resource-discovery, ipam-resource-discovery-association, instance-connect-endpoint
|
858
|
+
# resource_type: "capacity-reservation", # accepts capacity-reservation, client-vpn-endpoint, customer-gateway, carrier-gateway, coip-pool, dedicated-host, dhcp-options, egress-only-internet-gateway, elastic-ip, elastic-gpu, export-image-task, export-instance-task, fleet, fpga-image, host-reservation, image, import-image-task, import-snapshot-task, instance, instance-event-window, internet-gateway, ipam, ipam-pool, ipam-scope, ipv4pool-ec2, ipv6pool-ec2, key-pair, launch-template, local-gateway, local-gateway-route-table, local-gateway-virtual-interface, local-gateway-virtual-interface-group, local-gateway-route-table-vpc-association, local-gateway-route-table-virtual-interface-group-association, natgateway, network-acl, network-interface, network-insights-analysis, network-insights-path, network-insights-access-scope, network-insights-access-scope-analysis, placement-group, prefix-list, replace-root-volume-task, reserved-instances, route-table, security-group, security-group-rule, snapshot, spot-fleet-request, spot-instances-request, subnet, subnet-cidr-reservation, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-connect-peer, transit-gateway-multicast-domain, transit-gateway-policy-table, transit-gateway-route-table, transit-gateway-route-table-announcement, volume, vpc, vpc-endpoint, vpc-endpoint-connection, vpc-endpoint-service, vpc-endpoint-service-permission, vpc-peering-connection, vpn-connection, vpn-gateway, vpc-flow-log, capacity-reservation-fleet, traffic-mirror-filter-rule, vpc-endpoint-connection-device-type, verified-access-instance, verified-access-group, verified-access-endpoint, verified-access-policy, verified-access-trust-provider, vpn-connection-device-type, vpc-block-public-access-exclusion, vpc-encryption-control, ipam-resource-discovery, ipam-resource-discovery-association, instance-connect-endpoint
|
859
859
|
# tags: [
|
860
860
|
# {
|
861
861
|
# key: "String",
|
@@ -888,7 +888,7 @@ module Aws::EC2
|
|
888
888
|
# @return [VpcPeeringConnection]
|
889
889
|
def request_vpc_peering_connection(options = {})
|
890
890
|
options = options.merge(vpc_id: @id)
|
891
|
-
resp = Aws::Plugins::UserAgent.
|
891
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
892
892
|
@client.create_vpc_peering_connection(options)
|
893
893
|
end
|
894
894
|
VpcPeeringConnection.new(
|
@@ -969,7 +969,7 @@ module Aws::EC2
|
|
969
969
|
name: "accepter-vpc-info.vpc-id",
|
970
970
|
values: [@id]
|
971
971
|
}])
|
972
|
-
resp = Aws::Plugins::UserAgent.
|
972
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
973
973
|
@client.describe_vpc_peering_connections(options)
|
974
974
|
end
|
975
975
|
resp.each_page do |page|
|
@@ -1359,6 +1359,10 @@ module Aws::EC2
|
|
1359
1359
|
# (`ip-name` \| `resource-name`).
|
1360
1360
|
#
|
1361
1361
|
# * `private-ip-address` - The private IPv4 address of the instance.
|
1362
|
+
# This can only be used to filter by the primary IP address of the
|
1363
|
+
# network interface attached to the instance. To filter by additional
|
1364
|
+
# IP addresses assigned to the network interface, use the filter
|
1365
|
+
# `network-interface.addresses.private-ip-address`.
|
1362
1366
|
#
|
1363
1367
|
# * `product-code` - The product code associated with the AMI used to
|
1364
1368
|
# launch the instance.
|
@@ -1453,7 +1457,7 @@ module Aws::EC2
|
|
1453
1457
|
name: "vpc-id",
|
1454
1458
|
values: [@id]
|
1455
1459
|
}])
|
1456
|
-
resp = Aws::Plugins::UserAgent.
|
1460
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
1457
1461
|
@client.describe_instances(options)
|
1458
1462
|
end
|
1459
1463
|
resp.each_page do |page|
|
@@ -1525,7 +1529,7 @@ module Aws::EC2
|
|
1525
1529
|
name: "attachment.vpc-id",
|
1526
1530
|
values: [@id]
|
1527
1531
|
}])
|
1528
|
-
resp = Aws::Plugins::UserAgent.
|
1532
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
1529
1533
|
@client.describe_internet_gateways(options)
|
1530
1534
|
end
|
1531
1535
|
resp.each_page do |page|
|
@@ -1620,8 +1624,6 @@ module Aws::EC2
|
|
1620
1624
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
1621
1625
|
# @option options [Array<String>] :network_acl_ids
|
1622
1626
|
# The IDs of the network ACLs.
|
1623
|
-
#
|
1624
|
-
# Default: Describes all your network ACLs.
|
1625
1627
|
# @return [NetworkAcl::Collection]
|
1626
1628
|
def network_acls(options = {})
|
1627
1629
|
batches = Enumerator.new do |y|
|
@@ -1629,7 +1631,7 @@ module Aws::EC2
|
|
1629
1631
|
name: "vpc-id",
|
1630
1632
|
values: [@id]
|
1631
1633
|
}])
|
1632
|
-
resp = Aws::Plugins::UserAgent.
|
1634
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
1633
1635
|
@client.describe_network_acls(options)
|
1634
1636
|
end
|
1635
1637
|
resp.each_page do |page|
|
@@ -1791,7 +1793,7 @@ module Aws::EC2
|
|
1791
1793
|
name: "vpc-id",
|
1792
1794
|
values: [@id]
|
1793
1795
|
}])
|
1794
|
-
resp = Aws::Plugins::UserAgent.
|
1796
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
1795
1797
|
@client.describe_network_interfaces(options)
|
1796
1798
|
end
|
1797
1799
|
resp.each_page do |page|
|
@@ -1878,7 +1880,7 @@ module Aws::EC2
|
|
1878
1880
|
name: "requester-vpc-info.vpc-id",
|
1879
1881
|
values: [@id]
|
1880
1882
|
}])
|
1881
|
-
resp = Aws::Plugins::UserAgent.
|
1883
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
1882
1884
|
@client.describe_vpc_peering_connections(options)
|
1883
1885
|
end
|
1884
1886
|
resp.each_page do |page|
|
@@ -1989,8 +1991,6 @@ module Aws::EC2
|
|
1989
1991
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
1990
1992
|
# @option options [Array<String>] :route_table_ids
|
1991
1993
|
# The IDs of the route tables.
|
1992
|
-
#
|
1993
|
-
# Default: Describes all your route tables.
|
1994
1994
|
# @return [RouteTable::Collection]
|
1995
1995
|
def route_tables(options = {})
|
1996
1996
|
batches = Enumerator.new do |y|
|
@@ -1998,7 +1998,7 @@ module Aws::EC2
|
|
1998
1998
|
name: "vpc-id",
|
1999
1999
|
values: [@id]
|
2000
2000
|
}])
|
2001
|
-
resp = Aws::Plugins::UserAgent.
|
2001
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
2002
2002
|
@client.describe_route_tables(options)
|
2003
2003
|
end
|
2004
2004
|
resp.each_page do |page|
|
@@ -2134,7 +2134,7 @@ module Aws::EC2
|
|
2134
2134
|
name: "vpc-id",
|
2135
2135
|
values: [@id]
|
2136
2136
|
}])
|
2137
|
-
resp = Aws::Plugins::UserAgent.
|
2137
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
2138
2138
|
@client.describe_security_groups(options)
|
2139
2139
|
end
|
2140
2140
|
resp.each_page do |page|
|
@@ -2270,7 +2270,7 @@ module Aws::EC2
|
|
2270
2270
|
name: "vpc-id",
|
2271
2271
|
values: [@id]
|
2272
2272
|
}])
|
2273
|
-
resp = Aws::Plugins::UserAgent.
|
2273
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
2274
2274
|
@client.describe_subnets(options)
|
2275
2275
|
end
|
2276
2276
|
resp.each_page do |page|
|
@@ -131,7 +131,7 @@ module Aws::EC2
|
|
131
131
|
#
|
132
132
|
# @return [self]
|
133
133
|
def load
|
134
|
-
resp = Aws::Plugins::UserAgent.
|
134
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
135
135
|
@client.describe_addresses(allocation_ids: [@allocation_id])
|
136
136
|
end
|
137
137
|
@data = resp.addresses[0]
|
@@ -248,7 +248,7 @@ module Aws::EC2
|
|
248
248
|
:retry
|
249
249
|
end
|
250
250
|
end
|
251
|
-
Aws::Plugins::UserAgent.
|
251
|
+
Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
252
252
|
Aws::Waiters::Waiter.new(options).wait({})
|
253
253
|
end
|
254
254
|
end
|
@@ -294,7 +294,7 @@ module Aws::EC2
|
|
294
294
|
# @return [Types::AssociateAddressResult]
|
295
295
|
def associate(options = {})
|
296
296
|
options = options.merge(allocation_id: @allocation_id)
|
297
|
-
resp = Aws::Plugins::UserAgent.
|
297
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
298
298
|
@client.associate_address(options)
|
299
299
|
end
|
300
300
|
resp.data
|
@@ -324,7 +324,7 @@ module Aws::EC2
|
|
324
324
|
# @return [EmptyStructure]
|
325
325
|
def release(options = {})
|
326
326
|
options = options.merge(allocation_id: data[:allocation_id])
|
327
|
-
resp = Aws::Plugins::UserAgent.
|
327
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
328
328
|
@client.release_address(options)
|
329
329
|
end
|
330
330
|
resp.data
|
@@ -81,7 +81,7 @@ module Aws::EC2
|
|
81
81
|
#
|
82
82
|
# @return [self]
|
83
83
|
def load
|
84
|
-
resp = Aws::Plugins::UserAgent.
|
84
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
85
85
|
@client.describe_vpc_peering_connections(vpc_peering_connection_ids: [@id])
|
86
86
|
end
|
87
87
|
@data = resp.vpc_peering_connections[0]
|
@@ -128,7 +128,7 @@ module Aws::EC2
|
|
128
128
|
options, params = separate_params_and_options(options)
|
129
129
|
waiter = Waiters::VpcPeeringConnectionExists.new(options)
|
130
130
|
yield_waiter_and_warn(waiter, &block) if block_given?
|
131
|
-
resp = Aws::Plugins::UserAgent.
|
131
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
132
132
|
waiter.wait(params.merge(vpc_peering_connection_ids: [@id]))
|
133
133
|
end
|
134
134
|
VpcPeeringConnection.new({
|
@@ -232,7 +232,7 @@ module Aws::EC2
|
|
232
232
|
:retry
|
233
233
|
end
|
234
234
|
end
|
235
|
-
Aws::Plugins::UserAgent.
|
235
|
+
Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
236
236
|
Aws::Waiters::Waiter.new(options).wait({})
|
237
237
|
end
|
238
238
|
end
|
@@ -253,7 +253,7 @@ module Aws::EC2
|
|
253
253
|
# @return [Types::AcceptVpcPeeringConnectionResult]
|
254
254
|
def accept(options = {})
|
255
255
|
options = options.merge(vpc_peering_connection_id: @id)
|
256
|
-
resp = Aws::Plugins::UserAgent.
|
256
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
257
257
|
@client.accept_vpc_peering_connection(options)
|
258
258
|
end
|
259
259
|
resp.data
|
@@ -273,7 +273,7 @@ module Aws::EC2
|
|
273
273
|
# @return [Types::DeleteVpcPeeringConnectionResult]
|
274
274
|
def delete(options = {})
|
275
275
|
options = options.merge(vpc_peering_connection_id: @id)
|
276
|
-
resp = Aws::Plugins::UserAgent.
|
276
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
277
277
|
@client.delete_vpc_peering_connection(options)
|
278
278
|
end
|
279
279
|
resp.data
|
@@ -293,7 +293,7 @@ module Aws::EC2
|
|
293
293
|
# @return [Types::RejectVpcPeeringConnectionResult]
|
294
294
|
def reject(options = {})
|
295
295
|
options = options.merge(vpc_peering_connection_id: @id)
|
296
|
-
resp = Aws::Plugins::UserAgent.
|
296
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
297
297
|
@client.reject_vpc_peering_connection(options)
|
298
298
|
end
|
299
299
|
resp.data
|