@aws-sdk/client-grafana 3.312.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.
- package/dist-cjs/protocols/Aws_restJson1.js +243 -731
- package/dist-es/protocols/Aws_restJson1.js +217 -705
- package/package.json +6 -6
|
@@ -32,34 +32,24 @@ const se_CreateWorkspaceCommand = async (input, context) => {
|
|
|
32
32
|
};
|
|
33
33
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces";
|
|
34
34
|
let body;
|
|
35
|
-
body = JSON.stringify({
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
...(input.workspaceDescription != null && { workspaceDescription: input.workspaceDescription }),
|
|
54
|
-
...(input.workspaceName != null && { workspaceName: input.workspaceName }),
|
|
55
|
-
...(input.workspaceNotificationDestinations != null && {
|
|
56
|
-
workspaceNotificationDestinations: se_NotificationDestinationsList(input.workspaceNotificationDestinations, context),
|
|
57
|
-
}),
|
|
58
|
-
...(input.workspaceOrganizationalUnits != null && {
|
|
59
|
-
workspaceOrganizationalUnits: se_OrganizationalUnitList(input.workspaceOrganizationalUnits, context),
|
|
60
|
-
}),
|
|
61
|
-
...(input.workspaceRoleArn != null && { workspaceRoleArn: input.workspaceRoleArn }),
|
|
62
|
-
});
|
|
35
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
36
|
+
accountAccessType: [],
|
|
37
|
+
authenticationProviders: (_) => (0, smithy_client_1._json)(_),
|
|
38
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
39
|
+
configuration: (_) => smithy_client_1.LazyJsonString.fromObject(_),
|
|
40
|
+
networkAccessControl: (_) => (0, smithy_client_1._json)(_),
|
|
41
|
+
organizationRoleName: [],
|
|
42
|
+
permissionType: [],
|
|
43
|
+
stackSetName: [],
|
|
44
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
45
|
+
vpcConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
46
|
+
workspaceDataSources: (_) => (0, smithy_client_1._json)(_),
|
|
47
|
+
workspaceDescription: [],
|
|
48
|
+
workspaceName: [],
|
|
49
|
+
workspaceNotificationDestinations: (_) => (0, smithy_client_1._json)(_),
|
|
50
|
+
workspaceOrganizationalUnits: (_) => (0, smithy_client_1._json)(_),
|
|
51
|
+
workspaceRoleArn: [],
|
|
52
|
+
}));
|
|
63
53
|
return new protocol_http_1.HttpRequest({
|
|
64
54
|
protocol,
|
|
65
55
|
hostname,
|
|
@@ -79,11 +69,11 @@ const se_CreateWorkspaceApiKeyCommand = async (input, context) => {
|
|
|
79
69
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}/apikeys";
|
|
80
70
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
81
71
|
let body;
|
|
82
|
-
body = JSON.stringify({
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
});
|
|
72
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
73
|
+
keyName: [],
|
|
74
|
+
keyRole: [],
|
|
75
|
+
secondsToLive: [],
|
|
76
|
+
}));
|
|
87
77
|
return new protocol_http_1.HttpRequest({
|
|
88
78
|
protocol,
|
|
89
79
|
hostname,
|
|
@@ -206,7 +196,7 @@ const se_ListPermissionsCommand = async (input, context) => {
|
|
|
206
196
|
const headers = {};
|
|
207
197
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}/permissions";
|
|
208
198
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
209
|
-
const query = map({
|
|
199
|
+
const query = (0, smithy_client_1.map)({
|
|
210
200
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
211
201
|
nextToken: [, input.nextToken],
|
|
212
202
|
userType: [, input.userType],
|
|
@@ -247,7 +237,7 @@ const se_ListWorkspacesCommand = async (input, context) => {
|
|
|
247
237
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
248
238
|
const headers = {};
|
|
249
239
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces";
|
|
250
|
-
const query = map({
|
|
240
|
+
const query = (0, smithy_client_1.map)({
|
|
251
241
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
252
242
|
nextToken: [, input.nextToken],
|
|
253
243
|
});
|
|
@@ -272,9 +262,9 @@ const se_TagResourceCommand = async (input, context) => {
|
|
|
272
262
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
273
263
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
274
264
|
let body;
|
|
275
|
-
body = JSON.stringify({
|
|
276
|
-
|
|
277
|
-
});
|
|
265
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
266
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
267
|
+
}));
|
|
278
268
|
return new protocol_http_1.HttpRequest({
|
|
279
269
|
protocol,
|
|
280
270
|
hostname,
|
|
@@ -291,7 +281,7 @@ const se_UntagResourceCommand = async (input, context) => {
|
|
|
291
281
|
const headers = {};
|
|
292
282
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
293
283
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
294
|
-
const query = map({
|
|
284
|
+
const query = (0, smithy_client_1.map)({
|
|
295
285
|
tagKeys: [
|
|
296
286
|
(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
297
287
|
() => (input.tagKeys || []).map((_entry) => _entry),
|
|
@@ -318,11 +308,9 @@ const se_UpdatePermissionsCommand = async (input, context) => {
|
|
|
318
308
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}/permissions";
|
|
319
309
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
320
310
|
let body;
|
|
321
|
-
body = JSON.stringify({
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
}),
|
|
325
|
-
});
|
|
311
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
312
|
+
updateInstructionBatch: (_) => (0, smithy_client_1._json)(_),
|
|
313
|
+
}));
|
|
326
314
|
return new protocol_http_1.HttpRequest({
|
|
327
315
|
protocol,
|
|
328
316
|
hostname,
|
|
@@ -342,32 +330,22 @@ const se_UpdateWorkspaceCommand = async (input, context) => {
|
|
|
342
330
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}";
|
|
343
331
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
344
332
|
let body;
|
|
345
|
-
body = JSON.stringify({
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
...(input.workspaceDescription != null && { workspaceDescription: input.workspaceDescription }),
|
|
362
|
-
...(input.workspaceName != null && { workspaceName: input.workspaceName }),
|
|
363
|
-
...(input.workspaceNotificationDestinations != null && {
|
|
364
|
-
workspaceNotificationDestinations: se_NotificationDestinationsList(input.workspaceNotificationDestinations, context),
|
|
365
|
-
}),
|
|
366
|
-
...(input.workspaceOrganizationalUnits != null && {
|
|
367
|
-
workspaceOrganizationalUnits: se_OrganizationalUnitList(input.workspaceOrganizationalUnits, context),
|
|
368
|
-
}),
|
|
369
|
-
...(input.workspaceRoleArn != null && { workspaceRoleArn: input.workspaceRoleArn }),
|
|
370
|
-
});
|
|
333
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
334
|
+
accountAccessType: [],
|
|
335
|
+
networkAccessControl: (_) => (0, smithy_client_1._json)(_),
|
|
336
|
+
organizationRoleName: [],
|
|
337
|
+
permissionType: [],
|
|
338
|
+
removeNetworkAccessConfiguration: [],
|
|
339
|
+
removeVpcConfiguration: [],
|
|
340
|
+
stackSetName: [],
|
|
341
|
+
vpcConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
342
|
+
workspaceDataSources: (_) => (0, smithy_client_1._json)(_),
|
|
343
|
+
workspaceDescription: [],
|
|
344
|
+
workspaceName: [],
|
|
345
|
+
workspaceNotificationDestinations: (_) => (0, smithy_client_1._json)(_),
|
|
346
|
+
workspaceOrganizationalUnits: (_) => (0, smithy_client_1._json)(_),
|
|
347
|
+
workspaceRoleArn: [],
|
|
348
|
+
}));
|
|
371
349
|
return new protocol_http_1.HttpRequest({
|
|
372
350
|
protocol,
|
|
373
351
|
hostname,
|
|
@@ -387,14 +365,10 @@ const se_UpdateWorkspaceAuthenticationCommand = async (input, context) => {
|
|
|
387
365
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}/authentication";
|
|
388
366
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
389
367
|
let body;
|
|
390
|
-
body = JSON.stringify({
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
...(input.samlConfiguration != null && {
|
|
395
|
-
samlConfiguration: se_SamlConfiguration(input.samlConfiguration, context),
|
|
396
|
-
}),
|
|
397
|
-
});
|
|
368
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
369
|
+
authenticationProviders: (_) => (0, smithy_client_1._json)(_),
|
|
370
|
+
samlConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
371
|
+
}));
|
|
398
372
|
return new protocol_http_1.HttpRequest({
|
|
399
373
|
protocol,
|
|
400
374
|
hostname,
|
|
@@ -414,9 +388,9 @@ const se_UpdateWorkspaceConfigurationCommand = async (input, context) => {
|
|
|
414
388
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}/configuration";
|
|
415
389
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
416
390
|
let body;
|
|
417
|
-
body = JSON.stringify({
|
|
418
|
-
|
|
419
|
-
});
|
|
391
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
392
|
+
configuration: (_) => smithy_client_1.LazyJsonString.fromObject(_),
|
|
393
|
+
}));
|
|
420
394
|
return new protocol_http_1.HttpRequest({
|
|
421
395
|
protocol,
|
|
422
396
|
hostname,
|
|
@@ -432,13 +406,14 @@ const de_AssociateLicenseCommand = async (output, context) => {
|
|
|
432
406
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
433
407
|
return de_AssociateLicenseCommandError(output, context);
|
|
434
408
|
}
|
|
435
|
-
const contents = map({
|
|
409
|
+
const contents = (0, smithy_client_1.map)({
|
|
436
410
|
$metadata: deserializeMetadata(output),
|
|
437
411
|
});
|
|
438
412
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
}
|
|
413
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
414
|
+
workspace: (_) => de_WorkspaceDescription(_, context),
|
|
415
|
+
});
|
|
416
|
+
Object.assign(contents, doc);
|
|
442
417
|
return contents;
|
|
443
418
|
};
|
|
444
419
|
exports.de_AssociateLicenseCommand = de_AssociateLicenseCommand;
|
|
@@ -466,10 +441,9 @@ const de_AssociateLicenseCommandError = async (output, context) => {
|
|
|
466
441
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
467
442
|
default:
|
|
468
443
|
const parsedBody = parsedOutput.body;
|
|
469
|
-
|
|
444
|
+
return throwDefaultError({
|
|
470
445
|
output,
|
|
471
446
|
parsedBody,
|
|
472
|
-
exceptionCtor: GrafanaServiceException_1.GrafanaServiceException,
|
|
473
447
|
errorCode,
|
|
474
448
|
});
|
|
475
449
|
}
|
|
@@ -478,13 +452,14 @@ const de_CreateWorkspaceCommand = async (output, context) => {
|
|
|
478
452
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
479
453
|
return de_CreateWorkspaceCommandError(output, context);
|
|
480
454
|
}
|
|
481
|
-
const contents = map({
|
|
455
|
+
const contents = (0, smithy_client_1.map)({
|
|
482
456
|
$metadata: deserializeMetadata(output),
|
|
483
457
|
});
|
|
484
458
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
}
|
|
459
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
460
|
+
workspace: (_) => de_WorkspaceDescription(_, context),
|
|
461
|
+
});
|
|
462
|
+
Object.assign(contents, doc);
|
|
488
463
|
return contents;
|
|
489
464
|
};
|
|
490
465
|
exports.de_CreateWorkspaceCommand = de_CreateWorkspaceCommand;
|
|
@@ -515,10 +490,9 @@ const de_CreateWorkspaceCommandError = async (output, context) => {
|
|
|
515
490
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
516
491
|
default:
|
|
517
492
|
const parsedBody = parsedOutput.body;
|
|
518
|
-
|
|
493
|
+
return throwDefaultError({
|
|
519
494
|
output,
|
|
520
495
|
parsedBody,
|
|
521
|
-
exceptionCtor: GrafanaServiceException_1.GrafanaServiceException,
|
|
522
496
|
errorCode,
|
|
523
497
|
});
|
|
524
498
|
}
|
|
@@ -527,19 +501,16 @@ const de_CreateWorkspaceApiKeyCommand = async (output, context) => {
|
|
|
527
501
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
528
502
|
return de_CreateWorkspaceApiKeyCommandError(output, context);
|
|
529
503
|
}
|
|
530
|
-
const contents = map({
|
|
504
|
+
const contents = (0, smithy_client_1.map)({
|
|
531
505
|
$metadata: deserializeMetadata(output),
|
|
532
506
|
});
|
|
533
507
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
if (data.workspaceId != null) {
|
|
541
|
-
contents.workspaceId = (0, smithy_client_1.expectString)(data.workspaceId);
|
|
542
|
-
}
|
|
508
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
509
|
+
key: smithy_client_1.expectString,
|
|
510
|
+
keyName: smithy_client_1.expectString,
|
|
511
|
+
workspaceId: smithy_client_1.expectString,
|
|
512
|
+
});
|
|
513
|
+
Object.assign(contents, doc);
|
|
543
514
|
return contents;
|
|
544
515
|
};
|
|
545
516
|
exports.de_CreateWorkspaceApiKeyCommand = de_CreateWorkspaceApiKeyCommand;
|
|
@@ -573,10 +544,9 @@ const de_CreateWorkspaceApiKeyCommandError = async (output, context) => {
|
|
|
573
544
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
574
545
|
default:
|
|
575
546
|
const parsedBody = parsedOutput.body;
|
|
576
|
-
|
|
547
|
+
return throwDefaultError({
|
|
577
548
|
output,
|
|
578
549
|
parsedBody,
|
|
579
|
-
exceptionCtor: GrafanaServiceException_1.GrafanaServiceException,
|
|
580
550
|
errorCode,
|
|
581
551
|
});
|
|
582
552
|
}
|
|
@@ -585,13 +555,14 @@ const de_DeleteWorkspaceCommand = async (output, context) => {
|
|
|
585
555
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
586
556
|
return de_DeleteWorkspaceCommandError(output, context);
|
|
587
557
|
}
|
|
588
|
-
const contents = map({
|
|
558
|
+
const contents = (0, smithy_client_1.map)({
|
|
589
559
|
$metadata: deserializeMetadata(output),
|
|
590
560
|
});
|
|
591
561
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
}
|
|
562
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
563
|
+
workspace: (_) => de_WorkspaceDescription(_, context),
|
|
564
|
+
});
|
|
565
|
+
Object.assign(contents, doc);
|
|
595
566
|
return contents;
|
|
596
567
|
};
|
|
597
568
|
exports.de_DeleteWorkspaceCommand = de_DeleteWorkspaceCommand;
|
|
@@ -622,10 +593,9 @@ const de_DeleteWorkspaceCommandError = async (output, context) => {
|
|
|
622
593
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
623
594
|
default:
|
|
624
595
|
const parsedBody = parsedOutput.body;
|
|
625
|
-
|
|
596
|
+
return throwDefaultError({
|
|
626
597
|
output,
|
|
627
598
|
parsedBody,
|
|
628
|
-
exceptionCtor: GrafanaServiceException_1.GrafanaServiceException,
|
|
629
599
|
errorCode,
|
|
630
600
|
});
|
|
631
601
|
}
|
|
@@ -634,16 +604,15 @@ const de_DeleteWorkspaceApiKeyCommand = async (output, context) => {
|
|
|
634
604
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
635
605
|
return de_DeleteWorkspaceApiKeyCommandError(output, context);
|
|
636
606
|
}
|
|
637
|
-
const contents = map({
|
|
607
|
+
const contents = (0, smithy_client_1.map)({
|
|
638
608
|
$metadata: deserializeMetadata(output),
|
|
639
609
|
});
|
|
640
610
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
}
|
|
611
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
612
|
+
keyName: smithy_client_1.expectString,
|
|
613
|
+
workspaceId: smithy_client_1.expectString,
|
|
614
|
+
});
|
|
615
|
+
Object.assign(contents, doc);
|
|
647
616
|
return contents;
|
|
648
617
|
};
|
|
649
618
|
exports.de_DeleteWorkspaceApiKeyCommand = de_DeleteWorkspaceApiKeyCommand;
|
|
@@ -674,10 +643,9 @@ const de_DeleteWorkspaceApiKeyCommandError = async (output, context) => {
|
|
|
674
643
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
675
644
|
default:
|
|
676
645
|
const parsedBody = parsedOutput.body;
|
|
677
|
-
|
|
646
|
+
return throwDefaultError({
|
|
678
647
|
output,
|
|
679
648
|
parsedBody,
|
|
680
|
-
exceptionCtor: GrafanaServiceException_1.GrafanaServiceException,
|
|
681
649
|
errorCode,
|
|
682
650
|
});
|
|
683
651
|
}
|
|
@@ -686,13 +654,14 @@ const de_DescribeWorkspaceCommand = async (output, context) => {
|
|
|
686
654
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
687
655
|
return de_DescribeWorkspaceCommandError(output, context);
|
|
688
656
|
}
|
|
689
|
-
const contents = map({
|
|
657
|
+
const contents = (0, smithy_client_1.map)({
|
|
690
658
|
$metadata: deserializeMetadata(output),
|
|
691
659
|
});
|
|
692
660
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
}
|
|
661
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
662
|
+
workspace: (_) => de_WorkspaceDescription(_, context),
|
|
663
|
+
});
|
|
664
|
+
Object.assign(contents, doc);
|
|
696
665
|
return contents;
|
|
697
666
|
};
|
|
698
667
|
exports.de_DescribeWorkspaceCommand = de_DescribeWorkspaceCommand;
|
|
@@ -720,10 +689,9 @@ const de_DescribeWorkspaceCommandError = async (output, context) => {
|
|
|
720
689
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
721
690
|
default:
|
|
722
691
|
const parsedBody = parsedOutput.body;
|
|
723
|
-
|
|
692
|
+
return throwDefaultError({
|
|
724
693
|
output,
|
|
725
694
|
parsedBody,
|
|
726
|
-
exceptionCtor: GrafanaServiceException_1.GrafanaServiceException,
|
|
727
695
|
errorCode,
|
|
728
696
|
});
|
|
729
697
|
}
|
|
@@ -732,13 +700,14 @@ const de_DescribeWorkspaceAuthenticationCommand = async (output, context) => {
|
|
|
732
700
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
733
701
|
return de_DescribeWorkspaceAuthenticationCommandError(output, context);
|
|
734
702
|
}
|
|
735
|
-
const contents = map({
|
|
703
|
+
const contents = (0, smithy_client_1.map)({
|
|
736
704
|
$metadata: deserializeMetadata(output),
|
|
737
705
|
});
|
|
738
706
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
}
|
|
707
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
708
|
+
authentication: smithy_client_1._json,
|
|
709
|
+
});
|
|
710
|
+
Object.assign(contents, doc);
|
|
742
711
|
return contents;
|
|
743
712
|
};
|
|
744
713
|
exports.de_DescribeWorkspaceAuthenticationCommand = de_DescribeWorkspaceAuthenticationCommand;
|
|
@@ -766,10 +735,9 @@ const de_DescribeWorkspaceAuthenticationCommandError = async (output, context) =
|
|
|
766
735
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
767
736
|
default:
|
|
768
737
|
const parsedBody = parsedOutput.body;
|
|
769
|
-
|
|
738
|
+
return throwDefaultError({
|
|
770
739
|
output,
|
|
771
740
|
parsedBody,
|
|
772
|
-
exceptionCtor: GrafanaServiceException_1.GrafanaServiceException,
|
|
773
741
|
errorCode,
|
|
774
742
|
});
|
|
775
743
|
}
|
|
@@ -778,13 +746,14 @@ const de_DescribeWorkspaceConfigurationCommand = async (output, context) => {
|
|
|
778
746
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
779
747
|
return de_DescribeWorkspaceConfigurationCommandError(output, context);
|
|
780
748
|
}
|
|
781
|
-
const contents = map({
|
|
749
|
+
const contents = (0, smithy_client_1.map)({
|
|
782
750
|
$metadata: deserializeMetadata(output),
|
|
783
751
|
});
|
|
784
752
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
}
|
|
753
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
754
|
+
configuration: (_) => new smithy_client_1.LazyJsonString(_),
|
|
755
|
+
});
|
|
756
|
+
Object.assign(contents, doc);
|
|
788
757
|
return contents;
|
|
789
758
|
};
|
|
790
759
|
exports.de_DescribeWorkspaceConfigurationCommand = de_DescribeWorkspaceConfigurationCommand;
|
|
@@ -809,10 +778,9 @@ const de_DescribeWorkspaceConfigurationCommandError = async (output, context) =>
|
|
|
809
778
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
810
779
|
default:
|
|
811
780
|
const parsedBody = parsedOutput.body;
|
|
812
|
-
|
|
781
|
+
return throwDefaultError({
|
|
813
782
|
output,
|
|
814
783
|
parsedBody,
|
|
815
|
-
exceptionCtor: GrafanaServiceException_1.GrafanaServiceException,
|
|
816
784
|
errorCode,
|
|
817
785
|
});
|
|
818
786
|
}
|
|
@@ -821,13 +789,14 @@ const de_DisassociateLicenseCommand = async (output, context) => {
|
|
|
821
789
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
822
790
|
return de_DisassociateLicenseCommandError(output, context);
|
|
823
791
|
}
|
|
824
|
-
const contents = map({
|
|
792
|
+
const contents = (0, smithy_client_1.map)({
|
|
825
793
|
$metadata: deserializeMetadata(output),
|
|
826
794
|
});
|
|
827
795
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
}
|
|
796
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
797
|
+
workspace: (_) => de_WorkspaceDescription(_, context),
|
|
798
|
+
});
|
|
799
|
+
Object.assign(contents, doc);
|
|
831
800
|
return contents;
|
|
832
801
|
};
|
|
833
802
|
exports.de_DisassociateLicenseCommand = de_DisassociateLicenseCommand;
|
|
@@ -855,10 +824,9 @@ const de_DisassociateLicenseCommandError = async (output, context) => {
|
|
|
855
824
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
856
825
|
default:
|
|
857
826
|
const parsedBody = parsedOutput.body;
|
|
858
|
-
|
|
827
|
+
return throwDefaultError({
|
|
859
828
|
output,
|
|
860
829
|
parsedBody,
|
|
861
|
-
exceptionCtor: GrafanaServiceException_1.GrafanaServiceException,
|
|
862
830
|
errorCode,
|
|
863
831
|
});
|
|
864
832
|
}
|
|
@@ -867,16 +835,15 @@ const de_ListPermissionsCommand = async (output, context) => {
|
|
|
867
835
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
868
836
|
return de_ListPermissionsCommandError(output, context);
|
|
869
837
|
}
|
|
870
|
-
const contents = map({
|
|
838
|
+
const contents = (0, smithy_client_1.map)({
|
|
871
839
|
$metadata: deserializeMetadata(output),
|
|
872
840
|
});
|
|
873
841
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
}
|
|
842
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
843
|
+
nextToken: smithy_client_1.expectString,
|
|
844
|
+
permissions: smithy_client_1._json,
|
|
845
|
+
});
|
|
846
|
+
Object.assign(contents, doc);
|
|
880
847
|
return contents;
|
|
881
848
|
};
|
|
882
849
|
exports.de_ListPermissionsCommand = de_ListPermissionsCommand;
|
|
@@ -904,10 +871,9 @@ const de_ListPermissionsCommandError = async (output, context) => {
|
|
|
904
871
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
905
872
|
default:
|
|
906
873
|
const parsedBody = parsedOutput.body;
|
|
907
|
-
|
|
874
|
+
return throwDefaultError({
|
|
908
875
|
output,
|
|
909
876
|
parsedBody,
|
|
910
|
-
exceptionCtor: GrafanaServiceException_1.GrafanaServiceException,
|
|
911
877
|
errorCode,
|
|
912
878
|
});
|
|
913
879
|
}
|
|
@@ -916,13 +882,14 @@ const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
916
882
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
917
883
|
return de_ListTagsForResourceCommandError(output, context);
|
|
918
884
|
}
|
|
919
|
-
const contents = map({
|
|
885
|
+
const contents = (0, smithy_client_1.map)({
|
|
920
886
|
$metadata: deserializeMetadata(output),
|
|
921
887
|
});
|
|
922
888
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
}
|
|
889
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
890
|
+
tags: smithy_client_1._json,
|
|
891
|
+
});
|
|
892
|
+
Object.assign(contents, doc);
|
|
926
893
|
return contents;
|
|
927
894
|
};
|
|
928
895
|
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
@@ -950,10 +917,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
950
917
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
951
918
|
default:
|
|
952
919
|
const parsedBody = parsedOutput.body;
|
|
953
|
-
|
|
920
|
+
return throwDefaultError({
|
|
954
921
|
output,
|
|
955
922
|
parsedBody,
|
|
956
|
-
exceptionCtor: GrafanaServiceException_1.GrafanaServiceException,
|
|
957
923
|
errorCode,
|
|
958
924
|
});
|
|
959
925
|
}
|
|
@@ -962,16 +928,15 @@ const de_ListWorkspacesCommand = async (output, context) => {
|
|
|
962
928
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
963
929
|
return de_ListWorkspacesCommandError(output, context);
|
|
964
930
|
}
|
|
965
|
-
const contents = map({
|
|
931
|
+
const contents = (0, smithy_client_1.map)({
|
|
966
932
|
$metadata: deserializeMetadata(output),
|
|
967
933
|
});
|
|
968
934
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
}
|
|
935
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
936
|
+
nextToken: smithy_client_1.expectString,
|
|
937
|
+
workspaces: (_) => de_WorkspaceList(_, context),
|
|
938
|
+
});
|
|
939
|
+
Object.assign(contents, doc);
|
|
975
940
|
return contents;
|
|
976
941
|
};
|
|
977
942
|
exports.de_ListWorkspacesCommand = de_ListWorkspacesCommand;
|
|
@@ -993,10 +958,9 @@ const de_ListWorkspacesCommandError = async (output, context) => {
|
|
|
993
958
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
994
959
|
default:
|
|
995
960
|
const parsedBody = parsedOutput.body;
|
|
996
|
-
|
|
961
|
+
return throwDefaultError({
|
|
997
962
|
output,
|
|
998
963
|
parsedBody,
|
|
999
|
-
exceptionCtor: GrafanaServiceException_1.GrafanaServiceException,
|
|
1000
964
|
errorCode,
|
|
1001
965
|
});
|
|
1002
966
|
}
|
|
@@ -1005,7 +969,7 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
1005
969
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1006
970
|
return de_TagResourceCommandError(output, context);
|
|
1007
971
|
}
|
|
1008
|
-
const contents = map({
|
|
972
|
+
const contents = (0, smithy_client_1.map)({
|
|
1009
973
|
$metadata: deserializeMetadata(output),
|
|
1010
974
|
});
|
|
1011
975
|
await collectBody(output.body, context);
|
|
@@ -1036,10 +1000,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
1036
1000
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1037
1001
|
default:
|
|
1038
1002
|
const parsedBody = parsedOutput.body;
|
|
1039
|
-
|
|
1003
|
+
return throwDefaultError({
|
|
1040
1004
|
output,
|
|
1041
1005
|
parsedBody,
|
|
1042
|
-
exceptionCtor: GrafanaServiceException_1.GrafanaServiceException,
|
|
1043
1006
|
errorCode,
|
|
1044
1007
|
});
|
|
1045
1008
|
}
|
|
@@ -1048,7 +1011,7 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
1048
1011
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1049
1012
|
return de_UntagResourceCommandError(output, context);
|
|
1050
1013
|
}
|
|
1051
|
-
const contents = map({
|
|
1014
|
+
const contents = (0, smithy_client_1.map)({
|
|
1052
1015
|
$metadata: deserializeMetadata(output),
|
|
1053
1016
|
});
|
|
1054
1017
|
await collectBody(output.body, context);
|
|
@@ -1079,10 +1042,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
1079
1042
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1080
1043
|
default:
|
|
1081
1044
|
const parsedBody = parsedOutput.body;
|
|
1082
|
-
|
|
1045
|
+
return throwDefaultError({
|
|
1083
1046
|
output,
|
|
1084
1047
|
parsedBody,
|
|
1085
|
-
exceptionCtor: GrafanaServiceException_1.GrafanaServiceException,
|
|
1086
1048
|
errorCode,
|
|
1087
1049
|
});
|
|
1088
1050
|
}
|
|
@@ -1091,13 +1053,14 @@ const de_UpdatePermissionsCommand = async (output, context) => {
|
|
|
1091
1053
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1092
1054
|
return de_UpdatePermissionsCommandError(output, context);
|
|
1093
1055
|
}
|
|
1094
|
-
const contents = map({
|
|
1056
|
+
const contents = (0, smithy_client_1.map)({
|
|
1095
1057
|
$metadata: deserializeMetadata(output),
|
|
1096
1058
|
});
|
|
1097
1059
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
}
|
|
1060
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1061
|
+
errors: smithy_client_1._json,
|
|
1062
|
+
});
|
|
1063
|
+
Object.assign(contents, doc);
|
|
1101
1064
|
return contents;
|
|
1102
1065
|
};
|
|
1103
1066
|
exports.de_UpdatePermissionsCommand = de_UpdatePermissionsCommand;
|
|
@@ -1125,10 +1088,9 @@ const de_UpdatePermissionsCommandError = async (output, context) => {
|
|
|
1125
1088
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1126
1089
|
default:
|
|
1127
1090
|
const parsedBody = parsedOutput.body;
|
|
1128
|
-
|
|
1091
|
+
return throwDefaultError({
|
|
1129
1092
|
output,
|
|
1130
1093
|
parsedBody,
|
|
1131
|
-
exceptionCtor: GrafanaServiceException_1.GrafanaServiceException,
|
|
1132
1094
|
errorCode,
|
|
1133
1095
|
});
|
|
1134
1096
|
}
|
|
@@ -1137,13 +1099,14 @@ const de_UpdateWorkspaceCommand = async (output, context) => {
|
|
|
1137
1099
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1138
1100
|
return de_UpdateWorkspaceCommandError(output, context);
|
|
1139
1101
|
}
|
|
1140
|
-
const contents = map({
|
|
1102
|
+
const contents = (0, smithy_client_1.map)({
|
|
1141
1103
|
$metadata: deserializeMetadata(output),
|
|
1142
1104
|
});
|
|
1143
1105
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
}
|
|
1106
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1107
|
+
workspace: (_) => de_WorkspaceDescription(_, context),
|
|
1108
|
+
});
|
|
1109
|
+
Object.assign(contents, doc);
|
|
1147
1110
|
return contents;
|
|
1148
1111
|
};
|
|
1149
1112
|
exports.de_UpdateWorkspaceCommand = de_UpdateWorkspaceCommand;
|
|
@@ -1174,10 +1137,9 @@ const de_UpdateWorkspaceCommandError = async (output, context) => {
|
|
|
1174
1137
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1175
1138
|
default:
|
|
1176
1139
|
const parsedBody = parsedOutput.body;
|
|
1177
|
-
|
|
1140
|
+
return throwDefaultError({
|
|
1178
1141
|
output,
|
|
1179
1142
|
parsedBody,
|
|
1180
|
-
exceptionCtor: GrafanaServiceException_1.GrafanaServiceException,
|
|
1181
1143
|
errorCode,
|
|
1182
1144
|
});
|
|
1183
1145
|
}
|
|
@@ -1186,13 +1148,14 @@ const de_UpdateWorkspaceAuthenticationCommand = async (output, context) => {
|
|
|
1186
1148
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1187
1149
|
return de_UpdateWorkspaceAuthenticationCommandError(output, context);
|
|
1188
1150
|
}
|
|
1189
|
-
const contents = map({
|
|
1151
|
+
const contents = (0, smithy_client_1.map)({
|
|
1190
1152
|
$metadata: deserializeMetadata(output),
|
|
1191
1153
|
});
|
|
1192
1154
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
}
|
|
1155
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1156
|
+
authentication: smithy_client_1._json,
|
|
1157
|
+
});
|
|
1158
|
+
Object.assign(contents, doc);
|
|
1196
1159
|
return contents;
|
|
1197
1160
|
};
|
|
1198
1161
|
exports.de_UpdateWorkspaceAuthenticationCommand = de_UpdateWorkspaceAuthenticationCommand;
|
|
@@ -1223,10 +1186,9 @@ const de_UpdateWorkspaceAuthenticationCommandError = async (output, context) =>
|
|
|
1223
1186
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1224
1187
|
default:
|
|
1225
1188
|
const parsedBody = parsedOutput.body;
|
|
1226
|
-
|
|
1189
|
+
return throwDefaultError({
|
|
1227
1190
|
output,
|
|
1228
1191
|
parsedBody,
|
|
1229
|
-
exceptionCtor: GrafanaServiceException_1.GrafanaServiceException,
|
|
1230
1192
|
errorCode,
|
|
1231
1193
|
});
|
|
1232
1194
|
}
|
|
@@ -1235,7 +1197,7 @@ const de_UpdateWorkspaceConfigurationCommand = async (output, context) => {
|
|
|
1235
1197
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1236
1198
|
return de_UpdateWorkspaceConfigurationCommandError(output, context);
|
|
1237
1199
|
}
|
|
1238
|
-
const contents = map({
|
|
1200
|
+
const contents = (0, smithy_client_1.map)({
|
|
1239
1201
|
$metadata: deserializeMetadata(output),
|
|
1240
1202
|
});
|
|
1241
1203
|
await collectBody(output.body, context);
|
|
@@ -1269,21 +1231,21 @@ const de_UpdateWorkspaceConfigurationCommandError = async (output, context) => {
|
|
|
1269
1231
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1270
1232
|
default:
|
|
1271
1233
|
const parsedBody = parsedOutput.body;
|
|
1272
|
-
|
|
1234
|
+
return throwDefaultError({
|
|
1273
1235
|
output,
|
|
1274
1236
|
parsedBody,
|
|
1275
|
-
exceptionCtor: GrafanaServiceException_1.GrafanaServiceException,
|
|
1276
1237
|
errorCode,
|
|
1277
1238
|
});
|
|
1278
1239
|
}
|
|
1279
1240
|
};
|
|
1280
|
-
const
|
|
1241
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(GrafanaServiceException_1.GrafanaServiceException);
|
|
1281
1242
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1282
|
-
const contents = map({});
|
|
1243
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1283
1244
|
const data = parsedOutput.body;
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
}
|
|
1245
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1246
|
+
message: smithy_client_1.expectString,
|
|
1247
|
+
});
|
|
1248
|
+
Object.assign(contents, doc);
|
|
1287
1249
|
const exception = new models_0_1.AccessDeniedException({
|
|
1288
1250
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1289
1251
|
...contents,
|
|
@@ -1291,17 +1253,14 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
1291
1253
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1292
1254
|
};
|
|
1293
1255
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1294
|
-
const contents = map({});
|
|
1256
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1295
1257
|
const data = parsedOutput.body;
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
if (data.resourceType != null) {
|
|
1303
|
-
contents.resourceType = (0, smithy_client_1.expectString)(data.resourceType);
|
|
1304
|
-
}
|
|
1258
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1259
|
+
message: smithy_client_1.expectString,
|
|
1260
|
+
resourceId: smithy_client_1.expectString,
|
|
1261
|
+
resourceType: smithy_client_1.expectString,
|
|
1262
|
+
});
|
|
1263
|
+
Object.assign(contents, doc);
|
|
1305
1264
|
const exception = new models_0_1.ConflictException({
|
|
1306
1265
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1307
1266
|
...contents,
|
|
@@ -1309,16 +1268,17 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
1309
1268
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1310
1269
|
};
|
|
1311
1270
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1312
|
-
const contents = map({
|
|
1271
|
+
const contents = (0, smithy_client_1.map)({
|
|
1313
1272
|
retryAfterSeconds: [
|
|
1314
1273
|
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
1315
1274
|
() => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]),
|
|
1316
1275
|
],
|
|
1317
1276
|
});
|
|
1318
1277
|
const data = parsedOutput.body;
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
}
|
|
1278
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1279
|
+
message: smithy_client_1.expectString,
|
|
1280
|
+
});
|
|
1281
|
+
Object.assign(contents, doc);
|
|
1322
1282
|
const exception = new models_0_1.InternalServerException({
|
|
1323
1283
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1324
1284
|
...contents,
|
|
@@ -1326,17 +1286,14 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
1326
1286
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1327
1287
|
};
|
|
1328
1288
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1329
|
-
const contents = map({});
|
|
1289
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1330
1290
|
const data = parsedOutput.body;
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
if (data.resourceType != null) {
|
|
1338
|
-
contents.resourceType = (0, smithy_client_1.expectString)(data.resourceType);
|
|
1339
|
-
}
|
|
1291
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1292
|
+
message: smithy_client_1.expectString,
|
|
1293
|
+
resourceId: smithy_client_1.expectString,
|
|
1294
|
+
resourceType: smithy_client_1.expectString,
|
|
1295
|
+
});
|
|
1296
|
+
Object.assign(contents, doc);
|
|
1340
1297
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
1341
1298
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1342
1299
|
...contents,
|
|
@@ -1344,23 +1301,16 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1344
1301
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1345
1302
|
};
|
|
1346
1303
|
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1347
|
-
const contents = map({});
|
|
1304
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1348
1305
|
const data = parsedOutput.body;
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
}
|
|
1358
|
-
if (data.resourceType != null) {
|
|
1359
|
-
contents.resourceType = (0, smithy_client_1.expectString)(data.resourceType);
|
|
1360
|
-
}
|
|
1361
|
-
if (data.serviceCode != null) {
|
|
1362
|
-
contents.serviceCode = (0, smithy_client_1.expectString)(data.serviceCode);
|
|
1363
|
-
}
|
|
1306
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1307
|
+
message: smithy_client_1.expectString,
|
|
1308
|
+
quotaCode: smithy_client_1.expectString,
|
|
1309
|
+
resourceId: smithy_client_1.expectString,
|
|
1310
|
+
resourceType: smithy_client_1.expectString,
|
|
1311
|
+
serviceCode: smithy_client_1.expectString,
|
|
1312
|
+
});
|
|
1313
|
+
Object.assign(contents, doc);
|
|
1364
1314
|
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
1365
1315
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1366
1316
|
...contents,
|
|
@@ -1368,22 +1318,19 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
1368
1318
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1369
1319
|
};
|
|
1370
1320
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1371
|
-
const contents = map({
|
|
1321
|
+
const contents = (0, smithy_client_1.map)({
|
|
1372
1322
|
retryAfterSeconds: [
|
|
1373
1323
|
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
1374
1324
|
() => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]),
|
|
1375
1325
|
],
|
|
1376
1326
|
});
|
|
1377
1327
|
const data = parsedOutput.body;
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
if (data.serviceCode != null) {
|
|
1385
|
-
contents.serviceCode = (0, smithy_client_1.expectString)(data.serviceCode);
|
|
1386
|
-
}
|
|
1328
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1329
|
+
message: smithy_client_1.expectString,
|
|
1330
|
+
quotaCode: smithy_client_1.expectString,
|
|
1331
|
+
serviceCode: smithy_client_1.expectString,
|
|
1332
|
+
});
|
|
1333
|
+
Object.assign(contents, doc);
|
|
1387
1334
|
const exception = new models_0_1.ThrottlingException({
|
|
1388
1335
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1389
1336
|
...contents,
|
|
@@ -1391,505 +1338,70 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
1391
1338
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1392
1339
|
};
|
|
1393
1340
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1394
|
-
const contents = map({});
|
|
1341
|
+
const contents = (0, smithy_client_1.map)({});
|
|
1395
1342
|
const data = parsedOutput.body;
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
if (data.reason != null) {
|
|
1403
|
-
contents.reason = (0, smithy_client_1.expectString)(data.reason);
|
|
1404
|
-
}
|
|
1343
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1344
|
+
fieldList: smithy_client_1._json,
|
|
1345
|
+
message: smithy_client_1.expectString,
|
|
1346
|
+
reason: smithy_client_1.expectString,
|
|
1347
|
+
});
|
|
1348
|
+
Object.assign(contents, doc);
|
|
1405
1349
|
const exception = new models_0_1.ValidationException({
|
|
1406
1350
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1407
1351
|
...contents,
|
|
1408
1352
|
});
|
|
1409
1353
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1410
1354
|
};
|
|
1411
|
-
const se_AllowedOrganizations = (input, context) => {
|
|
1412
|
-
return input
|
|
1413
|
-
.filter((e) => e != null)
|
|
1414
|
-
.map((entry) => {
|
|
1415
|
-
return entry;
|
|
1416
|
-
});
|
|
1417
|
-
};
|
|
1418
|
-
const se_AssertionAttributes = (input, context) => {
|
|
1419
|
-
return {
|
|
1420
|
-
...(input.email != null && { email: input.email }),
|
|
1421
|
-
...(input.groups != null && { groups: input.groups }),
|
|
1422
|
-
...(input.login != null && { login: input.login }),
|
|
1423
|
-
...(input.name != null && { name: input.name }),
|
|
1424
|
-
...(input.org != null && { org: input.org }),
|
|
1425
|
-
...(input.role != null && { role: input.role }),
|
|
1426
|
-
};
|
|
1427
|
-
};
|
|
1428
|
-
const se_AuthenticationProviders = (input, context) => {
|
|
1429
|
-
return input
|
|
1430
|
-
.filter((e) => e != null)
|
|
1431
|
-
.map((entry) => {
|
|
1432
|
-
return entry;
|
|
1433
|
-
});
|
|
1434
|
-
};
|
|
1435
|
-
const se_DataSourceTypesList = (input, context) => {
|
|
1436
|
-
return input
|
|
1437
|
-
.filter((e) => e != null)
|
|
1438
|
-
.map((entry) => {
|
|
1439
|
-
return entry;
|
|
1440
|
-
});
|
|
1441
|
-
};
|
|
1442
|
-
const se_IdpMetadata = (input, context) => {
|
|
1443
|
-
return models_0_1.IdpMetadata.visit(input, {
|
|
1444
|
-
url: (value) => ({ url: value }),
|
|
1445
|
-
xml: (value) => ({ xml: value }),
|
|
1446
|
-
_: (name, value) => ({ name: value }),
|
|
1447
|
-
});
|
|
1448
|
-
};
|
|
1449
|
-
const se_NetworkAccessConfiguration = (input, context) => {
|
|
1450
|
-
return {
|
|
1451
|
-
...(input.prefixListIds != null && { prefixListIds: se_PrefixListIds(input.prefixListIds, context) }),
|
|
1452
|
-
...(input.vpceIds != null && { vpceIds: se_VpceIds(input.vpceIds, context) }),
|
|
1453
|
-
};
|
|
1454
|
-
};
|
|
1455
|
-
const se_NotificationDestinationsList = (input, context) => {
|
|
1456
|
-
return input
|
|
1457
|
-
.filter((e) => e != null)
|
|
1458
|
-
.map((entry) => {
|
|
1459
|
-
return entry;
|
|
1460
|
-
});
|
|
1461
|
-
};
|
|
1462
|
-
const se_OrganizationalUnitList = (input, context) => {
|
|
1463
|
-
return input
|
|
1464
|
-
.filter((e) => e != null)
|
|
1465
|
-
.map((entry) => {
|
|
1466
|
-
return entry;
|
|
1467
|
-
});
|
|
1468
|
-
};
|
|
1469
|
-
const se_PrefixListIds = (input, context) => {
|
|
1470
|
-
return input
|
|
1471
|
-
.filter((e) => e != null)
|
|
1472
|
-
.map((entry) => {
|
|
1473
|
-
return entry;
|
|
1474
|
-
});
|
|
1475
|
-
};
|
|
1476
|
-
const se_RoleValueList = (input, context) => {
|
|
1477
|
-
return input
|
|
1478
|
-
.filter((e) => e != null)
|
|
1479
|
-
.map((entry) => {
|
|
1480
|
-
return entry;
|
|
1481
|
-
});
|
|
1482
|
-
};
|
|
1483
|
-
const se_RoleValues = (input, context) => {
|
|
1484
|
-
return {
|
|
1485
|
-
...(input.admin != null && { admin: se_RoleValueList(input.admin, context) }),
|
|
1486
|
-
...(input.editor != null && { editor: se_RoleValueList(input.editor, context) }),
|
|
1487
|
-
};
|
|
1488
|
-
};
|
|
1489
|
-
const se_SamlConfiguration = (input, context) => {
|
|
1490
|
-
return {
|
|
1491
|
-
...(input.allowedOrganizations != null && {
|
|
1492
|
-
allowedOrganizations: se_AllowedOrganizations(input.allowedOrganizations, context),
|
|
1493
|
-
}),
|
|
1494
|
-
...(input.assertionAttributes != null && {
|
|
1495
|
-
assertionAttributes: se_AssertionAttributes(input.assertionAttributes, context),
|
|
1496
|
-
}),
|
|
1497
|
-
...(input.idpMetadata != null && { idpMetadata: se_IdpMetadata(input.idpMetadata, context) }),
|
|
1498
|
-
...(input.loginValidityDuration != null && { loginValidityDuration: input.loginValidityDuration }),
|
|
1499
|
-
...(input.roleValues != null && { roleValues: se_RoleValues(input.roleValues, context) }),
|
|
1500
|
-
};
|
|
1501
|
-
};
|
|
1502
|
-
const se_SecurityGroupIds = (input, context) => {
|
|
1503
|
-
return input
|
|
1504
|
-
.filter((e) => e != null)
|
|
1505
|
-
.map((entry) => {
|
|
1506
|
-
return entry;
|
|
1507
|
-
});
|
|
1508
|
-
};
|
|
1509
|
-
const se_SubnetIds = (input, context) => {
|
|
1510
|
-
return input
|
|
1511
|
-
.filter((e) => e != null)
|
|
1512
|
-
.map((entry) => {
|
|
1513
|
-
return entry;
|
|
1514
|
-
});
|
|
1515
|
-
};
|
|
1516
|
-
const se_TagMap = (input, context) => {
|
|
1517
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1518
|
-
if (value === null) {
|
|
1519
|
-
return acc;
|
|
1520
|
-
}
|
|
1521
|
-
acc[key] = value;
|
|
1522
|
-
return acc;
|
|
1523
|
-
}, {});
|
|
1524
|
-
};
|
|
1525
|
-
const se_UpdateInstruction = (input, context) => {
|
|
1526
|
-
return {
|
|
1527
|
-
...(input.action != null && { action: input.action }),
|
|
1528
|
-
...(input.role != null && { role: input.role }),
|
|
1529
|
-
...(input.users != null && { users: se_UserList(input.users, context) }),
|
|
1530
|
-
};
|
|
1531
|
-
};
|
|
1532
|
-
const se_UpdateInstructionBatch = (input, context) => {
|
|
1533
|
-
return input
|
|
1534
|
-
.filter((e) => e != null)
|
|
1535
|
-
.map((entry) => {
|
|
1536
|
-
return se_UpdateInstruction(entry, context);
|
|
1537
|
-
});
|
|
1538
|
-
};
|
|
1539
|
-
const se_User = (input, context) => {
|
|
1540
|
-
return {
|
|
1541
|
-
...(input.id != null && { id: input.id }),
|
|
1542
|
-
...(input.type != null && { type: input.type }),
|
|
1543
|
-
};
|
|
1544
|
-
};
|
|
1545
|
-
const se_UserList = (input, context) => {
|
|
1546
|
-
return input
|
|
1547
|
-
.filter((e) => e != null)
|
|
1548
|
-
.map((entry) => {
|
|
1549
|
-
return se_User(entry, context);
|
|
1550
|
-
});
|
|
1551
|
-
};
|
|
1552
|
-
const se_VpcConfiguration = (input, context) => {
|
|
1553
|
-
return {
|
|
1554
|
-
...(input.securityGroupIds != null && { securityGroupIds: se_SecurityGroupIds(input.securityGroupIds, context) }),
|
|
1555
|
-
...(input.subnetIds != null && { subnetIds: se_SubnetIds(input.subnetIds, context) }),
|
|
1556
|
-
};
|
|
1557
|
-
};
|
|
1558
|
-
const se_VpceIds = (input, context) => {
|
|
1559
|
-
return input
|
|
1560
|
-
.filter((e) => e != null)
|
|
1561
|
-
.map((entry) => {
|
|
1562
|
-
return entry;
|
|
1563
|
-
});
|
|
1564
|
-
};
|
|
1565
|
-
const de_AllowedOrganizations = (output, context) => {
|
|
1566
|
-
const retVal = (output || [])
|
|
1567
|
-
.filter((e) => e != null)
|
|
1568
|
-
.map((entry) => {
|
|
1569
|
-
if (entry === null) {
|
|
1570
|
-
return null;
|
|
1571
|
-
}
|
|
1572
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1573
|
-
});
|
|
1574
|
-
return retVal;
|
|
1575
|
-
};
|
|
1576
|
-
const de_AssertionAttributes = (output, context) => {
|
|
1577
|
-
return {
|
|
1578
|
-
email: (0, smithy_client_1.expectString)(output.email),
|
|
1579
|
-
groups: (0, smithy_client_1.expectString)(output.groups),
|
|
1580
|
-
login: (0, smithy_client_1.expectString)(output.login),
|
|
1581
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
1582
|
-
org: (0, smithy_client_1.expectString)(output.org),
|
|
1583
|
-
role: (0, smithy_client_1.expectString)(output.role),
|
|
1584
|
-
};
|
|
1585
|
-
};
|
|
1586
|
-
const de_AuthenticationDescription = (output, context) => {
|
|
1587
|
-
return {
|
|
1588
|
-
awsSso: output.awsSso != null ? de_AwsSsoAuthentication(output.awsSso, context) : undefined,
|
|
1589
|
-
providers: output.providers != null ? de_AuthenticationProviders(output.providers, context) : undefined,
|
|
1590
|
-
saml: output.saml != null ? de_SamlAuthentication(output.saml, context) : undefined,
|
|
1591
|
-
};
|
|
1592
|
-
};
|
|
1593
|
-
const de_AuthenticationProviders = (output, context) => {
|
|
1594
|
-
const retVal = (output || [])
|
|
1595
|
-
.filter((e) => e != null)
|
|
1596
|
-
.map((entry) => {
|
|
1597
|
-
if (entry === null) {
|
|
1598
|
-
return null;
|
|
1599
|
-
}
|
|
1600
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1601
|
-
});
|
|
1602
|
-
return retVal;
|
|
1603
|
-
};
|
|
1604
|
-
const de_AuthenticationSummary = (output, context) => {
|
|
1605
|
-
return {
|
|
1606
|
-
providers: output.providers != null ? de_AuthenticationProviders(output.providers, context) : undefined,
|
|
1607
|
-
samlConfigurationStatus: (0, smithy_client_1.expectString)(output.samlConfigurationStatus),
|
|
1608
|
-
};
|
|
1609
|
-
};
|
|
1610
|
-
const de_AwsSsoAuthentication = (output, context) => {
|
|
1611
|
-
return {
|
|
1612
|
-
ssoClientId: (0, smithy_client_1.expectString)(output.ssoClientId),
|
|
1613
|
-
};
|
|
1614
|
-
};
|
|
1615
|
-
const de_DataSourceTypesList = (output, context) => {
|
|
1616
|
-
const retVal = (output || [])
|
|
1617
|
-
.filter((e) => e != null)
|
|
1618
|
-
.map((entry) => {
|
|
1619
|
-
if (entry === null) {
|
|
1620
|
-
return null;
|
|
1621
|
-
}
|
|
1622
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1623
|
-
});
|
|
1624
|
-
return retVal;
|
|
1625
|
-
};
|
|
1626
|
-
const de_IdpMetadata = (output, context) => {
|
|
1627
|
-
if ((0, smithy_client_1.expectString)(output.url) !== undefined) {
|
|
1628
|
-
return { url: (0, smithy_client_1.expectString)(output.url) };
|
|
1629
|
-
}
|
|
1630
|
-
if ((0, smithy_client_1.expectString)(output.xml) !== undefined) {
|
|
1631
|
-
return { xml: (0, smithy_client_1.expectString)(output.xml) };
|
|
1632
|
-
}
|
|
1633
|
-
return { $unknown: Object.entries(output)[0] };
|
|
1634
|
-
};
|
|
1635
|
-
const de_NetworkAccessConfiguration = (output, context) => {
|
|
1636
|
-
return {
|
|
1637
|
-
prefixListIds: output.prefixListIds != null ? de_PrefixListIds(output.prefixListIds, context) : undefined,
|
|
1638
|
-
vpceIds: output.vpceIds != null ? de_VpceIds(output.vpceIds, context) : undefined,
|
|
1639
|
-
};
|
|
1640
|
-
};
|
|
1641
|
-
const de_NotificationDestinationsList = (output, context) => {
|
|
1642
|
-
const retVal = (output || [])
|
|
1643
|
-
.filter((e) => e != null)
|
|
1644
|
-
.map((entry) => {
|
|
1645
|
-
if (entry === null) {
|
|
1646
|
-
return null;
|
|
1647
|
-
}
|
|
1648
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1649
|
-
});
|
|
1650
|
-
return retVal;
|
|
1651
|
-
};
|
|
1652
|
-
const de_OrganizationalUnitList = (output, context) => {
|
|
1653
|
-
const retVal = (output || [])
|
|
1654
|
-
.filter((e) => e != null)
|
|
1655
|
-
.map((entry) => {
|
|
1656
|
-
if (entry === null) {
|
|
1657
|
-
return null;
|
|
1658
|
-
}
|
|
1659
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1660
|
-
});
|
|
1661
|
-
return retVal;
|
|
1662
|
-
};
|
|
1663
|
-
const de_PermissionEntry = (output, context) => {
|
|
1664
|
-
return {
|
|
1665
|
-
role: (0, smithy_client_1.expectString)(output.role),
|
|
1666
|
-
user: output.user != null ? de_User(output.user, context) : undefined,
|
|
1667
|
-
};
|
|
1668
|
-
};
|
|
1669
|
-
const de_PermissionEntryList = (output, context) => {
|
|
1670
|
-
const retVal = (output || [])
|
|
1671
|
-
.filter((e) => e != null)
|
|
1672
|
-
.map((entry) => {
|
|
1673
|
-
if (entry === null) {
|
|
1674
|
-
return null;
|
|
1675
|
-
}
|
|
1676
|
-
return de_PermissionEntry(entry, context);
|
|
1677
|
-
});
|
|
1678
|
-
return retVal;
|
|
1679
|
-
};
|
|
1680
|
-
const de_PrefixListIds = (output, context) => {
|
|
1681
|
-
const retVal = (output || [])
|
|
1682
|
-
.filter((e) => e != null)
|
|
1683
|
-
.map((entry) => {
|
|
1684
|
-
if (entry === null) {
|
|
1685
|
-
return null;
|
|
1686
|
-
}
|
|
1687
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1688
|
-
});
|
|
1689
|
-
return retVal;
|
|
1690
|
-
};
|
|
1691
|
-
const de_RoleValueList = (output, context) => {
|
|
1692
|
-
const retVal = (output || [])
|
|
1693
|
-
.filter((e) => e != null)
|
|
1694
|
-
.map((entry) => {
|
|
1695
|
-
if (entry === null) {
|
|
1696
|
-
return null;
|
|
1697
|
-
}
|
|
1698
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1699
|
-
});
|
|
1700
|
-
return retVal;
|
|
1701
|
-
};
|
|
1702
|
-
const de_RoleValues = (output, context) => {
|
|
1703
|
-
return {
|
|
1704
|
-
admin: output.admin != null ? de_RoleValueList(output.admin, context) : undefined,
|
|
1705
|
-
editor: output.editor != null ? de_RoleValueList(output.editor, context) : undefined,
|
|
1706
|
-
};
|
|
1707
|
-
};
|
|
1708
|
-
const de_SamlAuthentication = (output, context) => {
|
|
1709
|
-
return {
|
|
1710
|
-
configuration: output.configuration != null ? de_SamlConfiguration(output.configuration, context) : undefined,
|
|
1711
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
1712
|
-
};
|
|
1713
|
-
};
|
|
1714
|
-
const de_SamlConfiguration = (output, context) => {
|
|
1715
|
-
return {
|
|
1716
|
-
allowedOrganizations: output.allowedOrganizations != null ? de_AllowedOrganizations(output.allowedOrganizations, context) : undefined,
|
|
1717
|
-
assertionAttributes: output.assertionAttributes != null ? de_AssertionAttributes(output.assertionAttributes, context) : undefined,
|
|
1718
|
-
idpMetadata: output.idpMetadata != null ? de_IdpMetadata((0, smithy_client_1.expectUnion)(output.idpMetadata), context) : undefined,
|
|
1719
|
-
loginValidityDuration: (0, smithy_client_1.expectInt32)(output.loginValidityDuration),
|
|
1720
|
-
roleValues: output.roleValues != null ? de_RoleValues(output.roleValues, context) : undefined,
|
|
1721
|
-
};
|
|
1722
|
-
};
|
|
1723
|
-
const de_SecurityGroupIds = (output, context) => {
|
|
1724
|
-
const retVal = (output || [])
|
|
1725
|
-
.filter((e) => e != null)
|
|
1726
|
-
.map((entry) => {
|
|
1727
|
-
if (entry === null) {
|
|
1728
|
-
return null;
|
|
1729
|
-
}
|
|
1730
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1731
|
-
});
|
|
1732
|
-
return retVal;
|
|
1733
|
-
};
|
|
1734
|
-
const de_SubnetIds = (output, context) => {
|
|
1735
|
-
const retVal = (output || [])
|
|
1736
|
-
.filter((e) => e != null)
|
|
1737
|
-
.map((entry) => {
|
|
1738
|
-
if (entry === null) {
|
|
1739
|
-
return null;
|
|
1740
|
-
}
|
|
1741
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1742
|
-
});
|
|
1743
|
-
return retVal;
|
|
1744
|
-
};
|
|
1745
|
-
const de_TagMap = (output, context) => {
|
|
1746
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1747
|
-
if (value === null) {
|
|
1748
|
-
return acc;
|
|
1749
|
-
}
|
|
1750
|
-
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
1751
|
-
return acc;
|
|
1752
|
-
}, {});
|
|
1753
|
-
};
|
|
1754
|
-
const de_UpdateError = (output, context) => {
|
|
1755
|
-
return {
|
|
1756
|
-
causedBy: output.causedBy != null ? de_UpdateInstruction(output.causedBy, context) : undefined,
|
|
1757
|
-
code: (0, smithy_client_1.expectInt32)(output.code),
|
|
1758
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
1759
|
-
};
|
|
1760
|
-
};
|
|
1761
|
-
const de_UpdateErrorList = (output, context) => {
|
|
1762
|
-
const retVal = (output || [])
|
|
1763
|
-
.filter((e) => e != null)
|
|
1764
|
-
.map((entry) => {
|
|
1765
|
-
if (entry === null) {
|
|
1766
|
-
return null;
|
|
1767
|
-
}
|
|
1768
|
-
return de_UpdateError(entry, context);
|
|
1769
|
-
});
|
|
1770
|
-
return retVal;
|
|
1771
|
-
};
|
|
1772
|
-
const de_UpdateInstruction = (output, context) => {
|
|
1773
|
-
return {
|
|
1774
|
-
action: (0, smithy_client_1.expectString)(output.action),
|
|
1775
|
-
role: (0, smithy_client_1.expectString)(output.role),
|
|
1776
|
-
users: output.users != null ? de_UserList(output.users, context) : undefined,
|
|
1777
|
-
};
|
|
1778
|
-
};
|
|
1779
|
-
const de_User = (output, context) => {
|
|
1780
|
-
return {
|
|
1781
|
-
id: (0, smithy_client_1.expectString)(output.id),
|
|
1782
|
-
type: (0, smithy_client_1.expectString)(output.type),
|
|
1783
|
-
};
|
|
1784
|
-
};
|
|
1785
|
-
const de_UserList = (output, context) => {
|
|
1786
|
-
const retVal = (output || [])
|
|
1787
|
-
.filter((e) => e != null)
|
|
1788
|
-
.map((entry) => {
|
|
1789
|
-
if (entry === null) {
|
|
1790
|
-
return null;
|
|
1791
|
-
}
|
|
1792
|
-
return de_User(entry, context);
|
|
1793
|
-
});
|
|
1794
|
-
return retVal;
|
|
1795
|
-
};
|
|
1796
|
-
const de_ValidationExceptionField = (output, context) => {
|
|
1797
|
-
return {
|
|
1798
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
1799
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
1800
|
-
};
|
|
1801
|
-
};
|
|
1802
|
-
const de_ValidationExceptionFieldList = (output, context) => {
|
|
1803
|
-
const retVal = (output || [])
|
|
1804
|
-
.filter((e) => e != null)
|
|
1805
|
-
.map((entry) => {
|
|
1806
|
-
if (entry === null) {
|
|
1807
|
-
return null;
|
|
1808
|
-
}
|
|
1809
|
-
return de_ValidationExceptionField(entry, context);
|
|
1810
|
-
});
|
|
1811
|
-
return retVal;
|
|
1812
|
-
};
|
|
1813
|
-
const de_VpcConfiguration = (output, context) => {
|
|
1814
|
-
return {
|
|
1815
|
-
securityGroupIds: output.securityGroupIds != null ? de_SecurityGroupIds(output.securityGroupIds, context) : undefined,
|
|
1816
|
-
subnetIds: output.subnetIds != null ? de_SubnetIds(output.subnetIds, context) : undefined,
|
|
1817
|
-
};
|
|
1818
|
-
};
|
|
1819
|
-
const de_VpceIds = (output, context) => {
|
|
1820
|
-
const retVal = (output || [])
|
|
1821
|
-
.filter((e) => e != null)
|
|
1822
|
-
.map((entry) => {
|
|
1823
|
-
if (entry === null) {
|
|
1824
|
-
return null;
|
|
1825
|
-
}
|
|
1826
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1827
|
-
});
|
|
1828
|
-
return retVal;
|
|
1829
|
-
};
|
|
1830
1355
|
const de_WorkspaceDescription = (output, context) => {
|
|
1831
|
-
return {
|
|
1832
|
-
accountAccessType:
|
|
1833
|
-
authentication:
|
|
1834
|
-
created:
|
|
1835
|
-
dataSources:
|
|
1836
|
-
description:
|
|
1837
|
-
endpoint:
|
|
1838
|
-
freeTrialConsumed:
|
|
1839
|
-
freeTrialExpiration:
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
organizationalUnits: output.organizationalUnits != null ? de_OrganizationalUnitList(output.organizationalUnits, context) : undefined,
|
|
1858
|
-
permissionType: (0, smithy_client_1.expectString)(output.permissionType),
|
|
1859
|
-
stackSetName: (0, smithy_client_1.expectString)(output.stackSetName),
|
|
1860
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
1861
|
-
tags: output.tags != null ? de_TagMap(output.tags, context) : undefined,
|
|
1862
|
-
vpcConfiguration: output.vpcConfiguration != null ? de_VpcConfiguration(output.vpcConfiguration, context) : undefined,
|
|
1863
|
-
workspaceRoleArn: (0, smithy_client_1.expectString)(output.workspaceRoleArn),
|
|
1864
|
-
};
|
|
1356
|
+
return (0, smithy_client_1.take)(output, {
|
|
1357
|
+
accountAccessType: smithy_client_1.expectString,
|
|
1358
|
+
authentication: smithy_client_1._json,
|
|
1359
|
+
created: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1360
|
+
dataSources: smithy_client_1._json,
|
|
1361
|
+
description: smithy_client_1.expectString,
|
|
1362
|
+
endpoint: smithy_client_1.expectString,
|
|
1363
|
+
freeTrialConsumed: smithy_client_1.expectBoolean,
|
|
1364
|
+
freeTrialExpiration: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1365
|
+
grafanaVersion: smithy_client_1.expectString,
|
|
1366
|
+
id: smithy_client_1.expectString,
|
|
1367
|
+
licenseExpiration: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1368
|
+
licenseType: smithy_client_1.expectString,
|
|
1369
|
+
modified: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1370
|
+
name: smithy_client_1.expectString,
|
|
1371
|
+
networkAccessControl: smithy_client_1._json,
|
|
1372
|
+
notificationDestinations: smithy_client_1._json,
|
|
1373
|
+
organizationRoleName: smithy_client_1.expectString,
|
|
1374
|
+
organizationalUnits: smithy_client_1._json,
|
|
1375
|
+
permissionType: smithy_client_1.expectString,
|
|
1376
|
+
stackSetName: smithy_client_1.expectString,
|
|
1377
|
+
status: smithy_client_1.expectString,
|
|
1378
|
+
tags: smithy_client_1._json,
|
|
1379
|
+
vpcConfiguration: smithy_client_1._json,
|
|
1380
|
+
workspaceRoleArn: smithy_client_1.expectString,
|
|
1381
|
+
});
|
|
1865
1382
|
};
|
|
1866
1383
|
const de_WorkspaceList = (output, context) => {
|
|
1867
1384
|
const retVal = (output || [])
|
|
1868
1385
|
.filter((e) => e != null)
|
|
1869
1386
|
.map((entry) => {
|
|
1870
|
-
if (entry === null) {
|
|
1871
|
-
return null;
|
|
1872
|
-
}
|
|
1873
1387
|
return de_WorkspaceSummary(entry, context);
|
|
1874
1388
|
});
|
|
1875
1389
|
return retVal;
|
|
1876
1390
|
};
|
|
1877
1391
|
const de_WorkspaceSummary = (output, context) => {
|
|
1878
|
-
return {
|
|
1879
|
-
authentication:
|
|
1880
|
-
created:
|
|
1881
|
-
description:
|
|
1882
|
-
endpoint:
|
|
1883
|
-
grafanaVersion:
|
|
1884
|
-
id:
|
|
1885
|
-
modified:
|
|
1886
|
-
name:
|
|
1887
|
-
notificationDestinations:
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
tags: output.tags != null ? de_TagMap(output.tags, context) : undefined,
|
|
1892
|
-
};
|
|
1392
|
+
return (0, smithy_client_1.take)(output, {
|
|
1393
|
+
authentication: smithy_client_1._json,
|
|
1394
|
+
created: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1395
|
+
description: smithy_client_1.expectString,
|
|
1396
|
+
endpoint: smithy_client_1.expectString,
|
|
1397
|
+
grafanaVersion: smithy_client_1.expectString,
|
|
1398
|
+
id: smithy_client_1.expectString,
|
|
1399
|
+
modified: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1400
|
+
name: smithy_client_1.expectString,
|
|
1401
|
+
notificationDestinations: smithy_client_1._json,
|
|
1402
|
+
status: smithy_client_1.expectString,
|
|
1403
|
+
tags: smithy_client_1._json,
|
|
1404
|
+
});
|
|
1893
1405
|
};
|
|
1894
1406
|
const deserializeMetadata = (output) => ({
|
|
1895
1407
|
httpStatusCode: output.statusCode,
|