@aws-sdk/client-ec2 3.197.0 → 3.198.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/CHANGELOG.md +11 -0
- package/dist-cjs/protocols/Aws_ec2.js +18 -0
- package/dist-es/protocols/Aws_ec2.js +18 -0
- package/dist-types/EC2.d.ts +4 -3
- package/dist-types/commands/CreateReplaceRootVolumeTaskCommand.d.ts +4 -3
- package/dist-types/models/models_1.d.ts +34 -2
- package/dist-types/ts3.4/models/models_1.d.ts +5 -0
- package/package.json +30 -30
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.198.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.197.0...v3.198.0) (2022-10-27)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **client-ec2:** Feature supports the replacement of instance root volume using an updated AMI without requiring customers to stop their instance. ([c980e67](https://github.com/aws/aws-sdk-js-v3/commit/c980e67bfad3191dab93e0cf1aa9eaec6addf08b))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.197.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.196.0...v3.197.0) (2022-10-26)
|
|
7
18
|
|
|
8
19
|
|
|
@@ -24961,6 +24961,12 @@ const serializeAws_ec2CreateReplaceRootVolumeTaskRequest = (input, context) => {
|
|
|
24961
24961
|
entries[loc] = value;
|
|
24962
24962
|
});
|
|
24963
24963
|
}
|
|
24964
|
+
if (input.ImageId != null) {
|
|
24965
|
+
entries["ImageId"] = input.ImageId;
|
|
24966
|
+
}
|
|
24967
|
+
if (input.DeleteReplacedRootVolume != null) {
|
|
24968
|
+
entries["DeleteReplacedRootVolume"] = input.DeleteReplacedRootVolume;
|
|
24969
|
+
}
|
|
24964
24970
|
return entries;
|
|
24965
24971
|
};
|
|
24966
24972
|
const serializeAws_ec2CreateReservedInstancesListingRequest = (input, context) => {
|
|
@@ -57509,6 +57515,9 @@ const deserializeAws_ec2ReplaceRootVolumeTask = (output, context) => {
|
|
|
57509
57515
|
StartTime: undefined,
|
|
57510
57516
|
CompleteTime: undefined,
|
|
57511
57517
|
Tags: undefined,
|
|
57518
|
+
ImageId: undefined,
|
|
57519
|
+
SnapshotId: undefined,
|
|
57520
|
+
DeleteReplacedRootVolume: undefined,
|
|
57512
57521
|
};
|
|
57513
57522
|
if (output["replaceRootVolumeTaskId"] !== undefined) {
|
|
57514
57523
|
contents.ReplaceRootVolumeTaskId = (0, smithy_client_1.expectString)(output["replaceRootVolumeTaskId"]);
|
|
@@ -57531,6 +57540,15 @@ const deserializeAws_ec2ReplaceRootVolumeTask = (output, context) => {
|
|
|
57531
57540
|
else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) {
|
|
57532
57541
|
contents.Tags = deserializeAws_ec2TagList((0, smithy_client_1.getArrayIfSingleItem)(output["tagSet"]["item"]), context);
|
|
57533
57542
|
}
|
|
57543
|
+
if (output["imageId"] !== undefined) {
|
|
57544
|
+
contents.ImageId = (0, smithy_client_1.expectString)(output["imageId"]);
|
|
57545
|
+
}
|
|
57546
|
+
if (output["snapshotId"] !== undefined) {
|
|
57547
|
+
contents.SnapshotId = (0, smithy_client_1.expectString)(output["snapshotId"]);
|
|
57548
|
+
}
|
|
57549
|
+
if (output["deleteReplacedRootVolume"] !== undefined) {
|
|
57550
|
+
contents.DeleteReplacedRootVolume = (0, smithy_client_1.parseBoolean)(output["deleteReplacedRootVolume"]);
|
|
57551
|
+
}
|
|
57534
57552
|
return contents;
|
|
57535
57553
|
};
|
|
57536
57554
|
const deserializeAws_ec2ReplaceRootVolumeTasks = (output, context) => {
|
|
@@ -23853,6 +23853,12 @@ const serializeAws_ec2CreateReplaceRootVolumeTaskRequest = (input, context) => {
|
|
|
23853
23853
|
entries[loc] = value;
|
|
23854
23854
|
});
|
|
23855
23855
|
}
|
|
23856
|
+
if (input.ImageId != null) {
|
|
23857
|
+
entries["ImageId"] = input.ImageId;
|
|
23858
|
+
}
|
|
23859
|
+
if (input.DeleteReplacedRootVolume != null) {
|
|
23860
|
+
entries["DeleteReplacedRootVolume"] = input.DeleteReplacedRootVolume;
|
|
23861
|
+
}
|
|
23856
23862
|
return entries;
|
|
23857
23863
|
};
|
|
23858
23864
|
const serializeAws_ec2CreateReservedInstancesListingRequest = (input, context) => {
|
|
@@ -56401,6 +56407,9 @@ const deserializeAws_ec2ReplaceRootVolumeTask = (output, context) => {
|
|
|
56401
56407
|
StartTime: undefined,
|
|
56402
56408
|
CompleteTime: undefined,
|
|
56403
56409
|
Tags: undefined,
|
|
56410
|
+
ImageId: undefined,
|
|
56411
|
+
SnapshotId: undefined,
|
|
56412
|
+
DeleteReplacedRootVolume: undefined,
|
|
56404
56413
|
};
|
|
56405
56414
|
if (output["replaceRootVolumeTaskId"] !== undefined) {
|
|
56406
56415
|
contents.ReplaceRootVolumeTaskId = __expectString(output["replaceRootVolumeTaskId"]);
|
|
@@ -56423,6 +56432,15 @@ const deserializeAws_ec2ReplaceRootVolumeTask = (output, context) => {
|
|
|
56423
56432
|
else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) {
|
|
56424
56433
|
contents.Tags = deserializeAws_ec2TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context);
|
|
56425
56434
|
}
|
|
56435
|
+
if (output["imageId"] !== undefined) {
|
|
56436
|
+
contents.ImageId = __expectString(output["imageId"]);
|
|
56437
|
+
}
|
|
56438
|
+
if (output["snapshotId"] !== undefined) {
|
|
56439
|
+
contents.SnapshotId = __expectString(output["snapshotId"]);
|
|
56440
|
+
}
|
|
56441
|
+
if (output["deleteReplacedRootVolume"] !== undefined) {
|
|
56442
|
+
contents.DeleteReplacedRootVolume = __parseBoolean(output["deleteReplacedRootVolume"]);
|
|
56443
|
+
}
|
|
56426
56444
|
return contents;
|
|
56427
56445
|
};
|
|
56428
56446
|
const deserializeAws_ec2ReplaceRootVolumeTasks = (output, context) => {
|
package/dist-types/EC2.d.ts
CHANGED
|
@@ -1652,9 +1652,10 @@ export declare class EC2 extends EC2Client {
|
|
|
1652
1652
|
createPublicIpv4Pool(args: CreatePublicIpv4PoolCommandInput, cb: (err: any, data?: CreatePublicIpv4PoolCommandOutput) => void): void;
|
|
1653
1653
|
createPublicIpv4Pool(args: CreatePublicIpv4PoolCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreatePublicIpv4PoolCommandOutput) => void): void;
|
|
1654
1654
|
/**
|
|
1655
|
-
* <p>
|
|
1656
|
-
*
|
|
1657
|
-
* specific snapshot
|
|
1655
|
+
* <p>Replaces the EBS-backed root volume for a <code>running</code> instance with a new
|
|
1656
|
+
* volume that is restored to the original root volume's launch state, that is restored to a
|
|
1657
|
+
* specific snapshot taken from the original root volume, or that is restored from an AMI
|
|
1658
|
+
* that has the same key characteristics as that of the instance.</p>
|
|
1658
1659
|
*
|
|
1659
1660
|
* <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-restoring-volume.html#replace-root">Replace a root volume</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
|
|
1660
1661
|
*/
|
|
@@ -8,9 +8,10 @@ export interface CreateReplaceRootVolumeTaskCommandInput extends CreateReplaceRo
|
|
|
8
8
|
export interface CreateReplaceRootVolumeTaskCommandOutput extends CreateReplaceRootVolumeTaskResult, __MetadataBearer {
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
|
-
* <p>
|
|
12
|
-
*
|
|
13
|
-
* specific snapshot
|
|
11
|
+
* <p>Replaces the EBS-backed root volume for a <code>running</code> instance with a new
|
|
12
|
+
* volume that is restored to the original root volume's launch state, that is restored to a
|
|
13
|
+
* specific snapshot taken from the original root volume, or that is restored from an AMI
|
|
14
|
+
* that has the same key characteristics as that of the instance.</p>
|
|
14
15
|
*
|
|
15
16
|
* <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-restoring-volume.html#replace-root">Replace a root volume</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
|
|
16
17
|
* @example
|
|
@@ -6196,8 +6196,12 @@ export interface CreateReplaceRootVolumeTaskRequest {
|
|
|
6196
6196
|
*/
|
|
6197
6197
|
InstanceId: string | undefined;
|
|
6198
6198
|
/**
|
|
6199
|
-
* <p>The ID of the snapshot from which to restore the replacement root volume.
|
|
6200
|
-
*
|
|
6199
|
+
* <p>The ID of the snapshot from which to restore the replacement root volume. The
|
|
6200
|
+
* specified snapshot must be a snapshot that you previously created from the original
|
|
6201
|
+
* root volume.</p>
|
|
6202
|
+
* <p>If you want to restore the replacement root volume to the initial launch state,
|
|
6203
|
+
* or if you want to restore the replacement root volume from an AMI, omit this
|
|
6204
|
+
* parameter.</p>
|
|
6201
6205
|
*/
|
|
6202
6206
|
SnapshotId?: string;
|
|
6203
6207
|
/**
|
|
@@ -6216,6 +6220,21 @@ export interface CreateReplaceRootVolumeTaskRequest {
|
|
|
6216
6220
|
* <p>The tags to apply to the root volume replacement task.</p>
|
|
6217
6221
|
*/
|
|
6218
6222
|
TagSpecifications?: TagSpecification[];
|
|
6223
|
+
/**
|
|
6224
|
+
* <p>The ID of the AMI to use to restore the root volume. The specified AMI must have the
|
|
6225
|
+
* same product code, billing information, architecture type, and virtualization type as
|
|
6226
|
+
* that of the instance.</p>
|
|
6227
|
+
* <p>If you want to restore the replacement volume from a specific snapshot, or if you want
|
|
6228
|
+
* to restore it to its launch state, omit this parameter.</p>
|
|
6229
|
+
*/
|
|
6230
|
+
ImageId?: string;
|
|
6231
|
+
/**
|
|
6232
|
+
* <p>Indicates whether to automatically delete the original root volume after the root volume
|
|
6233
|
+
* replacement task completes. To delete the original root volume, specify <code>true</code>.
|
|
6234
|
+
* If you choose to keep the original root volume after the replacement task completes, you must
|
|
6235
|
+
* manually delete it when you no longer need it.</p>
|
|
6236
|
+
*/
|
|
6237
|
+
DeleteReplacedRootVolume?: boolean;
|
|
6219
6238
|
}
|
|
6220
6239
|
export declare enum ReplaceRootVolumeTaskState {
|
|
6221
6240
|
failed = "failed",
|
|
@@ -6288,6 +6307,19 @@ export interface ReplaceRootVolumeTask {
|
|
|
6288
6307
|
* <p>The tags assigned to the task.</p>
|
|
6289
6308
|
*/
|
|
6290
6309
|
Tags?: Tag[];
|
|
6310
|
+
/**
|
|
6311
|
+
* <p>The ID of the AMI used to create the replacement root volume.</p>
|
|
6312
|
+
*/
|
|
6313
|
+
ImageId?: string;
|
|
6314
|
+
/**
|
|
6315
|
+
* <p>The ID of the snapshot used to create the replacement root volume.</p>
|
|
6316
|
+
*/
|
|
6317
|
+
SnapshotId?: string;
|
|
6318
|
+
/**
|
|
6319
|
+
* <p>Indicates whether the original root volume is to be deleted after the root volume
|
|
6320
|
+
* replacement task completes.</p>
|
|
6321
|
+
*/
|
|
6322
|
+
DeleteReplacedRootVolume?: boolean;
|
|
6291
6323
|
}
|
|
6292
6324
|
export interface CreateReplaceRootVolumeTaskResult {
|
|
6293
6325
|
/**
|
|
@@ -1626,6 +1626,8 @@ export interface CreateReplaceRootVolumeTaskRequest {
|
|
|
1626
1626
|
ClientToken?: string;
|
|
1627
1627
|
DryRun?: boolean;
|
|
1628
1628
|
TagSpecifications?: TagSpecification[];
|
|
1629
|
+
ImageId?: string;
|
|
1630
|
+
DeleteReplacedRootVolume?: boolean;
|
|
1629
1631
|
}
|
|
1630
1632
|
export declare enum ReplaceRootVolumeTaskState {
|
|
1631
1633
|
failed = "failed",
|
|
@@ -1642,6 +1644,9 @@ export interface ReplaceRootVolumeTask {
|
|
|
1642
1644
|
StartTime?: string;
|
|
1643
1645
|
CompleteTime?: string;
|
|
1644
1646
|
Tags?: Tag[];
|
|
1647
|
+
ImageId?: string;
|
|
1648
|
+
SnapshotId?: string;
|
|
1649
|
+
DeleteReplacedRootVolume?: boolean;
|
|
1645
1650
|
}
|
|
1646
1651
|
export interface CreateReplaceRootVolumeTaskResult {
|
|
1647
1652
|
ReplaceRootVolumeTask?: ReplaceRootVolumeTask;
|
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.198.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",
|
|
@@ -19,41 +19,41 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
21
21
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
22
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
-
"@aws-sdk/config-resolver": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
26
|
-
"@aws-sdk/hash-node": "3.
|
|
27
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
28
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
29
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
30
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
31
|
-
"@aws-sdk/middleware-logger": "3.
|
|
32
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
33
|
-
"@aws-sdk/middleware-retry": "3.
|
|
34
|
-
"@aws-sdk/middleware-sdk-ec2": "3.
|
|
35
|
-
"@aws-sdk/middleware-serde": "3.
|
|
36
|
-
"@aws-sdk/middleware-signing": "3.
|
|
37
|
-
"@aws-sdk/middleware-stack": "3.
|
|
38
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
39
|
-
"@aws-sdk/node-config-provider": "3.
|
|
40
|
-
"@aws-sdk/node-http-handler": "3.
|
|
41
|
-
"@aws-sdk/protocol-http": "3.
|
|
42
|
-
"@aws-sdk/smithy-client": "3.
|
|
43
|
-
"@aws-sdk/types": "3.
|
|
44
|
-
"@aws-sdk/url-parser": "3.
|
|
22
|
+
"@aws-sdk/client-sts": "3.198.0",
|
|
23
|
+
"@aws-sdk/config-resolver": "3.198.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.198.0",
|
|
25
|
+
"@aws-sdk/fetch-http-handler": "3.198.0",
|
|
26
|
+
"@aws-sdk/hash-node": "3.198.0",
|
|
27
|
+
"@aws-sdk/invalid-dependency": "3.198.0",
|
|
28
|
+
"@aws-sdk/middleware-content-length": "3.198.0",
|
|
29
|
+
"@aws-sdk/middleware-endpoint": "3.198.0",
|
|
30
|
+
"@aws-sdk/middleware-host-header": "3.198.0",
|
|
31
|
+
"@aws-sdk/middleware-logger": "3.198.0",
|
|
32
|
+
"@aws-sdk/middleware-recursion-detection": "3.198.0",
|
|
33
|
+
"@aws-sdk/middleware-retry": "3.198.0",
|
|
34
|
+
"@aws-sdk/middleware-sdk-ec2": "3.198.0",
|
|
35
|
+
"@aws-sdk/middleware-serde": "3.198.0",
|
|
36
|
+
"@aws-sdk/middleware-signing": "3.198.0",
|
|
37
|
+
"@aws-sdk/middleware-stack": "3.198.0",
|
|
38
|
+
"@aws-sdk/middleware-user-agent": "3.198.0",
|
|
39
|
+
"@aws-sdk/node-config-provider": "3.198.0",
|
|
40
|
+
"@aws-sdk/node-http-handler": "3.198.0",
|
|
41
|
+
"@aws-sdk/protocol-http": "3.198.0",
|
|
42
|
+
"@aws-sdk/smithy-client": "3.198.0",
|
|
43
|
+
"@aws-sdk/types": "3.198.0",
|
|
44
|
+
"@aws-sdk/url-parser": "3.198.0",
|
|
45
45
|
"@aws-sdk/util-base64-browser": "3.188.0",
|
|
46
46
|
"@aws-sdk/util-base64-node": "3.188.0",
|
|
47
47
|
"@aws-sdk/util-body-length-browser": "3.188.0",
|
|
48
48
|
"@aws-sdk/util-body-length-node": "3.188.0",
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
51
|
-
"@aws-sdk/util-endpoints": "3.
|
|
52
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
53
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.198.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.198.0",
|
|
51
|
+
"@aws-sdk/util-endpoints": "3.198.0",
|
|
52
|
+
"@aws-sdk/util-user-agent-browser": "3.198.0",
|
|
53
|
+
"@aws-sdk/util-user-agent-node": "3.198.0",
|
|
54
54
|
"@aws-sdk/util-utf8-browser": "3.188.0",
|
|
55
55
|
"@aws-sdk/util-utf8-node": "3.188.0",
|
|
56
|
-
"@aws-sdk/util-waiter": "3.
|
|
56
|
+
"@aws-sdk/util-waiter": "3.198.0",
|
|
57
57
|
"fast-xml-parser": "4.0.11",
|
|
58
58
|
"tslib": "^2.3.1",
|
|
59
59
|
"uuid": "^8.3.2"
|