aws-sdk-ec2 1.539.0 → 1.541.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-ec2/client.rb +132 -95
- data/lib/aws-sdk-ec2/client_api.rb +4 -2
- data/lib/aws-sdk-ec2/instance.rb +34 -2
- data/lib/aws-sdk-ec2/resource.rb +20 -26
- data/lib/aws-sdk-ec2/subnet.rb +20 -26
- data/lib/aws-sdk-ec2/types.rb +66 -42
- data/lib/aws-sdk-ec2.rb +1 -1
- data/sig/client.rbs +18 -15
- data/sig/instance.rbs +5 -1
- data/sig/resource.rbs +2 -1
- data/sig/subnet.rbs +1 -1
- data/sig/types.rbs +27 -25
- metadata +3 -3
data/lib/aws-sdk-ec2/types.rb
CHANGED
@@ -8140,7 +8140,7 @@ module Aws::EC2
|
|
8140
8140
|
# The instance type for which to reserve capacity.
|
8141
8141
|
#
|
8142
8142
|
# <note markdown="1"> You can request future-dated Capacity Reservations for instance
|
8143
|
-
# types in the C, M, R, I, and
|
8143
|
+
# types in the C, M, R, I, T, and G instance families only.
|
8144
8144
|
#
|
8145
8145
|
# </note>
|
8146
8146
|
#
|
@@ -8181,9 +8181,9 @@ module Aws::EC2
|
|
8181
8181
|
# The number of instances for which to reserve capacity.
|
8182
8182
|
#
|
8183
8183
|
# <note markdown="1"> You can request future-dated Capacity Reservations for an instance
|
8184
|
-
# count with a minimum of
|
8184
|
+
# count with a minimum of 64 vCPUs. For example, if you request a
|
8185
8185
|
# future-dated Capacity Reservation for `m5.xlarge` instances, you
|
8186
|
-
# must request at least 25 instances (*
|
8186
|
+
# must request at least 25 instances (*16 * m5.xlarge = 64 vCPUs*).
|
8187
8187
|
#
|
8188
8188
|
# </note>
|
8189
8189
|
#
|
@@ -23560,8 +23560,9 @@ module Aws::EC2
|
|
23560
23560
|
# express (NVMe) is supported for EBS volumes (`required` \|
|
23561
23561
|
# `supported` \| `unsupported`).
|
23562
23562
|
#
|
23563
|
-
# * `free-tier-eligible` -
|
23564
|
-
#
|
23563
|
+
# * `free-tier-eligible` - A Boolean that indicates whether this
|
23564
|
+
# instance type can be used under the Amazon Web Services Free Tier
|
23565
|
+
# (`true` \| `false`).
|
23565
23566
|
#
|
23566
23567
|
# * `hibernation-supported` - Indicates whether On-Demand hibernation
|
23567
23568
|
# is supported (`true` \| `false`).
|
@@ -34549,14 +34550,18 @@ module Aws::EC2
|
|
34549
34550
|
# but not both. If neither is specified, Amazon EC2 automatically
|
34550
34551
|
# selects an Availability Zone within the Region.
|
34551
34552
|
#
|
34552
|
-
# This parameter is not supported when using [
|
34553
|
-
# [
|
34553
|
+
# This parameter is not supported when using [CreateFleet][1],
|
34554
|
+
# [CreateImage][2], [DescribeImages][3], [RequestSpotFleet][4],
|
34555
|
+
# [RequestSpotInstances][5], and [RunInstances][6].
|
34554
34556
|
#
|
34555
34557
|
#
|
34556
34558
|
#
|
34557
|
-
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/
|
34558
|
-
# [2]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/
|
34559
|
-
# [3]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/
|
34559
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateFleet.html
|
34560
|
+
# [2]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateImage.html
|
34561
|
+
# [3]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeImages.html
|
34562
|
+
# [4]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RequestSpotFleet.html
|
34563
|
+
# [5]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RequestSpotInstances.html
|
34564
|
+
# [6]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances.html
|
34560
34565
|
# @return [String]
|
34561
34566
|
#
|
34562
34567
|
# @!attribute [rw] encrypted
|
@@ -34653,14 +34658,18 @@ module Aws::EC2
|
|
34653
34658
|
# but not both. If neither is specified, Amazon EC2 automatically
|
34654
34659
|
# selects an Availability Zone within the Region.
|
34655
34660
|
#
|
34656
|
-
# This parameter is not supported when using [
|
34657
|
-
# [
|
34661
|
+
# This parameter is not supported when using [CreateFleet][1],
|
34662
|
+
# [CreateImage][2], [DescribeImages][3], [RequestSpotFleet][4],
|
34663
|
+
# [RequestSpotInstances][5], and [RunInstances][6].
|
34658
34664
|
#
|
34659
34665
|
#
|
34660
34666
|
#
|
34661
|
-
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/
|
34662
|
-
# [2]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/
|
34663
|
-
# [3]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/
|
34667
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateFleet.html
|
34668
|
+
# [2]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateImage.html
|
34669
|
+
# [3]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeImages.html
|
34670
|
+
# [4]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RequestSpotFleet.html
|
34671
|
+
# [5]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RequestSpotInstances.html
|
34672
|
+
# [6]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances.html
|
34664
34673
|
# @return [String]
|
34665
34674
|
#
|
34666
34675
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EbsBlockDevice AWS API Documentation
|
@@ -67489,12 +67498,12 @@ module Aws::EC2
|
|
67489
67498
|
# @return [String]
|
67490
67499
|
#
|
67491
67500
|
# @!attribute [rw] instance_type
|
67492
|
-
# The instance type. For more information, see [Amazon EC2
|
67493
|
-
#
|
67501
|
+
# The instance type. For more information, see [Amazon EC2 Instance
|
67502
|
+
# Types Guide][1].
|
67494
67503
|
#
|
67495
67504
|
#
|
67496
67505
|
#
|
67497
|
-
# [1]: https://docs.aws.amazon.com/
|
67506
|
+
# [1]: https://docs.aws.amazon.com/ec2/latest/instancetypes/instance-types.html
|
67498
67507
|
# @return [String]
|
67499
67508
|
#
|
67500
67509
|
# @!attribute [rw] ipv_6_address_count
|
@@ -67532,8 +67541,8 @@ module Aws::EC2
|
|
67532
67541
|
# @return [String]
|
67533
67542
|
#
|
67534
67543
|
# @!attribute [rw] key_name
|
67535
|
-
# The name of the key pair.
|
67536
|
-
#
|
67544
|
+
# The name of the key pair. For more information, see [Create a key
|
67545
|
+
# pair for your EC2 instance][1].
|
67537
67546
|
#
|
67538
67547
|
# If you do not specify a key pair, you can't connect to the instance
|
67539
67548
|
# unless you choose an AMI that is configured to allow users another
|
@@ -67541,8 +67550,7 @@ module Aws::EC2
|
|
67541
67550
|
#
|
67542
67551
|
#
|
67543
67552
|
#
|
67544
|
-
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/
|
67545
|
-
# [2]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ImportKeyPair.html
|
67553
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/create-key-pairs.html
|
67546
67554
|
# @return [String]
|
67547
67555
|
#
|
67548
67556
|
# @!attribute [rw] max_count
|
@@ -67599,16 +67607,11 @@ module Aws::EC2
|
|
67599
67607
|
# @return [String]
|
67600
67608
|
#
|
67601
67609
|
# @!attribute [rw] security_group_ids
|
67602
|
-
# The IDs of the security groups.
|
67603
|
-
# using [CreateSecurityGroup][1].
|
67610
|
+
# The IDs of the security groups.
|
67604
67611
|
#
|
67605
67612
|
# If you specify a network interface, you must specify any security
|
67606
67613
|
# groups as part of the network interface instead of using this
|
67607
67614
|
# parameter.
|
67608
|
-
#
|
67609
|
-
#
|
67610
|
-
#
|
67611
|
-
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateSecurityGroup.html
|
67612
67615
|
# @return [Array<String>]
|
67613
67616
|
#
|
67614
67617
|
# @!attribute [rw] security_groups
|
@@ -67632,11 +67635,11 @@ module Aws::EC2
|
|
67632
67635
|
# The user data to make available to the instance. User data must be
|
67633
67636
|
# base64-encoded. Depending on the tool or SDK that you're using, the
|
67634
67637
|
# base64-encoding might be performed for you. For more information,
|
67635
|
-
# see [
|
67638
|
+
# see [Run commands at launch using instance user data][1].
|
67636
67639
|
#
|
67637
67640
|
#
|
67638
67641
|
#
|
67639
|
-
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/
|
67642
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html
|
67640
67643
|
# @return [String]
|
67641
67644
|
#
|
67642
67645
|
# @!attribute [rw] elastic_gpu_specification
|
@@ -67746,25 +67749,24 @@ module Aws::EC2
|
|
67746
67749
|
#
|
67747
67750
|
# @!attribute [rw] metadata_options
|
67748
67751
|
# The metadata options for the instance. For more information, see
|
67749
|
-
# [Instance
|
67752
|
+
# [Configure the Instance Metadata Service options][1].
|
67750
67753
|
#
|
67751
67754
|
#
|
67752
67755
|
#
|
67753
|
-
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/
|
67756
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-instance-metadata-options.html
|
67754
67757
|
# @return [Types::InstanceMetadataOptionsRequest]
|
67755
67758
|
#
|
67756
67759
|
# @!attribute [rw] enclave_options
|
67757
67760
|
# Indicates whether the instance is enabled for Amazon Web Services
|
67758
|
-
# Nitro Enclaves. For more information, see [
|
67759
|
-
#
|
67760
|
-
# Enclaves User Guide*.
|
67761
|
+
# Nitro Enclaves. For more information, see [Amazon Web Services Nitro
|
67762
|
+
# Enclaves User Guide][1].
|
67761
67763
|
#
|
67762
67764
|
# You can't enable Amazon Web Services Nitro Enclaves and hibernation
|
67763
67765
|
# on the same instance.
|
67764
67766
|
#
|
67765
67767
|
#
|
67766
67768
|
#
|
67767
|
-
# [1]: https://docs.aws.amazon.com/enclaves/latest/user/
|
67769
|
+
# [1]: https://docs.aws.amazon.com/enclaves/latest/user/
|
67768
67770
|
# @return [Types::EnclaveOptionsRequest]
|
67769
67771
|
#
|
67770
67772
|
# @!attribute [rw] private_dns_name_options
|
@@ -67779,11 +67781,12 @@ module Aws::EC2
|
|
67779
67781
|
#
|
67780
67782
|
# @!attribute [rw] disable_api_stop
|
67781
67783
|
# Indicates whether an instance is enabled for stop protection. For
|
67782
|
-
# more information, see [
|
67784
|
+
# more information, see [Enable stop protection for your EC2
|
67785
|
+
# instances][1].
|
67783
67786
|
#
|
67784
67787
|
#
|
67785
67788
|
#
|
67786
|
-
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/
|
67789
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-stop-protection.html
|
67787
67790
|
# @return [Boolean]
|
67788
67791
|
#
|
67789
67792
|
# @!attribute [rw] enable_primary_ipv_6
|
@@ -67857,7 +67860,8 @@ module Aws::EC2
|
|
67857
67860
|
# randomly generated token is used for the request to ensure
|
67858
67861
|
# idempotency.
|
67859
67862
|
#
|
67860
|
-
# For more information, see [Ensuring
|
67863
|
+
# For more information, see [Ensuring idempotency in Amazon EC2 API
|
67864
|
+
# requests][1].
|
67861
67865
|
#
|
67862
67866
|
# Constraints: Maximum 64 ASCII characters
|
67863
67867
|
#
|
@@ -67866,7 +67870,7 @@ module Aws::EC2
|
|
67866
67870
|
#
|
67867
67871
|
#
|
67868
67872
|
#
|
67869
|
-
# [1]: https://docs.aws.amazon.com/
|
67873
|
+
# [1]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
|
67870
67874
|
# @return [String]
|
67871
67875
|
#
|
67872
67876
|
# @!attribute [rw] additional_info
|
@@ -72016,8 +72020,8 @@ module Aws::EC2
|
|
72016
72020
|
# @!attribute [rw] hibernate
|
72017
72021
|
# Hibernates the instance if the instance was enabled for hibernation
|
72018
72022
|
# at launch. If the instance cannot hibernate successfully, a normal
|
72019
|
-
# shutdown occurs. For more information, see [Hibernate your
|
72020
|
-
# instance][1] in the *Amazon EC2 User Guide*.
|
72023
|
+
# shutdown occurs. For more information, see [Hibernate your Amazon
|
72024
|
+
# EC2 instance][1] in the *Amazon EC2 User Guide*.
|
72021
72025
|
#
|
72022
72026
|
# Default: `false`
|
72023
72027
|
#
|
@@ -72026,6 +72030,17 @@ module Aws::EC2
|
|
72026
72030
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html
|
72027
72031
|
# @return [Boolean]
|
72028
72032
|
#
|
72033
|
+
# @!attribute [rw] skip_os_shutdown
|
72034
|
+
# Specifies whether to bypass the graceful OS shutdown process when
|
72035
|
+
# the instance is stopped.
|
72036
|
+
#
|
72037
|
+
# Bypassing the graceful OS shutdown might result in data loss or
|
72038
|
+
# corruption (for example, memory contents not flushed to disk or loss
|
72039
|
+
# of in-flight IOs) or skipped shutdown scripts.
|
72040
|
+
#
|
72041
|
+
# Default: `false`
|
72042
|
+
# @return [Boolean]
|
72043
|
+
#
|
72029
72044
|
# @!attribute [rw] dry_run
|
72030
72045
|
# Checks whether you have the required permissions for the operation,
|
72031
72046
|
# without actually making the request, and provides an error response.
|
@@ -72057,6 +72072,7 @@ module Aws::EC2
|
|
72057
72072
|
class StopInstancesRequest < Struct.new(
|
72058
72073
|
:instance_ids,
|
72059
72074
|
:hibernate,
|
72075
|
+
:skip_os_shutdown,
|
72060
72076
|
:dry_run,
|
72061
72077
|
:force)
|
72062
72078
|
SENSITIVE = []
|
@@ -72999,6 +73015,13 @@ module Aws::EC2
|
|
72999
73015
|
# request into smaller batches.
|
73000
73016
|
# @return [Array<String>]
|
73001
73017
|
#
|
73018
|
+
# @!attribute [rw] skip_os_shutdown
|
73019
|
+
# Specifies whether to bypass the graceful OS shutdown process when
|
73020
|
+
# the instance is terminated.
|
73021
|
+
#
|
73022
|
+
# Default: `false`
|
73023
|
+
# @return [Boolean]
|
73024
|
+
#
|
73002
73025
|
# @!attribute [rw] dry_run
|
73003
73026
|
# Checks whether you have the required permissions for the operation,
|
73004
73027
|
# without actually making the request, and provides an error response.
|
@@ -73010,6 +73033,7 @@ module Aws::EC2
|
|
73010
73033
|
#
|
73011
73034
|
class TerminateInstancesRequest < Struct.new(
|
73012
73035
|
:instance_ids,
|
73036
|
+
:skip_os_shutdown,
|
73013
73037
|
:dry_run)
|
73014
73038
|
SENSITIVE = []
|
73015
73039
|
include Aws::Structure
|