@aws-sdk/client-detective 3.130.0 → 3.141.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/CHANGELOG.md +31 -0
- package/README.md +7 -5
- package/dist-cjs/Detective.js +60 -0
- package/dist-cjs/commands/AcceptInvitationCommand.js +1 -1
- package/dist-cjs/commands/BatchGetGraphMemberDatasourcesCommand.js +36 -0
- package/dist-cjs/commands/BatchGetMembershipDatasourcesCommand.js +36 -0
- package/dist-cjs/commands/CreateGraphCommand.js +2 -2
- package/dist-cjs/commands/CreateMembersCommand.js +2 -2
- package/dist-cjs/commands/DeleteGraphCommand.js +1 -1
- package/dist-cjs/commands/DeleteMembersCommand.js +2 -2
- package/dist-cjs/commands/DescribeOrganizationConfigurationCommand.js +2 -2
- package/dist-cjs/commands/DisassociateMembershipCommand.js +1 -1
- package/dist-cjs/commands/EnableOrganizationAdminAccountCommand.js +1 -1
- package/dist-cjs/commands/GetMembersCommand.js +2 -2
- package/dist-cjs/commands/ListDatasourcePackagesCommand.js +36 -0
- package/dist-cjs/commands/ListGraphsCommand.js +2 -2
- package/dist-cjs/commands/ListInvitationsCommand.js +2 -2
- package/dist-cjs/commands/ListMembersCommand.js +2 -2
- package/dist-cjs/commands/ListOrganizationAdminAccountsCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/RejectInvitationCommand.js +1 -1
- package/dist-cjs/commands/StartMonitoringMemberCommand.js +1 -1
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateDatasourcePackagesCommand.js +36 -0
- package/dist-cjs/commands/UpdateOrganizationConfigurationCommand.js +1 -1
- package/dist-cjs/commands/index.js +4 -0
- package/dist-cjs/models/models_0.js +214 -217
- package/dist-cjs/pagination/ListDatasourcePackagesPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +449 -1
- package/dist-es/Detective.js +60 -0
- package/dist-es/commands/AcceptInvitationCommand.js +2 -2
- package/dist-es/commands/BatchGetGraphMemberDatasourcesCommand.js +39 -0
- package/dist-es/commands/BatchGetMembershipDatasourcesCommand.js +39 -0
- package/dist-es/commands/CreateGraphCommand.js +3 -3
- package/dist-es/commands/CreateMembersCommand.js +3 -3
- package/dist-es/commands/DeleteGraphCommand.js +2 -2
- package/dist-es/commands/DeleteMembersCommand.js +3 -3
- package/dist-es/commands/DescribeOrganizationConfigurationCommand.js +3 -3
- package/dist-es/commands/DisassociateMembershipCommand.js +2 -2
- package/dist-es/commands/EnableOrganizationAdminAccountCommand.js +2 -2
- package/dist-es/commands/GetMembersCommand.js +3 -3
- package/dist-es/commands/ListDatasourcePackagesCommand.js +39 -0
- package/dist-es/commands/ListGraphsCommand.js +3 -3
- package/dist-es/commands/ListInvitationsCommand.js +3 -3
- package/dist-es/commands/ListMembersCommand.js +3 -3
- package/dist-es/commands/ListOrganizationAdminAccountsCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/RejectInvitationCommand.js +2 -2
- package/dist-es/commands/StartMonitoringMemberCommand.js +2 -2
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateDatasourcePackagesCommand.js +39 -0
- package/dist-es/commands/UpdateOrganizationConfigurationCommand.js +2 -2
- package/dist-es/commands/index.js +4 -0
- package/dist-es/models/models_0.js +68 -144
- package/dist-es/pagination/ListDatasourcePackagesPaginator.js +75 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +534 -0
- package/dist-types/Detective.d.ts +47 -12
- package/dist-types/DetectiveClient.d.ts +12 -6
- package/dist-types/commands/BatchGetGraphMemberDatasourcesCommand.d.ts +35 -0
- package/dist-types/commands/BatchGetMembershipDatasourcesCommand.d.ts +35 -0
- package/dist-types/commands/DisableOrganizationAdminAccountCommand.d.ts +6 -5
- package/dist-types/commands/EnableOrganizationAdminAccountCommand.d.ts +7 -3
- package/dist-types/commands/ListDatasourcePackagesCommand.d.ts +35 -0
- package/dist-types/commands/UpdateDatasourcePackagesCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +376 -219
- package/dist-types/pagination/ListDatasourcePackagesPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +12 -0
- package/dist-types/ts3.4/Detective.d.ts +20 -0
- package/dist-types/ts3.4/DetectiveClient.d.ts +6 -2
- package/dist-types/ts3.4/commands/BatchGetGraphMemberDatasourcesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/BatchGetMembershipDatasourcesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListDatasourcePackagesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateDatasourcePackagesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +195 -142
- package/dist-types/ts3.4/pagination/ListDatasourcePackagesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/package.json +7 -7
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.deserializeAws_restJson1UpdateOrganizationConfigurationCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StartMonitoringMemberCommand = exports.deserializeAws_restJson1RejectInvitationCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListOrganizationAdminAccountsCommand = exports.deserializeAws_restJson1ListMembersCommand = exports.deserializeAws_restJson1ListInvitationsCommand = exports.deserializeAws_restJson1ListGraphsCommand = exports.deserializeAws_restJson1GetMembersCommand = exports.deserializeAws_restJson1EnableOrganizationAdminAccountCommand = exports.deserializeAws_restJson1DisassociateMembershipCommand = exports.deserializeAws_restJson1DisableOrganizationAdminAccountCommand = exports.deserializeAws_restJson1DescribeOrganizationConfigurationCommand = exports.deserializeAws_restJson1DeleteMembersCommand = exports.deserializeAws_restJson1DeleteGraphCommand = exports.deserializeAws_restJson1CreateMembersCommand = exports.deserializeAws_restJson1CreateGraphCommand = exports.deserializeAws_restJson1AcceptInvitationCommand = exports.serializeAws_restJson1UpdateOrganizationConfigurationCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1StartMonitoringMemberCommand = exports.serializeAws_restJson1RejectInvitationCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListOrganizationAdminAccountsCommand = exports.serializeAws_restJson1ListMembersCommand = exports.serializeAws_restJson1ListInvitationsCommand = exports.serializeAws_restJson1ListGraphsCommand = exports.serializeAws_restJson1GetMembersCommand = exports.serializeAws_restJson1EnableOrganizationAdminAccountCommand = exports.serializeAws_restJson1DisassociateMembershipCommand = exports.serializeAws_restJson1DisableOrganizationAdminAccountCommand = exports.serializeAws_restJson1DescribeOrganizationConfigurationCommand = exports.serializeAws_restJson1DeleteMembersCommand = exports.serializeAws_restJson1DeleteGraphCommand = exports.serializeAws_restJson1CreateMembersCommand = exports.serializeAws_restJson1CreateGraphCommand = exports.serializeAws_restJson1AcceptInvitationCommand = void 0;
|
|
3
|
+
exports.deserializeAws_restJson1UpdateOrganizationConfigurationCommand = exports.deserializeAws_restJson1UpdateDatasourcePackagesCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StartMonitoringMemberCommand = exports.deserializeAws_restJson1RejectInvitationCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListOrganizationAdminAccountsCommand = exports.deserializeAws_restJson1ListMembersCommand = exports.deserializeAws_restJson1ListInvitationsCommand = exports.deserializeAws_restJson1ListGraphsCommand = exports.deserializeAws_restJson1ListDatasourcePackagesCommand = exports.deserializeAws_restJson1GetMembersCommand = exports.deserializeAws_restJson1EnableOrganizationAdminAccountCommand = exports.deserializeAws_restJson1DisassociateMembershipCommand = exports.deserializeAws_restJson1DisableOrganizationAdminAccountCommand = exports.deserializeAws_restJson1DescribeOrganizationConfigurationCommand = exports.deserializeAws_restJson1DeleteMembersCommand = exports.deserializeAws_restJson1DeleteGraphCommand = exports.deserializeAws_restJson1CreateMembersCommand = exports.deserializeAws_restJson1CreateGraphCommand = exports.deserializeAws_restJson1BatchGetMembershipDatasourcesCommand = exports.deserializeAws_restJson1BatchGetGraphMemberDatasourcesCommand = exports.deserializeAws_restJson1AcceptInvitationCommand = exports.serializeAws_restJson1UpdateOrganizationConfigurationCommand = exports.serializeAws_restJson1UpdateDatasourcePackagesCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1StartMonitoringMemberCommand = exports.serializeAws_restJson1RejectInvitationCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListOrganizationAdminAccountsCommand = exports.serializeAws_restJson1ListMembersCommand = exports.serializeAws_restJson1ListInvitationsCommand = exports.serializeAws_restJson1ListGraphsCommand = exports.serializeAws_restJson1ListDatasourcePackagesCommand = exports.serializeAws_restJson1GetMembersCommand = exports.serializeAws_restJson1EnableOrganizationAdminAccountCommand = exports.serializeAws_restJson1DisassociateMembershipCommand = exports.serializeAws_restJson1DisableOrganizationAdminAccountCommand = exports.serializeAws_restJson1DescribeOrganizationConfigurationCommand = exports.serializeAws_restJson1DeleteMembersCommand = exports.serializeAws_restJson1DeleteGraphCommand = exports.serializeAws_restJson1CreateMembersCommand = exports.serializeAws_restJson1CreateGraphCommand = exports.serializeAws_restJson1BatchGetMembershipDatasourcesCommand = exports.serializeAws_restJson1BatchGetGraphMemberDatasourcesCommand = exports.serializeAws_restJson1AcceptInvitationCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const DetectiveServiceException_1 = require("../models/DetectiveServiceException");
|
|
@@ -26,6 +26,51 @@ const serializeAws_restJson1AcceptInvitationCommand = async (input, context) =>
|
|
|
26
26
|
});
|
|
27
27
|
};
|
|
28
28
|
exports.serializeAws_restJson1AcceptInvitationCommand = serializeAws_restJson1AcceptInvitationCommand;
|
|
29
|
+
const serializeAws_restJson1BatchGetGraphMemberDatasourcesCommand = async (input, context) => {
|
|
30
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
31
|
+
const headers = {
|
|
32
|
+
"content-type": "application/json",
|
|
33
|
+
};
|
|
34
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/graph/datasources/get";
|
|
35
|
+
let body;
|
|
36
|
+
body = JSON.stringify({
|
|
37
|
+
...(input.AccountIds != null && {
|
|
38
|
+
AccountIds: serializeAws_restJson1AccountIdExtendedList(input.AccountIds, context),
|
|
39
|
+
}),
|
|
40
|
+
...(input.GraphArn != null && { GraphArn: input.GraphArn }),
|
|
41
|
+
});
|
|
42
|
+
return new protocol_http_1.HttpRequest({
|
|
43
|
+
protocol,
|
|
44
|
+
hostname,
|
|
45
|
+
port,
|
|
46
|
+
method: "POST",
|
|
47
|
+
headers,
|
|
48
|
+
path: resolvedPath,
|
|
49
|
+
body,
|
|
50
|
+
});
|
|
51
|
+
};
|
|
52
|
+
exports.serializeAws_restJson1BatchGetGraphMemberDatasourcesCommand = serializeAws_restJson1BatchGetGraphMemberDatasourcesCommand;
|
|
53
|
+
const serializeAws_restJson1BatchGetMembershipDatasourcesCommand = async (input, context) => {
|
|
54
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
55
|
+
const headers = {
|
|
56
|
+
"content-type": "application/json",
|
|
57
|
+
};
|
|
58
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/membership/datasources/get";
|
|
59
|
+
let body;
|
|
60
|
+
body = JSON.stringify({
|
|
61
|
+
...(input.GraphArns != null && { GraphArns: serializeAws_restJson1GraphArnList(input.GraphArns, context) }),
|
|
62
|
+
});
|
|
63
|
+
return new protocol_http_1.HttpRequest({
|
|
64
|
+
protocol,
|
|
65
|
+
hostname,
|
|
66
|
+
port,
|
|
67
|
+
method: "POST",
|
|
68
|
+
headers,
|
|
69
|
+
path: resolvedPath,
|
|
70
|
+
body,
|
|
71
|
+
});
|
|
72
|
+
};
|
|
73
|
+
exports.serializeAws_restJson1BatchGetMembershipDatasourcesCommand = serializeAws_restJson1BatchGetMembershipDatasourcesCommand;
|
|
29
74
|
const serializeAws_restJson1CreateGraphCommand = async (input, context) => {
|
|
30
75
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
31
76
|
const headers = {
|
|
@@ -218,6 +263,29 @@ const serializeAws_restJson1GetMembersCommand = async (input, context) => {
|
|
|
218
263
|
});
|
|
219
264
|
};
|
|
220
265
|
exports.serializeAws_restJson1GetMembersCommand = serializeAws_restJson1GetMembersCommand;
|
|
266
|
+
const serializeAws_restJson1ListDatasourcePackagesCommand = async (input, context) => {
|
|
267
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
268
|
+
const headers = {
|
|
269
|
+
"content-type": "application/json",
|
|
270
|
+
};
|
|
271
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/graph/datasources/list";
|
|
272
|
+
let body;
|
|
273
|
+
body = JSON.stringify({
|
|
274
|
+
...(input.GraphArn != null && { GraphArn: input.GraphArn }),
|
|
275
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
276
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
277
|
+
});
|
|
278
|
+
return new protocol_http_1.HttpRequest({
|
|
279
|
+
protocol,
|
|
280
|
+
hostname,
|
|
281
|
+
port,
|
|
282
|
+
method: "POST",
|
|
283
|
+
headers,
|
|
284
|
+
path: resolvedPath,
|
|
285
|
+
body,
|
|
286
|
+
});
|
|
287
|
+
};
|
|
288
|
+
exports.serializeAws_restJson1ListDatasourcePackagesCommand = serializeAws_restJson1ListDatasourcePackagesCommand;
|
|
221
289
|
const serializeAws_restJson1ListGraphsCommand = async (input, context) => {
|
|
222
290
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
223
291
|
const headers = {
|
|
@@ -437,6 +505,30 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
437
505
|
});
|
|
438
506
|
};
|
|
439
507
|
exports.serializeAws_restJson1UntagResourceCommand = serializeAws_restJson1UntagResourceCommand;
|
|
508
|
+
const serializeAws_restJson1UpdateDatasourcePackagesCommand = async (input, context) => {
|
|
509
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
510
|
+
const headers = {
|
|
511
|
+
"content-type": "application/json",
|
|
512
|
+
};
|
|
513
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/graph/datasources/update";
|
|
514
|
+
let body;
|
|
515
|
+
body = JSON.stringify({
|
|
516
|
+
...(input.DatasourcePackages != null && {
|
|
517
|
+
DatasourcePackages: serializeAws_restJson1DatasourcePackageList(input.DatasourcePackages, context),
|
|
518
|
+
}),
|
|
519
|
+
...(input.GraphArn != null && { GraphArn: input.GraphArn }),
|
|
520
|
+
});
|
|
521
|
+
return new protocol_http_1.HttpRequest({
|
|
522
|
+
protocol,
|
|
523
|
+
hostname,
|
|
524
|
+
port,
|
|
525
|
+
method: "POST",
|
|
526
|
+
headers,
|
|
527
|
+
path: resolvedPath,
|
|
528
|
+
body,
|
|
529
|
+
});
|
|
530
|
+
};
|
|
531
|
+
exports.serializeAws_restJson1UpdateDatasourcePackagesCommand = serializeAws_restJson1UpdateDatasourcePackagesCommand;
|
|
440
532
|
const serializeAws_restJson1UpdateOrganizationConfigurationCommand = async (input, context) => {
|
|
441
533
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
442
534
|
const headers = {
|
|
@@ -502,6 +594,102 @@ const deserializeAws_restJson1AcceptInvitationCommandError = async (output, cont
|
|
|
502
594
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
503
595
|
}
|
|
504
596
|
};
|
|
597
|
+
const deserializeAws_restJson1BatchGetGraphMemberDatasourcesCommand = async (output, context) => {
|
|
598
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
599
|
+
return deserializeAws_restJson1BatchGetGraphMemberDatasourcesCommandError(output, context);
|
|
600
|
+
}
|
|
601
|
+
const contents = {
|
|
602
|
+
$metadata: deserializeMetadata(output),
|
|
603
|
+
MemberDatasources: undefined,
|
|
604
|
+
UnprocessedAccounts: undefined,
|
|
605
|
+
};
|
|
606
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
607
|
+
if (data.MemberDatasources !== undefined && data.MemberDatasources !== null) {
|
|
608
|
+
contents.MemberDatasources = deserializeAws_restJson1MembershipDatasourcesList(data.MemberDatasources, context);
|
|
609
|
+
}
|
|
610
|
+
if (data.UnprocessedAccounts !== undefined && data.UnprocessedAccounts !== null) {
|
|
611
|
+
contents.UnprocessedAccounts = deserializeAws_restJson1UnprocessedAccountList(data.UnprocessedAccounts, context);
|
|
612
|
+
}
|
|
613
|
+
return Promise.resolve(contents);
|
|
614
|
+
};
|
|
615
|
+
exports.deserializeAws_restJson1BatchGetGraphMemberDatasourcesCommand = deserializeAws_restJson1BatchGetGraphMemberDatasourcesCommand;
|
|
616
|
+
const deserializeAws_restJson1BatchGetGraphMemberDatasourcesCommandError = async (output, context) => {
|
|
617
|
+
const parsedOutput = {
|
|
618
|
+
...output,
|
|
619
|
+
body: await parseBody(output.body, context),
|
|
620
|
+
};
|
|
621
|
+
let response;
|
|
622
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
623
|
+
switch (errorCode) {
|
|
624
|
+
case "InternalServerException":
|
|
625
|
+
case "com.amazonaws.detective#InternalServerException":
|
|
626
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
627
|
+
case "ResourceNotFoundException":
|
|
628
|
+
case "com.amazonaws.detective#ResourceNotFoundException":
|
|
629
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
630
|
+
case "ValidationException":
|
|
631
|
+
case "com.amazonaws.detective#ValidationException":
|
|
632
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
633
|
+
default:
|
|
634
|
+
const parsedBody = parsedOutput.body;
|
|
635
|
+
const $metadata = deserializeMetadata(output);
|
|
636
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
637
|
+
response = new DetectiveServiceException_1.DetectiveServiceException({
|
|
638
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
639
|
+
$fault: "client",
|
|
640
|
+
$metadata,
|
|
641
|
+
});
|
|
642
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
643
|
+
}
|
|
644
|
+
};
|
|
645
|
+
const deserializeAws_restJson1BatchGetMembershipDatasourcesCommand = async (output, context) => {
|
|
646
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
647
|
+
return deserializeAws_restJson1BatchGetMembershipDatasourcesCommandError(output, context);
|
|
648
|
+
}
|
|
649
|
+
const contents = {
|
|
650
|
+
$metadata: deserializeMetadata(output),
|
|
651
|
+
MembershipDatasources: undefined,
|
|
652
|
+
UnprocessedGraphs: undefined,
|
|
653
|
+
};
|
|
654
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
655
|
+
if (data.MembershipDatasources !== undefined && data.MembershipDatasources !== null) {
|
|
656
|
+
contents.MembershipDatasources = deserializeAws_restJson1MembershipDatasourcesList(data.MembershipDatasources, context);
|
|
657
|
+
}
|
|
658
|
+
if (data.UnprocessedGraphs !== undefined && data.UnprocessedGraphs !== null) {
|
|
659
|
+
contents.UnprocessedGraphs = deserializeAws_restJson1UnprocessedGraphList(data.UnprocessedGraphs, context);
|
|
660
|
+
}
|
|
661
|
+
return Promise.resolve(contents);
|
|
662
|
+
};
|
|
663
|
+
exports.deserializeAws_restJson1BatchGetMembershipDatasourcesCommand = deserializeAws_restJson1BatchGetMembershipDatasourcesCommand;
|
|
664
|
+
const deserializeAws_restJson1BatchGetMembershipDatasourcesCommandError = async (output, context) => {
|
|
665
|
+
const parsedOutput = {
|
|
666
|
+
...output,
|
|
667
|
+
body: await parseBody(output.body, context),
|
|
668
|
+
};
|
|
669
|
+
let response;
|
|
670
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
671
|
+
switch (errorCode) {
|
|
672
|
+
case "InternalServerException":
|
|
673
|
+
case "com.amazonaws.detective#InternalServerException":
|
|
674
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
675
|
+
case "ResourceNotFoundException":
|
|
676
|
+
case "com.amazonaws.detective#ResourceNotFoundException":
|
|
677
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
678
|
+
case "ValidationException":
|
|
679
|
+
case "com.amazonaws.detective#ValidationException":
|
|
680
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
681
|
+
default:
|
|
682
|
+
const parsedBody = parsedOutput.body;
|
|
683
|
+
const $metadata = deserializeMetadata(output);
|
|
684
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
685
|
+
response = new DetectiveServiceException_1.DetectiveServiceException({
|
|
686
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
687
|
+
$fault: "client",
|
|
688
|
+
$metadata,
|
|
689
|
+
});
|
|
690
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
691
|
+
}
|
|
692
|
+
};
|
|
505
693
|
const deserializeAws_restJson1CreateGraphCommand = async (output, context) => {
|
|
506
694
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
507
695
|
return deserializeAws_restJson1CreateGraphCommandError(output, context);
|
|
@@ -903,6 +1091,54 @@ const deserializeAws_restJson1GetMembersCommandError = async (output, context) =
|
|
|
903
1091
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
904
1092
|
}
|
|
905
1093
|
};
|
|
1094
|
+
const deserializeAws_restJson1ListDatasourcePackagesCommand = async (output, context) => {
|
|
1095
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1096
|
+
return deserializeAws_restJson1ListDatasourcePackagesCommandError(output, context);
|
|
1097
|
+
}
|
|
1098
|
+
const contents = {
|
|
1099
|
+
$metadata: deserializeMetadata(output),
|
|
1100
|
+
DatasourcePackages: undefined,
|
|
1101
|
+
NextToken: undefined,
|
|
1102
|
+
};
|
|
1103
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1104
|
+
if (data.DatasourcePackages !== undefined && data.DatasourcePackages !== null) {
|
|
1105
|
+
contents.DatasourcePackages = deserializeAws_restJson1DatasourcePackageIngestDetails(data.DatasourcePackages, context);
|
|
1106
|
+
}
|
|
1107
|
+
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
1108
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
1109
|
+
}
|
|
1110
|
+
return Promise.resolve(contents);
|
|
1111
|
+
};
|
|
1112
|
+
exports.deserializeAws_restJson1ListDatasourcePackagesCommand = deserializeAws_restJson1ListDatasourcePackagesCommand;
|
|
1113
|
+
const deserializeAws_restJson1ListDatasourcePackagesCommandError = async (output, context) => {
|
|
1114
|
+
const parsedOutput = {
|
|
1115
|
+
...output,
|
|
1116
|
+
body: await parseBody(output.body, context),
|
|
1117
|
+
};
|
|
1118
|
+
let response;
|
|
1119
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1120
|
+
switch (errorCode) {
|
|
1121
|
+
case "InternalServerException":
|
|
1122
|
+
case "com.amazonaws.detective#InternalServerException":
|
|
1123
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1124
|
+
case "ResourceNotFoundException":
|
|
1125
|
+
case "com.amazonaws.detective#ResourceNotFoundException":
|
|
1126
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1127
|
+
case "ValidationException":
|
|
1128
|
+
case "com.amazonaws.detective#ValidationException":
|
|
1129
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1130
|
+
default:
|
|
1131
|
+
const parsedBody = parsedOutput.body;
|
|
1132
|
+
const $metadata = deserializeMetadata(output);
|
|
1133
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1134
|
+
response = new DetectiveServiceException_1.DetectiveServiceException({
|
|
1135
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1136
|
+
$fault: "client",
|
|
1137
|
+
$metadata,
|
|
1138
|
+
});
|
|
1139
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1140
|
+
}
|
|
1141
|
+
};
|
|
906
1142
|
const deserializeAws_restJson1ListGraphsCommand = async (output, context) => {
|
|
907
1143
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
908
1144
|
return deserializeAws_restJson1ListGraphsCommandError(output, context);
|
|
@@ -1302,6 +1538,49 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1302
1538
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1303
1539
|
}
|
|
1304
1540
|
};
|
|
1541
|
+
const deserializeAws_restJson1UpdateDatasourcePackagesCommand = async (output, context) => {
|
|
1542
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1543
|
+
return deserializeAws_restJson1UpdateDatasourcePackagesCommandError(output, context);
|
|
1544
|
+
}
|
|
1545
|
+
const contents = {
|
|
1546
|
+
$metadata: deserializeMetadata(output),
|
|
1547
|
+
};
|
|
1548
|
+
await collectBody(output.body, context);
|
|
1549
|
+
return Promise.resolve(contents);
|
|
1550
|
+
};
|
|
1551
|
+
exports.deserializeAws_restJson1UpdateDatasourcePackagesCommand = deserializeAws_restJson1UpdateDatasourcePackagesCommand;
|
|
1552
|
+
const deserializeAws_restJson1UpdateDatasourcePackagesCommandError = async (output, context) => {
|
|
1553
|
+
const parsedOutput = {
|
|
1554
|
+
...output,
|
|
1555
|
+
body: await parseBody(output.body, context),
|
|
1556
|
+
};
|
|
1557
|
+
let response;
|
|
1558
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1559
|
+
switch (errorCode) {
|
|
1560
|
+
case "InternalServerException":
|
|
1561
|
+
case "com.amazonaws.detective#InternalServerException":
|
|
1562
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1563
|
+
case "ResourceNotFoundException":
|
|
1564
|
+
case "com.amazonaws.detective#ResourceNotFoundException":
|
|
1565
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1566
|
+
case "ServiceQuotaExceededException":
|
|
1567
|
+
case "com.amazonaws.detective#ServiceQuotaExceededException":
|
|
1568
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
1569
|
+
case "ValidationException":
|
|
1570
|
+
case "com.amazonaws.detective#ValidationException":
|
|
1571
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1572
|
+
default:
|
|
1573
|
+
const parsedBody = parsedOutput.body;
|
|
1574
|
+
const $metadata = deserializeMetadata(output);
|
|
1575
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1576
|
+
response = new DetectiveServiceException_1.DetectiveServiceException({
|
|
1577
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1578
|
+
$fault: "client",
|
|
1579
|
+
$metadata,
|
|
1580
|
+
});
|
|
1581
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1582
|
+
}
|
|
1583
|
+
};
|
|
1305
1584
|
const deserializeAws_restJson1UpdateOrganizationConfigurationCommand = async (output, context) => {
|
|
1306
1585
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1307
1586
|
return deserializeAws_restJson1UpdateOrganizationConfigurationCommandError(output, context);
|
|
@@ -1384,6 +1663,9 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
|
|
|
1384
1663
|
if (data.Message !== undefined && data.Message !== null) {
|
|
1385
1664
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
1386
1665
|
}
|
|
1666
|
+
if (data.Resources !== undefined && data.Resources !== null) {
|
|
1667
|
+
contents.Resources = deserializeAws_restJson1ResourceList(data.Resources, context);
|
|
1668
|
+
}
|
|
1387
1669
|
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
1388
1670
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1389
1671
|
...contents,
|
|
@@ -1405,6 +1687,12 @@ const deserializeAws_restJson1TooManyRequestsExceptionResponse = async (parsedOu
|
|
|
1405
1687
|
const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
|
|
1406
1688
|
const contents = {};
|
|
1407
1689
|
const data = parsedOutput.body;
|
|
1690
|
+
if (data.ErrorCode !== undefined && data.ErrorCode !== null) {
|
|
1691
|
+
contents.ErrorCode = (0, smithy_client_1.expectString)(data.ErrorCode);
|
|
1692
|
+
}
|
|
1693
|
+
if (data.ErrorCodeReason !== undefined && data.ErrorCodeReason !== null) {
|
|
1694
|
+
contents.ErrorCodeReason = (0, smithy_client_1.expectString)(data.ErrorCodeReason);
|
|
1695
|
+
}
|
|
1408
1696
|
if (data.Message !== undefined && data.Message !== null) {
|
|
1409
1697
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
1410
1698
|
}
|
|
@@ -1420,6 +1708,16 @@ const serializeAws_restJson1Account = (input, context) => {
|
|
|
1420
1708
|
...(input.EmailAddress != null && { EmailAddress: input.EmailAddress }),
|
|
1421
1709
|
};
|
|
1422
1710
|
};
|
|
1711
|
+
const serializeAws_restJson1AccountIdExtendedList = (input, context) => {
|
|
1712
|
+
return input
|
|
1713
|
+
.filter((e) => e != null)
|
|
1714
|
+
.map((entry) => {
|
|
1715
|
+
if (entry === null) {
|
|
1716
|
+
return null;
|
|
1717
|
+
}
|
|
1718
|
+
return entry;
|
|
1719
|
+
});
|
|
1720
|
+
};
|
|
1423
1721
|
const serializeAws_restJson1AccountIdList = (input, context) => {
|
|
1424
1722
|
return input
|
|
1425
1723
|
.filter((e) => e != null)
|
|
@@ -1440,6 +1738,26 @@ const serializeAws_restJson1AccountList = (input, context) => {
|
|
|
1440
1738
|
return serializeAws_restJson1Account(entry, context);
|
|
1441
1739
|
});
|
|
1442
1740
|
};
|
|
1741
|
+
const serializeAws_restJson1DatasourcePackageList = (input, context) => {
|
|
1742
|
+
return input
|
|
1743
|
+
.filter((e) => e != null)
|
|
1744
|
+
.map((entry) => {
|
|
1745
|
+
if (entry === null) {
|
|
1746
|
+
return null;
|
|
1747
|
+
}
|
|
1748
|
+
return entry;
|
|
1749
|
+
});
|
|
1750
|
+
};
|
|
1751
|
+
const serializeAws_restJson1GraphArnList = (input, context) => {
|
|
1752
|
+
return input
|
|
1753
|
+
.filter((e) => e != null)
|
|
1754
|
+
.map((entry) => {
|
|
1755
|
+
if (entry === null) {
|
|
1756
|
+
return null;
|
|
1757
|
+
}
|
|
1758
|
+
return entry;
|
|
1759
|
+
});
|
|
1760
|
+
};
|
|
1443
1761
|
const serializeAws_restJson1TagMap = (input, context) => {
|
|
1444
1762
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1445
1763
|
if (value === null) {
|
|
@@ -1480,6 +1798,55 @@ const deserializeAws_restJson1AdministratorList = (output, context) => {
|
|
|
1480
1798
|
});
|
|
1481
1799
|
return retVal;
|
|
1482
1800
|
};
|
|
1801
|
+
const deserializeAws_restJson1DatasourcePackageIngestDetail = (output, context) => {
|
|
1802
|
+
return {
|
|
1803
|
+
DatasourcePackageIngestState: (0, smithy_client_1.expectString)(output.DatasourcePackageIngestState),
|
|
1804
|
+
LastIngestStateChange: output.LastIngestStateChange != null
|
|
1805
|
+
? deserializeAws_restJson1LastIngestStateChangeDates(output.LastIngestStateChange, context)
|
|
1806
|
+
: undefined,
|
|
1807
|
+
};
|
|
1808
|
+
};
|
|
1809
|
+
const deserializeAws_restJson1DatasourcePackageIngestDetails = (output, context) => {
|
|
1810
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1811
|
+
if (value === null) {
|
|
1812
|
+
return acc;
|
|
1813
|
+
}
|
|
1814
|
+
return {
|
|
1815
|
+
...acc,
|
|
1816
|
+
[key]: deserializeAws_restJson1DatasourcePackageIngestDetail(value, context),
|
|
1817
|
+
};
|
|
1818
|
+
}, {});
|
|
1819
|
+
};
|
|
1820
|
+
const deserializeAws_restJson1DatasourcePackageIngestHistory = (output, context) => {
|
|
1821
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1822
|
+
if (value === null) {
|
|
1823
|
+
return acc;
|
|
1824
|
+
}
|
|
1825
|
+
return {
|
|
1826
|
+
...acc,
|
|
1827
|
+
[key]: deserializeAws_restJson1LastIngestStateChangeDates(value, context),
|
|
1828
|
+
};
|
|
1829
|
+
}, {});
|
|
1830
|
+
};
|
|
1831
|
+
const deserializeAws_restJson1DatasourcePackageIngestStates = (output, context) => {
|
|
1832
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1833
|
+
if (value === null) {
|
|
1834
|
+
return acc;
|
|
1835
|
+
}
|
|
1836
|
+
return {
|
|
1837
|
+
...acc,
|
|
1838
|
+
[key]: (0, smithy_client_1.expectString)(value),
|
|
1839
|
+
};
|
|
1840
|
+
}, {});
|
|
1841
|
+
};
|
|
1842
|
+
const deserializeAws_restJson1DatasourcePackageUsageInfo = (output, context) => {
|
|
1843
|
+
return {
|
|
1844
|
+
VolumeUsageInBytes: (0, smithy_client_1.expectLong)(output.VolumeUsageInBytes),
|
|
1845
|
+
VolumeUsageUpdateTime: output.VolumeUsageUpdateTime != null
|
|
1846
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.VolumeUsageUpdateTime))
|
|
1847
|
+
: undefined,
|
|
1848
|
+
};
|
|
1849
|
+
};
|
|
1483
1850
|
const deserializeAws_restJson1Graph = (output, context) => {
|
|
1484
1851
|
return {
|
|
1485
1852
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
@@ -1497,10 +1864,24 @@ const deserializeAws_restJson1GraphList = (output, context) => {
|
|
|
1497
1864
|
});
|
|
1498
1865
|
return retVal;
|
|
1499
1866
|
};
|
|
1867
|
+
const deserializeAws_restJson1LastIngestStateChangeDates = (output, context) => {
|
|
1868
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1869
|
+
if (value === null) {
|
|
1870
|
+
return acc;
|
|
1871
|
+
}
|
|
1872
|
+
return {
|
|
1873
|
+
...acc,
|
|
1874
|
+
[key]: deserializeAws_restJson1TimestampForCollection(value, context),
|
|
1875
|
+
};
|
|
1876
|
+
}, {});
|
|
1877
|
+
};
|
|
1500
1878
|
const deserializeAws_restJson1MemberDetail = (output, context) => {
|
|
1501
1879
|
return {
|
|
1502
1880
|
AccountId: (0, smithy_client_1.expectString)(output.AccountId),
|
|
1503
1881
|
AdministratorId: (0, smithy_client_1.expectString)(output.AdministratorId),
|
|
1882
|
+
DatasourcePackageIngestStates: output.DatasourcePackageIngestStates != null
|
|
1883
|
+
? deserializeAws_restJson1DatasourcePackageIngestStates(output.DatasourcePackageIngestStates, context)
|
|
1884
|
+
: undefined,
|
|
1504
1885
|
DisabledReason: (0, smithy_client_1.expectString)(output.DisabledReason),
|
|
1505
1886
|
EmailAddress: (0, smithy_client_1.expectString)(output.EmailAddress),
|
|
1506
1887
|
GraphArn: (0, smithy_client_1.expectString)(output.GraphArn),
|
|
@@ -1513,6 +1894,9 @@ const deserializeAws_restJson1MemberDetail = (output, context) => {
|
|
|
1513
1894
|
: undefined,
|
|
1514
1895
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
1515
1896
|
UpdatedTime: output.UpdatedTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdatedTime)) : undefined,
|
|
1897
|
+
VolumeUsageByDatasourcePackage: output.VolumeUsageByDatasourcePackage != null
|
|
1898
|
+
? deserializeAws_restJson1VolumeUsageByDatasourcePackage(output.VolumeUsageByDatasourcePackage, context)
|
|
1899
|
+
: undefined,
|
|
1516
1900
|
VolumeUsageInBytes: (0, smithy_client_1.expectLong)(output.VolumeUsageInBytes),
|
|
1517
1901
|
VolumeUsageUpdatedTime: output.VolumeUsageUpdatedTime != null
|
|
1518
1902
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.VolumeUsageUpdatedTime))
|
|
@@ -1530,6 +1914,37 @@ const deserializeAws_restJson1MemberDetailList = (output, context) => {
|
|
|
1530
1914
|
});
|
|
1531
1915
|
return retVal;
|
|
1532
1916
|
};
|
|
1917
|
+
const deserializeAws_restJson1MembershipDatasources = (output, context) => {
|
|
1918
|
+
return {
|
|
1919
|
+
AccountId: (0, smithy_client_1.expectString)(output.AccountId),
|
|
1920
|
+
DatasourcePackageIngestHistory: output.DatasourcePackageIngestHistory != null
|
|
1921
|
+
? deserializeAws_restJson1DatasourcePackageIngestHistory(output.DatasourcePackageIngestHistory, context)
|
|
1922
|
+
: undefined,
|
|
1923
|
+
GraphArn: (0, smithy_client_1.expectString)(output.GraphArn),
|
|
1924
|
+
};
|
|
1925
|
+
};
|
|
1926
|
+
const deserializeAws_restJson1MembershipDatasourcesList = (output, context) => {
|
|
1927
|
+
const retVal = (output || [])
|
|
1928
|
+
.filter((e) => e != null)
|
|
1929
|
+
.map((entry) => {
|
|
1930
|
+
if (entry === null) {
|
|
1931
|
+
return null;
|
|
1932
|
+
}
|
|
1933
|
+
return deserializeAws_restJson1MembershipDatasources(entry, context);
|
|
1934
|
+
});
|
|
1935
|
+
return retVal;
|
|
1936
|
+
};
|
|
1937
|
+
const deserializeAws_restJson1ResourceList = (output, context) => {
|
|
1938
|
+
const retVal = (output || [])
|
|
1939
|
+
.filter((e) => e != null)
|
|
1940
|
+
.map((entry) => {
|
|
1941
|
+
if (entry === null) {
|
|
1942
|
+
return null;
|
|
1943
|
+
}
|
|
1944
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
1945
|
+
});
|
|
1946
|
+
return retVal;
|
|
1947
|
+
};
|
|
1533
1948
|
const deserializeAws_restJson1TagMap = (output, context) => {
|
|
1534
1949
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1535
1950
|
if (value === null) {
|
|
@@ -1541,6 +1956,11 @@ const deserializeAws_restJson1TagMap = (output, context) => {
|
|
|
1541
1956
|
};
|
|
1542
1957
|
}, {});
|
|
1543
1958
|
};
|
|
1959
|
+
const deserializeAws_restJson1TimestampForCollection = (output, context) => {
|
|
1960
|
+
return {
|
|
1961
|
+
Timestamp: output.Timestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.Timestamp)) : undefined,
|
|
1962
|
+
};
|
|
1963
|
+
};
|
|
1544
1964
|
const deserializeAws_restJson1UnprocessedAccount = (output, context) => {
|
|
1545
1965
|
return {
|
|
1546
1966
|
AccountId: (0, smithy_client_1.expectString)(output.AccountId),
|
|
@@ -1558,6 +1978,34 @@ const deserializeAws_restJson1UnprocessedAccountList = (output, context) => {
|
|
|
1558
1978
|
});
|
|
1559
1979
|
return retVal;
|
|
1560
1980
|
};
|
|
1981
|
+
const deserializeAws_restJson1UnprocessedGraph = (output, context) => {
|
|
1982
|
+
return {
|
|
1983
|
+
GraphArn: (0, smithy_client_1.expectString)(output.GraphArn),
|
|
1984
|
+
Reason: (0, smithy_client_1.expectString)(output.Reason),
|
|
1985
|
+
};
|
|
1986
|
+
};
|
|
1987
|
+
const deserializeAws_restJson1UnprocessedGraphList = (output, context) => {
|
|
1988
|
+
const retVal = (output || [])
|
|
1989
|
+
.filter((e) => e != null)
|
|
1990
|
+
.map((entry) => {
|
|
1991
|
+
if (entry === null) {
|
|
1992
|
+
return null;
|
|
1993
|
+
}
|
|
1994
|
+
return deserializeAws_restJson1UnprocessedGraph(entry, context);
|
|
1995
|
+
});
|
|
1996
|
+
return retVal;
|
|
1997
|
+
};
|
|
1998
|
+
const deserializeAws_restJson1VolumeUsageByDatasourcePackage = (output, context) => {
|
|
1999
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2000
|
+
if (value === null) {
|
|
2001
|
+
return acc;
|
|
2002
|
+
}
|
|
2003
|
+
return {
|
|
2004
|
+
...acc,
|
|
2005
|
+
[key]: deserializeAws_restJson1DatasourcePackageUsageInfo(value, context),
|
|
2006
|
+
};
|
|
2007
|
+
}, {});
|
|
2008
|
+
};
|
|
1561
2009
|
const deserializeMetadata = (output) => {
|
|
1562
2010
|
var _a;
|
|
1563
2011
|
return ({
|
package/dist-es/Detective.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { AcceptInvitationCommand, } from "./commands/AcceptInvitationCommand";
|
|
3
|
+
import { BatchGetGraphMemberDatasourcesCommand, } from "./commands/BatchGetGraphMemberDatasourcesCommand";
|
|
4
|
+
import { BatchGetMembershipDatasourcesCommand, } from "./commands/BatchGetMembershipDatasourcesCommand";
|
|
3
5
|
import { CreateGraphCommand } from "./commands/CreateGraphCommand";
|
|
4
6
|
import { CreateMembersCommand, } from "./commands/CreateMembersCommand";
|
|
5
7
|
import { DeleteGraphCommand } from "./commands/DeleteGraphCommand";
|
|
@@ -9,6 +11,7 @@ import { DisableOrganizationAdminAccountCommand, } from "./commands/DisableOrgan
|
|
|
9
11
|
import { DisassociateMembershipCommand, } from "./commands/DisassociateMembershipCommand";
|
|
10
12
|
import { EnableOrganizationAdminAccountCommand, } from "./commands/EnableOrganizationAdminAccountCommand";
|
|
11
13
|
import { GetMembersCommand } from "./commands/GetMembersCommand";
|
|
14
|
+
import { ListDatasourcePackagesCommand, } from "./commands/ListDatasourcePackagesCommand";
|
|
12
15
|
import { ListGraphsCommand } from "./commands/ListGraphsCommand";
|
|
13
16
|
import { ListInvitationsCommand, } from "./commands/ListInvitationsCommand";
|
|
14
17
|
import { ListMembersCommand } from "./commands/ListMembersCommand";
|
|
@@ -18,6 +21,7 @@ import { RejectInvitationCommand, } from "./commands/RejectInvitationCommand";
|
|
|
18
21
|
import { StartMonitoringMemberCommand, } from "./commands/StartMonitoringMemberCommand";
|
|
19
22
|
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
20
23
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
24
|
+
import { UpdateDatasourcePackagesCommand, } from "./commands/UpdateDatasourcePackagesCommand";
|
|
21
25
|
import { UpdateOrganizationConfigurationCommand, } from "./commands/UpdateOrganizationConfigurationCommand";
|
|
22
26
|
import { DetectiveClient } from "./DetectiveClient";
|
|
23
27
|
var Detective = (function (_super) {
|
|
@@ -39,6 +43,34 @@ var Detective = (function (_super) {
|
|
|
39
43
|
return this.send(command, optionsOrCb);
|
|
40
44
|
}
|
|
41
45
|
};
|
|
46
|
+
Detective.prototype.batchGetGraphMemberDatasources = function (args, optionsOrCb, cb) {
|
|
47
|
+
var command = new BatchGetGraphMemberDatasourcesCommand(args);
|
|
48
|
+
if (typeof optionsOrCb === "function") {
|
|
49
|
+
this.send(command, optionsOrCb);
|
|
50
|
+
}
|
|
51
|
+
else if (typeof cb === "function") {
|
|
52
|
+
if (typeof optionsOrCb !== "object")
|
|
53
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
54
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
return this.send(command, optionsOrCb);
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
Detective.prototype.batchGetMembershipDatasources = function (args, optionsOrCb, cb) {
|
|
61
|
+
var command = new BatchGetMembershipDatasourcesCommand(args);
|
|
62
|
+
if (typeof optionsOrCb === "function") {
|
|
63
|
+
this.send(command, optionsOrCb);
|
|
64
|
+
}
|
|
65
|
+
else if (typeof cb === "function") {
|
|
66
|
+
if (typeof optionsOrCb !== "object")
|
|
67
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
68
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
69
|
+
}
|
|
70
|
+
else {
|
|
71
|
+
return this.send(command, optionsOrCb);
|
|
72
|
+
}
|
|
73
|
+
};
|
|
42
74
|
Detective.prototype.createGraph = function (args, optionsOrCb, cb) {
|
|
43
75
|
var command = new CreateGraphCommand(args);
|
|
44
76
|
if (typeof optionsOrCb === "function") {
|
|
@@ -165,6 +197,20 @@ var Detective = (function (_super) {
|
|
|
165
197
|
return this.send(command, optionsOrCb);
|
|
166
198
|
}
|
|
167
199
|
};
|
|
200
|
+
Detective.prototype.listDatasourcePackages = function (args, optionsOrCb, cb) {
|
|
201
|
+
var command = new ListDatasourcePackagesCommand(args);
|
|
202
|
+
if (typeof optionsOrCb === "function") {
|
|
203
|
+
this.send(command, optionsOrCb);
|
|
204
|
+
}
|
|
205
|
+
else if (typeof cb === "function") {
|
|
206
|
+
if (typeof optionsOrCb !== "object")
|
|
207
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
208
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
209
|
+
}
|
|
210
|
+
else {
|
|
211
|
+
return this.send(command, optionsOrCb);
|
|
212
|
+
}
|
|
213
|
+
};
|
|
168
214
|
Detective.prototype.listGraphs = function (args, optionsOrCb, cb) {
|
|
169
215
|
var command = new ListGraphsCommand(args);
|
|
170
216
|
if (typeof optionsOrCb === "function") {
|
|
@@ -291,6 +337,20 @@ var Detective = (function (_super) {
|
|
|
291
337
|
return this.send(command, optionsOrCb);
|
|
292
338
|
}
|
|
293
339
|
};
|
|
340
|
+
Detective.prototype.updateDatasourcePackages = function (args, optionsOrCb, cb) {
|
|
341
|
+
var command = new UpdateDatasourcePackagesCommand(args);
|
|
342
|
+
if (typeof optionsOrCb === "function") {
|
|
343
|
+
this.send(command, optionsOrCb);
|
|
344
|
+
}
|
|
345
|
+
else if (typeof cb === "function") {
|
|
346
|
+
if (typeof optionsOrCb !== "object")
|
|
347
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
348
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
349
|
+
}
|
|
350
|
+
else {
|
|
351
|
+
return this.send(command, optionsOrCb);
|
|
352
|
+
}
|
|
353
|
+
};
|
|
294
354
|
Detective.prototype.updateOrganizationConfiguration = function (args, optionsOrCb, cb) {
|
|
295
355
|
var command = new UpdateOrganizationConfigurationCommand(args);
|
|
296
356
|
if (typeof optionsOrCb === "function") {
|