aws-sdk-ec2 1.449.0 → 1.451.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/client.rb +262 -115
- data/lib/aws-sdk-ec2/client_api.rb +38 -0
- data/lib/aws-sdk-ec2/endpoints.rb +28 -0
- data/lib/aws-sdk-ec2/image.rb +23 -1
- data/lib/aws-sdk-ec2/plugins/endpoints.rb +4 -0
- data/lib/aws-sdk-ec2/resource.rb +17 -28
- data/lib/aws-sdk-ec2/subnet.rb +17 -28
- data/lib/aws-sdk-ec2/types.rb +227 -125
- data/lib/aws-sdk-ec2.rb +1 -1
- data/sig/client.rbs +25 -1
- data/sig/image.rbs +7 -1
- data/sig/types.rbs +27 -1
- metadata +2 -2
data/lib/aws-sdk-ec2/client.rb
CHANGED
@@ -4177,6 +4177,13 @@ module Aws::EC2
|
|
4177
4177
|
# and the instances continue to run until they are interrupted or you
|
4178
4178
|
# terminate them manually.
|
4179
4179
|
#
|
4180
|
+
# **Restrictions**
|
4181
|
+
#
|
4182
|
+
# * You can delete up to 100 fleets in a single request. If you exceed
|
4183
|
+
# the specified number, no fleets are deleted.
|
4184
|
+
#
|
4185
|
+
# ^
|
4186
|
+
#
|
4180
4187
|
# @option params [Boolean] :dry_run
|
4181
4188
|
# Checks whether you have the required permissions for the action,
|
4182
4189
|
# without actually making the request, and provides an error response.
|
@@ -4186,6 +4193,8 @@ module Aws::EC2
|
|
4186
4193
|
# @option params [required, Array<String>] :spot_fleet_request_ids
|
4187
4194
|
# The IDs of the Spot Fleet requests.
|
4188
4195
|
#
|
4196
|
+
# Constraint: You can specify up to 100 IDs in a single request.
|
4197
|
+
#
|
4189
4198
|
# @option params [required, Boolean] :terminate_instances
|
4190
4199
|
# Indicates whether to terminate the associated instances when the Spot
|
4191
4200
|
# Fleet request is canceled. The default is to terminate the instances.
|
@@ -6041,8 +6050,8 @@ module Aws::EC2
|
|
6041
6050
|
# supported. For more information about NetBIOS node types, see [RFC
|
6042
6051
|
# 2132][2].
|
6043
6052
|
#
|
6044
|
-
# * `ipv6-preferred-lease-time` - A value (in seconds, minutes,
|
6045
|
-
# or years) for how frequently a running instance with an IPv6
|
6053
|
+
# * `ipv6-address-preferred-lease-time` - A value (in seconds, minutes,
|
6054
|
+
# hours, or years) for how frequently a running instance with an IPv6
|
6046
6055
|
# assigned to it goes through DHCPv6 lease renewal. Acceptable values
|
6047
6056
|
# are between 140 and 2147483647 seconds (approximately 68 years). If
|
6048
6057
|
# no value is entered, the default lease time is 140 seconds. If you
|
@@ -8117,11 +8126,11 @@ module Aws::EC2
|
|
8117
8126
|
# For more information, see [Launch an instance from a launch
|
8118
8127
|
# template][1] in the *Amazon Elastic Compute Cloud User Guide*.
|
8119
8128
|
#
|
8120
|
-
#
|
8121
|
-
#
|
8122
|
-
#
|
8123
|
-
#
|
8124
|
-
#
|
8129
|
+
# To clone an existing launch template as the basis for a new launch
|
8130
|
+
# template, use the Amazon EC2 console. The API, SDKs, and CLI do not
|
8131
|
+
# support cloning a template. For more information, see [Create a launch
|
8132
|
+
# template from an existing launch template][2] in the *Amazon Elastic
|
8133
|
+
# Compute Cloud User Guide*.
|
8125
8134
|
#
|
8126
8135
|
#
|
8127
8136
|
#
|
@@ -8158,12 +8167,10 @@ module Aws::EC2
|
|
8158
8167
|
# The tags to apply to the launch template on creation. To tag the
|
8159
8168
|
# launch template, the resource type must be `launch-template`.
|
8160
8169
|
#
|
8161
|
-
#
|
8170
|
+
# To specify the tags for the resources that are created when an
|
8162
8171
|
# instance is launched, you must use the `TagSpecifications` parameter
|
8163
8172
|
# in the [launch template data][1] structure.
|
8164
8173
|
#
|
8165
|
-
# </note>
|
8166
|
-
#
|
8167
8174
|
#
|
8168
8175
|
#
|
8169
8176
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RequestLaunchTemplateData.html
|
@@ -8490,17 +8497,18 @@ module Aws::EC2
|
|
8490
8497
|
req.send_request(options)
|
8491
8498
|
end
|
8492
8499
|
|
8493
|
-
# Creates a new version of a launch template. You
|
8494
|
-
# existing
|
8495
|
-
# version
|
8500
|
+
# Creates a new version of a launch template. You must specify an
|
8501
|
+
# existing launch template, either by name or ID. You can determine
|
8502
|
+
# whether the new version inherits parameters from a source version, and
|
8503
|
+
# add or overwrite parameters as needed.
|
8496
8504
|
#
|
8497
8505
|
# Launch template versions are numbered in the order in which they are
|
8498
|
-
# created. You
|
8506
|
+
# created. You can't specify, change, or replace the numbering of
|
8499
8507
|
# launch template versions.
|
8500
8508
|
#
|
8501
8509
|
# Launch templates are immutable; after you create a launch template,
|
8502
8510
|
# you can't modify it. Instead, you can create a new version of the
|
8503
|
-
# launch template that includes
|
8511
|
+
# launch template that includes the changes that you require.
|
8504
8512
|
#
|
8505
8513
|
# For more information, see [Modify a launch template (manage launch
|
8506
8514
|
# template versions)][1] in the *Amazon Elastic Compute Cloud User
|
@@ -8530,22 +8538,27 @@ module Aws::EC2
|
|
8530
8538
|
# @option params [String] :launch_template_id
|
8531
8539
|
# The ID of the launch template.
|
8532
8540
|
#
|
8533
|
-
# You must specify either the
|
8534
|
-
#
|
8541
|
+
# You must specify either the launch template ID or the launch template
|
8542
|
+
# name, but not both.
|
8535
8543
|
#
|
8536
8544
|
# @option params [String] :launch_template_name
|
8537
8545
|
# The name of the launch template.
|
8538
8546
|
#
|
8539
|
-
# You must specify the
|
8540
|
-
# but not both.
|
8547
|
+
# You must specify either the launch template ID or the launch template
|
8548
|
+
# name, but not both.
|
8541
8549
|
#
|
8542
8550
|
# @option params [String] :source_version
|
8543
|
-
# The version
|
8544
|
-
#
|
8545
|
-
#
|
8546
|
-
#
|
8547
|
-
#
|
8548
|
-
#
|
8551
|
+
# The version of the launch template on which to base the new version.
|
8552
|
+
# Snapshots applied to the block device mapping are ignored when
|
8553
|
+
# creating a new version unless they are explicitly included.
|
8554
|
+
#
|
8555
|
+
# If you specify this parameter, the new version inherits the launch
|
8556
|
+
# parameters from the source version. If you specify additional launch
|
8557
|
+
# parameters for the new version, they overwrite any corresponding
|
8558
|
+
# launch parameters inherited from the source version.
|
8559
|
+
#
|
8560
|
+
# If you omit this parameter, the new version contains only the launch
|
8561
|
+
# parameters that you specify for the new version.
|
8549
8562
|
#
|
8550
8563
|
# @option params [String] :version_description
|
8551
8564
|
# A description for the version of the launch template.
|
@@ -15728,18 +15741,23 @@ module Aws::EC2
|
|
15728
15741
|
# until they are interrupted or you terminate them manually.
|
15729
15742
|
#
|
15730
15743
|
# For `instant` fleets, EC2 Fleet must terminate the instances when the
|
15731
|
-
# fleet is deleted.
|
15732
|
-
#
|
15744
|
+
# fleet is deleted. Up to 1000 instances can be terminated in a single
|
15745
|
+
# request to delete `instant` fleets. A deleted `instant` fleet with
|
15746
|
+
# running instances is not supported.
|
15733
15747
|
#
|
15734
15748
|
# **Restrictions**
|
15735
15749
|
#
|
15736
|
-
# * You can delete up to 25 `instant`
|
15737
|
-
#
|
15738
|
-
#
|
15739
|
-
#
|
15750
|
+
# * You can delete up to 25 fleets of type `instant` in a single
|
15751
|
+
# request.
|
15752
|
+
#
|
15753
|
+
# * You can delete up to 100 fleets of type `maintain` or `request` in a
|
15754
|
+
# single request.
|
15755
|
+
#
|
15756
|
+
# * You can delete up to 125 fleets in a single request, provided you do
|
15757
|
+
# not exceed the quota for each fleet type, as specified above.
|
15740
15758
|
#
|
15741
|
-
# *
|
15742
|
-
#
|
15759
|
+
# * If you exceed the specified number of fleets to delete, no fleets
|
15760
|
+
# are deleted.
|
15743
15761
|
#
|
15744
15762
|
# For more information, see [Delete an EC2 Fleet][1] in the *Amazon EC2
|
15745
15763
|
# User Guide*.
|
@@ -15757,6 +15775,9 @@ module Aws::EC2
|
|
15757
15775
|
# @option params [required, Array<String>] :fleet_ids
|
15758
15776
|
# The IDs of the EC2 Fleets.
|
15759
15777
|
#
|
15778
|
+
# Constraints: In a single request, you can specify up to 25 `instant`
|
15779
|
+
# fleet IDs and up to 100 `maintain` or `request` fleet IDs.
|
15780
|
+
#
|
15760
15781
|
# @option params [required, Boolean] :terminate_instances
|
15761
15782
|
# Indicates whether to terminate the associated instances when the EC2
|
15762
15783
|
# Fleet is deleted. The default is to terminate the instances.
|
@@ -16357,14 +16378,14 @@ module Aws::EC2
|
|
16357
16378
|
# @option params [String] :launch_template_id
|
16358
16379
|
# The ID of the launch template.
|
16359
16380
|
#
|
16360
|
-
# You must specify either the
|
16361
|
-
#
|
16381
|
+
# You must specify either the launch template ID or the launch template
|
16382
|
+
# name, but not both.
|
16362
16383
|
#
|
16363
16384
|
# @option params [String] :launch_template_name
|
16364
16385
|
# The name of the launch template.
|
16365
16386
|
#
|
16366
|
-
# You must specify either the
|
16367
|
-
#
|
16387
|
+
# You must specify either the launch template ID or the launch template
|
16388
|
+
# name, but not both.
|
16368
16389
|
#
|
16369
16390
|
# @return [Types::DeleteLaunchTemplateResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
16370
16391
|
#
|
@@ -16448,14 +16469,14 @@ module Aws::EC2
|
|
16448
16469
|
# @option params [String] :launch_template_id
|
16449
16470
|
# The ID of the launch template.
|
16450
16471
|
#
|
16451
|
-
# You must specify either the
|
16452
|
-
#
|
16472
|
+
# You must specify either the launch template ID or the launch template
|
16473
|
+
# name, but not both.
|
16453
16474
|
#
|
16454
16475
|
# @option params [String] :launch_template_name
|
16455
16476
|
# The name of the launch template.
|
16456
16477
|
#
|
16457
|
-
# You must specify either the
|
16458
|
-
#
|
16478
|
+
# You must specify either the launch template ID or the launch template
|
16479
|
+
# name, but not both.
|
16459
16480
|
#
|
16460
16481
|
# @option params [required, Array<String>] :versions
|
16461
16482
|
# The version numbers of one or more launch template versions to delete.
|
@@ -23343,6 +23364,7 @@ module Aws::EC2
|
|
23343
23364
|
# * {Types::ImageAttribute#uefi_data #uefi_data} => Types::AttributeValue
|
23344
23365
|
# * {Types::ImageAttribute#last_launched_time #last_launched_time} => Types::AttributeValue
|
23345
23366
|
# * {Types::ImageAttribute#imds_support #imds_support} => Types::AttributeValue
|
23367
|
+
# * {Types::ImageAttribute#deregistration_protection #deregistration_protection} => Types::AttributeValue
|
23346
23368
|
#
|
23347
23369
|
#
|
23348
23370
|
# @example Example: To describe the launch permissions for an AMI
|
@@ -23367,7 +23389,7 @@ module Aws::EC2
|
|
23367
23389
|
# @example Request syntax with placeholder values
|
23368
23390
|
#
|
23369
23391
|
# resp = client.describe_image_attribute({
|
23370
|
-
# attribute: "description", # required, accepts description, kernel, ramdisk, launchPermission, productCodes, blockDeviceMapping, sriovNetSupport, bootMode, tpmSupport, uefiData, lastLaunchedTime, imdsSupport
|
23392
|
+
# attribute: "description", # required, accepts description, kernel, ramdisk, launchPermission, productCodes, blockDeviceMapping, sriovNetSupport, bootMode, tpmSupport, uefiData, lastLaunchedTime, imdsSupport, deregistrationProtection
|
23371
23393
|
# image_id: "ImageId", # required
|
23372
23394
|
# dry_run: false,
|
23373
23395
|
# })
|
@@ -23405,6 +23427,7 @@ module Aws::EC2
|
|
23405
23427
|
# resp.uefi_data #=> <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
|
23406
23428
|
# resp.last_launched_time #=> <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
|
23407
23429
|
# resp.imds_support #=> <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
|
23430
|
+
# resp.deregistration_protection #=> <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
|
23408
23431
|
#
|
23409
23432
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImageAttribute AWS API Documentation
|
23410
23433
|
#
|
@@ -23428,6 +23451,9 @@ module Aws::EC2
|
|
23428
23451
|
# image will eventually return an error indicating that the AMI ID
|
23429
23452
|
# cannot be found.
|
23430
23453
|
#
|
23454
|
+
# We strongly recommend using only paginated requests. Unpaginated
|
23455
|
+
# requests are susceptible to throttling and timeouts.
|
23456
|
+
#
|
23431
23457
|
# <note markdown="1"> The order of the elements in the response, including those within
|
23432
23458
|
# nested structures, might vary. Applications should not assume the
|
23433
23459
|
# elements appear in a particular order.
|
@@ -23724,6 +23750,8 @@ module Aws::EC2
|
|
23724
23750
|
# resp.images[0].deprecation_time #=> String
|
23725
23751
|
# resp.images[0].imds_support #=> String, one of "v2.0"
|
23726
23752
|
# resp.images[0].source_instance_id #=> String
|
23753
|
+
# resp.images[0].deregistration_protection #=> String
|
23754
|
+
# resp.images[0].last_launched_time #=> String
|
23727
23755
|
# resp.next_token #=> String
|
23728
23756
|
#
|
23729
23757
|
#
|
@@ -24797,10 +24825,9 @@ module Aws::EC2
|
|
24797
24825
|
req.send_request(options)
|
24798
24826
|
end
|
24799
24827
|
|
24800
|
-
#
|
24801
|
-
#
|
24802
|
-
#
|
24803
|
-
# returned.
|
24828
|
+
# Lists the instance types that are offered for the specified location.
|
24829
|
+
# If no location is specified, the default is to list the instance types
|
24830
|
+
# that are offered in the current Region.
|
24804
24831
|
#
|
24805
24832
|
# @option params [Boolean] :dry_run
|
24806
24833
|
# Checks whether you have the required permissions for the action,
|
@@ -24811,14 +24838,32 @@ module Aws::EC2
|
|
24811
24838
|
# @option params [String] :location_type
|
24812
24839
|
# The location type.
|
24813
24840
|
#
|
24841
|
+
# * `availability-zone` - The Availability Zone. When you specify a
|
24842
|
+
# location filter, it must be an Availability Zone for the current
|
24843
|
+
# Region.
|
24844
|
+
#
|
24845
|
+
# * `availability-zone-id` - The AZ ID. When you specify a location
|
24846
|
+
# filter, it must be an AZ ID for the current Region.
|
24847
|
+
#
|
24848
|
+
# * `outpost` - The Outpost ARN. When you specify a location filter, it
|
24849
|
+
# must be an Outpost ARN for the current Region.
|
24850
|
+
#
|
24851
|
+
# * `region` - The current Region. If you specify a location filter, it
|
24852
|
+
# must match the current Region.
|
24853
|
+
#
|
24814
24854
|
# @option params [Array<Types::Filter>] :filters
|
24815
24855
|
# One or more filters. Filter names and values are case-sensitive.
|
24816
24856
|
#
|
24817
|
-
# * `
|
24818
|
-
#
|
24819
|
-
#
|
24857
|
+
# * `instance-type` - The instance type. For a list of possible values,
|
24858
|
+
# see [Instance][1].
|
24859
|
+
#
|
24860
|
+
# * `location` - The location. For a list of possible identifiers, see
|
24861
|
+
# [Regions and Zones][2].
|
24862
|
+
#
|
24820
24863
|
#
|
24821
|
-
#
|
24864
|
+
#
|
24865
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_Instance.html
|
24866
|
+
# [2]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html
|
24822
24867
|
#
|
24823
24868
|
# @option params [Integer] :max_results
|
24824
24869
|
# The maximum number of items to return for this request. To get the
|
@@ -24872,9 +24917,9 @@ module Aws::EC2
|
|
24872
24917
|
req.send_request(options)
|
24873
24918
|
end
|
24874
24919
|
|
24875
|
-
# Describes the
|
24876
|
-
#
|
24877
|
-
#
|
24920
|
+
# Describes the specified instance types. By default, all instance types
|
24921
|
+
# for the current Region are described. Alternatively, you can filter
|
24922
|
+
# the results.
|
24878
24923
|
#
|
24879
24924
|
# @option params [Boolean] :dry_run
|
24880
24925
|
# Checks whether you have the required permissions for the action,
|
@@ -24883,12 +24928,7 @@ module Aws::EC2
|
|
24883
24928
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
24884
24929
|
#
|
24885
24930
|
# @option params [Array<String>] :instance_types
|
24886
|
-
# The instance types.
|
24887
|
-
# the *Amazon EC2 User Guide*.
|
24888
|
-
#
|
24889
|
-
#
|
24890
|
-
#
|
24891
|
-
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html
|
24931
|
+
# The instance types.
|
24892
24932
|
#
|
24893
24933
|
# @option params [Array<Types::Filter>] :filters
|
24894
24934
|
# One or more filters. Filter names and values are case-sensitive.
|
@@ -25225,6 +25265,9 @@ module Aws::EC2
|
|
25225
25265
|
# the call fails. If you describe instances and specify only instance
|
25226
25266
|
# IDs that are in an unaffected zone, the call works normally.
|
25227
25267
|
#
|
25268
|
+
# We strongly recommend using only paginated requests. Unpaginated
|
25269
|
+
# requests are susceptible to throttling and timeouts.
|
25270
|
+
#
|
25228
25271
|
# <note markdown="1"> The order of the elements in the response, including those within
|
25229
25272
|
# nested structures, might vary. Applications should not assume the
|
25230
25273
|
# elements appear in a particular order.
|
@@ -26733,8 +26776,8 @@ module Aws::EC2
|
|
26733
26776
|
# The ID of the launch template.
|
26734
26777
|
#
|
26735
26778
|
# To describe one or more versions of a specified launch template, you
|
26736
|
-
# must specify either the
|
26737
|
-
#
|
26779
|
+
# must specify either the launch template ID or the launch template
|
26780
|
+
# name, but not both.
|
26738
26781
|
#
|
26739
26782
|
# To describe all the latest or default launch template versions in your
|
26740
26783
|
# account, you must omit this parameter.
|
@@ -26743,8 +26786,8 @@ module Aws::EC2
|
|
26743
26786
|
# The name of the launch template.
|
26744
26787
|
#
|
26745
26788
|
# To describe one or more versions of a specified launch template, you
|
26746
|
-
# must specify either the
|
26747
|
-
#
|
26789
|
+
# must specify either the launch template name or the launch template
|
26790
|
+
# ID, but not both.
|
26748
26791
|
#
|
26749
26792
|
# To describe all the latest or default launch template versions in your
|
26750
26793
|
# account, you must omit this parameter.
|
@@ -29766,6 +29809,9 @@ module Aws::EC2
|
|
29766
29809
|
# `mac-address`, `private-dns-name`, `private-ip-address`,
|
29767
29810
|
# `private-dns-name`, `subnet-id`, or `vpc-id`.
|
29768
29811
|
#
|
29812
|
+
# We strongly recommend using only paginated requests. Unpaginated
|
29813
|
+
# requests are susceptible to throttling and timeouts.
|
29814
|
+
#
|
29769
29815
|
# @option params [Array<Types::Filter>] :filters
|
29770
29816
|
# One or more filters.
|
29771
29817
|
#
|
@@ -32211,6 +32257,9 @@ module Aws::EC2
|
|
32211
32257
|
# For more information about EBS snapshots, see [Amazon EBS
|
32212
32258
|
# snapshots][2] in the *Amazon EBS User Guide*.
|
32213
32259
|
#
|
32260
|
+
# We strongly recommend using only paginated requests. Unpaginated
|
32261
|
+
# requests are susceptible to throttling and timeouts.
|
32262
|
+
#
|
32214
32263
|
#
|
32215
32264
|
#
|
32216
32265
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
|
@@ -33952,6 +34001,9 @@ module Aws::EC2
|
|
33952
34001
|
# For more information about tags, see [Tag your Amazon EC2
|
33953
34002
|
# resources][1] in the *Amazon Elastic Compute Cloud User Guide*.
|
33954
34003
|
#
|
34004
|
+
# We strongly recommend using only paginated requests. Unpaginated
|
34005
|
+
# requests are susceptible to throttling and timeouts.
|
34006
|
+
#
|
33955
34007
|
# <note markdown="1"> The order of the elements in the response, including those within
|
33956
34008
|
# nested structures, might vary. Applications should not assume the
|
33957
34009
|
# elements appear in a particular order.
|
@@ -33975,16 +34027,8 @@ module Aws::EC2
|
|
33975
34027
|
#
|
33976
34028
|
# * `resource-id` - The ID of the resource.
|
33977
34029
|
#
|
33978
|
-
# * `resource-type` - The resource type
|
33979
|
-
#
|
33980
|
-
# `fpga-image` \| `host-reservation` \| `image` \| `instance` \|
|
33981
|
-
# `internet-gateway` \| `key-pair` \| `launch-template` \|
|
33982
|
-
# `natgateway` \| `network-acl` \| `network-interface` \|
|
33983
|
-
# `placement-group` \| `reserved-instances` \| `route-table` \|
|
33984
|
-
# `security-group` \| `snapshot` \| `spot-instances-request` \|
|
33985
|
-
# `subnet` \| `volume` \| `vpc` \| `vpc-endpoint` \|
|
33986
|
-
# `vpc-endpoint-service` \| `vpc-peering-connection` \|
|
33987
|
-
# `vpn-connection` \| `vpn-gateway`).
|
34030
|
+
# * `resource-type` - The resource type. For a list of possible values,
|
34031
|
+
# see [TagSpecification][1].
|
33988
34032
|
#
|
33989
34033
|
# * `tag`:<key> - The key/value combination of the tag. For
|
33990
34034
|
# example, specify "tag:Owner" for the filter name and "TeamA" for
|
@@ -33992,6 +34036,10 @@ module Aws::EC2
|
|
33992
34036
|
#
|
33993
34037
|
# * `value` - The tag value.
|
33994
34038
|
#
|
34039
|
+
#
|
34040
|
+
#
|
34041
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_TagSpecification.html
|
34042
|
+
#
|
33995
34043
|
# @option params [Integer] :max_results
|
33996
34044
|
# The maximum number of items to return for this request. This value can
|
33997
34045
|
# be between 5 and 1000. To get the next page of items, make another
|
@@ -35997,6 +36045,9 @@ module Aws::EC2
|
|
35997
36045
|
# For more information about EBS volumes, see [Amazon EBS volumes][2] in
|
35998
36046
|
# the *Amazon EBS User Guide*.
|
35999
36047
|
#
|
36048
|
+
# We strongly recommend using only paginated requests. Unpaginated
|
36049
|
+
# requests are susceptible to throttling and timeouts.
|
36050
|
+
#
|
36000
36051
|
# <note markdown="1"> The order of the elements in the response, including those within
|
36001
36052
|
# nested structures, might vary. Applications should not assume the
|
36002
36053
|
# elements appear in a particular order.
|
@@ -38523,6 +38574,54 @@ module Aws::EC2
|
|
38523
38574
|
req.send_request(options)
|
38524
38575
|
end
|
38525
38576
|
|
38577
|
+
# Disables deregistration protection for an AMI. When deregistration
|
38578
|
+
# protection is disabled, the AMI can be deregistered.
|
38579
|
+
#
|
38580
|
+
# If you chose to include a 24-hour cooldown period when you enabled
|
38581
|
+
# deregistration protection for the AMI, then, when you disable
|
38582
|
+
# deregistration protection, you won’t immediately be able to deregister
|
38583
|
+
# the AMI.
|
38584
|
+
#
|
38585
|
+
# For more information, see [Protect an AMI from deregistration][1] in
|
38586
|
+
# the *Amazon EC2 User Guide*.
|
38587
|
+
#
|
38588
|
+
#
|
38589
|
+
#
|
38590
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/deregister-ami.html#ami-deregistration-protection
|
38591
|
+
#
|
38592
|
+
# @option params [required, String] :image_id
|
38593
|
+
# The ID of the AMI.
|
38594
|
+
#
|
38595
|
+
# @option params [Boolean] :dry_run
|
38596
|
+
# Checks whether you have the required permissions for the action,
|
38597
|
+
# without actually making the request, and provides an error response.
|
38598
|
+
# If you have the required permissions, the error response is
|
38599
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
38600
|
+
#
|
38601
|
+
# @return [Types::DisableImageDeregistrationProtectionResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
38602
|
+
#
|
38603
|
+
# * {Types::DisableImageDeregistrationProtectionResult#return #return} => String
|
38604
|
+
#
|
38605
|
+
# @example Request syntax with placeholder values
|
38606
|
+
#
|
38607
|
+
# resp = client.disable_image_deregistration_protection({
|
38608
|
+
# image_id: "ImageId", # required
|
38609
|
+
# dry_run: false,
|
38610
|
+
# })
|
38611
|
+
#
|
38612
|
+
# @example Response structure
|
38613
|
+
#
|
38614
|
+
# resp.return #=> String
|
38615
|
+
#
|
38616
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableImageDeregistrationProtection AWS API Documentation
|
38617
|
+
#
|
38618
|
+
# @overload disable_image_deregistration_protection(params = {})
|
38619
|
+
# @param [Hash] params ({})
|
38620
|
+
def disable_image_deregistration_protection(params = {}, options = {})
|
38621
|
+
req = build_request(:disable_image_deregistration_protection, params)
|
38622
|
+
req.send_request(options)
|
38623
|
+
end
|
38624
|
+
|
38526
38625
|
# Disable the IPAM account. For more information, see [Enable
|
38527
38626
|
# integration with Organizations][1] in the *Amazon VPC IPAM User
|
38528
38627
|
# Guide*.
|
@@ -40067,6 +40166,57 @@ module Aws::EC2
|
|
40067
40166
|
req.send_request(options)
|
40068
40167
|
end
|
40069
40168
|
|
40169
|
+
# Enables deregistration protection for an AMI. When deregistration
|
40170
|
+
# protection is enabled, the AMI can't be deregistered.
|
40171
|
+
#
|
40172
|
+
# To allow the AMI to be deregistered, you must first disable
|
40173
|
+
# deregistration protection using DisableImageDeregistrationProtection.
|
40174
|
+
#
|
40175
|
+
# For more information, see [Protect an AMI from deregistration][1] in
|
40176
|
+
# the *Amazon EC2 User Guide*.
|
40177
|
+
#
|
40178
|
+
#
|
40179
|
+
#
|
40180
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/deregister-ami.html#ami-deregistration-protection
|
40181
|
+
#
|
40182
|
+
# @option params [required, String] :image_id
|
40183
|
+
# The ID of the AMI.
|
40184
|
+
#
|
40185
|
+
# @option params [Boolean] :with_cooldown
|
40186
|
+
# If `true`, enforces deregistration protection for 24 hours after
|
40187
|
+
# deregistration protection is disabled.
|
40188
|
+
#
|
40189
|
+
# @option params [Boolean] :dry_run
|
40190
|
+
# Checks whether you have the required permissions for the action,
|
40191
|
+
# without actually making the request, and provides an error response.
|
40192
|
+
# If you have the required permissions, the error response is
|
40193
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
40194
|
+
#
|
40195
|
+
# @return [Types::EnableImageDeregistrationProtectionResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
40196
|
+
#
|
40197
|
+
# * {Types::EnableImageDeregistrationProtectionResult#return #return} => String
|
40198
|
+
#
|
40199
|
+
# @example Request syntax with placeholder values
|
40200
|
+
#
|
40201
|
+
# resp = client.enable_image_deregistration_protection({
|
40202
|
+
# image_id: "ImageId", # required
|
40203
|
+
# with_cooldown: false,
|
40204
|
+
# dry_run: false,
|
40205
|
+
# })
|
40206
|
+
#
|
40207
|
+
# @example Response structure
|
40208
|
+
#
|
40209
|
+
# resp.return #=> String
|
40210
|
+
#
|
40211
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableImageDeregistrationProtection AWS API Documentation
|
40212
|
+
#
|
40213
|
+
# @overload enable_image_deregistration_protection(params = {})
|
40214
|
+
# @param [Hash] params ({})
|
40215
|
+
def enable_image_deregistration_protection(params = {}, options = {})
|
40216
|
+
req = build_request(:enable_image_deregistration_protection, params)
|
40217
|
+
req.send_request(options)
|
40218
|
+
end
|
40219
|
+
|
40070
40220
|
# Enable an Organizations member account as the IPAM admin account. You
|
40071
40221
|
# cannot select the Organizations management account as the IPAM admin
|
40072
40222
|
# account. For more information, see [Enable integration with
|
@@ -41156,6 +41306,13 @@ module Aws::EC2
|
|
41156
41306
|
#
|
41157
41307
|
# The returned content is Base64-encoded.
|
41158
41308
|
#
|
41309
|
+
# For more information, see [Instance console output][1] in the *Amazon
|
41310
|
+
# EC2 User Guide*.
|
41311
|
+
#
|
41312
|
+
#
|
41313
|
+
#
|
41314
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/troubleshoot-unreachable-instance.html#instance-console-console-output
|
41315
|
+
#
|
41159
41316
|
# @option params [Boolean] :dry_run
|
41160
41317
|
# Checks whether you have the required permissions for the action,
|
41161
41318
|
# without actually making the request, and provides an error response.
|
@@ -47342,10 +47499,10 @@ module Aws::EC2
|
|
47342
47499
|
# account level in the specified Amazon Web Services
Region.
|
47343
47500
|
#
|
47344
47501
|
# <note markdown="1"> To remove a parameter's account-level default setting, specify
|
47345
|
-
# `no-preference`.
|
47346
|
-
#
|
47347
|
-
#
|
47348
|
-
# EC2 User Guide*.
|
47502
|
+
# `no-preference`. If an account-level setting is cleared with
|
47503
|
+
# `no-preference`, then the instance launch considers the other instance
|
47504
|
+
# metadata settings. For more information, see [Order of precedence for
|
47505
|
+
# instance metadata options][1] in the *Amazon EC2 User Guide*.
|
47349
47506
|
#
|
47350
47507
|
# </note>
|
47351
47508
|
#
|
@@ -47363,11 +47520,11 @@ module Aws::EC2
|
|
47363
47520
|
# disabled, and you must use IMDSv2.
|
47364
47521
|
#
|
47365
47522
|
# @option params [Integer] :http_put_response_hop_limit
|
47366
|
-
# The maximum number of hops that the metadata token can travel.
|
47367
|
-
#
|
47368
|
-
# Minimum: `1`
|
47523
|
+
# The maximum number of hops that the metadata token can travel. To
|
47524
|
+
# indicate no preference, specify `-1`.
|
47369
47525
|
#
|
47370
|
-
#
|
47526
|
+
# Possible values: Integers from `1` to `64`, and `-1` to indicate no
|
47527
|
+
# preference
|
47371
47528
|
#
|
47372
47529
|
# @option params [String] :http_endpoint
|
47373
47530
|
# Enables or disables the IMDS endpoint on an instance. When disabled,
|
@@ -48105,14 +48262,14 @@ module Aws::EC2
|
|
48105
48262
|
# @option params [String] :launch_template_id
|
48106
48263
|
# The ID of the launch template.
|
48107
48264
|
#
|
48108
|
-
# You must specify either the
|
48109
|
-
#
|
48265
|
+
# You must specify either the launch template ID or the launch template
|
48266
|
+
# name, but not both.
|
48110
48267
|
#
|
48111
48268
|
# @option params [String] :launch_template_name
|
48112
48269
|
# The name of the launch template.
|
48113
48270
|
#
|
48114
|
-
# You must specify either the
|
48115
|
-
#
|
48271
|
+
# You must specify either the launch template ID or the launch template
|
48272
|
+
# name, but not both.
|
48116
48273
|
#
|
48117
48274
|
# @option params [String] :default_version
|
48118
48275
|
# The version number of the launch template to set as the default
|
@@ -55944,7 +56101,8 @@ module Aws::EC2
|
|
55944
56101
|
# [CreateSecurityGroup][1].
|
55945
56102
|
#
|
55946
56103
|
# If you specify a network interface, you must specify any security
|
55947
|
-
# groups as part of the network interface
|
56104
|
+
# groups as part of the network interface instead of using this
|
56105
|
+
# parameter.
|
55948
56106
|
#
|
55949
56107
|
#
|
55950
56108
|
#
|
@@ -55954,7 +56112,8 @@ module Aws::EC2
|
|
55954
56112
|
# \[Default VPC\] The names of the security groups.
|
55955
56113
|
#
|
55956
56114
|
# If you specify a network interface, you must specify any security
|
55957
|
-
# groups as part of the network interface
|
56115
|
+
# groups as part of the network interface instead of using this
|
56116
|
+
# parameter.
|
55958
56117
|
#
|
55959
56118
|
# Default: Amazon EC2 uses the default security group.
|
55960
56119
|
#
|
@@ -55962,7 +56121,7 @@ module Aws::EC2
|
|
55962
56121
|
# The ID of the subnet to launch the instance into.
|
55963
56122
|
#
|
55964
56123
|
# If you specify a network interface, you must specify any subnets as
|
55965
|
-
# part of the network interface.
|
56124
|
+
# part of the network interface instead of using this parameter.
|
55966
56125
|
#
|
55967
56126
|
# @option params [String] :user_data
|
55968
56127
|
# The user data script to make available to the instance. For more
|
@@ -56038,9 +56197,7 @@ module Aws::EC2
|
|
56038
56197
|
# Default: `stop`
|
56039
56198
|
#
|
56040
56199
|
# @option params [Array<Types::InstanceNetworkInterfaceSpecification>] :network_interfaces
|
56041
|
-
# The network interfaces to associate with the instance.
|
56042
|
-
# a network interface, you must specify any security groups and subnets
|
56043
|
-
# as part of the network interface.
|
56200
|
+
# The network interfaces to associate with the instance.
|
56044
56201
|
#
|
56045
56202
|
# @option params [String] :private_ip_address
|
56046
56203
|
# The primary IPv4 address. You must specify a value from the IPv4
|
@@ -56056,34 +56213,24 @@ module Aws::EC2
|
|
56056
56213
|
# the same request.
|
56057
56214
|
#
|
56058
56215
|
# @option params [Array<Types::ElasticGpuSpecification>] :elastic_gpu_specification
|
56059
|
-
#
|
56216
|
+
# An elastic GPU to associate with the instance.
|
56060
56217
|
#
|
56061
|
-
# <note markdown="1"> Amazon Elastic Graphics reached end of life on January 8, 2024.
|
56062
|
-
# workloads that require graphics acceleration, we recommend that you
|
56063
|
-
# use Amazon EC2 G4ad, G4dn, or G5 instances.
|
56218
|
+
# <note markdown="1"> Amazon Elastic Graphics reached end of life on January 8, 2024.
|
56064
56219
|
#
|
56065
56220
|
# </note>
|
56066
56221
|
#
|
56067
56222
|
# @option params [Array<Types::ElasticInferenceAccelerator>] :elastic_inference_accelerators
|
56068
56223
|
# An elastic inference accelerator to associate with the instance.
|
56069
|
-
# Elastic inference accelerators are a resource you can attach to your
|
56070
|
-
# Amazon EC2 instances to accelerate your Deep Learning (DL) inference
|
56071
|
-
# workloads.
|
56072
|
-
#
|
56073
|
-
# You cannot specify accelerators from different generations in the same
|
56074
|
-
# request.
|
56075
56224
|
#
|
56076
|
-
# <note markdown="1">
|
56077
|
-
#
|
56078
|
-
# customers migrate their workloads to options that offer better price
|
56079
|
-
# and performance. After April 15, 2023, new customers will not be able
|
56080
|
-
# to launch instances with Amazon EI accelerators in Amazon SageMaker,
|
56081
|
-
# Amazon ECS, or Amazon EC2. However, customers who have used Amazon EI
|
56082
|
-
# at least once during the past 30-day period are considered current
|
56083
|
-
# customers and will be able to continue using the service.
|
56225
|
+
# <note markdown="1"> Amazon Elastic Inference (EI) is no longer available to new customers.
|
56226
|
+
# For more information, see [Amazon Elastic Inference FAQs][1].
|
56084
56227
|
#
|
56085
56228
|
# </note>
|
56086
56229
|
#
|
56230
|
+
#
|
56231
|
+
#
|
56232
|
+
# [1]: http://aws.amazon.com/machine-learning/elastic-inference/faqs/
|
56233
|
+
#
|
56087
56234
|
# @option params [Array<Types::TagSpecification>] :tag_specifications
|
56088
56235
|
# The tags to apply to the resources that are created during instance
|
56089
56236
|
# launch.
|
@@ -56105,10 +56252,9 @@ module Aws::EC2
|
|
56105
56252
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTags.html
|
56106
56253
|
#
|
56107
56254
|
# @option params [Types::LaunchTemplateSpecification] :launch_template
|
56108
|
-
# The launch template
|
56109
|
-
#
|
56110
|
-
# launch template.
|
56111
|
-
# template, but not both.
|
56255
|
+
# The launch template. Any additional parameters that you specify for
|
56256
|
+
# the new instance overwrite the corresponding parameters included in
|
56257
|
+
# the launch template.
|
56112
56258
|
#
|
56113
56259
|
# @option params [Types::InstanceMarketOptionsRequest] :instance_market_options
|
56114
56260
|
# The market (purchasing) option for the instances.
|
@@ -56994,7 +57140,8 @@ module Aws::EC2
|
|
56994
57140
|
# * `type` - The type of route (`propagated` \| `static`).
|
56995
57141
|
#
|
56996
57142
|
# @option params [Integer] :max_results
|
56997
|
-
# The maximum number of routes to return.
|
57143
|
+
# The maximum number of routes to return. If a value is not provided,
|
57144
|
+
# the default is 1000.
|
56998
57145
|
#
|
56999
57146
|
# @option params [Boolean] :dry_run
|
57000
57147
|
# Checks whether you have the required permissions for the action,
|
@@ -59115,7 +59262,7 @@ module Aws::EC2
|
|
59115
59262
|
params: params,
|
59116
59263
|
config: config)
|
59117
59264
|
context[:gem_name] = 'aws-sdk-ec2'
|
59118
|
-
context[:gem_version] = '1.
|
59265
|
+
context[:gem_version] = '1.451.0'
|
59119
59266
|
Seahorse::Client::Request.new(handlers, context)
|
59120
59267
|
end
|
59121
59268
|
|