aws-sdk-ec2 1.603.0 → 1.604.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: 16ccb526cedb37d55d55cc906f580462044827a07db196cc71f3cca69b761626
4
- data.tar.gz: 5a44f95beece7624d380f98fc978e50405b95b024e94a109447b2b22b89340a2
3
+ metadata.gz: 146704f0ddff52a6dbcd3d1cd44b59c75148158d0af36594454dc2248a1f2786
4
+ data.tar.gz: 3d21cf7fcb6296a406c433b18e78aa3207a0c3e1400e495c9f8a917cbec21acc
5
5
  SHA512:
6
- metadata.gz: fbac11ecec320a8311e01e32d267bdb090eea998576079f8810758263951a9aca5230713c3c5c98f8e2656555343bee76097cadfbe4bce6bb9fc5cf6455940fb
7
- data.tar.gz: 13698ad5b3345c8863e5517512450dc6d246b803424439fffaabb5dd44df65d56b43c248d6bcefebb4ed870a842fd563457ae617a8353ecaf5a3806e0bb2fb0f
6
+ metadata.gz: 82a54bf934282c1c3399e3cfb28ed1603c9735225990346a1aaaf6256d4f5b6ce8be0b0cd86b3a66dbe47a3c21eb34828cd46f304548114bb987a0ddab4e21ed
7
+ data.tar.gz: 033d4f746ac1fc7b65a76762e02766b3b02ccf164e39df689b7f1a54b852fb58e3d7f5d5d46ee1b4e6ffc5ed0cedf18e5fdad608b1af7ee4f0f0570e56efd96b
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.604.0 (2026-02-24)
5
+ ------------------
6
+
7
+ * Feature - Adds httpTokensEnforced property to ModifyInstanceMetadataDefaults API. Set per account or manage organization-wide using declarative policies to prevent IMDSv1-enabled instance launch and block attempts to enable IMDSv1 on existing IMDSv2-only instances.
8
+
4
9
  1.603.0 (2026-02-17)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.603.0
1
+ 1.604.0
@@ -1284,7 +1284,7 @@ module Aws::EC2
1284
1284
  # client_token: "String",
1285
1285
  # instance_type: "String",
1286
1286
  # quantity: 1,
1287
- # availability_zone: "String",
1287
+ # availability_zone: "AvailabilityZoneName",
1288
1288
  # })
1289
1289
  #
1290
1290
  # @example Response structure
@@ -52357,6 +52357,7 @@ module Aws::EC2
52357
52357
  # resp.account_level.instance_metadata_tags #=> String, one of "disabled", "enabled"
52358
52358
  # resp.account_level.managed_by #=> String, one of "account", "declarative-policy"
52359
52359
  # resp.account_level.managed_exception_message #=> String
52360
+ # resp.account_level.http_tokens_enforced #=> String, one of "disabled", "enabled"
52360
52361
  #
52361
52362
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetInstanceMetadataDefaults AWS API Documentation
52362
52363
  #
@@ -59425,6 +59426,17 @@ module Aws::EC2
59425
59426
  # If you have the required permissions, the error response is
59426
59427
  # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
59427
59428
  #
59429
+ # @option params [String] :http_tokens_enforced
59430
+ # Specifies whether to enforce the requirement of IMDSv2 on an instance
59431
+ # at the time of launch. When enforcement is enabled, the instance
59432
+ # can't launch unless IMDSv2 (`HttpTokens`) is set to `required`. For
59433
+ # more information, see [Enforce IMDSv2 at the account level][1] in the
59434
+ # *Amazon EC2 User Guide*.
59435
+ #
59436
+ #
59437
+ #
59438
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-IMDS-new-instances.html#enforce-imdsv2-at-the-account-level
59439
+ #
59428
59440
  # @return [Types::ModifyInstanceMetadataDefaultsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
59429
59441
  #
59430
59442
  # * {Types::ModifyInstanceMetadataDefaultsResult#return #return} => Boolean
@@ -59437,6 +59449,7 @@ module Aws::EC2
59437
59449
  # http_endpoint: "disabled", # accepts disabled, enabled, no-preference
59438
59450
  # instance_metadata_tags: "disabled", # accepts disabled, enabled, no-preference
59439
59451
  # dry_run: false,
59452
+ # http_tokens_enforced: "disabled", # accepts disabled, enabled, no-preference
59440
59453
  # })
59441
59454
  #
59442
59455
  # @example Response structure
@@ -73029,7 +73042,7 @@ module Aws::EC2
73029
73042
  tracer: tracer
73030
73043
  )
73031
73044
  context[:gem_name] = 'aws-sdk-ec2'
73032
- context[:gem_version] = '1.603.0'
73045
+ context[:gem_version] = '1.604.0'
73033
73046
  Seahorse::Client::Request.new(handlers, context)
73034
73047
  end
73035
73048
 
@@ -736,6 +736,7 @@ module Aws::EC2
736
736
  DedicatedHostId = Shapes::StringShape.new(name: 'DedicatedHostId')
737
737
  DedicatedHostIdList = Shapes::ListShape.new(name: 'DedicatedHostIdList')
738
738
  DefaultEnaQueueCountPerInterface = Shapes::IntegerShape.new(name: 'DefaultEnaQueueCountPerInterface')
739
+ DefaultHttpTokensEnforcedState = Shapes::StringShape.new(name: 'DefaultHttpTokensEnforcedState')
739
740
  DefaultInstanceMetadataEndpointState = Shapes::StringShape.new(name: 'DefaultInstanceMetadataEndpointState')
740
741
  DefaultInstanceMetadataTagsState = Shapes::StringShape.new(name: 'DefaultInstanceMetadataTagsState')
741
742
  DefaultNetworkCardIndex = Shapes::IntegerShape.new(name: 'DefaultNetworkCardIndex')
@@ -1950,6 +1951,7 @@ module Aws::EC2
1950
1951
  HostTenancy = Shapes::StringShape.new(name: 'HostTenancy')
1951
1952
  HostnameType = Shapes::StringShape.new(name: 'HostnameType')
1952
1953
  Hour = Shapes::IntegerShape.new(name: 'Hour')
1954
+ HttpTokensEnforcedState = Shapes::StringShape.new(name: 'HttpTokensEnforcedState')
1953
1955
  HttpTokensState = Shapes::StringShape.new(name: 'HttpTokensState')
1954
1956
  HypervisorType = Shapes::StringShape.new(name: 'HypervisorType')
1955
1957
  IKEVersionsList = Shapes::ListShape.new(name: 'IKEVersionsList')
@@ -4225,7 +4227,7 @@ module Aws::EC2
4225
4227
  AllocateHostsRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: String, location_name: "clientToken"))
4226
4228
  AllocateHostsRequest.add_member(:instance_type, Shapes::ShapeRef.new(shape: String, location_name: "instanceType"))
4227
4229
  AllocateHostsRequest.add_member(:quantity, Shapes::ShapeRef.new(shape: Integer, location_name: "quantity"))
4228
- AllocateHostsRequest.add_member(:availability_zone, Shapes::ShapeRef.new(shape: String, location_name: "availabilityZone"))
4230
+ AllocateHostsRequest.add_member(:availability_zone, Shapes::ShapeRef.new(shape: AvailabilityZoneName, location_name: "availabilityZone"))
4229
4231
  AllocateHostsRequest.struct_class = Types::AllocateHostsRequest
4230
4232
 
4231
4233
  AllocateHostsResult.add_member(:host_ids, Shapes::ShapeRef.new(shape: ResponseHostIdList, location_name: "hostIdSet"))
@@ -12675,6 +12677,7 @@ module Aws::EC2
12675
12677
  InstanceMetadataDefaultsResponse.add_member(:instance_metadata_tags, Shapes::ShapeRef.new(shape: InstanceMetadataTagsState, location_name: "instanceMetadataTags"))
12676
12678
  InstanceMetadataDefaultsResponse.add_member(:managed_by, Shapes::ShapeRef.new(shape: ManagedBy, location_name: "managedBy"))
12677
12679
  InstanceMetadataDefaultsResponse.add_member(:managed_exception_message, Shapes::ShapeRef.new(shape: String, location_name: "managedExceptionMessage"))
12680
+ InstanceMetadataDefaultsResponse.add_member(:http_tokens_enforced, Shapes::ShapeRef.new(shape: HttpTokensEnforcedState, location_name: "httpTokensEnforced"))
12678
12681
  InstanceMetadataDefaultsResponse.struct_class = Types::InstanceMetadataDefaultsResponse
12679
12682
 
12680
12683
  InstanceMetadataOptionsRequest.add_member(:http_tokens, Shapes::ShapeRef.new(shape: HttpTokensState, location_name: "HttpTokens"))
@@ -14479,6 +14482,7 @@ module Aws::EC2
14479
14482
  ModifyInstanceMetadataDefaultsRequest.add_member(:http_endpoint, Shapes::ShapeRef.new(shape: DefaultInstanceMetadataEndpointState, location_name: "HttpEndpoint"))
14480
14483
  ModifyInstanceMetadataDefaultsRequest.add_member(:instance_metadata_tags, Shapes::ShapeRef.new(shape: DefaultInstanceMetadataTagsState, location_name: "InstanceMetadataTags"))
14481
14484
  ModifyInstanceMetadataDefaultsRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
14485
+ ModifyInstanceMetadataDefaultsRequest.add_member(:http_tokens_enforced, Shapes::ShapeRef.new(shape: DefaultHttpTokensEnforcedState, location_name: "HttpTokensEnforced"))
14482
14486
  ModifyInstanceMetadataDefaultsRequest.struct_class = Types::ModifyInstanceMetadataDefaultsRequest
14483
14487
 
14484
14488
  ModifyInstanceMetadataDefaultsResult.add_member(:return, Shapes::ShapeRef.new(shape: Boolean, location_name: "return"))
@@ -50792,6 +50792,13 @@ module Aws::EC2
50792
50792
  # declarative policy.
50793
50793
  # @return [String]
50794
50794
  #
50795
+ # @!attribute [rw] http_tokens_enforced
50796
+ # Indicates whether to enforce the requirement of IMDSv2 on an
50797
+ # instance at the time of launch. When enforcement is enabled, the
50798
+ # instance can't launch unless IMDSv2 (`HttpTokens`) is set to
50799
+ # `required`.
50800
+ # @return [String]
50801
+ #
50795
50802
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceMetadataDefaultsResponse AWS API Documentation
50796
50803
  #
50797
50804
  class InstanceMetadataDefaultsResponse < Struct.new(
@@ -50800,7 +50807,8 @@ module Aws::EC2
50800
50807
  :http_endpoint,
50801
50808
  :instance_metadata_tags,
50802
50809
  :managed_by,
50803
- :managed_exception_message)
50810
+ :managed_exception_message,
50811
+ :http_tokens_enforced)
50804
50812
  SENSITIVE = []
50805
50813
  include Aws::Structure
50806
50814
  end
@@ -61456,6 +61464,18 @@ module Aws::EC2
61456
61464
  # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
61457
61465
  # @return [Boolean]
61458
61466
  #
61467
+ # @!attribute [rw] http_tokens_enforced
61468
+ # Specifies whether to enforce the requirement of IMDSv2 on an
61469
+ # instance at the time of launch. When enforcement is enabled, the
61470
+ # instance can't launch unless IMDSv2 (`HttpTokens`) is set to
61471
+ # `required`. For more information, see [Enforce IMDSv2 at the account
61472
+ # level][1] in the *Amazon EC2 User Guide*.
61473
+ #
61474
+ #
61475
+ #
61476
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-IMDS-new-instances.html#enforce-imdsv2-at-the-account-level
61477
+ # @return [String]
61478
+ #
61459
61479
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyInstanceMetadataDefaultsRequest AWS API Documentation
61460
61480
  #
61461
61481
  class ModifyInstanceMetadataDefaultsRequest < Struct.new(
@@ -61463,7 +61483,8 @@ module Aws::EC2
61463
61483
  :http_put_response_hop_limit,
61464
61484
  :http_endpoint,
61465
61485
  :instance_metadata_tags,
61466
- :dry_run)
61486
+ :dry_run,
61487
+ :http_tokens_enforced)
61467
61488
  SENSITIVE = []
61468
61489
  include Aws::Structure
61469
61490
  end
data/lib/aws-sdk-ec2.rb CHANGED
@@ -78,7 +78,7 @@ module Aws::EC2
78
78
  autoload :VpcPeeringConnection, 'aws-sdk-ec2/vpc_peering_connection'
79
79
  autoload :VpcAddress, 'aws-sdk-ec2/vpc_address'
80
80
 
81
- GEM_VERSION = '1.603.0'
81
+ GEM_VERSION = '1.604.0'
82
82
 
83
83
  end
84
84
 
data/sig/client.rbs CHANGED
@@ -12523,7 +12523,8 @@ module Aws
12523
12523
  ?http_put_response_hop_limit: ::Integer,
12524
12524
  ?http_endpoint: ("disabled" | "enabled" | "no-preference"),
12525
12525
  ?instance_metadata_tags: ("disabled" | "enabled" | "no-preference"),
12526
- ?dry_run: bool
12526
+ ?dry_run: bool,
12527
+ ?http_tokens_enforced: ("disabled" | "enabled" | "no-preference")
12527
12528
  ) -> _ModifyInstanceMetadataDefaultsResponseSuccess
12528
12529
  | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ModifyInstanceMetadataDefaultsResponseSuccess
12529
12530
 
data/sig/types.rbs CHANGED
@@ -11194,6 +11194,7 @@ module Aws::EC2
11194
11194
  attr_accessor instance_metadata_tags: ("disabled" | "enabled")
11195
11195
  attr_accessor managed_by: ("account" | "declarative-policy")
11196
11196
  attr_accessor managed_exception_message: ::String
11197
+ attr_accessor http_tokens_enforced: ("disabled" | "enabled")
11197
11198
  SENSITIVE: []
11198
11199
  end
11199
11200
 
@@ -13174,6 +13175,7 @@ module Aws::EC2
13174
13175
  attr_accessor http_endpoint: ("disabled" | "enabled" | "no-preference")
13175
13176
  attr_accessor instance_metadata_tags: ("disabled" | "enabled" | "no-preference")
13176
13177
  attr_accessor dry_run: bool
13178
+ attr_accessor http_tokens_enforced: ("disabled" | "enabled" | "no-preference")
13177
13179
  SENSITIVE: []
13178
13180
  end
13179
13181
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-ec2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.603.0
4
+ version: 1.604.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services