aws-sdk-ec2 1.459.0 → 1.461.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 +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/resource.rb
CHANGED
@@ -46,7 +46,7 @@ module Aws::EC2
|
|
46
46
|
# ],
|
47
47
|
# tag_specifications: [
|
48
48
|
# {
|
49
|
-
# 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
|
49
|
+
# 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
|
50
50
|
# tags: [
|
51
51
|
# {
|
52
52
|
# key: "String",
|
@@ -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(
|
@@ -209,7 +209,7 @@ module Aws::EC2
|
|
209
209
|
# ],
|
210
210
|
# tag_specifications: [
|
211
211
|
# {
|
212
|
-
# 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
|
212
|
+
# 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
|
213
213
|
# tags: [
|
214
214
|
# {
|
215
215
|
# key: "String",
|
@@ -291,8 +291,8 @@ module Aws::EC2
|
|
291
291
|
# The ID of the AMI. An AMI ID is required to launch an instance and
|
292
292
|
# must be specified here or in a launch template.
|
293
293
|
# @option options [String] :instance_type
|
294
|
-
# The instance type. For more information, see [
|
295
|
-
# the *Amazon EC2 User Guide*.
|
294
|
+
# The instance type. For more information, see [Amazon EC2 instance
|
295
|
+
# types][1] in the *Amazon EC2 User Guide*.
|
296
296
|
#
|
297
297
|
#
|
298
298
|
#
|
@@ -337,32 +337,30 @@ module Aws::EC2
|
|
337
337
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateKeyPair.html
|
338
338
|
# [2]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ImportKeyPair.html
|
339
339
|
# @option options [required, Integer] :max_count
|
340
|
-
# The maximum number of instances to launch. If you specify
|
341
|
-
#
|
342
|
-
# Amazon EC2 launches the largest possible number of instances
|
343
|
-
#
|
340
|
+
# The maximum number of instances to launch. If you specify a value that
|
341
|
+
# is more capacity than Amazon EC2 can launch in the target Availability
|
342
|
+
# Zone, Amazon EC2 launches the largest possible number of instances
|
343
|
+
# above the specified minimum count.
|
344
344
|
#
|
345
|
-
# Constraints: Between 1 and the
|
346
|
-
#
|
347
|
-
#
|
348
|
-
# run in Amazon EC2][1] in the Amazon EC2 FAQ.
|
345
|
+
# Constraints: Between 1 and the quota for the specified instance type
|
346
|
+
# for your account for this Region. For more information, see [Amazon
|
347
|
+
# EC2 instance type quotas][1].
|
349
348
|
#
|
350
349
|
#
|
351
350
|
#
|
352
|
-
# [1]:
|
351
|
+
# [1]: https://docs.aws.amazon.com/ec2/latest/instancetypes/ec2-instance-quotas.html
|
353
352
|
# @option options [required, Integer] :min_count
|
354
|
-
# The minimum number of instances to launch. If you specify a
|
355
|
-
#
|
356
|
-
# Availability Zone, Amazon EC2
|
353
|
+
# The minimum number of instances to launch. If you specify a value that
|
354
|
+
# is more capacity than Amazon EC2 can provide in the target
|
355
|
+
# Availability Zone, Amazon EC2 does not launch any instances.
|
357
356
|
#
|
358
|
-
# Constraints: Between 1 and the
|
359
|
-
#
|
360
|
-
#
|
361
|
-
# run in Amazon EC2][1] in the Amazon EC2 General FAQ.
|
357
|
+
# Constraints: Between 1 and the quota for the specified instance type
|
358
|
+
# for your account for this Region. For more information, see [Amazon
|
359
|
+
# EC2 instance type quotas][1].
|
362
360
|
#
|
363
361
|
#
|
364
362
|
#
|
365
|
-
# [1]:
|
363
|
+
# [1]: https://docs.aws.amazon.com/ec2/latest/instancetypes/ec2-instance-quotas.html
|
366
364
|
# @option options [Types::RunInstancesMonitoringEnabled] :monitoring
|
367
365
|
# Specifies whether detailed monitoring is enabled for the instance.
|
368
366
|
# @option options [Types::Placement] :placement
|
@@ -406,16 +404,15 @@ module Aws::EC2
|
|
406
404
|
# part of the network interface instead of using this parameter.
|
407
405
|
# @option options [String] :user_data
|
408
406
|
# The user data script to make available to the instance. For more
|
409
|
-
# information, see [Run commands on your
|
410
|
-
#
|
411
|
-
#
|
412
|
-
#
|
413
|
-
#
|
407
|
+
# information, see [Run commands on your Amazon EC2 instance at
|
408
|
+
# launch][1] in the *Amazon EC2 User Guide*. If you are using a command
|
409
|
+
# line tool, base64-encoding is performed for you, and you can load the
|
410
|
+
# text from a file. Otherwise, you must provide base64-encoded text.
|
411
|
+
# User data is limited to 16 KB.
|
414
412
|
#
|
415
413
|
#
|
416
414
|
#
|
417
415
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html
|
418
|
-
# [2]: https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ec2-windows-user-data.html
|
419
416
|
# @option options [String] :additional_info
|
420
417
|
# Reserved.
|
421
418
|
# @option options [String] :client_token
|
@@ -558,8 +555,8 @@ module Aws::EC2
|
|
558
555
|
# @option options [Types::HibernationOptionsRequest] :hibernation_options
|
559
556
|
# Indicates whether an instance is enabled for hibernation. This
|
560
557
|
# parameter is valid only if the instance meets the [hibernation
|
561
|
-
# prerequisites][1]. For more information, see [Hibernate your
|
562
|
-
# instance][2] in the *Amazon EC2 User Guide*.
|
558
|
+
# prerequisites][1]. For more information, see [Hibernate your Amazon
|
559
|
+
# EC2 instance][2] in the *Amazon EC2 User Guide*.
|
563
560
|
#
|
564
561
|
# You can't enable hibernation and Amazon Web Services Nitro Enclaves
|
565
562
|
# on the same instance.
|
@@ -621,7 +618,7 @@ module Aws::EC2
|
|
621
618
|
# @return [Instance::Collection]
|
622
619
|
def create_instances(options = {})
|
623
620
|
batch = []
|
624
|
-
resp = Aws::Plugins::UserAgent.
|
621
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
625
622
|
@client.run_instances(options)
|
626
623
|
end
|
627
624
|
resp.data.instances.each do |i|
|
@@ -639,7 +636,7 @@ module Aws::EC2
|
|
639
636
|
# internetgateway = ec2.create_internet_gateway({
|
640
637
|
# tag_specifications: [
|
641
638
|
# {
|
642
|
-
# 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
|
639
|
+
# 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
|
643
640
|
# tags: [
|
644
641
|
# {
|
645
642
|
# key: "String",
|
@@ -660,7 +657,7 @@ module Aws::EC2
|
|
660
657
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
661
658
|
# @return [InternetGateway]
|
662
659
|
def create_internet_gateway(options = {})
|
663
|
-
resp = Aws::Plugins::UserAgent.
|
660
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
664
661
|
@client.create_internet_gateway(options)
|
665
662
|
end
|
666
663
|
InternetGateway.new(
|
@@ -678,7 +675,7 @@ module Aws::EC2
|
|
678
675
|
# key_type: "rsa", # accepts rsa, ed25519
|
679
676
|
# tag_specifications: [
|
680
677
|
# {
|
681
|
-
# 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
|
678
|
+
# 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
|
682
679
|
# tags: [
|
683
680
|
# {
|
684
681
|
# key: "String",
|
@@ -712,7 +709,7 @@ module Aws::EC2
|
|
712
709
|
# Default: `pem`
|
713
710
|
# @return [KeyPair]
|
714
711
|
def create_key_pair(options = {})
|
715
|
-
resp = Aws::Plugins::UserAgent.
|
712
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
716
713
|
@client.create_key_pair(options)
|
717
714
|
end
|
718
715
|
KeyPair.new(
|
@@ -731,7 +728,7 @@ module Aws::EC2
|
|
731
728
|
# subnet_id: "SubnetId", # required
|
732
729
|
# tag_specifications: [
|
733
730
|
# {
|
734
|
-
# 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
|
731
|
+
# 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
|
735
732
|
# tags: [
|
736
733
|
# {
|
737
734
|
# key: "String",
|
@@ -762,7 +759,7 @@ module Aws::EC2
|
|
762
759
|
#
|
763
760
|
#
|
764
761
|
#
|
765
|
-
# [1]: https://docs.aws.amazon.com/
|
762
|
+
# [1]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
|
766
763
|
# @option options [Boolean] :dry_run
|
767
764
|
# Checks whether you have the required permissions for the action,
|
768
765
|
# without actually making the request, and provides an error response.
|
@@ -805,7 +802,7 @@ module Aws::EC2
|
|
805
802
|
# [1]: https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html#nat-gateway-creating
|
806
803
|
# @return [NatGateway]
|
807
804
|
def create_nat_gateway(options = {})
|
808
|
-
resp = Aws::Plugins::UserAgent.
|
805
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
809
806
|
@client.create_nat_gateway(options)
|
810
807
|
end
|
811
808
|
NatGateway.new(
|
@@ -822,7 +819,7 @@ module Aws::EC2
|
|
822
819
|
# vpc_id: "VpcId", # required
|
823
820
|
# tag_specifications: [
|
824
821
|
# {
|
825
|
-
# 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
|
822
|
+
# 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
|
826
823
|
# tags: [
|
827
824
|
# {
|
828
825
|
# key: "String",
|
@@ -850,10 +847,10 @@ module Aws::EC2
|
|
850
847
|
#
|
851
848
|
#
|
852
849
|
#
|
853
|
-
# [1]: https://docs.aws.amazon.com/
|
850
|
+
# [1]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
|
854
851
|
# @return [NetworkAcl]
|
855
852
|
def create_network_acl(options = {})
|
856
|
-
resp = Aws::Plugins::UserAgent.
|
853
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
857
854
|
@client.create_network_acl(options)
|
858
855
|
end
|
859
856
|
NetworkAcl.new(
|
@@ -900,7 +897,7 @@ module Aws::EC2
|
|
900
897
|
# subnet_id: "SubnetId", # required
|
901
898
|
# tag_specifications: [
|
902
899
|
# {
|
903
|
-
# 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
|
900
|
+
# 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
|
904
901
|
# tags: [
|
905
902
|
# {
|
906
903
|
# key: "String",
|
@@ -1003,11 +1000,11 @@ module Aws::EC2
|
|
1003
1000
|
# @option options [String] :client_token
|
1004
1001
|
# Unique, case-sensitive identifier that you provide to ensure the
|
1005
1002
|
# idempotency of the request. For more information, see [Ensuring
|
1006
|
-
#
|
1003
|
+
# idempotency][1].
|
1007
1004
|
#
|
1008
1005
|
#
|
1009
1006
|
#
|
1010
|
-
# [1]: https://docs.aws.amazon.com/
|
1007
|
+
# [1]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
|
1011
1008
|
# @option options [Boolean] :enable_primary_ipv_6
|
1012
1009
|
# If you’re creating a network interface in a dual-stack or IPv6-only
|
1013
1010
|
# subnet, you have the option to assign a primary IPv6 IP address. A
|
@@ -1028,7 +1025,7 @@ module Aws::EC2
|
|
1028
1025
|
# A connection tracking specification for the network interface.
|
1029
1026
|
# @return [NetworkInterface]
|
1030
1027
|
def create_network_interface(options = {})
|
1031
|
-
resp = Aws::Plugins::UserAgent.
|
1028
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
1032
1029
|
@client.create_network_interface(options)
|
1033
1030
|
end
|
1034
1031
|
NetworkInterface.new(
|
@@ -1047,7 +1044,7 @@ module Aws::EC2
|
|
1047
1044
|
# partition_count: 1,
|
1048
1045
|
# tag_specifications: [
|
1049
1046
|
# {
|
1050
|
-
# 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
|
1047
|
+
# 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
|
1051
1048
|
# tags: [
|
1052
1049
|
# {
|
1053
1050
|
# key: "String",
|
@@ -1084,7 +1081,7 @@ module Aws::EC2
|
|
1084
1081
|
# * Rack – No usage restrictions.
|
1085
1082
|
# @return [PlacementGroup]
|
1086
1083
|
def create_placement_group(options = {})
|
1087
|
-
Aws::Plugins::UserAgent.
|
1084
|
+
Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
1088
1085
|
@client.create_placement_group(options)
|
1089
1086
|
end
|
1090
1087
|
PlacementGroup.new(
|
@@ -1100,7 +1097,7 @@ module Aws::EC2
|
|
1100
1097
|
# vpc_id: "VpcId", # required
|
1101
1098
|
# tag_specifications: [
|
1102
1099
|
# {
|
1103
|
-
# 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
|
1100
|
+
# 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
|
1104
1101
|
# tags: [
|
1105
1102
|
# {
|
1106
1103
|
# key: "String",
|
@@ -1128,10 +1125,10 @@ module Aws::EC2
|
|
1128
1125
|
#
|
1129
1126
|
#
|
1130
1127
|
#
|
1131
|
-
# [1]: https://docs.aws.amazon.com/
|
1128
|
+
# [1]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
|
1132
1129
|
# @return [RouteTable]
|
1133
1130
|
def create_route_table(options = {})
|
1134
|
-
resp = Aws::Plugins::UserAgent.
|
1131
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
1135
1132
|
@client.create_route_table(options)
|
1136
1133
|
end
|
1137
1134
|
RouteTable.new(
|
@@ -1149,7 +1146,7 @@ module Aws::EC2
|
|
1149
1146
|
# vpc_id: "VpcId",
|
1150
1147
|
# tag_specifications: [
|
1151
1148
|
# {
|
1152
|
-
# 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
|
1149
|
+
# 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
|
1153
1150
|
# tags: [
|
1154
1151
|
# {
|
1155
1152
|
# key: "String",
|
@@ -1186,7 +1183,7 @@ module Aws::EC2
|
|
1186
1183
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
1187
1184
|
# @return [SecurityGroup]
|
1188
1185
|
def create_security_group(options = {})
|
1189
|
-
resp = Aws::Plugins::UserAgent.
|
1186
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
1190
1187
|
@client.create_security_group(options)
|
1191
1188
|
end
|
1192
1189
|
SecurityGroup.new(
|
@@ -1203,7 +1200,7 @@ module Aws::EC2
|
|
1203
1200
|
# volume_id: "VolumeId", # required
|
1204
1201
|
# tag_specifications: [
|
1205
1202
|
# {
|
1206
|
-
# 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
|
1203
|
+
# 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
|
1207
1204
|
# tags: [
|
1208
1205
|
# {
|
1209
1206
|
# key: "String",
|
@@ -1249,7 +1246,7 @@ module Aws::EC2
|
|
1249
1246
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
1250
1247
|
# @return [Snapshot]
|
1251
1248
|
def create_snapshot(options = {})
|
1252
|
-
resp = Aws::Plugins::UserAgent.
|
1249
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
1253
1250
|
@client.create_snapshot(options)
|
1254
1251
|
end
|
1255
1252
|
Snapshot.new(
|
@@ -1264,7 +1261,7 @@ module Aws::EC2
|
|
1264
1261
|
# subnet = ec2.create_subnet({
|
1265
1262
|
# tag_specifications: [
|
1266
1263
|
# {
|
1267
|
-
# 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
|
1264
|
+
# 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
|
1268
1265
|
# tags: [
|
1269
1266
|
# {
|
1270
1267
|
# key: "String",
|
@@ -1298,14 +1295,14 @@ module Aws::EC2
|
|
1298
1295
|
#
|
1299
1296
|
# To create a subnet in a Local Zone, set this value to the Local Zone
|
1300
1297
|
# ID, for example `us-west-2-lax-1a`. For information about the Regions
|
1301
|
-
# that support Local Zones, see [Local Zones
|
1298
|
+
# that support Local Zones, see [Available Local Zones][1].
|
1302
1299
|
#
|
1303
1300
|
# To create a subnet in an Outpost, set this value to the Availability
|
1304
1301
|
# Zone for the Outpost and specify the Outpost ARN.
|
1305
1302
|
#
|
1306
1303
|
#
|
1307
1304
|
#
|
1308
|
-
# [1]:
|
1305
|
+
# [1]: https://docs.aws.amazon.com/local-zones/latest/ug/available-local-zones.html
|
1309
1306
|
# @option options [String] :availability_zone_id
|
1310
1307
|
# The AZ ID or the Local Zone ID of the subnet.
|
1311
1308
|
# @option options [String] :cidr_block
|
@@ -1341,7 +1338,7 @@ module Aws::EC2
|
|
1341
1338
|
# An IPv6 netmask length for the subnet.
|
1342
1339
|
# @return [Subnet]
|
1343
1340
|
def create_subnet(options = {})
|
1344
|
-
resp = Aws::Plugins::UserAgent.
|
1341
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
1345
1342
|
@client.create_subnet(options)
|
1346
1343
|
end
|
1347
1344
|
Subnet.new(
|
@@ -1380,7 +1377,7 @@ module Aws::EC2
|
|
1380
1377
|
# set the value to an empty string.
|
1381
1378
|
# @return [EmptyStructure]
|
1382
1379
|
def create_tags(options = {})
|
1383
|
-
resp = Aws::Plugins::UserAgent.
|
1380
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
1384
1381
|
@client.create_tags(options)
|
1385
1382
|
end
|
1386
1383
|
resp.data
|
@@ -1423,7 +1420,7 @@ module Aws::EC2
|
|
1423
1420
|
# Constraints: Up to 1000 tags.
|
1424
1421
|
# @return [EmptyStructure]
|
1425
1422
|
def delete_tags(options = {})
|
1426
|
-
resp = Aws::Plugins::UserAgent.
|
1423
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
1427
1424
|
@client.delete_tags(options)
|
1428
1425
|
end
|
1429
1426
|
resp.data
|
@@ -1443,7 +1440,7 @@ module Aws::EC2
|
|
1443
1440
|
# dry_run: false,
|
1444
1441
|
# tag_specifications: [
|
1445
1442
|
# {
|
1446
|
-
# 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
|
1443
|
+
# 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
|
1447
1444
|
# tags: [
|
1448
1445
|
# {
|
1449
1446
|
# key: "String",
|
@@ -1500,12 +1497,11 @@ module Aws::EC2
|
|
1500
1497
|
#
|
1501
1498
|
#
|
1502
1499
|
#
|
1503
|
-
# [1]: https://docs.aws.amazon.com/
|
1500
|
+
# [1]: https://docs.aws.amazon.com/ec2/latest/instancetypes/ec2-nitro-instances.html
|
1504
1501
|
# @option options [String] :kms_key_id
|
1505
|
-
# The identifier of the
|
1506
|
-
#
|
1507
|
-
#
|
1508
|
-
# state must be `true`.
|
1502
|
+
# The identifier of the KMS key to use for Amazon EBS encryption. If
|
1503
|
+
# this parameter is not specified, your KMS key for Amazon EBS is used.
|
1504
|
+
# If `KmsKeyId` is specified, the encrypted state must be `true`.
|
1509
1505
|
#
|
1510
1506
|
# You can specify the KMS key using any of the following:
|
1511
1507
|
#
|
@@ -1584,7 +1580,7 @@ module Aws::EC2
|
|
1584
1580
|
#
|
1585
1581
|
#
|
1586
1582
|
#
|
1587
|
-
# [1]: https://docs.aws.amazon.com/
|
1583
|
+
# [1]: https://docs.aws.amazon.com/ec2/latest/instancetypes/ec2-nitro-instances.html
|
1588
1584
|
# [2]: https://docs.aws.amazon.com/ebs/latest/userguide/ebs-volumes-multi.html
|
1589
1585
|
# @option options [Integer] :throughput
|
1590
1586
|
# The throughput to provision for a volume, with a maximum of 1,000
|
@@ -1600,10 +1596,10 @@ module Aws::EC2
|
|
1600
1596
|
#
|
1601
1597
|
#
|
1602
1598
|
#
|
1603
|
-
# [1]: https://docs.aws.amazon.com/
|
1599
|
+
# [1]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
|
1604
1600
|
# @return [Volume]
|
1605
1601
|
def create_volume(options = {})
|
1606
|
-
resp = Aws::Plugins::UserAgent.
|
1602
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
1607
1603
|
@client.create_volume(options)
|
1608
1604
|
end
|
1609
1605
|
Volume.new(
|
@@ -1629,7 +1625,7 @@ module Aws::EC2
|
|
1629
1625
|
# ipv_6_cidr_block_network_border_group: "String",
|
1630
1626
|
# tag_specifications: [
|
1631
1627
|
# {
|
1632
|
-
# 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
|
1628
|
+
# 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
|
1633
1629
|
# tags: [
|
1634
1630
|
# {
|
1635
1631
|
# key: "String",
|
@@ -1722,7 +1718,7 @@ module Aws::EC2
|
|
1722
1718
|
# The tags to assign to the VPC.
|
1723
1719
|
# @return [Vpc]
|
1724
1720
|
def create_vpc(options = {})
|
1725
|
-
resp = Aws::Plugins::UserAgent.
|
1721
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
1726
1722
|
@client.create_vpc(options)
|
1727
1723
|
end
|
1728
1724
|
Vpc.new(
|
@@ -1742,7 +1738,7 @@ module Aws::EC2
|
|
1742
1738
|
# peer_region: "String",
|
1743
1739
|
# tag_specifications: [
|
1744
1740
|
# {
|
1745
|
-
# 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
|
1741
|
+
# 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
|
1746
1742
|
# tags: [
|
1747
1743
|
# {
|
1748
1744
|
# key: "String",
|
@@ -1777,7 +1773,7 @@ module Aws::EC2
|
|
1777
1773
|
# The tags to assign to the peering connection.
|
1778
1774
|
# @return [VpcPeeringConnection]
|
1779
1775
|
def create_vpc_peering_connection(options = {})
|
1780
|
-
resp = Aws::Plugins::UserAgent.
|
1776
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
1781
1777
|
@client.create_vpc_peering_connection(options)
|
1782
1778
|
end
|
1783
1779
|
VpcPeeringConnection.new(
|
@@ -1804,7 +1800,7 @@ module Aws::EC2
|
|
1804
1800
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
1805
1801
|
# @return [EmptyStructure]
|
1806
1802
|
def disassociate_route_table(options = {})
|
1807
|
-
resp = Aws::Plugins::UserAgent.
|
1803
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
1808
1804
|
@client.disassociate_route_table(options)
|
1809
1805
|
end
|
1810
1806
|
resp.data
|
@@ -1818,7 +1814,7 @@ module Aws::EC2
|
|
1818
1814
|
# public_key_material: "data", # required
|
1819
1815
|
# tag_specifications: [
|
1820
1816
|
# {
|
1821
|
-
# 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
|
1817
|
+
# 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
|
1822
1818
|
# tags: [
|
1823
1819
|
# {
|
1824
1820
|
# key: "String",
|
@@ -1843,7 +1839,7 @@ module Aws::EC2
|
|
1843
1839
|
# The tags to apply to the imported key pair.
|
1844
1840
|
# @return [KeyPairInfo]
|
1845
1841
|
def import_key_pair(options = {})
|
1846
|
-
resp = Aws::Plugins::UserAgent.
|
1842
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
1847
1843
|
@client.import_key_pair(options)
|
1848
1844
|
end
|
1849
1845
|
KeyPairInfo.new(
|
@@ -1891,7 +1887,7 @@ module Aws::EC2
|
|
1891
1887
|
# imds_support: "v2.0", # accepts v2.0
|
1892
1888
|
# tag_specifications: [
|
1893
1889
|
# {
|
1894
|
-
# 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
|
1890
|
+
# 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
|
1895
1891
|
# tags: [
|
1896
1892
|
# {
|
1897
1893
|
# key: "String",
|
@@ -2047,7 +2043,7 @@ module Aws::EC2
|
|
2047
2043
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTags.html
|
2048
2044
|
# @return [Image]
|
2049
2045
|
def register_image(options = {})
|
2050
|
-
resp = Aws::Plugins::UserAgent.
|
2046
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
2051
2047
|
@client.register_image(options)
|
2052
2048
|
end
|
2053
2049
|
Image.new(
|
@@ -2125,7 +2121,7 @@ module Aws::EC2
|
|
2125
2121
|
name: "domain",
|
2126
2122
|
values: ["standard"]
|
2127
2123
|
}])
|
2128
|
-
resp = Aws::Plugins::UserAgent.
|
2124
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
2129
2125
|
@client.describe_addresses(options)
|
2130
2126
|
end
|
2131
2127
|
resp.data.addresses.each do |a|
|
@@ -2163,9 +2159,7 @@ module Aws::EC2
|
|
2163
2159
|
# })
|
2164
2160
|
# @param [Hash] options ({})
|
2165
2161
|
# @option options [Array<String>] :dhcp_options_ids
|
2166
|
-
# The IDs of
|
2167
|
-
#
|
2168
|
-
# Default: Describes all your DHCP options sets.
|
2162
|
+
# The IDs of DHCP option sets.
|
2169
2163
|
# @option options [Array<Types::Filter>] :filters
|
2170
2164
|
# The filters.
|
2171
2165
|
#
|
@@ -2195,7 +2189,7 @@ module Aws::EC2
|
|
2195
2189
|
# @return [DhcpOptions::Collection]
|
2196
2190
|
def dhcp_options_sets(options = {})
|
2197
2191
|
batches = Enumerator.new do |y|
|
2198
|
-
resp = Aws::Plugins::UserAgent.
|
2192
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
2199
2193
|
@client.describe_dhcp_options(options)
|
2200
2194
|
end
|
2201
2195
|
resp.each_page do |page|
|
@@ -2391,7 +2385,7 @@ module Aws::EC2
|
|
2391
2385
|
# @return [Image::Collection]
|
2392
2386
|
def images(options = {})
|
2393
2387
|
batches = Enumerator.new do |y|
|
2394
|
-
resp = Aws::Plugins::UserAgent.
|
2388
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
2395
2389
|
@client.describe_images(options)
|
2396
2390
|
end
|
2397
2391
|
resp.each_page do |page|
|
@@ -2778,6 +2772,10 @@ module Aws::EC2
|
|
2778
2772
|
# (`ip-name` \| `resource-name`).
|
2779
2773
|
#
|
2780
2774
|
# * `private-ip-address` - The private IPv4 address of the instance.
|
2775
|
+
# This can only be used to filter by the primary IP address of the
|
2776
|
+
# network interface attached to the instance. To filter by additional
|
2777
|
+
# IP addresses assigned to the network interface, use the filter
|
2778
|
+
# `network-interface.addresses.private-ip-address`.
|
2781
2779
|
#
|
2782
2780
|
# * `product-code` - The product code associated with the AMI used to
|
2783
2781
|
# launch the instance.
|
@@ -2868,7 +2866,7 @@ module Aws::EC2
|
|
2868
2866
|
# @return [Instance::Collection]
|
2869
2867
|
def instances(options = {})
|
2870
2868
|
batches = Enumerator.new do |y|
|
2871
|
-
resp = Aws::Plugins::UserAgent.
|
2869
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
2872
2870
|
@client.describe_instances(options)
|
2873
2871
|
end
|
2874
2872
|
resp.each_page do |page|
|
@@ -2945,7 +2943,7 @@ module Aws::EC2
|
|
2945
2943
|
# @return [InternetGateway::Collection]
|
2946
2944
|
def internet_gateways(options = {})
|
2947
2945
|
batches = Enumerator.new do |y|
|
2948
|
-
resp = Aws::Plugins::UserAgent.
|
2946
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
2949
2947
|
@client.describe_internet_gateways(options)
|
2950
2948
|
end
|
2951
2949
|
resp.each_page do |page|
|
@@ -3024,7 +3022,7 @@ module Aws::EC2
|
|
3024
3022
|
def key_pairs(options = {})
|
3025
3023
|
batches = Enumerator.new do |y|
|
3026
3024
|
batch = []
|
3027
|
-
resp = Aws::Plugins::UserAgent.
|
3025
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
3028
3026
|
@client.describe_key_pairs(options)
|
3029
3027
|
end
|
3030
3028
|
resp.data.key_pairs.each do |k|
|
@@ -3092,7 +3090,7 @@ module Aws::EC2
|
|
3092
3090
|
# @return [NatGateway::Collection]
|
3093
3091
|
def nat_gateways(options = {})
|
3094
3092
|
batches = Enumerator.new do |y|
|
3095
|
-
resp = Aws::Plugins::UserAgent.
|
3093
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
3096
3094
|
@client.describe_nat_gateways(options)
|
3097
3095
|
end
|
3098
3096
|
resp.each_page do |page|
|
@@ -3196,12 +3194,10 @@ module Aws::EC2
|
|
3196
3194
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
3197
3195
|
# @option options [Array<String>] :network_acl_ids
|
3198
3196
|
# The IDs of the network ACLs.
|
3199
|
-
#
|
3200
|
-
# Default: Describes all your network ACLs.
|
3201
3197
|
# @return [NetworkAcl::Collection]
|
3202
3198
|
def network_acls(options = {})
|
3203
3199
|
batches = Enumerator.new do |y|
|
3204
|
-
resp = Aws::Plugins::UserAgent.
|
3200
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
3205
3201
|
@client.describe_network_acls(options)
|
3206
3202
|
end
|
3207
3203
|
resp.each_page do |page|
|
@@ -3368,7 +3364,7 @@ module Aws::EC2
|
|
3368
3364
|
# @return [NetworkInterface::Collection]
|
3369
3365
|
def network_interfaces(options = {})
|
3370
3366
|
batches = Enumerator.new do |y|
|
3371
|
-
resp = Aws::Plugins::UserAgent.
|
3367
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
3372
3368
|
@client.describe_network_interfaces(options)
|
3373
3369
|
end
|
3374
3370
|
resp.each_page do |page|
|
@@ -3450,7 +3446,7 @@ module Aws::EC2
|
|
3450
3446
|
def placement_groups(options = {})
|
3451
3447
|
batches = Enumerator.new do |y|
|
3452
3448
|
batch = []
|
3453
|
-
resp = Aws::Plugins::UserAgent.
|
3449
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
3454
3450
|
@client.describe_placement_groups(options)
|
3455
3451
|
end
|
3456
3452
|
resp.data.placement_groups.each do |p|
|
@@ -3576,12 +3572,10 @@ module Aws::EC2
|
|
3576
3572
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
3577
3573
|
# @option options [Array<String>] :route_table_ids
|
3578
3574
|
# The IDs of the route tables.
|
3579
|
-
#
|
3580
|
-
# Default: Describes all your route tables.
|
3581
3575
|
# @return [RouteTable::Collection]
|
3582
3576
|
def route_tables(options = {})
|
3583
3577
|
batches = Enumerator.new do |y|
|
3584
|
-
resp = Aws::Plugins::UserAgent.
|
3578
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
3585
3579
|
@client.describe_route_tables(options)
|
3586
3580
|
end
|
3587
3581
|
resp.each_page do |page|
|
@@ -3722,7 +3716,7 @@ module Aws::EC2
|
|
3722
3716
|
# @return [SecurityGroup::Collection]
|
3723
3717
|
def security_groups(options = {})
|
3724
3718
|
batches = Enumerator.new do |y|
|
3725
|
-
resp = Aws::Plugins::UserAgent.
|
3719
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
3726
3720
|
@client.describe_security_groups(options)
|
3727
3721
|
end
|
3728
3722
|
resp.each_page do |page|
|
@@ -3826,7 +3820,7 @@ module Aws::EC2
|
|
3826
3820
|
# @return [Snapshot::Collection]
|
3827
3821
|
def snapshots(options = {})
|
3828
3822
|
batches = Enumerator.new do |y|
|
3829
|
-
resp = Aws::Plugins::UserAgent.
|
3823
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
3830
3824
|
@client.describe_snapshots(options)
|
3831
3825
|
end
|
3832
3826
|
resp.each_page do |page|
|
@@ -3967,7 +3961,7 @@ module Aws::EC2
|
|
3967
3961
|
# @return [Subnet::Collection]
|
3968
3962
|
def subnets(options = {})
|
3969
3963
|
batches = Enumerator.new do |y|
|
3970
|
-
resp = Aws::Plugins::UserAgent.
|
3964
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
3971
3965
|
@client.describe_subnets(options)
|
3972
3966
|
end
|
3973
3967
|
resp.each_page do |page|
|
@@ -4071,7 +4065,7 @@ module Aws::EC2
|
|
4071
4065
|
# @return [Volume::Collection]
|
4072
4066
|
def volumes(options = {})
|
4073
4067
|
batches = Enumerator.new do |y|
|
4074
|
-
resp = Aws::Plugins::UserAgent.
|
4068
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
4075
4069
|
@client.describe_volumes(options)
|
4076
4070
|
end
|
4077
4071
|
resp.each_page do |page|
|
@@ -4165,7 +4159,7 @@ module Aws::EC2
|
|
4165
4159
|
name: "domain",
|
4166
4160
|
values: ["vpc"]
|
4167
4161
|
}])
|
4168
|
-
resp = Aws::Plugins::UserAgent.
|
4162
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
4169
4163
|
@client.describe_addresses(options)
|
4170
4164
|
end
|
4171
4165
|
resp.data.addresses.each do |a|
|
@@ -4254,7 +4248,7 @@ module Aws::EC2
|
|
4254
4248
|
# @return [VpcPeeringConnection::Collection]
|
4255
4249
|
def vpc_peering_connections(options = {})
|
4256
4250
|
batches = Enumerator.new do |y|
|
4257
|
-
resp = Aws::Plugins::UserAgent.
|
4251
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
4258
4252
|
@client.describe_vpc_peering_connections(options)
|
4259
4253
|
end
|
4260
4254
|
resp.each_page do |page|
|
@@ -4336,8 +4330,6 @@ module Aws::EC2
|
|
4336
4330
|
# * `vpc-id` - The ID of the VPC.
|
4337
4331
|
# @option options [Array<String>] :vpc_ids
|
4338
4332
|
# The IDs of the VPCs.
|
4339
|
-
#
|
4340
|
-
# Default: Describes all your VPCs.
|
4341
4333
|
# @option options [Boolean] :dry_run
|
4342
4334
|
# Checks whether you have the required permissions for the action,
|
4343
4335
|
# without actually making the request, and provides an error response.
|
@@ -4346,7 +4338,7 @@ module Aws::EC2
|
|
4346
4338
|
# @return [Vpc::Collection]
|
4347
4339
|
def vpcs(options = {})
|
4348
4340
|
batches = Enumerator.new do |y|
|
4349
|
-
resp = Aws::Plugins::UserAgent.
|
4341
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
4350
4342
|
@client.describe_vpcs(options)
|
4351
4343
|
end
|
4352
4344
|
resp.each_page do |page|
|