aws-sdk-ec2 1.376.0 → 1.377.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-ec2/client.rb +68 -125
- data/lib/aws-sdk-ec2/client_api.rb +10 -0
- data/lib/aws-sdk-ec2/instance.rb +14 -16
- data/lib/aws-sdk-ec2/placement_group.rb +0 -6
- data/lib/aws-sdk-ec2/resource.rb +15 -21
- data/lib/aws-sdk-ec2/subnet.rb +14 -20
- data/lib/aws-sdk-ec2/types.rb +124 -127
- data/lib/aws-sdk-ec2/vpc.rb +0 -6
- data/lib/aws-sdk-ec2.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b85ac161b3ea25a4be9adabf0ac03d23f4ec5bb3703227a038f98c60f540af41
|
4
|
+
data.tar.gz: 0aaf0775db95228242692662f546362ce19f8c2de09891f5392ff8e045f31dc8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02dca290331dfbf834952e2a96f2e593becd66d27451ec65d689ee9cab7f54f135e16ebd949f67dc8ba5795d544f2e7bf9ba2743a519cbeb0dc4c5073b946c46
|
7
|
+
data.tar.gz: e7297355fb84442f2a7be7fed33ccae626ce27aa85f3eccd1551c57fdfd6ee1c9ef4c2df613c90ca621fed3eb53250f3c37884c48b8a89416a0c7f1c2f42ead3
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.377.0
|
data/lib/aws-sdk-ec2/client.rb
CHANGED
@@ -4211,7 +4211,7 @@ module Aws::EC2
|
|
4211
4211
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
4212
4212
|
#
|
4213
4213
|
# @option params [required, Array<String>] :spot_instance_request_ids
|
4214
|
-
#
|
4214
|
+
# The IDs of the Spot Instance requests.
|
4215
4215
|
#
|
4216
4216
|
# @return [Types::CancelSpotInstanceRequestsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
4217
4217
|
#
|
@@ -8123,6 +8123,7 @@ module Aws::EC2
|
|
8123
8123
|
# cpu_options: {
|
8124
8124
|
# core_count: 1,
|
8125
8125
|
# threads_per_core: 1,
|
8126
|
+
# amd_sev_snp: "enabled", # accepts enabled, disabled
|
8126
8127
|
# },
|
8127
8128
|
# capacity_reservation_specification: {
|
8128
8129
|
# capacity_reservation_preference: "open", # accepts open, none
|
@@ -8506,6 +8507,7 @@ module Aws::EC2
|
|
8506
8507
|
# cpu_options: {
|
8507
8508
|
# core_count: 1,
|
8508
8509
|
# threads_per_core: 1,
|
8510
|
+
# amd_sev_snp: "enabled", # accepts enabled, disabled
|
8509
8511
|
# },
|
8510
8512
|
# capacity_reservation_specification: {
|
8511
8513
|
# capacity_reservation_preference: "open", # accepts open, none
|
@@ -8688,6 +8690,7 @@ module Aws::EC2
|
|
8688
8690
|
# resp.launch_template_version.launch_template_data.credit_specification.cpu_credits #=> String
|
8689
8691
|
# resp.launch_template_version.launch_template_data.cpu_options.core_count #=> Integer
|
8690
8692
|
# resp.launch_template_version.launch_template_data.cpu_options.threads_per_core #=> Integer
|
8693
|
+
# resp.launch_template_version.launch_template_data.cpu_options.amd_sev_snp #=> String, one of "enabled", "disabled"
|
8691
8694
|
# resp.launch_template_version.launch_template_data.capacity_reservation_specification.capacity_reservation_preference #=> String, one of "open", "none"
|
8692
8695
|
# resp.launch_template_version.launch_template_data.capacity_reservation_specification.capacity_reservation_target.capacity_reservation_id #=> String
|
8693
8696
|
# resp.launch_template_version.launch_template_data.capacity_reservation_specification.capacity_reservation_target.capacity_reservation_resource_group_arn #=> String
|
@@ -24044,8 +24047,8 @@ module Aws::EC2
|
|
24044
24047
|
# @option params [Array<Types::Filter>] :filters
|
24045
24048
|
# One or more filters. Filter names and values are case-sensitive.
|
24046
24049
|
#
|
24047
|
-
# * `auto-recovery-supported` - Indicates whether
|
24048
|
-
# supported (`true` \| `false`).
|
24050
|
+
# * `auto-recovery-supported` - Indicates whether Amazon CloudWatch
|
24051
|
+
# action based recovery is supported (`true` \| `false`).
|
24049
24052
|
#
|
24050
24053
|
# * `bare-metal` - Indicates whether it is a bare metal instance type
|
24051
24054
|
# (`true` \| `false`).
|
@@ -24241,6 +24244,8 @@ module Aws::EC2
|
|
24241
24244
|
# resp.instance_types[0].processor_info.supported_architectures #=> Array
|
24242
24245
|
# resp.instance_types[0].processor_info.supported_architectures[0] #=> String, one of "i386", "x86_64", "arm64", "x86_64_mac", "arm64_mac"
|
24243
24246
|
# resp.instance_types[0].processor_info.sustained_clock_speed_in_ghz #=> Float
|
24247
|
+
# resp.instance_types[0].processor_info.supported_features #=> Array
|
24248
|
+
# resp.instance_types[0].processor_info.supported_features[0] #=> String, one of "amd-sev-snp"
|
24244
24249
|
# resp.instance_types[0].v_cpu_info.default_v_cpus #=> Integer
|
24245
24250
|
# resp.instance_types[0].v_cpu_info.default_cores #=> Integer
|
24246
24251
|
# resp.instance_types[0].v_cpu_info.default_threads_per_core #=> Integer
|
@@ -24374,12 +24379,6 @@ module Aws::EC2
|
|
24374
24379
|
#
|
24375
24380
|
# * `dns-name` - The public DNS name of the instance.
|
24376
24381
|
#
|
24377
|
-
# * `group-id` - The ID of the security group for the instance.
|
24378
|
-
# EC2-Classic only.
|
24379
|
-
#
|
24380
|
-
# * `group-name` - The name of the security group for the instance.
|
24381
|
-
# EC2-Classic only.
|
24382
|
-
#
|
24383
24382
|
# * `hibernation-options.configured` - A Boolean that indicates whether
|
24384
24383
|
# the instance is enabled for hibernation. A value of `true` means
|
24385
24384
|
# that the instance is enabled for hibernation.
|
@@ -24859,6 +24858,7 @@ module Aws::EC2
|
|
24859
24858
|
# resp.reservations[0].instances[0].virtualization_type #=> String, one of "hvm", "paravirtual"
|
24860
24859
|
# resp.reservations[0].instances[0].cpu_options.core_count #=> Integer
|
24861
24860
|
# resp.reservations[0].instances[0].cpu_options.threads_per_core #=> Integer
|
24861
|
+
# resp.reservations[0].instances[0].cpu_options.amd_sev_snp #=> String, one of "enabled", "disabled"
|
24862
24862
|
# resp.reservations[0].instances[0].capacity_reservation_id #=> String
|
24863
24863
|
# resp.reservations[0].instances[0].capacity_reservation_specification.capacity_reservation_preference #=> String, one of "open", "none"
|
24864
24864
|
# resp.reservations[0].instances[0].capacity_reservation_specification.capacity_reservation_target.capacity_reservation_id #=> String
|
@@ -25912,6 +25912,7 @@ module Aws::EC2
|
|
25912
25912
|
# resp.launch_template_versions[0].launch_template_data.credit_specification.cpu_credits #=> String
|
25913
25913
|
# resp.launch_template_versions[0].launch_template_data.cpu_options.core_count #=> Integer
|
25914
25914
|
# resp.launch_template_versions[0].launch_template_data.cpu_options.threads_per_core #=> Integer
|
25915
|
+
# resp.launch_template_versions[0].launch_template_data.cpu_options.amd_sev_snp #=> String, one of "enabled", "disabled"
|
25915
25916
|
# resp.launch_template_versions[0].launch_template_data.capacity_reservation_specification.capacity_reservation_preference #=> String, one of "open", "none"
|
25916
25917
|
# resp.launch_template_versions[0].launch_template_data.capacity_reservation_specification.capacity_reservation_target.capacity_reservation_id #=> String
|
25917
25918
|
# resp.launch_template_versions[0].launch_template_data.capacity_reservation_specification.capacity_reservation_target.capacity_reservation_resource_group_arn #=> String
|
@@ -29384,17 +29385,12 @@ module Aws::EC2
|
|
29384
29385
|
# `Availability Zone`).
|
29385
29386
|
#
|
29386
29387
|
# * `product-description` - The Reserved Instance product platform
|
29387
|
-
# description
|
29388
|
-
#
|
29389
|
-
#
|
29390
|
-
#
|
29391
|
-
#
|
29392
|
-
# `
|
29393
|
-
# `Windows (Amazon VPC)` \| `Windows with SQL Server Standard` \|
|
29394
|
-
# `Windows with SQL Server Standard (Amazon VPC)` \| `Windows with SQL
|
29395
|
-
# Server Web` \| `Windows with SQL Server Web (Amazon VPC)` \|
|
29396
|
-
# `Windows with SQL Server Enterprise` \| `Windows with SQL Server
|
29397
|
-
# Enterprise (Amazon VPC)`).
|
29388
|
+
# description (`Linux/UNIX` \| `Linux with SQL Server Standard` \|
|
29389
|
+
# `Linux with SQL Server Web` \| `Linux with SQL Server Enterprise` \|
|
29390
|
+
# `SUSE Linux` \| `Red Hat Enterprise Linux` \| `Red Hat Enterprise
|
29391
|
+
# Linux with HA` \| `Windows` \| `Windows with SQL Server Standard` \|
|
29392
|
+
# `Windows with SQL Server Web` \| `Windows with SQL Server
|
29393
|
+
# Enterprise`).
|
29398
29394
|
#
|
29399
29395
|
# * `reserved-instances-id` - The ID of the Reserved Instance.
|
29400
29396
|
#
|
@@ -29621,9 +29617,6 @@ module Aws::EC2
|
|
29621
29617
|
# * `modification-result.target-configuration.instance-type` - The
|
29622
29618
|
# instance type of the new Reserved Instances.
|
29623
29619
|
#
|
29624
|
-
# * `modification-result.target-configuration.platform` - The network
|
29625
|
-
# platform of the new Reserved Instances (`EC2-Classic` \| `EC2-VPC`).
|
29626
|
-
#
|
29627
29620
|
# * `reserved-instances-id` - The ID of the Reserved Instances modified.
|
29628
29621
|
#
|
29629
29622
|
# * `reserved-instances-modification-id` - The ID of the modification
|
@@ -29735,17 +29728,12 @@ module Aws::EC2
|
|
29735
29728
|
# the Reserved Instance Marketplace are listed.
|
29736
29729
|
#
|
29737
29730
|
# * `product-description` - The Reserved Instance product platform
|
29738
|
-
# description
|
29739
|
-
#
|
29740
|
-
#
|
29741
|
-
#
|
29742
|
-
#
|
29743
|
-
#
|
29744
|
-
# `Windows` \| `Windows (Amazon VPC)` \| `Windows with SQL Server
|
29745
|
-
# Standard` \| `Windows with SQL Server Standard (Amazon VPC)` \|
|
29746
|
-
# `Windows with SQL Server Web` \| ` Windows with SQL Server Web
|
29747
|
-
# (Amazon VPC)` \| `Windows with SQL Server Enterprise` \| `Windows
|
29748
|
-
# with SQL Server Enterprise (Amazon VPC)`)
|
29731
|
+
# description (`Linux/UNIX` \| `Linux with SQL Server Standard` \|
|
29732
|
+
# `Linux with SQL Server Web` \| `Linux with SQL Server Enterprise` \|
|
29733
|
+
# `SUSE Linux` \| `Red Hat Enterprise Linux` \| `Red Hat Enterprise
|
29734
|
+
# Linux with HA` \| `Windows` \| `Windows with SQL Server Standard` \|
|
29735
|
+
# `Windows with SQL Server Web` \| `Windows with SQL Server
|
29736
|
+
# Enterprise`).
|
29749
29737
|
#
|
29750
29738
|
# * `reserved-instances-offering-id` - The Reserved Instances offering
|
29751
29739
|
# ID.
|
@@ -30137,9 +30125,6 @@ module Aws::EC2
|
|
30137
30125
|
#
|
30138
30126
|
# * `instance-type` - The instance type (for example, `c4.large`).
|
30139
30127
|
#
|
30140
|
-
# * `network-platform` - The network platform (`EC2-Classic` or
|
30141
|
-
# `EC2-VPC`).
|
30142
|
-
#
|
30143
30128
|
# * `platform` - The platform (`Linux/UNIX` or `Windows`).
|
30144
30129
|
#
|
30145
30130
|
# @option params [required, Types::SlotDateTimeRangeRequest] :first_slot_start_time_range
|
@@ -30298,9 +30283,6 @@ module Aws::EC2
|
|
30298
30283
|
#
|
30299
30284
|
# * `instance-type` - The instance type (for example, `c4.large`).
|
30300
30285
|
#
|
30301
|
-
# * `network-platform` - The network platform (`EC2-Classic` or
|
30302
|
-
# `EC2-VPC`).
|
30303
|
-
#
|
30304
30286
|
# * `platform` - The platform (`Linux/UNIX` or `Windows`).
|
30305
30287
|
#
|
30306
30288
|
# @option params [Integer] :max_results
|
@@ -31867,7 +31849,7 @@ module Aws::EC2
|
|
31867
31849
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeInstances
|
31868
31850
|
#
|
31869
31851
|
# @option params [Array<Types::Filter>] :filters
|
31870
|
-
#
|
31852
|
+
# The filters.
|
31871
31853
|
#
|
31872
31854
|
# * `availability-zone-group` - The Availability Zone group.
|
31873
31855
|
#
|
@@ -31995,7 +31977,7 @@ module Aws::EC2
|
|
31995
31977
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
31996
31978
|
#
|
31997
31979
|
# @option params [Array<String>] :spot_instance_request_ids
|
31998
|
-
#
|
31980
|
+
# The IDs of the Spot Instance requests.
|
31999
31981
|
#
|
32000
31982
|
# @option params [String] :next_token
|
32001
31983
|
# The token returned from a previous paginated request. Pagination
|
@@ -32199,7 +32181,7 @@ module Aws::EC2
|
|
32199
32181
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-spot-instances-history.html
|
32200
32182
|
#
|
32201
32183
|
# @option params [Array<Types::Filter>] :filters
|
32202
|
-
#
|
32184
|
+
# The filters.
|
32203
32185
|
#
|
32204
32186
|
# * `availability-zone` - The Availability Zone for which prices should
|
32205
32187
|
# be returned.
|
@@ -40832,6 +40814,7 @@ module Aws::EC2
|
|
40832
40814
|
# resp.launch_template_data.credit_specification.cpu_credits #=> String
|
40833
40815
|
# resp.launch_template_data.cpu_options.core_count #=> Integer
|
40834
40816
|
# resp.launch_template_data.cpu_options.threads_per_core #=> Integer
|
40817
|
+
# resp.launch_template_data.cpu_options.amd_sev_snp #=> String, one of "enabled", "disabled"
|
40835
40818
|
# resp.launch_template_data.capacity_reservation_specification.capacity_reservation_preference #=> String, one of "open", "none"
|
40836
40819
|
# resp.launch_template_data.capacity_reservation_specification.capacity_reservation_target.capacity_reservation_id #=> String
|
40837
40820
|
# resp.launch_template_data.capacity_reservation_specification.capacity_reservation_target.capacity_reservation_resource_group_arn #=> String
|
@@ -44795,9 +44778,9 @@ module Aws::EC2
|
|
44795
44778
|
#
|
44796
44779
|
# <b>Note: </b>Using this action to change the security groups
|
44797
44780
|
# associated with an elastic network interface (ENI) attached to an
|
44798
|
-
# instance
|
44799
|
-
#
|
44800
|
-
#
|
44781
|
+
# instance can result in an error if the instance has more than one ENI.
|
44782
|
+
# To change the security groups associated with an ENI attached to an
|
44783
|
+
# instance that has multiple ENIs, we recommend that you use the
|
44801
44784
|
# ModifyNetworkInterfaceAttribute action.
|
44802
44785
|
#
|
44803
44786
|
# To modify some attributes, the instance must be stopped. For more
|
@@ -44866,10 +44849,9 @@ module Aws::EC2
|
|
44866
44849
|
# option with a PV instance can make it unreachable.
|
44867
44850
|
#
|
44868
44851
|
# @option params [Array<String>] :groups
|
44869
|
-
#
|
44870
|
-
#
|
44871
|
-
# group, even if it's just the default security group for the VPC.
|
44872
|
-
# must specify the security group ID, not the security group name.
|
44852
|
+
# Replaces the security groups of the instance with the specified
|
44853
|
+
# security groups. You must specify the ID of at least one security
|
44854
|
+
# group, even if it's just the default security group for the VPC.
|
44873
44855
|
#
|
44874
44856
|
# @option params [required, String] :instance_id
|
44875
44857
|
# The ID of the instance.
|
@@ -46410,17 +46392,9 @@ module Aws::EC2
|
|
46410
46392
|
# For more information, see [Modifying Reserved Instances][1] in the
|
46411
46393
|
# *Amazon EC2 User Guide*.
|
46412
46394
|
#
|
46413
|
-
# <note markdown="1"> We are retiring EC2-Classic. We recommend that you migrate from
|
46414
|
-
# EC2-Classic to a VPC. For more information, see [Migrate from
|
46415
|
-
# EC2-Classic to a VPC][2] in the *Amazon Elastic Compute Cloud User
|
46416
|
-
# Guide*.
|
46417
|
-
#
|
46418
|
-
# </note>
|
46419
|
-
#
|
46420
46395
|
#
|
46421
46396
|
#
|
46422
46397
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-modifying.html
|
46423
|
-
# [2]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-migrate.html
|
46424
46398
|
#
|
46425
46399
|
# @option params [required, Array<String>] :reserved_instances_ids
|
46426
46400
|
# The IDs of the Reserved Instances to modify.
|
@@ -49877,18 +49851,10 @@ module Aws::EC2
|
|
49877
49851
|
# For more information, see [Reserved Instances][1] and [Reserved
|
49878
49852
|
# Instance Marketplace][2] in the *Amazon EC2 User Guide*.
|
49879
49853
|
#
|
49880
|
-
# <note markdown="1"> We are retiring EC2-Classic. We recommend that you migrate from
|
49881
|
-
# EC2-Classic to a VPC. For more information, see [Migrate from
|
49882
|
-
# EC2-Classic to a VPC][3] in the *Amazon Elastic Compute Cloud User
|
49883
|
-
# Guide*.
|
49884
|
-
#
|
49885
|
-
# </note>
|
49886
|
-
#
|
49887
49854
|
#
|
49888
49855
|
#
|
49889
49856
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/concepts-on-demand-reserved-instances.html
|
49890
49857
|
# [2]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-market-general.html
|
49891
|
-
# [3]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-migrate.html
|
49892
49858
|
#
|
49893
49859
|
# @option params [required, Integer] :instance_count
|
49894
49860
|
# The number of Reserved Instances to purchase.
|
@@ -52104,18 +52070,10 @@ module Aws::EC2
|
|
52104
52070
|
# Spot Instances, see [Which is the best Spot request method to use?][2]
|
52105
52071
|
# in the *Amazon EC2 User Guide for Linux Instances*.
|
52106
52072
|
#
|
52107
|
-
# <note markdown="1"> We are retiring EC2-Classic. We recommend that you migrate from
|
52108
|
-
# EC2-Classic to a VPC. For more information, see [Migrate from
|
52109
|
-
# EC2-Classic to a VPC][3] in the *Amazon EC2 User Guide for Linux
|
52110
|
-
# Instances*.
|
52111
|
-
#
|
52112
|
-
# </note>
|
52113
|
-
#
|
52114
52073
|
#
|
52115
52074
|
#
|
52116
52075
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-requests.html
|
52117
52076
|
# [2]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-best-practices.html#which-spot-request-method-to-use
|
52118
|
-
# [3]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-migrate.html
|
52119
52077
|
#
|
52120
52078
|
# @option params [String] :availability_zone_group
|
52121
52079
|
# The user-specified name for a logical grouping of requests.
|
@@ -53496,32 +53454,24 @@ module Aws::EC2
|
|
53496
53454
|
# You can specify a number of options, or leave the default options. The
|
53497
53455
|
# following rules apply:
|
53498
53456
|
#
|
53499
|
-
# *
|
53500
|
-
#
|
53501
|
-
#
|
53502
|
-
#
|
53503
|
-
# * \[EC2-Classic\] If don't specify an Availability Zone, we choose
|
53504
|
-
# one for you.
|
53505
|
-
#
|
53506
|
-
# * Some instance types must be launched into a VPC. If you do not have
|
53507
|
-
# a default VPC, or if you do not specify a subnet ID, the request
|
53508
|
-
# fails. For more information, see [Instance types available only in a
|
53509
|
-
# VPC][1].
|
53457
|
+
# * If you don't specify a subnet ID, we choose a default subnet from
|
53458
|
+
# your default VPC for you. If you don't have a default VPC, you must
|
53459
|
+
# specify a subnet ID in the request.
|
53510
53460
|
#
|
53511
|
-
# *
|
53512
|
-
#
|
53513
|
-
#
|
53461
|
+
# * All instances have a network interface with a primary private IPv4
|
53462
|
+
# address. If you don't specify this address, we choose one from the
|
53463
|
+
# IPv4 range of your subnet.
|
53514
53464
|
#
|
53515
53465
|
# * Not all instance types support IPv6 addresses. For more information,
|
53516
|
-
# see [Instance types][
|
53466
|
+
# see [Instance types][1].
|
53517
53467
|
#
|
53518
53468
|
# * If you don't specify a security group ID, we use the default
|
53519
|
-
# security group. For more information, see [Security groups][
|
53469
|
+
# security group. For more information, see [Security groups][2].
|
53520
53470
|
#
|
53521
53471
|
# * If any of the AMIs have a product code attached for which the user
|
53522
53472
|
# has not subscribed, the request fails.
|
53523
53473
|
#
|
53524
|
-
# You can create a [launch template][
|
53474
|
+
# You can create a [launch template][3], which is a resource that
|
53525
53475
|
# contains the parameters to launch an instance. When you launch an
|
53526
53476
|
# instance using RunInstances, you can specify the launch template
|
53527
53477
|
# instead of specifying the launch parameters.
|
@@ -53534,33 +53484,25 @@ module Aws::EC2
|
|
53534
53484
|
# You can check the state of your instance using DescribeInstances. You
|
53535
53485
|
# can tag instances and EBS volumes during launch, after launch, or
|
53536
53486
|
# both. For more information, see CreateTags and [Tagging your Amazon
|
53537
|
-
# EC2 resources][
|
53487
|
+
# EC2 resources][4].
|
53538
53488
|
#
|
53539
53489
|
# Linux instances have access to the public key of the key pair at boot.
|
53540
53490
|
# You can use this key to provide secure access to the instance. Amazon
|
53541
53491
|
# EC2 public images use this feature to provide secure access without
|
53542
|
-
# passwords. For more information, see [Key pairs][
|
53492
|
+
# passwords. For more information, see [Key pairs][5].
|
53543
53493
|
#
|
53544
53494
|
# For troubleshooting, see [What to do if an instance immediately
|
53545
|
-
# terminates][
|
53546
|
-
#
|
53547
|
-
# <note markdown="1"> We are retiring EC2-Classic. We recommend that you migrate from
|
53548
|
-
# EC2-Classic to a VPC. For more information, see [Migrate from
|
53549
|
-
# EC2-Classic to a VPC][9] in the *Amazon EC2 User Guide*.
|
53550
|
-
#
|
53551
|
-
# </note>
|
53495
|
+
# terminates][6], and [Troubleshooting connecting to your instance][7].
|
53552
53496
|
#
|
53553
53497
|
#
|
53554
53498
|
#
|
53555
|
-
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/
|
53556
|
-
# [2]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/
|
53557
|
-
# [3]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/
|
53558
|
-
# [4]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/
|
53559
|
-
# [5]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/
|
53560
|
-
# [6]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/
|
53561
|
-
# [7]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/
|
53562
|
-
# [8]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesConnecting.html
|
53563
|
-
# [9]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-migrate.html
|
53499
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html
|
53500
|
+
# [2]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html
|
53501
|
+
# [3]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html
|
53502
|
+
# [4]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html
|
53503
|
+
# [5]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html
|
53504
|
+
# [6]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_InstanceStraightToTerminated.html
|
53505
|
+
# [7]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesConnecting.html
|
53564
53506
|
#
|
53565
53507
|
# @option params [Array<Types::BlockDeviceMapping>] :block_device_mappings
|
53566
53508
|
# The block device mapping, which defines the EBS volumes and instance
|
@@ -53587,22 +53529,21 @@ module Aws::EC2
|
|
53587
53529
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html
|
53588
53530
|
#
|
53589
53531
|
# @option params [Integer] :ipv_6_address_count
|
53590
|
-
#
|
53591
|
-
#
|
53592
|
-
#
|
53593
|
-
#
|
53594
|
-
#
|
53595
|
-
# launch.
|
53532
|
+
# The number of IPv6 addresses to associate with the primary network
|
53533
|
+
# interface. Amazon EC2 chooses the IPv6 addresses from the range of
|
53534
|
+
# your subnet. You cannot specify this option and the option to assign
|
53535
|
+
# specific IPv6 addresses in the same request. You can specify this
|
53536
|
+
# option if you've specified a minimum number of instances to launch.
|
53596
53537
|
#
|
53597
53538
|
# You cannot specify this option and the network interfaces option in
|
53598
53539
|
# the same request.
|
53599
53540
|
#
|
53600
53541
|
# @option params [Array<Types::InstanceIpv6Address>] :ipv_6_addresses
|
53601
|
-
#
|
53602
|
-
#
|
53603
|
-
# option
|
53604
|
-
#
|
53605
|
-
#
|
53542
|
+
# The IPv6 addresses from the range of the subnet to associate with the
|
53543
|
+
# primary network interface. You cannot specify this option and the
|
53544
|
+
# option to assign a number of IPv6 addresses in the same request. You
|
53545
|
+
# cannot specify this option if you've specified a minimum number of
|
53546
|
+
# instances to launch.
|
53606
53547
|
#
|
53607
53548
|
# You cannot specify this option and the network interfaces option in
|
53608
53549
|
# the same request.
|
@@ -53691,7 +53632,7 @@ module Aws::EC2
|
|
53691
53632
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateSecurityGroup.html
|
53692
53633
|
#
|
53693
53634
|
# @option params [Array<String>] :security_groups
|
53694
|
-
# \[
|
53635
|
+
# \[Default VPC\] The names of the security groups.
|
53695
53636
|
#
|
53696
53637
|
# If you specify a network interface, you must specify any security
|
53697
53638
|
# groups as part of the network interface.
|
@@ -53699,7 +53640,7 @@ module Aws::EC2
|
|
53699
53640
|
# Default: Amazon EC2 uses the default security group.
|
53700
53641
|
#
|
53701
53642
|
# @option params [String] :subnet_id
|
53702
|
-
#
|
53643
|
+
# The ID of the subnet to launch the instance into.
|
53703
53644
|
#
|
53704
53645
|
# If you specify a network interface, you must specify any subnets as
|
53705
53646
|
# part of the network interface.
|
@@ -53783,8 +53724,8 @@ module Aws::EC2
|
|
53783
53724
|
# as part of the network interface.
|
53784
53725
|
#
|
53785
53726
|
# @option params [String] :private_ip_address
|
53786
|
-
#
|
53787
|
-
#
|
53727
|
+
# The primary IPv4 address. You must specify a value from the IPv4
|
53728
|
+
# address range of the subnet.
|
53788
53729
|
#
|
53789
53730
|
# Only one private IP address can be designated as primary. You can't
|
53790
53731
|
# specify this option if you've specified the option to designate a
|
@@ -54138,6 +54079,7 @@ module Aws::EC2
|
|
54138
54079
|
# cpu_options: {
|
54139
54080
|
# core_count: 1,
|
54140
54081
|
# threads_per_core: 1,
|
54082
|
+
# amd_sev_snp: "enabled", # accepts enabled, disabled
|
54141
54083
|
# },
|
54142
54084
|
# capacity_reservation_specification: {
|
54143
54085
|
# capacity_reservation_preference: "open", # accepts open, none
|
@@ -54294,6 +54236,7 @@ module Aws::EC2
|
|
54294
54236
|
# resp.instances[0].virtualization_type #=> String, one of "hvm", "paravirtual"
|
54295
54237
|
# resp.instances[0].cpu_options.core_count #=> Integer
|
54296
54238
|
# resp.instances[0].cpu_options.threads_per_core #=> Integer
|
54239
|
+
# resp.instances[0].cpu_options.amd_sev_snp #=> String, one of "enabled", "disabled"
|
54297
54240
|
# resp.instances[0].capacity_reservation_id #=> String
|
54298
54241
|
# resp.instances[0].capacity_reservation_specification.capacity_reservation_preference #=> String, one of "open", "none"
|
54299
54242
|
# resp.instances[0].capacity_reservation_specification.capacity_reservation_target.capacity_reservation_id #=> String
|
@@ -56836,7 +56779,7 @@ module Aws::EC2
|
|
56836
56779
|
params: params,
|
56837
56780
|
config: config)
|
56838
56781
|
context[:gem_name] = 'aws-sdk-ec2'
|
56839
|
-
context[:gem_version] = '1.
|
56782
|
+
context[:gem_version] = '1.377.0'
|
56840
56783
|
Seahorse::Client::Request.new(handlers, context)
|
56841
56784
|
end
|
56842
56785
|
|
@@ -92,6 +92,7 @@ module Aws::EC2
|
|
92
92
|
AllowsMultipleInstanceTypes = Shapes::StringShape.new(name: 'AllowsMultipleInstanceTypes')
|
93
93
|
AlternatePathHint = Shapes::StructureShape.new(name: 'AlternatePathHint')
|
94
94
|
AlternatePathHintList = Shapes::ListShape.new(name: 'AlternatePathHintList')
|
95
|
+
AmdSevSnpSpecification = Shapes::StringShape.new(name: 'AmdSevSnpSpecification')
|
95
96
|
AnalysisAclRule = Shapes::StructureShape.new(name: 'AnalysisAclRule')
|
96
97
|
AnalysisComponent = Shapes::StructureShape.new(name: 'AnalysisComponent')
|
97
98
|
AnalysisComponentList = Shapes::ListShape.new(name: 'AnalysisComponentList')
|
@@ -2644,6 +2645,8 @@ module Aws::EC2
|
|
2644
2645
|
SuccessfulQueuedPurchaseDeletion = Shapes::StructureShape.new(name: 'SuccessfulQueuedPurchaseDeletion')
|
2645
2646
|
SuccessfulQueuedPurchaseDeletionSet = Shapes::ListShape.new(name: 'SuccessfulQueuedPurchaseDeletionSet')
|
2646
2647
|
SummaryStatus = Shapes::StringShape.new(name: 'SummaryStatus')
|
2648
|
+
SupportedAdditionalProcessorFeature = Shapes::StringShape.new(name: 'SupportedAdditionalProcessorFeature')
|
2649
|
+
SupportedAdditionalProcessorFeatureList = Shapes::ListShape.new(name: 'SupportedAdditionalProcessorFeatureList')
|
2647
2650
|
SupportedIpAddressTypes = Shapes::ListShape.new(name: 'SupportedIpAddressTypes')
|
2648
2651
|
Tag = Shapes::StructureShape.new(name: 'Tag')
|
2649
2652
|
TagDescription = Shapes::StructureShape.new(name: 'TagDescription')
|
@@ -4231,10 +4234,12 @@ module Aws::EC2
|
|
4231
4234
|
|
4232
4235
|
CpuOptions.add_member(:core_count, Shapes::ShapeRef.new(shape: Integer, location_name: "coreCount"))
|
4233
4236
|
CpuOptions.add_member(:threads_per_core, Shapes::ShapeRef.new(shape: Integer, location_name: "threadsPerCore"))
|
4237
|
+
CpuOptions.add_member(:amd_sev_snp, Shapes::ShapeRef.new(shape: AmdSevSnpSpecification, location_name: "amdSevSnp"))
|
4234
4238
|
CpuOptions.struct_class = Types::CpuOptions
|
4235
4239
|
|
4236
4240
|
CpuOptionsRequest.add_member(:core_count, Shapes::ShapeRef.new(shape: Integer, location_name: "CoreCount"))
|
4237
4241
|
CpuOptionsRequest.add_member(:threads_per_core, Shapes::ShapeRef.new(shape: Integer, location_name: "ThreadsPerCore"))
|
4242
|
+
CpuOptionsRequest.add_member(:amd_sev_snp, Shapes::ShapeRef.new(shape: AmdSevSnpSpecification, location_name: "AmdSevSnp"))
|
4238
4243
|
CpuOptionsRequest.struct_class = Types::CpuOptionsRequest
|
4239
4244
|
|
4240
4245
|
CreateCapacityReservationFleetRequest.add_member(:allocation_strategy, Shapes::ShapeRef.new(shape: String, location_name: "AllocationStrategy"))
|
@@ -10207,10 +10212,12 @@ module Aws::EC2
|
|
10207
10212
|
|
10208
10213
|
LaunchTemplateCpuOptions.add_member(:core_count, Shapes::ShapeRef.new(shape: Integer, location_name: "coreCount"))
|
10209
10214
|
LaunchTemplateCpuOptions.add_member(:threads_per_core, Shapes::ShapeRef.new(shape: Integer, location_name: "threadsPerCore"))
|
10215
|
+
LaunchTemplateCpuOptions.add_member(:amd_sev_snp, Shapes::ShapeRef.new(shape: AmdSevSnpSpecification, location_name: "amdSevSnp"))
|
10210
10216
|
LaunchTemplateCpuOptions.struct_class = Types::LaunchTemplateCpuOptions
|
10211
10217
|
|
10212
10218
|
LaunchTemplateCpuOptionsRequest.add_member(:core_count, Shapes::ShapeRef.new(shape: Integer, location_name: "CoreCount"))
|
10213
10219
|
LaunchTemplateCpuOptionsRequest.add_member(:threads_per_core, Shapes::ShapeRef.new(shape: Integer, location_name: "ThreadsPerCore"))
|
10220
|
+
LaunchTemplateCpuOptionsRequest.add_member(:amd_sev_snp, Shapes::ShapeRef.new(shape: AmdSevSnpSpecification, location_name: "AmdSevSnp"))
|
10214
10221
|
LaunchTemplateCpuOptionsRequest.struct_class = Types::LaunchTemplateCpuOptionsRequest
|
10215
10222
|
|
10216
10223
|
LaunchTemplateEbsBlockDevice.add_member(:encrypted, Shapes::ShapeRef.new(shape: Boolean, location_name: "encrypted"))
|
@@ -11993,6 +12000,7 @@ module Aws::EC2
|
|
11993
12000
|
|
11994
12001
|
ProcessorInfo.add_member(:supported_architectures, Shapes::ShapeRef.new(shape: ArchitectureTypeList, location_name: "supportedArchitectures"))
|
11995
12002
|
ProcessorInfo.add_member(:sustained_clock_speed_in_ghz, Shapes::ShapeRef.new(shape: ProcessorSustainedClockSpeed, location_name: "sustainedClockSpeedInGhz"))
|
12003
|
+
ProcessorInfo.add_member(:supported_features, Shapes::ShapeRef.new(shape: SupportedAdditionalProcessorFeatureList, location_name: "supportedFeatures"))
|
11996
12004
|
ProcessorInfo.struct_class = Types::ProcessorInfo
|
11997
12005
|
|
11998
12006
|
ProductCode.add_member(:product_code_id, Shapes::ShapeRef.new(shape: String, location_name: "productCode"))
|
@@ -13639,6 +13647,8 @@ module Aws::EC2
|
|
13639
13647
|
|
13640
13648
|
SuccessfulQueuedPurchaseDeletionSet.member = Shapes::ShapeRef.new(shape: SuccessfulQueuedPurchaseDeletion, location_name: "item")
|
13641
13649
|
|
13650
|
+
SupportedAdditionalProcessorFeatureList.member = Shapes::ShapeRef.new(shape: SupportedAdditionalProcessorFeature, location_name: "item")
|
13651
|
+
|
13642
13652
|
SupportedIpAddressTypes.member = Shapes::ShapeRef.new(shape: ServiceConnectivityType, location_name: "item")
|
13643
13653
|
|
13644
13654
|
Tag.add_member(:key, Shapes::ShapeRef.new(shape: String, location_name: "key"))
|
data/lib/aws-sdk-ec2/instance.rb
CHANGED
@@ -91,15 +91,15 @@ module Aws::EC2
|
|
91
91
|
data[:platform]
|
92
92
|
end
|
93
93
|
|
94
|
-
#
|
94
|
+
# \[IPv4 only\] The private DNS hostname name assigned to the instance.
|
95
95
|
# This DNS hostname can only be used inside the Amazon EC2 network. This
|
96
96
|
# name is not available until the instance enters the `running` state.
|
97
97
|
#
|
98
|
-
#
|
99
|
-
#
|
100
|
-
#
|
101
|
-
#
|
102
|
-
#
|
98
|
+
# The Amazon-provided DNS server resolves Amazon-provided private DNS
|
99
|
+
# hostnames if you've enabled DNS resolution and DNS hostnames in your
|
100
|
+
# VPC. If you are not using the Amazon-provided DNS server in your VPC,
|
101
|
+
# your custom domain name servers must resolve the hostname as
|
102
|
+
# appropriate.
|
103
103
|
# @return [String]
|
104
104
|
def private_dns_name
|
105
105
|
data[:private_dns_name]
|
@@ -117,10 +117,9 @@ module Aws::EC2
|
|
117
117
|
data[:product_codes]
|
118
118
|
end
|
119
119
|
|
120
|
-
#
|
121
|
-
# not available until the instance enters the `running` state.
|
122
|
-
#
|
123
|
-
# for your VPC.
|
120
|
+
# \[IPv4 only\] The public DNS name assigned to the instance. This name
|
121
|
+
# is not available until the instance enters the `running` state. This
|
122
|
+
# name is only available if you've enabled DNS hostnames for your VPC.
|
124
123
|
# @return [String]
|
125
124
|
def public_dns_name
|
126
125
|
data[:public_dns_name]
|
@@ -155,13 +154,13 @@ module Aws::EC2
|
|
155
154
|
data[:state_transition_reason]
|
156
155
|
end
|
157
156
|
|
158
|
-
#
|
157
|
+
# The ID of the subnet in which the instance is running.
|
159
158
|
# @return [String]
|
160
159
|
def subnet_id
|
161
160
|
data[:subnet_id]
|
162
161
|
end
|
163
162
|
|
164
|
-
#
|
163
|
+
# The ID of the VPC in which the instance is running.
|
165
164
|
# @return [String]
|
166
165
|
def vpc_id
|
167
166
|
data[:vpc_id]
|
@@ -1075,10 +1074,9 @@ module Aws::EC2
|
|
1075
1074
|
# This option is supported only for HVM instances. Specifying this
|
1076
1075
|
# option with a PV instance can make it unreachable.
|
1077
1076
|
# @option options [Array<String>] :groups
|
1078
|
-
#
|
1079
|
-
#
|
1080
|
-
# group, even if it's just the default security group for the VPC.
|
1081
|
-
# must specify the security group ID, not the security group name.
|
1077
|
+
# Replaces the security groups of the instance with the specified
|
1078
|
+
# security groups. You must specify the ID of at least one security
|
1079
|
+
# group, even if it's just the default security group for the VPC.
|
1082
1080
|
# @option options [Types::AttributeValue] :instance_initiated_shutdown_behavior
|
1083
1081
|
# Specifies whether an instance stops or terminates when you initiate
|
1084
1082
|
# shutdown from the instance (using the operating system command for
|
@@ -280,12 +280,6 @@ module Aws::EC2
|
|
280
280
|
#
|
281
281
|
# * `dns-name` - The public DNS name of the instance.
|
282
282
|
#
|
283
|
-
# * `group-id` - The ID of the security group for the instance.
|
284
|
-
# EC2-Classic only.
|
285
|
-
#
|
286
|
-
# * `group-name` - The name of the security group for the instance.
|
287
|
-
# EC2-Classic only.
|
288
|
-
#
|
289
283
|
# * `hibernation-options.configured` - A Boolean that indicates whether
|
290
284
|
# the instance is enabled for hibernation. A value of `true` means
|
291
285
|
# that the instance is enabled for hibernation.
|