@aws-sdk/client-detective 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.
- package/dist-cjs/protocols/Aws_restJson1.js +275 -467
- package/dist-es/protocols/Aws_restJson1.js +244 -436
- package/package.json +6 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, resolvedPath as __resolvedPath, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { DetectiveServiceException as __BaseException } from "../models/DetectiveServiceException";
|
|
4
4
|
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, TooManyRequestsException, ValidationException, } from "../models/models_0";
|
|
5
5
|
export const se_AcceptInvitationCommand = async (input, context) => {
|
|
@@ -9,9 +9,9 @@ export const se_AcceptInvitationCommand = async (input, context) => {
|
|
|
9
9
|
};
|
|
10
10
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/invitation";
|
|
11
11
|
let body;
|
|
12
|
-
body = JSON.stringify({
|
|
13
|
-
|
|
14
|
-
});
|
|
12
|
+
body = JSON.stringify(take(input, {
|
|
13
|
+
GraphArn: [],
|
|
14
|
+
}));
|
|
15
15
|
return new __HttpRequest({
|
|
16
16
|
protocol,
|
|
17
17
|
hostname,
|
|
@@ -29,10 +29,10 @@ export const se_BatchGetGraphMemberDatasourcesCommand = async (input, context) =
|
|
|
29
29
|
};
|
|
30
30
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/graph/datasources/get";
|
|
31
31
|
let body;
|
|
32
|
-
body = JSON.stringify({
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
});
|
|
32
|
+
body = JSON.stringify(take(input, {
|
|
33
|
+
AccountIds: (_) => _json(_),
|
|
34
|
+
GraphArn: [],
|
|
35
|
+
}));
|
|
36
36
|
return new __HttpRequest({
|
|
37
37
|
protocol,
|
|
38
38
|
hostname,
|
|
@@ -50,9 +50,9 @@ export const se_BatchGetMembershipDatasourcesCommand = async (input, context) =>
|
|
|
50
50
|
};
|
|
51
51
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/membership/datasources/get";
|
|
52
52
|
let body;
|
|
53
|
-
body = JSON.stringify({
|
|
54
|
-
|
|
55
|
-
});
|
|
53
|
+
body = JSON.stringify(take(input, {
|
|
54
|
+
GraphArns: (_) => _json(_),
|
|
55
|
+
}));
|
|
56
56
|
return new __HttpRequest({
|
|
57
57
|
protocol,
|
|
58
58
|
hostname,
|
|
@@ -70,9 +70,9 @@ export const se_CreateGraphCommand = async (input, context) => {
|
|
|
70
70
|
};
|
|
71
71
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/graph";
|
|
72
72
|
let body;
|
|
73
|
-
body = JSON.stringify({
|
|
74
|
-
|
|
75
|
-
});
|
|
73
|
+
body = JSON.stringify(take(input, {
|
|
74
|
+
Tags: (_) => _json(_),
|
|
75
|
+
}));
|
|
76
76
|
return new __HttpRequest({
|
|
77
77
|
protocol,
|
|
78
78
|
hostname,
|
|
@@ -90,12 +90,12 @@ export const se_CreateMembersCommand = async (input, context) => {
|
|
|
90
90
|
};
|
|
91
91
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/graph/members";
|
|
92
92
|
let body;
|
|
93
|
-
body = JSON.stringify({
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
});
|
|
93
|
+
body = JSON.stringify(take(input, {
|
|
94
|
+
Accounts: (_) => _json(_),
|
|
95
|
+
DisableEmailNotification: [],
|
|
96
|
+
GraphArn: [],
|
|
97
|
+
Message: [],
|
|
98
|
+
}));
|
|
99
99
|
return new __HttpRequest({
|
|
100
100
|
protocol,
|
|
101
101
|
hostname,
|
|
@@ -113,9 +113,9 @@ export const se_DeleteGraphCommand = async (input, context) => {
|
|
|
113
113
|
};
|
|
114
114
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/graph/removal";
|
|
115
115
|
let body;
|
|
116
|
-
body = JSON.stringify({
|
|
117
|
-
|
|
118
|
-
});
|
|
116
|
+
body = JSON.stringify(take(input, {
|
|
117
|
+
GraphArn: [],
|
|
118
|
+
}));
|
|
119
119
|
return new __HttpRequest({
|
|
120
120
|
protocol,
|
|
121
121
|
hostname,
|
|
@@ -133,10 +133,10 @@ export const se_DeleteMembersCommand = async (input, context) => {
|
|
|
133
133
|
};
|
|
134
134
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/graph/members/removal";
|
|
135
135
|
let body;
|
|
136
|
-
body = JSON.stringify({
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
});
|
|
136
|
+
body = JSON.stringify(take(input, {
|
|
137
|
+
AccountIds: (_) => _json(_),
|
|
138
|
+
GraphArn: [],
|
|
139
|
+
}));
|
|
140
140
|
return new __HttpRequest({
|
|
141
141
|
protocol,
|
|
142
142
|
hostname,
|
|
@@ -154,9 +154,9 @@ export const se_DescribeOrganizationConfigurationCommand = async (input, context
|
|
|
154
154
|
};
|
|
155
155
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/orgs/describeOrganizationConfiguration";
|
|
156
156
|
let body;
|
|
157
|
-
body = JSON.stringify({
|
|
158
|
-
|
|
159
|
-
});
|
|
157
|
+
body = JSON.stringify(take(input, {
|
|
158
|
+
GraphArn: [],
|
|
159
|
+
}));
|
|
160
160
|
return new __HttpRequest({
|
|
161
161
|
protocol,
|
|
162
162
|
hostname,
|
|
@@ -192,9 +192,9 @@ export const se_DisassociateMembershipCommand = async (input, context) => {
|
|
|
192
192
|
};
|
|
193
193
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/membership/removal";
|
|
194
194
|
let body;
|
|
195
|
-
body = JSON.stringify({
|
|
196
|
-
|
|
197
|
-
});
|
|
195
|
+
body = JSON.stringify(take(input, {
|
|
196
|
+
GraphArn: [],
|
|
197
|
+
}));
|
|
198
198
|
return new __HttpRequest({
|
|
199
199
|
protocol,
|
|
200
200
|
hostname,
|
|
@@ -212,9 +212,9 @@ export const se_EnableOrganizationAdminAccountCommand = async (input, context) =
|
|
|
212
212
|
};
|
|
213
213
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/orgs/enableAdminAccount";
|
|
214
214
|
let body;
|
|
215
|
-
body = JSON.stringify({
|
|
216
|
-
|
|
217
|
-
});
|
|
215
|
+
body = JSON.stringify(take(input, {
|
|
216
|
+
AccountId: [],
|
|
217
|
+
}));
|
|
218
218
|
return new __HttpRequest({
|
|
219
219
|
protocol,
|
|
220
220
|
hostname,
|
|
@@ -232,10 +232,10 @@ export const se_GetMembersCommand = async (input, context) => {
|
|
|
232
232
|
};
|
|
233
233
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/graph/members/get";
|
|
234
234
|
let body;
|
|
235
|
-
body = JSON.stringify({
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
});
|
|
235
|
+
body = JSON.stringify(take(input, {
|
|
236
|
+
AccountIds: (_) => _json(_),
|
|
237
|
+
GraphArn: [],
|
|
238
|
+
}));
|
|
239
239
|
return new __HttpRequest({
|
|
240
240
|
protocol,
|
|
241
241
|
hostname,
|
|
@@ -253,11 +253,11 @@ export const se_ListDatasourcePackagesCommand = async (input, context) => {
|
|
|
253
253
|
};
|
|
254
254
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/graph/datasources/list";
|
|
255
255
|
let body;
|
|
256
|
-
body = JSON.stringify({
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
});
|
|
256
|
+
body = JSON.stringify(take(input, {
|
|
257
|
+
GraphArn: [],
|
|
258
|
+
MaxResults: [],
|
|
259
|
+
NextToken: [],
|
|
260
|
+
}));
|
|
261
261
|
return new __HttpRequest({
|
|
262
262
|
protocol,
|
|
263
263
|
hostname,
|
|
@@ -275,10 +275,10 @@ export const se_ListGraphsCommand = async (input, context) => {
|
|
|
275
275
|
};
|
|
276
276
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/graphs/list";
|
|
277
277
|
let body;
|
|
278
|
-
body = JSON.stringify({
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
});
|
|
278
|
+
body = JSON.stringify(take(input, {
|
|
279
|
+
MaxResults: [],
|
|
280
|
+
NextToken: [],
|
|
281
|
+
}));
|
|
282
282
|
return new __HttpRequest({
|
|
283
283
|
protocol,
|
|
284
284
|
hostname,
|
|
@@ -296,10 +296,10 @@ export const se_ListInvitationsCommand = async (input, context) => {
|
|
|
296
296
|
};
|
|
297
297
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/invitations/list";
|
|
298
298
|
let body;
|
|
299
|
-
body = JSON.stringify({
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
});
|
|
299
|
+
body = JSON.stringify(take(input, {
|
|
300
|
+
MaxResults: [],
|
|
301
|
+
NextToken: [],
|
|
302
|
+
}));
|
|
303
303
|
return new __HttpRequest({
|
|
304
304
|
protocol,
|
|
305
305
|
hostname,
|
|
@@ -317,11 +317,11 @@ export const se_ListMembersCommand = async (input, context) => {
|
|
|
317
317
|
};
|
|
318
318
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/graph/members/list";
|
|
319
319
|
let body;
|
|
320
|
-
body = JSON.stringify({
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
});
|
|
320
|
+
body = JSON.stringify(take(input, {
|
|
321
|
+
GraphArn: [],
|
|
322
|
+
MaxResults: [],
|
|
323
|
+
NextToken: [],
|
|
324
|
+
}));
|
|
325
325
|
return new __HttpRequest({
|
|
326
326
|
protocol,
|
|
327
327
|
hostname,
|
|
@@ -339,10 +339,10 @@ export const se_ListOrganizationAdminAccountsCommand = async (input, context) =>
|
|
|
339
339
|
};
|
|
340
340
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/orgs/adminAccountslist";
|
|
341
341
|
let body;
|
|
342
|
-
body = JSON.stringify({
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
});
|
|
342
|
+
body = JSON.stringify(take(input, {
|
|
343
|
+
MaxResults: [],
|
|
344
|
+
NextToken: [],
|
|
345
|
+
}));
|
|
346
346
|
return new __HttpRequest({
|
|
347
347
|
protocol,
|
|
348
348
|
hostname,
|
|
@@ -376,9 +376,9 @@ export const se_RejectInvitationCommand = async (input, context) => {
|
|
|
376
376
|
};
|
|
377
377
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/invitation/removal";
|
|
378
378
|
let body;
|
|
379
|
-
body = JSON.stringify({
|
|
380
|
-
|
|
381
|
-
});
|
|
379
|
+
body = JSON.stringify(take(input, {
|
|
380
|
+
GraphArn: [],
|
|
381
|
+
}));
|
|
382
382
|
return new __HttpRequest({
|
|
383
383
|
protocol,
|
|
384
384
|
hostname,
|
|
@@ -396,10 +396,10 @@ export const se_StartMonitoringMemberCommand = async (input, context) => {
|
|
|
396
396
|
};
|
|
397
397
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/graph/member/monitoringstate";
|
|
398
398
|
let body;
|
|
399
|
-
body = JSON.stringify({
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
});
|
|
399
|
+
body = JSON.stringify(take(input, {
|
|
400
|
+
AccountId: [],
|
|
401
|
+
GraphArn: [],
|
|
402
|
+
}));
|
|
403
403
|
return new __HttpRequest({
|
|
404
404
|
protocol,
|
|
405
405
|
hostname,
|
|
@@ -418,9 +418,9 @@ export const se_TagResourceCommand = async (input, context) => {
|
|
|
418
418
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
419
419
|
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
420
420
|
let body;
|
|
421
|
-
body = JSON.stringify({
|
|
422
|
-
|
|
423
|
-
});
|
|
421
|
+
body = JSON.stringify(take(input, {
|
|
422
|
+
Tags: (_) => _json(_),
|
|
423
|
+
}));
|
|
424
424
|
return new __HttpRequest({
|
|
425
425
|
protocol,
|
|
426
426
|
hostname,
|
|
@@ -461,12 +461,10 @@ export const se_UpdateDatasourcePackagesCommand = async (input, context) => {
|
|
|
461
461
|
};
|
|
462
462
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/graph/datasources/update";
|
|
463
463
|
let body;
|
|
464
|
-
body = JSON.stringify({
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
...(input.GraphArn != null && { GraphArn: input.GraphArn }),
|
|
469
|
-
});
|
|
464
|
+
body = JSON.stringify(take(input, {
|
|
465
|
+
DatasourcePackages: (_) => _json(_),
|
|
466
|
+
GraphArn: [],
|
|
467
|
+
}));
|
|
470
468
|
return new __HttpRequest({
|
|
471
469
|
protocol,
|
|
472
470
|
hostname,
|
|
@@ -484,10 +482,10 @@ export const se_UpdateOrganizationConfigurationCommand = async (input, context)
|
|
|
484
482
|
};
|
|
485
483
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/orgs/updateOrganizationConfiguration";
|
|
486
484
|
let body;
|
|
487
|
-
body = JSON.stringify({
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
});
|
|
485
|
+
body = JSON.stringify(take(input, {
|
|
486
|
+
AutoEnable: [],
|
|
487
|
+
GraphArn: [],
|
|
488
|
+
}));
|
|
491
489
|
return new __HttpRequest({
|
|
492
490
|
protocol,
|
|
493
491
|
hostname,
|
|
@@ -532,10 +530,9 @@ const de_AcceptInvitationCommandError = async (output, context) => {
|
|
|
532
530
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
533
531
|
default:
|
|
534
532
|
const parsedBody = parsedOutput.body;
|
|
535
|
-
throwDefaultError({
|
|
533
|
+
return throwDefaultError({
|
|
536
534
|
output,
|
|
537
535
|
parsedBody,
|
|
538
|
-
exceptionCtor: __BaseException,
|
|
539
536
|
errorCode,
|
|
540
537
|
});
|
|
541
538
|
}
|
|
@@ -548,12 +545,11 @@ export const de_BatchGetGraphMemberDatasourcesCommand = async (output, context)
|
|
|
548
545
|
$metadata: deserializeMetadata(output),
|
|
549
546
|
});
|
|
550
547
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
}
|
|
548
|
+
const doc = take(data, {
|
|
549
|
+
MemberDatasources: (_) => de_MembershipDatasourcesList(_, context),
|
|
550
|
+
UnprocessedAccounts: _json,
|
|
551
|
+
});
|
|
552
|
+
Object.assign(contents, doc);
|
|
557
553
|
return contents;
|
|
558
554
|
};
|
|
559
555
|
const de_BatchGetGraphMemberDatasourcesCommandError = async (output, context) => {
|
|
@@ -577,10 +573,9 @@ const de_BatchGetGraphMemberDatasourcesCommandError = async (output, context) =>
|
|
|
577
573
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
578
574
|
default:
|
|
579
575
|
const parsedBody = parsedOutput.body;
|
|
580
|
-
throwDefaultError({
|
|
576
|
+
return throwDefaultError({
|
|
581
577
|
output,
|
|
582
578
|
parsedBody,
|
|
583
|
-
exceptionCtor: __BaseException,
|
|
584
579
|
errorCode,
|
|
585
580
|
});
|
|
586
581
|
}
|
|
@@ -593,12 +588,11 @@ export const de_BatchGetMembershipDatasourcesCommand = async (output, context) =
|
|
|
593
588
|
$metadata: deserializeMetadata(output),
|
|
594
589
|
});
|
|
595
590
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
}
|
|
591
|
+
const doc = take(data, {
|
|
592
|
+
MembershipDatasources: (_) => de_MembershipDatasourcesList(_, context),
|
|
593
|
+
UnprocessedGraphs: _json,
|
|
594
|
+
});
|
|
595
|
+
Object.assign(contents, doc);
|
|
602
596
|
return contents;
|
|
603
597
|
};
|
|
604
598
|
const de_BatchGetMembershipDatasourcesCommandError = async (output, context) => {
|
|
@@ -622,10 +616,9 @@ const de_BatchGetMembershipDatasourcesCommandError = async (output, context) =>
|
|
|
622
616
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
623
617
|
default:
|
|
624
618
|
const parsedBody = parsedOutput.body;
|
|
625
|
-
throwDefaultError({
|
|
619
|
+
return throwDefaultError({
|
|
626
620
|
output,
|
|
627
621
|
parsedBody,
|
|
628
|
-
exceptionCtor: __BaseException,
|
|
629
622
|
errorCode,
|
|
630
623
|
});
|
|
631
624
|
}
|
|
@@ -638,9 +631,10 @@ export const de_CreateGraphCommand = async (output, context) => {
|
|
|
638
631
|
$metadata: deserializeMetadata(output),
|
|
639
632
|
});
|
|
640
633
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
}
|
|
634
|
+
const doc = take(data, {
|
|
635
|
+
GraphArn: __expectString,
|
|
636
|
+
});
|
|
637
|
+
Object.assign(contents, doc);
|
|
644
638
|
return contents;
|
|
645
639
|
};
|
|
646
640
|
const de_CreateGraphCommandError = async (output, context) => {
|
|
@@ -664,10 +658,9 @@ const de_CreateGraphCommandError = async (output, context) => {
|
|
|
664
658
|
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
665
659
|
default:
|
|
666
660
|
const parsedBody = parsedOutput.body;
|
|
667
|
-
throwDefaultError({
|
|
661
|
+
return throwDefaultError({
|
|
668
662
|
output,
|
|
669
663
|
parsedBody,
|
|
670
|
-
exceptionCtor: __BaseException,
|
|
671
664
|
errorCode,
|
|
672
665
|
});
|
|
673
666
|
}
|
|
@@ -680,12 +673,11 @@ export const de_CreateMembersCommand = async (output, context) => {
|
|
|
680
673
|
$metadata: deserializeMetadata(output),
|
|
681
674
|
});
|
|
682
675
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
}
|
|
676
|
+
const doc = take(data, {
|
|
677
|
+
Members: (_) => de_MemberDetailList(_, context),
|
|
678
|
+
UnprocessedAccounts: _json,
|
|
679
|
+
});
|
|
680
|
+
Object.assign(contents, doc);
|
|
689
681
|
return contents;
|
|
690
682
|
};
|
|
691
683
|
const de_CreateMembersCommandError = async (output, context) => {
|
|
@@ -712,10 +704,9 @@ const de_CreateMembersCommandError = async (output, context) => {
|
|
|
712
704
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
713
705
|
default:
|
|
714
706
|
const parsedBody = parsedOutput.body;
|
|
715
|
-
throwDefaultError({
|
|
707
|
+
return throwDefaultError({
|
|
716
708
|
output,
|
|
717
709
|
parsedBody,
|
|
718
|
-
exceptionCtor: __BaseException,
|
|
719
710
|
errorCode,
|
|
720
711
|
});
|
|
721
712
|
}
|
|
@@ -751,10 +742,9 @@ const de_DeleteGraphCommandError = async (output, context) => {
|
|
|
751
742
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
752
743
|
default:
|
|
753
744
|
const parsedBody = parsedOutput.body;
|
|
754
|
-
throwDefaultError({
|
|
745
|
+
return throwDefaultError({
|
|
755
746
|
output,
|
|
756
747
|
parsedBody,
|
|
757
|
-
exceptionCtor: __BaseException,
|
|
758
748
|
errorCode,
|
|
759
749
|
});
|
|
760
750
|
}
|
|
@@ -767,12 +757,11 @@ export const de_DeleteMembersCommand = async (output, context) => {
|
|
|
767
757
|
$metadata: deserializeMetadata(output),
|
|
768
758
|
});
|
|
769
759
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
}
|
|
760
|
+
const doc = take(data, {
|
|
761
|
+
AccountIds: _json,
|
|
762
|
+
UnprocessedAccounts: _json,
|
|
763
|
+
});
|
|
764
|
+
Object.assign(contents, doc);
|
|
776
765
|
return contents;
|
|
777
766
|
};
|
|
778
767
|
const de_DeleteMembersCommandError = async (output, context) => {
|
|
@@ -799,10 +788,9 @@ const de_DeleteMembersCommandError = async (output, context) => {
|
|
|
799
788
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
800
789
|
default:
|
|
801
790
|
const parsedBody = parsedOutput.body;
|
|
802
|
-
throwDefaultError({
|
|
791
|
+
return throwDefaultError({
|
|
803
792
|
output,
|
|
804
793
|
parsedBody,
|
|
805
|
-
exceptionCtor: __BaseException,
|
|
806
794
|
errorCode,
|
|
807
795
|
});
|
|
808
796
|
}
|
|
@@ -815,9 +803,10 @@ export const de_DescribeOrganizationConfigurationCommand = async (output, contex
|
|
|
815
803
|
$metadata: deserializeMetadata(output),
|
|
816
804
|
});
|
|
817
805
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
}
|
|
806
|
+
const doc = take(data, {
|
|
807
|
+
AutoEnable: __expectBoolean,
|
|
808
|
+
});
|
|
809
|
+
Object.assign(contents, doc);
|
|
821
810
|
return contents;
|
|
822
811
|
};
|
|
823
812
|
const de_DescribeOrganizationConfigurationCommandError = async (output, context) => {
|
|
@@ -841,10 +830,9 @@ const de_DescribeOrganizationConfigurationCommandError = async (output, context)
|
|
|
841
830
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
842
831
|
default:
|
|
843
832
|
const parsedBody = parsedOutput.body;
|
|
844
|
-
throwDefaultError({
|
|
833
|
+
return throwDefaultError({
|
|
845
834
|
output,
|
|
846
835
|
parsedBody,
|
|
847
|
-
exceptionCtor: __BaseException,
|
|
848
836
|
errorCode,
|
|
849
837
|
});
|
|
850
838
|
}
|
|
@@ -880,10 +868,9 @@ const de_DisableOrganizationAdminAccountCommandError = async (output, context) =
|
|
|
880
868
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
881
869
|
default:
|
|
882
870
|
const parsedBody = parsedOutput.body;
|
|
883
|
-
throwDefaultError({
|
|
871
|
+
return throwDefaultError({
|
|
884
872
|
output,
|
|
885
873
|
parsedBody,
|
|
886
|
-
exceptionCtor: __BaseException,
|
|
887
874
|
errorCode,
|
|
888
875
|
});
|
|
889
876
|
}
|
|
@@ -922,10 +909,9 @@ const de_DisassociateMembershipCommandError = async (output, context) => {
|
|
|
922
909
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
923
910
|
default:
|
|
924
911
|
const parsedBody = parsedOutput.body;
|
|
925
|
-
throwDefaultError({
|
|
912
|
+
return throwDefaultError({
|
|
926
913
|
output,
|
|
927
914
|
parsedBody,
|
|
928
|
-
exceptionCtor: __BaseException,
|
|
929
915
|
errorCode,
|
|
930
916
|
});
|
|
931
917
|
}
|
|
@@ -961,10 +947,9 @@ const de_EnableOrganizationAdminAccountCommandError = async (output, context) =>
|
|
|
961
947
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
962
948
|
default:
|
|
963
949
|
const parsedBody = parsedOutput.body;
|
|
964
|
-
throwDefaultError({
|
|
950
|
+
return throwDefaultError({
|
|
965
951
|
output,
|
|
966
952
|
parsedBody,
|
|
967
|
-
exceptionCtor: __BaseException,
|
|
968
953
|
errorCode,
|
|
969
954
|
});
|
|
970
955
|
}
|
|
@@ -977,12 +962,11 @@ export const de_GetMembersCommand = async (output, context) => {
|
|
|
977
962
|
$metadata: deserializeMetadata(output),
|
|
978
963
|
});
|
|
979
964
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
}
|
|
965
|
+
const doc = take(data, {
|
|
966
|
+
MemberDetails: (_) => de_MemberDetailList(_, context),
|
|
967
|
+
UnprocessedAccounts: _json,
|
|
968
|
+
});
|
|
969
|
+
Object.assign(contents, doc);
|
|
986
970
|
return contents;
|
|
987
971
|
};
|
|
988
972
|
const de_GetMembersCommandError = async (output, context) => {
|
|
@@ -1006,10 +990,9 @@ const de_GetMembersCommandError = async (output, context) => {
|
|
|
1006
990
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1007
991
|
default:
|
|
1008
992
|
const parsedBody = parsedOutput.body;
|
|
1009
|
-
throwDefaultError({
|
|
993
|
+
return throwDefaultError({
|
|
1010
994
|
output,
|
|
1011
995
|
parsedBody,
|
|
1012
|
-
exceptionCtor: __BaseException,
|
|
1013
996
|
errorCode,
|
|
1014
997
|
});
|
|
1015
998
|
}
|
|
@@ -1022,12 +1005,11 @@ export const de_ListDatasourcePackagesCommand = async (output, context) => {
|
|
|
1022
1005
|
$metadata: deserializeMetadata(output),
|
|
1023
1006
|
});
|
|
1024
1007
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
}
|
|
1008
|
+
const doc = take(data, {
|
|
1009
|
+
DatasourcePackages: (_) => de_DatasourcePackageIngestDetails(_, context),
|
|
1010
|
+
NextToken: __expectString,
|
|
1011
|
+
});
|
|
1012
|
+
Object.assign(contents, doc);
|
|
1031
1013
|
return contents;
|
|
1032
1014
|
};
|
|
1033
1015
|
const de_ListDatasourcePackagesCommandError = async (output, context) => {
|
|
@@ -1051,10 +1033,9 @@ const de_ListDatasourcePackagesCommandError = async (output, context) => {
|
|
|
1051
1033
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1052
1034
|
default:
|
|
1053
1035
|
const parsedBody = parsedOutput.body;
|
|
1054
|
-
throwDefaultError({
|
|
1036
|
+
return throwDefaultError({
|
|
1055
1037
|
output,
|
|
1056
1038
|
parsedBody,
|
|
1057
|
-
exceptionCtor: __BaseException,
|
|
1058
1039
|
errorCode,
|
|
1059
1040
|
});
|
|
1060
1041
|
}
|
|
@@ -1067,12 +1048,11 @@ export const de_ListGraphsCommand = async (output, context) => {
|
|
|
1067
1048
|
$metadata: deserializeMetadata(output),
|
|
1068
1049
|
});
|
|
1069
1050
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
}
|
|
1051
|
+
const doc = take(data, {
|
|
1052
|
+
GraphList: (_) => de_GraphList(_, context),
|
|
1053
|
+
NextToken: __expectString,
|
|
1054
|
+
});
|
|
1055
|
+
Object.assign(contents, doc);
|
|
1076
1056
|
return contents;
|
|
1077
1057
|
};
|
|
1078
1058
|
const de_ListGraphsCommandError = async (output, context) => {
|
|
@@ -1093,10 +1073,9 @@ const de_ListGraphsCommandError = async (output, context) => {
|
|
|
1093
1073
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1094
1074
|
default:
|
|
1095
1075
|
const parsedBody = parsedOutput.body;
|
|
1096
|
-
throwDefaultError({
|
|
1076
|
+
return throwDefaultError({
|
|
1097
1077
|
output,
|
|
1098
1078
|
parsedBody,
|
|
1099
|
-
exceptionCtor: __BaseException,
|
|
1100
1079
|
errorCode,
|
|
1101
1080
|
});
|
|
1102
1081
|
}
|
|
@@ -1109,12 +1088,11 @@ export const de_ListInvitationsCommand = async (output, context) => {
|
|
|
1109
1088
|
$metadata: deserializeMetadata(output),
|
|
1110
1089
|
});
|
|
1111
1090
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
}
|
|
1091
|
+
const doc = take(data, {
|
|
1092
|
+
Invitations: (_) => de_MemberDetailList(_, context),
|
|
1093
|
+
NextToken: __expectString,
|
|
1094
|
+
});
|
|
1095
|
+
Object.assign(contents, doc);
|
|
1118
1096
|
return contents;
|
|
1119
1097
|
};
|
|
1120
1098
|
const de_ListInvitationsCommandError = async (output, context) => {
|
|
@@ -1135,10 +1113,9 @@ const de_ListInvitationsCommandError = async (output, context) => {
|
|
|
1135
1113
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1136
1114
|
default:
|
|
1137
1115
|
const parsedBody = parsedOutput.body;
|
|
1138
|
-
throwDefaultError({
|
|
1116
|
+
return throwDefaultError({
|
|
1139
1117
|
output,
|
|
1140
1118
|
parsedBody,
|
|
1141
|
-
exceptionCtor: __BaseException,
|
|
1142
1119
|
errorCode,
|
|
1143
1120
|
});
|
|
1144
1121
|
}
|
|
@@ -1151,12 +1128,11 @@ export const de_ListMembersCommand = async (output, context) => {
|
|
|
1151
1128
|
$metadata: deserializeMetadata(output),
|
|
1152
1129
|
});
|
|
1153
1130
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
}
|
|
1131
|
+
const doc = take(data, {
|
|
1132
|
+
MemberDetails: (_) => de_MemberDetailList(_, context),
|
|
1133
|
+
NextToken: __expectString,
|
|
1134
|
+
});
|
|
1135
|
+
Object.assign(contents, doc);
|
|
1160
1136
|
return contents;
|
|
1161
1137
|
};
|
|
1162
1138
|
const de_ListMembersCommandError = async (output, context) => {
|
|
@@ -1180,10 +1156,9 @@ const de_ListMembersCommandError = async (output, context) => {
|
|
|
1180
1156
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1181
1157
|
default:
|
|
1182
1158
|
const parsedBody = parsedOutput.body;
|
|
1183
|
-
throwDefaultError({
|
|
1159
|
+
return throwDefaultError({
|
|
1184
1160
|
output,
|
|
1185
1161
|
parsedBody,
|
|
1186
|
-
exceptionCtor: __BaseException,
|
|
1187
1162
|
errorCode,
|
|
1188
1163
|
});
|
|
1189
1164
|
}
|
|
@@ -1196,12 +1171,11 @@ export const de_ListOrganizationAdminAccountsCommand = async (output, context) =
|
|
|
1196
1171
|
$metadata: deserializeMetadata(output),
|
|
1197
1172
|
});
|
|
1198
1173
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
}
|
|
1174
|
+
const doc = take(data, {
|
|
1175
|
+
Administrators: (_) => de_AdministratorList(_, context),
|
|
1176
|
+
NextToken: __expectString,
|
|
1177
|
+
});
|
|
1178
|
+
Object.assign(contents, doc);
|
|
1205
1179
|
return contents;
|
|
1206
1180
|
};
|
|
1207
1181
|
const de_ListOrganizationAdminAccountsCommandError = async (output, context) => {
|
|
@@ -1225,10 +1199,9 @@ const de_ListOrganizationAdminAccountsCommandError = async (output, context) =>
|
|
|
1225
1199
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1226
1200
|
default:
|
|
1227
1201
|
const parsedBody = parsedOutput.body;
|
|
1228
|
-
throwDefaultError({
|
|
1202
|
+
return throwDefaultError({
|
|
1229
1203
|
output,
|
|
1230
1204
|
parsedBody,
|
|
1231
|
-
exceptionCtor: __BaseException,
|
|
1232
1205
|
errorCode,
|
|
1233
1206
|
});
|
|
1234
1207
|
}
|
|
@@ -1241,9 +1214,10 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1241
1214
|
$metadata: deserializeMetadata(output),
|
|
1242
1215
|
});
|
|
1243
1216
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
}
|
|
1217
|
+
const doc = take(data, {
|
|
1218
|
+
Tags: _json,
|
|
1219
|
+
});
|
|
1220
|
+
Object.assign(contents, doc);
|
|
1247
1221
|
return contents;
|
|
1248
1222
|
};
|
|
1249
1223
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -1267,10 +1241,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
1267
1241
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1268
1242
|
default:
|
|
1269
1243
|
const parsedBody = parsedOutput.body;
|
|
1270
|
-
throwDefaultError({
|
|
1244
|
+
return throwDefaultError({
|
|
1271
1245
|
output,
|
|
1272
1246
|
parsedBody,
|
|
1273
|
-
exceptionCtor: __BaseException,
|
|
1274
1247
|
errorCode,
|
|
1275
1248
|
});
|
|
1276
1249
|
}
|
|
@@ -1309,10 +1282,9 @@ const de_RejectInvitationCommandError = async (output, context) => {
|
|
|
1309
1282
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1310
1283
|
default:
|
|
1311
1284
|
const parsedBody = parsedOutput.body;
|
|
1312
|
-
throwDefaultError({
|
|
1285
|
+
return throwDefaultError({
|
|
1313
1286
|
output,
|
|
1314
1287
|
parsedBody,
|
|
1315
|
-
exceptionCtor: __BaseException,
|
|
1316
1288
|
errorCode,
|
|
1317
1289
|
});
|
|
1318
1290
|
}
|
|
@@ -1354,10 +1326,9 @@ const de_StartMonitoringMemberCommandError = async (output, context) => {
|
|
|
1354
1326
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1355
1327
|
default:
|
|
1356
1328
|
const parsedBody = parsedOutput.body;
|
|
1357
|
-
throwDefaultError({
|
|
1329
|
+
return throwDefaultError({
|
|
1358
1330
|
output,
|
|
1359
1331
|
parsedBody,
|
|
1360
|
-
exceptionCtor: __BaseException,
|
|
1361
1332
|
errorCode,
|
|
1362
1333
|
});
|
|
1363
1334
|
}
|
|
@@ -1393,10 +1364,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
1393
1364
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1394
1365
|
default:
|
|
1395
1366
|
const parsedBody = parsedOutput.body;
|
|
1396
|
-
throwDefaultError({
|
|
1367
|
+
return throwDefaultError({
|
|
1397
1368
|
output,
|
|
1398
1369
|
parsedBody,
|
|
1399
|
-
exceptionCtor: __BaseException,
|
|
1400
1370
|
errorCode,
|
|
1401
1371
|
});
|
|
1402
1372
|
}
|
|
@@ -1432,10 +1402,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
1432
1402
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1433
1403
|
default:
|
|
1434
1404
|
const parsedBody = parsedOutput.body;
|
|
1435
|
-
throwDefaultError({
|
|
1405
|
+
return throwDefaultError({
|
|
1436
1406
|
output,
|
|
1437
1407
|
parsedBody,
|
|
1438
|
-
exceptionCtor: __BaseException,
|
|
1439
1408
|
errorCode,
|
|
1440
1409
|
});
|
|
1441
1410
|
}
|
|
@@ -1474,10 +1443,9 @@ const de_UpdateDatasourcePackagesCommandError = async (output, context) => {
|
|
|
1474
1443
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1475
1444
|
default:
|
|
1476
1445
|
const parsedBody = parsedOutput.body;
|
|
1477
|
-
throwDefaultError({
|
|
1446
|
+
return throwDefaultError({
|
|
1478
1447
|
output,
|
|
1479
1448
|
parsedBody,
|
|
1480
|
-
exceptionCtor: __BaseException,
|
|
1481
1449
|
errorCode,
|
|
1482
1450
|
});
|
|
1483
1451
|
}
|
|
@@ -1513,33 +1481,25 @@ const de_UpdateOrganizationConfigurationCommandError = async (output, context) =
|
|
|
1513
1481
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1514
1482
|
default:
|
|
1515
1483
|
const parsedBody = parsedOutput.body;
|
|
1516
|
-
throwDefaultError({
|
|
1484
|
+
return throwDefaultError({
|
|
1517
1485
|
output,
|
|
1518
1486
|
parsedBody,
|
|
1519
|
-
exceptionCtor: __BaseException,
|
|
1520
1487
|
errorCode,
|
|
1521
1488
|
});
|
|
1522
1489
|
}
|
|
1523
1490
|
};
|
|
1524
|
-
const
|
|
1491
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
1525
1492
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1526
1493
|
const contents = map({});
|
|
1527
1494
|
const data = parsedOutput.body;
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
}
|
|
1537
|
-
if (data.SubErrorCode != null) {
|
|
1538
|
-
contents.SubErrorCode = __expectString(data.SubErrorCode);
|
|
1539
|
-
}
|
|
1540
|
-
if (data.SubErrorCodeReason != null) {
|
|
1541
|
-
contents.SubErrorCodeReason = __expectString(data.SubErrorCodeReason);
|
|
1542
|
-
}
|
|
1495
|
+
const doc = take(data, {
|
|
1496
|
+
ErrorCode: __expectString,
|
|
1497
|
+
ErrorCodeReason: __expectString,
|
|
1498
|
+
Message: __expectString,
|
|
1499
|
+
SubErrorCode: __expectString,
|
|
1500
|
+
SubErrorCodeReason: __expectString,
|
|
1501
|
+
});
|
|
1502
|
+
Object.assign(contents, doc);
|
|
1543
1503
|
const exception = new AccessDeniedException({
|
|
1544
1504
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1545
1505
|
...contents,
|
|
@@ -1549,9 +1509,10 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
1549
1509
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1550
1510
|
const contents = map({});
|
|
1551
1511
|
const data = parsedOutput.body;
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
}
|
|
1512
|
+
const doc = take(data, {
|
|
1513
|
+
Message: __expectString,
|
|
1514
|
+
});
|
|
1515
|
+
Object.assign(contents, doc);
|
|
1555
1516
|
const exception = new ConflictException({
|
|
1556
1517
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1557
1518
|
...contents,
|
|
@@ -1561,9 +1522,10 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
1561
1522
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1562
1523
|
const contents = map({});
|
|
1563
1524
|
const data = parsedOutput.body;
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
}
|
|
1525
|
+
const doc = take(data, {
|
|
1526
|
+
Message: __expectString,
|
|
1527
|
+
});
|
|
1528
|
+
Object.assign(contents, doc);
|
|
1567
1529
|
const exception = new InternalServerException({
|
|
1568
1530
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1569
1531
|
...contents,
|
|
@@ -1573,9 +1535,10 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
1573
1535
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1574
1536
|
const contents = map({});
|
|
1575
1537
|
const data = parsedOutput.body;
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
}
|
|
1538
|
+
const doc = take(data, {
|
|
1539
|
+
Message: __expectString,
|
|
1540
|
+
});
|
|
1541
|
+
Object.assign(contents, doc);
|
|
1579
1542
|
const exception = new ResourceNotFoundException({
|
|
1580
1543
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1581
1544
|
...contents,
|
|
@@ -1585,12 +1548,11 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1585
1548
|
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1586
1549
|
const contents = map({});
|
|
1587
1550
|
const data = parsedOutput.body;
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
}
|
|
1551
|
+
const doc = take(data, {
|
|
1552
|
+
Message: __expectString,
|
|
1553
|
+
Resources: _json,
|
|
1554
|
+
});
|
|
1555
|
+
Object.assign(contents, doc);
|
|
1594
1556
|
const exception = new ServiceQuotaExceededException({
|
|
1595
1557
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1596
1558
|
...contents,
|
|
@@ -1600,9 +1562,10 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
1600
1562
|
const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
1601
1563
|
const contents = map({});
|
|
1602
1564
|
const data = parsedOutput.body;
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
}
|
|
1565
|
+
const doc = take(data, {
|
|
1566
|
+
Message: __expectString,
|
|
1567
|
+
});
|
|
1568
|
+
Object.assign(contents, doc);
|
|
1606
1569
|
const exception = new TooManyRequestsException({
|
|
1607
1570
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1608
1571
|
...contents,
|
|
@@ -1612,109 +1575,38 @@ const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
|
1612
1575
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1613
1576
|
const contents = map({});
|
|
1614
1577
|
const data = parsedOutput.body;
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
if (data.Message != null) {
|
|
1622
|
-
contents.Message = __expectString(data.Message);
|
|
1623
|
-
}
|
|
1578
|
+
const doc = take(data, {
|
|
1579
|
+
ErrorCode: __expectString,
|
|
1580
|
+
ErrorCodeReason: __expectString,
|
|
1581
|
+
Message: __expectString,
|
|
1582
|
+
});
|
|
1583
|
+
Object.assign(contents, doc);
|
|
1624
1584
|
const exception = new ValidationException({
|
|
1625
1585
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1626
1586
|
...contents,
|
|
1627
1587
|
});
|
|
1628
1588
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1629
1589
|
};
|
|
1630
|
-
const se_Account = (input, context) => {
|
|
1631
|
-
return {
|
|
1632
|
-
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1633
|
-
...(input.EmailAddress != null && { EmailAddress: input.EmailAddress }),
|
|
1634
|
-
};
|
|
1635
|
-
};
|
|
1636
|
-
const se_AccountIdExtendedList = (input, context) => {
|
|
1637
|
-
return input
|
|
1638
|
-
.filter((e) => e != null)
|
|
1639
|
-
.map((entry) => {
|
|
1640
|
-
return entry;
|
|
1641
|
-
});
|
|
1642
|
-
};
|
|
1643
|
-
const se_AccountIdList = (input, context) => {
|
|
1644
|
-
return input
|
|
1645
|
-
.filter((e) => e != null)
|
|
1646
|
-
.map((entry) => {
|
|
1647
|
-
return entry;
|
|
1648
|
-
});
|
|
1649
|
-
};
|
|
1650
|
-
const se_AccountList = (input, context) => {
|
|
1651
|
-
return input
|
|
1652
|
-
.filter((e) => e != null)
|
|
1653
|
-
.map((entry) => {
|
|
1654
|
-
return se_Account(entry, context);
|
|
1655
|
-
});
|
|
1656
|
-
};
|
|
1657
|
-
const se_DatasourcePackageList = (input, context) => {
|
|
1658
|
-
return input
|
|
1659
|
-
.filter((e) => e != null)
|
|
1660
|
-
.map((entry) => {
|
|
1661
|
-
return entry;
|
|
1662
|
-
});
|
|
1663
|
-
};
|
|
1664
|
-
const se_GraphArnList = (input, context) => {
|
|
1665
|
-
return input
|
|
1666
|
-
.filter((e) => e != null)
|
|
1667
|
-
.map((entry) => {
|
|
1668
|
-
return entry;
|
|
1669
|
-
});
|
|
1670
|
-
};
|
|
1671
|
-
const se_TagMap = (input, context) => {
|
|
1672
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1673
|
-
if (value === null) {
|
|
1674
|
-
return acc;
|
|
1675
|
-
}
|
|
1676
|
-
acc[key] = value;
|
|
1677
|
-
return acc;
|
|
1678
|
-
}, {});
|
|
1679
|
-
};
|
|
1680
|
-
const de_AccountIdList = (output, context) => {
|
|
1681
|
-
const retVal = (output || [])
|
|
1682
|
-
.filter((e) => e != null)
|
|
1683
|
-
.map((entry) => {
|
|
1684
|
-
if (entry === null) {
|
|
1685
|
-
return null;
|
|
1686
|
-
}
|
|
1687
|
-
return __expectString(entry);
|
|
1688
|
-
});
|
|
1689
|
-
return retVal;
|
|
1690
|
-
};
|
|
1691
1590
|
const de_Administrator = (output, context) => {
|
|
1692
|
-
return {
|
|
1693
|
-
AccountId: __expectString
|
|
1694
|
-
DelegationTime:
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
GraphArn: __expectString(output.GraphArn),
|
|
1698
|
-
};
|
|
1591
|
+
return take(output, {
|
|
1592
|
+
AccountId: __expectString,
|
|
1593
|
+
DelegationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1594
|
+
GraphArn: __expectString,
|
|
1595
|
+
});
|
|
1699
1596
|
};
|
|
1700
1597
|
const de_AdministratorList = (output, context) => {
|
|
1701
1598
|
const retVal = (output || [])
|
|
1702
1599
|
.filter((e) => e != null)
|
|
1703
1600
|
.map((entry) => {
|
|
1704
|
-
if (entry === null) {
|
|
1705
|
-
return null;
|
|
1706
|
-
}
|
|
1707
1601
|
return de_Administrator(entry, context);
|
|
1708
1602
|
});
|
|
1709
1603
|
return retVal;
|
|
1710
1604
|
};
|
|
1711
1605
|
const de_DatasourcePackageIngestDetail = (output, context) => {
|
|
1712
|
-
return {
|
|
1713
|
-
DatasourcePackageIngestState: __expectString
|
|
1714
|
-
LastIngestStateChange:
|
|
1715
|
-
|
|
1716
|
-
: undefined,
|
|
1717
|
-
};
|
|
1606
|
+
return take(output, {
|
|
1607
|
+
DatasourcePackageIngestState: __expectString,
|
|
1608
|
+
LastIngestStateChange: (_) => de_LastIngestStateChangeDates(_, context),
|
|
1609
|
+
});
|
|
1718
1610
|
};
|
|
1719
1611
|
const de_DatasourcePackageIngestDetails = (output, context) => {
|
|
1720
1612
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
@@ -1734,36 +1626,22 @@ const de_DatasourcePackageIngestHistory = (output, context) => {
|
|
|
1734
1626
|
return acc;
|
|
1735
1627
|
}, {});
|
|
1736
1628
|
};
|
|
1737
|
-
const de_DatasourcePackageIngestStates = (output, context) => {
|
|
1738
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1739
|
-
if (value === null) {
|
|
1740
|
-
return acc;
|
|
1741
|
-
}
|
|
1742
|
-
acc[key] = __expectString(value);
|
|
1743
|
-
return acc;
|
|
1744
|
-
}, {});
|
|
1745
|
-
};
|
|
1746
1629
|
const de_DatasourcePackageUsageInfo = (output, context) => {
|
|
1747
|
-
return {
|
|
1748
|
-
VolumeUsageInBytes: __expectLong
|
|
1749
|
-
VolumeUsageUpdateTime:
|
|
1750
|
-
|
|
1751
|
-
: undefined,
|
|
1752
|
-
};
|
|
1630
|
+
return take(output, {
|
|
1631
|
+
VolumeUsageInBytes: __expectLong,
|
|
1632
|
+
VolumeUsageUpdateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1633
|
+
});
|
|
1753
1634
|
};
|
|
1754
1635
|
const de_Graph = (output, context) => {
|
|
1755
|
-
return {
|
|
1756
|
-
Arn: __expectString
|
|
1757
|
-
CreatedTime:
|
|
1758
|
-
};
|
|
1636
|
+
return take(output, {
|
|
1637
|
+
Arn: __expectString,
|
|
1638
|
+
CreatedTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1639
|
+
});
|
|
1759
1640
|
};
|
|
1760
1641
|
const de_GraphList = (output, context) => {
|
|
1761
1642
|
const retVal = (output || [])
|
|
1762
1643
|
.filter((e) => e != null)
|
|
1763
1644
|
.map((entry) => {
|
|
1764
|
-
if (entry === null) {
|
|
1765
|
-
return null;
|
|
1766
|
-
}
|
|
1767
1645
|
return de_Graph(entry, context);
|
|
1768
1646
|
});
|
|
1769
1647
|
return retVal;
|
|
@@ -1778,122 +1656,52 @@ const de_LastIngestStateChangeDates = (output, context) => {
|
|
|
1778
1656
|
}, {});
|
|
1779
1657
|
};
|
|
1780
1658
|
const de_MemberDetail = (output, context) => {
|
|
1781
|
-
return {
|
|
1782
|
-
AccountId: __expectString
|
|
1783
|
-
AdministratorId: __expectString
|
|
1784
|
-
DatasourcePackageIngestStates:
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
VolumeUsageByDatasourcePackage: output.VolumeUsageByDatasourcePackage != null
|
|
1800
|
-
? de_VolumeUsageByDatasourcePackage(output.VolumeUsageByDatasourcePackage, context)
|
|
1801
|
-
: undefined,
|
|
1802
|
-
VolumeUsageInBytes: __expectLong(output.VolumeUsageInBytes),
|
|
1803
|
-
VolumeUsageUpdatedTime: output.VolumeUsageUpdatedTime != null
|
|
1804
|
-
? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.VolumeUsageUpdatedTime))
|
|
1805
|
-
: undefined,
|
|
1806
|
-
};
|
|
1659
|
+
return take(output, {
|
|
1660
|
+
AccountId: __expectString,
|
|
1661
|
+
AdministratorId: __expectString,
|
|
1662
|
+
DatasourcePackageIngestStates: _json,
|
|
1663
|
+
DisabledReason: __expectString,
|
|
1664
|
+
EmailAddress: __expectString,
|
|
1665
|
+
GraphArn: __expectString,
|
|
1666
|
+
InvitationType: __expectString,
|
|
1667
|
+
InvitedTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1668
|
+
MasterId: __expectString,
|
|
1669
|
+
PercentOfGraphUtilization: __limitedParseDouble,
|
|
1670
|
+
PercentOfGraphUtilizationUpdatedTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1671
|
+
Status: __expectString,
|
|
1672
|
+
UpdatedTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1673
|
+
VolumeUsageByDatasourcePackage: (_) => de_VolumeUsageByDatasourcePackage(_, context),
|
|
1674
|
+
VolumeUsageInBytes: __expectLong,
|
|
1675
|
+
VolumeUsageUpdatedTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1676
|
+
});
|
|
1807
1677
|
};
|
|
1808
1678
|
const de_MemberDetailList = (output, context) => {
|
|
1809
1679
|
const retVal = (output || [])
|
|
1810
1680
|
.filter((e) => e != null)
|
|
1811
1681
|
.map((entry) => {
|
|
1812
|
-
if (entry === null) {
|
|
1813
|
-
return null;
|
|
1814
|
-
}
|
|
1815
1682
|
return de_MemberDetail(entry, context);
|
|
1816
1683
|
});
|
|
1817
1684
|
return retVal;
|
|
1818
1685
|
};
|
|
1819
1686
|
const de_MembershipDatasources = (output, context) => {
|
|
1820
|
-
return {
|
|
1821
|
-
AccountId: __expectString
|
|
1822
|
-
DatasourcePackageIngestHistory:
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
GraphArn: __expectString(output.GraphArn),
|
|
1826
|
-
};
|
|
1687
|
+
return take(output, {
|
|
1688
|
+
AccountId: __expectString,
|
|
1689
|
+
DatasourcePackageIngestHistory: (_) => de_DatasourcePackageIngestHistory(_, context),
|
|
1690
|
+
GraphArn: __expectString,
|
|
1691
|
+
});
|
|
1827
1692
|
};
|
|
1828
1693
|
const de_MembershipDatasourcesList = (output, context) => {
|
|
1829
1694
|
const retVal = (output || [])
|
|
1830
1695
|
.filter((e) => e != null)
|
|
1831
1696
|
.map((entry) => {
|
|
1832
|
-
if (entry === null) {
|
|
1833
|
-
return null;
|
|
1834
|
-
}
|
|
1835
1697
|
return de_MembershipDatasources(entry, context);
|
|
1836
1698
|
});
|
|
1837
1699
|
return retVal;
|
|
1838
1700
|
};
|
|
1839
|
-
const de_ResourceList = (output, context) => {
|
|
1840
|
-
const retVal = (output || [])
|
|
1841
|
-
.filter((e) => e != null)
|
|
1842
|
-
.map((entry) => {
|
|
1843
|
-
if (entry === null) {
|
|
1844
|
-
return null;
|
|
1845
|
-
}
|
|
1846
|
-
return __expectString(entry);
|
|
1847
|
-
});
|
|
1848
|
-
return retVal;
|
|
1849
|
-
};
|
|
1850
|
-
const de_TagMap = (output, context) => {
|
|
1851
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1852
|
-
if (value === null) {
|
|
1853
|
-
return acc;
|
|
1854
|
-
}
|
|
1855
|
-
acc[key] = __expectString(value);
|
|
1856
|
-
return acc;
|
|
1857
|
-
}, {});
|
|
1858
|
-
};
|
|
1859
1701
|
const de_TimestampForCollection = (output, context) => {
|
|
1860
|
-
return {
|
|
1861
|
-
Timestamp:
|
|
1862
|
-
};
|
|
1863
|
-
};
|
|
1864
|
-
const de_UnprocessedAccount = (output, context) => {
|
|
1865
|
-
return {
|
|
1866
|
-
AccountId: __expectString(output.AccountId),
|
|
1867
|
-
Reason: __expectString(output.Reason),
|
|
1868
|
-
};
|
|
1869
|
-
};
|
|
1870
|
-
const de_UnprocessedAccountList = (output, context) => {
|
|
1871
|
-
const retVal = (output || [])
|
|
1872
|
-
.filter((e) => e != null)
|
|
1873
|
-
.map((entry) => {
|
|
1874
|
-
if (entry === null) {
|
|
1875
|
-
return null;
|
|
1876
|
-
}
|
|
1877
|
-
return de_UnprocessedAccount(entry, context);
|
|
1702
|
+
return take(output, {
|
|
1703
|
+
Timestamp: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1878
1704
|
});
|
|
1879
|
-
return retVal;
|
|
1880
|
-
};
|
|
1881
|
-
const de_UnprocessedGraph = (output, context) => {
|
|
1882
|
-
return {
|
|
1883
|
-
GraphArn: __expectString(output.GraphArn),
|
|
1884
|
-
Reason: __expectString(output.Reason),
|
|
1885
|
-
};
|
|
1886
|
-
};
|
|
1887
|
-
const de_UnprocessedGraphList = (output, context) => {
|
|
1888
|
-
const retVal = (output || [])
|
|
1889
|
-
.filter((e) => e != null)
|
|
1890
|
-
.map((entry) => {
|
|
1891
|
-
if (entry === null) {
|
|
1892
|
-
return null;
|
|
1893
|
-
}
|
|
1894
|
-
return de_UnprocessedGraph(entry, context);
|
|
1895
|
-
});
|
|
1896
|
-
return retVal;
|
|
1897
1705
|
};
|
|
1898
1706
|
const de_VolumeUsageByDatasourcePackage = (output, context) => {
|
|
1899
1707
|
return Object.entries(output).reduce((acc, [key, value]) => {
|