@aws-sdk/client-ec2 3.554.0 → 3.557.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.
@@ -33,6 +33,15 @@ declare const CancelSpotFleetRequestsCommand_base: {
33
33
  * <code>cancelled_terminating</code> state. Otherwise, the Spot Fleet request enters
34
34
  * the <code>cancelled_running</code> state and the instances continue to run until they
35
35
  * are interrupted or you terminate them manually.</p>
36
+ * <p class="title">
37
+ * <b>Restrictions</b>
38
+ * </p>
39
+ * <ul>
40
+ * <li>
41
+ * <p>You can delete up to 100 fleets in a single request. If you exceed the specified
42
+ * number, no fleets are deleted.</p>
43
+ * </li>
44
+ * </ul>
36
45
  * @example
37
46
  * Use a bare-bones client and the command you need to make an API call.
38
47
  * ```javascript
@@ -33,21 +33,28 @@ declare const DeleteFleetsCommand_base: {
33
33
  * state. Otherwise, the EC2 Fleet enters the <code>deleted_running</code> state, and the instances
34
34
  * continue to run until they are interrupted or you terminate them manually.</p>
35
35
  * <p>For <code>instant</code> fleets, EC2 Fleet must terminate the instances when the fleet is
36
- * deleted. A deleted <code>instant</code> fleet with running instances is not
37
- * supported.</p>
36
+ * deleted. Up to 1000 instances can be terminated in a single request to delete
37
+ * <code>instant</code> fleets. A deleted <code>instant</code> fleet with running instances
38
+ * is not supported.</p>
38
39
  * <p class="title">
39
40
  * <b>Restrictions</b>
40
41
  * </p>
41
42
  * <ul>
42
43
  * <li>
43
- * <p>You can delete up to 25 <code>instant</code> fleets in a single request. If you exceed this
44
- * number, no <code>instant</code> fleets are deleted and an error is returned. There is no
45
- * restriction on the number of fleets of type <code>maintain</code> or <code>request</code> that can be deleted
46
- * in a single request.</p>
44
+ * <p>You can delete up to 25 fleets of type <code>instant</code> in a single
45
+ * request.</p>
47
46
  * </li>
48
47
  * <li>
49
- * <p>Up to 1000 instances can be terminated in a single request to delete
50
- * <code>instant</code> fleets.</p>
48
+ * <p>You can delete up to 100 fleets of type <code>maintain</code> or
49
+ * <code>request</code> in a single request.</p>
50
+ * </li>
51
+ * <li>
52
+ * <p>You can delete up to 125 fleets in a single request, provided you do not exceed
53
+ * the quota for each fleet type, as specified above.</p>
54
+ * </li>
55
+ * <li>
56
+ * <p>If you exceed the specified number of fleets to delete, no fleets are
57
+ * deleted.</p>
51
58
  * </li>
52
59
  * </ul>
53
60
  * <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/manage-ec2-fleet.html#delete-fleet">Delete an EC2
@@ -26,8 +26,8 @@ declare const DescribeInstanceTypeOfferingsCommand_base: {
26
26
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
27
27
  };
28
28
  /**
29
- * <p>Returns a list of all instance types offered. The results can be filtered by location (Region or Availability
30
- * Zone). If no location is specified, the instance types offered in the current Region are returned.</p>
29
+ * <p>Lists the instance types that are offered for the specified location. If no location is specified, the default
30
+ * is to list the instance types that are offered in the current Region.</p>
31
31
  * @example
32
32
  * Use a bare-bones client and the command you need to make an API call.
33
33
  * ```javascript
@@ -26,8 +26,8 @@ declare const DescribeInstanceTypesCommand_base: {
26
26
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
27
27
  };
28
28
  /**
29
- * <p>Describes the details of the instance types that are offered in a location. The results can be filtered by the
30
- * attributes of the instance types.</p>
29
+ * <p>Describes the specified instance types. By default, all instance types for the current Region are described.
30
+ * Alternatively, you can filter the results.</p>
31
31
  * @example
32
32
  * Use a bare-bones client and the command you need to make an API call.
33
33
  * ```javascript
@@ -29,6 +29,7 @@ declare const GetConsoleScreenshotCommand_base: {
29
29
  * <p>Retrieve a JPG-format screenshot of a running instance to help with
30
30
  * troubleshooting.</p>
31
31
  * <p>The returned content is Base64-encoded.</p>
32
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/troubleshoot-unreachable-instance.html#instance-console-console-output">Instance console output</a> in the <i>Amazon EC2 User Guide</i>.</p>
32
33
  * @example
33
34
  * Use a bare-bones client and the command you need to make an API call.
34
35
  * ```javascript
@@ -31,8 +31,9 @@ declare const ModifyInstanceMetadataDefaultsCommand_base: {
31
31
  Region.</p>
32
32
  * <note>
33
33
  * <p>To remove a parameter's account-level default setting, specify
34
- * <code>no-preference</code>. At instance launch, the value will come from the
35
- * AMI, or from the launch parameter if specified. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-instance-metadata-options.html#instance-metadata-options-order-of-precedence">Order of precedence for instance metadata options</a> in the
34
+ * <code>no-preference</code>. If an account-level setting is cleared with
35
+ * <code>no-preference</code>, then the instance launch considers the other
36
+ * instance metadata settings. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-instance-metadata-options.html#instance-metadata-options-order-of-precedence">Order of precedence for instance metadata options</a> in the
36
37
  * <i>Amazon EC2 User Guide</i>.</p>
37
38
  * </note>
38
39
  * @example
@@ -6580,6 +6580,7 @@ export interface CancelSpotFleetRequestsRequest {
6580
6580
  DryRun?: boolean;
6581
6581
  /**
6582
6582
  * <p>The IDs of the Spot Fleet requests.</p>
6583
+ * <p>Constraint: You can specify up to 100 IDs in a single request.</p>
6583
6584
  * @public
6584
6585
  */
6585
6586
  SpotFleetRequestIds: string[] | undefined;
@@ -3363,13 +3363,13 @@ export interface CreateFleetError {
3363
3363
  Lifecycle?: InstanceLifecycle;
3364
3364
  /**
3365
3365
  * <p>The error code that indicates why the instance could not be launched. For more
3366
- * information about error codes, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/errors-overview.html.html">Error codes</a>.</p>
3366
+ * information about error codes, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/errors-overview.html">Error codes</a>.</p>
3367
3367
  * @public
3368
3368
  */
3369
3369
  ErrorCode?: string;
3370
3370
  /**
3371
3371
  * <p>The error message that describes why the instance could not be launched. For more
3372
- * information about error messages, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/errors-overview.html.html">Error codes</a>.</p>
3372
+ * information about error messages, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/errors-overview.html">Error codes</a>.</p>
3373
3373
  * @public
3374
3374
  */
3375
3375
  ErrorMessage?: string;
@@ -6547,8 +6547,7 @@ export interface RequestLaunchTemplateData {
6547
6547
  */
6548
6548
  BlockDeviceMappings?: LaunchTemplateBlockDeviceMappingRequest[];
6549
6549
  /**
6550
- * <p>One or more network interfaces. If you specify a network interface, you must specify
6551
- * any security groups and subnets as part of the network interface.</p>
6550
+ * <p>The network interfaces for the instance.</p>
6552
6551
  * @public
6553
6552
  */
6554
6553
  NetworkInterfaces?: LaunchTemplateInstanceNetworkInterfaceSpecificationRequest[];
@@ -6690,13 +6689,17 @@ export interface RequestLaunchTemplateData {
6690
6689
  */
6691
6690
  ElasticInferenceAccelerators?: LaunchTemplateElasticInferenceAccelerator[];
6692
6691
  /**
6693
- * <p>One or more security group IDs. You can create a security group using <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateSecurityGroup.html">CreateSecurityGroup</a>.</p>
6692
+ * <p>The IDs of the security groups.</p>
6693
+ * <p>If you specify a network interface, you must specify any security groups as part of
6694
+ * the network interface instead of using this parameter.</p>
6694
6695
  * @public
6695
6696
  */
6696
6697
  SecurityGroupIds?: string[];
6697
6698
  /**
6698
- * <p>One or more security group names. For a nondefault VPC, you must use security group
6699
+ * <p>The names of the security groups. For a nondefault VPC, you must use security group
6699
6700
  * IDs instead.</p>
6701
+ * <p>If you specify a network interface, you must specify any security groups as part of
6702
+ * the network interface instead of using this parameter.</p>
6700
6703
  * @public
6701
6704
  */
6702
6705
  SecurityGroups?: string[];
@@ -7133,6 +7133,8 @@ export interface DeleteFleetsRequest {
7133
7133
  DryRun?: boolean;
7134
7134
  /**
7135
7135
  * <p>The IDs of the EC2 Fleets.</p>
7136
+ * <p>Constraints: In a single request, you can specify up to 25 <code>instant</code> fleet
7137
+ * IDs and up to 100 <code>maintain</code> or <code>request</code> fleet IDs. </p>
7136
7138
  * @public
7137
7139
  */
7138
7140
  FleetIds: string[] | undefined;
@@ -2957,6 +2957,27 @@ export interface DescribeInstanceTypeOfferingsRequest {
2957
2957
  DryRun?: boolean;
2958
2958
  /**
2959
2959
  * <p>The location type.</p>
2960
+ * <ul>
2961
+ * <li>
2962
+ * <p>
2963
+ * <code>availability-zone</code> - The Availability Zone. When you specify a location filter, it must be
2964
+ * an Availability Zone for the current Region.</p>
2965
+ * </li>
2966
+ * <li>
2967
+ * <p>
2968
+ * <code>availability-zone-id</code> - The AZ ID. When you specify a location filter, it must be
2969
+ * an AZ ID for the current Region.</p>
2970
+ * </li>
2971
+ * <li>
2972
+ * <p>
2973
+ * <code>outpost</code> - The Outpost ARN. When you specify a location filter, it must be an Outpost ARN
2974
+ * for the current Region.</p>
2975
+ * </li>
2976
+ * <li>
2977
+ * <p>
2978
+ * <code>region</code> - The current Region. If you specify a location filter, it must match the current Region.</p>
2979
+ * </li>
2980
+ * </ul>
2960
2981
  * @public
2961
2982
  */
2962
2983
  LocationType?: LocationType;
@@ -2965,13 +2986,12 @@ export interface DescribeInstanceTypeOfferingsRequest {
2965
2986
  * <ul>
2966
2987
  * <li>
2967
2988
  * <p>
2968
- * <code>location</code> - This depends on the location type. For example, if the location type is
2969
- * <code>region</code> (default), the location is the Region code (for example, <code>us-east-2</code>.)</p>
2989
+ * <code>instance-type</code> - The instance type. For a list of possible values, see
2990
+ * <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_Instance.html">Instance</a>.</p>
2970
2991
  * </li>
2971
2992
  * <li>
2972
2993
  * <p>
2973
- * <code>instance-type</code> - The instance type. For example,
2974
- * <code>c5.2xlarge</code>.</p>
2994
+ * <code>location</code> - The location. For a list of possible identifiers, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html">Regions and Zones</a>.</p>
2975
2995
  * </li>
2976
2996
  * </ul>
2977
2997
  * @public
@@ -3017,7 +3037,7 @@ export interface InstanceTypeOffering {
3017
3037
  */
3018
3038
  export interface DescribeInstanceTypeOfferingsResult {
3019
3039
  /**
3020
- * <p>The instance types offered.</p>
3040
+ * <p>The instance types offered in the location.</p>
3021
3041
  * @public
3022
3042
  */
3023
3043
  InstanceTypeOfferings?: InstanceTypeOffering[];
@@ -3040,7 +3060,7 @@ export interface DescribeInstanceTypesRequest {
3040
3060
  */
3041
3061
  DryRun?: boolean;
3042
3062
  /**
3043
- * <p>The instance types. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html">Instance types</a> in the <i>Amazon EC2 User Guide</i>.</p>
3063
+ * <p>The instance types.</p>
3044
3064
  * @public
3045
3065
  */
3046
3066
  InstanceTypes?: _InstanceType[];
@@ -4261,7 +4281,7 @@ export interface InstanceTypeInfo {
4261
4281
  */
4262
4282
  export interface DescribeInstanceTypesResult {
4263
4283
  /**
4264
- * <p>The instance type. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html">Instance types</a> in the <i>Amazon EC2 User Guide</i>.</p>
4284
+ * <p>The instance type.</p>
4265
4285
  * @public
4266
4286
  */
4267
4287
  InstanceTypes?: InstanceTypeInfo[];
@@ -10094,6 +10114,8 @@ export interface SpotFleetTagSpecification {
10094
10114
  export interface SpotFleetLaunchSpecification {
10095
10115
  /**
10096
10116
  * <p>The security groups.</p>
10117
+ * <p>If you specify a network interface, you must specify any security groups as part of
10118
+ * the network interface instead of using this parameter.</p>
10097
10119
  * @public
10098
10120
  */
10099
10121
  SecurityGroups?: GroupIdentifier[];
@@ -10148,11 +10170,11 @@ export interface SpotFleetLaunchSpecification {
10148
10170
  */
10149
10171
  Monitoring?: SpotFleetMonitoring;
10150
10172
  /**
10151
- * <p>One or more network interfaces. If you specify a network interface, you must specify
10152
- * subnet IDs and security group IDs using the network interface.</p>
10173
+ * <p>The network interfaces.</p>
10153
10174
  * <note>
10154
10175
  * <p>
10155
- * <code>SpotFleetLaunchSpecification</code> currently does not support Elastic Fabric Adapter (EFA). To specify an EFA, you must use <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_LaunchTemplateConfig.html">LaunchTemplateConfig</a>.</p>
10176
+ * <code>SpotFleetLaunchSpecification</code> does not support Elastic Fabric Adapter (EFA).
10177
+ * You must use <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_LaunchTemplateConfig.html">LaunchTemplateConfig</a> instead.</p>
10156
10178
  * </note>
10157
10179
  * @public
10158
10180
  */
@@ -10180,7 +10202,9 @@ export interface SpotFleetLaunchSpecification {
10180
10202
  SpotPrice?: string;
10181
10203
  /**
10182
10204
  * <p>The IDs of the subnets in which to launch the instances. To specify multiple subnets, separate
10183
- * them using commas; for example, "subnet-1234abcdeexample1, subnet-0987cdef6example2".</p>
10205
+ * them using commas; for example, "subnet-1234abcdeexample1, subnet-0987cdef6example2".</p>
10206
+ * <p>If you specify a network interface, you must specify any subnets as part of the
10207
+ * network interface instead of using this parameter.</p>
10184
10208
  * @public
10185
10209
  */
10186
10210
  SubnetId?: string;
@@ -4744,11 +4744,10 @@ export interface ModifyInstanceMetadataDefaultsRequest {
4744
4744
  */
4745
4745
  HttpTokens?: MetadataDefaultHttpTokensState;
4746
4746
  /**
4747
- * <p>The maximum number of hops that the metadata token can travel.</p>
4748
- * <p>Minimum: <code>1</code>
4749
- * </p>
4750
- * <p>Maximum: <code>64</code>
4751
- * </p>
4747
+ * <p>The maximum number of hops that the metadata token can travel. To indicate no
4748
+ * preference, specify <code>-1</code>.</p>
4749
+ * <p>Possible values: Integers from <code>1</code> to <code>64</code>, and <code>-1</code>
4750
+ * to indicate no preference</p>
4752
4751
  * @public
4753
4752
  */
4754
4753
  HttpPutResponseHopLimit?: number;
@@ -2510,14 +2510,14 @@ export interface RunInstancesRequest {
2510
2510
  /**
2511
2511
  * <p>The IDs of the security groups. You can create a security group using <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateSecurityGroup.html">CreateSecurityGroup</a>.</p>
2512
2512
  * <p>If you specify a network interface, you must specify any security groups as part of
2513
- * the network interface.</p>
2513
+ * the network interface instead of using this parameter.</p>
2514
2514
  * @public
2515
2515
  */
2516
2516
  SecurityGroupIds?: string[];
2517
2517
  /**
2518
2518
  * <p>[Default VPC] The names of the security groups.</p>
2519
2519
  * <p>If you specify a network interface, you must specify any security groups as part of
2520
- * the network interface.</p>
2520
+ * the network interface instead of using this parameter.</p>
2521
2521
  * <p>Default: Amazon EC2 uses the default security group.</p>
2522
2522
  * @public
2523
2523
  */
@@ -2525,7 +2525,7 @@ export interface RunInstancesRequest {
2525
2525
  /**
2526
2526
  * <p>The ID of the subnet to launch the instance into.</p>
2527
2527
  * <p>If you specify a network interface, you must specify any subnets as part of the
2528
- * network interface.</p>
2528
+ * network interface instead of using this parameter.</p>
2529
2529
  * @public
2530
2530
  */
2531
2531
  SubnetId?: string;
@@ -2598,9 +2598,7 @@ export interface RunInstancesRequest {
2598
2598
  */
2599
2599
  InstanceInitiatedShutdownBehavior?: ShutdownBehavior;
2600
2600
  /**
2601
- * <p>The network interfaces to associate with the instance. If you specify a network
2602
- * interface, you must specify any security groups and subnets as part of the network
2603
- * interface.</p>
2601
+ * <p>The network interfaces to associate with the instance.</p>
2604
2602
  * @public
2605
2603
  */
2606
2604
  NetworkInterfaces?: InstanceNetworkInterfaceSpecification[];
@@ -2617,28 +2615,18 @@ export interface RunInstancesRequest {
2617
2615
  */
2618
2616
  PrivateIpAddress?: string;
2619
2617
  /**
2620
- * <p>Deprecated.</p>
2618
+ * <p>An elastic GPU to associate with the instance.</p>
2621
2619
  * <note>
2622
- * <p>Amazon Elastic Graphics reached end of life on January 8, 2024. For
2623
- * workloads that require graphics acceleration, we recommend that you use Amazon EC2 G4ad,
2624
- * G4dn, or G5 instances.</p>
2620
+ * <p>Amazon Elastic Graphics reached end of life on January 8, 2024.</p>
2625
2621
  * </note>
2626
2622
  * @public
2627
2623
  */
2628
2624
  ElasticGpuSpecification?: ElasticGpuSpecification[];
2629
2625
  /**
2630
- * <p>An elastic inference accelerator to associate with the instance. Elastic inference
2631
- * accelerators are a resource you can attach to your Amazon EC2 instances to accelerate
2632
- * your Deep Learning (DL) inference workloads.</p>
2633
- * <p>You cannot specify accelerators from different generations in the same request.</p>
2626
+ * <p>An elastic inference accelerator to associate with the instance.</p>
2634
2627
  * <note>
2635
- * <p>Starting April 15, 2023, Amazon Web Services will not onboard new customers to Amazon
2636
- * Elastic Inference (EI), and will help current customers migrate their workloads to
2637
- * options that offer better price and performance. After April 15, 2023, new customers
2638
- * will not be able to launch instances with Amazon EI accelerators in Amazon SageMaker,
2639
- * Amazon ECS, or Amazon EC2. However, customers who have used Amazon EI at least once during
2640
- * the past 30-day period are considered current customers and will be able to continue
2641
- * using the service.</p>
2628
+ * <p>Amazon Elastic Inference (EI) is no longer available to new customers. For more
2629
+ * information, see <a href="http://aws.amazon.com/machine-learning/elastic-inference/faqs/">Amazon Elastic Inference FAQs</a>.</p>
2642
2630
  * </note>
2643
2631
  * @public
2644
2632
  */
@@ -3414,7 +3402,8 @@ export interface SearchTransitGatewayRoutesRequest {
3414
3402
  */
3415
3403
  Filters: Filter[] | undefined;
3416
3404
  /**
3417
- * <p>The maximum number of routes to return.</p>
3405
+ * <p>The maximum number of routes to return. If a value is not provided, the default is
3406
+ * 1000.</p>
3418
3407
  * @public
3419
3408
  */
3420
3409
  MaxResults?: number;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-ec2",
3
3
  "description": "AWS SDK for JavaScript Ec2 Client for Node.js, Browser and React Native",
4
- "version": "3.554.0",
4
+ "version": "3.557.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-ec2",
@@ -20,13 +20,13 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.554.0",
24
- "@aws-sdk/core": "3.554.0",
25
- "@aws-sdk/credential-provider-node": "3.554.0",
23
+ "@aws-sdk/client-sts": "3.556.0",
24
+ "@aws-sdk/core": "3.556.0",
25
+ "@aws-sdk/credential-provider-node": "3.556.0",
26
26
  "@aws-sdk/middleware-host-header": "3.535.0",
27
27
  "@aws-sdk/middleware-logger": "3.535.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.535.0",
29
- "@aws-sdk/middleware-sdk-ec2": "3.552.0",
29
+ "@aws-sdk/middleware-sdk-ec2": "3.556.0",
30
30
  "@aws-sdk/middleware-user-agent": "3.540.0",
31
31
  "@aws-sdk/region-config-resolver": "3.535.0",
32
32
  "@aws-sdk/types": "3.535.0",