@aws-sdk/client-lambda-core 3.1168.0 → 3.1169.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/README.md +120 -8
- package/dist-cjs/index.js +649 -18
- package/dist-es/LambdaCore.js +45 -1
- package/dist-es/commands/CreateRuntimeAliasCommand.js +4 -0
- package/dist-es/commands/CreateRuntimeCommand.js +4 -0
- package/dist-es/commands/CreateRuntimeVersionCommand.js +4 -0
- package/dist-es/commands/DeleteRuntimeAliasCommand.js +4 -0
- package/dist-es/commands/DeleteRuntimeCommand.js +4 -0
- package/dist-es/commands/DeleteRuntimeVersionCommand.js +4 -0
- package/dist-es/commands/GetRuntimeAliasCommand.js +4 -0
- package/dist-es/commands/GetRuntimeCommand.js +4 -0
- package/dist-es/commands/GetRuntimeVersionCommand.js +4 -0
- package/dist-es/commands/ListRuntimeAliasesCommand.js +4 -0
- package/dist-es/commands/ListRuntimeVersionsCommand.js +4 -0
- package/dist-es/commands/ListRuntimesCommand.js +4 -0
- package/dist-es/commands/RestoreRuntimeCommand.js +4 -0
- package/dist-es/commands/UpdateRuntimeAliasCommand.js +4 -0
- package/dist-es/commands/UpdateRuntimeCommand.js +4 -0
- package/dist-es/commands/UpdateRuntimeVersionCommand.js +4 -0
- package/dist-es/commands/index.js +16 -0
- package/dist-es/index.js +1 -0
- package/dist-es/models/enums.js +36 -0
- package/dist-es/models/errors.js +17 -0
- package/dist-es/pagination/ListRuntimeAliasesPaginator.js +4 -0
- package/dist-es/pagination/ListRuntimeVersionsPaginator.js +4 -0
- package/dist-es/pagination/ListRuntimesPaginator.js +4 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/schemas/schemas_0.js +365 -16
- package/dist-es/waiters/index.js +2 -0
- package/dist-es/waiters/waitForRuntimeAliasActive.js +31 -0
- package/dist-es/waiters/waitForRuntimeVersionActive.js +40 -0
- package/dist-types/LambdaCore.d.ts +149 -2
- package/dist-types/LambdaCoreClient.d.ts +19 -3
- package/dist-types/commands/CreateNetworkConnectorCommand.d.ts +1 -1
- package/dist-types/commands/CreateRuntimeAliasCommand.d.ts +136 -0
- package/dist-types/commands/CreateRuntimeCommand.d.ts +133 -0
- package/dist-types/commands/CreateRuntimeVersionCommand.d.ts +156 -0
- package/dist-types/commands/DeleteNetworkConnectorCommand.d.ts +2 -2
- package/dist-types/commands/DeleteRuntimeAliasCommand.d.ts +100 -0
- package/dist-types/commands/DeleteRuntimeCommand.d.ts +98 -0
- package/dist-types/commands/DeleteRuntimeVersionCommand.d.ts +100 -0
- package/dist-types/commands/GetNetworkConnectorCommand.d.ts +1 -1
- package/dist-types/commands/GetRuntimeAliasCommand.d.ts +143 -0
- package/dist-types/commands/GetRuntimeCommand.d.ts +120 -0
- package/dist-types/commands/GetRuntimeVersionCommand.d.ts +151 -0
- package/dist-types/commands/ListNetworkConnectorVersionsCommand.d.ts +1 -1
- package/dist-types/commands/ListRuntimeAliasesCommand.d.ts +140 -0
- package/dist-types/commands/ListRuntimeVersionsCommand.d.ts +132 -0
- package/dist-types/commands/ListRuntimesCommand.d.ts +126 -0
- package/dist-types/commands/RestoreRuntimeCommand.d.ts +137 -0
- package/dist-types/commands/UpdateNetworkConnectorCommand.d.ts +2 -2
- package/dist-types/commands/UpdateRuntimeAliasCommand.d.ts +143 -0
- package/dist-types/commands/UpdateRuntimeCommand.d.ts +132 -0
- package/dist-types/commands/UpdateRuntimeVersionCommand.d.ts +133 -0
- package/dist-types/commands/index.d.ts +16 -0
- package/dist-types/index.d.ts +2 -1
- package/dist-types/models/enums.d.ts +158 -0
- package/dist-types/models/errors.d.ts +33 -2
- package/dist-types/models/models_0.d.ts +1122 -1
- package/dist-types/pagination/ListRuntimeAliasesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListRuntimeVersionsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListRuntimesPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/schemas/schemas_0.d.ts +55 -0
- package/dist-types/ts3.4/LambdaCore.d.ts +311 -0
- package/dist-types/ts3.4/LambdaCoreClient.d.ts +95 -2
- package/dist-types/ts3.4/commands/CreateRuntimeAliasCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/CreateRuntimeCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/CreateRuntimeVersionCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/DeleteRuntimeAliasCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/DeleteRuntimeCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteRuntimeVersionCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/GetRuntimeAliasCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetRuntimeCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetRuntimeVersionCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListRuntimeAliasesCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListRuntimeVersionsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListRuntimesCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/RestoreRuntimeCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateRuntimeAliasCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/UpdateRuntimeCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateRuntimeVersionCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/index.d.ts +16 -0
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/enums.d.ts +43 -0
- package/dist-types/ts3.4/models/errors.d.ts +8 -0
- package/dist-types/ts3.4/models/models_0.d.ts +265 -0
- package/dist-types/ts3.4/pagination/ListRuntimeAliasesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListRuntimeVersionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListRuntimesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +55 -0
- package/dist-types/ts3.4/waiters/index.d.ts +2 -0
- package/dist-types/ts3.4/waiters/waitForRuntimeAliasActive.d.ts +15 -0
- package/dist-types/ts3.4/waiters/waitForRuntimeVersionActive.d.ts +15 -0
- package/dist-types/waiters/index.d.ts +2 -0
- package/dist-types/waiters/waitForRuntimeAliasActive.d.ts +15 -0
- package/dist-types/waiters/waitForRuntimeVersionActive.d.ts +15 -0
- package/package.json +1 -1
|
@@ -1,19 +1,60 @@
|
|
|
1
|
-
const _A = "
|
|
1
|
+
const _A = "Architectures";
|
|
2
2
|
const _ACRT = "AssociatedComputeResourceTypes";
|
|
3
|
-
const
|
|
3
|
+
const _Ar = "Arn";
|
|
4
|
+
const _Arc = "Architecture";
|
|
5
|
+
const _C = "Compatibility";
|
|
4
6
|
const _CNC = "CreateNetworkConnector";
|
|
5
7
|
const _CNCR = "CreateNetworkConnectorRequest";
|
|
6
8
|
const _CNCRr = "CreateNetworkConnectorResponse";
|
|
9
|
+
const _CR = "CreateRuntime";
|
|
10
|
+
const _CRA = "CreateRuntimeAlias";
|
|
11
|
+
const _CRAR = "CreateRuntimeAliasRequest";
|
|
12
|
+
const _CRARr = "CreateRuntimeAliasResponse";
|
|
13
|
+
const _CRR = "CreateRuntimeRequest";
|
|
14
|
+
const _CRRr = "CreateRuntimeResponse";
|
|
15
|
+
const _CRV = "CreateRuntimeVersion";
|
|
16
|
+
const _CRVR = "CreateRuntimeVersionRequest";
|
|
17
|
+
const _CRVRr = "CreateRuntimeVersionResponse";
|
|
7
18
|
const _CT = "ClientToken";
|
|
19
|
+
const _Co = "Configuration";
|
|
20
|
+
const _Cr = "Created";
|
|
21
|
+
const _D = "Description";
|
|
22
|
+
const _DD = "DeprecationDate";
|
|
8
23
|
const _DNC = "DeleteNetworkConnector";
|
|
9
24
|
const _DNCR = "DeleteNetworkConnectorRequest";
|
|
10
25
|
const _DNCRe = "DeleteNetworkConnectorResponse";
|
|
26
|
+
const _DR = "DryRun";
|
|
27
|
+
const _DRA = "DeleteRuntimeAlias";
|
|
28
|
+
const _DRAR = "DeleteRuntimeAliasRequest";
|
|
29
|
+
const _DRARe = "DeleteRuntimeAliasResponse";
|
|
30
|
+
const _DRR = "DeleteRuntimeRequest";
|
|
31
|
+
const _DRRe = "DeleteRuntimeResponse";
|
|
32
|
+
const _DRV = "DeleteRuntimeVersion";
|
|
33
|
+
const _DRVR = "DeleteRuntimeVersionRequest";
|
|
34
|
+
const _DRVRe = "DeleteRuntimeVersionResponse";
|
|
35
|
+
const _DRe = "DeleteRuntime";
|
|
36
|
+
const _Di = "Digest";
|
|
37
|
+
const _FCBD = "FunctionCreateBlockDate";
|
|
38
|
+
const _FUBD = "FunctionUpdateBlockDate";
|
|
11
39
|
const _GNC = "GetNetworkConnector";
|
|
12
40
|
const _GNCR = "GetNetworkConnectorRequest";
|
|
13
41
|
const _GNCRe = "GetNetworkConnectorResponse";
|
|
42
|
+
const _GR = "GetRuntime";
|
|
43
|
+
const _GRA = "GetRuntimeAlias";
|
|
44
|
+
const _GRAR = "GetRuntimeAliasRequest";
|
|
45
|
+
const _GRARe = "GetRuntimeAliasResponse";
|
|
46
|
+
const _GRR = "GetRuntimeRequest";
|
|
47
|
+
const _GRRe = "GetRuntimeResponse";
|
|
48
|
+
const _GRV = "GetRuntimeVersion";
|
|
49
|
+
const _GRVR = "GetRuntimeVersionRequest";
|
|
50
|
+
const _GRVRe = "GetRuntimeVersionResponse";
|
|
14
51
|
const _I = "Id";
|
|
52
|
+
const _IM = "IntegrationModels";
|
|
15
53
|
const _IPVE = "InvalidParameterValueException";
|
|
54
|
+
const _IU = "ImageUri";
|
|
16
55
|
const _Id = "Identifier";
|
|
56
|
+
const _It = "Items";
|
|
57
|
+
const _LI = "LicenseInfo";
|
|
17
58
|
const _LM = "LastModified";
|
|
18
59
|
const _LNC = "ListNetworkConnectors";
|
|
19
60
|
const _LNCR = "ListNetworkConnectorsRequest";
|
|
@@ -21,13 +62,24 @@ const _LNCRi = "ListNetworkConnectorsResponse";
|
|
|
21
62
|
const _LNCV = "ListNetworkConnectorVersions";
|
|
22
63
|
const _LNCVR = "ListNetworkConnectorVersionsRequest";
|
|
23
64
|
const _LNCVRi = "ListNetworkConnectorVersionsResponse";
|
|
65
|
+
const _LR = "ListRuntimes";
|
|
66
|
+
const _LRA = "ListRuntimeAliases";
|
|
67
|
+
const _LRAR = "ListRuntimeAliasesRequest";
|
|
68
|
+
const _LRARi = "ListRuntimeAliasesResponse";
|
|
69
|
+
const _LRR = "ListRuntimesRequest";
|
|
70
|
+
const _LRRi = "ListRuntimesResponse";
|
|
71
|
+
const _LRV = "ListRuntimeVersions";
|
|
72
|
+
const _LRVR = "ListRuntimeVersionsRequest";
|
|
73
|
+
const _LRVRi = "ListRuntimeVersionsResponse";
|
|
24
74
|
const _LUS = "LastUpdateStatus";
|
|
25
75
|
const _LUSR = "LastUpdateStatusReason";
|
|
26
76
|
const _LUSRC = "LastUpdateStatusReasonCode";
|
|
27
77
|
const _LV = "LatestVersion";
|
|
28
78
|
const _LVA = "LatestVersionArn";
|
|
29
79
|
const _M = "Message";
|
|
30
|
-
const _MI = "
|
|
80
|
+
const _MI = "ManagedInstances";
|
|
81
|
+
const _MIa = "MaxItems";
|
|
82
|
+
const _MR = "MaxResults";
|
|
31
83
|
const _Ma = "Marker";
|
|
32
84
|
const _N = "Name";
|
|
33
85
|
const _NC = "NetworkConnectors";
|
|
@@ -41,15 +93,41 @@ const _NCVL = "NetworkConnectorVersionsList";
|
|
|
41
93
|
const _NCVS = "NetworkConnectorVersionSummary";
|
|
42
94
|
const _NM = "NextMarker";
|
|
43
95
|
const _NP = "NetworkProtocol";
|
|
96
|
+
const _NT = "NextToken";
|
|
97
|
+
const _O = "Os";
|
|
44
98
|
const _OR = "OperatorRole";
|
|
99
|
+
const _P = "Platforms";
|
|
100
|
+
const _PDA = "PendingDeletionAt";
|
|
101
|
+
const _PL = "PlatformList";
|
|
102
|
+
const _Pl = "Platform";
|
|
45
103
|
const _R = "Reason";
|
|
46
104
|
const _RA = "Retry-After";
|
|
105
|
+
const _RAI = "RuntimeAliasInfo";
|
|
106
|
+
const _RAL = "RuntimeAliasList";
|
|
107
|
+
const _RAu = "RuntimeAlias";
|
|
47
108
|
const _RCE = "ResourceConflictException";
|
|
109
|
+
const _RI = "RuntimeInfo";
|
|
110
|
+
const _RL = "ReleaseLifecycle";
|
|
111
|
+
const _RLu = "RuntimeList";
|
|
112
|
+
const _RN = "RuntimeName";
|
|
48
113
|
const _RNFE = "ResourceNotFoundException";
|
|
114
|
+
const _RNe = "ReleaseNotes";
|
|
115
|
+
const _RR = "RestoreRuntime";
|
|
116
|
+
const _RRL = "RuntimeReleaseLifecycle";
|
|
117
|
+
const _RRR = "RestoreRuntimeRequest";
|
|
118
|
+
const _RRRe = "RestoreRuntimeResponse";
|
|
119
|
+
const _RS = "ReleaseState";
|
|
120
|
+
const _RU = "ResolvedUri";
|
|
121
|
+
const _RV = "RuntimeVersion";
|
|
122
|
+
const _RVA = "RuntimeVersionArn";
|
|
123
|
+
const _RVI = "RuntimeVersionInfo";
|
|
124
|
+
const _RVL = "RuntimeVersionList";
|
|
125
|
+
const _RWID = "RecoveryWindowInDays";
|
|
49
126
|
const _S = "State";
|
|
50
127
|
const _SE = "ServiceException";
|
|
51
128
|
const _SGI = "SecurityGroupIds";
|
|
52
129
|
const _SI = "SubnetIds";
|
|
130
|
+
const _SQEE = "ServiceQuotaExceededException";
|
|
53
131
|
const _SR = "StateReason";
|
|
54
132
|
const _SRC = "StateReasonCode";
|
|
55
133
|
const _T = "Type";
|
|
@@ -58,6 +136,15 @@ const _Ta = "Tags";
|
|
|
58
136
|
const _UNC = "UpdateNetworkConnector";
|
|
59
137
|
const _UNCR = "UpdateNetworkConnectorRequest";
|
|
60
138
|
const _UNCRp = "UpdateNetworkConnectorResponse";
|
|
139
|
+
const _UR = "UpdateRuntime";
|
|
140
|
+
const _URA = "UpdateRuntimeAlias";
|
|
141
|
+
const _URAR = "UpdateRuntimeAliasRequest";
|
|
142
|
+
const _URARp = "UpdateRuntimeAliasResponse";
|
|
143
|
+
const _URR = "UpdateRuntimeRequest";
|
|
144
|
+
const _URRp = "UpdateRuntimeResponse";
|
|
145
|
+
const _URV = "UpdateRuntimeVersion";
|
|
146
|
+
const _URVR = "UpdateRuntimeVersionRequest";
|
|
147
|
+
const _URVRp = "UpdateRuntimeVersionResponse";
|
|
61
148
|
const _V = "Version";
|
|
62
149
|
const _VA = "VersionArn";
|
|
63
150
|
const _VEC = "VpcEgressConfiguration";
|
|
@@ -68,12 +155,15 @@ const _hE = "httpError";
|
|
|
68
155
|
const _hH = "httpHeader";
|
|
69
156
|
const _hQ = "httpQuery";
|
|
70
157
|
const _m = "message";
|
|
158
|
+
const _mR = "maxResults";
|
|
159
|
+
const _nT = "nextToken";
|
|
71
160
|
const _rAS = "retryAfterSeconds";
|
|
72
161
|
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.lambdacore";
|
|
73
162
|
const _se = "server";
|
|
163
|
+
const _xarrwid = "x-amzn-runtime-recovery-window-in-days";
|
|
74
164
|
const n0 = "com.amazonaws.lambdacore";
|
|
75
165
|
import { TypeRegistry } from "@smithy/core/schema";
|
|
76
|
-
import { InvalidParameterValueException, NetworkConnectorLimitExceededException, ResourceConflictException, ResourceNotFoundException, ServiceException, TooManyRequestsException, } from "../models/errors";
|
|
166
|
+
import { InvalidParameterValueException, NetworkConnectorLimitExceededException, ResourceConflictException, ResourceNotFoundException, ServiceException, ServiceQuotaExceededException, TooManyRequestsException, } from "../models/errors";
|
|
77
167
|
import { LambdaCoreServiceException } from "../models/LambdaCoreServiceException";
|
|
78
168
|
const _s_registry = new TypeRegistry(_s);
|
|
79
169
|
export var LambdaCoreServiceException$ = [-3, _s, "LambdaCoreServiceException", 0, [], []];
|
|
@@ -109,6 +199,12 @@ export var ServiceException$ = [-3, n0, _SE,
|
|
|
109
199
|
[0, 0]
|
|
110
200
|
];
|
|
111
201
|
n0_registry.registerError(ServiceException$, ServiceException);
|
|
202
|
+
export var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
|
|
203
|
+
{ [_e]: _c, [_hE]: 402 },
|
|
204
|
+
[_T, _M],
|
|
205
|
+
[0, 0]
|
|
206
|
+
];
|
|
207
|
+
n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
|
|
112
208
|
export var TooManyRequestsException$ = [-3, n0, _TMRE,
|
|
113
209
|
{ [_e]: _c, [_hE]: 429 },
|
|
114
210
|
[_rAS, _T, _m, _R],
|
|
@@ -119,16 +215,51 @@ export const errorTypeRegistries = [
|
|
|
119
215
|
_s_registry,
|
|
120
216
|
n0_registry,
|
|
121
217
|
];
|
|
218
|
+
export var Compatibility$ = [3, n0, _C,
|
|
219
|
+
0,
|
|
220
|
+
[_IM, _A, _MI],
|
|
221
|
+
[64 | 0, 64 | 0, 0]
|
|
222
|
+
];
|
|
122
223
|
export var CreateNetworkConnectorRequest$ = [3, n0, _CNCR,
|
|
123
224
|
0,
|
|
124
|
-
[_N,
|
|
225
|
+
[_N, _Co, _OR, _CT, _Ta],
|
|
125
226
|
[0, () => NetworkConnectorConfiguration$, 0, [0, 4], 128 | 0], 2
|
|
126
227
|
];
|
|
127
228
|
export var CreateNetworkConnectorResponse$ = [3, n0, _CNCRr,
|
|
128
229
|
0,
|
|
129
|
-
[
|
|
230
|
+
[_Ar, _N, _I, _VA, _V, _Co, _OR, _S],
|
|
130
231
|
[0, 0, 0, 0, 1, () => NetworkConnectorConfiguration$, 0, 0], 3
|
|
131
232
|
];
|
|
233
|
+
export var CreateRuntimeAliasRequest$ = [3, n0, _CRAR,
|
|
234
|
+
0,
|
|
235
|
+
[_RN, _RV, _N, _D, _RL],
|
|
236
|
+
[[0, 1], 0, 0, 0, () => RuntimeReleaseLifecycle$], 3
|
|
237
|
+
];
|
|
238
|
+
export var CreateRuntimeAliasResponse$ = [3, n0, _CRARr,
|
|
239
|
+
0,
|
|
240
|
+
[_N, _Ar, _RV, _RVA, _S, _Cr, _LM, _D, _RL],
|
|
241
|
+
[0, 0, 0, 0, 0, 0, 0, 0, () => RuntimeReleaseLifecycle$], 7
|
|
242
|
+
];
|
|
243
|
+
export var CreateRuntimeRequest$ = [3, n0, _CRR,
|
|
244
|
+
0,
|
|
245
|
+
[_N, _Ta, _D, _LI, _RL],
|
|
246
|
+
[0, 128 | 0, 0, 0, () => RuntimeReleaseLifecycle$], 1
|
|
247
|
+
];
|
|
248
|
+
export var CreateRuntimeResponse$ = [3, n0, _CRRr,
|
|
249
|
+
0,
|
|
250
|
+
[_Ar, _N, _Cr, _LM, _D, _LI, _RL],
|
|
251
|
+
[0, 0, 0, 0, 0, 0, () => RuntimeReleaseLifecycle$], 4
|
|
252
|
+
];
|
|
253
|
+
export var CreateRuntimeVersionRequest$ = [3, n0, _CRVR,
|
|
254
|
+
0,
|
|
255
|
+
[_RN, _IU, _N, _RNe, _DR],
|
|
256
|
+
[[0, 1], 0, 0, 0, 2], 3
|
|
257
|
+
];
|
|
258
|
+
export var CreateRuntimeVersionResponse$ = [3, n0, _CRVRr,
|
|
259
|
+
0,
|
|
260
|
+
[_N, _Ar, _RU, _S, _Cr, _LM, _RNe, _P, _C],
|
|
261
|
+
[0, 0, 0, 0, 0, 0, 0, () => PlatformList, () => Compatibility$], 6
|
|
262
|
+
];
|
|
132
263
|
export var DeleteNetworkConnectorRequest$ = [3, n0, _DNCR,
|
|
133
264
|
0,
|
|
134
265
|
[_Id],
|
|
@@ -136,9 +267,39 @@ export var DeleteNetworkConnectorRequest$ = [3, n0, _DNCR,
|
|
|
136
267
|
];
|
|
137
268
|
export var DeleteNetworkConnectorResponse$ = [3, n0, _DNCRe,
|
|
138
269
|
0,
|
|
139
|
-
[
|
|
270
|
+
[_Ar, _N, _I, _VA, _V, _Co, _OR, _S],
|
|
140
271
|
[0, 0, 0, 0, 1, () => NetworkConnectorConfiguration$, 0, 0], 3
|
|
141
272
|
];
|
|
273
|
+
export var DeleteRuntimeAliasRequest$ = [3, n0, _DRAR,
|
|
274
|
+
0,
|
|
275
|
+
[_RN, _N, _RWID],
|
|
276
|
+
[[0, 1], [0, 1], [1, { [_hH]: _xarrwid }]], 2
|
|
277
|
+
];
|
|
278
|
+
export var DeleteRuntimeAliasResponse$ = [3, n0, _DRARe,
|
|
279
|
+
0,
|
|
280
|
+
[],
|
|
281
|
+
[]
|
|
282
|
+
];
|
|
283
|
+
export var DeleteRuntimeRequest$ = [3, n0, _DRR,
|
|
284
|
+
0,
|
|
285
|
+
[_RN, _RWID],
|
|
286
|
+
[[0, 1], [1, { [_hH]: _xarrwid }]], 1
|
|
287
|
+
];
|
|
288
|
+
export var DeleteRuntimeResponse$ = [3, n0, _DRRe,
|
|
289
|
+
0,
|
|
290
|
+
[],
|
|
291
|
+
[]
|
|
292
|
+
];
|
|
293
|
+
export var DeleteRuntimeVersionRequest$ = [3, n0, _DRVR,
|
|
294
|
+
0,
|
|
295
|
+
[_RN, _N, _RWID],
|
|
296
|
+
[[0, 1], [0, 1], [1, { [_hH]: _xarrwid }]], 2
|
|
297
|
+
];
|
|
298
|
+
export var DeleteRuntimeVersionResponse$ = [3, n0, _DRVRe,
|
|
299
|
+
0,
|
|
300
|
+
[],
|
|
301
|
+
[]
|
|
302
|
+
];
|
|
142
303
|
export var GetNetworkConnectorRequest$ = [3, n0, _GNCR,
|
|
143
304
|
0,
|
|
144
305
|
[_Id],
|
|
@@ -146,13 +307,43 @@ export var GetNetworkConnectorRequest$ = [3, n0, _GNCR,
|
|
|
146
307
|
];
|
|
147
308
|
export var GetNetworkConnectorResponse$ = [3, n0, _GNCRe,
|
|
148
309
|
0,
|
|
149
|
-
[
|
|
310
|
+
[_Ar, _N, _I, _VA, _V, _LVA, _LV, _Co, _OR, _S, _SR, _SRC, _LUS, _LUSR, _LUSRC, _LM],
|
|
150
311
|
[0, 0, 0, 0, 1, 0, 1, () => NetworkConnectorConfiguration$, 0, 0, 0, 0, 0, 0, 0, 5], 3
|
|
151
312
|
];
|
|
313
|
+
export var GetRuntimeAliasRequest$ = [3, n0, _GRAR,
|
|
314
|
+
0,
|
|
315
|
+
[_RN, _N],
|
|
316
|
+
[[0, 1], [0, 1]], 2
|
|
317
|
+
];
|
|
318
|
+
export var GetRuntimeAliasResponse$ = [3, n0, _GRARe,
|
|
319
|
+
0,
|
|
320
|
+
[_N, _Ar, _RV, _RVA, _S, _Cr, _LM, _PDA, _D, _C, _RL],
|
|
321
|
+
[0, 0, 0, 0, 0, 0, 0, 0, 0, () => Compatibility$, () => RuntimeReleaseLifecycle$], 7
|
|
322
|
+
];
|
|
323
|
+
export var GetRuntimeRequest$ = [3, n0, _GRR,
|
|
324
|
+
0,
|
|
325
|
+
[_RN],
|
|
326
|
+
[[0, 1]], 1
|
|
327
|
+
];
|
|
328
|
+
export var GetRuntimeResponse$ = [3, n0, _GRRe,
|
|
329
|
+
0,
|
|
330
|
+
[_Ar, _N, _Cr, _LM, _D, _LI, _RL, _S, _PDA, _I],
|
|
331
|
+
[0, 0, 0, 0, 0, 0, () => RuntimeReleaseLifecycle$, 0, 0, 0], 4
|
|
332
|
+
];
|
|
333
|
+
export var GetRuntimeVersionRequest$ = [3, n0, _GRVR,
|
|
334
|
+
0,
|
|
335
|
+
[_RN, _N],
|
|
336
|
+
[[0, 1], [0, 1]], 2
|
|
337
|
+
];
|
|
338
|
+
export var GetRuntimeVersionResponse$ = [3, n0, _GRVRe,
|
|
339
|
+
0,
|
|
340
|
+
[_N, _Ar, _RU, _S, _Cr, _LM, _PDA, _RNe, _P, _C],
|
|
341
|
+
[0, 0, 0, 0, 0, 0, 0, 0, () => PlatformList, () => Compatibility$], 6
|
|
342
|
+
];
|
|
152
343
|
export var ListNetworkConnectorsRequest$ = [3, n0, _LNCR,
|
|
153
344
|
0,
|
|
154
|
-
[_S, _Ma,
|
|
155
|
-
[[0, { [_hQ]: _S }], [0, { [_hQ]: _Ma }], [1, { [_hQ]:
|
|
345
|
+
[_S, _Ma, _MIa],
|
|
346
|
+
[[0, { [_hQ]: _S }], [0, { [_hQ]: _Ma }], [1, { [_hQ]: _MIa }]]
|
|
156
347
|
];
|
|
157
348
|
export var ListNetworkConnectorsResponse$ = [3, n0, _LNCRi,
|
|
158
349
|
0,
|
|
@@ -161,22 +352,52 @@ export var ListNetworkConnectorsResponse$ = [3, n0, _LNCRi,
|
|
|
161
352
|
];
|
|
162
353
|
export var ListNetworkConnectorVersionsRequest$ = [3, n0, _LNCVR,
|
|
163
354
|
0,
|
|
164
|
-
[_Id, _S, _Ma,
|
|
165
|
-
[[0, 1], [0, { [_hQ]: _S }], [0, { [_hQ]: _Ma }], [1, { [_hQ]:
|
|
355
|
+
[_Id, _S, _Ma, _MIa],
|
|
356
|
+
[[0, 1], [0, { [_hQ]: _S }], [0, { [_hQ]: _Ma }], [1, { [_hQ]: _MIa }]], 1
|
|
166
357
|
];
|
|
167
358
|
export var ListNetworkConnectorVersionsResponse$ = [3, n0, _LNCVRi,
|
|
168
359
|
0,
|
|
169
360
|
[_NCV, _NM],
|
|
170
361
|
[() => NetworkConnectorVersionsList, 0], 1
|
|
171
362
|
];
|
|
363
|
+
export var ListRuntimeAliasesRequest$ = [3, n0, _LRAR,
|
|
364
|
+
0,
|
|
365
|
+
[_RN, _NT, _MR],
|
|
366
|
+
[[0, 1], [0, { [_hQ]: _nT }], [1, { [_hQ]: _mR }]], 1
|
|
367
|
+
];
|
|
368
|
+
export var ListRuntimeAliasesResponse$ = [3, n0, _LRARi,
|
|
369
|
+
0,
|
|
370
|
+
[_It, _NT],
|
|
371
|
+
[() => RuntimeAliasList, 0], 1
|
|
372
|
+
];
|
|
373
|
+
export var ListRuntimesRequest$ = [3, n0, _LRR,
|
|
374
|
+
0,
|
|
375
|
+
[_NT, _MR],
|
|
376
|
+
[[0, { [_hQ]: _nT }], [1, { [_hQ]: _mR }]]
|
|
377
|
+
];
|
|
378
|
+
export var ListRuntimesResponse$ = [3, n0, _LRRi,
|
|
379
|
+
0,
|
|
380
|
+
[_It, _NT],
|
|
381
|
+
[() => RuntimeList, 0], 1
|
|
382
|
+
];
|
|
383
|
+
export var ListRuntimeVersionsRequest$ = [3, n0, _LRVR,
|
|
384
|
+
0,
|
|
385
|
+
[_RN, _NT, _MR],
|
|
386
|
+
[[0, 1], [0, { [_hQ]: _nT }], [1, { [_hQ]: _mR }]], 1
|
|
387
|
+
];
|
|
388
|
+
export var ListRuntimeVersionsResponse$ = [3, n0, _LRVRi,
|
|
389
|
+
0,
|
|
390
|
+
[_It, _NT],
|
|
391
|
+
[() => RuntimeVersionList, 0], 1
|
|
392
|
+
];
|
|
172
393
|
export var NetworkConnectorSummary$ = [3, n0, _NCS,
|
|
173
394
|
0,
|
|
174
|
-
[
|
|
395
|
+
[_Ar, _N, _I, _T, _S, _LM, _LVA, _LV],
|
|
175
396
|
[0, 0, 0, 0, 0, 5, 0, 1], 4
|
|
176
397
|
];
|
|
177
398
|
export var NetworkConnectorVersionSummary$ = [3, n0, _NCVS,
|
|
178
399
|
0,
|
|
179
|
-
[
|
|
400
|
+
[_Ar, _VA, _N, _I, _V, _S, _SR, _SRC, _LM],
|
|
180
401
|
[0, 0, 0, 0, 1, 0, 0, 0, 5], 6
|
|
181
402
|
];
|
|
182
403
|
export var NetworkConnectorVpcEgressConfiguration$ = [3, n0, _NCVEC,
|
|
@@ -184,17 +405,83 @@ export var NetworkConnectorVpcEgressConfiguration$ = [3, n0, _NCVEC,
|
|
|
184
405
|
[_SI, _SGI, _NP, _ACRT],
|
|
185
406
|
[64 | 0, 64 | 0, 0, 64 | 0]
|
|
186
407
|
];
|
|
408
|
+
export var Platform$ = [3, n0, _Pl,
|
|
409
|
+
0,
|
|
410
|
+
[_Arc, _O, _Di],
|
|
411
|
+
[0, 0, 0], 3
|
|
412
|
+
];
|
|
413
|
+
export var RestoreRuntimeRequest$ = [3, n0, _RRR,
|
|
414
|
+
0,
|
|
415
|
+
[_RN, _RV, _RAu],
|
|
416
|
+
[[0, 1], [0, { [_hQ]: _RV }], [0, { [_hQ]: _RAu }]], 1
|
|
417
|
+
];
|
|
418
|
+
export var RestoreRuntimeResponse$ = [3, n0, _RRRe,
|
|
419
|
+
0,
|
|
420
|
+
[_RN, _Ar, _S, _LM, _RV, _RAu],
|
|
421
|
+
[0, 0, 0, 0, 0, 0], 4
|
|
422
|
+
];
|
|
423
|
+
export var RuntimeAliasInfo$ = [3, n0, _RAI,
|
|
424
|
+
0,
|
|
425
|
+
[_N, _Ar, _RV, _RVA, _S, _Cr, _LM, _PDA, _D, _C, _RL],
|
|
426
|
+
[0, 0, 0, 0, 0, 0, 0, 0, 0, () => Compatibility$, () => RuntimeReleaseLifecycle$], 7
|
|
427
|
+
];
|
|
428
|
+
export var RuntimeInfo$ = [3, n0, _RI,
|
|
429
|
+
0,
|
|
430
|
+
[_Ar, _N, _Cr, _LM, _D, _LI, _RL, _S, _PDA],
|
|
431
|
+
[0, 0, 0, 0, 0, 0, () => RuntimeReleaseLifecycle$, 0, 0], 4
|
|
432
|
+
];
|
|
433
|
+
export var RuntimeReleaseLifecycle$ = [3, n0, _RRL,
|
|
434
|
+
0,
|
|
435
|
+
[_RS, _DD, _FCBD, _FUBD],
|
|
436
|
+
[0, 0, 0, 0]
|
|
437
|
+
];
|
|
438
|
+
export var RuntimeVersionInfo$ = [3, n0, _RVI,
|
|
439
|
+
0,
|
|
440
|
+
[_N, _Ar, _RU, _S, _Cr, _LM, _PDA, _RNe, _C],
|
|
441
|
+
[0, 0, 0, 0, 0, 0, 0, 0, () => Compatibility$], 6
|
|
442
|
+
];
|
|
187
443
|
export var UpdateNetworkConnectorRequest$ = [3, n0, _UNCR,
|
|
188
444
|
0,
|
|
189
|
-
[_Id,
|
|
445
|
+
[_Id, _Co, _OR, _CT],
|
|
190
446
|
[[0, 1], () => NetworkConnectorConfiguration$, 0, [0, 4]], 1
|
|
191
447
|
];
|
|
192
448
|
export var UpdateNetworkConnectorResponse$ = [3, n0, _UNCRp,
|
|
193
449
|
0,
|
|
194
|
-
[
|
|
450
|
+
[_Ar, _N, _I, _VA, _V, _OR, _Co, _S, _LUS, _LUSR, _LM],
|
|
195
451
|
[0, 0, 0, 0, 1, 0, () => NetworkConnectorConfiguration$, 0, 0, 0, 5], 3
|
|
196
452
|
];
|
|
453
|
+
export var UpdateRuntimeAliasRequest$ = [3, n0, _URAR,
|
|
454
|
+
0,
|
|
455
|
+
[_RN, _N, _RV, _D, _RL],
|
|
456
|
+
[[0, 1], [0, 1], 0, 0, () => RuntimeReleaseLifecycle$], 3
|
|
457
|
+
];
|
|
458
|
+
export var UpdateRuntimeAliasResponse$ = [3, n0, _URARp,
|
|
459
|
+
0,
|
|
460
|
+
[_RN, _N, _Ar, _RV, _RVA, _S, _Cr, _LM, _D, _C, _RL],
|
|
461
|
+
[0, 0, 0, 0, 0, 0, 0, 0, 0, () => Compatibility$, () => RuntimeReleaseLifecycle$], 8
|
|
462
|
+
];
|
|
463
|
+
export var UpdateRuntimeRequest$ = [3, n0, _URR,
|
|
464
|
+
0,
|
|
465
|
+
[_RN, _D, _LI, _RL],
|
|
466
|
+
[[0, 1], 0, 0, () => RuntimeReleaseLifecycle$], 1
|
|
467
|
+
];
|
|
468
|
+
export var UpdateRuntimeResponse$ = [3, n0, _URRp,
|
|
469
|
+
0,
|
|
470
|
+
[_Ar, _N, _Cr, _LM, _D, _LI, _RL],
|
|
471
|
+
[0, 0, 0, 0, 0, 0, () => RuntimeReleaseLifecycle$], 4
|
|
472
|
+
];
|
|
473
|
+
export var UpdateRuntimeVersionRequest$ = [3, n0, _URVR,
|
|
474
|
+
0,
|
|
475
|
+
[_RN, _N, _RNe],
|
|
476
|
+
[[0, 1], [0, 1], 0], 3
|
|
477
|
+
];
|
|
478
|
+
export var UpdateRuntimeVersionResponse$ = [3, n0, _URVRp,
|
|
479
|
+
0,
|
|
480
|
+
[_N, _Ar, _RU, _S, _Cr, _LM, _RNe, _P, _C],
|
|
481
|
+
[0, 0, 0, 0, 0, 0, 0, () => PlatformList, () => Compatibility$], 6
|
|
482
|
+
];
|
|
197
483
|
var AssociatedComputeResourceTypesList = 64 | 0;
|
|
484
|
+
var IntegrationModelList = 64 | 0;
|
|
198
485
|
var NetworkConnectorSecurityGroupIds = 64 | 0;
|
|
199
486
|
var NetworkConnectorsList = [1, n0, _NCL,
|
|
200
487
|
0, () => NetworkConnectorSummary$
|
|
@@ -203,7 +490,21 @@ var NetworkConnectorSubnetIds = 64 | 0;
|
|
|
203
490
|
var NetworkConnectorVersionsList = [1, n0, _NCVL,
|
|
204
491
|
0, () => NetworkConnectorVersionSummary$
|
|
205
492
|
];
|
|
493
|
+
var PlatformList = [1, n0, _PL,
|
|
494
|
+
0, () => Platform$
|
|
495
|
+
];
|
|
496
|
+
var RuntimeAliasList = [1, n0, _RAL,
|
|
497
|
+
0, () => RuntimeAliasInfo$
|
|
498
|
+
];
|
|
499
|
+
var RuntimeArchitectureList = 64 | 0;
|
|
500
|
+
var RuntimeList = [1, n0, _RLu,
|
|
501
|
+
0, () => RuntimeInfo$
|
|
502
|
+
];
|
|
503
|
+
var RuntimeVersionList = [1, n0, _RVL,
|
|
504
|
+
0, () => RuntimeVersionInfo$
|
|
505
|
+
];
|
|
206
506
|
var NetworkConnectorTags = 128 | 0;
|
|
507
|
+
var TagMap = 128 | 0;
|
|
207
508
|
export var NetworkConnectorConfiguration$ = [4, n0, _NCC,
|
|
208
509
|
0,
|
|
209
510
|
[_VEC],
|
|
@@ -212,18 +513,66 @@ export var NetworkConnectorConfiguration$ = [4, n0, _NCC,
|
|
|
212
513
|
export var CreateNetworkConnector$ = [9, n0, _CNC,
|
|
213
514
|
{ [_h]: ["POST", "/2026-04-04/network-connectors", 202] }, () => CreateNetworkConnectorRequest$, () => CreateNetworkConnectorResponse$
|
|
214
515
|
];
|
|
516
|
+
export var CreateRuntime$ = [9, n0, _CR,
|
|
517
|
+
{ [_h]: ["POST", "/2026-10-01/runtimes", 202] }, () => CreateRuntimeRequest$, () => CreateRuntimeResponse$
|
|
518
|
+
];
|
|
519
|
+
export var CreateRuntimeAlias$ = [9, n0, _CRA,
|
|
520
|
+
{ [_h]: ["POST", "/2026-10-01/runtimes/{RuntimeName}/aliases", 201] }, () => CreateRuntimeAliasRequest$, () => CreateRuntimeAliasResponse$
|
|
521
|
+
];
|
|
522
|
+
export var CreateRuntimeVersion$ = [9, n0, _CRV,
|
|
523
|
+
{ [_h]: ["POST", "/2026-10-01/runtimes/{RuntimeName}/versions", 201] }, () => CreateRuntimeVersionRequest$, () => CreateRuntimeVersionResponse$
|
|
524
|
+
];
|
|
215
525
|
export var DeleteNetworkConnector$ = [9, n0, _DNC,
|
|
216
526
|
{ [_h]: ["DELETE", "/2026-04-04/network-connectors/{Identifier}", 202] }, () => DeleteNetworkConnectorRequest$, () => DeleteNetworkConnectorResponse$
|
|
217
527
|
];
|
|
528
|
+
export var DeleteRuntime$ = [9, n0, _DRe,
|
|
529
|
+
{ [_h]: ["DELETE", "/2026-10-01/runtimes/{RuntimeName}", 202] }, () => DeleteRuntimeRequest$, () => DeleteRuntimeResponse$
|
|
530
|
+
];
|
|
531
|
+
export var DeleteRuntimeAlias$ = [9, n0, _DRA,
|
|
532
|
+
{ [_h]: ["DELETE", "/2026-10-01/runtimes/{RuntimeName}/aliases/{Name}", 202] }, () => DeleteRuntimeAliasRequest$, () => DeleteRuntimeAliasResponse$
|
|
533
|
+
];
|
|
534
|
+
export var DeleteRuntimeVersion$ = [9, n0, _DRV,
|
|
535
|
+
{ [_h]: ["DELETE", "/2026-10-01/runtimes/{RuntimeName}/versions/{Name}", 202] }, () => DeleteRuntimeVersionRequest$, () => DeleteRuntimeVersionResponse$
|
|
536
|
+
];
|
|
218
537
|
export var GetNetworkConnector$ = [9, n0, _GNC,
|
|
219
538
|
{ [_h]: ["GET", "/2026-04-04/network-connectors/{Identifier}", 200] }, () => GetNetworkConnectorRequest$, () => GetNetworkConnectorResponse$
|
|
220
539
|
];
|
|
540
|
+
export var GetRuntime$ = [9, n0, _GR,
|
|
541
|
+
{ [_h]: ["GET", "/2026-10-01/runtimes/{RuntimeName}", 200] }, () => GetRuntimeRequest$, () => GetRuntimeResponse$
|
|
542
|
+
];
|
|
543
|
+
export var GetRuntimeAlias$ = [9, n0, _GRA,
|
|
544
|
+
{ [_h]: ["GET", "/2026-10-01/runtimes/{RuntimeName}/aliases/{Name}", 200] }, () => GetRuntimeAliasRequest$, () => GetRuntimeAliasResponse$
|
|
545
|
+
];
|
|
546
|
+
export var GetRuntimeVersion$ = [9, n0, _GRV,
|
|
547
|
+
{ [_h]: ["GET", "/2026-10-01/runtimes/{RuntimeName}/versions/{Name}", 200] }, () => GetRuntimeVersionRequest$, () => GetRuntimeVersionResponse$
|
|
548
|
+
];
|
|
221
549
|
export var ListNetworkConnectors$ = [9, n0, _LNC,
|
|
222
550
|
{ [_h]: ["GET", "/2026-04-04/network-connectors", 200] }, () => ListNetworkConnectorsRequest$, () => ListNetworkConnectorsResponse$
|
|
223
551
|
];
|
|
224
552
|
export var ListNetworkConnectorVersions$ = [9, n0, _LNCV,
|
|
225
553
|
{ [_h]: ["GET", "/2026-04-04/network-connectors/{Identifier}/versions", 200] }, () => ListNetworkConnectorVersionsRequest$, () => ListNetworkConnectorVersionsResponse$
|
|
226
554
|
];
|
|
555
|
+
export var ListRuntimeAliases$ = [9, n0, _LRA,
|
|
556
|
+
{ [_h]: ["GET", "/2026-10-01/runtimes/{RuntimeName}/aliases", 200] }, () => ListRuntimeAliasesRequest$, () => ListRuntimeAliasesResponse$
|
|
557
|
+
];
|
|
558
|
+
export var ListRuntimes$ = [9, n0, _LR,
|
|
559
|
+
{ [_h]: ["GET", "/2026-10-01/runtimes", 200] }, () => ListRuntimesRequest$, () => ListRuntimesResponse$
|
|
560
|
+
];
|
|
561
|
+
export var ListRuntimeVersions$ = [9, n0, _LRV,
|
|
562
|
+
{ [_h]: ["GET", "/2026-10-01/runtimes/{RuntimeName}/versions", 200] }, () => ListRuntimeVersionsRequest$, () => ListRuntimeVersionsResponse$
|
|
563
|
+
];
|
|
564
|
+
export var RestoreRuntime$ = [9, n0, _RR,
|
|
565
|
+
{ [_h]: ["POST", "/2026-10-01/runtimes/{RuntimeName}/restore", 200] }, () => RestoreRuntimeRequest$, () => RestoreRuntimeResponse$
|
|
566
|
+
];
|
|
227
567
|
export var UpdateNetworkConnector$ = [9, n0, _UNC,
|
|
228
568
|
{ [_h]: ["PUT", "/2026-04-04/network-connectors/{Identifier}", 202] }, () => UpdateNetworkConnectorRequest$, () => UpdateNetworkConnectorResponse$
|
|
229
569
|
];
|
|
570
|
+
export var UpdateRuntime$ = [9, n0, _UR,
|
|
571
|
+
{ [_h]: ["PUT", "/2026-10-01/runtimes/{RuntimeName}", 200] }, () => UpdateRuntimeRequest$, () => UpdateRuntimeResponse$
|
|
572
|
+
];
|
|
573
|
+
export var UpdateRuntimeAlias$ = [9, n0, _URA,
|
|
574
|
+
{ [_h]: ["PUT", "/2026-10-01/runtimes/{RuntimeName}/aliases/{Name}", 200] }, () => UpdateRuntimeAliasRequest$, () => UpdateRuntimeAliasResponse$
|
|
575
|
+
];
|
|
576
|
+
export var UpdateRuntimeVersion$ = [9, n0, _URV,
|
|
577
|
+
{ [_h]: ["PATCH", "/2026-10-01/runtimes/{RuntimeName}/versions/{Name}", 200] }, () => UpdateRuntimeVersionRequest$, () => UpdateRuntimeVersionResponse$
|
|
578
|
+
];
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { checkExceptions, createWaiter, WaiterState, } from "@smithy/core/client";
|
|
2
|
+
import { GetRuntimeAliasCommand, } from "../commands/GetRuntimeAliasCommand";
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
let result = await client.send(new GetRuntimeAliasCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
try {
|
|
9
|
+
const returnComparator = () => {
|
|
10
|
+
return result.State;
|
|
11
|
+
};
|
|
12
|
+
if (returnComparator() === "ACTIVE") {
|
|
13
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
catch (e) { }
|
|
17
|
+
}
|
|
18
|
+
catch (exception) {
|
|
19
|
+
reason = exception;
|
|
20
|
+
}
|
|
21
|
+
return { state: WaiterState.RETRY, reason };
|
|
22
|
+
};
|
|
23
|
+
export const waitForRuntimeAliasActive = async (params, input) => {
|
|
24
|
+
const serviceDefaults = { minDelay: 2, maxDelay: 120 };
|
|
25
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
26
|
+
};
|
|
27
|
+
export const waitUntilRuntimeAliasActive = async (params, input) => {
|
|
28
|
+
const serviceDefaults = { minDelay: 2, maxDelay: 120 };
|
|
29
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
30
|
+
return checkExceptions(result);
|
|
31
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { checkExceptions, createWaiter, WaiterState, } from "@smithy/core/client";
|
|
2
|
+
import { GetRuntimeVersionCommand, } from "../commands/GetRuntimeVersionCommand";
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
let result = await client.send(new GetRuntimeVersionCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
try {
|
|
9
|
+
const returnComparator = () => {
|
|
10
|
+
return result.State;
|
|
11
|
+
};
|
|
12
|
+
if (returnComparator() === "ACTIVE") {
|
|
13
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
catch (e) { }
|
|
17
|
+
try {
|
|
18
|
+
const returnComparator = () => {
|
|
19
|
+
return result.State;
|
|
20
|
+
};
|
|
21
|
+
if (returnComparator() === "FAILED") {
|
|
22
|
+
return { state: WaiterState.FAILURE, reason };
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
catch (e) { }
|
|
26
|
+
}
|
|
27
|
+
catch (exception) {
|
|
28
|
+
reason = exception;
|
|
29
|
+
}
|
|
30
|
+
return { state: WaiterState.RETRY, reason };
|
|
31
|
+
};
|
|
32
|
+
export const waitForRuntimeVersionActive = async (params, input) => {
|
|
33
|
+
const serviceDefaults = { minDelay: 2, maxDelay: 120 };
|
|
34
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
35
|
+
};
|
|
36
|
+
export const waitUntilRuntimeVersionActive = async (params, input) => {
|
|
37
|
+
const serviceDefaults = { minDelay: 2, maxDelay: 120 };
|
|
38
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
39
|
+
return checkExceptions(result);
|
|
40
|
+
};
|