@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.
Files changed (68) hide show
  1. package/dist-cjs/commands/CreateSubnetCidrReservationCommand.js +2 -1
  2. package/dist-cjs/commands/DeregisterTransitGatewayMulticastGroupMembersCommand.js +1 -2
  3. package/dist-cjs/commands/DescribeLaunchTemplatesCommand.js +3 -3
  4. package/dist-cjs/commands/DisassociateTransitGatewayRouteTableCommand.js +2 -1
  5. package/dist-cjs/commands/DisassociateTrunkInterfaceCommand.js +1 -2
  6. package/dist-cjs/commands/ModifyVpcPeeringConnectionOptionsCommand.js +1 -2
  7. package/dist-cjs/models/models_1.js +13 -13
  8. package/dist-cjs/models/models_2.js +14 -14
  9. package/dist-cjs/models/models_3.js +13 -13
  10. package/dist-cjs/models/models_4.js +14 -14
  11. package/dist-cjs/models/models_5.js +14 -14
  12. package/dist-cjs/models/models_6.js +12 -4
  13. package/dist-cjs/protocols/Aws_ec2.js +114 -0
  14. package/dist-es/commands/CreateSubnetCidrReservationCommand.js +2 -1
  15. package/dist-es/commands/DeregisterTransitGatewayMulticastGroupMembersCommand.js +1 -2
  16. package/dist-es/commands/DescribeLaunchTemplatesCommand.js +1 -1
  17. package/dist-es/commands/DisassociateTransitGatewayRouteTableCommand.js +2 -1
  18. package/dist-es/commands/DisassociateTrunkInterfaceCommand.js +1 -2
  19. package/dist-es/commands/ModifyVpcPeeringConnectionOptionsCommand.js +1 -2
  20. package/dist-es/models/models_1.js +6 -6
  21. package/dist-es/models/models_2.js +6 -6
  22. package/dist-es/models/models_3.js +6 -6
  23. package/dist-es/models/models_4.js +6 -6
  24. package/dist-es/models/models_5.js +6 -6
  25. package/dist-es/models/models_6.js +6 -0
  26. package/dist-es/protocols/Aws_ec2.js +114 -0
  27. package/dist-types/EC2.d.ts +51 -44
  28. package/dist-types/commands/AllocateHostsCommand.d.ts +3 -3
  29. package/dist-types/commands/CreateLaunchTemplateCommand.d.ts +5 -5
  30. package/dist-types/commands/CreateLaunchTemplateVersionCommand.d.ts +3 -2
  31. package/dist-types/commands/CreateSpotDatafeedSubscriptionCommand.d.ts +3 -3
  32. package/dist-types/commands/CreateSubnetCidrReservationCommand.d.ts +2 -1
  33. package/dist-types/commands/DeregisterTransitGatewayMulticastGroupMembersCommand.d.ts +1 -2
  34. package/dist-types/commands/DescribeHostReservationOfferingsCommand.d.ts +4 -4
  35. package/dist-types/commands/DescribeLaunchTemplatesCommand.d.ts +1 -1
  36. package/dist-types/commands/DescribeSpotDatafeedSubscriptionCommand.d.ts +1 -1
  37. package/dist-types/commands/DescribeSpotFleetRequestHistoryCommand.d.ts +1 -1
  38. package/dist-types/commands/DisassociateTransitGatewayRouteTableCommand.d.ts +2 -1
  39. package/dist-types/commands/DisassociateTrunkInterfaceCommand.d.ts +1 -2
  40. package/dist-types/commands/GetHostReservationPurchasePreviewCommand.d.ts +5 -5
  41. package/dist-types/commands/GetInstanceUefiDataCommand.d.ts +6 -5
  42. package/dist-types/commands/GetLaunchTemplateDataCommand.d.ts +4 -3
  43. package/dist-types/commands/ModifyHostsCommand.d.ts +8 -7
  44. package/dist-types/commands/ModifyInstancePlacementCommand.d.ts +2 -2
  45. package/dist-types/commands/ModifyVpcPeeringConnectionOptionsCommand.d.ts +1 -2
  46. package/dist-types/commands/RequestSpotFleetCommand.d.ts +2 -2
  47. package/dist-types/commands/RequestSpotInstancesCommand.d.ts +1 -0
  48. package/dist-types/commands/RunInstancesCommand.d.ts +3 -1
  49. package/dist-types/models/models_0.d.ts +24 -26
  50. package/dist-types/models/models_1.d.ts +201 -94
  51. package/dist-types/models/models_2.d.ts +58 -49
  52. package/dist-types/models/models_3.d.ts +95 -120
  53. package/dist-types/models/models_4.d.ts +96 -57
  54. package/dist-types/models/models_5.d.ts +75 -86
  55. package/dist-types/models/models_6.d.ts +77 -20
  56. package/dist-types/ts3.4/commands/CreateSubnetCidrReservationCommand.d.ts +2 -4
  57. package/dist-types/ts3.4/commands/DeregisterTransitGatewayMulticastGroupMembersCommand.d.ts +4 -2
  58. package/dist-types/ts3.4/commands/DescribeLaunchTemplatesCommand.d.ts +1 -1
  59. package/dist-types/ts3.4/commands/DisassociateTransitGatewayRouteTableCommand.d.ts +2 -4
  60. package/dist-types/ts3.4/commands/DisassociateTrunkInterfaceCommand.d.ts +4 -2
  61. package/dist-types/ts3.4/commands/ModifyVpcPeeringConnectionOptionsCommand.d.ts +4 -2
  62. package/dist-types/ts3.4/models/models_1.d.ts +21 -18
  63. package/dist-types/ts3.4/models/models_2.d.ts +19 -18
  64. package/dist-types/ts3.4/models/models_3.d.ts +18 -24
  65. package/dist-types/ts3.4/models/models_4.d.ts +19 -15
  66. package/dist-types/ts3.4/models/models_5.d.ts +17 -18
  67. package/dist-types/ts3.4/models/models_6.d.ts +18 -1
  68. 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>, <code>DescribeInstanceCreditSpecifications</code>,
16
- * <code>DescribeVolumes</code>, <code>DescribeInstanceAttribute</code>, and <code>DescribeElasticGpus</code>. Or, you can allow
17
- * <code>describe*</code> depending on your instance requirements.</p>
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 host
13
- * ID are placed onto any available Dedicated Host in your account that has auto-placement enabled.
14
- * When auto-placement is disabled, you need to provide a host ID to have the instance launch onto
15
- * a specific host. If no host ID is provided, the instance is launched onto a suitable host with
16
- * 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 only.</p>
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
- * be specified in the request. Affinity and tenancy can be modified in the same
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/models_5";
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 for Linux Instances</i>.</p>
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 for Linux Instances</i>.</p>
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 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</i>.</p>
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
- * match its instance type configuration, or if it only accepts Host tenancy
1928
- * instance launches that specify its unique host ID. For more information,
1929
- * see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/how-dedicated-hosts-work.html#dedicated-hosts-understanding">
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
- * specify an instance type, the Dedicated Hosts support instances of the
1947
- * specified instance type only.</p>
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
- * <p>If you want the Dedicated Hosts to support multiple instance types in a specific
1950
- * instance family, omit this parameter and specify <b>InstanceFamily</b>
1951
- * instead. You cannot specify <b>InstanceType</b> and
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
- * an instance family, the Dedicated Hosts support multiple instance types within that
1958
- * instance family.</p>
1955
+ * an instance family, the Dedicated Hosts support multiple instance types within that
1956
+ * instance family.</p>
1959
1957
  *
1960
- * <p>If you want the Dedicated Hosts to support a specific instance type only, omit this
1961
- * parameter and specify <b>InstanceType</b>
1962
- * instead. You cannot specify <b>InstanceFamily</b> and
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 parameters.</p>
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
- * Host recovery is disabled by default. For more information, see
1977
- * <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-hosts-recovery.html">
1978
- * Host recovery</a> in the <i>Amazon EC2 User Guide</i>.</p>
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 the Dedicated Host.</p>
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
- * specific host.</p>
1992
+ * specific host.</p>
1995
1993
  */
1996
1994
  HostIds?: string[];
1997
1995
  }