aws-sdk-ec2 1.339.0 → 1.340.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 +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-ec2/client.rb +24 -2
- data/lib/aws-sdk-ec2/client_api.rb +4 -0
- data/lib/aws-sdk-ec2/image.rb +17 -1
- data/lib/aws-sdk-ec2/resource.rb +18 -0
- data/lib/aws-sdk-ec2/types.rb +55 -4
- 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: 139c4ccd2d15e5341d537fccb9e118eab8273bf07857a4cd429f38430748bc01
|
4
|
+
data.tar.gz: 6dff434a97b793e3b4df0d7c744fdaf83bb4da88119cbe2c735b6126b20de00c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0523f6076a5020fa7e35a1f019613e9925f8b0250e79c7645c8048eace73badb17b85172bcfd9431565434d888e27b1080e41a4e4ca70574b68e6427b0c1a96
|
7
|
+
data.tar.gz: b96835b9fe2d515deeb8f0910933eac788762d5f4688bea71eee6b6ead975c68432fbe2ca1fe6d05b492e6227146377cb060454b6c0579426f8d3490df5c3bb7
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.340.0
|
data/lib/aws-sdk-ec2/client.rb
CHANGED
@@ -21096,6 +21096,7 @@ module Aws::EC2
|
|
21096
21096
|
# * {Types::ImageAttribute#tpm_support #tpm_support} => Types::AttributeValue
|
21097
21097
|
# * {Types::ImageAttribute#uefi_data #uefi_data} => Types::AttributeValue
|
21098
21098
|
# * {Types::ImageAttribute#last_launched_time #last_launched_time} => Types::AttributeValue
|
21099
|
+
# * {Types::ImageAttribute#imds_support #imds_support} => Types::AttributeValue
|
21099
21100
|
#
|
21100
21101
|
#
|
21101
21102
|
# @example Example: To describe the launch permissions for an AMI
|
@@ -21120,7 +21121,7 @@ module Aws::EC2
|
|
21120
21121
|
# @example Request syntax with placeholder values
|
21121
21122
|
#
|
21122
21123
|
# resp = client.describe_image_attribute({
|
21123
|
-
# attribute: "description", # required, accepts description, kernel, ramdisk, launchPermission, productCodes, blockDeviceMapping, sriovNetSupport, bootMode, tpmSupport, uefiData, lastLaunchedTime
|
21124
|
+
# attribute: "description", # required, accepts description, kernel, ramdisk, launchPermission, productCodes, blockDeviceMapping, sriovNetSupport, bootMode, tpmSupport, uefiData, lastLaunchedTime, imdsSupport
|
21124
21125
|
# image_id: "ImageId", # required
|
21125
21126
|
# dry_run: false,
|
21126
21127
|
# })
|
@@ -21157,6 +21158,7 @@ module Aws::EC2
|
|
21157
21158
|
# resp.tpm_support #=> <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
|
21158
21159
|
# resp.uefi_data #=> <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
|
21159
21160
|
# resp.last_launched_time #=> <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
|
21161
|
+
# resp.imds_support #=> <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
|
21160
21162
|
#
|
21161
21163
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImageAttribute AWS API Documentation
|
21162
21164
|
#
|
@@ -21437,6 +21439,7 @@ module Aws::EC2
|
|
21437
21439
|
# resp.images[0].boot_mode #=> String, one of "legacy-bios", "uefi"
|
21438
21440
|
# resp.images[0].tpm_support #=> String, one of "v2.0"
|
21439
21441
|
# resp.images[0].deprecation_time #=> String
|
21442
|
+
# resp.images[0].imds_support #=> String, one of "v2.0"
|
21440
21443
|
#
|
21441
21444
|
#
|
21442
21445
|
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
@@ -46003,6 +46006,24 @@ module Aws::EC2
|
|
46003
46006
|
# [2]: https://github.com/awslabs/python-uefivars
|
46004
46007
|
# [3]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/uefi-secure-boot.html
|
46005
46008
|
#
|
46009
|
+
# @option params [String] :imds_support
|
46010
|
+
# Set to `v2.0` to indicate that IMDSv2 is specified in the AMI.
|
46011
|
+
# Instances launched from this AMI will have `HttpTokens` automatically
|
46012
|
+
# set to `required` so that, by default, the instance requires that
|
46013
|
+
# IMDSv2 is used when requesting instance metadata. In addition,
|
46014
|
+
# `HttpPutResponseHopLimit` is set to `2`. For more information, see
|
46015
|
+
# [Configure the AMI][1] in the *Amazon Elastic Compute Cloud User
|
46016
|
+
# Guide*.
|
46017
|
+
#
|
46018
|
+
# <note markdown="1"> If you set the value to `v2.0`, make sure that your AMI software can
|
46019
|
+
# support IMDSv2.
|
46020
|
+
#
|
46021
|
+
# </note>
|
46022
|
+
#
|
46023
|
+
#
|
46024
|
+
#
|
46025
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-IMDS-new-instances.html#configure-IMDS-new-instances-ami-configuration
|
46026
|
+
#
|
46006
46027
|
# @return [Types::RegisterImageResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
46007
46028
|
#
|
46008
46029
|
# * {Types::RegisterImageResult#image_id #image_id} => String
|
@@ -46043,6 +46064,7 @@ module Aws::EC2
|
|
46043
46064
|
# boot_mode: "legacy-bios", # accepts legacy-bios, uefi
|
46044
46065
|
# tpm_support: "v2.0", # accepts v2.0
|
46045
46066
|
# uefi_data: "StringType",
|
46067
|
+
# imds_support: "v2.0", # accepts v2.0
|
46046
46068
|
# })
|
46047
46069
|
#
|
46048
46070
|
# @example Response structure
|
@@ -52133,7 +52155,7 @@ module Aws::EC2
|
|
52133
52155
|
params: params,
|
52134
52156
|
config: config)
|
52135
52157
|
context[:gem_name] = 'aws-sdk-ec2'
|
52136
|
-
context[:gem_version] = '1.
|
52158
|
+
context[:gem_version] = '1.340.0'
|
52137
52159
|
Seahorse::Client::Request.new(handlers, context)
|
52138
52160
|
end
|
52139
52161
|
|
@@ -1404,6 +1404,7 @@ module Aws::EC2
|
|
1404
1404
|
ImageRecycleBinInfoList = Shapes::ListShape.new(name: 'ImageRecycleBinInfoList')
|
1405
1405
|
ImageState = Shapes::StringShape.new(name: 'ImageState')
|
1406
1406
|
ImageTypeValues = Shapes::StringShape.new(name: 'ImageTypeValues')
|
1407
|
+
ImdsSupportValues = Shapes::StringShape.new(name: 'ImdsSupportValues')
|
1407
1408
|
ImportClientVpnClientCertificateRevocationListRequest = Shapes::StructureShape.new(name: 'ImportClientVpnClientCertificateRevocationListRequest')
|
1408
1409
|
ImportClientVpnClientCertificateRevocationListResult = Shapes::StructureShape.new(name: 'ImportClientVpnClientCertificateRevocationListResult')
|
1409
1410
|
ImportImageLicenseConfigurationRequest = Shapes::StructureShape.new(name: 'ImportImageLicenseConfigurationRequest')
|
@@ -8351,6 +8352,7 @@ module Aws::EC2
|
|
8351
8352
|
Image.add_member(:boot_mode, Shapes::ShapeRef.new(shape: BootModeValues, location_name: "bootMode"))
|
8352
8353
|
Image.add_member(:tpm_support, Shapes::ShapeRef.new(shape: TpmSupportValues, location_name: "tpmSupport"))
|
8353
8354
|
Image.add_member(:deprecation_time, Shapes::ShapeRef.new(shape: String, location_name: "deprecationTime"))
|
8355
|
+
Image.add_member(:imds_support, Shapes::ShapeRef.new(shape: ImdsSupportValues, location_name: "imdsSupport"))
|
8354
8356
|
Image.struct_class = Types::Image
|
8355
8357
|
|
8356
8358
|
ImageAttribute.add_member(:block_device_mappings, Shapes::ShapeRef.new(shape: BlockDeviceMappingList, location_name: "blockDeviceMapping"))
|
@@ -8365,6 +8367,7 @@ module Aws::EC2
|
|
8365
8367
|
ImageAttribute.add_member(:tpm_support, Shapes::ShapeRef.new(shape: AttributeValue, location_name: "tpmSupport"))
|
8366
8368
|
ImageAttribute.add_member(:uefi_data, Shapes::ShapeRef.new(shape: AttributeValue, location_name: "uefiData"))
|
8367
8369
|
ImageAttribute.add_member(:last_launched_time, Shapes::ShapeRef.new(shape: AttributeValue, location_name: "lastLaunchedTime"))
|
8370
|
+
ImageAttribute.add_member(:imds_support, Shapes::ShapeRef.new(shape: AttributeValue, location_name: "imdsSupport"))
|
8368
8371
|
ImageAttribute.struct_class = Types::ImageAttribute
|
8369
8372
|
|
8370
8373
|
ImageDiskContainer.add_member(:description, Shapes::ShapeRef.new(shape: String, location_name: "Description"))
|
@@ -11170,6 +11173,7 @@ module Aws::EC2
|
|
11170
11173
|
RegisterImageRequest.add_member(:boot_mode, Shapes::ShapeRef.new(shape: BootModeValues, location_name: "BootMode"))
|
11171
11174
|
RegisterImageRequest.add_member(:tpm_support, Shapes::ShapeRef.new(shape: TpmSupportValues, location_name: "TpmSupport"))
|
11172
11175
|
RegisterImageRequest.add_member(:uefi_data, Shapes::ShapeRef.new(shape: StringType, location_name: "UefiData"))
|
11176
|
+
RegisterImageRequest.add_member(:imds_support, Shapes::ShapeRef.new(shape: ImdsSupportValues, location_name: "ImdsSupport"))
|
11173
11177
|
RegisterImageRequest.struct_class = Types::RegisterImageRequest
|
11174
11178
|
|
11175
11179
|
RegisterImageResult.add_member(:image_id, Shapes::ShapeRef.new(shape: String, location_name: "imageId"))
|
data/lib/aws-sdk-ec2/image.rb
CHANGED
@@ -245,6 +245,22 @@ module Aws::EC2
|
|
245
245
|
data[:deprecation_time]
|
246
246
|
end
|
247
247
|
|
248
|
+
# If `v2.0`, it indicates that IMDSv2 is specified in the AMI. Instances
|
249
|
+
# launched from this AMI will have `HttpTokens` automatically set to
|
250
|
+
# `required` so that, by default, the instance requires that IMDSv2 is
|
251
|
+
# used when requesting instance metadata. In addition,
|
252
|
+
# `HttpPutResponseHopLimit` is set to `2`. For more information, see
|
253
|
+
# [Configure the AMI][1] in the *Amazon Elastic Compute Cloud User
|
254
|
+
# Guide*.
|
255
|
+
#
|
256
|
+
#
|
257
|
+
#
|
258
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-IMDS-new-instances.html#configure-IMDS-new-instances-ami-configuration
|
259
|
+
# @return [String]
|
260
|
+
def imds_support
|
261
|
+
data[:imds_support]
|
262
|
+
end
|
263
|
+
|
248
264
|
# @!endgroup
|
249
265
|
|
250
266
|
# @return [Client]
|
@@ -514,7 +530,7 @@ module Aws::EC2
|
|
514
530
|
# @example Request syntax with placeholder values
|
515
531
|
#
|
516
532
|
# image.describe_attribute({
|
517
|
-
# attribute: "description", # required, accepts description, kernel, ramdisk, launchPermission, productCodes, blockDeviceMapping, sriovNetSupport, bootMode, tpmSupport, uefiData, lastLaunchedTime
|
533
|
+
# attribute: "description", # required, accepts description, kernel, ramdisk, launchPermission, productCodes, blockDeviceMapping, sriovNetSupport, bootMode, tpmSupport, uefiData, lastLaunchedTime, imdsSupport
|
518
534
|
# dry_run: false,
|
519
535
|
# })
|
520
536
|
# @param [Hash] options ({})
|
data/lib/aws-sdk-ec2/resource.rb
CHANGED
@@ -1737,6 +1737,7 @@ module Aws::EC2
|
|
1737
1737
|
# boot_mode: "legacy-bios", # accepts legacy-bios, uefi
|
1738
1738
|
# tpm_support: "v2.0", # accepts v2.0
|
1739
1739
|
# uefi_data: "StringType",
|
1740
|
+
# imds_support: "v2.0", # accepts v2.0
|
1740
1741
|
# })
|
1741
1742
|
# @param [Hash] options ({})
|
1742
1743
|
# @option options [String] :image_location
|
@@ -1838,6 +1839,23 @@ module Aws::EC2
|
|
1838
1839
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetInstanceUefiData
|
1839
1840
|
# [2]: https://github.com/awslabs/python-uefivars
|
1840
1841
|
# [3]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/uefi-secure-boot.html
|
1842
|
+
# @option options [String] :imds_support
|
1843
|
+
# Set to `v2.0` to indicate that IMDSv2 is specified in the AMI.
|
1844
|
+
# Instances launched from this AMI will have `HttpTokens` automatically
|
1845
|
+
# set to `required` so that, by default, the instance requires that
|
1846
|
+
# IMDSv2 is used when requesting instance metadata. In addition,
|
1847
|
+
# `HttpPutResponseHopLimit` is set to `2`. For more information, see
|
1848
|
+
# [Configure the AMI][1] in the *Amazon Elastic Compute Cloud User
|
1849
|
+
# Guide*.
|
1850
|
+
#
|
1851
|
+
# <note markdown="1"> If you set the value to `v2.0`, make sure that your AMI software can
|
1852
|
+
# support IMDSv2.
|
1853
|
+
#
|
1854
|
+
# </note>
|
1855
|
+
#
|
1856
|
+
#
|
1857
|
+
#
|
1858
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-IMDS-new-instances.html#configure-IMDS-new-instances-ami-configuration
|
1841
1859
|
# @return [Image]
|
1842
1860
|
def register_image(options = {})
|
1843
1861
|
resp = @client.register_image(options)
|
data/lib/aws-sdk-ec2/types.rb
CHANGED
@@ -21301,7 +21301,7 @@ module Aws::EC2
|
|
21301
21301
|
# data as a hash:
|
21302
21302
|
#
|
21303
21303
|
# {
|
21304
|
-
# attribute: "description", # required, accepts description, kernel, ramdisk, launchPermission, productCodes, blockDeviceMapping, sriovNetSupport, bootMode, tpmSupport, uefiData, lastLaunchedTime
|
21304
|
+
# attribute: "description", # required, accepts description, kernel, ramdisk, launchPermission, productCodes, blockDeviceMapping, sriovNetSupport, bootMode, tpmSupport, uefiData, lastLaunchedTime, imdsSupport
|
21305
21305
|
# image_id: "ImageId", # required
|
21306
21306
|
# dry_run: false,
|
21307
21307
|
# }
|
@@ -39431,6 +39431,20 @@ module Aws::EC2
|
|
39431
39431
|
# for seconds, Amazon EC2 rounds the seconds to the nearest minute.
|
39432
39432
|
# @return [String]
|
39433
39433
|
#
|
39434
|
+
# @!attribute [rw] imds_support
|
39435
|
+
# If `v2.0`, it indicates that IMDSv2 is specified in the AMI.
|
39436
|
+
# Instances launched from this AMI will have `HttpTokens`
|
39437
|
+
# automatically set to `required` so that, by default, the instance
|
39438
|
+
# requires that IMDSv2 is used when requesting instance metadata. In
|
39439
|
+
# addition, `HttpPutResponseHopLimit` is set to `2`. For more
|
39440
|
+
# information, see [Configure the AMI][1] in the *Amazon Elastic
|
39441
|
+
# Compute Cloud User Guide*.
|
39442
|
+
#
|
39443
|
+
#
|
39444
|
+
#
|
39445
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-IMDS-new-instances.html#configure-IMDS-new-instances-ami-configuration
|
39446
|
+
# @return [String]
|
39447
|
+
#
|
39434
39448
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/Image AWS API Documentation
|
39435
39449
|
#
|
39436
39450
|
class Image < Struct.new(
|
@@ -39462,7 +39476,8 @@ module Aws::EC2
|
|
39462
39476
|
:virtualization_type,
|
39463
39477
|
:boot_mode,
|
39464
39478
|
:tpm_support,
|
39465
|
-
:deprecation_time
|
39479
|
+
:deprecation_time,
|
39480
|
+
:imds_support)
|
39466
39481
|
SENSITIVE = []
|
39467
39482
|
include Aws::Structure
|
39468
39483
|
end
|
@@ -39540,6 +39555,20 @@ module Aws::EC2
|
|
39540
39555
|
# [1]: http://www.iso.org/iso/iso8601
|
39541
39556
|
# @return [Types::AttributeValue]
|
39542
39557
|
#
|
39558
|
+
# @!attribute [rw] imds_support
|
39559
|
+
# If `v2.0`, it indicates that IMDSv2 is specified in the AMI.
|
39560
|
+
# Instances launched from this AMI will have `HttpTokens`
|
39561
|
+
# automatically set to `required` so that, by default, the instance
|
39562
|
+
# requires that IMDSv2 is used when requesting instance metadata. In
|
39563
|
+
# addition, `HttpPutResponseHopLimit` is set to `2`. For more
|
39564
|
+
# information, see [Configure the AMI][1] in the *Amazon Elastic
|
39565
|
+
# Compute Cloud User Guide*.
|
39566
|
+
#
|
39567
|
+
#
|
39568
|
+
#
|
39569
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-IMDS-new-instances.html#configure-IMDS-new-instances-ami-configuration
|
39570
|
+
# @return [Types::AttributeValue]
|
39571
|
+
#
|
39543
39572
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImageAttribute AWS API Documentation
|
39544
39573
|
#
|
39545
39574
|
class ImageAttribute < Struct.new(
|
@@ -39554,7 +39583,8 @@ module Aws::EC2
|
|
39554
39583
|
:boot_mode,
|
39555
39584
|
:tpm_support,
|
39556
39585
|
:uefi_data,
|
39557
|
-
:last_launched_time
|
39586
|
+
:last_launched_time,
|
39587
|
+
:imds_support)
|
39558
39588
|
SENSITIVE = []
|
39559
39589
|
include Aws::Structure
|
39560
39590
|
end
|
@@ -56507,6 +56537,7 @@ module Aws::EC2
|
|
56507
56537
|
# boot_mode: "legacy-bios", # accepts legacy-bios, uefi
|
56508
56538
|
# tpm_support: "v2.0", # accepts v2.0
|
56509
56539
|
# uefi_data: "StringType",
|
56540
|
+
# imds_support: "v2.0", # accepts v2.0
|
56510
56541
|
# }
|
56511
56542
|
#
|
56512
56543
|
# @!attribute [rw] image_location
|
@@ -56642,6 +56673,25 @@ module Aws::EC2
|
|
56642
56673
|
# [3]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/uefi-secure-boot.html
|
56643
56674
|
# @return [String]
|
56644
56675
|
#
|
56676
|
+
# @!attribute [rw] imds_support
|
56677
|
+
# Set to `v2.0` to indicate that IMDSv2 is specified in the AMI.
|
56678
|
+
# Instances launched from this AMI will have `HttpTokens`
|
56679
|
+
# automatically set to `required` so that, by default, the instance
|
56680
|
+
# requires that IMDSv2 is used when requesting instance metadata. In
|
56681
|
+
# addition, `HttpPutResponseHopLimit` is set to `2`. For more
|
56682
|
+
# information, see [Configure the AMI][1] in the *Amazon Elastic
|
56683
|
+
# Compute Cloud User Guide*.
|
56684
|
+
#
|
56685
|
+
# <note markdown="1"> If you set the value to `v2.0`, make sure that your AMI software can
|
56686
|
+
# support IMDSv2.
|
56687
|
+
#
|
56688
|
+
# </note>
|
56689
|
+
#
|
56690
|
+
#
|
56691
|
+
#
|
56692
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-IMDS-new-instances.html#configure-IMDS-new-instances-ami-configuration
|
56693
|
+
# @return [String]
|
56694
|
+
#
|
56645
56695
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RegisterImageRequest AWS API Documentation
|
56646
56696
|
#
|
56647
56697
|
class RegisterImageRequest < Struct.new(
|
@@ -56660,7 +56710,8 @@ module Aws::EC2
|
|
56660
56710
|
:virtualization_type,
|
56661
56711
|
:boot_mode,
|
56662
56712
|
:tpm_support,
|
56663
|
-
:uefi_data
|
56713
|
+
:uefi_data,
|
56714
|
+
:imds_support)
|
56664
56715
|
SENSITIVE = []
|
56665
56716
|
include Aws::Structure
|
56666
56717
|
end
|
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.340.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: 2022-
|
11
|
+
date: 2022-10-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sigv4
|