aws-sdk-ec2 1.454.0 → 1.456.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3434f26b012725ec2fac3a31acb147529ba847ee60228a32f3d70ee95f38283d
4
- data.tar.gz: 41d21aeef55038e017ca8b2e7a9d7dfd77f50631dc8c316236b313419662c857
3
+ metadata.gz: e5effb071928428fc9b1c9d7aaad4048cecdb54fa15da2212d933140a1e74959
4
+ data.tar.gz: c6846094be83c90db97eb7300600aa0ba1d30e0a989d51f16f0a0c51dc14141d
5
5
  SHA512:
6
- metadata.gz: 71cb3bc764e06e53ba73f68648fa11440c72b9cbaf98d4cd188358d2750628000e522586969faba1ff4c2937d29e58dd4c6b29e71cc94859994fa54109bff5a1
7
- data.tar.gz: a70ae56d4ff810917fbe26cc8bbf94b11b528e0b28a7556bd0c1557477ec9e0fa1ede81b50ae4f788254c5e24d65a061b5fde18c55cf53c6b806f8fbc56c24e3
6
+ metadata.gz: e54f9718e6cd1526579634c31ee1230d4e1fdcd743c23e4319994fc0bee5dbb4285a73fc85598e6eb4d3a0415e6d50cccb99e4e51060144605131c27c90e8e6c
7
+ data.tar.gz: 599df93f2534bb797de71f24a0f2658a888f7d7c9bab4ddd4bb394c872da9074ea263c31c22a4fbe7ecc7747cfe9987f33c0f5f6f44fe3778fe525005d7630cb
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.456.0 (2024-05-08)
5
+ ------------------
6
+
7
+ * Feature - Adding Precision Hardware Clock (PHC) to public API DescribeInstanceTypes
8
+
9
+ 1.455.0 (2024-05-02)
10
+ ------------------
11
+
12
+ * Feature - This release includes a new API for retrieving the public endorsement key of the EC2 instance's Nitro Trusted Platform Module (NitroTPM).
13
+
4
14
  1.454.0 (2024-05-01)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.454.0
1
+ 1.456.0
@@ -25257,6 +25257,7 @@ module Aws::EC2
25257
25257
  # resp.instance_types[0].neuron_info.neuron_devices[0].core_info.version #=> Integer
25258
25258
  # resp.instance_types[0].neuron_info.neuron_devices[0].memory_info.size_in_mi_b #=> Integer
25259
25259
  # resp.instance_types[0].neuron_info.total_neuron_device_memory_in_mi_b #=> Integer
25260
+ # resp.instance_types[0].phc_support #=> String, one of "unsupported", "supported"
25260
25261
  # resp.next_token #=> String
25261
25262
  #
25262
25263
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInstanceTypes AWS API Documentation
@@ -41777,6 +41778,59 @@ module Aws::EC2
41777
41778
  req.send_request(options)
41778
41779
  end
41779
41780
 
41781
+ # Gets the public endorsement key associated with the Nitro Trusted
41782
+ # Platform Module (NitroTPM) for the specified instance.
41783
+ #
41784
+ # @option params [required, String] :instance_id
41785
+ # The ID of the instance for which to get the public endorsement key.
41786
+ #
41787
+ # @option params [required, String] :key_type
41788
+ # The required public endorsement key type.
41789
+ #
41790
+ # @option params [required, String] :key_format
41791
+ # The required public endorsement key format. Specify `der` for a
41792
+ # DER-encoded public key that is compatible with OpenSSL. Specify `tpmt`
41793
+ # for a TPM 2.0 format that is compatible with tpm2-tools. The returned
41794
+ # key is base64 encoded.
41795
+ #
41796
+ # @option params [Boolean] :dry_run
41797
+ # Specify this parameter to verify whether the request will succeed,
41798
+ # without actually making the request. If the request will succeed, the
41799
+ # response is `DryRunOperation`. Otherwise, the response is
41800
+ # `UnauthorizedOperation`.
41801
+ #
41802
+ # @return [Types::GetInstanceTpmEkPubResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
41803
+ #
41804
+ # * {Types::GetInstanceTpmEkPubResult#instance_id #instance_id} => String
41805
+ # * {Types::GetInstanceTpmEkPubResult#key_type #key_type} => String
41806
+ # * {Types::GetInstanceTpmEkPubResult#key_format #key_format} => String
41807
+ # * {Types::GetInstanceTpmEkPubResult#key_value #key_value} => String
41808
+ #
41809
+ # @example Request syntax with placeholder values
41810
+ #
41811
+ # resp = client.get_instance_tpm_ek_pub({
41812
+ # instance_id: "InstanceId", # required
41813
+ # key_type: "rsa-2048", # required, accepts rsa-2048, ecc-sec-p384
41814
+ # key_format: "der", # required, accepts der, tpmt
41815
+ # dry_run: false,
41816
+ # })
41817
+ #
41818
+ # @example Response structure
41819
+ #
41820
+ # resp.instance_id #=> String
41821
+ # resp.key_type #=> String, one of "rsa-2048", "ecc-sec-p384"
41822
+ # resp.key_format #=> String, one of "der", "tpmt"
41823
+ # resp.key_value #=> String
41824
+ #
41825
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetInstanceTpmEkPub AWS API Documentation
41826
+ #
41827
+ # @overload get_instance_tpm_ek_pub(params = {})
41828
+ # @param [Hash] params ({})
41829
+ def get_instance_tpm_ek_pub(params = {}, options = {})
41830
+ req = build_request(:get_instance_tpm_ek_pub, params)
41831
+ req.send_request(options)
41832
+ end
41833
+
41780
41834
  # Returns a list of instance types with the specified instance
41781
41835
  # attributes. You can use the response to preview the instance types
41782
41836
  # without launching instances. Note that the response does not consider
@@ -59302,7 +59356,7 @@ module Aws::EC2
59302
59356
  params: params,
59303
59357
  config: config)
59304
59358
  context[:gem_name] = 'aws-sdk-ec2'
59305
- context[:gem_version] = '1.454.0'
59359
+ context[:gem_version] = '1.456.0'
59306
59360
  Seahorse::Client::Request.new(handlers, context)
59307
59361
  end
59308
59362
 
@@ -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')
@@ -2364,6 +2369,7 @@ module Aws::EC2
2364
2369
  Phase2IntegrityAlgorithmsListValue = Shapes::StructureShape.new(name: 'Phase2IntegrityAlgorithmsListValue')
2365
2370
  Phase2IntegrityAlgorithmsRequestList = Shapes::ListShape.new(name: 'Phase2IntegrityAlgorithmsRequestList')
2366
2371
  Phase2IntegrityAlgorithmsRequestListValue = Shapes::StructureShape.new(name: 'Phase2IntegrityAlgorithmsRequestListValue')
2372
+ PhcSupport = Shapes::StringShape.new(name: 'PhcSupport')
2367
2373
  Placement = Shapes::StructureShape.new(name: 'Placement')
2368
2374
  PlacementGroup = Shapes::StructureShape.new(name: 'PlacementGroup')
2369
2375
  PlacementGroupArn = Shapes::StringShape.new(name: 'PlacementGroupArn')
@@ -9095,6 +9101,18 @@ module Aws::EC2
9095
9101
  GetInstanceMetadataDefaultsResult.add_member(:account_level, Shapes::ShapeRef.new(shape: InstanceMetadataDefaultsResponse, location_name: "accountLevel"))
9096
9102
  GetInstanceMetadataDefaultsResult.struct_class = Types::GetInstanceMetadataDefaultsResult
9097
9103
 
9104
+ GetInstanceTpmEkPubRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: InstanceId, required: true, location_name: "InstanceId"))
9105
+ GetInstanceTpmEkPubRequest.add_member(:key_type, Shapes::ShapeRef.new(shape: EkPubKeyType, required: true, location_name: "KeyType"))
9106
+ GetInstanceTpmEkPubRequest.add_member(:key_format, Shapes::ShapeRef.new(shape: EkPubKeyFormat, required: true, location_name: "KeyFormat"))
9107
+ GetInstanceTpmEkPubRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
9108
+ GetInstanceTpmEkPubRequest.struct_class = Types::GetInstanceTpmEkPubRequest
9109
+
9110
+ GetInstanceTpmEkPubResult.add_member(:instance_id, Shapes::ShapeRef.new(shape: InstanceId, location_name: "instanceId"))
9111
+ GetInstanceTpmEkPubResult.add_member(:key_type, Shapes::ShapeRef.new(shape: EkPubKeyType, location_name: "keyType"))
9112
+ GetInstanceTpmEkPubResult.add_member(:key_format, Shapes::ShapeRef.new(shape: EkPubKeyFormat, location_name: "keyFormat"))
9113
+ GetInstanceTpmEkPubResult.add_member(:key_value, Shapes::ShapeRef.new(shape: EkPubKeyValue, location_name: "keyValue"))
9114
+ GetInstanceTpmEkPubResult.struct_class = Types::GetInstanceTpmEkPubResult
9115
+
9098
9116
  GetInstanceTypesFromInstanceRequirementsRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
9099
9117
  GetInstanceTypesFromInstanceRequirementsRequest.add_member(:architecture_types, Shapes::ShapeRef.new(shape: ArchitectureTypeSet, required: true, location_name: "ArchitectureType"))
9100
9118
  GetInstanceTypesFromInstanceRequirementsRequest.add_member(:virtualization_types, Shapes::ShapeRef.new(shape: VirtualizationTypeSet, required: true, location_name: "VirtualizationType"))
@@ -10351,6 +10369,7 @@ module Aws::EC2
10351
10369
  InstanceTypeInfo.add_member(:nitro_tpm_info, Shapes::ShapeRef.new(shape: NitroTpmInfo, location_name: "nitroTpmInfo"))
10352
10370
  InstanceTypeInfo.add_member(:media_accelerator_info, Shapes::ShapeRef.new(shape: MediaAcceleratorInfo, location_name: "mediaAcceleratorInfo"))
10353
10371
  InstanceTypeInfo.add_member(:neuron_info, Shapes::ShapeRef.new(shape: NeuronInfo, location_name: "neuronInfo"))
10372
+ InstanceTypeInfo.add_member(:phc_support, Shapes::ShapeRef.new(shape: PhcSupport, location_name: "phcSupport"))
10354
10373
  InstanceTypeInfo.struct_class = Types::InstanceTypeInfo
10355
10374
 
10356
10375
  InstanceTypeInfoFromInstanceRequirements.add_member(:instance_type, Shapes::ShapeRef.new(shape: String, location_name: "instanceType"))
@@ -19948,6 +19967,14 @@ module Aws::EC2
19948
19967
  o.output = Shapes::ShapeRef.new(shape: GetInstanceMetadataDefaultsResult)
19949
19968
  end)
19950
19969
 
19970
+ api.add_operation(:get_instance_tpm_ek_pub, Seahorse::Model::Operation.new.tap do |o|
19971
+ o.name = "GetInstanceTpmEkPub"
19972
+ o.http_method = "POST"
19973
+ o.http_request_uri = "/"
19974
+ o.input = Shapes::ShapeRef.new(shape: GetInstanceTpmEkPubRequest)
19975
+ o.output = Shapes::ShapeRef.new(shape: GetInstanceTpmEkPubResult)
19976
+ end)
19977
+
19951
19978
  api.add_operation(:get_instance_types_from_instance_requirements, Seahorse::Model::Operation.new.tap do |o|
19952
19979
  o.name = "GetInstanceTypesFromInstanceRequirements"
19953
19980
  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
@@ -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.
@@ -41778,6 +41838,11 @@ module Aws::EC2
41778
41838
  # Describes the Neuron accelerator settings for the instance type.
41779
41839
  # @return [Types::NeuronInfo]
41780
41840
  #
41841
+ # @!attribute [rw] phc_support
41842
+ # Indicates whether a local Precision Time Protocol (PTP) hardware
41843
+ # clock (PHC) is supported.
41844
+ # @return [String]
41845
+ #
41781
41846
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceTypeInfo AWS API Documentation
41782
41847
  #
41783
41848
  class InstanceTypeInfo < Struct.new(
@@ -41809,7 +41874,8 @@ module Aws::EC2
41809
41874
  :nitro_tpm_support,
41810
41875
  :nitro_tpm_info,
41811
41876
  :media_accelerator_info,
41812
- :neuron_info)
41877
+ :neuron_info,
41878
+ :phc_support)
41813
41879
  SENSITIVE = []
41814
41880
  include Aws::Structure
41815
41881
  end
data/lib/aws-sdk-ec2.rb CHANGED
@@ -76,6 +76,6 @@ require_relative 'aws-sdk-ec2/customizations'
76
76
  # @!group service
77
77
  module Aws::EC2
78
78
 
79
- GEM_VERSION = '1.454.0'
79
+ GEM_VERSION = '1.456.0'
80
80
 
81
81
  end
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")]
@@ -9197,6 +9213,7 @@ module Aws::EC2
9197
9213
  attr_accessor nitro_tpm_info: Types::NitroTpmInfo
9198
9214
  attr_accessor media_accelerator_info: Types::MediaAcceleratorInfo
9199
9215
  attr_accessor neuron_info: Types::NeuronInfo
9216
+ attr_accessor phc_support: ("unsupported" | "supported")
9200
9217
  SENSITIVE: []
9201
9218
  end
9202
9219
 
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.454.0
4
+ version: 1.456.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-01 00:00:00.000000000 Z
11
+ date: 2024-05-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core