@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
|
@@ -3886,30 +3886,28 @@ export interface ModifyHostsRequest {
|
|
|
3886
3886
|
*/
|
|
3887
3887
|
HostIds: string[] | undefined;
|
|
3888
3888
|
/**
|
|
3889
|
-
* <p>Indicates whether to enable or disable host recovery for the Dedicated Host. For more
|
|
3890
|
-
*
|
|
3891
|
-
*
|
|
3889
|
+
* <p>Indicates whether to enable or disable host recovery for the Dedicated Host. For more
|
|
3890
|
+
* information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-hosts-recovery.html"> Host recovery</a>
|
|
3891
|
+
* in the <i>Amazon EC2 User Guide</i>.</p>
|
|
3892
3892
|
*/
|
|
3893
3893
|
HostRecovery?: HostRecovery | string;
|
|
3894
3894
|
/**
|
|
3895
|
-
* <p>Specifies the instance type to be supported by the Dedicated Host. Specify this
|
|
3896
|
-
*
|
|
3895
|
+
* <p>Specifies the instance type to be supported by the Dedicated Host. Specify this
|
|
3896
|
+
* parameter to modify a Dedicated Host to support only a specific instance type.</p>
|
|
3897
3897
|
*
|
|
3898
|
-
*
|
|
3899
|
-
*
|
|
3900
|
-
*
|
|
3901
|
-
* <b>InstanceFamily</b> in the same request.</p>
|
|
3898
|
+
* <p>If you want to modify a Dedicated Host to support multiple instance types in its
|
|
3899
|
+
* current instance family, omit this parameter and specify <b>InstanceFamily</b> instead. You cannot specify <b>InstanceType</b> and <b>InstanceFamily</b> in the
|
|
3900
|
+
* same request.</p>
|
|
3902
3901
|
*/
|
|
3903
3902
|
InstanceType?: string;
|
|
3904
3903
|
/**
|
|
3905
|
-
* <p>Specifies the instance family to be supported by the Dedicated Host. Specify this
|
|
3906
|
-
*
|
|
3907
|
-
*
|
|
3904
|
+
* <p>Specifies the instance family to be supported by the Dedicated Host. Specify this
|
|
3905
|
+
* parameter to modify a Dedicated Host to support multiple instance types within its
|
|
3906
|
+
* current instance family.</p>
|
|
3908
3907
|
*
|
|
3909
|
-
*
|
|
3910
|
-
*
|
|
3911
|
-
*
|
|
3912
|
-
* in the same request.</p>
|
|
3908
|
+
* <p>If you want to modify a Dedicated Host to support a specific instance type only, omit
|
|
3909
|
+
* this parameter and specify <b>InstanceType</b> instead. You
|
|
3910
|
+
* cannot specify <b>InstanceFamily</b> and <b>InstanceType</b> in the same request.</p>
|
|
3913
3911
|
*/
|
|
3914
3912
|
InstanceFamily?: string;
|
|
3915
3913
|
}
|
|
@@ -3919,8 +3917,8 @@ export interface ModifyHostsResult {
|
|
|
3919
3917
|
*/
|
|
3920
3918
|
Successful?: string[];
|
|
3921
3919
|
/**
|
|
3922
|
-
* <p>The IDs of the Dedicated Hosts that could not be modified. Check whether the
|
|
3923
|
-
*
|
|
3920
|
+
* <p>The IDs of the Dedicated Hosts that could not be modified. Check whether the setting
|
|
3921
|
+
* you requested can be used.</p>
|
|
3924
3922
|
*/
|
|
3925
3923
|
Unsuccessful?: UnsuccessfulItem[];
|
|
3926
3924
|
}
|
|
@@ -4098,10 +4096,13 @@ export interface ModifyInstanceAttributeRequest {
|
|
|
4098
4096
|
/**
|
|
4099
4097
|
* <p>The name of the attribute to modify.</p>
|
|
4100
4098
|
* <important>
|
|
4101
|
-
* <p>You can modify the following attributes only: <code>disableApiTermination</code> |
|
|
4102
|
-
*
|
|
4103
|
-
*
|
|
4104
|
-
* <code>
|
|
4099
|
+
* <p>You can modify the following attributes only: <code>disableApiTermination</code> |
|
|
4100
|
+
* <code>instanceType</code> | <code>kernel</code> | <code>ramdisk</code> |
|
|
4101
|
+
* <code>instanceInitiatedShutdownBehavior</code> | <code>blockDeviceMapping</code>
|
|
4102
|
+
* | <code>userData</code> | <code>sourceDestCheck</code> | <code>groupSet</code> |
|
|
4103
|
+
* <code>ebsOptimized</code> | <code>sriovNetSupport</code> |
|
|
4104
|
+
* <code>enaSupport</code> | <code>nvmeSupport</code> | <code>disableApiStop</code>
|
|
4105
|
+
* | <code>enclaveOptions</code>
|
|
4105
4106
|
* </p>
|
|
4106
4107
|
* </important>
|
|
4107
4108
|
*/
|
|
@@ -4195,8 +4196,9 @@ export interface ModifyInstanceAttributeRequest {
|
|
|
4195
4196
|
*/
|
|
4196
4197
|
Value?: string;
|
|
4197
4198
|
/**
|
|
4198
|
-
* <p>Indicates whether an instance is enabled for stop protection.
|
|
4199
|
-
*
|
|
4199
|
+
* <p>Indicates whether an instance is enabled for stop protection. For more information,
|
|
4200
|
+
* see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Stop_Start.html#Using_StopProtection">Stop
|
|
4201
|
+
* Protection</a>.</p>
|
|
4200
4202
|
* <p></p>
|
|
4201
4203
|
*/
|
|
4202
4204
|
DisableApiStop?: AttributeBooleanValue;
|
|
@@ -4537,8 +4539,7 @@ export interface ModifyInstancePlacementRequest {
|
|
|
4537
4539
|
* groups, the instance must have a tenancy of <code>default</code>. For cluster and
|
|
4538
4540
|
* partition placement groups, the instance must have a tenancy of <code>default</code> or
|
|
4539
4541
|
* <code>dedicated</code>.</p>
|
|
4540
|
-
* <p>To remove an instance from a placement group, specify an empty string
|
|
4541
|
-
* ("").</p>
|
|
4542
|
+
* <p>To remove an instance from a placement group, specify an empty string ("").</p>
|
|
4542
4543
|
*/
|
|
4543
4544
|
GroupName?: string;
|
|
4544
4545
|
/**
|
|
@@ -4553,11 +4554,11 @@ export interface ModifyInstancePlacementRequest {
|
|
|
4553
4554
|
* <p>The tenancy for the instance.</p>
|
|
4554
4555
|
*
|
|
4555
4556
|
* <note>
|
|
4556
|
-
* <p>For T3 instances, you can't change the tenancy from <code>dedicated</code>
|
|
4557
|
-
*
|
|
4558
|
-
*
|
|
4559
|
-
*
|
|
4560
|
-
*
|
|
4557
|
+
* <p>For T3 instances, you can't change the tenancy from <code>dedicated</code> to
|
|
4558
|
+
* <code>host</code>, or from <code>host</code> to <code>dedicated</code>.
|
|
4559
|
+
* Attempting to make one of these unsupported tenancy changes results in the
|
|
4560
|
+
* <code>InvalidTenancy</code> error code.</p>
|
|
4561
|
+
* </note>
|
|
4561
4562
|
*/
|
|
4562
4563
|
Tenancy?: HostTenancy | string;
|
|
4563
4564
|
/**
|
|
@@ -4569,6 +4570,11 @@ export interface ModifyInstancePlacementRequest {
|
|
|
4569
4570
|
* <p>The ARN of the host resource group in which to place the instance.</p>
|
|
4570
4571
|
*/
|
|
4571
4572
|
HostResourceGroupArn?: string;
|
|
4573
|
+
/**
|
|
4574
|
+
* <p>The Group Id of a placement group. You must specify the Placement Group <b>Group Id</b> to launch an instance in a shared placement
|
|
4575
|
+
* group.</p>
|
|
4576
|
+
*/
|
|
4577
|
+
GroupId?: string;
|
|
4572
4578
|
}
|
|
4573
4579
|
export interface ModifyInstancePlacementResult {
|
|
4574
4580
|
/**
|
|
@@ -4758,12 +4764,14 @@ export interface ModifyLaunchTemplateRequest {
|
|
|
4758
4764
|
ClientToken?: string;
|
|
4759
4765
|
/**
|
|
4760
4766
|
* <p>The ID of the launch template.</p>
|
|
4761
|
-
* <p>You must specify either the <code>LaunchTemplateId</code> or the
|
|
4767
|
+
* <p>You must specify either the <code>LaunchTemplateId</code> or the
|
|
4768
|
+
* <code>LaunchTemplateName</code>, but not both.</p>
|
|
4762
4769
|
*/
|
|
4763
4770
|
LaunchTemplateId?: string;
|
|
4764
4771
|
/**
|
|
4765
4772
|
* <p>The name of the launch template.</p>
|
|
4766
|
-
* <p>You must specify either the <code>LaunchTemplateName</code> or the
|
|
4773
|
+
* <p>You must specify either the <code>LaunchTemplateName</code> or the
|
|
4774
|
+
* <code>LaunchTemplateId</code>, but not both.</p>
|
|
4767
4775
|
*/
|
|
4768
4776
|
LaunchTemplateName?: string;
|
|
4769
4777
|
/**
|
|
@@ -612,8 +612,8 @@ export interface PurchaseHostReservationRequest {
|
|
|
612
612
|
*/
|
|
613
613
|
ClientToken?: string;
|
|
614
614
|
/**
|
|
615
|
-
* <p>The currency in which the <code>totalUpfrontPrice</code>, <code>LimitPrice</code>,
|
|
616
|
-
*
|
|
615
|
+
* <p>The currency in which the <code>totalUpfrontPrice</code>, <code>LimitPrice</code>, and
|
|
616
|
+
* <code>totalHourlyPrice</code> amounts are specified. At this time, the only
|
|
617
617
|
* supported currency is <code>USD</code>.</p>
|
|
618
618
|
*/
|
|
619
619
|
CurrencyCode?: CurrencyCodeValues | string;
|
|
@@ -2233,10 +2233,12 @@ export interface HibernationOptionsRequest {
|
|
|
2233
2233
|
*/
|
|
2234
2234
|
export interface SpotMarketOptions {
|
|
2235
2235
|
/**
|
|
2236
|
-
* <p>The maximum hourly price that you're willing to pay for a Spot Instance. We do not
|
|
2237
|
-
* using this parameter because it can lead to increased interruptions. If you do
|
|
2236
|
+
* <p>The maximum hourly price that you're willing to pay for a Spot Instance. We do not
|
|
2237
|
+
* recommend using this parameter because it can lead to increased interruptions. If you do
|
|
2238
|
+
* not specify this parameter, you will pay the current Spot price.</p>
|
|
2238
2239
|
* <important>
|
|
2239
|
-
* <p>If you specify a maximum price, your Spot Instances will be interrupted more
|
|
2240
|
+
* <p>If you specify a maximum price, your Spot Instances will be interrupted more
|
|
2241
|
+
* frequently than if you do not specify this parameter.</p>
|
|
2240
2242
|
* </important>
|
|
2241
2243
|
*/
|
|
2242
2244
|
MaxPrice?: string;
|
|
@@ -2293,20 +2295,23 @@ export interface InstanceMarketOptionsRequest {
|
|
|
2293
2295
|
export interface LaunchTemplateSpecification {
|
|
2294
2296
|
/**
|
|
2295
2297
|
* <p>The ID of the launch template.</p>
|
|
2296
|
-
* <p>You must specify the <code>LaunchTemplateId</code> or the
|
|
2298
|
+
* <p>You must specify the <code>LaunchTemplateId</code> or the
|
|
2299
|
+
* <code>LaunchTemplateName</code>, but not both.</p>
|
|
2297
2300
|
*/
|
|
2298
2301
|
LaunchTemplateId?: string;
|
|
2299
2302
|
/**
|
|
2300
2303
|
* <p>The name of the launch template.</p>
|
|
2301
|
-
* <p>You must specify the <code>LaunchTemplateName</code> or the
|
|
2304
|
+
* <p>You must specify the <code>LaunchTemplateName</code> or the
|
|
2305
|
+
* <code>LaunchTemplateId</code>, but not both.</p>
|
|
2302
2306
|
*/
|
|
2303
2307
|
LaunchTemplateName?: string;
|
|
2304
2308
|
/**
|
|
2305
|
-
* <p>The launch template version number, <code>$Latest</code>, or
|
|
2309
|
+
* <p>The launch template version number, <code>$Latest</code>, or
|
|
2310
|
+
* <code>$Default</code>.</p>
|
|
2306
2311
|
* <p>If the value is <code>$Latest</code>, Amazon EC2 uses the latest version of the launch
|
|
2307
2312
|
* template.</p>
|
|
2308
|
-
* <p>If the value is <code>$Default</code>, Amazon EC2 uses the default version of the
|
|
2309
|
-
* template.</p>
|
|
2313
|
+
* <p>If the value is <code>$Default</code>, Amazon EC2 uses the default version of the
|
|
2314
|
+
* launch template.</p>
|
|
2310
2315
|
* <p>Default: The default version of the launch template.</p>
|
|
2311
2316
|
*/
|
|
2312
2317
|
Version?: string;
|
|
@@ -2517,8 +2522,10 @@ export interface RunInstancesRequest {
|
|
|
2517
2522
|
*/
|
|
2518
2523
|
SubnetId?: string;
|
|
2519
2524
|
/**
|
|
2520
|
-
* <p>The user data script to make available to the instance. For more information, see
|
|
2521
|
-
*
|
|
2525
|
+
* <p>The user data script to make available to the instance. For more information, see
|
|
2526
|
+
* <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html">Run
|
|
2527
|
+
* commands on your Linux instance at launch</a> and <a href="https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ec2-windows-user-data.html">Run commands on your
|
|
2528
|
+
* Windows instance at launch</a>. If you are using a command line tool,
|
|
2522
2529
|
* base64-encoding is performed for you, and you can load the text from a file. Otherwise,
|
|
2523
2530
|
* you must provide base64-encoded text. User data is limited to 16 KB.</p>
|
|
2524
2531
|
*/
|
|
@@ -2631,7 +2638,7 @@ export interface RunInstancesRequest {
|
|
|
2631
2638
|
TagSpecifications?: TagSpecification[];
|
|
2632
2639
|
/**
|
|
2633
2640
|
* <p>The launch template to use to launch the instances. Any parameters that you specify in
|
|
2634
|
-
*
|
|
2641
|
+
* <a>RunInstances</a> override the same parameters in the launch template.
|
|
2635
2642
|
* You can specify either the name or ID of a launch template, but not both.</p>
|
|
2636
2643
|
*/
|
|
2637
2644
|
LaunchTemplate?: LaunchTemplateSpecification;
|
|
@@ -2647,7 +2654,7 @@ export interface RunInstancesRequest {
|
|
|
2647
2654
|
* are <code>standard</code> and <code>unlimited</code>. To change this attribute after
|
|
2648
2655
|
* launch, use <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ModifyInstanceCreditSpecification.html">
|
|
2649
2656
|
* ModifyInstanceCreditSpecification</a>. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances.html">Burstable
|
|
2650
|
-
*
|
|
2657
|
+
* performance instances</a> in the <i>Amazon EC2 User Guide</i>.</p>
|
|
2651
2658
|
* <p>Default: <code>standard</code> (T2 instances) or <code>unlimited</code> (T3/T3a/T4g
|
|
2652
2659
|
* instances)</p>
|
|
2653
2660
|
* <p>For T3 instances with <code>host</code> tenancy, only <code>standard</code> is
|
|
@@ -2667,7 +2674,7 @@ export interface RunInstancesRequest {
|
|
|
2667
2674
|
CapacityReservationSpecification?: CapacityReservationSpecification;
|
|
2668
2675
|
/**
|
|
2669
2676
|
* <p>Indicates whether an instance is enabled for hibernation. For more information, see
|
|
2670
|
-
*
|
|
2677
|
+
* <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html">Hibernate
|
|
2671
2678
|
* your instance</a> in the <i>Amazon EC2 User Guide</i>.</p>
|
|
2672
2679
|
* <p>You can't enable hibernation and Amazon Web Services Nitro Enclaves on the same
|
|
2673
2680
|
* instance.</p>
|
|
@@ -2685,7 +2692,7 @@ export interface RunInstancesRequest {
|
|
|
2685
2692
|
* <p>Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves. For
|
|
2686
2693
|
* more information, see <a href="https://docs.aws.amazon.com/enclaves/latest/user/nitro-enclave.html"> What is Amazon Web Services Nitro
|
|
2687
2694
|
* Enclaves?</a> in the <i>Amazon Web Services Nitro Enclaves User
|
|
2688
|
-
*
|
|
2695
|
+
* Guide</i>.</p>
|
|
2689
2696
|
* <p>You can't enable Amazon Web Services Nitro Enclaves and hibernation on the same
|
|
2690
2697
|
* instance.</p>
|
|
2691
2698
|
*/
|
|
@@ -2702,8 +2709,7 @@ export interface RunInstancesRequest {
|
|
|
2702
2709
|
/**
|
|
2703
2710
|
* <p>Indicates whether an instance is enabled for stop protection. For more information,
|
|
2704
2711
|
* see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Stop_Start.html#Using_StopProtection">Stop
|
|
2705
|
-
* protection</a>.
|
|
2706
|
-
* </p>
|
|
2712
|
+
* protection</a>. </p>
|
|
2707
2713
|
*/
|
|
2708
2714
|
DisableApiStop?: boolean;
|
|
2709
2715
|
}
|
|
@@ -228,6 +228,7 @@ export interface Placement {
|
|
|
228
228
|
Tenancy?: Tenancy | string;
|
|
229
229
|
SpreadDomain?: string;
|
|
230
230
|
HostResourceGroupArn?: string;
|
|
231
|
+
GroupId?: string;
|
|
231
232
|
}
|
|
232
233
|
export interface FleetLaunchTemplateOverridesRequest {
|
|
233
234
|
InstanceType?: _InstanceType | string;
|
|
@@ -949,6 +950,7 @@ export interface LaunchTemplatePlacementRequest {
|
|
|
949
950
|
SpreadDomain?: string;
|
|
950
951
|
HostResourceGroupArn?: string;
|
|
951
952
|
PartitionNumber?: number;
|
|
953
|
+
GroupId?: string;
|
|
952
954
|
}
|
|
953
955
|
export interface LaunchTemplatePrivateDnsNameOptionsRequest {
|
|
954
956
|
HostnameType?: HostnameType | string;
|
|
@@ -1148,6 +1150,7 @@ export interface LaunchTemplatePlacement {
|
|
|
1148
1150
|
SpreadDomain?: string;
|
|
1149
1151
|
HostResourceGroupArn?: string;
|
|
1150
1152
|
PartitionNumber?: number;
|
|
1153
|
+
GroupId?: string;
|
|
1151
1154
|
}
|
|
1152
1155
|
export interface LaunchTemplatePrivateDnsNameOptions {
|
|
1153
1156
|
HostnameType?: HostnameType | string;
|
|
@@ -1387,6 +1387,7 @@ export interface ModifyInstancePlacementRequest {
|
|
|
1387
1387
|
Tenancy?: HostTenancy | string;
|
|
1388
1388
|
PartitionNumber?: number;
|
|
1389
1389
|
HostResourceGroupArn?: string;
|
|
1390
|
+
GroupId?: string;
|
|
1390
1391
|
}
|
|
1391
1392
|
export interface ModifyInstancePlacementResult {
|
|
1392
1393
|
Return?: boolean;
|
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.
|
|
4
|
+
"version": "3.206.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|