@aws-sdk/client-ec2 3.1037.0 → 3.1038.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/index.js +17 -17
- package/dist-es/waiters/waitForImageAvailable.js +1 -1
- package/dist-es/waiters/waitForImageExists.js +2 -2
- package/dist-es/waiters/waitForInstanceExists.js +2 -2
- package/dist-es/waiters/waitForInstanceRunning.js +2 -2
- package/dist-es/waiters/waitForInstanceStatusOk.js +1 -1
- package/dist-es/waiters/waitForInstanceStopped.js +1 -1
- package/dist-es/waiters/waitForInstanceTerminated.js +1 -1
- package/dist-es/waiters/waitForInternetGatewayExists.js +1 -1
- package/dist-es/waiters/waitForKeyPairExists.js +2 -2
- package/dist-es/waiters/waitForNatGatewayAvailable.js +1 -1
- package/dist-es/waiters/waitForNatGatewayDeleted.js +1 -1
- package/dist-es/waiters/waitForNetworkInterfaceAvailable.js +1 -1
- package/dist-es/waiters/waitForPasswordDataAvailable.js +1 -1
- package/dist-es/waiters/waitForSecondaryNetworkCreateComplete.js +1 -1
- package/dist-es/waiters/waitForSecondarySubnetCreateComplete.js +1 -1
- package/dist-es/waiters/waitForSecurityGroupExists.js +1 -1
- package/dist-es/waiters/waitForSnapshotCompleted.js +1 -1
- package/dist-es/waiters/waitForSpotInstanceRequestFulfilled.js +1 -1
- package/dist-es/waiters/waitForSubnetAvailable.js +1 -1
- package/dist-es/waiters/waitForVolumeAvailable.js +1 -1
- package/dist-es/waiters/waitForVolumeDeleted.js +2 -2
- package/dist-es/waiters/waitForVolumeInUse.js +1 -1
- package/dist-es/waiters/waitForVpcAvailable.js +1 -1
- package/dist-es/waiters/waitForVpcExists.js +2 -2
- package/dist-es/waiters/waitForVpcPeeringConnectionDeleted.js +1 -1
- package/dist-es/waiters/waitForVpcPeeringConnectionExists.js +1 -1
- package/dist-types/EC2.d.ts +44 -43
- package/dist-types/ts3.4/EC2.d.ts +50 -43
- package/dist-types/ts3.4/waiters/waitForBundleTaskComplete.d.ts +9 -3
- package/dist-types/ts3.4/waiters/waitForConversionTaskCancelled.d.ts +9 -3
- package/dist-types/ts3.4/waiters/waitForConversionTaskCompleted.d.ts +9 -3
- package/dist-types/ts3.4/waiters/waitForConversionTaskDeleted.d.ts +9 -3
- package/dist-types/ts3.4/waiters/waitForCustomerGatewayAvailable.d.ts +9 -3
- package/dist-types/ts3.4/waiters/waitForExportTaskCancelled.d.ts +9 -3
- package/dist-types/ts3.4/waiters/waitForExportTaskCompleted.d.ts +9 -3
- package/dist-types/ts3.4/waiters/waitForImageAvailable.d.ts +7 -3
- package/dist-types/ts3.4/waiters/waitForImageExists.d.ts +7 -3
- package/dist-types/ts3.4/waiters/waitForImageUsageReportAvailable.d.ts +9 -3
- package/dist-types/ts3.4/waiters/waitForInstanceExists.d.ts +9 -3
- package/dist-types/ts3.4/waiters/waitForInstanceRunning.d.ts +9 -3
- package/dist-types/ts3.4/waiters/waitForInstanceStatusOk.d.ts +9 -3
- package/dist-types/ts3.4/waiters/waitForInstanceStopped.d.ts +9 -3
- package/dist-types/ts3.4/waiters/waitForInstanceTerminated.d.ts +9 -3
- package/dist-types/ts3.4/waiters/waitForInternetGatewayExists.d.ts +9 -3
- package/dist-types/ts3.4/waiters/waitForKeyPairExists.d.ts +7 -3
- package/dist-types/ts3.4/waiters/waitForNatGatewayAvailable.d.ts +9 -3
- package/dist-types/ts3.4/waiters/waitForNatGatewayDeleted.d.ts +11 -3
- package/dist-types/ts3.4/waiters/waitForNetworkInterfaceAvailable.d.ts +9 -3
- package/dist-types/ts3.4/waiters/waitForPasswordDataAvailable.d.ts +7 -3
- package/dist-types/ts3.4/waiters/waitForSecondaryNetworkCreateComplete.d.ts +9 -3
- package/dist-types/ts3.4/waiters/waitForSecondaryNetworkDeleteComplete.d.ts +9 -3
- package/dist-types/ts3.4/waiters/waitForSecondarySubnetCreateComplete.d.ts +9 -3
- package/dist-types/ts3.4/waiters/waitForSecondarySubnetDeleteComplete.d.ts +9 -3
- package/dist-types/ts3.4/waiters/waitForSecurityGroupExists.d.ts +9 -3
- package/dist-types/ts3.4/waiters/waitForSecurityGroupVpcAssociationAssociated.d.ts +11 -3
- package/dist-types/ts3.4/waiters/waitForSecurityGroupVpcAssociationDisassociated.d.ts +11 -3
- package/dist-types/ts3.4/waiters/waitForSnapshotCompleted.d.ts +9 -3
- package/dist-types/ts3.4/waiters/waitForSnapshotImported.d.ts +9 -3
- package/dist-types/ts3.4/waiters/waitForSpotInstanceRequestFulfilled.d.ts +9 -3
- package/dist-types/ts3.4/waiters/waitForStoreImageTaskComplete.d.ts +9 -3
- package/dist-types/ts3.4/waiters/waitForSubnetAvailable.d.ts +7 -3
- package/dist-types/ts3.4/waiters/waitForSystemStatusOk.d.ts +9 -3
- package/dist-types/ts3.4/waiters/waitForVolumeAvailable.d.ts +7 -3
- package/dist-types/ts3.4/waiters/waitForVolumeDeleted.d.ts +7 -3
- package/dist-types/ts3.4/waiters/waitForVolumeInUse.d.ts +7 -3
- package/dist-types/ts3.4/waiters/waitForVpcAvailable.d.ts +7 -3
- package/dist-types/ts3.4/waiters/waitForVpcExists.d.ts +7 -3
- package/dist-types/ts3.4/waiters/waitForVpcPeeringConnectionDeleted.d.ts +11 -3
- package/dist-types/ts3.4/waiters/waitForVpcPeeringConnectionExists.d.ts +9 -3
- package/dist-types/ts3.4/waiters/waitForVpnConnectionAvailable.d.ts +9 -3
- package/dist-types/ts3.4/waiters/waitForVpnConnectionDeleted.d.ts +9 -3
- package/dist-types/waiters/waitForBundleTaskComplete.d.ts +4 -3
- package/dist-types/waiters/waitForConversionTaskCancelled.d.ts +4 -3
- package/dist-types/waiters/waitForConversionTaskCompleted.d.ts +4 -3
- package/dist-types/waiters/waitForConversionTaskDeleted.d.ts +4 -3
- package/dist-types/waiters/waitForCustomerGatewayAvailable.d.ts +4 -3
- package/dist-types/waiters/waitForExportTaskCancelled.d.ts +4 -3
- package/dist-types/waiters/waitForExportTaskCompleted.d.ts +4 -3
- package/dist-types/waiters/waitForImageAvailable.d.ts +4 -3
- package/dist-types/waiters/waitForImageExists.d.ts +4 -3
- package/dist-types/waiters/waitForImageUsageReportAvailable.d.ts +4 -3
- package/dist-types/waiters/waitForInstanceExists.d.ts +4 -3
- package/dist-types/waiters/waitForInstanceRunning.d.ts +4 -3
- package/dist-types/waiters/waitForInstanceStatusOk.d.ts +4 -3
- package/dist-types/waiters/waitForInstanceStopped.d.ts +4 -3
- package/dist-types/waiters/waitForInstanceTerminated.d.ts +4 -3
- package/dist-types/waiters/waitForInternetGatewayExists.d.ts +4 -3
- package/dist-types/waiters/waitForKeyPairExists.d.ts +4 -3
- package/dist-types/waiters/waitForNatGatewayAvailable.d.ts +4 -3
- package/dist-types/waiters/waitForNatGatewayDeleted.d.ts +4 -3
- package/dist-types/waiters/waitForNetworkInterfaceAvailable.d.ts +4 -3
- package/dist-types/waiters/waitForPasswordDataAvailable.d.ts +4 -3
- package/dist-types/waiters/waitForSecondaryNetworkCreateComplete.d.ts +4 -3
- package/dist-types/waiters/waitForSecondaryNetworkDeleteComplete.d.ts +4 -3
- package/dist-types/waiters/waitForSecondarySubnetCreateComplete.d.ts +4 -3
- package/dist-types/waiters/waitForSecondarySubnetDeleteComplete.d.ts +4 -3
- package/dist-types/waiters/waitForSecurityGroupExists.d.ts +4 -3
- package/dist-types/waiters/waitForSecurityGroupVpcAssociationAssociated.d.ts +4 -3
- package/dist-types/waiters/waitForSecurityGroupVpcAssociationDisassociated.d.ts +4 -3
- package/dist-types/waiters/waitForSnapshotCompleted.d.ts +4 -3
- package/dist-types/waiters/waitForSnapshotImported.d.ts +4 -3
- package/dist-types/waiters/waitForSpotInstanceRequestFulfilled.d.ts +4 -3
- package/dist-types/waiters/waitForStoreImageTaskComplete.d.ts +4 -3
- package/dist-types/waiters/waitForSubnetAvailable.d.ts +4 -3
- package/dist-types/waiters/waitForSystemStatusOk.d.ts +4 -3
- package/dist-types/waiters/waitForVolumeAvailable.d.ts +4 -3
- package/dist-types/waiters/waitForVolumeDeleted.d.ts +4 -3
- package/dist-types/waiters/waitForVolumeInUse.d.ts +4 -3
- package/dist-types/waiters/waitForVpcAvailable.d.ts +4 -3
- package/dist-types/waiters/waitForVpcExists.d.ts +4 -3
- package/dist-types/waiters/waitForVpcPeeringConnectionDeleted.d.ts +4 -3
- package/dist-types/waiters/waitForVpcPeeringConnectionExists.d.ts +4 -3
- package/dist-types/waiters/waitForVpnConnectionAvailable.d.ts +4 -3
- package/dist-types/waiters/waitForVpnConnectionDeleted.d.ts +4 -3
- package/package.json +8 -8
package/dist-cjs/index.js
CHANGED
|
@@ -10021,7 +10021,7 @@ const checkState$y = async (client, input) => {
|
|
|
10021
10021
|
}
|
|
10022
10022
|
catch (exception) {
|
|
10023
10023
|
reason = exception;
|
|
10024
|
-
if (exception.name
|
|
10024
|
+
if (exception.name === "InvalidAMIID.NotFound") {
|
|
10025
10025
|
return { state: utilWaiter.WaiterState.RETRY, reason };
|
|
10026
10026
|
}
|
|
10027
10027
|
}
|
|
@@ -10108,7 +10108,7 @@ const checkState$w = async (client, input) => {
|
|
|
10108
10108
|
}
|
|
10109
10109
|
catch (exception) {
|
|
10110
10110
|
reason = exception;
|
|
10111
|
-
if (exception.name
|
|
10111
|
+
if (exception.name === "InvalidInstanceID.NotFound") {
|
|
10112
10112
|
return { state: utilWaiter.WaiterState.RETRY, reason };
|
|
10113
10113
|
}
|
|
10114
10114
|
}
|
|
@@ -10210,7 +10210,7 @@ const checkState$v = async (client, input) => {
|
|
|
10210
10210
|
}
|
|
10211
10211
|
catch (exception) {
|
|
10212
10212
|
reason = exception;
|
|
10213
|
-
if (exception.name
|
|
10213
|
+
if (exception.name === "InvalidInstanceID.NotFound") {
|
|
10214
10214
|
return { state: utilWaiter.WaiterState.RETRY, reason };
|
|
10215
10215
|
}
|
|
10216
10216
|
}
|
|
@@ -10251,7 +10251,7 @@ const checkState$u = async (client, input) => {
|
|
|
10251
10251
|
}
|
|
10252
10252
|
catch (exception) {
|
|
10253
10253
|
reason = exception;
|
|
10254
|
-
if (exception.name
|
|
10254
|
+
if (exception.name === "InvalidInstanceID.NotFound") {
|
|
10255
10255
|
return { state: utilWaiter.WaiterState.RETRY, reason };
|
|
10256
10256
|
}
|
|
10257
10257
|
}
|
|
@@ -10448,7 +10448,7 @@ const checkState$r = async (client, input) => {
|
|
|
10448
10448
|
}
|
|
10449
10449
|
catch (exception) {
|
|
10450
10450
|
reason = exception;
|
|
10451
|
-
if (exception.name
|
|
10451
|
+
if (exception.name === "InvalidInternetGateway.NotFound") {
|
|
10452
10452
|
return { state: utilWaiter.WaiterState.RETRY, reason };
|
|
10453
10453
|
}
|
|
10454
10454
|
}
|
|
@@ -10485,7 +10485,7 @@ const checkState$q = async (client, input) => {
|
|
|
10485
10485
|
}
|
|
10486
10486
|
catch (exception) {
|
|
10487
10487
|
reason = exception;
|
|
10488
|
-
if (exception.name
|
|
10488
|
+
if (exception.name === "InvalidKeyPair.NotFound") {
|
|
10489
10489
|
return { state: utilWaiter.WaiterState.RETRY, reason };
|
|
10490
10490
|
}
|
|
10491
10491
|
}
|
|
@@ -10571,7 +10571,7 @@ const checkState$p = async (client, input) => {
|
|
|
10571
10571
|
}
|
|
10572
10572
|
catch (exception) {
|
|
10573
10573
|
reason = exception;
|
|
10574
|
-
if (exception.name
|
|
10574
|
+
if (exception.name === "NatGatewayNotFound") {
|
|
10575
10575
|
return { state: utilWaiter.WaiterState.RETRY, reason };
|
|
10576
10576
|
}
|
|
10577
10577
|
}
|
|
@@ -10612,7 +10612,7 @@ const checkState$o = async (client, input) => {
|
|
|
10612
10612
|
}
|
|
10613
10613
|
catch (exception) {
|
|
10614
10614
|
reason = exception;
|
|
10615
|
-
if (exception.name
|
|
10615
|
+
if (exception.name === "NatGatewayNotFound") {
|
|
10616
10616
|
return { state: utilWaiter.WaiterState.SUCCESS, reason };
|
|
10617
10617
|
}
|
|
10618
10618
|
}
|
|
@@ -10653,7 +10653,7 @@ const checkState$n = async (client, input) => {
|
|
|
10653
10653
|
}
|
|
10654
10654
|
catch (exception) {
|
|
10655
10655
|
reason = exception;
|
|
10656
|
-
if (exception.name
|
|
10656
|
+
if (exception.name === "InvalidNetworkInterfaceID.NotFound") {
|
|
10657
10657
|
return { state: utilWaiter.WaiterState.FAILURE, reason };
|
|
10658
10658
|
}
|
|
10659
10659
|
}
|
|
@@ -10739,7 +10739,7 @@ const checkState$l = async (client, input) => {
|
|
|
10739
10739
|
}
|
|
10740
10740
|
catch (exception) {
|
|
10741
10741
|
reason = exception;
|
|
10742
|
-
if (exception.name
|
|
10742
|
+
if (exception.name === "InvalidSecondaryNetworkId.NotFound") {
|
|
10743
10743
|
return { state: utilWaiter.WaiterState.RETRY, reason };
|
|
10744
10744
|
}
|
|
10745
10745
|
}
|
|
@@ -10848,7 +10848,7 @@ const checkState$j = async (client, input) => {
|
|
|
10848
10848
|
}
|
|
10849
10849
|
catch (exception) {
|
|
10850
10850
|
reason = exception;
|
|
10851
|
-
if (exception.name
|
|
10851
|
+
if (exception.name === "InvalidSecondarySubnetId.NotFound") {
|
|
10852
10852
|
return { state: utilWaiter.WaiterState.RETRY, reason };
|
|
10853
10853
|
}
|
|
10854
10854
|
}
|
|
@@ -10938,7 +10938,7 @@ const checkState$h = async (client, input) => {
|
|
|
10938
10938
|
}
|
|
10939
10939
|
catch (exception) {
|
|
10940
10940
|
reason = exception;
|
|
10941
|
-
if (exception.name
|
|
10941
|
+
if (exception.name === "InvalidGroup.NotFound") {
|
|
10942
10942
|
return { state: utilWaiter.WaiterState.RETRY, reason };
|
|
10943
10943
|
}
|
|
10944
10944
|
}
|
|
@@ -11308,7 +11308,7 @@ const checkState$c = async (client, input) => {
|
|
|
11308
11308
|
}
|
|
11309
11309
|
catch (exception) {
|
|
11310
11310
|
reason = exception;
|
|
11311
|
-
if (exception.name
|
|
11311
|
+
if (exception.name === "InvalidSpotInstanceRequestID.NotFound") {
|
|
11312
11312
|
return { state: utilWaiter.WaiterState.RETRY, reason };
|
|
11313
11313
|
}
|
|
11314
11314
|
}
|
|
@@ -11546,7 +11546,7 @@ const checkState$7 = async (client, input) => {
|
|
|
11546
11546
|
}
|
|
11547
11547
|
catch (exception) {
|
|
11548
11548
|
reason = exception;
|
|
11549
|
-
if (exception.name
|
|
11549
|
+
if (exception.name === "InvalidVolume.NotFound") {
|
|
11550
11550
|
return { state: utilWaiter.WaiterState.SUCCESS, reason };
|
|
11551
11551
|
}
|
|
11552
11552
|
}
|
|
@@ -11662,7 +11662,7 @@ const checkState$4 = async (client, input) => {
|
|
|
11662
11662
|
}
|
|
11663
11663
|
catch (exception) {
|
|
11664
11664
|
reason = exception;
|
|
11665
|
-
if (exception.name
|
|
11665
|
+
if (exception.name === "InvalidVpcID.NotFound") {
|
|
11666
11666
|
return { state: utilWaiter.WaiterState.RETRY, reason };
|
|
11667
11667
|
}
|
|
11668
11668
|
}
|
|
@@ -11703,7 +11703,7 @@ const checkState$3 = async (client, input) => {
|
|
|
11703
11703
|
}
|
|
11704
11704
|
catch (exception) {
|
|
11705
11705
|
reason = exception;
|
|
11706
|
-
if (exception.name
|
|
11706
|
+
if (exception.name === "InvalidVpcPeeringConnectionID.NotFound") {
|
|
11707
11707
|
return { state: utilWaiter.WaiterState.SUCCESS, reason };
|
|
11708
11708
|
}
|
|
11709
11709
|
}
|
|
@@ -11728,7 +11728,7 @@ const checkState$2 = async (client, input) => {
|
|
|
11728
11728
|
}
|
|
11729
11729
|
catch (exception) {
|
|
11730
11730
|
reason = exception;
|
|
11731
|
-
if (exception.name
|
|
11731
|
+
if (exception.name === "InvalidVpcPeeringConnectionID.NotFound") {
|
|
11732
11732
|
return { state: utilWaiter.WaiterState.RETRY, reason };
|
|
11733
11733
|
}
|
|
11734
11734
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { checkExceptions, createWaiter, WaiterState, } from "@smithy/util-waiter";
|
|
2
|
-
import { DescribeImagesCommand } from "../commands/DescribeImagesCommand";
|
|
2
|
+
import { DescribeImagesCommand, } from "../commands/DescribeImagesCommand";
|
|
3
3
|
const checkState = async (client, input) => {
|
|
4
4
|
let reason;
|
|
5
5
|
try {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { checkExceptions, createWaiter, WaiterState, } from "@smithy/util-waiter";
|
|
2
|
-
import { DescribeImagesCommand } from "../commands/DescribeImagesCommand";
|
|
2
|
+
import { DescribeImagesCommand, } from "../commands/DescribeImagesCommand";
|
|
3
3
|
const checkState = async (client, input) => {
|
|
4
4
|
let reason;
|
|
5
5
|
try {
|
|
@@ -18,7 +18,7 @@ const checkState = async (client, input) => {
|
|
|
18
18
|
}
|
|
19
19
|
catch (exception) {
|
|
20
20
|
reason = exception;
|
|
21
|
-
if (exception.name
|
|
21
|
+
if (exception.name === "InvalidAMIID.NotFound") {
|
|
22
22
|
return { state: WaiterState.RETRY, reason };
|
|
23
23
|
}
|
|
24
24
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { checkExceptions, createWaiter, WaiterState, } from "@smithy/util-waiter";
|
|
2
|
-
import { DescribeInstancesCommand } from "../commands/DescribeInstancesCommand";
|
|
2
|
+
import { DescribeInstancesCommand, } from "../commands/DescribeInstancesCommand";
|
|
3
3
|
const checkState = async (client, input) => {
|
|
4
4
|
let reason;
|
|
5
5
|
try {
|
|
@@ -18,7 +18,7 @@ const checkState = async (client, input) => {
|
|
|
18
18
|
}
|
|
19
19
|
catch (exception) {
|
|
20
20
|
reason = exception;
|
|
21
|
-
if (exception.name
|
|
21
|
+
if (exception.name === "InvalidInstanceID.NotFound") {
|
|
22
22
|
return { state: WaiterState.RETRY, reason };
|
|
23
23
|
}
|
|
24
24
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { checkExceptions, createWaiter, WaiterState, } from "@smithy/util-waiter";
|
|
2
|
-
import { DescribeInstancesCommand } from "../commands/DescribeInstancesCommand";
|
|
2
|
+
import { DescribeInstancesCommand, } from "../commands/DescribeInstancesCommand";
|
|
3
3
|
const checkState = async (client, input) => {
|
|
4
4
|
let reason;
|
|
5
5
|
try {
|
|
@@ -86,7 +86,7 @@ const checkState = async (client, input) => {
|
|
|
86
86
|
}
|
|
87
87
|
catch (exception) {
|
|
88
88
|
reason = exception;
|
|
89
|
-
if (exception.name
|
|
89
|
+
if (exception.name === "InvalidInstanceID.NotFound") {
|
|
90
90
|
return { state: WaiterState.RETRY, reason };
|
|
91
91
|
}
|
|
92
92
|
}
|
|
@@ -25,7 +25,7 @@ const checkState = async (client, input) => {
|
|
|
25
25
|
}
|
|
26
26
|
catch (exception) {
|
|
27
27
|
reason = exception;
|
|
28
|
-
if (exception.name
|
|
28
|
+
if (exception.name === "InvalidInstanceID.NotFound") {
|
|
29
29
|
return { state: WaiterState.RETRY, reason };
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { checkExceptions, createWaiter, WaiterState, } from "@smithy/util-waiter";
|
|
2
|
-
import { DescribeInstancesCommand } from "../commands/DescribeInstancesCommand";
|
|
2
|
+
import { DescribeInstancesCommand, } from "../commands/DescribeInstancesCommand";
|
|
3
3
|
const checkState = async (client, input) => {
|
|
4
4
|
let reason;
|
|
5
5
|
try {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { checkExceptions, createWaiter, WaiterState, } from "@smithy/util-waiter";
|
|
2
|
-
import { DescribeInstancesCommand } from "../commands/DescribeInstancesCommand";
|
|
2
|
+
import { DescribeInstancesCommand, } from "../commands/DescribeInstancesCommand";
|
|
3
3
|
const checkState = async (client, input) => {
|
|
4
4
|
let reason;
|
|
5
5
|
try {
|
|
@@ -21,7 +21,7 @@ const checkState = async (client, input) => {
|
|
|
21
21
|
}
|
|
22
22
|
catch (exception) {
|
|
23
23
|
reason = exception;
|
|
24
|
-
if (exception.name
|
|
24
|
+
if (exception.name === "InvalidInternetGateway.NotFound") {
|
|
25
25
|
return { state: WaiterState.RETRY, reason };
|
|
26
26
|
}
|
|
27
27
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { checkExceptions, createWaiter, WaiterState, } from "@smithy/util-waiter";
|
|
2
|
-
import { DescribeKeyPairsCommand } from "../commands/DescribeKeyPairsCommand";
|
|
2
|
+
import { DescribeKeyPairsCommand, } from "../commands/DescribeKeyPairsCommand";
|
|
3
3
|
const checkState = async (client, input) => {
|
|
4
4
|
let reason;
|
|
5
5
|
try {
|
|
@@ -21,7 +21,7 @@ const checkState = async (client, input) => {
|
|
|
21
21
|
}
|
|
22
22
|
catch (exception) {
|
|
23
23
|
reason = exception;
|
|
24
|
-
if (exception.name
|
|
24
|
+
if (exception.name === "InvalidKeyPair.NotFound") {
|
|
25
25
|
return { state: WaiterState.RETRY, reason };
|
|
26
26
|
}
|
|
27
27
|
}
|
|
@@ -70,7 +70,7 @@ const checkState = async (client, input) => {
|
|
|
70
70
|
}
|
|
71
71
|
catch (exception) {
|
|
72
72
|
reason = exception;
|
|
73
|
-
if (exception.name
|
|
73
|
+
if (exception.name === "NatGatewayNotFound") {
|
|
74
74
|
return { state: WaiterState.RETRY, reason };
|
|
75
75
|
}
|
|
76
76
|
}
|
|
@@ -25,7 +25,7 @@ const checkState = async (client, input) => {
|
|
|
25
25
|
}
|
|
26
26
|
catch (exception) {
|
|
27
27
|
reason = exception;
|
|
28
|
-
if (exception.name
|
|
28
|
+
if (exception.name === "NatGatewayNotFound") {
|
|
29
29
|
return { state: WaiterState.SUCCESS, reason };
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -25,7 +25,7 @@ const checkState = async (client, input) => {
|
|
|
25
25
|
}
|
|
26
26
|
catch (exception) {
|
|
27
27
|
reason = exception;
|
|
28
|
-
if (exception.name
|
|
28
|
+
if (exception.name === "InvalidNetworkInterfaceID.NotFound") {
|
|
29
29
|
return { state: WaiterState.FAILURE, reason };
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { checkExceptions, createWaiter, WaiterState, } from "@smithy/util-waiter";
|
|
2
|
-
import { GetPasswordDataCommand } from "../commands/GetPasswordDataCommand";
|
|
2
|
+
import { GetPasswordDataCommand, } from "../commands/GetPasswordDataCommand";
|
|
3
3
|
const checkState = async (client, input) => {
|
|
4
4
|
let reason;
|
|
5
5
|
try {
|
|
@@ -40,7 +40,7 @@ const checkState = async (client, input) => {
|
|
|
40
40
|
}
|
|
41
41
|
catch (exception) {
|
|
42
42
|
reason = exception;
|
|
43
|
-
if (exception.name
|
|
43
|
+
if (exception.name === "InvalidSecondaryNetworkId.NotFound") {
|
|
44
44
|
return { state: WaiterState.RETRY, reason };
|
|
45
45
|
}
|
|
46
46
|
}
|
|
@@ -40,7 +40,7 @@ const checkState = async (client, input) => {
|
|
|
40
40
|
}
|
|
41
41
|
catch (exception) {
|
|
42
42
|
reason = exception;
|
|
43
|
-
if (exception.name
|
|
43
|
+
if (exception.name === "InvalidSecondarySubnetId.NotFound") {
|
|
44
44
|
return { state: WaiterState.RETRY, reason };
|
|
45
45
|
}
|
|
46
46
|
}
|
|
@@ -21,7 +21,7 @@ const checkState = async (client, input) => {
|
|
|
21
21
|
}
|
|
22
22
|
catch (exception) {
|
|
23
23
|
reason = exception;
|
|
24
|
-
if (exception.name
|
|
24
|
+
if (exception.name === "InvalidGroup.NotFound") {
|
|
25
25
|
return { state: WaiterState.RETRY, reason };
|
|
26
26
|
}
|
|
27
27
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { checkExceptions, createWaiter, WaiterState, } from "@smithy/util-waiter";
|
|
2
|
-
import { DescribeSnapshotsCommand } from "../commands/DescribeSnapshotsCommand";
|
|
2
|
+
import { DescribeSnapshotsCommand, } from "../commands/DescribeSnapshotsCommand";
|
|
3
3
|
const checkState = async (client, input) => {
|
|
4
4
|
let reason;
|
|
5
5
|
try {
|
|
@@ -102,7 +102,7 @@ const checkState = async (client, input) => {
|
|
|
102
102
|
}
|
|
103
103
|
catch (exception) {
|
|
104
104
|
reason = exception;
|
|
105
|
-
if (exception.name
|
|
105
|
+
if (exception.name === "InvalidSpotInstanceRequestID.NotFound") {
|
|
106
106
|
return { state: WaiterState.RETRY, reason };
|
|
107
107
|
}
|
|
108
108
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { checkExceptions, createWaiter, WaiterState, } from "@smithy/util-waiter";
|
|
2
|
-
import { DescribeSubnetsCommand } from "../commands/DescribeSubnetsCommand";
|
|
2
|
+
import { DescribeSubnetsCommand, } from "../commands/DescribeSubnetsCommand";
|
|
3
3
|
const checkState = async (client, input) => {
|
|
4
4
|
let reason;
|
|
5
5
|
try {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { checkExceptions, createWaiter, WaiterState, } from "@smithy/util-waiter";
|
|
2
|
-
import { DescribeVolumesCommand } from "../commands/DescribeVolumesCommand";
|
|
2
|
+
import { DescribeVolumesCommand, } from "../commands/DescribeVolumesCommand";
|
|
3
3
|
const checkState = async (client, input) => {
|
|
4
4
|
let reason;
|
|
5
5
|
try {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { checkExceptions, createWaiter, WaiterState, } from "@smithy/util-waiter";
|
|
2
|
-
import { DescribeVolumesCommand } from "../commands/DescribeVolumesCommand";
|
|
2
|
+
import { DescribeVolumesCommand, } from "../commands/DescribeVolumesCommand";
|
|
3
3
|
const checkState = async (client, input) => {
|
|
4
4
|
let reason;
|
|
5
5
|
try {
|
|
@@ -25,7 +25,7 @@ const checkState = async (client, input) => {
|
|
|
25
25
|
}
|
|
26
26
|
catch (exception) {
|
|
27
27
|
reason = exception;
|
|
28
|
-
if (exception.name
|
|
28
|
+
if (exception.name === "InvalidVolume.NotFound") {
|
|
29
29
|
return { state: WaiterState.SUCCESS, reason };
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { checkExceptions, createWaiter, WaiterState, } from "@smithy/util-waiter";
|
|
2
|
-
import { DescribeVolumesCommand } from "../commands/DescribeVolumesCommand";
|
|
2
|
+
import { DescribeVolumesCommand, } from "../commands/DescribeVolumesCommand";
|
|
3
3
|
const checkState = async (client, input) => {
|
|
4
4
|
let reason;
|
|
5
5
|
try {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { checkExceptions, createWaiter, WaiterState, } from "@smithy/util-waiter";
|
|
2
|
-
import { DescribeVpcsCommand } from "../commands/DescribeVpcsCommand";
|
|
2
|
+
import { DescribeVpcsCommand, } from "../commands/DescribeVpcsCommand";
|
|
3
3
|
const checkState = async (client, input) => {
|
|
4
4
|
let reason;
|
|
5
5
|
try {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { checkExceptions, createWaiter, WaiterState, } from "@smithy/util-waiter";
|
|
2
|
-
import { DescribeVpcsCommand } from "../commands/DescribeVpcsCommand";
|
|
2
|
+
import { DescribeVpcsCommand, } from "../commands/DescribeVpcsCommand";
|
|
3
3
|
const checkState = async (client, input) => {
|
|
4
4
|
let reason;
|
|
5
5
|
try {
|
|
@@ -9,7 +9,7 @@ const checkState = async (client, input) => {
|
|
|
9
9
|
}
|
|
10
10
|
catch (exception) {
|
|
11
11
|
reason = exception;
|
|
12
|
-
if (exception.name
|
|
12
|
+
if (exception.name === "InvalidVpcID.NotFound") {
|
|
13
13
|
return { state: WaiterState.RETRY, reason };
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -25,7 +25,7 @@ const checkState = async (client, input) => {
|
|
|
25
25
|
}
|
|
26
26
|
catch (exception) {
|
|
27
27
|
reason = exception;
|
|
28
|
-
if (exception.name
|
|
28
|
+
if (exception.name === "InvalidVpcPeeringConnectionID.NotFound") {
|
|
29
29
|
return { state: WaiterState.SUCCESS, reason };
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -9,7 +9,7 @@ const checkState = async (client, input) => {
|
|
|
9
9
|
}
|
|
10
10
|
catch (exception) {
|
|
11
11
|
reason = exception;
|
|
12
|
-
if (exception.name
|
|
12
|
+
if (exception.name === "InvalidVpcPeeringConnectionID.NotFound") {
|
|
13
13
|
return { state: WaiterState.RETRY, reason };
|
|
14
14
|
}
|
|
15
15
|
}
|