@aws-sdk/client-ivs-realtime 3.307.0 → 3.310.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/commands/CreateParticipantTokenCommand.js +2 -2
- package/dist-cjs/commands/CreateStageCommand.js +2 -2
- package/dist-cjs/commands/DeleteStageCommand.js +2 -2
- package/dist-cjs/commands/DisconnectParticipantCommand.js +2 -2
- package/dist-cjs/commands/GetStageCommand.js +2 -2
- package/dist-cjs/commands/ListStagesCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateStageCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +140 -152
- package/dist-es/commands/CreateParticipantTokenCommand.js +3 -3
- package/dist-es/commands/CreateStageCommand.js +3 -3
- package/dist-es/commands/DeleteStageCommand.js +3 -3
- package/dist-es/commands/DisconnectParticipantCommand.js +3 -3
- package/dist-es/commands/GetStageCommand.js +3 -3
- package/dist-es/commands/ListStagesCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateStageCommand.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +119 -131
- package/dist-types/protocols/Aws_restJson1.d.ts +80 -20
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +20 -20
- package/package.json +35 -35
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.de_UpdateStageCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ListTagsForResourceCommand = exports.de_ListStagesCommand = exports.de_GetStageCommand = exports.de_DisconnectParticipantCommand = exports.de_DeleteStageCommand = exports.de_CreateStageCommand = exports.de_CreateParticipantTokenCommand = exports.se_UpdateStageCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_ListTagsForResourceCommand = exports.se_ListStagesCommand = exports.se_GetStageCommand = exports.se_DisconnectParticipantCommand = exports.se_DeleteStageCommand = exports.se_CreateStageCommand = exports.se_CreateParticipantTokenCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const IVSRealTimeServiceException_1 = require("../models/IVSRealTimeServiceException");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
|
-
const
|
|
8
|
+
const se_CreateParticipantTokenCommand = async (input, context) => {
|
|
9
9
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
10
10
|
const headers = {
|
|
11
11
|
"content-type": "application/json",
|
|
@@ -13,12 +13,8 @@ const serializeAws_restJson1CreateParticipantTokenCommand = async (input, contex
|
|
|
13
13
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateParticipantToken";
|
|
14
14
|
let body;
|
|
15
15
|
body = JSON.stringify({
|
|
16
|
-
...(input.attributes != null && {
|
|
17
|
-
|
|
18
|
-
}),
|
|
19
|
-
...(input.capabilities != null && {
|
|
20
|
-
capabilities: serializeAws_restJson1ParticipantTokenCapabilities(input.capabilities, context),
|
|
21
|
-
}),
|
|
16
|
+
...(input.attributes != null && { attributes: se_ParticipantTokenAttributes(input.attributes, context) }),
|
|
17
|
+
...(input.capabilities != null && { capabilities: se_ParticipantTokenCapabilities(input.capabilities, context) }),
|
|
22
18
|
...(input.duration != null && { duration: input.duration }),
|
|
23
19
|
...(input.stageArn != null && { stageArn: input.stageArn }),
|
|
24
20
|
...(input.userId != null && { userId: input.userId }),
|
|
@@ -33,8 +29,8 @@ const serializeAws_restJson1CreateParticipantTokenCommand = async (input, contex
|
|
|
33
29
|
body,
|
|
34
30
|
});
|
|
35
31
|
};
|
|
36
|
-
exports.
|
|
37
|
-
const
|
|
32
|
+
exports.se_CreateParticipantTokenCommand = se_CreateParticipantTokenCommand;
|
|
33
|
+
const se_CreateStageCommand = async (input, context) => {
|
|
38
34
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
39
35
|
const headers = {
|
|
40
36
|
"content-type": "application/json",
|
|
@@ -44,9 +40,9 @@ const serializeAws_restJson1CreateStageCommand = async (input, context) => {
|
|
|
44
40
|
body = JSON.stringify({
|
|
45
41
|
...(input.name != null && { name: input.name }),
|
|
46
42
|
...(input.participantTokenConfigurations != null && {
|
|
47
|
-
participantTokenConfigurations:
|
|
43
|
+
participantTokenConfigurations: se_ParticipantTokenConfigurations(input.participantTokenConfigurations, context),
|
|
48
44
|
}),
|
|
49
|
-
...(input.tags != null && { tags:
|
|
45
|
+
...(input.tags != null && { tags: se_Tags(input.tags, context) }),
|
|
50
46
|
});
|
|
51
47
|
return new protocol_http_1.HttpRequest({
|
|
52
48
|
protocol,
|
|
@@ -58,8 +54,8 @@ const serializeAws_restJson1CreateStageCommand = async (input, context) => {
|
|
|
58
54
|
body,
|
|
59
55
|
});
|
|
60
56
|
};
|
|
61
|
-
exports.
|
|
62
|
-
const
|
|
57
|
+
exports.se_CreateStageCommand = se_CreateStageCommand;
|
|
58
|
+
const se_DeleteStageCommand = async (input, context) => {
|
|
63
59
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
64
60
|
const headers = {
|
|
65
61
|
"content-type": "application/json",
|
|
@@ -79,8 +75,8 @@ const serializeAws_restJson1DeleteStageCommand = async (input, context) => {
|
|
|
79
75
|
body,
|
|
80
76
|
});
|
|
81
77
|
};
|
|
82
|
-
exports.
|
|
83
|
-
const
|
|
78
|
+
exports.se_DeleteStageCommand = se_DeleteStageCommand;
|
|
79
|
+
const se_DisconnectParticipantCommand = async (input, context) => {
|
|
84
80
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
85
81
|
const headers = {
|
|
86
82
|
"content-type": "application/json",
|
|
@@ -102,8 +98,8 @@ const serializeAws_restJson1DisconnectParticipantCommand = async (input, context
|
|
|
102
98
|
body,
|
|
103
99
|
});
|
|
104
100
|
};
|
|
105
|
-
exports.
|
|
106
|
-
const
|
|
101
|
+
exports.se_DisconnectParticipantCommand = se_DisconnectParticipantCommand;
|
|
102
|
+
const se_GetStageCommand = async (input, context) => {
|
|
107
103
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
108
104
|
const headers = {
|
|
109
105
|
"content-type": "application/json",
|
|
@@ -123,8 +119,8 @@ const serializeAws_restJson1GetStageCommand = async (input, context) => {
|
|
|
123
119
|
body,
|
|
124
120
|
});
|
|
125
121
|
};
|
|
126
|
-
exports.
|
|
127
|
-
const
|
|
122
|
+
exports.se_GetStageCommand = se_GetStageCommand;
|
|
123
|
+
const se_ListStagesCommand = async (input, context) => {
|
|
128
124
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
129
125
|
const headers = {
|
|
130
126
|
"content-type": "application/json",
|
|
@@ -145,8 +141,8 @@ const serializeAws_restJson1ListStagesCommand = async (input, context) => {
|
|
|
145
141
|
body,
|
|
146
142
|
});
|
|
147
143
|
};
|
|
148
|
-
exports.
|
|
149
|
-
const
|
|
144
|
+
exports.se_ListStagesCommand = se_ListStagesCommand;
|
|
145
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
150
146
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
151
147
|
const headers = {};
|
|
152
148
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
@@ -162,8 +158,8 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
162
158
|
body,
|
|
163
159
|
});
|
|
164
160
|
};
|
|
165
|
-
exports.
|
|
166
|
-
const
|
|
161
|
+
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
162
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
167
163
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
168
164
|
const headers = {
|
|
169
165
|
"content-type": "application/json",
|
|
@@ -172,7 +168,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
172
168
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
173
169
|
let body;
|
|
174
170
|
body = JSON.stringify({
|
|
175
|
-
...(input.tags != null && { tags:
|
|
171
|
+
...(input.tags != null && { tags: se_Tags(input.tags, context) }),
|
|
176
172
|
});
|
|
177
173
|
return new protocol_http_1.HttpRequest({
|
|
178
174
|
protocol,
|
|
@@ -184,8 +180,8 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
184
180
|
body,
|
|
185
181
|
});
|
|
186
182
|
};
|
|
187
|
-
exports.
|
|
188
|
-
const
|
|
183
|
+
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
184
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
189
185
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
190
186
|
const headers = {};
|
|
191
187
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
@@ -208,8 +204,8 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
208
204
|
body,
|
|
209
205
|
});
|
|
210
206
|
};
|
|
211
|
-
exports.
|
|
212
|
-
const
|
|
207
|
+
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
208
|
+
const se_UpdateStageCommand = async (input, context) => {
|
|
213
209
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
214
210
|
const headers = {
|
|
215
211
|
"content-type": "application/json",
|
|
@@ -230,22 +226,22 @@ const serializeAws_restJson1UpdateStageCommand = async (input, context) => {
|
|
|
230
226
|
body,
|
|
231
227
|
});
|
|
232
228
|
};
|
|
233
|
-
exports.
|
|
234
|
-
const
|
|
229
|
+
exports.se_UpdateStageCommand = se_UpdateStageCommand;
|
|
230
|
+
const de_CreateParticipantTokenCommand = async (output, context) => {
|
|
235
231
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
236
|
-
return
|
|
232
|
+
return de_CreateParticipantTokenCommandError(output, context);
|
|
237
233
|
}
|
|
238
234
|
const contents = map({
|
|
239
235
|
$metadata: deserializeMetadata(output),
|
|
240
236
|
});
|
|
241
237
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
242
238
|
if (data.participantToken != null) {
|
|
243
|
-
contents.participantToken =
|
|
239
|
+
contents.participantToken = de_ParticipantToken(data.participantToken, context);
|
|
244
240
|
}
|
|
245
241
|
return contents;
|
|
246
242
|
};
|
|
247
|
-
exports.
|
|
248
|
-
const
|
|
243
|
+
exports.de_CreateParticipantTokenCommand = de_CreateParticipantTokenCommand;
|
|
244
|
+
const de_CreateParticipantTokenCommandError = async (output, context) => {
|
|
249
245
|
const parsedOutput = {
|
|
250
246
|
...output,
|
|
251
247
|
body: await parseErrorBody(output.body, context),
|
|
@@ -254,19 +250,19 @@ const deserializeAws_restJson1CreateParticipantTokenCommandError = async (output
|
|
|
254
250
|
switch (errorCode) {
|
|
255
251
|
case "AccessDeniedException":
|
|
256
252
|
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
257
|
-
throw await
|
|
253
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
258
254
|
case "PendingVerification":
|
|
259
255
|
case "com.amazonaws.ivsrealtime#PendingVerification":
|
|
260
|
-
throw await
|
|
256
|
+
throw await de_PendingVerificationRes(parsedOutput, context);
|
|
261
257
|
case "ResourceNotFoundException":
|
|
262
258
|
case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
|
|
263
|
-
throw await
|
|
259
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
264
260
|
case "ServiceQuotaExceededException":
|
|
265
261
|
case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
|
|
266
|
-
throw await
|
|
262
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
267
263
|
case "ValidationException":
|
|
268
264
|
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
269
|
-
throw await
|
|
265
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
270
266
|
default:
|
|
271
267
|
const parsedBody = parsedOutput.body;
|
|
272
268
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -277,24 +273,24 @@ const deserializeAws_restJson1CreateParticipantTokenCommandError = async (output
|
|
|
277
273
|
});
|
|
278
274
|
}
|
|
279
275
|
};
|
|
280
|
-
const
|
|
276
|
+
const de_CreateStageCommand = async (output, context) => {
|
|
281
277
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
282
|
-
return
|
|
278
|
+
return de_CreateStageCommandError(output, context);
|
|
283
279
|
}
|
|
284
280
|
const contents = map({
|
|
285
281
|
$metadata: deserializeMetadata(output),
|
|
286
282
|
});
|
|
287
283
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
288
284
|
if (data.participantTokens != null) {
|
|
289
|
-
contents.participantTokens =
|
|
285
|
+
contents.participantTokens = de_ParticipantTokenList(data.participantTokens, context);
|
|
290
286
|
}
|
|
291
287
|
if (data.stage != null) {
|
|
292
|
-
contents.stage =
|
|
288
|
+
contents.stage = de_Stage(data.stage, context);
|
|
293
289
|
}
|
|
294
290
|
return contents;
|
|
295
291
|
};
|
|
296
|
-
exports.
|
|
297
|
-
const
|
|
292
|
+
exports.de_CreateStageCommand = de_CreateStageCommand;
|
|
293
|
+
const de_CreateStageCommandError = async (output, context) => {
|
|
298
294
|
const parsedOutput = {
|
|
299
295
|
...output,
|
|
300
296
|
body: await parseErrorBody(output.body, context),
|
|
@@ -303,16 +299,16 @@ const deserializeAws_restJson1CreateStageCommandError = async (output, context)
|
|
|
303
299
|
switch (errorCode) {
|
|
304
300
|
case "AccessDeniedException":
|
|
305
301
|
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
306
|
-
throw await
|
|
302
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
307
303
|
case "PendingVerification":
|
|
308
304
|
case "com.amazonaws.ivsrealtime#PendingVerification":
|
|
309
|
-
throw await
|
|
305
|
+
throw await de_PendingVerificationRes(parsedOutput, context);
|
|
310
306
|
case "ServiceQuotaExceededException":
|
|
311
307
|
case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
|
|
312
|
-
throw await
|
|
308
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
313
309
|
case "ValidationException":
|
|
314
310
|
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
315
|
-
throw await
|
|
311
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
316
312
|
default:
|
|
317
313
|
const parsedBody = parsedOutput.body;
|
|
318
314
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -323,9 +319,9 @@ const deserializeAws_restJson1CreateStageCommandError = async (output, context)
|
|
|
323
319
|
});
|
|
324
320
|
}
|
|
325
321
|
};
|
|
326
|
-
const
|
|
322
|
+
const de_DeleteStageCommand = async (output, context) => {
|
|
327
323
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
328
|
-
return
|
|
324
|
+
return de_DeleteStageCommandError(output, context);
|
|
329
325
|
}
|
|
330
326
|
const contents = map({
|
|
331
327
|
$metadata: deserializeMetadata(output),
|
|
@@ -333,8 +329,8 @@ const deserializeAws_restJson1DeleteStageCommand = async (output, context) => {
|
|
|
333
329
|
await collectBody(output.body, context);
|
|
334
330
|
return contents;
|
|
335
331
|
};
|
|
336
|
-
exports.
|
|
337
|
-
const
|
|
332
|
+
exports.de_DeleteStageCommand = de_DeleteStageCommand;
|
|
333
|
+
const de_DeleteStageCommandError = async (output, context) => {
|
|
338
334
|
const parsedOutput = {
|
|
339
335
|
...output,
|
|
340
336
|
body: await parseErrorBody(output.body, context),
|
|
@@ -343,19 +339,19 @@ const deserializeAws_restJson1DeleteStageCommandError = async (output, context)
|
|
|
343
339
|
switch (errorCode) {
|
|
344
340
|
case "AccessDeniedException":
|
|
345
341
|
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
346
|
-
throw await
|
|
342
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
347
343
|
case "ConflictException":
|
|
348
344
|
case "com.amazonaws.ivsrealtime#ConflictException":
|
|
349
|
-
throw await
|
|
345
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
350
346
|
case "PendingVerification":
|
|
351
347
|
case "com.amazonaws.ivsrealtime#PendingVerification":
|
|
352
|
-
throw await
|
|
348
|
+
throw await de_PendingVerificationRes(parsedOutput, context);
|
|
353
349
|
case "ResourceNotFoundException":
|
|
354
350
|
case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
|
|
355
|
-
throw await
|
|
351
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
356
352
|
case "ValidationException":
|
|
357
353
|
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
358
|
-
throw await
|
|
354
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
359
355
|
default:
|
|
360
356
|
const parsedBody = parsedOutput.body;
|
|
361
357
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -366,9 +362,9 @@ const deserializeAws_restJson1DeleteStageCommandError = async (output, context)
|
|
|
366
362
|
});
|
|
367
363
|
}
|
|
368
364
|
};
|
|
369
|
-
const
|
|
365
|
+
const de_DisconnectParticipantCommand = async (output, context) => {
|
|
370
366
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
371
|
-
return
|
|
367
|
+
return de_DisconnectParticipantCommandError(output, context);
|
|
372
368
|
}
|
|
373
369
|
const contents = map({
|
|
374
370
|
$metadata: deserializeMetadata(output),
|
|
@@ -376,8 +372,8 @@ const deserializeAws_restJson1DisconnectParticipantCommand = async (output, cont
|
|
|
376
372
|
await collectBody(output.body, context);
|
|
377
373
|
return contents;
|
|
378
374
|
};
|
|
379
|
-
exports.
|
|
380
|
-
const
|
|
375
|
+
exports.de_DisconnectParticipantCommand = de_DisconnectParticipantCommand;
|
|
376
|
+
const de_DisconnectParticipantCommandError = async (output, context) => {
|
|
381
377
|
const parsedOutput = {
|
|
382
378
|
...output,
|
|
383
379
|
body: await parseErrorBody(output.body, context),
|
|
@@ -386,16 +382,16 @@ const deserializeAws_restJson1DisconnectParticipantCommandError = async (output,
|
|
|
386
382
|
switch (errorCode) {
|
|
387
383
|
case "AccessDeniedException":
|
|
388
384
|
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
389
|
-
throw await
|
|
385
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
390
386
|
case "PendingVerification":
|
|
391
387
|
case "com.amazonaws.ivsrealtime#PendingVerification":
|
|
392
|
-
throw await
|
|
388
|
+
throw await de_PendingVerificationRes(parsedOutput, context);
|
|
393
389
|
case "ResourceNotFoundException":
|
|
394
390
|
case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
|
|
395
|
-
throw await
|
|
391
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
396
392
|
case "ValidationException":
|
|
397
393
|
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
398
|
-
throw await
|
|
394
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
399
395
|
default:
|
|
400
396
|
const parsedBody = parsedOutput.body;
|
|
401
397
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -406,21 +402,21 @@ const deserializeAws_restJson1DisconnectParticipantCommandError = async (output,
|
|
|
406
402
|
});
|
|
407
403
|
}
|
|
408
404
|
};
|
|
409
|
-
const
|
|
405
|
+
const de_GetStageCommand = async (output, context) => {
|
|
410
406
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
411
|
-
return
|
|
407
|
+
return de_GetStageCommandError(output, context);
|
|
412
408
|
}
|
|
413
409
|
const contents = map({
|
|
414
410
|
$metadata: deserializeMetadata(output),
|
|
415
411
|
});
|
|
416
412
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
417
413
|
if (data.stage != null) {
|
|
418
|
-
contents.stage =
|
|
414
|
+
contents.stage = de_Stage(data.stage, context);
|
|
419
415
|
}
|
|
420
416
|
return contents;
|
|
421
417
|
};
|
|
422
|
-
exports.
|
|
423
|
-
const
|
|
418
|
+
exports.de_GetStageCommand = de_GetStageCommand;
|
|
419
|
+
const de_GetStageCommandError = async (output, context) => {
|
|
424
420
|
const parsedOutput = {
|
|
425
421
|
...output,
|
|
426
422
|
body: await parseErrorBody(output.body, context),
|
|
@@ -429,13 +425,13 @@ const deserializeAws_restJson1GetStageCommandError = async (output, context) =>
|
|
|
429
425
|
switch (errorCode) {
|
|
430
426
|
case "AccessDeniedException":
|
|
431
427
|
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
432
|
-
throw await
|
|
428
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
433
429
|
case "ResourceNotFoundException":
|
|
434
430
|
case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
|
|
435
|
-
throw await
|
|
431
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
436
432
|
case "ValidationException":
|
|
437
433
|
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
438
|
-
throw await
|
|
434
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
439
435
|
default:
|
|
440
436
|
const parsedBody = parsedOutput.body;
|
|
441
437
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -446,9 +442,9 @@ const deserializeAws_restJson1GetStageCommandError = async (output, context) =>
|
|
|
446
442
|
});
|
|
447
443
|
}
|
|
448
444
|
};
|
|
449
|
-
const
|
|
445
|
+
const de_ListStagesCommand = async (output, context) => {
|
|
450
446
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
451
|
-
return
|
|
447
|
+
return de_ListStagesCommandError(output, context);
|
|
452
448
|
}
|
|
453
449
|
const contents = map({
|
|
454
450
|
$metadata: deserializeMetadata(output),
|
|
@@ -458,12 +454,12 @@ const deserializeAws_restJson1ListStagesCommand = async (output, context) => {
|
|
|
458
454
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
459
455
|
}
|
|
460
456
|
if (data.stages != null) {
|
|
461
|
-
contents.stages =
|
|
457
|
+
contents.stages = de_StageSummaryList(data.stages, context);
|
|
462
458
|
}
|
|
463
459
|
return contents;
|
|
464
460
|
};
|
|
465
|
-
exports.
|
|
466
|
-
const
|
|
461
|
+
exports.de_ListStagesCommand = de_ListStagesCommand;
|
|
462
|
+
const de_ListStagesCommandError = async (output, context) => {
|
|
467
463
|
const parsedOutput = {
|
|
468
464
|
...output,
|
|
469
465
|
body: await parseErrorBody(output.body, context),
|
|
@@ -472,13 +468,13 @@ const deserializeAws_restJson1ListStagesCommandError = async (output, context) =
|
|
|
472
468
|
switch (errorCode) {
|
|
473
469
|
case "AccessDeniedException":
|
|
474
470
|
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
475
|
-
throw await
|
|
471
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
476
472
|
case "ConflictException":
|
|
477
473
|
case "com.amazonaws.ivsrealtime#ConflictException":
|
|
478
|
-
throw await
|
|
474
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
479
475
|
case "ValidationException":
|
|
480
476
|
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
481
|
-
throw await
|
|
477
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
482
478
|
default:
|
|
483
479
|
const parsedBody = parsedOutput.body;
|
|
484
480
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -489,21 +485,21 @@ const deserializeAws_restJson1ListStagesCommandError = async (output, context) =
|
|
|
489
485
|
});
|
|
490
486
|
}
|
|
491
487
|
};
|
|
492
|
-
const
|
|
488
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
493
489
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
494
|
-
return
|
|
490
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
495
491
|
}
|
|
496
492
|
const contents = map({
|
|
497
493
|
$metadata: deserializeMetadata(output),
|
|
498
494
|
});
|
|
499
495
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
500
496
|
if (data.tags != null) {
|
|
501
|
-
contents.tags =
|
|
497
|
+
contents.tags = de_Tags(data.tags, context);
|
|
502
498
|
}
|
|
503
499
|
return contents;
|
|
504
500
|
};
|
|
505
|
-
exports.
|
|
506
|
-
const
|
|
501
|
+
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
502
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
507
503
|
const parsedOutput = {
|
|
508
504
|
...output,
|
|
509
505
|
body: await parseErrorBody(output.body, context),
|
|
@@ -512,13 +508,13 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
512
508
|
switch (errorCode) {
|
|
513
509
|
case "InternalServerException":
|
|
514
510
|
case "com.amazonaws.ivsrealtime#InternalServerException":
|
|
515
|
-
throw await
|
|
511
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
516
512
|
case "ResourceNotFoundException":
|
|
517
513
|
case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
|
|
518
|
-
throw await
|
|
514
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
519
515
|
case "ValidationException":
|
|
520
516
|
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
521
|
-
throw await
|
|
517
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
522
518
|
default:
|
|
523
519
|
const parsedBody = parsedOutput.body;
|
|
524
520
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -529,9 +525,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
529
525
|
});
|
|
530
526
|
}
|
|
531
527
|
};
|
|
532
|
-
const
|
|
528
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
533
529
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
534
|
-
return
|
|
530
|
+
return de_TagResourceCommandError(output, context);
|
|
535
531
|
}
|
|
536
532
|
const contents = map({
|
|
537
533
|
$metadata: deserializeMetadata(output),
|
|
@@ -539,8 +535,8 @@ const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
|
539
535
|
await collectBody(output.body, context);
|
|
540
536
|
return contents;
|
|
541
537
|
};
|
|
542
|
-
exports.
|
|
543
|
-
const
|
|
538
|
+
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
539
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
544
540
|
const parsedOutput = {
|
|
545
541
|
...output,
|
|
546
542
|
body: await parseErrorBody(output.body, context),
|
|
@@ -549,13 +545,13 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
549
545
|
switch (errorCode) {
|
|
550
546
|
case "InternalServerException":
|
|
551
547
|
case "com.amazonaws.ivsrealtime#InternalServerException":
|
|
552
|
-
throw await
|
|
548
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
553
549
|
case "ResourceNotFoundException":
|
|
554
550
|
case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
|
|
555
|
-
throw await
|
|
551
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
556
552
|
case "ValidationException":
|
|
557
553
|
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
558
|
-
throw await
|
|
554
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
559
555
|
default:
|
|
560
556
|
const parsedBody = parsedOutput.body;
|
|
561
557
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -566,9 +562,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
566
562
|
});
|
|
567
563
|
}
|
|
568
564
|
};
|
|
569
|
-
const
|
|
565
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
570
566
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
571
|
-
return
|
|
567
|
+
return de_UntagResourceCommandError(output, context);
|
|
572
568
|
}
|
|
573
569
|
const contents = map({
|
|
574
570
|
$metadata: deserializeMetadata(output),
|
|
@@ -576,8 +572,8 @@ const deserializeAws_restJson1UntagResourceCommand = async (output, context) =>
|
|
|
576
572
|
await collectBody(output.body, context);
|
|
577
573
|
return contents;
|
|
578
574
|
};
|
|
579
|
-
exports.
|
|
580
|
-
const
|
|
575
|
+
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
576
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
581
577
|
const parsedOutput = {
|
|
582
578
|
...output,
|
|
583
579
|
body: await parseErrorBody(output.body, context),
|
|
@@ -586,13 +582,13 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
586
582
|
switch (errorCode) {
|
|
587
583
|
case "InternalServerException":
|
|
588
584
|
case "com.amazonaws.ivsrealtime#InternalServerException":
|
|
589
|
-
throw await
|
|
585
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
590
586
|
case "ResourceNotFoundException":
|
|
591
587
|
case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
|
|
592
|
-
throw await
|
|
588
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
593
589
|
case "ValidationException":
|
|
594
590
|
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
595
|
-
throw await
|
|
591
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
596
592
|
default:
|
|
597
593
|
const parsedBody = parsedOutput.body;
|
|
598
594
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -603,21 +599,21 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
603
599
|
});
|
|
604
600
|
}
|
|
605
601
|
};
|
|
606
|
-
const
|
|
602
|
+
const de_UpdateStageCommand = async (output, context) => {
|
|
607
603
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
608
|
-
return
|
|
604
|
+
return de_UpdateStageCommandError(output, context);
|
|
609
605
|
}
|
|
610
606
|
const contents = map({
|
|
611
607
|
$metadata: deserializeMetadata(output),
|
|
612
608
|
});
|
|
613
609
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
614
610
|
if (data.stage != null) {
|
|
615
|
-
contents.stage =
|
|
611
|
+
contents.stage = de_Stage(data.stage, context);
|
|
616
612
|
}
|
|
617
613
|
return contents;
|
|
618
614
|
};
|
|
619
|
-
exports.
|
|
620
|
-
const
|
|
615
|
+
exports.de_UpdateStageCommand = de_UpdateStageCommand;
|
|
616
|
+
const de_UpdateStageCommandError = async (output, context) => {
|
|
621
617
|
const parsedOutput = {
|
|
622
618
|
...output,
|
|
623
619
|
body: await parseErrorBody(output.body, context),
|
|
@@ -626,19 +622,19 @@ const deserializeAws_restJson1UpdateStageCommandError = async (output, context)
|
|
|
626
622
|
switch (errorCode) {
|
|
627
623
|
case "AccessDeniedException":
|
|
628
624
|
case "com.amazonaws.ivsrealtime#AccessDeniedException":
|
|
629
|
-
throw await
|
|
625
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
630
626
|
case "PendingVerification":
|
|
631
627
|
case "com.amazonaws.ivsrealtime#PendingVerification":
|
|
632
|
-
throw await
|
|
628
|
+
throw await de_PendingVerificationRes(parsedOutput, context);
|
|
633
629
|
case "ResourceNotFoundException":
|
|
634
630
|
case "com.amazonaws.ivsrealtime#ResourceNotFoundException":
|
|
635
|
-
throw await
|
|
631
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
636
632
|
case "ServiceQuotaExceededException":
|
|
637
633
|
case "com.amazonaws.ivsrealtime#ServiceQuotaExceededException":
|
|
638
|
-
throw await
|
|
634
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
639
635
|
case "ValidationException":
|
|
640
636
|
case "com.amazonaws.ivsrealtime#ValidationException":
|
|
641
|
-
throw await
|
|
637
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
642
638
|
default:
|
|
643
639
|
const parsedBody = parsedOutput.body;
|
|
644
640
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -650,7 +646,7 @@ const deserializeAws_restJson1UpdateStageCommandError = async (output, context)
|
|
|
650
646
|
}
|
|
651
647
|
};
|
|
652
648
|
const map = smithy_client_1.map;
|
|
653
|
-
const
|
|
649
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
654
650
|
const contents = map({});
|
|
655
651
|
const data = parsedOutput.body;
|
|
656
652
|
if (data.exceptionMessage != null) {
|
|
@@ -662,7 +658,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
|
|
|
662
658
|
});
|
|
663
659
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
664
660
|
};
|
|
665
|
-
const
|
|
661
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
666
662
|
const contents = map({});
|
|
667
663
|
const data = parsedOutput.body;
|
|
668
664
|
if (data.exceptionMessage != null) {
|
|
@@ -674,7 +670,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
674
670
|
});
|
|
675
671
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
676
672
|
};
|
|
677
|
-
const
|
|
673
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
678
674
|
const contents = map({});
|
|
679
675
|
const data = parsedOutput.body;
|
|
680
676
|
if (data.exceptionMessage != null) {
|
|
@@ -686,7 +682,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
686
682
|
});
|
|
687
683
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
688
684
|
};
|
|
689
|
-
const
|
|
685
|
+
const de_PendingVerificationRes = async (parsedOutput, context) => {
|
|
690
686
|
const contents = map({});
|
|
691
687
|
const data = parsedOutput.body;
|
|
692
688
|
if (data.exceptionMessage != null) {
|
|
@@ -698,7 +694,7 @@ const deserializeAws_restJson1PendingVerificationResponse = async (parsedOutput,
|
|
|
698
694
|
});
|
|
699
695
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
700
696
|
};
|
|
701
|
-
const
|
|
697
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
702
698
|
const contents = map({});
|
|
703
699
|
const data = parsedOutput.body;
|
|
704
700
|
if (data.exceptionMessage != null) {
|
|
@@ -710,7 +706,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
710
706
|
});
|
|
711
707
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
712
708
|
};
|
|
713
|
-
const
|
|
709
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
714
710
|
const contents = map({});
|
|
715
711
|
const data = parsedOutput.body;
|
|
716
712
|
if (data.exceptionMessage != null) {
|
|
@@ -722,7 +718,7 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
|
|
|
722
718
|
});
|
|
723
719
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
724
720
|
};
|
|
725
|
-
const
|
|
721
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
726
722
|
const contents = map({});
|
|
727
723
|
const data = parsedOutput.body;
|
|
728
724
|
if (data.exceptionMessage != null) {
|
|
@@ -734,7 +730,7 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
734
730
|
});
|
|
735
731
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
736
732
|
};
|
|
737
|
-
const
|
|
733
|
+
const se_ParticipantTokenAttributes = (input, context) => {
|
|
738
734
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
739
735
|
if (value === null) {
|
|
740
736
|
return acc;
|
|
@@ -743,33 +739,29 @@ const serializeAws_restJson1ParticipantTokenAttributes = (input, context) => {
|
|
|
743
739
|
return acc;
|
|
744
740
|
}, {});
|
|
745
741
|
};
|
|
746
|
-
const
|
|
742
|
+
const se_ParticipantTokenCapabilities = (input, context) => {
|
|
747
743
|
return input
|
|
748
744
|
.filter((e) => e != null)
|
|
749
745
|
.map((entry) => {
|
|
750
746
|
return entry;
|
|
751
747
|
});
|
|
752
748
|
};
|
|
753
|
-
const
|
|
749
|
+
const se_ParticipantTokenConfiguration = (input, context) => {
|
|
754
750
|
return {
|
|
755
|
-
...(input.attributes != null && {
|
|
756
|
-
|
|
757
|
-
}),
|
|
758
|
-
...(input.capabilities != null && {
|
|
759
|
-
capabilities: serializeAws_restJson1ParticipantTokenCapabilities(input.capabilities, context),
|
|
760
|
-
}),
|
|
751
|
+
...(input.attributes != null && { attributes: se_ParticipantTokenAttributes(input.attributes, context) }),
|
|
752
|
+
...(input.capabilities != null && { capabilities: se_ParticipantTokenCapabilities(input.capabilities, context) }),
|
|
761
753
|
...(input.duration != null && { duration: input.duration }),
|
|
762
754
|
...(input.userId != null && { userId: input.userId }),
|
|
763
755
|
};
|
|
764
756
|
};
|
|
765
|
-
const
|
|
757
|
+
const se_ParticipantTokenConfigurations = (input, context) => {
|
|
766
758
|
return input
|
|
767
759
|
.filter((e) => e != null)
|
|
768
760
|
.map((entry) => {
|
|
769
|
-
return
|
|
761
|
+
return se_ParticipantTokenConfiguration(entry, context);
|
|
770
762
|
});
|
|
771
763
|
};
|
|
772
|
-
const
|
|
764
|
+
const se_Tags = (input, context) => {
|
|
773
765
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
774
766
|
if (value === null) {
|
|
775
767
|
return acc;
|
|
@@ -778,14 +770,10 @@ const serializeAws_restJson1Tags = (input, context) => {
|
|
|
778
770
|
return acc;
|
|
779
771
|
}, {});
|
|
780
772
|
};
|
|
781
|
-
const
|
|
773
|
+
const de_ParticipantToken = (output, context) => {
|
|
782
774
|
return {
|
|
783
|
-
attributes: output.attributes != null
|
|
784
|
-
|
|
785
|
-
: undefined,
|
|
786
|
-
capabilities: output.capabilities != null
|
|
787
|
-
? deserializeAws_restJson1ParticipantTokenCapabilities(output.capabilities, context)
|
|
788
|
-
: undefined,
|
|
775
|
+
attributes: output.attributes != null ? de_ParticipantTokenAttributes(output.attributes, context) : undefined,
|
|
776
|
+
capabilities: output.capabilities != null ? de_ParticipantTokenCapabilities(output.capabilities, context) : undefined,
|
|
789
777
|
duration: (0, smithy_client_1.expectInt32)(output.duration),
|
|
790
778
|
expirationTime: output.expirationTime != null
|
|
791
779
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.expirationTime))
|
|
@@ -795,7 +783,7 @@ const deserializeAws_restJson1ParticipantToken = (output, context) => {
|
|
|
795
783
|
userId: (0, smithy_client_1.expectString)(output.userId),
|
|
796
784
|
};
|
|
797
785
|
};
|
|
798
|
-
const
|
|
786
|
+
const de_ParticipantTokenAttributes = (output, context) => {
|
|
799
787
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
800
788
|
if (value === null) {
|
|
801
789
|
return acc;
|
|
@@ -804,7 +792,7 @@ const deserializeAws_restJson1ParticipantTokenAttributes = (output, context) =>
|
|
|
804
792
|
return acc;
|
|
805
793
|
}, {});
|
|
806
794
|
};
|
|
807
|
-
const
|
|
795
|
+
const de_ParticipantTokenCapabilities = (output, context) => {
|
|
808
796
|
const retVal = (output || [])
|
|
809
797
|
.filter((e) => e != null)
|
|
810
798
|
.map((entry) => {
|
|
@@ -815,45 +803,45 @@ const deserializeAws_restJson1ParticipantTokenCapabilities = (output, context) =
|
|
|
815
803
|
});
|
|
816
804
|
return retVal;
|
|
817
805
|
};
|
|
818
|
-
const
|
|
806
|
+
const de_ParticipantTokenList = (output, context) => {
|
|
819
807
|
const retVal = (output || [])
|
|
820
808
|
.filter((e) => e != null)
|
|
821
809
|
.map((entry) => {
|
|
822
810
|
if (entry === null) {
|
|
823
811
|
return null;
|
|
824
812
|
}
|
|
825
|
-
return
|
|
813
|
+
return de_ParticipantToken(entry, context);
|
|
826
814
|
});
|
|
827
815
|
return retVal;
|
|
828
816
|
};
|
|
829
|
-
const
|
|
817
|
+
const de_Stage = (output, context) => {
|
|
830
818
|
return {
|
|
831
819
|
activeSessionId: (0, smithy_client_1.expectString)(output.activeSessionId),
|
|
832
820
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
833
821
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
834
|
-
tags: output.tags != null ?
|
|
822
|
+
tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
|
|
835
823
|
};
|
|
836
824
|
};
|
|
837
|
-
const
|
|
825
|
+
const de_StageSummary = (output, context) => {
|
|
838
826
|
return {
|
|
839
827
|
activeSessionId: (0, smithy_client_1.expectString)(output.activeSessionId),
|
|
840
828
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
841
829
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
842
|
-
tags: output.tags != null ?
|
|
830
|
+
tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
|
|
843
831
|
};
|
|
844
832
|
};
|
|
845
|
-
const
|
|
833
|
+
const de_StageSummaryList = (output, context) => {
|
|
846
834
|
const retVal = (output || [])
|
|
847
835
|
.filter((e) => e != null)
|
|
848
836
|
.map((entry) => {
|
|
849
837
|
if (entry === null) {
|
|
850
838
|
return null;
|
|
851
839
|
}
|
|
852
|
-
return
|
|
840
|
+
return de_StageSummary(entry, context);
|
|
853
841
|
});
|
|
854
842
|
return retVal;
|
|
855
843
|
};
|
|
856
|
-
const
|
|
844
|
+
const de_Tags = (output, context) => {
|
|
857
845
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
858
846
|
if (value === null) {
|
|
859
847
|
return acc;
|