aws-sdk-ec2 1.443.0 → 1.445.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 984ec6937889a106c81b27b988385abfc900a395cee92376a56a0d15f922214f
4
- data.tar.gz: c037f163548ede1fec6a55da26290d364b37250ed8708ff433c5bf58c1e197c9
3
+ metadata.gz: 3f33b6a505b2c3eb49d0b06132cbff9ad24f9799a5c502ab18c7311b8c31d8af
4
+ data.tar.gz: b01c5077af94a08c4107134461362cf3d7010e87960b6dd2b4ae1bb8574bb5d7
5
5
  SHA512:
6
- metadata.gz: 0b64aecbd53e8a3994980a44cd1af70ee06cbf39b9d293c0e89050c56d1e21cae52a8b7663ac991463f9c4092e2378c159b5919886deca3a7936ba147904a462
7
- data.tar.gz: 1fd963e996681b13f92572c93f850bf03a4ebc5ebded7c6c693bfd03cefda47663efbf2f6a427cf0bdbfe31b4e481e5a94ed3b1e78ed0e397781902c9392f6c4
6
+ metadata.gz: 62235ad869ccb1fe3792e735856a15766b58a8aee14d88fe23dff85d62c2991a45095517b2f75b489f11be6f17beb7b18f6b4709298092d361991cc08f289341
7
+ data.tar.gz: 6f6bf99c7e3f12109ca0e9be12fb102d18048c0d6c5b2b89fd818b161b75a1e2f1b8ce7645f43f66c5ad3f88ef3154c401b5567a668df0a6b4e55559d4dc556a
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
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
+
9
+ 1.444.0 (2024-03-19)
10
+ ------------------
11
+
12
+ * Feature - This release adds the new DescribeMacHosts API operation for getting information about EC2 Mac Dedicated Hosts. Users can now see the latest macOS versions that their underlying Apple Mac can support without needing to be updated.
13
+
4
14
  1.443.0 (2024-03-15)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.443.0
1
+ 1.445.0
@@ -27776,6 +27776,69 @@ module Aws::EC2
27776
27776
  req.send_request(options)
27777
27777
  end
27778
27778
 
27779
+ # Describes the specified EC2 Mac Dedicated Host or all of your EC2 Mac
27780
+ # Dedicated Hosts.
27781
+ #
27782
+ # @option params [Array<Types::Filter>] :filters
27783
+ # The filters.
27784
+ #
27785
+ # * `availability-zone` - The Availability Zone of the EC2 Mac Dedicated
27786
+ # Host.
27787
+ #
27788
+ # * `instance-type` - The instance type size that the EC2 Mac Dedicated
27789
+ # Host is configured to support.
27790
+ #
27791
+ # @option params [Array<String>] :host_ids
27792
+ # The IDs of the EC2 Mac Dedicated Hosts.
27793
+ #
27794
+ # @option params [Integer] :max_results
27795
+ # The maximum number of results to return for the request in a single
27796
+ # page. The remaining results can be seen by sending another request
27797
+ # with the returned `nextToken` value. This value can be between 5 and
27798
+ # 500. If `maxResults` is given a larger value than 500, you receive an
27799
+ # error.
27800
+ #
27801
+ # @option params [String] :next_token
27802
+ # The token to use to retrieve the next page of results.
27803
+ #
27804
+ # @return [Types::DescribeMacHostsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
27805
+ #
27806
+ # * {Types::DescribeMacHostsResult#mac_hosts #mac_hosts} => Array&lt;Types::MacHost&gt;
27807
+ # * {Types::DescribeMacHostsResult#next_token #next_token} => String
27808
+ #
27809
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
27810
+ #
27811
+ # @example Request syntax with placeholder values
27812
+ #
27813
+ # resp = client.describe_mac_hosts({
27814
+ # filters: [
27815
+ # {
27816
+ # name: "String",
27817
+ # values: ["String"],
27818
+ # },
27819
+ # ],
27820
+ # host_ids: ["DedicatedHostId"],
27821
+ # max_results: 1,
27822
+ # next_token: "String",
27823
+ # })
27824
+ #
27825
+ # @example Response structure
27826
+ #
27827
+ # resp.mac_hosts #=> Array
27828
+ # resp.mac_hosts[0].host_id #=> String
27829
+ # resp.mac_hosts[0].mac_os_latest_supported_versions #=> Array
27830
+ # resp.mac_hosts[0].mac_os_latest_supported_versions[0] #=> String
27831
+ # resp.next_token #=> String
27832
+ #
27833
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeMacHosts AWS API Documentation
27834
+ #
27835
+ # @overload describe_mac_hosts(params = {})
27836
+ # @param [Hash] params ({})
27837
+ def describe_mac_hosts(params = {}, options = {})
27838
+ req = build_request(:describe_mac_hosts, params)
27839
+ req.send_request(options)
27840
+ end
27841
+
27779
27842
  # Describes your managed prefix lists and any Amazon Web
27780
27843
  # Services-managed prefix lists.
27781
27844
  #
@@ -41481,6 +41544,48 @@ module Aws::EC2
41481
41544
  req.send_request(options)
41482
41545
  end
41483
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
+
41484
41589
  # Returns a list of instance types with the specified instance
41485
41590
  # attributes. You can use the response to preview the instance types
41486
41591
  # without launching instances. Note that the response does not consider
@@ -47233,6 +47338,83 @@ module Aws::EC2
47233
47338
  req.send_request(options)
47234
47339
  end
47235
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
+
47236
47418
  # Modify the instance metadata parameters on a running or stopped
47237
47419
  # instance. When you modify the parameters on a stopped instance, they
47238
47420
  # are applied when the instance is started. When you modify the
@@ -47265,8 +47447,23 @@ module Aws::EC2
47265
47447
  # retrieving the IAM role credentials always returns IMDSv2
47266
47448
  # credentials; IMDSv1 credentials are not available.
47267
47449
  #
47268
- # Default: If the value of `ImdsSupport` for the Amazon Machine Image
47269
- # (AMI) for your instance is `v2.0`, the default is `required`.
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
47270
47467
  #
47271
47468
  # @option params [Integer] :http_put_response_hop_limit
47272
47469
  # The desired HTTP PUT response hop limit for instance metadata
@@ -56797,7 +56994,8 @@ module Aws::EC2
56797
56994
  # * `type` - The type of route (`propagated` \| `static`).
56798
56995
  #
56799
56996
  # @option params [Integer] :max_results
56800
- # 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.
56801
56999
  #
56802
57000
  # @option params [Boolean] :dry_run
56803
57001
  # Checks whether you have the required permissions for the action,
@@ -58918,7 +59116,7 @@ module Aws::EC2
58918
59116
  params: params,
58919
59117
  config: config)
58920
59118
  context[:gem_name] = 'aws-sdk-ec2'
58921
- context[:gem_version] = '1.443.0'
59119
+ context[:gem_version] = '1.445.0'
58922
59120
  Seahorse::Client::Request.new(handlers, context)
58923
59121
  end
58924
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')
@@ -938,6 +941,9 @@ module Aws::EC2
938
941
  DescribeLockedSnapshotsMaxResults = Shapes::IntegerShape.new(name: 'DescribeLockedSnapshotsMaxResults')
939
942
  DescribeLockedSnapshotsRequest = Shapes::StructureShape.new(name: 'DescribeLockedSnapshotsRequest')
940
943
  DescribeLockedSnapshotsResult = Shapes::StructureShape.new(name: 'DescribeLockedSnapshotsResult')
944
+ DescribeMacHostsRequest = Shapes::StructureShape.new(name: 'DescribeMacHostsRequest')
945
+ DescribeMacHostsRequestMaxResults = Shapes::IntegerShape.new(name: 'DescribeMacHostsRequestMaxResults')
946
+ DescribeMacHostsResult = Shapes::StructureShape.new(name: 'DescribeMacHostsResult')
941
947
  DescribeManagedPrefixListsRequest = Shapes::StructureShape.new(name: 'DescribeManagedPrefixListsRequest')
942
948
  DescribeManagedPrefixListsResult = Shapes::StructureShape.new(name: 'DescribeManagedPrefixListsResult')
943
949
  DescribeMovingAddressesMaxResults = Shapes::IntegerShape.new(name: 'DescribeMovingAddressesMaxResults')
@@ -1458,6 +1464,8 @@ module Aws::EC2
1458
1464
  GetHostReservationPurchasePreviewResult = Shapes::StructureShape.new(name: 'GetHostReservationPurchasePreviewResult')
1459
1465
  GetImageBlockPublicAccessStateRequest = Shapes::StructureShape.new(name: 'GetImageBlockPublicAccessStateRequest')
1460
1466
  GetImageBlockPublicAccessStateResult = Shapes::StructureShape.new(name: 'GetImageBlockPublicAccessStateResult')
1467
+ GetInstanceMetadataDefaultsRequest = Shapes::StructureShape.new(name: 'GetInstanceMetadataDefaultsRequest')
1468
+ GetInstanceMetadataDefaultsResult = Shapes::StructureShape.new(name: 'GetInstanceMetadataDefaultsResult')
1461
1469
  GetInstanceTypesFromInstanceRequirementsRequest = Shapes::StructureShape.new(name: 'GetInstanceTypesFromInstanceRequirementsRequest')
1462
1470
  GetInstanceTypesFromInstanceRequirementsResult = Shapes::StructureShape.new(name: 'GetInstanceTypesFromInstanceRequirementsResult')
1463
1471
  GetInstanceUefiDataRequest = Shapes::StructureShape.new(name: 'GetInstanceUefiDataRequest')
@@ -1702,6 +1710,7 @@ module Aws::EC2
1702
1710
  InstanceMaintenanceOptionsRequest = Shapes::StructureShape.new(name: 'InstanceMaintenanceOptionsRequest')
1703
1711
  InstanceMarketOptionsRequest = Shapes::StructureShape.new(name: 'InstanceMarketOptionsRequest')
1704
1712
  InstanceMatchCriteria = Shapes::StringShape.new(name: 'InstanceMatchCriteria')
1713
+ InstanceMetadataDefaultsResponse = Shapes::StructureShape.new(name: 'InstanceMetadataDefaultsResponse')
1705
1714
  InstanceMetadataEndpointState = Shapes::StringShape.new(name: 'InstanceMetadataEndpointState')
1706
1715
  InstanceMetadataOptionsRequest = Shapes::StructureShape.new(name: 'InstanceMetadataOptionsRequest')
1707
1716
  InstanceMetadataOptionsResponse = Shapes::StructureShape.new(name: 'InstanceMetadataOptionsResponse')
@@ -2026,6 +2035,9 @@ module Aws::EC2
2026
2035
  LockedSnapshotsInfoList = Shapes::ListShape.new(name: 'LockedSnapshotsInfoList')
2027
2036
  LogDestinationType = Shapes::StringShape.new(name: 'LogDestinationType')
2028
2037
  Long = Shapes::IntegerShape.new(name: 'Long')
2038
+ MacHost = Shapes::StructureShape.new(name: 'MacHost')
2039
+ MacHostList = Shapes::ListShape.new(name: 'MacHostList')
2040
+ MacOSVersionStringList = Shapes::ListShape.new(name: 'MacOSVersionStringList')
2029
2041
  MaintenanceDetails = Shapes::StructureShape.new(name: 'MaintenanceDetails')
2030
2042
  ManagedPrefixList = Shapes::StructureShape.new(name: 'ManagedPrefixList')
2031
2043
  ManagedPrefixListSet = Shapes::ListShape.new(name: 'ManagedPrefixListSet')
@@ -2055,6 +2067,7 @@ module Aws::EC2
2055
2067
  MemoryMiB = Shapes::StructureShape.new(name: 'MemoryMiB')
2056
2068
  MemoryMiBRequest = Shapes::StructureShape.new(name: 'MemoryMiBRequest')
2057
2069
  MemorySize = Shapes::IntegerShape.new(name: 'MemorySize')
2070
+ MetadataDefaultHttpTokensState = Shapes::StringShape.new(name: 'MetadataDefaultHttpTokensState')
2058
2071
  MetricPoint = Shapes::StructureShape.new(name: 'MetricPoint')
2059
2072
  MetricPoints = Shapes::ListShape.new(name: 'MetricPoints')
2060
2073
  MetricType = Shapes::StringShape.new(name: 'MetricType')
@@ -2094,6 +2107,8 @@ module Aws::EC2
2094
2107
  ModifyInstanceEventWindowResult = Shapes::StructureShape.new(name: 'ModifyInstanceEventWindowResult')
2095
2108
  ModifyInstanceMaintenanceOptionsRequest = Shapes::StructureShape.new(name: 'ModifyInstanceMaintenanceOptionsRequest')
2096
2109
  ModifyInstanceMaintenanceOptionsResult = Shapes::StructureShape.new(name: 'ModifyInstanceMaintenanceOptionsResult')
2110
+ ModifyInstanceMetadataDefaultsRequest = Shapes::StructureShape.new(name: 'ModifyInstanceMetadataDefaultsRequest')
2111
+ ModifyInstanceMetadataDefaultsResult = Shapes::StructureShape.new(name: 'ModifyInstanceMetadataDefaultsResult')
2097
2112
  ModifyInstanceMetadataOptionsRequest = Shapes::StructureShape.new(name: 'ModifyInstanceMetadataOptionsRequest')
2098
2113
  ModifyInstanceMetadataOptionsResult = Shapes::StructureShape.new(name: 'ModifyInstanceMetadataOptionsResult')
2099
2114
  ModifyInstancePlacementRequest = Shapes::StructureShape.new(name: 'ModifyInstancePlacementRequest')
@@ -6990,6 +7005,16 @@ module Aws::EC2
6990
7005
  DescribeLockedSnapshotsResult.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
6991
7006
  DescribeLockedSnapshotsResult.struct_class = Types::DescribeLockedSnapshotsResult
6992
7007
 
7008
+ DescribeMacHostsRequest.add_member(:filters, Shapes::ShapeRef.new(shape: FilterList, location_name: "Filter"))
7009
+ DescribeMacHostsRequest.add_member(:host_ids, Shapes::ShapeRef.new(shape: RequestHostIdList, location_name: "HostId"))
7010
+ DescribeMacHostsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: DescribeMacHostsRequestMaxResults, location_name: "MaxResults"))
7011
+ DescribeMacHostsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
7012
+ DescribeMacHostsRequest.struct_class = Types::DescribeMacHostsRequest
7013
+
7014
+ DescribeMacHostsResult.add_member(:mac_hosts, Shapes::ShapeRef.new(shape: MacHostList, location_name: "macHostSet"))
7015
+ DescribeMacHostsResult.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
7016
+ DescribeMacHostsResult.struct_class = Types::DescribeMacHostsResult
7017
+
6993
7018
  DescribeManagedPrefixListsRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
6994
7019
  DescribeManagedPrefixListsRequest.add_member(:filters, Shapes::ShapeRef.new(shape: FilterList, location_name: "Filter"))
6995
7020
  DescribeManagedPrefixListsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: PrefixListMaxResults, location_name: "MaxResults"))
@@ -9044,6 +9069,12 @@ module Aws::EC2
9044
9069
  GetImageBlockPublicAccessStateResult.add_member(:image_block_public_access_state, Shapes::ShapeRef.new(shape: String, location_name: "imageBlockPublicAccessState"))
9045
9070
  GetImageBlockPublicAccessStateResult.struct_class = Types::GetImageBlockPublicAccessStateResult
9046
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
+
9047
9078
  GetInstanceTypesFromInstanceRequirementsRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
9048
9079
  GetInstanceTypesFromInstanceRequirementsRequest.add_member(:architecture_types, Shapes::ShapeRef.new(shape: ArchitectureTypeSet, required: true, location_name: "ArchitectureType"))
9049
9080
  GetInstanceTypesFromInstanceRequirementsRequest.add_member(:virtualization_types, Shapes::ShapeRef.new(shape: VirtualizationTypeSet, required: true, location_name: "VirtualizationType"))
@@ -10041,6 +10072,12 @@ module Aws::EC2
10041
10072
  InstanceMarketOptionsRequest.add_member(:spot_options, Shapes::ShapeRef.new(shape: SpotMarketOptions, location_name: "SpotOptions"))
10042
10073
  InstanceMarketOptionsRequest.struct_class = Types::InstanceMarketOptionsRequest
10043
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
+
10044
10081
  InstanceMetadataOptionsRequest.add_member(:http_tokens, Shapes::ShapeRef.new(shape: HttpTokensState, location_name: "HttpTokens"))
10045
10082
  InstanceMetadataOptionsRequest.add_member(:http_put_response_hop_limit, Shapes::ShapeRef.new(shape: Integer, location_name: "HttpPutResponseHopLimit"))
10046
10083
  InstanceMetadataOptionsRequest.add_member(:http_endpoint, Shapes::ShapeRef.new(shape: InstanceMetadataEndpointState, location_name: "HttpEndpoint"))
@@ -11203,6 +11240,14 @@ module Aws::EC2
11203
11240
 
11204
11241
  LockedSnapshotsInfoList.member = Shapes::ShapeRef.new(shape: LockedSnapshotsInfo, location_name: "item")
11205
11242
 
11243
+ MacHost.add_member(:host_id, Shapes::ShapeRef.new(shape: DedicatedHostId, location_name: "hostId"))
11244
+ MacHost.add_member(:mac_os_latest_supported_versions, Shapes::ShapeRef.new(shape: MacOSVersionStringList, location_name: "macOSLatestSupportedVersionSet"))
11245
+ MacHost.struct_class = Types::MacHost
11246
+
11247
+ MacHostList.member = Shapes::ShapeRef.new(shape: MacHost, location_name: "item")
11248
+
11249
+ MacOSVersionStringList.member = Shapes::ShapeRef.new(shape: String, location_name: "item")
11250
+
11206
11251
  MaintenanceDetails.add_member(:pending_maintenance, Shapes::ShapeRef.new(shape: String, location_name: "pendingMaintenance"))
11207
11252
  MaintenanceDetails.add_member(:maintenance_auto_applied_after, Shapes::ShapeRef.new(shape: MillisecondDateTime, location_name: "maintenanceAutoAppliedAfter"))
11208
11253
  MaintenanceDetails.add_member(:last_maintenance_applied, Shapes::ShapeRef.new(shape: MillisecondDateTime, location_name: "lastMaintenanceApplied"))
@@ -11462,6 +11507,16 @@ module Aws::EC2
11462
11507
  ModifyInstanceMaintenanceOptionsResult.add_member(:auto_recovery, Shapes::ShapeRef.new(shape: InstanceAutoRecoveryState, location_name: "autoRecovery"))
11463
11508
  ModifyInstanceMaintenanceOptionsResult.struct_class = Types::ModifyInstanceMaintenanceOptionsResult
11464
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
+
11465
11520
  ModifyInstanceMetadataOptionsRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: InstanceId, required: true, location_name: "InstanceId"))
11466
11521
  ModifyInstanceMetadataOptionsRequest.add_member(:http_tokens, Shapes::ShapeRef.new(shape: HttpTokensState, location_name: "HttpTokens"))
11467
11522
  ModifyInstanceMetadataOptionsRequest.add_member(:http_put_response_hop_limit, Shapes::ShapeRef.new(shape: Integer, location_name: "HttpPutResponseHopLimit"))
@@ -18278,6 +18333,20 @@ module Aws::EC2
18278
18333
  o.output = Shapes::ShapeRef.new(shape: DescribeLockedSnapshotsResult)
18279
18334
  end)
18280
18335
 
18336
+ api.add_operation(:describe_mac_hosts, Seahorse::Model::Operation.new.tap do |o|
18337
+ o.name = "DescribeMacHosts"
18338
+ o.http_method = "POST"
18339
+ o.http_request_uri = "/"
18340
+ o.input = Shapes::ShapeRef.new(shape: DescribeMacHostsRequest)
18341
+ o.output = Shapes::ShapeRef.new(shape: DescribeMacHostsResult)
18342
+ o[:pager] = Aws::Pager.new(
18343
+ limit_key: "max_results",
18344
+ tokens: {
18345
+ "next_token" => "next_token"
18346
+ }
18347
+ )
18348
+ end)
18349
+
18281
18350
  api.add_operation(:describe_managed_prefix_lists, Seahorse::Model::Operation.new.tap do |o|
18282
18351
  o.name = "DescribeManagedPrefixLists"
18283
18352
  o.http_method = "POST"
@@ -19831,6 +19900,14 @@ module Aws::EC2
19831
19900
  o.output = Shapes::ShapeRef.new(shape: GetImageBlockPublicAccessStateResult)
19832
19901
  end)
19833
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
+
19834
19911
  api.add_operation(:get_instance_types_from_instance_requirements, Seahorse::Model::Operation.new.tap do |o|
19835
19912
  o.name = "GetInstanceTypesFromInstanceRequirements"
19836
19913
  o.http_method = "POST"
@@ -20445,6 +20522,14 @@ module Aws::EC2
20445
20522
  o.output = Shapes::ShapeRef.new(shape: ModifyInstanceMaintenanceOptionsResult)
20446
20523
  end)
20447
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
+
20448
20533
  api.add_operation(:modify_instance_metadata_options, Seahorse::Model::Operation.new.tap do |o|
20449
20534
  o.name = "ModifyInstanceMetadataOptions"
20450
20535
  o.http_method = "POST"
@@ -4100,6 +4100,20 @@ module Aws::EC2
4100
4100
  end
4101
4101
  end
4102
4102
 
4103
+ class DescribeMacHosts
4104
+ def self.build(context)
4105
+ unless context.config.regional_endpoint
4106
+ endpoint = context.config.endpoint.to_s
4107
+ end
4108
+ Aws::EC2::EndpointParameters.new(
4109
+ region: context.config.region,
4110
+ use_dual_stack: context.config.use_dualstack_endpoint,
4111
+ use_fips: context.config.use_fips_endpoint,
4112
+ endpoint: endpoint,
4113
+ )
4114
+ end
4115
+ end
4116
+
4103
4117
  class DescribeManagedPrefixLists
4104
4118
  def self.build(context)
4105
4119
  unless context.config.regional_endpoint
@@ -6158,6 +6172,20 @@ module Aws::EC2
6158
6172
  end
6159
6173
  end
6160
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
+
6161
6189
  class GetInstanceTypesFromInstanceRequirements
6162
6190
  def self.build(context)
6163
6191
  unless context.config.regional_endpoint
@@ -7012,6 +7040,20 @@ module Aws::EC2
7012
7040
  end
7013
7041
  end
7014
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
+
7015
7057
  class ModifyInstanceMetadataOptions
7016
7058
  def self.build(context)
7017
7059
  unless context.config.regional_endpoint
@@ -164,8 +164,7 @@ module Aws::EC2
164
164
  data[:hypervisor]
165
165
  end
166
166
 
167
- # The Amazon Web Services account alias (for example, `amazon`, `self`)
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]
@@ -642,6 +642,8 @@ module Aws::EC2
642
642
  Aws::EC2::Endpoints::DescribeLocalGateways.build(context)
643
643
  when :describe_locked_snapshots
644
644
  Aws::EC2::Endpoints::DescribeLockedSnapshots.build(context)
645
+ when :describe_mac_hosts
646
+ Aws::EC2::Endpoints::DescribeMacHosts.build(context)
645
647
  when :describe_managed_prefix_lists
646
648
  Aws::EC2::Endpoints::DescribeManagedPrefixLists.build(context)
647
649
  when :describe_moving_addresses
@@ -936,6 +938,8 @@ module Aws::EC2
936
938
  Aws::EC2::Endpoints::GetHostReservationPurchasePreview.build(context)
937
939
  when :get_image_block_public_access_state
938
940
  Aws::EC2::Endpoints::GetImageBlockPublicAccessState.build(context)
941
+ when :get_instance_metadata_defaults
942
+ Aws::EC2::Endpoints::GetInstanceMetadataDefaults.build(context)
939
943
  when :get_instance_types_from_instance_requirements
940
944
  Aws::EC2::Endpoints::GetInstanceTypesFromInstanceRequirements.build(context)
941
945
  when :get_instance_uefi_data
@@ -1058,6 +1062,8 @@ module Aws::EC2
1058
1062
  Aws::EC2::Endpoints::ModifyInstanceEventWindow.build(context)
1059
1063
  when :modify_instance_maintenance_options
1060
1064
  Aws::EC2::Endpoints::ModifyInstanceMaintenanceOptions.build(context)
1065
+ when :modify_instance_metadata_defaults
1066
+ Aws::EC2::Endpoints::ModifyInstanceMetadataDefaults.build(context)
1061
1067
  when :modify_instance_metadata_options
1062
1068
  Aws::EC2::Endpoints::ModifyInstanceMetadataOptions.build(context)
1063
1069
  when :modify_instance_placement
@@ -22086,6 +22086,60 @@ module Aws::EC2
22086
22086
  include Aws::Structure
22087
22087
  end
22088
22088
 
22089
+ # @!attribute [rw] filters
22090
+ # The filters.
22091
+ #
22092
+ # * `availability-zone` - The Availability Zone of the EC2 Mac
22093
+ # Dedicated Host.
22094
+ #
22095
+ # * `instance-type` - The instance type size that the EC2 Mac
22096
+ # Dedicated Host is configured to support.
22097
+ # @return [Array<Types::Filter>]
22098
+ #
22099
+ # @!attribute [rw] host_ids
22100
+ # The IDs of the EC2 Mac Dedicated Hosts.
22101
+ # @return [Array<String>]
22102
+ #
22103
+ # @!attribute [rw] max_results
22104
+ # The maximum number of results to return for the request in a single
22105
+ # page. The remaining results can be seen by sending another request
22106
+ # with the returned `nextToken` value. This value can be between 5 and
22107
+ # 500. If `maxResults` is given a larger value than 500, you receive
22108
+ # an error.
22109
+ # @return [Integer]
22110
+ #
22111
+ # @!attribute [rw] next_token
22112
+ # The token to use to retrieve the next page of results.
22113
+ # @return [String]
22114
+ #
22115
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeMacHostsRequest AWS API Documentation
22116
+ #
22117
+ class DescribeMacHostsRequest < Struct.new(
22118
+ :filters,
22119
+ :host_ids,
22120
+ :max_results,
22121
+ :next_token)
22122
+ SENSITIVE = []
22123
+ include Aws::Structure
22124
+ end
22125
+
22126
+ # @!attribute [rw] mac_hosts
22127
+ # Information about the EC2 Mac Dedicated Hosts.
22128
+ # @return [Array<Types::MacHost>]
22129
+ #
22130
+ # @!attribute [rw] next_token
22131
+ # The token to use to retrieve the next page of results.
22132
+ # @return [String]
22133
+ #
22134
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeMacHostsResult AWS API Documentation
22135
+ #
22136
+ class DescribeMacHostsResult < Struct.new(
22137
+ :mac_hosts,
22138
+ :next_token)
22139
+ SENSITIVE = []
22140
+ include Aws::Structure
22141
+ end
22142
+
22089
22143
  # @!attribute [rw] dry_run
22090
22144
  # Checks whether you have the required permissions for the action,
22091
22145
  # without actually making the request, and provides an error response.
@@ -34432,6 +34486,33 @@ module Aws::EC2
34432
34486
  include Aws::Structure
34433
34487
  end
34434
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
+
34435
34516
  # @!attribute [rw] dry_run
34436
34517
  # Checks whether you have the required permissions for the action,
34437
34518
  # without actually making the request, and provides an error response.
@@ -37143,8 +37224,7 @@ module Aws::EC2
37143
37224
  # @return [String]
37144
37225
  #
37145
37226
  # @!attribute [rw] image_owner_alias
37146
- # The Amazon Web Services account alias (for example, `amazon`,
37147
- # `self`) or the Amazon Web Services account ID of the AMI owner.
37227
+ # The owner alias (`amazon` \| `aws-marketplace`).
37148
37228
  # @return [String]
37149
37229
  #
37150
37230
  # @!attribute [rw] name
@@ -39479,33 +39559,82 @@ module Aws::EC2
39479
39559
  include Aws::Structure
39480
39560
  end
39481
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
+
39482
39606
  # The metadata options for the instance.
39483
39607
  #
39484
39608
  # @!attribute [rw] http_tokens
39485
39609
  # Indicates whether IMDSv2 is required.
39486
39610
  #
39487
- # * `optional` - IMDSv2 is optional. You can choose whether to send a
39488
- # session token in your instance metadata retrieval requests. If you
39489
- # retrieve IAM role credentials without a session token, you receive
39490
- # the IMDSv1 role credentials. If you retrieve IAM role credentials
39491
- # using a valid session token, you receive the IMDSv2 role
39492
- # credentials.
39611
+ # * `optional` - IMDSv2 is optional, which means that you can use
39612
+ # either IMDSv2 or IMDSv1.
39493
39613
  #
39494
- # * `required` - IMDSv2 is required. You must send a session token in
39495
- # your instance metadata retrieval requests. With this option,
39496
- # retrieving the IAM role credentials always returns IMDSv2
39497
- # credentials; IMDSv1 credentials are not available.
39614
+ # * `required` - IMDSv2 is required, which means that IMDSv1 is
39615
+ # disabled, and you must use IMDSv2.
39498
39616
  #
39499
- # Default: If the value of `ImdsSupport` for the Amazon Machine Image
39500
- # (AMI) for your instance is `v2.0`, the default is `required`.
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
39501
39634
  # @return [String]
39502
39635
  #
39503
39636
  # @!attribute [rw] http_put_response_hop_limit
39504
- # The desired HTTP PUT response hop limit for instance metadata
39505
- # requests. The larger the number, the further instance metadata
39506
- # requests can travel.
39507
- #
39508
- # Default: 1
39637
+ # The maximum number of hops that the metadata token can travel.
39509
39638
  #
39510
39639
  # Possible values: Integers from 1 to 64
39511
39640
  # @return [Integer]
@@ -39566,25 +39695,15 @@ module Aws::EC2
39566
39695
  # @!attribute [rw] http_tokens
39567
39696
  # Indicates whether IMDSv2 is required.
39568
39697
  #
39569
- # * `optional` - IMDSv2 is optional. You can choose whether to send a
39570
- # session token in your instance metadata retrieval requests. If you
39571
- # retrieve IAM role credentials without a session token, you receive
39572
- # the IMDSv1 role credentials. If you retrieve IAM role credentials
39573
- # using a valid session token, you receive the IMDSv2 role
39574
- # credentials.
39698
+ # * `optional` - IMDSv2 is optional, which means that you can use
39699
+ # either IMDSv2 or IMDSv1.
39575
39700
  #
39576
- # * `required` - IMDSv2 is required. You must send a session token in
39577
- # your instance metadata retrieval requests. With this option,
39578
- # retrieving the IAM role credentials always returns IMDSv2
39579
- # credentials; IMDSv1 credentials are not available.
39701
+ # * `required` - IMDSv2 is required, which means that IMDSv1 is
39702
+ # disabled, and you must use IMDSv2.
39580
39703
  # @return [String]
39581
39704
  #
39582
39705
  # @!attribute [rw] http_put_response_hop_limit
39583
- # The desired HTTP PUT response hop limit for instance metadata
39584
- # requests. The larger the number, the further instance metadata
39585
- # requests can travel.
39586
- #
39587
- # Default: `1`
39706
+ # The maximum number of hops that the metadata token can travel.
39588
39707
  #
39589
39708
  # Possible values: Integers from `1` to `64`
39590
39709
  # @return [Integer]
@@ -46203,6 +46322,26 @@ module Aws::EC2
46203
46322
  include Aws::Structure
46204
46323
  end
46205
46324
 
46325
+ # Information about the EC2 Mac Dedicated Host.
46326
+ #
46327
+ # @!attribute [rw] host_id
46328
+ # The EC2 Mac Dedicated Host ID.
46329
+ # @return [String]
46330
+ #
46331
+ # @!attribute [rw] mac_os_latest_supported_versions
46332
+ # The latest macOS versions that the EC2 Mac Dedicated Host can launch
46333
+ # without being upgraded.
46334
+ # @return [Array<String>]
46335
+ #
46336
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/MacHost AWS API Documentation
46337
+ #
46338
+ class MacHost < Struct.new(
46339
+ :host_id,
46340
+ :mac_os_latest_supported_versions)
46341
+ SENSITIVE = []
46342
+ include Aws::Structure
46343
+ end
46344
+
46206
46345
  # Details for Site-to-Site VPN tunnel endpoint maintenance events.
46207
46346
  #
46208
46347
  # @!attribute [rw] pending_maintenance
@@ -47747,6 +47886,72 @@ module Aws::EC2
47747
47886
  include Aws::Structure
47748
47887
  end
47749
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
+
47750
47955
  # @!attribute [rw] instance_id
47751
47956
  # The ID of the instance.
47752
47957
  # @return [String]
@@ -47766,8 +47971,23 @@ module Aws::EC2
47766
47971
  # retrieving the IAM role credentials always returns IMDSv2
47767
47972
  # credentials; IMDSv1 credentials are not available.
47768
47973
  #
47769
- # Default: If the value of `ImdsSupport` for the Amazon Machine Image
47770
- # (AMI) for your instance is `v2.0`, the default is `required`.
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
47771
47991
  # @return [String]
47772
47992
  #
47773
47993
  # @!attribute [rw] http_put_response_hop_limit
@@ -59891,7 +60111,8 @@ module Aws::EC2
59891
60111
  # @return [Array<Types::Filter>]
59892
60112
  #
59893
60113
  # @!attribute [rw] max_results
59894
- # 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.
59895
60116
  # @return [Integer]
59896
60117
  #
59897
60118
  # @!attribute [rw] dry_run
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.443.0'
79
+ GEM_VERSION = '1.445.0'
80
80
 
81
81
  end
data/sig/client.rbs CHANGED
@@ -6212,6 +6212,25 @@ module Aws
6212
6212
  ) -> _DescribeLockedSnapshotsResponseSuccess
6213
6213
  | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeLockedSnapshotsResponseSuccess
6214
6214
 
6215
+ interface _DescribeMacHostsResponseSuccess
6216
+ include ::Seahorse::Client::_ResponseSuccess[Types::DescribeMacHostsResult]
6217
+ def mac_hosts: () -> ::Array[Types::MacHost]
6218
+ def next_token: () -> ::String
6219
+ end
6220
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Client.html#describe_mac_hosts-instance_method
6221
+ def describe_mac_hosts: (
6222
+ ?filters: Array[
6223
+ {
6224
+ name: ::String?,
6225
+ values: Array[::String]?
6226
+ },
6227
+ ],
6228
+ ?host_ids: Array[::String],
6229
+ ?max_results: ::Integer,
6230
+ ?next_token: ::String
6231
+ ) -> _DescribeMacHostsResponseSuccess
6232
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeMacHostsResponseSuccess
6233
+
6215
6234
  interface _DescribeManagedPrefixListsResponseSuccess
6216
6235
  include ::Seahorse::Client::_ResponseSuccess[Types::DescribeManagedPrefixListsResult]
6217
6236
  def next_token: () -> ::String
@@ -8598,6 +8617,16 @@ module Aws
8598
8617
  ) -> _GetImageBlockPublicAccessStateResponseSuccess
8599
8618
  | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetImageBlockPublicAccessStateResponseSuccess
8600
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
+
8601
8630
  interface _GetInstanceTypesFromInstanceRequirementsResponseSuccess
8602
8631
  include ::Seahorse::Client::_ResponseSuccess[Types::GetInstanceTypesFromInstanceRequirementsResult]
8603
8632
  def instance_types: () -> ::Array[Types::InstanceTypeInfoFromInstanceRequirements]
@@ -9991,6 +10020,20 @@ module Aws
9991
10020
  ) -> _ModifyInstanceMaintenanceOptionsResponseSuccess
9992
10021
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ModifyInstanceMaintenanceOptionsResponseSuccess
9993
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
+
9994
10037
  interface _ModifyInstanceMetadataOptionsResponseSuccess
9995
10038
  include ::Seahorse::Client::_ResponseSuccess[Types::ModifyInstanceMetadataOptionsResult]
9996
10039
  def instance_id: () -> ::String
data/sig/types.rbs CHANGED
@@ -5000,6 +5000,20 @@ module Aws::EC2
5000
5000
  SENSITIVE: []
5001
5001
  end
5002
5002
 
5003
+ class DescribeMacHostsRequest
5004
+ attr_accessor filters: ::Array[Types::Filter]
5005
+ attr_accessor host_ids: ::Array[::String]
5006
+ attr_accessor max_results: ::Integer
5007
+ attr_accessor next_token: ::String
5008
+ SENSITIVE: []
5009
+ end
5010
+
5011
+ class DescribeMacHostsResult
5012
+ attr_accessor mac_hosts: ::Array[Types::MacHost]
5013
+ attr_accessor next_token: ::String
5014
+ SENSITIVE: []
5015
+ end
5016
+
5003
5017
  class DescribeManagedPrefixListsRequest
5004
5018
  attr_accessor dry_run: bool
5005
5019
  attr_accessor filters: ::Array[Types::Filter]
@@ -7692,6 +7706,16 @@ module Aws::EC2
7692
7706
  SENSITIVE: []
7693
7707
  end
7694
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
+
7695
7719
  class GetInstanceTypesFromInstanceRequirementsRequest
7696
7720
  attr_accessor dry_run: bool
7697
7721
  attr_accessor architecture_types: ::Array[("i386" | "x86_64" | "arm64" | "x86_64_mac" | "arm64_mac")]
@@ -8865,6 +8889,14 @@ module Aws::EC2
8865
8889
  SENSITIVE: []
8866
8890
  end
8867
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
+
8868
8900
  class InstanceMetadataOptionsRequest
8869
8901
  attr_accessor http_tokens: ("optional" | "required")
8870
8902
  attr_accessor http_put_response_hop_limit: ::Integer
@@ -10099,6 +10131,12 @@ module Aws::EC2
10099
10131
  SENSITIVE: []
10100
10132
  end
10101
10133
 
10134
+ class MacHost
10135
+ attr_accessor host_id: ::String
10136
+ attr_accessor mac_os_latest_supported_versions: ::Array[::String]
10137
+ SENSITIVE: []
10138
+ end
10139
+
10102
10140
  class MaintenanceDetails
10103
10141
  attr_accessor pending_maintenance: ::String
10104
10142
  attr_accessor maintenance_auto_applied_after: ::Time
@@ -10442,6 +10480,20 @@ module Aws::EC2
10442
10480
  SENSITIVE: []
10443
10481
  end
10444
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
+
10445
10497
  class ModifyInstanceMetadataOptionsRequest
10446
10498
  attr_accessor instance_id: ::String
10447
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.443.0
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-15 00:00:00.000000000 Z
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