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