aws-sdk-ec2 1.444.0 → 1.445.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 +139 -4
- data/lib/aws-sdk-ec2/client_api.rb +47 -0
- data/lib/aws-sdk-ec2/endpoints.rb +28 -0
- data/lib/aws-sdk-ec2/image.rb +1 -2
- data/lib/aws-sdk-ec2/plugins/endpoints.rb +4 -0
- data/lib/aws-sdk-ec2/types.rb +184 -37
- data/lib/aws-sdk-ec2.rb +1 -1
- data/sig/client.rbs +24 -0
- data/sig/types.rbs +32 -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: 3f33b6a505b2c3eb49d0b06132cbff9ad24f9799a5c502ab18c7311b8c31d8af
|
4
|
+
data.tar.gz: b01c5077af94a08c4107134461362cf3d7010e87960b6dd2b4ae1bb8574bb5d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 62235ad869ccb1fe3792e735856a15766b58a8aee14d88fe23dff85d62c2991a45095517b2f75b489f11be6f17beb7b18f6b4709298092d361991cc08f289341
|
7
|
+
data.tar.gz: 6f6bf99c7e3f12109ca0e9be12fb102d18048c0d6c5b2b89fd818b161b75a1e2f1b8ce7645f43f66c5ad3f88ef3154c401b5567a668df0a6b4e55559d4dc556a
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.445.0 (2024-03-25)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Added support for ModifyInstanceMetadataDefaults and GetInstanceMetadataDefaults to set Instance Metadata Service account defaults
|
8
|
+
|
4
9
|
1.444.0 (2024-03-19)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.445.0
|
data/lib/aws-sdk-ec2/client.rb
CHANGED
@@ -41544,6 +41544,48 @@ module Aws::EC2
|
|
41544
41544
|
req.send_request(options)
|
41545
41545
|
end
|
41546
41546
|
|
41547
|
+
# Gets the default instance metadata service (IMDS) settings that are
|
41548
|
+
# set at the account level in the specified Amazon Web Services
Region.
|
41549
|
+
#
|
41550
|
+
# For more information, see [Order of precedence for instance metadata
|
41551
|
+
# options][1] in the *Amazon EC2 User Guide*.
|
41552
|
+
#
|
41553
|
+
#
|
41554
|
+
#
|
41555
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-instance-metadata-options.html#instance-metadata-options-order-of-precedence
|
41556
|
+
#
|
41557
|
+
# @option params [Boolean] :dry_run
|
41558
|
+
# Checks whether you have the required permissions for the action,
|
41559
|
+
# without actually making the request, and provides an error response.
|
41560
|
+
# If you have the required permissions, the error response is
|
41561
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
41562
|
+
#
|
41563
|
+
# @return [Types::GetInstanceMetadataDefaultsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
41564
|
+
#
|
41565
|
+
# * {Types::GetInstanceMetadataDefaultsResult#account_level #account_level} => Types::InstanceMetadataDefaultsResponse
|
41566
|
+
#
|
41567
|
+
# @example Request syntax with placeholder values
|
41568
|
+
#
|
41569
|
+
# resp = client.get_instance_metadata_defaults({
|
41570
|
+
# dry_run: false,
|
41571
|
+
# })
|
41572
|
+
#
|
41573
|
+
# @example Response structure
|
41574
|
+
#
|
41575
|
+
# resp.account_level.http_tokens #=> String, one of "optional", "required"
|
41576
|
+
# resp.account_level.http_put_response_hop_limit #=> Integer
|
41577
|
+
# resp.account_level.http_endpoint #=> String, one of "disabled", "enabled"
|
41578
|
+
# resp.account_level.instance_metadata_tags #=> String, one of "disabled", "enabled"
|
41579
|
+
#
|
41580
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetInstanceMetadataDefaults AWS API Documentation
|
41581
|
+
#
|
41582
|
+
# @overload get_instance_metadata_defaults(params = {})
|
41583
|
+
# @param [Hash] params ({})
|
41584
|
+
def get_instance_metadata_defaults(params = {}, options = {})
|
41585
|
+
req = build_request(:get_instance_metadata_defaults, params)
|
41586
|
+
req.send_request(options)
|
41587
|
+
end
|
41588
|
+
|
41547
41589
|
# Returns a list of instance types with the specified instance
|
41548
41590
|
# attributes. You can use the response to preview the instance types
|
41549
41591
|
# without launching instances. Note that the response does not consider
|
@@ -47296,6 +47338,83 @@ module Aws::EC2
|
|
47296
47338
|
req.send_request(options)
|
47297
47339
|
end
|
47298
47340
|
|
47341
|
+
# Modifies the default instance metadata service (IMDS) settings at the
|
47342
|
+
# account level in the specified Amazon Web Services
Region.
|
47343
|
+
#
|
47344
|
+
# <note markdown="1"> To remove a parameter's account-level default setting, specify
|
47345
|
+
# `no-preference`. At instance launch, the value will come from the AMI,
|
47346
|
+
# or from the launch parameter if specified. For more information, see
|
47347
|
+
# [Order of precedence for instance metadata options][1] in the *Amazon
|
47348
|
+
# EC2 User Guide*.
|
47349
|
+
#
|
47350
|
+
# </note>
|
47351
|
+
#
|
47352
|
+
#
|
47353
|
+
#
|
47354
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-instance-metadata-options.html#instance-metadata-options-order-of-precedence
|
47355
|
+
#
|
47356
|
+
# @option params [String] :http_tokens
|
47357
|
+
# Indicates whether IMDSv2 is required.
|
47358
|
+
#
|
47359
|
+
# * `optional` – IMDSv2 is optional, which means that you can use either
|
47360
|
+
# IMDSv2 or IMDSv1.
|
47361
|
+
#
|
47362
|
+
# * `required` – IMDSv2 is required, which means that IMDSv1 is
|
47363
|
+
# disabled, and you must use IMDSv2.
|
47364
|
+
#
|
47365
|
+
# @option params [Integer] :http_put_response_hop_limit
|
47366
|
+
# The maximum number of hops that the metadata token can travel.
|
47367
|
+
#
|
47368
|
+
# Minimum: `1`
|
47369
|
+
#
|
47370
|
+
# Maximum: `64`
|
47371
|
+
#
|
47372
|
+
# @option params [String] :http_endpoint
|
47373
|
+
# Enables or disables the IMDS endpoint on an instance. When disabled,
|
47374
|
+
# the instance metadata can't be accessed.
|
47375
|
+
#
|
47376
|
+
# @option params [String] :instance_metadata_tags
|
47377
|
+
# Enables or disables access to an instance's tags from the instance
|
47378
|
+
# metadata. For more information, see [Work with instance tags using the
|
47379
|
+
# instance metadata][1] in the *Amazon EC2 User Guide*.
|
47380
|
+
#
|
47381
|
+
#
|
47382
|
+
#
|
47383
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html#work-with-tags-in-IMDS
|
47384
|
+
#
|
47385
|
+
# @option params [Boolean] :dry_run
|
47386
|
+
# Checks whether you have the required permissions for the action,
|
47387
|
+
# without actually making the request, and provides an error response.
|
47388
|
+
# If you have the required permissions, the error response is
|
47389
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
47390
|
+
#
|
47391
|
+
# @return [Types::ModifyInstanceMetadataDefaultsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
47392
|
+
#
|
47393
|
+
# * {Types::ModifyInstanceMetadataDefaultsResult#return #return} => Boolean
|
47394
|
+
#
|
47395
|
+
# @example Request syntax with placeholder values
|
47396
|
+
#
|
47397
|
+
# resp = client.modify_instance_metadata_defaults({
|
47398
|
+
# http_tokens: "optional", # accepts optional, required, no-preference
|
47399
|
+
# http_put_response_hop_limit: 1,
|
47400
|
+
# http_endpoint: "disabled", # accepts disabled, enabled, no-preference
|
47401
|
+
# instance_metadata_tags: "disabled", # accepts disabled, enabled, no-preference
|
47402
|
+
# dry_run: false,
|
47403
|
+
# })
|
47404
|
+
#
|
47405
|
+
# @example Response structure
|
47406
|
+
#
|
47407
|
+
# resp.return #=> Boolean
|
47408
|
+
#
|
47409
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyInstanceMetadataDefaults AWS API Documentation
|
47410
|
+
#
|
47411
|
+
# @overload modify_instance_metadata_defaults(params = {})
|
47412
|
+
# @param [Hash] params ({})
|
47413
|
+
def modify_instance_metadata_defaults(params = {}, options = {})
|
47414
|
+
req = build_request(:modify_instance_metadata_defaults, params)
|
47415
|
+
req.send_request(options)
|
47416
|
+
end
|
47417
|
+
|
47299
47418
|
# Modify the instance metadata parameters on a running or stopped
|
47300
47419
|
# instance. When you modify the parameters on a stopped instance, they
|
47301
47420
|
# are applied when the instance is started. When you modify the
|
@@ -47328,8 +47447,23 @@ module Aws::EC2
|
|
47328
47447
|
# retrieving the IAM role credentials always returns IMDSv2
|
47329
47448
|
# credentials; IMDSv1 credentials are not available.
|
47330
47449
|
#
|
47331
|
-
# Default:
|
47332
|
-
#
|
47450
|
+
# Default:
|
47451
|
+
#
|
47452
|
+
# * If the value of `ImdsSupport` for the Amazon Machine Image (AMI) for
|
47453
|
+
# your instance is `v2.0` and the account level default is set to
|
47454
|
+
# `no-preference`, the default is `required`.
|
47455
|
+
#
|
47456
|
+
# * If the value of `ImdsSupport` for the Amazon Machine Image (AMI) for
|
47457
|
+
# your instance is `v2.0`, but the account level default is set to `V1
|
47458
|
+
# or V2`, the default is `optional`.
|
47459
|
+
#
|
47460
|
+
# The default value can also be affected by other combinations of
|
47461
|
+
# parameters. For more information, see [Order of precedence for
|
47462
|
+
# instance metadata options][1] in the *Amazon EC2 User Guide*.
|
47463
|
+
#
|
47464
|
+
#
|
47465
|
+
#
|
47466
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-instance-metadata-options.html#instance-metadata-options-order-of-precedence
|
47333
47467
|
#
|
47334
47468
|
# @option params [Integer] :http_put_response_hop_limit
|
47335
47469
|
# The desired HTTP PUT response hop limit for instance metadata
|
@@ -56860,7 +56994,8 @@ module Aws::EC2
|
|
56860
56994
|
# * `type` - The type of route (`propagated` \| `static`).
|
56861
56995
|
#
|
56862
56996
|
# @option params [Integer] :max_results
|
56863
|
-
# The maximum number of routes to return.
|
56997
|
+
# The maximum number of routes to return. If a value is not provided,
|
56998
|
+
# the default is 1000.
|
56864
56999
|
#
|
56865
57000
|
# @option params [Boolean] :dry_run
|
56866
57001
|
# Checks whether you have the required permissions for the action,
|
@@ -58981,7 +59116,7 @@ module Aws::EC2
|
|
58981
59116
|
params: params,
|
58982
59117
|
config: config)
|
58983
59118
|
context[:gem_name] = 'aws-sdk-ec2'
|
58984
|
-
context[:gem_version] = '1.
|
59119
|
+
context[:gem_version] = '1.445.0'
|
58985
59120
|
Seahorse::Client::Request.new(handlers, context)
|
58986
59121
|
end
|
58987
59122
|
|
@@ -225,6 +225,7 @@ module Aws::EC2
|
|
225
225
|
BootModeTypeList = Shapes::ListShape.new(name: 'BootModeTypeList')
|
226
226
|
BootModeValues = Shapes::StringShape.new(name: 'BootModeValues')
|
227
227
|
BoxedDouble = Shapes::FloatShape.new(name: 'BoxedDouble')
|
228
|
+
BoxedInteger = Shapes::IntegerShape.new(name: 'BoxedInteger')
|
228
229
|
BundleId = Shapes::StringShape.new(name: 'BundleId')
|
229
230
|
BundleIdStringList = Shapes::ListShape.new(name: 'BundleIdStringList')
|
230
231
|
BundleInstanceRequest = Shapes::StructureShape.new(name: 'BundleInstanceRequest')
|
@@ -593,6 +594,8 @@ module Aws::EC2
|
|
593
594
|
DedicatedHostFlag = Shapes::BooleanShape.new(name: 'DedicatedHostFlag')
|
594
595
|
DedicatedHostId = Shapes::StringShape.new(name: 'DedicatedHostId')
|
595
596
|
DedicatedHostIdList = Shapes::ListShape.new(name: 'DedicatedHostIdList')
|
597
|
+
DefaultInstanceMetadataEndpointState = Shapes::StringShape.new(name: 'DefaultInstanceMetadataEndpointState')
|
598
|
+
DefaultInstanceMetadataTagsState = Shapes::StringShape.new(name: 'DefaultInstanceMetadataTagsState')
|
596
599
|
DefaultNetworkCardIndex = Shapes::IntegerShape.new(name: 'DefaultNetworkCardIndex')
|
597
600
|
DefaultRouteTableAssociationValue = Shapes::StringShape.new(name: 'DefaultRouteTableAssociationValue')
|
598
601
|
DefaultRouteTablePropagationValue = Shapes::StringShape.new(name: 'DefaultRouteTablePropagationValue')
|
@@ -1461,6 +1464,8 @@ module Aws::EC2
|
|
1461
1464
|
GetHostReservationPurchasePreviewResult = Shapes::StructureShape.new(name: 'GetHostReservationPurchasePreviewResult')
|
1462
1465
|
GetImageBlockPublicAccessStateRequest = Shapes::StructureShape.new(name: 'GetImageBlockPublicAccessStateRequest')
|
1463
1466
|
GetImageBlockPublicAccessStateResult = Shapes::StructureShape.new(name: 'GetImageBlockPublicAccessStateResult')
|
1467
|
+
GetInstanceMetadataDefaultsRequest = Shapes::StructureShape.new(name: 'GetInstanceMetadataDefaultsRequest')
|
1468
|
+
GetInstanceMetadataDefaultsResult = Shapes::StructureShape.new(name: 'GetInstanceMetadataDefaultsResult')
|
1464
1469
|
GetInstanceTypesFromInstanceRequirementsRequest = Shapes::StructureShape.new(name: 'GetInstanceTypesFromInstanceRequirementsRequest')
|
1465
1470
|
GetInstanceTypesFromInstanceRequirementsResult = Shapes::StructureShape.new(name: 'GetInstanceTypesFromInstanceRequirementsResult')
|
1466
1471
|
GetInstanceUefiDataRequest = Shapes::StructureShape.new(name: 'GetInstanceUefiDataRequest')
|
@@ -1705,6 +1710,7 @@ module Aws::EC2
|
|
1705
1710
|
InstanceMaintenanceOptionsRequest = Shapes::StructureShape.new(name: 'InstanceMaintenanceOptionsRequest')
|
1706
1711
|
InstanceMarketOptionsRequest = Shapes::StructureShape.new(name: 'InstanceMarketOptionsRequest')
|
1707
1712
|
InstanceMatchCriteria = Shapes::StringShape.new(name: 'InstanceMatchCriteria')
|
1713
|
+
InstanceMetadataDefaultsResponse = Shapes::StructureShape.new(name: 'InstanceMetadataDefaultsResponse')
|
1708
1714
|
InstanceMetadataEndpointState = Shapes::StringShape.new(name: 'InstanceMetadataEndpointState')
|
1709
1715
|
InstanceMetadataOptionsRequest = Shapes::StructureShape.new(name: 'InstanceMetadataOptionsRequest')
|
1710
1716
|
InstanceMetadataOptionsResponse = Shapes::StructureShape.new(name: 'InstanceMetadataOptionsResponse')
|
@@ -2061,6 +2067,7 @@ module Aws::EC2
|
|
2061
2067
|
MemoryMiB = Shapes::StructureShape.new(name: 'MemoryMiB')
|
2062
2068
|
MemoryMiBRequest = Shapes::StructureShape.new(name: 'MemoryMiBRequest')
|
2063
2069
|
MemorySize = Shapes::IntegerShape.new(name: 'MemorySize')
|
2070
|
+
MetadataDefaultHttpTokensState = Shapes::StringShape.new(name: 'MetadataDefaultHttpTokensState')
|
2064
2071
|
MetricPoint = Shapes::StructureShape.new(name: 'MetricPoint')
|
2065
2072
|
MetricPoints = Shapes::ListShape.new(name: 'MetricPoints')
|
2066
2073
|
MetricType = Shapes::StringShape.new(name: 'MetricType')
|
@@ -2100,6 +2107,8 @@ module Aws::EC2
|
|
2100
2107
|
ModifyInstanceEventWindowResult = Shapes::StructureShape.new(name: 'ModifyInstanceEventWindowResult')
|
2101
2108
|
ModifyInstanceMaintenanceOptionsRequest = Shapes::StructureShape.new(name: 'ModifyInstanceMaintenanceOptionsRequest')
|
2102
2109
|
ModifyInstanceMaintenanceOptionsResult = Shapes::StructureShape.new(name: 'ModifyInstanceMaintenanceOptionsResult')
|
2110
|
+
ModifyInstanceMetadataDefaultsRequest = Shapes::StructureShape.new(name: 'ModifyInstanceMetadataDefaultsRequest')
|
2111
|
+
ModifyInstanceMetadataDefaultsResult = Shapes::StructureShape.new(name: 'ModifyInstanceMetadataDefaultsResult')
|
2103
2112
|
ModifyInstanceMetadataOptionsRequest = Shapes::StructureShape.new(name: 'ModifyInstanceMetadataOptionsRequest')
|
2104
2113
|
ModifyInstanceMetadataOptionsResult = Shapes::StructureShape.new(name: 'ModifyInstanceMetadataOptionsResult')
|
2105
2114
|
ModifyInstancePlacementRequest = Shapes::StructureShape.new(name: 'ModifyInstancePlacementRequest')
|
@@ -9060,6 +9069,12 @@ module Aws::EC2
|
|
9060
9069
|
GetImageBlockPublicAccessStateResult.add_member(:image_block_public_access_state, Shapes::ShapeRef.new(shape: String, location_name: "imageBlockPublicAccessState"))
|
9061
9070
|
GetImageBlockPublicAccessStateResult.struct_class = Types::GetImageBlockPublicAccessStateResult
|
9062
9071
|
|
9072
|
+
GetInstanceMetadataDefaultsRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
|
9073
|
+
GetInstanceMetadataDefaultsRequest.struct_class = Types::GetInstanceMetadataDefaultsRequest
|
9074
|
+
|
9075
|
+
GetInstanceMetadataDefaultsResult.add_member(:account_level, Shapes::ShapeRef.new(shape: InstanceMetadataDefaultsResponse, location_name: "accountLevel"))
|
9076
|
+
GetInstanceMetadataDefaultsResult.struct_class = Types::GetInstanceMetadataDefaultsResult
|
9077
|
+
|
9063
9078
|
GetInstanceTypesFromInstanceRequirementsRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
|
9064
9079
|
GetInstanceTypesFromInstanceRequirementsRequest.add_member(:architecture_types, Shapes::ShapeRef.new(shape: ArchitectureTypeSet, required: true, location_name: "ArchitectureType"))
|
9065
9080
|
GetInstanceTypesFromInstanceRequirementsRequest.add_member(:virtualization_types, Shapes::ShapeRef.new(shape: VirtualizationTypeSet, required: true, location_name: "VirtualizationType"))
|
@@ -10057,6 +10072,12 @@ module Aws::EC2
|
|
10057
10072
|
InstanceMarketOptionsRequest.add_member(:spot_options, Shapes::ShapeRef.new(shape: SpotMarketOptions, location_name: "SpotOptions"))
|
10058
10073
|
InstanceMarketOptionsRequest.struct_class = Types::InstanceMarketOptionsRequest
|
10059
10074
|
|
10075
|
+
InstanceMetadataDefaultsResponse.add_member(:http_tokens, Shapes::ShapeRef.new(shape: HttpTokensState, location_name: "httpTokens"))
|
10076
|
+
InstanceMetadataDefaultsResponse.add_member(:http_put_response_hop_limit, Shapes::ShapeRef.new(shape: BoxedInteger, location_name: "httpPutResponseHopLimit"))
|
10077
|
+
InstanceMetadataDefaultsResponse.add_member(:http_endpoint, Shapes::ShapeRef.new(shape: InstanceMetadataEndpointState, location_name: "httpEndpoint"))
|
10078
|
+
InstanceMetadataDefaultsResponse.add_member(:instance_metadata_tags, Shapes::ShapeRef.new(shape: InstanceMetadataTagsState, location_name: "instanceMetadataTags"))
|
10079
|
+
InstanceMetadataDefaultsResponse.struct_class = Types::InstanceMetadataDefaultsResponse
|
10080
|
+
|
10060
10081
|
InstanceMetadataOptionsRequest.add_member(:http_tokens, Shapes::ShapeRef.new(shape: HttpTokensState, location_name: "HttpTokens"))
|
10061
10082
|
InstanceMetadataOptionsRequest.add_member(:http_put_response_hop_limit, Shapes::ShapeRef.new(shape: Integer, location_name: "HttpPutResponseHopLimit"))
|
10062
10083
|
InstanceMetadataOptionsRequest.add_member(:http_endpoint, Shapes::ShapeRef.new(shape: InstanceMetadataEndpointState, location_name: "HttpEndpoint"))
|
@@ -11486,6 +11507,16 @@ module Aws::EC2
|
|
11486
11507
|
ModifyInstanceMaintenanceOptionsResult.add_member(:auto_recovery, Shapes::ShapeRef.new(shape: InstanceAutoRecoveryState, location_name: "autoRecovery"))
|
11487
11508
|
ModifyInstanceMaintenanceOptionsResult.struct_class = Types::ModifyInstanceMaintenanceOptionsResult
|
11488
11509
|
|
11510
|
+
ModifyInstanceMetadataDefaultsRequest.add_member(:http_tokens, Shapes::ShapeRef.new(shape: MetadataDefaultHttpTokensState, location_name: "HttpTokens"))
|
11511
|
+
ModifyInstanceMetadataDefaultsRequest.add_member(:http_put_response_hop_limit, Shapes::ShapeRef.new(shape: BoxedInteger, location_name: "HttpPutResponseHopLimit"))
|
11512
|
+
ModifyInstanceMetadataDefaultsRequest.add_member(:http_endpoint, Shapes::ShapeRef.new(shape: DefaultInstanceMetadataEndpointState, location_name: "HttpEndpoint"))
|
11513
|
+
ModifyInstanceMetadataDefaultsRequest.add_member(:instance_metadata_tags, Shapes::ShapeRef.new(shape: DefaultInstanceMetadataTagsState, location_name: "InstanceMetadataTags"))
|
11514
|
+
ModifyInstanceMetadataDefaultsRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
|
11515
|
+
ModifyInstanceMetadataDefaultsRequest.struct_class = Types::ModifyInstanceMetadataDefaultsRequest
|
11516
|
+
|
11517
|
+
ModifyInstanceMetadataDefaultsResult.add_member(:return, Shapes::ShapeRef.new(shape: Boolean, location_name: "return"))
|
11518
|
+
ModifyInstanceMetadataDefaultsResult.struct_class = Types::ModifyInstanceMetadataDefaultsResult
|
11519
|
+
|
11489
11520
|
ModifyInstanceMetadataOptionsRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: InstanceId, required: true, location_name: "InstanceId"))
|
11490
11521
|
ModifyInstanceMetadataOptionsRequest.add_member(:http_tokens, Shapes::ShapeRef.new(shape: HttpTokensState, location_name: "HttpTokens"))
|
11491
11522
|
ModifyInstanceMetadataOptionsRequest.add_member(:http_put_response_hop_limit, Shapes::ShapeRef.new(shape: Integer, location_name: "HttpPutResponseHopLimit"))
|
@@ -19869,6 +19900,14 @@ module Aws::EC2
|
|
19869
19900
|
o.output = Shapes::ShapeRef.new(shape: GetImageBlockPublicAccessStateResult)
|
19870
19901
|
end)
|
19871
19902
|
|
19903
|
+
api.add_operation(:get_instance_metadata_defaults, Seahorse::Model::Operation.new.tap do |o|
|
19904
|
+
o.name = "GetInstanceMetadataDefaults"
|
19905
|
+
o.http_method = "POST"
|
19906
|
+
o.http_request_uri = "/"
|
19907
|
+
o.input = Shapes::ShapeRef.new(shape: GetInstanceMetadataDefaultsRequest)
|
19908
|
+
o.output = Shapes::ShapeRef.new(shape: GetInstanceMetadataDefaultsResult)
|
19909
|
+
end)
|
19910
|
+
|
19872
19911
|
api.add_operation(:get_instance_types_from_instance_requirements, Seahorse::Model::Operation.new.tap do |o|
|
19873
19912
|
o.name = "GetInstanceTypesFromInstanceRequirements"
|
19874
19913
|
o.http_method = "POST"
|
@@ -20483,6 +20522,14 @@ module Aws::EC2
|
|
20483
20522
|
o.output = Shapes::ShapeRef.new(shape: ModifyInstanceMaintenanceOptionsResult)
|
20484
20523
|
end)
|
20485
20524
|
|
20525
|
+
api.add_operation(:modify_instance_metadata_defaults, Seahorse::Model::Operation.new.tap do |o|
|
20526
|
+
o.name = "ModifyInstanceMetadataDefaults"
|
20527
|
+
o.http_method = "POST"
|
20528
|
+
o.http_request_uri = "/"
|
20529
|
+
o.input = Shapes::ShapeRef.new(shape: ModifyInstanceMetadataDefaultsRequest)
|
20530
|
+
o.output = Shapes::ShapeRef.new(shape: ModifyInstanceMetadataDefaultsResult)
|
20531
|
+
end)
|
20532
|
+
|
20486
20533
|
api.add_operation(:modify_instance_metadata_options, Seahorse::Model::Operation.new.tap do |o|
|
20487
20534
|
o.name = "ModifyInstanceMetadataOptions"
|
20488
20535
|
o.http_method = "POST"
|
@@ -6172,6 +6172,20 @@ module Aws::EC2
|
|
6172
6172
|
end
|
6173
6173
|
end
|
6174
6174
|
|
6175
|
+
class GetInstanceMetadataDefaults
|
6176
|
+
def self.build(context)
|
6177
|
+
unless context.config.regional_endpoint
|
6178
|
+
endpoint = context.config.endpoint.to_s
|
6179
|
+
end
|
6180
|
+
Aws::EC2::EndpointParameters.new(
|
6181
|
+
region: context.config.region,
|
6182
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
6183
|
+
use_fips: context.config.use_fips_endpoint,
|
6184
|
+
endpoint: endpoint,
|
6185
|
+
)
|
6186
|
+
end
|
6187
|
+
end
|
6188
|
+
|
6175
6189
|
class GetInstanceTypesFromInstanceRequirements
|
6176
6190
|
def self.build(context)
|
6177
6191
|
unless context.config.regional_endpoint
|
@@ -7026,6 +7040,20 @@ module Aws::EC2
|
|
7026
7040
|
end
|
7027
7041
|
end
|
7028
7042
|
|
7043
|
+
class ModifyInstanceMetadataDefaults
|
7044
|
+
def self.build(context)
|
7045
|
+
unless context.config.regional_endpoint
|
7046
|
+
endpoint = context.config.endpoint.to_s
|
7047
|
+
end
|
7048
|
+
Aws::EC2::EndpointParameters.new(
|
7049
|
+
region: context.config.region,
|
7050
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
7051
|
+
use_fips: context.config.use_fips_endpoint,
|
7052
|
+
endpoint: endpoint,
|
7053
|
+
)
|
7054
|
+
end
|
7055
|
+
end
|
7056
|
+
|
7029
7057
|
class ModifyInstanceMetadataOptions
|
7030
7058
|
def self.build(context)
|
7031
7059
|
unless context.config.regional_endpoint
|
data/lib/aws-sdk-ec2/image.rb
CHANGED
@@ -164,8 +164,7 @@ module Aws::EC2
|
|
164
164
|
data[:hypervisor]
|
165
165
|
end
|
166
166
|
|
167
|
-
# The
|
168
|
-
# or the Amazon Web Services account ID of the AMI owner.
|
167
|
+
# The owner alias (`amazon` \| `aws-marketplace`).
|
169
168
|
# @return [String]
|
170
169
|
def image_owner_alias
|
171
170
|
data[:image_owner_alias]
|
@@ -938,6 +938,8 @@ module Aws::EC2
|
|
938
938
|
Aws::EC2::Endpoints::GetHostReservationPurchasePreview.build(context)
|
939
939
|
when :get_image_block_public_access_state
|
940
940
|
Aws::EC2::Endpoints::GetImageBlockPublicAccessState.build(context)
|
941
|
+
when :get_instance_metadata_defaults
|
942
|
+
Aws::EC2::Endpoints::GetInstanceMetadataDefaults.build(context)
|
941
943
|
when :get_instance_types_from_instance_requirements
|
942
944
|
Aws::EC2::Endpoints::GetInstanceTypesFromInstanceRequirements.build(context)
|
943
945
|
when :get_instance_uefi_data
|
@@ -1060,6 +1062,8 @@ module Aws::EC2
|
|
1060
1062
|
Aws::EC2::Endpoints::ModifyInstanceEventWindow.build(context)
|
1061
1063
|
when :modify_instance_maintenance_options
|
1062
1064
|
Aws::EC2::Endpoints::ModifyInstanceMaintenanceOptions.build(context)
|
1065
|
+
when :modify_instance_metadata_defaults
|
1066
|
+
Aws::EC2::Endpoints::ModifyInstanceMetadataDefaults.build(context)
|
1063
1067
|
when :modify_instance_metadata_options
|
1064
1068
|
Aws::EC2::Endpoints::ModifyInstanceMetadataOptions.build(context)
|
1065
1069
|
when :modify_instance_placement
|
data/lib/aws-sdk-ec2/types.rb
CHANGED
@@ -34486,6 +34486,33 @@ module Aws::EC2
|
|
34486
34486
|
include Aws::Structure
|
34487
34487
|
end
|
34488
34488
|
|
34489
|
+
# @!attribute [rw] dry_run
|
34490
|
+
# Checks whether you have the required permissions for the action,
|
34491
|
+
# without actually making the request, and provides an error response.
|
34492
|
+
# If you have the required permissions, the error response is
|
34493
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
34494
|
+
# @return [Boolean]
|
34495
|
+
#
|
34496
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetInstanceMetadataDefaultsRequest AWS API Documentation
|
34497
|
+
#
|
34498
|
+
class GetInstanceMetadataDefaultsRequest < Struct.new(
|
34499
|
+
:dry_run)
|
34500
|
+
SENSITIVE = []
|
34501
|
+
include Aws::Structure
|
34502
|
+
end
|
34503
|
+
|
34504
|
+
# @!attribute [rw] account_level
|
34505
|
+
# The account-level default IMDS settings.
|
34506
|
+
# @return [Types::InstanceMetadataDefaultsResponse]
|
34507
|
+
#
|
34508
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetInstanceMetadataDefaultsResult AWS API Documentation
|
34509
|
+
#
|
34510
|
+
class GetInstanceMetadataDefaultsResult < Struct.new(
|
34511
|
+
:account_level)
|
34512
|
+
SENSITIVE = []
|
34513
|
+
include Aws::Structure
|
34514
|
+
end
|
34515
|
+
|
34489
34516
|
# @!attribute [rw] dry_run
|
34490
34517
|
# Checks whether you have the required permissions for the action,
|
34491
34518
|
# without actually making the request, and provides an error response.
|
@@ -37197,8 +37224,7 @@ module Aws::EC2
|
|
37197
37224
|
# @return [String]
|
37198
37225
|
#
|
37199
37226
|
# @!attribute [rw] image_owner_alias
|
37200
|
-
# The
|
37201
|
-
# `self`) or the Amazon Web Services account ID of the AMI owner.
|
37227
|
+
# The owner alias (`amazon` \| `aws-marketplace`).
|
37202
37228
|
# @return [String]
|
37203
37229
|
#
|
37204
37230
|
# @!attribute [rw] name
|
@@ -39533,33 +39559,82 @@ module Aws::EC2
|
|
39533
39559
|
include Aws::Structure
|
39534
39560
|
end
|
39535
39561
|
|
39562
|
+
# The default instance metadata service (IMDS) settings that were set at
|
39563
|
+
# the account level in the specified Amazon Web Services
Region.
|
39564
|
+
#
|
39565
|
+
# @!attribute [rw] http_tokens
|
39566
|
+
# Indicates whether IMDSv2 is required.
|
39567
|
+
#
|
39568
|
+
# * `optional` – IMDSv2 is optional, which means that you can use
|
39569
|
+
# either IMDSv2 or IMDSv1.
|
39570
|
+
#
|
39571
|
+
# * `required` – IMDSv2 is required, which means that IMDSv1 is
|
39572
|
+
# disabled, and you must use IMDSv2.
|
39573
|
+
# @return [String]
|
39574
|
+
#
|
39575
|
+
# @!attribute [rw] http_put_response_hop_limit
|
39576
|
+
# The maximum number of hops that the metadata token can travel.
|
39577
|
+
# @return [Integer]
|
39578
|
+
#
|
39579
|
+
# @!attribute [rw] http_endpoint
|
39580
|
+
# Indicates whether the IMDS endpoint for an instance is enabled or
|
39581
|
+
# disabled. When disabled, the instance metadata can't be accessed.
|
39582
|
+
# @return [String]
|
39583
|
+
#
|
39584
|
+
# @!attribute [rw] instance_metadata_tags
|
39585
|
+
# Indicates whether access to instance tags from the instance metadata
|
39586
|
+
# is enabled or disabled. For more information, see [Work with
|
39587
|
+
# instance tags using the instance metadata][1] in the *Amazon EC2
|
39588
|
+
# User Guide*.
|
39589
|
+
#
|
39590
|
+
#
|
39591
|
+
#
|
39592
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html#work-with-tags-in-IMDS
|
39593
|
+
# @return [String]
|
39594
|
+
#
|
39595
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceMetadataDefaultsResponse AWS API Documentation
|
39596
|
+
#
|
39597
|
+
class InstanceMetadataDefaultsResponse < Struct.new(
|
39598
|
+
:http_tokens,
|
39599
|
+
:http_put_response_hop_limit,
|
39600
|
+
:http_endpoint,
|
39601
|
+
:instance_metadata_tags)
|
39602
|
+
SENSITIVE = []
|
39603
|
+
include Aws::Structure
|
39604
|
+
end
|
39605
|
+
|
39536
39606
|
# The metadata options for the instance.
|
39537
39607
|
#
|
39538
39608
|
# @!attribute [rw] http_tokens
|
39539
39609
|
# Indicates whether IMDSv2 is required.
|
39540
39610
|
#
|
39541
|
-
# * `optional` - IMDSv2 is optional
|
39542
|
-
#
|
39543
|
-
# retrieve IAM role credentials without a session token, you receive
|
39544
|
-
# the IMDSv1 role credentials. If you retrieve IAM role credentials
|
39545
|
-
# using a valid session token, you receive the IMDSv2 role
|
39546
|
-
# credentials.
|
39611
|
+
# * `optional` - IMDSv2 is optional, which means that you can use
|
39612
|
+
# either IMDSv2 or IMDSv1.
|
39547
39613
|
#
|
39548
|
-
# * `required` - IMDSv2 is required
|
39549
|
-
#
|
39550
|
-
# retrieving the IAM role credentials always returns IMDSv2
|
39551
|
-
# credentials; IMDSv1 credentials are not available.
|
39614
|
+
# * `required` - IMDSv2 is required, which means that IMDSv1 is
|
39615
|
+
# disabled, and you must use IMDSv2.
|
39552
39616
|
#
|
39553
|
-
# Default:
|
39554
|
-
#
|
39617
|
+
# Default:
|
39618
|
+
#
|
39619
|
+
# * If the value of `ImdsSupport` for the Amazon Machine Image (AMI)
|
39620
|
+
# for your instance is `v2.0` and the account level default is set
|
39621
|
+
# to `no-preference`, the default is `required`.
|
39622
|
+
#
|
39623
|
+
# * If the value of `ImdsSupport` for the Amazon Machine Image (AMI)
|
39624
|
+
# for your instance is `v2.0`, but the account level default is set
|
39625
|
+
# to `V1 or V2`, the default is `optional`.
|
39626
|
+
#
|
39627
|
+
# The default value can also be affected by other combinations of
|
39628
|
+
# parameters. For more information, see [Order of precedence for
|
39629
|
+
# instance metadata options][1] in the *Amazon EC2 User Guide*.
|
39630
|
+
#
|
39631
|
+
#
|
39632
|
+
#
|
39633
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-instance-metadata-options.html#instance-metadata-options-order-of-precedence
|
39555
39634
|
# @return [String]
|
39556
39635
|
#
|
39557
39636
|
# @!attribute [rw] http_put_response_hop_limit
|
39558
|
-
# The
|
39559
|
-
# requests. The larger the number, the further instance metadata
|
39560
|
-
# requests can travel.
|
39561
|
-
#
|
39562
|
-
# Default: 1
|
39637
|
+
# The maximum number of hops that the metadata token can travel.
|
39563
39638
|
#
|
39564
39639
|
# Possible values: Integers from 1 to 64
|
39565
39640
|
# @return [Integer]
|
@@ -39620,25 +39695,15 @@ module Aws::EC2
|
|
39620
39695
|
# @!attribute [rw] http_tokens
|
39621
39696
|
# Indicates whether IMDSv2 is required.
|
39622
39697
|
#
|
39623
|
-
# * `optional` - IMDSv2 is optional
|
39624
|
-
#
|
39625
|
-
# retrieve IAM role credentials without a session token, you receive
|
39626
|
-
# the IMDSv1 role credentials. If you retrieve IAM role credentials
|
39627
|
-
# using a valid session token, you receive the IMDSv2 role
|
39628
|
-
# credentials.
|
39698
|
+
# * `optional` - IMDSv2 is optional, which means that you can use
|
39699
|
+
# either IMDSv2 or IMDSv1.
|
39629
39700
|
#
|
39630
|
-
# * `required` - IMDSv2 is required
|
39631
|
-
#
|
39632
|
-
# retrieving the IAM role credentials always returns IMDSv2
|
39633
|
-
# credentials; IMDSv1 credentials are not available.
|
39701
|
+
# * `required` - IMDSv2 is required, which means that IMDSv1 is
|
39702
|
+
# disabled, and you must use IMDSv2.
|
39634
39703
|
# @return [String]
|
39635
39704
|
#
|
39636
39705
|
# @!attribute [rw] http_put_response_hop_limit
|
39637
|
-
# The
|
39638
|
-
# requests. The larger the number, the further instance metadata
|
39639
|
-
# requests can travel.
|
39640
|
-
#
|
39641
|
-
# Default: `1`
|
39706
|
+
# The maximum number of hops that the metadata token can travel.
|
39642
39707
|
#
|
39643
39708
|
# Possible values: Integers from `1` to `64`
|
39644
39709
|
# @return [Integer]
|
@@ -47821,6 +47886,72 @@ module Aws::EC2
|
|
47821
47886
|
include Aws::Structure
|
47822
47887
|
end
|
47823
47888
|
|
47889
|
+
# @!attribute [rw] http_tokens
|
47890
|
+
# Indicates whether IMDSv2 is required.
|
47891
|
+
#
|
47892
|
+
# * `optional` – IMDSv2 is optional, which means that you can use
|
47893
|
+
# either IMDSv2 or IMDSv1.
|
47894
|
+
#
|
47895
|
+
# * `required` – IMDSv2 is required, which means that IMDSv1 is
|
47896
|
+
# disabled, and you must use IMDSv2.
|
47897
|
+
# @return [String]
|
47898
|
+
#
|
47899
|
+
# @!attribute [rw] http_put_response_hop_limit
|
47900
|
+
# The maximum number of hops that the metadata token can travel.
|
47901
|
+
#
|
47902
|
+
# Minimum: `1`
|
47903
|
+
#
|
47904
|
+
# Maximum: `64`
|
47905
|
+
# @return [Integer]
|
47906
|
+
#
|
47907
|
+
# @!attribute [rw] http_endpoint
|
47908
|
+
# Enables or disables the IMDS endpoint on an instance. When disabled,
|
47909
|
+
# the instance metadata can't be accessed.
|
47910
|
+
# @return [String]
|
47911
|
+
#
|
47912
|
+
# @!attribute [rw] instance_metadata_tags
|
47913
|
+
# Enables or disables access to an instance's tags from the instance
|
47914
|
+
# metadata. For more information, see [Work with instance tags using
|
47915
|
+
# the instance metadata][1] in the *Amazon EC2 User Guide*.
|
47916
|
+
#
|
47917
|
+
#
|
47918
|
+
#
|
47919
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html#work-with-tags-in-IMDS
|
47920
|
+
# @return [String]
|
47921
|
+
#
|
47922
|
+
# @!attribute [rw] dry_run
|
47923
|
+
# Checks whether you have the required permissions for the action,
|
47924
|
+
# without actually making the request, and provides an error response.
|
47925
|
+
# If you have the required permissions, the error response is
|
47926
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
47927
|
+
# @return [Boolean]
|
47928
|
+
#
|
47929
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyInstanceMetadataDefaultsRequest AWS API Documentation
|
47930
|
+
#
|
47931
|
+
class ModifyInstanceMetadataDefaultsRequest < Struct.new(
|
47932
|
+
:http_tokens,
|
47933
|
+
:http_put_response_hop_limit,
|
47934
|
+
:http_endpoint,
|
47935
|
+
:instance_metadata_tags,
|
47936
|
+
:dry_run)
|
47937
|
+
SENSITIVE = []
|
47938
|
+
include Aws::Structure
|
47939
|
+
end
|
47940
|
+
|
47941
|
+
# @!attribute [rw] return
|
47942
|
+
# If the request succeeds, the response returns `true`. If the request
|
47943
|
+
# fails, no response is returned, and instead an error message is
|
47944
|
+
# returned.
|
47945
|
+
# @return [Boolean]
|
47946
|
+
#
|
47947
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyInstanceMetadataDefaultsResult AWS API Documentation
|
47948
|
+
#
|
47949
|
+
class ModifyInstanceMetadataDefaultsResult < Struct.new(
|
47950
|
+
:return)
|
47951
|
+
SENSITIVE = []
|
47952
|
+
include Aws::Structure
|
47953
|
+
end
|
47954
|
+
|
47824
47955
|
# @!attribute [rw] instance_id
|
47825
47956
|
# The ID of the instance.
|
47826
47957
|
# @return [String]
|
@@ -47840,8 +47971,23 @@ module Aws::EC2
|
|
47840
47971
|
# retrieving the IAM role credentials always returns IMDSv2
|
47841
47972
|
# credentials; IMDSv1 credentials are not available.
|
47842
47973
|
#
|
47843
|
-
# Default:
|
47844
|
-
#
|
47974
|
+
# Default:
|
47975
|
+
#
|
47976
|
+
# * If the value of `ImdsSupport` for the Amazon Machine Image (AMI)
|
47977
|
+
# for your instance is `v2.0` and the account level default is set
|
47978
|
+
# to `no-preference`, the default is `required`.
|
47979
|
+
#
|
47980
|
+
# * If the value of `ImdsSupport` for the Amazon Machine Image (AMI)
|
47981
|
+
# for your instance is `v2.0`, but the account level default is set
|
47982
|
+
# to `V1 or V2`, the default is `optional`.
|
47983
|
+
#
|
47984
|
+
# The default value can also be affected by other combinations of
|
47985
|
+
# parameters. For more information, see [Order of precedence for
|
47986
|
+
# instance metadata options][1] in the *Amazon EC2 User Guide*.
|
47987
|
+
#
|
47988
|
+
#
|
47989
|
+
#
|
47990
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-instance-metadata-options.html#instance-metadata-options-order-of-precedence
|
47845
47991
|
# @return [String]
|
47846
47992
|
#
|
47847
47993
|
# @!attribute [rw] http_put_response_hop_limit
|
@@ -59965,7 +60111,8 @@ module Aws::EC2
|
|
59965
60111
|
# @return [Array<Types::Filter>]
|
59966
60112
|
#
|
59967
60113
|
# @!attribute [rw] max_results
|
59968
|
-
# The maximum number of routes to return.
|
60114
|
+
# The maximum number of routes to return. If a value is not provided,
|
60115
|
+
# the default is 1000.
|
59969
60116
|
# @return [Integer]
|
59970
60117
|
#
|
59971
60118
|
# @!attribute [rw] dry_run
|
data/lib/aws-sdk-ec2.rb
CHANGED
data/sig/client.rbs
CHANGED
@@ -8617,6 +8617,16 @@ module Aws
|
|
8617
8617
|
) -> _GetImageBlockPublicAccessStateResponseSuccess
|
8618
8618
|
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetImageBlockPublicAccessStateResponseSuccess
|
8619
8619
|
|
8620
|
+
interface _GetInstanceMetadataDefaultsResponseSuccess
|
8621
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::GetInstanceMetadataDefaultsResult]
|
8622
|
+
def account_level: () -> Types::InstanceMetadataDefaultsResponse
|
8623
|
+
end
|
8624
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Client.html#get_instance_metadata_defaults-instance_method
|
8625
|
+
def get_instance_metadata_defaults: (
|
8626
|
+
?dry_run: bool
|
8627
|
+
) -> _GetInstanceMetadataDefaultsResponseSuccess
|
8628
|
+
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetInstanceMetadataDefaultsResponseSuccess
|
8629
|
+
|
8620
8630
|
interface _GetInstanceTypesFromInstanceRequirementsResponseSuccess
|
8621
8631
|
include ::Seahorse::Client::_ResponseSuccess[Types::GetInstanceTypesFromInstanceRequirementsResult]
|
8622
8632
|
def instance_types: () -> ::Array[Types::InstanceTypeInfoFromInstanceRequirements]
|
@@ -10010,6 +10020,20 @@ module Aws
|
|
10010
10020
|
) -> _ModifyInstanceMaintenanceOptionsResponseSuccess
|
10011
10021
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ModifyInstanceMaintenanceOptionsResponseSuccess
|
10012
10022
|
|
10023
|
+
interface _ModifyInstanceMetadataDefaultsResponseSuccess
|
10024
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::ModifyInstanceMetadataDefaultsResult]
|
10025
|
+
def return: () -> bool
|
10026
|
+
end
|
10027
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Client.html#modify_instance_metadata_defaults-instance_method
|
10028
|
+
def modify_instance_metadata_defaults: (
|
10029
|
+
?http_tokens: ("optional" | "required" | "no-preference"),
|
10030
|
+
?http_put_response_hop_limit: ::Integer,
|
10031
|
+
?http_endpoint: ("disabled" | "enabled" | "no-preference"),
|
10032
|
+
?instance_metadata_tags: ("disabled" | "enabled" | "no-preference"),
|
10033
|
+
?dry_run: bool
|
10034
|
+
) -> _ModifyInstanceMetadataDefaultsResponseSuccess
|
10035
|
+
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ModifyInstanceMetadataDefaultsResponseSuccess
|
10036
|
+
|
10013
10037
|
interface _ModifyInstanceMetadataOptionsResponseSuccess
|
10014
10038
|
include ::Seahorse::Client::_ResponseSuccess[Types::ModifyInstanceMetadataOptionsResult]
|
10015
10039
|
def instance_id: () -> ::String
|
data/sig/types.rbs
CHANGED
@@ -7706,6 +7706,16 @@ module Aws::EC2
|
|
7706
7706
|
SENSITIVE: []
|
7707
7707
|
end
|
7708
7708
|
|
7709
|
+
class GetInstanceMetadataDefaultsRequest
|
7710
|
+
attr_accessor dry_run: bool
|
7711
|
+
SENSITIVE: []
|
7712
|
+
end
|
7713
|
+
|
7714
|
+
class GetInstanceMetadataDefaultsResult
|
7715
|
+
attr_accessor account_level: Types::InstanceMetadataDefaultsResponse
|
7716
|
+
SENSITIVE: []
|
7717
|
+
end
|
7718
|
+
|
7709
7719
|
class GetInstanceTypesFromInstanceRequirementsRequest
|
7710
7720
|
attr_accessor dry_run: bool
|
7711
7721
|
attr_accessor architecture_types: ::Array[("i386" | "x86_64" | "arm64" | "x86_64_mac" | "arm64_mac")]
|
@@ -8879,6 +8889,14 @@ module Aws::EC2
|
|
8879
8889
|
SENSITIVE: []
|
8880
8890
|
end
|
8881
8891
|
|
8892
|
+
class InstanceMetadataDefaultsResponse
|
8893
|
+
attr_accessor http_tokens: ("optional" | "required")
|
8894
|
+
attr_accessor http_put_response_hop_limit: ::Integer
|
8895
|
+
attr_accessor http_endpoint: ("disabled" | "enabled")
|
8896
|
+
attr_accessor instance_metadata_tags: ("disabled" | "enabled")
|
8897
|
+
SENSITIVE: []
|
8898
|
+
end
|
8899
|
+
|
8882
8900
|
class InstanceMetadataOptionsRequest
|
8883
8901
|
attr_accessor http_tokens: ("optional" | "required")
|
8884
8902
|
attr_accessor http_put_response_hop_limit: ::Integer
|
@@ -10462,6 +10480,20 @@ module Aws::EC2
|
|
10462
10480
|
SENSITIVE: []
|
10463
10481
|
end
|
10464
10482
|
|
10483
|
+
class ModifyInstanceMetadataDefaultsRequest
|
10484
|
+
attr_accessor http_tokens: ("optional" | "required" | "no-preference")
|
10485
|
+
attr_accessor http_put_response_hop_limit: ::Integer
|
10486
|
+
attr_accessor http_endpoint: ("disabled" | "enabled" | "no-preference")
|
10487
|
+
attr_accessor instance_metadata_tags: ("disabled" | "enabled" | "no-preference")
|
10488
|
+
attr_accessor dry_run: bool
|
10489
|
+
SENSITIVE: []
|
10490
|
+
end
|
10491
|
+
|
10492
|
+
class ModifyInstanceMetadataDefaultsResult
|
10493
|
+
attr_accessor return: bool
|
10494
|
+
SENSITIVE: []
|
10495
|
+
end
|
10496
|
+
|
10465
10497
|
class ModifyInstanceMetadataOptionsRequest
|
10466
10498
|
attr_accessor instance_id: ::String
|
10467
10499
|
attr_accessor http_tokens: ("optional" | "required")
|
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.445.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-03-
|
11
|
+
date: 2024-03-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|