@aws-sdk/client-cleanrooms 3.250.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/LICENSE +201 -0
- package/README.md +215 -0
- package/dist-cjs/CleanRooms.js +517 -0
- package/dist-cjs/CleanRoomsClient.js +40 -0
- package/dist-cjs/commands/BatchGetSchemaCommand.js +46 -0
- package/dist-cjs/commands/CreateCollaborationCommand.js +46 -0
- package/dist-cjs/commands/CreateConfiguredTableAnalysisRuleCommand.js +46 -0
- package/dist-cjs/commands/CreateConfiguredTableAssociationCommand.js +46 -0
- package/dist-cjs/commands/CreateConfiguredTableCommand.js +46 -0
- package/dist-cjs/commands/CreateMembershipCommand.js +46 -0
- package/dist-cjs/commands/DeleteCollaborationCommand.js +46 -0
- package/dist-cjs/commands/DeleteConfiguredTableAnalysisRuleCommand.js +46 -0
- package/dist-cjs/commands/DeleteConfiguredTableAssociationCommand.js +46 -0
- package/dist-cjs/commands/DeleteConfiguredTableCommand.js +46 -0
- package/dist-cjs/commands/DeleteMemberCommand.js +46 -0
- package/dist-cjs/commands/DeleteMembershipCommand.js +46 -0
- package/dist-cjs/commands/GetCollaborationCommand.js +46 -0
- package/dist-cjs/commands/GetConfiguredTableAnalysisRuleCommand.js +46 -0
- package/dist-cjs/commands/GetConfiguredTableAssociationCommand.js +46 -0
- package/dist-cjs/commands/GetConfiguredTableCommand.js +46 -0
- package/dist-cjs/commands/GetMembershipCommand.js +46 -0
- package/dist-cjs/commands/GetProtectedQueryCommand.js +46 -0
- package/dist-cjs/commands/GetSchemaAnalysisRuleCommand.js +46 -0
- package/dist-cjs/commands/GetSchemaCommand.js +46 -0
- package/dist-cjs/commands/ListCollaborationsCommand.js +46 -0
- package/dist-cjs/commands/ListConfiguredTableAssociationsCommand.js +46 -0
- package/dist-cjs/commands/ListConfiguredTablesCommand.js +46 -0
- package/dist-cjs/commands/ListMembersCommand.js +46 -0
- package/dist-cjs/commands/ListMembershipsCommand.js +46 -0
- package/dist-cjs/commands/ListProtectedQueriesCommand.js +46 -0
- package/dist-cjs/commands/ListSchemasCommand.js +46 -0
- package/dist-cjs/commands/StartProtectedQueryCommand.js +46 -0
- package/dist-cjs/commands/UpdateCollaborationCommand.js +46 -0
- package/dist-cjs/commands/UpdateConfiguredTableAnalysisRuleCommand.js +46 -0
- package/dist-cjs/commands/UpdateConfiguredTableAssociationCommand.js +46 -0
- package/dist-cjs/commands/UpdateConfiguredTableCommand.js +46 -0
- package/dist-cjs/commands/UpdateMembershipCommand.js +46 -0
- package/dist-cjs/commands/UpdateProtectedQueryCommand.js +46 -0
- package/dist-cjs/commands/index.js +37 -0
- package/dist-cjs/endpoint/EndpointParameters.js +12 -0
- package/dist-cjs/endpoint/endpointResolver.js +12 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/index.js +11 -0
- package/dist-cjs/models/CleanRoomsServiceException.js +11 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +782 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListCollaborationsPaginator.js +36 -0
- package/dist-cjs/pagination/ListConfiguredTableAssociationsPaginator.js +36 -0
- package/dist-cjs/pagination/ListConfiguredTablesPaginator.js +36 -0
- package/dist-cjs/pagination/ListMembersPaginator.js +36 -0
- package/dist-cjs/pagination/ListMembershipsPaginator.js +36 -0
- package/dist-cjs/pagination/ListProtectedQueriesPaginator.js +36 -0
- package/dist-cjs/pagination/ListSchemasPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +11 -0
- package/dist-cjs/protocols/Aws_restJson1.js +3336 -0
- package/dist-cjs/runtimeConfig.browser.js +42 -0
- package/dist-cjs/runtimeConfig.js +51 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +18 -0
- package/dist-es/CleanRooms.js +513 -0
- package/dist-es/CleanRoomsClient.js +36 -0
- package/dist-es/commands/BatchGetSchemaCommand.js +42 -0
- package/dist-es/commands/CreateCollaborationCommand.js +42 -0
- package/dist-es/commands/CreateConfiguredTableAnalysisRuleCommand.js +42 -0
- package/dist-es/commands/CreateConfiguredTableAssociationCommand.js +42 -0
- package/dist-es/commands/CreateConfiguredTableCommand.js +42 -0
- package/dist-es/commands/CreateMembershipCommand.js +42 -0
- package/dist-es/commands/DeleteCollaborationCommand.js +42 -0
- package/dist-es/commands/DeleteConfiguredTableAnalysisRuleCommand.js +42 -0
- package/dist-es/commands/DeleteConfiguredTableAssociationCommand.js +42 -0
- package/dist-es/commands/DeleteConfiguredTableCommand.js +42 -0
- package/dist-es/commands/DeleteMemberCommand.js +42 -0
- package/dist-es/commands/DeleteMembershipCommand.js +42 -0
- package/dist-es/commands/GetCollaborationCommand.js +42 -0
- package/dist-es/commands/GetConfiguredTableAnalysisRuleCommand.js +42 -0
- package/dist-es/commands/GetConfiguredTableAssociationCommand.js +42 -0
- package/dist-es/commands/GetConfiguredTableCommand.js +42 -0
- package/dist-es/commands/GetMembershipCommand.js +42 -0
- package/dist-es/commands/GetProtectedQueryCommand.js +42 -0
- package/dist-es/commands/GetSchemaAnalysisRuleCommand.js +42 -0
- package/dist-es/commands/GetSchemaCommand.js +42 -0
- package/dist-es/commands/ListCollaborationsCommand.js +42 -0
- package/dist-es/commands/ListConfiguredTableAssociationsCommand.js +42 -0
- package/dist-es/commands/ListConfiguredTablesCommand.js +42 -0
- package/dist-es/commands/ListMembersCommand.js +42 -0
- package/dist-es/commands/ListMembershipsCommand.js +42 -0
- package/dist-es/commands/ListProtectedQueriesCommand.js +42 -0
- package/dist-es/commands/ListSchemasCommand.js +42 -0
- package/dist-es/commands/StartProtectedQueryCommand.js +42 -0
- package/dist-es/commands/UpdateCollaborationCommand.js +42 -0
- package/dist-es/commands/UpdateConfiguredTableAnalysisRuleCommand.js +42 -0
- package/dist-es/commands/UpdateConfiguredTableAssociationCommand.js +42 -0
- package/dist-es/commands/UpdateConfiguredTableCommand.js +42 -0
- package/dist-es/commands/UpdateMembershipCommand.js +42 -0
- package/dist-es/commands/UpdateProtectedQueryCommand.js +42 -0
- package/dist-es/commands/index.js +34 -0
- package/dist-es/endpoint/EndpointParameters.js +8 -0
- package/dist-es/endpoint/endpointResolver.js +8 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/index.js +6 -0
- package/dist-es/models/CleanRoomsServiceException.js +7 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +663 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListCollaborationsPaginator.js +32 -0
- package/dist-es/pagination/ListConfiguredTableAssociationsPaginator.js +32 -0
- package/dist-es/pagination/ListConfiguredTablesPaginator.js +32 -0
- package/dist-es/pagination/ListMembersPaginator.js +32 -0
- package/dist-es/pagination/ListMembershipsPaginator.js +32 -0
- package/dist-es/pagination/ListProtectedQueriesPaginator.js +32 -0
- package/dist-es/pagination/ListSchemasPaginator.js +32 -0
- package/dist-es/pagination/index.js +8 -0
- package/dist-es/protocols/Aws_restJson1.js +3264 -0
- package/dist-es/runtimeConfig.browser.js +37 -0
- package/dist-es/runtimeConfig.js +46 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +14 -0
- package/dist-types/CleanRooms.d.ts +260 -0
- package/dist-types/CleanRoomsClient.d.ts +185 -0
- package/dist-types/commands/BatchGetSchemaCommand.d.ts +37 -0
- package/dist-types/commands/CreateCollaborationCommand.d.ts +37 -0
- package/dist-types/commands/CreateConfiguredTableAnalysisRuleCommand.d.ts +38 -0
- package/dist-types/commands/CreateConfiguredTableAssociationCommand.d.ts +38 -0
- package/dist-types/commands/CreateConfiguredTableCommand.d.ts +37 -0
- package/dist-types/commands/CreateMembershipCommand.d.ts +38 -0
- package/dist-types/commands/DeleteCollaborationCommand.d.ts +37 -0
- package/dist-types/commands/DeleteConfiguredTableAnalysisRuleCommand.d.ts +37 -0
- package/dist-types/commands/DeleteConfiguredTableAssociationCommand.d.ts +37 -0
- package/dist-types/commands/DeleteConfiguredTableCommand.d.ts +37 -0
- package/dist-types/commands/DeleteMemberCommand.d.ts +39 -0
- package/dist-types/commands/DeleteMembershipCommand.d.ts +37 -0
- package/dist-types/commands/GetCollaborationCommand.d.ts +37 -0
- package/dist-types/commands/GetConfiguredTableAnalysisRuleCommand.d.ts +37 -0
- package/dist-types/commands/GetConfiguredTableAssociationCommand.d.ts +37 -0
- package/dist-types/commands/GetConfiguredTableCommand.d.ts +37 -0
- package/dist-types/commands/GetMembershipCommand.d.ts +37 -0
- package/dist-types/commands/GetProtectedQueryCommand.d.ts +37 -0
- package/dist-types/commands/GetSchemaAnalysisRuleCommand.d.ts +37 -0
- package/dist-types/commands/GetSchemaCommand.d.ts +37 -0
- package/dist-types/commands/ListCollaborationsCommand.d.ts +37 -0
- package/dist-types/commands/ListConfiguredTableAssociationsCommand.d.ts +37 -0
- package/dist-types/commands/ListConfiguredTablesCommand.d.ts +37 -0
- package/dist-types/commands/ListMembersCommand.d.ts +37 -0
- package/dist-types/commands/ListMembershipsCommand.d.ts +37 -0
- package/dist-types/commands/ListProtectedQueriesCommand.d.ts +37 -0
- package/dist-types/commands/ListSchemasCommand.d.ts +37 -0
- package/dist-types/commands/StartProtectedQueryCommand.d.ts +37 -0
- package/dist-types/commands/UpdateCollaborationCommand.d.ts +37 -0
- package/dist-types/commands/UpdateConfiguredTableAnalysisRuleCommand.d.ts +37 -0
- package/dist-types/commands/UpdateConfiguredTableAssociationCommand.d.ts +37 -0
- package/dist-types/commands/UpdateConfiguredTableCommand.d.ts +37 -0
- package/dist-types/commands/UpdateMembershipCommand.d.ts +37 -0
- package/dist-types/commands/UpdateProtectedQueryCommand.d.ts +37 -0
- package/dist-types/commands/index.d.ts +34 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +19 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/index.d.ts +6 -0
- package/dist-types/models/CleanRoomsServiceException.d.ts +10 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +2382 -0
- package/dist-types/pagination/Interfaces.d.ts +6 -0
- package/dist-types/pagination/ListCollaborationsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListConfiguredTableAssociationsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListConfiguredTablesPaginator.d.ts +4 -0
- package/dist-types/pagination/ListMembersPaginator.d.ts +4 -0
- package/dist-types/pagination/ListMembershipsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListProtectedQueriesPaginator.d.ts +4 -0
- package/dist-types/pagination/ListSchemasPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +8 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +104 -0
- package/dist-types/runtimeConfig.browser.d.ts +42 -0
- package/dist-types/runtimeConfig.d.ts +42 -0
- package/dist-types/runtimeConfig.native.d.ts +41 -0
- package/dist-types/runtimeConfig.shared.d.ts +16 -0
- package/dist-types/ts3.4/CleanRooms.d.ts +600 -0
- package/dist-types/ts3.4/CleanRoomsClient.d.ts +315 -0
- package/dist-types/ts3.4/commands/BatchGetSchemaCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/CreateCollaborationCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/CreateConfiguredTableAnalysisRuleCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/CreateConfiguredTableAssociationCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/CreateConfiguredTableCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/CreateMembershipCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/DeleteCollaborationCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteConfiguredTableAnalysisRuleCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DeleteConfiguredTableAssociationCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DeleteConfiguredTableCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DeleteMemberCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/DeleteMembershipCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/GetCollaborationCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/GetConfiguredTableAnalysisRuleCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/GetConfiguredTableAssociationCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/GetConfiguredTableCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetMembershipCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/GetProtectedQueryCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/GetSchemaAnalysisRuleCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/GetSchemaCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/ListCollaborationsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListConfiguredTableAssociationsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListConfiguredTablesCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListMembersCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/ListMembershipsCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/ListProtectedQueriesCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListSchemasCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/StartProtectedQueryCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateCollaborationCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateConfiguredTableAnalysisRuleCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/UpdateConfiguredTableAssociationCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/UpdateConfiguredTableCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/UpdateMembershipCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/UpdateProtectedQueryCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +34 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +34 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +6 -0
- package/dist-types/ts3.4/models/CleanRoomsServiceException.d.ts +7 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +1131 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +7 -0
- package/dist-types/ts3.4/pagination/ListCollaborationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListConfiguredTableAssociationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListConfiguredTablesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListMembersPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListMembershipsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListProtectedQueriesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListSchemasPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +8 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +413 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +91 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +91 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +80 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +16 -0
- package/package.json +103 -0
|
@@ -0,0 +1,3264 @@
|
|
|
1
|
+
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
+
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, limitedParseDouble as __limitedParseDouble, map as __map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { CleanRoomsServiceException as __BaseException } from "../models/CleanRoomsServiceException";
|
|
4
|
+
import { AccessDeniedException, ConfiguredTableAnalysisRulePolicy, ConfiguredTableAnalysisRulePolicyV1, ConflictException, InternalServerException, ProtectedQueryOutputConfiguration, ResourceNotFoundException, ServiceQuotaExceededException, TableReference, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
5
|
+
export const serializeAws_restJson1BatchGetSchemaCommand = async (input, context) => {
|
|
6
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
7
|
+
const headers = {
|
|
8
|
+
"content-type": "application/json",
|
|
9
|
+
};
|
|
10
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
11
|
+
"/collaborations/{collaborationIdentifier}/batch-schema";
|
|
12
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "collaborationIdentifier", () => input.collaborationIdentifier, "{collaborationIdentifier}", false);
|
|
13
|
+
let body;
|
|
14
|
+
body = JSON.stringify({
|
|
15
|
+
...(input.names != null && { names: serializeAws_restJson1TableAliasList(input.names, context) }),
|
|
16
|
+
});
|
|
17
|
+
return new __HttpRequest({
|
|
18
|
+
protocol,
|
|
19
|
+
hostname,
|
|
20
|
+
port,
|
|
21
|
+
method: "POST",
|
|
22
|
+
headers,
|
|
23
|
+
path: resolvedPath,
|
|
24
|
+
body,
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
export const serializeAws_restJson1CreateCollaborationCommand = async (input, context) => {
|
|
28
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
29
|
+
const headers = {
|
|
30
|
+
"content-type": "application/json",
|
|
31
|
+
};
|
|
32
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/collaborations";
|
|
33
|
+
let body;
|
|
34
|
+
body = JSON.stringify({
|
|
35
|
+
...(input.creatorDisplayName != null && { creatorDisplayName: input.creatorDisplayName }),
|
|
36
|
+
...(input.creatorMemberAbilities != null && {
|
|
37
|
+
creatorMemberAbilities: serializeAws_restJson1MemberAbilities(input.creatorMemberAbilities, context),
|
|
38
|
+
}),
|
|
39
|
+
...(input.dataEncryptionMetadata != null && {
|
|
40
|
+
dataEncryptionMetadata: serializeAws_restJson1DataEncryptionMetadata(input.dataEncryptionMetadata, context),
|
|
41
|
+
}),
|
|
42
|
+
...(input.description != null && { description: input.description }),
|
|
43
|
+
...(input.members != null && { members: serializeAws_restJson1MemberList(input.members, context) }),
|
|
44
|
+
...(input.name != null && { name: input.name }),
|
|
45
|
+
...(input.queryLogStatus != null && { queryLogStatus: input.queryLogStatus }),
|
|
46
|
+
});
|
|
47
|
+
return new __HttpRequest({
|
|
48
|
+
protocol,
|
|
49
|
+
hostname,
|
|
50
|
+
port,
|
|
51
|
+
method: "POST",
|
|
52
|
+
headers,
|
|
53
|
+
path: resolvedPath,
|
|
54
|
+
body,
|
|
55
|
+
});
|
|
56
|
+
};
|
|
57
|
+
export const serializeAws_restJson1CreateConfiguredTableCommand = async (input, context) => {
|
|
58
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
59
|
+
const headers = {
|
|
60
|
+
"content-type": "application/json",
|
|
61
|
+
};
|
|
62
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configuredTables";
|
|
63
|
+
let body;
|
|
64
|
+
body = JSON.stringify({
|
|
65
|
+
...(input.allowedColumns != null && {
|
|
66
|
+
allowedColumns: serializeAws_restJson1AllowedColumnList(input.allowedColumns, context),
|
|
67
|
+
}),
|
|
68
|
+
...(input.analysisMethod != null && { analysisMethod: input.analysisMethod }),
|
|
69
|
+
...(input.description != null && { description: input.description }),
|
|
70
|
+
...(input.name != null && { name: input.name }),
|
|
71
|
+
...(input.tableReference != null && {
|
|
72
|
+
tableReference: serializeAws_restJson1TableReference(input.tableReference, context),
|
|
73
|
+
}),
|
|
74
|
+
});
|
|
75
|
+
return new __HttpRequest({
|
|
76
|
+
protocol,
|
|
77
|
+
hostname,
|
|
78
|
+
port,
|
|
79
|
+
method: "POST",
|
|
80
|
+
headers,
|
|
81
|
+
path: resolvedPath,
|
|
82
|
+
body,
|
|
83
|
+
});
|
|
84
|
+
};
|
|
85
|
+
export const serializeAws_restJson1CreateConfiguredTableAnalysisRuleCommand = async (input, context) => {
|
|
86
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
87
|
+
const headers = {
|
|
88
|
+
"content-type": "application/json",
|
|
89
|
+
};
|
|
90
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
91
|
+
"/configuredTables/{configuredTableIdentifier}/analysisRule";
|
|
92
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "configuredTableIdentifier", () => input.configuredTableIdentifier, "{configuredTableIdentifier}", false);
|
|
93
|
+
let body;
|
|
94
|
+
body = JSON.stringify({
|
|
95
|
+
...(input.analysisRulePolicy != null && {
|
|
96
|
+
analysisRulePolicy: serializeAws_restJson1ConfiguredTableAnalysisRulePolicy(input.analysisRulePolicy, context),
|
|
97
|
+
}),
|
|
98
|
+
...(input.analysisRuleType != null && { analysisRuleType: input.analysisRuleType }),
|
|
99
|
+
});
|
|
100
|
+
return new __HttpRequest({
|
|
101
|
+
protocol,
|
|
102
|
+
hostname,
|
|
103
|
+
port,
|
|
104
|
+
method: "POST",
|
|
105
|
+
headers,
|
|
106
|
+
path: resolvedPath,
|
|
107
|
+
body,
|
|
108
|
+
});
|
|
109
|
+
};
|
|
110
|
+
export const serializeAws_restJson1CreateConfiguredTableAssociationCommand = async (input, context) => {
|
|
111
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
112
|
+
const headers = {
|
|
113
|
+
"content-type": "application/json",
|
|
114
|
+
};
|
|
115
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
116
|
+
"/memberships/{membershipIdentifier}/configuredTableAssociations";
|
|
117
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
|
|
118
|
+
let body;
|
|
119
|
+
body = JSON.stringify({
|
|
120
|
+
...(input.configuredTableIdentifier != null && { configuredTableIdentifier: input.configuredTableIdentifier }),
|
|
121
|
+
...(input.description != null && { description: input.description }),
|
|
122
|
+
...(input.name != null && { name: input.name }),
|
|
123
|
+
...(input.roleArn != null && { roleArn: input.roleArn }),
|
|
124
|
+
});
|
|
125
|
+
return new __HttpRequest({
|
|
126
|
+
protocol,
|
|
127
|
+
hostname,
|
|
128
|
+
port,
|
|
129
|
+
method: "POST",
|
|
130
|
+
headers,
|
|
131
|
+
path: resolvedPath,
|
|
132
|
+
body,
|
|
133
|
+
});
|
|
134
|
+
};
|
|
135
|
+
export const serializeAws_restJson1CreateMembershipCommand = async (input, context) => {
|
|
136
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
137
|
+
const headers = {
|
|
138
|
+
"content-type": "application/json",
|
|
139
|
+
};
|
|
140
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/memberships";
|
|
141
|
+
let body;
|
|
142
|
+
body = JSON.stringify({
|
|
143
|
+
...(input.collaborationIdentifier != null && { collaborationIdentifier: input.collaborationIdentifier }),
|
|
144
|
+
...(input.queryLogStatus != null && { queryLogStatus: input.queryLogStatus }),
|
|
145
|
+
});
|
|
146
|
+
return new __HttpRequest({
|
|
147
|
+
protocol,
|
|
148
|
+
hostname,
|
|
149
|
+
port,
|
|
150
|
+
method: "POST",
|
|
151
|
+
headers,
|
|
152
|
+
path: resolvedPath,
|
|
153
|
+
body,
|
|
154
|
+
});
|
|
155
|
+
};
|
|
156
|
+
export const serializeAws_restJson1DeleteCollaborationCommand = async (input, context) => {
|
|
157
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
158
|
+
const headers = {};
|
|
159
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/collaborations/{collaborationIdentifier}";
|
|
160
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "collaborationIdentifier", () => input.collaborationIdentifier, "{collaborationIdentifier}", false);
|
|
161
|
+
let body;
|
|
162
|
+
return new __HttpRequest({
|
|
163
|
+
protocol,
|
|
164
|
+
hostname,
|
|
165
|
+
port,
|
|
166
|
+
method: "DELETE",
|
|
167
|
+
headers,
|
|
168
|
+
path: resolvedPath,
|
|
169
|
+
body,
|
|
170
|
+
});
|
|
171
|
+
};
|
|
172
|
+
export const serializeAws_restJson1DeleteConfiguredTableCommand = async (input, context) => {
|
|
173
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
174
|
+
const headers = {};
|
|
175
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
176
|
+
"/configuredTables/{configuredTableIdentifier}";
|
|
177
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "configuredTableIdentifier", () => input.configuredTableIdentifier, "{configuredTableIdentifier}", false);
|
|
178
|
+
let body;
|
|
179
|
+
return new __HttpRequest({
|
|
180
|
+
protocol,
|
|
181
|
+
hostname,
|
|
182
|
+
port,
|
|
183
|
+
method: "DELETE",
|
|
184
|
+
headers,
|
|
185
|
+
path: resolvedPath,
|
|
186
|
+
body,
|
|
187
|
+
});
|
|
188
|
+
};
|
|
189
|
+
export const serializeAws_restJson1DeleteConfiguredTableAnalysisRuleCommand = async (input, context) => {
|
|
190
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
191
|
+
const headers = {};
|
|
192
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
193
|
+
"/configuredTables/{configuredTableIdentifier}/analysisRule/{analysisRuleType}";
|
|
194
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "configuredTableIdentifier", () => input.configuredTableIdentifier, "{configuredTableIdentifier}", false);
|
|
195
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "analysisRuleType", () => input.analysisRuleType, "{analysisRuleType}", false);
|
|
196
|
+
let body;
|
|
197
|
+
return new __HttpRequest({
|
|
198
|
+
protocol,
|
|
199
|
+
hostname,
|
|
200
|
+
port,
|
|
201
|
+
method: "DELETE",
|
|
202
|
+
headers,
|
|
203
|
+
path: resolvedPath,
|
|
204
|
+
body,
|
|
205
|
+
});
|
|
206
|
+
};
|
|
207
|
+
export const serializeAws_restJson1DeleteConfiguredTableAssociationCommand = async (input, context) => {
|
|
208
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
209
|
+
const headers = {};
|
|
210
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
211
|
+
"/memberships/{membershipIdentifier}/configuredTableAssociations/{configuredTableAssociationIdentifier}";
|
|
212
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "configuredTableAssociationIdentifier", () => input.configuredTableAssociationIdentifier, "{configuredTableAssociationIdentifier}", false);
|
|
213
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
|
|
214
|
+
let body;
|
|
215
|
+
return new __HttpRequest({
|
|
216
|
+
protocol,
|
|
217
|
+
hostname,
|
|
218
|
+
port,
|
|
219
|
+
method: "DELETE",
|
|
220
|
+
headers,
|
|
221
|
+
path: resolvedPath,
|
|
222
|
+
body,
|
|
223
|
+
});
|
|
224
|
+
};
|
|
225
|
+
export const serializeAws_restJson1DeleteMemberCommand = async (input, context) => {
|
|
226
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
227
|
+
const headers = {};
|
|
228
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
229
|
+
"/collaborations/{collaborationIdentifier}/member/{accountId}";
|
|
230
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "collaborationIdentifier", () => input.collaborationIdentifier, "{collaborationIdentifier}", false);
|
|
231
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "accountId", () => input.accountId, "{accountId}", false);
|
|
232
|
+
let body;
|
|
233
|
+
return new __HttpRequest({
|
|
234
|
+
protocol,
|
|
235
|
+
hostname,
|
|
236
|
+
port,
|
|
237
|
+
method: "DELETE",
|
|
238
|
+
headers,
|
|
239
|
+
path: resolvedPath,
|
|
240
|
+
body,
|
|
241
|
+
});
|
|
242
|
+
};
|
|
243
|
+
export const serializeAws_restJson1DeleteMembershipCommand = async (input, context) => {
|
|
244
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
245
|
+
const headers = {};
|
|
246
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/memberships/{membershipIdentifier}";
|
|
247
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
|
|
248
|
+
let body;
|
|
249
|
+
return new __HttpRequest({
|
|
250
|
+
protocol,
|
|
251
|
+
hostname,
|
|
252
|
+
port,
|
|
253
|
+
method: "DELETE",
|
|
254
|
+
headers,
|
|
255
|
+
path: resolvedPath,
|
|
256
|
+
body,
|
|
257
|
+
});
|
|
258
|
+
};
|
|
259
|
+
export const serializeAws_restJson1GetCollaborationCommand = async (input, context) => {
|
|
260
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
261
|
+
const headers = {};
|
|
262
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/collaborations/{collaborationIdentifier}";
|
|
263
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "collaborationIdentifier", () => input.collaborationIdentifier, "{collaborationIdentifier}", false);
|
|
264
|
+
let body;
|
|
265
|
+
return new __HttpRequest({
|
|
266
|
+
protocol,
|
|
267
|
+
hostname,
|
|
268
|
+
port,
|
|
269
|
+
method: "GET",
|
|
270
|
+
headers,
|
|
271
|
+
path: resolvedPath,
|
|
272
|
+
body,
|
|
273
|
+
});
|
|
274
|
+
};
|
|
275
|
+
export const serializeAws_restJson1GetConfiguredTableCommand = async (input, context) => {
|
|
276
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
277
|
+
const headers = {};
|
|
278
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
279
|
+
"/configuredTables/{configuredTableIdentifier}";
|
|
280
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "configuredTableIdentifier", () => input.configuredTableIdentifier, "{configuredTableIdentifier}", false);
|
|
281
|
+
let body;
|
|
282
|
+
return new __HttpRequest({
|
|
283
|
+
protocol,
|
|
284
|
+
hostname,
|
|
285
|
+
port,
|
|
286
|
+
method: "GET",
|
|
287
|
+
headers,
|
|
288
|
+
path: resolvedPath,
|
|
289
|
+
body,
|
|
290
|
+
});
|
|
291
|
+
};
|
|
292
|
+
export const serializeAws_restJson1GetConfiguredTableAnalysisRuleCommand = async (input, context) => {
|
|
293
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
294
|
+
const headers = {};
|
|
295
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
296
|
+
"/configuredTables/{configuredTableIdentifier}/analysisRule/{analysisRuleType}";
|
|
297
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "configuredTableIdentifier", () => input.configuredTableIdentifier, "{configuredTableIdentifier}", false);
|
|
298
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "analysisRuleType", () => input.analysisRuleType, "{analysisRuleType}", false);
|
|
299
|
+
let body;
|
|
300
|
+
return new __HttpRequest({
|
|
301
|
+
protocol,
|
|
302
|
+
hostname,
|
|
303
|
+
port,
|
|
304
|
+
method: "GET",
|
|
305
|
+
headers,
|
|
306
|
+
path: resolvedPath,
|
|
307
|
+
body,
|
|
308
|
+
});
|
|
309
|
+
};
|
|
310
|
+
export const serializeAws_restJson1GetConfiguredTableAssociationCommand = async (input, context) => {
|
|
311
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
312
|
+
const headers = {};
|
|
313
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
314
|
+
"/memberships/{membershipIdentifier}/configuredTableAssociations/{configuredTableAssociationIdentifier}";
|
|
315
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "configuredTableAssociationIdentifier", () => input.configuredTableAssociationIdentifier, "{configuredTableAssociationIdentifier}", false);
|
|
316
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
|
|
317
|
+
let body;
|
|
318
|
+
return new __HttpRequest({
|
|
319
|
+
protocol,
|
|
320
|
+
hostname,
|
|
321
|
+
port,
|
|
322
|
+
method: "GET",
|
|
323
|
+
headers,
|
|
324
|
+
path: resolvedPath,
|
|
325
|
+
body,
|
|
326
|
+
});
|
|
327
|
+
};
|
|
328
|
+
export const serializeAws_restJson1GetMembershipCommand = async (input, context) => {
|
|
329
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
330
|
+
const headers = {};
|
|
331
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/memberships/{membershipIdentifier}";
|
|
332
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
|
|
333
|
+
let body;
|
|
334
|
+
return new __HttpRequest({
|
|
335
|
+
protocol,
|
|
336
|
+
hostname,
|
|
337
|
+
port,
|
|
338
|
+
method: "GET",
|
|
339
|
+
headers,
|
|
340
|
+
path: resolvedPath,
|
|
341
|
+
body,
|
|
342
|
+
});
|
|
343
|
+
};
|
|
344
|
+
export const serializeAws_restJson1GetProtectedQueryCommand = async (input, context) => {
|
|
345
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
346
|
+
const headers = {};
|
|
347
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
348
|
+
"/memberships/{membershipIdentifier}/protectedQueries/{protectedQueryIdentifier}";
|
|
349
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
|
|
350
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "protectedQueryIdentifier", () => input.protectedQueryIdentifier, "{protectedQueryIdentifier}", false);
|
|
351
|
+
let body;
|
|
352
|
+
return new __HttpRequest({
|
|
353
|
+
protocol,
|
|
354
|
+
hostname,
|
|
355
|
+
port,
|
|
356
|
+
method: "GET",
|
|
357
|
+
headers,
|
|
358
|
+
path: resolvedPath,
|
|
359
|
+
body,
|
|
360
|
+
});
|
|
361
|
+
};
|
|
362
|
+
export const serializeAws_restJson1GetSchemaCommand = async (input, context) => {
|
|
363
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
364
|
+
const headers = {};
|
|
365
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
366
|
+
"/collaborations/{collaborationIdentifier}/schemas/{name}";
|
|
367
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "collaborationIdentifier", () => input.collaborationIdentifier, "{collaborationIdentifier}", false);
|
|
368
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name, "{name}", false);
|
|
369
|
+
let body;
|
|
370
|
+
return new __HttpRequest({
|
|
371
|
+
protocol,
|
|
372
|
+
hostname,
|
|
373
|
+
port,
|
|
374
|
+
method: "GET",
|
|
375
|
+
headers,
|
|
376
|
+
path: resolvedPath,
|
|
377
|
+
body,
|
|
378
|
+
});
|
|
379
|
+
};
|
|
380
|
+
export const serializeAws_restJson1GetSchemaAnalysisRuleCommand = async (input, context) => {
|
|
381
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
382
|
+
const headers = {};
|
|
383
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
384
|
+
"/collaborations/{collaborationIdentifier}/schemas/{name}/analysisRule/{type}";
|
|
385
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "collaborationIdentifier", () => input.collaborationIdentifier, "{collaborationIdentifier}", false);
|
|
386
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name, "{name}", false);
|
|
387
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "type", () => input.type, "{type}", false);
|
|
388
|
+
let body;
|
|
389
|
+
return new __HttpRequest({
|
|
390
|
+
protocol,
|
|
391
|
+
hostname,
|
|
392
|
+
port,
|
|
393
|
+
method: "GET",
|
|
394
|
+
headers,
|
|
395
|
+
path: resolvedPath,
|
|
396
|
+
body,
|
|
397
|
+
});
|
|
398
|
+
};
|
|
399
|
+
export const serializeAws_restJson1ListCollaborationsCommand = async (input, context) => {
|
|
400
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
401
|
+
const headers = {};
|
|
402
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/collaborations";
|
|
403
|
+
const query = map({
|
|
404
|
+
nextToken: [, input.nextToken],
|
|
405
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
406
|
+
memberStatus: [, input.memberStatus],
|
|
407
|
+
});
|
|
408
|
+
let body;
|
|
409
|
+
return new __HttpRequest({
|
|
410
|
+
protocol,
|
|
411
|
+
hostname,
|
|
412
|
+
port,
|
|
413
|
+
method: "GET",
|
|
414
|
+
headers,
|
|
415
|
+
path: resolvedPath,
|
|
416
|
+
query,
|
|
417
|
+
body,
|
|
418
|
+
});
|
|
419
|
+
};
|
|
420
|
+
export const serializeAws_restJson1ListConfiguredTableAssociationsCommand = async (input, context) => {
|
|
421
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
422
|
+
const headers = {};
|
|
423
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
424
|
+
"/memberships/{membershipIdentifier}/configuredTableAssociations";
|
|
425
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
|
|
426
|
+
const query = map({
|
|
427
|
+
nextToken: [, input.nextToken],
|
|
428
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
429
|
+
});
|
|
430
|
+
let body;
|
|
431
|
+
return new __HttpRequest({
|
|
432
|
+
protocol,
|
|
433
|
+
hostname,
|
|
434
|
+
port,
|
|
435
|
+
method: "GET",
|
|
436
|
+
headers,
|
|
437
|
+
path: resolvedPath,
|
|
438
|
+
query,
|
|
439
|
+
body,
|
|
440
|
+
});
|
|
441
|
+
};
|
|
442
|
+
export const serializeAws_restJson1ListConfiguredTablesCommand = async (input, context) => {
|
|
443
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
444
|
+
const headers = {};
|
|
445
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configuredTables";
|
|
446
|
+
const query = map({
|
|
447
|
+
nextToken: [, input.nextToken],
|
|
448
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
449
|
+
});
|
|
450
|
+
let body;
|
|
451
|
+
return new __HttpRequest({
|
|
452
|
+
protocol,
|
|
453
|
+
hostname,
|
|
454
|
+
port,
|
|
455
|
+
method: "GET",
|
|
456
|
+
headers,
|
|
457
|
+
path: resolvedPath,
|
|
458
|
+
query,
|
|
459
|
+
body,
|
|
460
|
+
});
|
|
461
|
+
};
|
|
462
|
+
export const serializeAws_restJson1ListMembersCommand = async (input, context) => {
|
|
463
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
464
|
+
const headers = {};
|
|
465
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
466
|
+
"/collaborations/{collaborationIdentifier}/members";
|
|
467
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "collaborationIdentifier", () => input.collaborationIdentifier, "{collaborationIdentifier}", false);
|
|
468
|
+
const query = map({
|
|
469
|
+
nextToken: [, input.nextToken],
|
|
470
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
471
|
+
});
|
|
472
|
+
let body;
|
|
473
|
+
return new __HttpRequest({
|
|
474
|
+
protocol,
|
|
475
|
+
hostname,
|
|
476
|
+
port,
|
|
477
|
+
method: "GET",
|
|
478
|
+
headers,
|
|
479
|
+
path: resolvedPath,
|
|
480
|
+
query,
|
|
481
|
+
body,
|
|
482
|
+
});
|
|
483
|
+
};
|
|
484
|
+
export const serializeAws_restJson1ListMembershipsCommand = async (input, context) => {
|
|
485
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
486
|
+
const headers = {};
|
|
487
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/memberships";
|
|
488
|
+
const query = map({
|
|
489
|
+
nextToken: [, input.nextToken],
|
|
490
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
491
|
+
status: [, input.status],
|
|
492
|
+
});
|
|
493
|
+
let body;
|
|
494
|
+
return new __HttpRequest({
|
|
495
|
+
protocol,
|
|
496
|
+
hostname,
|
|
497
|
+
port,
|
|
498
|
+
method: "GET",
|
|
499
|
+
headers,
|
|
500
|
+
path: resolvedPath,
|
|
501
|
+
query,
|
|
502
|
+
body,
|
|
503
|
+
});
|
|
504
|
+
};
|
|
505
|
+
export const serializeAws_restJson1ListProtectedQueriesCommand = async (input, context) => {
|
|
506
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
507
|
+
const headers = {};
|
|
508
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
509
|
+
"/memberships/{membershipIdentifier}/protectedQueries";
|
|
510
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
|
|
511
|
+
const query = map({
|
|
512
|
+
status: [, input.status],
|
|
513
|
+
nextToken: [, input.nextToken],
|
|
514
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
515
|
+
});
|
|
516
|
+
let body;
|
|
517
|
+
return new __HttpRequest({
|
|
518
|
+
protocol,
|
|
519
|
+
hostname,
|
|
520
|
+
port,
|
|
521
|
+
method: "GET",
|
|
522
|
+
headers,
|
|
523
|
+
path: resolvedPath,
|
|
524
|
+
query,
|
|
525
|
+
body,
|
|
526
|
+
});
|
|
527
|
+
};
|
|
528
|
+
export const serializeAws_restJson1ListSchemasCommand = async (input, context) => {
|
|
529
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
530
|
+
const headers = {};
|
|
531
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
532
|
+
"/collaborations/{collaborationIdentifier}/schemas";
|
|
533
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "collaborationIdentifier", () => input.collaborationIdentifier, "{collaborationIdentifier}", false);
|
|
534
|
+
const query = map({
|
|
535
|
+
schemaType: [, input.schemaType],
|
|
536
|
+
nextToken: [, input.nextToken],
|
|
537
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
538
|
+
});
|
|
539
|
+
let body;
|
|
540
|
+
return new __HttpRequest({
|
|
541
|
+
protocol,
|
|
542
|
+
hostname,
|
|
543
|
+
port,
|
|
544
|
+
method: "GET",
|
|
545
|
+
headers,
|
|
546
|
+
path: resolvedPath,
|
|
547
|
+
query,
|
|
548
|
+
body,
|
|
549
|
+
});
|
|
550
|
+
};
|
|
551
|
+
export const serializeAws_restJson1StartProtectedQueryCommand = async (input, context) => {
|
|
552
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
553
|
+
const headers = {
|
|
554
|
+
"content-type": "application/json",
|
|
555
|
+
};
|
|
556
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
557
|
+
"/memberships/{membershipIdentifier}/protectedQueries";
|
|
558
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
|
|
559
|
+
let body;
|
|
560
|
+
body = JSON.stringify({
|
|
561
|
+
...(input.resultConfiguration != null && {
|
|
562
|
+
resultConfiguration: serializeAws_restJson1ProtectedQueryResultConfiguration(input.resultConfiguration, context),
|
|
563
|
+
}),
|
|
564
|
+
...(input.sqlParameters != null && {
|
|
565
|
+
sqlParameters: serializeAws_restJson1ProtectedQuerySQLParameters(input.sqlParameters, context),
|
|
566
|
+
}),
|
|
567
|
+
...(input.type != null && { type: input.type }),
|
|
568
|
+
});
|
|
569
|
+
return new __HttpRequest({
|
|
570
|
+
protocol,
|
|
571
|
+
hostname,
|
|
572
|
+
port,
|
|
573
|
+
method: "POST",
|
|
574
|
+
headers,
|
|
575
|
+
path: resolvedPath,
|
|
576
|
+
body,
|
|
577
|
+
});
|
|
578
|
+
};
|
|
579
|
+
export const serializeAws_restJson1UpdateCollaborationCommand = async (input, context) => {
|
|
580
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
581
|
+
const headers = {
|
|
582
|
+
"content-type": "application/json",
|
|
583
|
+
};
|
|
584
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/collaborations/{collaborationIdentifier}";
|
|
585
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "collaborationIdentifier", () => input.collaborationIdentifier, "{collaborationIdentifier}", false);
|
|
586
|
+
let body;
|
|
587
|
+
body = JSON.stringify({
|
|
588
|
+
...(input.description != null && { description: input.description }),
|
|
589
|
+
...(input.name != null && { name: input.name }),
|
|
590
|
+
});
|
|
591
|
+
return new __HttpRequest({
|
|
592
|
+
protocol,
|
|
593
|
+
hostname,
|
|
594
|
+
port,
|
|
595
|
+
method: "PATCH",
|
|
596
|
+
headers,
|
|
597
|
+
path: resolvedPath,
|
|
598
|
+
body,
|
|
599
|
+
});
|
|
600
|
+
};
|
|
601
|
+
export const serializeAws_restJson1UpdateConfiguredTableCommand = async (input, context) => {
|
|
602
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
603
|
+
const headers = {
|
|
604
|
+
"content-type": "application/json",
|
|
605
|
+
};
|
|
606
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
607
|
+
"/configuredTables/{configuredTableIdentifier}";
|
|
608
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "configuredTableIdentifier", () => input.configuredTableIdentifier, "{configuredTableIdentifier}", false);
|
|
609
|
+
let body;
|
|
610
|
+
body = JSON.stringify({
|
|
611
|
+
...(input.description != null && { description: input.description }),
|
|
612
|
+
...(input.name != null && { name: input.name }),
|
|
613
|
+
});
|
|
614
|
+
return new __HttpRequest({
|
|
615
|
+
protocol,
|
|
616
|
+
hostname,
|
|
617
|
+
port,
|
|
618
|
+
method: "PATCH",
|
|
619
|
+
headers,
|
|
620
|
+
path: resolvedPath,
|
|
621
|
+
body,
|
|
622
|
+
});
|
|
623
|
+
};
|
|
624
|
+
export const serializeAws_restJson1UpdateConfiguredTableAnalysisRuleCommand = async (input, context) => {
|
|
625
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
626
|
+
const headers = {
|
|
627
|
+
"content-type": "application/json",
|
|
628
|
+
};
|
|
629
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
630
|
+
"/configuredTables/{configuredTableIdentifier}/analysisRule/{analysisRuleType}";
|
|
631
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "configuredTableIdentifier", () => input.configuredTableIdentifier, "{configuredTableIdentifier}", false);
|
|
632
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "analysisRuleType", () => input.analysisRuleType, "{analysisRuleType}", false);
|
|
633
|
+
let body;
|
|
634
|
+
body = JSON.stringify({
|
|
635
|
+
...(input.analysisRulePolicy != null && {
|
|
636
|
+
analysisRulePolicy: serializeAws_restJson1ConfiguredTableAnalysisRulePolicy(input.analysisRulePolicy, context),
|
|
637
|
+
}),
|
|
638
|
+
});
|
|
639
|
+
return new __HttpRequest({
|
|
640
|
+
protocol,
|
|
641
|
+
hostname,
|
|
642
|
+
port,
|
|
643
|
+
method: "PATCH",
|
|
644
|
+
headers,
|
|
645
|
+
path: resolvedPath,
|
|
646
|
+
body,
|
|
647
|
+
});
|
|
648
|
+
};
|
|
649
|
+
export const serializeAws_restJson1UpdateConfiguredTableAssociationCommand = async (input, context) => {
|
|
650
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
651
|
+
const headers = {
|
|
652
|
+
"content-type": "application/json",
|
|
653
|
+
};
|
|
654
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
655
|
+
"/memberships/{membershipIdentifier}/configuredTableAssociations/{configuredTableAssociationIdentifier}";
|
|
656
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "configuredTableAssociationIdentifier", () => input.configuredTableAssociationIdentifier, "{configuredTableAssociationIdentifier}", false);
|
|
657
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
|
|
658
|
+
let body;
|
|
659
|
+
body = JSON.stringify({
|
|
660
|
+
...(input.description != null && { description: input.description }),
|
|
661
|
+
...(input.roleArn != null && { roleArn: input.roleArn }),
|
|
662
|
+
});
|
|
663
|
+
return new __HttpRequest({
|
|
664
|
+
protocol,
|
|
665
|
+
hostname,
|
|
666
|
+
port,
|
|
667
|
+
method: "PATCH",
|
|
668
|
+
headers,
|
|
669
|
+
path: resolvedPath,
|
|
670
|
+
body,
|
|
671
|
+
});
|
|
672
|
+
};
|
|
673
|
+
export const serializeAws_restJson1UpdateMembershipCommand = async (input, context) => {
|
|
674
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
675
|
+
const headers = {
|
|
676
|
+
"content-type": "application/json",
|
|
677
|
+
};
|
|
678
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/memberships/{membershipIdentifier}";
|
|
679
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
|
|
680
|
+
let body;
|
|
681
|
+
body = JSON.stringify({
|
|
682
|
+
...(input.queryLogStatus != null && { queryLogStatus: input.queryLogStatus }),
|
|
683
|
+
});
|
|
684
|
+
return new __HttpRequest({
|
|
685
|
+
protocol,
|
|
686
|
+
hostname,
|
|
687
|
+
port,
|
|
688
|
+
method: "PATCH",
|
|
689
|
+
headers,
|
|
690
|
+
path: resolvedPath,
|
|
691
|
+
body,
|
|
692
|
+
});
|
|
693
|
+
};
|
|
694
|
+
export const serializeAws_restJson1UpdateProtectedQueryCommand = async (input, context) => {
|
|
695
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
696
|
+
const headers = {
|
|
697
|
+
"content-type": "application/json",
|
|
698
|
+
};
|
|
699
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
700
|
+
"/memberships/{membershipIdentifier}/protectedQueries/{protectedQueryIdentifier}";
|
|
701
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "membershipIdentifier", () => input.membershipIdentifier, "{membershipIdentifier}", false);
|
|
702
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "protectedQueryIdentifier", () => input.protectedQueryIdentifier, "{protectedQueryIdentifier}", false);
|
|
703
|
+
let body;
|
|
704
|
+
body = JSON.stringify({
|
|
705
|
+
...(input.targetStatus != null && { targetStatus: input.targetStatus }),
|
|
706
|
+
});
|
|
707
|
+
return new __HttpRequest({
|
|
708
|
+
protocol,
|
|
709
|
+
hostname,
|
|
710
|
+
port,
|
|
711
|
+
method: "PATCH",
|
|
712
|
+
headers,
|
|
713
|
+
path: resolvedPath,
|
|
714
|
+
body,
|
|
715
|
+
});
|
|
716
|
+
};
|
|
717
|
+
export const deserializeAws_restJson1BatchGetSchemaCommand = async (output, context) => {
|
|
718
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
719
|
+
return deserializeAws_restJson1BatchGetSchemaCommandError(output, context);
|
|
720
|
+
}
|
|
721
|
+
const contents = map({
|
|
722
|
+
$metadata: deserializeMetadata(output),
|
|
723
|
+
});
|
|
724
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
725
|
+
if (data.errors != null) {
|
|
726
|
+
contents.errors = deserializeAws_restJson1BatchGetSchemaErrorList(data.errors, context);
|
|
727
|
+
}
|
|
728
|
+
if (data.schemas != null) {
|
|
729
|
+
contents.schemas = deserializeAws_restJson1SchemaList(data.schemas, context);
|
|
730
|
+
}
|
|
731
|
+
return contents;
|
|
732
|
+
};
|
|
733
|
+
const deserializeAws_restJson1BatchGetSchemaCommandError = async (output, context) => {
|
|
734
|
+
const parsedOutput = {
|
|
735
|
+
...output,
|
|
736
|
+
body: await parseErrorBody(output.body, context),
|
|
737
|
+
};
|
|
738
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
739
|
+
switch (errorCode) {
|
|
740
|
+
case "AccessDeniedException":
|
|
741
|
+
case "com.amazonaws.cleanrooms#AccessDeniedException":
|
|
742
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
743
|
+
case "InternalServerException":
|
|
744
|
+
case "com.amazonaws.cleanrooms#InternalServerException":
|
|
745
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
746
|
+
case "ResourceNotFoundException":
|
|
747
|
+
case "com.amazonaws.cleanrooms#ResourceNotFoundException":
|
|
748
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
749
|
+
case "ThrottlingException":
|
|
750
|
+
case "com.amazonaws.cleanrooms#ThrottlingException":
|
|
751
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
752
|
+
case "ValidationException":
|
|
753
|
+
case "com.amazonaws.cleanrooms#ValidationException":
|
|
754
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
755
|
+
default:
|
|
756
|
+
const parsedBody = parsedOutput.body;
|
|
757
|
+
throwDefaultError({
|
|
758
|
+
output,
|
|
759
|
+
parsedBody,
|
|
760
|
+
exceptionCtor: __BaseException,
|
|
761
|
+
errorCode,
|
|
762
|
+
});
|
|
763
|
+
}
|
|
764
|
+
};
|
|
765
|
+
export const deserializeAws_restJson1CreateCollaborationCommand = async (output, context) => {
|
|
766
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
767
|
+
return deserializeAws_restJson1CreateCollaborationCommandError(output, context);
|
|
768
|
+
}
|
|
769
|
+
const contents = map({
|
|
770
|
+
$metadata: deserializeMetadata(output),
|
|
771
|
+
});
|
|
772
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
773
|
+
if (data.collaboration != null) {
|
|
774
|
+
contents.collaboration = deserializeAws_restJson1Collaboration(data.collaboration, context);
|
|
775
|
+
}
|
|
776
|
+
return contents;
|
|
777
|
+
};
|
|
778
|
+
const deserializeAws_restJson1CreateCollaborationCommandError = async (output, context) => {
|
|
779
|
+
const parsedOutput = {
|
|
780
|
+
...output,
|
|
781
|
+
body: await parseErrorBody(output.body, context),
|
|
782
|
+
};
|
|
783
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
784
|
+
switch (errorCode) {
|
|
785
|
+
case "AccessDeniedException":
|
|
786
|
+
case "com.amazonaws.cleanrooms#AccessDeniedException":
|
|
787
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
788
|
+
case "InternalServerException":
|
|
789
|
+
case "com.amazonaws.cleanrooms#InternalServerException":
|
|
790
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
791
|
+
case "ServiceQuotaExceededException":
|
|
792
|
+
case "com.amazonaws.cleanrooms#ServiceQuotaExceededException":
|
|
793
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
794
|
+
case "ThrottlingException":
|
|
795
|
+
case "com.amazonaws.cleanrooms#ThrottlingException":
|
|
796
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
797
|
+
case "ValidationException":
|
|
798
|
+
case "com.amazonaws.cleanrooms#ValidationException":
|
|
799
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
800
|
+
default:
|
|
801
|
+
const parsedBody = parsedOutput.body;
|
|
802
|
+
throwDefaultError({
|
|
803
|
+
output,
|
|
804
|
+
parsedBody,
|
|
805
|
+
exceptionCtor: __BaseException,
|
|
806
|
+
errorCode,
|
|
807
|
+
});
|
|
808
|
+
}
|
|
809
|
+
};
|
|
810
|
+
export const deserializeAws_restJson1CreateConfiguredTableCommand = async (output, context) => {
|
|
811
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
812
|
+
return deserializeAws_restJson1CreateConfiguredTableCommandError(output, context);
|
|
813
|
+
}
|
|
814
|
+
const contents = map({
|
|
815
|
+
$metadata: deserializeMetadata(output),
|
|
816
|
+
});
|
|
817
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
818
|
+
if (data.configuredTable != null) {
|
|
819
|
+
contents.configuredTable = deserializeAws_restJson1ConfiguredTable(data.configuredTable, context);
|
|
820
|
+
}
|
|
821
|
+
return contents;
|
|
822
|
+
};
|
|
823
|
+
const deserializeAws_restJson1CreateConfiguredTableCommandError = async (output, context) => {
|
|
824
|
+
const parsedOutput = {
|
|
825
|
+
...output,
|
|
826
|
+
body: await parseErrorBody(output.body, context),
|
|
827
|
+
};
|
|
828
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
829
|
+
switch (errorCode) {
|
|
830
|
+
case "AccessDeniedException":
|
|
831
|
+
case "com.amazonaws.cleanrooms#AccessDeniedException":
|
|
832
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
833
|
+
case "ConflictException":
|
|
834
|
+
case "com.amazonaws.cleanrooms#ConflictException":
|
|
835
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
836
|
+
case "InternalServerException":
|
|
837
|
+
case "com.amazonaws.cleanrooms#InternalServerException":
|
|
838
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
839
|
+
case "ResourceNotFoundException":
|
|
840
|
+
case "com.amazonaws.cleanrooms#ResourceNotFoundException":
|
|
841
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
842
|
+
case "ServiceQuotaExceededException":
|
|
843
|
+
case "com.amazonaws.cleanrooms#ServiceQuotaExceededException":
|
|
844
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
845
|
+
case "ThrottlingException":
|
|
846
|
+
case "com.amazonaws.cleanrooms#ThrottlingException":
|
|
847
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
848
|
+
case "ValidationException":
|
|
849
|
+
case "com.amazonaws.cleanrooms#ValidationException":
|
|
850
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
851
|
+
default:
|
|
852
|
+
const parsedBody = parsedOutput.body;
|
|
853
|
+
throwDefaultError({
|
|
854
|
+
output,
|
|
855
|
+
parsedBody,
|
|
856
|
+
exceptionCtor: __BaseException,
|
|
857
|
+
errorCode,
|
|
858
|
+
});
|
|
859
|
+
}
|
|
860
|
+
};
|
|
861
|
+
export const deserializeAws_restJson1CreateConfiguredTableAnalysisRuleCommand = async (output, context) => {
|
|
862
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
863
|
+
return deserializeAws_restJson1CreateConfiguredTableAnalysisRuleCommandError(output, context);
|
|
864
|
+
}
|
|
865
|
+
const contents = map({
|
|
866
|
+
$metadata: deserializeMetadata(output),
|
|
867
|
+
});
|
|
868
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
869
|
+
if (data.analysisRule != null) {
|
|
870
|
+
contents.analysisRule = deserializeAws_restJson1ConfiguredTableAnalysisRule(data.analysisRule, context);
|
|
871
|
+
}
|
|
872
|
+
return contents;
|
|
873
|
+
};
|
|
874
|
+
const deserializeAws_restJson1CreateConfiguredTableAnalysisRuleCommandError = async (output, context) => {
|
|
875
|
+
const parsedOutput = {
|
|
876
|
+
...output,
|
|
877
|
+
body: await parseErrorBody(output.body, context),
|
|
878
|
+
};
|
|
879
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
880
|
+
switch (errorCode) {
|
|
881
|
+
case "AccessDeniedException":
|
|
882
|
+
case "com.amazonaws.cleanrooms#AccessDeniedException":
|
|
883
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
884
|
+
case "ConflictException":
|
|
885
|
+
case "com.amazonaws.cleanrooms#ConflictException":
|
|
886
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
887
|
+
case "InternalServerException":
|
|
888
|
+
case "com.amazonaws.cleanrooms#InternalServerException":
|
|
889
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
890
|
+
case "ResourceNotFoundException":
|
|
891
|
+
case "com.amazonaws.cleanrooms#ResourceNotFoundException":
|
|
892
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
893
|
+
case "ThrottlingException":
|
|
894
|
+
case "com.amazonaws.cleanrooms#ThrottlingException":
|
|
895
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
896
|
+
case "ValidationException":
|
|
897
|
+
case "com.amazonaws.cleanrooms#ValidationException":
|
|
898
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
899
|
+
default:
|
|
900
|
+
const parsedBody = parsedOutput.body;
|
|
901
|
+
throwDefaultError({
|
|
902
|
+
output,
|
|
903
|
+
parsedBody,
|
|
904
|
+
exceptionCtor: __BaseException,
|
|
905
|
+
errorCode,
|
|
906
|
+
});
|
|
907
|
+
}
|
|
908
|
+
};
|
|
909
|
+
export const deserializeAws_restJson1CreateConfiguredTableAssociationCommand = async (output, context) => {
|
|
910
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
911
|
+
return deserializeAws_restJson1CreateConfiguredTableAssociationCommandError(output, context);
|
|
912
|
+
}
|
|
913
|
+
const contents = map({
|
|
914
|
+
$metadata: deserializeMetadata(output),
|
|
915
|
+
});
|
|
916
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
917
|
+
if (data.configuredTableAssociation != null) {
|
|
918
|
+
contents.configuredTableAssociation = deserializeAws_restJson1ConfiguredTableAssociation(data.configuredTableAssociation, context);
|
|
919
|
+
}
|
|
920
|
+
return contents;
|
|
921
|
+
};
|
|
922
|
+
const deserializeAws_restJson1CreateConfiguredTableAssociationCommandError = async (output, context) => {
|
|
923
|
+
const parsedOutput = {
|
|
924
|
+
...output,
|
|
925
|
+
body: await parseErrorBody(output.body, context),
|
|
926
|
+
};
|
|
927
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
928
|
+
switch (errorCode) {
|
|
929
|
+
case "AccessDeniedException":
|
|
930
|
+
case "com.amazonaws.cleanrooms#AccessDeniedException":
|
|
931
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
932
|
+
case "ConflictException":
|
|
933
|
+
case "com.amazonaws.cleanrooms#ConflictException":
|
|
934
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
935
|
+
case "InternalServerException":
|
|
936
|
+
case "com.amazonaws.cleanrooms#InternalServerException":
|
|
937
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
938
|
+
case "ResourceNotFoundException":
|
|
939
|
+
case "com.amazonaws.cleanrooms#ResourceNotFoundException":
|
|
940
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
941
|
+
case "ServiceQuotaExceededException":
|
|
942
|
+
case "com.amazonaws.cleanrooms#ServiceQuotaExceededException":
|
|
943
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
944
|
+
case "ThrottlingException":
|
|
945
|
+
case "com.amazonaws.cleanrooms#ThrottlingException":
|
|
946
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
947
|
+
case "ValidationException":
|
|
948
|
+
case "com.amazonaws.cleanrooms#ValidationException":
|
|
949
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
950
|
+
default:
|
|
951
|
+
const parsedBody = parsedOutput.body;
|
|
952
|
+
throwDefaultError({
|
|
953
|
+
output,
|
|
954
|
+
parsedBody,
|
|
955
|
+
exceptionCtor: __BaseException,
|
|
956
|
+
errorCode,
|
|
957
|
+
});
|
|
958
|
+
}
|
|
959
|
+
};
|
|
960
|
+
export const deserializeAws_restJson1CreateMembershipCommand = async (output, context) => {
|
|
961
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
962
|
+
return deserializeAws_restJson1CreateMembershipCommandError(output, context);
|
|
963
|
+
}
|
|
964
|
+
const contents = map({
|
|
965
|
+
$metadata: deserializeMetadata(output),
|
|
966
|
+
});
|
|
967
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
968
|
+
if (data.membership != null) {
|
|
969
|
+
contents.membership = deserializeAws_restJson1Membership(data.membership, context);
|
|
970
|
+
}
|
|
971
|
+
return contents;
|
|
972
|
+
};
|
|
973
|
+
const deserializeAws_restJson1CreateMembershipCommandError = async (output, context) => {
|
|
974
|
+
const parsedOutput = {
|
|
975
|
+
...output,
|
|
976
|
+
body: await parseErrorBody(output.body, context),
|
|
977
|
+
};
|
|
978
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
979
|
+
switch (errorCode) {
|
|
980
|
+
case "AccessDeniedException":
|
|
981
|
+
case "com.amazonaws.cleanrooms#AccessDeniedException":
|
|
982
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
983
|
+
case "ConflictException":
|
|
984
|
+
case "com.amazonaws.cleanrooms#ConflictException":
|
|
985
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
986
|
+
case "InternalServerException":
|
|
987
|
+
case "com.amazonaws.cleanrooms#InternalServerException":
|
|
988
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
989
|
+
case "ResourceNotFoundException":
|
|
990
|
+
case "com.amazonaws.cleanrooms#ResourceNotFoundException":
|
|
991
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
992
|
+
case "ServiceQuotaExceededException":
|
|
993
|
+
case "com.amazonaws.cleanrooms#ServiceQuotaExceededException":
|
|
994
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
995
|
+
case "ThrottlingException":
|
|
996
|
+
case "com.amazonaws.cleanrooms#ThrottlingException":
|
|
997
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
998
|
+
case "ValidationException":
|
|
999
|
+
case "com.amazonaws.cleanrooms#ValidationException":
|
|
1000
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1001
|
+
default:
|
|
1002
|
+
const parsedBody = parsedOutput.body;
|
|
1003
|
+
throwDefaultError({
|
|
1004
|
+
output,
|
|
1005
|
+
parsedBody,
|
|
1006
|
+
exceptionCtor: __BaseException,
|
|
1007
|
+
errorCode,
|
|
1008
|
+
});
|
|
1009
|
+
}
|
|
1010
|
+
};
|
|
1011
|
+
export const deserializeAws_restJson1DeleteCollaborationCommand = async (output, context) => {
|
|
1012
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1013
|
+
return deserializeAws_restJson1DeleteCollaborationCommandError(output, context);
|
|
1014
|
+
}
|
|
1015
|
+
const contents = map({
|
|
1016
|
+
$metadata: deserializeMetadata(output),
|
|
1017
|
+
});
|
|
1018
|
+
await collectBody(output.body, context);
|
|
1019
|
+
return contents;
|
|
1020
|
+
};
|
|
1021
|
+
const deserializeAws_restJson1DeleteCollaborationCommandError = async (output, context) => {
|
|
1022
|
+
const parsedOutput = {
|
|
1023
|
+
...output,
|
|
1024
|
+
body: await parseErrorBody(output.body, context),
|
|
1025
|
+
};
|
|
1026
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1027
|
+
switch (errorCode) {
|
|
1028
|
+
case "AccessDeniedException":
|
|
1029
|
+
case "com.amazonaws.cleanrooms#AccessDeniedException":
|
|
1030
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1031
|
+
case "InternalServerException":
|
|
1032
|
+
case "com.amazonaws.cleanrooms#InternalServerException":
|
|
1033
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1034
|
+
case "ThrottlingException":
|
|
1035
|
+
case "com.amazonaws.cleanrooms#ThrottlingException":
|
|
1036
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1037
|
+
case "ValidationException":
|
|
1038
|
+
case "com.amazonaws.cleanrooms#ValidationException":
|
|
1039
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1040
|
+
default:
|
|
1041
|
+
const parsedBody = parsedOutput.body;
|
|
1042
|
+
throwDefaultError({
|
|
1043
|
+
output,
|
|
1044
|
+
parsedBody,
|
|
1045
|
+
exceptionCtor: __BaseException,
|
|
1046
|
+
errorCode,
|
|
1047
|
+
});
|
|
1048
|
+
}
|
|
1049
|
+
};
|
|
1050
|
+
export const deserializeAws_restJson1DeleteConfiguredTableCommand = async (output, context) => {
|
|
1051
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1052
|
+
return deserializeAws_restJson1DeleteConfiguredTableCommandError(output, context);
|
|
1053
|
+
}
|
|
1054
|
+
const contents = map({
|
|
1055
|
+
$metadata: deserializeMetadata(output),
|
|
1056
|
+
});
|
|
1057
|
+
await collectBody(output.body, context);
|
|
1058
|
+
return contents;
|
|
1059
|
+
};
|
|
1060
|
+
const deserializeAws_restJson1DeleteConfiguredTableCommandError = async (output, context) => {
|
|
1061
|
+
const parsedOutput = {
|
|
1062
|
+
...output,
|
|
1063
|
+
body: await parseErrorBody(output.body, context),
|
|
1064
|
+
};
|
|
1065
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1066
|
+
switch (errorCode) {
|
|
1067
|
+
case "AccessDeniedException":
|
|
1068
|
+
case "com.amazonaws.cleanrooms#AccessDeniedException":
|
|
1069
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1070
|
+
case "ConflictException":
|
|
1071
|
+
case "com.amazonaws.cleanrooms#ConflictException":
|
|
1072
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1073
|
+
case "InternalServerException":
|
|
1074
|
+
case "com.amazonaws.cleanrooms#InternalServerException":
|
|
1075
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1076
|
+
case "ResourceNotFoundException":
|
|
1077
|
+
case "com.amazonaws.cleanrooms#ResourceNotFoundException":
|
|
1078
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1079
|
+
case "ThrottlingException":
|
|
1080
|
+
case "com.amazonaws.cleanrooms#ThrottlingException":
|
|
1081
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1082
|
+
case "ValidationException":
|
|
1083
|
+
case "com.amazonaws.cleanrooms#ValidationException":
|
|
1084
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1085
|
+
default:
|
|
1086
|
+
const parsedBody = parsedOutput.body;
|
|
1087
|
+
throwDefaultError({
|
|
1088
|
+
output,
|
|
1089
|
+
parsedBody,
|
|
1090
|
+
exceptionCtor: __BaseException,
|
|
1091
|
+
errorCode,
|
|
1092
|
+
});
|
|
1093
|
+
}
|
|
1094
|
+
};
|
|
1095
|
+
export const deserializeAws_restJson1DeleteConfiguredTableAnalysisRuleCommand = async (output, context) => {
|
|
1096
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1097
|
+
return deserializeAws_restJson1DeleteConfiguredTableAnalysisRuleCommandError(output, context);
|
|
1098
|
+
}
|
|
1099
|
+
const contents = map({
|
|
1100
|
+
$metadata: deserializeMetadata(output),
|
|
1101
|
+
});
|
|
1102
|
+
await collectBody(output.body, context);
|
|
1103
|
+
return contents;
|
|
1104
|
+
};
|
|
1105
|
+
const deserializeAws_restJson1DeleteConfiguredTableAnalysisRuleCommandError = async (output, context) => {
|
|
1106
|
+
const parsedOutput = {
|
|
1107
|
+
...output,
|
|
1108
|
+
body: await parseErrorBody(output.body, context),
|
|
1109
|
+
};
|
|
1110
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1111
|
+
switch (errorCode) {
|
|
1112
|
+
case "AccessDeniedException":
|
|
1113
|
+
case "com.amazonaws.cleanrooms#AccessDeniedException":
|
|
1114
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1115
|
+
case "ConflictException":
|
|
1116
|
+
case "com.amazonaws.cleanrooms#ConflictException":
|
|
1117
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1118
|
+
case "InternalServerException":
|
|
1119
|
+
case "com.amazonaws.cleanrooms#InternalServerException":
|
|
1120
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1121
|
+
case "ResourceNotFoundException":
|
|
1122
|
+
case "com.amazonaws.cleanrooms#ResourceNotFoundException":
|
|
1123
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1124
|
+
case "ThrottlingException":
|
|
1125
|
+
case "com.amazonaws.cleanrooms#ThrottlingException":
|
|
1126
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1127
|
+
case "ValidationException":
|
|
1128
|
+
case "com.amazonaws.cleanrooms#ValidationException":
|
|
1129
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1130
|
+
default:
|
|
1131
|
+
const parsedBody = parsedOutput.body;
|
|
1132
|
+
throwDefaultError({
|
|
1133
|
+
output,
|
|
1134
|
+
parsedBody,
|
|
1135
|
+
exceptionCtor: __BaseException,
|
|
1136
|
+
errorCode,
|
|
1137
|
+
});
|
|
1138
|
+
}
|
|
1139
|
+
};
|
|
1140
|
+
export const deserializeAws_restJson1DeleteConfiguredTableAssociationCommand = async (output, context) => {
|
|
1141
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1142
|
+
return deserializeAws_restJson1DeleteConfiguredTableAssociationCommandError(output, context);
|
|
1143
|
+
}
|
|
1144
|
+
const contents = map({
|
|
1145
|
+
$metadata: deserializeMetadata(output),
|
|
1146
|
+
});
|
|
1147
|
+
await collectBody(output.body, context);
|
|
1148
|
+
return contents;
|
|
1149
|
+
};
|
|
1150
|
+
const deserializeAws_restJson1DeleteConfiguredTableAssociationCommandError = async (output, context) => {
|
|
1151
|
+
const parsedOutput = {
|
|
1152
|
+
...output,
|
|
1153
|
+
body: await parseErrorBody(output.body, context),
|
|
1154
|
+
};
|
|
1155
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1156
|
+
switch (errorCode) {
|
|
1157
|
+
case "AccessDeniedException":
|
|
1158
|
+
case "com.amazonaws.cleanrooms#AccessDeniedException":
|
|
1159
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1160
|
+
case "ConflictException":
|
|
1161
|
+
case "com.amazonaws.cleanrooms#ConflictException":
|
|
1162
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1163
|
+
case "InternalServerException":
|
|
1164
|
+
case "com.amazonaws.cleanrooms#InternalServerException":
|
|
1165
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1166
|
+
case "ResourceNotFoundException":
|
|
1167
|
+
case "com.amazonaws.cleanrooms#ResourceNotFoundException":
|
|
1168
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1169
|
+
case "ThrottlingException":
|
|
1170
|
+
case "com.amazonaws.cleanrooms#ThrottlingException":
|
|
1171
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1172
|
+
case "ValidationException":
|
|
1173
|
+
case "com.amazonaws.cleanrooms#ValidationException":
|
|
1174
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1175
|
+
default:
|
|
1176
|
+
const parsedBody = parsedOutput.body;
|
|
1177
|
+
throwDefaultError({
|
|
1178
|
+
output,
|
|
1179
|
+
parsedBody,
|
|
1180
|
+
exceptionCtor: __BaseException,
|
|
1181
|
+
errorCode,
|
|
1182
|
+
});
|
|
1183
|
+
}
|
|
1184
|
+
};
|
|
1185
|
+
export const deserializeAws_restJson1DeleteMemberCommand = async (output, context) => {
|
|
1186
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1187
|
+
return deserializeAws_restJson1DeleteMemberCommandError(output, context);
|
|
1188
|
+
}
|
|
1189
|
+
const contents = map({
|
|
1190
|
+
$metadata: deserializeMetadata(output),
|
|
1191
|
+
});
|
|
1192
|
+
await collectBody(output.body, context);
|
|
1193
|
+
return contents;
|
|
1194
|
+
};
|
|
1195
|
+
const deserializeAws_restJson1DeleteMemberCommandError = async (output, context) => {
|
|
1196
|
+
const parsedOutput = {
|
|
1197
|
+
...output,
|
|
1198
|
+
body: await parseErrorBody(output.body, context),
|
|
1199
|
+
};
|
|
1200
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1201
|
+
switch (errorCode) {
|
|
1202
|
+
case "AccessDeniedException":
|
|
1203
|
+
case "com.amazonaws.cleanrooms#AccessDeniedException":
|
|
1204
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1205
|
+
case "ConflictException":
|
|
1206
|
+
case "com.amazonaws.cleanrooms#ConflictException":
|
|
1207
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1208
|
+
case "InternalServerException":
|
|
1209
|
+
case "com.amazonaws.cleanrooms#InternalServerException":
|
|
1210
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1211
|
+
case "ResourceNotFoundException":
|
|
1212
|
+
case "com.amazonaws.cleanrooms#ResourceNotFoundException":
|
|
1213
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1214
|
+
case "ThrottlingException":
|
|
1215
|
+
case "com.amazonaws.cleanrooms#ThrottlingException":
|
|
1216
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1217
|
+
case "ValidationException":
|
|
1218
|
+
case "com.amazonaws.cleanrooms#ValidationException":
|
|
1219
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1220
|
+
default:
|
|
1221
|
+
const parsedBody = parsedOutput.body;
|
|
1222
|
+
throwDefaultError({
|
|
1223
|
+
output,
|
|
1224
|
+
parsedBody,
|
|
1225
|
+
exceptionCtor: __BaseException,
|
|
1226
|
+
errorCode,
|
|
1227
|
+
});
|
|
1228
|
+
}
|
|
1229
|
+
};
|
|
1230
|
+
export const deserializeAws_restJson1DeleteMembershipCommand = async (output, context) => {
|
|
1231
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1232
|
+
return deserializeAws_restJson1DeleteMembershipCommandError(output, context);
|
|
1233
|
+
}
|
|
1234
|
+
const contents = map({
|
|
1235
|
+
$metadata: deserializeMetadata(output),
|
|
1236
|
+
});
|
|
1237
|
+
await collectBody(output.body, context);
|
|
1238
|
+
return contents;
|
|
1239
|
+
};
|
|
1240
|
+
const deserializeAws_restJson1DeleteMembershipCommandError = async (output, context) => {
|
|
1241
|
+
const parsedOutput = {
|
|
1242
|
+
...output,
|
|
1243
|
+
body: await parseErrorBody(output.body, context),
|
|
1244
|
+
};
|
|
1245
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1246
|
+
switch (errorCode) {
|
|
1247
|
+
case "AccessDeniedException":
|
|
1248
|
+
case "com.amazonaws.cleanrooms#AccessDeniedException":
|
|
1249
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1250
|
+
case "ConflictException":
|
|
1251
|
+
case "com.amazonaws.cleanrooms#ConflictException":
|
|
1252
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1253
|
+
case "InternalServerException":
|
|
1254
|
+
case "com.amazonaws.cleanrooms#InternalServerException":
|
|
1255
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1256
|
+
case "ResourceNotFoundException":
|
|
1257
|
+
case "com.amazonaws.cleanrooms#ResourceNotFoundException":
|
|
1258
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1259
|
+
case "ThrottlingException":
|
|
1260
|
+
case "com.amazonaws.cleanrooms#ThrottlingException":
|
|
1261
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1262
|
+
case "ValidationException":
|
|
1263
|
+
case "com.amazonaws.cleanrooms#ValidationException":
|
|
1264
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1265
|
+
default:
|
|
1266
|
+
const parsedBody = parsedOutput.body;
|
|
1267
|
+
throwDefaultError({
|
|
1268
|
+
output,
|
|
1269
|
+
parsedBody,
|
|
1270
|
+
exceptionCtor: __BaseException,
|
|
1271
|
+
errorCode,
|
|
1272
|
+
});
|
|
1273
|
+
}
|
|
1274
|
+
};
|
|
1275
|
+
export const deserializeAws_restJson1GetCollaborationCommand = async (output, context) => {
|
|
1276
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1277
|
+
return deserializeAws_restJson1GetCollaborationCommandError(output, context);
|
|
1278
|
+
}
|
|
1279
|
+
const contents = map({
|
|
1280
|
+
$metadata: deserializeMetadata(output),
|
|
1281
|
+
});
|
|
1282
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1283
|
+
if (data.collaboration != null) {
|
|
1284
|
+
contents.collaboration = deserializeAws_restJson1Collaboration(data.collaboration, context);
|
|
1285
|
+
}
|
|
1286
|
+
return contents;
|
|
1287
|
+
};
|
|
1288
|
+
const deserializeAws_restJson1GetCollaborationCommandError = async (output, context) => {
|
|
1289
|
+
const parsedOutput = {
|
|
1290
|
+
...output,
|
|
1291
|
+
body: await parseErrorBody(output.body, context),
|
|
1292
|
+
};
|
|
1293
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1294
|
+
switch (errorCode) {
|
|
1295
|
+
case "AccessDeniedException":
|
|
1296
|
+
case "com.amazonaws.cleanrooms#AccessDeniedException":
|
|
1297
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1298
|
+
case "InternalServerException":
|
|
1299
|
+
case "com.amazonaws.cleanrooms#InternalServerException":
|
|
1300
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1301
|
+
case "ThrottlingException":
|
|
1302
|
+
case "com.amazonaws.cleanrooms#ThrottlingException":
|
|
1303
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1304
|
+
case "ValidationException":
|
|
1305
|
+
case "com.amazonaws.cleanrooms#ValidationException":
|
|
1306
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1307
|
+
default:
|
|
1308
|
+
const parsedBody = parsedOutput.body;
|
|
1309
|
+
throwDefaultError({
|
|
1310
|
+
output,
|
|
1311
|
+
parsedBody,
|
|
1312
|
+
exceptionCtor: __BaseException,
|
|
1313
|
+
errorCode,
|
|
1314
|
+
});
|
|
1315
|
+
}
|
|
1316
|
+
};
|
|
1317
|
+
export const deserializeAws_restJson1GetConfiguredTableCommand = async (output, context) => {
|
|
1318
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1319
|
+
return deserializeAws_restJson1GetConfiguredTableCommandError(output, context);
|
|
1320
|
+
}
|
|
1321
|
+
const contents = map({
|
|
1322
|
+
$metadata: deserializeMetadata(output),
|
|
1323
|
+
});
|
|
1324
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1325
|
+
if (data.configuredTable != null) {
|
|
1326
|
+
contents.configuredTable = deserializeAws_restJson1ConfiguredTable(data.configuredTable, context);
|
|
1327
|
+
}
|
|
1328
|
+
return contents;
|
|
1329
|
+
};
|
|
1330
|
+
const deserializeAws_restJson1GetConfiguredTableCommandError = async (output, context) => {
|
|
1331
|
+
const parsedOutput = {
|
|
1332
|
+
...output,
|
|
1333
|
+
body: await parseErrorBody(output.body, context),
|
|
1334
|
+
};
|
|
1335
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1336
|
+
switch (errorCode) {
|
|
1337
|
+
case "AccessDeniedException":
|
|
1338
|
+
case "com.amazonaws.cleanrooms#AccessDeniedException":
|
|
1339
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1340
|
+
case "InternalServerException":
|
|
1341
|
+
case "com.amazonaws.cleanrooms#InternalServerException":
|
|
1342
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1343
|
+
case "ResourceNotFoundException":
|
|
1344
|
+
case "com.amazonaws.cleanrooms#ResourceNotFoundException":
|
|
1345
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1346
|
+
case "ThrottlingException":
|
|
1347
|
+
case "com.amazonaws.cleanrooms#ThrottlingException":
|
|
1348
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1349
|
+
case "ValidationException":
|
|
1350
|
+
case "com.amazonaws.cleanrooms#ValidationException":
|
|
1351
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1352
|
+
default:
|
|
1353
|
+
const parsedBody = parsedOutput.body;
|
|
1354
|
+
throwDefaultError({
|
|
1355
|
+
output,
|
|
1356
|
+
parsedBody,
|
|
1357
|
+
exceptionCtor: __BaseException,
|
|
1358
|
+
errorCode,
|
|
1359
|
+
});
|
|
1360
|
+
}
|
|
1361
|
+
};
|
|
1362
|
+
export const deserializeAws_restJson1GetConfiguredTableAnalysisRuleCommand = async (output, context) => {
|
|
1363
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1364
|
+
return deserializeAws_restJson1GetConfiguredTableAnalysisRuleCommandError(output, context);
|
|
1365
|
+
}
|
|
1366
|
+
const contents = map({
|
|
1367
|
+
$metadata: deserializeMetadata(output),
|
|
1368
|
+
});
|
|
1369
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1370
|
+
if (data.analysisRule != null) {
|
|
1371
|
+
contents.analysisRule = deserializeAws_restJson1ConfiguredTableAnalysisRule(data.analysisRule, context);
|
|
1372
|
+
}
|
|
1373
|
+
return contents;
|
|
1374
|
+
};
|
|
1375
|
+
const deserializeAws_restJson1GetConfiguredTableAnalysisRuleCommandError = async (output, context) => {
|
|
1376
|
+
const parsedOutput = {
|
|
1377
|
+
...output,
|
|
1378
|
+
body: await parseErrorBody(output.body, context),
|
|
1379
|
+
};
|
|
1380
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1381
|
+
switch (errorCode) {
|
|
1382
|
+
case "AccessDeniedException":
|
|
1383
|
+
case "com.amazonaws.cleanrooms#AccessDeniedException":
|
|
1384
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1385
|
+
case "InternalServerException":
|
|
1386
|
+
case "com.amazonaws.cleanrooms#InternalServerException":
|
|
1387
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1388
|
+
case "ResourceNotFoundException":
|
|
1389
|
+
case "com.amazonaws.cleanrooms#ResourceNotFoundException":
|
|
1390
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1391
|
+
case "ThrottlingException":
|
|
1392
|
+
case "com.amazonaws.cleanrooms#ThrottlingException":
|
|
1393
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1394
|
+
case "ValidationException":
|
|
1395
|
+
case "com.amazonaws.cleanrooms#ValidationException":
|
|
1396
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1397
|
+
default:
|
|
1398
|
+
const parsedBody = parsedOutput.body;
|
|
1399
|
+
throwDefaultError({
|
|
1400
|
+
output,
|
|
1401
|
+
parsedBody,
|
|
1402
|
+
exceptionCtor: __BaseException,
|
|
1403
|
+
errorCode,
|
|
1404
|
+
});
|
|
1405
|
+
}
|
|
1406
|
+
};
|
|
1407
|
+
export const deserializeAws_restJson1GetConfiguredTableAssociationCommand = async (output, context) => {
|
|
1408
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1409
|
+
return deserializeAws_restJson1GetConfiguredTableAssociationCommandError(output, context);
|
|
1410
|
+
}
|
|
1411
|
+
const contents = map({
|
|
1412
|
+
$metadata: deserializeMetadata(output),
|
|
1413
|
+
});
|
|
1414
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1415
|
+
if (data.configuredTableAssociation != null) {
|
|
1416
|
+
contents.configuredTableAssociation = deserializeAws_restJson1ConfiguredTableAssociation(data.configuredTableAssociation, context);
|
|
1417
|
+
}
|
|
1418
|
+
return contents;
|
|
1419
|
+
};
|
|
1420
|
+
const deserializeAws_restJson1GetConfiguredTableAssociationCommandError = async (output, context) => {
|
|
1421
|
+
const parsedOutput = {
|
|
1422
|
+
...output,
|
|
1423
|
+
body: await parseErrorBody(output.body, context),
|
|
1424
|
+
};
|
|
1425
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1426
|
+
switch (errorCode) {
|
|
1427
|
+
case "AccessDeniedException":
|
|
1428
|
+
case "com.amazonaws.cleanrooms#AccessDeniedException":
|
|
1429
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1430
|
+
case "InternalServerException":
|
|
1431
|
+
case "com.amazonaws.cleanrooms#InternalServerException":
|
|
1432
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1433
|
+
case "ResourceNotFoundException":
|
|
1434
|
+
case "com.amazonaws.cleanrooms#ResourceNotFoundException":
|
|
1435
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1436
|
+
case "ThrottlingException":
|
|
1437
|
+
case "com.amazonaws.cleanrooms#ThrottlingException":
|
|
1438
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1439
|
+
case "ValidationException":
|
|
1440
|
+
case "com.amazonaws.cleanrooms#ValidationException":
|
|
1441
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1442
|
+
default:
|
|
1443
|
+
const parsedBody = parsedOutput.body;
|
|
1444
|
+
throwDefaultError({
|
|
1445
|
+
output,
|
|
1446
|
+
parsedBody,
|
|
1447
|
+
exceptionCtor: __BaseException,
|
|
1448
|
+
errorCode,
|
|
1449
|
+
});
|
|
1450
|
+
}
|
|
1451
|
+
};
|
|
1452
|
+
export const deserializeAws_restJson1GetMembershipCommand = async (output, context) => {
|
|
1453
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1454
|
+
return deserializeAws_restJson1GetMembershipCommandError(output, context);
|
|
1455
|
+
}
|
|
1456
|
+
const contents = map({
|
|
1457
|
+
$metadata: deserializeMetadata(output),
|
|
1458
|
+
});
|
|
1459
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1460
|
+
if (data.membership != null) {
|
|
1461
|
+
contents.membership = deserializeAws_restJson1Membership(data.membership, context);
|
|
1462
|
+
}
|
|
1463
|
+
return contents;
|
|
1464
|
+
};
|
|
1465
|
+
const deserializeAws_restJson1GetMembershipCommandError = async (output, context) => {
|
|
1466
|
+
const parsedOutput = {
|
|
1467
|
+
...output,
|
|
1468
|
+
body: await parseErrorBody(output.body, context),
|
|
1469
|
+
};
|
|
1470
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1471
|
+
switch (errorCode) {
|
|
1472
|
+
case "AccessDeniedException":
|
|
1473
|
+
case "com.amazonaws.cleanrooms#AccessDeniedException":
|
|
1474
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1475
|
+
case "InternalServerException":
|
|
1476
|
+
case "com.amazonaws.cleanrooms#InternalServerException":
|
|
1477
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1478
|
+
case "ResourceNotFoundException":
|
|
1479
|
+
case "com.amazonaws.cleanrooms#ResourceNotFoundException":
|
|
1480
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1481
|
+
case "ThrottlingException":
|
|
1482
|
+
case "com.amazonaws.cleanrooms#ThrottlingException":
|
|
1483
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1484
|
+
case "ValidationException":
|
|
1485
|
+
case "com.amazonaws.cleanrooms#ValidationException":
|
|
1486
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1487
|
+
default:
|
|
1488
|
+
const parsedBody = parsedOutput.body;
|
|
1489
|
+
throwDefaultError({
|
|
1490
|
+
output,
|
|
1491
|
+
parsedBody,
|
|
1492
|
+
exceptionCtor: __BaseException,
|
|
1493
|
+
errorCode,
|
|
1494
|
+
});
|
|
1495
|
+
}
|
|
1496
|
+
};
|
|
1497
|
+
export const deserializeAws_restJson1GetProtectedQueryCommand = async (output, context) => {
|
|
1498
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1499
|
+
return deserializeAws_restJson1GetProtectedQueryCommandError(output, context);
|
|
1500
|
+
}
|
|
1501
|
+
const contents = map({
|
|
1502
|
+
$metadata: deserializeMetadata(output),
|
|
1503
|
+
});
|
|
1504
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1505
|
+
if (data.protectedQuery != null) {
|
|
1506
|
+
contents.protectedQuery = deserializeAws_restJson1ProtectedQuery(data.protectedQuery, context);
|
|
1507
|
+
}
|
|
1508
|
+
return contents;
|
|
1509
|
+
};
|
|
1510
|
+
const deserializeAws_restJson1GetProtectedQueryCommandError = async (output, context) => {
|
|
1511
|
+
const parsedOutput = {
|
|
1512
|
+
...output,
|
|
1513
|
+
body: await parseErrorBody(output.body, context),
|
|
1514
|
+
};
|
|
1515
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1516
|
+
switch (errorCode) {
|
|
1517
|
+
case "AccessDeniedException":
|
|
1518
|
+
case "com.amazonaws.cleanrooms#AccessDeniedException":
|
|
1519
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1520
|
+
case "InternalServerException":
|
|
1521
|
+
case "com.amazonaws.cleanrooms#InternalServerException":
|
|
1522
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1523
|
+
case "ResourceNotFoundException":
|
|
1524
|
+
case "com.amazonaws.cleanrooms#ResourceNotFoundException":
|
|
1525
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1526
|
+
case "ThrottlingException":
|
|
1527
|
+
case "com.amazonaws.cleanrooms#ThrottlingException":
|
|
1528
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1529
|
+
case "ValidationException":
|
|
1530
|
+
case "com.amazonaws.cleanrooms#ValidationException":
|
|
1531
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1532
|
+
default:
|
|
1533
|
+
const parsedBody = parsedOutput.body;
|
|
1534
|
+
throwDefaultError({
|
|
1535
|
+
output,
|
|
1536
|
+
parsedBody,
|
|
1537
|
+
exceptionCtor: __BaseException,
|
|
1538
|
+
errorCode,
|
|
1539
|
+
});
|
|
1540
|
+
}
|
|
1541
|
+
};
|
|
1542
|
+
export const deserializeAws_restJson1GetSchemaCommand = async (output, context) => {
|
|
1543
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1544
|
+
return deserializeAws_restJson1GetSchemaCommandError(output, context);
|
|
1545
|
+
}
|
|
1546
|
+
const contents = map({
|
|
1547
|
+
$metadata: deserializeMetadata(output),
|
|
1548
|
+
});
|
|
1549
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1550
|
+
if (data.schema != null) {
|
|
1551
|
+
contents.schema = deserializeAws_restJson1Schema(data.schema, context);
|
|
1552
|
+
}
|
|
1553
|
+
return contents;
|
|
1554
|
+
};
|
|
1555
|
+
const deserializeAws_restJson1GetSchemaCommandError = async (output, context) => {
|
|
1556
|
+
const parsedOutput = {
|
|
1557
|
+
...output,
|
|
1558
|
+
body: await parseErrorBody(output.body, context),
|
|
1559
|
+
};
|
|
1560
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1561
|
+
switch (errorCode) {
|
|
1562
|
+
case "AccessDeniedException":
|
|
1563
|
+
case "com.amazonaws.cleanrooms#AccessDeniedException":
|
|
1564
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1565
|
+
case "InternalServerException":
|
|
1566
|
+
case "com.amazonaws.cleanrooms#InternalServerException":
|
|
1567
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1568
|
+
case "ResourceNotFoundException":
|
|
1569
|
+
case "com.amazonaws.cleanrooms#ResourceNotFoundException":
|
|
1570
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1571
|
+
case "ThrottlingException":
|
|
1572
|
+
case "com.amazonaws.cleanrooms#ThrottlingException":
|
|
1573
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1574
|
+
case "ValidationException":
|
|
1575
|
+
case "com.amazonaws.cleanrooms#ValidationException":
|
|
1576
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1577
|
+
default:
|
|
1578
|
+
const parsedBody = parsedOutput.body;
|
|
1579
|
+
throwDefaultError({
|
|
1580
|
+
output,
|
|
1581
|
+
parsedBody,
|
|
1582
|
+
exceptionCtor: __BaseException,
|
|
1583
|
+
errorCode,
|
|
1584
|
+
});
|
|
1585
|
+
}
|
|
1586
|
+
};
|
|
1587
|
+
export const deserializeAws_restJson1GetSchemaAnalysisRuleCommand = async (output, context) => {
|
|
1588
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1589
|
+
return deserializeAws_restJson1GetSchemaAnalysisRuleCommandError(output, context);
|
|
1590
|
+
}
|
|
1591
|
+
const contents = map({
|
|
1592
|
+
$metadata: deserializeMetadata(output),
|
|
1593
|
+
});
|
|
1594
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1595
|
+
if (data.analysisRule != null) {
|
|
1596
|
+
contents.analysisRule = deserializeAws_restJson1AnalysisRule(data.analysisRule, context);
|
|
1597
|
+
}
|
|
1598
|
+
return contents;
|
|
1599
|
+
};
|
|
1600
|
+
const deserializeAws_restJson1GetSchemaAnalysisRuleCommandError = async (output, context) => {
|
|
1601
|
+
const parsedOutput = {
|
|
1602
|
+
...output,
|
|
1603
|
+
body: await parseErrorBody(output.body, context),
|
|
1604
|
+
};
|
|
1605
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1606
|
+
switch (errorCode) {
|
|
1607
|
+
case "AccessDeniedException":
|
|
1608
|
+
case "com.amazonaws.cleanrooms#AccessDeniedException":
|
|
1609
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1610
|
+
case "InternalServerException":
|
|
1611
|
+
case "com.amazonaws.cleanrooms#InternalServerException":
|
|
1612
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1613
|
+
case "ResourceNotFoundException":
|
|
1614
|
+
case "com.amazonaws.cleanrooms#ResourceNotFoundException":
|
|
1615
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1616
|
+
case "ThrottlingException":
|
|
1617
|
+
case "com.amazonaws.cleanrooms#ThrottlingException":
|
|
1618
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1619
|
+
case "ValidationException":
|
|
1620
|
+
case "com.amazonaws.cleanrooms#ValidationException":
|
|
1621
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1622
|
+
default:
|
|
1623
|
+
const parsedBody = parsedOutput.body;
|
|
1624
|
+
throwDefaultError({
|
|
1625
|
+
output,
|
|
1626
|
+
parsedBody,
|
|
1627
|
+
exceptionCtor: __BaseException,
|
|
1628
|
+
errorCode,
|
|
1629
|
+
});
|
|
1630
|
+
}
|
|
1631
|
+
};
|
|
1632
|
+
export const deserializeAws_restJson1ListCollaborationsCommand = async (output, context) => {
|
|
1633
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1634
|
+
return deserializeAws_restJson1ListCollaborationsCommandError(output, context);
|
|
1635
|
+
}
|
|
1636
|
+
const contents = map({
|
|
1637
|
+
$metadata: deserializeMetadata(output),
|
|
1638
|
+
});
|
|
1639
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1640
|
+
if (data.collaborationList != null) {
|
|
1641
|
+
contents.collaborationList = deserializeAws_restJson1CollaborationSummaryList(data.collaborationList, context);
|
|
1642
|
+
}
|
|
1643
|
+
if (data.nextToken != null) {
|
|
1644
|
+
contents.nextToken = __expectString(data.nextToken);
|
|
1645
|
+
}
|
|
1646
|
+
return contents;
|
|
1647
|
+
};
|
|
1648
|
+
const deserializeAws_restJson1ListCollaborationsCommandError = async (output, context) => {
|
|
1649
|
+
const parsedOutput = {
|
|
1650
|
+
...output,
|
|
1651
|
+
body: await parseErrorBody(output.body, context),
|
|
1652
|
+
};
|
|
1653
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1654
|
+
switch (errorCode) {
|
|
1655
|
+
case "AccessDeniedException":
|
|
1656
|
+
case "com.amazonaws.cleanrooms#AccessDeniedException":
|
|
1657
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1658
|
+
case "InternalServerException":
|
|
1659
|
+
case "com.amazonaws.cleanrooms#InternalServerException":
|
|
1660
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1661
|
+
case "ThrottlingException":
|
|
1662
|
+
case "com.amazonaws.cleanrooms#ThrottlingException":
|
|
1663
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1664
|
+
case "ValidationException":
|
|
1665
|
+
case "com.amazonaws.cleanrooms#ValidationException":
|
|
1666
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1667
|
+
default:
|
|
1668
|
+
const parsedBody = parsedOutput.body;
|
|
1669
|
+
throwDefaultError({
|
|
1670
|
+
output,
|
|
1671
|
+
parsedBody,
|
|
1672
|
+
exceptionCtor: __BaseException,
|
|
1673
|
+
errorCode,
|
|
1674
|
+
});
|
|
1675
|
+
}
|
|
1676
|
+
};
|
|
1677
|
+
export const deserializeAws_restJson1ListConfiguredTableAssociationsCommand = async (output, context) => {
|
|
1678
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1679
|
+
return deserializeAws_restJson1ListConfiguredTableAssociationsCommandError(output, context);
|
|
1680
|
+
}
|
|
1681
|
+
const contents = map({
|
|
1682
|
+
$metadata: deserializeMetadata(output),
|
|
1683
|
+
});
|
|
1684
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1685
|
+
if (data.configuredTableAssociationSummaries != null) {
|
|
1686
|
+
contents.configuredTableAssociationSummaries = deserializeAws_restJson1ConfiguredTableAssociationSummaryList(data.configuredTableAssociationSummaries, context);
|
|
1687
|
+
}
|
|
1688
|
+
if (data.nextToken != null) {
|
|
1689
|
+
contents.nextToken = __expectString(data.nextToken);
|
|
1690
|
+
}
|
|
1691
|
+
return contents;
|
|
1692
|
+
};
|
|
1693
|
+
const deserializeAws_restJson1ListConfiguredTableAssociationsCommandError = async (output, context) => {
|
|
1694
|
+
const parsedOutput = {
|
|
1695
|
+
...output,
|
|
1696
|
+
body: await parseErrorBody(output.body, context),
|
|
1697
|
+
};
|
|
1698
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1699
|
+
switch (errorCode) {
|
|
1700
|
+
case "AccessDeniedException":
|
|
1701
|
+
case "com.amazonaws.cleanrooms#AccessDeniedException":
|
|
1702
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1703
|
+
case "InternalServerException":
|
|
1704
|
+
case "com.amazonaws.cleanrooms#InternalServerException":
|
|
1705
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1706
|
+
case "ThrottlingException":
|
|
1707
|
+
case "com.amazonaws.cleanrooms#ThrottlingException":
|
|
1708
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1709
|
+
case "ValidationException":
|
|
1710
|
+
case "com.amazonaws.cleanrooms#ValidationException":
|
|
1711
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1712
|
+
default:
|
|
1713
|
+
const parsedBody = parsedOutput.body;
|
|
1714
|
+
throwDefaultError({
|
|
1715
|
+
output,
|
|
1716
|
+
parsedBody,
|
|
1717
|
+
exceptionCtor: __BaseException,
|
|
1718
|
+
errorCode,
|
|
1719
|
+
});
|
|
1720
|
+
}
|
|
1721
|
+
};
|
|
1722
|
+
export const deserializeAws_restJson1ListConfiguredTablesCommand = async (output, context) => {
|
|
1723
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1724
|
+
return deserializeAws_restJson1ListConfiguredTablesCommandError(output, context);
|
|
1725
|
+
}
|
|
1726
|
+
const contents = map({
|
|
1727
|
+
$metadata: deserializeMetadata(output),
|
|
1728
|
+
});
|
|
1729
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1730
|
+
if (data.configuredTableSummaries != null) {
|
|
1731
|
+
contents.configuredTableSummaries = deserializeAws_restJson1ConfiguredTableSummaryList(data.configuredTableSummaries, context);
|
|
1732
|
+
}
|
|
1733
|
+
if (data.nextToken != null) {
|
|
1734
|
+
contents.nextToken = __expectString(data.nextToken);
|
|
1735
|
+
}
|
|
1736
|
+
return contents;
|
|
1737
|
+
};
|
|
1738
|
+
const deserializeAws_restJson1ListConfiguredTablesCommandError = async (output, context) => {
|
|
1739
|
+
const parsedOutput = {
|
|
1740
|
+
...output,
|
|
1741
|
+
body: await parseErrorBody(output.body, context),
|
|
1742
|
+
};
|
|
1743
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1744
|
+
switch (errorCode) {
|
|
1745
|
+
case "AccessDeniedException":
|
|
1746
|
+
case "com.amazonaws.cleanrooms#AccessDeniedException":
|
|
1747
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1748
|
+
case "InternalServerException":
|
|
1749
|
+
case "com.amazonaws.cleanrooms#InternalServerException":
|
|
1750
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1751
|
+
case "ThrottlingException":
|
|
1752
|
+
case "com.amazonaws.cleanrooms#ThrottlingException":
|
|
1753
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1754
|
+
case "ValidationException":
|
|
1755
|
+
case "com.amazonaws.cleanrooms#ValidationException":
|
|
1756
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1757
|
+
default:
|
|
1758
|
+
const parsedBody = parsedOutput.body;
|
|
1759
|
+
throwDefaultError({
|
|
1760
|
+
output,
|
|
1761
|
+
parsedBody,
|
|
1762
|
+
exceptionCtor: __BaseException,
|
|
1763
|
+
errorCode,
|
|
1764
|
+
});
|
|
1765
|
+
}
|
|
1766
|
+
};
|
|
1767
|
+
export const deserializeAws_restJson1ListMembersCommand = async (output, context) => {
|
|
1768
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1769
|
+
return deserializeAws_restJson1ListMembersCommandError(output, context);
|
|
1770
|
+
}
|
|
1771
|
+
const contents = map({
|
|
1772
|
+
$metadata: deserializeMetadata(output),
|
|
1773
|
+
});
|
|
1774
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1775
|
+
if (data.memberSummaries != null) {
|
|
1776
|
+
contents.memberSummaries = deserializeAws_restJson1MemberSummaryList(data.memberSummaries, context);
|
|
1777
|
+
}
|
|
1778
|
+
if (data.nextToken != null) {
|
|
1779
|
+
contents.nextToken = __expectString(data.nextToken);
|
|
1780
|
+
}
|
|
1781
|
+
return contents;
|
|
1782
|
+
};
|
|
1783
|
+
const deserializeAws_restJson1ListMembersCommandError = async (output, context) => {
|
|
1784
|
+
const parsedOutput = {
|
|
1785
|
+
...output,
|
|
1786
|
+
body: await parseErrorBody(output.body, context),
|
|
1787
|
+
};
|
|
1788
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1789
|
+
switch (errorCode) {
|
|
1790
|
+
case "AccessDeniedException":
|
|
1791
|
+
case "com.amazonaws.cleanrooms#AccessDeniedException":
|
|
1792
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1793
|
+
case "InternalServerException":
|
|
1794
|
+
case "com.amazonaws.cleanrooms#InternalServerException":
|
|
1795
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1796
|
+
case "ResourceNotFoundException":
|
|
1797
|
+
case "com.amazonaws.cleanrooms#ResourceNotFoundException":
|
|
1798
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1799
|
+
case "ThrottlingException":
|
|
1800
|
+
case "com.amazonaws.cleanrooms#ThrottlingException":
|
|
1801
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1802
|
+
case "ValidationException":
|
|
1803
|
+
case "com.amazonaws.cleanrooms#ValidationException":
|
|
1804
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1805
|
+
default:
|
|
1806
|
+
const parsedBody = parsedOutput.body;
|
|
1807
|
+
throwDefaultError({
|
|
1808
|
+
output,
|
|
1809
|
+
parsedBody,
|
|
1810
|
+
exceptionCtor: __BaseException,
|
|
1811
|
+
errorCode,
|
|
1812
|
+
});
|
|
1813
|
+
}
|
|
1814
|
+
};
|
|
1815
|
+
export const deserializeAws_restJson1ListMembershipsCommand = async (output, context) => {
|
|
1816
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1817
|
+
return deserializeAws_restJson1ListMembershipsCommandError(output, context);
|
|
1818
|
+
}
|
|
1819
|
+
const contents = map({
|
|
1820
|
+
$metadata: deserializeMetadata(output),
|
|
1821
|
+
});
|
|
1822
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1823
|
+
if (data.membershipSummaries != null) {
|
|
1824
|
+
contents.membershipSummaries = deserializeAws_restJson1MembershipSummaryList(data.membershipSummaries, context);
|
|
1825
|
+
}
|
|
1826
|
+
if (data.nextToken != null) {
|
|
1827
|
+
contents.nextToken = __expectString(data.nextToken);
|
|
1828
|
+
}
|
|
1829
|
+
return contents;
|
|
1830
|
+
};
|
|
1831
|
+
const deserializeAws_restJson1ListMembershipsCommandError = async (output, context) => {
|
|
1832
|
+
const parsedOutput = {
|
|
1833
|
+
...output,
|
|
1834
|
+
body: await parseErrorBody(output.body, context),
|
|
1835
|
+
};
|
|
1836
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1837
|
+
switch (errorCode) {
|
|
1838
|
+
case "AccessDeniedException":
|
|
1839
|
+
case "com.amazonaws.cleanrooms#AccessDeniedException":
|
|
1840
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1841
|
+
case "InternalServerException":
|
|
1842
|
+
case "com.amazonaws.cleanrooms#InternalServerException":
|
|
1843
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1844
|
+
case "ThrottlingException":
|
|
1845
|
+
case "com.amazonaws.cleanrooms#ThrottlingException":
|
|
1846
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1847
|
+
case "ValidationException":
|
|
1848
|
+
case "com.amazonaws.cleanrooms#ValidationException":
|
|
1849
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1850
|
+
default:
|
|
1851
|
+
const parsedBody = parsedOutput.body;
|
|
1852
|
+
throwDefaultError({
|
|
1853
|
+
output,
|
|
1854
|
+
parsedBody,
|
|
1855
|
+
exceptionCtor: __BaseException,
|
|
1856
|
+
errorCode,
|
|
1857
|
+
});
|
|
1858
|
+
}
|
|
1859
|
+
};
|
|
1860
|
+
export const deserializeAws_restJson1ListProtectedQueriesCommand = async (output, context) => {
|
|
1861
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1862
|
+
return deserializeAws_restJson1ListProtectedQueriesCommandError(output, context);
|
|
1863
|
+
}
|
|
1864
|
+
const contents = map({
|
|
1865
|
+
$metadata: deserializeMetadata(output),
|
|
1866
|
+
});
|
|
1867
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1868
|
+
if (data.nextToken != null) {
|
|
1869
|
+
contents.nextToken = __expectString(data.nextToken);
|
|
1870
|
+
}
|
|
1871
|
+
if (data.protectedQueries != null) {
|
|
1872
|
+
contents.protectedQueries = deserializeAws_restJson1ProtectedQuerySummaryList(data.protectedQueries, context);
|
|
1873
|
+
}
|
|
1874
|
+
return contents;
|
|
1875
|
+
};
|
|
1876
|
+
const deserializeAws_restJson1ListProtectedQueriesCommandError = async (output, context) => {
|
|
1877
|
+
const parsedOutput = {
|
|
1878
|
+
...output,
|
|
1879
|
+
body: await parseErrorBody(output.body, context),
|
|
1880
|
+
};
|
|
1881
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1882
|
+
switch (errorCode) {
|
|
1883
|
+
case "AccessDeniedException":
|
|
1884
|
+
case "com.amazonaws.cleanrooms#AccessDeniedException":
|
|
1885
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1886
|
+
case "InternalServerException":
|
|
1887
|
+
case "com.amazonaws.cleanrooms#InternalServerException":
|
|
1888
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1889
|
+
case "ThrottlingException":
|
|
1890
|
+
case "com.amazonaws.cleanrooms#ThrottlingException":
|
|
1891
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1892
|
+
case "ValidationException":
|
|
1893
|
+
case "com.amazonaws.cleanrooms#ValidationException":
|
|
1894
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1895
|
+
default:
|
|
1896
|
+
const parsedBody = parsedOutput.body;
|
|
1897
|
+
throwDefaultError({
|
|
1898
|
+
output,
|
|
1899
|
+
parsedBody,
|
|
1900
|
+
exceptionCtor: __BaseException,
|
|
1901
|
+
errorCode,
|
|
1902
|
+
});
|
|
1903
|
+
}
|
|
1904
|
+
};
|
|
1905
|
+
export const deserializeAws_restJson1ListSchemasCommand = async (output, context) => {
|
|
1906
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1907
|
+
return deserializeAws_restJson1ListSchemasCommandError(output, context);
|
|
1908
|
+
}
|
|
1909
|
+
const contents = map({
|
|
1910
|
+
$metadata: deserializeMetadata(output),
|
|
1911
|
+
});
|
|
1912
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1913
|
+
if (data.nextToken != null) {
|
|
1914
|
+
contents.nextToken = __expectString(data.nextToken);
|
|
1915
|
+
}
|
|
1916
|
+
if (data.schemaSummaries != null) {
|
|
1917
|
+
contents.schemaSummaries = deserializeAws_restJson1SchemaSummaryList(data.schemaSummaries, context);
|
|
1918
|
+
}
|
|
1919
|
+
return contents;
|
|
1920
|
+
};
|
|
1921
|
+
const deserializeAws_restJson1ListSchemasCommandError = async (output, context) => {
|
|
1922
|
+
const parsedOutput = {
|
|
1923
|
+
...output,
|
|
1924
|
+
body: await parseErrorBody(output.body, context),
|
|
1925
|
+
};
|
|
1926
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1927
|
+
switch (errorCode) {
|
|
1928
|
+
case "AccessDeniedException":
|
|
1929
|
+
case "com.amazonaws.cleanrooms#AccessDeniedException":
|
|
1930
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1931
|
+
case "InternalServerException":
|
|
1932
|
+
case "com.amazonaws.cleanrooms#InternalServerException":
|
|
1933
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1934
|
+
case "ResourceNotFoundException":
|
|
1935
|
+
case "com.amazonaws.cleanrooms#ResourceNotFoundException":
|
|
1936
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1937
|
+
case "ThrottlingException":
|
|
1938
|
+
case "com.amazonaws.cleanrooms#ThrottlingException":
|
|
1939
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1940
|
+
case "ValidationException":
|
|
1941
|
+
case "com.amazonaws.cleanrooms#ValidationException":
|
|
1942
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1943
|
+
default:
|
|
1944
|
+
const parsedBody = parsedOutput.body;
|
|
1945
|
+
throwDefaultError({
|
|
1946
|
+
output,
|
|
1947
|
+
parsedBody,
|
|
1948
|
+
exceptionCtor: __BaseException,
|
|
1949
|
+
errorCode,
|
|
1950
|
+
});
|
|
1951
|
+
}
|
|
1952
|
+
};
|
|
1953
|
+
export const deserializeAws_restJson1StartProtectedQueryCommand = async (output, context) => {
|
|
1954
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1955
|
+
return deserializeAws_restJson1StartProtectedQueryCommandError(output, context);
|
|
1956
|
+
}
|
|
1957
|
+
const contents = map({
|
|
1958
|
+
$metadata: deserializeMetadata(output),
|
|
1959
|
+
});
|
|
1960
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1961
|
+
if (data.protectedQuery != null) {
|
|
1962
|
+
contents.protectedQuery = deserializeAws_restJson1ProtectedQuery(data.protectedQuery, context);
|
|
1963
|
+
}
|
|
1964
|
+
return contents;
|
|
1965
|
+
};
|
|
1966
|
+
const deserializeAws_restJson1StartProtectedQueryCommandError = async (output, context) => {
|
|
1967
|
+
const parsedOutput = {
|
|
1968
|
+
...output,
|
|
1969
|
+
body: await parseErrorBody(output.body, context),
|
|
1970
|
+
};
|
|
1971
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1972
|
+
switch (errorCode) {
|
|
1973
|
+
case "AccessDeniedException":
|
|
1974
|
+
case "com.amazonaws.cleanrooms#AccessDeniedException":
|
|
1975
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1976
|
+
case "InternalServerException":
|
|
1977
|
+
case "com.amazonaws.cleanrooms#InternalServerException":
|
|
1978
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1979
|
+
case "ResourceNotFoundException":
|
|
1980
|
+
case "com.amazonaws.cleanrooms#ResourceNotFoundException":
|
|
1981
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1982
|
+
case "ServiceQuotaExceededException":
|
|
1983
|
+
case "com.amazonaws.cleanrooms#ServiceQuotaExceededException":
|
|
1984
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
1985
|
+
case "ThrottlingException":
|
|
1986
|
+
case "com.amazonaws.cleanrooms#ThrottlingException":
|
|
1987
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1988
|
+
case "ValidationException":
|
|
1989
|
+
case "com.amazonaws.cleanrooms#ValidationException":
|
|
1990
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1991
|
+
default:
|
|
1992
|
+
const parsedBody = parsedOutput.body;
|
|
1993
|
+
throwDefaultError({
|
|
1994
|
+
output,
|
|
1995
|
+
parsedBody,
|
|
1996
|
+
exceptionCtor: __BaseException,
|
|
1997
|
+
errorCode,
|
|
1998
|
+
});
|
|
1999
|
+
}
|
|
2000
|
+
};
|
|
2001
|
+
export const deserializeAws_restJson1UpdateCollaborationCommand = async (output, context) => {
|
|
2002
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2003
|
+
return deserializeAws_restJson1UpdateCollaborationCommandError(output, context);
|
|
2004
|
+
}
|
|
2005
|
+
const contents = map({
|
|
2006
|
+
$metadata: deserializeMetadata(output),
|
|
2007
|
+
});
|
|
2008
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2009
|
+
if (data.collaboration != null) {
|
|
2010
|
+
contents.collaboration = deserializeAws_restJson1Collaboration(data.collaboration, context);
|
|
2011
|
+
}
|
|
2012
|
+
return contents;
|
|
2013
|
+
};
|
|
2014
|
+
const deserializeAws_restJson1UpdateCollaborationCommandError = async (output, context) => {
|
|
2015
|
+
const parsedOutput = {
|
|
2016
|
+
...output,
|
|
2017
|
+
body: await parseErrorBody(output.body, context),
|
|
2018
|
+
};
|
|
2019
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2020
|
+
switch (errorCode) {
|
|
2021
|
+
case "AccessDeniedException":
|
|
2022
|
+
case "com.amazonaws.cleanrooms#AccessDeniedException":
|
|
2023
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2024
|
+
case "InternalServerException":
|
|
2025
|
+
case "com.amazonaws.cleanrooms#InternalServerException":
|
|
2026
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2027
|
+
case "ThrottlingException":
|
|
2028
|
+
case "com.amazonaws.cleanrooms#ThrottlingException":
|
|
2029
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2030
|
+
case "ValidationException":
|
|
2031
|
+
case "com.amazonaws.cleanrooms#ValidationException":
|
|
2032
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2033
|
+
default:
|
|
2034
|
+
const parsedBody = parsedOutput.body;
|
|
2035
|
+
throwDefaultError({
|
|
2036
|
+
output,
|
|
2037
|
+
parsedBody,
|
|
2038
|
+
exceptionCtor: __BaseException,
|
|
2039
|
+
errorCode,
|
|
2040
|
+
});
|
|
2041
|
+
}
|
|
2042
|
+
};
|
|
2043
|
+
export const deserializeAws_restJson1UpdateConfiguredTableCommand = async (output, context) => {
|
|
2044
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2045
|
+
return deserializeAws_restJson1UpdateConfiguredTableCommandError(output, context);
|
|
2046
|
+
}
|
|
2047
|
+
const contents = map({
|
|
2048
|
+
$metadata: deserializeMetadata(output),
|
|
2049
|
+
});
|
|
2050
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2051
|
+
if (data.configuredTable != null) {
|
|
2052
|
+
contents.configuredTable = deserializeAws_restJson1ConfiguredTable(data.configuredTable, context);
|
|
2053
|
+
}
|
|
2054
|
+
return contents;
|
|
2055
|
+
};
|
|
2056
|
+
const deserializeAws_restJson1UpdateConfiguredTableCommandError = async (output, context) => {
|
|
2057
|
+
const parsedOutput = {
|
|
2058
|
+
...output,
|
|
2059
|
+
body: await parseErrorBody(output.body, context),
|
|
2060
|
+
};
|
|
2061
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2062
|
+
switch (errorCode) {
|
|
2063
|
+
case "AccessDeniedException":
|
|
2064
|
+
case "com.amazonaws.cleanrooms#AccessDeniedException":
|
|
2065
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2066
|
+
case "ConflictException":
|
|
2067
|
+
case "com.amazonaws.cleanrooms#ConflictException":
|
|
2068
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
2069
|
+
case "InternalServerException":
|
|
2070
|
+
case "com.amazonaws.cleanrooms#InternalServerException":
|
|
2071
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2072
|
+
case "ResourceNotFoundException":
|
|
2073
|
+
case "com.amazonaws.cleanrooms#ResourceNotFoundException":
|
|
2074
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2075
|
+
case "ThrottlingException":
|
|
2076
|
+
case "com.amazonaws.cleanrooms#ThrottlingException":
|
|
2077
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2078
|
+
case "ValidationException":
|
|
2079
|
+
case "com.amazonaws.cleanrooms#ValidationException":
|
|
2080
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2081
|
+
default:
|
|
2082
|
+
const parsedBody = parsedOutput.body;
|
|
2083
|
+
throwDefaultError({
|
|
2084
|
+
output,
|
|
2085
|
+
parsedBody,
|
|
2086
|
+
exceptionCtor: __BaseException,
|
|
2087
|
+
errorCode,
|
|
2088
|
+
});
|
|
2089
|
+
}
|
|
2090
|
+
};
|
|
2091
|
+
export const deserializeAws_restJson1UpdateConfiguredTableAnalysisRuleCommand = async (output, context) => {
|
|
2092
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2093
|
+
return deserializeAws_restJson1UpdateConfiguredTableAnalysisRuleCommandError(output, context);
|
|
2094
|
+
}
|
|
2095
|
+
const contents = map({
|
|
2096
|
+
$metadata: deserializeMetadata(output),
|
|
2097
|
+
});
|
|
2098
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2099
|
+
if (data.analysisRule != null) {
|
|
2100
|
+
contents.analysisRule = deserializeAws_restJson1ConfiguredTableAnalysisRule(data.analysisRule, context);
|
|
2101
|
+
}
|
|
2102
|
+
return contents;
|
|
2103
|
+
};
|
|
2104
|
+
const deserializeAws_restJson1UpdateConfiguredTableAnalysisRuleCommandError = async (output, context) => {
|
|
2105
|
+
const parsedOutput = {
|
|
2106
|
+
...output,
|
|
2107
|
+
body: await parseErrorBody(output.body, context),
|
|
2108
|
+
};
|
|
2109
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2110
|
+
switch (errorCode) {
|
|
2111
|
+
case "AccessDeniedException":
|
|
2112
|
+
case "com.amazonaws.cleanrooms#AccessDeniedException":
|
|
2113
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2114
|
+
case "ConflictException":
|
|
2115
|
+
case "com.amazonaws.cleanrooms#ConflictException":
|
|
2116
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
2117
|
+
case "InternalServerException":
|
|
2118
|
+
case "com.amazonaws.cleanrooms#InternalServerException":
|
|
2119
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2120
|
+
case "ResourceNotFoundException":
|
|
2121
|
+
case "com.amazonaws.cleanrooms#ResourceNotFoundException":
|
|
2122
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2123
|
+
case "ThrottlingException":
|
|
2124
|
+
case "com.amazonaws.cleanrooms#ThrottlingException":
|
|
2125
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2126
|
+
case "ValidationException":
|
|
2127
|
+
case "com.amazonaws.cleanrooms#ValidationException":
|
|
2128
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2129
|
+
default:
|
|
2130
|
+
const parsedBody = parsedOutput.body;
|
|
2131
|
+
throwDefaultError({
|
|
2132
|
+
output,
|
|
2133
|
+
parsedBody,
|
|
2134
|
+
exceptionCtor: __BaseException,
|
|
2135
|
+
errorCode,
|
|
2136
|
+
});
|
|
2137
|
+
}
|
|
2138
|
+
};
|
|
2139
|
+
export const deserializeAws_restJson1UpdateConfiguredTableAssociationCommand = async (output, context) => {
|
|
2140
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2141
|
+
return deserializeAws_restJson1UpdateConfiguredTableAssociationCommandError(output, context);
|
|
2142
|
+
}
|
|
2143
|
+
const contents = map({
|
|
2144
|
+
$metadata: deserializeMetadata(output),
|
|
2145
|
+
});
|
|
2146
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2147
|
+
if (data.configuredTableAssociation != null) {
|
|
2148
|
+
contents.configuredTableAssociation = deserializeAws_restJson1ConfiguredTableAssociation(data.configuredTableAssociation, context);
|
|
2149
|
+
}
|
|
2150
|
+
return contents;
|
|
2151
|
+
};
|
|
2152
|
+
const deserializeAws_restJson1UpdateConfiguredTableAssociationCommandError = async (output, context) => {
|
|
2153
|
+
const parsedOutput = {
|
|
2154
|
+
...output,
|
|
2155
|
+
body: await parseErrorBody(output.body, context),
|
|
2156
|
+
};
|
|
2157
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2158
|
+
switch (errorCode) {
|
|
2159
|
+
case "AccessDeniedException":
|
|
2160
|
+
case "com.amazonaws.cleanrooms#AccessDeniedException":
|
|
2161
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2162
|
+
case "ConflictException":
|
|
2163
|
+
case "com.amazonaws.cleanrooms#ConflictException":
|
|
2164
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
2165
|
+
case "InternalServerException":
|
|
2166
|
+
case "com.amazonaws.cleanrooms#InternalServerException":
|
|
2167
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2168
|
+
case "ResourceNotFoundException":
|
|
2169
|
+
case "com.amazonaws.cleanrooms#ResourceNotFoundException":
|
|
2170
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2171
|
+
case "ThrottlingException":
|
|
2172
|
+
case "com.amazonaws.cleanrooms#ThrottlingException":
|
|
2173
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2174
|
+
case "ValidationException":
|
|
2175
|
+
case "com.amazonaws.cleanrooms#ValidationException":
|
|
2176
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2177
|
+
default:
|
|
2178
|
+
const parsedBody = parsedOutput.body;
|
|
2179
|
+
throwDefaultError({
|
|
2180
|
+
output,
|
|
2181
|
+
parsedBody,
|
|
2182
|
+
exceptionCtor: __BaseException,
|
|
2183
|
+
errorCode,
|
|
2184
|
+
});
|
|
2185
|
+
}
|
|
2186
|
+
};
|
|
2187
|
+
export const deserializeAws_restJson1UpdateMembershipCommand = async (output, context) => {
|
|
2188
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2189
|
+
return deserializeAws_restJson1UpdateMembershipCommandError(output, context);
|
|
2190
|
+
}
|
|
2191
|
+
const contents = map({
|
|
2192
|
+
$metadata: deserializeMetadata(output),
|
|
2193
|
+
});
|
|
2194
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2195
|
+
if (data.membership != null) {
|
|
2196
|
+
contents.membership = deserializeAws_restJson1Membership(data.membership, context);
|
|
2197
|
+
}
|
|
2198
|
+
return contents;
|
|
2199
|
+
};
|
|
2200
|
+
const deserializeAws_restJson1UpdateMembershipCommandError = async (output, context) => {
|
|
2201
|
+
const parsedOutput = {
|
|
2202
|
+
...output,
|
|
2203
|
+
body: await parseErrorBody(output.body, context),
|
|
2204
|
+
};
|
|
2205
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2206
|
+
switch (errorCode) {
|
|
2207
|
+
case "AccessDeniedException":
|
|
2208
|
+
case "com.amazonaws.cleanrooms#AccessDeniedException":
|
|
2209
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2210
|
+
case "ConflictException":
|
|
2211
|
+
case "com.amazonaws.cleanrooms#ConflictException":
|
|
2212
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
2213
|
+
case "InternalServerException":
|
|
2214
|
+
case "com.amazonaws.cleanrooms#InternalServerException":
|
|
2215
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2216
|
+
case "ResourceNotFoundException":
|
|
2217
|
+
case "com.amazonaws.cleanrooms#ResourceNotFoundException":
|
|
2218
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2219
|
+
case "ThrottlingException":
|
|
2220
|
+
case "com.amazonaws.cleanrooms#ThrottlingException":
|
|
2221
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2222
|
+
case "ValidationException":
|
|
2223
|
+
case "com.amazonaws.cleanrooms#ValidationException":
|
|
2224
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2225
|
+
default:
|
|
2226
|
+
const parsedBody = parsedOutput.body;
|
|
2227
|
+
throwDefaultError({
|
|
2228
|
+
output,
|
|
2229
|
+
parsedBody,
|
|
2230
|
+
exceptionCtor: __BaseException,
|
|
2231
|
+
errorCode,
|
|
2232
|
+
});
|
|
2233
|
+
}
|
|
2234
|
+
};
|
|
2235
|
+
export const deserializeAws_restJson1UpdateProtectedQueryCommand = async (output, context) => {
|
|
2236
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2237
|
+
return deserializeAws_restJson1UpdateProtectedQueryCommandError(output, context);
|
|
2238
|
+
}
|
|
2239
|
+
const contents = map({
|
|
2240
|
+
$metadata: deserializeMetadata(output),
|
|
2241
|
+
});
|
|
2242
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2243
|
+
if (data.protectedQuery != null) {
|
|
2244
|
+
contents.protectedQuery = deserializeAws_restJson1ProtectedQuery(data.protectedQuery, context);
|
|
2245
|
+
}
|
|
2246
|
+
return contents;
|
|
2247
|
+
};
|
|
2248
|
+
const deserializeAws_restJson1UpdateProtectedQueryCommandError = async (output, context) => {
|
|
2249
|
+
const parsedOutput = {
|
|
2250
|
+
...output,
|
|
2251
|
+
body: await parseErrorBody(output.body, context),
|
|
2252
|
+
};
|
|
2253
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2254
|
+
switch (errorCode) {
|
|
2255
|
+
case "AccessDeniedException":
|
|
2256
|
+
case "com.amazonaws.cleanrooms#AccessDeniedException":
|
|
2257
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2258
|
+
case "ConflictException":
|
|
2259
|
+
case "com.amazonaws.cleanrooms#ConflictException":
|
|
2260
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
2261
|
+
case "InternalServerException":
|
|
2262
|
+
case "com.amazonaws.cleanrooms#InternalServerException":
|
|
2263
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2264
|
+
case "ResourceNotFoundException":
|
|
2265
|
+
case "com.amazonaws.cleanrooms#ResourceNotFoundException":
|
|
2266
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2267
|
+
case "ThrottlingException":
|
|
2268
|
+
case "com.amazonaws.cleanrooms#ThrottlingException":
|
|
2269
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2270
|
+
case "ValidationException":
|
|
2271
|
+
case "com.amazonaws.cleanrooms#ValidationException":
|
|
2272
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2273
|
+
default:
|
|
2274
|
+
const parsedBody = parsedOutput.body;
|
|
2275
|
+
throwDefaultError({
|
|
2276
|
+
output,
|
|
2277
|
+
parsedBody,
|
|
2278
|
+
exceptionCtor: __BaseException,
|
|
2279
|
+
errorCode,
|
|
2280
|
+
});
|
|
2281
|
+
}
|
|
2282
|
+
};
|
|
2283
|
+
const map = __map;
|
|
2284
|
+
const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
2285
|
+
const contents = map({});
|
|
2286
|
+
const data = parsedOutput.body;
|
|
2287
|
+
if (data.message != null) {
|
|
2288
|
+
contents.message = __expectString(data.message);
|
|
2289
|
+
}
|
|
2290
|
+
if (data.reason != null) {
|
|
2291
|
+
contents.reason = __expectString(data.reason);
|
|
2292
|
+
}
|
|
2293
|
+
const exception = new AccessDeniedException({
|
|
2294
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2295
|
+
...contents,
|
|
2296
|
+
});
|
|
2297
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
2298
|
+
};
|
|
2299
|
+
const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
2300
|
+
const contents = map({});
|
|
2301
|
+
const data = parsedOutput.body;
|
|
2302
|
+
if (data.message != null) {
|
|
2303
|
+
contents.message = __expectString(data.message);
|
|
2304
|
+
}
|
|
2305
|
+
if (data.reason != null) {
|
|
2306
|
+
contents.reason = __expectString(data.reason);
|
|
2307
|
+
}
|
|
2308
|
+
if (data.resourceId != null) {
|
|
2309
|
+
contents.resourceId = __expectString(data.resourceId);
|
|
2310
|
+
}
|
|
2311
|
+
if (data.resourceType != null) {
|
|
2312
|
+
contents.resourceType = __expectString(data.resourceType);
|
|
2313
|
+
}
|
|
2314
|
+
const exception = new ConflictException({
|
|
2315
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2316
|
+
...contents,
|
|
2317
|
+
});
|
|
2318
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
2319
|
+
};
|
|
2320
|
+
const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
|
|
2321
|
+
const contents = map({});
|
|
2322
|
+
const data = parsedOutput.body;
|
|
2323
|
+
if (data.message != null) {
|
|
2324
|
+
contents.message = __expectString(data.message);
|
|
2325
|
+
}
|
|
2326
|
+
const exception = new InternalServerException({
|
|
2327
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2328
|
+
...contents,
|
|
2329
|
+
});
|
|
2330
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
2331
|
+
};
|
|
2332
|
+
const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
2333
|
+
const contents = map({});
|
|
2334
|
+
const data = parsedOutput.body;
|
|
2335
|
+
if (data.message != null) {
|
|
2336
|
+
contents.message = __expectString(data.message);
|
|
2337
|
+
}
|
|
2338
|
+
if (data.resourceId != null) {
|
|
2339
|
+
contents.resourceId = __expectString(data.resourceId);
|
|
2340
|
+
}
|
|
2341
|
+
if (data.resourceType != null) {
|
|
2342
|
+
contents.resourceType = __expectString(data.resourceType);
|
|
2343
|
+
}
|
|
2344
|
+
const exception = new ResourceNotFoundException({
|
|
2345
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2346
|
+
...contents,
|
|
2347
|
+
});
|
|
2348
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
2349
|
+
};
|
|
2350
|
+
const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
|
|
2351
|
+
const contents = map({});
|
|
2352
|
+
const data = parsedOutput.body;
|
|
2353
|
+
if (data.message != null) {
|
|
2354
|
+
contents.message = __expectString(data.message);
|
|
2355
|
+
}
|
|
2356
|
+
if (data.quotaName != null) {
|
|
2357
|
+
contents.quotaName = __expectString(data.quotaName);
|
|
2358
|
+
}
|
|
2359
|
+
if (data.quotaValue != null) {
|
|
2360
|
+
contents.quotaValue = __limitedParseDouble(data.quotaValue);
|
|
2361
|
+
}
|
|
2362
|
+
const exception = new ServiceQuotaExceededException({
|
|
2363
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2364
|
+
...contents,
|
|
2365
|
+
});
|
|
2366
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
2367
|
+
};
|
|
2368
|
+
const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
|
|
2369
|
+
const contents = map({});
|
|
2370
|
+
const data = parsedOutput.body;
|
|
2371
|
+
if (data.message != null) {
|
|
2372
|
+
contents.message = __expectString(data.message);
|
|
2373
|
+
}
|
|
2374
|
+
const exception = new ThrottlingException({
|
|
2375
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2376
|
+
...contents,
|
|
2377
|
+
});
|
|
2378
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
2379
|
+
};
|
|
2380
|
+
const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
|
|
2381
|
+
const contents = map({});
|
|
2382
|
+
const data = parsedOutput.body;
|
|
2383
|
+
if (data.fieldList != null) {
|
|
2384
|
+
contents.fieldList = deserializeAws_restJson1ValidationExceptionFieldList(data.fieldList, context);
|
|
2385
|
+
}
|
|
2386
|
+
if (data.message != null) {
|
|
2387
|
+
contents.message = __expectString(data.message);
|
|
2388
|
+
}
|
|
2389
|
+
if (data.reason != null) {
|
|
2390
|
+
contents.reason = __expectString(data.reason);
|
|
2391
|
+
}
|
|
2392
|
+
const exception = new ValidationException({
|
|
2393
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2394
|
+
...contents,
|
|
2395
|
+
});
|
|
2396
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
2397
|
+
};
|
|
2398
|
+
const serializeAws_restJson1AggregateColumn = (input, context) => {
|
|
2399
|
+
return {
|
|
2400
|
+
...(input.columnNames != null && {
|
|
2401
|
+
columnNames: serializeAws_restJson1AnalysisRuleColumnNameList(input.columnNames, context),
|
|
2402
|
+
}),
|
|
2403
|
+
...(input.function != null && { function: input.function }),
|
|
2404
|
+
};
|
|
2405
|
+
};
|
|
2406
|
+
const serializeAws_restJson1AggregateColumnList = (input, context) => {
|
|
2407
|
+
return input
|
|
2408
|
+
.filter((e) => e != null)
|
|
2409
|
+
.map((entry) => {
|
|
2410
|
+
return serializeAws_restJson1AggregateColumn(entry, context);
|
|
2411
|
+
});
|
|
2412
|
+
};
|
|
2413
|
+
const serializeAws_restJson1AggregationConstraint = (input, context) => {
|
|
2414
|
+
return {
|
|
2415
|
+
...(input.columnName != null && { columnName: input.columnName }),
|
|
2416
|
+
...(input.minimum != null && { minimum: input.minimum }),
|
|
2417
|
+
...(input.type != null && { type: input.type }),
|
|
2418
|
+
};
|
|
2419
|
+
};
|
|
2420
|
+
const serializeAws_restJson1AggregationConstraints = (input, context) => {
|
|
2421
|
+
return input
|
|
2422
|
+
.filter((e) => e != null)
|
|
2423
|
+
.map((entry) => {
|
|
2424
|
+
return serializeAws_restJson1AggregationConstraint(entry, context);
|
|
2425
|
+
});
|
|
2426
|
+
};
|
|
2427
|
+
const serializeAws_restJson1AllowedColumnList = (input, context) => {
|
|
2428
|
+
return input
|
|
2429
|
+
.filter((e) => e != null)
|
|
2430
|
+
.map((entry) => {
|
|
2431
|
+
return entry;
|
|
2432
|
+
});
|
|
2433
|
+
};
|
|
2434
|
+
const serializeAws_restJson1AnalysisRuleAggregation = (input, context) => {
|
|
2435
|
+
return {
|
|
2436
|
+
...(input.aggregateColumns != null && {
|
|
2437
|
+
aggregateColumns: serializeAws_restJson1AggregateColumnList(input.aggregateColumns, context),
|
|
2438
|
+
}),
|
|
2439
|
+
...(input.dimensionColumns != null && {
|
|
2440
|
+
dimensionColumns: serializeAws_restJson1AnalysisRuleColumnList(input.dimensionColumns, context),
|
|
2441
|
+
}),
|
|
2442
|
+
...(input.joinColumns != null && {
|
|
2443
|
+
joinColumns: serializeAws_restJson1AnalysisRuleColumnList(input.joinColumns, context),
|
|
2444
|
+
}),
|
|
2445
|
+
...(input.joinRequired != null && { joinRequired: input.joinRequired }),
|
|
2446
|
+
...(input.outputConstraints != null && {
|
|
2447
|
+
outputConstraints: serializeAws_restJson1AggregationConstraints(input.outputConstraints, context),
|
|
2448
|
+
}),
|
|
2449
|
+
...(input.scalarFunctions != null && {
|
|
2450
|
+
scalarFunctions: serializeAws_restJson1ScalarFunctionsList(input.scalarFunctions, context),
|
|
2451
|
+
}),
|
|
2452
|
+
};
|
|
2453
|
+
};
|
|
2454
|
+
const serializeAws_restJson1AnalysisRuleColumnList = (input, context) => {
|
|
2455
|
+
return input
|
|
2456
|
+
.filter((e) => e != null)
|
|
2457
|
+
.map((entry) => {
|
|
2458
|
+
return entry;
|
|
2459
|
+
});
|
|
2460
|
+
};
|
|
2461
|
+
const serializeAws_restJson1AnalysisRuleColumnNameList = (input, context) => {
|
|
2462
|
+
return input
|
|
2463
|
+
.filter((e) => e != null)
|
|
2464
|
+
.map((entry) => {
|
|
2465
|
+
return entry;
|
|
2466
|
+
});
|
|
2467
|
+
};
|
|
2468
|
+
const serializeAws_restJson1AnalysisRuleList = (input, context) => {
|
|
2469
|
+
return {
|
|
2470
|
+
...(input.joinColumns != null && {
|
|
2471
|
+
joinColumns: serializeAws_restJson1AnalysisRuleColumnList(input.joinColumns, context),
|
|
2472
|
+
}),
|
|
2473
|
+
...(input.listColumns != null && {
|
|
2474
|
+
listColumns: serializeAws_restJson1AnalysisRuleColumnList(input.listColumns, context),
|
|
2475
|
+
}),
|
|
2476
|
+
};
|
|
2477
|
+
};
|
|
2478
|
+
const serializeAws_restJson1ConfiguredTableAnalysisRulePolicy = (input, context) => {
|
|
2479
|
+
return ConfiguredTableAnalysisRulePolicy.visit(input, {
|
|
2480
|
+
v1: (value) => ({ v1: serializeAws_restJson1ConfiguredTableAnalysisRulePolicyV1(value, context) }),
|
|
2481
|
+
_: (name, value) => ({ name: value }),
|
|
2482
|
+
});
|
|
2483
|
+
};
|
|
2484
|
+
const serializeAws_restJson1ConfiguredTableAnalysisRulePolicyV1 = (input, context) => {
|
|
2485
|
+
return ConfiguredTableAnalysisRulePolicyV1.visit(input, {
|
|
2486
|
+
aggregation: (value) => ({ aggregation: serializeAws_restJson1AnalysisRuleAggregation(value, context) }),
|
|
2487
|
+
list: (value) => ({ list: serializeAws_restJson1AnalysisRuleList(value, context) }),
|
|
2488
|
+
_: (name, value) => ({ name: value }),
|
|
2489
|
+
});
|
|
2490
|
+
};
|
|
2491
|
+
const serializeAws_restJson1DataEncryptionMetadata = (input, context) => {
|
|
2492
|
+
return {
|
|
2493
|
+
...(input.allowCleartext != null && { allowCleartext: input.allowCleartext }),
|
|
2494
|
+
...(input.allowDuplicates != null && { allowDuplicates: input.allowDuplicates }),
|
|
2495
|
+
...(input.allowJoinsOnColumnsWithDifferentNames != null && {
|
|
2496
|
+
allowJoinsOnColumnsWithDifferentNames: input.allowJoinsOnColumnsWithDifferentNames,
|
|
2497
|
+
}),
|
|
2498
|
+
...(input.preserveNulls != null && { preserveNulls: input.preserveNulls }),
|
|
2499
|
+
};
|
|
2500
|
+
};
|
|
2501
|
+
const serializeAws_restJson1GlueTableReference = (input, context) => {
|
|
2502
|
+
return {
|
|
2503
|
+
...(input.databaseName != null && { databaseName: input.databaseName }),
|
|
2504
|
+
...(input.tableName != null && { tableName: input.tableName }),
|
|
2505
|
+
};
|
|
2506
|
+
};
|
|
2507
|
+
const serializeAws_restJson1MemberAbilities = (input, context) => {
|
|
2508
|
+
return input
|
|
2509
|
+
.filter((e) => e != null)
|
|
2510
|
+
.map((entry) => {
|
|
2511
|
+
return entry;
|
|
2512
|
+
});
|
|
2513
|
+
};
|
|
2514
|
+
const serializeAws_restJson1MemberList = (input, context) => {
|
|
2515
|
+
return input
|
|
2516
|
+
.filter((e) => e != null)
|
|
2517
|
+
.map((entry) => {
|
|
2518
|
+
return serializeAws_restJson1MemberSpecification(entry, context);
|
|
2519
|
+
});
|
|
2520
|
+
};
|
|
2521
|
+
const serializeAws_restJson1MemberSpecification = (input, context) => {
|
|
2522
|
+
return {
|
|
2523
|
+
...(input.accountId != null && { accountId: input.accountId }),
|
|
2524
|
+
...(input.displayName != null && { displayName: input.displayName }),
|
|
2525
|
+
...(input.memberAbilities != null && {
|
|
2526
|
+
memberAbilities: serializeAws_restJson1MemberAbilities(input.memberAbilities, context),
|
|
2527
|
+
}),
|
|
2528
|
+
};
|
|
2529
|
+
};
|
|
2530
|
+
const serializeAws_restJson1ProtectedQueryOutputConfiguration = (input, context) => {
|
|
2531
|
+
return ProtectedQueryOutputConfiguration.visit(input, {
|
|
2532
|
+
s3: (value) => ({ s3: serializeAws_restJson1ProtectedQueryS3OutputConfiguration(value, context) }),
|
|
2533
|
+
_: (name, value) => ({ name: value }),
|
|
2534
|
+
});
|
|
2535
|
+
};
|
|
2536
|
+
const serializeAws_restJson1ProtectedQueryResultConfiguration = (input, context) => {
|
|
2537
|
+
return {
|
|
2538
|
+
...(input.outputConfiguration != null && {
|
|
2539
|
+
outputConfiguration: serializeAws_restJson1ProtectedQueryOutputConfiguration(input.outputConfiguration, context),
|
|
2540
|
+
}),
|
|
2541
|
+
};
|
|
2542
|
+
};
|
|
2543
|
+
const serializeAws_restJson1ProtectedQueryS3OutputConfiguration = (input, context) => {
|
|
2544
|
+
return {
|
|
2545
|
+
...(input.bucket != null && { bucket: input.bucket }),
|
|
2546
|
+
...(input.keyPrefix != null && { keyPrefix: input.keyPrefix }),
|
|
2547
|
+
...(input.resultFormat != null && { resultFormat: input.resultFormat }),
|
|
2548
|
+
};
|
|
2549
|
+
};
|
|
2550
|
+
const serializeAws_restJson1ProtectedQuerySQLParameters = (input, context) => {
|
|
2551
|
+
return {
|
|
2552
|
+
...(input.queryString != null && { queryString: input.queryString }),
|
|
2553
|
+
};
|
|
2554
|
+
};
|
|
2555
|
+
const serializeAws_restJson1ScalarFunctionsList = (input, context) => {
|
|
2556
|
+
return input
|
|
2557
|
+
.filter((e) => e != null)
|
|
2558
|
+
.map((entry) => {
|
|
2559
|
+
return entry;
|
|
2560
|
+
});
|
|
2561
|
+
};
|
|
2562
|
+
const serializeAws_restJson1TableAliasList = (input, context) => {
|
|
2563
|
+
return input
|
|
2564
|
+
.filter((e) => e != null)
|
|
2565
|
+
.map((entry) => {
|
|
2566
|
+
return entry;
|
|
2567
|
+
});
|
|
2568
|
+
};
|
|
2569
|
+
const serializeAws_restJson1TableReference = (input, context) => {
|
|
2570
|
+
return TableReference.visit(input, {
|
|
2571
|
+
glue: (value) => ({ glue: serializeAws_restJson1GlueTableReference(value, context) }),
|
|
2572
|
+
_: (name, value) => ({ name: value }),
|
|
2573
|
+
});
|
|
2574
|
+
};
|
|
2575
|
+
const deserializeAws_restJson1AggregateColumn = (output, context) => {
|
|
2576
|
+
return {
|
|
2577
|
+
columnNames: output.columnNames != null
|
|
2578
|
+
? deserializeAws_restJson1AnalysisRuleColumnNameList(output.columnNames, context)
|
|
2579
|
+
: undefined,
|
|
2580
|
+
function: __expectString(output.function),
|
|
2581
|
+
};
|
|
2582
|
+
};
|
|
2583
|
+
const deserializeAws_restJson1AggregateColumnList = (output, context) => {
|
|
2584
|
+
const retVal = (output || [])
|
|
2585
|
+
.filter((e) => e != null)
|
|
2586
|
+
.map((entry) => {
|
|
2587
|
+
if (entry === null) {
|
|
2588
|
+
return null;
|
|
2589
|
+
}
|
|
2590
|
+
return deserializeAws_restJson1AggregateColumn(entry, context);
|
|
2591
|
+
});
|
|
2592
|
+
return retVal;
|
|
2593
|
+
};
|
|
2594
|
+
const deserializeAws_restJson1AggregationConstraint = (output, context) => {
|
|
2595
|
+
return {
|
|
2596
|
+
columnName: __expectString(output.columnName),
|
|
2597
|
+
minimum: __expectInt32(output.minimum),
|
|
2598
|
+
type: __expectString(output.type),
|
|
2599
|
+
};
|
|
2600
|
+
};
|
|
2601
|
+
const deserializeAws_restJson1AggregationConstraints = (output, context) => {
|
|
2602
|
+
const retVal = (output || [])
|
|
2603
|
+
.filter((e) => e != null)
|
|
2604
|
+
.map((entry) => {
|
|
2605
|
+
if (entry === null) {
|
|
2606
|
+
return null;
|
|
2607
|
+
}
|
|
2608
|
+
return deserializeAws_restJson1AggregationConstraint(entry, context);
|
|
2609
|
+
});
|
|
2610
|
+
return retVal;
|
|
2611
|
+
};
|
|
2612
|
+
const deserializeAws_restJson1AllowedColumnList = (output, context) => {
|
|
2613
|
+
const retVal = (output || [])
|
|
2614
|
+
.filter((e) => e != null)
|
|
2615
|
+
.map((entry) => {
|
|
2616
|
+
if (entry === null) {
|
|
2617
|
+
return null;
|
|
2618
|
+
}
|
|
2619
|
+
return __expectString(entry);
|
|
2620
|
+
});
|
|
2621
|
+
return retVal;
|
|
2622
|
+
};
|
|
2623
|
+
const deserializeAws_restJson1AnalysisRule = (output, context) => {
|
|
2624
|
+
return {
|
|
2625
|
+
collaborationId: __expectString(output.collaborationId),
|
|
2626
|
+
createTime: output.createTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createTime))) : undefined,
|
|
2627
|
+
name: __expectString(output.name),
|
|
2628
|
+
policy: output.policy != null
|
|
2629
|
+
? deserializeAws_restJson1AnalysisRulePolicy(__expectUnion(output.policy), context)
|
|
2630
|
+
: undefined,
|
|
2631
|
+
type: __expectString(output.type),
|
|
2632
|
+
updateTime: output.updateTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updateTime))) : undefined,
|
|
2633
|
+
};
|
|
2634
|
+
};
|
|
2635
|
+
const deserializeAws_restJson1AnalysisRuleAggregation = (output, context) => {
|
|
2636
|
+
return {
|
|
2637
|
+
aggregateColumns: output.aggregateColumns != null
|
|
2638
|
+
? deserializeAws_restJson1AggregateColumnList(output.aggregateColumns, context)
|
|
2639
|
+
: undefined,
|
|
2640
|
+
dimensionColumns: output.dimensionColumns != null
|
|
2641
|
+
? deserializeAws_restJson1AnalysisRuleColumnList(output.dimensionColumns, context)
|
|
2642
|
+
: undefined,
|
|
2643
|
+
joinColumns: output.joinColumns != null
|
|
2644
|
+
? deserializeAws_restJson1AnalysisRuleColumnList(output.joinColumns, context)
|
|
2645
|
+
: undefined,
|
|
2646
|
+
joinRequired: __expectString(output.joinRequired),
|
|
2647
|
+
outputConstraints: output.outputConstraints != null
|
|
2648
|
+
? deserializeAws_restJson1AggregationConstraints(output.outputConstraints, context)
|
|
2649
|
+
: undefined,
|
|
2650
|
+
scalarFunctions: output.scalarFunctions != null
|
|
2651
|
+
? deserializeAws_restJson1ScalarFunctionsList(output.scalarFunctions, context)
|
|
2652
|
+
: undefined,
|
|
2653
|
+
};
|
|
2654
|
+
};
|
|
2655
|
+
const deserializeAws_restJson1AnalysisRuleColumnList = (output, context) => {
|
|
2656
|
+
const retVal = (output || [])
|
|
2657
|
+
.filter((e) => e != null)
|
|
2658
|
+
.map((entry) => {
|
|
2659
|
+
if (entry === null) {
|
|
2660
|
+
return null;
|
|
2661
|
+
}
|
|
2662
|
+
return __expectString(entry);
|
|
2663
|
+
});
|
|
2664
|
+
return retVal;
|
|
2665
|
+
};
|
|
2666
|
+
const deserializeAws_restJson1AnalysisRuleColumnNameList = (output, context) => {
|
|
2667
|
+
const retVal = (output || [])
|
|
2668
|
+
.filter((e) => e != null)
|
|
2669
|
+
.map((entry) => {
|
|
2670
|
+
if (entry === null) {
|
|
2671
|
+
return null;
|
|
2672
|
+
}
|
|
2673
|
+
return __expectString(entry);
|
|
2674
|
+
});
|
|
2675
|
+
return retVal;
|
|
2676
|
+
};
|
|
2677
|
+
const deserializeAws_restJson1AnalysisRuleList = (output, context) => {
|
|
2678
|
+
return {
|
|
2679
|
+
joinColumns: output.joinColumns != null
|
|
2680
|
+
? deserializeAws_restJson1AnalysisRuleColumnList(output.joinColumns, context)
|
|
2681
|
+
: undefined,
|
|
2682
|
+
listColumns: output.listColumns != null
|
|
2683
|
+
? deserializeAws_restJson1AnalysisRuleColumnList(output.listColumns, context)
|
|
2684
|
+
: undefined,
|
|
2685
|
+
};
|
|
2686
|
+
};
|
|
2687
|
+
const deserializeAws_restJson1AnalysisRulePolicy = (output, context) => {
|
|
2688
|
+
if (output.v1 != null) {
|
|
2689
|
+
return {
|
|
2690
|
+
v1: deserializeAws_restJson1AnalysisRulePolicyV1(__expectUnion(output.v1), context),
|
|
2691
|
+
};
|
|
2692
|
+
}
|
|
2693
|
+
return { $unknown: Object.entries(output)[0] };
|
|
2694
|
+
};
|
|
2695
|
+
const deserializeAws_restJson1AnalysisRulePolicyV1 = (output, context) => {
|
|
2696
|
+
if (output.aggregation != null) {
|
|
2697
|
+
return {
|
|
2698
|
+
aggregation: deserializeAws_restJson1AnalysisRuleAggregation(output.aggregation, context),
|
|
2699
|
+
};
|
|
2700
|
+
}
|
|
2701
|
+
if (output.list != null) {
|
|
2702
|
+
return {
|
|
2703
|
+
list: deserializeAws_restJson1AnalysisRuleList(output.list, context),
|
|
2704
|
+
};
|
|
2705
|
+
}
|
|
2706
|
+
return { $unknown: Object.entries(output)[0] };
|
|
2707
|
+
};
|
|
2708
|
+
const deserializeAws_restJson1AnalysisRuleTypeList = (output, context) => {
|
|
2709
|
+
const retVal = (output || [])
|
|
2710
|
+
.filter((e) => e != null)
|
|
2711
|
+
.map((entry) => {
|
|
2712
|
+
if (entry === null) {
|
|
2713
|
+
return null;
|
|
2714
|
+
}
|
|
2715
|
+
return __expectString(entry);
|
|
2716
|
+
});
|
|
2717
|
+
return retVal;
|
|
2718
|
+
};
|
|
2719
|
+
const deserializeAws_restJson1BatchGetSchemaError = (output, context) => {
|
|
2720
|
+
return {
|
|
2721
|
+
code: __expectString(output.code),
|
|
2722
|
+
message: __expectString(output.message),
|
|
2723
|
+
name: __expectString(output.name),
|
|
2724
|
+
};
|
|
2725
|
+
};
|
|
2726
|
+
const deserializeAws_restJson1BatchGetSchemaErrorList = (output, context) => {
|
|
2727
|
+
const retVal = (output || [])
|
|
2728
|
+
.filter((e) => e != null)
|
|
2729
|
+
.map((entry) => {
|
|
2730
|
+
if (entry === null) {
|
|
2731
|
+
return null;
|
|
2732
|
+
}
|
|
2733
|
+
return deserializeAws_restJson1BatchGetSchemaError(entry, context);
|
|
2734
|
+
});
|
|
2735
|
+
return retVal;
|
|
2736
|
+
};
|
|
2737
|
+
const deserializeAws_restJson1Collaboration = (output, context) => {
|
|
2738
|
+
return {
|
|
2739
|
+
arn: __expectString(output.arn),
|
|
2740
|
+
createTime: output.createTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createTime))) : undefined,
|
|
2741
|
+
creatorAccountId: __expectString(output.creatorAccountId),
|
|
2742
|
+
creatorDisplayName: __expectString(output.creatorDisplayName),
|
|
2743
|
+
dataEncryptionMetadata: output.dataEncryptionMetadata != null
|
|
2744
|
+
? deserializeAws_restJson1DataEncryptionMetadata(output.dataEncryptionMetadata, context)
|
|
2745
|
+
: undefined,
|
|
2746
|
+
description: __expectString(output.description),
|
|
2747
|
+
id: __expectString(output.id),
|
|
2748
|
+
memberStatus: __expectString(output.memberStatus),
|
|
2749
|
+
membershipArn: __expectString(output.membershipArn),
|
|
2750
|
+
membershipId: __expectString(output.membershipId),
|
|
2751
|
+
name: __expectString(output.name),
|
|
2752
|
+
queryLogStatus: __expectString(output.queryLogStatus),
|
|
2753
|
+
updateTime: output.updateTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updateTime))) : undefined,
|
|
2754
|
+
};
|
|
2755
|
+
};
|
|
2756
|
+
const deserializeAws_restJson1CollaborationSummary = (output, context) => {
|
|
2757
|
+
return {
|
|
2758
|
+
arn: __expectString(output.arn),
|
|
2759
|
+
createTime: output.createTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createTime))) : undefined,
|
|
2760
|
+
creatorAccountId: __expectString(output.creatorAccountId),
|
|
2761
|
+
creatorDisplayName: __expectString(output.creatorDisplayName),
|
|
2762
|
+
id: __expectString(output.id),
|
|
2763
|
+
memberStatus: __expectString(output.memberStatus),
|
|
2764
|
+
membershipArn: __expectString(output.membershipArn),
|
|
2765
|
+
membershipId: __expectString(output.membershipId),
|
|
2766
|
+
name: __expectString(output.name),
|
|
2767
|
+
updateTime: output.updateTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updateTime))) : undefined,
|
|
2768
|
+
};
|
|
2769
|
+
};
|
|
2770
|
+
const deserializeAws_restJson1CollaborationSummaryList = (output, context) => {
|
|
2771
|
+
const retVal = (output || [])
|
|
2772
|
+
.filter((e) => e != null)
|
|
2773
|
+
.map((entry) => {
|
|
2774
|
+
if (entry === null) {
|
|
2775
|
+
return null;
|
|
2776
|
+
}
|
|
2777
|
+
return deserializeAws_restJson1CollaborationSummary(entry, context);
|
|
2778
|
+
});
|
|
2779
|
+
return retVal;
|
|
2780
|
+
};
|
|
2781
|
+
const deserializeAws_restJson1Column = (output, context) => {
|
|
2782
|
+
return {
|
|
2783
|
+
name: __expectString(output.name),
|
|
2784
|
+
type: __expectString(output.type),
|
|
2785
|
+
};
|
|
2786
|
+
};
|
|
2787
|
+
const deserializeAws_restJson1ColumnList = (output, context) => {
|
|
2788
|
+
const retVal = (output || [])
|
|
2789
|
+
.filter((e) => e != null)
|
|
2790
|
+
.map((entry) => {
|
|
2791
|
+
if (entry === null) {
|
|
2792
|
+
return null;
|
|
2793
|
+
}
|
|
2794
|
+
return deserializeAws_restJson1Column(entry, context);
|
|
2795
|
+
});
|
|
2796
|
+
return retVal;
|
|
2797
|
+
};
|
|
2798
|
+
const deserializeAws_restJson1ConfiguredTable = (output, context) => {
|
|
2799
|
+
return {
|
|
2800
|
+
allowedColumns: output.allowedColumns != null
|
|
2801
|
+
? deserializeAws_restJson1AllowedColumnList(output.allowedColumns, context)
|
|
2802
|
+
: undefined,
|
|
2803
|
+
analysisMethod: __expectString(output.analysisMethod),
|
|
2804
|
+
analysisRuleTypes: output.analysisRuleTypes != null
|
|
2805
|
+
? deserializeAws_restJson1ConfiguredTableAnalysisRuleTypeList(output.analysisRuleTypes, context)
|
|
2806
|
+
: undefined,
|
|
2807
|
+
arn: __expectString(output.arn),
|
|
2808
|
+
createTime: output.createTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createTime))) : undefined,
|
|
2809
|
+
description: __expectString(output.description),
|
|
2810
|
+
id: __expectString(output.id),
|
|
2811
|
+
name: __expectString(output.name),
|
|
2812
|
+
tableReference: output.tableReference != null
|
|
2813
|
+
? deserializeAws_restJson1TableReference(__expectUnion(output.tableReference), context)
|
|
2814
|
+
: undefined,
|
|
2815
|
+
updateTime: output.updateTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updateTime))) : undefined,
|
|
2816
|
+
};
|
|
2817
|
+
};
|
|
2818
|
+
const deserializeAws_restJson1ConfiguredTableAnalysisRule = (output, context) => {
|
|
2819
|
+
return {
|
|
2820
|
+
configuredTableArn: __expectString(output.configuredTableArn),
|
|
2821
|
+
configuredTableId: __expectString(output.configuredTableId),
|
|
2822
|
+
createTime: output.createTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createTime))) : undefined,
|
|
2823
|
+
policy: output.policy != null
|
|
2824
|
+
? deserializeAws_restJson1ConfiguredTableAnalysisRulePolicy(__expectUnion(output.policy), context)
|
|
2825
|
+
: undefined,
|
|
2826
|
+
type: __expectString(output.type),
|
|
2827
|
+
updateTime: output.updateTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updateTime))) : undefined,
|
|
2828
|
+
};
|
|
2829
|
+
};
|
|
2830
|
+
const deserializeAws_restJson1ConfiguredTableAnalysisRulePolicy = (output, context) => {
|
|
2831
|
+
if (output.v1 != null) {
|
|
2832
|
+
return {
|
|
2833
|
+
v1: deserializeAws_restJson1ConfiguredTableAnalysisRulePolicyV1(__expectUnion(output.v1), context),
|
|
2834
|
+
};
|
|
2835
|
+
}
|
|
2836
|
+
return { $unknown: Object.entries(output)[0] };
|
|
2837
|
+
};
|
|
2838
|
+
const deserializeAws_restJson1ConfiguredTableAnalysisRulePolicyV1 = (output, context) => {
|
|
2839
|
+
if (output.aggregation != null) {
|
|
2840
|
+
return {
|
|
2841
|
+
aggregation: deserializeAws_restJson1AnalysisRuleAggregation(output.aggregation, context),
|
|
2842
|
+
};
|
|
2843
|
+
}
|
|
2844
|
+
if (output.list != null) {
|
|
2845
|
+
return {
|
|
2846
|
+
list: deserializeAws_restJson1AnalysisRuleList(output.list, context),
|
|
2847
|
+
};
|
|
2848
|
+
}
|
|
2849
|
+
return { $unknown: Object.entries(output)[0] };
|
|
2850
|
+
};
|
|
2851
|
+
const deserializeAws_restJson1ConfiguredTableAnalysisRuleTypeList = (output, context) => {
|
|
2852
|
+
const retVal = (output || [])
|
|
2853
|
+
.filter((e) => e != null)
|
|
2854
|
+
.map((entry) => {
|
|
2855
|
+
if (entry === null) {
|
|
2856
|
+
return null;
|
|
2857
|
+
}
|
|
2858
|
+
return __expectString(entry);
|
|
2859
|
+
});
|
|
2860
|
+
return retVal;
|
|
2861
|
+
};
|
|
2862
|
+
const deserializeAws_restJson1ConfiguredTableAssociation = (output, context) => {
|
|
2863
|
+
return {
|
|
2864
|
+
arn: __expectString(output.arn),
|
|
2865
|
+
configuredTableArn: __expectString(output.configuredTableArn),
|
|
2866
|
+
configuredTableId: __expectString(output.configuredTableId),
|
|
2867
|
+
createTime: output.createTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createTime))) : undefined,
|
|
2868
|
+
description: __expectString(output.description),
|
|
2869
|
+
id: __expectString(output.id),
|
|
2870
|
+
membershipArn: __expectString(output.membershipArn),
|
|
2871
|
+
membershipId: __expectString(output.membershipId),
|
|
2872
|
+
name: __expectString(output.name),
|
|
2873
|
+
roleArn: __expectString(output.roleArn),
|
|
2874
|
+
updateTime: output.updateTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updateTime))) : undefined,
|
|
2875
|
+
};
|
|
2876
|
+
};
|
|
2877
|
+
const deserializeAws_restJson1ConfiguredTableAssociationSummary = (output, context) => {
|
|
2878
|
+
return {
|
|
2879
|
+
arn: __expectString(output.arn),
|
|
2880
|
+
configuredTableId: __expectString(output.configuredTableId),
|
|
2881
|
+
createTime: output.createTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createTime))) : undefined,
|
|
2882
|
+
id: __expectString(output.id),
|
|
2883
|
+
membershipArn: __expectString(output.membershipArn),
|
|
2884
|
+
membershipId: __expectString(output.membershipId),
|
|
2885
|
+
name: __expectString(output.name),
|
|
2886
|
+
updateTime: output.updateTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updateTime))) : undefined,
|
|
2887
|
+
};
|
|
2888
|
+
};
|
|
2889
|
+
const deserializeAws_restJson1ConfiguredTableAssociationSummaryList = (output, context) => {
|
|
2890
|
+
const retVal = (output || [])
|
|
2891
|
+
.filter((e) => e != null)
|
|
2892
|
+
.map((entry) => {
|
|
2893
|
+
if (entry === null) {
|
|
2894
|
+
return null;
|
|
2895
|
+
}
|
|
2896
|
+
return deserializeAws_restJson1ConfiguredTableAssociationSummary(entry, context);
|
|
2897
|
+
});
|
|
2898
|
+
return retVal;
|
|
2899
|
+
};
|
|
2900
|
+
const deserializeAws_restJson1ConfiguredTableSummary = (output, context) => {
|
|
2901
|
+
return {
|
|
2902
|
+
analysisMethod: __expectString(output.analysisMethod),
|
|
2903
|
+
analysisRuleTypes: output.analysisRuleTypes != null
|
|
2904
|
+
? deserializeAws_restJson1ConfiguredTableAnalysisRuleTypeList(output.analysisRuleTypes, context)
|
|
2905
|
+
: undefined,
|
|
2906
|
+
arn: __expectString(output.arn),
|
|
2907
|
+
createTime: output.createTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createTime))) : undefined,
|
|
2908
|
+
id: __expectString(output.id),
|
|
2909
|
+
name: __expectString(output.name),
|
|
2910
|
+
updateTime: output.updateTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updateTime))) : undefined,
|
|
2911
|
+
};
|
|
2912
|
+
};
|
|
2913
|
+
const deserializeAws_restJson1ConfiguredTableSummaryList = (output, context) => {
|
|
2914
|
+
const retVal = (output || [])
|
|
2915
|
+
.filter((e) => e != null)
|
|
2916
|
+
.map((entry) => {
|
|
2917
|
+
if (entry === null) {
|
|
2918
|
+
return null;
|
|
2919
|
+
}
|
|
2920
|
+
return deserializeAws_restJson1ConfiguredTableSummary(entry, context);
|
|
2921
|
+
});
|
|
2922
|
+
return retVal;
|
|
2923
|
+
};
|
|
2924
|
+
const deserializeAws_restJson1DataEncryptionMetadata = (output, context) => {
|
|
2925
|
+
return {
|
|
2926
|
+
allowCleartext: __expectBoolean(output.allowCleartext),
|
|
2927
|
+
allowDuplicates: __expectBoolean(output.allowDuplicates),
|
|
2928
|
+
allowJoinsOnColumnsWithDifferentNames: __expectBoolean(output.allowJoinsOnColumnsWithDifferentNames),
|
|
2929
|
+
preserveNulls: __expectBoolean(output.preserveNulls),
|
|
2930
|
+
};
|
|
2931
|
+
};
|
|
2932
|
+
const deserializeAws_restJson1GlueTableReference = (output, context) => {
|
|
2933
|
+
return {
|
|
2934
|
+
databaseName: __expectString(output.databaseName),
|
|
2935
|
+
tableName: __expectString(output.tableName),
|
|
2936
|
+
};
|
|
2937
|
+
};
|
|
2938
|
+
const deserializeAws_restJson1MemberAbilities = (output, context) => {
|
|
2939
|
+
const retVal = (output || [])
|
|
2940
|
+
.filter((e) => e != null)
|
|
2941
|
+
.map((entry) => {
|
|
2942
|
+
if (entry === null) {
|
|
2943
|
+
return null;
|
|
2944
|
+
}
|
|
2945
|
+
return __expectString(entry);
|
|
2946
|
+
});
|
|
2947
|
+
return retVal;
|
|
2948
|
+
};
|
|
2949
|
+
const deserializeAws_restJson1Membership = (output, context) => {
|
|
2950
|
+
return {
|
|
2951
|
+
arn: __expectString(output.arn),
|
|
2952
|
+
collaborationArn: __expectString(output.collaborationArn),
|
|
2953
|
+
collaborationCreatorAccountId: __expectString(output.collaborationCreatorAccountId),
|
|
2954
|
+
collaborationCreatorDisplayName: __expectString(output.collaborationCreatorDisplayName),
|
|
2955
|
+
collaborationId: __expectString(output.collaborationId),
|
|
2956
|
+
collaborationName: __expectString(output.collaborationName),
|
|
2957
|
+
createTime: output.createTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createTime))) : undefined,
|
|
2958
|
+
id: __expectString(output.id),
|
|
2959
|
+
memberAbilities: output.memberAbilities != null
|
|
2960
|
+
? deserializeAws_restJson1MemberAbilities(output.memberAbilities, context)
|
|
2961
|
+
: undefined,
|
|
2962
|
+
queryLogStatus: __expectString(output.queryLogStatus),
|
|
2963
|
+
status: __expectString(output.status),
|
|
2964
|
+
updateTime: output.updateTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updateTime))) : undefined,
|
|
2965
|
+
};
|
|
2966
|
+
};
|
|
2967
|
+
const deserializeAws_restJson1MembershipSummary = (output, context) => {
|
|
2968
|
+
return {
|
|
2969
|
+
arn: __expectString(output.arn),
|
|
2970
|
+
collaborationArn: __expectString(output.collaborationArn),
|
|
2971
|
+
collaborationCreatorAccountId: __expectString(output.collaborationCreatorAccountId),
|
|
2972
|
+
collaborationCreatorDisplayName: __expectString(output.collaborationCreatorDisplayName),
|
|
2973
|
+
collaborationId: __expectString(output.collaborationId),
|
|
2974
|
+
collaborationName: __expectString(output.collaborationName),
|
|
2975
|
+
createTime: output.createTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createTime))) : undefined,
|
|
2976
|
+
id: __expectString(output.id),
|
|
2977
|
+
memberAbilities: output.memberAbilities != null
|
|
2978
|
+
? deserializeAws_restJson1MemberAbilities(output.memberAbilities, context)
|
|
2979
|
+
: undefined,
|
|
2980
|
+
status: __expectString(output.status),
|
|
2981
|
+
updateTime: output.updateTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updateTime))) : undefined,
|
|
2982
|
+
};
|
|
2983
|
+
};
|
|
2984
|
+
const deserializeAws_restJson1MembershipSummaryList = (output, context) => {
|
|
2985
|
+
const retVal = (output || [])
|
|
2986
|
+
.filter((e) => e != null)
|
|
2987
|
+
.map((entry) => {
|
|
2988
|
+
if (entry === null) {
|
|
2989
|
+
return null;
|
|
2990
|
+
}
|
|
2991
|
+
return deserializeAws_restJson1MembershipSummary(entry, context);
|
|
2992
|
+
});
|
|
2993
|
+
return retVal;
|
|
2994
|
+
};
|
|
2995
|
+
const deserializeAws_restJson1MemberSummary = (output, context) => {
|
|
2996
|
+
return {
|
|
2997
|
+
abilities: output.abilities != null ? deserializeAws_restJson1MemberAbilities(output.abilities, context) : undefined,
|
|
2998
|
+
accountId: __expectString(output.accountId),
|
|
2999
|
+
createTime: output.createTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createTime))) : undefined,
|
|
3000
|
+
displayName: __expectString(output.displayName),
|
|
3001
|
+
membershipArn: __expectString(output.membershipArn),
|
|
3002
|
+
membershipId: __expectString(output.membershipId),
|
|
3003
|
+
status: __expectString(output.status),
|
|
3004
|
+
updateTime: output.updateTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updateTime))) : undefined,
|
|
3005
|
+
};
|
|
3006
|
+
};
|
|
3007
|
+
const deserializeAws_restJson1MemberSummaryList = (output, context) => {
|
|
3008
|
+
const retVal = (output || [])
|
|
3009
|
+
.filter((e) => e != null)
|
|
3010
|
+
.map((entry) => {
|
|
3011
|
+
if (entry === null) {
|
|
3012
|
+
return null;
|
|
3013
|
+
}
|
|
3014
|
+
return deserializeAws_restJson1MemberSummary(entry, context);
|
|
3015
|
+
});
|
|
3016
|
+
return retVal;
|
|
3017
|
+
};
|
|
3018
|
+
const deserializeAws_restJson1ProtectedQuery = (output, context) => {
|
|
3019
|
+
return {
|
|
3020
|
+
createTime: output.createTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createTime))) : undefined,
|
|
3021
|
+
error: output.error != null ? deserializeAws_restJson1ProtectedQueryError(output.error, context) : undefined,
|
|
3022
|
+
id: __expectString(output.id),
|
|
3023
|
+
membershipArn: __expectString(output.membershipArn),
|
|
3024
|
+
membershipId: __expectString(output.membershipId),
|
|
3025
|
+
result: output.result != null ? deserializeAws_restJson1ProtectedQueryResult(output.result, context) : undefined,
|
|
3026
|
+
resultConfiguration: output.resultConfiguration != null
|
|
3027
|
+
? deserializeAws_restJson1ProtectedQueryResultConfiguration(output.resultConfiguration, context)
|
|
3028
|
+
: undefined,
|
|
3029
|
+
sqlParameters: output.sqlParameters != null
|
|
3030
|
+
? deserializeAws_restJson1ProtectedQuerySQLParameters(output.sqlParameters, context)
|
|
3031
|
+
: undefined,
|
|
3032
|
+
statistics: output.statistics != null
|
|
3033
|
+
? deserializeAws_restJson1ProtectedQueryStatistics(output.statistics, context)
|
|
3034
|
+
: undefined,
|
|
3035
|
+
status: __expectString(output.status),
|
|
3036
|
+
};
|
|
3037
|
+
};
|
|
3038
|
+
const deserializeAws_restJson1ProtectedQueryError = (output, context) => {
|
|
3039
|
+
return {
|
|
3040
|
+
code: __expectString(output.code),
|
|
3041
|
+
message: __expectString(output.message),
|
|
3042
|
+
};
|
|
3043
|
+
};
|
|
3044
|
+
const deserializeAws_restJson1ProtectedQueryOutput = (output, context) => {
|
|
3045
|
+
if (output.s3 != null) {
|
|
3046
|
+
return {
|
|
3047
|
+
s3: deserializeAws_restJson1ProtectedQueryS3Output(output.s3, context),
|
|
3048
|
+
};
|
|
3049
|
+
}
|
|
3050
|
+
return { $unknown: Object.entries(output)[0] };
|
|
3051
|
+
};
|
|
3052
|
+
const deserializeAws_restJson1ProtectedQueryOutputConfiguration = (output, context) => {
|
|
3053
|
+
if (output.s3 != null) {
|
|
3054
|
+
return {
|
|
3055
|
+
s3: deserializeAws_restJson1ProtectedQueryS3OutputConfiguration(output.s3, context),
|
|
3056
|
+
};
|
|
3057
|
+
}
|
|
3058
|
+
return { $unknown: Object.entries(output)[0] };
|
|
3059
|
+
};
|
|
3060
|
+
const deserializeAws_restJson1ProtectedQueryResult = (output, context) => {
|
|
3061
|
+
return {
|
|
3062
|
+
output: output.output != null
|
|
3063
|
+
? deserializeAws_restJson1ProtectedQueryOutput(__expectUnion(output.output), context)
|
|
3064
|
+
: undefined,
|
|
3065
|
+
};
|
|
3066
|
+
};
|
|
3067
|
+
const deserializeAws_restJson1ProtectedQueryResultConfiguration = (output, context) => {
|
|
3068
|
+
return {
|
|
3069
|
+
outputConfiguration: output.outputConfiguration != null
|
|
3070
|
+
? deserializeAws_restJson1ProtectedQueryOutputConfiguration(__expectUnion(output.outputConfiguration), context)
|
|
3071
|
+
: undefined,
|
|
3072
|
+
};
|
|
3073
|
+
};
|
|
3074
|
+
const deserializeAws_restJson1ProtectedQueryS3Output = (output, context) => {
|
|
3075
|
+
return {
|
|
3076
|
+
location: __expectString(output.location),
|
|
3077
|
+
};
|
|
3078
|
+
};
|
|
3079
|
+
const deserializeAws_restJson1ProtectedQueryS3OutputConfiguration = (output, context) => {
|
|
3080
|
+
return {
|
|
3081
|
+
bucket: __expectString(output.bucket),
|
|
3082
|
+
keyPrefix: __expectString(output.keyPrefix),
|
|
3083
|
+
resultFormat: __expectString(output.resultFormat),
|
|
3084
|
+
};
|
|
3085
|
+
};
|
|
3086
|
+
const deserializeAws_restJson1ProtectedQuerySQLParameters = (output, context) => {
|
|
3087
|
+
return {
|
|
3088
|
+
queryString: __expectString(output.queryString),
|
|
3089
|
+
};
|
|
3090
|
+
};
|
|
3091
|
+
const deserializeAws_restJson1ProtectedQueryStatistics = (output, context) => {
|
|
3092
|
+
return {
|
|
3093
|
+
totalDurationInMillis: __expectLong(output.totalDurationInMillis),
|
|
3094
|
+
};
|
|
3095
|
+
};
|
|
3096
|
+
const deserializeAws_restJson1ProtectedQuerySummary = (output, context) => {
|
|
3097
|
+
return {
|
|
3098
|
+
createTime: output.createTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createTime))) : undefined,
|
|
3099
|
+
id: __expectString(output.id),
|
|
3100
|
+
membershipArn: __expectString(output.membershipArn),
|
|
3101
|
+
membershipId: __expectString(output.membershipId),
|
|
3102
|
+
status: __expectString(output.status),
|
|
3103
|
+
};
|
|
3104
|
+
};
|
|
3105
|
+
const deserializeAws_restJson1ProtectedQuerySummaryList = (output, context) => {
|
|
3106
|
+
const retVal = (output || [])
|
|
3107
|
+
.filter((e) => e != null)
|
|
3108
|
+
.map((entry) => {
|
|
3109
|
+
if (entry === null) {
|
|
3110
|
+
return null;
|
|
3111
|
+
}
|
|
3112
|
+
return deserializeAws_restJson1ProtectedQuerySummary(entry, context);
|
|
3113
|
+
});
|
|
3114
|
+
return retVal;
|
|
3115
|
+
};
|
|
3116
|
+
const deserializeAws_restJson1ScalarFunctionsList = (output, context) => {
|
|
3117
|
+
const retVal = (output || [])
|
|
3118
|
+
.filter((e) => e != null)
|
|
3119
|
+
.map((entry) => {
|
|
3120
|
+
if (entry === null) {
|
|
3121
|
+
return null;
|
|
3122
|
+
}
|
|
3123
|
+
return __expectString(entry);
|
|
3124
|
+
});
|
|
3125
|
+
return retVal;
|
|
3126
|
+
};
|
|
3127
|
+
const deserializeAws_restJson1Schema = (output, context) => {
|
|
3128
|
+
return {
|
|
3129
|
+
analysisMethod: __expectString(output.analysisMethod),
|
|
3130
|
+
analysisRuleTypes: output.analysisRuleTypes != null
|
|
3131
|
+
? deserializeAws_restJson1AnalysisRuleTypeList(output.analysisRuleTypes, context)
|
|
3132
|
+
: undefined,
|
|
3133
|
+
collaborationArn: __expectString(output.collaborationArn),
|
|
3134
|
+
collaborationId: __expectString(output.collaborationId),
|
|
3135
|
+
columns: output.columns != null ? deserializeAws_restJson1ColumnList(output.columns, context) : undefined,
|
|
3136
|
+
createTime: output.createTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createTime))) : undefined,
|
|
3137
|
+
creatorAccountId: __expectString(output.creatorAccountId),
|
|
3138
|
+
description: __expectString(output.description),
|
|
3139
|
+
name: __expectString(output.name),
|
|
3140
|
+
partitionKeys: output.partitionKeys != null ? deserializeAws_restJson1ColumnList(output.partitionKeys, context) : undefined,
|
|
3141
|
+
type: __expectString(output.type),
|
|
3142
|
+
updateTime: output.updateTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updateTime))) : undefined,
|
|
3143
|
+
};
|
|
3144
|
+
};
|
|
3145
|
+
const deserializeAws_restJson1SchemaList = (output, context) => {
|
|
3146
|
+
const retVal = (output || [])
|
|
3147
|
+
.filter((e) => e != null)
|
|
3148
|
+
.map((entry) => {
|
|
3149
|
+
if (entry === null) {
|
|
3150
|
+
return null;
|
|
3151
|
+
}
|
|
3152
|
+
return deserializeAws_restJson1Schema(entry, context);
|
|
3153
|
+
});
|
|
3154
|
+
return retVal;
|
|
3155
|
+
};
|
|
3156
|
+
const deserializeAws_restJson1SchemaSummary = (output, context) => {
|
|
3157
|
+
return {
|
|
3158
|
+
analysisMethod: __expectString(output.analysisMethod),
|
|
3159
|
+
analysisRuleTypes: output.analysisRuleTypes != null
|
|
3160
|
+
? deserializeAws_restJson1AnalysisRuleTypeList(output.analysisRuleTypes, context)
|
|
3161
|
+
: undefined,
|
|
3162
|
+
collaborationArn: __expectString(output.collaborationArn),
|
|
3163
|
+
collaborationId: __expectString(output.collaborationId),
|
|
3164
|
+
createTime: output.createTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createTime))) : undefined,
|
|
3165
|
+
creatorAccountId: __expectString(output.creatorAccountId),
|
|
3166
|
+
name: __expectString(output.name),
|
|
3167
|
+
type: __expectString(output.type),
|
|
3168
|
+
updateTime: output.updateTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updateTime))) : undefined,
|
|
3169
|
+
};
|
|
3170
|
+
};
|
|
3171
|
+
const deserializeAws_restJson1SchemaSummaryList = (output, context) => {
|
|
3172
|
+
const retVal = (output || [])
|
|
3173
|
+
.filter((e) => e != null)
|
|
3174
|
+
.map((entry) => {
|
|
3175
|
+
if (entry === null) {
|
|
3176
|
+
return null;
|
|
3177
|
+
}
|
|
3178
|
+
return deserializeAws_restJson1SchemaSummary(entry, context);
|
|
3179
|
+
});
|
|
3180
|
+
return retVal;
|
|
3181
|
+
};
|
|
3182
|
+
const deserializeAws_restJson1TableReference = (output, context) => {
|
|
3183
|
+
if (output.glue != null) {
|
|
3184
|
+
return {
|
|
3185
|
+
glue: deserializeAws_restJson1GlueTableReference(output.glue, context),
|
|
3186
|
+
};
|
|
3187
|
+
}
|
|
3188
|
+
return { $unknown: Object.entries(output)[0] };
|
|
3189
|
+
};
|
|
3190
|
+
const deserializeAws_restJson1ValidationExceptionField = (output, context) => {
|
|
3191
|
+
return {
|
|
3192
|
+
message: __expectString(output.message),
|
|
3193
|
+
name: __expectString(output.name),
|
|
3194
|
+
};
|
|
3195
|
+
};
|
|
3196
|
+
const deserializeAws_restJson1ValidationExceptionFieldList = (output, context) => {
|
|
3197
|
+
const retVal = (output || [])
|
|
3198
|
+
.filter((e) => e != null)
|
|
3199
|
+
.map((entry) => {
|
|
3200
|
+
if (entry === null) {
|
|
3201
|
+
return null;
|
|
3202
|
+
}
|
|
3203
|
+
return deserializeAws_restJson1ValidationExceptionField(entry, context);
|
|
3204
|
+
});
|
|
3205
|
+
return retVal;
|
|
3206
|
+
};
|
|
3207
|
+
const deserializeMetadata = (output) => ({
|
|
3208
|
+
httpStatusCode: output.statusCode,
|
|
3209
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
3210
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
3211
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
3212
|
+
});
|
|
3213
|
+
const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
3214
|
+
if (streamBody instanceof Uint8Array) {
|
|
3215
|
+
return Promise.resolve(streamBody);
|
|
3216
|
+
}
|
|
3217
|
+
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
3218
|
+
};
|
|
3219
|
+
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
3220
|
+
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
3221
|
+
value !== null &&
|
|
3222
|
+
value !== "" &&
|
|
3223
|
+
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
3224
|
+
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
3225
|
+
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
3226
|
+
if (encoded.length) {
|
|
3227
|
+
return JSON.parse(encoded);
|
|
3228
|
+
}
|
|
3229
|
+
return {};
|
|
3230
|
+
});
|
|
3231
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
3232
|
+
const value = await parseBody(errorBody, context);
|
|
3233
|
+
value.message = value.message ?? value.Message;
|
|
3234
|
+
return value;
|
|
3235
|
+
};
|
|
3236
|
+
const loadRestJsonErrorCode = (output, data) => {
|
|
3237
|
+
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
3238
|
+
const sanitizeErrorCode = (rawValue) => {
|
|
3239
|
+
let cleanValue = rawValue;
|
|
3240
|
+
if (typeof cleanValue === "number") {
|
|
3241
|
+
cleanValue = cleanValue.toString();
|
|
3242
|
+
}
|
|
3243
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
3244
|
+
cleanValue = cleanValue.split(",")[0];
|
|
3245
|
+
}
|
|
3246
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
3247
|
+
cleanValue = cleanValue.split(":")[0];
|
|
3248
|
+
}
|
|
3249
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
3250
|
+
cleanValue = cleanValue.split("#")[1];
|
|
3251
|
+
}
|
|
3252
|
+
return cleanValue;
|
|
3253
|
+
};
|
|
3254
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
3255
|
+
if (headerKey !== undefined) {
|
|
3256
|
+
return sanitizeErrorCode(output.headers[headerKey]);
|
|
3257
|
+
}
|
|
3258
|
+
if (data.code !== undefined) {
|
|
3259
|
+
return sanitizeErrorCode(data.code);
|
|
3260
|
+
}
|
|
3261
|
+
if (data["__type"] !== undefined) {
|
|
3262
|
+
return sanitizeErrorCode(data["__type"]);
|
|
3263
|
+
}
|
|
3264
|
+
};
|