@aws-sdk/client-athena 3.216.0 → 3.221.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/Athena.js +345 -0
- package/dist-cjs/commands/CreateNotebookCommand.js +46 -0
- package/dist-cjs/commands/CreatePresignedNotebookUrlCommand.js +46 -0
- package/dist-cjs/commands/DeleteNotebookCommand.js +46 -0
- package/dist-cjs/commands/ExportNotebookCommand.js +46 -0
- package/dist-cjs/commands/GetCalculationExecutionCodeCommand.js +46 -0
- package/dist-cjs/commands/GetCalculationExecutionCommand.js +46 -0
- package/dist-cjs/commands/GetCalculationExecutionStatusCommand.js +46 -0
- package/dist-cjs/commands/GetNotebookMetadataCommand.js +46 -0
- package/dist-cjs/commands/GetSessionCommand.js +46 -0
- package/dist-cjs/commands/GetSessionStatusCommand.js +46 -0
- package/dist-cjs/commands/ImportNotebookCommand.js +46 -0
- package/dist-cjs/commands/ListApplicationDPUSizesCommand.js +46 -0
- package/dist-cjs/commands/ListCalculationExecutionsCommand.js +46 -0
- package/dist-cjs/commands/ListExecutorsCommand.js +46 -0
- package/dist-cjs/commands/ListNotebookMetadataCommand.js +46 -0
- package/dist-cjs/commands/ListNotebookSessionsCommand.js +46 -0
- package/dist-cjs/commands/ListSessionsCommand.js +46 -0
- package/dist-cjs/commands/StartCalculationExecutionCommand.js +46 -0
- package/dist-cjs/commands/StartSessionCommand.js +46 -0
- package/dist-cjs/commands/StopCalculationExecutionCommand.js +46 -0
- package/dist-cjs/commands/TerminateSessionCommand.js +46 -0
- package/dist-cjs/commands/UpdateNotebookCommand.js +46 -0
- package/dist-cjs/commands/UpdateNotebookMetadataCommand.js +46 -0
- package/dist-cjs/commands/index.js +23 -0
- package/dist-cjs/models/models_0.js +322 -18
- package/dist-cjs/pagination/ListApplicationDPUSizesPaginator.js +36 -0
- package/dist-cjs/pagination/ListCalculationExecutionsPaginator.js +36 -0
- package/dist-cjs/pagination/ListExecutorsPaginator.js +36 -0
- package/dist-cjs/pagination/ListSessionsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +4 -0
- package/dist-cjs/protocols/Aws_json1_1.js +1908 -183
- package/dist-es/Athena.js +345 -0
- package/dist-es/commands/CreateNotebookCommand.js +42 -0
- package/dist-es/commands/CreatePresignedNotebookUrlCommand.js +42 -0
- package/dist-es/commands/DeleteNotebookCommand.js +42 -0
- package/dist-es/commands/ExportNotebookCommand.js +42 -0
- package/dist-es/commands/GetCalculationExecutionCodeCommand.js +42 -0
- package/dist-es/commands/GetCalculationExecutionCommand.js +42 -0
- package/dist-es/commands/GetCalculationExecutionStatusCommand.js +42 -0
- package/dist-es/commands/GetNotebookMetadataCommand.js +42 -0
- package/dist-es/commands/GetSessionCommand.js +42 -0
- package/dist-es/commands/GetSessionStatusCommand.js +42 -0
- package/dist-es/commands/ImportNotebookCommand.js +42 -0
- package/dist-es/commands/ListApplicationDPUSizesCommand.js +42 -0
- package/dist-es/commands/ListCalculationExecutionsCommand.js +42 -0
- package/dist-es/commands/ListExecutorsCommand.js +42 -0
- package/dist-es/commands/ListNotebookMetadataCommand.js +42 -0
- package/dist-es/commands/ListNotebookSessionsCommand.js +42 -0
- package/dist-es/commands/ListSessionsCommand.js +42 -0
- package/dist-es/commands/StartCalculationExecutionCommand.js +42 -0
- package/dist-es/commands/StartSessionCommand.js +42 -0
- package/dist-es/commands/StopCalculationExecutionCommand.js +42 -0
- package/dist-es/commands/TerminateSessionCommand.js +42 -0
- package/dist-es/commands/UpdateNotebookCommand.js +42 -0
- package/dist-es/commands/UpdateNotebookMetadataCommand.js +42 -0
- package/dist-es/commands/index.js +23 -0
- package/dist-es/models/models_0.js +254 -14
- package/dist-es/pagination/ListApplicationDPUSizesPaginator.js +32 -0
- package/dist-es/pagination/ListCalculationExecutionsPaginator.js +32 -0
- package/dist-es/pagination/ListExecutorsPaginator.js +32 -0
- package/dist-es/pagination/ListSessionsPaginator.js +32 -0
- package/dist-es/pagination/index.js +4 -0
- package/dist-es/protocols/Aws_json1_1.js +1835 -157
- package/dist-types/Athena.d.ts +212 -8
- package/dist-types/AthenaClient.d.ts +25 -2
- package/dist-types/commands/BatchGetPreparedStatementCommand.d.ts +5 -1
- package/dist-types/commands/CreateNotebookCommand.d.ts +39 -0
- package/dist-types/commands/CreatePresignedNotebookUrlCommand.d.ts +39 -0
- package/dist-types/commands/CreateWorkGroupCommand.d.ts +4 -1
- package/dist-types/commands/DeleteNotebookCommand.d.ts +37 -0
- package/dist-types/commands/ExportNotebookCommand.d.ts +37 -0
- package/dist-types/commands/GetCalculationExecutionCodeCommand.d.ts +38 -0
- package/dist-types/commands/GetCalculationExecutionCommand.d.ts +37 -0
- package/dist-types/commands/GetCalculationExecutionStatusCommand.d.ts +37 -0
- package/dist-types/commands/GetNotebookMetadataCommand.d.ts +37 -0
- package/dist-types/commands/GetQueryRuntimeStatisticsCommand.d.ts +4 -4
- package/dist-types/commands/GetSessionCommand.d.ts +38 -0
- package/dist-types/commands/GetSessionStatusCommand.d.ts +37 -0
- package/dist-types/commands/ImportNotebookCommand.d.ts +39 -0
- package/dist-types/commands/ListApplicationDPUSizesCommand.d.ts +38 -0
- package/dist-types/commands/ListCalculationExecutionsCommand.d.ts +38 -0
- package/dist-types/commands/ListExecutorsCommand.d.ts +39 -0
- package/dist-types/commands/ListNotebookMetadataCommand.d.ts +37 -0
- package/dist-types/commands/ListNotebookSessionsCommand.d.ts +40 -0
- package/dist-types/commands/ListSessionsCommand.d.ts +40 -0
- package/dist-types/commands/StartCalculationExecutionCommand.d.ts +38 -0
- package/dist-types/commands/StartSessionCommand.d.ts +38 -0
- package/dist-types/commands/StopCalculationExecutionCommand.d.ts +46 -0
- package/dist-types/commands/TerminateSessionCommand.d.ts +41 -0
- package/dist-types/commands/UpdateNotebookCommand.d.ts +37 -0
- package/dist-types/commands/UpdateNotebookMetadataCommand.d.ts +37 -0
- package/dist-types/commands/UpdateWorkGroupCommand.d.ts +5 -2
- package/dist-types/commands/index.d.ts +23 -0
- package/dist-types/models/models_0.d.ts +1511 -101
- package/dist-types/pagination/ListApplicationDPUSizesPaginator.d.ts +4 -0
- package/dist-types/pagination/ListCalculationExecutionsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListExecutorsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListSessionsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +4 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +69 -0
- package/dist-types/ts3.4/Athena.d.ts +391 -0
- package/dist-types/ts3.4/AthenaClient.d.ts +138 -0
- package/dist-types/ts3.4/commands/CreateNotebookCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/CreatePresignedNotebookUrlCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DeleteNotebookCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/ExportNotebookCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/GetCalculationExecutionCodeCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/GetCalculationExecutionCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/GetCalculationExecutionStatusCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/GetNotebookMetadataCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetSessionCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/GetSessionStatusCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/ImportNotebookCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/ListApplicationDPUSizesCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListCalculationExecutionsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListExecutorsCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/ListNotebookMetadataCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListNotebookSessionsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListSessionsCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/StartCalculationExecutionCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/StartSessionCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/StopCalculationExecutionCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/TerminateSessionCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/UpdateNotebookCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/UpdateNotebookMetadataCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +23 -0
- package/dist-types/ts3.4/models/models_0.d.ts +538 -21
- package/dist-types/ts3.4/pagination/ListApplicationDPUSizesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListCalculationExecutionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListExecutorsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListSessionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +276 -0
- package/package.json +3 -3
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
3
|
+
exports.serializeAws_json1_1StopCalculationExecutionCommand = exports.serializeAws_json1_1StartSessionCommand = exports.serializeAws_json1_1StartQueryExecutionCommand = exports.serializeAws_json1_1StartCalculationExecutionCommand = exports.serializeAws_json1_1ListWorkGroupsCommand = exports.serializeAws_json1_1ListTagsForResourceCommand = exports.serializeAws_json1_1ListTableMetadataCommand = exports.serializeAws_json1_1ListSessionsCommand = exports.serializeAws_json1_1ListQueryExecutionsCommand = exports.serializeAws_json1_1ListPreparedStatementsCommand = exports.serializeAws_json1_1ListNotebookSessionsCommand = exports.serializeAws_json1_1ListNotebookMetadataCommand = exports.serializeAws_json1_1ListNamedQueriesCommand = exports.serializeAws_json1_1ListExecutorsCommand = exports.serializeAws_json1_1ListEngineVersionsCommand = exports.serializeAws_json1_1ListDataCatalogsCommand = exports.serializeAws_json1_1ListDatabasesCommand = exports.serializeAws_json1_1ListCalculationExecutionsCommand = exports.serializeAws_json1_1ListApplicationDPUSizesCommand = exports.serializeAws_json1_1ImportNotebookCommand = exports.serializeAws_json1_1GetWorkGroupCommand = exports.serializeAws_json1_1GetTableMetadataCommand = exports.serializeAws_json1_1GetSessionStatusCommand = exports.serializeAws_json1_1GetSessionCommand = exports.serializeAws_json1_1GetQueryRuntimeStatisticsCommand = exports.serializeAws_json1_1GetQueryResultsCommand = exports.serializeAws_json1_1GetQueryExecutionCommand = exports.serializeAws_json1_1GetPreparedStatementCommand = exports.serializeAws_json1_1GetNotebookMetadataCommand = exports.serializeAws_json1_1GetNamedQueryCommand = exports.serializeAws_json1_1GetDataCatalogCommand = exports.serializeAws_json1_1GetDatabaseCommand = exports.serializeAws_json1_1GetCalculationExecutionStatusCommand = exports.serializeAws_json1_1GetCalculationExecutionCodeCommand = exports.serializeAws_json1_1GetCalculationExecutionCommand = exports.serializeAws_json1_1ExportNotebookCommand = exports.serializeAws_json1_1DeleteWorkGroupCommand = exports.serializeAws_json1_1DeletePreparedStatementCommand = exports.serializeAws_json1_1DeleteNotebookCommand = exports.serializeAws_json1_1DeleteNamedQueryCommand = exports.serializeAws_json1_1DeleteDataCatalogCommand = exports.serializeAws_json1_1CreateWorkGroupCommand = exports.serializeAws_json1_1CreatePresignedNotebookUrlCommand = exports.serializeAws_json1_1CreatePreparedStatementCommand = exports.serializeAws_json1_1CreateNotebookCommand = exports.serializeAws_json1_1CreateNamedQueryCommand = exports.serializeAws_json1_1CreateDataCatalogCommand = exports.serializeAws_json1_1BatchGetQueryExecutionCommand = exports.serializeAws_json1_1BatchGetPreparedStatementCommand = exports.serializeAws_json1_1BatchGetNamedQueryCommand = void 0;
|
|
4
|
+
exports.deserializeAws_json1_1ListNotebookSessionsCommand = exports.deserializeAws_json1_1ListNotebookMetadataCommand = exports.deserializeAws_json1_1ListNamedQueriesCommand = exports.deserializeAws_json1_1ListExecutorsCommand = exports.deserializeAws_json1_1ListEngineVersionsCommand = exports.deserializeAws_json1_1ListDataCatalogsCommand = exports.deserializeAws_json1_1ListDatabasesCommand = exports.deserializeAws_json1_1ListCalculationExecutionsCommand = exports.deserializeAws_json1_1ListApplicationDPUSizesCommand = exports.deserializeAws_json1_1ImportNotebookCommand = exports.deserializeAws_json1_1GetWorkGroupCommand = exports.deserializeAws_json1_1GetTableMetadataCommand = exports.deserializeAws_json1_1GetSessionStatusCommand = exports.deserializeAws_json1_1GetSessionCommand = exports.deserializeAws_json1_1GetQueryRuntimeStatisticsCommand = exports.deserializeAws_json1_1GetQueryResultsCommand = exports.deserializeAws_json1_1GetQueryExecutionCommand = exports.deserializeAws_json1_1GetPreparedStatementCommand = exports.deserializeAws_json1_1GetNotebookMetadataCommand = exports.deserializeAws_json1_1GetNamedQueryCommand = exports.deserializeAws_json1_1GetDataCatalogCommand = exports.deserializeAws_json1_1GetDatabaseCommand = exports.deserializeAws_json1_1GetCalculationExecutionStatusCommand = exports.deserializeAws_json1_1GetCalculationExecutionCodeCommand = exports.deserializeAws_json1_1GetCalculationExecutionCommand = exports.deserializeAws_json1_1ExportNotebookCommand = exports.deserializeAws_json1_1DeleteWorkGroupCommand = exports.deserializeAws_json1_1DeletePreparedStatementCommand = exports.deserializeAws_json1_1DeleteNotebookCommand = exports.deserializeAws_json1_1DeleteNamedQueryCommand = exports.deserializeAws_json1_1DeleteDataCatalogCommand = exports.deserializeAws_json1_1CreateWorkGroupCommand = exports.deserializeAws_json1_1CreatePresignedNotebookUrlCommand = exports.deserializeAws_json1_1CreatePreparedStatementCommand = exports.deserializeAws_json1_1CreateNotebookCommand = exports.deserializeAws_json1_1CreateNamedQueryCommand = exports.deserializeAws_json1_1CreateDataCatalogCommand = exports.deserializeAws_json1_1BatchGetQueryExecutionCommand = exports.deserializeAws_json1_1BatchGetPreparedStatementCommand = exports.deserializeAws_json1_1BatchGetNamedQueryCommand = exports.serializeAws_json1_1UpdateWorkGroupCommand = exports.serializeAws_json1_1UpdatePreparedStatementCommand = exports.serializeAws_json1_1UpdateNotebookMetadataCommand = exports.serializeAws_json1_1UpdateNotebookCommand = exports.serializeAws_json1_1UpdateNamedQueryCommand = exports.serializeAws_json1_1UpdateDataCatalogCommand = exports.serializeAws_json1_1UntagResourceCommand = exports.serializeAws_json1_1TerminateSessionCommand = exports.serializeAws_json1_1TagResourceCommand = exports.serializeAws_json1_1StopQueryExecutionCommand = void 0;
|
|
5
|
+
exports.deserializeAws_json1_1UpdateWorkGroupCommand = exports.deserializeAws_json1_1UpdatePreparedStatementCommand = exports.deserializeAws_json1_1UpdateNotebookMetadataCommand = exports.deserializeAws_json1_1UpdateNotebookCommand = exports.deserializeAws_json1_1UpdateNamedQueryCommand = exports.deserializeAws_json1_1UpdateDataCatalogCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TerminateSessionCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1StopQueryExecutionCommand = exports.deserializeAws_json1_1StopCalculationExecutionCommand = exports.deserializeAws_json1_1StartSessionCommand = exports.deserializeAws_json1_1StartQueryExecutionCommand = exports.deserializeAws_json1_1StartCalculationExecutionCommand = exports.deserializeAws_json1_1ListWorkGroupsCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListTableMetadataCommand = exports.deserializeAws_json1_1ListSessionsCommand = exports.deserializeAws_json1_1ListQueryExecutionsCommand = exports.deserializeAws_json1_1ListPreparedStatementsCommand = void 0;
|
|
5
6
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
7
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
8
|
const uuid_1 = require("uuid");
|
|
@@ -57,6 +58,16 @@ const serializeAws_json1_1CreateNamedQueryCommand = async (input, context) => {
|
|
|
57
58
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
59
|
};
|
|
59
60
|
exports.serializeAws_json1_1CreateNamedQueryCommand = serializeAws_json1_1CreateNamedQueryCommand;
|
|
61
|
+
const serializeAws_json1_1CreateNotebookCommand = async (input, context) => {
|
|
62
|
+
const headers = {
|
|
63
|
+
"content-type": "application/x-amz-json-1.1",
|
|
64
|
+
"x-amz-target": "AmazonAthena.CreateNotebook",
|
|
65
|
+
};
|
|
66
|
+
let body;
|
|
67
|
+
body = JSON.stringify(serializeAws_json1_1CreateNotebookInput(input, context));
|
|
68
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
69
|
+
};
|
|
70
|
+
exports.serializeAws_json1_1CreateNotebookCommand = serializeAws_json1_1CreateNotebookCommand;
|
|
60
71
|
const serializeAws_json1_1CreatePreparedStatementCommand = async (input, context) => {
|
|
61
72
|
const headers = {
|
|
62
73
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -67,6 +78,16 @@ const serializeAws_json1_1CreatePreparedStatementCommand = async (input, context
|
|
|
67
78
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
68
79
|
};
|
|
69
80
|
exports.serializeAws_json1_1CreatePreparedStatementCommand = serializeAws_json1_1CreatePreparedStatementCommand;
|
|
81
|
+
const serializeAws_json1_1CreatePresignedNotebookUrlCommand = async (input, context) => {
|
|
82
|
+
const headers = {
|
|
83
|
+
"content-type": "application/x-amz-json-1.1",
|
|
84
|
+
"x-amz-target": "AmazonAthena.CreatePresignedNotebookUrl",
|
|
85
|
+
};
|
|
86
|
+
let body;
|
|
87
|
+
body = JSON.stringify(serializeAws_json1_1CreatePresignedNotebookUrlRequest(input, context));
|
|
88
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
89
|
+
};
|
|
90
|
+
exports.serializeAws_json1_1CreatePresignedNotebookUrlCommand = serializeAws_json1_1CreatePresignedNotebookUrlCommand;
|
|
70
91
|
const serializeAws_json1_1CreateWorkGroupCommand = async (input, context) => {
|
|
71
92
|
const headers = {
|
|
72
93
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -97,6 +118,16 @@ const serializeAws_json1_1DeleteNamedQueryCommand = async (input, context) => {
|
|
|
97
118
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
98
119
|
};
|
|
99
120
|
exports.serializeAws_json1_1DeleteNamedQueryCommand = serializeAws_json1_1DeleteNamedQueryCommand;
|
|
121
|
+
const serializeAws_json1_1DeleteNotebookCommand = async (input, context) => {
|
|
122
|
+
const headers = {
|
|
123
|
+
"content-type": "application/x-amz-json-1.1",
|
|
124
|
+
"x-amz-target": "AmazonAthena.DeleteNotebook",
|
|
125
|
+
};
|
|
126
|
+
let body;
|
|
127
|
+
body = JSON.stringify(serializeAws_json1_1DeleteNotebookInput(input, context));
|
|
128
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
129
|
+
};
|
|
130
|
+
exports.serializeAws_json1_1DeleteNotebookCommand = serializeAws_json1_1DeleteNotebookCommand;
|
|
100
131
|
const serializeAws_json1_1DeletePreparedStatementCommand = async (input, context) => {
|
|
101
132
|
const headers = {
|
|
102
133
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -117,6 +148,46 @@ const serializeAws_json1_1DeleteWorkGroupCommand = async (input, context) => {
|
|
|
117
148
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
118
149
|
};
|
|
119
150
|
exports.serializeAws_json1_1DeleteWorkGroupCommand = serializeAws_json1_1DeleteWorkGroupCommand;
|
|
151
|
+
const serializeAws_json1_1ExportNotebookCommand = async (input, context) => {
|
|
152
|
+
const headers = {
|
|
153
|
+
"content-type": "application/x-amz-json-1.1",
|
|
154
|
+
"x-amz-target": "AmazonAthena.ExportNotebook",
|
|
155
|
+
};
|
|
156
|
+
let body;
|
|
157
|
+
body = JSON.stringify(serializeAws_json1_1ExportNotebookInput(input, context));
|
|
158
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
159
|
+
};
|
|
160
|
+
exports.serializeAws_json1_1ExportNotebookCommand = serializeAws_json1_1ExportNotebookCommand;
|
|
161
|
+
const serializeAws_json1_1GetCalculationExecutionCommand = async (input, context) => {
|
|
162
|
+
const headers = {
|
|
163
|
+
"content-type": "application/x-amz-json-1.1",
|
|
164
|
+
"x-amz-target": "AmazonAthena.GetCalculationExecution",
|
|
165
|
+
};
|
|
166
|
+
let body;
|
|
167
|
+
body = JSON.stringify(serializeAws_json1_1GetCalculationExecutionRequest(input, context));
|
|
168
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
169
|
+
};
|
|
170
|
+
exports.serializeAws_json1_1GetCalculationExecutionCommand = serializeAws_json1_1GetCalculationExecutionCommand;
|
|
171
|
+
const serializeAws_json1_1GetCalculationExecutionCodeCommand = async (input, context) => {
|
|
172
|
+
const headers = {
|
|
173
|
+
"content-type": "application/x-amz-json-1.1",
|
|
174
|
+
"x-amz-target": "AmazonAthena.GetCalculationExecutionCode",
|
|
175
|
+
};
|
|
176
|
+
let body;
|
|
177
|
+
body = JSON.stringify(serializeAws_json1_1GetCalculationExecutionCodeRequest(input, context));
|
|
178
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
179
|
+
};
|
|
180
|
+
exports.serializeAws_json1_1GetCalculationExecutionCodeCommand = serializeAws_json1_1GetCalculationExecutionCodeCommand;
|
|
181
|
+
const serializeAws_json1_1GetCalculationExecutionStatusCommand = async (input, context) => {
|
|
182
|
+
const headers = {
|
|
183
|
+
"content-type": "application/x-amz-json-1.1",
|
|
184
|
+
"x-amz-target": "AmazonAthena.GetCalculationExecutionStatus",
|
|
185
|
+
};
|
|
186
|
+
let body;
|
|
187
|
+
body = JSON.stringify(serializeAws_json1_1GetCalculationExecutionStatusRequest(input, context));
|
|
188
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
189
|
+
};
|
|
190
|
+
exports.serializeAws_json1_1GetCalculationExecutionStatusCommand = serializeAws_json1_1GetCalculationExecutionStatusCommand;
|
|
120
191
|
const serializeAws_json1_1GetDatabaseCommand = async (input, context) => {
|
|
121
192
|
const headers = {
|
|
122
193
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -147,6 +218,16 @@ const serializeAws_json1_1GetNamedQueryCommand = async (input, context) => {
|
|
|
147
218
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
148
219
|
};
|
|
149
220
|
exports.serializeAws_json1_1GetNamedQueryCommand = serializeAws_json1_1GetNamedQueryCommand;
|
|
221
|
+
const serializeAws_json1_1GetNotebookMetadataCommand = async (input, context) => {
|
|
222
|
+
const headers = {
|
|
223
|
+
"content-type": "application/x-amz-json-1.1",
|
|
224
|
+
"x-amz-target": "AmazonAthena.GetNotebookMetadata",
|
|
225
|
+
};
|
|
226
|
+
let body;
|
|
227
|
+
body = JSON.stringify(serializeAws_json1_1GetNotebookMetadataInput(input, context));
|
|
228
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
229
|
+
};
|
|
230
|
+
exports.serializeAws_json1_1GetNotebookMetadataCommand = serializeAws_json1_1GetNotebookMetadataCommand;
|
|
150
231
|
const serializeAws_json1_1GetPreparedStatementCommand = async (input, context) => {
|
|
151
232
|
const headers = {
|
|
152
233
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -187,6 +268,26 @@ const serializeAws_json1_1GetQueryRuntimeStatisticsCommand = async (input, conte
|
|
|
187
268
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
188
269
|
};
|
|
189
270
|
exports.serializeAws_json1_1GetQueryRuntimeStatisticsCommand = serializeAws_json1_1GetQueryRuntimeStatisticsCommand;
|
|
271
|
+
const serializeAws_json1_1GetSessionCommand = async (input, context) => {
|
|
272
|
+
const headers = {
|
|
273
|
+
"content-type": "application/x-amz-json-1.1",
|
|
274
|
+
"x-amz-target": "AmazonAthena.GetSession",
|
|
275
|
+
};
|
|
276
|
+
let body;
|
|
277
|
+
body = JSON.stringify(serializeAws_json1_1GetSessionRequest(input, context));
|
|
278
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
279
|
+
};
|
|
280
|
+
exports.serializeAws_json1_1GetSessionCommand = serializeAws_json1_1GetSessionCommand;
|
|
281
|
+
const serializeAws_json1_1GetSessionStatusCommand = async (input, context) => {
|
|
282
|
+
const headers = {
|
|
283
|
+
"content-type": "application/x-amz-json-1.1",
|
|
284
|
+
"x-amz-target": "AmazonAthena.GetSessionStatus",
|
|
285
|
+
};
|
|
286
|
+
let body;
|
|
287
|
+
body = JSON.stringify(serializeAws_json1_1GetSessionStatusRequest(input, context));
|
|
288
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
289
|
+
};
|
|
290
|
+
exports.serializeAws_json1_1GetSessionStatusCommand = serializeAws_json1_1GetSessionStatusCommand;
|
|
190
291
|
const serializeAws_json1_1GetTableMetadataCommand = async (input, context) => {
|
|
191
292
|
const headers = {
|
|
192
293
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -207,6 +308,36 @@ const serializeAws_json1_1GetWorkGroupCommand = async (input, context) => {
|
|
|
207
308
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
208
309
|
};
|
|
209
310
|
exports.serializeAws_json1_1GetWorkGroupCommand = serializeAws_json1_1GetWorkGroupCommand;
|
|
311
|
+
const serializeAws_json1_1ImportNotebookCommand = async (input, context) => {
|
|
312
|
+
const headers = {
|
|
313
|
+
"content-type": "application/x-amz-json-1.1",
|
|
314
|
+
"x-amz-target": "AmazonAthena.ImportNotebook",
|
|
315
|
+
};
|
|
316
|
+
let body;
|
|
317
|
+
body = JSON.stringify(serializeAws_json1_1ImportNotebookInput(input, context));
|
|
318
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
319
|
+
};
|
|
320
|
+
exports.serializeAws_json1_1ImportNotebookCommand = serializeAws_json1_1ImportNotebookCommand;
|
|
321
|
+
const serializeAws_json1_1ListApplicationDPUSizesCommand = async (input, context) => {
|
|
322
|
+
const headers = {
|
|
323
|
+
"content-type": "application/x-amz-json-1.1",
|
|
324
|
+
"x-amz-target": "AmazonAthena.ListApplicationDPUSizes",
|
|
325
|
+
};
|
|
326
|
+
let body;
|
|
327
|
+
body = JSON.stringify(serializeAws_json1_1ListApplicationDPUSizesInput(input, context));
|
|
328
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
329
|
+
};
|
|
330
|
+
exports.serializeAws_json1_1ListApplicationDPUSizesCommand = serializeAws_json1_1ListApplicationDPUSizesCommand;
|
|
331
|
+
const serializeAws_json1_1ListCalculationExecutionsCommand = async (input, context) => {
|
|
332
|
+
const headers = {
|
|
333
|
+
"content-type": "application/x-amz-json-1.1",
|
|
334
|
+
"x-amz-target": "AmazonAthena.ListCalculationExecutions",
|
|
335
|
+
};
|
|
336
|
+
let body;
|
|
337
|
+
body = JSON.stringify(serializeAws_json1_1ListCalculationExecutionsRequest(input, context));
|
|
338
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
339
|
+
};
|
|
340
|
+
exports.serializeAws_json1_1ListCalculationExecutionsCommand = serializeAws_json1_1ListCalculationExecutionsCommand;
|
|
210
341
|
const serializeAws_json1_1ListDatabasesCommand = async (input, context) => {
|
|
211
342
|
const headers = {
|
|
212
343
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -237,6 +368,16 @@ const serializeAws_json1_1ListEngineVersionsCommand = async (input, context) =>
|
|
|
237
368
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
238
369
|
};
|
|
239
370
|
exports.serializeAws_json1_1ListEngineVersionsCommand = serializeAws_json1_1ListEngineVersionsCommand;
|
|
371
|
+
const serializeAws_json1_1ListExecutorsCommand = async (input, context) => {
|
|
372
|
+
const headers = {
|
|
373
|
+
"content-type": "application/x-amz-json-1.1",
|
|
374
|
+
"x-amz-target": "AmazonAthena.ListExecutors",
|
|
375
|
+
};
|
|
376
|
+
let body;
|
|
377
|
+
body = JSON.stringify(serializeAws_json1_1ListExecutorsRequest(input, context));
|
|
378
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
379
|
+
};
|
|
380
|
+
exports.serializeAws_json1_1ListExecutorsCommand = serializeAws_json1_1ListExecutorsCommand;
|
|
240
381
|
const serializeAws_json1_1ListNamedQueriesCommand = async (input, context) => {
|
|
241
382
|
const headers = {
|
|
242
383
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -247,6 +388,26 @@ const serializeAws_json1_1ListNamedQueriesCommand = async (input, context) => {
|
|
|
247
388
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
248
389
|
};
|
|
249
390
|
exports.serializeAws_json1_1ListNamedQueriesCommand = serializeAws_json1_1ListNamedQueriesCommand;
|
|
391
|
+
const serializeAws_json1_1ListNotebookMetadataCommand = async (input, context) => {
|
|
392
|
+
const headers = {
|
|
393
|
+
"content-type": "application/x-amz-json-1.1",
|
|
394
|
+
"x-amz-target": "AmazonAthena.ListNotebookMetadata",
|
|
395
|
+
};
|
|
396
|
+
let body;
|
|
397
|
+
body = JSON.stringify(serializeAws_json1_1ListNotebookMetadataInput(input, context));
|
|
398
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
399
|
+
};
|
|
400
|
+
exports.serializeAws_json1_1ListNotebookMetadataCommand = serializeAws_json1_1ListNotebookMetadataCommand;
|
|
401
|
+
const serializeAws_json1_1ListNotebookSessionsCommand = async (input, context) => {
|
|
402
|
+
const headers = {
|
|
403
|
+
"content-type": "application/x-amz-json-1.1",
|
|
404
|
+
"x-amz-target": "AmazonAthena.ListNotebookSessions",
|
|
405
|
+
};
|
|
406
|
+
let body;
|
|
407
|
+
body = JSON.stringify(serializeAws_json1_1ListNotebookSessionsRequest(input, context));
|
|
408
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
409
|
+
};
|
|
410
|
+
exports.serializeAws_json1_1ListNotebookSessionsCommand = serializeAws_json1_1ListNotebookSessionsCommand;
|
|
250
411
|
const serializeAws_json1_1ListPreparedStatementsCommand = async (input, context) => {
|
|
251
412
|
const headers = {
|
|
252
413
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -267,6 +428,16 @@ const serializeAws_json1_1ListQueryExecutionsCommand = async (input, context) =>
|
|
|
267
428
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
268
429
|
};
|
|
269
430
|
exports.serializeAws_json1_1ListQueryExecutionsCommand = serializeAws_json1_1ListQueryExecutionsCommand;
|
|
431
|
+
const serializeAws_json1_1ListSessionsCommand = async (input, context) => {
|
|
432
|
+
const headers = {
|
|
433
|
+
"content-type": "application/x-amz-json-1.1",
|
|
434
|
+
"x-amz-target": "AmazonAthena.ListSessions",
|
|
435
|
+
};
|
|
436
|
+
let body;
|
|
437
|
+
body = JSON.stringify(serializeAws_json1_1ListSessionsRequest(input, context));
|
|
438
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
439
|
+
};
|
|
440
|
+
exports.serializeAws_json1_1ListSessionsCommand = serializeAws_json1_1ListSessionsCommand;
|
|
270
441
|
const serializeAws_json1_1ListTableMetadataCommand = async (input, context) => {
|
|
271
442
|
const headers = {
|
|
272
443
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -297,6 +468,16 @@ const serializeAws_json1_1ListWorkGroupsCommand = async (input, context) => {
|
|
|
297
468
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
298
469
|
};
|
|
299
470
|
exports.serializeAws_json1_1ListWorkGroupsCommand = serializeAws_json1_1ListWorkGroupsCommand;
|
|
471
|
+
const serializeAws_json1_1StartCalculationExecutionCommand = async (input, context) => {
|
|
472
|
+
const headers = {
|
|
473
|
+
"content-type": "application/x-amz-json-1.1",
|
|
474
|
+
"x-amz-target": "AmazonAthena.StartCalculationExecution",
|
|
475
|
+
};
|
|
476
|
+
let body;
|
|
477
|
+
body = JSON.stringify(serializeAws_json1_1StartCalculationExecutionRequest(input, context));
|
|
478
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
479
|
+
};
|
|
480
|
+
exports.serializeAws_json1_1StartCalculationExecutionCommand = serializeAws_json1_1StartCalculationExecutionCommand;
|
|
300
481
|
const serializeAws_json1_1StartQueryExecutionCommand = async (input, context) => {
|
|
301
482
|
const headers = {
|
|
302
483
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -307,6 +488,26 @@ const serializeAws_json1_1StartQueryExecutionCommand = async (input, context) =>
|
|
|
307
488
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
308
489
|
};
|
|
309
490
|
exports.serializeAws_json1_1StartQueryExecutionCommand = serializeAws_json1_1StartQueryExecutionCommand;
|
|
491
|
+
const serializeAws_json1_1StartSessionCommand = async (input, context) => {
|
|
492
|
+
const headers = {
|
|
493
|
+
"content-type": "application/x-amz-json-1.1",
|
|
494
|
+
"x-amz-target": "AmazonAthena.StartSession",
|
|
495
|
+
};
|
|
496
|
+
let body;
|
|
497
|
+
body = JSON.stringify(serializeAws_json1_1StartSessionRequest(input, context));
|
|
498
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
499
|
+
};
|
|
500
|
+
exports.serializeAws_json1_1StartSessionCommand = serializeAws_json1_1StartSessionCommand;
|
|
501
|
+
const serializeAws_json1_1StopCalculationExecutionCommand = async (input, context) => {
|
|
502
|
+
const headers = {
|
|
503
|
+
"content-type": "application/x-amz-json-1.1",
|
|
504
|
+
"x-amz-target": "AmazonAthena.StopCalculationExecution",
|
|
505
|
+
};
|
|
506
|
+
let body;
|
|
507
|
+
body = JSON.stringify(serializeAws_json1_1StopCalculationExecutionRequest(input, context));
|
|
508
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
509
|
+
};
|
|
510
|
+
exports.serializeAws_json1_1StopCalculationExecutionCommand = serializeAws_json1_1StopCalculationExecutionCommand;
|
|
310
511
|
const serializeAws_json1_1StopQueryExecutionCommand = async (input, context) => {
|
|
311
512
|
const headers = {
|
|
312
513
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -327,6 +528,16 @@ const serializeAws_json1_1TagResourceCommand = async (input, context) => {
|
|
|
327
528
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
328
529
|
};
|
|
329
530
|
exports.serializeAws_json1_1TagResourceCommand = serializeAws_json1_1TagResourceCommand;
|
|
531
|
+
const serializeAws_json1_1TerminateSessionCommand = async (input, context) => {
|
|
532
|
+
const headers = {
|
|
533
|
+
"content-type": "application/x-amz-json-1.1",
|
|
534
|
+
"x-amz-target": "AmazonAthena.TerminateSession",
|
|
535
|
+
};
|
|
536
|
+
let body;
|
|
537
|
+
body = JSON.stringify(serializeAws_json1_1TerminateSessionRequest(input, context));
|
|
538
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
539
|
+
};
|
|
540
|
+
exports.serializeAws_json1_1TerminateSessionCommand = serializeAws_json1_1TerminateSessionCommand;
|
|
330
541
|
const serializeAws_json1_1UntagResourceCommand = async (input, context) => {
|
|
331
542
|
const headers = {
|
|
332
543
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -357,6 +568,26 @@ const serializeAws_json1_1UpdateNamedQueryCommand = async (input, context) => {
|
|
|
357
568
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
358
569
|
};
|
|
359
570
|
exports.serializeAws_json1_1UpdateNamedQueryCommand = serializeAws_json1_1UpdateNamedQueryCommand;
|
|
571
|
+
const serializeAws_json1_1UpdateNotebookCommand = async (input, context) => {
|
|
572
|
+
const headers = {
|
|
573
|
+
"content-type": "application/x-amz-json-1.1",
|
|
574
|
+
"x-amz-target": "AmazonAthena.UpdateNotebook",
|
|
575
|
+
};
|
|
576
|
+
let body;
|
|
577
|
+
body = JSON.stringify(serializeAws_json1_1UpdateNotebookInput(input, context));
|
|
578
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
579
|
+
};
|
|
580
|
+
exports.serializeAws_json1_1UpdateNotebookCommand = serializeAws_json1_1UpdateNotebookCommand;
|
|
581
|
+
const serializeAws_json1_1UpdateNotebookMetadataCommand = async (input, context) => {
|
|
582
|
+
const headers = {
|
|
583
|
+
"content-type": "application/x-amz-json-1.1",
|
|
584
|
+
"x-amz-target": "AmazonAthena.UpdateNotebookMetadata",
|
|
585
|
+
};
|
|
586
|
+
let body;
|
|
587
|
+
body = JSON.stringify(serializeAws_json1_1UpdateNotebookMetadataInput(input, context));
|
|
588
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
589
|
+
};
|
|
590
|
+
exports.serializeAws_json1_1UpdateNotebookMetadataCommand = serializeAws_json1_1UpdateNotebookMetadataCommand;
|
|
360
591
|
const serializeAws_json1_1UpdatePreparedStatementCommand = async (input, context) => {
|
|
361
592
|
const headers = {
|
|
362
593
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -562,21 +793,21 @@ const deserializeAws_json1_1CreateNamedQueryCommandError = async (output, contex
|
|
|
562
793
|
});
|
|
563
794
|
}
|
|
564
795
|
};
|
|
565
|
-
const
|
|
796
|
+
const deserializeAws_json1_1CreateNotebookCommand = async (output, context) => {
|
|
566
797
|
if (output.statusCode >= 300) {
|
|
567
|
-
return
|
|
798
|
+
return deserializeAws_json1_1CreateNotebookCommandError(output, context);
|
|
568
799
|
}
|
|
569
800
|
const data = await parseBody(output.body, context);
|
|
570
801
|
let contents = {};
|
|
571
|
-
contents =
|
|
802
|
+
contents = deserializeAws_json1_1CreateNotebookOutput(data, context);
|
|
572
803
|
const response = {
|
|
573
804
|
$metadata: deserializeMetadata(output),
|
|
574
805
|
...contents,
|
|
575
806
|
};
|
|
576
807
|
return Promise.resolve(response);
|
|
577
808
|
};
|
|
578
|
-
exports.
|
|
579
|
-
const
|
|
809
|
+
exports.deserializeAws_json1_1CreateNotebookCommand = deserializeAws_json1_1CreateNotebookCommand;
|
|
810
|
+
const deserializeAws_json1_1CreateNotebookCommandError = async (output, context) => {
|
|
580
811
|
const parsedOutput = {
|
|
581
812
|
...output,
|
|
582
813
|
body: await parseErrorBody(output.body, context),
|
|
@@ -589,6 +820,9 @@ const deserializeAws_json1_1CreatePreparedStatementCommandError = async (output,
|
|
|
589
820
|
case "InvalidRequestException":
|
|
590
821
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
591
822
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
823
|
+
case "TooManyRequestsException":
|
|
824
|
+
case "com.amazonaws.athena#TooManyRequestsException":
|
|
825
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
592
826
|
default:
|
|
593
827
|
const parsedBody = parsedOutput.body;
|
|
594
828
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -599,21 +833,21 @@ const deserializeAws_json1_1CreatePreparedStatementCommandError = async (output,
|
|
|
599
833
|
});
|
|
600
834
|
}
|
|
601
835
|
};
|
|
602
|
-
const
|
|
836
|
+
const deserializeAws_json1_1CreatePreparedStatementCommand = async (output, context) => {
|
|
603
837
|
if (output.statusCode >= 300) {
|
|
604
|
-
return
|
|
838
|
+
return deserializeAws_json1_1CreatePreparedStatementCommandError(output, context);
|
|
605
839
|
}
|
|
606
840
|
const data = await parseBody(output.body, context);
|
|
607
841
|
let contents = {};
|
|
608
|
-
contents =
|
|
842
|
+
contents = deserializeAws_json1_1CreatePreparedStatementOutput(data, context);
|
|
609
843
|
const response = {
|
|
610
844
|
$metadata: deserializeMetadata(output),
|
|
611
845
|
...contents,
|
|
612
846
|
};
|
|
613
847
|
return Promise.resolve(response);
|
|
614
848
|
};
|
|
615
|
-
exports.
|
|
616
|
-
const
|
|
849
|
+
exports.deserializeAws_json1_1CreatePreparedStatementCommand = deserializeAws_json1_1CreatePreparedStatementCommand;
|
|
850
|
+
const deserializeAws_json1_1CreatePreparedStatementCommandError = async (output, context) => {
|
|
617
851
|
const parsedOutput = {
|
|
618
852
|
...output,
|
|
619
853
|
body: await parseErrorBody(output.body, context),
|
|
@@ -636,21 +870,21 @@ const deserializeAws_json1_1CreateWorkGroupCommandError = async (output, context
|
|
|
636
870
|
});
|
|
637
871
|
}
|
|
638
872
|
};
|
|
639
|
-
const
|
|
873
|
+
const deserializeAws_json1_1CreatePresignedNotebookUrlCommand = async (output, context) => {
|
|
640
874
|
if (output.statusCode >= 300) {
|
|
641
|
-
return
|
|
875
|
+
return deserializeAws_json1_1CreatePresignedNotebookUrlCommandError(output, context);
|
|
642
876
|
}
|
|
643
877
|
const data = await parseBody(output.body, context);
|
|
644
878
|
let contents = {};
|
|
645
|
-
contents =
|
|
879
|
+
contents = deserializeAws_json1_1CreatePresignedNotebookUrlResponse(data, context);
|
|
646
880
|
const response = {
|
|
647
881
|
$metadata: deserializeMetadata(output),
|
|
648
882
|
...contents,
|
|
649
883
|
};
|
|
650
884
|
return Promise.resolve(response);
|
|
651
885
|
};
|
|
652
|
-
exports.
|
|
653
|
-
const
|
|
886
|
+
exports.deserializeAws_json1_1CreatePresignedNotebookUrlCommand = deserializeAws_json1_1CreatePresignedNotebookUrlCommand;
|
|
887
|
+
const deserializeAws_json1_1CreatePresignedNotebookUrlCommandError = async (output, context) => {
|
|
654
888
|
const parsedOutput = {
|
|
655
889
|
...output,
|
|
656
890
|
body: await parseErrorBody(output.body, context),
|
|
@@ -663,6 +897,9 @@ const deserializeAws_json1_1DeleteDataCatalogCommandError = async (output, conte
|
|
|
663
897
|
case "InvalidRequestException":
|
|
664
898
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
665
899
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
900
|
+
case "ResourceNotFoundException":
|
|
901
|
+
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
902
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
666
903
|
default:
|
|
667
904
|
const parsedBody = parsedOutput.body;
|
|
668
905
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -673,21 +910,21 @@ const deserializeAws_json1_1DeleteDataCatalogCommandError = async (output, conte
|
|
|
673
910
|
});
|
|
674
911
|
}
|
|
675
912
|
};
|
|
676
|
-
const
|
|
913
|
+
const deserializeAws_json1_1CreateWorkGroupCommand = async (output, context) => {
|
|
677
914
|
if (output.statusCode >= 300) {
|
|
678
|
-
return
|
|
915
|
+
return deserializeAws_json1_1CreateWorkGroupCommandError(output, context);
|
|
679
916
|
}
|
|
680
917
|
const data = await parseBody(output.body, context);
|
|
681
918
|
let contents = {};
|
|
682
|
-
contents =
|
|
919
|
+
contents = deserializeAws_json1_1CreateWorkGroupOutput(data, context);
|
|
683
920
|
const response = {
|
|
684
921
|
$metadata: deserializeMetadata(output),
|
|
685
922
|
...contents,
|
|
686
923
|
};
|
|
687
924
|
return Promise.resolve(response);
|
|
688
925
|
};
|
|
689
|
-
exports.
|
|
690
|
-
const
|
|
926
|
+
exports.deserializeAws_json1_1CreateWorkGroupCommand = deserializeAws_json1_1CreateWorkGroupCommand;
|
|
927
|
+
const deserializeAws_json1_1CreateWorkGroupCommandError = async (output, context) => {
|
|
691
928
|
const parsedOutput = {
|
|
692
929
|
...output,
|
|
693
930
|
body: await parseErrorBody(output.body, context),
|
|
@@ -710,21 +947,21 @@ const deserializeAws_json1_1DeleteNamedQueryCommandError = async (output, contex
|
|
|
710
947
|
});
|
|
711
948
|
}
|
|
712
949
|
};
|
|
713
|
-
const
|
|
950
|
+
const deserializeAws_json1_1DeleteDataCatalogCommand = async (output, context) => {
|
|
714
951
|
if (output.statusCode >= 300) {
|
|
715
|
-
return
|
|
952
|
+
return deserializeAws_json1_1DeleteDataCatalogCommandError(output, context);
|
|
716
953
|
}
|
|
717
954
|
const data = await parseBody(output.body, context);
|
|
718
955
|
let contents = {};
|
|
719
|
-
contents =
|
|
956
|
+
contents = deserializeAws_json1_1DeleteDataCatalogOutput(data, context);
|
|
720
957
|
const response = {
|
|
721
958
|
$metadata: deserializeMetadata(output),
|
|
722
959
|
...contents,
|
|
723
960
|
};
|
|
724
961
|
return Promise.resolve(response);
|
|
725
962
|
};
|
|
726
|
-
exports.
|
|
727
|
-
const
|
|
963
|
+
exports.deserializeAws_json1_1DeleteDataCatalogCommand = deserializeAws_json1_1DeleteDataCatalogCommand;
|
|
964
|
+
const deserializeAws_json1_1DeleteDataCatalogCommandError = async (output, context) => {
|
|
728
965
|
const parsedOutput = {
|
|
729
966
|
...output,
|
|
730
967
|
body: await parseErrorBody(output.body, context),
|
|
@@ -737,9 +974,6 @@ const deserializeAws_json1_1DeletePreparedStatementCommandError = async (output,
|
|
|
737
974
|
case "InvalidRequestException":
|
|
738
975
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
739
976
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
740
|
-
case "ResourceNotFoundException":
|
|
741
|
-
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
742
|
-
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
743
977
|
default:
|
|
744
978
|
const parsedBody = parsedOutput.body;
|
|
745
979
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -750,21 +984,21 @@ const deserializeAws_json1_1DeletePreparedStatementCommandError = async (output,
|
|
|
750
984
|
});
|
|
751
985
|
}
|
|
752
986
|
};
|
|
753
|
-
const
|
|
987
|
+
const deserializeAws_json1_1DeleteNamedQueryCommand = async (output, context) => {
|
|
754
988
|
if (output.statusCode >= 300) {
|
|
755
|
-
return
|
|
989
|
+
return deserializeAws_json1_1DeleteNamedQueryCommandError(output, context);
|
|
756
990
|
}
|
|
757
991
|
const data = await parseBody(output.body, context);
|
|
758
992
|
let contents = {};
|
|
759
|
-
contents =
|
|
993
|
+
contents = deserializeAws_json1_1DeleteNamedQueryOutput(data, context);
|
|
760
994
|
const response = {
|
|
761
995
|
$metadata: deserializeMetadata(output),
|
|
762
996
|
...contents,
|
|
763
997
|
};
|
|
764
998
|
return Promise.resolve(response);
|
|
765
999
|
};
|
|
766
|
-
exports.
|
|
767
|
-
const
|
|
1000
|
+
exports.deserializeAws_json1_1DeleteNamedQueryCommand = deserializeAws_json1_1DeleteNamedQueryCommand;
|
|
1001
|
+
const deserializeAws_json1_1DeleteNamedQueryCommandError = async (output, context) => {
|
|
768
1002
|
const parsedOutput = {
|
|
769
1003
|
...output,
|
|
770
1004
|
body: await parseErrorBody(output.body, context),
|
|
@@ -787,21 +1021,21 @@ const deserializeAws_json1_1DeleteWorkGroupCommandError = async (output, context
|
|
|
787
1021
|
});
|
|
788
1022
|
}
|
|
789
1023
|
};
|
|
790
|
-
const
|
|
1024
|
+
const deserializeAws_json1_1DeleteNotebookCommand = async (output, context) => {
|
|
791
1025
|
if (output.statusCode >= 300) {
|
|
792
|
-
return
|
|
1026
|
+
return deserializeAws_json1_1DeleteNotebookCommandError(output, context);
|
|
793
1027
|
}
|
|
794
1028
|
const data = await parseBody(output.body, context);
|
|
795
1029
|
let contents = {};
|
|
796
|
-
contents =
|
|
1030
|
+
contents = deserializeAws_json1_1DeleteNotebookOutput(data, context);
|
|
797
1031
|
const response = {
|
|
798
1032
|
$metadata: deserializeMetadata(output),
|
|
799
1033
|
...contents,
|
|
800
1034
|
};
|
|
801
1035
|
return Promise.resolve(response);
|
|
802
1036
|
};
|
|
803
|
-
exports.
|
|
804
|
-
const
|
|
1037
|
+
exports.deserializeAws_json1_1DeleteNotebookCommand = deserializeAws_json1_1DeleteNotebookCommand;
|
|
1038
|
+
const deserializeAws_json1_1DeleteNotebookCommandError = async (output, context) => {
|
|
805
1039
|
const parsedOutput = {
|
|
806
1040
|
...output,
|
|
807
1041
|
body: await parseErrorBody(output.body, context),
|
|
@@ -814,9 +1048,9 @@ const deserializeAws_json1_1GetDatabaseCommandError = async (output, context) =>
|
|
|
814
1048
|
case "InvalidRequestException":
|
|
815
1049
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
816
1050
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
817
|
-
case "
|
|
818
|
-
case "com.amazonaws.athena#
|
|
819
|
-
throw await
|
|
1051
|
+
case "TooManyRequestsException":
|
|
1052
|
+
case "com.amazonaws.athena#TooManyRequestsException":
|
|
1053
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
820
1054
|
default:
|
|
821
1055
|
const parsedBody = parsedOutput.body;
|
|
822
1056
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -827,21 +1061,21 @@ const deserializeAws_json1_1GetDatabaseCommandError = async (output, context) =>
|
|
|
827
1061
|
});
|
|
828
1062
|
}
|
|
829
1063
|
};
|
|
830
|
-
const
|
|
1064
|
+
const deserializeAws_json1_1DeletePreparedStatementCommand = async (output, context) => {
|
|
831
1065
|
if (output.statusCode >= 300) {
|
|
832
|
-
return
|
|
1066
|
+
return deserializeAws_json1_1DeletePreparedStatementCommandError(output, context);
|
|
833
1067
|
}
|
|
834
1068
|
const data = await parseBody(output.body, context);
|
|
835
1069
|
let contents = {};
|
|
836
|
-
contents =
|
|
1070
|
+
contents = deserializeAws_json1_1DeletePreparedStatementOutput(data, context);
|
|
837
1071
|
const response = {
|
|
838
1072
|
$metadata: deserializeMetadata(output),
|
|
839
1073
|
...contents,
|
|
840
1074
|
};
|
|
841
1075
|
return Promise.resolve(response);
|
|
842
1076
|
};
|
|
843
|
-
exports.
|
|
844
|
-
const
|
|
1077
|
+
exports.deserializeAws_json1_1DeletePreparedStatementCommand = deserializeAws_json1_1DeletePreparedStatementCommand;
|
|
1078
|
+
const deserializeAws_json1_1DeletePreparedStatementCommandError = async (output, context) => {
|
|
845
1079
|
const parsedOutput = {
|
|
846
1080
|
...output,
|
|
847
1081
|
body: await parseErrorBody(output.body, context),
|
|
@@ -854,6 +1088,9 @@ const deserializeAws_json1_1GetDataCatalogCommandError = async (output, context)
|
|
|
854
1088
|
case "InvalidRequestException":
|
|
855
1089
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
856
1090
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1091
|
+
case "ResourceNotFoundException":
|
|
1092
|
+
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
1093
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
857
1094
|
default:
|
|
858
1095
|
const parsedBody = parsedOutput.body;
|
|
859
1096
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -864,21 +1101,21 @@ const deserializeAws_json1_1GetDataCatalogCommandError = async (output, context)
|
|
|
864
1101
|
});
|
|
865
1102
|
}
|
|
866
1103
|
};
|
|
867
|
-
const
|
|
1104
|
+
const deserializeAws_json1_1DeleteWorkGroupCommand = async (output, context) => {
|
|
868
1105
|
if (output.statusCode >= 300) {
|
|
869
|
-
return
|
|
1106
|
+
return deserializeAws_json1_1DeleteWorkGroupCommandError(output, context);
|
|
870
1107
|
}
|
|
871
1108
|
const data = await parseBody(output.body, context);
|
|
872
1109
|
let contents = {};
|
|
873
|
-
contents =
|
|
1110
|
+
contents = deserializeAws_json1_1DeleteWorkGroupOutput(data, context);
|
|
874
1111
|
const response = {
|
|
875
1112
|
$metadata: deserializeMetadata(output),
|
|
876
1113
|
...contents,
|
|
877
1114
|
};
|
|
878
1115
|
return Promise.resolve(response);
|
|
879
1116
|
};
|
|
880
|
-
exports.
|
|
881
|
-
const
|
|
1117
|
+
exports.deserializeAws_json1_1DeleteWorkGroupCommand = deserializeAws_json1_1DeleteWorkGroupCommand;
|
|
1118
|
+
const deserializeAws_json1_1DeleteWorkGroupCommandError = async (output, context) => {
|
|
882
1119
|
const parsedOutput = {
|
|
883
1120
|
...output,
|
|
884
1121
|
body: await parseErrorBody(output.body, context),
|
|
@@ -901,21 +1138,21 @@ const deserializeAws_json1_1GetNamedQueryCommandError = async (output, context)
|
|
|
901
1138
|
});
|
|
902
1139
|
}
|
|
903
1140
|
};
|
|
904
|
-
const
|
|
1141
|
+
const deserializeAws_json1_1ExportNotebookCommand = async (output, context) => {
|
|
905
1142
|
if (output.statusCode >= 300) {
|
|
906
|
-
return
|
|
1143
|
+
return deserializeAws_json1_1ExportNotebookCommandError(output, context);
|
|
907
1144
|
}
|
|
908
1145
|
const data = await parseBody(output.body, context);
|
|
909
1146
|
let contents = {};
|
|
910
|
-
contents =
|
|
1147
|
+
contents = deserializeAws_json1_1ExportNotebookOutput(data, context);
|
|
911
1148
|
const response = {
|
|
912
1149
|
$metadata: deserializeMetadata(output),
|
|
913
1150
|
...contents,
|
|
914
1151
|
};
|
|
915
1152
|
return Promise.resolve(response);
|
|
916
1153
|
};
|
|
917
|
-
exports.
|
|
918
|
-
const
|
|
1154
|
+
exports.deserializeAws_json1_1ExportNotebookCommand = deserializeAws_json1_1ExportNotebookCommand;
|
|
1155
|
+
const deserializeAws_json1_1ExportNotebookCommandError = async (output, context) => {
|
|
919
1156
|
const parsedOutput = {
|
|
920
1157
|
...output,
|
|
921
1158
|
body: await parseErrorBody(output.body, context),
|
|
@@ -928,9 +1165,9 @@ const deserializeAws_json1_1GetPreparedStatementCommandError = async (output, co
|
|
|
928
1165
|
case "InvalidRequestException":
|
|
929
1166
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
930
1167
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
931
|
-
case "
|
|
932
|
-
case "com.amazonaws.athena#
|
|
933
|
-
throw await
|
|
1168
|
+
case "TooManyRequestsException":
|
|
1169
|
+
case "com.amazonaws.athena#TooManyRequestsException":
|
|
1170
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
934
1171
|
default:
|
|
935
1172
|
const parsedBody = parsedOutput.body;
|
|
936
1173
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -941,21 +1178,21 @@ const deserializeAws_json1_1GetPreparedStatementCommandError = async (output, co
|
|
|
941
1178
|
});
|
|
942
1179
|
}
|
|
943
1180
|
};
|
|
944
|
-
const
|
|
1181
|
+
const deserializeAws_json1_1GetCalculationExecutionCommand = async (output, context) => {
|
|
945
1182
|
if (output.statusCode >= 300) {
|
|
946
|
-
return
|
|
1183
|
+
return deserializeAws_json1_1GetCalculationExecutionCommandError(output, context);
|
|
947
1184
|
}
|
|
948
1185
|
const data = await parseBody(output.body, context);
|
|
949
1186
|
let contents = {};
|
|
950
|
-
contents =
|
|
1187
|
+
contents = deserializeAws_json1_1GetCalculationExecutionResponse(data, context);
|
|
951
1188
|
const response = {
|
|
952
1189
|
$metadata: deserializeMetadata(output),
|
|
953
1190
|
...contents,
|
|
954
1191
|
};
|
|
955
1192
|
return Promise.resolve(response);
|
|
956
1193
|
};
|
|
957
|
-
exports.
|
|
958
|
-
const
|
|
1194
|
+
exports.deserializeAws_json1_1GetCalculationExecutionCommand = deserializeAws_json1_1GetCalculationExecutionCommand;
|
|
1195
|
+
const deserializeAws_json1_1GetCalculationExecutionCommandError = async (output, context) => {
|
|
959
1196
|
const parsedOutput = {
|
|
960
1197
|
...output,
|
|
961
1198
|
body: await parseErrorBody(output.body, context),
|
|
@@ -968,6 +1205,9 @@ const deserializeAws_json1_1GetQueryExecutionCommandError = async (output, conte
|
|
|
968
1205
|
case "InvalidRequestException":
|
|
969
1206
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
970
1207
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1208
|
+
case "ResourceNotFoundException":
|
|
1209
|
+
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
1210
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
971
1211
|
default:
|
|
972
1212
|
const parsedBody = parsedOutput.body;
|
|
973
1213
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -978,21 +1218,21 @@ const deserializeAws_json1_1GetQueryExecutionCommandError = async (output, conte
|
|
|
978
1218
|
});
|
|
979
1219
|
}
|
|
980
1220
|
};
|
|
981
|
-
const
|
|
1221
|
+
const deserializeAws_json1_1GetCalculationExecutionCodeCommand = async (output, context) => {
|
|
982
1222
|
if (output.statusCode >= 300) {
|
|
983
|
-
return
|
|
1223
|
+
return deserializeAws_json1_1GetCalculationExecutionCodeCommandError(output, context);
|
|
984
1224
|
}
|
|
985
1225
|
const data = await parseBody(output.body, context);
|
|
986
1226
|
let contents = {};
|
|
987
|
-
contents =
|
|
1227
|
+
contents = deserializeAws_json1_1GetCalculationExecutionCodeResponse(data, context);
|
|
988
1228
|
const response = {
|
|
989
1229
|
$metadata: deserializeMetadata(output),
|
|
990
1230
|
...contents,
|
|
991
1231
|
};
|
|
992
1232
|
return Promise.resolve(response);
|
|
993
1233
|
};
|
|
994
|
-
exports.
|
|
995
|
-
const
|
|
1234
|
+
exports.deserializeAws_json1_1GetCalculationExecutionCodeCommand = deserializeAws_json1_1GetCalculationExecutionCodeCommand;
|
|
1235
|
+
const deserializeAws_json1_1GetCalculationExecutionCodeCommandError = async (output, context) => {
|
|
996
1236
|
const parsedOutput = {
|
|
997
1237
|
...output,
|
|
998
1238
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1002,7 +1242,860 @@ const deserializeAws_json1_1GetQueryResultsCommandError = async (output, context
|
|
|
1002
1242
|
case "InternalServerException":
|
|
1003
1243
|
case "com.amazonaws.athena#InternalServerException":
|
|
1004
1244
|
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1005
|
-
case "
|
|
1245
|
+
case "ResourceNotFoundException":
|
|
1246
|
+
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
1247
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1248
|
+
default:
|
|
1249
|
+
const parsedBody = parsedOutput.body;
|
|
1250
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1251
|
+
output,
|
|
1252
|
+
parsedBody,
|
|
1253
|
+
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
1254
|
+
errorCode,
|
|
1255
|
+
});
|
|
1256
|
+
}
|
|
1257
|
+
};
|
|
1258
|
+
const deserializeAws_json1_1GetCalculationExecutionStatusCommand = async (output, context) => {
|
|
1259
|
+
if (output.statusCode >= 300) {
|
|
1260
|
+
return deserializeAws_json1_1GetCalculationExecutionStatusCommandError(output, context);
|
|
1261
|
+
}
|
|
1262
|
+
const data = await parseBody(output.body, context);
|
|
1263
|
+
let contents = {};
|
|
1264
|
+
contents = deserializeAws_json1_1GetCalculationExecutionStatusResponse(data, context);
|
|
1265
|
+
const response = {
|
|
1266
|
+
$metadata: deserializeMetadata(output),
|
|
1267
|
+
...contents,
|
|
1268
|
+
};
|
|
1269
|
+
return Promise.resolve(response);
|
|
1270
|
+
};
|
|
1271
|
+
exports.deserializeAws_json1_1GetCalculationExecutionStatusCommand = deserializeAws_json1_1GetCalculationExecutionStatusCommand;
|
|
1272
|
+
const deserializeAws_json1_1GetCalculationExecutionStatusCommandError = async (output, context) => {
|
|
1273
|
+
const parsedOutput = {
|
|
1274
|
+
...output,
|
|
1275
|
+
body: await parseErrorBody(output.body, context),
|
|
1276
|
+
};
|
|
1277
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1278
|
+
switch (errorCode) {
|
|
1279
|
+
case "InternalServerException":
|
|
1280
|
+
case "com.amazonaws.athena#InternalServerException":
|
|
1281
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1282
|
+
case "InvalidRequestException":
|
|
1283
|
+
case "com.amazonaws.athena#InvalidRequestException":
|
|
1284
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1285
|
+
case "ResourceNotFoundException":
|
|
1286
|
+
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
1287
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1288
|
+
default:
|
|
1289
|
+
const parsedBody = parsedOutput.body;
|
|
1290
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1291
|
+
output,
|
|
1292
|
+
parsedBody,
|
|
1293
|
+
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
1294
|
+
errorCode,
|
|
1295
|
+
});
|
|
1296
|
+
}
|
|
1297
|
+
};
|
|
1298
|
+
const deserializeAws_json1_1GetDatabaseCommand = async (output, context) => {
|
|
1299
|
+
if (output.statusCode >= 300) {
|
|
1300
|
+
return deserializeAws_json1_1GetDatabaseCommandError(output, context);
|
|
1301
|
+
}
|
|
1302
|
+
const data = await parseBody(output.body, context);
|
|
1303
|
+
let contents = {};
|
|
1304
|
+
contents = deserializeAws_json1_1GetDatabaseOutput(data, context);
|
|
1305
|
+
const response = {
|
|
1306
|
+
$metadata: deserializeMetadata(output),
|
|
1307
|
+
...contents,
|
|
1308
|
+
};
|
|
1309
|
+
return Promise.resolve(response);
|
|
1310
|
+
};
|
|
1311
|
+
exports.deserializeAws_json1_1GetDatabaseCommand = deserializeAws_json1_1GetDatabaseCommand;
|
|
1312
|
+
const deserializeAws_json1_1GetDatabaseCommandError = async (output, context) => {
|
|
1313
|
+
const parsedOutput = {
|
|
1314
|
+
...output,
|
|
1315
|
+
body: await parseErrorBody(output.body, context),
|
|
1316
|
+
};
|
|
1317
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1318
|
+
switch (errorCode) {
|
|
1319
|
+
case "InternalServerException":
|
|
1320
|
+
case "com.amazonaws.athena#InternalServerException":
|
|
1321
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1322
|
+
case "InvalidRequestException":
|
|
1323
|
+
case "com.amazonaws.athena#InvalidRequestException":
|
|
1324
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1325
|
+
case "MetadataException":
|
|
1326
|
+
case "com.amazonaws.athena#MetadataException":
|
|
1327
|
+
throw await deserializeAws_json1_1MetadataExceptionResponse(parsedOutput, context);
|
|
1328
|
+
default:
|
|
1329
|
+
const parsedBody = parsedOutput.body;
|
|
1330
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1331
|
+
output,
|
|
1332
|
+
parsedBody,
|
|
1333
|
+
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
1334
|
+
errorCode,
|
|
1335
|
+
});
|
|
1336
|
+
}
|
|
1337
|
+
};
|
|
1338
|
+
const deserializeAws_json1_1GetDataCatalogCommand = async (output, context) => {
|
|
1339
|
+
if (output.statusCode >= 300) {
|
|
1340
|
+
return deserializeAws_json1_1GetDataCatalogCommandError(output, context);
|
|
1341
|
+
}
|
|
1342
|
+
const data = await parseBody(output.body, context);
|
|
1343
|
+
let contents = {};
|
|
1344
|
+
contents = deserializeAws_json1_1GetDataCatalogOutput(data, context);
|
|
1345
|
+
const response = {
|
|
1346
|
+
$metadata: deserializeMetadata(output),
|
|
1347
|
+
...contents,
|
|
1348
|
+
};
|
|
1349
|
+
return Promise.resolve(response);
|
|
1350
|
+
};
|
|
1351
|
+
exports.deserializeAws_json1_1GetDataCatalogCommand = deserializeAws_json1_1GetDataCatalogCommand;
|
|
1352
|
+
const deserializeAws_json1_1GetDataCatalogCommandError = async (output, context) => {
|
|
1353
|
+
const parsedOutput = {
|
|
1354
|
+
...output,
|
|
1355
|
+
body: await parseErrorBody(output.body, context),
|
|
1356
|
+
};
|
|
1357
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1358
|
+
switch (errorCode) {
|
|
1359
|
+
case "InternalServerException":
|
|
1360
|
+
case "com.amazonaws.athena#InternalServerException":
|
|
1361
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1362
|
+
case "InvalidRequestException":
|
|
1363
|
+
case "com.amazonaws.athena#InvalidRequestException":
|
|
1364
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1365
|
+
default:
|
|
1366
|
+
const parsedBody = parsedOutput.body;
|
|
1367
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1368
|
+
output,
|
|
1369
|
+
parsedBody,
|
|
1370
|
+
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
1371
|
+
errorCode,
|
|
1372
|
+
});
|
|
1373
|
+
}
|
|
1374
|
+
};
|
|
1375
|
+
const deserializeAws_json1_1GetNamedQueryCommand = async (output, context) => {
|
|
1376
|
+
if (output.statusCode >= 300) {
|
|
1377
|
+
return deserializeAws_json1_1GetNamedQueryCommandError(output, context);
|
|
1378
|
+
}
|
|
1379
|
+
const data = await parseBody(output.body, context);
|
|
1380
|
+
let contents = {};
|
|
1381
|
+
contents = deserializeAws_json1_1GetNamedQueryOutput(data, context);
|
|
1382
|
+
const response = {
|
|
1383
|
+
$metadata: deserializeMetadata(output),
|
|
1384
|
+
...contents,
|
|
1385
|
+
};
|
|
1386
|
+
return Promise.resolve(response);
|
|
1387
|
+
};
|
|
1388
|
+
exports.deserializeAws_json1_1GetNamedQueryCommand = deserializeAws_json1_1GetNamedQueryCommand;
|
|
1389
|
+
const deserializeAws_json1_1GetNamedQueryCommandError = async (output, context) => {
|
|
1390
|
+
const parsedOutput = {
|
|
1391
|
+
...output,
|
|
1392
|
+
body: await parseErrorBody(output.body, context),
|
|
1393
|
+
};
|
|
1394
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1395
|
+
switch (errorCode) {
|
|
1396
|
+
case "InternalServerException":
|
|
1397
|
+
case "com.amazonaws.athena#InternalServerException":
|
|
1398
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1399
|
+
case "InvalidRequestException":
|
|
1400
|
+
case "com.amazonaws.athena#InvalidRequestException":
|
|
1401
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1402
|
+
default:
|
|
1403
|
+
const parsedBody = parsedOutput.body;
|
|
1404
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1405
|
+
output,
|
|
1406
|
+
parsedBody,
|
|
1407
|
+
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
1408
|
+
errorCode,
|
|
1409
|
+
});
|
|
1410
|
+
}
|
|
1411
|
+
};
|
|
1412
|
+
const deserializeAws_json1_1GetNotebookMetadataCommand = async (output, context) => {
|
|
1413
|
+
if (output.statusCode >= 300) {
|
|
1414
|
+
return deserializeAws_json1_1GetNotebookMetadataCommandError(output, context);
|
|
1415
|
+
}
|
|
1416
|
+
const data = await parseBody(output.body, context);
|
|
1417
|
+
let contents = {};
|
|
1418
|
+
contents = deserializeAws_json1_1GetNotebookMetadataOutput(data, context);
|
|
1419
|
+
const response = {
|
|
1420
|
+
$metadata: deserializeMetadata(output),
|
|
1421
|
+
...contents,
|
|
1422
|
+
};
|
|
1423
|
+
return Promise.resolve(response);
|
|
1424
|
+
};
|
|
1425
|
+
exports.deserializeAws_json1_1GetNotebookMetadataCommand = deserializeAws_json1_1GetNotebookMetadataCommand;
|
|
1426
|
+
const deserializeAws_json1_1GetNotebookMetadataCommandError = async (output, context) => {
|
|
1427
|
+
const parsedOutput = {
|
|
1428
|
+
...output,
|
|
1429
|
+
body: await parseErrorBody(output.body, context),
|
|
1430
|
+
};
|
|
1431
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1432
|
+
switch (errorCode) {
|
|
1433
|
+
case "InternalServerException":
|
|
1434
|
+
case "com.amazonaws.athena#InternalServerException":
|
|
1435
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1436
|
+
case "InvalidRequestException":
|
|
1437
|
+
case "com.amazonaws.athena#InvalidRequestException":
|
|
1438
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1439
|
+
case "TooManyRequestsException":
|
|
1440
|
+
case "com.amazonaws.athena#TooManyRequestsException":
|
|
1441
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1442
|
+
default:
|
|
1443
|
+
const parsedBody = parsedOutput.body;
|
|
1444
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1445
|
+
output,
|
|
1446
|
+
parsedBody,
|
|
1447
|
+
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
1448
|
+
errorCode,
|
|
1449
|
+
});
|
|
1450
|
+
}
|
|
1451
|
+
};
|
|
1452
|
+
const deserializeAws_json1_1GetPreparedStatementCommand = async (output, context) => {
|
|
1453
|
+
if (output.statusCode >= 300) {
|
|
1454
|
+
return deserializeAws_json1_1GetPreparedStatementCommandError(output, context);
|
|
1455
|
+
}
|
|
1456
|
+
const data = await parseBody(output.body, context);
|
|
1457
|
+
let contents = {};
|
|
1458
|
+
contents = deserializeAws_json1_1GetPreparedStatementOutput(data, context);
|
|
1459
|
+
const response = {
|
|
1460
|
+
$metadata: deserializeMetadata(output),
|
|
1461
|
+
...contents,
|
|
1462
|
+
};
|
|
1463
|
+
return Promise.resolve(response);
|
|
1464
|
+
};
|
|
1465
|
+
exports.deserializeAws_json1_1GetPreparedStatementCommand = deserializeAws_json1_1GetPreparedStatementCommand;
|
|
1466
|
+
const deserializeAws_json1_1GetPreparedStatementCommandError = async (output, context) => {
|
|
1467
|
+
const parsedOutput = {
|
|
1468
|
+
...output,
|
|
1469
|
+
body: await parseErrorBody(output.body, context),
|
|
1470
|
+
};
|
|
1471
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1472
|
+
switch (errorCode) {
|
|
1473
|
+
case "InternalServerException":
|
|
1474
|
+
case "com.amazonaws.athena#InternalServerException":
|
|
1475
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1476
|
+
case "InvalidRequestException":
|
|
1477
|
+
case "com.amazonaws.athena#InvalidRequestException":
|
|
1478
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1479
|
+
case "ResourceNotFoundException":
|
|
1480
|
+
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
1481
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1482
|
+
default:
|
|
1483
|
+
const parsedBody = parsedOutput.body;
|
|
1484
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1485
|
+
output,
|
|
1486
|
+
parsedBody,
|
|
1487
|
+
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
1488
|
+
errorCode,
|
|
1489
|
+
});
|
|
1490
|
+
}
|
|
1491
|
+
};
|
|
1492
|
+
const deserializeAws_json1_1GetQueryExecutionCommand = async (output, context) => {
|
|
1493
|
+
if (output.statusCode >= 300) {
|
|
1494
|
+
return deserializeAws_json1_1GetQueryExecutionCommandError(output, context);
|
|
1495
|
+
}
|
|
1496
|
+
const data = await parseBody(output.body, context);
|
|
1497
|
+
let contents = {};
|
|
1498
|
+
contents = deserializeAws_json1_1GetQueryExecutionOutput(data, context);
|
|
1499
|
+
const response = {
|
|
1500
|
+
$metadata: deserializeMetadata(output),
|
|
1501
|
+
...contents,
|
|
1502
|
+
};
|
|
1503
|
+
return Promise.resolve(response);
|
|
1504
|
+
};
|
|
1505
|
+
exports.deserializeAws_json1_1GetQueryExecutionCommand = deserializeAws_json1_1GetQueryExecutionCommand;
|
|
1506
|
+
const deserializeAws_json1_1GetQueryExecutionCommandError = async (output, context) => {
|
|
1507
|
+
const parsedOutput = {
|
|
1508
|
+
...output,
|
|
1509
|
+
body: await parseErrorBody(output.body, context),
|
|
1510
|
+
};
|
|
1511
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1512
|
+
switch (errorCode) {
|
|
1513
|
+
case "InternalServerException":
|
|
1514
|
+
case "com.amazonaws.athena#InternalServerException":
|
|
1515
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1516
|
+
case "InvalidRequestException":
|
|
1517
|
+
case "com.amazonaws.athena#InvalidRequestException":
|
|
1518
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1519
|
+
default:
|
|
1520
|
+
const parsedBody = parsedOutput.body;
|
|
1521
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1522
|
+
output,
|
|
1523
|
+
parsedBody,
|
|
1524
|
+
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
1525
|
+
errorCode,
|
|
1526
|
+
});
|
|
1527
|
+
}
|
|
1528
|
+
};
|
|
1529
|
+
const deserializeAws_json1_1GetQueryResultsCommand = async (output, context) => {
|
|
1530
|
+
if (output.statusCode >= 300) {
|
|
1531
|
+
return deserializeAws_json1_1GetQueryResultsCommandError(output, context);
|
|
1532
|
+
}
|
|
1533
|
+
const data = await parseBody(output.body, context);
|
|
1534
|
+
let contents = {};
|
|
1535
|
+
contents = deserializeAws_json1_1GetQueryResultsOutput(data, context);
|
|
1536
|
+
const response = {
|
|
1537
|
+
$metadata: deserializeMetadata(output),
|
|
1538
|
+
...contents,
|
|
1539
|
+
};
|
|
1540
|
+
return Promise.resolve(response);
|
|
1541
|
+
};
|
|
1542
|
+
exports.deserializeAws_json1_1GetQueryResultsCommand = deserializeAws_json1_1GetQueryResultsCommand;
|
|
1543
|
+
const deserializeAws_json1_1GetQueryResultsCommandError = async (output, context) => {
|
|
1544
|
+
const parsedOutput = {
|
|
1545
|
+
...output,
|
|
1546
|
+
body: await parseErrorBody(output.body, context),
|
|
1547
|
+
};
|
|
1548
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1549
|
+
switch (errorCode) {
|
|
1550
|
+
case "InternalServerException":
|
|
1551
|
+
case "com.amazonaws.athena#InternalServerException":
|
|
1552
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1553
|
+
case "InvalidRequestException":
|
|
1554
|
+
case "com.amazonaws.athena#InvalidRequestException":
|
|
1555
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1556
|
+
case "TooManyRequestsException":
|
|
1557
|
+
case "com.amazonaws.athena#TooManyRequestsException":
|
|
1558
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1559
|
+
default:
|
|
1560
|
+
const parsedBody = parsedOutput.body;
|
|
1561
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1562
|
+
output,
|
|
1563
|
+
parsedBody,
|
|
1564
|
+
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
1565
|
+
errorCode,
|
|
1566
|
+
});
|
|
1567
|
+
}
|
|
1568
|
+
};
|
|
1569
|
+
const deserializeAws_json1_1GetQueryRuntimeStatisticsCommand = async (output, context) => {
|
|
1570
|
+
if (output.statusCode >= 300) {
|
|
1571
|
+
return deserializeAws_json1_1GetQueryRuntimeStatisticsCommandError(output, context);
|
|
1572
|
+
}
|
|
1573
|
+
const data = await parseBody(output.body, context);
|
|
1574
|
+
let contents = {};
|
|
1575
|
+
contents = deserializeAws_json1_1GetQueryRuntimeStatisticsOutput(data, context);
|
|
1576
|
+
const response = {
|
|
1577
|
+
$metadata: deserializeMetadata(output),
|
|
1578
|
+
...contents,
|
|
1579
|
+
};
|
|
1580
|
+
return Promise.resolve(response);
|
|
1581
|
+
};
|
|
1582
|
+
exports.deserializeAws_json1_1GetQueryRuntimeStatisticsCommand = deserializeAws_json1_1GetQueryRuntimeStatisticsCommand;
|
|
1583
|
+
const deserializeAws_json1_1GetQueryRuntimeStatisticsCommandError = async (output, context) => {
|
|
1584
|
+
const parsedOutput = {
|
|
1585
|
+
...output,
|
|
1586
|
+
body: await parseErrorBody(output.body, context),
|
|
1587
|
+
};
|
|
1588
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1589
|
+
switch (errorCode) {
|
|
1590
|
+
case "InternalServerException":
|
|
1591
|
+
case "com.amazonaws.athena#InternalServerException":
|
|
1592
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1593
|
+
case "InvalidRequestException":
|
|
1594
|
+
case "com.amazonaws.athena#InvalidRequestException":
|
|
1595
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1596
|
+
default:
|
|
1597
|
+
const parsedBody = parsedOutput.body;
|
|
1598
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1599
|
+
output,
|
|
1600
|
+
parsedBody,
|
|
1601
|
+
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
1602
|
+
errorCode,
|
|
1603
|
+
});
|
|
1604
|
+
}
|
|
1605
|
+
};
|
|
1606
|
+
const deserializeAws_json1_1GetSessionCommand = async (output, context) => {
|
|
1607
|
+
if (output.statusCode >= 300) {
|
|
1608
|
+
return deserializeAws_json1_1GetSessionCommandError(output, context);
|
|
1609
|
+
}
|
|
1610
|
+
const data = await parseBody(output.body, context);
|
|
1611
|
+
let contents = {};
|
|
1612
|
+
contents = deserializeAws_json1_1GetSessionResponse(data, context);
|
|
1613
|
+
const response = {
|
|
1614
|
+
$metadata: deserializeMetadata(output),
|
|
1615
|
+
...contents,
|
|
1616
|
+
};
|
|
1617
|
+
return Promise.resolve(response);
|
|
1618
|
+
};
|
|
1619
|
+
exports.deserializeAws_json1_1GetSessionCommand = deserializeAws_json1_1GetSessionCommand;
|
|
1620
|
+
const deserializeAws_json1_1GetSessionCommandError = async (output, context) => {
|
|
1621
|
+
const parsedOutput = {
|
|
1622
|
+
...output,
|
|
1623
|
+
body: await parseErrorBody(output.body, context),
|
|
1624
|
+
};
|
|
1625
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1626
|
+
switch (errorCode) {
|
|
1627
|
+
case "InternalServerException":
|
|
1628
|
+
case "com.amazonaws.athena#InternalServerException":
|
|
1629
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1630
|
+
case "InvalidRequestException":
|
|
1631
|
+
case "com.amazonaws.athena#InvalidRequestException":
|
|
1632
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1633
|
+
case "ResourceNotFoundException":
|
|
1634
|
+
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
1635
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1636
|
+
default:
|
|
1637
|
+
const parsedBody = parsedOutput.body;
|
|
1638
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1639
|
+
output,
|
|
1640
|
+
parsedBody,
|
|
1641
|
+
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
1642
|
+
errorCode,
|
|
1643
|
+
});
|
|
1644
|
+
}
|
|
1645
|
+
};
|
|
1646
|
+
const deserializeAws_json1_1GetSessionStatusCommand = async (output, context) => {
|
|
1647
|
+
if (output.statusCode >= 300) {
|
|
1648
|
+
return deserializeAws_json1_1GetSessionStatusCommandError(output, context);
|
|
1649
|
+
}
|
|
1650
|
+
const data = await parseBody(output.body, context);
|
|
1651
|
+
let contents = {};
|
|
1652
|
+
contents = deserializeAws_json1_1GetSessionStatusResponse(data, context);
|
|
1653
|
+
const response = {
|
|
1654
|
+
$metadata: deserializeMetadata(output),
|
|
1655
|
+
...contents,
|
|
1656
|
+
};
|
|
1657
|
+
return Promise.resolve(response);
|
|
1658
|
+
};
|
|
1659
|
+
exports.deserializeAws_json1_1GetSessionStatusCommand = deserializeAws_json1_1GetSessionStatusCommand;
|
|
1660
|
+
const deserializeAws_json1_1GetSessionStatusCommandError = async (output, context) => {
|
|
1661
|
+
const parsedOutput = {
|
|
1662
|
+
...output,
|
|
1663
|
+
body: await parseErrorBody(output.body, context),
|
|
1664
|
+
};
|
|
1665
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1666
|
+
switch (errorCode) {
|
|
1667
|
+
case "InternalServerException":
|
|
1668
|
+
case "com.amazonaws.athena#InternalServerException":
|
|
1669
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1670
|
+
case "InvalidRequestException":
|
|
1671
|
+
case "com.amazonaws.athena#InvalidRequestException":
|
|
1672
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1673
|
+
case "ResourceNotFoundException":
|
|
1674
|
+
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
1675
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1676
|
+
default:
|
|
1677
|
+
const parsedBody = parsedOutput.body;
|
|
1678
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1679
|
+
output,
|
|
1680
|
+
parsedBody,
|
|
1681
|
+
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
1682
|
+
errorCode,
|
|
1683
|
+
});
|
|
1684
|
+
}
|
|
1685
|
+
};
|
|
1686
|
+
const deserializeAws_json1_1GetTableMetadataCommand = async (output, context) => {
|
|
1687
|
+
if (output.statusCode >= 300) {
|
|
1688
|
+
return deserializeAws_json1_1GetTableMetadataCommandError(output, context);
|
|
1689
|
+
}
|
|
1690
|
+
const data = await parseBody(output.body, context);
|
|
1691
|
+
let contents = {};
|
|
1692
|
+
contents = deserializeAws_json1_1GetTableMetadataOutput(data, context);
|
|
1693
|
+
const response = {
|
|
1694
|
+
$metadata: deserializeMetadata(output),
|
|
1695
|
+
...contents,
|
|
1696
|
+
};
|
|
1697
|
+
return Promise.resolve(response);
|
|
1698
|
+
};
|
|
1699
|
+
exports.deserializeAws_json1_1GetTableMetadataCommand = deserializeAws_json1_1GetTableMetadataCommand;
|
|
1700
|
+
const deserializeAws_json1_1GetTableMetadataCommandError = async (output, context) => {
|
|
1701
|
+
const parsedOutput = {
|
|
1702
|
+
...output,
|
|
1703
|
+
body: await parseErrorBody(output.body, context),
|
|
1704
|
+
};
|
|
1705
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1706
|
+
switch (errorCode) {
|
|
1707
|
+
case "InternalServerException":
|
|
1708
|
+
case "com.amazonaws.athena#InternalServerException":
|
|
1709
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1710
|
+
case "InvalidRequestException":
|
|
1711
|
+
case "com.amazonaws.athena#InvalidRequestException":
|
|
1712
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1713
|
+
case "MetadataException":
|
|
1714
|
+
case "com.amazonaws.athena#MetadataException":
|
|
1715
|
+
throw await deserializeAws_json1_1MetadataExceptionResponse(parsedOutput, context);
|
|
1716
|
+
default:
|
|
1717
|
+
const parsedBody = parsedOutput.body;
|
|
1718
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1719
|
+
output,
|
|
1720
|
+
parsedBody,
|
|
1721
|
+
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
1722
|
+
errorCode,
|
|
1723
|
+
});
|
|
1724
|
+
}
|
|
1725
|
+
};
|
|
1726
|
+
const deserializeAws_json1_1GetWorkGroupCommand = async (output, context) => {
|
|
1727
|
+
if (output.statusCode >= 300) {
|
|
1728
|
+
return deserializeAws_json1_1GetWorkGroupCommandError(output, context);
|
|
1729
|
+
}
|
|
1730
|
+
const data = await parseBody(output.body, context);
|
|
1731
|
+
let contents = {};
|
|
1732
|
+
contents = deserializeAws_json1_1GetWorkGroupOutput(data, context);
|
|
1733
|
+
const response = {
|
|
1734
|
+
$metadata: deserializeMetadata(output),
|
|
1735
|
+
...contents,
|
|
1736
|
+
};
|
|
1737
|
+
return Promise.resolve(response);
|
|
1738
|
+
};
|
|
1739
|
+
exports.deserializeAws_json1_1GetWorkGroupCommand = deserializeAws_json1_1GetWorkGroupCommand;
|
|
1740
|
+
const deserializeAws_json1_1GetWorkGroupCommandError = async (output, context) => {
|
|
1741
|
+
const parsedOutput = {
|
|
1742
|
+
...output,
|
|
1743
|
+
body: await parseErrorBody(output.body, context),
|
|
1744
|
+
};
|
|
1745
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1746
|
+
switch (errorCode) {
|
|
1747
|
+
case "InternalServerException":
|
|
1748
|
+
case "com.amazonaws.athena#InternalServerException":
|
|
1749
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1750
|
+
case "InvalidRequestException":
|
|
1751
|
+
case "com.amazonaws.athena#InvalidRequestException":
|
|
1752
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1753
|
+
default:
|
|
1754
|
+
const parsedBody = parsedOutput.body;
|
|
1755
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1756
|
+
output,
|
|
1757
|
+
parsedBody,
|
|
1758
|
+
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
1759
|
+
errorCode,
|
|
1760
|
+
});
|
|
1761
|
+
}
|
|
1762
|
+
};
|
|
1763
|
+
const deserializeAws_json1_1ImportNotebookCommand = async (output, context) => {
|
|
1764
|
+
if (output.statusCode >= 300) {
|
|
1765
|
+
return deserializeAws_json1_1ImportNotebookCommandError(output, context);
|
|
1766
|
+
}
|
|
1767
|
+
const data = await parseBody(output.body, context);
|
|
1768
|
+
let contents = {};
|
|
1769
|
+
contents = deserializeAws_json1_1ImportNotebookOutput(data, context);
|
|
1770
|
+
const response = {
|
|
1771
|
+
$metadata: deserializeMetadata(output),
|
|
1772
|
+
...contents,
|
|
1773
|
+
};
|
|
1774
|
+
return Promise.resolve(response);
|
|
1775
|
+
};
|
|
1776
|
+
exports.deserializeAws_json1_1ImportNotebookCommand = deserializeAws_json1_1ImportNotebookCommand;
|
|
1777
|
+
const deserializeAws_json1_1ImportNotebookCommandError = async (output, context) => {
|
|
1778
|
+
const parsedOutput = {
|
|
1779
|
+
...output,
|
|
1780
|
+
body: await parseErrorBody(output.body, context),
|
|
1781
|
+
};
|
|
1782
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1783
|
+
switch (errorCode) {
|
|
1784
|
+
case "InternalServerException":
|
|
1785
|
+
case "com.amazonaws.athena#InternalServerException":
|
|
1786
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1787
|
+
case "InvalidRequestException":
|
|
1788
|
+
case "com.amazonaws.athena#InvalidRequestException":
|
|
1789
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1790
|
+
case "TooManyRequestsException":
|
|
1791
|
+
case "com.amazonaws.athena#TooManyRequestsException":
|
|
1792
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1793
|
+
default:
|
|
1794
|
+
const parsedBody = parsedOutput.body;
|
|
1795
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1796
|
+
output,
|
|
1797
|
+
parsedBody,
|
|
1798
|
+
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
1799
|
+
errorCode,
|
|
1800
|
+
});
|
|
1801
|
+
}
|
|
1802
|
+
};
|
|
1803
|
+
const deserializeAws_json1_1ListApplicationDPUSizesCommand = async (output, context) => {
|
|
1804
|
+
if (output.statusCode >= 300) {
|
|
1805
|
+
return deserializeAws_json1_1ListApplicationDPUSizesCommandError(output, context);
|
|
1806
|
+
}
|
|
1807
|
+
const data = await parseBody(output.body, context);
|
|
1808
|
+
let contents = {};
|
|
1809
|
+
contents = deserializeAws_json1_1ListApplicationDPUSizesOutput(data, context);
|
|
1810
|
+
const response = {
|
|
1811
|
+
$metadata: deserializeMetadata(output),
|
|
1812
|
+
...contents,
|
|
1813
|
+
};
|
|
1814
|
+
return Promise.resolve(response);
|
|
1815
|
+
};
|
|
1816
|
+
exports.deserializeAws_json1_1ListApplicationDPUSizesCommand = deserializeAws_json1_1ListApplicationDPUSizesCommand;
|
|
1817
|
+
const deserializeAws_json1_1ListApplicationDPUSizesCommandError = async (output, context) => {
|
|
1818
|
+
const parsedOutput = {
|
|
1819
|
+
...output,
|
|
1820
|
+
body: await parseErrorBody(output.body, context),
|
|
1821
|
+
};
|
|
1822
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1823
|
+
switch (errorCode) {
|
|
1824
|
+
case "InternalServerException":
|
|
1825
|
+
case "com.amazonaws.athena#InternalServerException":
|
|
1826
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1827
|
+
case "InvalidRequestException":
|
|
1828
|
+
case "com.amazonaws.athena#InvalidRequestException":
|
|
1829
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1830
|
+
case "TooManyRequestsException":
|
|
1831
|
+
case "com.amazonaws.athena#TooManyRequestsException":
|
|
1832
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1833
|
+
default:
|
|
1834
|
+
const parsedBody = parsedOutput.body;
|
|
1835
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1836
|
+
output,
|
|
1837
|
+
parsedBody,
|
|
1838
|
+
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
1839
|
+
errorCode,
|
|
1840
|
+
});
|
|
1841
|
+
}
|
|
1842
|
+
};
|
|
1843
|
+
const deserializeAws_json1_1ListCalculationExecutionsCommand = async (output, context) => {
|
|
1844
|
+
if (output.statusCode >= 300) {
|
|
1845
|
+
return deserializeAws_json1_1ListCalculationExecutionsCommandError(output, context);
|
|
1846
|
+
}
|
|
1847
|
+
const data = await parseBody(output.body, context);
|
|
1848
|
+
let contents = {};
|
|
1849
|
+
contents = deserializeAws_json1_1ListCalculationExecutionsResponse(data, context);
|
|
1850
|
+
const response = {
|
|
1851
|
+
$metadata: deserializeMetadata(output),
|
|
1852
|
+
...contents,
|
|
1853
|
+
};
|
|
1854
|
+
return Promise.resolve(response);
|
|
1855
|
+
};
|
|
1856
|
+
exports.deserializeAws_json1_1ListCalculationExecutionsCommand = deserializeAws_json1_1ListCalculationExecutionsCommand;
|
|
1857
|
+
const deserializeAws_json1_1ListCalculationExecutionsCommandError = async (output, context) => {
|
|
1858
|
+
const parsedOutput = {
|
|
1859
|
+
...output,
|
|
1860
|
+
body: await parseErrorBody(output.body, context),
|
|
1861
|
+
};
|
|
1862
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1863
|
+
switch (errorCode) {
|
|
1864
|
+
case "InternalServerException":
|
|
1865
|
+
case "com.amazonaws.athena#InternalServerException":
|
|
1866
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1867
|
+
case "InvalidRequestException":
|
|
1868
|
+
case "com.amazonaws.athena#InvalidRequestException":
|
|
1869
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1870
|
+
case "ResourceNotFoundException":
|
|
1871
|
+
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
1872
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1873
|
+
default:
|
|
1874
|
+
const parsedBody = parsedOutput.body;
|
|
1875
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1876
|
+
output,
|
|
1877
|
+
parsedBody,
|
|
1878
|
+
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
1879
|
+
errorCode,
|
|
1880
|
+
});
|
|
1881
|
+
}
|
|
1882
|
+
};
|
|
1883
|
+
const deserializeAws_json1_1ListDatabasesCommand = async (output, context) => {
|
|
1884
|
+
if (output.statusCode >= 300) {
|
|
1885
|
+
return deserializeAws_json1_1ListDatabasesCommandError(output, context);
|
|
1886
|
+
}
|
|
1887
|
+
const data = await parseBody(output.body, context);
|
|
1888
|
+
let contents = {};
|
|
1889
|
+
contents = deserializeAws_json1_1ListDatabasesOutput(data, context);
|
|
1890
|
+
const response = {
|
|
1891
|
+
$metadata: deserializeMetadata(output),
|
|
1892
|
+
...contents,
|
|
1893
|
+
};
|
|
1894
|
+
return Promise.resolve(response);
|
|
1895
|
+
};
|
|
1896
|
+
exports.deserializeAws_json1_1ListDatabasesCommand = deserializeAws_json1_1ListDatabasesCommand;
|
|
1897
|
+
const deserializeAws_json1_1ListDatabasesCommandError = async (output, context) => {
|
|
1898
|
+
const parsedOutput = {
|
|
1899
|
+
...output,
|
|
1900
|
+
body: await parseErrorBody(output.body, context),
|
|
1901
|
+
};
|
|
1902
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1903
|
+
switch (errorCode) {
|
|
1904
|
+
case "InternalServerException":
|
|
1905
|
+
case "com.amazonaws.athena#InternalServerException":
|
|
1906
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1907
|
+
case "InvalidRequestException":
|
|
1908
|
+
case "com.amazonaws.athena#InvalidRequestException":
|
|
1909
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1910
|
+
case "MetadataException":
|
|
1911
|
+
case "com.amazonaws.athena#MetadataException":
|
|
1912
|
+
throw await deserializeAws_json1_1MetadataExceptionResponse(parsedOutput, context);
|
|
1913
|
+
default:
|
|
1914
|
+
const parsedBody = parsedOutput.body;
|
|
1915
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1916
|
+
output,
|
|
1917
|
+
parsedBody,
|
|
1918
|
+
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
1919
|
+
errorCode,
|
|
1920
|
+
});
|
|
1921
|
+
}
|
|
1922
|
+
};
|
|
1923
|
+
const deserializeAws_json1_1ListDataCatalogsCommand = async (output, context) => {
|
|
1924
|
+
if (output.statusCode >= 300) {
|
|
1925
|
+
return deserializeAws_json1_1ListDataCatalogsCommandError(output, context);
|
|
1926
|
+
}
|
|
1927
|
+
const data = await parseBody(output.body, context);
|
|
1928
|
+
let contents = {};
|
|
1929
|
+
contents = deserializeAws_json1_1ListDataCatalogsOutput(data, context);
|
|
1930
|
+
const response = {
|
|
1931
|
+
$metadata: deserializeMetadata(output),
|
|
1932
|
+
...contents,
|
|
1933
|
+
};
|
|
1934
|
+
return Promise.resolve(response);
|
|
1935
|
+
};
|
|
1936
|
+
exports.deserializeAws_json1_1ListDataCatalogsCommand = deserializeAws_json1_1ListDataCatalogsCommand;
|
|
1937
|
+
const deserializeAws_json1_1ListDataCatalogsCommandError = async (output, context) => {
|
|
1938
|
+
const parsedOutput = {
|
|
1939
|
+
...output,
|
|
1940
|
+
body: await parseErrorBody(output.body, context),
|
|
1941
|
+
};
|
|
1942
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1943
|
+
switch (errorCode) {
|
|
1944
|
+
case "InternalServerException":
|
|
1945
|
+
case "com.amazonaws.athena#InternalServerException":
|
|
1946
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1947
|
+
case "InvalidRequestException":
|
|
1948
|
+
case "com.amazonaws.athena#InvalidRequestException":
|
|
1949
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1950
|
+
default:
|
|
1951
|
+
const parsedBody = parsedOutput.body;
|
|
1952
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1953
|
+
output,
|
|
1954
|
+
parsedBody,
|
|
1955
|
+
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
1956
|
+
errorCode,
|
|
1957
|
+
});
|
|
1958
|
+
}
|
|
1959
|
+
};
|
|
1960
|
+
const deserializeAws_json1_1ListEngineVersionsCommand = async (output, context) => {
|
|
1961
|
+
if (output.statusCode >= 300) {
|
|
1962
|
+
return deserializeAws_json1_1ListEngineVersionsCommandError(output, context);
|
|
1963
|
+
}
|
|
1964
|
+
const data = await parseBody(output.body, context);
|
|
1965
|
+
let contents = {};
|
|
1966
|
+
contents = deserializeAws_json1_1ListEngineVersionsOutput(data, context);
|
|
1967
|
+
const response = {
|
|
1968
|
+
$metadata: deserializeMetadata(output),
|
|
1969
|
+
...contents,
|
|
1970
|
+
};
|
|
1971
|
+
return Promise.resolve(response);
|
|
1972
|
+
};
|
|
1973
|
+
exports.deserializeAws_json1_1ListEngineVersionsCommand = deserializeAws_json1_1ListEngineVersionsCommand;
|
|
1974
|
+
const deserializeAws_json1_1ListEngineVersionsCommandError = async (output, context) => {
|
|
1975
|
+
const parsedOutput = {
|
|
1976
|
+
...output,
|
|
1977
|
+
body: await parseErrorBody(output.body, context),
|
|
1978
|
+
};
|
|
1979
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1980
|
+
switch (errorCode) {
|
|
1981
|
+
case "InternalServerException":
|
|
1982
|
+
case "com.amazonaws.athena#InternalServerException":
|
|
1983
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1984
|
+
case "InvalidRequestException":
|
|
1985
|
+
case "com.amazonaws.athena#InvalidRequestException":
|
|
1986
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1987
|
+
default:
|
|
1988
|
+
const parsedBody = parsedOutput.body;
|
|
1989
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1990
|
+
output,
|
|
1991
|
+
parsedBody,
|
|
1992
|
+
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
1993
|
+
errorCode,
|
|
1994
|
+
});
|
|
1995
|
+
}
|
|
1996
|
+
};
|
|
1997
|
+
const deserializeAws_json1_1ListExecutorsCommand = async (output, context) => {
|
|
1998
|
+
if (output.statusCode >= 300) {
|
|
1999
|
+
return deserializeAws_json1_1ListExecutorsCommandError(output, context);
|
|
2000
|
+
}
|
|
2001
|
+
const data = await parseBody(output.body, context);
|
|
2002
|
+
let contents = {};
|
|
2003
|
+
contents = deserializeAws_json1_1ListExecutorsResponse(data, context);
|
|
2004
|
+
const response = {
|
|
2005
|
+
$metadata: deserializeMetadata(output),
|
|
2006
|
+
...contents,
|
|
2007
|
+
};
|
|
2008
|
+
return Promise.resolve(response);
|
|
2009
|
+
};
|
|
2010
|
+
exports.deserializeAws_json1_1ListExecutorsCommand = deserializeAws_json1_1ListExecutorsCommand;
|
|
2011
|
+
const deserializeAws_json1_1ListExecutorsCommandError = async (output, context) => {
|
|
2012
|
+
const parsedOutput = {
|
|
2013
|
+
...output,
|
|
2014
|
+
body: await parseErrorBody(output.body, context),
|
|
2015
|
+
};
|
|
2016
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2017
|
+
switch (errorCode) {
|
|
2018
|
+
case "InternalServerException":
|
|
2019
|
+
case "com.amazonaws.athena#InternalServerException":
|
|
2020
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
2021
|
+
case "InvalidRequestException":
|
|
2022
|
+
case "com.amazonaws.athena#InvalidRequestException":
|
|
2023
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
2024
|
+
case "ResourceNotFoundException":
|
|
2025
|
+
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
2026
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2027
|
+
default:
|
|
2028
|
+
const parsedBody = parsedOutput.body;
|
|
2029
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2030
|
+
output,
|
|
2031
|
+
parsedBody,
|
|
2032
|
+
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
2033
|
+
errorCode,
|
|
2034
|
+
});
|
|
2035
|
+
}
|
|
2036
|
+
};
|
|
2037
|
+
const deserializeAws_json1_1ListNamedQueriesCommand = async (output, context) => {
|
|
2038
|
+
if (output.statusCode >= 300) {
|
|
2039
|
+
return deserializeAws_json1_1ListNamedQueriesCommandError(output, context);
|
|
2040
|
+
}
|
|
2041
|
+
const data = await parseBody(output.body, context);
|
|
2042
|
+
let contents = {};
|
|
2043
|
+
contents = deserializeAws_json1_1ListNamedQueriesOutput(data, context);
|
|
2044
|
+
const response = {
|
|
2045
|
+
$metadata: deserializeMetadata(output),
|
|
2046
|
+
...contents,
|
|
2047
|
+
};
|
|
2048
|
+
return Promise.resolve(response);
|
|
2049
|
+
};
|
|
2050
|
+
exports.deserializeAws_json1_1ListNamedQueriesCommand = deserializeAws_json1_1ListNamedQueriesCommand;
|
|
2051
|
+
const deserializeAws_json1_1ListNamedQueriesCommandError = async (output, context) => {
|
|
2052
|
+
const parsedOutput = {
|
|
2053
|
+
...output,
|
|
2054
|
+
body: await parseErrorBody(output.body, context),
|
|
2055
|
+
};
|
|
2056
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2057
|
+
switch (errorCode) {
|
|
2058
|
+
case "InternalServerException":
|
|
2059
|
+
case "com.amazonaws.athena#InternalServerException":
|
|
2060
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
2061
|
+
case "InvalidRequestException":
|
|
2062
|
+
case "com.amazonaws.athena#InvalidRequestException":
|
|
2063
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
2064
|
+
default:
|
|
2065
|
+
const parsedBody = parsedOutput.body;
|
|
2066
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2067
|
+
output,
|
|
2068
|
+
parsedBody,
|
|
2069
|
+
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
2070
|
+
errorCode,
|
|
2071
|
+
});
|
|
2072
|
+
}
|
|
2073
|
+
};
|
|
2074
|
+
const deserializeAws_json1_1ListNotebookMetadataCommand = async (output, context) => {
|
|
2075
|
+
if (output.statusCode >= 300) {
|
|
2076
|
+
return deserializeAws_json1_1ListNotebookMetadataCommandError(output, context);
|
|
2077
|
+
}
|
|
2078
|
+
const data = await parseBody(output.body, context);
|
|
2079
|
+
let contents = {};
|
|
2080
|
+
contents = deserializeAws_json1_1ListNotebookMetadataOutput(data, context);
|
|
2081
|
+
const response = {
|
|
2082
|
+
$metadata: deserializeMetadata(output),
|
|
2083
|
+
...contents,
|
|
2084
|
+
};
|
|
2085
|
+
return Promise.resolve(response);
|
|
2086
|
+
};
|
|
2087
|
+
exports.deserializeAws_json1_1ListNotebookMetadataCommand = deserializeAws_json1_1ListNotebookMetadataCommand;
|
|
2088
|
+
const deserializeAws_json1_1ListNotebookMetadataCommandError = async (output, context) => {
|
|
2089
|
+
const parsedOutput = {
|
|
2090
|
+
...output,
|
|
2091
|
+
body: await parseErrorBody(output.body, context),
|
|
2092
|
+
};
|
|
2093
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2094
|
+
switch (errorCode) {
|
|
2095
|
+
case "InternalServerException":
|
|
2096
|
+
case "com.amazonaws.athena#InternalServerException":
|
|
2097
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
2098
|
+
case "InvalidRequestException":
|
|
1006
2099
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
1007
2100
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1008
2101
|
case "TooManyRequestsException":
|
|
@@ -1018,21 +2111,21 @@ const deserializeAws_json1_1GetQueryResultsCommandError = async (output, context
|
|
|
1018
2111
|
});
|
|
1019
2112
|
}
|
|
1020
2113
|
};
|
|
1021
|
-
const
|
|
2114
|
+
const deserializeAws_json1_1ListNotebookSessionsCommand = async (output, context) => {
|
|
1022
2115
|
if (output.statusCode >= 300) {
|
|
1023
|
-
return
|
|
2116
|
+
return deserializeAws_json1_1ListNotebookSessionsCommandError(output, context);
|
|
1024
2117
|
}
|
|
1025
2118
|
const data = await parseBody(output.body, context);
|
|
1026
2119
|
let contents = {};
|
|
1027
|
-
contents =
|
|
2120
|
+
contents = deserializeAws_json1_1ListNotebookSessionsResponse(data, context);
|
|
1028
2121
|
const response = {
|
|
1029
2122
|
$metadata: deserializeMetadata(output),
|
|
1030
2123
|
...contents,
|
|
1031
2124
|
};
|
|
1032
2125
|
return Promise.resolve(response);
|
|
1033
2126
|
};
|
|
1034
|
-
exports.
|
|
1035
|
-
const
|
|
2127
|
+
exports.deserializeAws_json1_1ListNotebookSessionsCommand = deserializeAws_json1_1ListNotebookSessionsCommand;
|
|
2128
|
+
const deserializeAws_json1_1ListNotebookSessionsCommandError = async (output, context) => {
|
|
1036
2129
|
const parsedOutput = {
|
|
1037
2130
|
...output,
|
|
1038
2131
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1045,6 +2138,9 @@ const deserializeAws_json1_1GetQueryRuntimeStatisticsCommandError = async (outpu
|
|
|
1045
2138
|
case "InvalidRequestException":
|
|
1046
2139
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
1047
2140
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
2141
|
+
case "ResourceNotFoundException":
|
|
2142
|
+
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
2143
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1048
2144
|
default:
|
|
1049
2145
|
const parsedBody = parsedOutput.body;
|
|
1050
2146
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1055,21 +2151,21 @@ const deserializeAws_json1_1GetQueryRuntimeStatisticsCommandError = async (outpu
|
|
|
1055
2151
|
});
|
|
1056
2152
|
}
|
|
1057
2153
|
};
|
|
1058
|
-
const
|
|
2154
|
+
const deserializeAws_json1_1ListPreparedStatementsCommand = async (output, context) => {
|
|
1059
2155
|
if (output.statusCode >= 300) {
|
|
1060
|
-
return
|
|
2156
|
+
return deserializeAws_json1_1ListPreparedStatementsCommandError(output, context);
|
|
1061
2157
|
}
|
|
1062
2158
|
const data = await parseBody(output.body, context);
|
|
1063
2159
|
let contents = {};
|
|
1064
|
-
contents =
|
|
2160
|
+
contents = deserializeAws_json1_1ListPreparedStatementsOutput(data, context);
|
|
1065
2161
|
const response = {
|
|
1066
2162
|
$metadata: deserializeMetadata(output),
|
|
1067
2163
|
...contents,
|
|
1068
2164
|
};
|
|
1069
2165
|
return Promise.resolve(response);
|
|
1070
2166
|
};
|
|
1071
|
-
exports.
|
|
1072
|
-
const
|
|
2167
|
+
exports.deserializeAws_json1_1ListPreparedStatementsCommand = deserializeAws_json1_1ListPreparedStatementsCommand;
|
|
2168
|
+
const deserializeAws_json1_1ListPreparedStatementsCommandError = async (output, context) => {
|
|
1073
2169
|
const parsedOutput = {
|
|
1074
2170
|
...output,
|
|
1075
2171
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1082,9 +2178,6 @@ const deserializeAws_json1_1GetTableMetadataCommandError = async (output, contex
|
|
|
1082
2178
|
case "InvalidRequestException":
|
|
1083
2179
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
1084
2180
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1085
|
-
case "MetadataException":
|
|
1086
|
-
case "com.amazonaws.athena#MetadataException":
|
|
1087
|
-
throw await deserializeAws_json1_1MetadataExceptionResponse(parsedOutput, context);
|
|
1088
2181
|
default:
|
|
1089
2182
|
const parsedBody = parsedOutput.body;
|
|
1090
2183
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1095,21 +2188,21 @@ const deserializeAws_json1_1GetTableMetadataCommandError = async (output, contex
|
|
|
1095
2188
|
});
|
|
1096
2189
|
}
|
|
1097
2190
|
};
|
|
1098
|
-
const
|
|
2191
|
+
const deserializeAws_json1_1ListQueryExecutionsCommand = async (output, context) => {
|
|
1099
2192
|
if (output.statusCode >= 300) {
|
|
1100
|
-
return
|
|
2193
|
+
return deserializeAws_json1_1ListQueryExecutionsCommandError(output, context);
|
|
1101
2194
|
}
|
|
1102
2195
|
const data = await parseBody(output.body, context);
|
|
1103
2196
|
let contents = {};
|
|
1104
|
-
contents =
|
|
2197
|
+
contents = deserializeAws_json1_1ListQueryExecutionsOutput(data, context);
|
|
1105
2198
|
const response = {
|
|
1106
2199
|
$metadata: deserializeMetadata(output),
|
|
1107
2200
|
...contents,
|
|
1108
2201
|
};
|
|
1109
2202
|
return Promise.resolve(response);
|
|
1110
2203
|
};
|
|
1111
|
-
exports.
|
|
1112
|
-
const
|
|
2204
|
+
exports.deserializeAws_json1_1ListQueryExecutionsCommand = deserializeAws_json1_1ListQueryExecutionsCommand;
|
|
2205
|
+
const deserializeAws_json1_1ListQueryExecutionsCommandError = async (output, context) => {
|
|
1113
2206
|
const parsedOutput = {
|
|
1114
2207
|
...output,
|
|
1115
2208
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1132,21 +2225,61 @@ const deserializeAws_json1_1GetWorkGroupCommandError = async (output, context) =
|
|
|
1132
2225
|
});
|
|
1133
2226
|
}
|
|
1134
2227
|
};
|
|
1135
|
-
const
|
|
2228
|
+
const deserializeAws_json1_1ListSessionsCommand = async (output, context) => {
|
|
1136
2229
|
if (output.statusCode >= 300) {
|
|
1137
|
-
return
|
|
2230
|
+
return deserializeAws_json1_1ListSessionsCommandError(output, context);
|
|
1138
2231
|
}
|
|
1139
2232
|
const data = await parseBody(output.body, context);
|
|
1140
2233
|
let contents = {};
|
|
1141
|
-
contents =
|
|
2234
|
+
contents = deserializeAws_json1_1ListSessionsResponse(data, context);
|
|
1142
2235
|
const response = {
|
|
1143
2236
|
$metadata: deserializeMetadata(output),
|
|
1144
2237
|
...contents,
|
|
1145
2238
|
};
|
|
1146
2239
|
return Promise.resolve(response);
|
|
1147
2240
|
};
|
|
1148
|
-
exports.
|
|
1149
|
-
const
|
|
2241
|
+
exports.deserializeAws_json1_1ListSessionsCommand = deserializeAws_json1_1ListSessionsCommand;
|
|
2242
|
+
const deserializeAws_json1_1ListSessionsCommandError = async (output, context) => {
|
|
2243
|
+
const parsedOutput = {
|
|
2244
|
+
...output,
|
|
2245
|
+
body: await parseErrorBody(output.body, context),
|
|
2246
|
+
};
|
|
2247
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2248
|
+
switch (errorCode) {
|
|
2249
|
+
case "InternalServerException":
|
|
2250
|
+
case "com.amazonaws.athena#InternalServerException":
|
|
2251
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
2252
|
+
case "InvalidRequestException":
|
|
2253
|
+
case "com.amazonaws.athena#InvalidRequestException":
|
|
2254
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
2255
|
+
case "ResourceNotFoundException":
|
|
2256
|
+
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
2257
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2258
|
+
default:
|
|
2259
|
+
const parsedBody = parsedOutput.body;
|
|
2260
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2261
|
+
output,
|
|
2262
|
+
parsedBody,
|
|
2263
|
+
exceptionCtor: AthenaServiceException_1.AthenaServiceException,
|
|
2264
|
+
errorCode,
|
|
2265
|
+
});
|
|
2266
|
+
}
|
|
2267
|
+
};
|
|
2268
|
+
const deserializeAws_json1_1ListTableMetadataCommand = async (output, context) => {
|
|
2269
|
+
if (output.statusCode >= 300) {
|
|
2270
|
+
return deserializeAws_json1_1ListTableMetadataCommandError(output, context);
|
|
2271
|
+
}
|
|
2272
|
+
const data = await parseBody(output.body, context);
|
|
2273
|
+
let contents = {};
|
|
2274
|
+
contents = deserializeAws_json1_1ListTableMetadataOutput(data, context);
|
|
2275
|
+
const response = {
|
|
2276
|
+
$metadata: deserializeMetadata(output),
|
|
2277
|
+
...contents,
|
|
2278
|
+
};
|
|
2279
|
+
return Promise.resolve(response);
|
|
2280
|
+
};
|
|
2281
|
+
exports.deserializeAws_json1_1ListTableMetadataCommand = deserializeAws_json1_1ListTableMetadataCommand;
|
|
2282
|
+
const deserializeAws_json1_1ListTableMetadataCommandError = async (output, context) => {
|
|
1150
2283
|
const parsedOutput = {
|
|
1151
2284
|
...output,
|
|
1152
2285
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1172,21 +2305,21 @@ const deserializeAws_json1_1ListDatabasesCommandError = async (output, context)
|
|
|
1172
2305
|
});
|
|
1173
2306
|
}
|
|
1174
2307
|
};
|
|
1175
|
-
const
|
|
2308
|
+
const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => {
|
|
1176
2309
|
if (output.statusCode >= 300) {
|
|
1177
|
-
return
|
|
2310
|
+
return deserializeAws_json1_1ListTagsForResourceCommandError(output, context);
|
|
1178
2311
|
}
|
|
1179
2312
|
const data = await parseBody(output.body, context);
|
|
1180
2313
|
let contents = {};
|
|
1181
|
-
contents =
|
|
2314
|
+
contents = deserializeAws_json1_1ListTagsForResourceOutput(data, context);
|
|
1182
2315
|
const response = {
|
|
1183
2316
|
$metadata: deserializeMetadata(output),
|
|
1184
2317
|
...contents,
|
|
1185
2318
|
};
|
|
1186
2319
|
return Promise.resolve(response);
|
|
1187
2320
|
};
|
|
1188
|
-
exports.
|
|
1189
|
-
const
|
|
2321
|
+
exports.deserializeAws_json1_1ListTagsForResourceCommand = deserializeAws_json1_1ListTagsForResourceCommand;
|
|
2322
|
+
const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, context) => {
|
|
1190
2323
|
const parsedOutput = {
|
|
1191
2324
|
...output,
|
|
1192
2325
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1199,6 +2332,9 @@ const deserializeAws_json1_1ListDataCatalogsCommandError = async (output, contex
|
|
|
1199
2332
|
case "InvalidRequestException":
|
|
1200
2333
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
1201
2334
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
2335
|
+
case "ResourceNotFoundException":
|
|
2336
|
+
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
2337
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1202
2338
|
default:
|
|
1203
2339
|
const parsedBody = parsedOutput.body;
|
|
1204
2340
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1209,21 +2345,21 @@ const deserializeAws_json1_1ListDataCatalogsCommandError = async (output, contex
|
|
|
1209
2345
|
});
|
|
1210
2346
|
}
|
|
1211
2347
|
};
|
|
1212
|
-
const
|
|
2348
|
+
const deserializeAws_json1_1ListWorkGroupsCommand = async (output, context) => {
|
|
1213
2349
|
if (output.statusCode >= 300) {
|
|
1214
|
-
return
|
|
2350
|
+
return deserializeAws_json1_1ListWorkGroupsCommandError(output, context);
|
|
1215
2351
|
}
|
|
1216
2352
|
const data = await parseBody(output.body, context);
|
|
1217
2353
|
let contents = {};
|
|
1218
|
-
contents =
|
|
2354
|
+
contents = deserializeAws_json1_1ListWorkGroupsOutput(data, context);
|
|
1219
2355
|
const response = {
|
|
1220
2356
|
$metadata: deserializeMetadata(output),
|
|
1221
2357
|
...contents,
|
|
1222
2358
|
};
|
|
1223
2359
|
return Promise.resolve(response);
|
|
1224
2360
|
};
|
|
1225
|
-
exports.
|
|
1226
|
-
const
|
|
2361
|
+
exports.deserializeAws_json1_1ListWorkGroupsCommand = deserializeAws_json1_1ListWorkGroupsCommand;
|
|
2362
|
+
const deserializeAws_json1_1ListWorkGroupsCommandError = async (output, context) => {
|
|
1227
2363
|
const parsedOutput = {
|
|
1228
2364
|
...output,
|
|
1229
2365
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1246,21 +2382,21 @@ const deserializeAws_json1_1ListEngineVersionsCommandError = async (output, cont
|
|
|
1246
2382
|
});
|
|
1247
2383
|
}
|
|
1248
2384
|
};
|
|
1249
|
-
const
|
|
2385
|
+
const deserializeAws_json1_1StartCalculationExecutionCommand = async (output, context) => {
|
|
1250
2386
|
if (output.statusCode >= 300) {
|
|
1251
|
-
return
|
|
2387
|
+
return deserializeAws_json1_1StartCalculationExecutionCommandError(output, context);
|
|
1252
2388
|
}
|
|
1253
2389
|
const data = await parseBody(output.body, context);
|
|
1254
2390
|
let contents = {};
|
|
1255
|
-
contents =
|
|
2391
|
+
contents = deserializeAws_json1_1StartCalculationExecutionResponse(data, context);
|
|
1256
2392
|
const response = {
|
|
1257
2393
|
$metadata: deserializeMetadata(output),
|
|
1258
2394
|
...contents,
|
|
1259
2395
|
};
|
|
1260
2396
|
return Promise.resolve(response);
|
|
1261
2397
|
};
|
|
1262
|
-
exports.
|
|
1263
|
-
const
|
|
2398
|
+
exports.deserializeAws_json1_1StartCalculationExecutionCommand = deserializeAws_json1_1StartCalculationExecutionCommand;
|
|
2399
|
+
const deserializeAws_json1_1StartCalculationExecutionCommandError = async (output, context) => {
|
|
1264
2400
|
const parsedOutput = {
|
|
1265
2401
|
...output,
|
|
1266
2402
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1273,6 +2409,9 @@ const deserializeAws_json1_1ListNamedQueriesCommandError = async (output, contex
|
|
|
1273
2409
|
case "InvalidRequestException":
|
|
1274
2410
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
1275
2411
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
2412
|
+
case "ResourceNotFoundException":
|
|
2413
|
+
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
2414
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1276
2415
|
default:
|
|
1277
2416
|
const parsedBody = parsedOutput.body;
|
|
1278
2417
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1283,21 +2422,21 @@ const deserializeAws_json1_1ListNamedQueriesCommandError = async (output, contex
|
|
|
1283
2422
|
});
|
|
1284
2423
|
}
|
|
1285
2424
|
};
|
|
1286
|
-
const
|
|
2425
|
+
const deserializeAws_json1_1StartQueryExecutionCommand = async (output, context) => {
|
|
1287
2426
|
if (output.statusCode >= 300) {
|
|
1288
|
-
return
|
|
2427
|
+
return deserializeAws_json1_1StartQueryExecutionCommandError(output, context);
|
|
1289
2428
|
}
|
|
1290
2429
|
const data = await parseBody(output.body, context);
|
|
1291
2430
|
let contents = {};
|
|
1292
|
-
contents =
|
|
2431
|
+
contents = deserializeAws_json1_1StartQueryExecutionOutput(data, context);
|
|
1293
2432
|
const response = {
|
|
1294
2433
|
$metadata: deserializeMetadata(output),
|
|
1295
2434
|
...contents,
|
|
1296
2435
|
};
|
|
1297
2436
|
return Promise.resolve(response);
|
|
1298
2437
|
};
|
|
1299
|
-
exports.
|
|
1300
|
-
const
|
|
2438
|
+
exports.deserializeAws_json1_1StartQueryExecutionCommand = deserializeAws_json1_1StartQueryExecutionCommand;
|
|
2439
|
+
const deserializeAws_json1_1StartQueryExecutionCommandError = async (output, context) => {
|
|
1301
2440
|
const parsedOutput = {
|
|
1302
2441
|
...output,
|
|
1303
2442
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1310,6 +2449,9 @@ const deserializeAws_json1_1ListPreparedStatementsCommandError = async (output,
|
|
|
1310
2449
|
case "InvalidRequestException":
|
|
1311
2450
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
1312
2451
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
2452
|
+
case "TooManyRequestsException":
|
|
2453
|
+
case "com.amazonaws.athena#TooManyRequestsException":
|
|
2454
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1313
2455
|
default:
|
|
1314
2456
|
const parsedBody = parsedOutput.body;
|
|
1315
2457
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1320,21 +2462,21 @@ const deserializeAws_json1_1ListPreparedStatementsCommandError = async (output,
|
|
|
1320
2462
|
});
|
|
1321
2463
|
}
|
|
1322
2464
|
};
|
|
1323
|
-
const
|
|
2465
|
+
const deserializeAws_json1_1StartSessionCommand = async (output, context) => {
|
|
1324
2466
|
if (output.statusCode >= 300) {
|
|
1325
|
-
return
|
|
2467
|
+
return deserializeAws_json1_1StartSessionCommandError(output, context);
|
|
1326
2468
|
}
|
|
1327
2469
|
const data = await parseBody(output.body, context);
|
|
1328
2470
|
let contents = {};
|
|
1329
|
-
contents =
|
|
2471
|
+
contents = deserializeAws_json1_1StartSessionResponse(data, context);
|
|
1330
2472
|
const response = {
|
|
1331
2473
|
$metadata: deserializeMetadata(output),
|
|
1332
2474
|
...contents,
|
|
1333
2475
|
};
|
|
1334
2476
|
return Promise.resolve(response);
|
|
1335
2477
|
};
|
|
1336
|
-
exports.
|
|
1337
|
-
const
|
|
2478
|
+
exports.deserializeAws_json1_1StartSessionCommand = deserializeAws_json1_1StartSessionCommand;
|
|
2479
|
+
const deserializeAws_json1_1StartSessionCommandError = async (output, context) => {
|
|
1338
2480
|
const parsedOutput = {
|
|
1339
2481
|
...output,
|
|
1340
2482
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1347,6 +2489,15 @@ const deserializeAws_json1_1ListQueryExecutionsCommandError = async (output, con
|
|
|
1347
2489
|
case "InvalidRequestException":
|
|
1348
2490
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
1349
2491
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
2492
|
+
case "ResourceNotFoundException":
|
|
2493
|
+
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
2494
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2495
|
+
case "SessionAlreadyExistsException":
|
|
2496
|
+
case "com.amazonaws.athena#SessionAlreadyExistsException":
|
|
2497
|
+
throw await deserializeAws_json1_1SessionAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
2498
|
+
case "TooManyRequestsException":
|
|
2499
|
+
case "com.amazonaws.athena#TooManyRequestsException":
|
|
2500
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1350
2501
|
default:
|
|
1351
2502
|
const parsedBody = parsedOutput.body;
|
|
1352
2503
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1357,21 +2508,21 @@ const deserializeAws_json1_1ListQueryExecutionsCommandError = async (output, con
|
|
|
1357
2508
|
});
|
|
1358
2509
|
}
|
|
1359
2510
|
};
|
|
1360
|
-
const
|
|
2511
|
+
const deserializeAws_json1_1StopCalculationExecutionCommand = async (output, context) => {
|
|
1361
2512
|
if (output.statusCode >= 300) {
|
|
1362
|
-
return
|
|
2513
|
+
return deserializeAws_json1_1StopCalculationExecutionCommandError(output, context);
|
|
1363
2514
|
}
|
|
1364
2515
|
const data = await parseBody(output.body, context);
|
|
1365
2516
|
let contents = {};
|
|
1366
|
-
contents =
|
|
2517
|
+
contents = deserializeAws_json1_1StopCalculationExecutionResponse(data, context);
|
|
1367
2518
|
const response = {
|
|
1368
2519
|
$metadata: deserializeMetadata(output),
|
|
1369
2520
|
...contents,
|
|
1370
2521
|
};
|
|
1371
2522
|
return Promise.resolve(response);
|
|
1372
2523
|
};
|
|
1373
|
-
exports.
|
|
1374
|
-
const
|
|
2524
|
+
exports.deserializeAws_json1_1StopCalculationExecutionCommand = deserializeAws_json1_1StopCalculationExecutionCommand;
|
|
2525
|
+
const deserializeAws_json1_1StopCalculationExecutionCommandError = async (output, context) => {
|
|
1375
2526
|
const parsedOutput = {
|
|
1376
2527
|
...output,
|
|
1377
2528
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1381,12 +2532,9 @@ const deserializeAws_json1_1ListTableMetadataCommandError = async (output, conte
|
|
|
1381
2532
|
case "InternalServerException":
|
|
1382
2533
|
case "com.amazonaws.athena#InternalServerException":
|
|
1383
2534
|
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1384
|
-
case "
|
|
1385
|
-
case "com.amazonaws.athena#
|
|
1386
|
-
throw await
|
|
1387
|
-
case "MetadataException":
|
|
1388
|
-
case "com.amazonaws.athena#MetadataException":
|
|
1389
|
-
throw await deserializeAws_json1_1MetadataExceptionResponse(parsedOutput, context);
|
|
2535
|
+
case "ResourceNotFoundException":
|
|
2536
|
+
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
2537
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1390
2538
|
default:
|
|
1391
2539
|
const parsedBody = parsedOutput.body;
|
|
1392
2540
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1397,21 +2545,21 @@ const deserializeAws_json1_1ListTableMetadataCommandError = async (output, conte
|
|
|
1397
2545
|
});
|
|
1398
2546
|
}
|
|
1399
2547
|
};
|
|
1400
|
-
const
|
|
2548
|
+
const deserializeAws_json1_1StopQueryExecutionCommand = async (output, context) => {
|
|
1401
2549
|
if (output.statusCode >= 300) {
|
|
1402
|
-
return
|
|
2550
|
+
return deserializeAws_json1_1StopQueryExecutionCommandError(output, context);
|
|
1403
2551
|
}
|
|
1404
2552
|
const data = await parseBody(output.body, context);
|
|
1405
2553
|
let contents = {};
|
|
1406
|
-
contents =
|
|
2554
|
+
contents = deserializeAws_json1_1StopQueryExecutionOutput(data, context);
|
|
1407
2555
|
const response = {
|
|
1408
2556
|
$metadata: deserializeMetadata(output),
|
|
1409
2557
|
...contents,
|
|
1410
2558
|
};
|
|
1411
2559
|
return Promise.resolve(response);
|
|
1412
2560
|
};
|
|
1413
|
-
exports.
|
|
1414
|
-
const
|
|
2561
|
+
exports.deserializeAws_json1_1StopQueryExecutionCommand = deserializeAws_json1_1StopQueryExecutionCommand;
|
|
2562
|
+
const deserializeAws_json1_1StopQueryExecutionCommandError = async (output, context) => {
|
|
1415
2563
|
const parsedOutput = {
|
|
1416
2564
|
...output,
|
|
1417
2565
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1424,9 +2572,6 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
1424
2572
|
case "InvalidRequestException":
|
|
1425
2573
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
1426
2574
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1427
|
-
case "ResourceNotFoundException":
|
|
1428
|
-
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
1429
|
-
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1430
2575
|
default:
|
|
1431
2576
|
const parsedBody = parsedOutput.body;
|
|
1432
2577
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1437,21 +2582,21 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
1437
2582
|
});
|
|
1438
2583
|
}
|
|
1439
2584
|
};
|
|
1440
|
-
const
|
|
2585
|
+
const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
1441
2586
|
if (output.statusCode >= 300) {
|
|
1442
|
-
return
|
|
2587
|
+
return deserializeAws_json1_1TagResourceCommandError(output, context);
|
|
1443
2588
|
}
|
|
1444
2589
|
const data = await parseBody(output.body, context);
|
|
1445
2590
|
let contents = {};
|
|
1446
|
-
contents =
|
|
2591
|
+
contents = deserializeAws_json1_1TagResourceOutput(data, context);
|
|
1447
2592
|
const response = {
|
|
1448
2593
|
$metadata: deserializeMetadata(output),
|
|
1449
2594
|
...contents,
|
|
1450
2595
|
};
|
|
1451
2596
|
return Promise.resolve(response);
|
|
1452
2597
|
};
|
|
1453
|
-
exports.
|
|
1454
|
-
const
|
|
2598
|
+
exports.deserializeAws_json1_1TagResourceCommand = deserializeAws_json1_1TagResourceCommand;
|
|
2599
|
+
const deserializeAws_json1_1TagResourceCommandError = async (output, context) => {
|
|
1455
2600
|
const parsedOutput = {
|
|
1456
2601
|
...output,
|
|
1457
2602
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1464,6 +2609,9 @@ const deserializeAws_json1_1ListWorkGroupsCommandError = async (output, context)
|
|
|
1464
2609
|
case "InvalidRequestException":
|
|
1465
2610
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
1466
2611
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
2612
|
+
case "ResourceNotFoundException":
|
|
2613
|
+
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
2614
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1467
2615
|
default:
|
|
1468
2616
|
const parsedBody = parsedOutput.body;
|
|
1469
2617
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1474,21 +2622,21 @@ const deserializeAws_json1_1ListWorkGroupsCommandError = async (output, context)
|
|
|
1474
2622
|
});
|
|
1475
2623
|
}
|
|
1476
2624
|
};
|
|
1477
|
-
const
|
|
2625
|
+
const deserializeAws_json1_1TerminateSessionCommand = async (output, context) => {
|
|
1478
2626
|
if (output.statusCode >= 300) {
|
|
1479
|
-
return
|
|
2627
|
+
return deserializeAws_json1_1TerminateSessionCommandError(output, context);
|
|
1480
2628
|
}
|
|
1481
2629
|
const data = await parseBody(output.body, context);
|
|
1482
2630
|
let contents = {};
|
|
1483
|
-
contents =
|
|
2631
|
+
contents = deserializeAws_json1_1TerminateSessionResponse(data, context);
|
|
1484
2632
|
const response = {
|
|
1485
2633
|
$metadata: deserializeMetadata(output),
|
|
1486
2634
|
...contents,
|
|
1487
2635
|
};
|
|
1488
2636
|
return Promise.resolve(response);
|
|
1489
2637
|
};
|
|
1490
|
-
exports.
|
|
1491
|
-
const
|
|
2638
|
+
exports.deserializeAws_json1_1TerminateSessionCommand = deserializeAws_json1_1TerminateSessionCommand;
|
|
2639
|
+
const deserializeAws_json1_1TerminateSessionCommandError = async (output, context) => {
|
|
1492
2640
|
const parsedOutput = {
|
|
1493
2641
|
...output,
|
|
1494
2642
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1501,9 +2649,9 @@ const deserializeAws_json1_1StartQueryExecutionCommandError = async (output, con
|
|
|
1501
2649
|
case "InvalidRequestException":
|
|
1502
2650
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
1503
2651
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1504
|
-
case "
|
|
1505
|
-
case "com.amazonaws.athena#
|
|
1506
|
-
throw await
|
|
2652
|
+
case "ResourceNotFoundException":
|
|
2653
|
+
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
2654
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1507
2655
|
default:
|
|
1508
2656
|
const parsedBody = parsedOutput.body;
|
|
1509
2657
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1514,21 +2662,21 @@ const deserializeAws_json1_1StartQueryExecutionCommandError = async (output, con
|
|
|
1514
2662
|
});
|
|
1515
2663
|
}
|
|
1516
2664
|
};
|
|
1517
|
-
const
|
|
2665
|
+
const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
|
|
1518
2666
|
if (output.statusCode >= 300) {
|
|
1519
|
-
return
|
|
2667
|
+
return deserializeAws_json1_1UntagResourceCommandError(output, context);
|
|
1520
2668
|
}
|
|
1521
2669
|
const data = await parseBody(output.body, context);
|
|
1522
2670
|
let contents = {};
|
|
1523
|
-
contents =
|
|
2671
|
+
contents = deserializeAws_json1_1UntagResourceOutput(data, context);
|
|
1524
2672
|
const response = {
|
|
1525
2673
|
$metadata: deserializeMetadata(output),
|
|
1526
2674
|
...contents,
|
|
1527
2675
|
};
|
|
1528
2676
|
return Promise.resolve(response);
|
|
1529
2677
|
};
|
|
1530
|
-
exports.
|
|
1531
|
-
const
|
|
2678
|
+
exports.deserializeAws_json1_1UntagResourceCommand = deserializeAws_json1_1UntagResourceCommand;
|
|
2679
|
+
const deserializeAws_json1_1UntagResourceCommandError = async (output, context) => {
|
|
1532
2680
|
const parsedOutput = {
|
|
1533
2681
|
...output,
|
|
1534
2682
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1541,6 +2689,9 @@ const deserializeAws_json1_1StopQueryExecutionCommandError = async (output, cont
|
|
|
1541
2689
|
case "InvalidRequestException":
|
|
1542
2690
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
1543
2691
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
2692
|
+
case "ResourceNotFoundException":
|
|
2693
|
+
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
2694
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1544
2695
|
default:
|
|
1545
2696
|
const parsedBody = parsedOutput.body;
|
|
1546
2697
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1551,21 +2702,21 @@ const deserializeAws_json1_1StopQueryExecutionCommandError = async (output, cont
|
|
|
1551
2702
|
});
|
|
1552
2703
|
}
|
|
1553
2704
|
};
|
|
1554
|
-
const
|
|
2705
|
+
const deserializeAws_json1_1UpdateDataCatalogCommand = async (output, context) => {
|
|
1555
2706
|
if (output.statusCode >= 300) {
|
|
1556
|
-
return
|
|
2707
|
+
return deserializeAws_json1_1UpdateDataCatalogCommandError(output, context);
|
|
1557
2708
|
}
|
|
1558
2709
|
const data = await parseBody(output.body, context);
|
|
1559
2710
|
let contents = {};
|
|
1560
|
-
contents =
|
|
2711
|
+
contents = deserializeAws_json1_1UpdateDataCatalogOutput(data, context);
|
|
1561
2712
|
const response = {
|
|
1562
2713
|
$metadata: deserializeMetadata(output),
|
|
1563
2714
|
...contents,
|
|
1564
2715
|
};
|
|
1565
2716
|
return Promise.resolve(response);
|
|
1566
2717
|
};
|
|
1567
|
-
exports.
|
|
1568
|
-
const
|
|
2718
|
+
exports.deserializeAws_json1_1UpdateDataCatalogCommand = deserializeAws_json1_1UpdateDataCatalogCommand;
|
|
2719
|
+
const deserializeAws_json1_1UpdateDataCatalogCommandError = async (output, context) => {
|
|
1569
2720
|
const parsedOutput = {
|
|
1570
2721
|
...output,
|
|
1571
2722
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1578,9 +2729,6 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
1578
2729
|
case "InvalidRequestException":
|
|
1579
2730
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
1580
2731
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1581
|
-
case "ResourceNotFoundException":
|
|
1582
|
-
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
1583
|
-
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1584
2732
|
default:
|
|
1585
2733
|
const parsedBody = parsedOutput.body;
|
|
1586
2734
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1591,21 +2739,21 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
1591
2739
|
});
|
|
1592
2740
|
}
|
|
1593
2741
|
};
|
|
1594
|
-
const
|
|
2742
|
+
const deserializeAws_json1_1UpdateNamedQueryCommand = async (output, context) => {
|
|
1595
2743
|
if (output.statusCode >= 300) {
|
|
1596
|
-
return
|
|
2744
|
+
return deserializeAws_json1_1UpdateNamedQueryCommandError(output, context);
|
|
1597
2745
|
}
|
|
1598
2746
|
const data = await parseBody(output.body, context);
|
|
1599
2747
|
let contents = {};
|
|
1600
|
-
contents =
|
|
2748
|
+
contents = deserializeAws_json1_1UpdateNamedQueryOutput(data, context);
|
|
1601
2749
|
const response = {
|
|
1602
2750
|
$metadata: deserializeMetadata(output),
|
|
1603
2751
|
...contents,
|
|
1604
2752
|
};
|
|
1605
2753
|
return Promise.resolve(response);
|
|
1606
2754
|
};
|
|
1607
|
-
exports.
|
|
1608
|
-
const
|
|
2755
|
+
exports.deserializeAws_json1_1UpdateNamedQueryCommand = deserializeAws_json1_1UpdateNamedQueryCommand;
|
|
2756
|
+
const deserializeAws_json1_1UpdateNamedQueryCommandError = async (output, context) => {
|
|
1609
2757
|
const parsedOutput = {
|
|
1610
2758
|
...output,
|
|
1611
2759
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1618,9 +2766,6 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
1618
2766
|
case "InvalidRequestException":
|
|
1619
2767
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
1620
2768
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1621
|
-
case "ResourceNotFoundException":
|
|
1622
|
-
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
1623
|
-
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1624
2769
|
default:
|
|
1625
2770
|
const parsedBody = parsedOutput.body;
|
|
1626
2771
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1631,21 +2776,21 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
1631
2776
|
});
|
|
1632
2777
|
}
|
|
1633
2778
|
};
|
|
1634
|
-
const
|
|
2779
|
+
const deserializeAws_json1_1UpdateNotebookCommand = async (output, context) => {
|
|
1635
2780
|
if (output.statusCode >= 300) {
|
|
1636
|
-
return
|
|
2781
|
+
return deserializeAws_json1_1UpdateNotebookCommandError(output, context);
|
|
1637
2782
|
}
|
|
1638
2783
|
const data = await parseBody(output.body, context);
|
|
1639
2784
|
let contents = {};
|
|
1640
|
-
contents =
|
|
2785
|
+
contents = deserializeAws_json1_1UpdateNotebookOutput(data, context);
|
|
1641
2786
|
const response = {
|
|
1642
2787
|
$metadata: deserializeMetadata(output),
|
|
1643
2788
|
...contents,
|
|
1644
2789
|
};
|
|
1645
2790
|
return Promise.resolve(response);
|
|
1646
2791
|
};
|
|
1647
|
-
exports.
|
|
1648
|
-
const
|
|
2792
|
+
exports.deserializeAws_json1_1UpdateNotebookCommand = deserializeAws_json1_1UpdateNotebookCommand;
|
|
2793
|
+
const deserializeAws_json1_1UpdateNotebookCommandError = async (output, context) => {
|
|
1649
2794
|
const parsedOutput = {
|
|
1650
2795
|
...output,
|
|
1651
2796
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1658,6 +2803,9 @@ const deserializeAws_json1_1UpdateDataCatalogCommandError = async (output, conte
|
|
|
1658
2803
|
case "InvalidRequestException":
|
|
1659
2804
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
1660
2805
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
2806
|
+
case "TooManyRequestsException":
|
|
2807
|
+
case "com.amazonaws.athena#TooManyRequestsException":
|
|
2808
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1661
2809
|
default:
|
|
1662
2810
|
const parsedBody = parsedOutput.body;
|
|
1663
2811
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1668,21 +2816,21 @@ const deserializeAws_json1_1UpdateDataCatalogCommandError = async (output, conte
|
|
|
1668
2816
|
});
|
|
1669
2817
|
}
|
|
1670
2818
|
};
|
|
1671
|
-
const
|
|
2819
|
+
const deserializeAws_json1_1UpdateNotebookMetadataCommand = async (output, context) => {
|
|
1672
2820
|
if (output.statusCode >= 300) {
|
|
1673
|
-
return
|
|
2821
|
+
return deserializeAws_json1_1UpdateNotebookMetadataCommandError(output, context);
|
|
1674
2822
|
}
|
|
1675
2823
|
const data = await parseBody(output.body, context);
|
|
1676
2824
|
let contents = {};
|
|
1677
|
-
contents =
|
|
2825
|
+
contents = deserializeAws_json1_1UpdateNotebookMetadataOutput(data, context);
|
|
1678
2826
|
const response = {
|
|
1679
2827
|
$metadata: deserializeMetadata(output),
|
|
1680
2828
|
...contents,
|
|
1681
2829
|
};
|
|
1682
2830
|
return Promise.resolve(response);
|
|
1683
2831
|
};
|
|
1684
|
-
exports.
|
|
1685
|
-
const
|
|
2832
|
+
exports.deserializeAws_json1_1UpdateNotebookMetadataCommand = deserializeAws_json1_1UpdateNotebookMetadataCommand;
|
|
2833
|
+
const deserializeAws_json1_1UpdateNotebookMetadataCommandError = async (output, context) => {
|
|
1686
2834
|
const parsedOutput = {
|
|
1687
2835
|
...output,
|
|
1688
2836
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1695,6 +2843,9 @@ const deserializeAws_json1_1UpdateNamedQueryCommandError = async (output, contex
|
|
|
1695
2843
|
case "InvalidRequestException":
|
|
1696
2844
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
1697
2845
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
2846
|
+
case "TooManyRequestsException":
|
|
2847
|
+
case "com.amazonaws.athena#TooManyRequestsException":
|
|
2848
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1698
2849
|
default:
|
|
1699
2850
|
const parsedBody = parsedOutput.body;
|
|
1700
2851
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1818,6 +2969,15 @@ const deserializeAws_json1_1ResourceNotFoundExceptionResponse = async (parsedOut
|
|
|
1818
2969
|
});
|
|
1819
2970
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1820
2971
|
};
|
|
2972
|
+
const deserializeAws_json1_1SessionAlreadyExistsExceptionResponse = async (parsedOutput, context) => {
|
|
2973
|
+
const body = parsedOutput.body;
|
|
2974
|
+
const deserialized = deserializeAws_json1_1SessionAlreadyExistsException(body, context);
|
|
2975
|
+
const exception = new models_0_1.SessionAlreadyExistsException({
|
|
2976
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2977
|
+
...deserialized,
|
|
2978
|
+
});
|
|
2979
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2980
|
+
};
|
|
1821
2981
|
const deserializeAws_json1_1TooManyRequestsExceptionResponse = async (parsedOutput, context) => {
|
|
1822
2982
|
const body = parsedOutput.body;
|
|
1823
2983
|
const deserialized = deserializeAws_json1_1TooManyRequestsException(body, context);
|
|
@@ -1854,6 +3014,11 @@ const serializeAws_json1_1BatchGetQueryExecutionInput = (input, context) => {
|
|
|
1854
3014
|
}),
|
|
1855
3015
|
};
|
|
1856
3016
|
};
|
|
3017
|
+
const serializeAws_json1_1CalculationConfiguration = (input, context) => {
|
|
3018
|
+
return {
|
|
3019
|
+
...(input.CodeBlock != null && { CodeBlock: input.CodeBlock }),
|
|
3020
|
+
};
|
|
3021
|
+
};
|
|
1857
3022
|
const serializeAws_json1_1CreateDataCatalogInput = (input, context) => {
|
|
1858
3023
|
return {
|
|
1859
3024
|
...(input.Description != null && { Description: input.Description }),
|
|
@@ -1873,6 +3038,13 @@ const serializeAws_json1_1CreateNamedQueryInput = (input, context) => {
|
|
|
1873
3038
|
...(input.WorkGroup != null && { WorkGroup: input.WorkGroup }),
|
|
1874
3039
|
};
|
|
1875
3040
|
};
|
|
3041
|
+
const serializeAws_json1_1CreateNotebookInput = (input, context) => {
|
|
3042
|
+
return {
|
|
3043
|
+
...(input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken }),
|
|
3044
|
+
...(input.Name != null && { Name: input.Name }),
|
|
3045
|
+
...(input.WorkGroup != null && { WorkGroup: input.WorkGroup }),
|
|
3046
|
+
};
|
|
3047
|
+
};
|
|
1876
3048
|
const serializeAws_json1_1CreatePreparedStatementInput = (input, context) => {
|
|
1877
3049
|
return {
|
|
1878
3050
|
...(input.Description != null && { Description: input.Description }),
|
|
@@ -1881,6 +3053,11 @@ const serializeAws_json1_1CreatePreparedStatementInput = (input, context) => {
|
|
|
1881
3053
|
...(input.WorkGroup != null && { WorkGroup: input.WorkGroup }),
|
|
1882
3054
|
};
|
|
1883
3055
|
};
|
|
3056
|
+
const serializeAws_json1_1CreatePresignedNotebookUrlRequest = (input, context) => {
|
|
3057
|
+
return {
|
|
3058
|
+
...(input.SessionId != null && { SessionId: input.SessionId }),
|
|
3059
|
+
};
|
|
3060
|
+
};
|
|
1884
3061
|
const serializeAws_json1_1CreateWorkGroupInput = (input, context) => {
|
|
1885
3062
|
return {
|
|
1886
3063
|
...(input.Configuration != null && {
|
|
@@ -1891,6 +3068,11 @@ const serializeAws_json1_1CreateWorkGroupInput = (input, context) => {
|
|
|
1891
3068
|
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
1892
3069
|
};
|
|
1893
3070
|
};
|
|
3071
|
+
const serializeAws_json1_1CustomerContentEncryptionConfiguration = (input, context) => {
|
|
3072
|
+
return {
|
|
3073
|
+
...(input.KmsKey != null && { KmsKey: input.KmsKey }),
|
|
3074
|
+
};
|
|
3075
|
+
};
|
|
1894
3076
|
const serializeAws_json1_1DeleteDataCatalogInput = (input, context) => {
|
|
1895
3077
|
return {
|
|
1896
3078
|
...(input.Name != null && { Name: input.Name }),
|
|
@@ -1901,6 +3083,11 @@ const serializeAws_json1_1DeleteNamedQueryInput = (input, context) => {
|
|
|
1901
3083
|
NamedQueryId: input.NamedQueryId ?? (0, uuid_1.v4)(),
|
|
1902
3084
|
};
|
|
1903
3085
|
};
|
|
3086
|
+
const serializeAws_json1_1DeleteNotebookInput = (input, context) => {
|
|
3087
|
+
return {
|
|
3088
|
+
...(input.NotebookId != null && { NotebookId: input.NotebookId }),
|
|
3089
|
+
};
|
|
3090
|
+
};
|
|
1904
3091
|
const serializeAws_json1_1DeletePreparedStatementInput = (input, context) => {
|
|
1905
3092
|
return {
|
|
1906
3093
|
...(input.StatementName != null && { StatementName: input.StatementName }),
|
|
@@ -1919,6 +3106,16 @@ const serializeAws_json1_1EncryptionConfiguration = (input, context) => {
|
|
|
1919
3106
|
...(input.KmsKey != null && { KmsKey: input.KmsKey }),
|
|
1920
3107
|
};
|
|
1921
3108
|
};
|
|
3109
|
+
const serializeAws_json1_1EngineConfiguration = (input, context) => {
|
|
3110
|
+
return {
|
|
3111
|
+
...(input.AdditionalConfigs != null && {
|
|
3112
|
+
AdditionalConfigs: serializeAws_json1_1ParametersMap(input.AdditionalConfigs, context),
|
|
3113
|
+
}),
|
|
3114
|
+
...(input.CoordinatorDpuSize != null && { CoordinatorDpuSize: input.CoordinatorDpuSize }),
|
|
3115
|
+
...(input.DefaultExecutorDpuSize != null && { DefaultExecutorDpuSize: input.DefaultExecutorDpuSize }),
|
|
3116
|
+
...(input.MaxConcurrentDpus != null && { MaxConcurrentDpus: input.MaxConcurrentDpus }),
|
|
3117
|
+
};
|
|
3118
|
+
};
|
|
1922
3119
|
const serializeAws_json1_1EngineVersion = (input, context) => {
|
|
1923
3120
|
return {
|
|
1924
3121
|
...(input.EffectiveEngineVersion != null && { EffectiveEngineVersion: input.EffectiveEngineVersion }),
|
|
@@ -1932,6 +3129,31 @@ const serializeAws_json1_1ExecutionParameters = (input, context) => {
|
|
|
1932
3129
|
return entry;
|
|
1933
3130
|
});
|
|
1934
3131
|
};
|
|
3132
|
+
const serializeAws_json1_1ExportNotebookInput = (input, context) => {
|
|
3133
|
+
return {
|
|
3134
|
+
...(input.NotebookId != null && { NotebookId: input.NotebookId }),
|
|
3135
|
+
};
|
|
3136
|
+
};
|
|
3137
|
+
const serializeAws_json1_1FilterDefinition = (input, context) => {
|
|
3138
|
+
return {
|
|
3139
|
+
...(input.Name != null && { Name: input.Name }),
|
|
3140
|
+
};
|
|
3141
|
+
};
|
|
3142
|
+
const serializeAws_json1_1GetCalculationExecutionCodeRequest = (input, context) => {
|
|
3143
|
+
return {
|
|
3144
|
+
...(input.CalculationExecutionId != null && { CalculationExecutionId: input.CalculationExecutionId }),
|
|
3145
|
+
};
|
|
3146
|
+
};
|
|
3147
|
+
const serializeAws_json1_1GetCalculationExecutionRequest = (input, context) => {
|
|
3148
|
+
return {
|
|
3149
|
+
...(input.CalculationExecutionId != null && { CalculationExecutionId: input.CalculationExecutionId }),
|
|
3150
|
+
};
|
|
3151
|
+
};
|
|
3152
|
+
const serializeAws_json1_1GetCalculationExecutionStatusRequest = (input, context) => {
|
|
3153
|
+
return {
|
|
3154
|
+
...(input.CalculationExecutionId != null && { CalculationExecutionId: input.CalculationExecutionId }),
|
|
3155
|
+
};
|
|
3156
|
+
};
|
|
1935
3157
|
const serializeAws_json1_1GetDatabaseInput = (input, context) => {
|
|
1936
3158
|
return {
|
|
1937
3159
|
...(input.CatalogName != null && { CatalogName: input.CatalogName }),
|
|
@@ -1948,6 +3170,11 @@ const serializeAws_json1_1GetNamedQueryInput = (input, context) => {
|
|
|
1948
3170
|
...(input.NamedQueryId != null && { NamedQueryId: input.NamedQueryId }),
|
|
1949
3171
|
};
|
|
1950
3172
|
};
|
|
3173
|
+
const serializeAws_json1_1GetNotebookMetadataInput = (input, context) => {
|
|
3174
|
+
return {
|
|
3175
|
+
...(input.NotebookId != null && { NotebookId: input.NotebookId }),
|
|
3176
|
+
};
|
|
3177
|
+
};
|
|
1951
3178
|
const serializeAws_json1_1GetPreparedStatementInput = (input, context) => {
|
|
1952
3179
|
return {
|
|
1953
3180
|
...(input.StatementName != null && { StatementName: input.StatementName }),
|
|
@@ -1971,6 +3198,16 @@ const serializeAws_json1_1GetQueryRuntimeStatisticsInput = (input, context) => {
|
|
|
1971
3198
|
...(input.QueryExecutionId != null && { QueryExecutionId: input.QueryExecutionId }),
|
|
1972
3199
|
};
|
|
1973
3200
|
};
|
|
3201
|
+
const serializeAws_json1_1GetSessionRequest = (input, context) => {
|
|
3202
|
+
return {
|
|
3203
|
+
...(input.SessionId != null && { SessionId: input.SessionId }),
|
|
3204
|
+
};
|
|
3205
|
+
};
|
|
3206
|
+
const serializeAws_json1_1GetSessionStatusRequest = (input, context) => {
|
|
3207
|
+
return {
|
|
3208
|
+
...(input.SessionId != null && { SessionId: input.SessionId }),
|
|
3209
|
+
};
|
|
3210
|
+
};
|
|
1974
3211
|
const serializeAws_json1_1GetTableMetadataInput = (input, context) => {
|
|
1975
3212
|
return {
|
|
1976
3213
|
...(input.CatalogName != null && { CatalogName: input.CatalogName }),
|
|
@@ -1983,6 +3220,29 @@ const serializeAws_json1_1GetWorkGroupInput = (input, context) => {
|
|
|
1983
3220
|
...(input.WorkGroup != null && { WorkGroup: input.WorkGroup }),
|
|
1984
3221
|
};
|
|
1985
3222
|
};
|
|
3223
|
+
const serializeAws_json1_1ImportNotebookInput = (input, context) => {
|
|
3224
|
+
return {
|
|
3225
|
+
...(input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken }),
|
|
3226
|
+
...(input.Name != null && { Name: input.Name }),
|
|
3227
|
+
...(input.Payload != null && { Payload: input.Payload }),
|
|
3228
|
+
...(input.Type != null && { Type: input.Type }),
|
|
3229
|
+
...(input.WorkGroup != null && { WorkGroup: input.WorkGroup }),
|
|
3230
|
+
};
|
|
3231
|
+
};
|
|
3232
|
+
const serializeAws_json1_1ListApplicationDPUSizesInput = (input, context) => {
|
|
3233
|
+
return {
|
|
3234
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3235
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3236
|
+
};
|
|
3237
|
+
};
|
|
3238
|
+
const serializeAws_json1_1ListCalculationExecutionsRequest = (input, context) => {
|
|
3239
|
+
return {
|
|
3240
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3241
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3242
|
+
...(input.SessionId != null && { SessionId: input.SessionId }),
|
|
3243
|
+
...(input.StateFilter != null && { StateFilter: input.StateFilter }),
|
|
3244
|
+
};
|
|
3245
|
+
};
|
|
1986
3246
|
const serializeAws_json1_1ListDatabasesInput = (input, context) => {
|
|
1987
3247
|
return {
|
|
1988
3248
|
...(input.CatalogName != null && { CatalogName: input.CatalogName }),
|
|
@@ -2002,6 +3262,14 @@ const serializeAws_json1_1ListEngineVersionsInput = (input, context) => {
|
|
|
2002
3262
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2003
3263
|
};
|
|
2004
3264
|
};
|
|
3265
|
+
const serializeAws_json1_1ListExecutorsRequest = (input, context) => {
|
|
3266
|
+
return {
|
|
3267
|
+
...(input.ExecutorStateFilter != null && { ExecutorStateFilter: input.ExecutorStateFilter }),
|
|
3268
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3269
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3270
|
+
...(input.SessionId != null && { SessionId: input.SessionId }),
|
|
3271
|
+
};
|
|
3272
|
+
};
|
|
2005
3273
|
const serializeAws_json1_1ListNamedQueriesInput = (input, context) => {
|
|
2006
3274
|
return {
|
|
2007
3275
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
@@ -2009,6 +3277,21 @@ const serializeAws_json1_1ListNamedQueriesInput = (input, context) => {
|
|
|
2009
3277
|
...(input.WorkGroup != null && { WorkGroup: input.WorkGroup }),
|
|
2010
3278
|
};
|
|
2011
3279
|
};
|
|
3280
|
+
const serializeAws_json1_1ListNotebookMetadataInput = (input, context) => {
|
|
3281
|
+
return {
|
|
3282
|
+
...(input.Filters != null && { Filters: serializeAws_json1_1FilterDefinition(input.Filters, context) }),
|
|
3283
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3284
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3285
|
+
...(input.WorkGroup != null && { WorkGroup: input.WorkGroup }),
|
|
3286
|
+
};
|
|
3287
|
+
};
|
|
3288
|
+
const serializeAws_json1_1ListNotebookSessionsRequest = (input, context) => {
|
|
3289
|
+
return {
|
|
3290
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3291
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3292
|
+
...(input.NotebookId != null && { NotebookId: input.NotebookId }),
|
|
3293
|
+
};
|
|
3294
|
+
};
|
|
2012
3295
|
const serializeAws_json1_1ListPreparedStatementsInput = (input, context) => {
|
|
2013
3296
|
return {
|
|
2014
3297
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
@@ -2023,6 +3306,14 @@ const serializeAws_json1_1ListQueryExecutionsInput = (input, context) => {
|
|
|
2023
3306
|
...(input.WorkGroup != null && { WorkGroup: input.WorkGroup }),
|
|
2024
3307
|
};
|
|
2025
3308
|
};
|
|
3309
|
+
const serializeAws_json1_1ListSessionsRequest = (input, context) => {
|
|
3310
|
+
return {
|
|
3311
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3312
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3313
|
+
...(input.StateFilter != null && { StateFilter: input.StateFilter }),
|
|
3314
|
+
...(input.WorkGroup != null && { WorkGroup: input.WorkGroup }),
|
|
3315
|
+
};
|
|
3316
|
+
};
|
|
2026
3317
|
const serializeAws_json1_1ListTableMetadataInput = (input, context) => {
|
|
2027
3318
|
return {
|
|
2028
3319
|
...(input.CatalogName != null && { CatalogName: input.CatalogName }),
|
|
@@ -2124,6 +3415,17 @@ const serializeAws_json1_1ResultReuseConfiguration = (input, context) => {
|
|
|
2124
3415
|
}),
|
|
2125
3416
|
};
|
|
2126
3417
|
};
|
|
3418
|
+
const serializeAws_json1_1StartCalculationExecutionRequest = (input, context) => {
|
|
3419
|
+
return {
|
|
3420
|
+
...(input.CalculationConfiguration != null && {
|
|
3421
|
+
CalculationConfiguration: serializeAws_json1_1CalculationConfiguration(input.CalculationConfiguration, context),
|
|
3422
|
+
}),
|
|
3423
|
+
...(input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken }),
|
|
3424
|
+
...(input.CodeBlock != null && { CodeBlock: input.CodeBlock }),
|
|
3425
|
+
...(input.Description != null && { Description: input.Description }),
|
|
3426
|
+
...(input.SessionId != null && { SessionId: input.SessionId }),
|
|
3427
|
+
};
|
|
3428
|
+
};
|
|
2127
3429
|
const serializeAws_json1_1StartQueryExecutionInput = (input, context) => {
|
|
2128
3430
|
return {
|
|
2129
3431
|
ClientRequestToken: input.ClientRequestToken ?? (0, uuid_1.v4)(),
|
|
@@ -2143,6 +3445,25 @@ const serializeAws_json1_1StartQueryExecutionInput = (input, context) => {
|
|
|
2143
3445
|
...(input.WorkGroup != null && { WorkGroup: input.WorkGroup }),
|
|
2144
3446
|
};
|
|
2145
3447
|
};
|
|
3448
|
+
const serializeAws_json1_1StartSessionRequest = (input, context) => {
|
|
3449
|
+
return {
|
|
3450
|
+
...(input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken }),
|
|
3451
|
+
...(input.Description != null && { Description: input.Description }),
|
|
3452
|
+
...(input.EngineConfiguration != null && {
|
|
3453
|
+
EngineConfiguration: serializeAws_json1_1EngineConfiguration(input.EngineConfiguration, context),
|
|
3454
|
+
}),
|
|
3455
|
+
...(input.NotebookVersion != null && { NotebookVersion: input.NotebookVersion }),
|
|
3456
|
+
...(input.SessionIdleTimeoutInMinutes != null && {
|
|
3457
|
+
SessionIdleTimeoutInMinutes: input.SessionIdleTimeoutInMinutes,
|
|
3458
|
+
}),
|
|
3459
|
+
...(input.WorkGroup != null && { WorkGroup: input.WorkGroup }),
|
|
3460
|
+
};
|
|
3461
|
+
};
|
|
3462
|
+
const serializeAws_json1_1StopCalculationExecutionRequest = (input, context) => {
|
|
3463
|
+
return {
|
|
3464
|
+
...(input.CalculationExecutionId != null && { CalculationExecutionId: input.CalculationExecutionId }),
|
|
3465
|
+
};
|
|
3466
|
+
};
|
|
2146
3467
|
const serializeAws_json1_1StopQueryExecutionInput = (input, context) => {
|
|
2147
3468
|
return {
|
|
2148
3469
|
QueryExecutionId: input.QueryExecutionId ?? (0, uuid_1.v4)(),
|
|
@@ -2174,6 +3495,11 @@ const serializeAws_json1_1TagResourceInput = (input, context) => {
|
|
|
2174
3495
|
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
2175
3496
|
};
|
|
2176
3497
|
};
|
|
3498
|
+
const serializeAws_json1_1TerminateSessionRequest = (input, context) => {
|
|
3499
|
+
return {
|
|
3500
|
+
...(input.SessionId != null && { SessionId: input.SessionId }),
|
|
3501
|
+
};
|
|
3502
|
+
};
|
|
2177
3503
|
const serializeAws_json1_1UntagResourceInput = (input, context) => {
|
|
2178
3504
|
return {
|
|
2179
3505
|
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
@@ -2196,6 +3522,22 @@ const serializeAws_json1_1UpdateNamedQueryInput = (input, context) => {
|
|
|
2196
3522
|
...(input.QueryString != null && { QueryString: input.QueryString }),
|
|
2197
3523
|
};
|
|
2198
3524
|
};
|
|
3525
|
+
const serializeAws_json1_1UpdateNotebookInput = (input, context) => {
|
|
3526
|
+
return {
|
|
3527
|
+
...(input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken }),
|
|
3528
|
+
...(input.NotebookId != null && { NotebookId: input.NotebookId }),
|
|
3529
|
+
...(input.Payload != null && { Payload: input.Payload }),
|
|
3530
|
+
...(input.SessionId != null && { SessionId: input.SessionId }),
|
|
3531
|
+
...(input.Type != null && { Type: input.Type }),
|
|
3532
|
+
};
|
|
3533
|
+
};
|
|
3534
|
+
const serializeAws_json1_1UpdateNotebookMetadataInput = (input, context) => {
|
|
3535
|
+
return {
|
|
3536
|
+
...(input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken }),
|
|
3537
|
+
...(input.Name != null && { Name: input.Name }),
|
|
3538
|
+
...(input.NotebookId != null && { NotebookId: input.NotebookId }),
|
|
3539
|
+
};
|
|
3540
|
+
};
|
|
2199
3541
|
const serializeAws_json1_1UpdatePreparedStatementInput = (input, context) => {
|
|
2200
3542
|
return {
|
|
2201
3543
|
...(input.Description != null && { Description: input.Description }),
|
|
@@ -2216,13 +3558,18 @@ const serializeAws_json1_1UpdateWorkGroupInput = (input, context) => {
|
|
|
2216
3558
|
};
|
|
2217
3559
|
const serializeAws_json1_1WorkGroupConfiguration = (input, context) => {
|
|
2218
3560
|
return {
|
|
3561
|
+
...(input.AdditionalConfiguration != null && { AdditionalConfiguration: input.AdditionalConfiguration }),
|
|
2219
3562
|
...(input.BytesScannedCutoffPerQuery != null && { BytesScannedCutoffPerQuery: input.BytesScannedCutoffPerQuery }),
|
|
3563
|
+
...(input.CustomerContentEncryptionConfiguration != null && {
|
|
3564
|
+
CustomerContentEncryptionConfiguration: serializeAws_json1_1CustomerContentEncryptionConfiguration(input.CustomerContentEncryptionConfiguration, context),
|
|
3565
|
+
}),
|
|
2220
3566
|
...(input.EnforceWorkGroupConfiguration != null && {
|
|
2221
3567
|
EnforceWorkGroupConfiguration: input.EnforceWorkGroupConfiguration,
|
|
2222
3568
|
}),
|
|
2223
3569
|
...(input.EngineVersion != null && {
|
|
2224
3570
|
EngineVersion: serializeAws_json1_1EngineVersion(input.EngineVersion, context),
|
|
2225
3571
|
}),
|
|
3572
|
+
...(input.ExecutionRole != null && { ExecutionRole: input.ExecutionRole }),
|
|
2226
3573
|
...(input.PublishCloudWatchMetricsEnabled != null && {
|
|
2227
3574
|
PublishCloudWatchMetricsEnabled: input.PublishCloudWatchMetricsEnabled,
|
|
2228
3575
|
}),
|
|
@@ -2234,19 +3581,27 @@ const serializeAws_json1_1WorkGroupConfiguration = (input, context) => {
|
|
|
2234
3581
|
};
|
|
2235
3582
|
const serializeAws_json1_1WorkGroupConfigurationUpdates = (input, context) => {
|
|
2236
3583
|
return {
|
|
3584
|
+
...(input.AdditionalConfiguration != null && { AdditionalConfiguration: input.AdditionalConfiguration }),
|
|
2237
3585
|
...(input.BytesScannedCutoffPerQuery != null && { BytesScannedCutoffPerQuery: input.BytesScannedCutoffPerQuery }),
|
|
3586
|
+
...(input.CustomerContentEncryptionConfiguration != null && {
|
|
3587
|
+
CustomerContentEncryptionConfiguration: serializeAws_json1_1CustomerContentEncryptionConfiguration(input.CustomerContentEncryptionConfiguration, context),
|
|
3588
|
+
}),
|
|
2238
3589
|
...(input.EnforceWorkGroupConfiguration != null && {
|
|
2239
3590
|
EnforceWorkGroupConfiguration: input.EnforceWorkGroupConfiguration,
|
|
2240
3591
|
}),
|
|
2241
3592
|
...(input.EngineVersion != null && {
|
|
2242
3593
|
EngineVersion: serializeAws_json1_1EngineVersion(input.EngineVersion, context),
|
|
2243
3594
|
}),
|
|
3595
|
+
...(input.ExecutionRole != null && { ExecutionRole: input.ExecutionRole }),
|
|
2244
3596
|
...(input.PublishCloudWatchMetricsEnabled != null && {
|
|
2245
3597
|
PublishCloudWatchMetricsEnabled: input.PublishCloudWatchMetricsEnabled,
|
|
2246
3598
|
}),
|
|
2247
3599
|
...(input.RemoveBytesScannedCutoffPerQuery != null && {
|
|
2248
3600
|
RemoveBytesScannedCutoffPerQuery: input.RemoveBytesScannedCutoffPerQuery,
|
|
2249
3601
|
}),
|
|
3602
|
+
...(input.RemoveCustomerContentEncryptionConfiguration != null && {
|
|
3603
|
+
RemoveCustomerContentEncryptionConfiguration: input.RemoveCustomerContentEncryptionConfiguration,
|
|
3604
|
+
}),
|
|
2250
3605
|
...(input.RequesterPaysEnabled != null && { RequesterPaysEnabled: input.RequesterPaysEnabled }),
|
|
2251
3606
|
...(input.ResultConfigurationUpdates != null && {
|
|
2252
3607
|
ResultConfigurationUpdates: serializeAws_json1_1ResultConfigurationUpdates(input.ResultConfigurationUpdates, context),
|
|
@@ -2258,6 +3613,25 @@ const deserializeAws_json1_1AclConfiguration = (output, context) => {
|
|
|
2258
3613
|
S3AclOption: (0, smithy_client_1.expectString)(output.S3AclOption),
|
|
2259
3614
|
};
|
|
2260
3615
|
};
|
|
3616
|
+
const deserializeAws_json1_1ApplicationDPUSizes = (output, context) => {
|
|
3617
|
+
return {
|
|
3618
|
+
ApplicationRuntimeId: (0, smithy_client_1.expectString)(output.ApplicationRuntimeId),
|
|
3619
|
+
SupportedDPUSizes: output.SupportedDPUSizes != null
|
|
3620
|
+
? deserializeAws_json1_1SupportedDPUSizeList(output.SupportedDPUSizes, context)
|
|
3621
|
+
: undefined,
|
|
3622
|
+
};
|
|
3623
|
+
};
|
|
3624
|
+
const deserializeAws_json1_1ApplicationDPUSizesList = (output, context) => {
|
|
3625
|
+
const retVal = (output || [])
|
|
3626
|
+
.filter((e) => e != null)
|
|
3627
|
+
.map((entry) => {
|
|
3628
|
+
if (entry === null) {
|
|
3629
|
+
return null;
|
|
3630
|
+
}
|
|
3631
|
+
return deserializeAws_json1_1ApplicationDPUSizes(entry, context);
|
|
3632
|
+
});
|
|
3633
|
+
return retVal;
|
|
3634
|
+
};
|
|
2261
3635
|
const deserializeAws_json1_1AthenaError = (output, context) => {
|
|
2262
3636
|
return {
|
|
2263
3637
|
ErrorCategory: (0, smithy_client_1.expectInt32)(output.ErrorCategory),
|
|
@@ -2294,6 +3668,50 @@ const deserializeAws_json1_1BatchGetQueryExecutionOutput = (output, context) =>
|
|
|
2294
3668
|
: undefined,
|
|
2295
3669
|
};
|
|
2296
3670
|
};
|
|
3671
|
+
const deserializeAws_json1_1CalculationResult = (output, context) => {
|
|
3672
|
+
return {
|
|
3673
|
+
ResultS3Uri: (0, smithy_client_1.expectString)(output.ResultS3Uri),
|
|
3674
|
+
ResultType: (0, smithy_client_1.expectString)(output.ResultType),
|
|
3675
|
+
StdErrorS3Uri: (0, smithy_client_1.expectString)(output.StdErrorS3Uri),
|
|
3676
|
+
StdOutS3Uri: (0, smithy_client_1.expectString)(output.StdOutS3Uri),
|
|
3677
|
+
};
|
|
3678
|
+
};
|
|
3679
|
+
const deserializeAws_json1_1CalculationsList = (output, context) => {
|
|
3680
|
+
const retVal = (output || [])
|
|
3681
|
+
.filter((e) => e != null)
|
|
3682
|
+
.map((entry) => {
|
|
3683
|
+
if (entry === null) {
|
|
3684
|
+
return null;
|
|
3685
|
+
}
|
|
3686
|
+
return deserializeAws_json1_1CalculationSummary(entry, context);
|
|
3687
|
+
});
|
|
3688
|
+
return retVal;
|
|
3689
|
+
};
|
|
3690
|
+
const deserializeAws_json1_1CalculationStatistics = (output, context) => {
|
|
3691
|
+
return {
|
|
3692
|
+
DpuExecutionInMillis: (0, smithy_client_1.expectLong)(output.DpuExecutionInMillis),
|
|
3693
|
+
Progress: (0, smithy_client_1.expectString)(output.Progress),
|
|
3694
|
+
};
|
|
3695
|
+
};
|
|
3696
|
+
const deserializeAws_json1_1CalculationStatus = (output, context) => {
|
|
3697
|
+
return {
|
|
3698
|
+
CompletionDateTime: output.CompletionDateTime != null
|
|
3699
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CompletionDateTime)))
|
|
3700
|
+
: undefined,
|
|
3701
|
+
State: (0, smithy_client_1.expectString)(output.State),
|
|
3702
|
+
StateChangeReason: (0, smithy_client_1.expectString)(output.StateChangeReason),
|
|
3703
|
+
SubmissionDateTime: output.SubmissionDateTime != null
|
|
3704
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.SubmissionDateTime)))
|
|
3705
|
+
: undefined,
|
|
3706
|
+
};
|
|
3707
|
+
};
|
|
3708
|
+
const deserializeAws_json1_1CalculationSummary = (output, context) => {
|
|
3709
|
+
return {
|
|
3710
|
+
CalculationExecutionId: (0, smithy_client_1.expectString)(output.CalculationExecutionId),
|
|
3711
|
+
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
3712
|
+
Status: output.Status != null ? deserializeAws_json1_1CalculationStatus(output.Status, context) : undefined,
|
|
3713
|
+
};
|
|
3714
|
+
};
|
|
2297
3715
|
const deserializeAws_json1_1Column = (output, context) => {
|
|
2298
3716
|
return {
|
|
2299
3717
|
Comment: (0, smithy_client_1.expectString)(output.Comment),
|
|
@@ -2345,12 +3763,29 @@ const deserializeAws_json1_1CreateNamedQueryOutput = (output, context) => {
|
|
|
2345
3763
|
NamedQueryId: (0, smithy_client_1.expectString)(output.NamedQueryId),
|
|
2346
3764
|
};
|
|
2347
3765
|
};
|
|
3766
|
+
const deserializeAws_json1_1CreateNotebookOutput = (output, context) => {
|
|
3767
|
+
return {
|
|
3768
|
+
NotebookId: (0, smithy_client_1.expectString)(output.NotebookId),
|
|
3769
|
+
};
|
|
3770
|
+
};
|
|
2348
3771
|
const deserializeAws_json1_1CreatePreparedStatementOutput = (output, context) => {
|
|
2349
3772
|
return {};
|
|
2350
3773
|
};
|
|
3774
|
+
const deserializeAws_json1_1CreatePresignedNotebookUrlResponse = (output, context) => {
|
|
3775
|
+
return {
|
|
3776
|
+
AuthToken: (0, smithy_client_1.expectString)(output.AuthToken),
|
|
3777
|
+
AuthTokenExpirationTime: (0, smithy_client_1.expectLong)(output.AuthTokenExpirationTime),
|
|
3778
|
+
NotebookUrl: (0, smithy_client_1.expectString)(output.NotebookUrl),
|
|
3779
|
+
};
|
|
3780
|
+
};
|
|
2351
3781
|
const deserializeAws_json1_1CreateWorkGroupOutput = (output, context) => {
|
|
2352
3782
|
return {};
|
|
2353
3783
|
};
|
|
3784
|
+
const deserializeAws_json1_1CustomerContentEncryptionConfiguration = (output, context) => {
|
|
3785
|
+
return {
|
|
3786
|
+
KmsKey: (0, smithy_client_1.expectString)(output.KmsKey),
|
|
3787
|
+
};
|
|
3788
|
+
};
|
|
2354
3789
|
const deserializeAws_json1_1Database = (output, context) => {
|
|
2355
3790
|
return {
|
|
2356
3791
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
@@ -2416,6 +3851,9 @@ const deserializeAws_json1_1DeleteDataCatalogOutput = (output, context) => {
|
|
|
2416
3851
|
const deserializeAws_json1_1DeleteNamedQueryOutput = (output, context) => {
|
|
2417
3852
|
return {};
|
|
2418
3853
|
};
|
|
3854
|
+
const deserializeAws_json1_1DeleteNotebookOutput = (output, context) => {
|
|
3855
|
+
return {};
|
|
3856
|
+
};
|
|
2419
3857
|
const deserializeAws_json1_1DeletePreparedStatementOutput = (output, context) => {
|
|
2420
3858
|
return {};
|
|
2421
3859
|
};
|
|
@@ -2428,6 +3866,16 @@ const deserializeAws_json1_1EncryptionConfiguration = (output, context) => {
|
|
|
2428
3866
|
KmsKey: (0, smithy_client_1.expectString)(output.KmsKey),
|
|
2429
3867
|
};
|
|
2430
3868
|
};
|
|
3869
|
+
const deserializeAws_json1_1EngineConfiguration = (output, context) => {
|
|
3870
|
+
return {
|
|
3871
|
+
AdditionalConfigs: output.AdditionalConfigs != null
|
|
3872
|
+
? deserializeAws_json1_1ParametersMap(output.AdditionalConfigs, context)
|
|
3873
|
+
: undefined,
|
|
3874
|
+
CoordinatorDpuSize: (0, smithy_client_1.expectInt32)(output.CoordinatorDpuSize),
|
|
3875
|
+
DefaultExecutorDpuSize: (0, smithy_client_1.expectInt32)(output.DefaultExecutorDpuSize),
|
|
3876
|
+
MaxConcurrentDpus: (0, smithy_client_1.expectInt32)(output.MaxConcurrentDpus),
|
|
3877
|
+
};
|
|
3878
|
+
};
|
|
2431
3879
|
const deserializeAws_json1_1EngineVersion = (output, context) => {
|
|
2432
3880
|
return {
|
|
2433
3881
|
EffectiveEngineVersion: (0, smithy_client_1.expectString)(output.EffectiveEngineVersion),
|
|
@@ -2456,6 +3904,57 @@ const deserializeAws_json1_1ExecutionParameters = (output, context) => {
|
|
|
2456
3904
|
});
|
|
2457
3905
|
return retVal;
|
|
2458
3906
|
};
|
|
3907
|
+
const deserializeAws_json1_1ExecutorsSummary = (output, context) => {
|
|
3908
|
+
return {
|
|
3909
|
+
ExecutorId: (0, smithy_client_1.expectString)(output.ExecutorId),
|
|
3910
|
+
ExecutorSize: (0, smithy_client_1.expectLong)(output.ExecutorSize),
|
|
3911
|
+
ExecutorState: (0, smithy_client_1.expectString)(output.ExecutorState),
|
|
3912
|
+
ExecutorType: (0, smithy_client_1.expectString)(output.ExecutorType),
|
|
3913
|
+
StartDateTime: (0, smithy_client_1.expectLong)(output.StartDateTime),
|
|
3914
|
+
TerminationDateTime: (0, smithy_client_1.expectLong)(output.TerminationDateTime),
|
|
3915
|
+
};
|
|
3916
|
+
};
|
|
3917
|
+
const deserializeAws_json1_1ExecutorsSummaryList = (output, context) => {
|
|
3918
|
+
const retVal = (output || [])
|
|
3919
|
+
.filter((e) => e != null)
|
|
3920
|
+
.map((entry) => {
|
|
3921
|
+
if (entry === null) {
|
|
3922
|
+
return null;
|
|
3923
|
+
}
|
|
3924
|
+
return deserializeAws_json1_1ExecutorsSummary(entry, context);
|
|
3925
|
+
});
|
|
3926
|
+
return retVal;
|
|
3927
|
+
};
|
|
3928
|
+
const deserializeAws_json1_1ExportNotebookOutput = (output, context) => {
|
|
3929
|
+
return {
|
|
3930
|
+
NotebookMetadata: output.NotebookMetadata != null
|
|
3931
|
+
? deserializeAws_json1_1NotebookMetadata(output.NotebookMetadata, context)
|
|
3932
|
+
: undefined,
|
|
3933
|
+
Payload: (0, smithy_client_1.expectString)(output.Payload),
|
|
3934
|
+
};
|
|
3935
|
+
};
|
|
3936
|
+
const deserializeAws_json1_1GetCalculationExecutionCodeResponse = (output, context) => {
|
|
3937
|
+
return {
|
|
3938
|
+
CodeBlock: (0, smithy_client_1.expectString)(output.CodeBlock),
|
|
3939
|
+
};
|
|
3940
|
+
};
|
|
3941
|
+
const deserializeAws_json1_1GetCalculationExecutionResponse = (output, context) => {
|
|
3942
|
+
return {
|
|
3943
|
+
CalculationExecutionId: (0, smithy_client_1.expectString)(output.CalculationExecutionId),
|
|
3944
|
+
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
3945
|
+
Result: output.Result != null ? deserializeAws_json1_1CalculationResult(output.Result, context) : undefined,
|
|
3946
|
+
SessionId: (0, smithy_client_1.expectString)(output.SessionId),
|
|
3947
|
+
Statistics: output.Statistics != null ? deserializeAws_json1_1CalculationStatistics(output.Statistics, context) : undefined,
|
|
3948
|
+
Status: output.Status != null ? deserializeAws_json1_1CalculationStatus(output.Status, context) : undefined,
|
|
3949
|
+
WorkingDirectory: (0, smithy_client_1.expectString)(output.WorkingDirectory),
|
|
3950
|
+
};
|
|
3951
|
+
};
|
|
3952
|
+
const deserializeAws_json1_1GetCalculationExecutionStatusResponse = (output, context) => {
|
|
3953
|
+
return {
|
|
3954
|
+
Statistics: output.Statistics != null ? deserializeAws_json1_1CalculationStatistics(output.Statistics, context) : undefined,
|
|
3955
|
+
Status: output.Status != null ? deserializeAws_json1_1CalculationStatus(output.Status, context) : undefined,
|
|
3956
|
+
};
|
|
3957
|
+
};
|
|
2459
3958
|
const deserializeAws_json1_1GetDatabaseOutput = (output, context) => {
|
|
2460
3959
|
return {
|
|
2461
3960
|
Database: output.Database != null ? deserializeAws_json1_1Database(output.Database, context) : undefined,
|
|
@@ -2471,6 +3970,13 @@ const deserializeAws_json1_1GetNamedQueryOutput = (output, context) => {
|
|
|
2471
3970
|
NamedQuery: output.NamedQuery != null ? deserializeAws_json1_1NamedQuery(output.NamedQuery, context) : undefined,
|
|
2472
3971
|
};
|
|
2473
3972
|
};
|
|
3973
|
+
const deserializeAws_json1_1GetNotebookMetadataOutput = (output, context) => {
|
|
3974
|
+
return {
|
|
3975
|
+
NotebookMetadata: output.NotebookMetadata != null
|
|
3976
|
+
? deserializeAws_json1_1NotebookMetadata(output.NotebookMetadata, context)
|
|
3977
|
+
: undefined,
|
|
3978
|
+
};
|
|
3979
|
+
};
|
|
2474
3980
|
const deserializeAws_json1_1GetPreparedStatementOutput = (output, context) => {
|
|
2475
3981
|
return {
|
|
2476
3982
|
PreparedStatement: output.PreparedStatement != null
|
|
@@ -2497,6 +4003,29 @@ const deserializeAws_json1_1GetQueryRuntimeStatisticsOutput = (output, context)
|
|
|
2497
4003
|
: undefined,
|
|
2498
4004
|
};
|
|
2499
4005
|
};
|
|
4006
|
+
const deserializeAws_json1_1GetSessionResponse = (output, context) => {
|
|
4007
|
+
return {
|
|
4008
|
+
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
4009
|
+
EngineConfiguration: output.EngineConfiguration != null
|
|
4010
|
+
? deserializeAws_json1_1EngineConfiguration(output.EngineConfiguration, context)
|
|
4011
|
+
: undefined,
|
|
4012
|
+
EngineVersion: (0, smithy_client_1.expectString)(output.EngineVersion),
|
|
4013
|
+
NotebookVersion: (0, smithy_client_1.expectString)(output.NotebookVersion),
|
|
4014
|
+
SessionConfiguration: output.SessionConfiguration != null
|
|
4015
|
+
? deserializeAws_json1_1SessionConfiguration(output.SessionConfiguration, context)
|
|
4016
|
+
: undefined,
|
|
4017
|
+
SessionId: (0, smithy_client_1.expectString)(output.SessionId),
|
|
4018
|
+
Statistics: output.Statistics != null ? deserializeAws_json1_1SessionStatistics(output.Statistics, context) : undefined,
|
|
4019
|
+
Status: output.Status != null ? deserializeAws_json1_1SessionStatus(output.Status, context) : undefined,
|
|
4020
|
+
WorkGroup: (0, smithy_client_1.expectString)(output.WorkGroup),
|
|
4021
|
+
};
|
|
4022
|
+
};
|
|
4023
|
+
const deserializeAws_json1_1GetSessionStatusResponse = (output, context) => {
|
|
4024
|
+
return {
|
|
4025
|
+
SessionId: (0, smithy_client_1.expectString)(output.SessionId),
|
|
4026
|
+
Status: output.Status != null ? deserializeAws_json1_1SessionStatus(output.Status, context) : undefined,
|
|
4027
|
+
};
|
|
4028
|
+
};
|
|
2500
4029
|
const deserializeAws_json1_1GetTableMetadataOutput = (output, context) => {
|
|
2501
4030
|
return {
|
|
2502
4031
|
TableMetadata: output.TableMetadata != null ? deserializeAws_json1_1TableMetadata(output.TableMetadata, context) : undefined,
|
|
@@ -2507,6 +4036,11 @@ const deserializeAws_json1_1GetWorkGroupOutput = (output, context) => {
|
|
|
2507
4036
|
WorkGroup: output.WorkGroup != null ? deserializeAws_json1_1WorkGroup(output.WorkGroup, context) : undefined,
|
|
2508
4037
|
};
|
|
2509
4038
|
};
|
|
4039
|
+
const deserializeAws_json1_1ImportNotebookOutput = (output, context) => {
|
|
4040
|
+
return {
|
|
4041
|
+
NotebookId: (0, smithy_client_1.expectString)(output.NotebookId),
|
|
4042
|
+
};
|
|
4043
|
+
};
|
|
2510
4044
|
const deserializeAws_json1_1InternalServerException = (output, context) => {
|
|
2511
4045
|
return {
|
|
2512
4046
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
@@ -2518,6 +4052,20 @@ const deserializeAws_json1_1InvalidRequestException = (output, context) => {
|
|
|
2518
4052
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
2519
4053
|
};
|
|
2520
4054
|
};
|
|
4055
|
+
const deserializeAws_json1_1ListApplicationDPUSizesOutput = (output, context) => {
|
|
4056
|
+
return {
|
|
4057
|
+
ApplicationDPUSizes: output.ApplicationDPUSizes != null
|
|
4058
|
+
? deserializeAws_json1_1ApplicationDPUSizesList(output.ApplicationDPUSizes, context)
|
|
4059
|
+
: undefined,
|
|
4060
|
+
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4061
|
+
};
|
|
4062
|
+
};
|
|
4063
|
+
const deserializeAws_json1_1ListCalculationExecutionsResponse = (output, context) => {
|
|
4064
|
+
return {
|
|
4065
|
+
Calculations: output.Calculations != null ? deserializeAws_json1_1CalculationsList(output.Calculations, context) : undefined,
|
|
4066
|
+
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4067
|
+
};
|
|
4068
|
+
};
|
|
2521
4069
|
const deserializeAws_json1_1ListDatabasesOutput = (output, context) => {
|
|
2522
4070
|
return {
|
|
2523
4071
|
DatabaseList: output.DatabaseList != null ? deserializeAws_json1_1DatabaseList(output.DatabaseList, context) : undefined,
|
|
@@ -2540,12 +4088,37 @@ const deserializeAws_json1_1ListEngineVersionsOutput = (output, context) => {
|
|
|
2540
4088
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
2541
4089
|
};
|
|
2542
4090
|
};
|
|
4091
|
+
const deserializeAws_json1_1ListExecutorsResponse = (output, context) => {
|
|
4092
|
+
return {
|
|
4093
|
+
ExecutorsSummary: output.ExecutorsSummary != null
|
|
4094
|
+
? deserializeAws_json1_1ExecutorsSummaryList(output.ExecutorsSummary, context)
|
|
4095
|
+
: undefined,
|
|
4096
|
+
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4097
|
+
SessionId: (0, smithy_client_1.expectString)(output.SessionId),
|
|
4098
|
+
};
|
|
4099
|
+
};
|
|
2543
4100
|
const deserializeAws_json1_1ListNamedQueriesOutput = (output, context) => {
|
|
2544
4101
|
return {
|
|
2545
4102
|
NamedQueryIds: output.NamedQueryIds != null ? deserializeAws_json1_1NamedQueryIdList(output.NamedQueryIds, context) : undefined,
|
|
2546
4103
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
2547
4104
|
};
|
|
2548
4105
|
};
|
|
4106
|
+
const deserializeAws_json1_1ListNotebookMetadataOutput = (output, context) => {
|
|
4107
|
+
return {
|
|
4108
|
+
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4109
|
+
NotebookMetadataList: output.NotebookMetadataList != null
|
|
4110
|
+
? deserializeAws_json1_1NotebookMetadataArray(output.NotebookMetadataList, context)
|
|
4111
|
+
: undefined,
|
|
4112
|
+
};
|
|
4113
|
+
};
|
|
4114
|
+
const deserializeAws_json1_1ListNotebookSessionsResponse = (output, context) => {
|
|
4115
|
+
return {
|
|
4116
|
+
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4117
|
+
NotebookSessionsList: output.NotebookSessionsList != null
|
|
4118
|
+
? deserializeAws_json1_1NotebookSessionsList(output.NotebookSessionsList, context)
|
|
4119
|
+
: undefined,
|
|
4120
|
+
};
|
|
4121
|
+
};
|
|
2549
4122
|
const deserializeAws_json1_1ListPreparedStatementsOutput = (output, context) => {
|
|
2550
4123
|
return {
|
|
2551
4124
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
@@ -2562,6 +4135,12 @@ const deserializeAws_json1_1ListQueryExecutionsOutput = (output, context) => {
|
|
|
2562
4135
|
: undefined,
|
|
2563
4136
|
};
|
|
2564
4137
|
};
|
|
4138
|
+
const deserializeAws_json1_1ListSessionsResponse = (output, context) => {
|
|
4139
|
+
return {
|
|
4140
|
+
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
4141
|
+
Sessions: output.Sessions != null ? deserializeAws_json1_1SessionsList(output.Sessions, context) : undefined,
|
|
4142
|
+
};
|
|
4143
|
+
};
|
|
2565
4144
|
const deserializeAws_json1_1ListTableMetadataOutput = (output, context) => {
|
|
2566
4145
|
return {
|
|
2567
4146
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
@@ -2619,6 +4198,50 @@ const deserializeAws_json1_1NamedQueryList = (output, context) => {
|
|
|
2619
4198
|
});
|
|
2620
4199
|
return retVal;
|
|
2621
4200
|
};
|
|
4201
|
+
const deserializeAws_json1_1NotebookMetadata = (output, context) => {
|
|
4202
|
+
return {
|
|
4203
|
+
CreationTime: output.CreationTime != null
|
|
4204
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
4205
|
+
: undefined,
|
|
4206
|
+
LastModifiedTime: output.LastModifiedTime != null
|
|
4207
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
|
|
4208
|
+
: undefined,
|
|
4209
|
+
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
4210
|
+
NotebookId: (0, smithy_client_1.expectString)(output.NotebookId),
|
|
4211
|
+
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
4212
|
+
WorkGroup: (0, smithy_client_1.expectString)(output.WorkGroup),
|
|
4213
|
+
};
|
|
4214
|
+
};
|
|
4215
|
+
const deserializeAws_json1_1NotebookMetadataArray = (output, context) => {
|
|
4216
|
+
const retVal = (output || [])
|
|
4217
|
+
.filter((e) => e != null)
|
|
4218
|
+
.map((entry) => {
|
|
4219
|
+
if (entry === null) {
|
|
4220
|
+
return null;
|
|
4221
|
+
}
|
|
4222
|
+
return deserializeAws_json1_1NotebookMetadata(entry, context);
|
|
4223
|
+
});
|
|
4224
|
+
return retVal;
|
|
4225
|
+
};
|
|
4226
|
+
const deserializeAws_json1_1NotebookSessionsList = (output, context) => {
|
|
4227
|
+
const retVal = (output || [])
|
|
4228
|
+
.filter((e) => e != null)
|
|
4229
|
+
.map((entry) => {
|
|
4230
|
+
if (entry === null) {
|
|
4231
|
+
return null;
|
|
4232
|
+
}
|
|
4233
|
+
return deserializeAws_json1_1NotebookSessionSummary(entry, context);
|
|
4234
|
+
});
|
|
4235
|
+
return retVal;
|
|
4236
|
+
};
|
|
4237
|
+
const deserializeAws_json1_1NotebookSessionSummary = (output, context) => {
|
|
4238
|
+
return {
|
|
4239
|
+
CreationTime: output.CreationTime != null
|
|
4240
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
4241
|
+
: undefined,
|
|
4242
|
+
SessionId: (0, smithy_client_1.expectString)(output.SessionId),
|
|
4243
|
+
};
|
|
4244
|
+
};
|
|
2622
4245
|
const deserializeAws_json1_1ParametersMap = (output, context) => {
|
|
2623
4246
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2624
4247
|
if (value === null) {
|
|
@@ -2885,11 +4508,86 @@ const deserializeAws_json1_1RowList = (output, context) => {
|
|
|
2885
4508
|
});
|
|
2886
4509
|
return retVal;
|
|
2887
4510
|
};
|
|
4511
|
+
const deserializeAws_json1_1SessionAlreadyExistsException = (output, context) => {
|
|
4512
|
+
return {
|
|
4513
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
4514
|
+
};
|
|
4515
|
+
};
|
|
4516
|
+
const deserializeAws_json1_1SessionConfiguration = (output, context) => {
|
|
4517
|
+
return {
|
|
4518
|
+
EncryptionConfiguration: output.EncryptionConfiguration != null
|
|
4519
|
+
? deserializeAws_json1_1EncryptionConfiguration(output.EncryptionConfiguration, context)
|
|
4520
|
+
: undefined,
|
|
4521
|
+
ExecutionRole: (0, smithy_client_1.expectString)(output.ExecutionRole),
|
|
4522
|
+
IdleTimeoutSeconds: (0, smithy_client_1.expectLong)(output.IdleTimeoutSeconds),
|
|
4523
|
+
WorkingDirectory: (0, smithy_client_1.expectString)(output.WorkingDirectory),
|
|
4524
|
+
};
|
|
4525
|
+
};
|
|
4526
|
+
const deserializeAws_json1_1SessionsList = (output, context) => {
|
|
4527
|
+
const retVal = (output || [])
|
|
4528
|
+
.filter((e) => e != null)
|
|
4529
|
+
.map((entry) => {
|
|
4530
|
+
if (entry === null) {
|
|
4531
|
+
return null;
|
|
4532
|
+
}
|
|
4533
|
+
return deserializeAws_json1_1SessionSummary(entry, context);
|
|
4534
|
+
});
|
|
4535
|
+
return retVal;
|
|
4536
|
+
};
|
|
4537
|
+
const deserializeAws_json1_1SessionStatistics = (output, context) => {
|
|
4538
|
+
return {
|
|
4539
|
+
DpuExecutionInMillis: (0, smithy_client_1.expectLong)(output.DpuExecutionInMillis),
|
|
4540
|
+
};
|
|
4541
|
+
};
|
|
4542
|
+
const deserializeAws_json1_1SessionStatus = (output, context) => {
|
|
4543
|
+
return {
|
|
4544
|
+
EndDateTime: output.EndDateTime != null
|
|
4545
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndDateTime)))
|
|
4546
|
+
: undefined,
|
|
4547
|
+
IdleSinceDateTime: output.IdleSinceDateTime != null
|
|
4548
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.IdleSinceDateTime)))
|
|
4549
|
+
: undefined,
|
|
4550
|
+
LastModifiedDateTime: output.LastModifiedDateTime != null
|
|
4551
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedDateTime)))
|
|
4552
|
+
: undefined,
|
|
4553
|
+
StartDateTime: output.StartDateTime != null
|
|
4554
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartDateTime)))
|
|
4555
|
+
: undefined,
|
|
4556
|
+
State: (0, smithy_client_1.expectString)(output.State),
|
|
4557
|
+
StateChangeReason: (0, smithy_client_1.expectString)(output.StateChangeReason),
|
|
4558
|
+
};
|
|
4559
|
+
};
|
|
4560
|
+
const deserializeAws_json1_1SessionSummary = (output, context) => {
|
|
4561
|
+
return {
|
|
4562
|
+
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
4563
|
+
EngineVersion: output.EngineVersion != null ? deserializeAws_json1_1EngineVersion(output.EngineVersion, context) : undefined,
|
|
4564
|
+
NotebookVersion: (0, smithy_client_1.expectString)(output.NotebookVersion),
|
|
4565
|
+
SessionId: (0, smithy_client_1.expectString)(output.SessionId),
|
|
4566
|
+
Status: output.Status != null ? deserializeAws_json1_1SessionStatus(output.Status, context) : undefined,
|
|
4567
|
+
};
|
|
4568
|
+
};
|
|
4569
|
+
const deserializeAws_json1_1StartCalculationExecutionResponse = (output, context) => {
|
|
4570
|
+
return {
|
|
4571
|
+
CalculationExecutionId: (0, smithy_client_1.expectString)(output.CalculationExecutionId),
|
|
4572
|
+
State: (0, smithy_client_1.expectString)(output.State),
|
|
4573
|
+
};
|
|
4574
|
+
};
|
|
2888
4575
|
const deserializeAws_json1_1StartQueryExecutionOutput = (output, context) => {
|
|
2889
4576
|
return {
|
|
2890
4577
|
QueryExecutionId: (0, smithy_client_1.expectString)(output.QueryExecutionId),
|
|
2891
4578
|
};
|
|
2892
4579
|
};
|
|
4580
|
+
const deserializeAws_json1_1StartSessionResponse = (output, context) => {
|
|
4581
|
+
return {
|
|
4582
|
+
SessionId: (0, smithy_client_1.expectString)(output.SessionId),
|
|
4583
|
+
State: (0, smithy_client_1.expectString)(output.State),
|
|
4584
|
+
};
|
|
4585
|
+
};
|
|
4586
|
+
const deserializeAws_json1_1StopCalculationExecutionResponse = (output, context) => {
|
|
4587
|
+
return {
|
|
4588
|
+
State: (0, smithy_client_1.expectString)(output.State),
|
|
4589
|
+
};
|
|
4590
|
+
};
|
|
2893
4591
|
const deserializeAws_json1_1StopQueryExecutionOutput = (output, context) => {
|
|
2894
4592
|
return {};
|
|
2895
4593
|
};
|
|
@@ -2904,6 +4602,17 @@ const deserializeAws_json1_1StringList = (output, context) => {
|
|
|
2904
4602
|
});
|
|
2905
4603
|
return retVal;
|
|
2906
4604
|
};
|
|
4605
|
+
const deserializeAws_json1_1SupportedDPUSizeList = (output, context) => {
|
|
4606
|
+
const retVal = (output || [])
|
|
4607
|
+
.filter((e) => e != null)
|
|
4608
|
+
.map((entry) => {
|
|
4609
|
+
if (entry === null) {
|
|
4610
|
+
return null;
|
|
4611
|
+
}
|
|
4612
|
+
return (0, smithy_client_1.expectInt32)(entry);
|
|
4613
|
+
});
|
|
4614
|
+
return retVal;
|
|
4615
|
+
};
|
|
2907
4616
|
const deserializeAws_json1_1TableMetadata = (output, context) => {
|
|
2908
4617
|
return {
|
|
2909
4618
|
Columns: output.Columns != null ? deserializeAws_json1_1ColumnList(output.Columns, context) : undefined,
|
|
@@ -2948,6 +4657,11 @@ const deserializeAws_json1_1TagList = (output, context) => {
|
|
|
2948
4657
|
const deserializeAws_json1_1TagResourceOutput = (output, context) => {
|
|
2949
4658
|
return {};
|
|
2950
4659
|
};
|
|
4660
|
+
const deserializeAws_json1_1TerminateSessionResponse = (output, context) => {
|
|
4661
|
+
return {
|
|
4662
|
+
State: (0, smithy_client_1.expectString)(output.State),
|
|
4663
|
+
};
|
|
4664
|
+
};
|
|
2951
4665
|
const deserializeAws_json1_1TooManyRequestsException = (output, context) => {
|
|
2952
4666
|
return {
|
|
2953
4667
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
@@ -3017,6 +4731,12 @@ const deserializeAws_json1_1UpdateDataCatalogOutput = (output, context) => {
|
|
|
3017
4731
|
const deserializeAws_json1_1UpdateNamedQueryOutput = (output, context) => {
|
|
3018
4732
|
return {};
|
|
3019
4733
|
};
|
|
4734
|
+
const deserializeAws_json1_1UpdateNotebookMetadataOutput = (output, context) => {
|
|
4735
|
+
return {};
|
|
4736
|
+
};
|
|
4737
|
+
const deserializeAws_json1_1UpdateNotebookOutput = (output, context) => {
|
|
4738
|
+
return {};
|
|
4739
|
+
};
|
|
3020
4740
|
const deserializeAws_json1_1UpdatePreparedStatementOutput = (output, context) => {
|
|
3021
4741
|
return {};
|
|
3022
4742
|
};
|
|
@@ -3038,9 +4758,14 @@ const deserializeAws_json1_1WorkGroup = (output, context) => {
|
|
|
3038
4758
|
};
|
|
3039
4759
|
const deserializeAws_json1_1WorkGroupConfiguration = (output, context) => {
|
|
3040
4760
|
return {
|
|
4761
|
+
AdditionalConfiguration: (0, smithy_client_1.expectString)(output.AdditionalConfiguration),
|
|
3041
4762
|
BytesScannedCutoffPerQuery: (0, smithy_client_1.expectLong)(output.BytesScannedCutoffPerQuery),
|
|
4763
|
+
CustomerContentEncryptionConfiguration: output.CustomerContentEncryptionConfiguration != null
|
|
4764
|
+
? deserializeAws_json1_1CustomerContentEncryptionConfiguration(output.CustomerContentEncryptionConfiguration, context)
|
|
4765
|
+
: undefined,
|
|
3042
4766
|
EnforceWorkGroupConfiguration: (0, smithy_client_1.expectBoolean)(output.EnforceWorkGroupConfiguration),
|
|
3043
4767
|
EngineVersion: output.EngineVersion != null ? deserializeAws_json1_1EngineVersion(output.EngineVersion, context) : undefined,
|
|
4768
|
+
ExecutionRole: (0, smithy_client_1.expectString)(output.ExecutionRole),
|
|
3044
4769
|
PublishCloudWatchMetricsEnabled: (0, smithy_client_1.expectBoolean)(output.PublishCloudWatchMetricsEnabled),
|
|
3045
4770
|
RequesterPaysEnabled: (0, smithy_client_1.expectBoolean)(output.RequesterPaysEnabled),
|
|
3046
4771
|
ResultConfiguration: output.ResultConfiguration != null
|