aws-sdk-ec2 1.271.0 → 1.296.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +125 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-ec2/client.rb +5106 -186
- data/lib/aws-sdk-ec2/client_api.rb +1812 -9
- data/lib/aws-sdk-ec2/dhcp_options.rb +2 -0
- data/lib/aws-sdk-ec2/image.rb +18 -2
- data/lib/aws-sdk-ec2/instance.rb +19 -3
- data/lib/aws-sdk-ec2/internet_gateway.rb +2 -0
- data/lib/aws-sdk-ec2/nat_gateway.rb +2 -0
- data/lib/aws-sdk-ec2/network_acl.rb +2 -0
- data/lib/aws-sdk-ec2/network_interface.rb +26 -0
- data/lib/aws-sdk-ec2/network_interface_association.rb +6 -0
- data/lib/aws-sdk-ec2/placement_group.rb +10 -1
- data/lib/aws-sdk-ec2/plugins/copy_encrypted_snapshot.rb +7 -1
- data/lib/aws-sdk-ec2/resource.rb +104 -36
- data/lib/aws-sdk-ec2/route.rb +9 -0
- data/lib/aws-sdk-ec2/route_table.rb +5 -0
- data/lib/aws-sdk-ec2/security_group.rb +4 -2
- data/lib/aws-sdk-ec2/snapshot.rb +20 -1
- data/lib/aws-sdk-ec2/subnet.rb +57 -16
- data/lib/aws-sdk-ec2/tag.rb +2 -0
- data/lib/aws-sdk-ec2/types.rb +8769 -546
- data/lib/aws-sdk-ec2/volume.rb +6 -1
- data/lib/aws-sdk-ec2/vpc.rb +25 -10
- data/lib/aws-sdk-ec2/waiters.rb +44 -0
- data/lib/aws-sdk-ec2.rb +1 -1
- metadata +4 -4
data/lib/aws-sdk-ec2/volume.rb
CHANGED
@@ -295,7 +295,7 @@ module Aws::EC2
|
|
295
295
|
# outpost_arn: "String",
|
296
296
|
# tag_specifications: [
|
297
297
|
# {
|
298
|
-
# resource_type: "capacity-reservation", # accepts capacity-reservation, client-vpn-endpoint, customer-gateway, carrier-gateway, 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, 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, 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, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-connect-peer, transit-gateway-multicast-domain, transit-gateway-route-table, volume, vpc, vpc-endpoint, vpc-endpoint-service, vpc-peering-connection, vpn-connection, vpn-gateway, vpc-flow-log
|
298
|
+
# resource_type: "capacity-reservation", # accepts capacity-reservation, client-vpn-endpoint, customer-gateway, carrier-gateway, 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, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-connect-peer, transit-gateway-multicast-domain, transit-gateway-route-table, volume, vpc, vpc-endpoint, vpc-endpoint-service, vpc-peering-connection, vpn-connection, vpn-gateway, vpc-flow-log
|
299
299
|
# tags: [
|
300
300
|
# {
|
301
301
|
# key: "String",
|
@@ -412,6 +412,8 @@ module Aws::EC2
|
|
412
412
|
# If you omit this parameter, we delete all user-defined tags for the
|
413
413
|
# specified resources. We do not delete Amazon Web Services-generated
|
414
414
|
# tags (tags that have the `aws:` prefix).
|
415
|
+
#
|
416
|
+
# Constraints: Up to 1000 tags.
|
415
417
|
# @return [Tag::Collection]
|
416
418
|
def delete_tags(options = {})
|
417
419
|
batch = []
|
@@ -663,6 +665,9 @@ module Aws::EC2
|
|
663
665
|
# * `status` - The status of the snapshot (`pending` \| `completed` \|
|
664
666
|
# `error`).
|
665
667
|
#
|
668
|
+
# * `storage-tier` - The storage tier of the snapshot (`archive` \|
|
669
|
+
# `standard`).
|
670
|
+
#
|
666
671
|
# * `tag`\:<key> - The key/value combination of a tag assigned to
|
667
672
|
# the resource. Use the tag key in the filter name and the tag value
|
668
673
|
# as the filter value. For example, to find all resources that have a
|
data/lib/aws-sdk-ec2/vpc.rb
CHANGED
@@ -346,7 +346,7 @@ module Aws::EC2
|
|
346
346
|
# dry_run: false,
|
347
347
|
# tag_specifications: [
|
348
348
|
# {
|
349
|
-
# resource_type: "capacity-reservation", # accepts capacity-reservation, client-vpn-endpoint, customer-gateway, carrier-gateway, 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, 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, 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, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-connect-peer, transit-gateway-multicast-domain, transit-gateway-route-table, volume, vpc, vpc-endpoint, vpc-endpoint-service, vpc-peering-connection, vpn-connection, vpn-gateway, vpc-flow-log
|
349
|
+
# resource_type: "capacity-reservation", # accepts capacity-reservation, client-vpn-endpoint, customer-gateway, carrier-gateway, 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, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-connect-peer, transit-gateway-multicast-domain, transit-gateway-route-table, volume, vpc, vpc-endpoint, vpc-endpoint-service, vpc-peering-connection, vpn-connection, vpn-gateway, vpc-flow-log
|
350
350
|
# tags: [
|
351
351
|
# {
|
352
352
|
# key: "String",
|
@@ -381,7 +381,7 @@ module Aws::EC2
|
|
381
381
|
# dry_run: false,
|
382
382
|
# tag_specifications: [
|
383
383
|
# {
|
384
|
-
# resource_type: "capacity-reservation", # accepts capacity-reservation, client-vpn-endpoint, customer-gateway, carrier-gateway, 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, 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, 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, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-connect-peer, transit-gateway-multicast-domain, transit-gateway-route-table, volume, vpc, vpc-endpoint, vpc-endpoint-service, vpc-peering-connection, vpn-connection, vpn-gateway, vpc-flow-log
|
384
|
+
# resource_type: "capacity-reservation", # accepts capacity-reservation, client-vpn-endpoint, customer-gateway, carrier-gateway, 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, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-connect-peer, transit-gateway-multicast-domain, transit-gateway-route-table, volume, vpc, vpc-endpoint, vpc-endpoint-service, vpc-peering-connection, vpn-connection, vpn-gateway, vpc-flow-log
|
385
385
|
# tags: [
|
386
386
|
# {
|
387
387
|
# key: "String",
|
@@ -417,7 +417,7 @@ module Aws::EC2
|
|
417
417
|
# group_name: "String", # required
|
418
418
|
# tag_specifications: [
|
419
419
|
# {
|
420
|
-
# resource_type: "capacity-reservation", # accepts capacity-reservation, client-vpn-endpoint, customer-gateway, carrier-gateway, 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, 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, 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, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-connect-peer, transit-gateway-multicast-domain, transit-gateway-route-table, volume, vpc, vpc-endpoint, vpc-endpoint-service, vpc-peering-connection, vpn-connection, vpn-gateway, vpc-flow-log
|
420
|
+
# resource_type: "capacity-reservation", # accepts capacity-reservation, client-vpn-endpoint, customer-gateway, carrier-gateway, 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, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-connect-peer, transit-gateway-multicast-domain, transit-gateway-route-table, volume, vpc, vpc-endpoint, vpc-endpoint-service, vpc-peering-connection, vpn-connection, vpn-gateway, vpc-flow-log
|
421
421
|
# tags: [
|
422
422
|
# {
|
423
423
|
# key: "String",
|
@@ -469,7 +469,7 @@ module Aws::EC2
|
|
469
469
|
# subnet = vpc.create_subnet({
|
470
470
|
# tag_specifications: [
|
471
471
|
# {
|
472
|
-
# resource_type: "capacity-reservation", # accepts capacity-reservation, client-vpn-endpoint, customer-gateway, carrier-gateway, 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, 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, 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, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-connect-peer, transit-gateway-multicast-domain, transit-gateway-route-table, volume, vpc, vpc-endpoint, vpc-endpoint-service, vpc-peering-connection, vpn-connection, vpn-gateway, vpc-flow-log
|
472
|
+
# resource_type: "capacity-reservation", # accepts capacity-reservation, client-vpn-endpoint, customer-gateway, carrier-gateway, 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, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-connect-peer, transit-gateway-multicast-domain, transit-gateway-route-table, volume, vpc, vpc-endpoint, vpc-endpoint-service, vpc-peering-connection, vpn-connection, vpn-gateway, vpc-flow-log
|
473
473
|
# tags: [
|
474
474
|
# {
|
475
475
|
# key: "String",
|
@@ -480,10 +480,11 @@ module Aws::EC2
|
|
480
480
|
# ],
|
481
481
|
# availability_zone: "String",
|
482
482
|
# availability_zone_id: "String",
|
483
|
-
# cidr_block: "String",
|
483
|
+
# cidr_block: "String",
|
484
484
|
# ipv_6_cidr_block: "String",
|
485
485
|
# outpost_arn: "String",
|
486
486
|
# dry_run: false,
|
487
|
+
# ipv_6_native: false,
|
487
488
|
# })
|
488
489
|
# @param [Hash] options ({})
|
489
490
|
# @option options [Array<Types::TagSpecification>] :tag_specifications
|
@@ -508,14 +509,18 @@ module Aws::EC2
|
|
508
509
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions
|
509
510
|
# @option options [String] :availability_zone_id
|
510
511
|
# The AZ ID or the Local Zone ID of the subnet.
|
511
|
-
# @option options [
|
512
|
+
# @option options [String] :cidr_block
|
512
513
|
# The IPv4 network range for the subnet, in CIDR notation. For example,
|
513
514
|
# `10.0.0.0/24`. We modify the specified CIDR block to its canonical
|
514
515
|
# form; for example, if you specify `100.68.0.18/18`, we modify it to
|
515
516
|
# `100.68.0.0/18`.
|
517
|
+
#
|
518
|
+
# This parameter is not supported for an IPv6 only subnet.
|
516
519
|
# @option options [String] :ipv_6_cidr_block
|
517
520
|
# The IPv6 network range for the subnet, in CIDR notation. The subnet
|
518
521
|
# size must use a /64 prefix length.
|
522
|
+
#
|
523
|
+
# This parameter is required for an IPv6 only subnet.
|
519
524
|
# @option options [String] :outpost_arn
|
520
525
|
# The Amazon Resource Name (ARN) of the Outpost. If you specify an
|
521
526
|
# Outpost ARN, you must also specify the Availability Zone of the
|
@@ -525,6 +530,8 @@ module Aws::EC2
|
|
525
530
|
# without actually making the request, and provides an error response.
|
526
531
|
# If you have the required permissions, the error response is
|
527
532
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
533
|
+
# @option options [Boolean] :ipv_6_native
|
534
|
+
# Indicates whether to create an IPv6 only subnet.
|
528
535
|
# @return [Subnet]
|
529
536
|
def create_subnet(options = {})
|
530
537
|
options = options.merge(vpc_id: @id)
|
@@ -600,6 +607,8 @@ module Aws::EC2
|
|
600
607
|
# If you omit this parameter, we delete all user-defined tags for the
|
601
608
|
# specified resources. We do not delete Amazon Web Services-generated
|
602
609
|
# tags (tags that have the `aws:` prefix).
|
610
|
+
#
|
611
|
+
# Constraints: Up to 1000 tags.
|
603
612
|
# @return [Tag::Collection]
|
604
613
|
def delete_tags(options = {})
|
605
614
|
batch = []
|
@@ -778,7 +787,7 @@ module Aws::EC2
|
|
778
787
|
# peer_region: "String",
|
779
788
|
# tag_specifications: [
|
780
789
|
# {
|
781
|
-
# resource_type: "capacity-reservation", # accepts capacity-reservation, client-vpn-endpoint, customer-gateway, carrier-gateway, 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, 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, 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, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-connect-peer, transit-gateway-multicast-domain, transit-gateway-route-table, volume, vpc, vpc-endpoint, vpc-endpoint-service, vpc-peering-connection, vpn-connection, vpn-gateway, vpc-flow-log
|
790
|
+
# resource_type: "capacity-reservation", # accepts capacity-reservation, client-vpn-endpoint, customer-gateway, carrier-gateway, 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, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-connect-peer, transit-gateway-multicast-domain, transit-gateway-route-table, volume, vpc, vpc-endpoint, vpc-endpoint-service, vpc-peering-connection, vpn-connection, vpn-gateway, vpc-flow-log
|
782
791
|
# tags: [
|
783
792
|
# {
|
784
793
|
# key: "String",
|
@@ -1016,7 +1025,10 @@ module Aws::EC2
|
|
1016
1025
|
# index for the instance in the launch group (for example, 0, 1, 2,
|
1017
1026
|
# and so on).
|
1018
1027
|
#
|
1019
|
-
# * `launch-time` - The time when the instance was launched
|
1028
|
+
# * `launch-time` - The time when the instance was launched, in the ISO
|
1029
|
+
# 8601 format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), for
|
1030
|
+
# example, `2021-09-29T11:04:43.305Z`. You can use a wildcard (`*`),
|
1031
|
+
# for example, `2021-09-29T*`, which matches an entire day.
|
1020
1032
|
#
|
1021
1033
|
# * `metadata-options.http-tokens` - The metadata request authorization
|
1022
1034
|
# state (`optional` \| `required`)
|
@@ -1930,8 +1942,8 @@ module Aws::EC2
|
|
1930
1942
|
# `cidrBlock` as the filter names.
|
1931
1943
|
#
|
1932
1944
|
# * `default-for-az` - Indicates whether this is the default subnet for
|
1933
|
-
# the Availability Zone. You can also use
|
1934
|
-
# name.
|
1945
|
+
# the Availability Zone (`true` \| `false`). You can also use
|
1946
|
+
# `defaultForAz` as the filter name.
|
1935
1947
|
#
|
1936
1948
|
# * `ipv6-cidr-block-association.ipv6-cidr-block` - An IPv6 CIDR block
|
1937
1949
|
# associated with the subnet.
|
@@ -1942,6 +1954,9 @@ module Aws::EC2
|
|
1942
1954
|
# * `ipv6-cidr-block-association.state` - The state of an IPv6 CIDR
|
1943
1955
|
# block associated with the subnet.
|
1944
1956
|
#
|
1957
|
+
# * `ipv6-native` - Indicates whether this is an IPv6 only subnet
|
1958
|
+
# (`true` \| `false`).
|
1959
|
+
#
|
1945
1960
|
# * `outpost-arn` - The Amazon Resource Name (ARN) of the Outpost.
|
1946
1961
|
#
|
1947
1962
|
# * `owner-id` - The ID of the Amazon Web Services account that owns the
|
data/lib/aws-sdk-ec2/waiters.rb
CHANGED
@@ -83,6 +83,7 @@ module Aws::EC2
|
|
83
83
|
# | instance_status_ok | {Client#describe_instance_status} | 15 | 40 |
|
84
84
|
# | instance_stopped | {Client#describe_instances} | 15 | 40 |
|
85
85
|
# | instance_terminated | {Client#describe_instances} | 15 | 40 |
|
86
|
+
# | internet_gateway_exists | {Client#describe_internet_gateways} | 5 | 6 |
|
86
87
|
# | key_pair_exists | {Client#describe_key_pairs} | 5 | 6 |
|
87
88
|
# | nat_gateway_available | {Client#describe_nat_gateways} | 15 | 40 |
|
88
89
|
# | network_interface_available | {Client#describe_network_interfaces} | 20 | 10 |
|
@@ -726,6 +727,49 @@ module Aws::EC2
|
|
726
727
|
|
727
728
|
end
|
728
729
|
|
730
|
+
class InternetGatewayExists
|
731
|
+
|
732
|
+
# @param [Hash] options
|
733
|
+
# @option options [required, Client] :client
|
734
|
+
# @option options [Integer] :max_attempts (6)
|
735
|
+
# @option options [Integer] :delay (5)
|
736
|
+
# @option options [Proc] :before_attempt
|
737
|
+
# @option options [Proc] :before_wait
|
738
|
+
def initialize(options)
|
739
|
+
@client = options.fetch(:client)
|
740
|
+
@waiter = Aws::Waiters::Waiter.new({
|
741
|
+
max_attempts: 6,
|
742
|
+
delay: 5,
|
743
|
+
poller: Aws::Waiters::Poller.new(
|
744
|
+
operation_name: :describe_internet_gateways,
|
745
|
+
acceptors: [
|
746
|
+
{
|
747
|
+
"expected" => true,
|
748
|
+
"matcher" => "path",
|
749
|
+
"state" => "success",
|
750
|
+
"argument" => "length(internet_gateways[].internet_gateway_id) > `0`"
|
751
|
+
},
|
752
|
+
{
|
753
|
+
"expected" => "InvalidInternetGateway.NotFound",
|
754
|
+
"matcher" => "error",
|
755
|
+
"state" => "retry"
|
756
|
+
}
|
757
|
+
]
|
758
|
+
)
|
759
|
+
}.merge(options))
|
760
|
+
end
|
761
|
+
|
762
|
+
# @option (see Client#describe_internet_gateways)
|
763
|
+
# @return (see Client#describe_internet_gateways)
|
764
|
+
def wait(params = {})
|
765
|
+
@waiter.wait(client: @client, params: params)
|
766
|
+
end
|
767
|
+
|
768
|
+
# @api private
|
769
|
+
attr_reader :waiter
|
770
|
+
|
771
|
+
end
|
772
|
+
|
729
773
|
class KeyPairExists
|
730
774
|
|
731
775
|
# @param [Hash] options
|
data/lib/aws-sdk-ec2.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-ec2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.296.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sigv4
|
@@ -33,7 +33,7 @@ dependencies:
|
|
33
33
|
version: '3'
|
34
34
|
- - ">="
|
35
35
|
- !ruby/object:Gem::Version
|
36
|
-
version: 3.
|
36
|
+
version: 3.125.0
|
37
37
|
type: :runtime
|
38
38
|
prerelease: false
|
39
39
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
version: '3'
|
44
44
|
- - ">="
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: 3.
|
46
|
+
version: 3.125.0
|
47
47
|
description: Official AWS Ruby gem for Amazon Elastic Compute Cloud (Amazon EC2).
|
48
48
|
This gem is part of the AWS SDK for Ruby.
|
49
49
|
email:
|