@aws-sdk/client-ec2 3.75.0 → 3.76.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/models/models_6.js +2 -0
- package/dist-cjs/waiters/index.js +1 -0
- package/dist-cjs/waiters/waitForNatGatewayDeleted.js +47 -0
- package/dist-es/models/models_6.js +2 -1
- package/dist-es/waiters/index.js +1 -0
- package/dist-es/waiters/waitForNatGatewayDeleted.js +73 -0
- package/dist-types/EC2.d.ts +16 -0
- package/dist-types/commands/RequestSpotFleetCommand.d.ts +8 -0
- package/dist-types/commands/RequestSpotInstancesCommand.d.ts +8 -0
- package/dist-types/models/models_1.d.ts +8 -1
- package/dist-types/models/models_3.d.ts +6 -2
- package/dist-types/models/models_4.d.ts +5 -5
- package/dist-types/models/models_5.d.ts +12 -6
- package/dist-types/ts3.4/waiters/index.d.ts +1 -0
- package/dist-types/ts3.4/waiters/waitForNatGatewayDeleted.d.ts +7 -0
- package/dist-types/waiters/index.d.ts +1 -0
- package/dist-types/waiters/waitForNatGatewayDeleted.d.ts +14 -0
- package/package.json +4 -4
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.76.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.75.0...v3.76.0) (2022-04-22)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **client-ec2:** Adds support for waiters that automatically poll for a deleted NAT Gateway until it reaches the deleted state. ([047c131](https://github.com/aws/aws-sdk-js-v3/commit/047c13158e4f43b53dd1525e028888907026a278))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.75.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.74.0...v3.75.0) (2022-04-21)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @aws-sdk/client-ec2
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SearchLocalGatewayRoutesRequest = exports.RunScheduledInstancesResult = exports.RunScheduledInstancesRequest = exports.ScheduledInstancesLaunchSpecification = exports.ScheduledInstancesPlacement = exports.ScheduledInstancesNetworkInterface = exports.ScheduledInstancesPrivateIpAddressConfig = exports.ScheduledInstancesIpv6Address = exports.ScheduledInstancesMonitoring = exports.ScheduledInstancesIamInstanceProfile = exports.ScheduledInstancesBlockDeviceMapping = exports.ScheduledInstancesEbs = exports.RunInstancesRequest = exports.PrivateDnsNameOptionsRequest = exports.InstanceMetadataOptionsRequest = exports.InstanceMaintenanceOptionsRequest = exports.LicenseConfigurationRequest = exports.LaunchTemplateSpecification = exports.InstanceMarketOptionsRequest = exports.SpotMarketOptions = exports.HibernationOptionsRequest = exports.EnclaveOptionsRequest = exports.ElasticInferenceAccelerator = exports.CpuOptionsRequest = exports.RevokeSecurityGroupIngressResult = exports.RevokeSecurityGroupIngressRequest = exports.RevokeSecurityGroupEgressResult = exports.RevokeSecurityGroupEgressRequest = exports.RevokeClientVpnIngressResult = exports.RevokeClientVpnIngressRequest = exports.RestoreSnapshotTierResult = exports.RestoreSnapshotTierRequest = exports.RestoreSnapshotFromRecycleBinResult = exports.RestoreSnapshotFromRecycleBinRequest = exports.RestoreManagedPrefixListVersionResult = exports.RestoreManagedPrefixListVersionRequest = exports.RestoreImageFromRecycleBinResult = exports.RestoreImageFromRecycleBinRequest = exports.RestoreAddressToClassicResult = exports.RestoreAddressToClassicRequest = exports.ResetSnapshotAttributeRequest = exports.ResetNetworkInterfaceAttributeRequest = exports.ResetInstanceAttributeRequest = exports.ResetImageAttributeRequest = exports.ResetFpgaImageAttributeResult = exports.ResetFpgaImageAttributeRequest = exports.ResetEbsDefaultKmsKeyIdResult = exports.ResetEbsDefaultKmsKeyIdRequest = exports.ResetAddressAttributeResult = exports.ResetAddressAttributeRequest = void 0;
|
|
4
4
|
exports.WithdrawByoipCidrResult = exports.WithdrawByoipCidrRequest = exports.UpdateSecurityGroupRuleDescriptionsIngressResult = exports.UpdateSecurityGroupRuleDescriptionsIngressRequest = exports.UpdateSecurityGroupRuleDescriptionsEgressResult = exports.UpdateSecurityGroupRuleDescriptionsEgressRequest = exports.SecurityGroupRuleDescription = exports.UnmonitorInstancesResult = exports.UnmonitorInstancesRequest = exports.UnassignPrivateIpAddressesRequest = exports.UnassignIpv6AddressesResult = exports.UnassignIpv6AddressesRequest = exports.TerminateInstancesResult = exports.TerminateInstancesRequest = exports.TerminateClientVpnConnectionsResult = exports.TerminateConnectionStatus = exports.TerminateClientVpnConnectionsRequest = exports.StopInstancesResult = exports.StopInstancesRequest = exports.StartVpcEndpointServicePrivateDnsVerificationResult = exports.StartVpcEndpointServicePrivateDnsVerificationRequest = exports.StartNetworkInsightsAnalysisResult = exports.StartNetworkInsightsAnalysisRequest = exports.StartNetworkInsightsAccessScopeAnalysisResult = exports.StartNetworkInsightsAccessScopeAnalysisRequest = exports.StartInstancesResult = exports.InstanceStateChange = exports.StartInstancesRequest = exports.SendDiagnosticInterruptRequest = exports.SearchTransitGatewayRoutesResult = exports.SearchTransitGatewayRoutesRequest = exports.SearchTransitGatewayMulticastGroupsResult = exports.TransitGatewayMulticastGroup = exports.SearchTransitGatewayMulticastGroupsRequest = exports.SearchLocalGatewayRoutesResult = void 0;
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
5
6
|
var ResetAddressAttributeRequest;
|
|
6
7
|
(function (ResetAddressAttributeRequest) {
|
|
7
8
|
ResetAddressAttributeRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -228,6 +229,7 @@ var RunInstancesRequest;
|
|
|
228
229
|
(function (RunInstancesRequest) {
|
|
229
230
|
RunInstancesRequest.filterSensitiveLog = (obj) => ({
|
|
230
231
|
...obj,
|
|
232
|
+
...(obj.UserData && { UserData: smithy_client_1.SENSITIVE_STRING }),
|
|
231
233
|
});
|
|
232
234
|
})(RunInstancesRequest = exports.RunInstancesRequest || (exports.RunInstancesRequest = {}));
|
|
233
235
|
var ScheduledInstancesEbs;
|
|
@@ -18,6 +18,7 @@ tslib_1.__exportStar(require("./waitForInstanceTerminated"), exports);
|
|
|
18
18
|
tslib_1.__exportStar(require("./waitForInternetGatewayExists"), exports);
|
|
19
19
|
tslib_1.__exportStar(require("./waitForKeyPairExists"), exports);
|
|
20
20
|
tslib_1.__exportStar(require("./waitForNatGatewayAvailable"), exports);
|
|
21
|
+
tslib_1.__exportStar(require("./waitForNatGatewayDeleted"), exports);
|
|
21
22
|
tslib_1.__exportStar(require("./waitForNetworkInterfaceAvailable"), exports);
|
|
22
23
|
tslib_1.__exportStar(require("./waitForSecurityGroupExists"), exports);
|
|
23
24
|
tslib_1.__exportStar(require("./waitForSnapshotCompleted"), exports);
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.waitUntilNatGatewayDeleted = exports.waitForNatGatewayDeleted = void 0;
|
|
4
|
+
const util_waiter_1 = require("@aws-sdk/util-waiter");
|
|
5
|
+
const DescribeNatGatewaysCommand_1 = require("../commands/DescribeNatGatewaysCommand");
|
|
6
|
+
const checkState = async (client, input) => {
|
|
7
|
+
let reason;
|
|
8
|
+
try {
|
|
9
|
+
const result = await client.send(new DescribeNatGatewaysCommand_1.DescribeNatGatewaysCommand(input));
|
|
10
|
+
reason = result;
|
|
11
|
+
try {
|
|
12
|
+
const returnComparator = () => {
|
|
13
|
+
const flat_1 = [].concat(...result.NatGateways);
|
|
14
|
+
const projection_3 = flat_1.map((element_2) => {
|
|
15
|
+
return element_2.State;
|
|
16
|
+
});
|
|
17
|
+
return projection_3;
|
|
18
|
+
};
|
|
19
|
+
let allStringEq_5 = returnComparator().length > 0;
|
|
20
|
+
for (const element_4 of returnComparator()) {
|
|
21
|
+
allStringEq_5 = allStringEq_5 && element_4 == "deleted";
|
|
22
|
+
}
|
|
23
|
+
if (allStringEq_5) {
|
|
24
|
+
return { state: util_waiter_1.WaiterState.SUCCESS, reason };
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
catch (e) { }
|
|
28
|
+
}
|
|
29
|
+
catch (exception) {
|
|
30
|
+
reason = exception;
|
|
31
|
+
if (exception.name && exception.name == "NatGatewayNotFound") {
|
|
32
|
+
return { state: util_waiter_1.WaiterState.SUCCESS, reason };
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return { state: util_waiter_1.WaiterState.RETRY, reason };
|
|
36
|
+
};
|
|
37
|
+
const waitForNatGatewayDeleted = async (params, input) => {
|
|
38
|
+
const serviceDefaults = { minDelay: 15, maxDelay: 120 };
|
|
39
|
+
return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
40
|
+
};
|
|
41
|
+
exports.waitForNatGatewayDeleted = waitForNatGatewayDeleted;
|
|
42
|
+
const waitUntilNatGatewayDeleted = async (params, input) => {
|
|
43
|
+
const serviceDefaults = { minDelay: 15, maxDelay: 120 };
|
|
44
|
+
const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
45
|
+
return (0, util_waiter_1.checkExceptions)(result);
|
|
46
|
+
};
|
|
47
|
+
exports.waitUntilNatGatewayDeleted = waitUntilNatGatewayDeleted;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { __assign } from "tslib";
|
|
2
|
+
import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
|
|
2
3
|
export var ResetAddressAttributeRequest;
|
|
3
4
|
(function (ResetAddressAttributeRequest) {
|
|
4
5
|
ResetAddressAttributeRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -149,7 +150,7 @@ export var PrivateDnsNameOptionsRequest;
|
|
|
149
150
|
})(PrivateDnsNameOptionsRequest || (PrivateDnsNameOptionsRequest = {}));
|
|
150
151
|
export var RunInstancesRequest;
|
|
151
152
|
(function (RunInstancesRequest) {
|
|
152
|
-
RunInstancesRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
153
|
+
RunInstancesRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.UserData && { UserData: SENSITIVE_STRING }))); };
|
|
153
154
|
})(RunInstancesRequest || (RunInstancesRequest = {}));
|
|
154
155
|
export var ScheduledInstancesEbs;
|
|
155
156
|
(function (ScheduledInstancesEbs) {
|
package/dist-es/waiters/index.js
CHANGED
|
@@ -15,6 +15,7 @@ export * from "./waitForInstanceTerminated";
|
|
|
15
15
|
export * from "./waitForInternetGatewayExists";
|
|
16
16
|
export * from "./waitForKeyPairExists";
|
|
17
17
|
export * from "./waitForNatGatewayAvailable";
|
|
18
|
+
export * from "./waitForNatGatewayDeleted";
|
|
18
19
|
export * from "./waitForNetworkInterfaceAvailable";
|
|
19
20
|
export * from "./waitForSecurityGroupExists";
|
|
20
21
|
export * from "./waitForSnapshotCompleted";
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { __assign, __awaiter, __generator, __read, __spreadArray, __values } from "tslib";
|
|
2
|
+
import { checkExceptions, createWaiter, WaiterState } from "@aws-sdk/util-waiter";
|
|
3
|
+
import { DescribeNatGatewaysCommand } from "../commands/DescribeNatGatewaysCommand";
|
|
4
|
+
var checkState = function (client, input) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5
|
+
var reason, result_1, returnComparator, allStringEq_5, _a, _b, element_4, exception_1;
|
|
6
|
+
var e_1, _c;
|
|
7
|
+
return __generator(this, function (_d) {
|
|
8
|
+
switch (_d.label) {
|
|
9
|
+
case 0:
|
|
10
|
+
_d.trys.push([0, 2, , 3]);
|
|
11
|
+
return [4, client.send(new DescribeNatGatewaysCommand(input))];
|
|
12
|
+
case 1:
|
|
13
|
+
result_1 = _d.sent();
|
|
14
|
+
reason = result_1;
|
|
15
|
+
try {
|
|
16
|
+
returnComparator = function () {
|
|
17
|
+
var flat_1 = [].concat.apply([], __spreadArray([], __read(result_1.NatGateways), false));
|
|
18
|
+
var projection_3 = flat_1.map(function (element_2) {
|
|
19
|
+
return element_2.State;
|
|
20
|
+
});
|
|
21
|
+
return projection_3;
|
|
22
|
+
};
|
|
23
|
+
allStringEq_5 = returnComparator().length > 0;
|
|
24
|
+
try {
|
|
25
|
+
for (_a = __values(returnComparator()), _b = _a.next(); !_b.done; _b = _a.next()) {
|
|
26
|
+
element_4 = _b.value;
|
|
27
|
+
allStringEq_5 = allStringEq_5 && element_4 == "deleted";
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
31
|
+
finally {
|
|
32
|
+
try {
|
|
33
|
+
if (_b && !_b.done && (_c = _a.return)) _c.call(_a);
|
|
34
|
+
}
|
|
35
|
+
finally { if (e_1) throw e_1.error; }
|
|
36
|
+
}
|
|
37
|
+
if (allStringEq_5) {
|
|
38
|
+
return [2, { state: WaiterState.SUCCESS, reason: reason }];
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
catch (e) { }
|
|
42
|
+
return [3, 3];
|
|
43
|
+
case 2:
|
|
44
|
+
exception_1 = _d.sent();
|
|
45
|
+
reason = exception_1;
|
|
46
|
+
if (exception_1.name && exception_1.name == "NatGatewayNotFound") {
|
|
47
|
+
return [2, { state: WaiterState.SUCCESS, reason: reason }];
|
|
48
|
+
}
|
|
49
|
+
return [3, 3];
|
|
50
|
+
case 3: return [2, { state: WaiterState.RETRY, reason: reason }];
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
}); };
|
|
54
|
+
export var waitForNatGatewayDeleted = function (params, input) { return __awaiter(void 0, void 0, void 0, function () {
|
|
55
|
+
var serviceDefaults;
|
|
56
|
+
return __generator(this, function (_a) {
|
|
57
|
+
serviceDefaults = { minDelay: 15, maxDelay: 120 };
|
|
58
|
+
return [2, createWaiter(__assign(__assign({}, serviceDefaults), params), input, checkState)];
|
|
59
|
+
});
|
|
60
|
+
}); };
|
|
61
|
+
export var waitUntilNatGatewayDeleted = function (params, input) { return __awaiter(void 0, void 0, void 0, function () {
|
|
62
|
+
var serviceDefaults, result;
|
|
63
|
+
return __generator(this, function (_a) {
|
|
64
|
+
switch (_a.label) {
|
|
65
|
+
case 0:
|
|
66
|
+
serviceDefaults = { minDelay: 15, maxDelay: 120 };
|
|
67
|
+
return [4, createWaiter(__assign(__assign({}, serviceDefaults), params), input, checkState)];
|
|
68
|
+
case 1:
|
|
69
|
+
result = _a.sent();
|
|
70
|
+
return [2, checkExceptions(result)];
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
}); };
|
package/dist-types/EC2.d.ts
CHANGED
|
@@ -5616,6 +5616,14 @@ export declare class EC2 extends EC2Client {
|
|
|
5616
5616
|
* supported.</p>
|
|
5617
5617
|
* <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-fleet-requests.html">Spot Fleet requests</a>
|
|
5618
5618
|
* in the <i>Amazon EC2 User Guide for Linux Instances</i>.</p>
|
|
5619
|
+
*
|
|
5620
|
+
* <important>
|
|
5621
|
+
* <p>We strongly discourage using the RequestSpotFleet API because it is a legacy
|
|
5622
|
+
* API with no planned investment. For options for requesting Spot Instances, see
|
|
5623
|
+
* <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-best-practices.html#which-spot-request-method-to-use">Which
|
|
5624
|
+
* is the best Spot request method to use?</a> in the
|
|
5625
|
+
* <i>Amazon EC2 User Guide for Linux Instances</i>.</p>
|
|
5626
|
+
* </important>
|
|
5619
5627
|
*/
|
|
5620
5628
|
requestSpotFleet(args: RequestSpotFleetCommandInput, options?: __HttpHandlerOptions): Promise<RequestSpotFleetCommandOutput>;
|
|
5621
5629
|
requestSpotFleet(args: RequestSpotFleetCommandInput, cb: (err: any, data?: RequestSpotFleetCommandOutput) => void): void;
|
|
@@ -5624,6 +5632,14 @@ export declare class EC2 extends EC2Client {
|
|
|
5624
5632
|
* <p>Creates a Spot Instance request.</p>
|
|
5625
5633
|
* <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-requests.html">Spot Instance requests</a> in
|
|
5626
5634
|
* the <i>Amazon EC2 User Guide for Linux Instances</i>.</p>
|
|
5635
|
+
*
|
|
5636
|
+
* <important>
|
|
5637
|
+
* <p>We strongly discourage using the RequestSpotInstances API because it is a legacy
|
|
5638
|
+
* API with no planned investment. For options for requesting Spot Instances, see
|
|
5639
|
+
* <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-best-practices.html#which-spot-request-method-to-use">Which
|
|
5640
|
+
* is the best Spot request method to use?</a> in the
|
|
5641
|
+
* <i>Amazon EC2 User Guide for Linux Instances</i>.</p>
|
|
5642
|
+
* </important>
|
|
5627
5643
|
*/
|
|
5628
5644
|
requestSpotInstances(args: RequestSpotInstancesCommandInput, options?: __HttpHandlerOptions): Promise<RequestSpotInstancesCommandOutput>;
|
|
5629
5645
|
requestSpotInstances(args: RequestSpotInstancesCommandInput, cb: (err: any, data?: RequestSpotInstancesCommandOutput) => void): void;
|
|
@@ -27,6 +27,14 @@ export interface RequestSpotFleetCommandOutput extends RequestSpotFleetResponse,
|
|
|
27
27
|
* supported.</p>
|
|
28
28
|
* <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-fleet-requests.html">Spot Fleet requests</a>
|
|
29
29
|
* in the <i>Amazon EC2 User Guide for Linux Instances</i>.</p>
|
|
30
|
+
*
|
|
31
|
+
* <important>
|
|
32
|
+
* <p>We strongly discourage using the RequestSpotFleet API because it is a legacy
|
|
33
|
+
* API with no planned investment. For options for requesting Spot Instances, see
|
|
34
|
+
* <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-best-practices.html#which-spot-request-method-to-use">Which
|
|
35
|
+
* is the best Spot request method to use?</a> in the
|
|
36
|
+
* <i>Amazon EC2 User Guide for Linux Instances</i>.</p>
|
|
37
|
+
* </important>
|
|
30
38
|
* @example
|
|
31
39
|
* Use a bare-bones client and the command you need to make an API call.
|
|
32
40
|
* ```javascript
|
|
@@ -10,6 +10,14 @@ export interface RequestSpotInstancesCommandOutput extends RequestSpotInstancesR
|
|
|
10
10
|
* <p>Creates a Spot Instance request.</p>
|
|
11
11
|
* <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-requests.html">Spot Instance requests</a> in
|
|
12
12
|
* the <i>Amazon EC2 User Guide for Linux Instances</i>.</p>
|
|
13
|
+
*
|
|
14
|
+
* <important>
|
|
15
|
+
* <p>We strongly discourage using the RequestSpotInstances API because it is a legacy
|
|
16
|
+
* API with no planned investment. For options for requesting Spot Instances, see
|
|
17
|
+
* <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-best-practices.html#which-spot-request-method-to-use">Which
|
|
18
|
+
* is the best Spot request method to use?</a> in the
|
|
19
|
+
* <i>Amazon EC2 User Guide for Linux Instances</i>.</p>
|
|
20
|
+
* </important>
|
|
13
21
|
* @example
|
|
14
22
|
* Use a bare-bones client and the command you need to make an API call.
|
|
15
23
|
* ```javascript
|
|
@@ -2902,7 +2902,14 @@ export declare namespace CreateKeyPairRequest {
|
|
|
2902
2902
|
*/
|
|
2903
2903
|
export interface KeyPair {
|
|
2904
2904
|
/**
|
|
2905
|
-
* <
|
|
2905
|
+
* <ul>
|
|
2906
|
+
* <li>
|
|
2907
|
+
* <p>For RSA key pairs, the key fingerprint is the SHA-1 digest of the DER encoded private key.</p>
|
|
2908
|
+
* </li>
|
|
2909
|
+
* <li>
|
|
2910
|
+
* <p>For ED25519 key pairs, the key fingerprint is the base64-encoded SHA-256 digest, which is the default for OpenSSH, starting with OpenSSH 6.8.</p>
|
|
2911
|
+
* </li>
|
|
2912
|
+
* </ul>
|
|
2906
2913
|
*/
|
|
2907
2914
|
KeyFingerprint?: string;
|
|
2908
2915
|
/**
|
|
@@ -4495,6 +4495,11 @@ export interface DescribeInstancesRequest {
|
|
|
4495
4495
|
* </li>
|
|
4496
4496
|
* <li>
|
|
4497
4497
|
* <p>
|
|
4498
|
+
* <code>capacity-reservation-id</code> - The ID of the Capacity Reservation into which the
|
|
4499
|
+
* instance was launched.</p>
|
|
4500
|
+
* </li>
|
|
4501
|
+
* <li>
|
|
4502
|
+
* <p>
|
|
4498
4503
|
* <code>client-token</code> - The idempotency token you provided when you launched
|
|
4499
4504
|
* the instance.</p>
|
|
4500
4505
|
* </li>
|
|
@@ -7393,8 +7398,7 @@ export interface KeyPairInfo {
|
|
|
7393
7398
|
* <p>If you used <a>CreateKeyPair</a> to create the key pair:</p>
|
|
7394
7399
|
* <ul>
|
|
7395
7400
|
* <li>
|
|
7396
|
-
* <p>For RSA key pairs, the key fingerprint is the SHA-1 digest of the DER encoded private key
|
|
7397
|
-
* </p>
|
|
7401
|
+
* <p>For RSA key pairs, the key fingerprint is the SHA-1 digest of the DER encoded private key.</p>
|
|
7398
7402
|
* </li>
|
|
7399
7403
|
* <li>
|
|
7400
7404
|
* <p>For ED25519 key pairs, the key fingerprint is the base64-encoded SHA-256 digest, which
|
|
@@ -3256,7 +3256,7 @@ export interface DescribeSpotInstanceRequestsRequest {
|
|
|
3256
3256
|
* <code>state</code> - The state of the Spot Instance request (<code>open</code>
|
|
3257
3257
|
* | <code>active</code> | <code>closed</code> | <code>cancelled</code> |
|
|
3258
3258
|
* <code>failed</code>). Spot request status information can help you track
|
|
3259
|
-
* your Amazon EC2 Spot Instance requests. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-
|
|
3259
|
+
* your Amazon EC2 Spot Instance requests. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-request-status.html">Spot
|
|
3260
3260
|
* request status</a> in the <i>Amazon EC2 User Guide for Linux Instances</i>.</p>
|
|
3261
3261
|
* </li>
|
|
3262
3262
|
* <li>
|
|
@@ -3374,7 +3374,7 @@ export interface LaunchSpecification {
|
|
|
3374
3374
|
*/
|
|
3375
3375
|
ImageId?: string;
|
|
3376
3376
|
/**
|
|
3377
|
-
* <p>The instance type.</p>
|
|
3377
|
+
* <p>The instance type. Only one instance type can be specified.</p>
|
|
3378
3378
|
*/
|
|
3379
3379
|
InstanceType?: _InstanceType | string;
|
|
3380
3380
|
/**
|
|
@@ -3419,7 +3419,7 @@ export declare type SpotInstanceState = "active" | "cancelled" | "closed" | "fai
|
|
|
3419
3419
|
*/
|
|
3420
3420
|
export interface SpotInstanceStatus {
|
|
3421
3421
|
/**
|
|
3422
|
-
* <p>The status code. For a list of status codes, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-
|
|
3422
|
+
* <p>The status code. For a list of status codes, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-request-status.html#spot-instance-request-status-understand">Spot request status codes</a> in the <i>Amazon EC2 User Guide for Linux Instances</i>.</p>
|
|
3423
3423
|
*/
|
|
3424
3424
|
Code?: string;
|
|
3425
3425
|
/**
|
|
@@ -3491,8 +3491,8 @@ export interface SpotInstanceRequest {
|
|
|
3491
3491
|
*/
|
|
3492
3492
|
SpotPrice?: string;
|
|
3493
3493
|
/**
|
|
3494
|
-
* <p>The state of the Spot Instance request. Spot status information helps track your Spot
|
|
3495
|
-
* Instance requests. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-
|
|
3494
|
+
* <p>The state of the Spot Instance request. Spot request status information helps track your Spot
|
|
3495
|
+
* Instance requests. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-request-status.html">Spot request status</a> in the
|
|
3496
3496
|
* <i>Amazon EC2 User Guide for Linux Instances</i>.</p>
|
|
3497
3497
|
*/
|
|
3498
3498
|
State?: SpotInstanceState | string;
|
|
@@ -2362,7 +2362,14 @@ export declare namespace ImportKeyPairRequest {
|
|
|
2362
2362
|
}
|
|
2363
2363
|
export interface ImportKeyPairResult {
|
|
2364
2364
|
/**
|
|
2365
|
-
* <
|
|
2365
|
+
* <ul>
|
|
2366
|
+
* <li>
|
|
2367
|
+
* <p>For RSA key pairs, the key fingerprint is the MD5 public key fingerprint as specified in section 4 of RFC 4716.</p>
|
|
2368
|
+
* </li>
|
|
2369
|
+
* <li>
|
|
2370
|
+
* <p>For ED25519 key pairs, the key fingerprint is the base64-encoded SHA-256 digest, which is the default for OpenSSH, starting with <a href="http://www.openssh.com/txt/release-6.8">OpenSSH 6.8</a>.</p>
|
|
2371
|
+
* </li>
|
|
2372
|
+
* </ul>
|
|
2366
2373
|
*/
|
|
2367
2374
|
KeyFingerprint?: string;
|
|
2368
2375
|
/**
|
|
@@ -4911,10 +4918,9 @@ export interface ModifySubnetAttributeRequest {
|
|
|
4911
4918
|
*/
|
|
4912
4919
|
EnableDns64?: AttributeBooleanValue;
|
|
4913
4920
|
/**
|
|
4914
|
-
* <p>The type of
|
|
4915
|
-
* instance DNS name
|
|
4916
|
-
* DNS name must be based on the instance ID
|
|
4917
|
-
* names use the instance IPv4 address or the instance ID.</p>
|
|
4921
|
+
* <p>The type of hostname to assign to instances in the subnet at launch. For IPv4-only and dual-stack (IPv4 and IPv6) subnets, an
|
|
4922
|
+
* instance DNS name can be based on the instance IPv4 address (ip-name) or the instance ID (resource-name). For IPv6 only subnets, an instance
|
|
4923
|
+
* DNS name must be based on the instance ID (resource-name).</p>
|
|
4918
4924
|
*/
|
|
4919
4925
|
PrivateDnsHostnameTypeOnLaunch?: HostnameType | string;
|
|
4920
4926
|
/**
|
|
@@ -7693,7 +7699,7 @@ export interface RequestSpotLaunchSpecification {
|
|
|
7693
7699
|
*/
|
|
7694
7700
|
ImageId?: string;
|
|
7695
7701
|
/**
|
|
7696
|
-
* <p>The instance type.</p>
|
|
7702
|
+
* <p>The instance type. Only one instance type can be specified.</p>
|
|
7697
7703
|
*/
|
|
7698
7704
|
InstanceType?: _InstanceType | string;
|
|
7699
7705
|
/**
|
|
@@ -15,6 +15,7 @@ export * from "./waitForInstanceTerminated";
|
|
|
15
15
|
export * from "./waitForInternetGatewayExists";
|
|
16
16
|
export * from "./waitForKeyPairExists";
|
|
17
17
|
export * from "./waitForNatGatewayAvailable";
|
|
18
|
+
export * from "./waitForNatGatewayDeleted";
|
|
18
19
|
export * from "./waitForNetworkInterfaceAvailable";
|
|
19
20
|
export * from "./waitForSecurityGroupExists";
|
|
20
21
|
export * from "./waitForSnapshotCompleted";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { WaiterConfiguration, WaiterResult } from "@aws-sdk/util-waiter";
|
|
2
|
+
import { DescribeNatGatewaysCommandInput } from "../commands/DescribeNatGatewaysCommand";
|
|
3
|
+
import { EC2Client } from "../EC2Client";
|
|
4
|
+
|
|
5
|
+
export declare const waitForNatGatewayDeleted: (params: WaiterConfiguration<EC2Client>, input: DescribeNatGatewaysCommandInput) => Promise<WaiterResult>;
|
|
6
|
+
|
|
7
|
+
export declare const waitUntilNatGatewayDeleted: (params: WaiterConfiguration<EC2Client>, input: DescribeNatGatewaysCommandInput) => Promise<WaiterResult>;
|
|
@@ -15,6 +15,7 @@ export * from "./waitForInstanceTerminated";
|
|
|
15
15
|
export * from "./waitForInternetGatewayExists";
|
|
16
16
|
export * from "./waitForKeyPairExists";
|
|
17
17
|
export * from "./waitForNatGatewayAvailable";
|
|
18
|
+
export * from "./waitForNatGatewayDeleted";
|
|
18
19
|
export * from "./waitForNetworkInterfaceAvailable";
|
|
19
20
|
export * from "./waitForSecurityGroupExists";
|
|
20
21
|
export * from "./waitForSnapshotCompleted";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { WaiterConfiguration, WaiterResult } from "@aws-sdk/util-waiter";
|
|
2
|
+
import { DescribeNatGatewaysCommandInput } from "../commands/DescribeNatGatewaysCommand";
|
|
3
|
+
import { EC2Client } from "../EC2Client";
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* @deprecated Use waitUntilNatGatewayDeleted instead. waitForNatGatewayDeleted does not throw error in non-success cases.
|
|
7
|
+
*/
|
|
8
|
+
export declare const waitForNatGatewayDeleted: (params: WaiterConfiguration<EC2Client>, input: DescribeNatGatewaysCommandInput) => Promise<WaiterResult>;
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
* @param params - Waiter configuration options.
|
|
12
|
+
* @param input - The input to DescribeNatGatewaysCommand for polling.
|
|
13
|
+
*/
|
|
14
|
+
export declare const waitUntilNatGatewayDeleted: (params: WaiterConfiguration<EC2Client>, input: DescribeNatGatewaysCommandInput) => Promise<WaiterResult>;
|
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.76.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",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.76.0",
|
|
22
22
|
"@aws-sdk/config-resolver": "3.75.0",
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.76.0",
|
|
24
24
|
"@aws-sdk/fetch-http-handler": "3.58.0",
|
|
25
25
|
"@aws-sdk/hash-node": "3.55.0",
|
|
26
26
|
"@aws-sdk/invalid-dependency": "3.55.0",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@aws-sdk/middleware-stack": "3.55.0",
|
|
35
35
|
"@aws-sdk/middleware-user-agent": "3.58.0",
|
|
36
36
|
"@aws-sdk/node-config-provider": "3.75.0",
|
|
37
|
-
"@aws-sdk/node-http-handler": "3.
|
|
37
|
+
"@aws-sdk/node-http-handler": "3.76.0",
|
|
38
38
|
"@aws-sdk/protocol-http": "3.58.0",
|
|
39
39
|
"@aws-sdk/smithy-client": "3.72.0",
|
|
40
40
|
"@aws-sdk/types": "3.55.0",
|