@aws-sdk/client-ec2 3.205.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/protocols/Aws_ec2.js +17 -0
- package/dist-es/protocols/Aws_ec2.js +17 -0
- package/dist-types/EC2.d.ts +43 -37
- 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/DescribeHostReservationOfferingsCommand.d.ts +4 -4
- 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/RunInstancesCommand.d.ts +3 -1
- package/dist-types/models/models_0.d.ts +24 -26
- package/dist-types/models/models_1.d.ts +65 -38
- package/dist-types/models/models_2.d.ts +8 -4
- package/dist-types/models/models_3.d.ts +48 -49
- package/dist-types/models/models_4.d.ts +13 -11
- package/dist-types/models/models_5.d.ts +41 -33
- package/dist-types/models/models_6.d.ts +24 -18
- package/dist-types/ts3.4/models/models_1.d.ts +3 -0
- package/dist-types/ts3.4/models/models_5.d.ts +1 -0
- package/package.json +1 -1
- package/CHANGELOG.md +0 -3664
|
@@ -35764,6 +35764,9 @@ const serializeAws_ec2LaunchTemplatePlacementRequest = (input, context) => {
|
|
|
35764
35764
|
if (input.PartitionNumber != null) {
|
|
35765
35765
|
entries["PartitionNumber"] = input.PartitionNumber;
|
|
35766
35766
|
}
|
|
35767
|
+
if (input.GroupId != null) {
|
|
35768
|
+
entries["GroupId"] = input.GroupId;
|
|
35769
|
+
}
|
|
35767
35770
|
return entries;
|
|
35768
35771
|
};
|
|
35769
35772
|
const serializeAws_ec2LaunchTemplatePrivateDnsNameOptionsRequest = (input, context) => {
|
|
@@ -36748,6 +36751,9 @@ const serializeAws_ec2ModifyInstancePlacementRequest = (input, context) => {
|
|
|
36748
36751
|
if (input.HostResourceGroupArn != null) {
|
|
36749
36752
|
entries["HostResourceGroupArn"] = input.HostResourceGroupArn;
|
|
36750
36753
|
}
|
|
36754
|
+
if (input.GroupId != null) {
|
|
36755
|
+
entries["GroupId"] = input.GroupId;
|
|
36756
|
+
}
|
|
36751
36757
|
return entries;
|
|
36752
36758
|
};
|
|
36753
36759
|
const serializeAws_ec2ModifyIpamPoolRequest = (input, context) => {
|
|
@@ -38550,6 +38556,9 @@ const serializeAws_ec2Placement = (input, context) => {
|
|
|
38550
38556
|
if (input.HostResourceGroupArn != null) {
|
|
38551
38557
|
entries["HostResourceGroupArn"] = input.HostResourceGroupArn;
|
|
38552
38558
|
}
|
|
38559
|
+
if (input.GroupId != null) {
|
|
38560
|
+
entries["GroupId"] = input.GroupId;
|
|
38561
|
+
}
|
|
38553
38562
|
return entries;
|
|
38554
38563
|
};
|
|
38555
38564
|
const serializeAws_ec2PlacementGroupIdStringList = (input, context) => {
|
|
@@ -56416,6 +56425,7 @@ const deserializeAws_ec2LaunchTemplatePlacement = (output, context) => {
|
|
|
56416
56425
|
SpreadDomain: undefined,
|
|
56417
56426
|
HostResourceGroupArn: undefined,
|
|
56418
56427
|
PartitionNumber: undefined,
|
|
56428
|
+
GroupId: undefined,
|
|
56419
56429
|
};
|
|
56420
56430
|
if (output["availabilityZone"] !== undefined) {
|
|
56421
56431
|
contents.AvailabilityZone = (0, smithy_client_1.expectString)(output["availabilityZone"]);
|
|
@@ -56441,6 +56451,9 @@ const deserializeAws_ec2LaunchTemplatePlacement = (output, context) => {
|
|
|
56441
56451
|
if (output["partitionNumber"] !== undefined) {
|
|
56442
56452
|
contents.PartitionNumber = (0, smithy_client_1.strictParseInt32)(output["partitionNumber"]);
|
|
56443
56453
|
}
|
|
56454
|
+
if (output["groupId"] !== undefined) {
|
|
56455
|
+
contents.GroupId = (0, smithy_client_1.expectString)(output["groupId"]);
|
|
56456
|
+
}
|
|
56444
56457
|
return contents;
|
|
56445
56458
|
};
|
|
56446
56459
|
const deserializeAws_ec2LaunchTemplatePrivateDnsNameOptions = (output, context) => {
|
|
@@ -58847,6 +58860,7 @@ const deserializeAws_ec2Placement = (output, context) => {
|
|
|
58847
58860
|
Tenancy: undefined,
|
|
58848
58861
|
SpreadDomain: undefined,
|
|
58849
58862
|
HostResourceGroupArn: undefined,
|
|
58863
|
+
GroupId: undefined,
|
|
58850
58864
|
};
|
|
58851
58865
|
if (output["availabilityZone"] !== undefined) {
|
|
58852
58866
|
contents.AvailabilityZone = (0, smithy_client_1.expectString)(output["availabilityZone"]);
|
|
@@ -58872,6 +58886,9 @@ const deserializeAws_ec2Placement = (output, context) => {
|
|
|
58872
58886
|
if (output["hostResourceGroupArn"] !== undefined) {
|
|
58873
58887
|
contents.HostResourceGroupArn = (0, smithy_client_1.expectString)(output["hostResourceGroupArn"]);
|
|
58874
58888
|
}
|
|
58889
|
+
if (output["groupId"] !== undefined) {
|
|
58890
|
+
contents.GroupId = (0, smithy_client_1.expectString)(output["groupId"]);
|
|
58891
|
+
}
|
|
58875
58892
|
return contents;
|
|
58876
58893
|
};
|
|
58877
58894
|
const deserializeAws_ec2PlacementGroup = (output, context) => {
|
|
@@ -34646,6 +34646,9 @@ const serializeAws_ec2LaunchTemplatePlacementRequest = (input, context) => {
|
|
|
34646
34646
|
if (input.PartitionNumber != null) {
|
|
34647
34647
|
entries["PartitionNumber"] = input.PartitionNumber;
|
|
34648
34648
|
}
|
|
34649
|
+
if (input.GroupId != null) {
|
|
34650
|
+
entries["GroupId"] = input.GroupId;
|
|
34651
|
+
}
|
|
34649
34652
|
return entries;
|
|
34650
34653
|
};
|
|
34651
34654
|
const serializeAws_ec2LaunchTemplatePrivateDnsNameOptionsRequest = (input, context) => {
|
|
@@ -35630,6 +35633,9 @@ const serializeAws_ec2ModifyInstancePlacementRequest = (input, context) => {
|
|
|
35630
35633
|
if (input.HostResourceGroupArn != null) {
|
|
35631
35634
|
entries["HostResourceGroupArn"] = input.HostResourceGroupArn;
|
|
35632
35635
|
}
|
|
35636
|
+
if (input.GroupId != null) {
|
|
35637
|
+
entries["GroupId"] = input.GroupId;
|
|
35638
|
+
}
|
|
35633
35639
|
return entries;
|
|
35634
35640
|
};
|
|
35635
35641
|
const serializeAws_ec2ModifyIpamPoolRequest = (input, context) => {
|
|
@@ -37432,6 +37438,9 @@ const serializeAws_ec2Placement = (input, context) => {
|
|
|
37432
37438
|
if (input.HostResourceGroupArn != null) {
|
|
37433
37439
|
entries["HostResourceGroupArn"] = input.HostResourceGroupArn;
|
|
37434
37440
|
}
|
|
37441
|
+
if (input.GroupId != null) {
|
|
37442
|
+
entries["GroupId"] = input.GroupId;
|
|
37443
|
+
}
|
|
37435
37444
|
return entries;
|
|
37436
37445
|
};
|
|
37437
37446
|
const serializeAws_ec2PlacementGroupIdStringList = (input, context) => {
|
|
@@ -55298,6 +55307,7 @@ const deserializeAws_ec2LaunchTemplatePlacement = (output, context) => {
|
|
|
55298
55307
|
SpreadDomain: undefined,
|
|
55299
55308
|
HostResourceGroupArn: undefined,
|
|
55300
55309
|
PartitionNumber: undefined,
|
|
55310
|
+
GroupId: undefined,
|
|
55301
55311
|
};
|
|
55302
55312
|
if (output["availabilityZone"] !== undefined) {
|
|
55303
55313
|
contents.AvailabilityZone = __expectString(output["availabilityZone"]);
|
|
@@ -55323,6 +55333,9 @@ const deserializeAws_ec2LaunchTemplatePlacement = (output, context) => {
|
|
|
55323
55333
|
if (output["partitionNumber"] !== undefined) {
|
|
55324
55334
|
contents.PartitionNumber = __strictParseInt32(output["partitionNumber"]);
|
|
55325
55335
|
}
|
|
55336
|
+
if (output["groupId"] !== undefined) {
|
|
55337
|
+
contents.GroupId = __expectString(output["groupId"]);
|
|
55338
|
+
}
|
|
55326
55339
|
return contents;
|
|
55327
55340
|
};
|
|
55328
55341
|
const deserializeAws_ec2LaunchTemplatePrivateDnsNameOptions = (output, context) => {
|
|
@@ -57729,6 +57742,7 @@ const deserializeAws_ec2Placement = (output, context) => {
|
|
|
57729
57742
|
Tenancy: undefined,
|
|
57730
57743
|
SpreadDomain: undefined,
|
|
57731
57744
|
HostResourceGroupArn: undefined,
|
|
57745
|
+
GroupId: undefined,
|
|
57732
57746
|
};
|
|
57733
57747
|
if (output["availabilityZone"] !== undefined) {
|
|
57734
57748
|
contents.AvailabilityZone = __expectString(output["availabilityZone"]);
|
|
@@ -57754,6 +57768,9 @@ const deserializeAws_ec2Placement = (output, context) => {
|
|
|
57754
57768
|
if (output["hostResourceGroupArn"] !== undefined) {
|
|
57755
57769
|
contents.HostResourceGroupArn = __expectString(output["hostResourceGroupArn"]);
|
|
57756
57770
|
}
|
|
57771
|
+
if (output["groupId"] !== undefined) {
|
|
57772
|
+
contents.GroupId = __expectString(output["groupId"]);
|
|
57773
|
+
}
|
|
57757
57774
|
return contents;
|
|
57758
57775
|
};
|
|
57759
57776
|
const deserializeAws_ec2PlacementGroup = (output, context) => {
|
package/dist-types/EC2.d.ts
CHANGED
|
@@ -665,9 +665,9 @@ export declare class EC2 extends EC2Client {
|
|
|
665
665
|
allocateAddress(args: AllocateAddressCommandInput, cb: (err: any, data?: AllocateAddressCommandOutput) => void): void;
|
|
666
666
|
allocateAddress(args: AllocateAddressCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AllocateAddressCommandOutput) => void): void;
|
|
667
667
|
/**
|
|
668
|
-
* <p>Allocates a Dedicated Host to your account. At a minimum, specify the supported
|
|
669
|
-
*
|
|
670
|
-
*
|
|
668
|
+
* <p>Allocates a Dedicated Host to your account. At a minimum, specify the supported
|
|
669
|
+
* instance type or instance family, the Availability Zone in which to allocate the host,
|
|
670
|
+
* and the number of hosts to allocate.</p>
|
|
671
671
|
*/
|
|
672
672
|
allocateHosts(args: AllocateHostsCommandInput, options?: __HttpHandlerOptions): Promise<AllocateHostsCommandOutput>;
|
|
673
673
|
allocateHosts(args: AllocateHostsCommandInput, cb: (err: any, data?: AllocateHostsCommandOutput) => void): void;
|
|
@@ -1502,11 +1502,11 @@ export declare class EC2 extends EC2Client {
|
|
|
1502
1502
|
createKeyPair(args: CreateKeyPairCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateKeyPairCommandOutput) => void): void;
|
|
1503
1503
|
/**
|
|
1504
1504
|
* <p>Creates a launch template.</p>
|
|
1505
|
-
* <p>A launch template contains the parameters to launch an
|
|
1506
|
-
* instance
|
|
1507
|
-
*
|
|
1508
|
-
*
|
|
1509
|
-
*
|
|
1505
|
+
* <p>A launch template contains the parameters to launch an instance. When you launch an
|
|
1506
|
+
* instance using <a>RunInstances</a>, you can specify a launch template instead
|
|
1507
|
+
* of providing the launch parameters in the request. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html">Launch
|
|
1508
|
+
* an instance from a launch template</a> in the
|
|
1509
|
+
* <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
|
|
1510
1510
|
* <p>If you want to clone an existing launch template as the basis for creating a new
|
|
1511
1511
|
* launch template, you can use the Amazon EC2 console. The API, SDKs, and CLI do not support
|
|
1512
1512
|
* cloning a template. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html#create-launch-template-from-existing-launch-template">Create a launch template from an existing launch template</a> in the
|
|
@@ -1520,8 +1520,9 @@ export declare class EC2 extends EC2Client {
|
|
|
1520
1520
|
* launch template from which to base the new version.</p>
|
|
1521
1521
|
* <p>Launch template versions are numbered in the order in which they are created. You
|
|
1522
1522
|
* cannot specify, change, or replace the numbering of launch template versions.</p>
|
|
1523
|
-
* <p>Launch templates are immutable; after you create a launch template, you can't modify
|
|
1524
|
-
* Instead, you can create a new version of the launch template that includes any
|
|
1523
|
+
* <p>Launch templates are immutable; after you create a launch template, you can't modify
|
|
1524
|
+
* it. Instead, you can create a new version of the launch template that includes any
|
|
1525
|
+
* changes you require.</p>
|
|
1525
1526
|
* <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html#manage-launch-template-versions">Modify a launch template (manage launch template versions)</a> in the
|
|
1526
1527
|
* <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
|
|
1527
1528
|
*/
|
|
@@ -3056,10 +3057,10 @@ export declare class EC2 extends EC2Client {
|
|
|
3056
3057
|
/**
|
|
3057
3058
|
* <p>Describes the Dedicated Host reservations that are available to purchase.</p>
|
|
3058
3059
|
* <p>The results describe all of the Dedicated Host reservation offerings, including
|
|
3059
|
-
*
|
|
3060
|
-
*
|
|
3061
|
-
*
|
|
3062
|
-
*
|
|
3060
|
+
* offerings that might not match the instance family and Region of your Dedicated Hosts.
|
|
3061
|
+
* When purchasing an offering, ensure that the instance family and Region of the offering
|
|
3062
|
+
* matches that of the Dedicated Hosts with which it is to be associated. For more
|
|
3063
|
+
* information about supported instance types, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-hosts-overview.html">Dedicated Hosts</a>
|
|
3063
3064
|
* in the <i>Amazon EC2 User Guide</i>. </p>
|
|
3064
3065
|
*/
|
|
3065
3066
|
describeHostReservationOfferings(args: DescribeHostReservationOfferingsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeHostReservationOfferingsCommandOutput>;
|
|
@@ -4570,11 +4571,11 @@ export declare class EC2 extends EC2Client {
|
|
|
4570
4571
|
getGroupsForCapacityReservation(args: GetGroupsForCapacityReservationCommandInput, cb: (err: any, data?: GetGroupsForCapacityReservationCommandOutput) => void): void;
|
|
4571
4572
|
getGroupsForCapacityReservation(args: GetGroupsForCapacityReservationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetGroupsForCapacityReservationCommandOutput) => void): void;
|
|
4572
4573
|
/**
|
|
4573
|
-
* <p>Preview a reservation purchase with configurations that match those of your
|
|
4574
|
-
*
|
|
4575
|
-
*
|
|
4576
|
-
* <p>This is a preview of the <a>PurchaseHostReservation</a> action and does
|
|
4577
|
-
*
|
|
4574
|
+
* <p>Preview a reservation purchase with configurations that match those of your Dedicated
|
|
4575
|
+
* Host. You must have active Dedicated Hosts in your account before you purchase a
|
|
4576
|
+
* reservation.</p>
|
|
4577
|
+
* <p>This is a preview of the <a>PurchaseHostReservation</a> action and does not
|
|
4578
|
+
* result in the offering being purchased.</p>
|
|
4578
4579
|
*/
|
|
4579
4580
|
getHostReservationPurchasePreview(args: GetHostReservationPurchasePreviewCommandInput, options?: __HttpHandlerOptions): Promise<GetHostReservationPurchasePreviewCommandOutput>;
|
|
4580
4581
|
getHostReservationPurchasePreview(args: GetHostReservationPurchasePreviewCommandInput, cb: (err: any, data?: GetHostReservationPurchasePreviewCommandOutput) => void): void;
|
|
@@ -4598,11 +4599,12 @@ export declare class EC2 extends EC2Client {
|
|
|
4598
4599
|
* <p>A binary representation of the UEFI variable store. Only non-volatile variables are
|
|
4599
4600
|
* stored. This is a base64 encoded and zlib compressed binary value that must be properly
|
|
4600
4601
|
* encoded.</p>
|
|
4601
|
-
* <p>When you use <a href="https://docs.aws.amazon.com/cli/latest/reference/ec2/register-image.html">register-image</a>
|
|
4602
|
-
*
|
|
4603
|
-
* parameter. You can modify the UEFI data by using the <a href="https://github.com/awslabs/python-uefivars">python-uefivars tool</a>
|
|
4604
|
-
*
|
|
4605
|
-
* inspect and modify, and then convert back into the binary format
|
|
4602
|
+
* <p>When you use <a href="https://docs.aws.amazon.com/cli/latest/reference/ec2/register-image.html">register-image</a> to create
|
|
4603
|
+
* an AMI, you can create an exact copy of your variable store by passing the UEFI data in
|
|
4604
|
+
* the <code>UefiData</code> parameter. You can modify the UEFI data by using the <a href="https://github.com/awslabs/python-uefivars">python-uefivars tool</a> on
|
|
4605
|
+
* GitHub. You can use the tool to convert the UEFI data into a human-readable format
|
|
4606
|
+
* (JSON), which you can inspect and modify, and then convert back into the binary format
|
|
4607
|
+
* to use with register-image.</p>
|
|
4606
4608
|
* <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/uefi-secure-boot.html">UEFI Secure Boot</a> in the
|
|
4607
4609
|
* <i>Amazon EC2 User Guide</i>.</p>
|
|
4608
4610
|
*/
|
|
@@ -4638,9 +4640,10 @@ export declare class EC2 extends EC2Client {
|
|
|
4638
4640
|
* create a launch template. </p>
|
|
4639
4641
|
* <p>This action calls on other describe actions to get instance information. Depending on
|
|
4640
4642
|
* your instance configuration, you may need to allow the following actions in your IAM
|
|
4641
|
-
* policy: <code>DescribeSpotInstanceRequests</code>,
|
|
4642
|
-
*
|
|
4643
|
-
* <code>
|
|
4643
|
+
* policy: <code>DescribeSpotInstanceRequests</code>,
|
|
4644
|
+
* <code>DescribeInstanceCreditSpecifications</code>, <code>DescribeVolumes</code>,
|
|
4645
|
+
* <code>DescribeInstanceAttribute</code>, and <code>DescribeElasticGpus</code>. Or,
|
|
4646
|
+
* you can allow <code>describe*</code> depending on your instance requirements.</p>
|
|
4644
4647
|
*/
|
|
4645
4648
|
getLaunchTemplateData(args: GetLaunchTemplateDataCommandInput, options?: __HttpHandlerOptions): Promise<GetLaunchTemplateDataCommandOutput>;
|
|
4646
4649
|
getLaunchTemplateData(args: GetLaunchTemplateDataCommandInput, cb: (err: any, data?: GetLaunchTemplateDataCommandOutput) => void): void;
|
|
@@ -4967,13 +4970,14 @@ export declare class EC2 extends EC2Client {
|
|
|
4967
4970
|
modifyFpgaImageAttribute(args: ModifyFpgaImageAttributeCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ModifyFpgaImageAttributeCommandOutput) => void): void;
|
|
4968
4971
|
/**
|
|
4969
4972
|
* <p>Modify the auto-placement setting of a Dedicated Host. When auto-placement is enabled,
|
|
4970
|
-
* any instances that you launch with a tenancy of <code>host</code> but without a specific
|
|
4971
|
-
*
|
|
4972
|
-
*
|
|
4973
|
-
*
|
|
4974
|
-
*
|
|
4975
|
-
*
|
|
4976
|
-
*
|
|
4973
|
+
* any instances that you launch with a tenancy of <code>host</code> but without a specific
|
|
4974
|
+
* host ID are placed onto any available Dedicated Host in your account that has
|
|
4975
|
+
* auto-placement enabled. When auto-placement is disabled, you need to provide a host ID
|
|
4976
|
+
* to have the instance launch onto a specific host. If no host ID is provided, the
|
|
4977
|
+
* instance is launched onto a suitable host with auto-placement enabled.</p>
|
|
4978
|
+
* <p>You can also use this API action to modify a Dedicated Host to support either multiple
|
|
4979
|
+
* instance types in an instance family, or to support a specific instance type
|
|
4980
|
+
* only.</p>
|
|
4977
4981
|
*/
|
|
4978
4982
|
modifyHosts(args: ModifyHostsCommandInput, options?: __HttpHandlerOptions): Promise<ModifyHostsCommandOutput>;
|
|
4979
4983
|
modifyHosts(args: ModifyHostsCommandInput, cb: (err: any, data?: ModifyHostsCommandOutput) => void): void;
|
|
@@ -5141,8 +5145,8 @@ export declare class EC2 extends EC2Client {
|
|
|
5141
5145
|
* group</a>.</p>
|
|
5142
5146
|
* </li>
|
|
5143
5147
|
* </ul>
|
|
5144
|
-
* <p>At least one attribute for affinity, host ID, tenancy, or placement group name must
|
|
5145
|
-
*
|
|
5148
|
+
* <p>At least one attribute for affinity, host ID, tenancy, or placement group name must be
|
|
5149
|
+
* specified in the request. Affinity and tenancy can be modified in the same
|
|
5146
5150
|
* request.</p>
|
|
5147
5151
|
* <p>To modify the host ID, tenancy, placement group, or partition for an instance, the
|
|
5148
5152
|
* instance must be in the <code>stopped</code> state.</p>
|
|
@@ -6167,7 +6171,9 @@ export declare class EC2 extends EC2Client {
|
|
|
6167
6171
|
* <p>For troubleshooting, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_InstanceStraightToTerminated.html">What to do if
|
|
6168
6172
|
* 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>
|
|
6169
6173
|
* <note>
|
|
6170
|
-
* <p>We are retiring EC2-Classic. We recommend that you migrate from EC2-Classic to a
|
|
6174
|
+
* <p>We are retiring EC2-Classic. We recommend that you migrate from EC2-Classic to a
|
|
6175
|
+
* VPC. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-migrate.html">Migrate from EC2-Classic to a
|
|
6176
|
+
* VPC</a> in the <i>Amazon EC2 User Guide</i>.</p>
|
|
6171
6177
|
* </note>
|
|
6172
6178
|
*/
|
|
6173
6179
|
runInstances(args: RunInstancesCommandInput, options?: __HttpHandlerOptions): Promise<RunInstancesCommandOutput>;
|
|
@@ -8,9 +8,9 @@ export interface AllocateHostsCommandInput extends AllocateHostsRequest {
|
|
|
8
8
|
export interface AllocateHostsCommandOutput extends AllocateHostsResult, __MetadataBearer {
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
|
-
* <p>Allocates a Dedicated Host to your account. At a minimum, specify the supported
|
|
12
|
-
*
|
|
13
|
-
*
|
|
11
|
+
* <p>Allocates a Dedicated Host to your account. At a minimum, specify the supported
|
|
12
|
+
* instance type or instance family, the Availability Zone in which to allocate the host,
|
|
13
|
+
* and the number of hosts to allocate.</p>
|
|
14
14
|
* @example
|
|
15
15
|
* Use a bare-bones client and the command you need to make an API call.
|
|
16
16
|
* ```javascript
|
|
@@ -9,11 +9,11 @@ export interface CreateLaunchTemplateCommandOutput extends CreateLaunchTemplateR
|
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
11
|
* <p>Creates a launch template.</p>
|
|
12
|
-
* <p>A launch template contains the parameters to launch an
|
|
13
|
-
* instance
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
12
|
+
* <p>A launch template contains the parameters to launch an instance. When you launch an
|
|
13
|
+
* instance using <a>RunInstances</a>, you can specify a launch template instead
|
|
14
|
+
* of providing the launch parameters in the request. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html">Launch
|
|
15
|
+
* an instance from a launch template</a> in the
|
|
16
|
+
* <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
|
|
17
17
|
* <p>If you want to clone an existing launch template as the basis for creating a new
|
|
18
18
|
* launch template, you can use the Amazon EC2 console. The API, SDKs, and CLI do not support
|
|
19
19
|
* cloning a template. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html#create-launch-template-from-existing-launch-template">Create a launch template from an existing launch template</a> in the
|
|
@@ -12,8 +12,9 @@ export interface CreateLaunchTemplateVersionCommandOutput extends CreateLaunchTe
|
|
|
12
12
|
* launch template from which to base the new version.</p>
|
|
13
13
|
* <p>Launch template versions are numbered in the order in which they are created. You
|
|
14
14
|
* cannot specify, change, or replace the numbering of launch template versions.</p>
|
|
15
|
-
* <p>Launch templates are immutable; after you create a launch template, you can't modify
|
|
16
|
-
* Instead, you can create a new version of the launch template that includes any
|
|
15
|
+
* <p>Launch templates are immutable; after you create a launch template, you can't modify
|
|
16
|
+
* it. Instead, you can create a new version of the launch template that includes any
|
|
17
|
+
* changes you require.</p>
|
|
17
18
|
* <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html#manage-launch-template-versions">Modify a launch template (manage launch template versions)</a> in the
|
|
18
19
|
* <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
|
|
19
20
|
* @example
|
|
@@ -10,10 +10,10 @@ export interface DescribeHostReservationOfferingsCommandOutput extends DescribeH
|
|
|
10
10
|
/**
|
|
11
11
|
* <p>Describes the Dedicated Host reservations that are available to purchase.</p>
|
|
12
12
|
* <p>The results describe all of the Dedicated Host reservation offerings, including
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
13
|
+
* offerings that might not match the instance family and Region of your Dedicated Hosts.
|
|
14
|
+
* When purchasing an offering, ensure that the instance family and Region of the offering
|
|
15
|
+
* matches that of the Dedicated Hosts with which it is to be associated. For more
|
|
16
|
+
* information about supported instance types, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-hosts-overview.html">Dedicated Hosts</a>
|
|
17
17
|
* in the <i>Amazon EC2 User Guide</i>. </p>
|
|
18
18
|
* @example
|
|
19
19
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -8,11 +8,11 @@ export interface GetHostReservationPurchasePreviewCommandInput extends GetHostRe
|
|
|
8
8
|
export interface GetHostReservationPurchasePreviewCommandOutput extends GetHostReservationPurchasePreviewResult, __MetadataBearer {
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
|
-
* <p>Preview a reservation purchase with configurations that match those of your
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* <p>This is a preview of the <a>PurchaseHostReservation</a> action and does
|
|
15
|
-
*
|
|
11
|
+
* <p>Preview a reservation purchase with configurations that match those of your Dedicated
|
|
12
|
+
* Host. You must have active Dedicated Hosts in your account before you purchase a
|
|
13
|
+
* reservation.</p>
|
|
14
|
+
* <p>This is a preview of the <a>PurchaseHostReservation</a> action and does not
|
|
15
|
+
* result in the offering being purchased.</p>
|
|
16
16
|
* @example
|
|
17
17
|
* Use a bare-bones client and the command you need to make an API call.
|
|
18
18
|
* ```javascript
|
|
@@ -11,11 +11,12 @@ export interface GetInstanceUefiDataCommandOutput extends GetInstanceUefiDataRes
|
|
|
11
11
|
* <p>A binary representation of the UEFI variable store. Only non-volatile variables are
|
|
12
12
|
* stored. This is a base64 encoded and zlib compressed binary value that must be properly
|
|
13
13
|
* encoded.</p>
|
|
14
|
-
* <p>When you use <a href="https://docs.aws.amazon.com/cli/latest/reference/ec2/register-image.html">register-image</a>
|
|
15
|
-
*
|
|
16
|
-
* parameter. You can modify the UEFI data by using the <a href="https://github.com/awslabs/python-uefivars">python-uefivars tool</a>
|
|
17
|
-
*
|
|
18
|
-
* inspect and modify, and then convert back into the binary format
|
|
14
|
+
* <p>When you use <a href="https://docs.aws.amazon.com/cli/latest/reference/ec2/register-image.html">register-image</a> to create
|
|
15
|
+
* an AMI, you can create an exact copy of your variable store by passing the UEFI data in
|
|
16
|
+
* the <code>UefiData</code> parameter. You can modify the UEFI data by using the <a href="https://github.com/awslabs/python-uefivars">python-uefivars tool</a> on
|
|
17
|
+
* GitHub. You can use the tool to convert the UEFI data into a human-readable format
|
|
18
|
+
* (JSON), which you can inspect and modify, and then convert back into the binary format
|
|
19
|
+
* to use with register-image.</p>
|
|
19
20
|
* <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/uefi-secure-boot.html">UEFI Secure Boot</a> in the
|
|
20
21
|
* <i>Amazon EC2 User Guide</i>.</p>
|
|
21
22
|
* @example
|
|
@@ -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>
|
|
@@ -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
|
}
|