@aws-sdk/client-redshift-serverless 3.107.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/LICENSE +201 -0
- package/README.md +225 -0
- package/dist-cjs/RedshiftServerless.js +562 -0
- package/dist-cjs/RedshiftServerlessClient.js +37 -0
- package/dist-cjs/commands/ConvertRecoveryPointToSnapshotCommand.js +36 -0
- package/dist-cjs/commands/CreateEndpointAccessCommand.js +36 -0
- package/dist-cjs/commands/CreateNamespaceCommand.js +36 -0
- package/dist-cjs/commands/CreateSnapshotCommand.js +36 -0
- package/dist-cjs/commands/CreateUsageLimitCommand.js +36 -0
- package/dist-cjs/commands/CreateWorkgroupCommand.js +36 -0
- package/dist-cjs/commands/DeleteEndpointAccessCommand.js +36 -0
- package/dist-cjs/commands/DeleteNamespaceCommand.js +36 -0
- package/dist-cjs/commands/DeleteResourcePolicyCommand.js +36 -0
- package/dist-cjs/commands/DeleteSnapshotCommand.js +36 -0
- package/dist-cjs/commands/DeleteUsageLimitCommand.js +36 -0
- package/dist-cjs/commands/DeleteWorkgroupCommand.js +36 -0
- package/dist-cjs/commands/GetCredentialsCommand.js +36 -0
- package/dist-cjs/commands/GetEndpointAccessCommand.js +36 -0
- package/dist-cjs/commands/GetNamespaceCommand.js +36 -0
- package/dist-cjs/commands/GetRecoveryPointCommand.js +36 -0
- package/dist-cjs/commands/GetResourcePolicyCommand.js +36 -0
- package/dist-cjs/commands/GetSnapshotCommand.js +36 -0
- package/dist-cjs/commands/GetUsageLimitCommand.js +36 -0
- package/dist-cjs/commands/GetWorkgroupCommand.js +36 -0
- package/dist-cjs/commands/ListEndpointAccessCommand.js +36 -0
- package/dist-cjs/commands/ListNamespacesCommand.js +36 -0
- package/dist-cjs/commands/ListRecoveryPointsCommand.js +36 -0
- package/dist-cjs/commands/ListSnapshotsCommand.js +36 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +36 -0
- package/dist-cjs/commands/ListUsageLimitsCommand.js +36 -0
- package/dist-cjs/commands/ListWorkgroupsCommand.js +36 -0
- package/dist-cjs/commands/PutResourcePolicyCommand.js +36 -0
- package/dist-cjs/commands/RestoreFromRecoveryPointCommand.js +36 -0
- package/dist-cjs/commands/RestoreFromSnapshotCommand.js +36 -0
- package/dist-cjs/commands/TagResourceCommand.js +36 -0
- package/dist-cjs/commands/UntagResourceCommand.js +36 -0
- package/dist-cjs/commands/UpdateEndpointAccessCommand.js +36 -0
- package/dist-cjs/commands/UpdateNamespaceCommand.js +36 -0
- package/dist-cjs/commands/UpdateSnapshotCommand.js +36 -0
- package/dist-cjs/commands/UpdateUsageLimitCommand.js +36 -0
- package/dist-cjs/commands/UpdateWorkgroupCommand.js +36 -0
- package/dist-cjs/commands/index.js +40 -0
- package/dist-cjs/endpoints.js +131 -0
- package/dist-cjs/index.js +11 -0
- package/dist-cjs/models/RedshiftServerlessServiceException.js +11 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +725 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListEndpointAccessPaginator.js +36 -0
- package/dist-cjs/pagination/ListNamespacesPaginator.js +36 -0
- package/dist-cjs/pagination/ListRecoveryPointsPaginator.js +36 -0
- package/dist-cjs/pagination/ListSnapshotsPaginator.js +36 -0
- package/dist-cjs/pagination/ListUsageLimitsPaginator.js +36 -0
- package/dist-cjs/pagination/ListWorkgroupsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +10 -0
- package/dist-cjs/protocols/Aws_json1_1.js +3265 -0
- package/dist-cjs/runtimeConfig.browser.js +45 -0
- package/dist-cjs/runtimeConfig.js +52 -0
- package/dist-cjs/runtimeConfig.native.js +16 -0
- package/dist-cjs/runtimeConfig.shared.js +17 -0
- package/dist-es/RedshiftServerless.js +565 -0
- package/dist-es/RedshiftServerlessClient.js +39 -0
- package/dist-es/commands/ConvertRecoveryPointToSnapshotCommand.js +39 -0
- package/dist-es/commands/CreateEndpointAccessCommand.js +39 -0
- package/dist-es/commands/CreateNamespaceCommand.js +39 -0
- package/dist-es/commands/CreateSnapshotCommand.js +39 -0
- package/dist-es/commands/CreateUsageLimitCommand.js +39 -0
- package/dist-es/commands/CreateWorkgroupCommand.js +39 -0
- package/dist-es/commands/DeleteEndpointAccessCommand.js +39 -0
- package/dist-es/commands/DeleteNamespaceCommand.js +39 -0
- package/dist-es/commands/DeleteResourcePolicyCommand.js +39 -0
- package/dist-es/commands/DeleteSnapshotCommand.js +39 -0
- package/dist-es/commands/DeleteUsageLimitCommand.js +39 -0
- package/dist-es/commands/DeleteWorkgroupCommand.js +39 -0
- package/dist-es/commands/GetCredentialsCommand.js +39 -0
- package/dist-es/commands/GetEndpointAccessCommand.js +39 -0
- package/dist-es/commands/GetNamespaceCommand.js +39 -0
- package/dist-es/commands/GetRecoveryPointCommand.js +39 -0
- package/dist-es/commands/GetResourcePolicyCommand.js +39 -0
- package/dist-es/commands/GetSnapshotCommand.js +39 -0
- package/dist-es/commands/GetUsageLimitCommand.js +39 -0
- package/dist-es/commands/GetWorkgroupCommand.js +39 -0
- package/dist-es/commands/ListEndpointAccessCommand.js +39 -0
- package/dist-es/commands/ListNamespacesCommand.js +39 -0
- package/dist-es/commands/ListRecoveryPointsCommand.js +39 -0
- package/dist-es/commands/ListSnapshotsCommand.js +39 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +39 -0
- package/dist-es/commands/ListUsageLimitsCommand.js +39 -0
- package/dist-es/commands/ListWorkgroupsCommand.js +39 -0
- package/dist-es/commands/PutResourcePolicyCommand.js +39 -0
- package/dist-es/commands/RestoreFromRecoveryPointCommand.js +39 -0
- package/dist-es/commands/RestoreFromSnapshotCommand.js +39 -0
- package/dist-es/commands/TagResourceCommand.js +39 -0
- package/dist-es/commands/UntagResourceCommand.js +39 -0
- package/dist-es/commands/UpdateEndpointAccessCommand.js +39 -0
- package/dist-es/commands/UpdateNamespaceCommand.js +39 -0
- package/dist-es/commands/UpdateSnapshotCommand.js +39 -0
- package/dist-es/commands/UpdateUsageLimitCommand.js +39 -0
- package/dist-es/commands/UpdateWorkgroupCommand.js +39 -0
- package/dist-es/commands/index.js +37 -0
- package/dist-es/endpoints.js +127 -0
- package/dist-es/index.js +6 -0
- package/dist-es/models/RedshiftServerlessServiceException.js +12 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +523 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListEndpointAccessPaginator.js +75 -0
- package/dist-es/pagination/ListNamespacesPaginator.js +75 -0
- package/dist-es/pagination/ListRecoveryPointsPaginator.js +75 -0
- package/dist-es/pagination/ListSnapshotsPaginator.js +75 -0
- package/dist-es/pagination/ListUsageLimitsPaginator.js +75 -0
- package/dist-es/pagination/ListWorkgroupsPaginator.js +75 -0
- package/dist-es/pagination/index.js +7 -0
- package/dist-es/protocols/Aws_json1_1.js +3784 -0
- package/dist-es/runtimeConfig.browser.js +26 -0
- package/dist-es/runtimeConfig.js +30 -0
- package/dist-es/runtimeConfig.native.js +8 -0
- package/dist-es/runtimeConfig.shared.js +13 -0
- package/dist-types/RedshiftServerless.d.ts +302 -0
- package/dist-types/RedshiftServerlessClient.d.ts +198 -0
- package/dist-types/commands/ConvertRecoveryPointToSnapshotCommand.d.ts +36 -0
- package/dist-types/commands/CreateEndpointAccessCommand.d.ts +35 -0
- package/dist-types/commands/CreateNamespaceCommand.d.ts +35 -0
- package/dist-types/commands/CreateSnapshotCommand.d.ts +38 -0
- package/dist-types/commands/CreateUsageLimitCommand.d.ts +36 -0
- package/dist-types/commands/CreateWorkgroupCommand.d.ts +35 -0
- package/dist-types/commands/DeleteEndpointAccessCommand.d.ts +35 -0
- package/dist-types/commands/DeleteNamespaceCommand.d.ts +36 -0
- package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +35 -0
- package/dist-types/commands/DeleteSnapshotCommand.d.ts +35 -0
- package/dist-types/commands/DeleteUsageLimitCommand.d.ts +35 -0
- package/dist-types/commands/DeleteWorkgroupCommand.d.ts +35 -0
- package/dist-types/commands/GetCredentialsCommand.d.ts +48 -0
- package/dist-types/commands/GetEndpointAccessCommand.d.ts +35 -0
- package/dist-types/commands/GetNamespaceCommand.d.ts +35 -0
- package/dist-types/commands/GetRecoveryPointCommand.d.ts +35 -0
- package/dist-types/commands/GetResourcePolicyCommand.d.ts +35 -0
- package/dist-types/commands/GetSnapshotCommand.d.ts +35 -0
- package/dist-types/commands/GetUsageLimitCommand.d.ts +35 -0
- package/dist-types/commands/GetWorkgroupCommand.d.ts +35 -0
- package/dist-types/commands/ListEndpointAccessCommand.d.ts +35 -0
- package/dist-types/commands/ListNamespacesCommand.d.ts +35 -0
- package/dist-types/commands/ListRecoveryPointsCommand.d.ts +35 -0
- package/dist-types/commands/ListSnapshotsCommand.d.ts +35 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +35 -0
- package/dist-types/commands/ListUsageLimitsCommand.d.ts +35 -0
- package/dist-types/commands/ListWorkgroupsCommand.d.ts +35 -0
- package/dist-types/commands/PutResourcePolicyCommand.d.ts +35 -0
- package/dist-types/commands/RestoreFromRecoveryPointCommand.d.ts +35 -0
- package/dist-types/commands/RestoreFromSnapshotCommand.d.ts +35 -0
- package/dist-types/commands/TagResourceCommand.d.ts +35 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +35 -0
- package/dist-types/commands/UpdateEndpointAccessCommand.d.ts +35 -0
- package/dist-types/commands/UpdateNamespaceCommand.d.ts +35 -0
- package/dist-types/commands/UpdateSnapshotCommand.d.ts +35 -0
- package/dist-types/commands/UpdateUsageLimitCommand.d.ts +35 -0
- package/dist-types/commands/UpdateWorkgroupCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +37 -0
- package/dist-types/endpoints.d.ts +2 -0
- package/dist-types/index.d.ts +6 -0
- package/dist-types/models/RedshiftServerlessServiceException.d.ts +10 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +1960 -0
- package/dist-types/pagination/Interfaces.d.ts +6 -0
- package/dist-types/pagination/ListEndpointAccessPaginator.d.ts +4 -0
- package/dist-types/pagination/ListNamespacesPaginator.d.ts +4 -0
- package/dist-types/pagination/ListRecoveryPointsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListSnapshotsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListUsageLimitsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListWorkgroupsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +7 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +113 -0
- package/dist-types/runtimeConfig.browser.d.ts +40 -0
- package/dist-types/runtimeConfig.d.ts +40 -0
- package/dist-types/runtimeConfig.native.d.ts +39 -0
- package/dist-types/runtimeConfig.shared.d.ts +13 -0
- package/dist-types/ts3.4/RedshiftServerless.d.ts +190 -0
- package/dist-types/ts3.4/RedshiftServerlessClient.d.ts +110 -0
- package/dist-types/ts3.4/commands/ConvertRecoveryPointToSnapshotCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateEndpointAccessCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateNamespaceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateSnapshotCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateUsageLimitCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateWorkgroupCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteEndpointAccessCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteNamespaceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteSnapshotCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteUsageLimitCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteWorkgroupCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetCredentialsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetEndpointAccessCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetNamespaceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetRecoveryPointCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetSnapshotCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetUsageLimitCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetWorkgroupCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListEndpointAccessCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListNamespacesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListRecoveryPointsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListSnapshotsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListUsageLimitsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListWorkgroupsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/RestoreFromRecoveryPointCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/RestoreFromSnapshotCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateEndpointAccessCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateNamespaceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateSnapshotCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateUsageLimitCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateWorkgroupCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +37 -0
- package/dist-types/ts3.4/endpoints.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +6 -0
- package/dist-types/ts3.4/models/RedshiftServerlessServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +1140 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListEndpointAccessPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListNamespacesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListRecoveryPointsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListSnapshotsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListUsageLimitsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListWorkgroupsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +7 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +113 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +37 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
- package/package.json +94 -0
|
@@ -0,0 +1,3265 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.deserializeAws_json1_1GetCredentialsCommand = exports.deserializeAws_json1_1DeleteWorkgroupCommand = exports.deserializeAws_json1_1DeleteUsageLimitCommand = exports.deserializeAws_json1_1DeleteSnapshotCommand = exports.deserializeAws_json1_1DeleteResourcePolicyCommand = exports.deserializeAws_json1_1DeleteNamespaceCommand = exports.deserializeAws_json1_1DeleteEndpointAccessCommand = exports.deserializeAws_json1_1CreateWorkgroupCommand = exports.deserializeAws_json1_1CreateUsageLimitCommand = exports.deserializeAws_json1_1CreateSnapshotCommand = exports.deserializeAws_json1_1CreateNamespaceCommand = exports.deserializeAws_json1_1CreateEndpointAccessCommand = exports.deserializeAws_json1_1ConvertRecoveryPointToSnapshotCommand = exports.serializeAws_json1_1UpdateWorkgroupCommand = exports.serializeAws_json1_1UpdateUsageLimitCommand = exports.serializeAws_json1_1UpdateSnapshotCommand = exports.serializeAws_json1_1UpdateNamespaceCommand = exports.serializeAws_json1_1UpdateEndpointAccessCommand = exports.serializeAws_json1_1UntagResourceCommand = exports.serializeAws_json1_1TagResourceCommand = exports.serializeAws_json1_1RestoreFromSnapshotCommand = exports.serializeAws_json1_1RestoreFromRecoveryPointCommand = exports.serializeAws_json1_1PutResourcePolicyCommand = exports.serializeAws_json1_1ListWorkgroupsCommand = exports.serializeAws_json1_1ListUsageLimitsCommand = exports.serializeAws_json1_1ListTagsForResourceCommand = exports.serializeAws_json1_1ListSnapshotsCommand = exports.serializeAws_json1_1ListRecoveryPointsCommand = exports.serializeAws_json1_1ListNamespacesCommand = exports.serializeAws_json1_1ListEndpointAccessCommand = exports.serializeAws_json1_1GetWorkgroupCommand = exports.serializeAws_json1_1GetUsageLimitCommand = exports.serializeAws_json1_1GetSnapshotCommand = exports.serializeAws_json1_1GetResourcePolicyCommand = exports.serializeAws_json1_1GetRecoveryPointCommand = exports.serializeAws_json1_1GetNamespaceCommand = exports.serializeAws_json1_1GetEndpointAccessCommand = exports.serializeAws_json1_1GetCredentialsCommand = exports.serializeAws_json1_1DeleteWorkgroupCommand = exports.serializeAws_json1_1DeleteUsageLimitCommand = exports.serializeAws_json1_1DeleteSnapshotCommand = exports.serializeAws_json1_1DeleteResourcePolicyCommand = exports.serializeAws_json1_1DeleteNamespaceCommand = exports.serializeAws_json1_1DeleteEndpointAccessCommand = exports.serializeAws_json1_1CreateWorkgroupCommand = exports.serializeAws_json1_1CreateUsageLimitCommand = exports.serializeAws_json1_1CreateSnapshotCommand = exports.serializeAws_json1_1CreateNamespaceCommand = exports.serializeAws_json1_1CreateEndpointAccessCommand = exports.serializeAws_json1_1ConvertRecoveryPointToSnapshotCommand = void 0;
|
|
4
|
+
exports.deserializeAws_json1_1UpdateWorkgroupCommand = exports.deserializeAws_json1_1UpdateUsageLimitCommand = exports.deserializeAws_json1_1UpdateSnapshotCommand = exports.deserializeAws_json1_1UpdateNamespaceCommand = exports.deserializeAws_json1_1UpdateEndpointAccessCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1RestoreFromSnapshotCommand = exports.deserializeAws_json1_1RestoreFromRecoveryPointCommand = exports.deserializeAws_json1_1PutResourcePolicyCommand = exports.deserializeAws_json1_1ListWorkgroupsCommand = exports.deserializeAws_json1_1ListUsageLimitsCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListSnapshotsCommand = exports.deserializeAws_json1_1ListRecoveryPointsCommand = exports.deserializeAws_json1_1ListNamespacesCommand = exports.deserializeAws_json1_1ListEndpointAccessCommand = exports.deserializeAws_json1_1GetWorkgroupCommand = exports.deserializeAws_json1_1GetUsageLimitCommand = exports.deserializeAws_json1_1GetSnapshotCommand = exports.deserializeAws_json1_1GetResourcePolicyCommand = exports.deserializeAws_json1_1GetRecoveryPointCommand = exports.deserializeAws_json1_1GetNamespaceCommand = exports.deserializeAws_json1_1GetEndpointAccessCommand = void 0;
|
|
5
|
+
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const RedshiftServerlessServiceException_1 = require("../models/RedshiftServerlessServiceException");
|
|
9
|
+
const serializeAws_json1_1ConvertRecoveryPointToSnapshotCommand = async (input, context) => {
|
|
10
|
+
const headers = {
|
|
11
|
+
"content-type": "application/x-amz-json-1.1",
|
|
12
|
+
"x-amz-target": "RedshiftArcadiaCoralService.ConvertRecoveryPointToSnapshot",
|
|
13
|
+
};
|
|
14
|
+
let body;
|
|
15
|
+
body = JSON.stringify(serializeAws_json1_1ConvertRecoveryPointToSnapshotRequest(input, context));
|
|
16
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
17
|
+
};
|
|
18
|
+
exports.serializeAws_json1_1ConvertRecoveryPointToSnapshotCommand = serializeAws_json1_1ConvertRecoveryPointToSnapshotCommand;
|
|
19
|
+
const serializeAws_json1_1CreateEndpointAccessCommand = async (input, context) => {
|
|
20
|
+
const headers = {
|
|
21
|
+
"content-type": "application/x-amz-json-1.1",
|
|
22
|
+
"x-amz-target": "RedshiftArcadiaCoralService.CreateEndpointAccess",
|
|
23
|
+
};
|
|
24
|
+
let body;
|
|
25
|
+
body = JSON.stringify(serializeAws_json1_1CreateEndpointAccessRequest(input, context));
|
|
26
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
27
|
+
};
|
|
28
|
+
exports.serializeAws_json1_1CreateEndpointAccessCommand = serializeAws_json1_1CreateEndpointAccessCommand;
|
|
29
|
+
const serializeAws_json1_1CreateNamespaceCommand = async (input, context) => {
|
|
30
|
+
const headers = {
|
|
31
|
+
"content-type": "application/x-amz-json-1.1",
|
|
32
|
+
"x-amz-target": "RedshiftArcadiaCoralService.CreateNamespace",
|
|
33
|
+
};
|
|
34
|
+
let body;
|
|
35
|
+
body = JSON.stringify(serializeAws_json1_1CreateNamespaceRequest(input, context));
|
|
36
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
37
|
+
};
|
|
38
|
+
exports.serializeAws_json1_1CreateNamespaceCommand = serializeAws_json1_1CreateNamespaceCommand;
|
|
39
|
+
const serializeAws_json1_1CreateSnapshotCommand = async (input, context) => {
|
|
40
|
+
const headers = {
|
|
41
|
+
"content-type": "application/x-amz-json-1.1",
|
|
42
|
+
"x-amz-target": "RedshiftArcadiaCoralService.CreateSnapshot",
|
|
43
|
+
};
|
|
44
|
+
let body;
|
|
45
|
+
body = JSON.stringify(serializeAws_json1_1CreateSnapshotRequest(input, context));
|
|
46
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
47
|
+
};
|
|
48
|
+
exports.serializeAws_json1_1CreateSnapshotCommand = serializeAws_json1_1CreateSnapshotCommand;
|
|
49
|
+
const serializeAws_json1_1CreateUsageLimitCommand = async (input, context) => {
|
|
50
|
+
const headers = {
|
|
51
|
+
"content-type": "application/x-amz-json-1.1",
|
|
52
|
+
"x-amz-target": "RedshiftArcadiaCoralService.CreateUsageLimit",
|
|
53
|
+
};
|
|
54
|
+
let body;
|
|
55
|
+
body = JSON.stringify(serializeAws_json1_1CreateUsageLimitRequest(input, context));
|
|
56
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
57
|
+
};
|
|
58
|
+
exports.serializeAws_json1_1CreateUsageLimitCommand = serializeAws_json1_1CreateUsageLimitCommand;
|
|
59
|
+
const serializeAws_json1_1CreateWorkgroupCommand = async (input, context) => {
|
|
60
|
+
const headers = {
|
|
61
|
+
"content-type": "application/x-amz-json-1.1",
|
|
62
|
+
"x-amz-target": "RedshiftArcadiaCoralService.CreateWorkgroup",
|
|
63
|
+
};
|
|
64
|
+
let body;
|
|
65
|
+
body = JSON.stringify(serializeAws_json1_1CreateWorkgroupRequest(input, context));
|
|
66
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
|
+
};
|
|
68
|
+
exports.serializeAws_json1_1CreateWorkgroupCommand = serializeAws_json1_1CreateWorkgroupCommand;
|
|
69
|
+
const serializeAws_json1_1DeleteEndpointAccessCommand = async (input, context) => {
|
|
70
|
+
const headers = {
|
|
71
|
+
"content-type": "application/x-amz-json-1.1",
|
|
72
|
+
"x-amz-target": "RedshiftArcadiaCoralService.DeleteEndpointAccess",
|
|
73
|
+
};
|
|
74
|
+
let body;
|
|
75
|
+
body = JSON.stringify(serializeAws_json1_1DeleteEndpointAccessRequest(input, context));
|
|
76
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
|
+
};
|
|
78
|
+
exports.serializeAws_json1_1DeleteEndpointAccessCommand = serializeAws_json1_1DeleteEndpointAccessCommand;
|
|
79
|
+
const serializeAws_json1_1DeleteNamespaceCommand = async (input, context) => {
|
|
80
|
+
const headers = {
|
|
81
|
+
"content-type": "application/x-amz-json-1.1",
|
|
82
|
+
"x-amz-target": "RedshiftArcadiaCoralService.DeleteNamespace",
|
|
83
|
+
};
|
|
84
|
+
let body;
|
|
85
|
+
body = JSON.stringify(serializeAws_json1_1DeleteNamespaceRequest(input, context));
|
|
86
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
87
|
+
};
|
|
88
|
+
exports.serializeAws_json1_1DeleteNamespaceCommand = serializeAws_json1_1DeleteNamespaceCommand;
|
|
89
|
+
const serializeAws_json1_1DeleteResourcePolicyCommand = async (input, context) => {
|
|
90
|
+
const headers = {
|
|
91
|
+
"content-type": "application/x-amz-json-1.1",
|
|
92
|
+
"x-amz-target": "RedshiftArcadiaCoralService.DeleteResourcePolicy",
|
|
93
|
+
};
|
|
94
|
+
let body;
|
|
95
|
+
body = JSON.stringify(serializeAws_json1_1DeleteResourcePolicyRequest(input, context));
|
|
96
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
97
|
+
};
|
|
98
|
+
exports.serializeAws_json1_1DeleteResourcePolicyCommand = serializeAws_json1_1DeleteResourcePolicyCommand;
|
|
99
|
+
const serializeAws_json1_1DeleteSnapshotCommand = async (input, context) => {
|
|
100
|
+
const headers = {
|
|
101
|
+
"content-type": "application/x-amz-json-1.1",
|
|
102
|
+
"x-amz-target": "RedshiftArcadiaCoralService.DeleteSnapshot",
|
|
103
|
+
};
|
|
104
|
+
let body;
|
|
105
|
+
body = JSON.stringify(serializeAws_json1_1DeleteSnapshotRequest(input, context));
|
|
106
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
107
|
+
};
|
|
108
|
+
exports.serializeAws_json1_1DeleteSnapshotCommand = serializeAws_json1_1DeleteSnapshotCommand;
|
|
109
|
+
const serializeAws_json1_1DeleteUsageLimitCommand = async (input, context) => {
|
|
110
|
+
const headers = {
|
|
111
|
+
"content-type": "application/x-amz-json-1.1",
|
|
112
|
+
"x-amz-target": "RedshiftArcadiaCoralService.DeleteUsageLimit",
|
|
113
|
+
};
|
|
114
|
+
let body;
|
|
115
|
+
body = JSON.stringify(serializeAws_json1_1DeleteUsageLimitRequest(input, context));
|
|
116
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
117
|
+
};
|
|
118
|
+
exports.serializeAws_json1_1DeleteUsageLimitCommand = serializeAws_json1_1DeleteUsageLimitCommand;
|
|
119
|
+
const serializeAws_json1_1DeleteWorkgroupCommand = async (input, context) => {
|
|
120
|
+
const headers = {
|
|
121
|
+
"content-type": "application/x-amz-json-1.1",
|
|
122
|
+
"x-amz-target": "RedshiftArcadiaCoralService.DeleteWorkgroup",
|
|
123
|
+
};
|
|
124
|
+
let body;
|
|
125
|
+
body = JSON.stringify(serializeAws_json1_1DeleteWorkgroupRequest(input, context));
|
|
126
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
127
|
+
};
|
|
128
|
+
exports.serializeAws_json1_1DeleteWorkgroupCommand = serializeAws_json1_1DeleteWorkgroupCommand;
|
|
129
|
+
const serializeAws_json1_1GetCredentialsCommand = async (input, context) => {
|
|
130
|
+
const headers = {
|
|
131
|
+
"content-type": "application/x-amz-json-1.1",
|
|
132
|
+
"x-amz-target": "RedshiftArcadiaCoralService.GetCredentials",
|
|
133
|
+
};
|
|
134
|
+
let body;
|
|
135
|
+
body = JSON.stringify(serializeAws_json1_1GetCredentialsRequest(input, context));
|
|
136
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
137
|
+
};
|
|
138
|
+
exports.serializeAws_json1_1GetCredentialsCommand = serializeAws_json1_1GetCredentialsCommand;
|
|
139
|
+
const serializeAws_json1_1GetEndpointAccessCommand = async (input, context) => {
|
|
140
|
+
const headers = {
|
|
141
|
+
"content-type": "application/x-amz-json-1.1",
|
|
142
|
+
"x-amz-target": "RedshiftArcadiaCoralService.GetEndpointAccess",
|
|
143
|
+
};
|
|
144
|
+
let body;
|
|
145
|
+
body = JSON.stringify(serializeAws_json1_1GetEndpointAccessRequest(input, context));
|
|
146
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
147
|
+
};
|
|
148
|
+
exports.serializeAws_json1_1GetEndpointAccessCommand = serializeAws_json1_1GetEndpointAccessCommand;
|
|
149
|
+
const serializeAws_json1_1GetNamespaceCommand = async (input, context) => {
|
|
150
|
+
const headers = {
|
|
151
|
+
"content-type": "application/x-amz-json-1.1",
|
|
152
|
+
"x-amz-target": "RedshiftArcadiaCoralService.GetNamespace",
|
|
153
|
+
};
|
|
154
|
+
let body;
|
|
155
|
+
body = JSON.stringify(serializeAws_json1_1GetNamespaceRequest(input, context));
|
|
156
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
157
|
+
};
|
|
158
|
+
exports.serializeAws_json1_1GetNamespaceCommand = serializeAws_json1_1GetNamespaceCommand;
|
|
159
|
+
const serializeAws_json1_1GetRecoveryPointCommand = async (input, context) => {
|
|
160
|
+
const headers = {
|
|
161
|
+
"content-type": "application/x-amz-json-1.1",
|
|
162
|
+
"x-amz-target": "RedshiftArcadiaCoralService.GetRecoveryPoint",
|
|
163
|
+
};
|
|
164
|
+
let body;
|
|
165
|
+
body = JSON.stringify(serializeAws_json1_1GetRecoveryPointRequest(input, context));
|
|
166
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
167
|
+
};
|
|
168
|
+
exports.serializeAws_json1_1GetRecoveryPointCommand = serializeAws_json1_1GetRecoveryPointCommand;
|
|
169
|
+
const serializeAws_json1_1GetResourcePolicyCommand = async (input, context) => {
|
|
170
|
+
const headers = {
|
|
171
|
+
"content-type": "application/x-amz-json-1.1",
|
|
172
|
+
"x-amz-target": "RedshiftArcadiaCoralService.GetResourcePolicy",
|
|
173
|
+
};
|
|
174
|
+
let body;
|
|
175
|
+
body = JSON.stringify(serializeAws_json1_1GetResourcePolicyRequest(input, context));
|
|
176
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
177
|
+
};
|
|
178
|
+
exports.serializeAws_json1_1GetResourcePolicyCommand = serializeAws_json1_1GetResourcePolicyCommand;
|
|
179
|
+
const serializeAws_json1_1GetSnapshotCommand = async (input, context) => {
|
|
180
|
+
const headers = {
|
|
181
|
+
"content-type": "application/x-amz-json-1.1",
|
|
182
|
+
"x-amz-target": "RedshiftArcadiaCoralService.GetSnapshot",
|
|
183
|
+
};
|
|
184
|
+
let body;
|
|
185
|
+
body = JSON.stringify(serializeAws_json1_1GetSnapshotRequest(input, context));
|
|
186
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
187
|
+
};
|
|
188
|
+
exports.serializeAws_json1_1GetSnapshotCommand = serializeAws_json1_1GetSnapshotCommand;
|
|
189
|
+
const serializeAws_json1_1GetUsageLimitCommand = async (input, context) => {
|
|
190
|
+
const headers = {
|
|
191
|
+
"content-type": "application/x-amz-json-1.1",
|
|
192
|
+
"x-amz-target": "RedshiftArcadiaCoralService.GetUsageLimit",
|
|
193
|
+
};
|
|
194
|
+
let body;
|
|
195
|
+
body = JSON.stringify(serializeAws_json1_1GetUsageLimitRequest(input, context));
|
|
196
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
197
|
+
};
|
|
198
|
+
exports.serializeAws_json1_1GetUsageLimitCommand = serializeAws_json1_1GetUsageLimitCommand;
|
|
199
|
+
const serializeAws_json1_1GetWorkgroupCommand = async (input, context) => {
|
|
200
|
+
const headers = {
|
|
201
|
+
"content-type": "application/x-amz-json-1.1",
|
|
202
|
+
"x-amz-target": "RedshiftArcadiaCoralService.GetWorkgroup",
|
|
203
|
+
};
|
|
204
|
+
let body;
|
|
205
|
+
body = JSON.stringify(serializeAws_json1_1GetWorkgroupRequest(input, context));
|
|
206
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
207
|
+
};
|
|
208
|
+
exports.serializeAws_json1_1GetWorkgroupCommand = serializeAws_json1_1GetWorkgroupCommand;
|
|
209
|
+
const serializeAws_json1_1ListEndpointAccessCommand = async (input, context) => {
|
|
210
|
+
const headers = {
|
|
211
|
+
"content-type": "application/x-amz-json-1.1",
|
|
212
|
+
"x-amz-target": "RedshiftArcadiaCoralService.ListEndpointAccess",
|
|
213
|
+
};
|
|
214
|
+
let body;
|
|
215
|
+
body = JSON.stringify(serializeAws_json1_1ListEndpointAccessRequest(input, context));
|
|
216
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
217
|
+
};
|
|
218
|
+
exports.serializeAws_json1_1ListEndpointAccessCommand = serializeAws_json1_1ListEndpointAccessCommand;
|
|
219
|
+
const serializeAws_json1_1ListNamespacesCommand = async (input, context) => {
|
|
220
|
+
const headers = {
|
|
221
|
+
"content-type": "application/x-amz-json-1.1",
|
|
222
|
+
"x-amz-target": "RedshiftArcadiaCoralService.ListNamespaces",
|
|
223
|
+
};
|
|
224
|
+
let body;
|
|
225
|
+
body = JSON.stringify(serializeAws_json1_1ListNamespacesRequest(input, context));
|
|
226
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
227
|
+
};
|
|
228
|
+
exports.serializeAws_json1_1ListNamespacesCommand = serializeAws_json1_1ListNamespacesCommand;
|
|
229
|
+
const serializeAws_json1_1ListRecoveryPointsCommand = async (input, context) => {
|
|
230
|
+
const headers = {
|
|
231
|
+
"content-type": "application/x-amz-json-1.1",
|
|
232
|
+
"x-amz-target": "RedshiftArcadiaCoralService.ListRecoveryPoints",
|
|
233
|
+
};
|
|
234
|
+
let body;
|
|
235
|
+
body = JSON.stringify(serializeAws_json1_1ListRecoveryPointsRequest(input, context));
|
|
236
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
237
|
+
};
|
|
238
|
+
exports.serializeAws_json1_1ListRecoveryPointsCommand = serializeAws_json1_1ListRecoveryPointsCommand;
|
|
239
|
+
const serializeAws_json1_1ListSnapshotsCommand = async (input, context) => {
|
|
240
|
+
const headers = {
|
|
241
|
+
"content-type": "application/x-amz-json-1.1",
|
|
242
|
+
"x-amz-target": "RedshiftArcadiaCoralService.ListSnapshots",
|
|
243
|
+
};
|
|
244
|
+
let body;
|
|
245
|
+
body = JSON.stringify(serializeAws_json1_1ListSnapshotsRequest(input, context));
|
|
246
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
247
|
+
};
|
|
248
|
+
exports.serializeAws_json1_1ListSnapshotsCommand = serializeAws_json1_1ListSnapshotsCommand;
|
|
249
|
+
const serializeAws_json1_1ListTagsForResourceCommand = async (input, context) => {
|
|
250
|
+
const headers = {
|
|
251
|
+
"content-type": "application/x-amz-json-1.1",
|
|
252
|
+
"x-amz-target": "RedshiftArcadiaCoralService.ListTagsForResource",
|
|
253
|
+
};
|
|
254
|
+
let body;
|
|
255
|
+
body = JSON.stringify(serializeAws_json1_1ListTagsForResourceRequest(input, context));
|
|
256
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
257
|
+
};
|
|
258
|
+
exports.serializeAws_json1_1ListTagsForResourceCommand = serializeAws_json1_1ListTagsForResourceCommand;
|
|
259
|
+
const serializeAws_json1_1ListUsageLimitsCommand = async (input, context) => {
|
|
260
|
+
const headers = {
|
|
261
|
+
"content-type": "application/x-amz-json-1.1",
|
|
262
|
+
"x-amz-target": "RedshiftArcadiaCoralService.ListUsageLimits",
|
|
263
|
+
};
|
|
264
|
+
let body;
|
|
265
|
+
body = JSON.stringify(serializeAws_json1_1ListUsageLimitsRequest(input, context));
|
|
266
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
267
|
+
};
|
|
268
|
+
exports.serializeAws_json1_1ListUsageLimitsCommand = serializeAws_json1_1ListUsageLimitsCommand;
|
|
269
|
+
const serializeAws_json1_1ListWorkgroupsCommand = async (input, context) => {
|
|
270
|
+
const headers = {
|
|
271
|
+
"content-type": "application/x-amz-json-1.1",
|
|
272
|
+
"x-amz-target": "RedshiftArcadiaCoralService.ListWorkgroups",
|
|
273
|
+
};
|
|
274
|
+
let body;
|
|
275
|
+
body = JSON.stringify(serializeAws_json1_1ListWorkgroupsRequest(input, context));
|
|
276
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
277
|
+
};
|
|
278
|
+
exports.serializeAws_json1_1ListWorkgroupsCommand = serializeAws_json1_1ListWorkgroupsCommand;
|
|
279
|
+
const serializeAws_json1_1PutResourcePolicyCommand = async (input, context) => {
|
|
280
|
+
const headers = {
|
|
281
|
+
"content-type": "application/x-amz-json-1.1",
|
|
282
|
+
"x-amz-target": "RedshiftArcadiaCoralService.PutResourcePolicy",
|
|
283
|
+
};
|
|
284
|
+
let body;
|
|
285
|
+
body = JSON.stringify(serializeAws_json1_1PutResourcePolicyRequest(input, context));
|
|
286
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
287
|
+
};
|
|
288
|
+
exports.serializeAws_json1_1PutResourcePolicyCommand = serializeAws_json1_1PutResourcePolicyCommand;
|
|
289
|
+
const serializeAws_json1_1RestoreFromRecoveryPointCommand = async (input, context) => {
|
|
290
|
+
const headers = {
|
|
291
|
+
"content-type": "application/x-amz-json-1.1",
|
|
292
|
+
"x-amz-target": "RedshiftArcadiaCoralService.RestoreFromRecoveryPoint",
|
|
293
|
+
};
|
|
294
|
+
let body;
|
|
295
|
+
body = JSON.stringify(serializeAws_json1_1RestoreFromRecoveryPointRequest(input, context));
|
|
296
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
297
|
+
};
|
|
298
|
+
exports.serializeAws_json1_1RestoreFromRecoveryPointCommand = serializeAws_json1_1RestoreFromRecoveryPointCommand;
|
|
299
|
+
const serializeAws_json1_1RestoreFromSnapshotCommand = async (input, context) => {
|
|
300
|
+
const headers = {
|
|
301
|
+
"content-type": "application/x-amz-json-1.1",
|
|
302
|
+
"x-amz-target": "RedshiftArcadiaCoralService.RestoreFromSnapshot",
|
|
303
|
+
};
|
|
304
|
+
let body;
|
|
305
|
+
body = JSON.stringify(serializeAws_json1_1RestoreFromSnapshotRequest(input, context));
|
|
306
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
307
|
+
};
|
|
308
|
+
exports.serializeAws_json1_1RestoreFromSnapshotCommand = serializeAws_json1_1RestoreFromSnapshotCommand;
|
|
309
|
+
const serializeAws_json1_1TagResourceCommand = async (input, context) => {
|
|
310
|
+
const headers = {
|
|
311
|
+
"content-type": "application/x-amz-json-1.1",
|
|
312
|
+
"x-amz-target": "RedshiftArcadiaCoralService.TagResource",
|
|
313
|
+
};
|
|
314
|
+
let body;
|
|
315
|
+
body = JSON.stringify(serializeAws_json1_1TagResourceRequest(input, context));
|
|
316
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
317
|
+
};
|
|
318
|
+
exports.serializeAws_json1_1TagResourceCommand = serializeAws_json1_1TagResourceCommand;
|
|
319
|
+
const serializeAws_json1_1UntagResourceCommand = async (input, context) => {
|
|
320
|
+
const headers = {
|
|
321
|
+
"content-type": "application/x-amz-json-1.1",
|
|
322
|
+
"x-amz-target": "RedshiftArcadiaCoralService.UntagResource",
|
|
323
|
+
};
|
|
324
|
+
let body;
|
|
325
|
+
body = JSON.stringify(serializeAws_json1_1UntagResourceRequest(input, context));
|
|
326
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
327
|
+
};
|
|
328
|
+
exports.serializeAws_json1_1UntagResourceCommand = serializeAws_json1_1UntagResourceCommand;
|
|
329
|
+
const serializeAws_json1_1UpdateEndpointAccessCommand = async (input, context) => {
|
|
330
|
+
const headers = {
|
|
331
|
+
"content-type": "application/x-amz-json-1.1",
|
|
332
|
+
"x-amz-target": "RedshiftArcadiaCoralService.UpdateEndpointAccess",
|
|
333
|
+
};
|
|
334
|
+
let body;
|
|
335
|
+
body = JSON.stringify(serializeAws_json1_1UpdateEndpointAccessRequest(input, context));
|
|
336
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
337
|
+
};
|
|
338
|
+
exports.serializeAws_json1_1UpdateEndpointAccessCommand = serializeAws_json1_1UpdateEndpointAccessCommand;
|
|
339
|
+
const serializeAws_json1_1UpdateNamespaceCommand = async (input, context) => {
|
|
340
|
+
const headers = {
|
|
341
|
+
"content-type": "application/x-amz-json-1.1",
|
|
342
|
+
"x-amz-target": "RedshiftArcadiaCoralService.UpdateNamespace",
|
|
343
|
+
};
|
|
344
|
+
let body;
|
|
345
|
+
body = JSON.stringify(serializeAws_json1_1UpdateNamespaceRequest(input, context));
|
|
346
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
347
|
+
};
|
|
348
|
+
exports.serializeAws_json1_1UpdateNamespaceCommand = serializeAws_json1_1UpdateNamespaceCommand;
|
|
349
|
+
const serializeAws_json1_1UpdateSnapshotCommand = async (input, context) => {
|
|
350
|
+
const headers = {
|
|
351
|
+
"content-type": "application/x-amz-json-1.1",
|
|
352
|
+
"x-amz-target": "RedshiftArcadiaCoralService.UpdateSnapshot",
|
|
353
|
+
};
|
|
354
|
+
let body;
|
|
355
|
+
body = JSON.stringify(serializeAws_json1_1UpdateSnapshotRequest(input, context));
|
|
356
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
357
|
+
};
|
|
358
|
+
exports.serializeAws_json1_1UpdateSnapshotCommand = serializeAws_json1_1UpdateSnapshotCommand;
|
|
359
|
+
const serializeAws_json1_1UpdateUsageLimitCommand = async (input, context) => {
|
|
360
|
+
const headers = {
|
|
361
|
+
"content-type": "application/x-amz-json-1.1",
|
|
362
|
+
"x-amz-target": "RedshiftArcadiaCoralService.UpdateUsageLimit",
|
|
363
|
+
};
|
|
364
|
+
let body;
|
|
365
|
+
body = JSON.stringify(serializeAws_json1_1UpdateUsageLimitRequest(input, context));
|
|
366
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
367
|
+
};
|
|
368
|
+
exports.serializeAws_json1_1UpdateUsageLimitCommand = serializeAws_json1_1UpdateUsageLimitCommand;
|
|
369
|
+
const serializeAws_json1_1UpdateWorkgroupCommand = async (input, context) => {
|
|
370
|
+
const headers = {
|
|
371
|
+
"content-type": "application/x-amz-json-1.1",
|
|
372
|
+
"x-amz-target": "RedshiftArcadiaCoralService.UpdateWorkgroup",
|
|
373
|
+
};
|
|
374
|
+
let body;
|
|
375
|
+
body = JSON.stringify(serializeAws_json1_1UpdateWorkgroupRequest(input, context));
|
|
376
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
377
|
+
};
|
|
378
|
+
exports.serializeAws_json1_1UpdateWorkgroupCommand = serializeAws_json1_1UpdateWorkgroupCommand;
|
|
379
|
+
const deserializeAws_json1_1ConvertRecoveryPointToSnapshotCommand = async (output, context) => {
|
|
380
|
+
if (output.statusCode >= 300) {
|
|
381
|
+
return deserializeAws_json1_1ConvertRecoveryPointToSnapshotCommandError(output, context);
|
|
382
|
+
}
|
|
383
|
+
const data = await parseBody(output.body, context);
|
|
384
|
+
let contents = {};
|
|
385
|
+
contents = deserializeAws_json1_1ConvertRecoveryPointToSnapshotResponse(data, context);
|
|
386
|
+
const response = {
|
|
387
|
+
$metadata: deserializeMetadata(output),
|
|
388
|
+
...contents,
|
|
389
|
+
};
|
|
390
|
+
return Promise.resolve(response);
|
|
391
|
+
};
|
|
392
|
+
exports.deserializeAws_json1_1ConvertRecoveryPointToSnapshotCommand = deserializeAws_json1_1ConvertRecoveryPointToSnapshotCommand;
|
|
393
|
+
const deserializeAws_json1_1ConvertRecoveryPointToSnapshotCommandError = async (output, context) => {
|
|
394
|
+
const parsedOutput = {
|
|
395
|
+
...output,
|
|
396
|
+
body: await parseBody(output.body, context),
|
|
397
|
+
};
|
|
398
|
+
let response;
|
|
399
|
+
let errorCode = "UnknownError";
|
|
400
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
401
|
+
switch (errorCode) {
|
|
402
|
+
case "ConflictException":
|
|
403
|
+
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
404
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
405
|
+
case "InternalServerException":
|
|
406
|
+
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
407
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
408
|
+
case "ResourceNotFoundException":
|
|
409
|
+
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
410
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
411
|
+
case "ServiceQuotaExceededException":
|
|
412
|
+
case "com.amazonaws.redshiftserverless#ServiceQuotaExceededException":
|
|
413
|
+
throw await deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
414
|
+
case "ValidationException":
|
|
415
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
416
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
417
|
+
default:
|
|
418
|
+
const parsedBody = parsedOutput.body;
|
|
419
|
+
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
420
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
421
|
+
$fault: "client",
|
|
422
|
+
$metadata: deserializeMetadata(output),
|
|
423
|
+
});
|
|
424
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
425
|
+
}
|
|
426
|
+
};
|
|
427
|
+
const deserializeAws_json1_1CreateEndpointAccessCommand = async (output, context) => {
|
|
428
|
+
if (output.statusCode >= 300) {
|
|
429
|
+
return deserializeAws_json1_1CreateEndpointAccessCommandError(output, context);
|
|
430
|
+
}
|
|
431
|
+
const data = await parseBody(output.body, context);
|
|
432
|
+
let contents = {};
|
|
433
|
+
contents = deserializeAws_json1_1CreateEndpointAccessResponse(data, context);
|
|
434
|
+
const response = {
|
|
435
|
+
$metadata: deserializeMetadata(output),
|
|
436
|
+
...contents,
|
|
437
|
+
};
|
|
438
|
+
return Promise.resolve(response);
|
|
439
|
+
};
|
|
440
|
+
exports.deserializeAws_json1_1CreateEndpointAccessCommand = deserializeAws_json1_1CreateEndpointAccessCommand;
|
|
441
|
+
const deserializeAws_json1_1CreateEndpointAccessCommandError = async (output, context) => {
|
|
442
|
+
const parsedOutput = {
|
|
443
|
+
...output,
|
|
444
|
+
body: await parseBody(output.body, context),
|
|
445
|
+
};
|
|
446
|
+
let response;
|
|
447
|
+
let errorCode = "UnknownError";
|
|
448
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
449
|
+
switch (errorCode) {
|
|
450
|
+
case "AccessDeniedException":
|
|
451
|
+
case "com.amazonaws.redshiftserverless#AccessDeniedException":
|
|
452
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
453
|
+
case "ConflictException":
|
|
454
|
+
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
455
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
456
|
+
case "InternalServerException":
|
|
457
|
+
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
458
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
459
|
+
case "ResourceNotFoundException":
|
|
460
|
+
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
461
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
462
|
+
case "ServiceQuotaExceededException":
|
|
463
|
+
case "com.amazonaws.redshiftserverless#ServiceQuotaExceededException":
|
|
464
|
+
throw await deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
465
|
+
case "ValidationException":
|
|
466
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
467
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
468
|
+
default:
|
|
469
|
+
const parsedBody = parsedOutput.body;
|
|
470
|
+
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
471
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
472
|
+
$fault: "client",
|
|
473
|
+
$metadata: deserializeMetadata(output),
|
|
474
|
+
});
|
|
475
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
476
|
+
}
|
|
477
|
+
};
|
|
478
|
+
const deserializeAws_json1_1CreateNamespaceCommand = async (output, context) => {
|
|
479
|
+
if (output.statusCode >= 300) {
|
|
480
|
+
return deserializeAws_json1_1CreateNamespaceCommandError(output, context);
|
|
481
|
+
}
|
|
482
|
+
const data = await parseBody(output.body, context);
|
|
483
|
+
let contents = {};
|
|
484
|
+
contents = deserializeAws_json1_1CreateNamespaceResponse(data, context);
|
|
485
|
+
const response = {
|
|
486
|
+
$metadata: deserializeMetadata(output),
|
|
487
|
+
...contents,
|
|
488
|
+
};
|
|
489
|
+
return Promise.resolve(response);
|
|
490
|
+
};
|
|
491
|
+
exports.deserializeAws_json1_1CreateNamespaceCommand = deserializeAws_json1_1CreateNamespaceCommand;
|
|
492
|
+
const deserializeAws_json1_1CreateNamespaceCommandError = async (output, context) => {
|
|
493
|
+
const parsedOutput = {
|
|
494
|
+
...output,
|
|
495
|
+
body: await parseBody(output.body, context),
|
|
496
|
+
};
|
|
497
|
+
let response;
|
|
498
|
+
let errorCode = "UnknownError";
|
|
499
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
500
|
+
switch (errorCode) {
|
|
501
|
+
case "ConflictException":
|
|
502
|
+
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
503
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
504
|
+
case "InternalServerException":
|
|
505
|
+
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
506
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
507
|
+
case "TooManyTagsException":
|
|
508
|
+
case "com.amazonaws.redshiftserverless#TooManyTagsException":
|
|
509
|
+
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
510
|
+
case "ValidationException":
|
|
511
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
512
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
513
|
+
default:
|
|
514
|
+
const parsedBody = parsedOutput.body;
|
|
515
|
+
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
516
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
517
|
+
$fault: "client",
|
|
518
|
+
$metadata: deserializeMetadata(output),
|
|
519
|
+
});
|
|
520
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
521
|
+
}
|
|
522
|
+
};
|
|
523
|
+
const deserializeAws_json1_1CreateSnapshotCommand = async (output, context) => {
|
|
524
|
+
if (output.statusCode >= 300) {
|
|
525
|
+
return deserializeAws_json1_1CreateSnapshotCommandError(output, context);
|
|
526
|
+
}
|
|
527
|
+
const data = await parseBody(output.body, context);
|
|
528
|
+
let contents = {};
|
|
529
|
+
contents = deserializeAws_json1_1CreateSnapshotResponse(data, context);
|
|
530
|
+
const response = {
|
|
531
|
+
$metadata: deserializeMetadata(output),
|
|
532
|
+
...contents,
|
|
533
|
+
};
|
|
534
|
+
return Promise.resolve(response);
|
|
535
|
+
};
|
|
536
|
+
exports.deserializeAws_json1_1CreateSnapshotCommand = deserializeAws_json1_1CreateSnapshotCommand;
|
|
537
|
+
const deserializeAws_json1_1CreateSnapshotCommandError = async (output, context) => {
|
|
538
|
+
const parsedOutput = {
|
|
539
|
+
...output,
|
|
540
|
+
body: await parseBody(output.body, context),
|
|
541
|
+
};
|
|
542
|
+
let response;
|
|
543
|
+
let errorCode = "UnknownError";
|
|
544
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
545
|
+
switch (errorCode) {
|
|
546
|
+
case "ConflictException":
|
|
547
|
+
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
548
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
549
|
+
case "InternalServerException":
|
|
550
|
+
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
551
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
552
|
+
case "ResourceNotFoundException":
|
|
553
|
+
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
554
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
555
|
+
case "ServiceQuotaExceededException":
|
|
556
|
+
case "com.amazonaws.redshiftserverless#ServiceQuotaExceededException":
|
|
557
|
+
throw await deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
558
|
+
case "ValidationException":
|
|
559
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
560
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
561
|
+
default:
|
|
562
|
+
const parsedBody = parsedOutput.body;
|
|
563
|
+
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
564
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
565
|
+
$fault: "client",
|
|
566
|
+
$metadata: deserializeMetadata(output),
|
|
567
|
+
});
|
|
568
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
569
|
+
}
|
|
570
|
+
};
|
|
571
|
+
const deserializeAws_json1_1CreateUsageLimitCommand = async (output, context) => {
|
|
572
|
+
if (output.statusCode >= 300) {
|
|
573
|
+
return deserializeAws_json1_1CreateUsageLimitCommandError(output, context);
|
|
574
|
+
}
|
|
575
|
+
const data = await parseBody(output.body, context);
|
|
576
|
+
let contents = {};
|
|
577
|
+
contents = deserializeAws_json1_1CreateUsageLimitResponse(data, context);
|
|
578
|
+
const response = {
|
|
579
|
+
$metadata: deserializeMetadata(output),
|
|
580
|
+
...contents,
|
|
581
|
+
};
|
|
582
|
+
return Promise.resolve(response);
|
|
583
|
+
};
|
|
584
|
+
exports.deserializeAws_json1_1CreateUsageLimitCommand = deserializeAws_json1_1CreateUsageLimitCommand;
|
|
585
|
+
const deserializeAws_json1_1CreateUsageLimitCommandError = async (output, context) => {
|
|
586
|
+
const parsedOutput = {
|
|
587
|
+
...output,
|
|
588
|
+
body: await parseBody(output.body, context),
|
|
589
|
+
};
|
|
590
|
+
let response;
|
|
591
|
+
let errorCode = "UnknownError";
|
|
592
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
593
|
+
switch (errorCode) {
|
|
594
|
+
case "ConflictException":
|
|
595
|
+
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
596
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
597
|
+
case "InternalServerException":
|
|
598
|
+
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
599
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
600
|
+
case "ResourceNotFoundException":
|
|
601
|
+
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
602
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
603
|
+
case "ServiceQuotaExceededException":
|
|
604
|
+
case "com.amazonaws.redshiftserverless#ServiceQuotaExceededException":
|
|
605
|
+
throw await deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
606
|
+
case "ValidationException":
|
|
607
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
608
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
609
|
+
default:
|
|
610
|
+
const parsedBody = parsedOutput.body;
|
|
611
|
+
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
612
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
613
|
+
$fault: "client",
|
|
614
|
+
$metadata: deserializeMetadata(output),
|
|
615
|
+
});
|
|
616
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
617
|
+
}
|
|
618
|
+
};
|
|
619
|
+
const deserializeAws_json1_1CreateWorkgroupCommand = async (output, context) => {
|
|
620
|
+
if (output.statusCode >= 300) {
|
|
621
|
+
return deserializeAws_json1_1CreateWorkgroupCommandError(output, context);
|
|
622
|
+
}
|
|
623
|
+
const data = await parseBody(output.body, context);
|
|
624
|
+
let contents = {};
|
|
625
|
+
contents = deserializeAws_json1_1CreateWorkgroupResponse(data, context);
|
|
626
|
+
const response = {
|
|
627
|
+
$metadata: deserializeMetadata(output),
|
|
628
|
+
...contents,
|
|
629
|
+
};
|
|
630
|
+
return Promise.resolve(response);
|
|
631
|
+
};
|
|
632
|
+
exports.deserializeAws_json1_1CreateWorkgroupCommand = deserializeAws_json1_1CreateWorkgroupCommand;
|
|
633
|
+
const deserializeAws_json1_1CreateWorkgroupCommandError = async (output, context) => {
|
|
634
|
+
const parsedOutput = {
|
|
635
|
+
...output,
|
|
636
|
+
body: await parseBody(output.body, context),
|
|
637
|
+
};
|
|
638
|
+
let response;
|
|
639
|
+
let errorCode = "UnknownError";
|
|
640
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
641
|
+
switch (errorCode) {
|
|
642
|
+
case "ConflictException":
|
|
643
|
+
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
644
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
645
|
+
case "InsufficientCapacityException":
|
|
646
|
+
case "com.amazonaws.redshiftserverless#InsufficientCapacityException":
|
|
647
|
+
throw await deserializeAws_json1_1InsufficientCapacityExceptionResponse(parsedOutput, context);
|
|
648
|
+
case "InternalServerException":
|
|
649
|
+
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
650
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
651
|
+
case "ResourceNotFoundException":
|
|
652
|
+
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
653
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
654
|
+
case "TooManyTagsException":
|
|
655
|
+
case "com.amazonaws.redshiftserverless#TooManyTagsException":
|
|
656
|
+
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
657
|
+
case "ValidationException":
|
|
658
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
659
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
660
|
+
default:
|
|
661
|
+
const parsedBody = parsedOutput.body;
|
|
662
|
+
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
663
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
664
|
+
$fault: "client",
|
|
665
|
+
$metadata: deserializeMetadata(output),
|
|
666
|
+
});
|
|
667
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
668
|
+
}
|
|
669
|
+
};
|
|
670
|
+
const deserializeAws_json1_1DeleteEndpointAccessCommand = async (output, context) => {
|
|
671
|
+
if (output.statusCode >= 300) {
|
|
672
|
+
return deserializeAws_json1_1DeleteEndpointAccessCommandError(output, context);
|
|
673
|
+
}
|
|
674
|
+
const data = await parseBody(output.body, context);
|
|
675
|
+
let contents = {};
|
|
676
|
+
contents = deserializeAws_json1_1DeleteEndpointAccessResponse(data, context);
|
|
677
|
+
const response = {
|
|
678
|
+
$metadata: deserializeMetadata(output),
|
|
679
|
+
...contents,
|
|
680
|
+
};
|
|
681
|
+
return Promise.resolve(response);
|
|
682
|
+
};
|
|
683
|
+
exports.deserializeAws_json1_1DeleteEndpointAccessCommand = deserializeAws_json1_1DeleteEndpointAccessCommand;
|
|
684
|
+
const deserializeAws_json1_1DeleteEndpointAccessCommandError = async (output, context) => {
|
|
685
|
+
const parsedOutput = {
|
|
686
|
+
...output,
|
|
687
|
+
body: await parseBody(output.body, context),
|
|
688
|
+
};
|
|
689
|
+
let response;
|
|
690
|
+
let errorCode = "UnknownError";
|
|
691
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
692
|
+
switch (errorCode) {
|
|
693
|
+
case "ConflictException":
|
|
694
|
+
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
695
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
696
|
+
case "InternalServerException":
|
|
697
|
+
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
698
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
699
|
+
case "ResourceNotFoundException":
|
|
700
|
+
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
701
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
702
|
+
case "ValidationException":
|
|
703
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
704
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
705
|
+
default:
|
|
706
|
+
const parsedBody = parsedOutput.body;
|
|
707
|
+
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
708
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
709
|
+
$fault: "client",
|
|
710
|
+
$metadata: deserializeMetadata(output),
|
|
711
|
+
});
|
|
712
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
713
|
+
}
|
|
714
|
+
};
|
|
715
|
+
const deserializeAws_json1_1DeleteNamespaceCommand = async (output, context) => {
|
|
716
|
+
if (output.statusCode >= 300) {
|
|
717
|
+
return deserializeAws_json1_1DeleteNamespaceCommandError(output, context);
|
|
718
|
+
}
|
|
719
|
+
const data = await parseBody(output.body, context);
|
|
720
|
+
let contents = {};
|
|
721
|
+
contents = deserializeAws_json1_1DeleteNamespaceResponse(data, context);
|
|
722
|
+
const response = {
|
|
723
|
+
$metadata: deserializeMetadata(output),
|
|
724
|
+
...contents,
|
|
725
|
+
};
|
|
726
|
+
return Promise.resolve(response);
|
|
727
|
+
};
|
|
728
|
+
exports.deserializeAws_json1_1DeleteNamespaceCommand = deserializeAws_json1_1DeleteNamespaceCommand;
|
|
729
|
+
const deserializeAws_json1_1DeleteNamespaceCommandError = async (output, context) => {
|
|
730
|
+
const parsedOutput = {
|
|
731
|
+
...output,
|
|
732
|
+
body: await parseBody(output.body, context),
|
|
733
|
+
};
|
|
734
|
+
let response;
|
|
735
|
+
let errorCode = "UnknownError";
|
|
736
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
737
|
+
switch (errorCode) {
|
|
738
|
+
case "ConflictException":
|
|
739
|
+
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
740
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
741
|
+
case "InternalServerException":
|
|
742
|
+
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
743
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
744
|
+
case "ResourceNotFoundException":
|
|
745
|
+
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
746
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
747
|
+
case "ValidationException":
|
|
748
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
749
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
750
|
+
default:
|
|
751
|
+
const parsedBody = parsedOutput.body;
|
|
752
|
+
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
753
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
754
|
+
$fault: "client",
|
|
755
|
+
$metadata: deserializeMetadata(output),
|
|
756
|
+
});
|
|
757
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
758
|
+
}
|
|
759
|
+
};
|
|
760
|
+
const deserializeAws_json1_1DeleteResourcePolicyCommand = async (output, context) => {
|
|
761
|
+
if (output.statusCode >= 300) {
|
|
762
|
+
return deserializeAws_json1_1DeleteResourcePolicyCommandError(output, context);
|
|
763
|
+
}
|
|
764
|
+
const data = await parseBody(output.body, context);
|
|
765
|
+
let contents = {};
|
|
766
|
+
contents = deserializeAws_json1_1DeleteResourcePolicyResponse(data, context);
|
|
767
|
+
const response = {
|
|
768
|
+
$metadata: deserializeMetadata(output),
|
|
769
|
+
...contents,
|
|
770
|
+
};
|
|
771
|
+
return Promise.resolve(response);
|
|
772
|
+
};
|
|
773
|
+
exports.deserializeAws_json1_1DeleteResourcePolicyCommand = deserializeAws_json1_1DeleteResourcePolicyCommand;
|
|
774
|
+
const deserializeAws_json1_1DeleteResourcePolicyCommandError = async (output, context) => {
|
|
775
|
+
const parsedOutput = {
|
|
776
|
+
...output,
|
|
777
|
+
body: await parseBody(output.body, context),
|
|
778
|
+
};
|
|
779
|
+
let response;
|
|
780
|
+
let errorCode = "UnknownError";
|
|
781
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
782
|
+
switch (errorCode) {
|
|
783
|
+
case "InternalServerException":
|
|
784
|
+
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
785
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
786
|
+
case "ResourceNotFoundException":
|
|
787
|
+
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
788
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
789
|
+
case "ValidationException":
|
|
790
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
791
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
792
|
+
default:
|
|
793
|
+
const parsedBody = parsedOutput.body;
|
|
794
|
+
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
795
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
796
|
+
$fault: "client",
|
|
797
|
+
$metadata: deserializeMetadata(output),
|
|
798
|
+
});
|
|
799
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
800
|
+
}
|
|
801
|
+
};
|
|
802
|
+
const deserializeAws_json1_1DeleteSnapshotCommand = async (output, context) => {
|
|
803
|
+
if (output.statusCode >= 300) {
|
|
804
|
+
return deserializeAws_json1_1DeleteSnapshotCommandError(output, context);
|
|
805
|
+
}
|
|
806
|
+
const data = await parseBody(output.body, context);
|
|
807
|
+
let contents = {};
|
|
808
|
+
contents = deserializeAws_json1_1DeleteSnapshotResponse(data, context);
|
|
809
|
+
const response = {
|
|
810
|
+
$metadata: deserializeMetadata(output),
|
|
811
|
+
...contents,
|
|
812
|
+
};
|
|
813
|
+
return Promise.resolve(response);
|
|
814
|
+
};
|
|
815
|
+
exports.deserializeAws_json1_1DeleteSnapshotCommand = deserializeAws_json1_1DeleteSnapshotCommand;
|
|
816
|
+
const deserializeAws_json1_1DeleteSnapshotCommandError = async (output, context) => {
|
|
817
|
+
const parsedOutput = {
|
|
818
|
+
...output,
|
|
819
|
+
body: await parseBody(output.body, context),
|
|
820
|
+
};
|
|
821
|
+
let response;
|
|
822
|
+
let errorCode = "UnknownError";
|
|
823
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
824
|
+
switch (errorCode) {
|
|
825
|
+
case "ConflictException":
|
|
826
|
+
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
827
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
828
|
+
case "InternalServerException":
|
|
829
|
+
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
830
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
831
|
+
case "ResourceNotFoundException":
|
|
832
|
+
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
833
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
834
|
+
case "ValidationException":
|
|
835
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
836
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
837
|
+
default:
|
|
838
|
+
const parsedBody = parsedOutput.body;
|
|
839
|
+
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
840
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
841
|
+
$fault: "client",
|
|
842
|
+
$metadata: deserializeMetadata(output),
|
|
843
|
+
});
|
|
844
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
845
|
+
}
|
|
846
|
+
};
|
|
847
|
+
const deserializeAws_json1_1DeleteUsageLimitCommand = async (output, context) => {
|
|
848
|
+
if (output.statusCode >= 300) {
|
|
849
|
+
return deserializeAws_json1_1DeleteUsageLimitCommandError(output, context);
|
|
850
|
+
}
|
|
851
|
+
const data = await parseBody(output.body, context);
|
|
852
|
+
let contents = {};
|
|
853
|
+
contents = deserializeAws_json1_1DeleteUsageLimitResponse(data, context);
|
|
854
|
+
const response = {
|
|
855
|
+
$metadata: deserializeMetadata(output),
|
|
856
|
+
...contents,
|
|
857
|
+
};
|
|
858
|
+
return Promise.resolve(response);
|
|
859
|
+
};
|
|
860
|
+
exports.deserializeAws_json1_1DeleteUsageLimitCommand = deserializeAws_json1_1DeleteUsageLimitCommand;
|
|
861
|
+
const deserializeAws_json1_1DeleteUsageLimitCommandError = async (output, context) => {
|
|
862
|
+
const parsedOutput = {
|
|
863
|
+
...output,
|
|
864
|
+
body: await parseBody(output.body, context),
|
|
865
|
+
};
|
|
866
|
+
let response;
|
|
867
|
+
let errorCode = "UnknownError";
|
|
868
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
869
|
+
switch (errorCode) {
|
|
870
|
+
case "ConflictException":
|
|
871
|
+
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
872
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
873
|
+
case "InternalServerException":
|
|
874
|
+
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
875
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
876
|
+
case "ResourceNotFoundException":
|
|
877
|
+
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
878
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
879
|
+
case "ValidationException":
|
|
880
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
881
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
882
|
+
default:
|
|
883
|
+
const parsedBody = parsedOutput.body;
|
|
884
|
+
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
885
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
886
|
+
$fault: "client",
|
|
887
|
+
$metadata: deserializeMetadata(output),
|
|
888
|
+
});
|
|
889
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
890
|
+
}
|
|
891
|
+
};
|
|
892
|
+
const deserializeAws_json1_1DeleteWorkgroupCommand = async (output, context) => {
|
|
893
|
+
if (output.statusCode >= 300) {
|
|
894
|
+
return deserializeAws_json1_1DeleteWorkgroupCommandError(output, context);
|
|
895
|
+
}
|
|
896
|
+
const data = await parseBody(output.body, context);
|
|
897
|
+
let contents = {};
|
|
898
|
+
contents = deserializeAws_json1_1DeleteWorkgroupResponse(data, context);
|
|
899
|
+
const response = {
|
|
900
|
+
$metadata: deserializeMetadata(output),
|
|
901
|
+
...contents,
|
|
902
|
+
};
|
|
903
|
+
return Promise.resolve(response);
|
|
904
|
+
};
|
|
905
|
+
exports.deserializeAws_json1_1DeleteWorkgroupCommand = deserializeAws_json1_1DeleteWorkgroupCommand;
|
|
906
|
+
const deserializeAws_json1_1DeleteWorkgroupCommandError = async (output, context) => {
|
|
907
|
+
const parsedOutput = {
|
|
908
|
+
...output,
|
|
909
|
+
body: await parseBody(output.body, context),
|
|
910
|
+
};
|
|
911
|
+
let response;
|
|
912
|
+
let errorCode = "UnknownError";
|
|
913
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
914
|
+
switch (errorCode) {
|
|
915
|
+
case "ConflictException":
|
|
916
|
+
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
917
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
918
|
+
case "InternalServerException":
|
|
919
|
+
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
920
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
921
|
+
case "ResourceNotFoundException":
|
|
922
|
+
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
923
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
924
|
+
case "ValidationException":
|
|
925
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
926
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
927
|
+
default:
|
|
928
|
+
const parsedBody = parsedOutput.body;
|
|
929
|
+
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
930
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
931
|
+
$fault: "client",
|
|
932
|
+
$metadata: deserializeMetadata(output),
|
|
933
|
+
});
|
|
934
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
935
|
+
}
|
|
936
|
+
};
|
|
937
|
+
const deserializeAws_json1_1GetCredentialsCommand = async (output, context) => {
|
|
938
|
+
if (output.statusCode >= 300) {
|
|
939
|
+
return deserializeAws_json1_1GetCredentialsCommandError(output, context);
|
|
940
|
+
}
|
|
941
|
+
const data = await parseBody(output.body, context);
|
|
942
|
+
let contents = {};
|
|
943
|
+
contents = deserializeAws_json1_1GetCredentialsResponse(data, context);
|
|
944
|
+
const response = {
|
|
945
|
+
$metadata: deserializeMetadata(output),
|
|
946
|
+
...contents,
|
|
947
|
+
};
|
|
948
|
+
return Promise.resolve(response);
|
|
949
|
+
};
|
|
950
|
+
exports.deserializeAws_json1_1GetCredentialsCommand = deserializeAws_json1_1GetCredentialsCommand;
|
|
951
|
+
const deserializeAws_json1_1GetCredentialsCommandError = async (output, context) => {
|
|
952
|
+
const parsedOutput = {
|
|
953
|
+
...output,
|
|
954
|
+
body: await parseBody(output.body, context),
|
|
955
|
+
};
|
|
956
|
+
let response;
|
|
957
|
+
let errorCode = "UnknownError";
|
|
958
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
959
|
+
switch (errorCode) {
|
|
960
|
+
case "InternalServerException":
|
|
961
|
+
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
962
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
963
|
+
case "ResourceNotFoundException":
|
|
964
|
+
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
965
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
966
|
+
case "ValidationException":
|
|
967
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
968
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
969
|
+
default:
|
|
970
|
+
const parsedBody = parsedOutput.body;
|
|
971
|
+
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
972
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
973
|
+
$fault: "client",
|
|
974
|
+
$metadata: deserializeMetadata(output),
|
|
975
|
+
});
|
|
976
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
977
|
+
}
|
|
978
|
+
};
|
|
979
|
+
const deserializeAws_json1_1GetEndpointAccessCommand = async (output, context) => {
|
|
980
|
+
if (output.statusCode >= 300) {
|
|
981
|
+
return deserializeAws_json1_1GetEndpointAccessCommandError(output, context);
|
|
982
|
+
}
|
|
983
|
+
const data = await parseBody(output.body, context);
|
|
984
|
+
let contents = {};
|
|
985
|
+
contents = deserializeAws_json1_1GetEndpointAccessResponse(data, context);
|
|
986
|
+
const response = {
|
|
987
|
+
$metadata: deserializeMetadata(output),
|
|
988
|
+
...contents,
|
|
989
|
+
};
|
|
990
|
+
return Promise.resolve(response);
|
|
991
|
+
};
|
|
992
|
+
exports.deserializeAws_json1_1GetEndpointAccessCommand = deserializeAws_json1_1GetEndpointAccessCommand;
|
|
993
|
+
const deserializeAws_json1_1GetEndpointAccessCommandError = async (output, context) => {
|
|
994
|
+
const parsedOutput = {
|
|
995
|
+
...output,
|
|
996
|
+
body: await parseBody(output.body, context),
|
|
997
|
+
};
|
|
998
|
+
let response;
|
|
999
|
+
let errorCode = "UnknownError";
|
|
1000
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1001
|
+
switch (errorCode) {
|
|
1002
|
+
case "ConflictException":
|
|
1003
|
+
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
1004
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
1005
|
+
case "InternalServerException":
|
|
1006
|
+
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1007
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1008
|
+
case "ResourceNotFoundException":
|
|
1009
|
+
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1010
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1011
|
+
case "ValidationException":
|
|
1012
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1013
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1014
|
+
default:
|
|
1015
|
+
const parsedBody = parsedOutput.body;
|
|
1016
|
+
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
1017
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1018
|
+
$fault: "client",
|
|
1019
|
+
$metadata: deserializeMetadata(output),
|
|
1020
|
+
});
|
|
1021
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1022
|
+
}
|
|
1023
|
+
};
|
|
1024
|
+
const deserializeAws_json1_1GetNamespaceCommand = async (output, context) => {
|
|
1025
|
+
if (output.statusCode >= 300) {
|
|
1026
|
+
return deserializeAws_json1_1GetNamespaceCommandError(output, context);
|
|
1027
|
+
}
|
|
1028
|
+
const data = await parseBody(output.body, context);
|
|
1029
|
+
let contents = {};
|
|
1030
|
+
contents = deserializeAws_json1_1GetNamespaceResponse(data, context);
|
|
1031
|
+
const response = {
|
|
1032
|
+
$metadata: deserializeMetadata(output),
|
|
1033
|
+
...contents,
|
|
1034
|
+
};
|
|
1035
|
+
return Promise.resolve(response);
|
|
1036
|
+
};
|
|
1037
|
+
exports.deserializeAws_json1_1GetNamespaceCommand = deserializeAws_json1_1GetNamespaceCommand;
|
|
1038
|
+
const deserializeAws_json1_1GetNamespaceCommandError = async (output, context) => {
|
|
1039
|
+
const parsedOutput = {
|
|
1040
|
+
...output,
|
|
1041
|
+
body: await parseBody(output.body, context),
|
|
1042
|
+
};
|
|
1043
|
+
let response;
|
|
1044
|
+
let errorCode = "UnknownError";
|
|
1045
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1046
|
+
switch (errorCode) {
|
|
1047
|
+
case "InternalServerException":
|
|
1048
|
+
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1049
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1050
|
+
case "ResourceNotFoundException":
|
|
1051
|
+
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1052
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1053
|
+
case "ValidationException":
|
|
1054
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1055
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1056
|
+
default:
|
|
1057
|
+
const parsedBody = parsedOutput.body;
|
|
1058
|
+
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
1059
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1060
|
+
$fault: "client",
|
|
1061
|
+
$metadata: deserializeMetadata(output),
|
|
1062
|
+
});
|
|
1063
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1064
|
+
}
|
|
1065
|
+
};
|
|
1066
|
+
const deserializeAws_json1_1GetRecoveryPointCommand = async (output, context) => {
|
|
1067
|
+
if (output.statusCode >= 300) {
|
|
1068
|
+
return deserializeAws_json1_1GetRecoveryPointCommandError(output, context);
|
|
1069
|
+
}
|
|
1070
|
+
const data = await parseBody(output.body, context);
|
|
1071
|
+
let contents = {};
|
|
1072
|
+
contents = deserializeAws_json1_1GetRecoveryPointResponse(data, context);
|
|
1073
|
+
const response = {
|
|
1074
|
+
$metadata: deserializeMetadata(output),
|
|
1075
|
+
...contents,
|
|
1076
|
+
};
|
|
1077
|
+
return Promise.resolve(response);
|
|
1078
|
+
};
|
|
1079
|
+
exports.deserializeAws_json1_1GetRecoveryPointCommand = deserializeAws_json1_1GetRecoveryPointCommand;
|
|
1080
|
+
const deserializeAws_json1_1GetRecoveryPointCommandError = async (output, context) => {
|
|
1081
|
+
const parsedOutput = {
|
|
1082
|
+
...output,
|
|
1083
|
+
body: await parseBody(output.body, context),
|
|
1084
|
+
};
|
|
1085
|
+
let response;
|
|
1086
|
+
let errorCode = "UnknownError";
|
|
1087
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1088
|
+
switch (errorCode) {
|
|
1089
|
+
case "ConflictException":
|
|
1090
|
+
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
1091
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
1092
|
+
case "InternalServerException":
|
|
1093
|
+
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1094
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1095
|
+
case "ResourceNotFoundException":
|
|
1096
|
+
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1097
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1098
|
+
case "ValidationException":
|
|
1099
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1100
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1101
|
+
default:
|
|
1102
|
+
const parsedBody = parsedOutput.body;
|
|
1103
|
+
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
1104
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1105
|
+
$fault: "client",
|
|
1106
|
+
$metadata: deserializeMetadata(output),
|
|
1107
|
+
});
|
|
1108
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1109
|
+
}
|
|
1110
|
+
};
|
|
1111
|
+
const deserializeAws_json1_1GetResourcePolicyCommand = async (output, context) => {
|
|
1112
|
+
if (output.statusCode >= 300) {
|
|
1113
|
+
return deserializeAws_json1_1GetResourcePolicyCommandError(output, context);
|
|
1114
|
+
}
|
|
1115
|
+
const data = await parseBody(output.body, context);
|
|
1116
|
+
let contents = {};
|
|
1117
|
+
contents = deserializeAws_json1_1GetResourcePolicyResponse(data, context);
|
|
1118
|
+
const response = {
|
|
1119
|
+
$metadata: deserializeMetadata(output),
|
|
1120
|
+
...contents,
|
|
1121
|
+
};
|
|
1122
|
+
return Promise.resolve(response);
|
|
1123
|
+
};
|
|
1124
|
+
exports.deserializeAws_json1_1GetResourcePolicyCommand = deserializeAws_json1_1GetResourcePolicyCommand;
|
|
1125
|
+
const deserializeAws_json1_1GetResourcePolicyCommandError = async (output, context) => {
|
|
1126
|
+
const parsedOutput = {
|
|
1127
|
+
...output,
|
|
1128
|
+
body: await parseBody(output.body, context),
|
|
1129
|
+
};
|
|
1130
|
+
let response;
|
|
1131
|
+
let errorCode = "UnknownError";
|
|
1132
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1133
|
+
switch (errorCode) {
|
|
1134
|
+
case "InternalServerException":
|
|
1135
|
+
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1136
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1137
|
+
case "ResourceNotFoundException":
|
|
1138
|
+
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1139
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1140
|
+
case "ValidationException":
|
|
1141
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1142
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1143
|
+
default:
|
|
1144
|
+
const parsedBody = parsedOutput.body;
|
|
1145
|
+
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
1146
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1147
|
+
$fault: "client",
|
|
1148
|
+
$metadata: deserializeMetadata(output),
|
|
1149
|
+
});
|
|
1150
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1151
|
+
}
|
|
1152
|
+
};
|
|
1153
|
+
const deserializeAws_json1_1GetSnapshotCommand = async (output, context) => {
|
|
1154
|
+
if (output.statusCode >= 300) {
|
|
1155
|
+
return deserializeAws_json1_1GetSnapshotCommandError(output, context);
|
|
1156
|
+
}
|
|
1157
|
+
const data = await parseBody(output.body, context);
|
|
1158
|
+
let contents = {};
|
|
1159
|
+
contents = deserializeAws_json1_1GetSnapshotResponse(data, context);
|
|
1160
|
+
const response = {
|
|
1161
|
+
$metadata: deserializeMetadata(output),
|
|
1162
|
+
...contents,
|
|
1163
|
+
};
|
|
1164
|
+
return Promise.resolve(response);
|
|
1165
|
+
};
|
|
1166
|
+
exports.deserializeAws_json1_1GetSnapshotCommand = deserializeAws_json1_1GetSnapshotCommand;
|
|
1167
|
+
const deserializeAws_json1_1GetSnapshotCommandError = async (output, context) => {
|
|
1168
|
+
const parsedOutput = {
|
|
1169
|
+
...output,
|
|
1170
|
+
body: await parseBody(output.body, context),
|
|
1171
|
+
};
|
|
1172
|
+
let response;
|
|
1173
|
+
let errorCode = "UnknownError";
|
|
1174
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1175
|
+
switch (errorCode) {
|
|
1176
|
+
case "InternalServerException":
|
|
1177
|
+
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1178
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1179
|
+
case "ResourceNotFoundException":
|
|
1180
|
+
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1181
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1182
|
+
case "ValidationException":
|
|
1183
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1184
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1185
|
+
default:
|
|
1186
|
+
const parsedBody = parsedOutput.body;
|
|
1187
|
+
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
1188
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1189
|
+
$fault: "client",
|
|
1190
|
+
$metadata: deserializeMetadata(output),
|
|
1191
|
+
});
|
|
1192
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1193
|
+
}
|
|
1194
|
+
};
|
|
1195
|
+
const deserializeAws_json1_1GetUsageLimitCommand = async (output, context) => {
|
|
1196
|
+
if (output.statusCode >= 300) {
|
|
1197
|
+
return deserializeAws_json1_1GetUsageLimitCommandError(output, context);
|
|
1198
|
+
}
|
|
1199
|
+
const data = await parseBody(output.body, context);
|
|
1200
|
+
let contents = {};
|
|
1201
|
+
contents = deserializeAws_json1_1GetUsageLimitResponse(data, context);
|
|
1202
|
+
const response = {
|
|
1203
|
+
$metadata: deserializeMetadata(output),
|
|
1204
|
+
...contents,
|
|
1205
|
+
};
|
|
1206
|
+
return Promise.resolve(response);
|
|
1207
|
+
};
|
|
1208
|
+
exports.deserializeAws_json1_1GetUsageLimitCommand = deserializeAws_json1_1GetUsageLimitCommand;
|
|
1209
|
+
const deserializeAws_json1_1GetUsageLimitCommandError = async (output, context) => {
|
|
1210
|
+
const parsedOutput = {
|
|
1211
|
+
...output,
|
|
1212
|
+
body: await parseBody(output.body, context),
|
|
1213
|
+
};
|
|
1214
|
+
let response;
|
|
1215
|
+
let errorCode = "UnknownError";
|
|
1216
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1217
|
+
switch (errorCode) {
|
|
1218
|
+
case "ConflictException":
|
|
1219
|
+
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
1220
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
1221
|
+
case "InternalServerException":
|
|
1222
|
+
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1223
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1224
|
+
case "ResourceNotFoundException":
|
|
1225
|
+
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1226
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1227
|
+
case "ValidationException":
|
|
1228
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1229
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1230
|
+
default:
|
|
1231
|
+
const parsedBody = parsedOutput.body;
|
|
1232
|
+
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
1233
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1234
|
+
$fault: "client",
|
|
1235
|
+
$metadata: deserializeMetadata(output),
|
|
1236
|
+
});
|
|
1237
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1238
|
+
}
|
|
1239
|
+
};
|
|
1240
|
+
const deserializeAws_json1_1GetWorkgroupCommand = async (output, context) => {
|
|
1241
|
+
if (output.statusCode >= 300) {
|
|
1242
|
+
return deserializeAws_json1_1GetWorkgroupCommandError(output, context);
|
|
1243
|
+
}
|
|
1244
|
+
const data = await parseBody(output.body, context);
|
|
1245
|
+
let contents = {};
|
|
1246
|
+
contents = deserializeAws_json1_1GetWorkgroupResponse(data, context);
|
|
1247
|
+
const response = {
|
|
1248
|
+
$metadata: deserializeMetadata(output),
|
|
1249
|
+
...contents,
|
|
1250
|
+
};
|
|
1251
|
+
return Promise.resolve(response);
|
|
1252
|
+
};
|
|
1253
|
+
exports.deserializeAws_json1_1GetWorkgroupCommand = deserializeAws_json1_1GetWorkgroupCommand;
|
|
1254
|
+
const deserializeAws_json1_1GetWorkgroupCommandError = async (output, context) => {
|
|
1255
|
+
const parsedOutput = {
|
|
1256
|
+
...output,
|
|
1257
|
+
body: await parseBody(output.body, context),
|
|
1258
|
+
};
|
|
1259
|
+
let response;
|
|
1260
|
+
let errorCode = "UnknownError";
|
|
1261
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1262
|
+
switch (errorCode) {
|
|
1263
|
+
case "InternalServerException":
|
|
1264
|
+
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1265
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1266
|
+
case "ResourceNotFoundException":
|
|
1267
|
+
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1268
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1269
|
+
case "ValidationException":
|
|
1270
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1271
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1272
|
+
default:
|
|
1273
|
+
const parsedBody = parsedOutput.body;
|
|
1274
|
+
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
1275
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1276
|
+
$fault: "client",
|
|
1277
|
+
$metadata: deserializeMetadata(output),
|
|
1278
|
+
});
|
|
1279
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1280
|
+
}
|
|
1281
|
+
};
|
|
1282
|
+
const deserializeAws_json1_1ListEndpointAccessCommand = async (output, context) => {
|
|
1283
|
+
if (output.statusCode >= 300) {
|
|
1284
|
+
return deserializeAws_json1_1ListEndpointAccessCommandError(output, context);
|
|
1285
|
+
}
|
|
1286
|
+
const data = await parseBody(output.body, context);
|
|
1287
|
+
let contents = {};
|
|
1288
|
+
contents = deserializeAws_json1_1ListEndpointAccessResponse(data, context);
|
|
1289
|
+
const response = {
|
|
1290
|
+
$metadata: deserializeMetadata(output),
|
|
1291
|
+
...contents,
|
|
1292
|
+
};
|
|
1293
|
+
return Promise.resolve(response);
|
|
1294
|
+
};
|
|
1295
|
+
exports.deserializeAws_json1_1ListEndpointAccessCommand = deserializeAws_json1_1ListEndpointAccessCommand;
|
|
1296
|
+
const deserializeAws_json1_1ListEndpointAccessCommandError = async (output, context) => {
|
|
1297
|
+
const parsedOutput = {
|
|
1298
|
+
...output,
|
|
1299
|
+
body: await parseBody(output.body, context),
|
|
1300
|
+
};
|
|
1301
|
+
let response;
|
|
1302
|
+
let errorCode = "UnknownError";
|
|
1303
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1304
|
+
switch (errorCode) {
|
|
1305
|
+
case "ConflictException":
|
|
1306
|
+
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
1307
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
1308
|
+
case "InternalServerException":
|
|
1309
|
+
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1310
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1311
|
+
case "ResourceNotFoundException":
|
|
1312
|
+
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1313
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1314
|
+
case "ValidationException":
|
|
1315
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1316
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1317
|
+
default:
|
|
1318
|
+
const parsedBody = parsedOutput.body;
|
|
1319
|
+
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
1320
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1321
|
+
$fault: "client",
|
|
1322
|
+
$metadata: deserializeMetadata(output),
|
|
1323
|
+
});
|
|
1324
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1325
|
+
}
|
|
1326
|
+
};
|
|
1327
|
+
const deserializeAws_json1_1ListNamespacesCommand = async (output, context) => {
|
|
1328
|
+
if (output.statusCode >= 300) {
|
|
1329
|
+
return deserializeAws_json1_1ListNamespacesCommandError(output, context);
|
|
1330
|
+
}
|
|
1331
|
+
const data = await parseBody(output.body, context);
|
|
1332
|
+
let contents = {};
|
|
1333
|
+
contents = deserializeAws_json1_1ListNamespacesResponse(data, context);
|
|
1334
|
+
const response = {
|
|
1335
|
+
$metadata: deserializeMetadata(output),
|
|
1336
|
+
...contents,
|
|
1337
|
+
};
|
|
1338
|
+
return Promise.resolve(response);
|
|
1339
|
+
};
|
|
1340
|
+
exports.deserializeAws_json1_1ListNamespacesCommand = deserializeAws_json1_1ListNamespacesCommand;
|
|
1341
|
+
const deserializeAws_json1_1ListNamespacesCommandError = async (output, context) => {
|
|
1342
|
+
const parsedOutput = {
|
|
1343
|
+
...output,
|
|
1344
|
+
body: await parseBody(output.body, context),
|
|
1345
|
+
};
|
|
1346
|
+
let response;
|
|
1347
|
+
let errorCode = "UnknownError";
|
|
1348
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1349
|
+
switch (errorCode) {
|
|
1350
|
+
case "InternalServerException":
|
|
1351
|
+
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1352
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1353
|
+
case "ValidationException":
|
|
1354
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1355
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1356
|
+
default:
|
|
1357
|
+
const parsedBody = parsedOutput.body;
|
|
1358
|
+
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
1359
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1360
|
+
$fault: "client",
|
|
1361
|
+
$metadata: deserializeMetadata(output),
|
|
1362
|
+
});
|
|
1363
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1364
|
+
}
|
|
1365
|
+
};
|
|
1366
|
+
const deserializeAws_json1_1ListRecoveryPointsCommand = async (output, context) => {
|
|
1367
|
+
if (output.statusCode >= 300) {
|
|
1368
|
+
return deserializeAws_json1_1ListRecoveryPointsCommandError(output, context);
|
|
1369
|
+
}
|
|
1370
|
+
const data = await parseBody(output.body, context);
|
|
1371
|
+
let contents = {};
|
|
1372
|
+
contents = deserializeAws_json1_1ListRecoveryPointsResponse(data, context);
|
|
1373
|
+
const response = {
|
|
1374
|
+
$metadata: deserializeMetadata(output),
|
|
1375
|
+
...contents,
|
|
1376
|
+
};
|
|
1377
|
+
return Promise.resolve(response);
|
|
1378
|
+
};
|
|
1379
|
+
exports.deserializeAws_json1_1ListRecoveryPointsCommand = deserializeAws_json1_1ListRecoveryPointsCommand;
|
|
1380
|
+
const deserializeAws_json1_1ListRecoveryPointsCommandError = async (output, context) => {
|
|
1381
|
+
const parsedOutput = {
|
|
1382
|
+
...output,
|
|
1383
|
+
body: await parseBody(output.body, context),
|
|
1384
|
+
};
|
|
1385
|
+
let response;
|
|
1386
|
+
let errorCode = "UnknownError";
|
|
1387
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1388
|
+
switch (errorCode) {
|
|
1389
|
+
case "InternalServerException":
|
|
1390
|
+
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1391
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1392
|
+
case "ValidationException":
|
|
1393
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1394
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1395
|
+
default:
|
|
1396
|
+
const parsedBody = parsedOutput.body;
|
|
1397
|
+
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
1398
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1399
|
+
$fault: "client",
|
|
1400
|
+
$metadata: deserializeMetadata(output),
|
|
1401
|
+
});
|
|
1402
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1403
|
+
}
|
|
1404
|
+
};
|
|
1405
|
+
const deserializeAws_json1_1ListSnapshotsCommand = async (output, context) => {
|
|
1406
|
+
if (output.statusCode >= 300) {
|
|
1407
|
+
return deserializeAws_json1_1ListSnapshotsCommandError(output, context);
|
|
1408
|
+
}
|
|
1409
|
+
const data = await parseBody(output.body, context);
|
|
1410
|
+
let contents = {};
|
|
1411
|
+
contents = deserializeAws_json1_1ListSnapshotsResponse(data, context);
|
|
1412
|
+
const response = {
|
|
1413
|
+
$metadata: deserializeMetadata(output),
|
|
1414
|
+
...contents,
|
|
1415
|
+
};
|
|
1416
|
+
return Promise.resolve(response);
|
|
1417
|
+
};
|
|
1418
|
+
exports.deserializeAws_json1_1ListSnapshotsCommand = deserializeAws_json1_1ListSnapshotsCommand;
|
|
1419
|
+
const deserializeAws_json1_1ListSnapshotsCommandError = async (output, context) => {
|
|
1420
|
+
const parsedOutput = {
|
|
1421
|
+
...output,
|
|
1422
|
+
body: await parseBody(output.body, context),
|
|
1423
|
+
};
|
|
1424
|
+
let response;
|
|
1425
|
+
let errorCode = "UnknownError";
|
|
1426
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1427
|
+
switch (errorCode) {
|
|
1428
|
+
case "InternalServerException":
|
|
1429
|
+
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1430
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1431
|
+
case "ResourceNotFoundException":
|
|
1432
|
+
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1433
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1434
|
+
case "ValidationException":
|
|
1435
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1436
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1437
|
+
default:
|
|
1438
|
+
const parsedBody = parsedOutput.body;
|
|
1439
|
+
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
1440
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1441
|
+
$fault: "client",
|
|
1442
|
+
$metadata: deserializeMetadata(output),
|
|
1443
|
+
});
|
|
1444
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1445
|
+
}
|
|
1446
|
+
};
|
|
1447
|
+
const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => {
|
|
1448
|
+
if (output.statusCode >= 300) {
|
|
1449
|
+
return deserializeAws_json1_1ListTagsForResourceCommandError(output, context);
|
|
1450
|
+
}
|
|
1451
|
+
const data = await parseBody(output.body, context);
|
|
1452
|
+
let contents = {};
|
|
1453
|
+
contents = deserializeAws_json1_1ListTagsForResourceResponse(data, context);
|
|
1454
|
+
const response = {
|
|
1455
|
+
$metadata: deserializeMetadata(output),
|
|
1456
|
+
...contents,
|
|
1457
|
+
};
|
|
1458
|
+
return Promise.resolve(response);
|
|
1459
|
+
};
|
|
1460
|
+
exports.deserializeAws_json1_1ListTagsForResourceCommand = deserializeAws_json1_1ListTagsForResourceCommand;
|
|
1461
|
+
const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, context) => {
|
|
1462
|
+
const parsedOutput = {
|
|
1463
|
+
...output,
|
|
1464
|
+
body: await parseBody(output.body, context),
|
|
1465
|
+
};
|
|
1466
|
+
let response;
|
|
1467
|
+
let errorCode = "UnknownError";
|
|
1468
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1469
|
+
switch (errorCode) {
|
|
1470
|
+
case "InternalServerException":
|
|
1471
|
+
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1472
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1473
|
+
case "ResourceNotFoundException":
|
|
1474
|
+
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1475
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1476
|
+
case "ThrottlingException":
|
|
1477
|
+
case "com.amazonaws.redshiftserverless#ThrottlingException":
|
|
1478
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1479
|
+
case "ValidationException":
|
|
1480
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1481
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1482
|
+
default:
|
|
1483
|
+
const parsedBody = parsedOutput.body;
|
|
1484
|
+
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
1485
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1486
|
+
$fault: "client",
|
|
1487
|
+
$metadata: deserializeMetadata(output),
|
|
1488
|
+
});
|
|
1489
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1490
|
+
}
|
|
1491
|
+
};
|
|
1492
|
+
const deserializeAws_json1_1ListUsageLimitsCommand = async (output, context) => {
|
|
1493
|
+
if (output.statusCode >= 300) {
|
|
1494
|
+
return deserializeAws_json1_1ListUsageLimitsCommandError(output, context);
|
|
1495
|
+
}
|
|
1496
|
+
const data = await parseBody(output.body, context);
|
|
1497
|
+
let contents = {};
|
|
1498
|
+
contents = deserializeAws_json1_1ListUsageLimitsResponse(data, context);
|
|
1499
|
+
const response = {
|
|
1500
|
+
$metadata: deserializeMetadata(output),
|
|
1501
|
+
...contents,
|
|
1502
|
+
};
|
|
1503
|
+
return Promise.resolve(response);
|
|
1504
|
+
};
|
|
1505
|
+
exports.deserializeAws_json1_1ListUsageLimitsCommand = deserializeAws_json1_1ListUsageLimitsCommand;
|
|
1506
|
+
const deserializeAws_json1_1ListUsageLimitsCommandError = async (output, context) => {
|
|
1507
|
+
const parsedOutput = {
|
|
1508
|
+
...output,
|
|
1509
|
+
body: await parseBody(output.body, context),
|
|
1510
|
+
};
|
|
1511
|
+
let response;
|
|
1512
|
+
let errorCode = "UnknownError";
|
|
1513
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1514
|
+
switch (errorCode) {
|
|
1515
|
+
case "ConflictException":
|
|
1516
|
+
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
1517
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
1518
|
+
case "InternalServerException":
|
|
1519
|
+
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1520
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1521
|
+
case "InvalidPaginationException":
|
|
1522
|
+
case "com.amazonaws.redshiftserverless#InvalidPaginationException":
|
|
1523
|
+
throw await deserializeAws_json1_1InvalidPaginationExceptionResponse(parsedOutput, context);
|
|
1524
|
+
case "ResourceNotFoundException":
|
|
1525
|
+
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1526
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1527
|
+
case "ValidationException":
|
|
1528
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1529
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1530
|
+
default:
|
|
1531
|
+
const parsedBody = parsedOutput.body;
|
|
1532
|
+
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
1533
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1534
|
+
$fault: "client",
|
|
1535
|
+
$metadata: deserializeMetadata(output),
|
|
1536
|
+
});
|
|
1537
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1538
|
+
}
|
|
1539
|
+
};
|
|
1540
|
+
const deserializeAws_json1_1ListWorkgroupsCommand = async (output, context) => {
|
|
1541
|
+
if (output.statusCode >= 300) {
|
|
1542
|
+
return deserializeAws_json1_1ListWorkgroupsCommandError(output, context);
|
|
1543
|
+
}
|
|
1544
|
+
const data = await parseBody(output.body, context);
|
|
1545
|
+
let contents = {};
|
|
1546
|
+
contents = deserializeAws_json1_1ListWorkgroupsResponse(data, context);
|
|
1547
|
+
const response = {
|
|
1548
|
+
$metadata: deserializeMetadata(output),
|
|
1549
|
+
...contents,
|
|
1550
|
+
};
|
|
1551
|
+
return Promise.resolve(response);
|
|
1552
|
+
};
|
|
1553
|
+
exports.deserializeAws_json1_1ListWorkgroupsCommand = deserializeAws_json1_1ListWorkgroupsCommand;
|
|
1554
|
+
const deserializeAws_json1_1ListWorkgroupsCommandError = async (output, context) => {
|
|
1555
|
+
const parsedOutput = {
|
|
1556
|
+
...output,
|
|
1557
|
+
body: await parseBody(output.body, context),
|
|
1558
|
+
};
|
|
1559
|
+
let response;
|
|
1560
|
+
let errorCode = "UnknownError";
|
|
1561
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1562
|
+
switch (errorCode) {
|
|
1563
|
+
case "InternalServerException":
|
|
1564
|
+
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1565
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1566
|
+
case "ValidationException":
|
|
1567
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1568
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1569
|
+
default:
|
|
1570
|
+
const parsedBody = parsedOutput.body;
|
|
1571
|
+
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
1572
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1573
|
+
$fault: "client",
|
|
1574
|
+
$metadata: deserializeMetadata(output),
|
|
1575
|
+
});
|
|
1576
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1577
|
+
}
|
|
1578
|
+
};
|
|
1579
|
+
const deserializeAws_json1_1PutResourcePolicyCommand = async (output, context) => {
|
|
1580
|
+
if (output.statusCode >= 300) {
|
|
1581
|
+
return deserializeAws_json1_1PutResourcePolicyCommandError(output, context);
|
|
1582
|
+
}
|
|
1583
|
+
const data = await parseBody(output.body, context);
|
|
1584
|
+
let contents = {};
|
|
1585
|
+
contents = deserializeAws_json1_1PutResourcePolicyResponse(data, context);
|
|
1586
|
+
const response = {
|
|
1587
|
+
$metadata: deserializeMetadata(output),
|
|
1588
|
+
...contents,
|
|
1589
|
+
};
|
|
1590
|
+
return Promise.resolve(response);
|
|
1591
|
+
};
|
|
1592
|
+
exports.deserializeAws_json1_1PutResourcePolicyCommand = deserializeAws_json1_1PutResourcePolicyCommand;
|
|
1593
|
+
const deserializeAws_json1_1PutResourcePolicyCommandError = async (output, context) => {
|
|
1594
|
+
const parsedOutput = {
|
|
1595
|
+
...output,
|
|
1596
|
+
body: await parseBody(output.body, context),
|
|
1597
|
+
};
|
|
1598
|
+
let response;
|
|
1599
|
+
let errorCode = "UnknownError";
|
|
1600
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1601
|
+
switch (errorCode) {
|
|
1602
|
+
case "ConflictException":
|
|
1603
|
+
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
1604
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
1605
|
+
case "InternalServerException":
|
|
1606
|
+
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1607
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1608
|
+
case "ResourceNotFoundException":
|
|
1609
|
+
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1610
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1611
|
+
case "ServiceQuotaExceededException":
|
|
1612
|
+
case "com.amazonaws.redshiftserverless#ServiceQuotaExceededException":
|
|
1613
|
+
throw await deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
1614
|
+
case "ValidationException":
|
|
1615
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1616
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1617
|
+
default:
|
|
1618
|
+
const parsedBody = parsedOutput.body;
|
|
1619
|
+
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
1620
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1621
|
+
$fault: "client",
|
|
1622
|
+
$metadata: deserializeMetadata(output),
|
|
1623
|
+
});
|
|
1624
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1625
|
+
}
|
|
1626
|
+
};
|
|
1627
|
+
const deserializeAws_json1_1RestoreFromRecoveryPointCommand = async (output, context) => {
|
|
1628
|
+
if (output.statusCode >= 300) {
|
|
1629
|
+
return deserializeAws_json1_1RestoreFromRecoveryPointCommandError(output, context);
|
|
1630
|
+
}
|
|
1631
|
+
const data = await parseBody(output.body, context);
|
|
1632
|
+
let contents = {};
|
|
1633
|
+
contents = deserializeAws_json1_1RestoreFromRecoveryPointResponse(data, context);
|
|
1634
|
+
const response = {
|
|
1635
|
+
$metadata: deserializeMetadata(output),
|
|
1636
|
+
...contents,
|
|
1637
|
+
};
|
|
1638
|
+
return Promise.resolve(response);
|
|
1639
|
+
};
|
|
1640
|
+
exports.deserializeAws_json1_1RestoreFromRecoveryPointCommand = deserializeAws_json1_1RestoreFromRecoveryPointCommand;
|
|
1641
|
+
const deserializeAws_json1_1RestoreFromRecoveryPointCommandError = async (output, context) => {
|
|
1642
|
+
const parsedOutput = {
|
|
1643
|
+
...output,
|
|
1644
|
+
body: await parseBody(output.body, context),
|
|
1645
|
+
};
|
|
1646
|
+
let response;
|
|
1647
|
+
let errorCode = "UnknownError";
|
|
1648
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1649
|
+
switch (errorCode) {
|
|
1650
|
+
case "ConflictException":
|
|
1651
|
+
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
1652
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
1653
|
+
case "InternalServerException":
|
|
1654
|
+
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1655
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1656
|
+
case "ResourceNotFoundException":
|
|
1657
|
+
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1658
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1659
|
+
case "ValidationException":
|
|
1660
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1661
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1662
|
+
default:
|
|
1663
|
+
const parsedBody = parsedOutput.body;
|
|
1664
|
+
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
1665
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1666
|
+
$fault: "client",
|
|
1667
|
+
$metadata: deserializeMetadata(output),
|
|
1668
|
+
});
|
|
1669
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1670
|
+
}
|
|
1671
|
+
};
|
|
1672
|
+
const deserializeAws_json1_1RestoreFromSnapshotCommand = async (output, context) => {
|
|
1673
|
+
if (output.statusCode >= 300) {
|
|
1674
|
+
return deserializeAws_json1_1RestoreFromSnapshotCommandError(output, context);
|
|
1675
|
+
}
|
|
1676
|
+
const data = await parseBody(output.body, context);
|
|
1677
|
+
let contents = {};
|
|
1678
|
+
contents = deserializeAws_json1_1RestoreFromSnapshotResponse(data, context);
|
|
1679
|
+
const response = {
|
|
1680
|
+
$metadata: deserializeMetadata(output),
|
|
1681
|
+
...contents,
|
|
1682
|
+
};
|
|
1683
|
+
return Promise.resolve(response);
|
|
1684
|
+
};
|
|
1685
|
+
exports.deserializeAws_json1_1RestoreFromSnapshotCommand = deserializeAws_json1_1RestoreFromSnapshotCommand;
|
|
1686
|
+
const deserializeAws_json1_1RestoreFromSnapshotCommandError = async (output, context) => {
|
|
1687
|
+
const parsedOutput = {
|
|
1688
|
+
...output,
|
|
1689
|
+
body: await parseBody(output.body, context),
|
|
1690
|
+
};
|
|
1691
|
+
let response;
|
|
1692
|
+
let errorCode = "UnknownError";
|
|
1693
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1694
|
+
switch (errorCode) {
|
|
1695
|
+
case "ConflictException":
|
|
1696
|
+
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
1697
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
1698
|
+
case "InternalServerException":
|
|
1699
|
+
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1700
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1701
|
+
case "ResourceNotFoundException":
|
|
1702
|
+
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1703
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1704
|
+
case "ServiceQuotaExceededException":
|
|
1705
|
+
case "com.amazonaws.redshiftserverless#ServiceQuotaExceededException":
|
|
1706
|
+
throw await deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
1707
|
+
case "ValidationException":
|
|
1708
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1709
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1710
|
+
default:
|
|
1711
|
+
const parsedBody = parsedOutput.body;
|
|
1712
|
+
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
1713
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1714
|
+
$fault: "client",
|
|
1715
|
+
$metadata: deserializeMetadata(output),
|
|
1716
|
+
});
|
|
1717
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1718
|
+
}
|
|
1719
|
+
};
|
|
1720
|
+
const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
1721
|
+
if (output.statusCode >= 300) {
|
|
1722
|
+
return deserializeAws_json1_1TagResourceCommandError(output, context);
|
|
1723
|
+
}
|
|
1724
|
+
const data = await parseBody(output.body, context);
|
|
1725
|
+
let contents = {};
|
|
1726
|
+
contents = deserializeAws_json1_1TagResourceResponse(data, context);
|
|
1727
|
+
const response = {
|
|
1728
|
+
$metadata: deserializeMetadata(output),
|
|
1729
|
+
...contents,
|
|
1730
|
+
};
|
|
1731
|
+
return Promise.resolve(response);
|
|
1732
|
+
};
|
|
1733
|
+
exports.deserializeAws_json1_1TagResourceCommand = deserializeAws_json1_1TagResourceCommand;
|
|
1734
|
+
const deserializeAws_json1_1TagResourceCommandError = async (output, context) => {
|
|
1735
|
+
const parsedOutput = {
|
|
1736
|
+
...output,
|
|
1737
|
+
body: await parseBody(output.body, context),
|
|
1738
|
+
};
|
|
1739
|
+
let response;
|
|
1740
|
+
let errorCode = "UnknownError";
|
|
1741
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1742
|
+
switch (errorCode) {
|
|
1743
|
+
case "InternalServerException":
|
|
1744
|
+
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1745
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1746
|
+
case "ResourceNotFoundException":
|
|
1747
|
+
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1748
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1749
|
+
case "ThrottlingException":
|
|
1750
|
+
case "com.amazonaws.redshiftserverless#ThrottlingException":
|
|
1751
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1752
|
+
case "TooManyTagsException":
|
|
1753
|
+
case "com.amazonaws.redshiftserverless#TooManyTagsException":
|
|
1754
|
+
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
1755
|
+
case "ValidationException":
|
|
1756
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1757
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1758
|
+
default:
|
|
1759
|
+
const parsedBody = parsedOutput.body;
|
|
1760
|
+
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
1761
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1762
|
+
$fault: "client",
|
|
1763
|
+
$metadata: deserializeMetadata(output),
|
|
1764
|
+
});
|
|
1765
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1766
|
+
}
|
|
1767
|
+
};
|
|
1768
|
+
const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
|
|
1769
|
+
if (output.statusCode >= 300) {
|
|
1770
|
+
return deserializeAws_json1_1UntagResourceCommandError(output, context);
|
|
1771
|
+
}
|
|
1772
|
+
const data = await parseBody(output.body, context);
|
|
1773
|
+
let contents = {};
|
|
1774
|
+
contents = deserializeAws_json1_1UntagResourceResponse(data, context);
|
|
1775
|
+
const response = {
|
|
1776
|
+
$metadata: deserializeMetadata(output),
|
|
1777
|
+
...contents,
|
|
1778
|
+
};
|
|
1779
|
+
return Promise.resolve(response);
|
|
1780
|
+
};
|
|
1781
|
+
exports.deserializeAws_json1_1UntagResourceCommand = deserializeAws_json1_1UntagResourceCommand;
|
|
1782
|
+
const deserializeAws_json1_1UntagResourceCommandError = async (output, context) => {
|
|
1783
|
+
const parsedOutput = {
|
|
1784
|
+
...output,
|
|
1785
|
+
body: await parseBody(output.body, context),
|
|
1786
|
+
};
|
|
1787
|
+
let response;
|
|
1788
|
+
let errorCode = "UnknownError";
|
|
1789
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1790
|
+
switch (errorCode) {
|
|
1791
|
+
case "InternalServerException":
|
|
1792
|
+
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1793
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1794
|
+
case "ResourceNotFoundException":
|
|
1795
|
+
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1796
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1797
|
+
case "ThrottlingException":
|
|
1798
|
+
case "com.amazonaws.redshiftserverless#ThrottlingException":
|
|
1799
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1800
|
+
case "ValidationException":
|
|
1801
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1802
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1803
|
+
default:
|
|
1804
|
+
const parsedBody = parsedOutput.body;
|
|
1805
|
+
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
1806
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1807
|
+
$fault: "client",
|
|
1808
|
+
$metadata: deserializeMetadata(output),
|
|
1809
|
+
});
|
|
1810
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1811
|
+
}
|
|
1812
|
+
};
|
|
1813
|
+
const deserializeAws_json1_1UpdateEndpointAccessCommand = async (output, context) => {
|
|
1814
|
+
if (output.statusCode >= 300) {
|
|
1815
|
+
return deserializeAws_json1_1UpdateEndpointAccessCommandError(output, context);
|
|
1816
|
+
}
|
|
1817
|
+
const data = await parseBody(output.body, context);
|
|
1818
|
+
let contents = {};
|
|
1819
|
+
contents = deserializeAws_json1_1UpdateEndpointAccessResponse(data, context);
|
|
1820
|
+
const response = {
|
|
1821
|
+
$metadata: deserializeMetadata(output),
|
|
1822
|
+
...contents,
|
|
1823
|
+
};
|
|
1824
|
+
return Promise.resolve(response);
|
|
1825
|
+
};
|
|
1826
|
+
exports.deserializeAws_json1_1UpdateEndpointAccessCommand = deserializeAws_json1_1UpdateEndpointAccessCommand;
|
|
1827
|
+
const deserializeAws_json1_1UpdateEndpointAccessCommandError = async (output, context) => {
|
|
1828
|
+
const parsedOutput = {
|
|
1829
|
+
...output,
|
|
1830
|
+
body: await parseBody(output.body, context),
|
|
1831
|
+
};
|
|
1832
|
+
let response;
|
|
1833
|
+
let errorCode = "UnknownError";
|
|
1834
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1835
|
+
switch (errorCode) {
|
|
1836
|
+
case "AccessDeniedException":
|
|
1837
|
+
case "com.amazonaws.redshiftserverless#AccessDeniedException":
|
|
1838
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1839
|
+
case "ConflictException":
|
|
1840
|
+
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
1841
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
1842
|
+
case "InternalServerException":
|
|
1843
|
+
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1844
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1845
|
+
case "ResourceNotFoundException":
|
|
1846
|
+
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1847
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1848
|
+
case "ValidationException":
|
|
1849
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1850
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1851
|
+
default:
|
|
1852
|
+
const parsedBody = parsedOutput.body;
|
|
1853
|
+
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
1854
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1855
|
+
$fault: "client",
|
|
1856
|
+
$metadata: deserializeMetadata(output),
|
|
1857
|
+
});
|
|
1858
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1859
|
+
}
|
|
1860
|
+
};
|
|
1861
|
+
const deserializeAws_json1_1UpdateNamespaceCommand = async (output, context) => {
|
|
1862
|
+
if (output.statusCode >= 300) {
|
|
1863
|
+
return deserializeAws_json1_1UpdateNamespaceCommandError(output, context);
|
|
1864
|
+
}
|
|
1865
|
+
const data = await parseBody(output.body, context);
|
|
1866
|
+
let contents = {};
|
|
1867
|
+
contents = deserializeAws_json1_1UpdateNamespaceResponse(data, context);
|
|
1868
|
+
const response = {
|
|
1869
|
+
$metadata: deserializeMetadata(output),
|
|
1870
|
+
...contents,
|
|
1871
|
+
};
|
|
1872
|
+
return Promise.resolve(response);
|
|
1873
|
+
};
|
|
1874
|
+
exports.deserializeAws_json1_1UpdateNamespaceCommand = deserializeAws_json1_1UpdateNamespaceCommand;
|
|
1875
|
+
const deserializeAws_json1_1UpdateNamespaceCommandError = async (output, context) => {
|
|
1876
|
+
const parsedOutput = {
|
|
1877
|
+
...output,
|
|
1878
|
+
body: await parseBody(output.body, context),
|
|
1879
|
+
};
|
|
1880
|
+
let response;
|
|
1881
|
+
let errorCode = "UnknownError";
|
|
1882
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1883
|
+
switch (errorCode) {
|
|
1884
|
+
case "ConflictException":
|
|
1885
|
+
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
1886
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
1887
|
+
case "InternalServerException":
|
|
1888
|
+
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1889
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1890
|
+
case "ResourceNotFoundException":
|
|
1891
|
+
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1892
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1893
|
+
case "ValidationException":
|
|
1894
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1895
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1896
|
+
default:
|
|
1897
|
+
const parsedBody = parsedOutput.body;
|
|
1898
|
+
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
1899
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1900
|
+
$fault: "client",
|
|
1901
|
+
$metadata: deserializeMetadata(output),
|
|
1902
|
+
});
|
|
1903
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1904
|
+
}
|
|
1905
|
+
};
|
|
1906
|
+
const deserializeAws_json1_1UpdateSnapshotCommand = async (output, context) => {
|
|
1907
|
+
if (output.statusCode >= 300) {
|
|
1908
|
+
return deserializeAws_json1_1UpdateSnapshotCommandError(output, context);
|
|
1909
|
+
}
|
|
1910
|
+
const data = await parseBody(output.body, context);
|
|
1911
|
+
let contents = {};
|
|
1912
|
+
contents = deserializeAws_json1_1UpdateSnapshotResponse(data, context);
|
|
1913
|
+
const response = {
|
|
1914
|
+
$metadata: deserializeMetadata(output),
|
|
1915
|
+
...contents,
|
|
1916
|
+
};
|
|
1917
|
+
return Promise.resolve(response);
|
|
1918
|
+
};
|
|
1919
|
+
exports.deserializeAws_json1_1UpdateSnapshotCommand = deserializeAws_json1_1UpdateSnapshotCommand;
|
|
1920
|
+
const deserializeAws_json1_1UpdateSnapshotCommandError = async (output, context) => {
|
|
1921
|
+
const parsedOutput = {
|
|
1922
|
+
...output,
|
|
1923
|
+
body: await parseBody(output.body, context),
|
|
1924
|
+
};
|
|
1925
|
+
let response;
|
|
1926
|
+
let errorCode = "UnknownError";
|
|
1927
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1928
|
+
switch (errorCode) {
|
|
1929
|
+
case "ConflictException":
|
|
1930
|
+
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
1931
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
1932
|
+
case "InternalServerException":
|
|
1933
|
+
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1934
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1935
|
+
case "ResourceNotFoundException":
|
|
1936
|
+
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1937
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1938
|
+
case "ValidationException":
|
|
1939
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1940
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1941
|
+
default:
|
|
1942
|
+
const parsedBody = parsedOutput.body;
|
|
1943
|
+
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
1944
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1945
|
+
$fault: "client",
|
|
1946
|
+
$metadata: deserializeMetadata(output),
|
|
1947
|
+
});
|
|
1948
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1949
|
+
}
|
|
1950
|
+
};
|
|
1951
|
+
const deserializeAws_json1_1UpdateUsageLimitCommand = async (output, context) => {
|
|
1952
|
+
if (output.statusCode >= 300) {
|
|
1953
|
+
return deserializeAws_json1_1UpdateUsageLimitCommandError(output, context);
|
|
1954
|
+
}
|
|
1955
|
+
const data = await parseBody(output.body, context);
|
|
1956
|
+
let contents = {};
|
|
1957
|
+
contents = deserializeAws_json1_1UpdateUsageLimitResponse(data, context);
|
|
1958
|
+
const response = {
|
|
1959
|
+
$metadata: deserializeMetadata(output),
|
|
1960
|
+
...contents,
|
|
1961
|
+
};
|
|
1962
|
+
return Promise.resolve(response);
|
|
1963
|
+
};
|
|
1964
|
+
exports.deserializeAws_json1_1UpdateUsageLimitCommand = deserializeAws_json1_1UpdateUsageLimitCommand;
|
|
1965
|
+
const deserializeAws_json1_1UpdateUsageLimitCommandError = async (output, context) => {
|
|
1966
|
+
const parsedOutput = {
|
|
1967
|
+
...output,
|
|
1968
|
+
body: await parseBody(output.body, context),
|
|
1969
|
+
};
|
|
1970
|
+
let response;
|
|
1971
|
+
let errorCode = "UnknownError";
|
|
1972
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1973
|
+
switch (errorCode) {
|
|
1974
|
+
case "ConflictException":
|
|
1975
|
+
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
1976
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
1977
|
+
case "InternalServerException":
|
|
1978
|
+
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1979
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1980
|
+
case "ResourceNotFoundException":
|
|
1981
|
+
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1982
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1983
|
+
case "ValidationException":
|
|
1984
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1985
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1986
|
+
default:
|
|
1987
|
+
const parsedBody = parsedOutput.body;
|
|
1988
|
+
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
1989
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1990
|
+
$fault: "client",
|
|
1991
|
+
$metadata: deserializeMetadata(output),
|
|
1992
|
+
});
|
|
1993
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1994
|
+
}
|
|
1995
|
+
};
|
|
1996
|
+
const deserializeAws_json1_1UpdateWorkgroupCommand = async (output, context) => {
|
|
1997
|
+
if (output.statusCode >= 300) {
|
|
1998
|
+
return deserializeAws_json1_1UpdateWorkgroupCommandError(output, context);
|
|
1999
|
+
}
|
|
2000
|
+
const data = await parseBody(output.body, context);
|
|
2001
|
+
let contents = {};
|
|
2002
|
+
contents = deserializeAws_json1_1UpdateWorkgroupResponse(data, context);
|
|
2003
|
+
const response = {
|
|
2004
|
+
$metadata: deserializeMetadata(output),
|
|
2005
|
+
...contents,
|
|
2006
|
+
};
|
|
2007
|
+
return Promise.resolve(response);
|
|
2008
|
+
};
|
|
2009
|
+
exports.deserializeAws_json1_1UpdateWorkgroupCommand = deserializeAws_json1_1UpdateWorkgroupCommand;
|
|
2010
|
+
const deserializeAws_json1_1UpdateWorkgroupCommandError = async (output, context) => {
|
|
2011
|
+
const parsedOutput = {
|
|
2012
|
+
...output,
|
|
2013
|
+
body: await parseBody(output.body, context),
|
|
2014
|
+
};
|
|
2015
|
+
let response;
|
|
2016
|
+
let errorCode = "UnknownError";
|
|
2017
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2018
|
+
switch (errorCode) {
|
|
2019
|
+
case "ConflictException":
|
|
2020
|
+
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
2021
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
2022
|
+
case "InsufficientCapacityException":
|
|
2023
|
+
case "com.amazonaws.redshiftserverless#InsufficientCapacityException":
|
|
2024
|
+
throw await deserializeAws_json1_1InsufficientCapacityExceptionResponse(parsedOutput, context);
|
|
2025
|
+
case "InternalServerException":
|
|
2026
|
+
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
2027
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
2028
|
+
case "ResourceNotFoundException":
|
|
2029
|
+
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
2030
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2031
|
+
case "ValidationException":
|
|
2032
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
2033
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2034
|
+
default:
|
|
2035
|
+
const parsedBody = parsedOutput.body;
|
|
2036
|
+
response = new RedshiftServerlessServiceException_1.RedshiftServerlessServiceException({
|
|
2037
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2038
|
+
$fault: "client",
|
|
2039
|
+
$metadata: deserializeMetadata(output),
|
|
2040
|
+
});
|
|
2041
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2042
|
+
}
|
|
2043
|
+
};
|
|
2044
|
+
const deserializeAws_json1_1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
2045
|
+
const body = parsedOutput.body;
|
|
2046
|
+
const deserialized = deserializeAws_json1_1AccessDeniedException(body, context);
|
|
2047
|
+
const exception = new models_0_1.AccessDeniedException({
|
|
2048
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2049
|
+
...deserialized,
|
|
2050
|
+
});
|
|
2051
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2052
|
+
};
|
|
2053
|
+
const deserializeAws_json1_1ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
2054
|
+
const body = parsedOutput.body;
|
|
2055
|
+
const deserialized = deserializeAws_json1_1ConflictException(body, context);
|
|
2056
|
+
const exception = new models_0_1.ConflictException({
|
|
2057
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2058
|
+
...deserialized,
|
|
2059
|
+
});
|
|
2060
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2061
|
+
};
|
|
2062
|
+
const deserializeAws_json1_1InsufficientCapacityExceptionResponse = async (parsedOutput, context) => {
|
|
2063
|
+
const body = parsedOutput.body;
|
|
2064
|
+
const deserialized = deserializeAws_json1_1InsufficientCapacityException(body, context);
|
|
2065
|
+
const exception = new models_0_1.InsufficientCapacityException({
|
|
2066
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2067
|
+
...deserialized,
|
|
2068
|
+
});
|
|
2069
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2070
|
+
};
|
|
2071
|
+
const deserializeAws_json1_1InternalServerExceptionResponse = async (parsedOutput, context) => {
|
|
2072
|
+
const body = parsedOutput.body;
|
|
2073
|
+
const deserialized = deserializeAws_json1_1InternalServerException(body, context);
|
|
2074
|
+
const exception = new models_0_1.InternalServerException({
|
|
2075
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2076
|
+
...deserialized,
|
|
2077
|
+
});
|
|
2078
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2079
|
+
};
|
|
2080
|
+
const deserializeAws_json1_1InvalidPaginationExceptionResponse = async (parsedOutput, context) => {
|
|
2081
|
+
const body = parsedOutput.body;
|
|
2082
|
+
const deserialized = deserializeAws_json1_1InvalidPaginationException(body, context);
|
|
2083
|
+
const exception = new models_0_1.InvalidPaginationException({
|
|
2084
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2085
|
+
...deserialized,
|
|
2086
|
+
});
|
|
2087
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2088
|
+
};
|
|
2089
|
+
const deserializeAws_json1_1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
2090
|
+
const body = parsedOutput.body;
|
|
2091
|
+
const deserialized = deserializeAws_json1_1ResourceNotFoundException(body, context);
|
|
2092
|
+
const exception = new models_0_1.ResourceNotFoundException({
|
|
2093
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2094
|
+
...deserialized,
|
|
2095
|
+
});
|
|
2096
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2097
|
+
};
|
|
2098
|
+
const deserializeAws_json1_1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
|
|
2099
|
+
const body = parsedOutput.body;
|
|
2100
|
+
const deserialized = deserializeAws_json1_1ServiceQuotaExceededException(body, context);
|
|
2101
|
+
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
2102
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2103
|
+
...deserialized,
|
|
2104
|
+
});
|
|
2105
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2106
|
+
};
|
|
2107
|
+
const deserializeAws_json1_1ThrottlingExceptionResponse = async (parsedOutput, context) => {
|
|
2108
|
+
const body = parsedOutput.body;
|
|
2109
|
+
const deserialized = deserializeAws_json1_1ThrottlingException(body, context);
|
|
2110
|
+
const exception = new models_0_1.ThrottlingException({
|
|
2111
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2112
|
+
...deserialized,
|
|
2113
|
+
});
|
|
2114
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2115
|
+
};
|
|
2116
|
+
const deserializeAws_json1_1TooManyTagsExceptionResponse = async (parsedOutput, context) => {
|
|
2117
|
+
const body = parsedOutput.body;
|
|
2118
|
+
const deserialized = deserializeAws_json1_1TooManyTagsException(body, context);
|
|
2119
|
+
const exception = new models_0_1.TooManyTagsException({
|
|
2120
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2121
|
+
...deserialized,
|
|
2122
|
+
});
|
|
2123
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2124
|
+
};
|
|
2125
|
+
const deserializeAws_json1_1ValidationExceptionResponse = async (parsedOutput, context) => {
|
|
2126
|
+
const body = parsedOutput.body;
|
|
2127
|
+
const deserialized = deserializeAws_json1_1ValidationException(body, context);
|
|
2128
|
+
const exception = new models_0_1.ValidationException({
|
|
2129
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2130
|
+
...deserialized,
|
|
2131
|
+
});
|
|
2132
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2133
|
+
};
|
|
2134
|
+
const serializeAws_json1_1ConfigParameter = (input, context) => {
|
|
2135
|
+
return {
|
|
2136
|
+
...(input.parameterKey !== undefined && input.parameterKey !== null && { parameterKey: input.parameterKey }),
|
|
2137
|
+
...(input.parameterValue !== undefined &&
|
|
2138
|
+
input.parameterValue !== null && { parameterValue: input.parameterValue }),
|
|
2139
|
+
};
|
|
2140
|
+
};
|
|
2141
|
+
const serializeAws_json1_1ConfigParameterList = (input, context) => {
|
|
2142
|
+
return input
|
|
2143
|
+
.filter((e) => e != null)
|
|
2144
|
+
.map((entry) => {
|
|
2145
|
+
if (entry === null) {
|
|
2146
|
+
return null;
|
|
2147
|
+
}
|
|
2148
|
+
return serializeAws_json1_1ConfigParameter(entry, context);
|
|
2149
|
+
});
|
|
2150
|
+
};
|
|
2151
|
+
const serializeAws_json1_1ConvertRecoveryPointToSnapshotRequest = (input, context) => {
|
|
2152
|
+
return {
|
|
2153
|
+
...(input.recoveryPointId !== undefined &&
|
|
2154
|
+
input.recoveryPointId !== null && { recoveryPointId: input.recoveryPointId }),
|
|
2155
|
+
...(input.retentionPeriod !== undefined &&
|
|
2156
|
+
input.retentionPeriod !== null && { retentionPeriod: input.retentionPeriod }),
|
|
2157
|
+
...(input.snapshotName !== undefined && input.snapshotName !== null && { snapshotName: input.snapshotName }),
|
|
2158
|
+
};
|
|
2159
|
+
};
|
|
2160
|
+
const serializeAws_json1_1CreateEndpointAccessRequest = (input, context) => {
|
|
2161
|
+
return {
|
|
2162
|
+
...(input.endpointName !== undefined && input.endpointName !== null && { endpointName: input.endpointName }),
|
|
2163
|
+
...(input.subnetIds !== undefined &&
|
|
2164
|
+
input.subnetIds !== null && { subnetIds: serializeAws_json1_1SubnetIdList(input.subnetIds, context) }),
|
|
2165
|
+
...(input.vpcSecurityGroupIds !== undefined &&
|
|
2166
|
+
input.vpcSecurityGroupIds !== null && {
|
|
2167
|
+
vpcSecurityGroupIds: serializeAws_json1_1VpcSecurityGroupIdList(input.vpcSecurityGroupIds, context),
|
|
2168
|
+
}),
|
|
2169
|
+
...(input.workgroupName !== undefined && input.workgroupName !== null && { workgroupName: input.workgroupName }),
|
|
2170
|
+
};
|
|
2171
|
+
};
|
|
2172
|
+
const serializeAws_json1_1CreateNamespaceRequest = (input, context) => {
|
|
2173
|
+
return {
|
|
2174
|
+
...(input.adminUserPassword !== undefined &&
|
|
2175
|
+
input.adminUserPassword !== null && { adminUserPassword: input.adminUserPassword }),
|
|
2176
|
+
...(input.adminUsername !== undefined && input.adminUsername !== null && { adminUsername: input.adminUsername }),
|
|
2177
|
+
...(input.dbName !== undefined && input.dbName !== null && { dbName: input.dbName }),
|
|
2178
|
+
...(input.defaultIamRoleArn !== undefined &&
|
|
2179
|
+
input.defaultIamRoleArn !== null && { defaultIamRoleArn: input.defaultIamRoleArn }),
|
|
2180
|
+
...(input.iamRoles !== undefined &&
|
|
2181
|
+
input.iamRoles !== null && { iamRoles: serializeAws_json1_1IamRoleArnList(input.iamRoles, context) }),
|
|
2182
|
+
...(input.kmsKeyId !== undefined && input.kmsKeyId !== null && { kmsKeyId: input.kmsKeyId }),
|
|
2183
|
+
...(input.logExports !== undefined &&
|
|
2184
|
+
input.logExports !== null && { logExports: serializeAws_json1_1LogExportList(input.logExports, context) }),
|
|
2185
|
+
...(input.namespaceName !== undefined && input.namespaceName !== null && { namespaceName: input.namespaceName }),
|
|
2186
|
+
...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
|
|
2187
|
+
};
|
|
2188
|
+
};
|
|
2189
|
+
const serializeAws_json1_1CreateSnapshotRequest = (input, context) => {
|
|
2190
|
+
return {
|
|
2191
|
+
...(input.namespaceName !== undefined && input.namespaceName !== null && { namespaceName: input.namespaceName }),
|
|
2192
|
+
...(input.retentionPeriod !== undefined &&
|
|
2193
|
+
input.retentionPeriod !== null && { retentionPeriod: input.retentionPeriod }),
|
|
2194
|
+
...(input.snapshotName !== undefined && input.snapshotName !== null && { snapshotName: input.snapshotName }),
|
|
2195
|
+
};
|
|
2196
|
+
};
|
|
2197
|
+
const serializeAws_json1_1CreateUsageLimitRequest = (input, context) => {
|
|
2198
|
+
return {
|
|
2199
|
+
...(input.amount !== undefined && input.amount !== null && { amount: input.amount }),
|
|
2200
|
+
...(input.breachAction !== undefined && input.breachAction !== null && { breachAction: input.breachAction }),
|
|
2201
|
+
...(input.period !== undefined && input.period !== null && { period: input.period }),
|
|
2202
|
+
...(input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }),
|
|
2203
|
+
...(input.usageType !== undefined && input.usageType !== null && { usageType: input.usageType }),
|
|
2204
|
+
};
|
|
2205
|
+
};
|
|
2206
|
+
const serializeAws_json1_1CreateWorkgroupRequest = (input, context) => {
|
|
2207
|
+
return {
|
|
2208
|
+
...(input.baseCapacity !== undefined && input.baseCapacity !== null && { baseCapacity: input.baseCapacity }),
|
|
2209
|
+
...(input.configParameters !== undefined &&
|
|
2210
|
+
input.configParameters !== null && {
|
|
2211
|
+
configParameters: serializeAws_json1_1ConfigParameterList(input.configParameters, context),
|
|
2212
|
+
}),
|
|
2213
|
+
...(input.enhancedVpcRouting !== undefined &&
|
|
2214
|
+
input.enhancedVpcRouting !== null && { enhancedVpcRouting: input.enhancedVpcRouting }),
|
|
2215
|
+
...(input.namespaceName !== undefined && input.namespaceName !== null && { namespaceName: input.namespaceName }),
|
|
2216
|
+
...(input.publiclyAccessible !== undefined &&
|
|
2217
|
+
input.publiclyAccessible !== null && { publiclyAccessible: input.publiclyAccessible }),
|
|
2218
|
+
...(input.securityGroupIds !== undefined &&
|
|
2219
|
+
input.securityGroupIds !== null && {
|
|
2220
|
+
securityGroupIds: serializeAws_json1_1SecurityGroupIdList(input.securityGroupIds, context),
|
|
2221
|
+
}),
|
|
2222
|
+
...(input.subnetIds !== undefined &&
|
|
2223
|
+
input.subnetIds !== null && { subnetIds: serializeAws_json1_1SubnetIdList(input.subnetIds, context) }),
|
|
2224
|
+
...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
|
|
2225
|
+
...(input.workgroupName !== undefined && input.workgroupName !== null && { workgroupName: input.workgroupName }),
|
|
2226
|
+
};
|
|
2227
|
+
};
|
|
2228
|
+
const serializeAws_json1_1DeleteEndpointAccessRequest = (input, context) => {
|
|
2229
|
+
return {
|
|
2230
|
+
...(input.endpointName !== undefined && input.endpointName !== null && { endpointName: input.endpointName }),
|
|
2231
|
+
};
|
|
2232
|
+
};
|
|
2233
|
+
const serializeAws_json1_1DeleteNamespaceRequest = (input, context) => {
|
|
2234
|
+
return {
|
|
2235
|
+
...(input.finalSnapshotName !== undefined &&
|
|
2236
|
+
input.finalSnapshotName !== null && { finalSnapshotName: input.finalSnapshotName }),
|
|
2237
|
+
...(input.finalSnapshotRetentionPeriod !== undefined &&
|
|
2238
|
+
input.finalSnapshotRetentionPeriod !== null && {
|
|
2239
|
+
finalSnapshotRetentionPeriod: input.finalSnapshotRetentionPeriod,
|
|
2240
|
+
}),
|
|
2241
|
+
...(input.namespaceName !== undefined && input.namespaceName !== null && { namespaceName: input.namespaceName }),
|
|
2242
|
+
};
|
|
2243
|
+
};
|
|
2244
|
+
const serializeAws_json1_1DeleteResourcePolicyRequest = (input, context) => {
|
|
2245
|
+
return {
|
|
2246
|
+
...(input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }),
|
|
2247
|
+
};
|
|
2248
|
+
};
|
|
2249
|
+
const serializeAws_json1_1DeleteSnapshotRequest = (input, context) => {
|
|
2250
|
+
return {
|
|
2251
|
+
...(input.snapshotName !== undefined && input.snapshotName !== null && { snapshotName: input.snapshotName }),
|
|
2252
|
+
};
|
|
2253
|
+
};
|
|
2254
|
+
const serializeAws_json1_1DeleteUsageLimitRequest = (input, context) => {
|
|
2255
|
+
return {
|
|
2256
|
+
...(input.usageLimitId !== undefined && input.usageLimitId !== null && { usageLimitId: input.usageLimitId }),
|
|
2257
|
+
};
|
|
2258
|
+
};
|
|
2259
|
+
const serializeAws_json1_1DeleteWorkgroupRequest = (input, context) => {
|
|
2260
|
+
return {
|
|
2261
|
+
...(input.workgroupName !== undefined && input.workgroupName !== null && { workgroupName: input.workgroupName }),
|
|
2262
|
+
};
|
|
2263
|
+
};
|
|
2264
|
+
const serializeAws_json1_1GetCredentialsRequest = (input, context) => {
|
|
2265
|
+
return {
|
|
2266
|
+
...(input.dbName !== undefined && input.dbName !== null && { dbName: input.dbName }),
|
|
2267
|
+
...(input.durationSeconds !== undefined &&
|
|
2268
|
+
input.durationSeconds !== null && { durationSeconds: input.durationSeconds }),
|
|
2269
|
+
...(input.workgroupName !== undefined && input.workgroupName !== null && { workgroupName: input.workgroupName }),
|
|
2270
|
+
};
|
|
2271
|
+
};
|
|
2272
|
+
const serializeAws_json1_1GetEndpointAccessRequest = (input, context) => {
|
|
2273
|
+
return {
|
|
2274
|
+
...(input.endpointName !== undefined && input.endpointName !== null && { endpointName: input.endpointName }),
|
|
2275
|
+
};
|
|
2276
|
+
};
|
|
2277
|
+
const serializeAws_json1_1GetNamespaceRequest = (input, context) => {
|
|
2278
|
+
return {
|
|
2279
|
+
...(input.namespaceName !== undefined && input.namespaceName !== null && { namespaceName: input.namespaceName }),
|
|
2280
|
+
};
|
|
2281
|
+
};
|
|
2282
|
+
const serializeAws_json1_1GetRecoveryPointRequest = (input, context) => {
|
|
2283
|
+
return {
|
|
2284
|
+
...(input.recoveryPointId !== undefined &&
|
|
2285
|
+
input.recoveryPointId !== null && { recoveryPointId: input.recoveryPointId }),
|
|
2286
|
+
};
|
|
2287
|
+
};
|
|
2288
|
+
const serializeAws_json1_1GetResourcePolicyRequest = (input, context) => {
|
|
2289
|
+
return {
|
|
2290
|
+
...(input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }),
|
|
2291
|
+
};
|
|
2292
|
+
};
|
|
2293
|
+
const serializeAws_json1_1GetSnapshotRequest = (input, context) => {
|
|
2294
|
+
return {
|
|
2295
|
+
...(input.ownerAccount !== undefined && input.ownerAccount !== null && { ownerAccount: input.ownerAccount }),
|
|
2296
|
+
...(input.snapshotArn !== undefined && input.snapshotArn !== null && { snapshotArn: input.snapshotArn }),
|
|
2297
|
+
...(input.snapshotName !== undefined && input.snapshotName !== null && { snapshotName: input.snapshotName }),
|
|
2298
|
+
};
|
|
2299
|
+
};
|
|
2300
|
+
const serializeAws_json1_1GetUsageLimitRequest = (input, context) => {
|
|
2301
|
+
return {
|
|
2302
|
+
...(input.usageLimitId !== undefined && input.usageLimitId !== null && { usageLimitId: input.usageLimitId }),
|
|
2303
|
+
};
|
|
2304
|
+
};
|
|
2305
|
+
const serializeAws_json1_1GetWorkgroupRequest = (input, context) => {
|
|
2306
|
+
return {
|
|
2307
|
+
...(input.workgroupName !== undefined && input.workgroupName !== null && { workgroupName: input.workgroupName }),
|
|
2308
|
+
};
|
|
2309
|
+
};
|
|
2310
|
+
const serializeAws_json1_1IamRoleArnList = (input, context) => {
|
|
2311
|
+
return input
|
|
2312
|
+
.filter((e) => e != null)
|
|
2313
|
+
.map((entry) => {
|
|
2314
|
+
if (entry === null) {
|
|
2315
|
+
return null;
|
|
2316
|
+
}
|
|
2317
|
+
return entry;
|
|
2318
|
+
});
|
|
2319
|
+
};
|
|
2320
|
+
const serializeAws_json1_1ListEndpointAccessRequest = (input, context) => {
|
|
2321
|
+
return {
|
|
2322
|
+
...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
|
|
2323
|
+
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
2324
|
+
...(input.vpcId !== undefined && input.vpcId !== null && { vpcId: input.vpcId }),
|
|
2325
|
+
...(input.workgroupName !== undefined && input.workgroupName !== null && { workgroupName: input.workgroupName }),
|
|
2326
|
+
};
|
|
2327
|
+
};
|
|
2328
|
+
const serializeAws_json1_1ListNamespacesRequest = (input, context) => {
|
|
2329
|
+
return {
|
|
2330
|
+
...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
|
|
2331
|
+
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
2332
|
+
};
|
|
2333
|
+
};
|
|
2334
|
+
const serializeAws_json1_1ListRecoveryPointsRequest = (input, context) => {
|
|
2335
|
+
return {
|
|
2336
|
+
...(input.endTime !== undefined &&
|
|
2337
|
+
input.endTime !== null && { endTime: Math.round(input.endTime.getTime() / 1000) }),
|
|
2338
|
+
...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
|
|
2339
|
+
...(input.namespaceName !== undefined && input.namespaceName !== null && { namespaceName: input.namespaceName }),
|
|
2340
|
+
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
2341
|
+
...(input.startTime !== undefined &&
|
|
2342
|
+
input.startTime !== null && { startTime: Math.round(input.startTime.getTime() / 1000) }),
|
|
2343
|
+
};
|
|
2344
|
+
};
|
|
2345
|
+
const serializeAws_json1_1ListSnapshotsRequest = (input, context) => {
|
|
2346
|
+
return {
|
|
2347
|
+
...(input.endTime !== undefined &&
|
|
2348
|
+
input.endTime !== null && { endTime: Math.round(input.endTime.getTime() / 1000) }),
|
|
2349
|
+
...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
|
|
2350
|
+
...(input.namespaceArn !== undefined && input.namespaceArn !== null && { namespaceArn: input.namespaceArn }),
|
|
2351
|
+
...(input.namespaceName !== undefined && input.namespaceName !== null && { namespaceName: input.namespaceName }),
|
|
2352
|
+
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
2353
|
+
...(input.ownerAccount !== undefined && input.ownerAccount !== null && { ownerAccount: input.ownerAccount }),
|
|
2354
|
+
...(input.startTime !== undefined &&
|
|
2355
|
+
input.startTime !== null && { startTime: Math.round(input.startTime.getTime() / 1000) }),
|
|
2356
|
+
};
|
|
2357
|
+
};
|
|
2358
|
+
const serializeAws_json1_1ListTagsForResourceRequest = (input, context) => {
|
|
2359
|
+
return {
|
|
2360
|
+
...(input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }),
|
|
2361
|
+
};
|
|
2362
|
+
};
|
|
2363
|
+
const serializeAws_json1_1ListUsageLimitsRequest = (input, context) => {
|
|
2364
|
+
return {
|
|
2365
|
+
...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
|
|
2366
|
+
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
2367
|
+
...(input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }),
|
|
2368
|
+
...(input.usageType !== undefined && input.usageType !== null && { usageType: input.usageType }),
|
|
2369
|
+
};
|
|
2370
|
+
};
|
|
2371
|
+
const serializeAws_json1_1ListWorkgroupsRequest = (input, context) => {
|
|
2372
|
+
return {
|
|
2373
|
+
...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
|
|
2374
|
+
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
2375
|
+
};
|
|
2376
|
+
};
|
|
2377
|
+
const serializeAws_json1_1LogExportList = (input, context) => {
|
|
2378
|
+
return input
|
|
2379
|
+
.filter((e) => e != null)
|
|
2380
|
+
.map((entry) => {
|
|
2381
|
+
if (entry === null) {
|
|
2382
|
+
return null;
|
|
2383
|
+
}
|
|
2384
|
+
return entry;
|
|
2385
|
+
});
|
|
2386
|
+
};
|
|
2387
|
+
const serializeAws_json1_1PutResourcePolicyRequest = (input, context) => {
|
|
2388
|
+
return {
|
|
2389
|
+
...(input.policy !== undefined && input.policy !== null && { policy: input.policy }),
|
|
2390
|
+
...(input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }),
|
|
2391
|
+
};
|
|
2392
|
+
};
|
|
2393
|
+
const serializeAws_json1_1RestoreFromRecoveryPointRequest = (input, context) => {
|
|
2394
|
+
return {
|
|
2395
|
+
...(input.namespaceName !== undefined && input.namespaceName !== null && { namespaceName: input.namespaceName }),
|
|
2396
|
+
...(input.recoveryPointId !== undefined &&
|
|
2397
|
+
input.recoveryPointId !== null && { recoveryPointId: input.recoveryPointId }),
|
|
2398
|
+
...(input.workgroupName !== undefined && input.workgroupName !== null && { workgroupName: input.workgroupName }),
|
|
2399
|
+
};
|
|
2400
|
+
};
|
|
2401
|
+
const serializeAws_json1_1RestoreFromSnapshotRequest = (input, context) => {
|
|
2402
|
+
return {
|
|
2403
|
+
...(input.namespaceName !== undefined && input.namespaceName !== null && { namespaceName: input.namespaceName }),
|
|
2404
|
+
...(input.ownerAccount !== undefined && input.ownerAccount !== null && { ownerAccount: input.ownerAccount }),
|
|
2405
|
+
...(input.snapshotArn !== undefined && input.snapshotArn !== null && { snapshotArn: input.snapshotArn }),
|
|
2406
|
+
...(input.snapshotName !== undefined && input.snapshotName !== null && { snapshotName: input.snapshotName }),
|
|
2407
|
+
...(input.workgroupName !== undefined && input.workgroupName !== null && { workgroupName: input.workgroupName }),
|
|
2408
|
+
};
|
|
2409
|
+
};
|
|
2410
|
+
const serializeAws_json1_1SecurityGroupIdList = (input, context) => {
|
|
2411
|
+
return input
|
|
2412
|
+
.filter((e) => e != null)
|
|
2413
|
+
.map((entry) => {
|
|
2414
|
+
if (entry === null) {
|
|
2415
|
+
return null;
|
|
2416
|
+
}
|
|
2417
|
+
return entry;
|
|
2418
|
+
});
|
|
2419
|
+
};
|
|
2420
|
+
const serializeAws_json1_1SubnetIdList = (input, context) => {
|
|
2421
|
+
return input
|
|
2422
|
+
.filter((e) => e != null)
|
|
2423
|
+
.map((entry) => {
|
|
2424
|
+
if (entry === null) {
|
|
2425
|
+
return null;
|
|
2426
|
+
}
|
|
2427
|
+
return entry;
|
|
2428
|
+
});
|
|
2429
|
+
};
|
|
2430
|
+
const serializeAws_json1_1Tag = (input, context) => {
|
|
2431
|
+
return {
|
|
2432
|
+
...(input.key !== undefined && input.key !== null && { key: input.key }),
|
|
2433
|
+
...(input.value !== undefined && input.value !== null && { value: input.value }),
|
|
2434
|
+
};
|
|
2435
|
+
};
|
|
2436
|
+
const serializeAws_json1_1TagKeyList = (input, context) => {
|
|
2437
|
+
return input
|
|
2438
|
+
.filter((e) => e != null)
|
|
2439
|
+
.map((entry) => {
|
|
2440
|
+
if (entry === null) {
|
|
2441
|
+
return null;
|
|
2442
|
+
}
|
|
2443
|
+
return entry;
|
|
2444
|
+
});
|
|
2445
|
+
};
|
|
2446
|
+
const serializeAws_json1_1TagList = (input, context) => {
|
|
2447
|
+
return input
|
|
2448
|
+
.filter((e) => e != null)
|
|
2449
|
+
.map((entry) => {
|
|
2450
|
+
if (entry === null) {
|
|
2451
|
+
return null;
|
|
2452
|
+
}
|
|
2453
|
+
return serializeAws_json1_1Tag(entry, context);
|
|
2454
|
+
});
|
|
2455
|
+
};
|
|
2456
|
+
const serializeAws_json1_1TagResourceRequest = (input, context) => {
|
|
2457
|
+
return {
|
|
2458
|
+
...(input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }),
|
|
2459
|
+
...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
|
|
2460
|
+
};
|
|
2461
|
+
};
|
|
2462
|
+
const serializeAws_json1_1UntagResourceRequest = (input, context) => {
|
|
2463
|
+
return {
|
|
2464
|
+
...(input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }),
|
|
2465
|
+
...(input.tagKeys !== undefined &&
|
|
2466
|
+
input.tagKeys !== null && { tagKeys: serializeAws_json1_1TagKeyList(input.tagKeys, context) }),
|
|
2467
|
+
};
|
|
2468
|
+
};
|
|
2469
|
+
const serializeAws_json1_1UpdateEndpointAccessRequest = (input, context) => {
|
|
2470
|
+
return {
|
|
2471
|
+
...(input.endpointName !== undefined && input.endpointName !== null && { endpointName: input.endpointName }),
|
|
2472
|
+
...(input.vpcSecurityGroupIds !== undefined &&
|
|
2473
|
+
input.vpcSecurityGroupIds !== null && {
|
|
2474
|
+
vpcSecurityGroupIds: serializeAws_json1_1VpcSecurityGroupIdList(input.vpcSecurityGroupIds, context),
|
|
2475
|
+
}),
|
|
2476
|
+
};
|
|
2477
|
+
};
|
|
2478
|
+
const serializeAws_json1_1UpdateNamespaceRequest = (input, context) => {
|
|
2479
|
+
return {
|
|
2480
|
+
...(input.adminUserPassword !== undefined &&
|
|
2481
|
+
input.adminUserPassword !== null && { adminUserPassword: input.adminUserPassword }),
|
|
2482
|
+
...(input.adminUsername !== undefined && input.adminUsername !== null && { adminUsername: input.adminUsername }),
|
|
2483
|
+
...(input.defaultIamRoleArn !== undefined &&
|
|
2484
|
+
input.defaultIamRoleArn !== null && { defaultIamRoleArn: input.defaultIamRoleArn }),
|
|
2485
|
+
...(input.iamRoles !== undefined &&
|
|
2486
|
+
input.iamRoles !== null && { iamRoles: serializeAws_json1_1IamRoleArnList(input.iamRoles, context) }),
|
|
2487
|
+
...(input.kmsKeyId !== undefined && input.kmsKeyId !== null && { kmsKeyId: input.kmsKeyId }),
|
|
2488
|
+
...(input.logExports !== undefined &&
|
|
2489
|
+
input.logExports !== null && { logExports: serializeAws_json1_1LogExportList(input.logExports, context) }),
|
|
2490
|
+
...(input.namespaceName !== undefined && input.namespaceName !== null && { namespaceName: input.namespaceName }),
|
|
2491
|
+
};
|
|
2492
|
+
};
|
|
2493
|
+
const serializeAws_json1_1UpdateSnapshotRequest = (input, context) => {
|
|
2494
|
+
return {
|
|
2495
|
+
...(input.retentionPeriod !== undefined &&
|
|
2496
|
+
input.retentionPeriod !== null && { retentionPeriod: input.retentionPeriod }),
|
|
2497
|
+
...(input.snapshotName !== undefined && input.snapshotName !== null && { snapshotName: input.snapshotName }),
|
|
2498
|
+
};
|
|
2499
|
+
};
|
|
2500
|
+
const serializeAws_json1_1UpdateUsageLimitRequest = (input, context) => {
|
|
2501
|
+
return {
|
|
2502
|
+
...(input.amount !== undefined && input.amount !== null && { amount: input.amount }),
|
|
2503
|
+
...(input.breachAction !== undefined && input.breachAction !== null && { breachAction: input.breachAction }),
|
|
2504
|
+
...(input.usageLimitId !== undefined && input.usageLimitId !== null && { usageLimitId: input.usageLimitId }),
|
|
2505
|
+
};
|
|
2506
|
+
};
|
|
2507
|
+
const serializeAws_json1_1UpdateWorkgroupRequest = (input, context) => {
|
|
2508
|
+
return {
|
|
2509
|
+
...(input.baseCapacity !== undefined && input.baseCapacity !== null && { baseCapacity: input.baseCapacity }),
|
|
2510
|
+
...(input.configParameters !== undefined &&
|
|
2511
|
+
input.configParameters !== null && {
|
|
2512
|
+
configParameters: serializeAws_json1_1ConfigParameterList(input.configParameters, context),
|
|
2513
|
+
}),
|
|
2514
|
+
...(input.enhancedVpcRouting !== undefined &&
|
|
2515
|
+
input.enhancedVpcRouting !== null && { enhancedVpcRouting: input.enhancedVpcRouting }),
|
|
2516
|
+
...(input.publiclyAccessible !== undefined &&
|
|
2517
|
+
input.publiclyAccessible !== null && { publiclyAccessible: input.publiclyAccessible }),
|
|
2518
|
+
...(input.securityGroupIds !== undefined &&
|
|
2519
|
+
input.securityGroupIds !== null && {
|
|
2520
|
+
securityGroupIds: serializeAws_json1_1SecurityGroupIdList(input.securityGroupIds, context),
|
|
2521
|
+
}),
|
|
2522
|
+
...(input.subnetIds !== undefined &&
|
|
2523
|
+
input.subnetIds !== null && { subnetIds: serializeAws_json1_1SubnetIdList(input.subnetIds, context) }),
|
|
2524
|
+
...(input.workgroupName !== undefined && input.workgroupName !== null && { workgroupName: input.workgroupName }),
|
|
2525
|
+
};
|
|
2526
|
+
};
|
|
2527
|
+
const serializeAws_json1_1VpcSecurityGroupIdList = (input, context) => {
|
|
2528
|
+
return input
|
|
2529
|
+
.filter((e) => e != null)
|
|
2530
|
+
.map((entry) => {
|
|
2531
|
+
if (entry === null) {
|
|
2532
|
+
return null;
|
|
2533
|
+
}
|
|
2534
|
+
return entry;
|
|
2535
|
+
});
|
|
2536
|
+
};
|
|
2537
|
+
const deserializeAws_json1_1AccessDeniedException = (output, context) => {
|
|
2538
|
+
return {
|
|
2539
|
+
code: (0, smithy_client_1.expectString)(output.code),
|
|
2540
|
+
message: (0, smithy_client_1.expectString)(output.message),
|
|
2541
|
+
};
|
|
2542
|
+
};
|
|
2543
|
+
const deserializeAws_json1_1AccountIdList = (output, context) => {
|
|
2544
|
+
const retVal = (output || [])
|
|
2545
|
+
.filter((e) => e != null)
|
|
2546
|
+
.map((entry) => {
|
|
2547
|
+
if (entry === null) {
|
|
2548
|
+
return null;
|
|
2549
|
+
}
|
|
2550
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
2551
|
+
});
|
|
2552
|
+
return retVal;
|
|
2553
|
+
};
|
|
2554
|
+
const deserializeAws_json1_1ConfigParameter = (output, context) => {
|
|
2555
|
+
return {
|
|
2556
|
+
parameterKey: (0, smithy_client_1.expectString)(output.parameterKey),
|
|
2557
|
+
parameterValue: (0, smithy_client_1.expectString)(output.parameterValue),
|
|
2558
|
+
};
|
|
2559
|
+
};
|
|
2560
|
+
const deserializeAws_json1_1ConfigParameterList = (output, context) => {
|
|
2561
|
+
const retVal = (output || [])
|
|
2562
|
+
.filter((e) => e != null)
|
|
2563
|
+
.map((entry) => {
|
|
2564
|
+
if (entry === null) {
|
|
2565
|
+
return null;
|
|
2566
|
+
}
|
|
2567
|
+
return deserializeAws_json1_1ConfigParameter(entry, context);
|
|
2568
|
+
});
|
|
2569
|
+
return retVal;
|
|
2570
|
+
};
|
|
2571
|
+
const deserializeAws_json1_1ConflictException = (output, context) => {
|
|
2572
|
+
return {
|
|
2573
|
+
message: (0, smithy_client_1.expectString)(output.message),
|
|
2574
|
+
};
|
|
2575
|
+
};
|
|
2576
|
+
const deserializeAws_json1_1ConvertRecoveryPointToSnapshotResponse = (output, context) => {
|
|
2577
|
+
return {
|
|
2578
|
+
snapshot: output.snapshot !== undefined && output.snapshot !== null
|
|
2579
|
+
? deserializeAws_json1_1Snapshot(output.snapshot, context)
|
|
2580
|
+
: undefined,
|
|
2581
|
+
};
|
|
2582
|
+
};
|
|
2583
|
+
const deserializeAws_json1_1CreateEndpointAccessResponse = (output, context) => {
|
|
2584
|
+
return {
|
|
2585
|
+
endpoint: output.endpoint !== undefined && output.endpoint !== null
|
|
2586
|
+
? deserializeAws_json1_1EndpointAccess(output.endpoint, context)
|
|
2587
|
+
: undefined,
|
|
2588
|
+
};
|
|
2589
|
+
};
|
|
2590
|
+
const deserializeAws_json1_1CreateNamespaceResponse = (output, context) => {
|
|
2591
|
+
return {
|
|
2592
|
+
namespace: output.namespace !== undefined && output.namespace !== null
|
|
2593
|
+
? deserializeAws_json1_1Namespace(output.namespace, context)
|
|
2594
|
+
: undefined,
|
|
2595
|
+
};
|
|
2596
|
+
};
|
|
2597
|
+
const deserializeAws_json1_1CreateSnapshotResponse = (output, context) => {
|
|
2598
|
+
return {
|
|
2599
|
+
snapshot: output.snapshot !== undefined && output.snapshot !== null
|
|
2600
|
+
? deserializeAws_json1_1Snapshot(output.snapshot, context)
|
|
2601
|
+
: undefined,
|
|
2602
|
+
};
|
|
2603
|
+
};
|
|
2604
|
+
const deserializeAws_json1_1CreateUsageLimitResponse = (output, context) => {
|
|
2605
|
+
return {
|
|
2606
|
+
usageLimit: output.usageLimit !== undefined && output.usageLimit !== null
|
|
2607
|
+
? deserializeAws_json1_1UsageLimit(output.usageLimit, context)
|
|
2608
|
+
: undefined,
|
|
2609
|
+
};
|
|
2610
|
+
};
|
|
2611
|
+
const deserializeAws_json1_1CreateWorkgroupResponse = (output, context) => {
|
|
2612
|
+
return {
|
|
2613
|
+
workgroup: output.workgroup !== undefined && output.workgroup !== null
|
|
2614
|
+
? deserializeAws_json1_1Workgroup(output.workgroup, context)
|
|
2615
|
+
: undefined,
|
|
2616
|
+
};
|
|
2617
|
+
};
|
|
2618
|
+
const deserializeAws_json1_1DeleteEndpointAccessResponse = (output, context) => {
|
|
2619
|
+
return {
|
|
2620
|
+
endpoint: output.endpoint !== undefined && output.endpoint !== null
|
|
2621
|
+
? deserializeAws_json1_1EndpointAccess(output.endpoint, context)
|
|
2622
|
+
: undefined,
|
|
2623
|
+
};
|
|
2624
|
+
};
|
|
2625
|
+
const deserializeAws_json1_1DeleteNamespaceResponse = (output, context) => {
|
|
2626
|
+
return {
|
|
2627
|
+
namespace: output.namespace !== undefined && output.namespace !== null
|
|
2628
|
+
? deserializeAws_json1_1Namespace(output.namespace, context)
|
|
2629
|
+
: undefined,
|
|
2630
|
+
};
|
|
2631
|
+
};
|
|
2632
|
+
const deserializeAws_json1_1DeleteResourcePolicyResponse = (output, context) => {
|
|
2633
|
+
return {};
|
|
2634
|
+
};
|
|
2635
|
+
const deserializeAws_json1_1DeleteSnapshotResponse = (output, context) => {
|
|
2636
|
+
return {
|
|
2637
|
+
snapshot: output.snapshot !== undefined && output.snapshot !== null
|
|
2638
|
+
? deserializeAws_json1_1Snapshot(output.snapshot, context)
|
|
2639
|
+
: undefined,
|
|
2640
|
+
};
|
|
2641
|
+
};
|
|
2642
|
+
const deserializeAws_json1_1DeleteUsageLimitResponse = (output, context) => {
|
|
2643
|
+
return {
|
|
2644
|
+
usageLimit: output.usageLimit !== undefined && output.usageLimit !== null
|
|
2645
|
+
? deserializeAws_json1_1UsageLimit(output.usageLimit, context)
|
|
2646
|
+
: undefined,
|
|
2647
|
+
};
|
|
2648
|
+
};
|
|
2649
|
+
const deserializeAws_json1_1DeleteWorkgroupResponse = (output, context) => {
|
|
2650
|
+
return {
|
|
2651
|
+
workgroup: output.workgroup !== undefined && output.workgroup !== null
|
|
2652
|
+
? deserializeAws_json1_1Workgroup(output.workgroup, context)
|
|
2653
|
+
: undefined,
|
|
2654
|
+
};
|
|
2655
|
+
};
|
|
2656
|
+
const deserializeAws_json1_1Endpoint = (output, context) => {
|
|
2657
|
+
return {
|
|
2658
|
+
address: (0, smithy_client_1.expectString)(output.address),
|
|
2659
|
+
port: (0, smithy_client_1.expectInt32)(output.port),
|
|
2660
|
+
vpcEndpoints: output.vpcEndpoints !== undefined && output.vpcEndpoints !== null
|
|
2661
|
+
? deserializeAws_json1_1VpcEndpointList(output.vpcEndpoints, context)
|
|
2662
|
+
: undefined,
|
|
2663
|
+
};
|
|
2664
|
+
};
|
|
2665
|
+
const deserializeAws_json1_1EndpointAccess = (output, context) => {
|
|
2666
|
+
return {
|
|
2667
|
+
address: (0, smithy_client_1.expectString)(output.address),
|
|
2668
|
+
endpointArn: (0, smithy_client_1.expectString)(output.endpointArn),
|
|
2669
|
+
endpointCreateTime: output.endpointCreateTime !== undefined && output.endpointCreateTime !== null
|
|
2670
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.endpointCreateTime))
|
|
2671
|
+
: undefined,
|
|
2672
|
+
endpointName: (0, smithy_client_1.expectString)(output.endpointName),
|
|
2673
|
+
endpointStatus: (0, smithy_client_1.expectString)(output.endpointStatus),
|
|
2674
|
+
port: (0, smithy_client_1.expectInt32)(output.port),
|
|
2675
|
+
subnetIds: output.subnetIds !== undefined && output.subnetIds !== null
|
|
2676
|
+
? deserializeAws_json1_1SubnetIdList(output.subnetIds, context)
|
|
2677
|
+
: undefined,
|
|
2678
|
+
vpcEndpoint: output.vpcEndpoint !== undefined && output.vpcEndpoint !== null
|
|
2679
|
+
? deserializeAws_json1_1VpcEndpoint(output.vpcEndpoint, context)
|
|
2680
|
+
: undefined,
|
|
2681
|
+
vpcSecurityGroups: output.vpcSecurityGroups !== undefined && output.vpcSecurityGroups !== null
|
|
2682
|
+
? deserializeAws_json1_1VpcSecurityGroupMembershipList(output.vpcSecurityGroups, context)
|
|
2683
|
+
: undefined,
|
|
2684
|
+
workgroupName: (0, smithy_client_1.expectString)(output.workgroupName),
|
|
2685
|
+
};
|
|
2686
|
+
};
|
|
2687
|
+
const deserializeAws_json1_1EndpointAccessList = (output, context) => {
|
|
2688
|
+
const retVal = (output || [])
|
|
2689
|
+
.filter((e) => e != null)
|
|
2690
|
+
.map((entry) => {
|
|
2691
|
+
if (entry === null) {
|
|
2692
|
+
return null;
|
|
2693
|
+
}
|
|
2694
|
+
return deserializeAws_json1_1EndpointAccess(entry, context);
|
|
2695
|
+
});
|
|
2696
|
+
return retVal;
|
|
2697
|
+
};
|
|
2698
|
+
const deserializeAws_json1_1GetCredentialsResponse = (output, context) => {
|
|
2699
|
+
return {
|
|
2700
|
+
dbPassword: (0, smithy_client_1.expectString)(output.dbPassword),
|
|
2701
|
+
dbUser: (0, smithy_client_1.expectString)(output.dbUser),
|
|
2702
|
+
expiration: output.expiration !== undefined && output.expiration !== null
|
|
2703
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.expiration)))
|
|
2704
|
+
: undefined,
|
|
2705
|
+
nextRefreshTime: output.nextRefreshTime !== undefined && output.nextRefreshTime !== null
|
|
2706
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.nextRefreshTime)))
|
|
2707
|
+
: undefined,
|
|
2708
|
+
};
|
|
2709
|
+
};
|
|
2710
|
+
const deserializeAws_json1_1GetEndpointAccessResponse = (output, context) => {
|
|
2711
|
+
return {
|
|
2712
|
+
endpoint: output.endpoint !== undefined && output.endpoint !== null
|
|
2713
|
+
? deserializeAws_json1_1EndpointAccess(output.endpoint, context)
|
|
2714
|
+
: undefined,
|
|
2715
|
+
};
|
|
2716
|
+
};
|
|
2717
|
+
const deserializeAws_json1_1GetNamespaceResponse = (output, context) => {
|
|
2718
|
+
return {
|
|
2719
|
+
namespace: output.namespace !== undefined && output.namespace !== null
|
|
2720
|
+
? deserializeAws_json1_1Namespace(output.namespace, context)
|
|
2721
|
+
: undefined,
|
|
2722
|
+
};
|
|
2723
|
+
};
|
|
2724
|
+
const deserializeAws_json1_1GetRecoveryPointResponse = (output, context) => {
|
|
2725
|
+
return {
|
|
2726
|
+
recoveryPoint: output.recoveryPoint !== undefined && output.recoveryPoint !== null
|
|
2727
|
+
? deserializeAws_json1_1RecoveryPoint(output.recoveryPoint, context)
|
|
2728
|
+
: undefined,
|
|
2729
|
+
};
|
|
2730
|
+
};
|
|
2731
|
+
const deserializeAws_json1_1GetResourcePolicyResponse = (output, context) => {
|
|
2732
|
+
return {
|
|
2733
|
+
resourcePolicy: output.resourcePolicy !== undefined && output.resourcePolicy !== null
|
|
2734
|
+
? deserializeAws_json1_1ResourcePolicy(output.resourcePolicy, context)
|
|
2735
|
+
: undefined,
|
|
2736
|
+
};
|
|
2737
|
+
};
|
|
2738
|
+
const deserializeAws_json1_1GetSnapshotResponse = (output, context) => {
|
|
2739
|
+
return {
|
|
2740
|
+
snapshot: output.snapshot !== undefined && output.snapshot !== null
|
|
2741
|
+
? deserializeAws_json1_1Snapshot(output.snapshot, context)
|
|
2742
|
+
: undefined,
|
|
2743
|
+
};
|
|
2744
|
+
};
|
|
2745
|
+
const deserializeAws_json1_1GetUsageLimitResponse = (output, context) => {
|
|
2746
|
+
return {
|
|
2747
|
+
usageLimit: output.usageLimit !== undefined && output.usageLimit !== null
|
|
2748
|
+
? deserializeAws_json1_1UsageLimit(output.usageLimit, context)
|
|
2749
|
+
: undefined,
|
|
2750
|
+
};
|
|
2751
|
+
};
|
|
2752
|
+
const deserializeAws_json1_1GetWorkgroupResponse = (output, context) => {
|
|
2753
|
+
return {
|
|
2754
|
+
workgroup: output.workgroup !== undefined && output.workgroup !== null
|
|
2755
|
+
? deserializeAws_json1_1Workgroup(output.workgroup, context)
|
|
2756
|
+
: undefined,
|
|
2757
|
+
};
|
|
2758
|
+
};
|
|
2759
|
+
const deserializeAws_json1_1IamRoleArnList = (output, context) => {
|
|
2760
|
+
const retVal = (output || [])
|
|
2761
|
+
.filter((e) => e != null)
|
|
2762
|
+
.map((entry) => {
|
|
2763
|
+
if (entry === null) {
|
|
2764
|
+
return null;
|
|
2765
|
+
}
|
|
2766
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
2767
|
+
});
|
|
2768
|
+
return retVal;
|
|
2769
|
+
};
|
|
2770
|
+
const deserializeAws_json1_1InsufficientCapacityException = (output, context) => {
|
|
2771
|
+
return {
|
|
2772
|
+
message: (0, smithy_client_1.expectString)(output.message),
|
|
2773
|
+
};
|
|
2774
|
+
};
|
|
2775
|
+
const deserializeAws_json1_1InternalServerException = (output, context) => {
|
|
2776
|
+
return {
|
|
2777
|
+
message: (0, smithy_client_1.expectString)(output.message),
|
|
2778
|
+
};
|
|
2779
|
+
};
|
|
2780
|
+
const deserializeAws_json1_1InvalidPaginationException = (output, context) => {
|
|
2781
|
+
return {
|
|
2782
|
+
message: (0, smithy_client_1.expectString)(output.message),
|
|
2783
|
+
};
|
|
2784
|
+
};
|
|
2785
|
+
const deserializeAws_json1_1ListEndpointAccessResponse = (output, context) => {
|
|
2786
|
+
return {
|
|
2787
|
+
endpoints: output.endpoints !== undefined && output.endpoints !== null
|
|
2788
|
+
? deserializeAws_json1_1EndpointAccessList(output.endpoints, context)
|
|
2789
|
+
: undefined,
|
|
2790
|
+
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2791
|
+
};
|
|
2792
|
+
};
|
|
2793
|
+
const deserializeAws_json1_1ListNamespacesResponse = (output, context) => {
|
|
2794
|
+
return {
|
|
2795
|
+
namespaces: output.namespaces !== undefined && output.namespaces !== null
|
|
2796
|
+
? deserializeAws_json1_1NamespaceList(output.namespaces, context)
|
|
2797
|
+
: undefined,
|
|
2798
|
+
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2799
|
+
};
|
|
2800
|
+
};
|
|
2801
|
+
const deserializeAws_json1_1ListRecoveryPointsResponse = (output, context) => {
|
|
2802
|
+
return {
|
|
2803
|
+
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2804
|
+
recoveryPoints: output.recoveryPoints !== undefined && output.recoveryPoints !== null
|
|
2805
|
+
? deserializeAws_json1_1RecoveryPointList(output.recoveryPoints, context)
|
|
2806
|
+
: undefined,
|
|
2807
|
+
};
|
|
2808
|
+
};
|
|
2809
|
+
const deserializeAws_json1_1ListSnapshotsResponse = (output, context) => {
|
|
2810
|
+
return {
|
|
2811
|
+
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2812
|
+
snapshots: output.snapshots !== undefined && output.snapshots !== null
|
|
2813
|
+
? deserializeAws_json1_1SnapshotList(output.snapshots, context)
|
|
2814
|
+
: undefined,
|
|
2815
|
+
};
|
|
2816
|
+
};
|
|
2817
|
+
const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
|
|
2818
|
+
return {
|
|
2819
|
+
tags: output.tags !== undefined && output.tags !== null
|
|
2820
|
+
? deserializeAws_json1_1TagList(output.tags, context)
|
|
2821
|
+
: undefined,
|
|
2822
|
+
};
|
|
2823
|
+
};
|
|
2824
|
+
const deserializeAws_json1_1ListUsageLimitsResponse = (output, context) => {
|
|
2825
|
+
return {
|
|
2826
|
+
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2827
|
+
usageLimits: output.usageLimits !== undefined && output.usageLimits !== null
|
|
2828
|
+
? deserializeAws_json1_1UsageLimits(output.usageLimits, context)
|
|
2829
|
+
: undefined,
|
|
2830
|
+
};
|
|
2831
|
+
};
|
|
2832
|
+
const deserializeAws_json1_1ListWorkgroupsResponse = (output, context) => {
|
|
2833
|
+
return {
|
|
2834
|
+
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2835
|
+
workgroups: output.workgroups !== undefined && output.workgroups !== null
|
|
2836
|
+
? deserializeAws_json1_1WorkgroupList(output.workgroups, context)
|
|
2837
|
+
: undefined,
|
|
2838
|
+
};
|
|
2839
|
+
};
|
|
2840
|
+
const deserializeAws_json1_1LogExportList = (output, context) => {
|
|
2841
|
+
const retVal = (output || [])
|
|
2842
|
+
.filter((e) => e != null)
|
|
2843
|
+
.map((entry) => {
|
|
2844
|
+
if (entry === null) {
|
|
2845
|
+
return null;
|
|
2846
|
+
}
|
|
2847
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
2848
|
+
});
|
|
2849
|
+
return retVal;
|
|
2850
|
+
};
|
|
2851
|
+
const deserializeAws_json1_1Namespace = (output, context) => {
|
|
2852
|
+
return {
|
|
2853
|
+
adminUsername: (0, smithy_client_1.expectString)(output.adminUsername),
|
|
2854
|
+
creationDate: output.creationDate !== undefined && output.creationDate !== null
|
|
2855
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.creationDate))
|
|
2856
|
+
: undefined,
|
|
2857
|
+
dbName: (0, smithy_client_1.expectString)(output.dbName),
|
|
2858
|
+
defaultIamRoleArn: (0, smithy_client_1.expectString)(output.defaultIamRoleArn),
|
|
2859
|
+
iamRoles: output.iamRoles !== undefined && output.iamRoles !== null
|
|
2860
|
+
? deserializeAws_json1_1IamRoleArnList(output.iamRoles, context)
|
|
2861
|
+
: undefined,
|
|
2862
|
+
kmsKeyId: (0, smithy_client_1.expectString)(output.kmsKeyId),
|
|
2863
|
+
logExports: output.logExports !== undefined && output.logExports !== null
|
|
2864
|
+
? deserializeAws_json1_1LogExportList(output.logExports, context)
|
|
2865
|
+
: undefined,
|
|
2866
|
+
namespaceArn: (0, smithy_client_1.expectString)(output.namespaceArn),
|
|
2867
|
+
namespaceId: (0, smithy_client_1.expectString)(output.namespaceId),
|
|
2868
|
+
namespaceName: (0, smithy_client_1.expectString)(output.namespaceName),
|
|
2869
|
+
status: (0, smithy_client_1.expectString)(output.status),
|
|
2870
|
+
};
|
|
2871
|
+
};
|
|
2872
|
+
const deserializeAws_json1_1NamespaceList = (output, context) => {
|
|
2873
|
+
const retVal = (output || [])
|
|
2874
|
+
.filter((e) => e != null)
|
|
2875
|
+
.map((entry) => {
|
|
2876
|
+
if (entry === null) {
|
|
2877
|
+
return null;
|
|
2878
|
+
}
|
|
2879
|
+
return deserializeAws_json1_1Namespace(entry, context);
|
|
2880
|
+
});
|
|
2881
|
+
return retVal;
|
|
2882
|
+
};
|
|
2883
|
+
const deserializeAws_json1_1NetworkInterface = (output, context) => {
|
|
2884
|
+
return {
|
|
2885
|
+
availabilityZone: (0, smithy_client_1.expectString)(output.availabilityZone),
|
|
2886
|
+
networkInterfaceId: (0, smithy_client_1.expectString)(output.networkInterfaceId),
|
|
2887
|
+
privateIpAddress: (0, smithy_client_1.expectString)(output.privateIpAddress),
|
|
2888
|
+
subnetId: (0, smithy_client_1.expectString)(output.subnetId),
|
|
2889
|
+
};
|
|
2890
|
+
};
|
|
2891
|
+
const deserializeAws_json1_1NetworkInterfaceList = (output, context) => {
|
|
2892
|
+
const retVal = (output || [])
|
|
2893
|
+
.filter((e) => e != null)
|
|
2894
|
+
.map((entry) => {
|
|
2895
|
+
if (entry === null) {
|
|
2896
|
+
return null;
|
|
2897
|
+
}
|
|
2898
|
+
return deserializeAws_json1_1NetworkInterface(entry, context);
|
|
2899
|
+
});
|
|
2900
|
+
return retVal;
|
|
2901
|
+
};
|
|
2902
|
+
const deserializeAws_json1_1PutResourcePolicyResponse = (output, context) => {
|
|
2903
|
+
return {
|
|
2904
|
+
resourcePolicy: output.resourcePolicy !== undefined && output.resourcePolicy !== null
|
|
2905
|
+
? deserializeAws_json1_1ResourcePolicy(output.resourcePolicy, context)
|
|
2906
|
+
: undefined,
|
|
2907
|
+
};
|
|
2908
|
+
};
|
|
2909
|
+
const deserializeAws_json1_1RecoveryPoint = (output, context) => {
|
|
2910
|
+
return {
|
|
2911
|
+
namespaceName: (0, smithy_client_1.expectString)(output.namespaceName),
|
|
2912
|
+
recoveryPointCreateTime: output.recoveryPointCreateTime !== undefined && output.recoveryPointCreateTime !== null
|
|
2913
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.recoveryPointCreateTime))
|
|
2914
|
+
: undefined,
|
|
2915
|
+
recoveryPointId: (0, smithy_client_1.expectString)(output.recoveryPointId),
|
|
2916
|
+
totalSizeInMegaBytes: (0, smithy_client_1.limitedParseDouble)(output.totalSizeInMegaBytes),
|
|
2917
|
+
workgroupName: (0, smithy_client_1.expectString)(output.workgroupName),
|
|
2918
|
+
};
|
|
2919
|
+
};
|
|
2920
|
+
const deserializeAws_json1_1RecoveryPointList = (output, context) => {
|
|
2921
|
+
const retVal = (output || [])
|
|
2922
|
+
.filter((e) => e != null)
|
|
2923
|
+
.map((entry) => {
|
|
2924
|
+
if (entry === null) {
|
|
2925
|
+
return null;
|
|
2926
|
+
}
|
|
2927
|
+
return deserializeAws_json1_1RecoveryPoint(entry, context);
|
|
2928
|
+
});
|
|
2929
|
+
return retVal;
|
|
2930
|
+
};
|
|
2931
|
+
const deserializeAws_json1_1ResourceNotFoundException = (output, context) => {
|
|
2932
|
+
return {
|
|
2933
|
+
message: (0, smithy_client_1.expectString)(output.message),
|
|
2934
|
+
resourceName: (0, smithy_client_1.expectString)(output.resourceName),
|
|
2935
|
+
};
|
|
2936
|
+
};
|
|
2937
|
+
const deserializeAws_json1_1ResourcePolicy = (output, context) => {
|
|
2938
|
+
return {
|
|
2939
|
+
policy: (0, smithy_client_1.expectString)(output.policy),
|
|
2940
|
+
resourceArn: (0, smithy_client_1.expectString)(output.resourceArn),
|
|
2941
|
+
};
|
|
2942
|
+
};
|
|
2943
|
+
const deserializeAws_json1_1RestoreFromRecoveryPointResponse = (output, context) => {
|
|
2944
|
+
return {
|
|
2945
|
+
namespace: output.namespace !== undefined && output.namespace !== null
|
|
2946
|
+
? deserializeAws_json1_1Namespace(output.namespace, context)
|
|
2947
|
+
: undefined,
|
|
2948
|
+
recoveryPointId: (0, smithy_client_1.expectString)(output.recoveryPointId),
|
|
2949
|
+
};
|
|
2950
|
+
};
|
|
2951
|
+
const deserializeAws_json1_1RestoreFromSnapshotResponse = (output, context) => {
|
|
2952
|
+
return {
|
|
2953
|
+
namespace: output.namespace !== undefined && output.namespace !== null
|
|
2954
|
+
? deserializeAws_json1_1Namespace(output.namespace, context)
|
|
2955
|
+
: undefined,
|
|
2956
|
+
ownerAccount: (0, smithy_client_1.expectString)(output.ownerAccount),
|
|
2957
|
+
snapshotName: (0, smithy_client_1.expectString)(output.snapshotName),
|
|
2958
|
+
};
|
|
2959
|
+
};
|
|
2960
|
+
const deserializeAws_json1_1SecurityGroupIdList = (output, context) => {
|
|
2961
|
+
const retVal = (output || [])
|
|
2962
|
+
.filter((e) => e != null)
|
|
2963
|
+
.map((entry) => {
|
|
2964
|
+
if (entry === null) {
|
|
2965
|
+
return null;
|
|
2966
|
+
}
|
|
2967
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
2968
|
+
});
|
|
2969
|
+
return retVal;
|
|
2970
|
+
};
|
|
2971
|
+
const deserializeAws_json1_1ServiceQuotaExceededException = (output, context) => {
|
|
2972
|
+
return {
|
|
2973
|
+
message: (0, smithy_client_1.expectString)(output.message),
|
|
2974
|
+
};
|
|
2975
|
+
};
|
|
2976
|
+
const deserializeAws_json1_1Snapshot = (output, context) => {
|
|
2977
|
+
return {
|
|
2978
|
+
accountsWithProvisionedRestoreAccess: output.accountsWithProvisionedRestoreAccess !== undefined && output.accountsWithProvisionedRestoreAccess !== null
|
|
2979
|
+
? deserializeAws_json1_1AccountIdList(output.accountsWithProvisionedRestoreAccess, context)
|
|
2980
|
+
: undefined,
|
|
2981
|
+
accountsWithRestoreAccess: output.accountsWithRestoreAccess !== undefined && output.accountsWithRestoreAccess !== null
|
|
2982
|
+
? deserializeAws_json1_1AccountIdList(output.accountsWithRestoreAccess, context)
|
|
2983
|
+
: undefined,
|
|
2984
|
+
actualIncrementalBackupSizeInMegaBytes: (0, smithy_client_1.limitedParseDouble)(output.actualIncrementalBackupSizeInMegaBytes),
|
|
2985
|
+
adminUsername: (0, smithy_client_1.expectString)(output.adminUsername),
|
|
2986
|
+
backupProgressInMegaBytes: (0, smithy_client_1.limitedParseDouble)(output.backupProgressInMegaBytes),
|
|
2987
|
+
currentBackupRateInMegaBytesPerSecond: (0, smithy_client_1.limitedParseDouble)(output.currentBackupRateInMegaBytesPerSecond),
|
|
2988
|
+
elapsedTimeInSeconds: (0, smithy_client_1.expectLong)(output.elapsedTimeInSeconds),
|
|
2989
|
+
estimatedSecondsToCompletion: (0, smithy_client_1.expectLong)(output.estimatedSecondsToCompletion),
|
|
2990
|
+
kmsKeyId: (0, smithy_client_1.expectString)(output.kmsKeyId),
|
|
2991
|
+
namespaceArn: (0, smithy_client_1.expectString)(output.namespaceArn),
|
|
2992
|
+
namespaceName: (0, smithy_client_1.expectString)(output.namespaceName),
|
|
2993
|
+
ownerAccount: (0, smithy_client_1.expectString)(output.ownerAccount),
|
|
2994
|
+
snapshotArn: (0, smithy_client_1.expectString)(output.snapshotArn),
|
|
2995
|
+
snapshotCreateTime: output.snapshotCreateTime !== undefined && output.snapshotCreateTime !== null
|
|
2996
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.snapshotCreateTime))
|
|
2997
|
+
: undefined,
|
|
2998
|
+
snapshotName: (0, smithy_client_1.expectString)(output.snapshotName),
|
|
2999
|
+
snapshotRemainingDays: (0, smithy_client_1.expectInt32)(output.snapshotRemainingDays),
|
|
3000
|
+
snapshotRetentionPeriod: (0, smithy_client_1.expectInt32)(output.snapshotRetentionPeriod),
|
|
3001
|
+
snapshotRetentionStartTime: output.snapshotRetentionStartTime !== undefined && output.snapshotRetentionStartTime !== null
|
|
3002
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.snapshotRetentionStartTime))
|
|
3003
|
+
: undefined,
|
|
3004
|
+
status: (0, smithy_client_1.expectString)(output.status),
|
|
3005
|
+
totalBackupSizeInMegaBytes: (0, smithy_client_1.limitedParseDouble)(output.totalBackupSizeInMegaBytes),
|
|
3006
|
+
};
|
|
3007
|
+
};
|
|
3008
|
+
const deserializeAws_json1_1SnapshotList = (output, context) => {
|
|
3009
|
+
const retVal = (output || [])
|
|
3010
|
+
.filter((e) => e != null)
|
|
3011
|
+
.map((entry) => {
|
|
3012
|
+
if (entry === null) {
|
|
3013
|
+
return null;
|
|
3014
|
+
}
|
|
3015
|
+
return deserializeAws_json1_1Snapshot(entry, context);
|
|
3016
|
+
});
|
|
3017
|
+
return retVal;
|
|
3018
|
+
};
|
|
3019
|
+
const deserializeAws_json1_1SubnetIdList = (output, context) => {
|
|
3020
|
+
const retVal = (output || [])
|
|
3021
|
+
.filter((e) => e != null)
|
|
3022
|
+
.map((entry) => {
|
|
3023
|
+
if (entry === null) {
|
|
3024
|
+
return null;
|
|
3025
|
+
}
|
|
3026
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
3027
|
+
});
|
|
3028
|
+
return retVal;
|
|
3029
|
+
};
|
|
3030
|
+
const deserializeAws_json1_1Tag = (output, context) => {
|
|
3031
|
+
return {
|
|
3032
|
+
key: (0, smithy_client_1.expectString)(output.key),
|
|
3033
|
+
value: (0, smithy_client_1.expectString)(output.value),
|
|
3034
|
+
};
|
|
3035
|
+
};
|
|
3036
|
+
const deserializeAws_json1_1TagList = (output, context) => {
|
|
3037
|
+
const retVal = (output || [])
|
|
3038
|
+
.filter((e) => e != null)
|
|
3039
|
+
.map((entry) => {
|
|
3040
|
+
if (entry === null) {
|
|
3041
|
+
return null;
|
|
3042
|
+
}
|
|
3043
|
+
return deserializeAws_json1_1Tag(entry, context);
|
|
3044
|
+
});
|
|
3045
|
+
return retVal;
|
|
3046
|
+
};
|
|
3047
|
+
const deserializeAws_json1_1TagResourceResponse = (output, context) => {
|
|
3048
|
+
return {};
|
|
3049
|
+
};
|
|
3050
|
+
const deserializeAws_json1_1ThrottlingException = (output, context) => {
|
|
3051
|
+
return {
|
|
3052
|
+
code: (0, smithy_client_1.expectString)(output.code),
|
|
3053
|
+
message: (0, smithy_client_1.expectString)(output.message),
|
|
3054
|
+
};
|
|
3055
|
+
};
|
|
3056
|
+
const deserializeAws_json1_1TooManyTagsException = (output, context) => {
|
|
3057
|
+
return {
|
|
3058
|
+
message: (0, smithy_client_1.expectString)(output.message),
|
|
3059
|
+
resourceName: (0, smithy_client_1.expectString)(output.resourceName),
|
|
3060
|
+
};
|
|
3061
|
+
};
|
|
3062
|
+
const deserializeAws_json1_1UntagResourceResponse = (output, context) => {
|
|
3063
|
+
return {};
|
|
3064
|
+
};
|
|
3065
|
+
const deserializeAws_json1_1UpdateEndpointAccessResponse = (output, context) => {
|
|
3066
|
+
return {
|
|
3067
|
+
endpoint: output.endpoint !== undefined && output.endpoint !== null
|
|
3068
|
+
? deserializeAws_json1_1EndpointAccess(output.endpoint, context)
|
|
3069
|
+
: undefined,
|
|
3070
|
+
};
|
|
3071
|
+
};
|
|
3072
|
+
const deserializeAws_json1_1UpdateNamespaceResponse = (output, context) => {
|
|
3073
|
+
return {
|
|
3074
|
+
namespace: output.namespace !== undefined && output.namespace !== null
|
|
3075
|
+
? deserializeAws_json1_1Namespace(output.namespace, context)
|
|
3076
|
+
: undefined,
|
|
3077
|
+
};
|
|
3078
|
+
};
|
|
3079
|
+
const deserializeAws_json1_1UpdateSnapshotResponse = (output, context) => {
|
|
3080
|
+
return {
|
|
3081
|
+
snapshot: output.snapshot !== undefined && output.snapshot !== null
|
|
3082
|
+
? deserializeAws_json1_1Snapshot(output.snapshot, context)
|
|
3083
|
+
: undefined,
|
|
3084
|
+
};
|
|
3085
|
+
};
|
|
3086
|
+
const deserializeAws_json1_1UpdateUsageLimitResponse = (output, context) => {
|
|
3087
|
+
return {
|
|
3088
|
+
usageLimit: output.usageLimit !== undefined && output.usageLimit !== null
|
|
3089
|
+
? deserializeAws_json1_1UsageLimit(output.usageLimit, context)
|
|
3090
|
+
: undefined,
|
|
3091
|
+
};
|
|
3092
|
+
};
|
|
3093
|
+
const deserializeAws_json1_1UpdateWorkgroupResponse = (output, context) => {
|
|
3094
|
+
return {
|
|
3095
|
+
workgroup: output.workgroup !== undefined && output.workgroup !== null
|
|
3096
|
+
? deserializeAws_json1_1Workgroup(output.workgroup, context)
|
|
3097
|
+
: undefined,
|
|
3098
|
+
};
|
|
3099
|
+
};
|
|
3100
|
+
const deserializeAws_json1_1UsageLimit = (output, context) => {
|
|
3101
|
+
return {
|
|
3102
|
+
amount: (0, smithy_client_1.expectLong)(output.amount),
|
|
3103
|
+
breachAction: (0, smithy_client_1.expectString)(output.breachAction),
|
|
3104
|
+
period: (0, smithy_client_1.expectString)(output.period),
|
|
3105
|
+
resourceArn: (0, smithy_client_1.expectString)(output.resourceArn),
|
|
3106
|
+
usageLimitArn: (0, smithy_client_1.expectString)(output.usageLimitArn),
|
|
3107
|
+
usageLimitId: (0, smithy_client_1.expectString)(output.usageLimitId),
|
|
3108
|
+
usageType: (0, smithy_client_1.expectString)(output.usageType),
|
|
3109
|
+
};
|
|
3110
|
+
};
|
|
3111
|
+
const deserializeAws_json1_1UsageLimits = (output, context) => {
|
|
3112
|
+
const retVal = (output || [])
|
|
3113
|
+
.filter((e) => e != null)
|
|
3114
|
+
.map((entry) => {
|
|
3115
|
+
if (entry === null) {
|
|
3116
|
+
return null;
|
|
3117
|
+
}
|
|
3118
|
+
return deserializeAws_json1_1UsageLimit(entry, context);
|
|
3119
|
+
});
|
|
3120
|
+
return retVal;
|
|
3121
|
+
};
|
|
3122
|
+
const deserializeAws_json1_1ValidationException = (output, context) => {
|
|
3123
|
+
return {
|
|
3124
|
+
message: (0, smithy_client_1.expectString)(output.message),
|
|
3125
|
+
};
|
|
3126
|
+
};
|
|
3127
|
+
const deserializeAws_json1_1VpcEndpoint = (output, context) => {
|
|
3128
|
+
return {
|
|
3129
|
+
networkInterfaces: output.networkInterfaces !== undefined && output.networkInterfaces !== null
|
|
3130
|
+
? deserializeAws_json1_1NetworkInterfaceList(output.networkInterfaces, context)
|
|
3131
|
+
: undefined,
|
|
3132
|
+
vpcEndpointId: (0, smithy_client_1.expectString)(output.vpcEndpointId),
|
|
3133
|
+
vpcId: (0, smithy_client_1.expectString)(output.vpcId),
|
|
3134
|
+
};
|
|
3135
|
+
};
|
|
3136
|
+
const deserializeAws_json1_1VpcEndpointList = (output, context) => {
|
|
3137
|
+
const retVal = (output || [])
|
|
3138
|
+
.filter((e) => e != null)
|
|
3139
|
+
.map((entry) => {
|
|
3140
|
+
if (entry === null) {
|
|
3141
|
+
return null;
|
|
3142
|
+
}
|
|
3143
|
+
return deserializeAws_json1_1VpcEndpoint(entry, context);
|
|
3144
|
+
});
|
|
3145
|
+
return retVal;
|
|
3146
|
+
};
|
|
3147
|
+
const deserializeAws_json1_1VpcSecurityGroupMembership = (output, context) => {
|
|
3148
|
+
return {
|
|
3149
|
+
status: (0, smithy_client_1.expectString)(output.status),
|
|
3150
|
+
vpcSecurityGroupId: (0, smithy_client_1.expectString)(output.vpcSecurityGroupId),
|
|
3151
|
+
};
|
|
3152
|
+
};
|
|
3153
|
+
const deserializeAws_json1_1VpcSecurityGroupMembershipList = (output, context) => {
|
|
3154
|
+
const retVal = (output || [])
|
|
3155
|
+
.filter((e) => e != null)
|
|
3156
|
+
.map((entry) => {
|
|
3157
|
+
if (entry === null) {
|
|
3158
|
+
return null;
|
|
3159
|
+
}
|
|
3160
|
+
return deserializeAws_json1_1VpcSecurityGroupMembership(entry, context);
|
|
3161
|
+
});
|
|
3162
|
+
return retVal;
|
|
3163
|
+
};
|
|
3164
|
+
const deserializeAws_json1_1Workgroup = (output, context) => {
|
|
3165
|
+
return {
|
|
3166
|
+
baseCapacity: (0, smithy_client_1.expectInt32)(output.baseCapacity),
|
|
3167
|
+
configParameters: output.configParameters !== undefined && output.configParameters !== null
|
|
3168
|
+
? deserializeAws_json1_1ConfigParameterList(output.configParameters, context)
|
|
3169
|
+
: undefined,
|
|
3170
|
+
creationDate: output.creationDate !== undefined && output.creationDate !== null
|
|
3171
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.creationDate))
|
|
3172
|
+
: undefined,
|
|
3173
|
+
endpoint: output.endpoint !== undefined && output.endpoint !== null
|
|
3174
|
+
? deserializeAws_json1_1Endpoint(output.endpoint, context)
|
|
3175
|
+
: undefined,
|
|
3176
|
+
enhancedVpcRouting: (0, smithy_client_1.expectBoolean)(output.enhancedVpcRouting),
|
|
3177
|
+
namespaceName: (0, smithy_client_1.expectString)(output.namespaceName),
|
|
3178
|
+
publiclyAccessible: (0, smithy_client_1.expectBoolean)(output.publiclyAccessible),
|
|
3179
|
+
securityGroupIds: output.securityGroupIds !== undefined && output.securityGroupIds !== null
|
|
3180
|
+
? deserializeAws_json1_1SecurityGroupIdList(output.securityGroupIds, context)
|
|
3181
|
+
: undefined,
|
|
3182
|
+
status: (0, smithy_client_1.expectString)(output.status),
|
|
3183
|
+
subnetIds: output.subnetIds !== undefined && output.subnetIds !== null
|
|
3184
|
+
? deserializeAws_json1_1SubnetIdList(output.subnetIds, context)
|
|
3185
|
+
: undefined,
|
|
3186
|
+
workgroupArn: (0, smithy_client_1.expectString)(output.workgroupArn),
|
|
3187
|
+
workgroupId: (0, smithy_client_1.expectString)(output.workgroupId),
|
|
3188
|
+
workgroupName: (0, smithy_client_1.expectString)(output.workgroupName),
|
|
3189
|
+
};
|
|
3190
|
+
};
|
|
3191
|
+
const deserializeAws_json1_1WorkgroupList = (output, context) => {
|
|
3192
|
+
const retVal = (output || [])
|
|
3193
|
+
.filter((e) => e != null)
|
|
3194
|
+
.map((entry) => {
|
|
3195
|
+
if (entry === null) {
|
|
3196
|
+
return null;
|
|
3197
|
+
}
|
|
3198
|
+
return deserializeAws_json1_1Workgroup(entry, context);
|
|
3199
|
+
});
|
|
3200
|
+
return retVal;
|
|
3201
|
+
};
|
|
3202
|
+
const deserializeMetadata = (output) => {
|
|
3203
|
+
var _a;
|
|
3204
|
+
return ({
|
|
3205
|
+
httpStatusCode: output.statusCode,
|
|
3206
|
+
requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"],
|
|
3207
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
3208
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
3209
|
+
});
|
|
3210
|
+
};
|
|
3211
|
+
const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
3212
|
+
if (streamBody instanceof Uint8Array) {
|
|
3213
|
+
return Promise.resolve(streamBody);
|
|
3214
|
+
}
|
|
3215
|
+
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
3216
|
+
};
|
|
3217
|
+
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
3218
|
+
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
3219
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3220
|
+
const contents = {
|
|
3221
|
+
protocol,
|
|
3222
|
+
hostname,
|
|
3223
|
+
port,
|
|
3224
|
+
method: "POST",
|
|
3225
|
+
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
3226
|
+
headers,
|
|
3227
|
+
};
|
|
3228
|
+
if (resolvedHostname !== undefined) {
|
|
3229
|
+
contents.hostname = resolvedHostname;
|
|
3230
|
+
}
|
|
3231
|
+
if (body !== undefined) {
|
|
3232
|
+
contents.body = body;
|
|
3233
|
+
}
|
|
3234
|
+
return new protocol_http_1.HttpRequest(contents);
|
|
3235
|
+
};
|
|
3236
|
+
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
3237
|
+
if (encoded.length) {
|
|
3238
|
+
return JSON.parse(encoded);
|
|
3239
|
+
}
|
|
3240
|
+
return {};
|
|
3241
|
+
});
|
|
3242
|
+
const loadRestJsonErrorCode = (output, data) => {
|
|
3243
|
+
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
3244
|
+
const sanitizeErrorCode = (rawValue) => {
|
|
3245
|
+
let cleanValue = rawValue;
|
|
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
|
+
return "";
|
|
3265
|
+
};
|