aws-sdk-ec2 1.454.0 → 1.455.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 +54 -1
- data/lib/aws-sdk-ec2/client_api.rb +25 -0
- data/lib/aws-sdk-ec2/endpoints.rb +14 -0
- data/lib/aws-sdk-ec2/plugins/endpoints.rb +2 -0
- data/lib/aws-sdk-ec2/types.rb +60 -0
- data/lib/aws-sdk-ec2.rb +1 -1
- data/sig/client.rbs +16 -0
- data/sig/types.rbs +16 -0
- 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: f3026801536da9e2157d614a8405606bb85b2b5848047718905b5217c9288636
|
4
|
+
data.tar.gz: 60c50b0970bb87e42dfafc047f88085164da89d04dab858b5bb1d97013a7369a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 21c5190881a6abd5ee27152b3ebc1085f40ed943a1af858c9ea450f1dc1bfcab33e58c9d3c3bb906e23670878711f25bd8989e071709389cd6bf33e994258b13
|
7
|
+
data.tar.gz: b2fe6a2b35d71196d2bced7fd7aac53ddb994086fc38c14aaae8f8e4bbcef0e2a670dec055b56556c1976b910c059bec69094ec8ba1a3dc765cf44d4a0953319
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.455.0 (2024-05-02)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This release includes a new API for retrieving the public endorsement key of the EC2 instance's Nitro Trusted Platform Module (NitroTPM).
|
8
|
+
|
4
9
|
1.454.0 (2024-05-01)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.455.0
|
data/lib/aws-sdk-ec2/client.rb
CHANGED
@@ -41777,6 +41777,59 @@ module Aws::EC2
|
|
41777
41777
|
req.send_request(options)
|
41778
41778
|
end
|
41779
41779
|
|
41780
|
+
# Gets the public endorsement key associated with the Nitro Trusted
|
41781
|
+
# Platform Module (NitroTPM) for the specified instance.
|
41782
|
+
#
|
41783
|
+
# @option params [required, String] :instance_id
|
41784
|
+
# The ID of the instance for which to get the public endorsement key.
|
41785
|
+
#
|
41786
|
+
# @option params [required, String] :key_type
|
41787
|
+
# The required public endorsement key type.
|
41788
|
+
#
|
41789
|
+
# @option params [required, String] :key_format
|
41790
|
+
# The required public endorsement key format. Specify `der` for a
|
41791
|
+
# DER-encoded public key that is compatible with OpenSSL. Specify `tpmt`
|
41792
|
+
# for a TPM 2.0 format that is compatible with tpm2-tools. The returned
|
41793
|
+
# key is base64 encoded.
|
41794
|
+
#
|
41795
|
+
# @option params [Boolean] :dry_run
|
41796
|
+
# Specify this parameter to verify whether the request will succeed,
|
41797
|
+
# without actually making the request. If the request will succeed, the
|
41798
|
+
# response is `DryRunOperation`. Otherwise, the response is
|
41799
|
+
# `UnauthorizedOperation`.
|
41800
|
+
#
|
41801
|
+
# @return [Types::GetInstanceTpmEkPubResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
41802
|
+
#
|
41803
|
+
# * {Types::GetInstanceTpmEkPubResult#instance_id #instance_id} => String
|
41804
|
+
# * {Types::GetInstanceTpmEkPubResult#key_type #key_type} => String
|
41805
|
+
# * {Types::GetInstanceTpmEkPubResult#key_format #key_format} => String
|
41806
|
+
# * {Types::GetInstanceTpmEkPubResult#key_value #key_value} => String
|
41807
|
+
#
|
41808
|
+
# @example Request syntax with placeholder values
|
41809
|
+
#
|
41810
|
+
# resp = client.get_instance_tpm_ek_pub({
|
41811
|
+
# instance_id: "InstanceId", # required
|
41812
|
+
# key_type: "rsa-2048", # required, accepts rsa-2048, ecc-sec-p384
|
41813
|
+
# key_format: "der", # required, accepts der, tpmt
|
41814
|
+
# dry_run: false,
|
41815
|
+
# })
|
41816
|
+
#
|
41817
|
+
# @example Response structure
|
41818
|
+
#
|
41819
|
+
# resp.instance_id #=> String
|
41820
|
+
# resp.key_type #=> String, one of "rsa-2048", "ecc-sec-p384"
|
41821
|
+
# resp.key_format #=> String, one of "der", "tpmt"
|
41822
|
+
# resp.key_value #=> String
|
41823
|
+
#
|
41824
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetInstanceTpmEkPub AWS API Documentation
|
41825
|
+
#
|
41826
|
+
# @overload get_instance_tpm_ek_pub(params = {})
|
41827
|
+
# @param [Hash] params ({})
|
41828
|
+
def get_instance_tpm_ek_pub(params = {}, options = {})
|
41829
|
+
req = build_request(:get_instance_tpm_ek_pub, params)
|
41830
|
+
req.send_request(options)
|
41831
|
+
end
|
41832
|
+
|
41780
41833
|
# Returns a list of instance types with the specified instance
|
41781
41834
|
# attributes. You can use the response to preview the instance types
|
41782
41835
|
# without launching instances. Note that the response does not consider
|
@@ -59302,7 +59355,7 @@ module Aws::EC2
|
|
59302
59355
|
params: params,
|
59303
59356
|
config: config)
|
59304
59357
|
context[:gem_name] = 'aws-sdk-ec2'
|
59305
|
-
context[:gem_version] = '1.
|
59358
|
+
context[:gem_version] = '1.455.0'
|
59306
59359
|
Seahorse::Client::Request.new(handlers, context)
|
59307
59360
|
end
|
59308
59361
|
|
@@ -1255,6 +1255,9 @@ module Aws::EC2
|
|
1255
1255
|
EgressOnlyInternetGatewayList = Shapes::ListShape.new(name: 'EgressOnlyInternetGatewayList')
|
1256
1256
|
EipAllocationPublicIp = Shapes::StringShape.new(name: 'EipAllocationPublicIp')
|
1257
1257
|
EipAssociationIdList = Shapes::ListShape.new(name: 'EipAssociationIdList')
|
1258
|
+
EkPubKeyFormat = Shapes::StringShape.new(name: 'EkPubKeyFormat')
|
1259
|
+
EkPubKeyType = Shapes::StringShape.new(name: 'EkPubKeyType')
|
1260
|
+
EkPubKeyValue = Shapes::StringShape.new(name: 'EkPubKeyValue')
|
1258
1261
|
ElasticGpuAssociation = Shapes::StructureShape.new(name: 'ElasticGpuAssociation')
|
1259
1262
|
ElasticGpuAssociationList = Shapes::ListShape.new(name: 'ElasticGpuAssociationList')
|
1260
1263
|
ElasticGpuHealth = Shapes::StructureShape.new(name: 'ElasticGpuHealth')
|
@@ -1470,6 +1473,8 @@ module Aws::EC2
|
|
1470
1473
|
GetImageBlockPublicAccessStateResult = Shapes::StructureShape.new(name: 'GetImageBlockPublicAccessStateResult')
|
1471
1474
|
GetInstanceMetadataDefaultsRequest = Shapes::StructureShape.new(name: 'GetInstanceMetadataDefaultsRequest')
|
1472
1475
|
GetInstanceMetadataDefaultsResult = Shapes::StructureShape.new(name: 'GetInstanceMetadataDefaultsResult')
|
1476
|
+
GetInstanceTpmEkPubRequest = Shapes::StructureShape.new(name: 'GetInstanceTpmEkPubRequest')
|
1477
|
+
GetInstanceTpmEkPubResult = Shapes::StructureShape.new(name: 'GetInstanceTpmEkPubResult')
|
1473
1478
|
GetInstanceTypesFromInstanceRequirementsRequest = Shapes::StructureShape.new(name: 'GetInstanceTypesFromInstanceRequirementsRequest')
|
1474
1479
|
GetInstanceTypesFromInstanceRequirementsResult = Shapes::StructureShape.new(name: 'GetInstanceTypesFromInstanceRequirementsResult')
|
1475
1480
|
GetInstanceUefiDataRequest = Shapes::StructureShape.new(name: 'GetInstanceUefiDataRequest')
|
@@ -9095,6 +9100,18 @@ module Aws::EC2
|
|
9095
9100
|
GetInstanceMetadataDefaultsResult.add_member(:account_level, Shapes::ShapeRef.new(shape: InstanceMetadataDefaultsResponse, location_name: "accountLevel"))
|
9096
9101
|
GetInstanceMetadataDefaultsResult.struct_class = Types::GetInstanceMetadataDefaultsResult
|
9097
9102
|
|
9103
|
+
GetInstanceTpmEkPubRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: InstanceId, required: true, location_name: "InstanceId"))
|
9104
|
+
GetInstanceTpmEkPubRequest.add_member(:key_type, Shapes::ShapeRef.new(shape: EkPubKeyType, required: true, location_name: "KeyType"))
|
9105
|
+
GetInstanceTpmEkPubRequest.add_member(:key_format, Shapes::ShapeRef.new(shape: EkPubKeyFormat, required: true, location_name: "KeyFormat"))
|
9106
|
+
GetInstanceTpmEkPubRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
|
9107
|
+
GetInstanceTpmEkPubRequest.struct_class = Types::GetInstanceTpmEkPubRequest
|
9108
|
+
|
9109
|
+
GetInstanceTpmEkPubResult.add_member(:instance_id, Shapes::ShapeRef.new(shape: InstanceId, location_name: "instanceId"))
|
9110
|
+
GetInstanceTpmEkPubResult.add_member(:key_type, Shapes::ShapeRef.new(shape: EkPubKeyType, location_name: "keyType"))
|
9111
|
+
GetInstanceTpmEkPubResult.add_member(:key_format, Shapes::ShapeRef.new(shape: EkPubKeyFormat, location_name: "keyFormat"))
|
9112
|
+
GetInstanceTpmEkPubResult.add_member(:key_value, Shapes::ShapeRef.new(shape: EkPubKeyValue, location_name: "keyValue"))
|
9113
|
+
GetInstanceTpmEkPubResult.struct_class = Types::GetInstanceTpmEkPubResult
|
9114
|
+
|
9098
9115
|
GetInstanceTypesFromInstanceRequirementsRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
|
9099
9116
|
GetInstanceTypesFromInstanceRequirementsRequest.add_member(:architecture_types, Shapes::ShapeRef.new(shape: ArchitectureTypeSet, required: true, location_name: "ArchitectureType"))
|
9100
9117
|
GetInstanceTypesFromInstanceRequirementsRequest.add_member(:virtualization_types, Shapes::ShapeRef.new(shape: VirtualizationTypeSet, required: true, location_name: "VirtualizationType"))
|
@@ -19948,6 +19965,14 @@ module Aws::EC2
|
|
19948
19965
|
o.output = Shapes::ShapeRef.new(shape: GetInstanceMetadataDefaultsResult)
|
19949
19966
|
end)
|
19950
19967
|
|
19968
|
+
api.add_operation(:get_instance_tpm_ek_pub, Seahorse::Model::Operation.new.tap do |o|
|
19969
|
+
o.name = "GetInstanceTpmEkPub"
|
19970
|
+
o.http_method = "POST"
|
19971
|
+
o.http_request_uri = "/"
|
19972
|
+
o.input = Shapes::ShapeRef.new(shape: GetInstanceTpmEkPubRequest)
|
19973
|
+
o.output = Shapes::ShapeRef.new(shape: GetInstanceTpmEkPubResult)
|
19974
|
+
end)
|
19975
|
+
|
19951
19976
|
api.add_operation(:get_instance_types_from_instance_requirements, Seahorse::Model::Operation.new.tap do |o|
|
19952
19977
|
o.name = "GetInstanceTypesFromInstanceRequirements"
|
19953
19978
|
o.http_method = "POST"
|
@@ -6214,6 +6214,20 @@ module Aws::EC2
|
|
6214
6214
|
end
|
6215
6215
|
end
|
6216
6216
|
|
6217
|
+
class GetInstanceTpmEkPub
|
6218
|
+
def self.build(context)
|
6219
|
+
unless context.config.regional_endpoint
|
6220
|
+
endpoint = context.config.endpoint.to_s
|
6221
|
+
end
|
6222
|
+
Aws::EC2::EndpointParameters.new(
|
6223
|
+
region: context.config.region,
|
6224
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
6225
|
+
use_fips: context.config.use_fips_endpoint,
|
6226
|
+
endpoint: endpoint,
|
6227
|
+
)
|
6228
|
+
end
|
6229
|
+
end
|
6230
|
+
|
6217
6231
|
class GetInstanceTypesFromInstanceRequirements
|
6218
6232
|
def self.build(context)
|
6219
6233
|
unless context.config.regional_endpoint
|
@@ -944,6 +944,8 @@ module Aws::EC2
|
|
944
944
|
Aws::EC2::Endpoints::GetImageBlockPublicAccessState.build(context)
|
945
945
|
when :get_instance_metadata_defaults
|
946
946
|
Aws::EC2::Endpoints::GetInstanceMetadataDefaults.build(context)
|
947
|
+
when :get_instance_tpm_ek_pub
|
948
|
+
Aws::EC2::Endpoints::GetInstanceTpmEkPub.build(context)
|
947
949
|
when :get_instance_types_from_instance_requirements
|
948
950
|
Aws::EC2::Endpoints::GetInstanceTypesFromInstanceRequirements.build(context)
|
949
951
|
when :get_instance_uefi_data
|
data/lib/aws-sdk-ec2/types.rb
CHANGED
@@ -34609,6 +34609,66 @@ module Aws::EC2
|
|
34609
34609
|
include Aws::Structure
|
34610
34610
|
end
|
34611
34611
|
|
34612
|
+
# @!attribute [rw] instance_id
|
34613
|
+
# The ID of the instance for which to get the public endorsement key.
|
34614
|
+
# @return [String]
|
34615
|
+
#
|
34616
|
+
# @!attribute [rw] key_type
|
34617
|
+
# The required public endorsement key type.
|
34618
|
+
# @return [String]
|
34619
|
+
#
|
34620
|
+
# @!attribute [rw] key_format
|
34621
|
+
# The required public endorsement key format. Specify `der` for a
|
34622
|
+
# DER-encoded public key that is compatible with OpenSSL. Specify
|
34623
|
+
# `tpmt` for a TPM 2.0 format that is compatible with tpm2-tools. The
|
34624
|
+
# returned key is base64 encoded.
|
34625
|
+
# @return [String]
|
34626
|
+
#
|
34627
|
+
# @!attribute [rw] dry_run
|
34628
|
+
# Specify this parameter to verify whether the request will succeed,
|
34629
|
+
# without actually making the request. If the request will succeed,
|
34630
|
+
# the response is `DryRunOperation`. Otherwise, the response is
|
34631
|
+
# `UnauthorizedOperation`.
|
34632
|
+
# @return [Boolean]
|
34633
|
+
#
|
34634
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetInstanceTpmEkPubRequest AWS API Documentation
|
34635
|
+
#
|
34636
|
+
class GetInstanceTpmEkPubRequest < Struct.new(
|
34637
|
+
:instance_id,
|
34638
|
+
:key_type,
|
34639
|
+
:key_format,
|
34640
|
+
:dry_run)
|
34641
|
+
SENSITIVE = []
|
34642
|
+
include Aws::Structure
|
34643
|
+
end
|
34644
|
+
|
34645
|
+
# @!attribute [rw] instance_id
|
34646
|
+
# The ID of the instance.
|
34647
|
+
# @return [String]
|
34648
|
+
#
|
34649
|
+
# @!attribute [rw] key_type
|
34650
|
+
# The public endorsement key type.
|
34651
|
+
# @return [String]
|
34652
|
+
#
|
34653
|
+
# @!attribute [rw] key_format
|
34654
|
+
# The public endorsement key format.
|
34655
|
+
# @return [String]
|
34656
|
+
#
|
34657
|
+
# @!attribute [rw] key_value
|
34658
|
+
# The public endorsement key material.
|
34659
|
+
# @return [String]
|
34660
|
+
#
|
34661
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetInstanceTpmEkPubResult AWS API Documentation
|
34662
|
+
#
|
34663
|
+
class GetInstanceTpmEkPubResult < Struct.new(
|
34664
|
+
:instance_id,
|
34665
|
+
:key_type,
|
34666
|
+
:key_format,
|
34667
|
+
:key_value)
|
34668
|
+
SENSITIVE = [:key_value]
|
34669
|
+
include Aws::Structure
|
34670
|
+
end
|
34671
|
+
|
34612
34672
|
# @!attribute [rw] dry_run
|
34613
34673
|
# Checks whether you have the required permissions for the action,
|
34614
34674
|
# without actually making the request, and provides an error response.
|
data/lib/aws-sdk-ec2.rb
CHANGED
data/sig/client.rbs
CHANGED
@@ -8652,6 +8652,22 @@ module Aws
|
|
8652
8652
|
) -> _GetInstanceMetadataDefaultsResponseSuccess
|
8653
8653
|
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetInstanceMetadataDefaultsResponseSuccess
|
8654
8654
|
|
8655
|
+
interface _GetInstanceTpmEkPubResponseSuccess
|
8656
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::GetInstanceTpmEkPubResult]
|
8657
|
+
def instance_id: () -> ::String
|
8658
|
+
def key_type: () -> ("rsa-2048" | "ecc-sec-p384")
|
8659
|
+
def key_format: () -> ("der" | "tpmt")
|
8660
|
+
def key_value: () -> ::String
|
8661
|
+
end
|
8662
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Client.html#get_instance_tpm_ek_pub-instance_method
|
8663
|
+
def get_instance_tpm_ek_pub: (
|
8664
|
+
instance_id: ::String,
|
8665
|
+
key_type: ("rsa-2048" | "ecc-sec-p384"),
|
8666
|
+
key_format: ("der" | "tpmt"),
|
8667
|
+
?dry_run: bool
|
8668
|
+
) -> _GetInstanceTpmEkPubResponseSuccess
|
8669
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetInstanceTpmEkPubResponseSuccess
|
8670
|
+
|
8655
8671
|
interface _GetInstanceTypesFromInstanceRequirementsResponseSuccess
|
8656
8672
|
include ::Seahorse::Client::_ResponseSuccess[Types::GetInstanceTypesFromInstanceRequirementsResult]
|
8657
8673
|
def instance_types: () -> ::Array[Types::InstanceTypeInfoFromInstanceRequirements]
|
data/sig/types.rbs
CHANGED
@@ -7740,6 +7740,22 @@ module Aws::EC2
|
|
7740
7740
|
SENSITIVE: []
|
7741
7741
|
end
|
7742
7742
|
|
7743
|
+
class GetInstanceTpmEkPubRequest
|
7744
|
+
attr_accessor instance_id: ::String
|
7745
|
+
attr_accessor key_type: ("rsa-2048" | "ecc-sec-p384")
|
7746
|
+
attr_accessor key_format: ("der" | "tpmt")
|
7747
|
+
attr_accessor dry_run: bool
|
7748
|
+
SENSITIVE: []
|
7749
|
+
end
|
7750
|
+
|
7751
|
+
class GetInstanceTpmEkPubResult
|
7752
|
+
attr_accessor instance_id: ::String
|
7753
|
+
attr_accessor key_type: ("rsa-2048" | "ecc-sec-p384")
|
7754
|
+
attr_accessor key_format: ("der" | "tpmt")
|
7755
|
+
attr_accessor key_value: ::String
|
7756
|
+
SENSITIVE: [:key_value]
|
7757
|
+
end
|
7758
|
+
|
7743
7759
|
class GetInstanceTypesFromInstanceRequirementsRequest
|
7744
7760
|
attr_accessor dry_run: bool
|
7745
7761
|
attr_accessor architecture_types: ::Array[("i386" | "x86_64" | "arm64" | "x86_64_mac" | "arm64_mac")]
|
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.455.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: 2024-05-
|
11
|
+
date: 2024-05-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|