@aws-sdk/client-ec2 3.842.0 → 3.843.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 +261 -102
- package/dist-es/protocols/Aws_ec2.js +3 -0
- package/dist-es/waiters/index.js +4 -2
- package/dist-es/waiters/waitForSecurityGroupVpcAssociationAssociated.js +69 -0
- package/dist-es/waiters/waitForSecurityGroupVpcAssociationDisassociated.js +79 -0
- package/dist-types/commands/AssociateSecurityGroupVpcCommand.d.ts +1 -1
- package/dist-types/commands/DescribeSecurityGroupVpcAssociationsCommand.d.ts +1 -0
- package/dist-types/models/models_5.d.ts +9 -0
- package/dist-types/ts3.4/models/models_5.d.ts +1 -0
- package/dist-types/ts3.4/waiters/index.d.ts +4 -2
- package/dist-types/ts3.4/waiters/waitForSecurityGroupVpcAssociationAssociated.d.ts +11 -0
- package/dist-types/ts3.4/waiters/waitForSecurityGroupVpcAssociationDisassociated.d.ts +11 -0
- package/dist-types/waiters/index.d.ts +4 -2
- package/dist-types/waiters/waitForSecurityGroupVpcAssociationAssociated.d.ts +14 -0
- package/dist-types/waiters/waitForSecurityGroupVpcAssociationDisassociated.d.ts +14 -0
- package/package.json +1 -1
package/dist-cjs/index.js
CHANGED
|
@@ -1360,6 +1360,8 @@ __export(index_exports, {
|
|
|
1360
1360
|
waitForNetworkInterfaceAvailable: () => waitForNetworkInterfaceAvailable,
|
|
1361
1361
|
waitForPasswordDataAvailable: () => waitForPasswordDataAvailable,
|
|
1362
1362
|
waitForSecurityGroupExists: () => waitForSecurityGroupExists,
|
|
1363
|
+
waitForSecurityGroupVpcAssociationAssociated: () => waitForSecurityGroupVpcAssociationAssociated,
|
|
1364
|
+
waitForSecurityGroupVpcAssociationDisassociated: () => waitForSecurityGroupVpcAssociationDisassociated,
|
|
1363
1365
|
waitForSnapshotCompleted: () => waitForSnapshotCompleted,
|
|
1364
1366
|
waitForSnapshotImported: () => waitForSnapshotImported,
|
|
1365
1367
|
waitForSpotInstanceRequestFulfilled: () => waitForSpotInstanceRequestFulfilled,
|
|
@@ -1396,6 +1398,8 @@ __export(index_exports, {
|
|
|
1396
1398
|
waitUntilNetworkInterfaceAvailable: () => waitUntilNetworkInterfaceAvailable,
|
|
1397
1399
|
waitUntilPasswordDataAvailable: () => waitUntilPasswordDataAvailable,
|
|
1398
1400
|
waitUntilSecurityGroupExists: () => waitUntilSecurityGroupExists,
|
|
1401
|
+
waitUntilSecurityGroupVpcAssociationAssociated: () => waitUntilSecurityGroupVpcAssociationAssociated,
|
|
1402
|
+
waitUntilSecurityGroupVpcAssociationDisassociated: () => waitUntilSecurityGroupVpcAssociationDisassociated,
|
|
1399
1403
|
waitUntilSnapshotCompleted: () => waitUntilSnapshotCompleted,
|
|
1400
1404
|
waitUntilSnapshotImported: () => waitUntilSnapshotImported,
|
|
1401
1405
|
waitUntilSpotInstanceRequestFulfilled: () => waitUntilSpotInstanceRequestFulfilled,
|
|
@@ -58350,6 +58354,9 @@ var de_SecurityGroupVpcAssociation = /* @__PURE__ */ __name((output, context) =>
|
|
|
58350
58354
|
if (output[_sRt] != null) {
|
|
58351
58355
|
contents[_SRt] = (0, import_smithy_client.expectString)(output[_sRt]);
|
|
58352
58356
|
}
|
|
58357
|
+
if (output[_gOI] != null) {
|
|
58358
|
+
contents[_GOI] = (0, import_smithy_client.expectString)(output[_gOI]);
|
|
58359
|
+
}
|
|
58353
58360
|
return contents;
|
|
58354
58361
|
}, "de_SecurityGroupVpcAssociation");
|
|
58355
58362
|
var de_SecurityGroupVpcAssociationList = /* @__PURE__ */ __name((output, context) => {
|
|
@@ -84033,9 +84040,157 @@ var waitUntilSecurityGroupExists = /* @__PURE__ */ __name(async (params, input)
|
|
|
84033
84040
|
return (0, import_util_waiter.checkExceptions)(result);
|
|
84034
84041
|
}, "waitUntilSecurityGroupExists");
|
|
84035
84042
|
|
|
84036
|
-
// src/waiters/
|
|
84043
|
+
// src/waiters/waitForSecurityGroupVpcAssociationAssociated.ts
|
|
84037
84044
|
|
|
84038
84045
|
var checkState22 = /* @__PURE__ */ __name(async (client, input) => {
|
|
84046
|
+
let reason;
|
|
84047
|
+
try {
|
|
84048
|
+
const result = await client.send(new DescribeSecurityGroupVpcAssociationsCommand(input));
|
|
84049
|
+
reason = result;
|
|
84050
|
+
try {
|
|
84051
|
+
const returnComparator = /* @__PURE__ */ __name(() => {
|
|
84052
|
+
const flat_1 = [].concat(...result.SecurityGroupVpcAssociations);
|
|
84053
|
+
const projection_3 = flat_1.map((element_2) => {
|
|
84054
|
+
return element_2.State;
|
|
84055
|
+
});
|
|
84056
|
+
return projection_3;
|
|
84057
|
+
}, "returnComparator");
|
|
84058
|
+
let allStringEq_5 = returnComparator().length > 0;
|
|
84059
|
+
for (const element_4 of returnComparator()) {
|
|
84060
|
+
allStringEq_5 = allStringEq_5 && element_4 == "associated";
|
|
84061
|
+
}
|
|
84062
|
+
if (allStringEq_5) {
|
|
84063
|
+
return { state: import_util_waiter.WaiterState.SUCCESS, reason };
|
|
84064
|
+
}
|
|
84065
|
+
} catch (e) {
|
|
84066
|
+
}
|
|
84067
|
+
try {
|
|
84068
|
+
const returnComparator = /* @__PURE__ */ __name(() => {
|
|
84069
|
+
const flat_1 = [].concat(...result.SecurityGroupVpcAssociations);
|
|
84070
|
+
const projection_3 = flat_1.map((element_2) => {
|
|
84071
|
+
return element_2.State;
|
|
84072
|
+
});
|
|
84073
|
+
return projection_3;
|
|
84074
|
+
}, "returnComparator");
|
|
84075
|
+
for (const anyStringEq_4 of returnComparator()) {
|
|
84076
|
+
if (anyStringEq_4 == "associating") {
|
|
84077
|
+
return { state: import_util_waiter.WaiterState.RETRY, reason };
|
|
84078
|
+
}
|
|
84079
|
+
}
|
|
84080
|
+
} catch (e) {
|
|
84081
|
+
}
|
|
84082
|
+
try {
|
|
84083
|
+
const returnComparator = /* @__PURE__ */ __name(() => {
|
|
84084
|
+
const flat_1 = [].concat(...result.SecurityGroupVpcAssociations);
|
|
84085
|
+
const projection_3 = flat_1.map((element_2) => {
|
|
84086
|
+
return element_2.State;
|
|
84087
|
+
});
|
|
84088
|
+
return projection_3;
|
|
84089
|
+
}, "returnComparator");
|
|
84090
|
+
for (const anyStringEq_4 of returnComparator()) {
|
|
84091
|
+
if (anyStringEq_4 == "association-failed") {
|
|
84092
|
+
return { state: import_util_waiter.WaiterState.FAILURE, reason };
|
|
84093
|
+
}
|
|
84094
|
+
}
|
|
84095
|
+
} catch (e) {
|
|
84096
|
+
}
|
|
84097
|
+
} catch (exception) {
|
|
84098
|
+
reason = exception;
|
|
84099
|
+
}
|
|
84100
|
+
return { state: import_util_waiter.WaiterState.RETRY, reason };
|
|
84101
|
+
}, "checkState");
|
|
84102
|
+
var waitForSecurityGroupVpcAssociationAssociated = /* @__PURE__ */ __name(async (params, input) => {
|
|
84103
|
+
const serviceDefaults = { minDelay: 10, maxDelay: 120 };
|
|
84104
|
+
return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState22);
|
|
84105
|
+
}, "waitForSecurityGroupVpcAssociationAssociated");
|
|
84106
|
+
var waitUntilSecurityGroupVpcAssociationAssociated = /* @__PURE__ */ __name(async (params, input) => {
|
|
84107
|
+
const serviceDefaults = { minDelay: 10, maxDelay: 120 };
|
|
84108
|
+
const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState22);
|
|
84109
|
+
return (0, import_util_waiter.checkExceptions)(result);
|
|
84110
|
+
}, "waitUntilSecurityGroupVpcAssociationAssociated");
|
|
84111
|
+
|
|
84112
|
+
// src/waiters/waitForSecurityGroupVpcAssociationDisassociated.ts
|
|
84113
|
+
|
|
84114
|
+
var checkState23 = /* @__PURE__ */ __name(async (client, input) => {
|
|
84115
|
+
let reason;
|
|
84116
|
+
try {
|
|
84117
|
+
const result = await client.send(new DescribeSecurityGroupVpcAssociationsCommand(input));
|
|
84118
|
+
reason = result;
|
|
84119
|
+
try {
|
|
84120
|
+
const returnComparator = /* @__PURE__ */ __name(() => {
|
|
84121
|
+
const flat_1 = [].concat(...result.SecurityGroupVpcAssociations);
|
|
84122
|
+
const projection_3 = flat_1.map((element_2) => {
|
|
84123
|
+
return element_2.State;
|
|
84124
|
+
});
|
|
84125
|
+
return projection_3;
|
|
84126
|
+
}, "returnComparator");
|
|
84127
|
+
let allStringEq_5 = returnComparator().length > 0;
|
|
84128
|
+
for (const element_4 of returnComparator()) {
|
|
84129
|
+
allStringEq_5 = allStringEq_5 && element_4 == "disassociated";
|
|
84130
|
+
}
|
|
84131
|
+
if (allStringEq_5) {
|
|
84132
|
+
return { state: import_util_waiter.WaiterState.SUCCESS, reason };
|
|
84133
|
+
}
|
|
84134
|
+
} catch (e) {
|
|
84135
|
+
}
|
|
84136
|
+
try {
|
|
84137
|
+
const returnComparator = /* @__PURE__ */ __name(() => {
|
|
84138
|
+
const flat_1 = [].concat(...result.SecurityGroupVpcAssociations);
|
|
84139
|
+
const projection_3 = flat_1.map((element_2) => {
|
|
84140
|
+
return element_2.State;
|
|
84141
|
+
});
|
|
84142
|
+
return projection_3;
|
|
84143
|
+
}, "returnComparator");
|
|
84144
|
+
for (const anyStringEq_4 of returnComparator()) {
|
|
84145
|
+
if (anyStringEq_4 == "disassociating") {
|
|
84146
|
+
return { state: import_util_waiter.WaiterState.RETRY, reason };
|
|
84147
|
+
}
|
|
84148
|
+
}
|
|
84149
|
+
} catch (e) {
|
|
84150
|
+
}
|
|
84151
|
+
try {
|
|
84152
|
+
const returnComparator = /* @__PURE__ */ __name(() => {
|
|
84153
|
+
const flat_1 = [].concat(...result.SecurityGroupVpcAssociations);
|
|
84154
|
+
const projection_3 = flat_1.map((element_2) => {
|
|
84155
|
+
return element_2.State;
|
|
84156
|
+
});
|
|
84157
|
+
return projection_3;
|
|
84158
|
+
}, "returnComparator");
|
|
84159
|
+
for (const anyStringEq_4 of returnComparator()) {
|
|
84160
|
+
if (anyStringEq_4 == "disassociation-failed") {
|
|
84161
|
+
return { state: import_util_waiter.WaiterState.FAILURE, reason };
|
|
84162
|
+
}
|
|
84163
|
+
}
|
|
84164
|
+
} catch (e) {
|
|
84165
|
+
}
|
|
84166
|
+
try {
|
|
84167
|
+
const returnComparator = /* @__PURE__ */ __name(() => {
|
|
84168
|
+
const flat_1 = [].concat(...result.SecurityGroupVpcAssociations);
|
|
84169
|
+
return flat_1.length == 0;
|
|
84170
|
+
}, "returnComparator");
|
|
84171
|
+
if (returnComparator() == true) {
|
|
84172
|
+
return { state: import_util_waiter.WaiterState.SUCCESS, reason };
|
|
84173
|
+
}
|
|
84174
|
+
} catch (e) {
|
|
84175
|
+
}
|
|
84176
|
+
} catch (exception) {
|
|
84177
|
+
reason = exception;
|
|
84178
|
+
}
|
|
84179
|
+
return { state: import_util_waiter.WaiterState.RETRY, reason };
|
|
84180
|
+
}, "checkState");
|
|
84181
|
+
var waitForSecurityGroupVpcAssociationDisassociated = /* @__PURE__ */ __name(async (params, input) => {
|
|
84182
|
+
const serviceDefaults = { minDelay: 10, maxDelay: 120 };
|
|
84183
|
+
return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState23);
|
|
84184
|
+
}, "waitForSecurityGroupVpcAssociationDisassociated");
|
|
84185
|
+
var waitUntilSecurityGroupVpcAssociationDisassociated = /* @__PURE__ */ __name(async (params, input) => {
|
|
84186
|
+
const serviceDefaults = { minDelay: 10, maxDelay: 120 };
|
|
84187
|
+
const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState23);
|
|
84188
|
+
return (0, import_util_waiter.checkExceptions)(result);
|
|
84189
|
+
}, "waitUntilSecurityGroupVpcAssociationDisassociated");
|
|
84190
|
+
|
|
84191
|
+
// src/waiters/waitForSnapshotCompleted.ts
|
|
84192
|
+
|
|
84193
|
+
var checkState24 = /* @__PURE__ */ __name(async (client, input) => {
|
|
84039
84194
|
let reason;
|
|
84040
84195
|
try {
|
|
84041
84196
|
const result = await client.send(new DescribeSnapshotsCommand(input));
|
|
@@ -84079,17 +84234,17 @@ var checkState22 = /* @__PURE__ */ __name(async (client, input) => {
|
|
|
84079
84234
|
}, "checkState");
|
|
84080
84235
|
var waitForSnapshotCompleted = /* @__PURE__ */ __name(async (params, input) => {
|
|
84081
84236
|
const serviceDefaults = { minDelay: 15, maxDelay: 120 };
|
|
84082
|
-
return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input,
|
|
84237
|
+
return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState24);
|
|
84083
84238
|
}, "waitForSnapshotCompleted");
|
|
84084
84239
|
var waitUntilSnapshotCompleted = /* @__PURE__ */ __name(async (params, input) => {
|
|
84085
84240
|
const serviceDefaults = { minDelay: 15, maxDelay: 120 };
|
|
84086
|
-
const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input,
|
|
84241
|
+
const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState24);
|
|
84087
84242
|
return (0, import_util_waiter.checkExceptions)(result);
|
|
84088
84243
|
}, "waitUntilSnapshotCompleted");
|
|
84089
84244
|
|
|
84090
84245
|
// src/waiters/waitForSpotInstanceRequestFulfilled.ts
|
|
84091
84246
|
|
|
84092
|
-
var
|
|
84247
|
+
var checkState25 = /* @__PURE__ */ __name(async (client, input) => {
|
|
84093
84248
|
let reason;
|
|
84094
84249
|
try {
|
|
84095
84250
|
const result = await client.send(new DescribeSpotInstanceRequestsCommand(input));
|
|
@@ -84198,17 +84353,56 @@ var checkState23 = /* @__PURE__ */ __name(async (client, input) => {
|
|
|
84198
84353
|
}, "checkState");
|
|
84199
84354
|
var waitForSpotInstanceRequestFulfilled = /* @__PURE__ */ __name(async (params, input) => {
|
|
84200
84355
|
const serviceDefaults = { minDelay: 15, maxDelay: 120 };
|
|
84201
|
-
return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input,
|
|
84356
|
+
return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState25);
|
|
84202
84357
|
}, "waitForSpotInstanceRequestFulfilled");
|
|
84203
84358
|
var waitUntilSpotInstanceRequestFulfilled = /* @__PURE__ */ __name(async (params, input) => {
|
|
84204
84359
|
const serviceDefaults = { minDelay: 15, maxDelay: 120 };
|
|
84205
|
-
const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input,
|
|
84360
|
+
const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState25);
|
|
84206
84361
|
return (0, import_util_waiter.checkExceptions)(result);
|
|
84207
84362
|
}, "waitUntilSpotInstanceRequestFulfilled");
|
|
84208
84363
|
|
|
84364
|
+
// src/waiters/waitForSystemStatusOk.ts
|
|
84365
|
+
|
|
84366
|
+
var checkState26 = /* @__PURE__ */ __name(async (client, input) => {
|
|
84367
|
+
let reason;
|
|
84368
|
+
try {
|
|
84369
|
+
const result = await client.send(new DescribeInstanceStatusCommand(input));
|
|
84370
|
+
reason = result;
|
|
84371
|
+
try {
|
|
84372
|
+
const returnComparator = /* @__PURE__ */ __name(() => {
|
|
84373
|
+
const flat_1 = [].concat(...result.InstanceStatuses);
|
|
84374
|
+
const projection_3 = flat_1.map((element_2) => {
|
|
84375
|
+
return element_2.SystemStatus.Status;
|
|
84376
|
+
});
|
|
84377
|
+
return projection_3;
|
|
84378
|
+
}, "returnComparator");
|
|
84379
|
+
let allStringEq_5 = returnComparator().length > 0;
|
|
84380
|
+
for (const element_4 of returnComparator()) {
|
|
84381
|
+
allStringEq_5 = allStringEq_5 && element_4 == "ok";
|
|
84382
|
+
}
|
|
84383
|
+
if (allStringEq_5) {
|
|
84384
|
+
return { state: import_util_waiter.WaiterState.SUCCESS, reason };
|
|
84385
|
+
}
|
|
84386
|
+
} catch (e) {
|
|
84387
|
+
}
|
|
84388
|
+
} catch (exception) {
|
|
84389
|
+
reason = exception;
|
|
84390
|
+
}
|
|
84391
|
+
return { state: import_util_waiter.WaiterState.RETRY, reason };
|
|
84392
|
+
}, "checkState");
|
|
84393
|
+
var waitForSystemStatusOk = /* @__PURE__ */ __name(async (params, input) => {
|
|
84394
|
+
const serviceDefaults = { minDelay: 15, maxDelay: 120 };
|
|
84395
|
+
return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState26);
|
|
84396
|
+
}, "waitForSystemStatusOk");
|
|
84397
|
+
var waitUntilSystemStatusOk = /* @__PURE__ */ __name(async (params, input) => {
|
|
84398
|
+
const serviceDefaults = { minDelay: 15, maxDelay: 120 };
|
|
84399
|
+
const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState26);
|
|
84400
|
+
return (0, import_util_waiter.checkExceptions)(result);
|
|
84401
|
+
}, "waitUntilSystemStatusOk");
|
|
84402
|
+
|
|
84209
84403
|
// src/waiters/waitForStoreImageTaskComplete.ts
|
|
84210
84404
|
|
|
84211
|
-
var
|
|
84405
|
+
var checkState27 = /* @__PURE__ */ __name(async (client, input) => {
|
|
84212
84406
|
let reason;
|
|
84213
84407
|
try {
|
|
84214
84408
|
const result = await client.send(new DescribeStoreImageTasksCommand(input));
|
|
@@ -84267,34 +84461,26 @@ var checkState24 = /* @__PURE__ */ __name(async (client, input) => {
|
|
|
84267
84461
|
}, "checkState");
|
|
84268
84462
|
var waitForStoreImageTaskComplete = /* @__PURE__ */ __name(async (params, input) => {
|
|
84269
84463
|
const serviceDefaults = { minDelay: 5, maxDelay: 120 };
|
|
84270
|
-
return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input,
|
|
84464
|
+
return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState27);
|
|
84271
84465
|
}, "waitForStoreImageTaskComplete");
|
|
84272
84466
|
var waitUntilStoreImageTaskComplete = /* @__PURE__ */ __name(async (params, input) => {
|
|
84273
84467
|
const serviceDefaults = { minDelay: 5, maxDelay: 120 };
|
|
84274
|
-
const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input,
|
|
84468
|
+
const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState27);
|
|
84275
84469
|
return (0, import_util_waiter.checkExceptions)(result);
|
|
84276
84470
|
}, "waitUntilStoreImageTaskComplete");
|
|
84277
84471
|
|
|
84278
|
-
// src/waiters/
|
|
84472
|
+
// src/waiters/waitForPasswordDataAvailable.ts
|
|
84279
84473
|
|
|
84280
|
-
var
|
|
84474
|
+
var checkState28 = /* @__PURE__ */ __name(async (client, input) => {
|
|
84281
84475
|
let reason;
|
|
84282
84476
|
try {
|
|
84283
|
-
const result = await client.send(new
|
|
84477
|
+
const result = await client.send(new GetPasswordDataCommand(input));
|
|
84284
84478
|
reason = result;
|
|
84285
84479
|
try {
|
|
84286
84480
|
const returnComparator = /* @__PURE__ */ __name(() => {
|
|
84287
|
-
|
|
84288
|
-
const projection_3 = flat_1.map((element_2) => {
|
|
84289
|
-
return element_2.State;
|
|
84290
|
-
});
|
|
84291
|
-
return projection_3;
|
|
84481
|
+
return result.PasswordData.length > 0;
|
|
84292
84482
|
}, "returnComparator");
|
|
84293
|
-
|
|
84294
|
-
for (const element_4 of returnComparator()) {
|
|
84295
|
-
allStringEq_5 = allStringEq_5 && element_4 == "available";
|
|
84296
|
-
}
|
|
84297
|
-
if (allStringEq_5) {
|
|
84483
|
+
if (returnComparator() == true) {
|
|
84298
84484
|
return { state: import_util_waiter.WaiterState.SUCCESS, reason };
|
|
84299
84485
|
}
|
|
84300
84486
|
} catch (e) {
|
|
@@ -84304,34 +84490,34 @@ var checkState25 = /* @__PURE__ */ __name(async (client, input) => {
|
|
|
84304
84490
|
}
|
|
84305
84491
|
return { state: import_util_waiter.WaiterState.RETRY, reason };
|
|
84306
84492
|
}, "checkState");
|
|
84307
|
-
var
|
|
84493
|
+
var waitForPasswordDataAvailable = /* @__PURE__ */ __name(async (params, input) => {
|
|
84308
84494
|
const serviceDefaults = { minDelay: 15, maxDelay: 120 };
|
|
84309
|
-
return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input,
|
|
84310
|
-
}, "
|
|
84311
|
-
var
|
|
84495
|
+
return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState28);
|
|
84496
|
+
}, "waitForPasswordDataAvailable");
|
|
84497
|
+
var waitUntilPasswordDataAvailable = /* @__PURE__ */ __name(async (params, input) => {
|
|
84312
84498
|
const serviceDefaults = { minDelay: 15, maxDelay: 120 };
|
|
84313
|
-
const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input,
|
|
84499
|
+
const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState28);
|
|
84314
84500
|
return (0, import_util_waiter.checkExceptions)(result);
|
|
84315
|
-
}, "
|
|
84501
|
+
}, "waitUntilPasswordDataAvailable");
|
|
84316
84502
|
|
|
84317
|
-
// src/waiters/
|
|
84503
|
+
// src/waiters/waitForSubnetAvailable.ts
|
|
84318
84504
|
|
|
84319
|
-
var
|
|
84505
|
+
var checkState29 = /* @__PURE__ */ __name(async (client, input) => {
|
|
84320
84506
|
let reason;
|
|
84321
84507
|
try {
|
|
84322
|
-
const result = await client.send(new
|
|
84508
|
+
const result = await client.send(new DescribeSubnetsCommand(input));
|
|
84323
84509
|
reason = result;
|
|
84324
84510
|
try {
|
|
84325
84511
|
const returnComparator = /* @__PURE__ */ __name(() => {
|
|
84326
|
-
const flat_1 = [].concat(...result.
|
|
84512
|
+
const flat_1 = [].concat(...result.Subnets);
|
|
84327
84513
|
const projection_3 = flat_1.map((element_2) => {
|
|
84328
|
-
return element_2.
|
|
84514
|
+
return element_2.State;
|
|
84329
84515
|
});
|
|
84330
84516
|
return projection_3;
|
|
84331
84517
|
}, "returnComparator");
|
|
84332
84518
|
let allStringEq_5 = returnComparator().length > 0;
|
|
84333
84519
|
for (const element_4 of returnComparator()) {
|
|
84334
|
-
allStringEq_5 = allStringEq_5 && element_4 == "
|
|
84520
|
+
allStringEq_5 = allStringEq_5 && element_4 == "available";
|
|
84335
84521
|
}
|
|
84336
84522
|
if (allStringEq_5) {
|
|
84337
84523
|
return { state: import_util_waiter.WaiterState.SUCCESS, reason };
|
|
@@ -84343,50 +84529,19 @@ var checkState26 = /* @__PURE__ */ __name(async (client, input) => {
|
|
|
84343
84529
|
}
|
|
84344
84530
|
return { state: import_util_waiter.WaiterState.RETRY, reason };
|
|
84345
84531
|
}, "checkState");
|
|
84346
|
-
var
|
|
84347
|
-
const serviceDefaults = { minDelay: 15, maxDelay: 120 };
|
|
84348
|
-
return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState26);
|
|
84349
|
-
}, "waitForSystemStatusOk");
|
|
84350
|
-
var waitUntilSystemStatusOk = /* @__PURE__ */ __name(async (params, input) => {
|
|
84351
|
-
const serviceDefaults = { minDelay: 15, maxDelay: 120 };
|
|
84352
|
-
const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState26);
|
|
84353
|
-
return (0, import_util_waiter.checkExceptions)(result);
|
|
84354
|
-
}, "waitUntilSystemStatusOk");
|
|
84355
|
-
|
|
84356
|
-
// src/waiters/waitForPasswordDataAvailable.ts
|
|
84357
|
-
|
|
84358
|
-
var checkState27 = /* @__PURE__ */ __name(async (client, input) => {
|
|
84359
|
-
let reason;
|
|
84360
|
-
try {
|
|
84361
|
-
const result = await client.send(new GetPasswordDataCommand(input));
|
|
84362
|
-
reason = result;
|
|
84363
|
-
try {
|
|
84364
|
-
const returnComparator = /* @__PURE__ */ __name(() => {
|
|
84365
|
-
return result.PasswordData.length > 0;
|
|
84366
|
-
}, "returnComparator");
|
|
84367
|
-
if (returnComparator() == true) {
|
|
84368
|
-
return { state: import_util_waiter.WaiterState.SUCCESS, reason };
|
|
84369
|
-
}
|
|
84370
|
-
} catch (e) {
|
|
84371
|
-
}
|
|
84372
|
-
} catch (exception) {
|
|
84373
|
-
reason = exception;
|
|
84374
|
-
}
|
|
84375
|
-
return { state: import_util_waiter.WaiterState.RETRY, reason };
|
|
84376
|
-
}, "checkState");
|
|
84377
|
-
var waitForPasswordDataAvailable = /* @__PURE__ */ __name(async (params, input) => {
|
|
84532
|
+
var waitForSubnetAvailable = /* @__PURE__ */ __name(async (params, input) => {
|
|
84378
84533
|
const serviceDefaults = { minDelay: 15, maxDelay: 120 };
|
|
84379
|
-
return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input,
|
|
84380
|
-
}, "
|
|
84381
|
-
var
|
|
84534
|
+
return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState29);
|
|
84535
|
+
}, "waitForSubnetAvailable");
|
|
84536
|
+
var waitUntilSubnetAvailable = /* @__PURE__ */ __name(async (params, input) => {
|
|
84382
84537
|
const serviceDefaults = { minDelay: 15, maxDelay: 120 };
|
|
84383
|
-
const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input,
|
|
84538
|
+
const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState29);
|
|
84384
84539
|
return (0, import_util_waiter.checkExceptions)(result);
|
|
84385
|
-
}, "
|
|
84540
|
+
}, "waitUntilSubnetAvailable");
|
|
84386
84541
|
|
|
84387
84542
|
// src/waiters/waitForVolumeAvailable.ts
|
|
84388
84543
|
|
|
84389
|
-
var
|
|
84544
|
+
var checkState30 = /* @__PURE__ */ __name(async (client, input) => {
|
|
84390
84545
|
let reason;
|
|
84391
84546
|
try {
|
|
84392
84547
|
const result = await client.send(new DescribeVolumesCommand(input));
|
|
@@ -84430,17 +84585,17 @@ var checkState28 = /* @__PURE__ */ __name(async (client, input) => {
|
|
|
84430
84585
|
}, "checkState");
|
|
84431
84586
|
var waitForVolumeAvailable = /* @__PURE__ */ __name(async (params, input) => {
|
|
84432
84587
|
const serviceDefaults = { minDelay: 15, maxDelay: 120 };
|
|
84433
|
-
return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input,
|
|
84588
|
+
return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState30);
|
|
84434
84589
|
}, "waitForVolumeAvailable");
|
|
84435
84590
|
var waitUntilVolumeAvailable = /* @__PURE__ */ __name(async (params, input) => {
|
|
84436
84591
|
const serviceDefaults = { minDelay: 15, maxDelay: 120 };
|
|
84437
|
-
const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input,
|
|
84592
|
+
const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState30);
|
|
84438
84593
|
return (0, import_util_waiter.checkExceptions)(result);
|
|
84439
84594
|
}, "waitUntilVolumeAvailable");
|
|
84440
84595
|
|
|
84441
84596
|
// src/waiters/waitForVolumeDeleted.ts
|
|
84442
84597
|
|
|
84443
|
-
var
|
|
84598
|
+
var checkState31 = /* @__PURE__ */ __name(async (client, input) => {
|
|
84444
84599
|
let reason;
|
|
84445
84600
|
try {
|
|
84446
84601
|
const result = await client.send(new DescribeVolumesCommand(input));
|
|
@@ -84472,17 +84627,17 @@ var checkState29 = /* @__PURE__ */ __name(async (client, input) => {
|
|
|
84472
84627
|
}, "checkState");
|
|
84473
84628
|
var waitForVolumeDeleted = /* @__PURE__ */ __name(async (params, input) => {
|
|
84474
84629
|
const serviceDefaults = { minDelay: 15, maxDelay: 120 };
|
|
84475
|
-
return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input,
|
|
84630
|
+
return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState31);
|
|
84476
84631
|
}, "waitForVolumeDeleted");
|
|
84477
84632
|
var waitUntilVolumeDeleted = /* @__PURE__ */ __name(async (params, input) => {
|
|
84478
84633
|
const serviceDefaults = { minDelay: 15, maxDelay: 120 };
|
|
84479
|
-
const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input,
|
|
84634
|
+
const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState31);
|
|
84480
84635
|
return (0, import_util_waiter.checkExceptions)(result);
|
|
84481
84636
|
}, "waitUntilVolumeDeleted");
|
|
84482
84637
|
|
|
84483
84638
|
// src/waiters/waitForVolumeInUse.ts
|
|
84484
84639
|
|
|
84485
|
-
var
|
|
84640
|
+
var checkState32 = /* @__PURE__ */ __name(async (client, input) => {
|
|
84486
84641
|
let reason;
|
|
84487
84642
|
try {
|
|
84488
84643
|
const result = await client.send(new DescribeVolumesCommand(input));
|
|
@@ -84526,17 +84681,17 @@ var checkState30 = /* @__PURE__ */ __name(async (client, input) => {
|
|
|
84526
84681
|
}, "checkState");
|
|
84527
84682
|
var waitForVolumeInUse = /* @__PURE__ */ __name(async (params, input) => {
|
|
84528
84683
|
const serviceDefaults = { minDelay: 15, maxDelay: 120 };
|
|
84529
|
-
return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input,
|
|
84684
|
+
return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState32);
|
|
84530
84685
|
}, "waitForVolumeInUse");
|
|
84531
84686
|
var waitUntilVolumeInUse = /* @__PURE__ */ __name(async (params, input) => {
|
|
84532
84687
|
const serviceDefaults = { minDelay: 15, maxDelay: 120 };
|
|
84533
|
-
const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input,
|
|
84688
|
+
const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState32);
|
|
84534
84689
|
return (0, import_util_waiter.checkExceptions)(result);
|
|
84535
84690
|
}, "waitUntilVolumeInUse");
|
|
84536
84691
|
|
|
84537
84692
|
// src/waiters/waitForVpcAvailable.ts
|
|
84538
84693
|
|
|
84539
|
-
var
|
|
84694
|
+
var checkState33 = /* @__PURE__ */ __name(async (client, input) => {
|
|
84540
84695
|
let reason;
|
|
84541
84696
|
try {
|
|
84542
84697
|
const result = await client.send(new DescribeVpcsCommand(input));
|
|
@@ -84565,17 +84720,17 @@ var checkState31 = /* @__PURE__ */ __name(async (client, input) => {
|
|
|
84565
84720
|
}, "checkState");
|
|
84566
84721
|
var waitForVpcAvailable = /* @__PURE__ */ __name(async (params, input) => {
|
|
84567
84722
|
const serviceDefaults = { minDelay: 15, maxDelay: 120 };
|
|
84568
|
-
return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input,
|
|
84723
|
+
return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState33);
|
|
84569
84724
|
}, "waitForVpcAvailable");
|
|
84570
84725
|
var waitUntilVpcAvailable = /* @__PURE__ */ __name(async (params, input) => {
|
|
84571
84726
|
const serviceDefaults = { minDelay: 15, maxDelay: 120 };
|
|
84572
|
-
const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input,
|
|
84727
|
+
const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState33);
|
|
84573
84728
|
return (0, import_util_waiter.checkExceptions)(result);
|
|
84574
84729
|
}, "waitUntilVpcAvailable");
|
|
84575
84730
|
|
|
84576
84731
|
// src/waiters/waitForVpcExists.ts
|
|
84577
84732
|
|
|
84578
|
-
var
|
|
84733
|
+
var checkState34 = /* @__PURE__ */ __name(async (client, input) => {
|
|
84579
84734
|
let reason;
|
|
84580
84735
|
try {
|
|
84581
84736
|
const result = await client.send(new DescribeVpcsCommand(input));
|
|
@@ -84591,17 +84746,17 @@ var checkState32 = /* @__PURE__ */ __name(async (client, input) => {
|
|
|
84591
84746
|
}, "checkState");
|
|
84592
84747
|
var waitForVpcExists = /* @__PURE__ */ __name(async (params, input) => {
|
|
84593
84748
|
const serviceDefaults = { minDelay: 1, maxDelay: 120 };
|
|
84594
|
-
return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input,
|
|
84749
|
+
return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState34);
|
|
84595
84750
|
}, "waitForVpcExists");
|
|
84596
84751
|
var waitUntilVpcExists = /* @__PURE__ */ __name(async (params, input) => {
|
|
84597
84752
|
const serviceDefaults = { minDelay: 1, maxDelay: 120 };
|
|
84598
|
-
const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input,
|
|
84753
|
+
const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState34);
|
|
84599
84754
|
return (0, import_util_waiter.checkExceptions)(result);
|
|
84600
84755
|
}, "waitUntilVpcExists");
|
|
84601
84756
|
|
|
84602
84757
|
// src/waiters/waitForVpcPeeringConnectionDeleted.ts
|
|
84603
84758
|
|
|
84604
|
-
var
|
|
84759
|
+
var checkState35 = /* @__PURE__ */ __name(async (client, input) => {
|
|
84605
84760
|
let reason;
|
|
84606
84761
|
try {
|
|
84607
84762
|
const result = await client.send(new DescribeVpcPeeringConnectionsCommand(input));
|
|
@@ -84633,17 +84788,17 @@ var checkState33 = /* @__PURE__ */ __name(async (client, input) => {
|
|
|
84633
84788
|
}, "checkState");
|
|
84634
84789
|
var waitForVpcPeeringConnectionDeleted = /* @__PURE__ */ __name(async (params, input) => {
|
|
84635
84790
|
const serviceDefaults = { minDelay: 15, maxDelay: 120 };
|
|
84636
|
-
return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input,
|
|
84791
|
+
return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState35);
|
|
84637
84792
|
}, "waitForVpcPeeringConnectionDeleted");
|
|
84638
84793
|
var waitUntilVpcPeeringConnectionDeleted = /* @__PURE__ */ __name(async (params, input) => {
|
|
84639
84794
|
const serviceDefaults = { minDelay: 15, maxDelay: 120 };
|
|
84640
|
-
const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input,
|
|
84795
|
+
const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState35);
|
|
84641
84796
|
return (0, import_util_waiter.checkExceptions)(result);
|
|
84642
84797
|
}, "waitUntilVpcPeeringConnectionDeleted");
|
|
84643
84798
|
|
|
84644
84799
|
// src/waiters/waitForVpcPeeringConnectionExists.ts
|
|
84645
84800
|
|
|
84646
|
-
var
|
|
84801
|
+
var checkState36 = /* @__PURE__ */ __name(async (client, input) => {
|
|
84647
84802
|
let reason;
|
|
84648
84803
|
try {
|
|
84649
84804
|
const result = await client.send(new DescribeVpcPeeringConnectionsCommand(input));
|
|
@@ -84659,17 +84814,17 @@ var checkState34 = /* @__PURE__ */ __name(async (client, input) => {
|
|
|
84659
84814
|
}, "checkState");
|
|
84660
84815
|
var waitForVpcPeeringConnectionExists = /* @__PURE__ */ __name(async (params, input) => {
|
|
84661
84816
|
const serviceDefaults = { minDelay: 15, maxDelay: 120 };
|
|
84662
|
-
return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input,
|
|
84817
|
+
return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState36);
|
|
84663
84818
|
}, "waitForVpcPeeringConnectionExists");
|
|
84664
84819
|
var waitUntilVpcPeeringConnectionExists = /* @__PURE__ */ __name(async (params, input) => {
|
|
84665
84820
|
const serviceDefaults = { minDelay: 15, maxDelay: 120 };
|
|
84666
|
-
const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input,
|
|
84821
|
+
const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState36);
|
|
84667
84822
|
return (0, import_util_waiter.checkExceptions)(result);
|
|
84668
84823
|
}, "waitUntilVpcPeeringConnectionExists");
|
|
84669
84824
|
|
|
84670
84825
|
// src/waiters/waitForVpnConnectionAvailable.ts
|
|
84671
84826
|
|
|
84672
|
-
var
|
|
84827
|
+
var checkState37 = /* @__PURE__ */ __name(async (client, input) => {
|
|
84673
84828
|
let reason;
|
|
84674
84829
|
try {
|
|
84675
84830
|
const result = await client.send(new DescribeVpnConnectionsCommand(input));
|
|
@@ -84728,17 +84883,17 @@ var checkState35 = /* @__PURE__ */ __name(async (client, input) => {
|
|
|
84728
84883
|
}, "checkState");
|
|
84729
84884
|
var waitForVpnConnectionAvailable = /* @__PURE__ */ __name(async (params, input) => {
|
|
84730
84885
|
const serviceDefaults = { minDelay: 15, maxDelay: 120 };
|
|
84731
|
-
return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input,
|
|
84886
|
+
return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState37);
|
|
84732
84887
|
}, "waitForVpnConnectionAvailable");
|
|
84733
84888
|
var waitUntilVpnConnectionAvailable = /* @__PURE__ */ __name(async (params, input) => {
|
|
84734
84889
|
const serviceDefaults = { minDelay: 15, maxDelay: 120 };
|
|
84735
|
-
const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input,
|
|
84890
|
+
const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState37);
|
|
84736
84891
|
return (0, import_util_waiter.checkExceptions)(result);
|
|
84737
84892
|
}, "waitUntilVpnConnectionAvailable");
|
|
84738
84893
|
|
|
84739
84894
|
// src/waiters/waitForVpnConnectionDeleted.ts
|
|
84740
84895
|
|
|
84741
|
-
var
|
|
84896
|
+
var checkState38 = /* @__PURE__ */ __name(async (client, input) => {
|
|
84742
84897
|
let reason;
|
|
84743
84898
|
try {
|
|
84744
84899
|
const result = await client.send(new DescribeVpnConnectionsCommand(input));
|
|
@@ -84782,11 +84937,11 @@ var checkState36 = /* @__PURE__ */ __name(async (client, input) => {
|
|
|
84782
84937
|
}, "checkState");
|
|
84783
84938
|
var waitForVpnConnectionDeleted = /* @__PURE__ */ __name(async (params, input) => {
|
|
84784
84939
|
const serviceDefaults = { minDelay: 15, maxDelay: 120 };
|
|
84785
|
-
return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input,
|
|
84940
|
+
return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState38);
|
|
84786
84941
|
}, "waitForVpnConnectionDeleted");
|
|
84787
84942
|
var waitUntilVpnConnectionDeleted = /* @__PURE__ */ __name(async (params, input) => {
|
|
84788
84943
|
const serviceDefaults = { minDelay: 15, maxDelay: 120 };
|
|
84789
|
-
const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input,
|
|
84944
|
+
const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState38);
|
|
84790
84945
|
return (0, import_util_waiter.checkExceptions)(result);
|
|
84791
84946
|
}, "waitUntilVpnConnectionDeleted");
|
|
84792
84947
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -85674,18 +85829,22 @@ var waitUntilVpnConnectionDeleted = /* @__PURE__ */ __name(async (params, input)
|
|
|
85674
85829
|
waitUntilSnapshotImported,
|
|
85675
85830
|
waitForSecurityGroupExists,
|
|
85676
85831
|
waitUntilSecurityGroupExists,
|
|
85832
|
+
waitForSecurityGroupVpcAssociationAssociated,
|
|
85833
|
+
waitUntilSecurityGroupVpcAssociationAssociated,
|
|
85834
|
+
waitForSecurityGroupVpcAssociationDisassociated,
|
|
85835
|
+
waitUntilSecurityGroupVpcAssociationDisassociated,
|
|
85677
85836
|
waitForSnapshotCompleted,
|
|
85678
85837
|
waitUntilSnapshotCompleted,
|
|
85679
85838
|
waitForSpotInstanceRequestFulfilled,
|
|
85680
85839
|
waitUntilSpotInstanceRequestFulfilled,
|
|
85681
|
-
waitForStoreImageTaskComplete,
|
|
85682
|
-
waitUntilStoreImageTaskComplete,
|
|
85683
|
-
waitForSubnetAvailable,
|
|
85684
|
-
waitUntilSubnetAvailable,
|
|
85685
85840
|
waitForSystemStatusOk,
|
|
85686
85841
|
waitUntilSystemStatusOk,
|
|
85842
|
+
waitForStoreImageTaskComplete,
|
|
85843
|
+
waitUntilStoreImageTaskComplete,
|
|
85687
85844
|
waitForPasswordDataAvailable,
|
|
85688
85845
|
waitUntilPasswordDataAvailable,
|
|
85846
|
+
waitForSubnetAvailable,
|
|
85847
|
+
waitUntilSubnetAvailable,
|
|
85689
85848
|
waitForVolumeAvailable,
|
|
85690
85849
|
waitUntilVolumeAvailable,
|
|
85691
85850
|
waitForVolumeDeleted,
|
|
@@ -57925,6 +57925,9 @@ const de_SecurityGroupVpcAssociation = (output, context) => {
|
|
|
57925
57925
|
if (output[_sRt] != null) {
|
|
57926
57926
|
contents[_SRt] = __expectString(output[_sRt]);
|
|
57927
57927
|
}
|
|
57928
|
+
if (output[_gOI] != null) {
|
|
57929
|
+
contents[_GOI] = __expectString(output[_gOI]);
|
|
57930
|
+
}
|
|
57928
57931
|
return contents;
|
|
57929
57932
|
};
|
|
57930
57933
|
const de_SecurityGroupVpcAssociationList = (output, context) => {
|
package/dist-es/waiters/index.js
CHANGED
|
@@ -19,12 +19,14 @@ export * from "./waitForNatGatewayDeleted";
|
|
|
19
19
|
export * from "./waitForNetworkInterfaceAvailable";
|
|
20
20
|
export * from "./waitForSnapshotImported";
|
|
21
21
|
export * from "./waitForSecurityGroupExists";
|
|
22
|
+
export * from "./waitForSecurityGroupVpcAssociationAssociated";
|
|
23
|
+
export * from "./waitForSecurityGroupVpcAssociationDisassociated";
|
|
22
24
|
export * from "./waitForSnapshotCompleted";
|
|
23
25
|
export * from "./waitForSpotInstanceRequestFulfilled";
|
|
24
|
-
export * from "./waitForStoreImageTaskComplete";
|
|
25
|
-
export * from "./waitForSubnetAvailable";
|
|
26
26
|
export * from "./waitForSystemStatusOk";
|
|
27
|
+
export * from "./waitForStoreImageTaskComplete";
|
|
27
28
|
export * from "./waitForPasswordDataAvailable";
|
|
29
|
+
export * from "./waitForSubnetAvailable";
|
|
28
30
|
export * from "./waitForVolumeAvailable";
|
|
29
31
|
export * from "./waitForVolumeDeleted";
|
|
30
32
|
export * from "./waitForVolumeInUse";
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { checkExceptions, createWaiter, WaiterState } from "@smithy/util-waiter";
|
|
2
|
+
import { DescribeSecurityGroupVpcAssociationsCommand, } from "../commands/DescribeSecurityGroupVpcAssociationsCommand";
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
const result = await client.send(new DescribeSecurityGroupVpcAssociationsCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
try {
|
|
9
|
+
const returnComparator = () => {
|
|
10
|
+
const flat_1 = [].concat(...result.SecurityGroupVpcAssociations);
|
|
11
|
+
const projection_3 = flat_1.map((element_2) => {
|
|
12
|
+
return element_2.State;
|
|
13
|
+
});
|
|
14
|
+
return projection_3;
|
|
15
|
+
};
|
|
16
|
+
let allStringEq_5 = returnComparator().length > 0;
|
|
17
|
+
for (const element_4 of returnComparator()) {
|
|
18
|
+
allStringEq_5 = allStringEq_5 && element_4 == "associated";
|
|
19
|
+
}
|
|
20
|
+
if (allStringEq_5) {
|
|
21
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
catch (e) { }
|
|
25
|
+
try {
|
|
26
|
+
const returnComparator = () => {
|
|
27
|
+
const flat_1 = [].concat(...result.SecurityGroupVpcAssociations);
|
|
28
|
+
const projection_3 = flat_1.map((element_2) => {
|
|
29
|
+
return element_2.State;
|
|
30
|
+
});
|
|
31
|
+
return projection_3;
|
|
32
|
+
};
|
|
33
|
+
for (const anyStringEq_4 of returnComparator()) {
|
|
34
|
+
if (anyStringEq_4 == "associating") {
|
|
35
|
+
return { state: WaiterState.RETRY, reason };
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
catch (e) { }
|
|
40
|
+
try {
|
|
41
|
+
const returnComparator = () => {
|
|
42
|
+
const flat_1 = [].concat(...result.SecurityGroupVpcAssociations);
|
|
43
|
+
const projection_3 = flat_1.map((element_2) => {
|
|
44
|
+
return element_2.State;
|
|
45
|
+
});
|
|
46
|
+
return projection_3;
|
|
47
|
+
};
|
|
48
|
+
for (const anyStringEq_4 of returnComparator()) {
|
|
49
|
+
if (anyStringEq_4 == "association-failed") {
|
|
50
|
+
return { state: WaiterState.FAILURE, reason };
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
catch (e) { }
|
|
55
|
+
}
|
|
56
|
+
catch (exception) {
|
|
57
|
+
reason = exception;
|
|
58
|
+
}
|
|
59
|
+
return { state: WaiterState.RETRY, reason };
|
|
60
|
+
};
|
|
61
|
+
export const waitForSecurityGroupVpcAssociationAssociated = async (params, input) => {
|
|
62
|
+
const serviceDefaults = { minDelay: 10, maxDelay: 120 };
|
|
63
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
64
|
+
};
|
|
65
|
+
export const waitUntilSecurityGroupVpcAssociationAssociated = async (params, input) => {
|
|
66
|
+
const serviceDefaults = { minDelay: 10, maxDelay: 120 };
|
|
67
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
68
|
+
return checkExceptions(result);
|
|
69
|
+
};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { checkExceptions, createWaiter, WaiterState } from "@smithy/util-waiter";
|
|
2
|
+
import { DescribeSecurityGroupVpcAssociationsCommand, } from "../commands/DescribeSecurityGroupVpcAssociationsCommand";
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
const result = await client.send(new DescribeSecurityGroupVpcAssociationsCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
try {
|
|
9
|
+
const returnComparator = () => {
|
|
10
|
+
const flat_1 = [].concat(...result.SecurityGroupVpcAssociations);
|
|
11
|
+
const projection_3 = flat_1.map((element_2) => {
|
|
12
|
+
return element_2.State;
|
|
13
|
+
});
|
|
14
|
+
return projection_3;
|
|
15
|
+
};
|
|
16
|
+
let allStringEq_5 = returnComparator().length > 0;
|
|
17
|
+
for (const element_4 of returnComparator()) {
|
|
18
|
+
allStringEq_5 = allStringEq_5 && element_4 == "disassociated";
|
|
19
|
+
}
|
|
20
|
+
if (allStringEq_5) {
|
|
21
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
catch (e) { }
|
|
25
|
+
try {
|
|
26
|
+
const returnComparator = () => {
|
|
27
|
+
const flat_1 = [].concat(...result.SecurityGroupVpcAssociations);
|
|
28
|
+
const projection_3 = flat_1.map((element_2) => {
|
|
29
|
+
return element_2.State;
|
|
30
|
+
});
|
|
31
|
+
return projection_3;
|
|
32
|
+
};
|
|
33
|
+
for (const anyStringEq_4 of returnComparator()) {
|
|
34
|
+
if (anyStringEq_4 == "disassociating") {
|
|
35
|
+
return { state: WaiterState.RETRY, reason };
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
catch (e) { }
|
|
40
|
+
try {
|
|
41
|
+
const returnComparator = () => {
|
|
42
|
+
const flat_1 = [].concat(...result.SecurityGroupVpcAssociations);
|
|
43
|
+
const projection_3 = flat_1.map((element_2) => {
|
|
44
|
+
return element_2.State;
|
|
45
|
+
});
|
|
46
|
+
return projection_3;
|
|
47
|
+
};
|
|
48
|
+
for (const anyStringEq_4 of returnComparator()) {
|
|
49
|
+
if (anyStringEq_4 == "disassociation-failed") {
|
|
50
|
+
return { state: WaiterState.FAILURE, reason };
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
catch (e) { }
|
|
55
|
+
try {
|
|
56
|
+
const returnComparator = () => {
|
|
57
|
+
const flat_1 = [].concat(...result.SecurityGroupVpcAssociations);
|
|
58
|
+
return flat_1.length == 0.0;
|
|
59
|
+
};
|
|
60
|
+
if (returnComparator() == true) {
|
|
61
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
catch (e) { }
|
|
65
|
+
}
|
|
66
|
+
catch (exception) {
|
|
67
|
+
reason = exception;
|
|
68
|
+
}
|
|
69
|
+
return { state: WaiterState.RETRY, reason };
|
|
70
|
+
};
|
|
71
|
+
export const waitForSecurityGroupVpcAssociationDisassociated = async (params, input) => {
|
|
72
|
+
const serviceDefaults = { minDelay: 10, maxDelay: 120 };
|
|
73
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
74
|
+
};
|
|
75
|
+
export const waitUntilSecurityGroupVpcAssociationDisassociated = async (params, input) => {
|
|
76
|
+
const serviceDefaults = { minDelay: 10, maxDelay: 120 };
|
|
77
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
78
|
+
return checkExceptions(result);
|
|
79
|
+
};
|
|
@@ -37,7 +37,7 @@ declare const AssociateSecurityGroupVpcCommand_base: {
|
|
|
37
37
|
* <p>You can associate the security group with another VPC if your account owns the VPC or if the VPC was shared with you.</p>
|
|
38
38
|
* </li>
|
|
39
39
|
* <li>
|
|
40
|
-
* <p>You must own the security group
|
|
40
|
+
* <p>You must own the security group.</p>
|
|
41
41
|
* </li>
|
|
42
42
|
* <li>
|
|
43
43
|
* <p>You cannot use this feature with default security groups.</p>
|
|
@@ -57,6 +57,7 @@ declare const DescribeSecurityGroupVpcAssociationsCommand_base: {
|
|
|
57
57
|
* // VpcOwnerId: "STRING_VALUE",
|
|
58
58
|
* // State: "associating" || "associated" || "association-failed" || "disassociating" || "disassociated" || "disassociation-failed",
|
|
59
59
|
* // StateReason: "STRING_VALUE",
|
|
60
|
+
* // GroupOwnerId: "STRING_VALUE",
|
|
60
61
|
* // },
|
|
61
62
|
* // ],
|
|
62
63
|
* // NextToken: "STRING_VALUE",
|
|
@@ -4947,6 +4947,10 @@ export interface DescribeSecurityGroupVpcAssociationsRequest {
|
|
|
4947
4947
|
* </li>
|
|
4948
4948
|
* <li>
|
|
4949
4949
|
* <p>
|
|
4950
|
+
* <code>group-owner-id</code>: The group owner ID.</p>
|
|
4951
|
+
* </li>
|
|
4952
|
+
* <li>
|
|
4953
|
+
* <p>
|
|
4950
4954
|
* <code>vpc-id</code>: The ID of the associated VPC.</p>
|
|
4951
4955
|
* </li>
|
|
4952
4956
|
* <li>
|
|
@@ -5023,6 +5027,11 @@ export interface SecurityGroupVpcAssociation {
|
|
|
5023
5027
|
* @public
|
|
5024
5028
|
*/
|
|
5025
5029
|
StateReason?: string | undefined;
|
|
5030
|
+
/**
|
|
5031
|
+
* <p>The Amazon Web Services account ID of the owner of the security group.</p>
|
|
5032
|
+
* @public
|
|
5033
|
+
*/
|
|
5034
|
+
GroupOwnerId?: string | undefined;
|
|
5026
5035
|
}
|
|
5027
5036
|
/**
|
|
5028
5037
|
* @public
|
|
@@ -948,6 +948,7 @@ export interface SecurityGroupVpcAssociation {
|
|
|
948
948
|
VpcOwnerId?: string | undefined;
|
|
949
949
|
State?: SecurityGroupVpcAssociationState | undefined;
|
|
950
950
|
StateReason?: string | undefined;
|
|
951
|
+
GroupOwnerId?: string | undefined;
|
|
951
952
|
}
|
|
952
953
|
export interface DescribeSecurityGroupVpcAssociationsResult {
|
|
953
954
|
SecurityGroupVpcAssociations?: SecurityGroupVpcAssociation[] | undefined;
|
|
@@ -19,12 +19,14 @@ export * from "./waitForNatGatewayDeleted";
|
|
|
19
19
|
export * from "./waitForNetworkInterfaceAvailable";
|
|
20
20
|
export * from "./waitForSnapshotImported";
|
|
21
21
|
export * from "./waitForSecurityGroupExists";
|
|
22
|
+
export * from "./waitForSecurityGroupVpcAssociationAssociated";
|
|
23
|
+
export * from "./waitForSecurityGroupVpcAssociationDisassociated";
|
|
22
24
|
export * from "./waitForSnapshotCompleted";
|
|
23
25
|
export * from "./waitForSpotInstanceRequestFulfilled";
|
|
24
|
-
export * from "./waitForStoreImageTaskComplete";
|
|
25
|
-
export * from "./waitForSubnetAvailable";
|
|
26
26
|
export * from "./waitForSystemStatusOk";
|
|
27
|
+
export * from "./waitForStoreImageTaskComplete";
|
|
27
28
|
export * from "./waitForPasswordDataAvailable";
|
|
29
|
+
export * from "./waitForSubnetAvailable";
|
|
28
30
|
export * from "./waitForVolumeAvailable";
|
|
29
31
|
export * from "./waitForVolumeDeleted";
|
|
30
32
|
export * from "./waitForVolumeInUse";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
|
|
2
|
+
import { DescribeSecurityGroupVpcAssociationsCommandInput } from "../commands/DescribeSecurityGroupVpcAssociationsCommand";
|
|
3
|
+
import { EC2Client } from "../EC2Client";
|
|
4
|
+
export declare const waitForSecurityGroupVpcAssociationAssociated: (
|
|
5
|
+
params: WaiterConfiguration<EC2Client>,
|
|
6
|
+
input: DescribeSecurityGroupVpcAssociationsCommandInput
|
|
7
|
+
) => Promise<WaiterResult>;
|
|
8
|
+
export declare const waitUntilSecurityGroupVpcAssociationAssociated: (
|
|
9
|
+
params: WaiterConfiguration<EC2Client>,
|
|
10
|
+
input: DescribeSecurityGroupVpcAssociationsCommandInput
|
|
11
|
+
) => Promise<WaiterResult>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
|
|
2
|
+
import { DescribeSecurityGroupVpcAssociationsCommandInput } from "../commands/DescribeSecurityGroupVpcAssociationsCommand";
|
|
3
|
+
import { EC2Client } from "../EC2Client";
|
|
4
|
+
export declare const waitForSecurityGroupVpcAssociationDisassociated: (
|
|
5
|
+
params: WaiterConfiguration<EC2Client>,
|
|
6
|
+
input: DescribeSecurityGroupVpcAssociationsCommandInput
|
|
7
|
+
) => Promise<WaiterResult>;
|
|
8
|
+
export declare const waitUntilSecurityGroupVpcAssociationDisassociated: (
|
|
9
|
+
params: WaiterConfiguration<EC2Client>,
|
|
10
|
+
input: DescribeSecurityGroupVpcAssociationsCommandInput
|
|
11
|
+
) => Promise<WaiterResult>;
|
|
@@ -19,12 +19,14 @@ export * from "./waitForNatGatewayDeleted";
|
|
|
19
19
|
export * from "./waitForNetworkInterfaceAvailable";
|
|
20
20
|
export * from "./waitForSnapshotImported";
|
|
21
21
|
export * from "./waitForSecurityGroupExists";
|
|
22
|
+
export * from "./waitForSecurityGroupVpcAssociationAssociated";
|
|
23
|
+
export * from "./waitForSecurityGroupVpcAssociationDisassociated";
|
|
22
24
|
export * from "./waitForSnapshotCompleted";
|
|
23
25
|
export * from "./waitForSpotInstanceRequestFulfilled";
|
|
24
|
-
export * from "./waitForStoreImageTaskComplete";
|
|
25
|
-
export * from "./waitForSubnetAvailable";
|
|
26
26
|
export * from "./waitForSystemStatusOk";
|
|
27
|
+
export * from "./waitForStoreImageTaskComplete";
|
|
27
28
|
export * from "./waitForPasswordDataAvailable";
|
|
29
|
+
export * from "./waitForSubnetAvailable";
|
|
28
30
|
export * from "./waitForVolumeAvailable";
|
|
29
31
|
export * from "./waitForVolumeDeleted";
|
|
30
32
|
export * from "./waitForVolumeInUse";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
|
|
2
|
+
import { DescribeSecurityGroupVpcAssociationsCommandInput } from "../commands/DescribeSecurityGroupVpcAssociationsCommand";
|
|
3
|
+
import { EC2Client } from "../EC2Client";
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* @deprecated Use waitUntilSecurityGroupVpcAssociationAssociated instead. waitForSecurityGroupVpcAssociationAssociated does not throw error in non-success cases.
|
|
7
|
+
*/
|
|
8
|
+
export declare const waitForSecurityGroupVpcAssociationAssociated: (params: WaiterConfiguration<EC2Client>, input: DescribeSecurityGroupVpcAssociationsCommandInput) => Promise<WaiterResult>;
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
* @param params - Waiter configuration options.
|
|
12
|
+
* @param input - The input to DescribeSecurityGroupVpcAssociationsCommand for polling.
|
|
13
|
+
*/
|
|
14
|
+
export declare const waitUntilSecurityGroupVpcAssociationAssociated: (params: WaiterConfiguration<EC2Client>, input: DescribeSecurityGroupVpcAssociationsCommandInput) => Promise<WaiterResult>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
|
|
2
|
+
import { DescribeSecurityGroupVpcAssociationsCommandInput } from "../commands/DescribeSecurityGroupVpcAssociationsCommand";
|
|
3
|
+
import { EC2Client } from "../EC2Client";
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* @deprecated Use waitUntilSecurityGroupVpcAssociationDisassociated instead. waitForSecurityGroupVpcAssociationDisassociated does not throw error in non-success cases.
|
|
7
|
+
*/
|
|
8
|
+
export declare const waitForSecurityGroupVpcAssociationDisassociated: (params: WaiterConfiguration<EC2Client>, input: DescribeSecurityGroupVpcAssociationsCommandInput) => Promise<WaiterResult>;
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
* @param params - Waiter configuration options.
|
|
12
|
+
* @param input - The input to DescribeSecurityGroupVpcAssociationsCommand for polling.
|
|
13
|
+
*/
|
|
14
|
+
export declare const waitUntilSecurityGroupVpcAssociationDisassociated: (params: WaiterConfiguration<EC2Client>, input: DescribeSecurityGroupVpcAssociationsCommandInput) => 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.843.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-ec2",
|