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