@aws-sdk/client-finspace 3.310.0 → 3.315.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.
|
@@ -12,20 +12,16 @@ const se_CreateEnvironmentCommand = async (input, context) => {
|
|
|
12
12
|
};
|
|
13
13
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environment";
|
|
14
14
|
let body;
|
|
15
|
-
body = JSON.stringify({
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
superuserParameters: se_SuperuserParameters(input.superuserParameters, context),
|
|
26
|
-
}),
|
|
27
|
-
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
28
|
-
});
|
|
15
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
16
|
+
dataBundles: (_) => (0, smithy_client_1._json)(_),
|
|
17
|
+
description: [],
|
|
18
|
+
federationMode: [],
|
|
19
|
+
federationParameters: (_) => (0, smithy_client_1._json)(_),
|
|
20
|
+
kmsKeyId: [],
|
|
21
|
+
name: [],
|
|
22
|
+
superuserParameters: (_) => (0, smithy_client_1._json)(_),
|
|
23
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
24
|
+
}));
|
|
29
25
|
return new protocol_http_1.HttpRequest({
|
|
30
26
|
protocol,
|
|
31
27
|
hostname,
|
|
@@ -75,7 +71,7 @@ const se_ListEnvironmentsCommand = async (input, context) => {
|
|
|
75
71
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
76
72
|
const headers = {};
|
|
77
73
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environment";
|
|
78
|
-
const query = map({
|
|
74
|
+
const query = (0, smithy_client_1.map)({
|
|
79
75
|
nextToken: [, input.nextToken],
|
|
80
76
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
81
77
|
});
|
|
@@ -117,9 +113,9 @@ const se_TagResourceCommand = async (input, context) => {
|
|
|
117
113
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
118
114
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
119
115
|
let body;
|
|
120
|
-
body = JSON.stringify({
|
|
121
|
-
|
|
122
|
-
});
|
|
116
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
117
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
118
|
+
}));
|
|
123
119
|
return new protocol_http_1.HttpRequest({
|
|
124
120
|
protocol,
|
|
125
121
|
hostname,
|
|
@@ -136,7 +132,7 @@ const se_UntagResourceCommand = async (input, context) => {
|
|
|
136
132
|
const headers = {};
|
|
137
133
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
138
134
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
139
|
-
const query = map({
|
|
135
|
+
const query = (0, smithy_client_1.map)({
|
|
140
136
|
tagKeys: [
|
|
141
137
|
(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
142
138
|
() => (input.tagKeys || []).map((_entry) => _entry),
|
|
@@ -163,14 +159,12 @@ const se_UpdateEnvironmentCommand = async (input, context) => {
|
|
|
163
159
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environment/{environmentId}";
|
|
164
160
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "environmentId", () => input.environmentId, "{environmentId}", false);
|
|
165
161
|
let body;
|
|
166
|
-
body = JSON.stringify({
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
...(input.name != null && { name: input.name }),
|
|
173
|
-
});
|
|
162
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
163
|
+
description: [],
|
|
164
|
+
federationMode: [],
|
|
165
|
+
federationParameters: (_) => (0, smithy_client_1._json)(_),
|
|
166
|
+
name: [],
|
|
167
|
+
}));
|
|
174
168
|
return new protocol_http_1.HttpRequest({
|
|
175
169
|
protocol,
|
|
176
170
|
hostname,
|
|
@@ -186,19 +180,16 @@ const de_CreateEnvironmentCommand = async (output, context) => {
|
|
|
186
180
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
187
181
|
return de_CreateEnvironmentCommandError(output, context);
|
|
188
182
|
}
|
|
189
|
-
const contents = map({
|
|
183
|
+
const contents = (0, smithy_client_1.map)({
|
|
190
184
|
$metadata: deserializeMetadata(output),
|
|
191
185
|
});
|
|
192
186
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
if (data.environmentUrl != null) {
|
|
200
|
-
contents.environmentUrl = (0, smithy_client_1.expectString)(data.environmentUrl);
|
|
201
|
-
}
|
|
187
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
188
|
+
environmentArn: smithy_client_1.expectString,
|
|
189
|
+
environmentId: smithy_client_1.expectString,
|
|
190
|
+
environmentUrl: smithy_client_1.expectString,
|
|
191
|
+
});
|
|
192
|
+
Object.assign(contents, doc);
|
|
202
193
|
return contents;
|
|
203
194
|
};
|
|
204
195
|
exports.de_CreateEnvironmentCommand = de_CreateEnvironmentCommand;
|
|
@@ -229,10 +220,9 @@ const de_CreateEnvironmentCommandError = async (output, context) => {
|
|
|
229
220
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
230
221
|
default:
|
|
231
222
|
const parsedBody = parsedOutput.body;
|
|
232
|
-
|
|
223
|
+
return throwDefaultError({
|
|
233
224
|
output,
|
|
234
225
|
parsedBody,
|
|
235
|
-
exceptionCtor: FinspaceServiceException_1.FinspaceServiceException,
|
|
236
226
|
errorCode,
|
|
237
227
|
});
|
|
238
228
|
}
|
|
@@ -241,7 +231,7 @@ const de_DeleteEnvironmentCommand = async (output, context) => {
|
|
|
241
231
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
242
232
|
return de_DeleteEnvironmentCommandError(output, context);
|
|
243
233
|
}
|
|
244
|
-
const contents = map({
|
|
234
|
+
const contents = (0, smithy_client_1.map)({
|
|
245
235
|
$metadata: deserializeMetadata(output),
|
|
246
236
|
});
|
|
247
237
|
await collectBody(output.body, context);
|
|
@@ -272,10 +262,9 @@ const de_DeleteEnvironmentCommandError = async (output, context) => {
|
|
|
272
262
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
273
263
|
default:
|
|
274
264
|
const parsedBody = parsedOutput.body;
|
|
275
|
-
|
|
265
|
+
return throwDefaultError({
|
|
276
266
|
output,
|
|
277
267
|
parsedBody,
|
|
278
|
-
exceptionCtor: FinspaceServiceException_1.FinspaceServiceException,
|
|
279
268
|
errorCode,
|
|
280
269
|
});
|
|
281
270
|
}
|
|
@@ -284,13 +273,14 @@ const de_GetEnvironmentCommand = async (output, context) => {
|
|
|
284
273
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
285
274
|
return de_GetEnvironmentCommandError(output, context);
|
|
286
275
|
}
|
|
287
|
-
const contents = map({
|
|
276
|
+
const contents = (0, smithy_client_1.map)({
|
|
288
277
|
$metadata: deserializeMetadata(output),
|
|
289
278
|
});
|
|
290
279
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
}
|
|
280
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
281
|
+
environment: smithy_client_1._json,
|
|
282
|
+
});
|
|
283
|
+
Object.assign(contents, doc);
|
|
294
284
|
return contents;
|
|
295
285
|
};
|
|
296
286
|
exports.de_GetEnvironmentCommand = de_GetEnvironmentCommand;
|
|
@@ -315,10 +305,9 @@ const de_GetEnvironmentCommandError = async (output, context) => {
|
|
|
315
305
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
316
306
|
default:
|
|
317
307
|
const parsedBody = parsedOutput.body;
|
|
318
|
-
|
|
308
|
+
return throwDefaultError({
|
|
319
309
|
output,
|
|
320
310
|
parsedBody,
|
|
321
|
-
exceptionCtor: FinspaceServiceException_1.FinspaceServiceException,
|
|
322
311
|
errorCode,
|
|
323
312
|
});
|
|
324
313
|
}
|
|
@@ -327,16 +316,15 @@ const de_ListEnvironmentsCommand = async (output, context) => {
|
|
|
327
316
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
328
317
|
return de_ListEnvironmentsCommandError(output, context);
|
|
329
318
|
}
|
|
330
|
-
const contents = map({
|
|
319
|
+
const contents = (0, smithy_client_1.map)({
|
|
331
320
|
$metadata: deserializeMetadata(output),
|
|
332
321
|
});
|
|
333
322
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
}
|
|
323
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
324
|
+
environments: smithy_client_1._json,
|
|
325
|
+
nextToken: smithy_client_1.expectString,
|
|
326
|
+
});
|
|
327
|
+
Object.assign(contents, doc);
|
|
340
328
|
return contents;
|
|
341
329
|
};
|
|
342
330
|
exports.de_ListEnvironmentsCommand = de_ListEnvironmentsCommand;
|
|
@@ -355,10 +343,9 @@ const de_ListEnvironmentsCommandError = async (output, context) => {
|
|
|
355
343
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
356
344
|
default:
|
|
357
345
|
const parsedBody = parsedOutput.body;
|
|
358
|
-
|
|
346
|
+
return throwDefaultError({
|
|
359
347
|
output,
|
|
360
348
|
parsedBody,
|
|
361
|
-
exceptionCtor: FinspaceServiceException_1.FinspaceServiceException,
|
|
362
349
|
errorCode,
|
|
363
350
|
});
|
|
364
351
|
}
|
|
@@ -367,13 +354,14 @@ const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
367
354
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
368
355
|
return de_ListTagsForResourceCommandError(output, context);
|
|
369
356
|
}
|
|
370
|
-
const contents = map({
|
|
357
|
+
const contents = (0, smithy_client_1.map)({
|
|
371
358
|
$metadata: deserializeMetadata(output),
|
|
372
359
|
});
|
|
373
360
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
}
|
|
361
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
362
|
+
tags: smithy_client_1._json,
|
|
363
|
+
});
|
|
364
|
+
Object.assign(contents, doc);
|
|
377
365
|
return contents;
|
|
378
366
|
};
|
|
379
367
|
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
@@ -395,10 +383,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
395
383
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
396
384
|
default:
|
|
397
385
|
const parsedBody = parsedOutput.body;
|
|
398
|
-
|
|
386
|
+
return throwDefaultError({
|
|
399
387
|
output,
|
|
400
388
|
parsedBody,
|
|
401
|
-
exceptionCtor: FinspaceServiceException_1.FinspaceServiceException,
|
|
402
389
|
errorCode,
|
|
403
390
|
});
|
|
404
391
|
}
|
|
@@ -407,7 +394,7 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
407
394
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
408
395
|
return de_TagResourceCommandError(output, context);
|
|
409
396
|
}
|
|
410
|
-
const contents = map({
|
|
397
|
+
const contents = (0, smithy_client_1.map)({
|
|
411
398
|
$metadata: deserializeMetadata(output),
|
|
412
399
|
});
|
|
413
400
|
await collectBody(output.body, context);
|
|
@@ -432,10 +419,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
432
419
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
433
420
|
default:
|
|
434
421
|
const parsedBody = parsedOutput.body;
|
|
435
|
-
|
|
422
|
+
return throwDefaultError({
|
|
436
423
|
output,
|
|
437
424
|
parsedBody,
|
|
438
|
-
exceptionCtor: FinspaceServiceException_1.FinspaceServiceException,
|
|
439
425
|
errorCode,
|
|
440
426
|
});
|
|
441
427
|
}
|
|
@@ -444,7 +430,7 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
444
430
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
445
431
|
return de_UntagResourceCommandError(output, context);
|
|
446
432
|
}
|
|
447
|
-
const contents = map({
|
|
433
|
+
const contents = (0, smithy_client_1.map)({
|
|
448
434
|
$metadata: deserializeMetadata(output),
|
|
449
435
|
});
|
|
450
436
|
await collectBody(output.body, context);
|
|
@@ -469,10 +455,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
469
455
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
470
456
|
default:
|
|
471
457
|
const parsedBody = parsedOutput.body;
|
|
472
|
-
|
|
458
|
+
return throwDefaultError({
|
|
473
459
|
output,
|
|
474
460
|
parsedBody,
|
|
475
|
-
exceptionCtor: FinspaceServiceException_1.FinspaceServiceException,
|
|
476
461
|
errorCode,
|
|
477
462
|
});
|
|
478
463
|
}
|
|
@@ -481,13 +466,14 @@ const de_UpdateEnvironmentCommand = async (output, context) => {
|
|
|
481
466
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
482
467
|
return de_UpdateEnvironmentCommandError(output, context);
|
|
483
468
|
}
|
|
484
|
-
const contents = map({
|
|
469
|
+
const contents = (0, smithy_client_1.map)({
|
|
485
470
|
$metadata: deserializeMetadata(output),
|
|
486
471
|
});
|
|
487
472
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
}
|
|
473
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
474
|
+
environment: smithy_client_1._json,
|
|
475
|
+
});
|
|
476
|
+
Object.assign(contents, doc);
|
|
491
477
|
return contents;
|
|
492
478
|
};
|
|
493
479
|
exports.de_UpdateEnvironmentCommand = de_UpdateEnvironmentCommand;
|
|
@@ -515,18 +501,19 @@ const de_UpdateEnvironmentCommandError = async (output, context) => {
|
|
|
515
501
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
516
502
|
default:
|
|
517
503
|
const parsedBody = parsedOutput.body;
|
|
518
|
-
|
|
504
|
+
return throwDefaultError({
|
|
519
505
|
output,
|
|
520
506
|
parsedBody,
|
|
521
|
-
exceptionCtor: FinspaceServiceException_1.FinspaceServiceException,
|
|
522
507
|
errorCode,
|
|
523
508
|
});
|
|
524
509
|
}
|
|
525
510
|
};
|
|
526
|
-
const
|
|
511
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(FinspaceServiceException_1.FinspaceServiceException);
|
|
527
512
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
528
|
-
const contents = map({});
|
|
513
|
+
const contents = (0, smithy_client_1.map)({});
|
|
529
514
|
const data = parsedOutput.body;
|
|
515
|
+
const doc = (0, smithy_client_1.take)(data, {});
|
|
516
|
+
Object.assign(contents, doc);
|
|
530
517
|
const exception = new models_0_1.AccessDeniedException({
|
|
531
518
|
$metadata: deserializeMetadata(parsedOutput),
|
|
532
519
|
...contents,
|
|
@@ -534,11 +521,12 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
534
521
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
535
522
|
};
|
|
536
523
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
537
|
-
const contents = map({});
|
|
524
|
+
const contents = (0, smithy_client_1.map)({});
|
|
538
525
|
const data = parsedOutput.body;
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
}
|
|
526
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
527
|
+
message: smithy_client_1.expectString,
|
|
528
|
+
});
|
|
529
|
+
Object.assign(contents, doc);
|
|
542
530
|
const exception = new models_0_1.InternalServerException({
|
|
543
531
|
$metadata: deserializeMetadata(parsedOutput),
|
|
544
532
|
...contents,
|
|
@@ -546,11 +534,12 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
546
534
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
547
535
|
};
|
|
548
536
|
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
549
|
-
const contents = map({});
|
|
537
|
+
const contents = (0, smithy_client_1.map)({});
|
|
550
538
|
const data = parsedOutput.body;
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
}
|
|
539
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
540
|
+
message: smithy_client_1.expectString,
|
|
541
|
+
});
|
|
542
|
+
Object.assign(contents, doc);
|
|
554
543
|
const exception = new models_0_1.InvalidRequestException({
|
|
555
544
|
$metadata: deserializeMetadata(parsedOutput),
|
|
556
545
|
...contents,
|
|
@@ -558,11 +547,12 @@ const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
|
558
547
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
559
548
|
};
|
|
560
549
|
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
561
|
-
const contents = map({});
|
|
550
|
+
const contents = (0, smithy_client_1.map)({});
|
|
562
551
|
const data = parsedOutput.body;
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
}
|
|
552
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
553
|
+
message: smithy_client_1.expectString,
|
|
554
|
+
});
|
|
555
|
+
Object.assign(contents, doc);
|
|
566
556
|
const exception = new models_0_1.LimitExceededException({
|
|
567
557
|
$metadata: deserializeMetadata(parsedOutput),
|
|
568
558
|
...contents,
|
|
@@ -570,11 +560,12 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
570
560
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
571
561
|
};
|
|
572
562
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
573
|
-
const contents = map({});
|
|
563
|
+
const contents = (0, smithy_client_1.map)({});
|
|
574
564
|
const data = parsedOutput.body;
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
}
|
|
565
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
566
|
+
message: smithy_client_1.expectString,
|
|
567
|
+
});
|
|
568
|
+
Object.assign(contents, doc);
|
|
578
569
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
579
570
|
$metadata: deserializeMetadata(parsedOutput),
|
|
580
571
|
...contents,
|
|
@@ -582,11 +573,12 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
582
573
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
583
574
|
};
|
|
584
575
|
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
585
|
-
const contents = map({});
|
|
576
|
+
const contents = (0, smithy_client_1.map)({});
|
|
586
577
|
const data = parsedOutput.body;
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
}
|
|
578
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
579
|
+
message: smithy_client_1.expectString,
|
|
580
|
+
});
|
|
581
|
+
Object.assign(contents, doc);
|
|
590
582
|
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
591
583
|
$metadata: deserializeMetadata(parsedOutput),
|
|
592
584
|
...contents,
|
|
@@ -594,8 +586,10 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
594
586
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
595
587
|
};
|
|
596
588
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
597
|
-
const contents = map({});
|
|
589
|
+
const contents = (0, smithy_client_1.map)({});
|
|
598
590
|
const data = parsedOutput.body;
|
|
591
|
+
const doc = (0, smithy_client_1.take)(data, {});
|
|
592
|
+
Object.assign(contents, doc);
|
|
599
593
|
const exception = new models_0_1.ThrottlingException({
|
|
600
594
|
$metadata: deserializeMetadata(parsedOutput),
|
|
601
595
|
...contents,
|
|
@@ -603,114 +597,18 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
603
597
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
604
598
|
};
|
|
605
599
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
606
|
-
const contents = map({});
|
|
600
|
+
const contents = (0, smithy_client_1.map)({});
|
|
607
601
|
const data = parsedOutput.body;
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
}
|
|
602
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
603
|
+
message: smithy_client_1.expectString,
|
|
604
|
+
});
|
|
605
|
+
Object.assign(contents, doc);
|
|
611
606
|
const exception = new models_0_1.ValidationException({
|
|
612
607
|
$metadata: deserializeMetadata(parsedOutput),
|
|
613
608
|
...contents,
|
|
614
609
|
});
|
|
615
610
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
616
611
|
};
|
|
617
|
-
const se_AttributeMap = (input, context) => {
|
|
618
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
619
|
-
if (value === null) {
|
|
620
|
-
return acc;
|
|
621
|
-
}
|
|
622
|
-
acc[key] = value;
|
|
623
|
-
return acc;
|
|
624
|
-
}, {});
|
|
625
|
-
};
|
|
626
|
-
const se_DataBundleArns = (input, context) => {
|
|
627
|
-
return input
|
|
628
|
-
.filter((e) => e != null)
|
|
629
|
-
.map((entry) => {
|
|
630
|
-
return entry;
|
|
631
|
-
});
|
|
632
|
-
};
|
|
633
|
-
const se_FederationParameters = (input, context) => {
|
|
634
|
-
return {
|
|
635
|
-
...(input.applicationCallBackURL != null && { applicationCallBackURL: input.applicationCallBackURL }),
|
|
636
|
-
...(input.attributeMap != null && { attributeMap: se_AttributeMap(input.attributeMap, context) }),
|
|
637
|
-
...(input.federationProviderName != null && { federationProviderName: input.federationProviderName }),
|
|
638
|
-
...(input.federationURN != null && { federationURN: input.federationURN }),
|
|
639
|
-
...(input.samlMetadataDocument != null && { samlMetadataDocument: input.samlMetadataDocument }),
|
|
640
|
-
...(input.samlMetadataURL != null && { samlMetadataURL: input.samlMetadataURL }),
|
|
641
|
-
};
|
|
642
|
-
};
|
|
643
|
-
const se_SuperuserParameters = (input, context) => {
|
|
644
|
-
return {
|
|
645
|
-
...(input.emailAddress != null && { emailAddress: input.emailAddress }),
|
|
646
|
-
...(input.firstName != null && { firstName: input.firstName }),
|
|
647
|
-
...(input.lastName != null && { lastName: input.lastName }),
|
|
648
|
-
};
|
|
649
|
-
};
|
|
650
|
-
const se_TagMap = (input, context) => {
|
|
651
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
652
|
-
if (value === null) {
|
|
653
|
-
return acc;
|
|
654
|
-
}
|
|
655
|
-
acc[key] = value;
|
|
656
|
-
return acc;
|
|
657
|
-
}, {});
|
|
658
|
-
};
|
|
659
|
-
const de_AttributeMap = (output, context) => {
|
|
660
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
661
|
-
if (value === null) {
|
|
662
|
-
return acc;
|
|
663
|
-
}
|
|
664
|
-
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
665
|
-
return acc;
|
|
666
|
-
}, {});
|
|
667
|
-
};
|
|
668
|
-
const de_Environment = (output, context) => {
|
|
669
|
-
return {
|
|
670
|
-
awsAccountId: (0, smithy_client_1.expectString)(output.awsAccountId),
|
|
671
|
-
dedicatedServiceAccountId: (0, smithy_client_1.expectString)(output.dedicatedServiceAccountId),
|
|
672
|
-
description: (0, smithy_client_1.expectString)(output.description),
|
|
673
|
-
environmentArn: (0, smithy_client_1.expectString)(output.environmentArn),
|
|
674
|
-
environmentId: (0, smithy_client_1.expectString)(output.environmentId),
|
|
675
|
-
environmentUrl: (0, smithy_client_1.expectString)(output.environmentUrl),
|
|
676
|
-
federationMode: (0, smithy_client_1.expectString)(output.federationMode),
|
|
677
|
-
federationParameters: output.federationParameters != null ? de_FederationParameters(output.federationParameters, context) : undefined,
|
|
678
|
-
kmsKeyId: (0, smithy_client_1.expectString)(output.kmsKeyId),
|
|
679
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
680
|
-
sageMakerStudioDomainUrl: (0, smithy_client_1.expectString)(output.sageMakerStudioDomainUrl),
|
|
681
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
682
|
-
};
|
|
683
|
-
};
|
|
684
|
-
const de_EnvironmentList = (output, context) => {
|
|
685
|
-
const retVal = (output || [])
|
|
686
|
-
.filter((e) => e != null)
|
|
687
|
-
.map((entry) => {
|
|
688
|
-
if (entry === null) {
|
|
689
|
-
return null;
|
|
690
|
-
}
|
|
691
|
-
return de_Environment(entry, context);
|
|
692
|
-
});
|
|
693
|
-
return retVal;
|
|
694
|
-
};
|
|
695
|
-
const de_FederationParameters = (output, context) => {
|
|
696
|
-
return {
|
|
697
|
-
applicationCallBackURL: (0, smithy_client_1.expectString)(output.applicationCallBackURL),
|
|
698
|
-
attributeMap: output.attributeMap != null ? de_AttributeMap(output.attributeMap, context) : undefined,
|
|
699
|
-
federationProviderName: (0, smithy_client_1.expectString)(output.federationProviderName),
|
|
700
|
-
federationURN: (0, smithy_client_1.expectString)(output.federationURN),
|
|
701
|
-
samlMetadataDocument: (0, smithy_client_1.expectString)(output.samlMetadataDocument),
|
|
702
|
-
samlMetadataURL: (0, smithy_client_1.expectString)(output.samlMetadataURL),
|
|
703
|
-
};
|
|
704
|
-
};
|
|
705
|
-
const de_TagMap = (output, context) => {
|
|
706
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
707
|
-
if (value === null) {
|
|
708
|
-
return acc;
|
|
709
|
-
}
|
|
710
|
-
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
711
|
-
return acc;
|
|
712
|
-
}, {});
|
|
713
|
-
};
|
|
714
612
|
const deserializeMetadata = (output) => ({
|
|
715
613
|
httpStatusCode: output.statusCode,
|
|
716
614
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, resolvedPath as __resolvedPath, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { FinspaceServiceException as __BaseException } from "../models/FinspaceServiceException";
|
|
4
4
|
import { AccessDeniedException, InternalServerException, InvalidRequestException, LimitExceededException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
5
5
|
export const se_CreateEnvironmentCommand = async (input, context) => {
|
|
@@ -9,20 +9,16 @@ export const se_CreateEnvironmentCommand = async (input, context) => {
|
|
|
9
9
|
};
|
|
10
10
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environment";
|
|
11
11
|
let body;
|
|
12
|
-
body = JSON.stringify({
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
superuserParameters: se_SuperuserParameters(input.superuserParameters, context),
|
|
23
|
-
}),
|
|
24
|
-
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
25
|
-
});
|
|
12
|
+
body = JSON.stringify(take(input, {
|
|
13
|
+
dataBundles: (_) => _json(_),
|
|
14
|
+
description: [],
|
|
15
|
+
federationMode: [],
|
|
16
|
+
federationParameters: (_) => _json(_),
|
|
17
|
+
kmsKeyId: [],
|
|
18
|
+
name: [],
|
|
19
|
+
superuserParameters: (_) => _json(_),
|
|
20
|
+
tags: (_) => _json(_),
|
|
21
|
+
}));
|
|
26
22
|
return new __HttpRequest({
|
|
27
23
|
protocol,
|
|
28
24
|
hostname,
|
|
@@ -109,9 +105,9 @@ export const se_TagResourceCommand = async (input, context) => {
|
|
|
109
105
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
110
106
|
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
111
107
|
let body;
|
|
112
|
-
body = JSON.stringify({
|
|
113
|
-
|
|
114
|
-
});
|
|
108
|
+
body = JSON.stringify(take(input, {
|
|
109
|
+
tags: (_) => _json(_),
|
|
110
|
+
}));
|
|
115
111
|
return new __HttpRequest({
|
|
116
112
|
protocol,
|
|
117
113
|
hostname,
|
|
@@ -153,14 +149,12 @@ export const se_UpdateEnvironmentCommand = async (input, context) => {
|
|
|
153
149
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/environment/{environmentId}";
|
|
154
150
|
resolvedPath = __resolvedPath(resolvedPath, input, "environmentId", () => input.environmentId, "{environmentId}", false);
|
|
155
151
|
let body;
|
|
156
|
-
body = JSON.stringify({
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
...(input.name != null && { name: input.name }),
|
|
163
|
-
});
|
|
152
|
+
body = JSON.stringify(take(input, {
|
|
153
|
+
description: [],
|
|
154
|
+
federationMode: [],
|
|
155
|
+
federationParameters: (_) => _json(_),
|
|
156
|
+
name: [],
|
|
157
|
+
}));
|
|
164
158
|
return new __HttpRequest({
|
|
165
159
|
protocol,
|
|
166
160
|
hostname,
|
|
@@ -179,15 +173,12 @@ export const de_CreateEnvironmentCommand = async (output, context) => {
|
|
|
179
173
|
$metadata: deserializeMetadata(output),
|
|
180
174
|
});
|
|
181
175
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
if (data.environmentUrl != null) {
|
|
189
|
-
contents.environmentUrl = __expectString(data.environmentUrl);
|
|
190
|
-
}
|
|
176
|
+
const doc = take(data, {
|
|
177
|
+
environmentArn: __expectString,
|
|
178
|
+
environmentId: __expectString,
|
|
179
|
+
environmentUrl: __expectString,
|
|
180
|
+
});
|
|
181
|
+
Object.assign(contents, doc);
|
|
191
182
|
return contents;
|
|
192
183
|
};
|
|
193
184
|
const de_CreateEnvironmentCommandError = async (output, context) => {
|
|
@@ -217,10 +208,9 @@ const de_CreateEnvironmentCommandError = async (output, context) => {
|
|
|
217
208
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
218
209
|
default:
|
|
219
210
|
const parsedBody = parsedOutput.body;
|
|
220
|
-
throwDefaultError({
|
|
211
|
+
return throwDefaultError({
|
|
221
212
|
output,
|
|
222
213
|
parsedBody,
|
|
223
|
-
exceptionCtor: __BaseException,
|
|
224
214
|
errorCode,
|
|
225
215
|
});
|
|
226
216
|
}
|
|
@@ -259,10 +249,9 @@ const de_DeleteEnvironmentCommandError = async (output, context) => {
|
|
|
259
249
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
260
250
|
default:
|
|
261
251
|
const parsedBody = parsedOutput.body;
|
|
262
|
-
throwDefaultError({
|
|
252
|
+
return throwDefaultError({
|
|
263
253
|
output,
|
|
264
254
|
parsedBody,
|
|
265
|
-
exceptionCtor: __BaseException,
|
|
266
255
|
errorCode,
|
|
267
256
|
});
|
|
268
257
|
}
|
|
@@ -275,9 +264,10 @@ export const de_GetEnvironmentCommand = async (output, context) => {
|
|
|
275
264
|
$metadata: deserializeMetadata(output),
|
|
276
265
|
});
|
|
277
266
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
}
|
|
267
|
+
const doc = take(data, {
|
|
268
|
+
environment: _json,
|
|
269
|
+
});
|
|
270
|
+
Object.assign(contents, doc);
|
|
281
271
|
return contents;
|
|
282
272
|
};
|
|
283
273
|
const de_GetEnvironmentCommandError = async (output, context) => {
|
|
@@ -301,10 +291,9 @@ const de_GetEnvironmentCommandError = async (output, context) => {
|
|
|
301
291
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
302
292
|
default:
|
|
303
293
|
const parsedBody = parsedOutput.body;
|
|
304
|
-
throwDefaultError({
|
|
294
|
+
return throwDefaultError({
|
|
305
295
|
output,
|
|
306
296
|
parsedBody,
|
|
307
|
-
exceptionCtor: __BaseException,
|
|
308
297
|
errorCode,
|
|
309
298
|
});
|
|
310
299
|
}
|
|
@@ -317,12 +306,11 @@ export const de_ListEnvironmentsCommand = async (output, context) => {
|
|
|
317
306
|
$metadata: deserializeMetadata(output),
|
|
318
307
|
});
|
|
319
308
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
}
|
|
309
|
+
const doc = take(data, {
|
|
310
|
+
environments: _json,
|
|
311
|
+
nextToken: __expectString,
|
|
312
|
+
});
|
|
313
|
+
Object.assign(contents, doc);
|
|
326
314
|
return contents;
|
|
327
315
|
};
|
|
328
316
|
const de_ListEnvironmentsCommandError = async (output, context) => {
|
|
@@ -340,10 +328,9 @@ const de_ListEnvironmentsCommandError = async (output, context) => {
|
|
|
340
328
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
341
329
|
default:
|
|
342
330
|
const parsedBody = parsedOutput.body;
|
|
343
|
-
throwDefaultError({
|
|
331
|
+
return throwDefaultError({
|
|
344
332
|
output,
|
|
345
333
|
parsedBody,
|
|
346
|
-
exceptionCtor: __BaseException,
|
|
347
334
|
errorCode,
|
|
348
335
|
});
|
|
349
336
|
}
|
|
@@ -356,9 +343,10 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
356
343
|
$metadata: deserializeMetadata(output),
|
|
357
344
|
});
|
|
358
345
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
}
|
|
346
|
+
const doc = take(data, {
|
|
347
|
+
tags: _json,
|
|
348
|
+
});
|
|
349
|
+
Object.assign(contents, doc);
|
|
362
350
|
return contents;
|
|
363
351
|
};
|
|
364
352
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -379,10 +367,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
379
367
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
380
368
|
default:
|
|
381
369
|
const parsedBody = parsedOutput.body;
|
|
382
|
-
throwDefaultError({
|
|
370
|
+
return throwDefaultError({
|
|
383
371
|
output,
|
|
384
372
|
parsedBody,
|
|
385
|
-
exceptionCtor: __BaseException,
|
|
386
373
|
errorCode,
|
|
387
374
|
});
|
|
388
375
|
}
|
|
@@ -415,10 +402,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
415
402
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
416
403
|
default:
|
|
417
404
|
const parsedBody = parsedOutput.body;
|
|
418
|
-
throwDefaultError({
|
|
405
|
+
return throwDefaultError({
|
|
419
406
|
output,
|
|
420
407
|
parsedBody,
|
|
421
|
-
exceptionCtor: __BaseException,
|
|
422
408
|
errorCode,
|
|
423
409
|
});
|
|
424
410
|
}
|
|
@@ -451,10 +437,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
451
437
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
452
438
|
default:
|
|
453
439
|
const parsedBody = parsedOutput.body;
|
|
454
|
-
throwDefaultError({
|
|
440
|
+
return throwDefaultError({
|
|
455
441
|
output,
|
|
456
442
|
parsedBody,
|
|
457
|
-
exceptionCtor: __BaseException,
|
|
458
443
|
errorCode,
|
|
459
444
|
});
|
|
460
445
|
}
|
|
@@ -467,9 +452,10 @@ export const de_UpdateEnvironmentCommand = async (output, context) => {
|
|
|
467
452
|
$metadata: deserializeMetadata(output),
|
|
468
453
|
});
|
|
469
454
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
}
|
|
455
|
+
const doc = take(data, {
|
|
456
|
+
environment: _json,
|
|
457
|
+
});
|
|
458
|
+
Object.assign(contents, doc);
|
|
473
459
|
return contents;
|
|
474
460
|
};
|
|
475
461
|
const de_UpdateEnvironmentCommandError = async (output, context) => {
|
|
@@ -496,18 +482,19 @@ const de_UpdateEnvironmentCommandError = async (output, context) => {
|
|
|
496
482
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
497
483
|
default:
|
|
498
484
|
const parsedBody = parsedOutput.body;
|
|
499
|
-
throwDefaultError({
|
|
485
|
+
return throwDefaultError({
|
|
500
486
|
output,
|
|
501
487
|
parsedBody,
|
|
502
|
-
exceptionCtor: __BaseException,
|
|
503
488
|
errorCode,
|
|
504
489
|
});
|
|
505
490
|
}
|
|
506
491
|
};
|
|
507
|
-
const
|
|
492
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
508
493
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
509
494
|
const contents = map({});
|
|
510
495
|
const data = parsedOutput.body;
|
|
496
|
+
const doc = take(data, {});
|
|
497
|
+
Object.assign(contents, doc);
|
|
511
498
|
const exception = new AccessDeniedException({
|
|
512
499
|
$metadata: deserializeMetadata(parsedOutput),
|
|
513
500
|
...contents,
|
|
@@ -517,9 +504,10 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
517
504
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
518
505
|
const contents = map({});
|
|
519
506
|
const data = parsedOutput.body;
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
}
|
|
507
|
+
const doc = take(data, {
|
|
508
|
+
message: __expectString,
|
|
509
|
+
});
|
|
510
|
+
Object.assign(contents, doc);
|
|
523
511
|
const exception = new InternalServerException({
|
|
524
512
|
$metadata: deserializeMetadata(parsedOutput),
|
|
525
513
|
...contents,
|
|
@@ -529,9 +517,10 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
529
517
|
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
530
518
|
const contents = map({});
|
|
531
519
|
const data = parsedOutput.body;
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
}
|
|
520
|
+
const doc = take(data, {
|
|
521
|
+
message: __expectString,
|
|
522
|
+
});
|
|
523
|
+
Object.assign(contents, doc);
|
|
535
524
|
const exception = new InvalidRequestException({
|
|
536
525
|
$metadata: deserializeMetadata(parsedOutput),
|
|
537
526
|
...contents,
|
|
@@ -541,9 +530,10 @@ const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
|
541
530
|
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
542
531
|
const contents = map({});
|
|
543
532
|
const data = parsedOutput.body;
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
}
|
|
533
|
+
const doc = take(data, {
|
|
534
|
+
message: __expectString,
|
|
535
|
+
});
|
|
536
|
+
Object.assign(contents, doc);
|
|
547
537
|
const exception = new LimitExceededException({
|
|
548
538
|
$metadata: deserializeMetadata(parsedOutput),
|
|
549
539
|
...contents,
|
|
@@ -553,9 +543,10 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
553
543
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
554
544
|
const contents = map({});
|
|
555
545
|
const data = parsedOutput.body;
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
}
|
|
546
|
+
const doc = take(data, {
|
|
547
|
+
message: __expectString,
|
|
548
|
+
});
|
|
549
|
+
Object.assign(contents, doc);
|
|
559
550
|
const exception = new ResourceNotFoundException({
|
|
560
551
|
$metadata: deserializeMetadata(parsedOutput),
|
|
561
552
|
...contents,
|
|
@@ -565,9 +556,10 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
565
556
|
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
566
557
|
const contents = map({});
|
|
567
558
|
const data = parsedOutput.body;
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
}
|
|
559
|
+
const doc = take(data, {
|
|
560
|
+
message: __expectString,
|
|
561
|
+
});
|
|
562
|
+
Object.assign(contents, doc);
|
|
571
563
|
const exception = new ServiceQuotaExceededException({
|
|
572
564
|
$metadata: deserializeMetadata(parsedOutput),
|
|
573
565
|
...contents,
|
|
@@ -577,6 +569,8 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
577
569
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
578
570
|
const contents = map({});
|
|
579
571
|
const data = parsedOutput.body;
|
|
572
|
+
const doc = take(data, {});
|
|
573
|
+
Object.assign(contents, doc);
|
|
580
574
|
const exception = new ThrottlingException({
|
|
581
575
|
$metadata: deserializeMetadata(parsedOutput),
|
|
582
576
|
...contents,
|
|
@@ -586,112 +580,16 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
586
580
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
587
581
|
const contents = map({});
|
|
588
582
|
const data = parsedOutput.body;
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
}
|
|
583
|
+
const doc = take(data, {
|
|
584
|
+
message: __expectString,
|
|
585
|
+
});
|
|
586
|
+
Object.assign(contents, doc);
|
|
592
587
|
const exception = new ValidationException({
|
|
593
588
|
$metadata: deserializeMetadata(parsedOutput),
|
|
594
589
|
...contents,
|
|
595
590
|
});
|
|
596
591
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
597
592
|
};
|
|
598
|
-
const se_AttributeMap = (input, context) => {
|
|
599
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
600
|
-
if (value === null) {
|
|
601
|
-
return acc;
|
|
602
|
-
}
|
|
603
|
-
acc[key] = value;
|
|
604
|
-
return acc;
|
|
605
|
-
}, {});
|
|
606
|
-
};
|
|
607
|
-
const se_DataBundleArns = (input, context) => {
|
|
608
|
-
return input
|
|
609
|
-
.filter((e) => e != null)
|
|
610
|
-
.map((entry) => {
|
|
611
|
-
return entry;
|
|
612
|
-
});
|
|
613
|
-
};
|
|
614
|
-
const se_FederationParameters = (input, context) => {
|
|
615
|
-
return {
|
|
616
|
-
...(input.applicationCallBackURL != null && { applicationCallBackURL: input.applicationCallBackURL }),
|
|
617
|
-
...(input.attributeMap != null && { attributeMap: se_AttributeMap(input.attributeMap, context) }),
|
|
618
|
-
...(input.federationProviderName != null && { federationProviderName: input.federationProviderName }),
|
|
619
|
-
...(input.federationURN != null && { federationURN: input.federationURN }),
|
|
620
|
-
...(input.samlMetadataDocument != null && { samlMetadataDocument: input.samlMetadataDocument }),
|
|
621
|
-
...(input.samlMetadataURL != null && { samlMetadataURL: input.samlMetadataURL }),
|
|
622
|
-
};
|
|
623
|
-
};
|
|
624
|
-
const se_SuperuserParameters = (input, context) => {
|
|
625
|
-
return {
|
|
626
|
-
...(input.emailAddress != null && { emailAddress: input.emailAddress }),
|
|
627
|
-
...(input.firstName != null && { firstName: input.firstName }),
|
|
628
|
-
...(input.lastName != null && { lastName: input.lastName }),
|
|
629
|
-
};
|
|
630
|
-
};
|
|
631
|
-
const se_TagMap = (input, context) => {
|
|
632
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
633
|
-
if (value === null) {
|
|
634
|
-
return acc;
|
|
635
|
-
}
|
|
636
|
-
acc[key] = value;
|
|
637
|
-
return acc;
|
|
638
|
-
}, {});
|
|
639
|
-
};
|
|
640
|
-
const de_AttributeMap = (output, context) => {
|
|
641
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
642
|
-
if (value === null) {
|
|
643
|
-
return acc;
|
|
644
|
-
}
|
|
645
|
-
acc[key] = __expectString(value);
|
|
646
|
-
return acc;
|
|
647
|
-
}, {});
|
|
648
|
-
};
|
|
649
|
-
const de_Environment = (output, context) => {
|
|
650
|
-
return {
|
|
651
|
-
awsAccountId: __expectString(output.awsAccountId),
|
|
652
|
-
dedicatedServiceAccountId: __expectString(output.dedicatedServiceAccountId),
|
|
653
|
-
description: __expectString(output.description),
|
|
654
|
-
environmentArn: __expectString(output.environmentArn),
|
|
655
|
-
environmentId: __expectString(output.environmentId),
|
|
656
|
-
environmentUrl: __expectString(output.environmentUrl),
|
|
657
|
-
federationMode: __expectString(output.federationMode),
|
|
658
|
-
federationParameters: output.federationParameters != null ? de_FederationParameters(output.federationParameters, context) : undefined,
|
|
659
|
-
kmsKeyId: __expectString(output.kmsKeyId),
|
|
660
|
-
name: __expectString(output.name),
|
|
661
|
-
sageMakerStudioDomainUrl: __expectString(output.sageMakerStudioDomainUrl),
|
|
662
|
-
status: __expectString(output.status),
|
|
663
|
-
};
|
|
664
|
-
};
|
|
665
|
-
const de_EnvironmentList = (output, context) => {
|
|
666
|
-
const retVal = (output || [])
|
|
667
|
-
.filter((e) => e != null)
|
|
668
|
-
.map((entry) => {
|
|
669
|
-
if (entry === null) {
|
|
670
|
-
return null;
|
|
671
|
-
}
|
|
672
|
-
return de_Environment(entry, context);
|
|
673
|
-
});
|
|
674
|
-
return retVal;
|
|
675
|
-
};
|
|
676
|
-
const de_FederationParameters = (output, context) => {
|
|
677
|
-
return {
|
|
678
|
-
applicationCallBackURL: __expectString(output.applicationCallBackURL),
|
|
679
|
-
attributeMap: output.attributeMap != null ? de_AttributeMap(output.attributeMap, context) : undefined,
|
|
680
|
-
federationProviderName: __expectString(output.federationProviderName),
|
|
681
|
-
federationURN: __expectString(output.federationURN),
|
|
682
|
-
samlMetadataDocument: __expectString(output.samlMetadataDocument),
|
|
683
|
-
samlMetadataURL: __expectString(output.samlMetadataURL),
|
|
684
|
-
};
|
|
685
|
-
};
|
|
686
|
-
const de_TagMap = (output, context) => {
|
|
687
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
688
|
-
if (value === null) {
|
|
689
|
-
return acc;
|
|
690
|
-
}
|
|
691
|
-
acc[key] = __expectString(value);
|
|
692
|
-
return acc;
|
|
693
|
-
}, {});
|
|
694
|
-
};
|
|
695
593
|
const deserializeMetadata = (output) => ({
|
|
696
594
|
httpStatusCode: output.statusCode,
|
|
697
595
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-finspace",
|
|
3
3
|
"description": "AWS SDK for JavaScript Finspace Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.315.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.315.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.315.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.310.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.310.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.310.0",
|
|
@@ -40,14 +40,14 @@
|
|
|
40
40
|
"@aws-sdk/node-config-provider": "3.310.0",
|
|
41
41
|
"@aws-sdk/node-http-handler": "3.310.0",
|
|
42
42
|
"@aws-sdk/protocol-http": "3.310.0",
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
43
|
+
"@aws-sdk/smithy-client": "3.315.0",
|
|
44
44
|
"@aws-sdk/types": "3.310.0",
|
|
45
45
|
"@aws-sdk/url-parser": "3.310.0",
|
|
46
46
|
"@aws-sdk/util-base64": "3.310.0",
|
|
47
47
|
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
48
48
|
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.315.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.315.0",
|
|
51
51
|
"@aws-sdk/util-endpoints": "3.310.0",
|
|
52
52
|
"@aws-sdk/util-retry": "3.310.0",
|
|
53
53
|
"@aws-sdk/util-user-agent-browser": "3.310.0",
|