@aws-sdk/client-athena 3.218.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 +1 -1
|
@@ -2,7 +2,7 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
|
2
2
|
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
4
|
import { AthenaServiceException as __BaseException } from "../models/AthenaServiceException";
|
|
5
|
-
import { InternalServerException, InvalidRequestException, MetadataException, ResourceNotFoundException, TooManyRequestsException, } from "../models/models_0";
|
|
5
|
+
import { InternalServerException, InvalidRequestException, MetadataException, ResourceNotFoundException, SessionAlreadyExistsException, TooManyRequestsException, } from "../models/models_0";
|
|
6
6
|
export const serializeAws_json1_1BatchGetNamedQueryCommand = async (input, context) => {
|
|
7
7
|
const headers = {
|
|
8
8
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -48,6 +48,15 @@ export const serializeAws_json1_1CreateNamedQueryCommand = async (input, context
|
|
|
48
48
|
body = JSON.stringify(serializeAws_json1_1CreateNamedQueryInput(input, context));
|
|
49
49
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
50
50
|
};
|
|
51
|
+
export const serializeAws_json1_1CreateNotebookCommand = async (input, context) => {
|
|
52
|
+
const headers = {
|
|
53
|
+
"content-type": "application/x-amz-json-1.1",
|
|
54
|
+
"x-amz-target": "AmazonAthena.CreateNotebook",
|
|
55
|
+
};
|
|
56
|
+
let body;
|
|
57
|
+
body = JSON.stringify(serializeAws_json1_1CreateNotebookInput(input, context));
|
|
58
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
59
|
+
};
|
|
51
60
|
export const serializeAws_json1_1CreatePreparedStatementCommand = async (input, context) => {
|
|
52
61
|
const headers = {
|
|
53
62
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -57,6 +66,15 @@ export const serializeAws_json1_1CreatePreparedStatementCommand = async (input,
|
|
|
57
66
|
body = JSON.stringify(serializeAws_json1_1CreatePreparedStatementInput(input, context));
|
|
58
67
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
59
68
|
};
|
|
69
|
+
export const serializeAws_json1_1CreatePresignedNotebookUrlCommand = async (input, context) => {
|
|
70
|
+
const headers = {
|
|
71
|
+
"content-type": "application/x-amz-json-1.1",
|
|
72
|
+
"x-amz-target": "AmazonAthena.CreatePresignedNotebookUrl",
|
|
73
|
+
};
|
|
74
|
+
let body;
|
|
75
|
+
body = JSON.stringify(serializeAws_json1_1CreatePresignedNotebookUrlRequest(input, context));
|
|
76
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
|
+
};
|
|
60
78
|
export const serializeAws_json1_1CreateWorkGroupCommand = async (input, context) => {
|
|
61
79
|
const headers = {
|
|
62
80
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -84,6 +102,15 @@ export const serializeAws_json1_1DeleteNamedQueryCommand = async (input, context
|
|
|
84
102
|
body = JSON.stringify(serializeAws_json1_1DeleteNamedQueryInput(input, context));
|
|
85
103
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
86
104
|
};
|
|
105
|
+
export const serializeAws_json1_1DeleteNotebookCommand = async (input, context) => {
|
|
106
|
+
const headers = {
|
|
107
|
+
"content-type": "application/x-amz-json-1.1",
|
|
108
|
+
"x-amz-target": "AmazonAthena.DeleteNotebook",
|
|
109
|
+
};
|
|
110
|
+
let body;
|
|
111
|
+
body = JSON.stringify(serializeAws_json1_1DeleteNotebookInput(input, context));
|
|
112
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
113
|
+
};
|
|
87
114
|
export const serializeAws_json1_1DeletePreparedStatementCommand = async (input, context) => {
|
|
88
115
|
const headers = {
|
|
89
116
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -102,6 +129,42 @@ export const serializeAws_json1_1DeleteWorkGroupCommand = async (input, context)
|
|
|
102
129
|
body = JSON.stringify(serializeAws_json1_1DeleteWorkGroupInput(input, context));
|
|
103
130
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
104
131
|
};
|
|
132
|
+
export const serializeAws_json1_1ExportNotebookCommand = async (input, context) => {
|
|
133
|
+
const headers = {
|
|
134
|
+
"content-type": "application/x-amz-json-1.1",
|
|
135
|
+
"x-amz-target": "AmazonAthena.ExportNotebook",
|
|
136
|
+
};
|
|
137
|
+
let body;
|
|
138
|
+
body = JSON.stringify(serializeAws_json1_1ExportNotebookInput(input, context));
|
|
139
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
140
|
+
};
|
|
141
|
+
export const serializeAws_json1_1GetCalculationExecutionCommand = async (input, context) => {
|
|
142
|
+
const headers = {
|
|
143
|
+
"content-type": "application/x-amz-json-1.1",
|
|
144
|
+
"x-amz-target": "AmazonAthena.GetCalculationExecution",
|
|
145
|
+
};
|
|
146
|
+
let body;
|
|
147
|
+
body = JSON.stringify(serializeAws_json1_1GetCalculationExecutionRequest(input, context));
|
|
148
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
149
|
+
};
|
|
150
|
+
export const serializeAws_json1_1GetCalculationExecutionCodeCommand = async (input, context) => {
|
|
151
|
+
const headers = {
|
|
152
|
+
"content-type": "application/x-amz-json-1.1",
|
|
153
|
+
"x-amz-target": "AmazonAthena.GetCalculationExecutionCode",
|
|
154
|
+
};
|
|
155
|
+
let body;
|
|
156
|
+
body = JSON.stringify(serializeAws_json1_1GetCalculationExecutionCodeRequest(input, context));
|
|
157
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
158
|
+
};
|
|
159
|
+
export const serializeAws_json1_1GetCalculationExecutionStatusCommand = async (input, context) => {
|
|
160
|
+
const headers = {
|
|
161
|
+
"content-type": "application/x-amz-json-1.1",
|
|
162
|
+
"x-amz-target": "AmazonAthena.GetCalculationExecutionStatus",
|
|
163
|
+
};
|
|
164
|
+
let body;
|
|
165
|
+
body = JSON.stringify(serializeAws_json1_1GetCalculationExecutionStatusRequest(input, context));
|
|
166
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
167
|
+
};
|
|
105
168
|
export const serializeAws_json1_1GetDatabaseCommand = async (input, context) => {
|
|
106
169
|
const headers = {
|
|
107
170
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -129,6 +192,15 @@ export const serializeAws_json1_1GetNamedQueryCommand = async (input, context) =
|
|
|
129
192
|
body = JSON.stringify(serializeAws_json1_1GetNamedQueryInput(input, context));
|
|
130
193
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
131
194
|
};
|
|
195
|
+
export const serializeAws_json1_1GetNotebookMetadataCommand = async (input, context) => {
|
|
196
|
+
const headers = {
|
|
197
|
+
"content-type": "application/x-amz-json-1.1",
|
|
198
|
+
"x-amz-target": "AmazonAthena.GetNotebookMetadata",
|
|
199
|
+
};
|
|
200
|
+
let body;
|
|
201
|
+
body = JSON.stringify(serializeAws_json1_1GetNotebookMetadataInput(input, context));
|
|
202
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
203
|
+
};
|
|
132
204
|
export const serializeAws_json1_1GetPreparedStatementCommand = async (input, context) => {
|
|
133
205
|
const headers = {
|
|
134
206
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -165,6 +237,24 @@ export const serializeAws_json1_1GetQueryRuntimeStatisticsCommand = async (input
|
|
|
165
237
|
body = JSON.stringify(serializeAws_json1_1GetQueryRuntimeStatisticsInput(input, context));
|
|
166
238
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
167
239
|
};
|
|
240
|
+
export const serializeAws_json1_1GetSessionCommand = async (input, context) => {
|
|
241
|
+
const headers = {
|
|
242
|
+
"content-type": "application/x-amz-json-1.1",
|
|
243
|
+
"x-amz-target": "AmazonAthena.GetSession",
|
|
244
|
+
};
|
|
245
|
+
let body;
|
|
246
|
+
body = JSON.stringify(serializeAws_json1_1GetSessionRequest(input, context));
|
|
247
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
248
|
+
};
|
|
249
|
+
export const serializeAws_json1_1GetSessionStatusCommand = async (input, context) => {
|
|
250
|
+
const headers = {
|
|
251
|
+
"content-type": "application/x-amz-json-1.1",
|
|
252
|
+
"x-amz-target": "AmazonAthena.GetSessionStatus",
|
|
253
|
+
};
|
|
254
|
+
let body;
|
|
255
|
+
body = JSON.stringify(serializeAws_json1_1GetSessionStatusRequest(input, context));
|
|
256
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
257
|
+
};
|
|
168
258
|
export const serializeAws_json1_1GetTableMetadataCommand = async (input, context) => {
|
|
169
259
|
const headers = {
|
|
170
260
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -183,6 +273,33 @@ export const serializeAws_json1_1GetWorkGroupCommand = async (input, context) =>
|
|
|
183
273
|
body = JSON.stringify(serializeAws_json1_1GetWorkGroupInput(input, context));
|
|
184
274
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
185
275
|
};
|
|
276
|
+
export const serializeAws_json1_1ImportNotebookCommand = async (input, context) => {
|
|
277
|
+
const headers = {
|
|
278
|
+
"content-type": "application/x-amz-json-1.1",
|
|
279
|
+
"x-amz-target": "AmazonAthena.ImportNotebook",
|
|
280
|
+
};
|
|
281
|
+
let body;
|
|
282
|
+
body = JSON.stringify(serializeAws_json1_1ImportNotebookInput(input, context));
|
|
283
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
284
|
+
};
|
|
285
|
+
export const serializeAws_json1_1ListApplicationDPUSizesCommand = async (input, context) => {
|
|
286
|
+
const headers = {
|
|
287
|
+
"content-type": "application/x-amz-json-1.1",
|
|
288
|
+
"x-amz-target": "AmazonAthena.ListApplicationDPUSizes",
|
|
289
|
+
};
|
|
290
|
+
let body;
|
|
291
|
+
body = JSON.stringify(serializeAws_json1_1ListApplicationDPUSizesInput(input, context));
|
|
292
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
293
|
+
};
|
|
294
|
+
export const serializeAws_json1_1ListCalculationExecutionsCommand = async (input, context) => {
|
|
295
|
+
const headers = {
|
|
296
|
+
"content-type": "application/x-amz-json-1.1",
|
|
297
|
+
"x-amz-target": "AmazonAthena.ListCalculationExecutions",
|
|
298
|
+
};
|
|
299
|
+
let body;
|
|
300
|
+
body = JSON.stringify(serializeAws_json1_1ListCalculationExecutionsRequest(input, context));
|
|
301
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
302
|
+
};
|
|
186
303
|
export const serializeAws_json1_1ListDatabasesCommand = async (input, context) => {
|
|
187
304
|
const headers = {
|
|
188
305
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -210,6 +327,15 @@ export const serializeAws_json1_1ListEngineVersionsCommand = async (input, conte
|
|
|
210
327
|
body = JSON.stringify(serializeAws_json1_1ListEngineVersionsInput(input, context));
|
|
211
328
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
212
329
|
};
|
|
330
|
+
export const serializeAws_json1_1ListExecutorsCommand = async (input, context) => {
|
|
331
|
+
const headers = {
|
|
332
|
+
"content-type": "application/x-amz-json-1.1",
|
|
333
|
+
"x-amz-target": "AmazonAthena.ListExecutors",
|
|
334
|
+
};
|
|
335
|
+
let body;
|
|
336
|
+
body = JSON.stringify(serializeAws_json1_1ListExecutorsRequest(input, context));
|
|
337
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
338
|
+
};
|
|
213
339
|
export const serializeAws_json1_1ListNamedQueriesCommand = async (input, context) => {
|
|
214
340
|
const headers = {
|
|
215
341
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -219,6 +345,24 @@ export const serializeAws_json1_1ListNamedQueriesCommand = async (input, context
|
|
|
219
345
|
body = JSON.stringify(serializeAws_json1_1ListNamedQueriesInput(input, context));
|
|
220
346
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
221
347
|
};
|
|
348
|
+
export const serializeAws_json1_1ListNotebookMetadataCommand = async (input, context) => {
|
|
349
|
+
const headers = {
|
|
350
|
+
"content-type": "application/x-amz-json-1.1",
|
|
351
|
+
"x-amz-target": "AmazonAthena.ListNotebookMetadata",
|
|
352
|
+
};
|
|
353
|
+
let body;
|
|
354
|
+
body = JSON.stringify(serializeAws_json1_1ListNotebookMetadataInput(input, context));
|
|
355
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
356
|
+
};
|
|
357
|
+
export const serializeAws_json1_1ListNotebookSessionsCommand = async (input, context) => {
|
|
358
|
+
const headers = {
|
|
359
|
+
"content-type": "application/x-amz-json-1.1",
|
|
360
|
+
"x-amz-target": "AmazonAthena.ListNotebookSessions",
|
|
361
|
+
};
|
|
362
|
+
let body;
|
|
363
|
+
body = JSON.stringify(serializeAws_json1_1ListNotebookSessionsRequest(input, context));
|
|
364
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
365
|
+
};
|
|
222
366
|
export const serializeAws_json1_1ListPreparedStatementsCommand = async (input, context) => {
|
|
223
367
|
const headers = {
|
|
224
368
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -237,6 +381,15 @@ export const serializeAws_json1_1ListQueryExecutionsCommand = async (input, cont
|
|
|
237
381
|
body = JSON.stringify(serializeAws_json1_1ListQueryExecutionsInput(input, context));
|
|
238
382
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
239
383
|
};
|
|
384
|
+
export const serializeAws_json1_1ListSessionsCommand = async (input, context) => {
|
|
385
|
+
const headers = {
|
|
386
|
+
"content-type": "application/x-amz-json-1.1",
|
|
387
|
+
"x-amz-target": "AmazonAthena.ListSessions",
|
|
388
|
+
};
|
|
389
|
+
let body;
|
|
390
|
+
body = JSON.stringify(serializeAws_json1_1ListSessionsRequest(input, context));
|
|
391
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
392
|
+
};
|
|
240
393
|
export const serializeAws_json1_1ListTableMetadataCommand = async (input, context) => {
|
|
241
394
|
const headers = {
|
|
242
395
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -264,6 +417,15 @@ export const serializeAws_json1_1ListWorkGroupsCommand = async (input, context)
|
|
|
264
417
|
body = JSON.stringify(serializeAws_json1_1ListWorkGroupsInput(input, context));
|
|
265
418
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
266
419
|
};
|
|
420
|
+
export const serializeAws_json1_1StartCalculationExecutionCommand = async (input, context) => {
|
|
421
|
+
const headers = {
|
|
422
|
+
"content-type": "application/x-amz-json-1.1",
|
|
423
|
+
"x-amz-target": "AmazonAthena.StartCalculationExecution",
|
|
424
|
+
};
|
|
425
|
+
let body;
|
|
426
|
+
body = JSON.stringify(serializeAws_json1_1StartCalculationExecutionRequest(input, context));
|
|
427
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
428
|
+
};
|
|
267
429
|
export const serializeAws_json1_1StartQueryExecutionCommand = async (input, context) => {
|
|
268
430
|
const headers = {
|
|
269
431
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -273,6 +435,24 @@ export const serializeAws_json1_1StartQueryExecutionCommand = async (input, cont
|
|
|
273
435
|
body = JSON.stringify(serializeAws_json1_1StartQueryExecutionInput(input, context));
|
|
274
436
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
275
437
|
};
|
|
438
|
+
export const serializeAws_json1_1StartSessionCommand = async (input, context) => {
|
|
439
|
+
const headers = {
|
|
440
|
+
"content-type": "application/x-amz-json-1.1",
|
|
441
|
+
"x-amz-target": "AmazonAthena.StartSession",
|
|
442
|
+
};
|
|
443
|
+
let body;
|
|
444
|
+
body = JSON.stringify(serializeAws_json1_1StartSessionRequest(input, context));
|
|
445
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
446
|
+
};
|
|
447
|
+
export const serializeAws_json1_1StopCalculationExecutionCommand = async (input, context) => {
|
|
448
|
+
const headers = {
|
|
449
|
+
"content-type": "application/x-amz-json-1.1",
|
|
450
|
+
"x-amz-target": "AmazonAthena.StopCalculationExecution",
|
|
451
|
+
};
|
|
452
|
+
let body;
|
|
453
|
+
body = JSON.stringify(serializeAws_json1_1StopCalculationExecutionRequest(input, context));
|
|
454
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
455
|
+
};
|
|
276
456
|
export const serializeAws_json1_1StopQueryExecutionCommand = async (input, context) => {
|
|
277
457
|
const headers = {
|
|
278
458
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -291,6 +471,15 @@ export const serializeAws_json1_1TagResourceCommand = async (input, context) =>
|
|
|
291
471
|
body = JSON.stringify(serializeAws_json1_1TagResourceInput(input, context));
|
|
292
472
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
293
473
|
};
|
|
474
|
+
export const serializeAws_json1_1TerminateSessionCommand = async (input, context) => {
|
|
475
|
+
const headers = {
|
|
476
|
+
"content-type": "application/x-amz-json-1.1",
|
|
477
|
+
"x-amz-target": "AmazonAthena.TerminateSession",
|
|
478
|
+
};
|
|
479
|
+
let body;
|
|
480
|
+
body = JSON.stringify(serializeAws_json1_1TerminateSessionRequest(input, context));
|
|
481
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
482
|
+
};
|
|
294
483
|
export const serializeAws_json1_1UntagResourceCommand = async (input, context) => {
|
|
295
484
|
const headers = {
|
|
296
485
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -318,6 +507,24 @@ export const serializeAws_json1_1UpdateNamedQueryCommand = async (input, context
|
|
|
318
507
|
body = JSON.stringify(serializeAws_json1_1UpdateNamedQueryInput(input, context));
|
|
319
508
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
320
509
|
};
|
|
510
|
+
export const serializeAws_json1_1UpdateNotebookCommand = async (input, context) => {
|
|
511
|
+
const headers = {
|
|
512
|
+
"content-type": "application/x-amz-json-1.1",
|
|
513
|
+
"x-amz-target": "AmazonAthena.UpdateNotebook",
|
|
514
|
+
};
|
|
515
|
+
let body;
|
|
516
|
+
body = JSON.stringify(serializeAws_json1_1UpdateNotebookInput(input, context));
|
|
517
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
518
|
+
};
|
|
519
|
+
export const serializeAws_json1_1UpdateNotebookMetadataCommand = async (input, context) => {
|
|
520
|
+
const headers = {
|
|
521
|
+
"content-type": "application/x-amz-json-1.1",
|
|
522
|
+
"x-amz-target": "AmazonAthena.UpdateNotebookMetadata",
|
|
523
|
+
};
|
|
524
|
+
let body;
|
|
525
|
+
body = JSON.stringify(serializeAws_json1_1UpdateNotebookMetadataInput(input, context));
|
|
526
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
527
|
+
};
|
|
321
528
|
export const serializeAws_json1_1UpdatePreparedStatementCommand = async (input, context) => {
|
|
322
529
|
const headers = {
|
|
323
530
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -516,20 +723,20 @@ const deserializeAws_json1_1CreateNamedQueryCommandError = async (output, contex
|
|
|
516
723
|
});
|
|
517
724
|
}
|
|
518
725
|
};
|
|
519
|
-
export const
|
|
726
|
+
export const deserializeAws_json1_1CreateNotebookCommand = async (output, context) => {
|
|
520
727
|
if (output.statusCode >= 300) {
|
|
521
|
-
return
|
|
728
|
+
return deserializeAws_json1_1CreateNotebookCommandError(output, context);
|
|
522
729
|
}
|
|
523
730
|
const data = await parseBody(output.body, context);
|
|
524
731
|
let contents = {};
|
|
525
|
-
contents =
|
|
732
|
+
contents = deserializeAws_json1_1CreateNotebookOutput(data, context);
|
|
526
733
|
const response = {
|
|
527
734
|
$metadata: deserializeMetadata(output),
|
|
528
735
|
...contents,
|
|
529
736
|
};
|
|
530
737
|
return Promise.resolve(response);
|
|
531
738
|
};
|
|
532
|
-
const
|
|
739
|
+
const deserializeAws_json1_1CreateNotebookCommandError = async (output, context) => {
|
|
533
740
|
const parsedOutput = {
|
|
534
741
|
...output,
|
|
535
742
|
body: await parseErrorBody(output.body, context),
|
|
@@ -542,6 +749,9 @@ const deserializeAws_json1_1CreatePreparedStatementCommandError = async (output,
|
|
|
542
749
|
case "InvalidRequestException":
|
|
543
750
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
544
751
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
752
|
+
case "TooManyRequestsException":
|
|
753
|
+
case "com.amazonaws.athena#TooManyRequestsException":
|
|
754
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
545
755
|
default:
|
|
546
756
|
const parsedBody = parsedOutput.body;
|
|
547
757
|
throwDefaultError({
|
|
@@ -552,20 +762,20 @@ const deserializeAws_json1_1CreatePreparedStatementCommandError = async (output,
|
|
|
552
762
|
});
|
|
553
763
|
}
|
|
554
764
|
};
|
|
555
|
-
export const
|
|
765
|
+
export const deserializeAws_json1_1CreatePreparedStatementCommand = async (output, context) => {
|
|
556
766
|
if (output.statusCode >= 300) {
|
|
557
|
-
return
|
|
767
|
+
return deserializeAws_json1_1CreatePreparedStatementCommandError(output, context);
|
|
558
768
|
}
|
|
559
769
|
const data = await parseBody(output.body, context);
|
|
560
770
|
let contents = {};
|
|
561
|
-
contents =
|
|
771
|
+
contents = deserializeAws_json1_1CreatePreparedStatementOutput(data, context);
|
|
562
772
|
const response = {
|
|
563
773
|
$metadata: deserializeMetadata(output),
|
|
564
774
|
...contents,
|
|
565
775
|
};
|
|
566
776
|
return Promise.resolve(response);
|
|
567
777
|
};
|
|
568
|
-
const
|
|
778
|
+
const deserializeAws_json1_1CreatePreparedStatementCommandError = async (output, context) => {
|
|
569
779
|
const parsedOutput = {
|
|
570
780
|
...output,
|
|
571
781
|
body: await parseErrorBody(output.body, context),
|
|
@@ -588,20 +798,20 @@ const deserializeAws_json1_1CreateWorkGroupCommandError = async (output, context
|
|
|
588
798
|
});
|
|
589
799
|
}
|
|
590
800
|
};
|
|
591
|
-
export const
|
|
801
|
+
export const deserializeAws_json1_1CreatePresignedNotebookUrlCommand = async (output, context) => {
|
|
592
802
|
if (output.statusCode >= 300) {
|
|
593
|
-
return
|
|
803
|
+
return deserializeAws_json1_1CreatePresignedNotebookUrlCommandError(output, context);
|
|
594
804
|
}
|
|
595
805
|
const data = await parseBody(output.body, context);
|
|
596
806
|
let contents = {};
|
|
597
|
-
contents =
|
|
807
|
+
contents = deserializeAws_json1_1CreatePresignedNotebookUrlResponse(data, context);
|
|
598
808
|
const response = {
|
|
599
809
|
$metadata: deserializeMetadata(output),
|
|
600
810
|
...contents,
|
|
601
811
|
};
|
|
602
812
|
return Promise.resolve(response);
|
|
603
813
|
};
|
|
604
|
-
const
|
|
814
|
+
const deserializeAws_json1_1CreatePresignedNotebookUrlCommandError = async (output, context) => {
|
|
605
815
|
const parsedOutput = {
|
|
606
816
|
...output,
|
|
607
817
|
body: await parseErrorBody(output.body, context),
|
|
@@ -614,6 +824,9 @@ const deserializeAws_json1_1DeleteDataCatalogCommandError = async (output, conte
|
|
|
614
824
|
case "InvalidRequestException":
|
|
615
825
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
616
826
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
827
|
+
case "ResourceNotFoundException":
|
|
828
|
+
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
829
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
617
830
|
default:
|
|
618
831
|
const parsedBody = parsedOutput.body;
|
|
619
832
|
throwDefaultError({
|
|
@@ -624,20 +837,20 @@ const deserializeAws_json1_1DeleteDataCatalogCommandError = async (output, conte
|
|
|
624
837
|
});
|
|
625
838
|
}
|
|
626
839
|
};
|
|
627
|
-
export const
|
|
840
|
+
export const deserializeAws_json1_1CreateWorkGroupCommand = async (output, context) => {
|
|
628
841
|
if (output.statusCode >= 300) {
|
|
629
|
-
return
|
|
842
|
+
return deserializeAws_json1_1CreateWorkGroupCommandError(output, context);
|
|
630
843
|
}
|
|
631
844
|
const data = await parseBody(output.body, context);
|
|
632
845
|
let contents = {};
|
|
633
|
-
contents =
|
|
846
|
+
contents = deserializeAws_json1_1CreateWorkGroupOutput(data, context);
|
|
634
847
|
const response = {
|
|
635
848
|
$metadata: deserializeMetadata(output),
|
|
636
849
|
...contents,
|
|
637
850
|
};
|
|
638
851
|
return Promise.resolve(response);
|
|
639
852
|
};
|
|
640
|
-
const
|
|
853
|
+
const deserializeAws_json1_1CreateWorkGroupCommandError = async (output, context) => {
|
|
641
854
|
const parsedOutput = {
|
|
642
855
|
...output,
|
|
643
856
|
body: await parseErrorBody(output.body, context),
|
|
@@ -660,20 +873,20 @@ const deserializeAws_json1_1DeleteNamedQueryCommandError = async (output, contex
|
|
|
660
873
|
});
|
|
661
874
|
}
|
|
662
875
|
};
|
|
663
|
-
export const
|
|
876
|
+
export const deserializeAws_json1_1DeleteDataCatalogCommand = async (output, context) => {
|
|
664
877
|
if (output.statusCode >= 300) {
|
|
665
|
-
return
|
|
878
|
+
return deserializeAws_json1_1DeleteDataCatalogCommandError(output, context);
|
|
666
879
|
}
|
|
667
880
|
const data = await parseBody(output.body, context);
|
|
668
881
|
let contents = {};
|
|
669
|
-
contents =
|
|
882
|
+
contents = deserializeAws_json1_1DeleteDataCatalogOutput(data, context);
|
|
670
883
|
const response = {
|
|
671
884
|
$metadata: deserializeMetadata(output),
|
|
672
885
|
...contents,
|
|
673
886
|
};
|
|
674
887
|
return Promise.resolve(response);
|
|
675
888
|
};
|
|
676
|
-
const
|
|
889
|
+
const deserializeAws_json1_1DeleteDataCatalogCommandError = async (output, context) => {
|
|
677
890
|
const parsedOutput = {
|
|
678
891
|
...output,
|
|
679
892
|
body: await parseErrorBody(output.body, context),
|
|
@@ -686,9 +899,6 @@ const deserializeAws_json1_1DeletePreparedStatementCommandError = async (output,
|
|
|
686
899
|
case "InvalidRequestException":
|
|
687
900
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
688
901
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
689
|
-
case "ResourceNotFoundException":
|
|
690
|
-
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
691
|
-
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
692
902
|
default:
|
|
693
903
|
const parsedBody = parsedOutput.body;
|
|
694
904
|
throwDefaultError({
|
|
@@ -699,20 +909,20 @@ const deserializeAws_json1_1DeletePreparedStatementCommandError = async (output,
|
|
|
699
909
|
});
|
|
700
910
|
}
|
|
701
911
|
};
|
|
702
|
-
export const
|
|
912
|
+
export const deserializeAws_json1_1DeleteNamedQueryCommand = async (output, context) => {
|
|
703
913
|
if (output.statusCode >= 300) {
|
|
704
|
-
return
|
|
914
|
+
return deserializeAws_json1_1DeleteNamedQueryCommandError(output, context);
|
|
705
915
|
}
|
|
706
916
|
const data = await parseBody(output.body, context);
|
|
707
917
|
let contents = {};
|
|
708
|
-
contents =
|
|
918
|
+
contents = deserializeAws_json1_1DeleteNamedQueryOutput(data, context);
|
|
709
919
|
const response = {
|
|
710
920
|
$metadata: deserializeMetadata(output),
|
|
711
921
|
...contents,
|
|
712
922
|
};
|
|
713
923
|
return Promise.resolve(response);
|
|
714
924
|
};
|
|
715
|
-
const
|
|
925
|
+
const deserializeAws_json1_1DeleteNamedQueryCommandError = async (output, context) => {
|
|
716
926
|
const parsedOutput = {
|
|
717
927
|
...output,
|
|
718
928
|
body: await parseErrorBody(output.body, context),
|
|
@@ -735,20 +945,20 @@ const deserializeAws_json1_1DeleteWorkGroupCommandError = async (output, context
|
|
|
735
945
|
});
|
|
736
946
|
}
|
|
737
947
|
};
|
|
738
|
-
export const
|
|
948
|
+
export const deserializeAws_json1_1DeleteNotebookCommand = async (output, context) => {
|
|
739
949
|
if (output.statusCode >= 300) {
|
|
740
|
-
return
|
|
950
|
+
return deserializeAws_json1_1DeleteNotebookCommandError(output, context);
|
|
741
951
|
}
|
|
742
952
|
const data = await parseBody(output.body, context);
|
|
743
953
|
let contents = {};
|
|
744
|
-
contents =
|
|
954
|
+
contents = deserializeAws_json1_1DeleteNotebookOutput(data, context);
|
|
745
955
|
const response = {
|
|
746
956
|
$metadata: deserializeMetadata(output),
|
|
747
957
|
...contents,
|
|
748
958
|
};
|
|
749
959
|
return Promise.resolve(response);
|
|
750
960
|
};
|
|
751
|
-
const
|
|
961
|
+
const deserializeAws_json1_1DeleteNotebookCommandError = async (output, context) => {
|
|
752
962
|
const parsedOutput = {
|
|
753
963
|
...output,
|
|
754
964
|
body: await parseErrorBody(output.body, context),
|
|
@@ -761,9 +971,9 @@ const deserializeAws_json1_1GetDatabaseCommandError = async (output, context) =>
|
|
|
761
971
|
case "InvalidRequestException":
|
|
762
972
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
763
973
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
764
|
-
case "
|
|
765
|
-
case "com.amazonaws.athena#
|
|
766
|
-
throw await
|
|
974
|
+
case "TooManyRequestsException":
|
|
975
|
+
case "com.amazonaws.athena#TooManyRequestsException":
|
|
976
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
767
977
|
default:
|
|
768
978
|
const parsedBody = parsedOutput.body;
|
|
769
979
|
throwDefaultError({
|
|
@@ -774,20 +984,20 @@ const deserializeAws_json1_1GetDatabaseCommandError = async (output, context) =>
|
|
|
774
984
|
});
|
|
775
985
|
}
|
|
776
986
|
};
|
|
777
|
-
export const
|
|
987
|
+
export const deserializeAws_json1_1DeletePreparedStatementCommand = async (output, context) => {
|
|
778
988
|
if (output.statusCode >= 300) {
|
|
779
|
-
return
|
|
989
|
+
return deserializeAws_json1_1DeletePreparedStatementCommandError(output, context);
|
|
780
990
|
}
|
|
781
991
|
const data = await parseBody(output.body, context);
|
|
782
992
|
let contents = {};
|
|
783
|
-
contents =
|
|
993
|
+
contents = deserializeAws_json1_1DeletePreparedStatementOutput(data, context);
|
|
784
994
|
const response = {
|
|
785
995
|
$metadata: deserializeMetadata(output),
|
|
786
996
|
...contents,
|
|
787
997
|
};
|
|
788
998
|
return Promise.resolve(response);
|
|
789
999
|
};
|
|
790
|
-
const
|
|
1000
|
+
const deserializeAws_json1_1DeletePreparedStatementCommandError = async (output, context) => {
|
|
791
1001
|
const parsedOutput = {
|
|
792
1002
|
...output,
|
|
793
1003
|
body: await parseErrorBody(output.body, context),
|
|
@@ -800,6 +1010,9 @@ const deserializeAws_json1_1GetDataCatalogCommandError = async (output, context)
|
|
|
800
1010
|
case "InvalidRequestException":
|
|
801
1011
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
802
1012
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1013
|
+
case "ResourceNotFoundException":
|
|
1014
|
+
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
1015
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
803
1016
|
default:
|
|
804
1017
|
const parsedBody = parsedOutput.body;
|
|
805
1018
|
throwDefaultError({
|
|
@@ -810,20 +1023,20 @@ const deserializeAws_json1_1GetDataCatalogCommandError = async (output, context)
|
|
|
810
1023
|
});
|
|
811
1024
|
}
|
|
812
1025
|
};
|
|
813
|
-
export const
|
|
1026
|
+
export const deserializeAws_json1_1DeleteWorkGroupCommand = async (output, context) => {
|
|
814
1027
|
if (output.statusCode >= 300) {
|
|
815
|
-
return
|
|
1028
|
+
return deserializeAws_json1_1DeleteWorkGroupCommandError(output, context);
|
|
816
1029
|
}
|
|
817
1030
|
const data = await parseBody(output.body, context);
|
|
818
1031
|
let contents = {};
|
|
819
|
-
contents =
|
|
1032
|
+
contents = deserializeAws_json1_1DeleteWorkGroupOutput(data, context);
|
|
820
1033
|
const response = {
|
|
821
1034
|
$metadata: deserializeMetadata(output),
|
|
822
1035
|
...contents,
|
|
823
1036
|
};
|
|
824
1037
|
return Promise.resolve(response);
|
|
825
1038
|
};
|
|
826
|
-
const
|
|
1039
|
+
const deserializeAws_json1_1DeleteWorkGroupCommandError = async (output, context) => {
|
|
827
1040
|
const parsedOutput = {
|
|
828
1041
|
...output,
|
|
829
1042
|
body: await parseErrorBody(output.body, context),
|
|
@@ -846,20 +1059,20 @@ const deserializeAws_json1_1GetNamedQueryCommandError = async (output, context)
|
|
|
846
1059
|
});
|
|
847
1060
|
}
|
|
848
1061
|
};
|
|
849
|
-
export const
|
|
1062
|
+
export const deserializeAws_json1_1ExportNotebookCommand = async (output, context) => {
|
|
850
1063
|
if (output.statusCode >= 300) {
|
|
851
|
-
return
|
|
1064
|
+
return deserializeAws_json1_1ExportNotebookCommandError(output, context);
|
|
852
1065
|
}
|
|
853
1066
|
const data = await parseBody(output.body, context);
|
|
854
1067
|
let contents = {};
|
|
855
|
-
contents =
|
|
1068
|
+
contents = deserializeAws_json1_1ExportNotebookOutput(data, context);
|
|
856
1069
|
const response = {
|
|
857
1070
|
$metadata: deserializeMetadata(output),
|
|
858
1071
|
...contents,
|
|
859
1072
|
};
|
|
860
1073
|
return Promise.resolve(response);
|
|
861
1074
|
};
|
|
862
|
-
const
|
|
1075
|
+
const deserializeAws_json1_1ExportNotebookCommandError = async (output, context) => {
|
|
863
1076
|
const parsedOutput = {
|
|
864
1077
|
...output,
|
|
865
1078
|
body: await parseErrorBody(output.body, context),
|
|
@@ -872,9 +1085,9 @@ const deserializeAws_json1_1GetPreparedStatementCommandError = async (output, co
|
|
|
872
1085
|
case "InvalidRequestException":
|
|
873
1086
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
874
1087
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
875
|
-
case "
|
|
876
|
-
case "com.amazonaws.athena#
|
|
877
|
-
throw await
|
|
1088
|
+
case "TooManyRequestsException":
|
|
1089
|
+
case "com.amazonaws.athena#TooManyRequestsException":
|
|
1090
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
878
1091
|
default:
|
|
879
1092
|
const parsedBody = parsedOutput.body;
|
|
880
1093
|
throwDefaultError({
|
|
@@ -885,20 +1098,20 @@ const deserializeAws_json1_1GetPreparedStatementCommandError = async (output, co
|
|
|
885
1098
|
});
|
|
886
1099
|
}
|
|
887
1100
|
};
|
|
888
|
-
export const
|
|
1101
|
+
export const deserializeAws_json1_1GetCalculationExecutionCommand = async (output, context) => {
|
|
889
1102
|
if (output.statusCode >= 300) {
|
|
890
|
-
return
|
|
1103
|
+
return deserializeAws_json1_1GetCalculationExecutionCommandError(output, context);
|
|
891
1104
|
}
|
|
892
1105
|
const data = await parseBody(output.body, context);
|
|
893
1106
|
let contents = {};
|
|
894
|
-
contents =
|
|
1107
|
+
contents = deserializeAws_json1_1GetCalculationExecutionResponse(data, context);
|
|
895
1108
|
const response = {
|
|
896
1109
|
$metadata: deserializeMetadata(output),
|
|
897
1110
|
...contents,
|
|
898
1111
|
};
|
|
899
1112
|
return Promise.resolve(response);
|
|
900
1113
|
};
|
|
901
|
-
const
|
|
1114
|
+
const deserializeAws_json1_1GetCalculationExecutionCommandError = async (output, context) => {
|
|
902
1115
|
const parsedOutput = {
|
|
903
1116
|
...output,
|
|
904
1117
|
body: await parseErrorBody(output.body, context),
|
|
@@ -911,6 +1124,9 @@ const deserializeAws_json1_1GetQueryExecutionCommandError = async (output, conte
|
|
|
911
1124
|
case "InvalidRequestException":
|
|
912
1125
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
913
1126
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1127
|
+
case "ResourceNotFoundException":
|
|
1128
|
+
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
1129
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
914
1130
|
default:
|
|
915
1131
|
const parsedBody = parsedOutput.body;
|
|
916
1132
|
throwDefaultError({
|
|
@@ -921,20 +1137,20 @@ const deserializeAws_json1_1GetQueryExecutionCommandError = async (output, conte
|
|
|
921
1137
|
});
|
|
922
1138
|
}
|
|
923
1139
|
};
|
|
924
|
-
export const
|
|
1140
|
+
export const deserializeAws_json1_1GetCalculationExecutionCodeCommand = async (output, context) => {
|
|
925
1141
|
if (output.statusCode >= 300) {
|
|
926
|
-
return
|
|
1142
|
+
return deserializeAws_json1_1GetCalculationExecutionCodeCommandError(output, context);
|
|
927
1143
|
}
|
|
928
1144
|
const data = await parseBody(output.body, context);
|
|
929
1145
|
let contents = {};
|
|
930
|
-
contents =
|
|
1146
|
+
contents = deserializeAws_json1_1GetCalculationExecutionCodeResponse(data, context);
|
|
931
1147
|
const response = {
|
|
932
1148
|
$metadata: deserializeMetadata(output),
|
|
933
1149
|
...contents,
|
|
934
1150
|
};
|
|
935
1151
|
return Promise.resolve(response);
|
|
936
1152
|
};
|
|
937
|
-
const
|
|
1153
|
+
const deserializeAws_json1_1GetCalculationExecutionCodeCommandError = async (output, context) => {
|
|
938
1154
|
const parsedOutput = {
|
|
939
1155
|
...output,
|
|
940
1156
|
body: await parseErrorBody(output.body, context),
|
|
@@ -944,12 +1160,9 @@ const deserializeAws_json1_1GetQueryResultsCommandError = async (output, context
|
|
|
944
1160
|
case "InternalServerException":
|
|
945
1161
|
case "com.amazonaws.athena#InternalServerException":
|
|
946
1162
|
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
947
|
-
case "
|
|
948
|
-
case "com.amazonaws.athena#
|
|
949
|
-
throw await
|
|
950
|
-
case "TooManyRequestsException":
|
|
951
|
-
case "com.amazonaws.athena#TooManyRequestsException":
|
|
952
|
-
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1163
|
+
case "ResourceNotFoundException":
|
|
1164
|
+
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
1165
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
953
1166
|
default:
|
|
954
1167
|
const parsedBody = parsedOutput.body;
|
|
955
1168
|
throwDefaultError({
|
|
@@ -960,20 +1173,20 @@ const deserializeAws_json1_1GetQueryResultsCommandError = async (output, context
|
|
|
960
1173
|
});
|
|
961
1174
|
}
|
|
962
1175
|
};
|
|
963
|
-
export const
|
|
1176
|
+
export const deserializeAws_json1_1GetCalculationExecutionStatusCommand = async (output, context) => {
|
|
964
1177
|
if (output.statusCode >= 300) {
|
|
965
|
-
return
|
|
1178
|
+
return deserializeAws_json1_1GetCalculationExecutionStatusCommandError(output, context);
|
|
966
1179
|
}
|
|
967
1180
|
const data = await parseBody(output.body, context);
|
|
968
1181
|
let contents = {};
|
|
969
|
-
contents =
|
|
1182
|
+
contents = deserializeAws_json1_1GetCalculationExecutionStatusResponse(data, context);
|
|
970
1183
|
const response = {
|
|
971
1184
|
$metadata: deserializeMetadata(output),
|
|
972
1185
|
...contents,
|
|
973
1186
|
};
|
|
974
1187
|
return Promise.resolve(response);
|
|
975
1188
|
};
|
|
976
|
-
const
|
|
1189
|
+
const deserializeAws_json1_1GetCalculationExecutionStatusCommandError = async (output, context) => {
|
|
977
1190
|
const parsedOutput = {
|
|
978
1191
|
...output,
|
|
979
1192
|
body: await parseErrorBody(output.body, context),
|
|
@@ -986,6 +1199,9 @@ const deserializeAws_json1_1GetQueryRuntimeStatisticsCommandError = async (outpu
|
|
|
986
1199
|
case "InvalidRequestException":
|
|
987
1200
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
988
1201
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1202
|
+
case "ResourceNotFoundException":
|
|
1203
|
+
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
1204
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
989
1205
|
default:
|
|
990
1206
|
const parsedBody = parsedOutput.body;
|
|
991
1207
|
throwDefaultError({
|
|
@@ -996,20 +1212,890 @@ const deserializeAws_json1_1GetQueryRuntimeStatisticsCommandError = async (outpu
|
|
|
996
1212
|
});
|
|
997
1213
|
}
|
|
998
1214
|
};
|
|
999
|
-
export const
|
|
1215
|
+
export const deserializeAws_json1_1GetDatabaseCommand = async (output, context) => {
|
|
1000
1216
|
if (output.statusCode >= 300) {
|
|
1001
|
-
return
|
|
1217
|
+
return deserializeAws_json1_1GetDatabaseCommandError(output, context);
|
|
1218
|
+
}
|
|
1219
|
+
const data = await parseBody(output.body, context);
|
|
1220
|
+
let contents = {};
|
|
1221
|
+
contents = deserializeAws_json1_1GetDatabaseOutput(data, context);
|
|
1222
|
+
const response = {
|
|
1223
|
+
$metadata: deserializeMetadata(output),
|
|
1224
|
+
...contents,
|
|
1225
|
+
};
|
|
1226
|
+
return Promise.resolve(response);
|
|
1227
|
+
};
|
|
1228
|
+
const deserializeAws_json1_1GetDatabaseCommandError = async (output, context) => {
|
|
1229
|
+
const parsedOutput = {
|
|
1230
|
+
...output,
|
|
1231
|
+
body: await parseErrorBody(output.body, context),
|
|
1232
|
+
};
|
|
1233
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1234
|
+
switch (errorCode) {
|
|
1235
|
+
case "InternalServerException":
|
|
1236
|
+
case "com.amazonaws.athena#InternalServerException":
|
|
1237
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1238
|
+
case "InvalidRequestException":
|
|
1239
|
+
case "com.amazonaws.athena#InvalidRequestException":
|
|
1240
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1241
|
+
case "MetadataException":
|
|
1242
|
+
case "com.amazonaws.athena#MetadataException":
|
|
1243
|
+
throw await deserializeAws_json1_1MetadataExceptionResponse(parsedOutput, context);
|
|
1244
|
+
default:
|
|
1245
|
+
const parsedBody = parsedOutput.body;
|
|
1246
|
+
throwDefaultError({
|
|
1247
|
+
output,
|
|
1248
|
+
parsedBody,
|
|
1249
|
+
exceptionCtor: __BaseException,
|
|
1250
|
+
errorCode,
|
|
1251
|
+
});
|
|
1252
|
+
}
|
|
1253
|
+
};
|
|
1254
|
+
export const deserializeAws_json1_1GetDataCatalogCommand = async (output, context) => {
|
|
1255
|
+
if (output.statusCode >= 300) {
|
|
1256
|
+
return deserializeAws_json1_1GetDataCatalogCommandError(output, context);
|
|
1257
|
+
}
|
|
1258
|
+
const data = await parseBody(output.body, context);
|
|
1259
|
+
let contents = {};
|
|
1260
|
+
contents = deserializeAws_json1_1GetDataCatalogOutput(data, context);
|
|
1261
|
+
const response = {
|
|
1262
|
+
$metadata: deserializeMetadata(output),
|
|
1263
|
+
...contents,
|
|
1264
|
+
};
|
|
1265
|
+
return Promise.resolve(response);
|
|
1266
|
+
};
|
|
1267
|
+
const deserializeAws_json1_1GetDataCatalogCommandError = async (output, context) => {
|
|
1268
|
+
const parsedOutput = {
|
|
1269
|
+
...output,
|
|
1270
|
+
body: await parseErrorBody(output.body, context),
|
|
1271
|
+
};
|
|
1272
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1273
|
+
switch (errorCode) {
|
|
1274
|
+
case "InternalServerException":
|
|
1275
|
+
case "com.amazonaws.athena#InternalServerException":
|
|
1276
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1277
|
+
case "InvalidRequestException":
|
|
1278
|
+
case "com.amazonaws.athena#InvalidRequestException":
|
|
1279
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1280
|
+
default:
|
|
1281
|
+
const parsedBody = parsedOutput.body;
|
|
1282
|
+
throwDefaultError({
|
|
1283
|
+
output,
|
|
1284
|
+
parsedBody,
|
|
1285
|
+
exceptionCtor: __BaseException,
|
|
1286
|
+
errorCode,
|
|
1287
|
+
});
|
|
1288
|
+
}
|
|
1289
|
+
};
|
|
1290
|
+
export const deserializeAws_json1_1GetNamedQueryCommand = async (output, context) => {
|
|
1291
|
+
if (output.statusCode >= 300) {
|
|
1292
|
+
return deserializeAws_json1_1GetNamedQueryCommandError(output, context);
|
|
1293
|
+
}
|
|
1294
|
+
const data = await parseBody(output.body, context);
|
|
1295
|
+
let contents = {};
|
|
1296
|
+
contents = deserializeAws_json1_1GetNamedQueryOutput(data, context);
|
|
1297
|
+
const response = {
|
|
1298
|
+
$metadata: deserializeMetadata(output),
|
|
1299
|
+
...contents,
|
|
1300
|
+
};
|
|
1301
|
+
return Promise.resolve(response);
|
|
1302
|
+
};
|
|
1303
|
+
const deserializeAws_json1_1GetNamedQueryCommandError = async (output, context) => {
|
|
1304
|
+
const parsedOutput = {
|
|
1305
|
+
...output,
|
|
1306
|
+
body: await parseErrorBody(output.body, context),
|
|
1307
|
+
};
|
|
1308
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1309
|
+
switch (errorCode) {
|
|
1310
|
+
case "InternalServerException":
|
|
1311
|
+
case "com.amazonaws.athena#InternalServerException":
|
|
1312
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1313
|
+
case "InvalidRequestException":
|
|
1314
|
+
case "com.amazonaws.athena#InvalidRequestException":
|
|
1315
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1316
|
+
default:
|
|
1317
|
+
const parsedBody = parsedOutput.body;
|
|
1318
|
+
throwDefaultError({
|
|
1319
|
+
output,
|
|
1320
|
+
parsedBody,
|
|
1321
|
+
exceptionCtor: __BaseException,
|
|
1322
|
+
errorCode,
|
|
1323
|
+
});
|
|
1324
|
+
}
|
|
1325
|
+
};
|
|
1326
|
+
export const deserializeAws_json1_1GetNotebookMetadataCommand = async (output, context) => {
|
|
1327
|
+
if (output.statusCode >= 300) {
|
|
1328
|
+
return deserializeAws_json1_1GetNotebookMetadataCommandError(output, context);
|
|
1329
|
+
}
|
|
1330
|
+
const data = await parseBody(output.body, context);
|
|
1331
|
+
let contents = {};
|
|
1332
|
+
contents = deserializeAws_json1_1GetNotebookMetadataOutput(data, context);
|
|
1333
|
+
const response = {
|
|
1334
|
+
$metadata: deserializeMetadata(output),
|
|
1335
|
+
...contents,
|
|
1336
|
+
};
|
|
1337
|
+
return Promise.resolve(response);
|
|
1338
|
+
};
|
|
1339
|
+
const deserializeAws_json1_1GetNotebookMetadataCommandError = async (output, context) => {
|
|
1340
|
+
const parsedOutput = {
|
|
1341
|
+
...output,
|
|
1342
|
+
body: await parseErrorBody(output.body, context),
|
|
1343
|
+
};
|
|
1344
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1345
|
+
switch (errorCode) {
|
|
1346
|
+
case "InternalServerException":
|
|
1347
|
+
case "com.amazonaws.athena#InternalServerException":
|
|
1348
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1349
|
+
case "InvalidRequestException":
|
|
1350
|
+
case "com.amazonaws.athena#InvalidRequestException":
|
|
1351
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1352
|
+
case "TooManyRequestsException":
|
|
1353
|
+
case "com.amazonaws.athena#TooManyRequestsException":
|
|
1354
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1355
|
+
default:
|
|
1356
|
+
const parsedBody = parsedOutput.body;
|
|
1357
|
+
throwDefaultError({
|
|
1358
|
+
output,
|
|
1359
|
+
parsedBody,
|
|
1360
|
+
exceptionCtor: __BaseException,
|
|
1361
|
+
errorCode,
|
|
1362
|
+
});
|
|
1363
|
+
}
|
|
1364
|
+
};
|
|
1365
|
+
export const deserializeAws_json1_1GetPreparedStatementCommand = async (output, context) => {
|
|
1366
|
+
if (output.statusCode >= 300) {
|
|
1367
|
+
return deserializeAws_json1_1GetPreparedStatementCommandError(output, context);
|
|
1368
|
+
}
|
|
1369
|
+
const data = await parseBody(output.body, context);
|
|
1370
|
+
let contents = {};
|
|
1371
|
+
contents = deserializeAws_json1_1GetPreparedStatementOutput(data, context);
|
|
1372
|
+
const response = {
|
|
1373
|
+
$metadata: deserializeMetadata(output),
|
|
1374
|
+
...contents,
|
|
1375
|
+
};
|
|
1376
|
+
return Promise.resolve(response);
|
|
1377
|
+
};
|
|
1378
|
+
const deserializeAws_json1_1GetPreparedStatementCommandError = async (output, context) => {
|
|
1379
|
+
const parsedOutput = {
|
|
1380
|
+
...output,
|
|
1381
|
+
body: await parseErrorBody(output.body, context),
|
|
1382
|
+
};
|
|
1383
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1384
|
+
switch (errorCode) {
|
|
1385
|
+
case "InternalServerException":
|
|
1386
|
+
case "com.amazonaws.athena#InternalServerException":
|
|
1387
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1388
|
+
case "InvalidRequestException":
|
|
1389
|
+
case "com.amazonaws.athena#InvalidRequestException":
|
|
1390
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1391
|
+
case "ResourceNotFoundException":
|
|
1392
|
+
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
1393
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1394
|
+
default:
|
|
1395
|
+
const parsedBody = parsedOutput.body;
|
|
1396
|
+
throwDefaultError({
|
|
1397
|
+
output,
|
|
1398
|
+
parsedBody,
|
|
1399
|
+
exceptionCtor: __BaseException,
|
|
1400
|
+
errorCode,
|
|
1401
|
+
});
|
|
1402
|
+
}
|
|
1403
|
+
};
|
|
1404
|
+
export const deserializeAws_json1_1GetQueryExecutionCommand = async (output, context) => {
|
|
1405
|
+
if (output.statusCode >= 300) {
|
|
1406
|
+
return deserializeAws_json1_1GetQueryExecutionCommandError(output, context);
|
|
1407
|
+
}
|
|
1408
|
+
const data = await parseBody(output.body, context);
|
|
1409
|
+
let contents = {};
|
|
1410
|
+
contents = deserializeAws_json1_1GetQueryExecutionOutput(data, context);
|
|
1411
|
+
const response = {
|
|
1412
|
+
$metadata: deserializeMetadata(output),
|
|
1413
|
+
...contents,
|
|
1414
|
+
};
|
|
1415
|
+
return Promise.resolve(response);
|
|
1416
|
+
};
|
|
1417
|
+
const deserializeAws_json1_1GetQueryExecutionCommandError = async (output, context) => {
|
|
1418
|
+
const parsedOutput = {
|
|
1419
|
+
...output,
|
|
1420
|
+
body: await parseErrorBody(output.body, context),
|
|
1421
|
+
};
|
|
1422
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1423
|
+
switch (errorCode) {
|
|
1424
|
+
case "InternalServerException":
|
|
1425
|
+
case "com.amazonaws.athena#InternalServerException":
|
|
1426
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1427
|
+
case "InvalidRequestException":
|
|
1428
|
+
case "com.amazonaws.athena#InvalidRequestException":
|
|
1429
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1430
|
+
default:
|
|
1431
|
+
const parsedBody = parsedOutput.body;
|
|
1432
|
+
throwDefaultError({
|
|
1433
|
+
output,
|
|
1434
|
+
parsedBody,
|
|
1435
|
+
exceptionCtor: __BaseException,
|
|
1436
|
+
errorCode,
|
|
1437
|
+
});
|
|
1438
|
+
}
|
|
1439
|
+
};
|
|
1440
|
+
export const deserializeAws_json1_1GetQueryResultsCommand = async (output, context) => {
|
|
1441
|
+
if (output.statusCode >= 300) {
|
|
1442
|
+
return deserializeAws_json1_1GetQueryResultsCommandError(output, context);
|
|
1443
|
+
}
|
|
1444
|
+
const data = await parseBody(output.body, context);
|
|
1445
|
+
let contents = {};
|
|
1446
|
+
contents = deserializeAws_json1_1GetQueryResultsOutput(data, context);
|
|
1447
|
+
const response = {
|
|
1448
|
+
$metadata: deserializeMetadata(output),
|
|
1449
|
+
...contents,
|
|
1450
|
+
};
|
|
1451
|
+
return Promise.resolve(response);
|
|
1452
|
+
};
|
|
1453
|
+
const deserializeAws_json1_1GetQueryResultsCommandError = async (output, context) => {
|
|
1454
|
+
const parsedOutput = {
|
|
1455
|
+
...output,
|
|
1456
|
+
body: await parseErrorBody(output.body, context),
|
|
1457
|
+
};
|
|
1458
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1459
|
+
switch (errorCode) {
|
|
1460
|
+
case "InternalServerException":
|
|
1461
|
+
case "com.amazonaws.athena#InternalServerException":
|
|
1462
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1463
|
+
case "InvalidRequestException":
|
|
1464
|
+
case "com.amazonaws.athena#InvalidRequestException":
|
|
1465
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1466
|
+
case "TooManyRequestsException":
|
|
1467
|
+
case "com.amazonaws.athena#TooManyRequestsException":
|
|
1468
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1469
|
+
default:
|
|
1470
|
+
const parsedBody = parsedOutput.body;
|
|
1471
|
+
throwDefaultError({
|
|
1472
|
+
output,
|
|
1473
|
+
parsedBody,
|
|
1474
|
+
exceptionCtor: __BaseException,
|
|
1475
|
+
errorCode,
|
|
1476
|
+
});
|
|
1477
|
+
}
|
|
1478
|
+
};
|
|
1479
|
+
export const deserializeAws_json1_1GetQueryRuntimeStatisticsCommand = async (output, context) => {
|
|
1480
|
+
if (output.statusCode >= 300) {
|
|
1481
|
+
return deserializeAws_json1_1GetQueryRuntimeStatisticsCommandError(output, context);
|
|
1482
|
+
}
|
|
1483
|
+
const data = await parseBody(output.body, context);
|
|
1484
|
+
let contents = {};
|
|
1485
|
+
contents = deserializeAws_json1_1GetQueryRuntimeStatisticsOutput(data, context);
|
|
1486
|
+
const response = {
|
|
1487
|
+
$metadata: deserializeMetadata(output),
|
|
1488
|
+
...contents,
|
|
1489
|
+
};
|
|
1490
|
+
return Promise.resolve(response);
|
|
1491
|
+
};
|
|
1492
|
+
const deserializeAws_json1_1GetQueryRuntimeStatisticsCommandError = async (output, context) => {
|
|
1493
|
+
const parsedOutput = {
|
|
1494
|
+
...output,
|
|
1495
|
+
body: await parseErrorBody(output.body, context),
|
|
1496
|
+
};
|
|
1497
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1498
|
+
switch (errorCode) {
|
|
1499
|
+
case "InternalServerException":
|
|
1500
|
+
case "com.amazonaws.athena#InternalServerException":
|
|
1501
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1502
|
+
case "InvalidRequestException":
|
|
1503
|
+
case "com.amazonaws.athena#InvalidRequestException":
|
|
1504
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1505
|
+
default:
|
|
1506
|
+
const parsedBody = parsedOutput.body;
|
|
1507
|
+
throwDefaultError({
|
|
1508
|
+
output,
|
|
1509
|
+
parsedBody,
|
|
1510
|
+
exceptionCtor: __BaseException,
|
|
1511
|
+
errorCode,
|
|
1512
|
+
});
|
|
1513
|
+
}
|
|
1514
|
+
};
|
|
1515
|
+
export const deserializeAws_json1_1GetSessionCommand = async (output, context) => {
|
|
1516
|
+
if (output.statusCode >= 300) {
|
|
1517
|
+
return deserializeAws_json1_1GetSessionCommandError(output, context);
|
|
1518
|
+
}
|
|
1519
|
+
const data = await parseBody(output.body, context);
|
|
1520
|
+
let contents = {};
|
|
1521
|
+
contents = deserializeAws_json1_1GetSessionResponse(data, context);
|
|
1522
|
+
const response = {
|
|
1523
|
+
$metadata: deserializeMetadata(output),
|
|
1524
|
+
...contents,
|
|
1525
|
+
};
|
|
1526
|
+
return Promise.resolve(response);
|
|
1527
|
+
};
|
|
1528
|
+
const deserializeAws_json1_1GetSessionCommandError = async (output, context) => {
|
|
1529
|
+
const parsedOutput = {
|
|
1530
|
+
...output,
|
|
1531
|
+
body: await parseErrorBody(output.body, context),
|
|
1532
|
+
};
|
|
1533
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1534
|
+
switch (errorCode) {
|
|
1535
|
+
case "InternalServerException":
|
|
1536
|
+
case "com.amazonaws.athena#InternalServerException":
|
|
1537
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1538
|
+
case "InvalidRequestException":
|
|
1539
|
+
case "com.amazonaws.athena#InvalidRequestException":
|
|
1540
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1541
|
+
case "ResourceNotFoundException":
|
|
1542
|
+
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
1543
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1544
|
+
default:
|
|
1545
|
+
const parsedBody = parsedOutput.body;
|
|
1546
|
+
throwDefaultError({
|
|
1547
|
+
output,
|
|
1548
|
+
parsedBody,
|
|
1549
|
+
exceptionCtor: __BaseException,
|
|
1550
|
+
errorCode,
|
|
1551
|
+
});
|
|
1552
|
+
}
|
|
1553
|
+
};
|
|
1554
|
+
export const deserializeAws_json1_1GetSessionStatusCommand = async (output, context) => {
|
|
1555
|
+
if (output.statusCode >= 300) {
|
|
1556
|
+
return deserializeAws_json1_1GetSessionStatusCommandError(output, context);
|
|
1557
|
+
}
|
|
1558
|
+
const data = await parseBody(output.body, context);
|
|
1559
|
+
let contents = {};
|
|
1560
|
+
contents = deserializeAws_json1_1GetSessionStatusResponse(data, context);
|
|
1561
|
+
const response = {
|
|
1562
|
+
$metadata: deserializeMetadata(output),
|
|
1563
|
+
...contents,
|
|
1564
|
+
};
|
|
1565
|
+
return Promise.resolve(response);
|
|
1566
|
+
};
|
|
1567
|
+
const deserializeAws_json1_1GetSessionStatusCommandError = async (output, context) => {
|
|
1568
|
+
const parsedOutput = {
|
|
1569
|
+
...output,
|
|
1570
|
+
body: await parseErrorBody(output.body, context),
|
|
1571
|
+
};
|
|
1572
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1573
|
+
switch (errorCode) {
|
|
1574
|
+
case "InternalServerException":
|
|
1575
|
+
case "com.amazonaws.athena#InternalServerException":
|
|
1576
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1577
|
+
case "InvalidRequestException":
|
|
1578
|
+
case "com.amazonaws.athena#InvalidRequestException":
|
|
1579
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1580
|
+
case "ResourceNotFoundException":
|
|
1581
|
+
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
1582
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1583
|
+
default:
|
|
1584
|
+
const parsedBody = parsedOutput.body;
|
|
1585
|
+
throwDefaultError({
|
|
1586
|
+
output,
|
|
1587
|
+
parsedBody,
|
|
1588
|
+
exceptionCtor: __BaseException,
|
|
1589
|
+
errorCode,
|
|
1590
|
+
});
|
|
1591
|
+
}
|
|
1592
|
+
};
|
|
1593
|
+
export const deserializeAws_json1_1GetTableMetadataCommand = async (output, context) => {
|
|
1594
|
+
if (output.statusCode >= 300) {
|
|
1595
|
+
return deserializeAws_json1_1GetTableMetadataCommandError(output, context);
|
|
1596
|
+
}
|
|
1597
|
+
const data = await parseBody(output.body, context);
|
|
1598
|
+
let contents = {};
|
|
1599
|
+
contents = deserializeAws_json1_1GetTableMetadataOutput(data, context);
|
|
1600
|
+
const response = {
|
|
1601
|
+
$metadata: deserializeMetadata(output),
|
|
1602
|
+
...contents,
|
|
1603
|
+
};
|
|
1604
|
+
return Promise.resolve(response);
|
|
1605
|
+
};
|
|
1606
|
+
const deserializeAws_json1_1GetTableMetadataCommandError = async (output, context) => {
|
|
1607
|
+
const parsedOutput = {
|
|
1608
|
+
...output,
|
|
1609
|
+
body: await parseErrorBody(output.body, context),
|
|
1610
|
+
};
|
|
1611
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1612
|
+
switch (errorCode) {
|
|
1613
|
+
case "InternalServerException":
|
|
1614
|
+
case "com.amazonaws.athena#InternalServerException":
|
|
1615
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1616
|
+
case "InvalidRequestException":
|
|
1617
|
+
case "com.amazonaws.athena#InvalidRequestException":
|
|
1618
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1619
|
+
case "MetadataException":
|
|
1620
|
+
case "com.amazonaws.athena#MetadataException":
|
|
1621
|
+
throw await deserializeAws_json1_1MetadataExceptionResponse(parsedOutput, context);
|
|
1622
|
+
default:
|
|
1623
|
+
const parsedBody = parsedOutput.body;
|
|
1624
|
+
throwDefaultError({
|
|
1625
|
+
output,
|
|
1626
|
+
parsedBody,
|
|
1627
|
+
exceptionCtor: __BaseException,
|
|
1628
|
+
errorCode,
|
|
1629
|
+
});
|
|
1630
|
+
}
|
|
1631
|
+
};
|
|
1632
|
+
export const deserializeAws_json1_1GetWorkGroupCommand = async (output, context) => {
|
|
1633
|
+
if (output.statusCode >= 300) {
|
|
1634
|
+
return deserializeAws_json1_1GetWorkGroupCommandError(output, context);
|
|
1635
|
+
}
|
|
1636
|
+
const data = await parseBody(output.body, context);
|
|
1637
|
+
let contents = {};
|
|
1638
|
+
contents = deserializeAws_json1_1GetWorkGroupOutput(data, context);
|
|
1639
|
+
const response = {
|
|
1640
|
+
$metadata: deserializeMetadata(output),
|
|
1641
|
+
...contents,
|
|
1642
|
+
};
|
|
1643
|
+
return Promise.resolve(response);
|
|
1644
|
+
};
|
|
1645
|
+
const deserializeAws_json1_1GetWorkGroupCommandError = async (output, context) => {
|
|
1646
|
+
const parsedOutput = {
|
|
1647
|
+
...output,
|
|
1648
|
+
body: await parseErrorBody(output.body, context),
|
|
1649
|
+
};
|
|
1650
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1651
|
+
switch (errorCode) {
|
|
1652
|
+
case "InternalServerException":
|
|
1653
|
+
case "com.amazonaws.athena#InternalServerException":
|
|
1654
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1655
|
+
case "InvalidRequestException":
|
|
1656
|
+
case "com.amazonaws.athena#InvalidRequestException":
|
|
1657
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1658
|
+
default:
|
|
1659
|
+
const parsedBody = parsedOutput.body;
|
|
1660
|
+
throwDefaultError({
|
|
1661
|
+
output,
|
|
1662
|
+
parsedBody,
|
|
1663
|
+
exceptionCtor: __BaseException,
|
|
1664
|
+
errorCode,
|
|
1665
|
+
});
|
|
1666
|
+
}
|
|
1667
|
+
};
|
|
1668
|
+
export const deserializeAws_json1_1ImportNotebookCommand = async (output, context) => {
|
|
1669
|
+
if (output.statusCode >= 300) {
|
|
1670
|
+
return deserializeAws_json1_1ImportNotebookCommandError(output, context);
|
|
1671
|
+
}
|
|
1672
|
+
const data = await parseBody(output.body, context);
|
|
1673
|
+
let contents = {};
|
|
1674
|
+
contents = deserializeAws_json1_1ImportNotebookOutput(data, context);
|
|
1675
|
+
const response = {
|
|
1676
|
+
$metadata: deserializeMetadata(output),
|
|
1677
|
+
...contents,
|
|
1678
|
+
};
|
|
1679
|
+
return Promise.resolve(response);
|
|
1680
|
+
};
|
|
1681
|
+
const deserializeAws_json1_1ImportNotebookCommandError = async (output, context) => {
|
|
1682
|
+
const parsedOutput = {
|
|
1683
|
+
...output,
|
|
1684
|
+
body: await parseErrorBody(output.body, context),
|
|
1685
|
+
};
|
|
1686
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1687
|
+
switch (errorCode) {
|
|
1688
|
+
case "InternalServerException":
|
|
1689
|
+
case "com.amazonaws.athena#InternalServerException":
|
|
1690
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1691
|
+
case "InvalidRequestException":
|
|
1692
|
+
case "com.amazonaws.athena#InvalidRequestException":
|
|
1693
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1694
|
+
case "TooManyRequestsException":
|
|
1695
|
+
case "com.amazonaws.athena#TooManyRequestsException":
|
|
1696
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1697
|
+
default:
|
|
1698
|
+
const parsedBody = parsedOutput.body;
|
|
1699
|
+
throwDefaultError({
|
|
1700
|
+
output,
|
|
1701
|
+
parsedBody,
|
|
1702
|
+
exceptionCtor: __BaseException,
|
|
1703
|
+
errorCode,
|
|
1704
|
+
});
|
|
1705
|
+
}
|
|
1706
|
+
};
|
|
1707
|
+
export const deserializeAws_json1_1ListApplicationDPUSizesCommand = async (output, context) => {
|
|
1708
|
+
if (output.statusCode >= 300) {
|
|
1709
|
+
return deserializeAws_json1_1ListApplicationDPUSizesCommandError(output, context);
|
|
1710
|
+
}
|
|
1711
|
+
const data = await parseBody(output.body, context);
|
|
1712
|
+
let contents = {};
|
|
1713
|
+
contents = deserializeAws_json1_1ListApplicationDPUSizesOutput(data, context);
|
|
1714
|
+
const response = {
|
|
1715
|
+
$metadata: deserializeMetadata(output),
|
|
1716
|
+
...contents,
|
|
1717
|
+
};
|
|
1718
|
+
return Promise.resolve(response);
|
|
1719
|
+
};
|
|
1720
|
+
const deserializeAws_json1_1ListApplicationDPUSizesCommandError = async (output, context) => {
|
|
1721
|
+
const parsedOutput = {
|
|
1722
|
+
...output,
|
|
1723
|
+
body: await parseErrorBody(output.body, context),
|
|
1724
|
+
};
|
|
1725
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1726
|
+
switch (errorCode) {
|
|
1727
|
+
case "InternalServerException":
|
|
1728
|
+
case "com.amazonaws.athena#InternalServerException":
|
|
1729
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1730
|
+
case "InvalidRequestException":
|
|
1731
|
+
case "com.amazonaws.athena#InvalidRequestException":
|
|
1732
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1733
|
+
case "TooManyRequestsException":
|
|
1734
|
+
case "com.amazonaws.athena#TooManyRequestsException":
|
|
1735
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1736
|
+
default:
|
|
1737
|
+
const parsedBody = parsedOutput.body;
|
|
1738
|
+
throwDefaultError({
|
|
1739
|
+
output,
|
|
1740
|
+
parsedBody,
|
|
1741
|
+
exceptionCtor: __BaseException,
|
|
1742
|
+
errorCode,
|
|
1743
|
+
});
|
|
1744
|
+
}
|
|
1745
|
+
};
|
|
1746
|
+
export const deserializeAws_json1_1ListCalculationExecutionsCommand = async (output, context) => {
|
|
1747
|
+
if (output.statusCode >= 300) {
|
|
1748
|
+
return deserializeAws_json1_1ListCalculationExecutionsCommandError(output, context);
|
|
1749
|
+
}
|
|
1750
|
+
const data = await parseBody(output.body, context);
|
|
1751
|
+
let contents = {};
|
|
1752
|
+
contents = deserializeAws_json1_1ListCalculationExecutionsResponse(data, context);
|
|
1753
|
+
const response = {
|
|
1754
|
+
$metadata: deserializeMetadata(output),
|
|
1755
|
+
...contents,
|
|
1756
|
+
};
|
|
1757
|
+
return Promise.resolve(response);
|
|
1758
|
+
};
|
|
1759
|
+
const deserializeAws_json1_1ListCalculationExecutionsCommandError = async (output, context) => {
|
|
1760
|
+
const parsedOutput = {
|
|
1761
|
+
...output,
|
|
1762
|
+
body: await parseErrorBody(output.body, context),
|
|
1763
|
+
};
|
|
1764
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1765
|
+
switch (errorCode) {
|
|
1766
|
+
case "InternalServerException":
|
|
1767
|
+
case "com.amazonaws.athena#InternalServerException":
|
|
1768
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1769
|
+
case "InvalidRequestException":
|
|
1770
|
+
case "com.amazonaws.athena#InvalidRequestException":
|
|
1771
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1772
|
+
case "ResourceNotFoundException":
|
|
1773
|
+
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
1774
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1775
|
+
default:
|
|
1776
|
+
const parsedBody = parsedOutput.body;
|
|
1777
|
+
throwDefaultError({
|
|
1778
|
+
output,
|
|
1779
|
+
parsedBody,
|
|
1780
|
+
exceptionCtor: __BaseException,
|
|
1781
|
+
errorCode,
|
|
1782
|
+
});
|
|
1783
|
+
}
|
|
1784
|
+
};
|
|
1785
|
+
export const deserializeAws_json1_1ListDatabasesCommand = async (output, context) => {
|
|
1786
|
+
if (output.statusCode >= 300) {
|
|
1787
|
+
return deserializeAws_json1_1ListDatabasesCommandError(output, context);
|
|
1788
|
+
}
|
|
1789
|
+
const data = await parseBody(output.body, context);
|
|
1790
|
+
let contents = {};
|
|
1791
|
+
contents = deserializeAws_json1_1ListDatabasesOutput(data, context);
|
|
1792
|
+
const response = {
|
|
1793
|
+
$metadata: deserializeMetadata(output),
|
|
1794
|
+
...contents,
|
|
1795
|
+
};
|
|
1796
|
+
return Promise.resolve(response);
|
|
1797
|
+
};
|
|
1798
|
+
const deserializeAws_json1_1ListDatabasesCommandError = async (output, context) => {
|
|
1799
|
+
const parsedOutput = {
|
|
1800
|
+
...output,
|
|
1801
|
+
body: await parseErrorBody(output.body, context),
|
|
1802
|
+
};
|
|
1803
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1804
|
+
switch (errorCode) {
|
|
1805
|
+
case "InternalServerException":
|
|
1806
|
+
case "com.amazonaws.athena#InternalServerException":
|
|
1807
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1808
|
+
case "InvalidRequestException":
|
|
1809
|
+
case "com.amazonaws.athena#InvalidRequestException":
|
|
1810
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1811
|
+
case "MetadataException":
|
|
1812
|
+
case "com.amazonaws.athena#MetadataException":
|
|
1813
|
+
throw await deserializeAws_json1_1MetadataExceptionResponse(parsedOutput, context);
|
|
1814
|
+
default:
|
|
1815
|
+
const parsedBody = parsedOutput.body;
|
|
1816
|
+
throwDefaultError({
|
|
1817
|
+
output,
|
|
1818
|
+
parsedBody,
|
|
1819
|
+
exceptionCtor: __BaseException,
|
|
1820
|
+
errorCode,
|
|
1821
|
+
});
|
|
1822
|
+
}
|
|
1823
|
+
};
|
|
1824
|
+
export const deserializeAws_json1_1ListDataCatalogsCommand = async (output, context) => {
|
|
1825
|
+
if (output.statusCode >= 300) {
|
|
1826
|
+
return deserializeAws_json1_1ListDataCatalogsCommandError(output, context);
|
|
1002
1827
|
}
|
|
1003
1828
|
const data = await parseBody(output.body, context);
|
|
1004
1829
|
let contents = {};
|
|
1005
|
-
contents =
|
|
1830
|
+
contents = deserializeAws_json1_1ListDataCatalogsOutput(data, context);
|
|
1831
|
+
const response = {
|
|
1832
|
+
$metadata: deserializeMetadata(output),
|
|
1833
|
+
...contents,
|
|
1834
|
+
};
|
|
1835
|
+
return Promise.resolve(response);
|
|
1836
|
+
};
|
|
1837
|
+
const deserializeAws_json1_1ListDataCatalogsCommandError = async (output, context) => {
|
|
1838
|
+
const parsedOutput = {
|
|
1839
|
+
...output,
|
|
1840
|
+
body: await parseErrorBody(output.body, context),
|
|
1841
|
+
};
|
|
1842
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1843
|
+
switch (errorCode) {
|
|
1844
|
+
case "InternalServerException":
|
|
1845
|
+
case "com.amazonaws.athena#InternalServerException":
|
|
1846
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1847
|
+
case "InvalidRequestException":
|
|
1848
|
+
case "com.amazonaws.athena#InvalidRequestException":
|
|
1849
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1850
|
+
default:
|
|
1851
|
+
const parsedBody = parsedOutput.body;
|
|
1852
|
+
throwDefaultError({
|
|
1853
|
+
output,
|
|
1854
|
+
parsedBody,
|
|
1855
|
+
exceptionCtor: __BaseException,
|
|
1856
|
+
errorCode,
|
|
1857
|
+
});
|
|
1858
|
+
}
|
|
1859
|
+
};
|
|
1860
|
+
export const deserializeAws_json1_1ListEngineVersionsCommand = async (output, context) => {
|
|
1861
|
+
if (output.statusCode >= 300) {
|
|
1862
|
+
return deserializeAws_json1_1ListEngineVersionsCommandError(output, context);
|
|
1863
|
+
}
|
|
1864
|
+
const data = await parseBody(output.body, context);
|
|
1865
|
+
let contents = {};
|
|
1866
|
+
contents = deserializeAws_json1_1ListEngineVersionsOutput(data, context);
|
|
1867
|
+
const response = {
|
|
1868
|
+
$metadata: deserializeMetadata(output),
|
|
1869
|
+
...contents,
|
|
1870
|
+
};
|
|
1871
|
+
return Promise.resolve(response);
|
|
1872
|
+
};
|
|
1873
|
+
const deserializeAws_json1_1ListEngineVersionsCommandError = async (output, context) => {
|
|
1874
|
+
const parsedOutput = {
|
|
1875
|
+
...output,
|
|
1876
|
+
body: await parseErrorBody(output.body, context),
|
|
1877
|
+
};
|
|
1878
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1879
|
+
switch (errorCode) {
|
|
1880
|
+
case "InternalServerException":
|
|
1881
|
+
case "com.amazonaws.athena#InternalServerException":
|
|
1882
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1883
|
+
case "InvalidRequestException":
|
|
1884
|
+
case "com.amazonaws.athena#InvalidRequestException":
|
|
1885
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1886
|
+
default:
|
|
1887
|
+
const parsedBody = parsedOutput.body;
|
|
1888
|
+
throwDefaultError({
|
|
1889
|
+
output,
|
|
1890
|
+
parsedBody,
|
|
1891
|
+
exceptionCtor: __BaseException,
|
|
1892
|
+
errorCode,
|
|
1893
|
+
});
|
|
1894
|
+
}
|
|
1895
|
+
};
|
|
1896
|
+
export const deserializeAws_json1_1ListExecutorsCommand = async (output, context) => {
|
|
1897
|
+
if (output.statusCode >= 300) {
|
|
1898
|
+
return deserializeAws_json1_1ListExecutorsCommandError(output, context);
|
|
1899
|
+
}
|
|
1900
|
+
const data = await parseBody(output.body, context);
|
|
1901
|
+
let contents = {};
|
|
1902
|
+
contents = deserializeAws_json1_1ListExecutorsResponse(data, context);
|
|
1903
|
+
const response = {
|
|
1904
|
+
$metadata: deserializeMetadata(output),
|
|
1905
|
+
...contents,
|
|
1906
|
+
};
|
|
1907
|
+
return Promise.resolve(response);
|
|
1908
|
+
};
|
|
1909
|
+
const deserializeAws_json1_1ListExecutorsCommandError = async (output, context) => {
|
|
1910
|
+
const parsedOutput = {
|
|
1911
|
+
...output,
|
|
1912
|
+
body: await parseErrorBody(output.body, context),
|
|
1913
|
+
};
|
|
1914
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1915
|
+
switch (errorCode) {
|
|
1916
|
+
case "InternalServerException":
|
|
1917
|
+
case "com.amazonaws.athena#InternalServerException":
|
|
1918
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1919
|
+
case "InvalidRequestException":
|
|
1920
|
+
case "com.amazonaws.athena#InvalidRequestException":
|
|
1921
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1922
|
+
case "ResourceNotFoundException":
|
|
1923
|
+
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
1924
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1925
|
+
default:
|
|
1926
|
+
const parsedBody = parsedOutput.body;
|
|
1927
|
+
throwDefaultError({
|
|
1928
|
+
output,
|
|
1929
|
+
parsedBody,
|
|
1930
|
+
exceptionCtor: __BaseException,
|
|
1931
|
+
errorCode,
|
|
1932
|
+
});
|
|
1933
|
+
}
|
|
1934
|
+
};
|
|
1935
|
+
export const deserializeAws_json1_1ListNamedQueriesCommand = async (output, context) => {
|
|
1936
|
+
if (output.statusCode >= 300) {
|
|
1937
|
+
return deserializeAws_json1_1ListNamedQueriesCommandError(output, context);
|
|
1938
|
+
}
|
|
1939
|
+
const data = await parseBody(output.body, context);
|
|
1940
|
+
let contents = {};
|
|
1941
|
+
contents = deserializeAws_json1_1ListNamedQueriesOutput(data, context);
|
|
1942
|
+
const response = {
|
|
1943
|
+
$metadata: deserializeMetadata(output),
|
|
1944
|
+
...contents,
|
|
1945
|
+
};
|
|
1946
|
+
return Promise.resolve(response);
|
|
1947
|
+
};
|
|
1948
|
+
const deserializeAws_json1_1ListNamedQueriesCommandError = async (output, context) => {
|
|
1949
|
+
const parsedOutput = {
|
|
1950
|
+
...output,
|
|
1951
|
+
body: await parseErrorBody(output.body, context),
|
|
1952
|
+
};
|
|
1953
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1954
|
+
switch (errorCode) {
|
|
1955
|
+
case "InternalServerException":
|
|
1956
|
+
case "com.amazonaws.athena#InternalServerException":
|
|
1957
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1958
|
+
case "InvalidRequestException":
|
|
1959
|
+
case "com.amazonaws.athena#InvalidRequestException":
|
|
1960
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1961
|
+
default:
|
|
1962
|
+
const parsedBody = parsedOutput.body;
|
|
1963
|
+
throwDefaultError({
|
|
1964
|
+
output,
|
|
1965
|
+
parsedBody,
|
|
1966
|
+
exceptionCtor: __BaseException,
|
|
1967
|
+
errorCode,
|
|
1968
|
+
});
|
|
1969
|
+
}
|
|
1970
|
+
};
|
|
1971
|
+
export const deserializeAws_json1_1ListNotebookMetadataCommand = async (output, context) => {
|
|
1972
|
+
if (output.statusCode >= 300) {
|
|
1973
|
+
return deserializeAws_json1_1ListNotebookMetadataCommandError(output, context);
|
|
1974
|
+
}
|
|
1975
|
+
const data = await parseBody(output.body, context);
|
|
1976
|
+
let contents = {};
|
|
1977
|
+
contents = deserializeAws_json1_1ListNotebookMetadataOutput(data, context);
|
|
1978
|
+
const response = {
|
|
1979
|
+
$metadata: deserializeMetadata(output),
|
|
1980
|
+
...contents,
|
|
1981
|
+
};
|
|
1982
|
+
return Promise.resolve(response);
|
|
1983
|
+
};
|
|
1984
|
+
const deserializeAws_json1_1ListNotebookMetadataCommandError = async (output, context) => {
|
|
1985
|
+
const parsedOutput = {
|
|
1986
|
+
...output,
|
|
1987
|
+
body: await parseErrorBody(output.body, context),
|
|
1988
|
+
};
|
|
1989
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1990
|
+
switch (errorCode) {
|
|
1991
|
+
case "InternalServerException":
|
|
1992
|
+
case "com.amazonaws.athena#InternalServerException":
|
|
1993
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1994
|
+
case "InvalidRequestException":
|
|
1995
|
+
case "com.amazonaws.athena#InvalidRequestException":
|
|
1996
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1997
|
+
case "TooManyRequestsException":
|
|
1998
|
+
case "com.amazonaws.athena#TooManyRequestsException":
|
|
1999
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2000
|
+
default:
|
|
2001
|
+
const parsedBody = parsedOutput.body;
|
|
2002
|
+
throwDefaultError({
|
|
2003
|
+
output,
|
|
2004
|
+
parsedBody,
|
|
2005
|
+
exceptionCtor: __BaseException,
|
|
2006
|
+
errorCode,
|
|
2007
|
+
});
|
|
2008
|
+
}
|
|
2009
|
+
};
|
|
2010
|
+
export const deserializeAws_json1_1ListNotebookSessionsCommand = async (output, context) => {
|
|
2011
|
+
if (output.statusCode >= 300) {
|
|
2012
|
+
return deserializeAws_json1_1ListNotebookSessionsCommandError(output, context);
|
|
2013
|
+
}
|
|
2014
|
+
const data = await parseBody(output.body, context);
|
|
2015
|
+
let contents = {};
|
|
2016
|
+
contents = deserializeAws_json1_1ListNotebookSessionsResponse(data, context);
|
|
2017
|
+
const response = {
|
|
2018
|
+
$metadata: deserializeMetadata(output),
|
|
2019
|
+
...contents,
|
|
2020
|
+
};
|
|
2021
|
+
return Promise.resolve(response);
|
|
2022
|
+
};
|
|
2023
|
+
const deserializeAws_json1_1ListNotebookSessionsCommandError = async (output, context) => {
|
|
2024
|
+
const parsedOutput = {
|
|
2025
|
+
...output,
|
|
2026
|
+
body: await parseErrorBody(output.body, context),
|
|
2027
|
+
};
|
|
2028
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2029
|
+
switch (errorCode) {
|
|
2030
|
+
case "InternalServerException":
|
|
2031
|
+
case "com.amazonaws.athena#InternalServerException":
|
|
2032
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
2033
|
+
case "InvalidRequestException":
|
|
2034
|
+
case "com.amazonaws.athena#InvalidRequestException":
|
|
2035
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
2036
|
+
case "ResourceNotFoundException":
|
|
2037
|
+
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
2038
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2039
|
+
default:
|
|
2040
|
+
const parsedBody = parsedOutput.body;
|
|
2041
|
+
throwDefaultError({
|
|
2042
|
+
output,
|
|
2043
|
+
parsedBody,
|
|
2044
|
+
exceptionCtor: __BaseException,
|
|
2045
|
+
errorCode,
|
|
2046
|
+
});
|
|
2047
|
+
}
|
|
2048
|
+
};
|
|
2049
|
+
export const deserializeAws_json1_1ListPreparedStatementsCommand = async (output, context) => {
|
|
2050
|
+
if (output.statusCode >= 300) {
|
|
2051
|
+
return deserializeAws_json1_1ListPreparedStatementsCommandError(output, context);
|
|
2052
|
+
}
|
|
2053
|
+
const data = await parseBody(output.body, context);
|
|
2054
|
+
let contents = {};
|
|
2055
|
+
contents = deserializeAws_json1_1ListPreparedStatementsOutput(data, context);
|
|
2056
|
+
const response = {
|
|
2057
|
+
$metadata: deserializeMetadata(output),
|
|
2058
|
+
...contents,
|
|
2059
|
+
};
|
|
2060
|
+
return Promise.resolve(response);
|
|
2061
|
+
};
|
|
2062
|
+
const deserializeAws_json1_1ListPreparedStatementsCommandError = async (output, context) => {
|
|
2063
|
+
const parsedOutput = {
|
|
2064
|
+
...output,
|
|
2065
|
+
body: await parseErrorBody(output.body, context),
|
|
2066
|
+
};
|
|
2067
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2068
|
+
switch (errorCode) {
|
|
2069
|
+
case "InternalServerException":
|
|
2070
|
+
case "com.amazonaws.athena#InternalServerException":
|
|
2071
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
2072
|
+
case "InvalidRequestException":
|
|
2073
|
+
case "com.amazonaws.athena#InvalidRequestException":
|
|
2074
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
2075
|
+
default:
|
|
2076
|
+
const parsedBody = parsedOutput.body;
|
|
2077
|
+
throwDefaultError({
|
|
2078
|
+
output,
|
|
2079
|
+
parsedBody,
|
|
2080
|
+
exceptionCtor: __BaseException,
|
|
2081
|
+
errorCode,
|
|
2082
|
+
});
|
|
2083
|
+
}
|
|
2084
|
+
};
|
|
2085
|
+
export const deserializeAws_json1_1ListQueryExecutionsCommand = async (output, context) => {
|
|
2086
|
+
if (output.statusCode >= 300) {
|
|
2087
|
+
return deserializeAws_json1_1ListQueryExecutionsCommandError(output, context);
|
|
2088
|
+
}
|
|
2089
|
+
const data = await parseBody(output.body, context);
|
|
2090
|
+
let contents = {};
|
|
2091
|
+
contents = deserializeAws_json1_1ListQueryExecutionsOutput(data, context);
|
|
1006
2092
|
const response = {
|
|
1007
2093
|
$metadata: deserializeMetadata(output),
|
|
1008
2094
|
...contents,
|
|
1009
2095
|
};
|
|
1010
2096
|
return Promise.resolve(response);
|
|
1011
2097
|
};
|
|
1012
|
-
const
|
|
2098
|
+
const deserializeAws_json1_1ListQueryExecutionsCommandError = async (output, context) => {
|
|
1013
2099
|
const parsedOutput = {
|
|
1014
2100
|
...output,
|
|
1015
2101
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1022,9 +2108,6 @@ const deserializeAws_json1_1GetTableMetadataCommandError = async (output, contex
|
|
|
1022
2108
|
case "InvalidRequestException":
|
|
1023
2109
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
1024
2110
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1025
|
-
case "MetadataException":
|
|
1026
|
-
case "com.amazonaws.athena#MetadataException":
|
|
1027
|
-
throw await deserializeAws_json1_1MetadataExceptionResponse(parsedOutput, context);
|
|
1028
2111
|
default:
|
|
1029
2112
|
const parsedBody = parsedOutput.body;
|
|
1030
2113
|
throwDefaultError({
|
|
@@ -1035,20 +2118,20 @@ const deserializeAws_json1_1GetTableMetadataCommandError = async (output, contex
|
|
|
1035
2118
|
});
|
|
1036
2119
|
}
|
|
1037
2120
|
};
|
|
1038
|
-
export const
|
|
2121
|
+
export const deserializeAws_json1_1ListSessionsCommand = async (output, context) => {
|
|
1039
2122
|
if (output.statusCode >= 300) {
|
|
1040
|
-
return
|
|
2123
|
+
return deserializeAws_json1_1ListSessionsCommandError(output, context);
|
|
1041
2124
|
}
|
|
1042
2125
|
const data = await parseBody(output.body, context);
|
|
1043
2126
|
let contents = {};
|
|
1044
|
-
contents =
|
|
2127
|
+
contents = deserializeAws_json1_1ListSessionsResponse(data, context);
|
|
1045
2128
|
const response = {
|
|
1046
2129
|
$metadata: deserializeMetadata(output),
|
|
1047
2130
|
...contents,
|
|
1048
2131
|
};
|
|
1049
2132
|
return Promise.resolve(response);
|
|
1050
2133
|
};
|
|
1051
|
-
const
|
|
2134
|
+
const deserializeAws_json1_1ListSessionsCommandError = async (output, context) => {
|
|
1052
2135
|
const parsedOutput = {
|
|
1053
2136
|
...output,
|
|
1054
2137
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1061,6 +2144,9 @@ const deserializeAws_json1_1GetWorkGroupCommandError = async (output, context) =
|
|
|
1061
2144
|
case "InvalidRequestException":
|
|
1062
2145
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
1063
2146
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
2147
|
+
case "ResourceNotFoundException":
|
|
2148
|
+
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
2149
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1064
2150
|
default:
|
|
1065
2151
|
const parsedBody = parsedOutput.body;
|
|
1066
2152
|
throwDefaultError({
|
|
@@ -1071,20 +2157,20 @@ const deserializeAws_json1_1GetWorkGroupCommandError = async (output, context) =
|
|
|
1071
2157
|
});
|
|
1072
2158
|
}
|
|
1073
2159
|
};
|
|
1074
|
-
export const
|
|
2160
|
+
export const deserializeAws_json1_1ListTableMetadataCommand = async (output, context) => {
|
|
1075
2161
|
if (output.statusCode >= 300) {
|
|
1076
|
-
return
|
|
2162
|
+
return deserializeAws_json1_1ListTableMetadataCommandError(output, context);
|
|
1077
2163
|
}
|
|
1078
2164
|
const data = await parseBody(output.body, context);
|
|
1079
2165
|
let contents = {};
|
|
1080
|
-
contents =
|
|
2166
|
+
contents = deserializeAws_json1_1ListTableMetadataOutput(data, context);
|
|
1081
2167
|
const response = {
|
|
1082
2168
|
$metadata: deserializeMetadata(output),
|
|
1083
2169
|
...contents,
|
|
1084
2170
|
};
|
|
1085
2171
|
return Promise.resolve(response);
|
|
1086
2172
|
};
|
|
1087
|
-
const
|
|
2173
|
+
const deserializeAws_json1_1ListTableMetadataCommandError = async (output, context) => {
|
|
1088
2174
|
const parsedOutput = {
|
|
1089
2175
|
...output,
|
|
1090
2176
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1110,20 +2196,20 @@ const deserializeAws_json1_1ListDatabasesCommandError = async (output, context)
|
|
|
1110
2196
|
});
|
|
1111
2197
|
}
|
|
1112
2198
|
};
|
|
1113
|
-
export const
|
|
2199
|
+
export const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => {
|
|
1114
2200
|
if (output.statusCode >= 300) {
|
|
1115
|
-
return
|
|
2201
|
+
return deserializeAws_json1_1ListTagsForResourceCommandError(output, context);
|
|
1116
2202
|
}
|
|
1117
2203
|
const data = await parseBody(output.body, context);
|
|
1118
2204
|
let contents = {};
|
|
1119
|
-
contents =
|
|
2205
|
+
contents = deserializeAws_json1_1ListTagsForResourceOutput(data, context);
|
|
1120
2206
|
const response = {
|
|
1121
2207
|
$metadata: deserializeMetadata(output),
|
|
1122
2208
|
...contents,
|
|
1123
2209
|
};
|
|
1124
2210
|
return Promise.resolve(response);
|
|
1125
2211
|
};
|
|
1126
|
-
const
|
|
2212
|
+
const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, context) => {
|
|
1127
2213
|
const parsedOutput = {
|
|
1128
2214
|
...output,
|
|
1129
2215
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1136,6 +2222,9 @@ const deserializeAws_json1_1ListDataCatalogsCommandError = async (output, contex
|
|
|
1136
2222
|
case "InvalidRequestException":
|
|
1137
2223
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
1138
2224
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
2225
|
+
case "ResourceNotFoundException":
|
|
2226
|
+
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
2227
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1139
2228
|
default:
|
|
1140
2229
|
const parsedBody = parsedOutput.body;
|
|
1141
2230
|
throwDefaultError({
|
|
@@ -1146,20 +2235,20 @@ const deserializeAws_json1_1ListDataCatalogsCommandError = async (output, contex
|
|
|
1146
2235
|
});
|
|
1147
2236
|
}
|
|
1148
2237
|
};
|
|
1149
|
-
export const
|
|
2238
|
+
export const deserializeAws_json1_1ListWorkGroupsCommand = async (output, context) => {
|
|
1150
2239
|
if (output.statusCode >= 300) {
|
|
1151
|
-
return
|
|
2240
|
+
return deserializeAws_json1_1ListWorkGroupsCommandError(output, context);
|
|
1152
2241
|
}
|
|
1153
2242
|
const data = await parseBody(output.body, context);
|
|
1154
2243
|
let contents = {};
|
|
1155
|
-
contents =
|
|
2244
|
+
contents = deserializeAws_json1_1ListWorkGroupsOutput(data, context);
|
|
1156
2245
|
const response = {
|
|
1157
2246
|
$metadata: deserializeMetadata(output),
|
|
1158
2247
|
...contents,
|
|
1159
2248
|
};
|
|
1160
2249
|
return Promise.resolve(response);
|
|
1161
2250
|
};
|
|
1162
|
-
const
|
|
2251
|
+
const deserializeAws_json1_1ListWorkGroupsCommandError = async (output, context) => {
|
|
1163
2252
|
const parsedOutput = {
|
|
1164
2253
|
...output,
|
|
1165
2254
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1182,20 +2271,20 @@ const deserializeAws_json1_1ListEngineVersionsCommandError = async (output, cont
|
|
|
1182
2271
|
});
|
|
1183
2272
|
}
|
|
1184
2273
|
};
|
|
1185
|
-
export const
|
|
2274
|
+
export const deserializeAws_json1_1StartCalculationExecutionCommand = async (output, context) => {
|
|
1186
2275
|
if (output.statusCode >= 300) {
|
|
1187
|
-
return
|
|
2276
|
+
return deserializeAws_json1_1StartCalculationExecutionCommandError(output, context);
|
|
1188
2277
|
}
|
|
1189
2278
|
const data = await parseBody(output.body, context);
|
|
1190
2279
|
let contents = {};
|
|
1191
|
-
contents =
|
|
2280
|
+
contents = deserializeAws_json1_1StartCalculationExecutionResponse(data, context);
|
|
1192
2281
|
const response = {
|
|
1193
2282
|
$metadata: deserializeMetadata(output),
|
|
1194
2283
|
...contents,
|
|
1195
2284
|
};
|
|
1196
2285
|
return Promise.resolve(response);
|
|
1197
2286
|
};
|
|
1198
|
-
const
|
|
2287
|
+
const deserializeAws_json1_1StartCalculationExecutionCommandError = async (output, context) => {
|
|
1199
2288
|
const parsedOutput = {
|
|
1200
2289
|
...output,
|
|
1201
2290
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1208,6 +2297,9 @@ const deserializeAws_json1_1ListNamedQueriesCommandError = async (output, contex
|
|
|
1208
2297
|
case "InvalidRequestException":
|
|
1209
2298
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
1210
2299
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
2300
|
+
case "ResourceNotFoundException":
|
|
2301
|
+
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
2302
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1211
2303
|
default:
|
|
1212
2304
|
const parsedBody = parsedOutput.body;
|
|
1213
2305
|
throwDefaultError({
|
|
@@ -1218,20 +2310,20 @@ const deserializeAws_json1_1ListNamedQueriesCommandError = async (output, contex
|
|
|
1218
2310
|
});
|
|
1219
2311
|
}
|
|
1220
2312
|
};
|
|
1221
|
-
export const
|
|
2313
|
+
export const deserializeAws_json1_1StartQueryExecutionCommand = async (output, context) => {
|
|
1222
2314
|
if (output.statusCode >= 300) {
|
|
1223
|
-
return
|
|
2315
|
+
return deserializeAws_json1_1StartQueryExecutionCommandError(output, context);
|
|
1224
2316
|
}
|
|
1225
2317
|
const data = await parseBody(output.body, context);
|
|
1226
2318
|
let contents = {};
|
|
1227
|
-
contents =
|
|
2319
|
+
contents = deserializeAws_json1_1StartQueryExecutionOutput(data, context);
|
|
1228
2320
|
const response = {
|
|
1229
2321
|
$metadata: deserializeMetadata(output),
|
|
1230
2322
|
...contents,
|
|
1231
2323
|
};
|
|
1232
2324
|
return Promise.resolve(response);
|
|
1233
2325
|
};
|
|
1234
|
-
const
|
|
2326
|
+
const deserializeAws_json1_1StartQueryExecutionCommandError = async (output, context) => {
|
|
1235
2327
|
const parsedOutput = {
|
|
1236
2328
|
...output,
|
|
1237
2329
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1244,6 +2336,9 @@ const deserializeAws_json1_1ListPreparedStatementsCommandError = async (output,
|
|
|
1244
2336
|
case "InvalidRequestException":
|
|
1245
2337
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
1246
2338
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
2339
|
+
case "TooManyRequestsException":
|
|
2340
|
+
case "com.amazonaws.athena#TooManyRequestsException":
|
|
2341
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1247
2342
|
default:
|
|
1248
2343
|
const parsedBody = parsedOutput.body;
|
|
1249
2344
|
throwDefaultError({
|
|
@@ -1254,20 +2349,20 @@ const deserializeAws_json1_1ListPreparedStatementsCommandError = async (output,
|
|
|
1254
2349
|
});
|
|
1255
2350
|
}
|
|
1256
2351
|
};
|
|
1257
|
-
export const
|
|
2352
|
+
export const deserializeAws_json1_1StartSessionCommand = async (output, context) => {
|
|
1258
2353
|
if (output.statusCode >= 300) {
|
|
1259
|
-
return
|
|
2354
|
+
return deserializeAws_json1_1StartSessionCommandError(output, context);
|
|
1260
2355
|
}
|
|
1261
2356
|
const data = await parseBody(output.body, context);
|
|
1262
2357
|
let contents = {};
|
|
1263
|
-
contents =
|
|
2358
|
+
contents = deserializeAws_json1_1StartSessionResponse(data, context);
|
|
1264
2359
|
const response = {
|
|
1265
2360
|
$metadata: deserializeMetadata(output),
|
|
1266
2361
|
...contents,
|
|
1267
2362
|
};
|
|
1268
2363
|
return Promise.resolve(response);
|
|
1269
2364
|
};
|
|
1270
|
-
const
|
|
2365
|
+
const deserializeAws_json1_1StartSessionCommandError = async (output, context) => {
|
|
1271
2366
|
const parsedOutput = {
|
|
1272
2367
|
...output,
|
|
1273
2368
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1280,6 +2375,15 @@ const deserializeAws_json1_1ListQueryExecutionsCommandError = async (output, con
|
|
|
1280
2375
|
case "InvalidRequestException":
|
|
1281
2376
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
1282
2377
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
2378
|
+
case "ResourceNotFoundException":
|
|
2379
|
+
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
2380
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2381
|
+
case "SessionAlreadyExistsException":
|
|
2382
|
+
case "com.amazonaws.athena#SessionAlreadyExistsException":
|
|
2383
|
+
throw await deserializeAws_json1_1SessionAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
2384
|
+
case "TooManyRequestsException":
|
|
2385
|
+
case "com.amazonaws.athena#TooManyRequestsException":
|
|
2386
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1283
2387
|
default:
|
|
1284
2388
|
const parsedBody = parsedOutput.body;
|
|
1285
2389
|
throwDefaultError({
|
|
@@ -1290,20 +2394,20 @@ const deserializeAws_json1_1ListQueryExecutionsCommandError = async (output, con
|
|
|
1290
2394
|
});
|
|
1291
2395
|
}
|
|
1292
2396
|
};
|
|
1293
|
-
export const
|
|
2397
|
+
export const deserializeAws_json1_1StopCalculationExecutionCommand = async (output, context) => {
|
|
1294
2398
|
if (output.statusCode >= 300) {
|
|
1295
|
-
return
|
|
2399
|
+
return deserializeAws_json1_1StopCalculationExecutionCommandError(output, context);
|
|
1296
2400
|
}
|
|
1297
2401
|
const data = await parseBody(output.body, context);
|
|
1298
2402
|
let contents = {};
|
|
1299
|
-
contents =
|
|
2403
|
+
contents = deserializeAws_json1_1StopCalculationExecutionResponse(data, context);
|
|
1300
2404
|
const response = {
|
|
1301
2405
|
$metadata: deserializeMetadata(output),
|
|
1302
2406
|
...contents,
|
|
1303
2407
|
};
|
|
1304
2408
|
return Promise.resolve(response);
|
|
1305
2409
|
};
|
|
1306
|
-
const
|
|
2410
|
+
const deserializeAws_json1_1StopCalculationExecutionCommandError = async (output, context) => {
|
|
1307
2411
|
const parsedOutput = {
|
|
1308
2412
|
...output,
|
|
1309
2413
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1313,12 +2417,9 @@ const deserializeAws_json1_1ListTableMetadataCommandError = async (output, conte
|
|
|
1313
2417
|
case "InternalServerException":
|
|
1314
2418
|
case "com.amazonaws.athena#InternalServerException":
|
|
1315
2419
|
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1316
|
-
case "
|
|
1317
|
-
case "com.amazonaws.athena#
|
|
1318
|
-
throw await
|
|
1319
|
-
case "MetadataException":
|
|
1320
|
-
case "com.amazonaws.athena#MetadataException":
|
|
1321
|
-
throw await deserializeAws_json1_1MetadataExceptionResponse(parsedOutput, context);
|
|
2420
|
+
case "ResourceNotFoundException":
|
|
2421
|
+
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
2422
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1322
2423
|
default:
|
|
1323
2424
|
const parsedBody = parsedOutput.body;
|
|
1324
2425
|
throwDefaultError({
|
|
@@ -1329,20 +2430,20 @@ const deserializeAws_json1_1ListTableMetadataCommandError = async (output, conte
|
|
|
1329
2430
|
});
|
|
1330
2431
|
}
|
|
1331
2432
|
};
|
|
1332
|
-
export const
|
|
2433
|
+
export const deserializeAws_json1_1StopQueryExecutionCommand = async (output, context) => {
|
|
1333
2434
|
if (output.statusCode >= 300) {
|
|
1334
|
-
return
|
|
2435
|
+
return deserializeAws_json1_1StopQueryExecutionCommandError(output, context);
|
|
1335
2436
|
}
|
|
1336
2437
|
const data = await parseBody(output.body, context);
|
|
1337
2438
|
let contents = {};
|
|
1338
|
-
contents =
|
|
2439
|
+
contents = deserializeAws_json1_1StopQueryExecutionOutput(data, context);
|
|
1339
2440
|
const response = {
|
|
1340
2441
|
$metadata: deserializeMetadata(output),
|
|
1341
2442
|
...contents,
|
|
1342
2443
|
};
|
|
1343
2444
|
return Promise.resolve(response);
|
|
1344
2445
|
};
|
|
1345
|
-
const
|
|
2446
|
+
const deserializeAws_json1_1StopQueryExecutionCommandError = async (output, context) => {
|
|
1346
2447
|
const parsedOutput = {
|
|
1347
2448
|
...output,
|
|
1348
2449
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1355,9 +2456,6 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
1355
2456
|
case "InvalidRequestException":
|
|
1356
2457
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
1357
2458
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1358
|
-
case "ResourceNotFoundException":
|
|
1359
|
-
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
1360
|
-
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1361
2459
|
default:
|
|
1362
2460
|
const parsedBody = parsedOutput.body;
|
|
1363
2461
|
throwDefaultError({
|
|
@@ -1368,20 +2466,20 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
1368
2466
|
});
|
|
1369
2467
|
}
|
|
1370
2468
|
};
|
|
1371
|
-
export const
|
|
2469
|
+
export const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
1372
2470
|
if (output.statusCode >= 300) {
|
|
1373
|
-
return
|
|
2471
|
+
return deserializeAws_json1_1TagResourceCommandError(output, context);
|
|
1374
2472
|
}
|
|
1375
2473
|
const data = await parseBody(output.body, context);
|
|
1376
2474
|
let contents = {};
|
|
1377
|
-
contents =
|
|
2475
|
+
contents = deserializeAws_json1_1TagResourceOutput(data, context);
|
|
1378
2476
|
const response = {
|
|
1379
2477
|
$metadata: deserializeMetadata(output),
|
|
1380
2478
|
...contents,
|
|
1381
2479
|
};
|
|
1382
2480
|
return Promise.resolve(response);
|
|
1383
2481
|
};
|
|
1384
|
-
const
|
|
2482
|
+
const deserializeAws_json1_1TagResourceCommandError = async (output, context) => {
|
|
1385
2483
|
const parsedOutput = {
|
|
1386
2484
|
...output,
|
|
1387
2485
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1394,6 +2492,9 @@ const deserializeAws_json1_1ListWorkGroupsCommandError = async (output, context)
|
|
|
1394
2492
|
case "InvalidRequestException":
|
|
1395
2493
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
1396
2494
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
2495
|
+
case "ResourceNotFoundException":
|
|
2496
|
+
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
2497
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1397
2498
|
default:
|
|
1398
2499
|
const parsedBody = parsedOutput.body;
|
|
1399
2500
|
throwDefaultError({
|
|
@@ -1404,20 +2505,20 @@ const deserializeAws_json1_1ListWorkGroupsCommandError = async (output, context)
|
|
|
1404
2505
|
});
|
|
1405
2506
|
}
|
|
1406
2507
|
};
|
|
1407
|
-
export const
|
|
2508
|
+
export const deserializeAws_json1_1TerminateSessionCommand = async (output, context) => {
|
|
1408
2509
|
if (output.statusCode >= 300) {
|
|
1409
|
-
return
|
|
2510
|
+
return deserializeAws_json1_1TerminateSessionCommandError(output, context);
|
|
1410
2511
|
}
|
|
1411
2512
|
const data = await parseBody(output.body, context);
|
|
1412
2513
|
let contents = {};
|
|
1413
|
-
contents =
|
|
2514
|
+
contents = deserializeAws_json1_1TerminateSessionResponse(data, context);
|
|
1414
2515
|
const response = {
|
|
1415
2516
|
$metadata: deserializeMetadata(output),
|
|
1416
2517
|
...contents,
|
|
1417
2518
|
};
|
|
1418
2519
|
return Promise.resolve(response);
|
|
1419
2520
|
};
|
|
1420
|
-
const
|
|
2521
|
+
const deserializeAws_json1_1TerminateSessionCommandError = async (output, context) => {
|
|
1421
2522
|
const parsedOutput = {
|
|
1422
2523
|
...output,
|
|
1423
2524
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1430,9 +2531,9 @@ const deserializeAws_json1_1StartQueryExecutionCommandError = async (output, con
|
|
|
1430
2531
|
case "InvalidRequestException":
|
|
1431
2532
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
1432
2533
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1433
|
-
case "
|
|
1434
|
-
case "com.amazonaws.athena#
|
|
1435
|
-
throw await
|
|
2534
|
+
case "ResourceNotFoundException":
|
|
2535
|
+
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
2536
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1436
2537
|
default:
|
|
1437
2538
|
const parsedBody = parsedOutput.body;
|
|
1438
2539
|
throwDefaultError({
|
|
@@ -1443,20 +2544,20 @@ const deserializeAws_json1_1StartQueryExecutionCommandError = async (output, con
|
|
|
1443
2544
|
});
|
|
1444
2545
|
}
|
|
1445
2546
|
};
|
|
1446
|
-
export const
|
|
2547
|
+
export const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
|
|
1447
2548
|
if (output.statusCode >= 300) {
|
|
1448
|
-
return
|
|
2549
|
+
return deserializeAws_json1_1UntagResourceCommandError(output, context);
|
|
1449
2550
|
}
|
|
1450
2551
|
const data = await parseBody(output.body, context);
|
|
1451
2552
|
let contents = {};
|
|
1452
|
-
contents =
|
|
2553
|
+
contents = deserializeAws_json1_1UntagResourceOutput(data, context);
|
|
1453
2554
|
const response = {
|
|
1454
2555
|
$metadata: deserializeMetadata(output),
|
|
1455
2556
|
...contents,
|
|
1456
2557
|
};
|
|
1457
2558
|
return Promise.resolve(response);
|
|
1458
2559
|
};
|
|
1459
|
-
const
|
|
2560
|
+
const deserializeAws_json1_1UntagResourceCommandError = async (output, context) => {
|
|
1460
2561
|
const parsedOutput = {
|
|
1461
2562
|
...output,
|
|
1462
2563
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1469,6 +2570,9 @@ const deserializeAws_json1_1StopQueryExecutionCommandError = async (output, cont
|
|
|
1469
2570
|
case "InvalidRequestException":
|
|
1470
2571
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
1471
2572
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
2573
|
+
case "ResourceNotFoundException":
|
|
2574
|
+
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
2575
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1472
2576
|
default:
|
|
1473
2577
|
const parsedBody = parsedOutput.body;
|
|
1474
2578
|
throwDefaultError({
|
|
@@ -1479,20 +2583,20 @@ const deserializeAws_json1_1StopQueryExecutionCommandError = async (output, cont
|
|
|
1479
2583
|
});
|
|
1480
2584
|
}
|
|
1481
2585
|
};
|
|
1482
|
-
export const
|
|
2586
|
+
export const deserializeAws_json1_1UpdateDataCatalogCommand = async (output, context) => {
|
|
1483
2587
|
if (output.statusCode >= 300) {
|
|
1484
|
-
return
|
|
2588
|
+
return deserializeAws_json1_1UpdateDataCatalogCommandError(output, context);
|
|
1485
2589
|
}
|
|
1486
2590
|
const data = await parseBody(output.body, context);
|
|
1487
2591
|
let contents = {};
|
|
1488
|
-
contents =
|
|
2592
|
+
contents = deserializeAws_json1_1UpdateDataCatalogOutput(data, context);
|
|
1489
2593
|
const response = {
|
|
1490
2594
|
$metadata: deserializeMetadata(output),
|
|
1491
2595
|
...contents,
|
|
1492
2596
|
};
|
|
1493
2597
|
return Promise.resolve(response);
|
|
1494
2598
|
};
|
|
1495
|
-
const
|
|
2599
|
+
const deserializeAws_json1_1UpdateDataCatalogCommandError = async (output, context) => {
|
|
1496
2600
|
const parsedOutput = {
|
|
1497
2601
|
...output,
|
|
1498
2602
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1505,9 +2609,6 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
1505
2609
|
case "InvalidRequestException":
|
|
1506
2610
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
1507
2611
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1508
|
-
case "ResourceNotFoundException":
|
|
1509
|
-
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
1510
|
-
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1511
2612
|
default:
|
|
1512
2613
|
const parsedBody = parsedOutput.body;
|
|
1513
2614
|
throwDefaultError({
|
|
@@ -1518,20 +2619,20 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
1518
2619
|
});
|
|
1519
2620
|
}
|
|
1520
2621
|
};
|
|
1521
|
-
export const
|
|
2622
|
+
export const deserializeAws_json1_1UpdateNamedQueryCommand = async (output, context) => {
|
|
1522
2623
|
if (output.statusCode >= 300) {
|
|
1523
|
-
return
|
|
2624
|
+
return deserializeAws_json1_1UpdateNamedQueryCommandError(output, context);
|
|
1524
2625
|
}
|
|
1525
2626
|
const data = await parseBody(output.body, context);
|
|
1526
2627
|
let contents = {};
|
|
1527
|
-
contents =
|
|
2628
|
+
contents = deserializeAws_json1_1UpdateNamedQueryOutput(data, context);
|
|
1528
2629
|
const response = {
|
|
1529
2630
|
$metadata: deserializeMetadata(output),
|
|
1530
2631
|
...contents,
|
|
1531
2632
|
};
|
|
1532
2633
|
return Promise.resolve(response);
|
|
1533
2634
|
};
|
|
1534
|
-
const
|
|
2635
|
+
const deserializeAws_json1_1UpdateNamedQueryCommandError = async (output, context) => {
|
|
1535
2636
|
const parsedOutput = {
|
|
1536
2637
|
...output,
|
|
1537
2638
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1544,9 +2645,6 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
1544
2645
|
case "InvalidRequestException":
|
|
1545
2646
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
1546
2647
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1547
|
-
case "ResourceNotFoundException":
|
|
1548
|
-
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
1549
|
-
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1550
2648
|
default:
|
|
1551
2649
|
const parsedBody = parsedOutput.body;
|
|
1552
2650
|
throwDefaultError({
|
|
@@ -1557,20 +2655,20 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
1557
2655
|
});
|
|
1558
2656
|
}
|
|
1559
2657
|
};
|
|
1560
|
-
export const
|
|
2658
|
+
export const deserializeAws_json1_1UpdateNotebookCommand = async (output, context) => {
|
|
1561
2659
|
if (output.statusCode >= 300) {
|
|
1562
|
-
return
|
|
2660
|
+
return deserializeAws_json1_1UpdateNotebookCommandError(output, context);
|
|
1563
2661
|
}
|
|
1564
2662
|
const data = await parseBody(output.body, context);
|
|
1565
2663
|
let contents = {};
|
|
1566
|
-
contents =
|
|
2664
|
+
contents = deserializeAws_json1_1UpdateNotebookOutput(data, context);
|
|
1567
2665
|
const response = {
|
|
1568
2666
|
$metadata: deserializeMetadata(output),
|
|
1569
2667
|
...contents,
|
|
1570
2668
|
};
|
|
1571
2669
|
return Promise.resolve(response);
|
|
1572
2670
|
};
|
|
1573
|
-
const
|
|
2671
|
+
const deserializeAws_json1_1UpdateNotebookCommandError = async (output, context) => {
|
|
1574
2672
|
const parsedOutput = {
|
|
1575
2673
|
...output,
|
|
1576
2674
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1583,6 +2681,9 @@ const deserializeAws_json1_1UpdateDataCatalogCommandError = async (output, conte
|
|
|
1583
2681
|
case "InvalidRequestException":
|
|
1584
2682
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
1585
2683
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
2684
|
+
case "TooManyRequestsException":
|
|
2685
|
+
case "com.amazonaws.athena#TooManyRequestsException":
|
|
2686
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1586
2687
|
default:
|
|
1587
2688
|
const parsedBody = parsedOutput.body;
|
|
1588
2689
|
throwDefaultError({
|
|
@@ -1593,20 +2694,20 @@ const deserializeAws_json1_1UpdateDataCatalogCommandError = async (output, conte
|
|
|
1593
2694
|
});
|
|
1594
2695
|
}
|
|
1595
2696
|
};
|
|
1596
|
-
export const
|
|
2697
|
+
export const deserializeAws_json1_1UpdateNotebookMetadataCommand = async (output, context) => {
|
|
1597
2698
|
if (output.statusCode >= 300) {
|
|
1598
|
-
return
|
|
2699
|
+
return deserializeAws_json1_1UpdateNotebookMetadataCommandError(output, context);
|
|
1599
2700
|
}
|
|
1600
2701
|
const data = await parseBody(output.body, context);
|
|
1601
2702
|
let contents = {};
|
|
1602
|
-
contents =
|
|
2703
|
+
contents = deserializeAws_json1_1UpdateNotebookMetadataOutput(data, context);
|
|
1603
2704
|
const response = {
|
|
1604
2705
|
$metadata: deserializeMetadata(output),
|
|
1605
2706
|
...contents,
|
|
1606
2707
|
};
|
|
1607
2708
|
return Promise.resolve(response);
|
|
1608
2709
|
};
|
|
1609
|
-
const
|
|
2710
|
+
const deserializeAws_json1_1UpdateNotebookMetadataCommandError = async (output, context) => {
|
|
1610
2711
|
const parsedOutput = {
|
|
1611
2712
|
...output,
|
|
1612
2713
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1619,6 +2720,9 @@ const deserializeAws_json1_1UpdateNamedQueryCommandError = async (output, contex
|
|
|
1619
2720
|
case "InvalidRequestException":
|
|
1620
2721
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
1621
2722
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
2723
|
+
case "TooManyRequestsException":
|
|
2724
|
+
case "com.amazonaws.athena#TooManyRequestsException":
|
|
2725
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1622
2726
|
default:
|
|
1623
2727
|
const parsedBody = parsedOutput.body;
|
|
1624
2728
|
throwDefaultError({
|
|
@@ -1740,6 +2844,15 @@ const deserializeAws_json1_1ResourceNotFoundExceptionResponse = async (parsedOut
|
|
|
1740
2844
|
});
|
|
1741
2845
|
return __decorateServiceException(exception, body);
|
|
1742
2846
|
};
|
|
2847
|
+
const deserializeAws_json1_1SessionAlreadyExistsExceptionResponse = async (parsedOutput, context) => {
|
|
2848
|
+
const body = parsedOutput.body;
|
|
2849
|
+
const deserialized = deserializeAws_json1_1SessionAlreadyExistsException(body, context);
|
|
2850
|
+
const exception = new SessionAlreadyExistsException({
|
|
2851
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2852
|
+
...deserialized,
|
|
2853
|
+
});
|
|
2854
|
+
return __decorateServiceException(exception, body);
|
|
2855
|
+
};
|
|
1743
2856
|
const deserializeAws_json1_1TooManyRequestsExceptionResponse = async (parsedOutput, context) => {
|
|
1744
2857
|
const body = parsedOutput.body;
|
|
1745
2858
|
const deserialized = deserializeAws_json1_1TooManyRequestsException(body, context);
|
|
@@ -1776,6 +2889,11 @@ const serializeAws_json1_1BatchGetQueryExecutionInput = (input, context) => {
|
|
|
1776
2889
|
}),
|
|
1777
2890
|
};
|
|
1778
2891
|
};
|
|
2892
|
+
const serializeAws_json1_1CalculationConfiguration = (input, context) => {
|
|
2893
|
+
return {
|
|
2894
|
+
...(input.CodeBlock != null && { CodeBlock: input.CodeBlock }),
|
|
2895
|
+
};
|
|
2896
|
+
};
|
|
1779
2897
|
const serializeAws_json1_1CreateDataCatalogInput = (input, context) => {
|
|
1780
2898
|
return {
|
|
1781
2899
|
...(input.Description != null && { Description: input.Description }),
|
|
@@ -1795,6 +2913,13 @@ const serializeAws_json1_1CreateNamedQueryInput = (input, context) => {
|
|
|
1795
2913
|
...(input.WorkGroup != null && { WorkGroup: input.WorkGroup }),
|
|
1796
2914
|
};
|
|
1797
2915
|
};
|
|
2916
|
+
const serializeAws_json1_1CreateNotebookInput = (input, context) => {
|
|
2917
|
+
return {
|
|
2918
|
+
...(input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken }),
|
|
2919
|
+
...(input.Name != null && { Name: input.Name }),
|
|
2920
|
+
...(input.WorkGroup != null && { WorkGroup: input.WorkGroup }),
|
|
2921
|
+
};
|
|
2922
|
+
};
|
|
1798
2923
|
const serializeAws_json1_1CreatePreparedStatementInput = (input, context) => {
|
|
1799
2924
|
return {
|
|
1800
2925
|
...(input.Description != null && { Description: input.Description }),
|
|
@@ -1803,6 +2928,11 @@ const serializeAws_json1_1CreatePreparedStatementInput = (input, context) => {
|
|
|
1803
2928
|
...(input.WorkGroup != null && { WorkGroup: input.WorkGroup }),
|
|
1804
2929
|
};
|
|
1805
2930
|
};
|
|
2931
|
+
const serializeAws_json1_1CreatePresignedNotebookUrlRequest = (input, context) => {
|
|
2932
|
+
return {
|
|
2933
|
+
...(input.SessionId != null && { SessionId: input.SessionId }),
|
|
2934
|
+
};
|
|
2935
|
+
};
|
|
1806
2936
|
const serializeAws_json1_1CreateWorkGroupInput = (input, context) => {
|
|
1807
2937
|
return {
|
|
1808
2938
|
...(input.Configuration != null && {
|
|
@@ -1813,6 +2943,11 @@ const serializeAws_json1_1CreateWorkGroupInput = (input, context) => {
|
|
|
1813
2943
|
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
1814
2944
|
};
|
|
1815
2945
|
};
|
|
2946
|
+
const serializeAws_json1_1CustomerContentEncryptionConfiguration = (input, context) => {
|
|
2947
|
+
return {
|
|
2948
|
+
...(input.KmsKey != null && { KmsKey: input.KmsKey }),
|
|
2949
|
+
};
|
|
2950
|
+
};
|
|
1816
2951
|
const serializeAws_json1_1DeleteDataCatalogInput = (input, context) => {
|
|
1817
2952
|
return {
|
|
1818
2953
|
...(input.Name != null && { Name: input.Name }),
|
|
@@ -1823,6 +2958,11 @@ const serializeAws_json1_1DeleteNamedQueryInput = (input, context) => {
|
|
|
1823
2958
|
NamedQueryId: input.NamedQueryId ?? generateIdempotencyToken(),
|
|
1824
2959
|
};
|
|
1825
2960
|
};
|
|
2961
|
+
const serializeAws_json1_1DeleteNotebookInput = (input, context) => {
|
|
2962
|
+
return {
|
|
2963
|
+
...(input.NotebookId != null && { NotebookId: input.NotebookId }),
|
|
2964
|
+
};
|
|
2965
|
+
};
|
|
1826
2966
|
const serializeAws_json1_1DeletePreparedStatementInput = (input, context) => {
|
|
1827
2967
|
return {
|
|
1828
2968
|
...(input.StatementName != null && { StatementName: input.StatementName }),
|
|
@@ -1841,6 +2981,16 @@ const serializeAws_json1_1EncryptionConfiguration = (input, context) => {
|
|
|
1841
2981
|
...(input.KmsKey != null && { KmsKey: input.KmsKey }),
|
|
1842
2982
|
};
|
|
1843
2983
|
};
|
|
2984
|
+
const serializeAws_json1_1EngineConfiguration = (input, context) => {
|
|
2985
|
+
return {
|
|
2986
|
+
...(input.AdditionalConfigs != null && {
|
|
2987
|
+
AdditionalConfigs: serializeAws_json1_1ParametersMap(input.AdditionalConfigs, context),
|
|
2988
|
+
}),
|
|
2989
|
+
...(input.CoordinatorDpuSize != null && { CoordinatorDpuSize: input.CoordinatorDpuSize }),
|
|
2990
|
+
...(input.DefaultExecutorDpuSize != null && { DefaultExecutorDpuSize: input.DefaultExecutorDpuSize }),
|
|
2991
|
+
...(input.MaxConcurrentDpus != null && { MaxConcurrentDpus: input.MaxConcurrentDpus }),
|
|
2992
|
+
};
|
|
2993
|
+
};
|
|
1844
2994
|
const serializeAws_json1_1EngineVersion = (input, context) => {
|
|
1845
2995
|
return {
|
|
1846
2996
|
...(input.EffectiveEngineVersion != null && { EffectiveEngineVersion: input.EffectiveEngineVersion }),
|
|
@@ -1854,6 +3004,31 @@ const serializeAws_json1_1ExecutionParameters = (input, context) => {
|
|
|
1854
3004
|
return entry;
|
|
1855
3005
|
});
|
|
1856
3006
|
};
|
|
3007
|
+
const serializeAws_json1_1ExportNotebookInput = (input, context) => {
|
|
3008
|
+
return {
|
|
3009
|
+
...(input.NotebookId != null && { NotebookId: input.NotebookId }),
|
|
3010
|
+
};
|
|
3011
|
+
};
|
|
3012
|
+
const serializeAws_json1_1FilterDefinition = (input, context) => {
|
|
3013
|
+
return {
|
|
3014
|
+
...(input.Name != null && { Name: input.Name }),
|
|
3015
|
+
};
|
|
3016
|
+
};
|
|
3017
|
+
const serializeAws_json1_1GetCalculationExecutionCodeRequest = (input, context) => {
|
|
3018
|
+
return {
|
|
3019
|
+
...(input.CalculationExecutionId != null && { CalculationExecutionId: input.CalculationExecutionId }),
|
|
3020
|
+
};
|
|
3021
|
+
};
|
|
3022
|
+
const serializeAws_json1_1GetCalculationExecutionRequest = (input, context) => {
|
|
3023
|
+
return {
|
|
3024
|
+
...(input.CalculationExecutionId != null && { CalculationExecutionId: input.CalculationExecutionId }),
|
|
3025
|
+
};
|
|
3026
|
+
};
|
|
3027
|
+
const serializeAws_json1_1GetCalculationExecutionStatusRequest = (input, context) => {
|
|
3028
|
+
return {
|
|
3029
|
+
...(input.CalculationExecutionId != null && { CalculationExecutionId: input.CalculationExecutionId }),
|
|
3030
|
+
};
|
|
3031
|
+
};
|
|
1857
3032
|
const serializeAws_json1_1GetDatabaseInput = (input, context) => {
|
|
1858
3033
|
return {
|
|
1859
3034
|
...(input.CatalogName != null && { CatalogName: input.CatalogName }),
|
|
@@ -1870,6 +3045,11 @@ const serializeAws_json1_1GetNamedQueryInput = (input, context) => {
|
|
|
1870
3045
|
...(input.NamedQueryId != null && { NamedQueryId: input.NamedQueryId }),
|
|
1871
3046
|
};
|
|
1872
3047
|
};
|
|
3048
|
+
const serializeAws_json1_1GetNotebookMetadataInput = (input, context) => {
|
|
3049
|
+
return {
|
|
3050
|
+
...(input.NotebookId != null && { NotebookId: input.NotebookId }),
|
|
3051
|
+
};
|
|
3052
|
+
};
|
|
1873
3053
|
const serializeAws_json1_1GetPreparedStatementInput = (input, context) => {
|
|
1874
3054
|
return {
|
|
1875
3055
|
...(input.StatementName != null && { StatementName: input.StatementName }),
|
|
@@ -1893,6 +3073,16 @@ const serializeAws_json1_1GetQueryRuntimeStatisticsInput = (input, context) => {
|
|
|
1893
3073
|
...(input.QueryExecutionId != null && { QueryExecutionId: input.QueryExecutionId }),
|
|
1894
3074
|
};
|
|
1895
3075
|
};
|
|
3076
|
+
const serializeAws_json1_1GetSessionRequest = (input, context) => {
|
|
3077
|
+
return {
|
|
3078
|
+
...(input.SessionId != null && { SessionId: input.SessionId }),
|
|
3079
|
+
};
|
|
3080
|
+
};
|
|
3081
|
+
const serializeAws_json1_1GetSessionStatusRequest = (input, context) => {
|
|
3082
|
+
return {
|
|
3083
|
+
...(input.SessionId != null && { SessionId: input.SessionId }),
|
|
3084
|
+
};
|
|
3085
|
+
};
|
|
1896
3086
|
const serializeAws_json1_1GetTableMetadataInput = (input, context) => {
|
|
1897
3087
|
return {
|
|
1898
3088
|
...(input.CatalogName != null && { CatalogName: input.CatalogName }),
|
|
@@ -1905,6 +3095,29 @@ const serializeAws_json1_1GetWorkGroupInput = (input, context) => {
|
|
|
1905
3095
|
...(input.WorkGroup != null && { WorkGroup: input.WorkGroup }),
|
|
1906
3096
|
};
|
|
1907
3097
|
};
|
|
3098
|
+
const serializeAws_json1_1ImportNotebookInput = (input, context) => {
|
|
3099
|
+
return {
|
|
3100
|
+
...(input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken }),
|
|
3101
|
+
...(input.Name != null && { Name: input.Name }),
|
|
3102
|
+
...(input.Payload != null && { Payload: input.Payload }),
|
|
3103
|
+
...(input.Type != null && { Type: input.Type }),
|
|
3104
|
+
...(input.WorkGroup != null && { WorkGroup: input.WorkGroup }),
|
|
3105
|
+
};
|
|
3106
|
+
};
|
|
3107
|
+
const serializeAws_json1_1ListApplicationDPUSizesInput = (input, context) => {
|
|
3108
|
+
return {
|
|
3109
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3110
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3111
|
+
};
|
|
3112
|
+
};
|
|
3113
|
+
const serializeAws_json1_1ListCalculationExecutionsRequest = (input, context) => {
|
|
3114
|
+
return {
|
|
3115
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3116
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3117
|
+
...(input.SessionId != null && { SessionId: input.SessionId }),
|
|
3118
|
+
...(input.StateFilter != null && { StateFilter: input.StateFilter }),
|
|
3119
|
+
};
|
|
3120
|
+
};
|
|
1908
3121
|
const serializeAws_json1_1ListDatabasesInput = (input, context) => {
|
|
1909
3122
|
return {
|
|
1910
3123
|
...(input.CatalogName != null && { CatalogName: input.CatalogName }),
|
|
@@ -1924,6 +3137,14 @@ const serializeAws_json1_1ListEngineVersionsInput = (input, context) => {
|
|
|
1924
3137
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1925
3138
|
};
|
|
1926
3139
|
};
|
|
3140
|
+
const serializeAws_json1_1ListExecutorsRequest = (input, context) => {
|
|
3141
|
+
return {
|
|
3142
|
+
...(input.ExecutorStateFilter != null && { ExecutorStateFilter: input.ExecutorStateFilter }),
|
|
3143
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3144
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3145
|
+
...(input.SessionId != null && { SessionId: input.SessionId }),
|
|
3146
|
+
};
|
|
3147
|
+
};
|
|
1927
3148
|
const serializeAws_json1_1ListNamedQueriesInput = (input, context) => {
|
|
1928
3149
|
return {
|
|
1929
3150
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
@@ -1931,6 +3152,21 @@ const serializeAws_json1_1ListNamedQueriesInput = (input, context) => {
|
|
|
1931
3152
|
...(input.WorkGroup != null && { WorkGroup: input.WorkGroup }),
|
|
1932
3153
|
};
|
|
1933
3154
|
};
|
|
3155
|
+
const serializeAws_json1_1ListNotebookMetadataInput = (input, context) => {
|
|
3156
|
+
return {
|
|
3157
|
+
...(input.Filters != null && { Filters: serializeAws_json1_1FilterDefinition(input.Filters, context) }),
|
|
3158
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3159
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3160
|
+
...(input.WorkGroup != null && { WorkGroup: input.WorkGroup }),
|
|
3161
|
+
};
|
|
3162
|
+
};
|
|
3163
|
+
const serializeAws_json1_1ListNotebookSessionsRequest = (input, context) => {
|
|
3164
|
+
return {
|
|
3165
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3166
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3167
|
+
...(input.NotebookId != null && { NotebookId: input.NotebookId }),
|
|
3168
|
+
};
|
|
3169
|
+
};
|
|
1934
3170
|
const serializeAws_json1_1ListPreparedStatementsInput = (input, context) => {
|
|
1935
3171
|
return {
|
|
1936
3172
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
@@ -1945,6 +3181,14 @@ const serializeAws_json1_1ListQueryExecutionsInput = (input, context) => {
|
|
|
1945
3181
|
...(input.WorkGroup != null && { WorkGroup: input.WorkGroup }),
|
|
1946
3182
|
};
|
|
1947
3183
|
};
|
|
3184
|
+
const serializeAws_json1_1ListSessionsRequest = (input, context) => {
|
|
3185
|
+
return {
|
|
3186
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3187
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3188
|
+
...(input.StateFilter != null && { StateFilter: input.StateFilter }),
|
|
3189
|
+
...(input.WorkGroup != null && { WorkGroup: input.WorkGroup }),
|
|
3190
|
+
};
|
|
3191
|
+
};
|
|
1948
3192
|
const serializeAws_json1_1ListTableMetadataInput = (input, context) => {
|
|
1949
3193
|
return {
|
|
1950
3194
|
...(input.CatalogName != null && { CatalogName: input.CatalogName }),
|
|
@@ -2046,6 +3290,17 @@ const serializeAws_json1_1ResultReuseConfiguration = (input, context) => {
|
|
|
2046
3290
|
}),
|
|
2047
3291
|
};
|
|
2048
3292
|
};
|
|
3293
|
+
const serializeAws_json1_1StartCalculationExecutionRequest = (input, context) => {
|
|
3294
|
+
return {
|
|
3295
|
+
...(input.CalculationConfiguration != null && {
|
|
3296
|
+
CalculationConfiguration: serializeAws_json1_1CalculationConfiguration(input.CalculationConfiguration, context),
|
|
3297
|
+
}),
|
|
3298
|
+
...(input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken }),
|
|
3299
|
+
...(input.CodeBlock != null && { CodeBlock: input.CodeBlock }),
|
|
3300
|
+
...(input.Description != null && { Description: input.Description }),
|
|
3301
|
+
...(input.SessionId != null && { SessionId: input.SessionId }),
|
|
3302
|
+
};
|
|
3303
|
+
};
|
|
2049
3304
|
const serializeAws_json1_1StartQueryExecutionInput = (input, context) => {
|
|
2050
3305
|
return {
|
|
2051
3306
|
ClientRequestToken: input.ClientRequestToken ?? generateIdempotencyToken(),
|
|
@@ -2065,6 +3320,25 @@ const serializeAws_json1_1StartQueryExecutionInput = (input, context) => {
|
|
|
2065
3320
|
...(input.WorkGroup != null && { WorkGroup: input.WorkGroup }),
|
|
2066
3321
|
};
|
|
2067
3322
|
};
|
|
3323
|
+
const serializeAws_json1_1StartSessionRequest = (input, context) => {
|
|
3324
|
+
return {
|
|
3325
|
+
...(input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken }),
|
|
3326
|
+
...(input.Description != null && { Description: input.Description }),
|
|
3327
|
+
...(input.EngineConfiguration != null && {
|
|
3328
|
+
EngineConfiguration: serializeAws_json1_1EngineConfiguration(input.EngineConfiguration, context),
|
|
3329
|
+
}),
|
|
3330
|
+
...(input.NotebookVersion != null && { NotebookVersion: input.NotebookVersion }),
|
|
3331
|
+
...(input.SessionIdleTimeoutInMinutes != null && {
|
|
3332
|
+
SessionIdleTimeoutInMinutes: input.SessionIdleTimeoutInMinutes,
|
|
3333
|
+
}),
|
|
3334
|
+
...(input.WorkGroup != null && { WorkGroup: input.WorkGroup }),
|
|
3335
|
+
};
|
|
3336
|
+
};
|
|
3337
|
+
const serializeAws_json1_1StopCalculationExecutionRequest = (input, context) => {
|
|
3338
|
+
return {
|
|
3339
|
+
...(input.CalculationExecutionId != null && { CalculationExecutionId: input.CalculationExecutionId }),
|
|
3340
|
+
};
|
|
3341
|
+
};
|
|
2068
3342
|
const serializeAws_json1_1StopQueryExecutionInput = (input, context) => {
|
|
2069
3343
|
return {
|
|
2070
3344
|
QueryExecutionId: input.QueryExecutionId ?? generateIdempotencyToken(),
|
|
@@ -2096,6 +3370,11 @@ const serializeAws_json1_1TagResourceInput = (input, context) => {
|
|
|
2096
3370
|
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
2097
3371
|
};
|
|
2098
3372
|
};
|
|
3373
|
+
const serializeAws_json1_1TerminateSessionRequest = (input, context) => {
|
|
3374
|
+
return {
|
|
3375
|
+
...(input.SessionId != null && { SessionId: input.SessionId }),
|
|
3376
|
+
};
|
|
3377
|
+
};
|
|
2099
3378
|
const serializeAws_json1_1UntagResourceInput = (input, context) => {
|
|
2100
3379
|
return {
|
|
2101
3380
|
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
@@ -2118,6 +3397,22 @@ const serializeAws_json1_1UpdateNamedQueryInput = (input, context) => {
|
|
|
2118
3397
|
...(input.QueryString != null && { QueryString: input.QueryString }),
|
|
2119
3398
|
};
|
|
2120
3399
|
};
|
|
3400
|
+
const serializeAws_json1_1UpdateNotebookInput = (input, context) => {
|
|
3401
|
+
return {
|
|
3402
|
+
...(input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken }),
|
|
3403
|
+
...(input.NotebookId != null && { NotebookId: input.NotebookId }),
|
|
3404
|
+
...(input.Payload != null && { Payload: input.Payload }),
|
|
3405
|
+
...(input.SessionId != null && { SessionId: input.SessionId }),
|
|
3406
|
+
...(input.Type != null && { Type: input.Type }),
|
|
3407
|
+
};
|
|
3408
|
+
};
|
|
3409
|
+
const serializeAws_json1_1UpdateNotebookMetadataInput = (input, context) => {
|
|
3410
|
+
return {
|
|
3411
|
+
...(input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken }),
|
|
3412
|
+
...(input.Name != null && { Name: input.Name }),
|
|
3413
|
+
...(input.NotebookId != null && { NotebookId: input.NotebookId }),
|
|
3414
|
+
};
|
|
3415
|
+
};
|
|
2121
3416
|
const serializeAws_json1_1UpdatePreparedStatementInput = (input, context) => {
|
|
2122
3417
|
return {
|
|
2123
3418
|
...(input.Description != null && { Description: input.Description }),
|
|
@@ -2138,13 +3433,18 @@ const serializeAws_json1_1UpdateWorkGroupInput = (input, context) => {
|
|
|
2138
3433
|
};
|
|
2139
3434
|
const serializeAws_json1_1WorkGroupConfiguration = (input, context) => {
|
|
2140
3435
|
return {
|
|
3436
|
+
...(input.AdditionalConfiguration != null && { AdditionalConfiguration: input.AdditionalConfiguration }),
|
|
2141
3437
|
...(input.BytesScannedCutoffPerQuery != null && { BytesScannedCutoffPerQuery: input.BytesScannedCutoffPerQuery }),
|
|
3438
|
+
...(input.CustomerContentEncryptionConfiguration != null && {
|
|
3439
|
+
CustomerContentEncryptionConfiguration: serializeAws_json1_1CustomerContentEncryptionConfiguration(input.CustomerContentEncryptionConfiguration, context),
|
|
3440
|
+
}),
|
|
2142
3441
|
...(input.EnforceWorkGroupConfiguration != null && {
|
|
2143
3442
|
EnforceWorkGroupConfiguration: input.EnforceWorkGroupConfiguration,
|
|
2144
3443
|
}),
|
|
2145
3444
|
...(input.EngineVersion != null && {
|
|
2146
3445
|
EngineVersion: serializeAws_json1_1EngineVersion(input.EngineVersion, context),
|
|
2147
3446
|
}),
|
|
3447
|
+
...(input.ExecutionRole != null && { ExecutionRole: input.ExecutionRole }),
|
|
2148
3448
|
...(input.PublishCloudWatchMetricsEnabled != null && {
|
|
2149
3449
|
PublishCloudWatchMetricsEnabled: input.PublishCloudWatchMetricsEnabled,
|
|
2150
3450
|
}),
|
|
@@ -2156,19 +3456,27 @@ const serializeAws_json1_1WorkGroupConfiguration = (input, context) => {
|
|
|
2156
3456
|
};
|
|
2157
3457
|
const serializeAws_json1_1WorkGroupConfigurationUpdates = (input, context) => {
|
|
2158
3458
|
return {
|
|
3459
|
+
...(input.AdditionalConfiguration != null && { AdditionalConfiguration: input.AdditionalConfiguration }),
|
|
2159
3460
|
...(input.BytesScannedCutoffPerQuery != null && { BytesScannedCutoffPerQuery: input.BytesScannedCutoffPerQuery }),
|
|
3461
|
+
...(input.CustomerContentEncryptionConfiguration != null && {
|
|
3462
|
+
CustomerContentEncryptionConfiguration: serializeAws_json1_1CustomerContentEncryptionConfiguration(input.CustomerContentEncryptionConfiguration, context),
|
|
3463
|
+
}),
|
|
2160
3464
|
...(input.EnforceWorkGroupConfiguration != null && {
|
|
2161
3465
|
EnforceWorkGroupConfiguration: input.EnforceWorkGroupConfiguration,
|
|
2162
3466
|
}),
|
|
2163
3467
|
...(input.EngineVersion != null && {
|
|
2164
3468
|
EngineVersion: serializeAws_json1_1EngineVersion(input.EngineVersion, context),
|
|
2165
3469
|
}),
|
|
3470
|
+
...(input.ExecutionRole != null && { ExecutionRole: input.ExecutionRole }),
|
|
2166
3471
|
...(input.PublishCloudWatchMetricsEnabled != null && {
|
|
2167
3472
|
PublishCloudWatchMetricsEnabled: input.PublishCloudWatchMetricsEnabled,
|
|
2168
3473
|
}),
|
|
2169
3474
|
...(input.RemoveBytesScannedCutoffPerQuery != null && {
|
|
2170
3475
|
RemoveBytesScannedCutoffPerQuery: input.RemoveBytesScannedCutoffPerQuery,
|
|
2171
3476
|
}),
|
|
3477
|
+
...(input.RemoveCustomerContentEncryptionConfiguration != null && {
|
|
3478
|
+
RemoveCustomerContentEncryptionConfiguration: input.RemoveCustomerContentEncryptionConfiguration,
|
|
3479
|
+
}),
|
|
2172
3480
|
...(input.RequesterPaysEnabled != null && { RequesterPaysEnabled: input.RequesterPaysEnabled }),
|
|
2173
3481
|
...(input.ResultConfigurationUpdates != null && {
|
|
2174
3482
|
ResultConfigurationUpdates: serializeAws_json1_1ResultConfigurationUpdates(input.ResultConfigurationUpdates, context),
|
|
@@ -2180,6 +3488,25 @@ const deserializeAws_json1_1AclConfiguration = (output, context) => {
|
|
|
2180
3488
|
S3AclOption: __expectString(output.S3AclOption),
|
|
2181
3489
|
};
|
|
2182
3490
|
};
|
|
3491
|
+
const deserializeAws_json1_1ApplicationDPUSizes = (output, context) => {
|
|
3492
|
+
return {
|
|
3493
|
+
ApplicationRuntimeId: __expectString(output.ApplicationRuntimeId),
|
|
3494
|
+
SupportedDPUSizes: output.SupportedDPUSizes != null
|
|
3495
|
+
? deserializeAws_json1_1SupportedDPUSizeList(output.SupportedDPUSizes, context)
|
|
3496
|
+
: undefined,
|
|
3497
|
+
};
|
|
3498
|
+
};
|
|
3499
|
+
const deserializeAws_json1_1ApplicationDPUSizesList = (output, context) => {
|
|
3500
|
+
const retVal = (output || [])
|
|
3501
|
+
.filter((e) => e != null)
|
|
3502
|
+
.map((entry) => {
|
|
3503
|
+
if (entry === null) {
|
|
3504
|
+
return null;
|
|
3505
|
+
}
|
|
3506
|
+
return deserializeAws_json1_1ApplicationDPUSizes(entry, context);
|
|
3507
|
+
});
|
|
3508
|
+
return retVal;
|
|
3509
|
+
};
|
|
2183
3510
|
const deserializeAws_json1_1AthenaError = (output, context) => {
|
|
2184
3511
|
return {
|
|
2185
3512
|
ErrorCategory: __expectInt32(output.ErrorCategory),
|
|
@@ -2216,6 +3543,50 @@ const deserializeAws_json1_1BatchGetQueryExecutionOutput = (output, context) =>
|
|
|
2216
3543
|
: undefined,
|
|
2217
3544
|
};
|
|
2218
3545
|
};
|
|
3546
|
+
const deserializeAws_json1_1CalculationResult = (output, context) => {
|
|
3547
|
+
return {
|
|
3548
|
+
ResultS3Uri: __expectString(output.ResultS3Uri),
|
|
3549
|
+
ResultType: __expectString(output.ResultType),
|
|
3550
|
+
StdErrorS3Uri: __expectString(output.StdErrorS3Uri),
|
|
3551
|
+
StdOutS3Uri: __expectString(output.StdOutS3Uri),
|
|
3552
|
+
};
|
|
3553
|
+
};
|
|
3554
|
+
const deserializeAws_json1_1CalculationsList = (output, context) => {
|
|
3555
|
+
const retVal = (output || [])
|
|
3556
|
+
.filter((e) => e != null)
|
|
3557
|
+
.map((entry) => {
|
|
3558
|
+
if (entry === null) {
|
|
3559
|
+
return null;
|
|
3560
|
+
}
|
|
3561
|
+
return deserializeAws_json1_1CalculationSummary(entry, context);
|
|
3562
|
+
});
|
|
3563
|
+
return retVal;
|
|
3564
|
+
};
|
|
3565
|
+
const deserializeAws_json1_1CalculationStatistics = (output, context) => {
|
|
3566
|
+
return {
|
|
3567
|
+
DpuExecutionInMillis: __expectLong(output.DpuExecutionInMillis),
|
|
3568
|
+
Progress: __expectString(output.Progress),
|
|
3569
|
+
};
|
|
3570
|
+
};
|
|
3571
|
+
const deserializeAws_json1_1CalculationStatus = (output, context) => {
|
|
3572
|
+
return {
|
|
3573
|
+
CompletionDateTime: output.CompletionDateTime != null
|
|
3574
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CompletionDateTime)))
|
|
3575
|
+
: undefined,
|
|
3576
|
+
State: __expectString(output.State),
|
|
3577
|
+
StateChangeReason: __expectString(output.StateChangeReason),
|
|
3578
|
+
SubmissionDateTime: output.SubmissionDateTime != null
|
|
3579
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.SubmissionDateTime)))
|
|
3580
|
+
: undefined,
|
|
3581
|
+
};
|
|
3582
|
+
};
|
|
3583
|
+
const deserializeAws_json1_1CalculationSummary = (output, context) => {
|
|
3584
|
+
return {
|
|
3585
|
+
CalculationExecutionId: __expectString(output.CalculationExecutionId),
|
|
3586
|
+
Description: __expectString(output.Description),
|
|
3587
|
+
Status: output.Status != null ? deserializeAws_json1_1CalculationStatus(output.Status, context) : undefined,
|
|
3588
|
+
};
|
|
3589
|
+
};
|
|
2219
3590
|
const deserializeAws_json1_1Column = (output, context) => {
|
|
2220
3591
|
return {
|
|
2221
3592
|
Comment: __expectString(output.Comment),
|
|
@@ -2267,12 +3638,29 @@ const deserializeAws_json1_1CreateNamedQueryOutput = (output, context) => {
|
|
|
2267
3638
|
NamedQueryId: __expectString(output.NamedQueryId),
|
|
2268
3639
|
};
|
|
2269
3640
|
};
|
|
3641
|
+
const deserializeAws_json1_1CreateNotebookOutput = (output, context) => {
|
|
3642
|
+
return {
|
|
3643
|
+
NotebookId: __expectString(output.NotebookId),
|
|
3644
|
+
};
|
|
3645
|
+
};
|
|
2270
3646
|
const deserializeAws_json1_1CreatePreparedStatementOutput = (output, context) => {
|
|
2271
3647
|
return {};
|
|
2272
3648
|
};
|
|
3649
|
+
const deserializeAws_json1_1CreatePresignedNotebookUrlResponse = (output, context) => {
|
|
3650
|
+
return {
|
|
3651
|
+
AuthToken: __expectString(output.AuthToken),
|
|
3652
|
+
AuthTokenExpirationTime: __expectLong(output.AuthTokenExpirationTime),
|
|
3653
|
+
NotebookUrl: __expectString(output.NotebookUrl),
|
|
3654
|
+
};
|
|
3655
|
+
};
|
|
2273
3656
|
const deserializeAws_json1_1CreateWorkGroupOutput = (output, context) => {
|
|
2274
3657
|
return {};
|
|
2275
3658
|
};
|
|
3659
|
+
const deserializeAws_json1_1CustomerContentEncryptionConfiguration = (output, context) => {
|
|
3660
|
+
return {
|
|
3661
|
+
KmsKey: __expectString(output.KmsKey),
|
|
3662
|
+
};
|
|
3663
|
+
};
|
|
2276
3664
|
const deserializeAws_json1_1Database = (output, context) => {
|
|
2277
3665
|
return {
|
|
2278
3666
|
Description: __expectString(output.Description),
|
|
@@ -2338,6 +3726,9 @@ const deserializeAws_json1_1DeleteDataCatalogOutput = (output, context) => {
|
|
|
2338
3726
|
const deserializeAws_json1_1DeleteNamedQueryOutput = (output, context) => {
|
|
2339
3727
|
return {};
|
|
2340
3728
|
};
|
|
3729
|
+
const deserializeAws_json1_1DeleteNotebookOutput = (output, context) => {
|
|
3730
|
+
return {};
|
|
3731
|
+
};
|
|
2341
3732
|
const deserializeAws_json1_1DeletePreparedStatementOutput = (output, context) => {
|
|
2342
3733
|
return {};
|
|
2343
3734
|
};
|
|
@@ -2350,6 +3741,16 @@ const deserializeAws_json1_1EncryptionConfiguration = (output, context) => {
|
|
|
2350
3741
|
KmsKey: __expectString(output.KmsKey),
|
|
2351
3742
|
};
|
|
2352
3743
|
};
|
|
3744
|
+
const deserializeAws_json1_1EngineConfiguration = (output, context) => {
|
|
3745
|
+
return {
|
|
3746
|
+
AdditionalConfigs: output.AdditionalConfigs != null
|
|
3747
|
+
? deserializeAws_json1_1ParametersMap(output.AdditionalConfigs, context)
|
|
3748
|
+
: undefined,
|
|
3749
|
+
CoordinatorDpuSize: __expectInt32(output.CoordinatorDpuSize),
|
|
3750
|
+
DefaultExecutorDpuSize: __expectInt32(output.DefaultExecutorDpuSize),
|
|
3751
|
+
MaxConcurrentDpus: __expectInt32(output.MaxConcurrentDpus),
|
|
3752
|
+
};
|
|
3753
|
+
};
|
|
2353
3754
|
const deserializeAws_json1_1EngineVersion = (output, context) => {
|
|
2354
3755
|
return {
|
|
2355
3756
|
EffectiveEngineVersion: __expectString(output.EffectiveEngineVersion),
|
|
@@ -2378,6 +3779,57 @@ const deserializeAws_json1_1ExecutionParameters = (output, context) => {
|
|
|
2378
3779
|
});
|
|
2379
3780
|
return retVal;
|
|
2380
3781
|
};
|
|
3782
|
+
const deserializeAws_json1_1ExecutorsSummary = (output, context) => {
|
|
3783
|
+
return {
|
|
3784
|
+
ExecutorId: __expectString(output.ExecutorId),
|
|
3785
|
+
ExecutorSize: __expectLong(output.ExecutorSize),
|
|
3786
|
+
ExecutorState: __expectString(output.ExecutorState),
|
|
3787
|
+
ExecutorType: __expectString(output.ExecutorType),
|
|
3788
|
+
StartDateTime: __expectLong(output.StartDateTime),
|
|
3789
|
+
TerminationDateTime: __expectLong(output.TerminationDateTime),
|
|
3790
|
+
};
|
|
3791
|
+
};
|
|
3792
|
+
const deserializeAws_json1_1ExecutorsSummaryList = (output, context) => {
|
|
3793
|
+
const retVal = (output || [])
|
|
3794
|
+
.filter((e) => e != null)
|
|
3795
|
+
.map((entry) => {
|
|
3796
|
+
if (entry === null) {
|
|
3797
|
+
return null;
|
|
3798
|
+
}
|
|
3799
|
+
return deserializeAws_json1_1ExecutorsSummary(entry, context);
|
|
3800
|
+
});
|
|
3801
|
+
return retVal;
|
|
3802
|
+
};
|
|
3803
|
+
const deserializeAws_json1_1ExportNotebookOutput = (output, context) => {
|
|
3804
|
+
return {
|
|
3805
|
+
NotebookMetadata: output.NotebookMetadata != null
|
|
3806
|
+
? deserializeAws_json1_1NotebookMetadata(output.NotebookMetadata, context)
|
|
3807
|
+
: undefined,
|
|
3808
|
+
Payload: __expectString(output.Payload),
|
|
3809
|
+
};
|
|
3810
|
+
};
|
|
3811
|
+
const deserializeAws_json1_1GetCalculationExecutionCodeResponse = (output, context) => {
|
|
3812
|
+
return {
|
|
3813
|
+
CodeBlock: __expectString(output.CodeBlock),
|
|
3814
|
+
};
|
|
3815
|
+
};
|
|
3816
|
+
const deserializeAws_json1_1GetCalculationExecutionResponse = (output, context) => {
|
|
3817
|
+
return {
|
|
3818
|
+
CalculationExecutionId: __expectString(output.CalculationExecutionId),
|
|
3819
|
+
Description: __expectString(output.Description),
|
|
3820
|
+
Result: output.Result != null ? deserializeAws_json1_1CalculationResult(output.Result, context) : undefined,
|
|
3821
|
+
SessionId: __expectString(output.SessionId),
|
|
3822
|
+
Statistics: output.Statistics != null ? deserializeAws_json1_1CalculationStatistics(output.Statistics, context) : undefined,
|
|
3823
|
+
Status: output.Status != null ? deserializeAws_json1_1CalculationStatus(output.Status, context) : undefined,
|
|
3824
|
+
WorkingDirectory: __expectString(output.WorkingDirectory),
|
|
3825
|
+
};
|
|
3826
|
+
};
|
|
3827
|
+
const deserializeAws_json1_1GetCalculationExecutionStatusResponse = (output, context) => {
|
|
3828
|
+
return {
|
|
3829
|
+
Statistics: output.Statistics != null ? deserializeAws_json1_1CalculationStatistics(output.Statistics, context) : undefined,
|
|
3830
|
+
Status: output.Status != null ? deserializeAws_json1_1CalculationStatus(output.Status, context) : undefined,
|
|
3831
|
+
};
|
|
3832
|
+
};
|
|
2381
3833
|
const deserializeAws_json1_1GetDatabaseOutput = (output, context) => {
|
|
2382
3834
|
return {
|
|
2383
3835
|
Database: output.Database != null ? deserializeAws_json1_1Database(output.Database, context) : undefined,
|
|
@@ -2393,6 +3845,13 @@ const deserializeAws_json1_1GetNamedQueryOutput = (output, context) => {
|
|
|
2393
3845
|
NamedQuery: output.NamedQuery != null ? deserializeAws_json1_1NamedQuery(output.NamedQuery, context) : undefined,
|
|
2394
3846
|
};
|
|
2395
3847
|
};
|
|
3848
|
+
const deserializeAws_json1_1GetNotebookMetadataOutput = (output, context) => {
|
|
3849
|
+
return {
|
|
3850
|
+
NotebookMetadata: output.NotebookMetadata != null
|
|
3851
|
+
? deserializeAws_json1_1NotebookMetadata(output.NotebookMetadata, context)
|
|
3852
|
+
: undefined,
|
|
3853
|
+
};
|
|
3854
|
+
};
|
|
2396
3855
|
const deserializeAws_json1_1GetPreparedStatementOutput = (output, context) => {
|
|
2397
3856
|
return {
|
|
2398
3857
|
PreparedStatement: output.PreparedStatement != null
|
|
@@ -2419,6 +3878,29 @@ const deserializeAws_json1_1GetQueryRuntimeStatisticsOutput = (output, context)
|
|
|
2419
3878
|
: undefined,
|
|
2420
3879
|
};
|
|
2421
3880
|
};
|
|
3881
|
+
const deserializeAws_json1_1GetSessionResponse = (output, context) => {
|
|
3882
|
+
return {
|
|
3883
|
+
Description: __expectString(output.Description),
|
|
3884
|
+
EngineConfiguration: output.EngineConfiguration != null
|
|
3885
|
+
? deserializeAws_json1_1EngineConfiguration(output.EngineConfiguration, context)
|
|
3886
|
+
: undefined,
|
|
3887
|
+
EngineVersion: __expectString(output.EngineVersion),
|
|
3888
|
+
NotebookVersion: __expectString(output.NotebookVersion),
|
|
3889
|
+
SessionConfiguration: output.SessionConfiguration != null
|
|
3890
|
+
? deserializeAws_json1_1SessionConfiguration(output.SessionConfiguration, context)
|
|
3891
|
+
: undefined,
|
|
3892
|
+
SessionId: __expectString(output.SessionId),
|
|
3893
|
+
Statistics: output.Statistics != null ? deserializeAws_json1_1SessionStatistics(output.Statistics, context) : undefined,
|
|
3894
|
+
Status: output.Status != null ? deserializeAws_json1_1SessionStatus(output.Status, context) : undefined,
|
|
3895
|
+
WorkGroup: __expectString(output.WorkGroup),
|
|
3896
|
+
};
|
|
3897
|
+
};
|
|
3898
|
+
const deserializeAws_json1_1GetSessionStatusResponse = (output, context) => {
|
|
3899
|
+
return {
|
|
3900
|
+
SessionId: __expectString(output.SessionId),
|
|
3901
|
+
Status: output.Status != null ? deserializeAws_json1_1SessionStatus(output.Status, context) : undefined,
|
|
3902
|
+
};
|
|
3903
|
+
};
|
|
2422
3904
|
const deserializeAws_json1_1GetTableMetadataOutput = (output, context) => {
|
|
2423
3905
|
return {
|
|
2424
3906
|
TableMetadata: output.TableMetadata != null ? deserializeAws_json1_1TableMetadata(output.TableMetadata, context) : undefined,
|
|
@@ -2429,6 +3911,11 @@ const deserializeAws_json1_1GetWorkGroupOutput = (output, context) => {
|
|
|
2429
3911
|
WorkGroup: output.WorkGroup != null ? deserializeAws_json1_1WorkGroup(output.WorkGroup, context) : undefined,
|
|
2430
3912
|
};
|
|
2431
3913
|
};
|
|
3914
|
+
const deserializeAws_json1_1ImportNotebookOutput = (output, context) => {
|
|
3915
|
+
return {
|
|
3916
|
+
NotebookId: __expectString(output.NotebookId),
|
|
3917
|
+
};
|
|
3918
|
+
};
|
|
2432
3919
|
const deserializeAws_json1_1InternalServerException = (output, context) => {
|
|
2433
3920
|
return {
|
|
2434
3921
|
Message: __expectString(output.Message),
|
|
@@ -2440,6 +3927,20 @@ const deserializeAws_json1_1InvalidRequestException = (output, context) => {
|
|
|
2440
3927
|
Message: __expectString(output.Message),
|
|
2441
3928
|
};
|
|
2442
3929
|
};
|
|
3930
|
+
const deserializeAws_json1_1ListApplicationDPUSizesOutput = (output, context) => {
|
|
3931
|
+
return {
|
|
3932
|
+
ApplicationDPUSizes: output.ApplicationDPUSizes != null
|
|
3933
|
+
? deserializeAws_json1_1ApplicationDPUSizesList(output.ApplicationDPUSizes, context)
|
|
3934
|
+
: undefined,
|
|
3935
|
+
NextToken: __expectString(output.NextToken),
|
|
3936
|
+
};
|
|
3937
|
+
};
|
|
3938
|
+
const deserializeAws_json1_1ListCalculationExecutionsResponse = (output, context) => {
|
|
3939
|
+
return {
|
|
3940
|
+
Calculations: output.Calculations != null ? deserializeAws_json1_1CalculationsList(output.Calculations, context) : undefined,
|
|
3941
|
+
NextToken: __expectString(output.NextToken),
|
|
3942
|
+
};
|
|
3943
|
+
};
|
|
2443
3944
|
const deserializeAws_json1_1ListDatabasesOutput = (output, context) => {
|
|
2444
3945
|
return {
|
|
2445
3946
|
DatabaseList: output.DatabaseList != null ? deserializeAws_json1_1DatabaseList(output.DatabaseList, context) : undefined,
|
|
@@ -2462,12 +3963,37 @@ const deserializeAws_json1_1ListEngineVersionsOutput = (output, context) => {
|
|
|
2462
3963
|
NextToken: __expectString(output.NextToken),
|
|
2463
3964
|
};
|
|
2464
3965
|
};
|
|
3966
|
+
const deserializeAws_json1_1ListExecutorsResponse = (output, context) => {
|
|
3967
|
+
return {
|
|
3968
|
+
ExecutorsSummary: output.ExecutorsSummary != null
|
|
3969
|
+
? deserializeAws_json1_1ExecutorsSummaryList(output.ExecutorsSummary, context)
|
|
3970
|
+
: undefined,
|
|
3971
|
+
NextToken: __expectString(output.NextToken),
|
|
3972
|
+
SessionId: __expectString(output.SessionId),
|
|
3973
|
+
};
|
|
3974
|
+
};
|
|
2465
3975
|
const deserializeAws_json1_1ListNamedQueriesOutput = (output, context) => {
|
|
2466
3976
|
return {
|
|
2467
3977
|
NamedQueryIds: output.NamedQueryIds != null ? deserializeAws_json1_1NamedQueryIdList(output.NamedQueryIds, context) : undefined,
|
|
2468
3978
|
NextToken: __expectString(output.NextToken),
|
|
2469
3979
|
};
|
|
2470
3980
|
};
|
|
3981
|
+
const deserializeAws_json1_1ListNotebookMetadataOutput = (output, context) => {
|
|
3982
|
+
return {
|
|
3983
|
+
NextToken: __expectString(output.NextToken),
|
|
3984
|
+
NotebookMetadataList: output.NotebookMetadataList != null
|
|
3985
|
+
? deserializeAws_json1_1NotebookMetadataArray(output.NotebookMetadataList, context)
|
|
3986
|
+
: undefined,
|
|
3987
|
+
};
|
|
3988
|
+
};
|
|
3989
|
+
const deserializeAws_json1_1ListNotebookSessionsResponse = (output, context) => {
|
|
3990
|
+
return {
|
|
3991
|
+
NextToken: __expectString(output.NextToken),
|
|
3992
|
+
NotebookSessionsList: output.NotebookSessionsList != null
|
|
3993
|
+
? deserializeAws_json1_1NotebookSessionsList(output.NotebookSessionsList, context)
|
|
3994
|
+
: undefined,
|
|
3995
|
+
};
|
|
3996
|
+
};
|
|
2471
3997
|
const deserializeAws_json1_1ListPreparedStatementsOutput = (output, context) => {
|
|
2472
3998
|
return {
|
|
2473
3999
|
NextToken: __expectString(output.NextToken),
|
|
@@ -2484,6 +4010,12 @@ const deserializeAws_json1_1ListQueryExecutionsOutput = (output, context) => {
|
|
|
2484
4010
|
: undefined,
|
|
2485
4011
|
};
|
|
2486
4012
|
};
|
|
4013
|
+
const deserializeAws_json1_1ListSessionsResponse = (output, context) => {
|
|
4014
|
+
return {
|
|
4015
|
+
NextToken: __expectString(output.NextToken),
|
|
4016
|
+
Sessions: output.Sessions != null ? deserializeAws_json1_1SessionsList(output.Sessions, context) : undefined,
|
|
4017
|
+
};
|
|
4018
|
+
};
|
|
2487
4019
|
const deserializeAws_json1_1ListTableMetadataOutput = (output, context) => {
|
|
2488
4020
|
return {
|
|
2489
4021
|
NextToken: __expectString(output.NextToken),
|
|
@@ -2541,6 +4073,50 @@ const deserializeAws_json1_1NamedQueryList = (output, context) => {
|
|
|
2541
4073
|
});
|
|
2542
4074
|
return retVal;
|
|
2543
4075
|
};
|
|
4076
|
+
const deserializeAws_json1_1NotebookMetadata = (output, context) => {
|
|
4077
|
+
return {
|
|
4078
|
+
CreationTime: output.CreationTime != null
|
|
4079
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
|
|
4080
|
+
: undefined,
|
|
4081
|
+
LastModifiedTime: output.LastModifiedTime != null
|
|
4082
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
|
|
4083
|
+
: undefined,
|
|
4084
|
+
Name: __expectString(output.Name),
|
|
4085
|
+
NotebookId: __expectString(output.NotebookId),
|
|
4086
|
+
Type: __expectString(output.Type),
|
|
4087
|
+
WorkGroup: __expectString(output.WorkGroup),
|
|
4088
|
+
};
|
|
4089
|
+
};
|
|
4090
|
+
const deserializeAws_json1_1NotebookMetadataArray = (output, context) => {
|
|
4091
|
+
const retVal = (output || [])
|
|
4092
|
+
.filter((e) => e != null)
|
|
4093
|
+
.map((entry) => {
|
|
4094
|
+
if (entry === null) {
|
|
4095
|
+
return null;
|
|
4096
|
+
}
|
|
4097
|
+
return deserializeAws_json1_1NotebookMetadata(entry, context);
|
|
4098
|
+
});
|
|
4099
|
+
return retVal;
|
|
4100
|
+
};
|
|
4101
|
+
const deserializeAws_json1_1NotebookSessionsList = (output, context) => {
|
|
4102
|
+
const retVal = (output || [])
|
|
4103
|
+
.filter((e) => e != null)
|
|
4104
|
+
.map((entry) => {
|
|
4105
|
+
if (entry === null) {
|
|
4106
|
+
return null;
|
|
4107
|
+
}
|
|
4108
|
+
return deserializeAws_json1_1NotebookSessionSummary(entry, context);
|
|
4109
|
+
});
|
|
4110
|
+
return retVal;
|
|
4111
|
+
};
|
|
4112
|
+
const deserializeAws_json1_1NotebookSessionSummary = (output, context) => {
|
|
4113
|
+
return {
|
|
4114
|
+
CreationTime: output.CreationTime != null
|
|
4115
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
|
|
4116
|
+
: undefined,
|
|
4117
|
+
SessionId: __expectString(output.SessionId),
|
|
4118
|
+
};
|
|
4119
|
+
};
|
|
2544
4120
|
const deserializeAws_json1_1ParametersMap = (output, context) => {
|
|
2545
4121
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2546
4122
|
if (value === null) {
|
|
@@ -2807,11 +4383,86 @@ const deserializeAws_json1_1RowList = (output, context) => {
|
|
|
2807
4383
|
});
|
|
2808
4384
|
return retVal;
|
|
2809
4385
|
};
|
|
4386
|
+
const deserializeAws_json1_1SessionAlreadyExistsException = (output, context) => {
|
|
4387
|
+
return {
|
|
4388
|
+
Message: __expectString(output.Message),
|
|
4389
|
+
};
|
|
4390
|
+
};
|
|
4391
|
+
const deserializeAws_json1_1SessionConfiguration = (output, context) => {
|
|
4392
|
+
return {
|
|
4393
|
+
EncryptionConfiguration: output.EncryptionConfiguration != null
|
|
4394
|
+
? deserializeAws_json1_1EncryptionConfiguration(output.EncryptionConfiguration, context)
|
|
4395
|
+
: undefined,
|
|
4396
|
+
ExecutionRole: __expectString(output.ExecutionRole),
|
|
4397
|
+
IdleTimeoutSeconds: __expectLong(output.IdleTimeoutSeconds),
|
|
4398
|
+
WorkingDirectory: __expectString(output.WorkingDirectory),
|
|
4399
|
+
};
|
|
4400
|
+
};
|
|
4401
|
+
const deserializeAws_json1_1SessionsList = (output, context) => {
|
|
4402
|
+
const retVal = (output || [])
|
|
4403
|
+
.filter((e) => e != null)
|
|
4404
|
+
.map((entry) => {
|
|
4405
|
+
if (entry === null) {
|
|
4406
|
+
return null;
|
|
4407
|
+
}
|
|
4408
|
+
return deserializeAws_json1_1SessionSummary(entry, context);
|
|
4409
|
+
});
|
|
4410
|
+
return retVal;
|
|
4411
|
+
};
|
|
4412
|
+
const deserializeAws_json1_1SessionStatistics = (output, context) => {
|
|
4413
|
+
return {
|
|
4414
|
+
DpuExecutionInMillis: __expectLong(output.DpuExecutionInMillis),
|
|
4415
|
+
};
|
|
4416
|
+
};
|
|
4417
|
+
const deserializeAws_json1_1SessionStatus = (output, context) => {
|
|
4418
|
+
return {
|
|
4419
|
+
EndDateTime: output.EndDateTime != null
|
|
4420
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndDateTime)))
|
|
4421
|
+
: undefined,
|
|
4422
|
+
IdleSinceDateTime: output.IdleSinceDateTime != null
|
|
4423
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.IdleSinceDateTime)))
|
|
4424
|
+
: undefined,
|
|
4425
|
+
LastModifiedDateTime: output.LastModifiedDateTime != null
|
|
4426
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedDateTime)))
|
|
4427
|
+
: undefined,
|
|
4428
|
+
StartDateTime: output.StartDateTime != null
|
|
4429
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartDateTime)))
|
|
4430
|
+
: undefined,
|
|
4431
|
+
State: __expectString(output.State),
|
|
4432
|
+
StateChangeReason: __expectString(output.StateChangeReason),
|
|
4433
|
+
};
|
|
4434
|
+
};
|
|
4435
|
+
const deserializeAws_json1_1SessionSummary = (output, context) => {
|
|
4436
|
+
return {
|
|
4437
|
+
Description: __expectString(output.Description),
|
|
4438
|
+
EngineVersion: output.EngineVersion != null ? deserializeAws_json1_1EngineVersion(output.EngineVersion, context) : undefined,
|
|
4439
|
+
NotebookVersion: __expectString(output.NotebookVersion),
|
|
4440
|
+
SessionId: __expectString(output.SessionId),
|
|
4441
|
+
Status: output.Status != null ? deserializeAws_json1_1SessionStatus(output.Status, context) : undefined,
|
|
4442
|
+
};
|
|
4443
|
+
};
|
|
4444
|
+
const deserializeAws_json1_1StartCalculationExecutionResponse = (output, context) => {
|
|
4445
|
+
return {
|
|
4446
|
+
CalculationExecutionId: __expectString(output.CalculationExecutionId),
|
|
4447
|
+
State: __expectString(output.State),
|
|
4448
|
+
};
|
|
4449
|
+
};
|
|
2810
4450
|
const deserializeAws_json1_1StartQueryExecutionOutput = (output, context) => {
|
|
2811
4451
|
return {
|
|
2812
4452
|
QueryExecutionId: __expectString(output.QueryExecutionId),
|
|
2813
4453
|
};
|
|
2814
4454
|
};
|
|
4455
|
+
const deserializeAws_json1_1StartSessionResponse = (output, context) => {
|
|
4456
|
+
return {
|
|
4457
|
+
SessionId: __expectString(output.SessionId),
|
|
4458
|
+
State: __expectString(output.State),
|
|
4459
|
+
};
|
|
4460
|
+
};
|
|
4461
|
+
const deserializeAws_json1_1StopCalculationExecutionResponse = (output, context) => {
|
|
4462
|
+
return {
|
|
4463
|
+
State: __expectString(output.State),
|
|
4464
|
+
};
|
|
4465
|
+
};
|
|
2815
4466
|
const deserializeAws_json1_1StopQueryExecutionOutput = (output, context) => {
|
|
2816
4467
|
return {};
|
|
2817
4468
|
};
|
|
@@ -2826,6 +4477,17 @@ const deserializeAws_json1_1StringList = (output, context) => {
|
|
|
2826
4477
|
});
|
|
2827
4478
|
return retVal;
|
|
2828
4479
|
};
|
|
4480
|
+
const deserializeAws_json1_1SupportedDPUSizeList = (output, context) => {
|
|
4481
|
+
const retVal = (output || [])
|
|
4482
|
+
.filter((e) => e != null)
|
|
4483
|
+
.map((entry) => {
|
|
4484
|
+
if (entry === null) {
|
|
4485
|
+
return null;
|
|
4486
|
+
}
|
|
4487
|
+
return __expectInt32(entry);
|
|
4488
|
+
});
|
|
4489
|
+
return retVal;
|
|
4490
|
+
};
|
|
2829
4491
|
const deserializeAws_json1_1TableMetadata = (output, context) => {
|
|
2830
4492
|
return {
|
|
2831
4493
|
Columns: output.Columns != null ? deserializeAws_json1_1ColumnList(output.Columns, context) : undefined,
|
|
@@ -2870,6 +4532,11 @@ const deserializeAws_json1_1TagList = (output, context) => {
|
|
|
2870
4532
|
const deserializeAws_json1_1TagResourceOutput = (output, context) => {
|
|
2871
4533
|
return {};
|
|
2872
4534
|
};
|
|
4535
|
+
const deserializeAws_json1_1TerminateSessionResponse = (output, context) => {
|
|
4536
|
+
return {
|
|
4537
|
+
State: __expectString(output.State),
|
|
4538
|
+
};
|
|
4539
|
+
};
|
|
2873
4540
|
const deserializeAws_json1_1TooManyRequestsException = (output, context) => {
|
|
2874
4541
|
return {
|
|
2875
4542
|
Message: __expectString(output.Message),
|
|
@@ -2939,6 +4606,12 @@ const deserializeAws_json1_1UpdateDataCatalogOutput = (output, context) => {
|
|
|
2939
4606
|
const deserializeAws_json1_1UpdateNamedQueryOutput = (output, context) => {
|
|
2940
4607
|
return {};
|
|
2941
4608
|
};
|
|
4609
|
+
const deserializeAws_json1_1UpdateNotebookMetadataOutput = (output, context) => {
|
|
4610
|
+
return {};
|
|
4611
|
+
};
|
|
4612
|
+
const deserializeAws_json1_1UpdateNotebookOutput = (output, context) => {
|
|
4613
|
+
return {};
|
|
4614
|
+
};
|
|
2942
4615
|
const deserializeAws_json1_1UpdatePreparedStatementOutput = (output, context) => {
|
|
2943
4616
|
return {};
|
|
2944
4617
|
};
|
|
@@ -2960,9 +4633,14 @@ const deserializeAws_json1_1WorkGroup = (output, context) => {
|
|
|
2960
4633
|
};
|
|
2961
4634
|
const deserializeAws_json1_1WorkGroupConfiguration = (output, context) => {
|
|
2962
4635
|
return {
|
|
4636
|
+
AdditionalConfiguration: __expectString(output.AdditionalConfiguration),
|
|
2963
4637
|
BytesScannedCutoffPerQuery: __expectLong(output.BytesScannedCutoffPerQuery),
|
|
4638
|
+
CustomerContentEncryptionConfiguration: output.CustomerContentEncryptionConfiguration != null
|
|
4639
|
+
? deserializeAws_json1_1CustomerContentEncryptionConfiguration(output.CustomerContentEncryptionConfiguration, context)
|
|
4640
|
+
: undefined,
|
|
2964
4641
|
EnforceWorkGroupConfiguration: __expectBoolean(output.EnforceWorkGroupConfiguration),
|
|
2965
4642
|
EngineVersion: output.EngineVersion != null ? deserializeAws_json1_1EngineVersion(output.EngineVersion, context) : undefined,
|
|
4643
|
+
ExecutionRole: __expectString(output.ExecutionRole),
|
|
2966
4644
|
PublishCloudWatchMetricsEnabled: __expectBoolean(output.PublishCloudWatchMetricsEnabled),
|
|
2967
4645
|
RequesterPaysEnabled: __expectBoolean(output.RequesterPaysEnabled),
|
|
2968
4646
|
ResultConfiguration: output.ResultConfiguration != null
|