@aws-sdk/client-ec2 3.204.0 → 3.206.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.
- package/dist-cjs/commands/CreateSubnetCidrReservationCommand.js +2 -1
- package/dist-cjs/commands/DeregisterTransitGatewayMulticastGroupMembersCommand.js +1 -2
- package/dist-cjs/commands/DescribeLaunchTemplatesCommand.js +3 -3
- package/dist-cjs/commands/DisassociateTransitGatewayRouteTableCommand.js +2 -1
- package/dist-cjs/commands/DisassociateTrunkInterfaceCommand.js +1 -2
- package/dist-cjs/commands/ModifyVpcPeeringConnectionOptionsCommand.js +1 -2
- package/dist-cjs/models/models_1.js +13 -13
- package/dist-cjs/models/models_2.js +14 -14
- package/dist-cjs/models/models_3.js +13 -13
- package/dist-cjs/models/models_4.js +14 -14
- package/dist-cjs/models/models_5.js +14 -14
- package/dist-cjs/models/models_6.js +12 -4
- package/dist-cjs/protocols/Aws_ec2.js +114 -0
- package/dist-es/commands/CreateSubnetCidrReservationCommand.js +2 -1
- package/dist-es/commands/DeregisterTransitGatewayMulticastGroupMembersCommand.js +1 -2
- package/dist-es/commands/DescribeLaunchTemplatesCommand.js +1 -1
- package/dist-es/commands/DisassociateTransitGatewayRouteTableCommand.js +2 -1
- package/dist-es/commands/DisassociateTrunkInterfaceCommand.js +1 -2
- package/dist-es/commands/ModifyVpcPeeringConnectionOptionsCommand.js +1 -2
- package/dist-es/models/models_1.js +6 -6
- package/dist-es/models/models_2.js +6 -6
- package/dist-es/models/models_3.js +6 -6
- package/dist-es/models/models_4.js +6 -6
- package/dist-es/models/models_5.js +6 -6
- package/dist-es/models/models_6.js +6 -0
- package/dist-es/protocols/Aws_ec2.js +114 -0
- package/dist-types/EC2.d.ts +51 -44
- package/dist-types/commands/AllocateHostsCommand.d.ts +3 -3
- package/dist-types/commands/CreateLaunchTemplateCommand.d.ts +5 -5
- package/dist-types/commands/CreateLaunchTemplateVersionCommand.d.ts +3 -2
- package/dist-types/commands/CreateSpotDatafeedSubscriptionCommand.d.ts +3 -3
- package/dist-types/commands/CreateSubnetCidrReservationCommand.d.ts +2 -1
- package/dist-types/commands/DeregisterTransitGatewayMulticastGroupMembersCommand.d.ts +1 -2
- package/dist-types/commands/DescribeHostReservationOfferingsCommand.d.ts +4 -4
- package/dist-types/commands/DescribeLaunchTemplatesCommand.d.ts +1 -1
- package/dist-types/commands/DescribeSpotDatafeedSubscriptionCommand.d.ts +1 -1
- package/dist-types/commands/DescribeSpotFleetRequestHistoryCommand.d.ts +1 -1
- package/dist-types/commands/DisassociateTransitGatewayRouteTableCommand.d.ts +2 -1
- package/dist-types/commands/DisassociateTrunkInterfaceCommand.d.ts +1 -2
- package/dist-types/commands/GetHostReservationPurchasePreviewCommand.d.ts +5 -5
- package/dist-types/commands/GetInstanceUefiDataCommand.d.ts +6 -5
- package/dist-types/commands/GetLaunchTemplateDataCommand.d.ts +4 -3
- package/dist-types/commands/ModifyHostsCommand.d.ts +8 -7
- package/dist-types/commands/ModifyInstancePlacementCommand.d.ts +2 -2
- package/dist-types/commands/ModifyVpcPeeringConnectionOptionsCommand.d.ts +1 -2
- package/dist-types/commands/RequestSpotFleetCommand.d.ts +2 -2
- package/dist-types/commands/RequestSpotInstancesCommand.d.ts +1 -0
- package/dist-types/commands/RunInstancesCommand.d.ts +3 -1
- package/dist-types/models/models_0.d.ts +24 -26
- package/dist-types/models/models_1.d.ts +201 -94
- package/dist-types/models/models_2.d.ts +58 -49
- package/dist-types/models/models_3.d.ts +95 -120
- package/dist-types/models/models_4.d.ts +96 -57
- package/dist-types/models/models_5.d.ts +75 -86
- package/dist-types/models/models_6.d.ts +77 -20
- package/dist-types/ts3.4/commands/CreateSubnetCidrReservationCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/DeregisterTransitGatewayMulticastGroupMembersCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/DescribeLaunchTemplatesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DisassociateTransitGatewayRouteTableCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/DisassociateTrunkInterfaceCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/ModifyVpcPeeringConnectionOptionsCommand.d.ts +4 -2
- package/dist-types/ts3.4/models/models_1.d.ts +21 -18
- package/dist-types/ts3.4/models/models_2.d.ts +19 -18
- package/dist-types/ts3.4/models/models_3.d.ts +18 -24
- package/dist-types/ts3.4/models/models_4.d.ts +19 -15
- package/dist-types/ts3.4/models/models_5.d.ts +17 -18
- package/dist-types/ts3.4/models/models_6.d.ts +18 -1
- package/package.json +1 -1
|
@@ -12,9 +12,10 @@ export interface GetLaunchTemplateDataCommandOutput extends GetLaunchTemplateDat
|
|
|
12
12
|
* create a launch template. </p>
|
|
13
13
|
* <p>This action calls on other describe actions to get instance information. Depending on
|
|
14
14
|
* your instance configuration, you may need to allow the following actions in your IAM
|
|
15
|
-
* policy: <code>DescribeSpotInstanceRequests</code>,
|
|
16
|
-
*
|
|
17
|
-
* <code>
|
|
15
|
+
* policy: <code>DescribeSpotInstanceRequests</code>,
|
|
16
|
+
* <code>DescribeInstanceCreditSpecifications</code>, <code>DescribeVolumes</code>,
|
|
17
|
+
* <code>DescribeInstanceAttribute</code>, and <code>DescribeElasticGpus</code>. Or,
|
|
18
|
+
* you can allow <code>describe*</code> depending on your instance requirements.</p>
|
|
18
19
|
* @example
|
|
19
20
|
* Use a bare-bones client and the command you need to make an API call.
|
|
20
21
|
* ```javascript
|
|
@@ -9,13 +9,14 @@ export interface ModifyHostsCommandOutput extends ModifyHostsResult, __MetadataB
|
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
11
|
* <p>Modify the auto-placement setting of a Dedicated Host. When auto-placement is enabled,
|
|
12
|
-
* any instances that you launch with a tenancy of <code>host</code> but without a specific
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
12
|
+
* any instances that you launch with a tenancy of <code>host</code> but without a specific
|
|
13
|
+
* host ID are placed onto any available Dedicated Host in your account that has
|
|
14
|
+
* auto-placement enabled. When auto-placement is disabled, you need to provide a host ID
|
|
15
|
+
* to have the instance launch onto a specific host. If no host ID is provided, the
|
|
16
|
+
* instance is launched onto a suitable host with auto-placement enabled.</p>
|
|
17
|
+
* <p>You can also use this API action to modify a Dedicated Host to support either multiple
|
|
18
|
+
* instance types in an instance family, or to support a specific instance type
|
|
19
|
+
* only.</p>
|
|
19
20
|
* @example
|
|
20
21
|
* Use a bare-bones client and the command you need to make an API call.
|
|
21
22
|
* ```javascript
|
|
@@ -29,8 +29,8 @@ export interface ModifyInstancePlacementCommandOutput extends ModifyInstancePlac
|
|
|
29
29
|
* group</a>.</p>
|
|
30
30
|
* </li>
|
|
31
31
|
* </ul>
|
|
32
|
-
* <p>At least one attribute for affinity, host ID, tenancy, or placement group name must
|
|
33
|
-
*
|
|
32
|
+
* <p>At least one attribute for affinity, host ID, tenancy, or placement group name must be
|
|
33
|
+
* specified in the request. Affinity and tenancy can be modified in the same
|
|
34
34
|
* request.</p>
|
|
35
35
|
* <p>To modify the host ID, tenancy, placement group, or partition for an instance, the
|
|
36
36
|
* instance must be in the <code>stopped</code> state.</p>
|
|
@@ -2,8 +2,7 @@ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
|
2
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
4
|
import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
|
|
5
|
-
import { ModifyVpcPeeringConnectionOptionsRequest } from "../models/
|
|
6
|
-
import { ModifyVpcPeeringConnectionOptionsResult } from "../models/models_6";
|
|
5
|
+
import { ModifyVpcPeeringConnectionOptionsRequest, ModifyVpcPeeringConnectionOptionsResult } from "../models/models_6";
|
|
7
6
|
export interface ModifyVpcPeeringConnectionOptionsCommandInput extends ModifyVpcPeeringConnectionOptionsRequest {
|
|
8
7
|
}
|
|
9
8
|
export interface ModifyVpcPeeringConnectionOptionsCommandOutput extends ModifyVpcPeeringConnectionOptionsResult, __MetadataBearer {
|
|
@@ -27,14 +27,14 @@ export interface RequestSpotFleetCommandOutput extends RequestSpotFleetResponse,
|
|
|
27
27
|
* <code>spot-fleet-request</code> and <code>instance</code> resource types are
|
|
28
28
|
* supported.</p>
|
|
29
29
|
* <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-fleet-requests.html">Spot Fleet requests</a>
|
|
30
|
-
* in the <i>Amazon EC2 User Guide
|
|
30
|
+
* in the <i>Amazon EC2 User Guide</i>.</p>
|
|
31
31
|
*
|
|
32
32
|
* <important>
|
|
33
33
|
* <p>We strongly discourage using the RequestSpotFleet API because it is a legacy
|
|
34
34
|
* API with no planned investment. For options for requesting Spot Instances, see
|
|
35
35
|
* <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-best-practices.html#which-spot-request-method-to-use">Which
|
|
36
36
|
* is the best Spot request method to use?</a> in the
|
|
37
|
-
* <i>Amazon EC2 User Guide
|
|
37
|
+
* <i>Amazon EC2 User Guide</i>.</p>
|
|
38
38
|
* </important>
|
|
39
39
|
* @example
|
|
40
40
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -19,6 +19,7 @@ export interface RequestSpotInstancesCommandOutput extends RequestSpotInstancesR
|
|
|
19
19
|
* is the best Spot request method to use?</a> in the
|
|
20
20
|
* <i>Amazon EC2 User Guide for Linux Instances</i>.</p>
|
|
21
21
|
* </important>
|
|
22
|
+
*
|
|
22
23
|
* <note>
|
|
23
24
|
* <p>We are retiring EC2-Classic. We recommend that you migrate from EC2-Classic to a VPC. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-migrate.html">Migrate from EC2-Classic to a VPC</a> in the <i>Amazon EC2 User Guide for Linux Instances</i>.</p>
|
|
24
25
|
* </note>
|
|
@@ -67,7 +67,9 @@ export interface RunInstancesCommandOutput extends Reservation, __MetadataBearer
|
|
|
67
67
|
* <p>For troubleshooting, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_InstanceStraightToTerminated.html">What to do if
|
|
68
68
|
* an instance immediately terminates</a>, and <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesConnecting.html">Troubleshooting connecting to your instance</a>.</p>
|
|
69
69
|
* <note>
|
|
70
|
-
* <p>We are retiring EC2-Classic. We recommend that you migrate from EC2-Classic to a
|
|
70
|
+
* <p>We are retiring EC2-Classic. We recommend that you migrate from EC2-Classic to a
|
|
71
|
+
* VPC. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-migrate.html">Migrate from EC2-Classic to a
|
|
72
|
+
* VPC</a> in the <i>Amazon EC2 User Guide</i>.</p>
|
|
71
73
|
* </note>
|
|
72
74
|
* @example
|
|
73
75
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -1923,11 +1923,10 @@ export declare enum HostRecovery {
|
|
|
1923
1923
|
}
|
|
1924
1924
|
export interface AllocateHostsRequest {
|
|
1925
1925
|
/**
|
|
1926
|
-
* <p>Indicates whether the host accepts any untargeted instance launches that
|
|
1927
|
-
*
|
|
1928
|
-
*
|
|
1929
|
-
*
|
|
1930
|
-
* Understanding auto-placement and affinity</a> in the <i>Amazon EC2 User Guide</i>.</p>
|
|
1926
|
+
* <p>Indicates whether the host accepts any untargeted instance launches that match its
|
|
1927
|
+
* instance type configuration, or if it only accepts Host tenancy instance launches that
|
|
1928
|
+
* specify its unique host ID. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/how-dedicated-hosts-work.html#dedicated-hosts-understanding"> Understanding auto-placement and affinity</a> in the
|
|
1929
|
+
* <i>Amazon EC2 User Guide</i>.</p>
|
|
1931
1930
|
*
|
|
1932
1931
|
* <p>Default: <code>on</code>
|
|
1933
1932
|
* </p>
|
|
@@ -1942,29 +1941,28 @@ export interface AllocateHostsRequest {
|
|
|
1942
1941
|
*/
|
|
1943
1942
|
ClientToken?: string;
|
|
1944
1943
|
/**
|
|
1945
|
-
* <p>Specifies the instance type to be supported by the Dedicated Hosts. If you
|
|
1946
|
-
*
|
|
1947
|
-
*
|
|
1944
|
+
* <p>Specifies the instance type to be supported by the Dedicated Hosts. If you specify an
|
|
1945
|
+
* instance type, the Dedicated Hosts support instances of the specified instance type
|
|
1946
|
+
* only.</p>
|
|
1948
1947
|
*
|
|
1949
|
-
*
|
|
1950
|
-
*
|
|
1951
|
-
*
|
|
1952
|
-
* <b>InstanceFamily</b> in the same request.</p>
|
|
1948
|
+
* <p>If you want the Dedicated Hosts to support multiple instance types in a specific
|
|
1949
|
+
* instance family, omit this parameter and specify <b>InstanceFamily</b> instead. You cannot specify <b>InstanceType</b> and <b>InstanceFamily</b> in the
|
|
1950
|
+
* same request.</p>
|
|
1953
1951
|
*/
|
|
1954
1952
|
InstanceType?: string;
|
|
1955
1953
|
/**
|
|
1956
1954
|
* <p>Specifies the instance family to be supported by the Dedicated Hosts. If you specify
|
|
1957
|
-
*
|
|
1958
|
-
*
|
|
1955
|
+
* an instance family, the Dedicated Hosts support multiple instance types within that
|
|
1956
|
+
* instance family.</p>
|
|
1959
1957
|
*
|
|
1960
|
-
*
|
|
1961
|
-
*
|
|
1962
|
-
*
|
|
1963
|
-
* <b>InstanceType</b> in the same request.</p>
|
|
1958
|
+
* <p>If you want the Dedicated Hosts to support a specific instance type only, omit this
|
|
1959
|
+
* parameter and specify <b>InstanceType</b> instead. You cannot
|
|
1960
|
+
* specify <b>InstanceFamily</b> and <b>InstanceType</b> in the same request.</p>
|
|
1964
1961
|
*/
|
|
1965
1962
|
InstanceFamily?: string;
|
|
1966
1963
|
/**
|
|
1967
|
-
* <p>The number of Dedicated Hosts to allocate to your account with these
|
|
1964
|
+
* <p>The number of Dedicated Hosts to allocate to your account with these
|
|
1965
|
+
* parameters.</p>
|
|
1968
1966
|
*/
|
|
1969
1967
|
Quantity: number | undefined;
|
|
1970
1968
|
/**
|
|
@@ -1972,16 +1970,16 @@ export interface AllocateHostsRequest {
|
|
|
1972
1970
|
*/
|
|
1973
1971
|
TagSpecifications?: TagSpecification[];
|
|
1974
1972
|
/**
|
|
1975
|
-
* <p>Indicates whether to enable or disable host recovery for the Dedicated Host.
|
|
1976
|
-
*
|
|
1977
|
-
*
|
|
1978
|
-
*
|
|
1979
|
-
* <p>Default: <code>off</code>
|
|
1973
|
+
* <p>Indicates whether to enable or disable host recovery for the Dedicated Host. Host
|
|
1974
|
+
* recovery is disabled by default. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-hosts-recovery.html"> Host recovery</a>
|
|
1975
|
+
* in the <i>Amazon EC2 User Guide</i>.</p>
|
|
1976
|
+
* <p>Default: <code>off</code>
|
|
1980
1977
|
* </p>
|
|
1981
1978
|
*/
|
|
1982
1979
|
HostRecovery?: HostRecovery | string;
|
|
1983
1980
|
/**
|
|
1984
|
-
* <p>The Amazon Resource Name (ARN) of the Amazon Web Services Outpost on which to allocate
|
|
1981
|
+
* <p>The Amazon Resource Name (ARN) of the Amazon Web Services Outpost on which to allocate
|
|
1982
|
+
* the Dedicated Host.</p>
|
|
1985
1983
|
*/
|
|
1986
1984
|
OutpostArn?: string;
|
|
1987
1985
|
}
|
|
@@ -1991,7 +1989,7 @@ export interface AllocateHostsRequest {
|
|
|
1991
1989
|
export interface AllocateHostsResult {
|
|
1992
1990
|
/**
|
|
1993
1991
|
* <p>The ID of the allocated Dedicated Host. This is used to launch an instance onto a
|
|
1994
|
-
*
|
|
1992
|
+
* specific host.</p>
|
|
1995
1993
|
*/
|
|
1996
1994
|
HostIds?: string[];
|
|
1997
1995
|
}
|