@aws-sdk/client-athena 3.927.0 → 3.929.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/index.js +1900 -2342
- package/dist-cjs/runtimeConfig.shared.js +7 -0
- package/dist-es/AthenaClient.js +2 -0
- package/dist-es/commands/BatchGetNamedQueryCommand.js +3 -9
- package/dist-es/commands/BatchGetPreparedStatementCommand.js +3 -9
- package/dist-es/commands/BatchGetQueryExecutionCommand.js +3 -9
- package/dist-es/commands/CancelCapacityReservationCommand.js +3 -9
- package/dist-es/commands/CreateCapacityReservationCommand.js +3 -9
- package/dist-es/commands/CreateDataCatalogCommand.js +3 -9
- package/dist-es/commands/CreateNamedQueryCommand.js +3 -9
- package/dist-es/commands/CreateNotebookCommand.js +3 -9
- package/dist-es/commands/CreatePreparedStatementCommand.js +3 -9
- package/dist-es/commands/CreatePresignedNotebookUrlCommand.js +3 -9
- package/dist-es/commands/CreateWorkGroupCommand.js +3 -9
- package/dist-es/commands/DeleteCapacityReservationCommand.js +3 -9
- package/dist-es/commands/DeleteDataCatalogCommand.js +3 -9
- package/dist-es/commands/DeleteNamedQueryCommand.js +3 -9
- package/dist-es/commands/DeleteNotebookCommand.js +3 -9
- package/dist-es/commands/DeletePreparedStatementCommand.js +3 -9
- package/dist-es/commands/DeleteWorkGroupCommand.js +3 -9
- package/dist-es/commands/ExportNotebookCommand.js +3 -9
- package/dist-es/commands/GetCalculationExecutionCodeCommand.js +3 -9
- package/dist-es/commands/GetCalculationExecutionCommand.js +3 -9
- package/dist-es/commands/GetCalculationExecutionStatusCommand.js +3 -9
- package/dist-es/commands/GetCapacityAssignmentConfigurationCommand.js +3 -9
- package/dist-es/commands/GetCapacityReservationCommand.js +3 -9
- package/dist-es/commands/GetDataCatalogCommand.js +3 -9
- package/dist-es/commands/GetDatabaseCommand.js +3 -9
- package/dist-es/commands/GetNamedQueryCommand.js +3 -9
- package/dist-es/commands/GetNotebookMetadataCommand.js +3 -9
- package/dist-es/commands/GetPreparedStatementCommand.js +3 -9
- package/dist-es/commands/GetQueryExecutionCommand.js +3 -9
- package/dist-es/commands/GetQueryResultsCommand.js +3 -9
- package/dist-es/commands/GetQueryRuntimeStatisticsCommand.js +3 -9
- package/dist-es/commands/GetSessionCommand.js +3 -9
- package/dist-es/commands/GetSessionStatusCommand.js +3 -9
- package/dist-es/commands/GetTableMetadataCommand.js +3 -9
- package/dist-es/commands/GetWorkGroupCommand.js +3 -9
- package/dist-es/commands/ImportNotebookCommand.js +3 -9
- package/dist-es/commands/ListApplicationDPUSizesCommand.js +3 -9
- package/dist-es/commands/ListCalculationExecutionsCommand.js +3 -9
- package/dist-es/commands/ListCapacityReservationsCommand.js +3 -9
- package/dist-es/commands/ListDataCatalogsCommand.js +3 -9
- package/dist-es/commands/ListDatabasesCommand.js +3 -9
- package/dist-es/commands/ListEngineVersionsCommand.js +3 -9
- package/dist-es/commands/ListExecutorsCommand.js +3 -9
- package/dist-es/commands/ListNamedQueriesCommand.js +3 -9
- package/dist-es/commands/ListNotebookMetadataCommand.js +3 -9
- package/dist-es/commands/ListNotebookSessionsCommand.js +3 -9
- package/dist-es/commands/ListPreparedStatementsCommand.js +3 -9
- package/dist-es/commands/ListQueryExecutionsCommand.js +3 -9
- package/dist-es/commands/ListSessionsCommand.js +3 -9
- package/dist-es/commands/ListTableMetadataCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/ListWorkGroupsCommand.js +3 -9
- package/dist-es/commands/PutCapacityAssignmentConfigurationCommand.js +3 -9
- package/dist-es/commands/StartCalculationExecutionCommand.js +3 -9
- package/dist-es/commands/StartQueryExecutionCommand.js +3 -9
- package/dist-es/commands/StartSessionCommand.js +3 -9
- package/dist-es/commands/StopCalculationExecutionCommand.js +3 -9
- package/dist-es/commands/StopQueryExecutionCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/TerminateSessionCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdateCapacityReservationCommand.js +3 -9
- package/dist-es/commands/UpdateDataCatalogCommand.js +3 -9
- package/dist-es/commands/UpdateNamedQueryCommand.js +3 -9
- package/dist-es/commands/UpdateNotebookCommand.js +3 -9
- package/dist-es/commands/UpdateNotebookMetadataCommand.js +3 -9
- package/dist-es/commands/UpdatePreparedStatementCommand.js +3 -9
- package/dist-es/commands/UpdateWorkGroupCommand.js +3 -9
- package/dist-es/runtimeConfig.shared.js +7 -0
- package/dist-es/schemas/schemas_0.js +1754 -0
- package/dist-types/AthenaClient.d.ts +10 -1
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +313 -0
- package/dist-types/ts3.4/AthenaClient.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +318 -0
- package/package.json +5 -6
- package/dist-es/protocols/Aws_json1_1.js +0 -1852
- package/dist-types/protocols/Aws_json1_1.d.ts +0 -614
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -821
|
@@ -1,1852 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { v4 as generateIdempotencyToken } from "@smithy/uuid";
|
|
5
|
-
import { AthenaServiceException as __BaseException } from "../models/AthenaServiceException";
|
|
6
|
-
import { InternalServerException, InvalidRequestException, MetadataException, ResourceNotFoundException, SessionAlreadyExistsException, TooManyRequestsException, } from "../models/models_0";
|
|
7
|
-
export const se_BatchGetNamedQueryCommand = async (input, context) => {
|
|
8
|
-
const headers = sharedHeaders("BatchGetNamedQuery");
|
|
9
|
-
let body;
|
|
10
|
-
body = JSON.stringify(_json(input));
|
|
11
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
12
|
-
};
|
|
13
|
-
export const se_BatchGetPreparedStatementCommand = async (input, context) => {
|
|
14
|
-
const headers = sharedHeaders("BatchGetPreparedStatement");
|
|
15
|
-
let body;
|
|
16
|
-
body = JSON.stringify(_json(input));
|
|
17
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
18
|
-
};
|
|
19
|
-
export const se_BatchGetQueryExecutionCommand = async (input, context) => {
|
|
20
|
-
const headers = sharedHeaders("BatchGetQueryExecution");
|
|
21
|
-
let body;
|
|
22
|
-
body = JSON.stringify(_json(input));
|
|
23
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
24
|
-
};
|
|
25
|
-
export const se_CancelCapacityReservationCommand = async (input, context) => {
|
|
26
|
-
const headers = sharedHeaders("CancelCapacityReservation");
|
|
27
|
-
let body;
|
|
28
|
-
body = JSON.stringify(_json(input));
|
|
29
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
30
|
-
};
|
|
31
|
-
export const se_CreateCapacityReservationCommand = async (input, context) => {
|
|
32
|
-
const headers = sharedHeaders("CreateCapacityReservation");
|
|
33
|
-
let body;
|
|
34
|
-
body = JSON.stringify(_json(input));
|
|
35
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
36
|
-
};
|
|
37
|
-
export const se_CreateDataCatalogCommand = async (input, context) => {
|
|
38
|
-
const headers = sharedHeaders("CreateDataCatalog");
|
|
39
|
-
let body;
|
|
40
|
-
body = JSON.stringify(_json(input));
|
|
41
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
42
|
-
};
|
|
43
|
-
export const se_CreateNamedQueryCommand = async (input, context) => {
|
|
44
|
-
const headers = sharedHeaders("CreateNamedQuery");
|
|
45
|
-
let body;
|
|
46
|
-
body = JSON.stringify(se_CreateNamedQueryInput(input, context));
|
|
47
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
48
|
-
};
|
|
49
|
-
export const se_CreateNotebookCommand = async (input, context) => {
|
|
50
|
-
const headers = sharedHeaders("CreateNotebook");
|
|
51
|
-
let body;
|
|
52
|
-
body = JSON.stringify(_json(input));
|
|
53
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
54
|
-
};
|
|
55
|
-
export const se_CreatePreparedStatementCommand = async (input, context) => {
|
|
56
|
-
const headers = sharedHeaders("CreatePreparedStatement");
|
|
57
|
-
let body;
|
|
58
|
-
body = JSON.stringify(_json(input));
|
|
59
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
60
|
-
};
|
|
61
|
-
export const se_CreatePresignedNotebookUrlCommand = async (input, context) => {
|
|
62
|
-
const headers = sharedHeaders("CreatePresignedNotebookUrl");
|
|
63
|
-
let body;
|
|
64
|
-
body = JSON.stringify(_json(input));
|
|
65
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
66
|
-
};
|
|
67
|
-
export const se_CreateWorkGroupCommand = async (input, context) => {
|
|
68
|
-
const headers = sharedHeaders("CreateWorkGroup");
|
|
69
|
-
let body;
|
|
70
|
-
body = JSON.stringify(_json(input));
|
|
71
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
72
|
-
};
|
|
73
|
-
export const se_DeleteCapacityReservationCommand = async (input, context) => {
|
|
74
|
-
const headers = sharedHeaders("DeleteCapacityReservation");
|
|
75
|
-
let body;
|
|
76
|
-
body = JSON.stringify(_json(input));
|
|
77
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
78
|
-
};
|
|
79
|
-
export const se_DeleteDataCatalogCommand = async (input, context) => {
|
|
80
|
-
const headers = sharedHeaders("DeleteDataCatalog");
|
|
81
|
-
let body;
|
|
82
|
-
body = JSON.stringify(_json(input));
|
|
83
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
84
|
-
};
|
|
85
|
-
export const se_DeleteNamedQueryCommand = async (input, context) => {
|
|
86
|
-
const headers = sharedHeaders("DeleteNamedQuery");
|
|
87
|
-
let body;
|
|
88
|
-
body = JSON.stringify(se_DeleteNamedQueryInput(input, context));
|
|
89
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
90
|
-
};
|
|
91
|
-
export const se_DeleteNotebookCommand = async (input, context) => {
|
|
92
|
-
const headers = sharedHeaders("DeleteNotebook");
|
|
93
|
-
let body;
|
|
94
|
-
body = JSON.stringify(_json(input));
|
|
95
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
96
|
-
};
|
|
97
|
-
export const se_DeletePreparedStatementCommand = async (input, context) => {
|
|
98
|
-
const headers = sharedHeaders("DeletePreparedStatement");
|
|
99
|
-
let body;
|
|
100
|
-
body = JSON.stringify(_json(input));
|
|
101
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
102
|
-
};
|
|
103
|
-
export const se_DeleteWorkGroupCommand = async (input, context) => {
|
|
104
|
-
const headers = sharedHeaders("DeleteWorkGroup");
|
|
105
|
-
let body;
|
|
106
|
-
body = JSON.stringify(_json(input));
|
|
107
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
108
|
-
};
|
|
109
|
-
export const se_ExportNotebookCommand = async (input, context) => {
|
|
110
|
-
const headers = sharedHeaders("ExportNotebook");
|
|
111
|
-
let body;
|
|
112
|
-
body = JSON.stringify(_json(input));
|
|
113
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
114
|
-
};
|
|
115
|
-
export const se_GetCalculationExecutionCommand = async (input, context) => {
|
|
116
|
-
const headers = sharedHeaders("GetCalculationExecution");
|
|
117
|
-
let body;
|
|
118
|
-
body = JSON.stringify(_json(input));
|
|
119
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
120
|
-
};
|
|
121
|
-
export const se_GetCalculationExecutionCodeCommand = async (input, context) => {
|
|
122
|
-
const headers = sharedHeaders("GetCalculationExecutionCode");
|
|
123
|
-
let body;
|
|
124
|
-
body = JSON.stringify(_json(input));
|
|
125
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
126
|
-
};
|
|
127
|
-
export const se_GetCalculationExecutionStatusCommand = async (input, context) => {
|
|
128
|
-
const headers = sharedHeaders("GetCalculationExecutionStatus");
|
|
129
|
-
let body;
|
|
130
|
-
body = JSON.stringify(_json(input));
|
|
131
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
132
|
-
};
|
|
133
|
-
export const se_GetCapacityAssignmentConfigurationCommand = async (input, context) => {
|
|
134
|
-
const headers = sharedHeaders("GetCapacityAssignmentConfiguration");
|
|
135
|
-
let body;
|
|
136
|
-
body = JSON.stringify(_json(input));
|
|
137
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
138
|
-
};
|
|
139
|
-
export const se_GetCapacityReservationCommand = async (input, context) => {
|
|
140
|
-
const headers = sharedHeaders("GetCapacityReservation");
|
|
141
|
-
let body;
|
|
142
|
-
body = JSON.stringify(_json(input));
|
|
143
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
144
|
-
};
|
|
145
|
-
export const se_GetDatabaseCommand = async (input, context) => {
|
|
146
|
-
const headers = sharedHeaders("GetDatabase");
|
|
147
|
-
let body;
|
|
148
|
-
body = JSON.stringify(_json(input));
|
|
149
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
150
|
-
};
|
|
151
|
-
export const se_GetDataCatalogCommand = async (input, context) => {
|
|
152
|
-
const headers = sharedHeaders("GetDataCatalog");
|
|
153
|
-
let body;
|
|
154
|
-
body = JSON.stringify(_json(input));
|
|
155
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
156
|
-
};
|
|
157
|
-
export const se_GetNamedQueryCommand = async (input, context) => {
|
|
158
|
-
const headers = sharedHeaders("GetNamedQuery");
|
|
159
|
-
let body;
|
|
160
|
-
body = JSON.stringify(_json(input));
|
|
161
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
162
|
-
};
|
|
163
|
-
export const se_GetNotebookMetadataCommand = async (input, context) => {
|
|
164
|
-
const headers = sharedHeaders("GetNotebookMetadata");
|
|
165
|
-
let body;
|
|
166
|
-
body = JSON.stringify(_json(input));
|
|
167
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
168
|
-
};
|
|
169
|
-
export const se_GetPreparedStatementCommand = async (input, context) => {
|
|
170
|
-
const headers = sharedHeaders("GetPreparedStatement");
|
|
171
|
-
let body;
|
|
172
|
-
body = JSON.stringify(_json(input));
|
|
173
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
174
|
-
};
|
|
175
|
-
export const se_GetQueryExecutionCommand = async (input, context) => {
|
|
176
|
-
const headers = sharedHeaders("GetQueryExecution");
|
|
177
|
-
let body;
|
|
178
|
-
body = JSON.stringify(_json(input));
|
|
179
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
180
|
-
};
|
|
181
|
-
export const se_GetQueryResultsCommand = async (input, context) => {
|
|
182
|
-
const headers = sharedHeaders("GetQueryResults");
|
|
183
|
-
let body;
|
|
184
|
-
body = JSON.stringify(_json(input));
|
|
185
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
186
|
-
};
|
|
187
|
-
export const se_GetQueryRuntimeStatisticsCommand = async (input, context) => {
|
|
188
|
-
const headers = sharedHeaders("GetQueryRuntimeStatistics");
|
|
189
|
-
let body;
|
|
190
|
-
body = JSON.stringify(_json(input));
|
|
191
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
192
|
-
};
|
|
193
|
-
export const se_GetSessionCommand = async (input, context) => {
|
|
194
|
-
const headers = sharedHeaders("GetSession");
|
|
195
|
-
let body;
|
|
196
|
-
body = JSON.stringify(_json(input));
|
|
197
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
198
|
-
};
|
|
199
|
-
export const se_GetSessionStatusCommand = async (input, context) => {
|
|
200
|
-
const headers = sharedHeaders("GetSessionStatus");
|
|
201
|
-
let body;
|
|
202
|
-
body = JSON.stringify(_json(input));
|
|
203
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
204
|
-
};
|
|
205
|
-
export const se_GetTableMetadataCommand = async (input, context) => {
|
|
206
|
-
const headers = sharedHeaders("GetTableMetadata");
|
|
207
|
-
let body;
|
|
208
|
-
body = JSON.stringify(_json(input));
|
|
209
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
210
|
-
};
|
|
211
|
-
export const se_GetWorkGroupCommand = async (input, context) => {
|
|
212
|
-
const headers = sharedHeaders("GetWorkGroup");
|
|
213
|
-
let body;
|
|
214
|
-
body = JSON.stringify(_json(input));
|
|
215
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
216
|
-
};
|
|
217
|
-
export const se_ImportNotebookCommand = async (input, context) => {
|
|
218
|
-
const headers = sharedHeaders("ImportNotebook");
|
|
219
|
-
let body;
|
|
220
|
-
body = JSON.stringify(_json(input));
|
|
221
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
222
|
-
};
|
|
223
|
-
export const se_ListApplicationDPUSizesCommand = async (input, context) => {
|
|
224
|
-
const headers = sharedHeaders("ListApplicationDPUSizes");
|
|
225
|
-
let body;
|
|
226
|
-
body = JSON.stringify(_json(input));
|
|
227
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
228
|
-
};
|
|
229
|
-
export const se_ListCalculationExecutionsCommand = async (input, context) => {
|
|
230
|
-
const headers = sharedHeaders("ListCalculationExecutions");
|
|
231
|
-
let body;
|
|
232
|
-
body = JSON.stringify(_json(input));
|
|
233
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
234
|
-
};
|
|
235
|
-
export const se_ListCapacityReservationsCommand = async (input, context) => {
|
|
236
|
-
const headers = sharedHeaders("ListCapacityReservations");
|
|
237
|
-
let body;
|
|
238
|
-
body = JSON.stringify(_json(input));
|
|
239
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
240
|
-
};
|
|
241
|
-
export const se_ListDatabasesCommand = async (input, context) => {
|
|
242
|
-
const headers = sharedHeaders("ListDatabases");
|
|
243
|
-
let body;
|
|
244
|
-
body = JSON.stringify(_json(input));
|
|
245
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
246
|
-
};
|
|
247
|
-
export const se_ListDataCatalogsCommand = async (input, context) => {
|
|
248
|
-
const headers = sharedHeaders("ListDataCatalogs");
|
|
249
|
-
let body;
|
|
250
|
-
body = JSON.stringify(_json(input));
|
|
251
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
252
|
-
};
|
|
253
|
-
export const se_ListEngineVersionsCommand = async (input, context) => {
|
|
254
|
-
const headers = sharedHeaders("ListEngineVersions");
|
|
255
|
-
let body;
|
|
256
|
-
body = JSON.stringify(_json(input));
|
|
257
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
258
|
-
};
|
|
259
|
-
export const se_ListExecutorsCommand = async (input, context) => {
|
|
260
|
-
const headers = sharedHeaders("ListExecutors");
|
|
261
|
-
let body;
|
|
262
|
-
body = JSON.stringify(_json(input));
|
|
263
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
264
|
-
};
|
|
265
|
-
export const se_ListNamedQueriesCommand = async (input, context) => {
|
|
266
|
-
const headers = sharedHeaders("ListNamedQueries");
|
|
267
|
-
let body;
|
|
268
|
-
body = JSON.stringify(_json(input));
|
|
269
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
270
|
-
};
|
|
271
|
-
export const se_ListNotebookMetadataCommand = async (input, context) => {
|
|
272
|
-
const headers = sharedHeaders("ListNotebookMetadata");
|
|
273
|
-
let body;
|
|
274
|
-
body = JSON.stringify(_json(input));
|
|
275
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
276
|
-
};
|
|
277
|
-
export const se_ListNotebookSessionsCommand = async (input, context) => {
|
|
278
|
-
const headers = sharedHeaders("ListNotebookSessions");
|
|
279
|
-
let body;
|
|
280
|
-
body = JSON.stringify(_json(input));
|
|
281
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
282
|
-
};
|
|
283
|
-
export const se_ListPreparedStatementsCommand = async (input, context) => {
|
|
284
|
-
const headers = sharedHeaders("ListPreparedStatements");
|
|
285
|
-
let body;
|
|
286
|
-
body = JSON.stringify(_json(input));
|
|
287
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
288
|
-
};
|
|
289
|
-
export const se_ListQueryExecutionsCommand = async (input, context) => {
|
|
290
|
-
const headers = sharedHeaders("ListQueryExecutions");
|
|
291
|
-
let body;
|
|
292
|
-
body = JSON.stringify(_json(input));
|
|
293
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
294
|
-
};
|
|
295
|
-
export const se_ListSessionsCommand = async (input, context) => {
|
|
296
|
-
const headers = sharedHeaders("ListSessions");
|
|
297
|
-
let body;
|
|
298
|
-
body = JSON.stringify(_json(input));
|
|
299
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
300
|
-
};
|
|
301
|
-
export const se_ListTableMetadataCommand = async (input, context) => {
|
|
302
|
-
const headers = sharedHeaders("ListTableMetadata");
|
|
303
|
-
let body;
|
|
304
|
-
body = JSON.stringify(_json(input));
|
|
305
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
306
|
-
};
|
|
307
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
308
|
-
const headers = sharedHeaders("ListTagsForResource");
|
|
309
|
-
let body;
|
|
310
|
-
body = JSON.stringify(_json(input));
|
|
311
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
312
|
-
};
|
|
313
|
-
export const se_ListWorkGroupsCommand = async (input, context) => {
|
|
314
|
-
const headers = sharedHeaders("ListWorkGroups");
|
|
315
|
-
let body;
|
|
316
|
-
body = JSON.stringify(_json(input));
|
|
317
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
318
|
-
};
|
|
319
|
-
export const se_PutCapacityAssignmentConfigurationCommand = async (input, context) => {
|
|
320
|
-
const headers = sharedHeaders("PutCapacityAssignmentConfiguration");
|
|
321
|
-
let body;
|
|
322
|
-
body = JSON.stringify(_json(input));
|
|
323
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
324
|
-
};
|
|
325
|
-
export const se_StartCalculationExecutionCommand = async (input, context) => {
|
|
326
|
-
const headers = sharedHeaders("StartCalculationExecution");
|
|
327
|
-
let body;
|
|
328
|
-
body = JSON.stringify(_json(input));
|
|
329
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
330
|
-
};
|
|
331
|
-
export const se_StartQueryExecutionCommand = async (input, context) => {
|
|
332
|
-
const headers = sharedHeaders("StartQueryExecution");
|
|
333
|
-
let body;
|
|
334
|
-
body = JSON.stringify(se_StartQueryExecutionInput(input, context));
|
|
335
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
336
|
-
};
|
|
337
|
-
export const se_StartSessionCommand = async (input, context) => {
|
|
338
|
-
const headers = sharedHeaders("StartSession");
|
|
339
|
-
let body;
|
|
340
|
-
body = JSON.stringify(_json(input));
|
|
341
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
342
|
-
};
|
|
343
|
-
export const se_StopCalculationExecutionCommand = async (input, context) => {
|
|
344
|
-
const headers = sharedHeaders("StopCalculationExecution");
|
|
345
|
-
let body;
|
|
346
|
-
body = JSON.stringify(_json(input));
|
|
347
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
348
|
-
};
|
|
349
|
-
export const se_StopQueryExecutionCommand = async (input, context) => {
|
|
350
|
-
const headers = sharedHeaders("StopQueryExecution");
|
|
351
|
-
let body;
|
|
352
|
-
body = JSON.stringify(se_StopQueryExecutionInput(input, context));
|
|
353
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
354
|
-
};
|
|
355
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
356
|
-
const headers = sharedHeaders("TagResource");
|
|
357
|
-
let body;
|
|
358
|
-
body = JSON.stringify(_json(input));
|
|
359
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
360
|
-
};
|
|
361
|
-
export const se_TerminateSessionCommand = async (input, context) => {
|
|
362
|
-
const headers = sharedHeaders("TerminateSession");
|
|
363
|
-
let body;
|
|
364
|
-
body = JSON.stringify(_json(input));
|
|
365
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
366
|
-
};
|
|
367
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
368
|
-
const headers = sharedHeaders("UntagResource");
|
|
369
|
-
let body;
|
|
370
|
-
body = JSON.stringify(_json(input));
|
|
371
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
372
|
-
};
|
|
373
|
-
export const se_UpdateCapacityReservationCommand = async (input, context) => {
|
|
374
|
-
const headers = sharedHeaders("UpdateCapacityReservation");
|
|
375
|
-
let body;
|
|
376
|
-
body = JSON.stringify(_json(input));
|
|
377
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
378
|
-
};
|
|
379
|
-
export const se_UpdateDataCatalogCommand = async (input, context) => {
|
|
380
|
-
const headers = sharedHeaders("UpdateDataCatalog");
|
|
381
|
-
let body;
|
|
382
|
-
body = JSON.stringify(_json(input));
|
|
383
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
384
|
-
};
|
|
385
|
-
export const se_UpdateNamedQueryCommand = async (input, context) => {
|
|
386
|
-
const headers = sharedHeaders("UpdateNamedQuery");
|
|
387
|
-
let body;
|
|
388
|
-
body = JSON.stringify(_json(input));
|
|
389
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
390
|
-
};
|
|
391
|
-
export const se_UpdateNotebookCommand = async (input, context) => {
|
|
392
|
-
const headers = sharedHeaders("UpdateNotebook");
|
|
393
|
-
let body;
|
|
394
|
-
body = JSON.stringify(_json(input));
|
|
395
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
396
|
-
};
|
|
397
|
-
export const se_UpdateNotebookMetadataCommand = async (input, context) => {
|
|
398
|
-
const headers = sharedHeaders("UpdateNotebookMetadata");
|
|
399
|
-
let body;
|
|
400
|
-
body = JSON.stringify(_json(input));
|
|
401
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
402
|
-
};
|
|
403
|
-
export const se_UpdatePreparedStatementCommand = async (input, context) => {
|
|
404
|
-
const headers = sharedHeaders("UpdatePreparedStatement");
|
|
405
|
-
let body;
|
|
406
|
-
body = JSON.stringify(_json(input));
|
|
407
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
408
|
-
};
|
|
409
|
-
export const se_UpdateWorkGroupCommand = async (input, context) => {
|
|
410
|
-
const headers = sharedHeaders("UpdateWorkGroup");
|
|
411
|
-
let body;
|
|
412
|
-
body = JSON.stringify(_json(input));
|
|
413
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
414
|
-
};
|
|
415
|
-
export const de_BatchGetNamedQueryCommand = async (output, context) => {
|
|
416
|
-
if (output.statusCode >= 300) {
|
|
417
|
-
return de_CommandError(output, context);
|
|
418
|
-
}
|
|
419
|
-
const data = await parseBody(output.body, context);
|
|
420
|
-
let contents = {};
|
|
421
|
-
contents = _json(data);
|
|
422
|
-
const response = {
|
|
423
|
-
$metadata: deserializeMetadata(output),
|
|
424
|
-
...contents,
|
|
425
|
-
};
|
|
426
|
-
return response;
|
|
427
|
-
};
|
|
428
|
-
export const de_BatchGetPreparedStatementCommand = async (output, context) => {
|
|
429
|
-
if (output.statusCode >= 300) {
|
|
430
|
-
return de_CommandError(output, context);
|
|
431
|
-
}
|
|
432
|
-
const data = await parseBody(output.body, context);
|
|
433
|
-
let contents = {};
|
|
434
|
-
contents = de_BatchGetPreparedStatementOutput(data, context);
|
|
435
|
-
const response = {
|
|
436
|
-
$metadata: deserializeMetadata(output),
|
|
437
|
-
...contents,
|
|
438
|
-
};
|
|
439
|
-
return response;
|
|
440
|
-
};
|
|
441
|
-
export const de_BatchGetQueryExecutionCommand = async (output, context) => {
|
|
442
|
-
if (output.statusCode >= 300) {
|
|
443
|
-
return de_CommandError(output, context);
|
|
444
|
-
}
|
|
445
|
-
const data = await parseBody(output.body, context);
|
|
446
|
-
let contents = {};
|
|
447
|
-
contents = de_BatchGetQueryExecutionOutput(data, context);
|
|
448
|
-
const response = {
|
|
449
|
-
$metadata: deserializeMetadata(output),
|
|
450
|
-
...contents,
|
|
451
|
-
};
|
|
452
|
-
return response;
|
|
453
|
-
};
|
|
454
|
-
export const de_CancelCapacityReservationCommand = async (output, context) => {
|
|
455
|
-
if (output.statusCode >= 300) {
|
|
456
|
-
return de_CommandError(output, context);
|
|
457
|
-
}
|
|
458
|
-
const data = await parseBody(output.body, context);
|
|
459
|
-
let contents = {};
|
|
460
|
-
contents = _json(data);
|
|
461
|
-
const response = {
|
|
462
|
-
$metadata: deserializeMetadata(output),
|
|
463
|
-
...contents,
|
|
464
|
-
};
|
|
465
|
-
return response;
|
|
466
|
-
};
|
|
467
|
-
export const de_CreateCapacityReservationCommand = async (output, context) => {
|
|
468
|
-
if (output.statusCode >= 300) {
|
|
469
|
-
return de_CommandError(output, context);
|
|
470
|
-
}
|
|
471
|
-
const data = await parseBody(output.body, context);
|
|
472
|
-
let contents = {};
|
|
473
|
-
contents = _json(data);
|
|
474
|
-
const response = {
|
|
475
|
-
$metadata: deserializeMetadata(output),
|
|
476
|
-
...contents,
|
|
477
|
-
};
|
|
478
|
-
return response;
|
|
479
|
-
};
|
|
480
|
-
export const de_CreateDataCatalogCommand = async (output, context) => {
|
|
481
|
-
if (output.statusCode >= 300) {
|
|
482
|
-
return de_CommandError(output, context);
|
|
483
|
-
}
|
|
484
|
-
const data = await parseBody(output.body, context);
|
|
485
|
-
let contents = {};
|
|
486
|
-
contents = _json(data);
|
|
487
|
-
const response = {
|
|
488
|
-
$metadata: deserializeMetadata(output),
|
|
489
|
-
...contents,
|
|
490
|
-
};
|
|
491
|
-
return response;
|
|
492
|
-
};
|
|
493
|
-
export const de_CreateNamedQueryCommand = async (output, context) => {
|
|
494
|
-
if (output.statusCode >= 300) {
|
|
495
|
-
return de_CommandError(output, context);
|
|
496
|
-
}
|
|
497
|
-
const data = await parseBody(output.body, context);
|
|
498
|
-
let contents = {};
|
|
499
|
-
contents = _json(data);
|
|
500
|
-
const response = {
|
|
501
|
-
$metadata: deserializeMetadata(output),
|
|
502
|
-
...contents,
|
|
503
|
-
};
|
|
504
|
-
return response;
|
|
505
|
-
};
|
|
506
|
-
export const de_CreateNotebookCommand = async (output, context) => {
|
|
507
|
-
if (output.statusCode >= 300) {
|
|
508
|
-
return de_CommandError(output, context);
|
|
509
|
-
}
|
|
510
|
-
const data = await parseBody(output.body, context);
|
|
511
|
-
let contents = {};
|
|
512
|
-
contents = _json(data);
|
|
513
|
-
const response = {
|
|
514
|
-
$metadata: deserializeMetadata(output),
|
|
515
|
-
...contents,
|
|
516
|
-
};
|
|
517
|
-
return response;
|
|
518
|
-
};
|
|
519
|
-
export const de_CreatePreparedStatementCommand = async (output, context) => {
|
|
520
|
-
if (output.statusCode >= 300) {
|
|
521
|
-
return de_CommandError(output, context);
|
|
522
|
-
}
|
|
523
|
-
const data = await parseBody(output.body, context);
|
|
524
|
-
let contents = {};
|
|
525
|
-
contents = _json(data);
|
|
526
|
-
const response = {
|
|
527
|
-
$metadata: deserializeMetadata(output),
|
|
528
|
-
...contents,
|
|
529
|
-
};
|
|
530
|
-
return response;
|
|
531
|
-
};
|
|
532
|
-
export const de_CreatePresignedNotebookUrlCommand = async (output, context) => {
|
|
533
|
-
if (output.statusCode >= 300) {
|
|
534
|
-
return de_CommandError(output, context);
|
|
535
|
-
}
|
|
536
|
-
const data = await parseBody(output.body, context);
|
|
537
|
-
let contents = {};
|
|
538
|
-
contents = _json(data);
|
|
539
|
-
const response = {
|
|
540
|
-
$metadata: deserializeMetadata(output),
|
|
541
|
-
...contents,
|
|
542
|
-
};
|
|
543
|
-
return response;
|
|
544
|
-
};
|
|
545
|
-
export const de_CreateWorkGroupCommand = async (output, context) => {
|
|
546
|
-
if (output.statusCode >= 300) {
|
|
547
|
-
return de_CommandError(output, context);
|
|
548
|
-
}
|
|
549
|
-
const data = await parseBody(output.body, context);
|
|
550
|
-
let contents = {};
|
|
551
|
-
contents = _json(data);
|
|
552
|
-
const response = {
|
|
553
|
-
$metadata: deserializeMetadata(output),
|
|
554
|
-
...contents,
|
|
555
|
-
};
|
|
556
|
-
return response;
|
|
557
|
-
};
|
|
558
|
-
export const de_DeleteCapacityReservationCommand = async (output, context) => {
|
|
559
|
-
if (output.statusCode >= 300) {
|
|
560
|
-
return de_CommandError(output, context);
|
|
561
|
-
}
|
|
562
|
-
const data = await parseBody(output.body, context);
|
|
563
|
-
let contents = {};
|
|
564
|
-
contents = _json(data);
|
|
565
|
-
const response = {
|
|
566
|
-
$metadata: deserializeMetadata(output),
|
|
567
|
-
...contents,
|
|
568
|
-
};
|
|
569
|
-
return response;
|
|
570
|
-
};
|
|
571
|
-
export const de_DeleteDataCatalogCommand = async (output, context) => {
|
|
572
|
-
if (output.statusCode >= 300) {
|
|
573
|
-
return de_CommandError(output, context);
|
|
574
|
-
}
|
|
575
|
-
const data = await parseBody(output.body, context);
|
|
576
|
-
let contents = {};
|
|
577
|
-
contents = _json(data);
|
|
578
|
-
const response = {
|
|
579
|
-
$metadata: deserializeMetadata(output),
|
|
580
|
-
...contents,
|
|
581
|
-
};
|
|
582
|
-
return response;
|
|
583
|
-
};
|
|
584
|
-
export const de_DeleteNamedQueryCommand = async (output, context) => {
|
|
585
|
-
if (output.statusCode >= 300) {
|
|
586
|
-
return de_CommandError(output, context);
|
|
587
|
-
}
|
|
588
|
-
const data = await parseBody(output.body, context);
|
|
589
|
-
let contents = {};
|
|
590
|
-
contents = _json(data);
|
|
591
|
-
const response = {
|
|
592
|
-
$metadata: deserializeMetadata(output),
|
|
593
|
-
...contents,
|
|
594
|
-
};
|
|
595
|
-
return response;
|
|
596
|
-
};
|
|
597
|
-
export const de_DeleteNotebookCommand = async (output, context) => {
|
|
598
|
-
if (output.statusCode >= 300) {
|
|
599
|
-
return de_CommandError(output, context);
|
|
600
|
-
}
|
|
601
|
-
const data = await parseBody(output.body, context);
|
|
602
|
-
let contents = {};
|
|
603
|
-
contents = _json(data);
|
|
604
|
-
const response = {
|
|
605
|
-
$metadata: deserializeMetadata(output),
|
|
606
|
-
...contents,
|
|
607
|
-
};
|
|
608
|
-
return response;
|
|
609
|
-
};
|
|
610
|
-
export const de_DeletePreparedStatementCommand = async (output, context) => {
|
|
611
|
-
if (output.statusCode >= 300) {
|
|
612
|
-
return de_CommandError(output, context);
|
|
613
|
-
}
|
|
614
|
-
const data = await parseBody(output.body, context);
|
|
615
|
-
let contents = {};
|
|
616
|
-
contents = _json(data);
|
|
617
|
-
const response = {
|
|
618
|
-
$metadata: deserializeMetadata(output),
|
|
619
|
-
...contents,
|
|
620
|
-
};
|
|
621
|
-
return response;
|
|
622
|
-
};
|
|
623
|
-
export const de_DeleteWorkGroupCommand = async (output, context) => {
|
|
624
|
-
if (output.statusCode >= 300) {
|
|
625
|
-
return de_CommandError(output, context);
|
|
626
|
-
}
|
|
627
|
-
const data = await parseBody(output.body, context);
|
|
628
|
-
let contents = {};
|
|
629
|
-
contents = _json(data);
|
|
630
|
-
const response = {
|
|
631
|
-
$metadata: deserializeMetadata(output),
|
|
632
|
-
...contents,
|
|
633
|
-
};
|
|
634
|
-
return response;
|
|
635
|
-
};
|
|
636
|
-
export const de_ExportNotebookCommand = async (output, context) => {
|
|
637
|
-
if (output.statusCode >= 300) {
|
|
638
|
-
return de_CommandError(output, context);
|
|
639
|
-
}
|
|
640
|
-
const data = await parseBody(output.body, context);
|
|
641
|
-
let contents = {};
|
|
642
|
-
contents = de_ExportNotebookOutput(data, context);
|
|
643
|
-
const response = {
|
|
644
|
-
$metadata: deserializeMetadata(output),
|
|
645
|
-
...contents,
|
|
646
|
-
};
|
|
647
|
-
return response;
|
|
648
|
-
};
|
|
649
|
-
export const de_GetCalculationExecutionCommand = async (output, context) => {
|
|
650
|
-
if (output.statusCode >= 300) {
|
|
651
|
-
return de_CommandError(output, context);
|
|
652
|
-
}
|
|
653
|
-
const data = await parseBody(output.body, context);
|
|
654
|
-
let contents = {};
|
|
655
|
-
contents = de_GetCalculationExecutionResponse(data, context);
|
|
656
|
-
const response = {
|
|
657
|
-
$metadata: deserializeMetadata(output),
|
|
658
|
-
...contents,
|
|
659
|
-
};
|
|
660
|
-
return response;
|
|
661
|
-
};
|
|
662
|
-
export const de_GetCalculationExecutionCodeCommand = async (output, context) => {
|
|
663
|
-
if (output.statusCode >= 300) {
|
|
664
|
-
return de_CommandError(output, context);
|
|
665
|
-
}
|
|
666
|
-
const data = await parseBody(output.body, context);
|
|
667
|
-
let contents = {};
|
|
668
|
-
contents = _json(data);
|
|
669
|
-
const response = {
|
|
670
|
-
$metadata: deserializeMetadata(output),
|
|
671
|
-
...contents,
|
|
672
|
-
};
|
|
673
|
-
return response;
|
|
674
|
-
};
|
|
675
|
-
export const de_GetCalculationExecutionStatusCommand = async (output, context) => {
|
|
676
|
-
if (output.statusCode >= 300) {
|
|
677
|
-
return de_CommandError(output, context);
|
|
678
|
-
}
|
|
679
|
-
const data = await parseBody(output.body, context);
|
|
680
|
-
let contents = {};
|
|
681
|
-
contents = de_GetCalculationExecutionStatusResponse(data, context);
|
|
682
|
-
const response = {
|
|
683
|
-
$metadata: deserializeMetadata(output),
|
|
684
|
-
...contents,
|
|
685
|
-
};
|
|
686
|
-
return response;
|
|
687
|
-
};
|
|
688
|
-
export const de_GetCapacityAssignmentConfigurationCommand = async (output, context) => {
|
|
689
|
-
if (output.statusCode >= 300) {
|
|
690
|
-
return de_CommandError(output, context);
|
|
691
|
-
}
|
|
692
|
-
const data = await parseBody(output.body, context);
|
|
693
|
-
let contents = {};
|
|
694
|
-
contents = _json(data);
|
|
695
|
-
const response = {
|
|
696
|
-
$metadata: deserializeMetadata(output),
|
|
697
|
-
...contents,
|
|
698
|
-
};
|
|
699
|
-
return response;
|
|
700
|
-
};
|
|
701
|
-
export const de_GetCapacityReservationCommand = async (output, context) => {
|
|
702
|
-
if (output.statusCode >= 300) {
|
|
703
|
-
return de_CommandError(output, context);
|
|
704
|
-
}
|
|
705
|
-
const data = await parseBody(output.body, context);
|
|
706
|
-
let contents = {};
|
|
707
|
-
contents = de_GetCapacityReservationOutput(data, context);
|
|
708
|
-
const response = {
|
|
709
|
-
$metadata: deserializeMetadata(output),
|
|
710
|
-
...contents,
|
|
711
|
-
};
|
|
712
|
-
return response;
|
|
713
|
-
};
|
|
714
|
-
export const de_GetDatabaseCommand = async (output, context) => {
|
|
715
|
-
if (output.statusCode >= 300) {
|
|
716
|
-
return de_CommandError(output, context);
|
|
717
|
-
}
|
|
718
|
-
const data = await parseBody(output.body, context);
|
|
719
|
-
let contents = {};
|
|
720
|
-
contents = _json(data);
|
|
721
|
-
const response = {
|
|
722
|
-
$metadata: deserializeMetadata(output),
|
|
723
|
-
...contents,
|
|
724
|
-
};
|
|
725
|
-
return response;
|
|
726
|
-
};
|
|
727
|
-
export const de_GetDataCatalogCommand = async (output, context) => {
|
|
728
|
-
if (output.statusCode >= 300) {
|
|
729
|
-
return de_CommandError(output, context);
|
|
730
|
-
}
|
|
731
|
-
const data = await parseBody(output.body, context);
|
|
732
|
-
let contents = {};
|
|
733
|
-
contents = _json(data);
|
|
734
|
-
const response = {
|
|
735
|
-
$metadata: deserializeMetadata(output),
|
|
736
|
-
...contents,
|
|
737
|
-
};
|
|
738
|
-
return response;
|
|
739
|
-
};
|
|
740
|
-
export const de_GetNamedQueryCommand = async (output, context) => {
|
|
741
|
-
if (output.statusCode >= 300) {
|
|
742
|
-
return de_CommandError(output, context);
|
|
743
|
-
}
|
|
744
|
-
const data = await parseBody(output.body, context);
|
|
745
|
-
let contents = {};
|
|
746
|
-
contents = _json(data);
|
|
747
|
-
const response = {
|
|
748
|
-
$metadata: deserializeMetadata(output),
|
|
749
|
-
...contents,
|
|
750
|
-
};
|
|
751
|
-
return response;
|
|
752
|
-
};
|
|
753
|
-
export const de_GetNotebookMetadataCommand = async (output, context) => {
|
|
754
|
-
if (output.statusCode >= 300) {
|
|
755
|
-
return de_CommandError(output, context);
|
|
756
|
-
}
|
|
757
|
-
const data = await parseBody(output.body, context);
|
|
758
|
-
let contents = {};
|
|
759
|
-
contents = de_GetNotebookMetadataOutput(data, context);
|
|
760
|
-
const response = {
|
|
761
|
-
$metadata: deserializeMetadata(output),
|
|
762
|
-
...contents,
|
|
763
|
-
};
|
|
764
|
-
return response;
|
|
765
|
-
};
|
|
766
|
-
export const de_GetPreparedStatementCommand = async (output, context) => {
|
|
767
|
-
if (output.statusCode >= 300) {
|
|
768
|
-
return de_CommandError(output, context);
|
|
769
|
-
}
|
|
770
|
-
const data = await parseBody(output.body, context);
|
|
771
|
-
let contents = {};
|
|
772
|
-
contents = de_GetPreparedStatementOutput(data, context);
|
|
773
|
-
const response = {
|
|
774
|
-
$metadata: deserializeMetadata(output),
|
|
775
|
-
...contents,
|
|
776
|
-
};
|
|
777
|
-
return response;
|
|
778
|
-
};
|
|
779
|
-
export const de_GetQueryExecutionCommand = async (output, context) => {
|
|
780
|
-
if (output.statusCode >= 300) {
|
|
781
|
-
return de_CommandError(output, context);
|
|
782
|
-
}
|
|
783
|
-
const data = await parseBody(output.body, context);
|
|
784
|
-
let contents = {};
|
|
785
|
-
contents = de_GetQueryExecutionOutput(data, context);
|
|
786
|
-
const response = {
|
|
787
|
-
$metadata: deserializeMetadata(output),
|
|
788
|
-
...contents,
|
|
789
|
-
};
|
|
790
|
-
return response;
|
|
791
|
-
};
|
|
792
|
-
export const de_GetQueryResultsCommand = async (output, context) => {
|
|
793
|
-
if (output.statusCode >= 300) {
|
|
794
|
-
return de_CommandError(output, context);
|
|
795
|
-
}
|
|
796
|
-
const data = await parseBody(output.body, context);
|
|
797
|
-
let contents = {};
|
|
798
|
-
contents = _json(data);
|
|
799
|
-
const response = {
|
|
800
|
-
$metadata: deserializeMetadata(output),
|
|
801
|
-
...contents,
|
|
802
|
-
};
|
|
803
|
-
return response;
|
|
804
|
-
};
|
|
805
|
-
export const de_GetQueryRuntimeStatisticsCommand = async (output, context) => {
|
|
806
|
-
if (output.statusCode >= 300) {
|
|
807
|
-
return de_CommandError(output, context);
|
|
808
|
-
}
|
|
809
|
-
const data = await parseBody(output.body, context);
|
|
810
|
-
let contents = {};
|
|
811
|
-
contents = de_GetQueryRuntimeStatisticsOutput(data, context);
|
|
812
|
-
const response = {
|
|
813
|
-
$metadata: deserializeMetadata(output),
|
|
814
|
-
...contents,
|
|
815
|
-
};
|
|
816
|
-
return response;
|
|
817
|
-
};
|
|
818
|
-
export const de_GetSessionCommand = async (output, context) => {
|
|
819
|
-
if (output.statusCode >= 300) {
|
|
820
|
-
return de_CommandError(output, context);
|
|
821
|
-
}
|
|
822
|
-
const data = await parseBody(output.body, context);
|
|
823
|
-
let contents = {};
|
|
824
|
-
contents = de_GetSessionResponse(data, context);
|
|
825
|
-
const response = {
|
|
826
|
-
$metadata: deserializeMetadata(output),
|
|
827
|
-
...contents,
|
|
828
|
-
};
|
|
829
|
-
return response;
|
|
830
|
-
};
|
|
831
|
-
export const de_GetSessionStatusCommand = async (output, context) => {
|
|
832
|
-
if (output.statusCode >= 300) {
|
|
833
|
-
return de_CommandError(output, context);
|
|
834
|
-
}
|
|
835
|
-
const data = await parseBody(output.body, context);
|
|
836
|
-
let contents = {};
|
|
837
|
-
contents = de_GetSessionStatusResponse(data, context);
|
|
838
|
-
const response = {
|
|
839
|
-
$metadata: deserializeMetadata(output),
|
|
840
|
-
...contents,
|
|
841
|
-
};
|
|
842
|
-
return response;
|
|
843
|
-
};
|
|
844
|
-
export const de_GetTableMetadataCommand = async (output, context) => {
|
|
845
|
-
if (output.statusCode >= 300) {
|
|
846
|
-
return de_CommandError(output, context);
|
|
847
|
-
}
|
|
848
|
-
const data = await parseBody(output.body, context);
|
|
849
|
-
let contents = {};
|
|
850
|
-
contents = de_GetTableMetadataOutput(data, context);
|
|
851
|
-
const response = {
|
|
852
|
-
$metadata: deserializeMetadata(output),
|
|
853
|
-
...contents,
|
|
854
|
-
};
|
|
855
|
-
return response;
|
|
856
|
-
};
|
|
857
|
-
export const de_GetWorkGroupCommand = async (output, context) => {
|
|
858
|
-
if (output.statusCode >= 300) {
|
|
859
|
-
return de_CommandError(output, context);
|
|
860
|
-
}
|
|
861
|
-
const data = await parseBody(output.body, context);
|
|
862
|
-
let contents = {};
|
|
863
|
-
contents = de_GetWorkGroupOutput(data, context);
|
|
864
|
-
const response = {
|
|
865
|
-
$metadata: deserializeMetadata(output),
|
|
866
|
-
...contents,
|
|
867
|
-
};
|
|
868
|
-
return response;
|
|
869
|
-
};
|
|
870
|
-
export const de_ImportNotebookCommand = async (output, context) => {
|
|
871
|
-
if (output.statusCode >= 300) {
|
|
872
|
-
return de_CommandError(output, context);
|
|
873
|
-
}
|
|
874
|
-
const data = await parseBody(output.body, context);
|
|
875
|
-
let contents = {};
|
|
876
|
-
contents = _json(data);
|
|
877
|
-
const response = {
|
|
878
|
-
$metadata: deserializeMetadata(output),
|
|
879
|
-
...contents,
|
|
880
|
-
};
|
|
881
|
-
return response;
|
|
882
|
-
};
|
|
883
|
-
export const de_ListApplicationDPUSizesCommand = async (output, context) => {
|
|
884
|
-
if (output.statusCode >= 300) {
|
|
885
|
-
return de_CommandError(output, context);
|
|
886
|
-
}
|
|
887
|
-
const data = await parseBody(output.body, context);
|
|
888
|
-
let contents = {};
|
|
889
|
-
contents = _json(data);
|
|
890
|
-
const response = {
|
|
891
|
-
$metadata: deserializeMetadata(output),
|
|
892
|
-
...contents,
|
|
893
|
-
};
|
|
894
|
-
return response;
|
|
895
|
-
};
|
|
896
|
-
export const de_ListCalculationExecutionsCommand = async (output, context) => {
|
|
897
|
-
if (output.statusCode >= 300) {
|
|
898
|
-
return de_CommandError(output, context);
|
|
899
|
-
}
|
|
900
|
-
const data = await parseBody(output.body, context);
|
|
901
|
-
let contents = {};
|
|
902
|
-
contents = de_ListCalculationExecutionsResponse(data, context);
|
|
903
|
-
const response = {
|
|
904
|
-
$metadata: deserializeMetadata(output),
|
|
905
|
-
...contents,
|
|
906
|
-
};
|
|
907
|
-
return response;
|
|
908
|
-
};
|
|
909
|
-
export const de_ListCapacityReservationsCommand = async (output, context) => {
|
|
910
|
-
if (output.statusCode >= 300) {
|
|
911
|
-
return de_CommandError(output, context);
|
|
912
|
-
}
|
|
913
|
-
const data = await parseBody(output.body, context);
|
|
914
|
-
let contents = {};
|
|
915
|
-
contents = de_ListCapacityReservationsOutput(data, context);
|
|
916
|
-
const response = {
|
|
917
|
-
$metadata: deserializeMetadata(output),
|
|
918
|
-
...contents,
|
|
919
|
-
};
|
|
920
|
-
return response;
|
|
921
|
-
};
|
|
922
|
-
export const de_ListDatabasesCommand = async (output, context) => {
|
|
923
|
-
if (output.statusCode >= 300) {
|
|
924
|
-
return de_CommandError(output, context);
|
|
925
|
-
}
|
|
926
|
-
const data = await parseBody(output.body, context);
|
|
927
|
-
let contents = {};
|
|
928
|
-
contents = _json(data);
|
|
929
|
-
const response = {
|
|
930
|
-
$metadata: deserializeMetadata(output),
|
|
931
|
-
...contents,
|
|
932
|
-
};
|
|
933
|
-
return response;
|
|
934
|
-
};
|
|
935
|
-
export const de_ListDataCatalogsCommand = async (output, context) => {
|
|
936
|
-
if (output.statusCode >= 300) {
|
|
937
|
-
return de_CommandError(output, context);
|
|
938
|
-
}
|
|
939
|
-
const data = await parseBody(output.body, context);
|
|
940
|
-
let contents = {};
|
|
941
|
-
contents = _json(data);
|
|
942
|
-
const response = {
|
|
943
|
-
$metadata: deserializeMetadata(output),
|
|
944
|
-
...contents,
|
|
945
|
-
};
|
|
946
|
-
return response;
|
|
947
|
-
};
|
|
948
|
-
export const de_ListEngineVersionsCommand = async (output, context) => {
|
|
949
|
-
if (output.statusCode >= 300) {
|
|
950
|
-
return de_CommandError(output, context);
|
|
951
|
-
}
|
|
952
|
-
const data = await parseBody(output.body, context);
|
|
953
|
-
let contents = {};
|
|
954
|
-
contents = _json(data);
|
|
955
|
-
const response = {
|
|
956
|
-
$metadata: deserializeMetadata(output),
|
|
957
|
-
...contents,
|
|
958
|
-
};
|
|
959
|
-
return response;
|
|
960
|
-
};
|
|
961
|
-
export const de_ListExecutorsCommand = async (output, context) => {
|
|
962
|
-
if (output.statusCode >= 300) {
|
|
963
|
-
return de_CommandError(output, context);
|
|
964
|
-
}
|
|
965
|
-
const data = await parseBody(output.body, context);
|
|
966
|
-
let contents = {};
|
|
967
|
-
contents = _json(data);
|
|
968
|
-
const response = {
|
|
969
|
-
$metadata: deserializeMetadata(output),
|
|
970
|
-
...contents,
|
|
971
|
-
};
|
|
972
|
-
return response;
|
|
973
|
-
};
|
|
974
|
-
export const de_ListNamedQueriesCommand = async (output, context) => {
|
|
975
|
-
if (output.statusCode >= 300) {
|
|
976
|
-
return de_CommandError(output, context);
|
|
977
|
-
}
|
|
978
|
-
const data = await parseBody(output.body, context);
|
|
979
|
-
let contents = {};
|
|
980
|
-
contents = _json(data);
|
|
981
|
-
const response = {
|
|
982
|
-
$metadata: deserializeMetadata(output),
|
|
983
|
-
...contents,
|
|
984
|
-
};
|
|
985
|
-
return response;
|
|
986
|
-
};
|
|
987
|
-
export const de_ListNotebookMetadataCommand = async (output, context) => {
|
|
988
|
-
if (output.statusCode >= 300) {
|
|
989
|
-
return de_CommandError(output, context);
|
|
990
|
-
}
|
|
991
|
-
const data = await parseBody(output.body, context);
|
|
992
|
-
let contents = {};
|
|
993
|
-
contents = de_ListNotebookMetadataOutput(data, context);
|
|
994
|
-
const response = {
|
|
995
|
-
$metadata: deserializeMetadata(output),
|
|
996
|
-
...contents,
|
|
997
|
-
};
|
|
998
|
-
return response;
|
|
999
|
-
};
|
|
1000
|
-
export const de_ListNotebookSessionsCommand = async (output, context) => {
|
|
1001
|
-
if (output.statusCode >= 300) {
|
|
1002
|
-
return de_CommandError(output, context);
|
|
1003
|
-
}
|
|
1004
|
-
const data = await parseBody(output.body, context);
|
|
1005
|
-
let contents = {};
|
|
1006
|
-
contents = de_ListNotebookSessionsResponse(data, context);
|
|
1007
|
-
const response = {
|
|
1008
|
-
$metadata: deserializeMetadata(output),
|
|
1009
|
-
...contents,
|
|
1010
|
-
};
|
|
1011
|
-
return response;
|
|
1012
|
-
};
|
|
1013
|
-
export const de_ListPreparedStatementsCommand = async (output, context) => {
|
|
1014
|
-
if (output.statusCode >= 300) {
|
|
1015
|
-
return de_CommandError(output, context);
|
|
1016
|
-
}
|
|
1017
|
-
const data = await parseBody(output.body, context);
|
|
1018
|
-
let contents = {};
|
|
1019
|
-
contents = de_ListPreparedStatementsOutput(data, context);
|
|
1020
|
-
const response = {
|
|
1021
|
-
$metadata: deserializeMetadata(output),
|
|
1022
|
-
...contents,
|
|
1023
|
-
};
|
|
1024
|
-
return response;
|
|
1025
|
-
};
|
|
1026
|
-
export const de_ListQueryExecutionsCommand = async (output, context) => {
|
|
1027
|
-
if (output.statusCode >= 300) {
|
|
1028
|
-
return de_CommandError(output, context);
|
|
1029
|
-
}
|
|
1030
|
-
const data = await parseBody(output.body, context);
|
|
1031
|
-
let contents = {};
|
|
1032
|
-
contents = _json(data);
|
|
1033
|
-
const response = {
|
|
1034
|
-
$metadata: deserializeMetadata(output),
|
|
1035
|
-
...contents,
|
|
1036
|
-
};
|
|
1037
|
-
return response;
|
|
1038
|
-
};
|
|
1039
|
-
export const de_ListSessionsCommand = async (output, context) => {
|
|
1040
|
-
if (output.statusCode >= 300) {
|
|
1041
|
-
return de_CommandError(output, context);
|
|
1042
|
-
}
|
|
1043
|
-
const data = await parseBody(output.body, context);
|
|
1044
|
-
let contents = {};
|
|
1045
|
-
contents = de_ListSessionsResponse(data, context);
|
|
1046
|
-
const response = {
|
|
1047
|
-
$metadata: deserializeMetadata(output),
|
|
1048
|
-
...contents,
|
|
1049
|
-
};
|
|
1050
|
-
return response;
|
|
1051
|
-
};
|
|
1052
|
-
export const de_ListTableMetadataCommand = async (output, context) => {
|
|
1053
|
-
if (output.statusCode >= 300) {
|
|
1054
|
-
return de_CommandError(output, context);
|
|
1055
|
-
}
|
|
1056
|
-
const data = await parseBody(output.body, context);
|
|
1057
|
-
let contents = {};
|
|
1058
|
-
contents = de_ListTableMetadataOutput(data, context);
|
|
1059
|
-
const response = {
|
|
1060
|
-
$metadata: deserializeMetadata(output),
|
|
1061
|
-
...contents,
|
|
1062
|
-
};
|
|
1063
|
-
return response;
|
|
1064
|
-
};
|
|
1065
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1066
|
-
if (output.statusCode >= 300) {
|
|
1067
|
-
return de_CommandError(output, context);
|
|
1068
|
-
}
|
|
1069
|
-
const data = await parseBody(output.body, context);
|
|
1070
|
-
let contents = {};
|
|
1071
|
-
contents = _json(data);
|
|
1072
|
-
const response = {
|
|
1073
|
-
$metadata: deserializeMetadata(output),
|
|
1074
|
-
...contents,
|
|
1075
|
-
};
|
|
1076
|
-
return response;
|
|
1077
|
-
};
|
|
1078
|
-
export const de_ListWorkGroupsCommand = async (output, context) => {
|
|
1079
|
-
if (output.statusCode >= 300) {
|
|
1080
|
-
return de_CommandError(output, context);
|
|
1081
|
-
}
|
|
1082
|
-
const data = await parseBody(output.body, context);
|
|
1083
|
-
let contents = {};
|
|
1084
|
-
contents = de_ListWorkGroupsOutput(data, context);
|
|
1085
|
-
const response = {
|
|
1086
|
-
$metadata: deserializeMetadata(output),
|
|
1087
|
-
...contents,
|
|
1088
|
-
};
|
|
1089
|
-
return response;
|
|
1090
|
-
};
|
|
1091
|
-
export const de_PutCapacityAssignmentConfigurationCommand = async (output, context) => {
|
|
1092
|
-
if (output.statusCode >= 300) {
|
|
1093
|
-
return de_CommandError(output, context);
|
|
1094
|
-
}
|
|
1095
|
-
const data = await parseBody(output.body, context);
|
|
1096
|
-
let contents = {};
|
|
1097
|
-
contents = _json(data);
|
|
1098
|
-
const response = {
|
|
1099
|
-
$metadata: deserializeMetadata(output),
|
|
1100
|
-
...contents,
|
|
1101
|
-
};
|
|
1102
|
-
return response;
|
|
1103
|
-
};
|
|
1104
|
-
export const de_StartCalculationExecutionCommand = async (output, context) => {
|
|
1105
|
-
if (output.statusCode >= 300) {
|
|
1106
|
-
return de_CommandError(output, context);
|
|
1107
|
-
}
|
|
1108
|
-
const data = await parseBody(output.body, context);
|
|
1109
|
-
let contents = {};
|
|
1110
|
-
contents = _json(data);
|
|
1111
|
-
const response = {
|
|
1112
|
-
$metadata: deserializeMetadata(output),
|
|
1113
|
-
...contents,
|
|
1114
|
-
};
|
|
1115
|
-
return response;
|
|
1116
|
-
};
|
|
1117
|
-
export const de_StartQueryExecutionCommand = async (output, context) => {
|
|
1118
|
-
if (output.statusCode >= 300) {
|
|
1119
|
-
return de_CommandError(output, context);
|
|
1120
|
-
}
|
|
1121
|
-
const data = await parseBody(output.body, context);
|
|
1122
|
-
let contents = {};
|
|
1123
|
-
contents = _json(data);
|
|
1124
|
-
const response = {
|
|
1125
|
-
$metadata: deserializeMetadata(output),
|
|
1126
|
-
...contents,
|
|
1127
|
-
};
|
|
1128
|
-
return response;
|
|
1129
|
-
};
|
|
1130
|
-
export const de_StartSessionCommand = async (output, context) => {
|
|
1131
|
-
if (output.statusCode >= 300) {
|
|
1132
|
-
return de_CommandError(output, context);
|
|
1133
|
-
}
|
|
1134
|
-
const data = await parseBody(output.body, context);
|
|
1135
|
-
let contents = {};
|
|
1136
|
-
contents = _json(data);
|
|
1137
|
-
const response = {
|
|
1138
|
-
$metadata: deserializeMetadata(output),
|
|
1139
|
-
...contents,
|
|
1140
|
-
};
|
|
1141
|
-
return response;
|
|
1142
|
-
};
|
|
1143
|
-
export const de_StopCalculationExecutionCommand = async (output, context) => {
|
|
1144
|
-
if (output.statusCode >= 300) {
|
|
1145
|
-
return de_CommandError(output, context);
|
|
1146
|
-
}
|
|
1147
|
-
const data = await parseBody(output.body, context);
|
|
1148
|
-
let contents = {};
|
|
1149
|
-
contents = _json(data);
|
|
1150
|
-
const response = {
|
|
1151
|
-
$metadata: deserializeMetadata(output),
|
|
1152
|
-
...contents,
|
|
1153
|
-
};
|
|
1154
|
-
return response;
|
|
1155
|
-
};
|
|
1156
|
-
export const de_StopQueryExecutionCommand = async (output, context) => {
|
|
1157
|
-
if (output.statusCode >= 300) {
|
|
1158
|
-
return de_CommandError(output, context);
|
|
1159
|
-
}
|
|
1160
|
-
const data = await parseBody(output.body, context);
|
|
1161
|
-
let contents = {};
|
|
1162
|
-
contents = _json(data);
|
|
1163
|
-
const response = {
|
|
1164
|
-
$metadata: deserializeMetadata(output),
|
|
1165
|
-
...contents,
|
|
1166
|
-
};
|
|
1167
|
-
return response;
|
|
1168
|
-
};
|
|
1169
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
1170
|
-
if (output.statusCode >= 300) {
|
|
1171
|
-
return de_CommandError(output, context);
|
|
1172
|
-
}
|
|
1173
|
-
const data = await parseBody(output.body, context);
|
|
1174
|
-
let contents = {};
|
|
1175
|
-
contents = _json(data);
|
|
1176
|
-
const response = {
|
|
1177
|
-
$metadata: deserializeMetadata(output),
|
|
1178
|
-
...contents,
|
|
1179
|
-
};
|
|
1180
|
-
return response;
|
|
1181
|
-
};
|
|
1182
|
-
export const de_TerminateSessionCommand = async (output, context) => {
|
|
1183
|
-
if (output.statusCode >= 300) {
|
|
1184
|
-
return de_CommandError(output, context);
|
|
1185
|
-
}
|
|
1186
|
-
const data = await parseBody(output.body, context);
|
|
1187
|
-
let contents = {};
|
|
1188
|
-
contents = _json(data);
|
|
1189
|
-
const response = {
|
|
1190
|
-
$metadata: deserializeMetadata(output),
|
|
1191
|
-
...contents,
|
|
1192
|
-
};
|
|
1193
|
-
return response;
|
|
1194
|
-
};
|
|
1195
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
1196
|
-
if (output.statusCode >= 300) {
|
|
1197
|
-
return de_CommandError(output, context);
|
|
1198
|
-
}
|
|
1199
|
-
const data = await parseBody(output.body, context);
|
|
1200
|
-
let contents = {};
|
|
1201
|
-
contents = _json(data);
|
|
1202
|
-
const response = {
|
|
1203
|
-
$metadata: deserializeMetadata(output),
|
|
1204
|
-
...contents,
|
|
1205
|
-
};
|
|
1206
|
-
return response;
|
|
1207
|
-
};
|
|
1208
|
-
export const de_UpdateCapacityReservationCommand = async (output, context) => {
|
|
1209
|
-
if (output.statusCode >= 300) {
|
|
1210
|
-
return de_CommandError(output, context);
|
|
1211
|
-
}
|
|
1212
|
-
const data = await parseBody(output.body, context);
|
|
1213
|
-
let contents = {};
|
|
1214
|
-
contents = _json(data);
|
|
1215
|
-
const response = {
|
|
1216
|
-
$metadata: deserializeMetadata(output),
|
|
1217
|
-
...contents,
|
|
1218
|
-
};
|
|
1219
|
-
return response;
|
|
1220
|
-
};
|
|
1221
|
-
export const de_UpdateDataCatalogCommand = async (output, context) => {
|
|
1222
|
-
if (output.statusCode >= 300) {
|
|
1223
|
-
return de_CommandError(output, context);
|
|
1224
|
-
}
|
|
1225
|
-
const data = await parseBody(output.body, context);
|
|
1226
|
-
let contents = {};
|
|
1227
|
-
contents = _json(data);
|
|
1228
|
-
const response = {
|
|
1229
|
-
$metadata: deserializeMetadata(output),
|
|
1230
|
-
...contents,
|
|
1231
|
-
};
|
|
1232
|
-
return response;
|
|
1233
|
-
};
|
|
1234
|
-
export const de_UpdateNamedQueryCommand = async (output, context) => {
|
|
1235
|
-
if (output.statusCode >= 300) {
|
|
1236
|
-
return de_CommandError(output, context);
|
|
1237
|
-
}
|
|
1238
|
-
const data = await parseBody(output.body, context);
|
|
1239
|
-
let contents = {};
|
|
1240
|
-
contents = _json(data);
|
|
1241
|
-
const response = {
|
|
1242
|
-
$metadata: deserializeMetadata(output),
|
|
1243
|
-
...contents,
|
|
1244
|
-
};
|
|
1245
|
-
return response;
|
|
1246
|
-
};
|
|
1247
|
-
export const de_UpdateNotebookCommand = async (output, context) => {
|
|
1248
|
-
if (output.statusCode >= 300) {
|
|
1249
|
-
return de_CommandError(output, context);
|
|
1250
|
-
}
|
|
1251
|
-
const data = await parseBody(output.body, context);
|
|
1252
|
-
let contents = {};
|
|
1253
|
-
contents = _json(data);
|
|
1254
|
-
const response = {
|
|
1255
|
-
$metadata: deserializeMetadata(output),
|
|
1256
|
-
...contents,
|
|
1257
|
-
};
|
|
1258
|
-
return response;
|
|
1259
|
-
};
|
|
1260
|
-
export const de_UpdateNotebookMetadataCommand = async (output, context) => {
|
|
1261
|
-
if (output.statusCode >= 300) {
|
|
1262
|
-
return de_CommandError(output, context);
|
|
1263
|
-
}
|
|
1264
|
-
const data = await parseBody(output.body, context);
|
|
1265
|
-
let contents = {};
|
|
1266
|
-
contents = _json(data);
|
|
1267
|
-
const response = {
|
|
1268
|
-
$metadata: deserializeMetadata(output),
|
|
1269
|
-
...contents,
|
|
1270
|
-
};
|
|
1271
|
-
return response;
|
|
1272
|
-
};
|
|
1273
|
-
export const de_UpdatePreparedStatementCommand = async (output, context) => {
|
|
1274
|
-
if (output.statusCode >= 300) {
|
|
1275
|
-
return de_CommandError(output, context);
|
|
1276
|
-
}
|
|
1277
|
-
const data = await parseBody(output.body, context);
|
|
1278
|
-
let contents = {};
|
|
1279
|
-
contents = _json(data);
|
|
1280
|
-
const response = {
|
|
1281
|
-
$metadata: deserializeMetadata(output),
|
|
1282
|
-
...contents,
|
|
1283
|
-
};
|
|
1284
|
-
return response;
|
|
1285
|
-
};
|
|
1286
|
-
export const de_UpdateWorkGroupCommand = async (output, context) => {
|
|
1287
|
-
if (output.statusCode >= 300) {
|
|
1288
|
-
return de_CommandError(output, context);
|
|
1289
|
-
}
|
|
1290
|
-
const data = await parseBody(output.body, context);
|
|
1291
|
-
let contents = {};
|
|
1292
|
-
contents = _json(data);
|
|
1293
|
-
const response = {
|
|
1294
|
-
$metadata: deserializeMetadata(output),
|
|
1295
|
-
...contents,
|
|
1296
|
-
};
|
|
1297
|
-
return response;
|
|
1298
|
-
};
|
|
1299
|
-
const de_CommandError = async (output, context) => {
|
|
1300
|
-
const parsedOutput = {
|
|
1301
|
-
...output,
|
|
1302
|
-
body: await parseErrorBody(output.body, context),
|
|
1303
|
-
};
|
|
1304
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1305
|
-
switch (errorCode) {
|
|
1306
|
-
case "InternalServerException":
|
|
1307
|
-
case "com.amazonaws.athena#InternalServerException":
|
|
1308
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1309
|
-
case "InvalidRequestException":
|
|
1310
|
-
case "com.amazonaws.athena#InvalidRequestException":
|
|
1311
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1312
|
-
case "TooManyRequestsException":
|
|
1313
|
-
case "com.amazonaws.athena#TooManyRequestsException":
|
|
1314
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1315
|
-
case "ResourceNotFoundException":
|
|
1316
|
-
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
1317
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1318
|
-
case "MetadataException":
|
|
1319
|
-
case "com.amazonaws.athena#MetadataException":
|
|
1320
|
-
throw await de_MetadataExceptionRes(parsedOutput, context);
|
|
1321
|
-
case "SessionAlreadyExistsException":
|
|
1322
|
-
case "com.amazonaws.athena#SessionAlreadyExistsException":
|
|
1323
|
-
throw await de_SessionAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1324
|
-
default:
|
|
1325
|
-
const parsedBody = parsedOutput.body;
|
|
1326
|
-
return throwDefaultError({
|
|
1327
|
-
output,
|
|
1328
|
-
parsedBody,
|
|
1329
|
-
errorCode,
|
|
1330
|
-
});
|
|
1331
|
-
}
|
|
1332
|
-
};
|
|
1333
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1334
|
-
const body = parsedOutput.body;
|
|
1335
|
-
const deserialized = _json(body);
|
|
1336
|
-
const exception = new InternalServerException({
|
|
1337
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1338
|
-
...deserialized,
|
|
1339
|
-
});
|
|
1340
|
-
return __decorateServiceException(exception, body);
|
|
1341
|
-
};
|
|
1342
|
-
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
1343
|
-
const body = parsedOutput.body;
|
|
1344
|
-
const deserialized = _json(body);
|
|
1345
|
-
const exception = new InvalidRequestException({
|
|
1346
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1347
|
-
...deserialized,
|
|
1348
|
-
});
|
|
1349
|
-
return __decorateServiceException(exception, body);
|
|
1350
|
-
};
|
|
1351
|
-
const de_MetadataExceptionRes = async (parsedOutput, context) => {
|
|
1352
|
-
const body = parsedOutput.body;
|
|
1353
|
-
const deserialized = _json(body);
|
|
1354
|
-
const exception = new MetadataException({
|
|
1355
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1356
|
-
...deserialized,
|
|
1357
|
-
});
|
|
1358
|
-
return __decorateServiceException(exception, body);
|
|
1359
|
-
};
|
|
1360
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1361
|
-
const body = parsedOutput.body;
|
|
1362
|
-
const deserialized = _json(body);
|
|
1363
|
-
const exception = new ResourceNotFoundException({
|
|
1364
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1365
|
-
...deserialized,
|
|
1366
|
-
});
|
|
1367
|
-
return __decorateServiceException(exception, body);
|
|
1368
|
-
};
|
|
1369
|
-
const de_SessionAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
1370
|
-
const body = parsedOutput.body;
|
|
1371
|
-
const deserialized = _json(body);
|
|
1372
|
-
const exception = new SessionAlreadyExistsException({
|
|
1373
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1374
|
-
...deserialized,
|
|
1375
|
-
});
|
|
1376
|
-
return __decorateServiceException(exception, body);
|
|
1377
|
-
};
|
|
1378
|
-
const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
1379
|
-
const body = parsedOutput.body;
|
|
1380
|
-
const deserialized = _json(body);
|
|
1381
|
-
const exception = new TooManyRequestsException({
|
|
1382
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1383
|
-
...deserialized,
|
|
1384
|
-
});
|
|
1385
|
-
return __decorateServiceException(exception, body);
|
|
1386
|
-
};
|
|
1387
|
-
const se_CreateNamedQueryInput = (input, context) => {
|
|
1388
|
-
return take(input, {
|
|
1389
|
-
ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
1390
|
-
Database: [],
|
|
1391
|
-
Description: [],
|
|
1392
|
-
Name: [],
|
|
1393
|
-
QueryString: [],
|
|
1394
|
-
WorkGroup: [],
|
|
1395
|
-
});
|
|
1396
|
-
};
|
|
1397
|
-
const se_DeleteNamedQueryInput = (input, context) => {
|
|
1398
|
-
return take(input, {
|
|
1399
|
-
NamedQueryId: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
1400
|
-
});
|
|
1401
|
-
};
|
|
1402
|
-
const se_StartQueryExecutionInput = (input, context) => {
|
|
1403
|
-
return take(input, {
|
|
1404
|
-
ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
1405
|
-
ExecutionParameters: _json,
|
|
1406
|
-
QueryExecutionContext: _json,
|
|
1407
|
-
QueryString: [],
|
|
1408
|
-
ResultConfiguration: _json,
|
|
1409
|
-
ResultReuseConfiguration: _json,
|
|
1410
|
-
WorkGroup: [],
|
|
1411
|
-
});
|
|
1412
|
-
};
|
|
1413
|
-
const se_StopQueryExecutionInput = (input, context) => {
|
|
1414
|
-
return take(input, {
|
|
1415
|
-
QueryExecutionId: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
1416
|
-
});
|
|
1417
|
-
};
|
|
1418
|
-
const de_BatchGetPreparedStatementOutput = (output, context) => {
|
|
1419
|
-
return take(output, {
|
|
1420
|
-
PreparedStatements: (_) => de_PreparedStatementDetailsList(_, context),
|
|
1421
|
-
UnprocessedPreparedStatementNames: _json,
|
|
1422
|
-
});
|
|
1423
|
-
};
|
|
1424
|
-
const de_BatchGetQueryExecutionOutput = (output, context) => {
|
|
1425
|
-
return take(output, {
|
|
1426
|
-
QueryExecutions: (_) => de_QueryExecutionList(_, context),
|
|
1427
|
-
UnprocessedQueryExecutionIds: _json,
|
|
1428
|
-
});
|
|
1429
|
-
};
|
|
1430
|
-
const de_CalculationsList = (output, context) => {
|
|
1431
|
-
const retVal = (output || [])
|
|
1432
|
-
.filter((e) => e != null)
|
|
1433
|
-
.map((entry) => {
|
|
1434
|
-
return de_CalculationSummary(entry, context);
|
|
1435
|
-
});
|
|
1436
|
-
return retVal;
|
|
1437
|
-
};
|
|
1438
|
-
const de_CalculationStatus = (output, context) => {
|
|
1439
|
-
return take(output, {
|
|
1440
|
-
CompletionDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1441
|
-
State: __expectString,
|
|
1442
|
-
StateChangeReason: __expectString,
|
|
1443
|
-
SubmissionDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1444
|
-
});
|
|
1445
|
-
};
|
|
1446
|
-
const de_CalculationSummary = (output, context) => {
|
|
1447
|
-
return take(output, {
|
|
1448
|
-
CalculationExecutionId: __expectString,
|
|
1449
|
-
Description: __expectString,
|
|
1450
|
-
Status: (_) => de_CalculationStatus(_, context),
|
|
1451
|
-
});
|
|
1452
|
-
};
|
|
1453
|
-
const de_CapacityAllocation = (output, context) => {
|
|
1454
|
-
return take(output, {
|
|
1455
|
-
RequestCompletionTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1456
|
-
RequestTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1457
|
-
Status: __expectString,
|
|
1458
|
-
StatusMessage: __expectString,
|
|
1459
|
-
});
|
|
1460
|
-
};
|
|
1461
|
-
const de_CapacityReservation = (output, context) => {
|
|
1462
|
-
return take(output, {
|
|
1463
|
-
AllocatedDpus: __expectInt32,
|
|
1464
|
-
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1465
|
-
LastAllocation: (_) => de_CapacityAllocation(_, context),
|
|
1466
|
-
LastSuccessfulAllocationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1467
|
-
Name: __expectString,
|
|
1468
|
-
Status: __expectString,
|
|
1469
|
-
TargetDpus: __expectInt32,
|
|
1470
|
-
});
|
|
1471
|
-
};
|
|
1472
|
-
const de_CapacityReservationsList = (output, context) => {
|
|
1473
|
-
const retVal = (output || [])
|
|
1474
|
-
.filter((e) => e != null)
|
|
1475
|
-
.map((entry) => {
|
|
1476
|
-
return de_CapacityReservation(entry, context);
|
|
1477
|
-
});
|
|
1478
|
-
return retVal;
|
|
1479
|
-
};
|
|
1480
|
-
const de_ExportNotebookOutput = (output, context) => {
|
|
1481
|
-
return take(output, {
|
|
1482
|
-
NotebookMetadata: (_) => de_NotebookMetadata(_, context),
|
|
1483
|
-
Payload: __expectString,
|
|
1484
|
-
});
|
|
1485
|
-
};
|
|
1486
|
-
const de_GetCalculationExecutionResponse = (output, context) => {
|
|
1487
|
-
return take(output, {
|
|
1488
|
-
CalculationExecutionId: __expectString,
|
|
1489
|
-
Description: __expectString,
|
|
1490
|
-
Result: _json,
|
|
1491
|
-
SessionId: __expectString,
|
|
1492
|
-
Statistics: _json,
|
|
1493
|
-
Status: (_) => de_CalculationStatus(_, context),
|
|
1494
|
-
WorkingDirectory: __expectString,
|
|
1495
|
-
});
|
|
1496
|
-
};
|
|
1497
|
-
const de_GetCalculationExecutionStatusResponse = (output, context) => {
|
|
1498
|
-
return take(output, {
|
|
1499
|
-
Statistics: _json,
|
|
1500
|
-
Status: (_) => de_CalculationStatus(_, context),
|
|
1501
|
-
});
|
|
1502
|
-
};
|
|
1503
|
-
const de_GetCapacityReservationOutput = (output, context) => {
|
|
1504
|
-
return take(output, {
|
|
1505
|
-
CapacityReservation: (_) => de_CapacityReservation(_, context),
|
|
1506
|
-
});
|
|
1507
|
-
};
|
|
1508
|
-
const de_GetNotebookMetadataOutput = (output, context) => {
|
|
1509
|
-
return take(output, {
|
|
1510
|
-
NotebookMetadata: (_) => de_NotebookMetadata(_, context),
|
|
1511
|
-
});
|
|
1512
|
-
};
|
|
1513
|
-
const de_GetPreparedStatementOutput = (output, context) => {
|
|
1514
|
-
return take(output, {
|
|
1515
|
-
PreparedStatement: (_) => de_PreparedStatement(_, context),
|
|
1516
|
-
});
|
|
1517
|
-
};
|
|
1518
|
-
const de_GetQueryExecutionOutput = (output, context) => {
|
|
1519
|
-
return take(output, {
|
|
1520
|
-
QueryExecution: (_) => de_QueryExecution(_, context),
|
|
1521
|
-
});
|
|
1522
|
-
};
|
|
1523
|
-
const de_GetQueryRuntimeStatisticsOutput = (output, context) => {
|
|
1524
|
-
return take(output, {
|
|
1525
|
-
QueryRuntimeStatistics: (_) => de_QueryRuntimeStatistics(_, context),
|
|
1526
|
-
});
|
|
1527
|
-
};
|
|
1528
|
-
const de_GetSessionResponse = (output, context) => {
|
|
1529
|
-
return take(output, {
|
|
1530
|
-
Description: __expectString,
|
|
1531
|
-
EngineConfiguration: _json,
|
|
1532
|
-
EngineVersion: __expectString,
|
|
1533
|
-
NotebookVersion: __expectString,
|
|
1534
|
-
SessionConfiguration: _json,
|
|
1535
|
-
SessionId: __expectString,
|
|
1536
|
-
Statistics: _json,
|
|
1537
|
-
Status: (_) => de_SessionStatus(_, context),
|
|
1538
|
-
WorkGroup: __expectString,
|
|
1539
|
-
});
|
|
1540
|
-
};
|
|
1541
|
-
const de_GetSessionStatusResponse = (output, context) => {
|
|
1542
|
-
return take(output, {
|
|
1543
|
-
SessionId: __expectString,
|
|
1544
|
-
Status: (_) => de_SessionStatus(_, context),
|
|
1545
|
-
});
|
|
1546
|
-
};
|
|
1547
|
-
const de_GetTableMetadataOutput = (output, context) => {
|
|
1548
|
-
return take(output, {
|
|
1549
|
-
TableMetadata: (_) => de_TableMetadata(_, context),
|
|
1550
|
-
});
|
|
1551
|
-
};
|
|
1552
|
-
const de_GetWorkGroupOutput = (output, context) => {
|
|
1553
|
-
return take(output, {
|
|
1554
|
-
WorkGroup: (_) => de_WorkGroup(_, context),
|
|
1555
|
-
});
|
|
1556
|
-
};
|
|
1557
|
-
const de_ListCalculationExecutionsResponse = (output, context) => {
|
|
1558
|
-
return take(output, {
|
|
1559
|
-
Calculations: (_) => de_CalculationsList(_, context),
|
|
1560
|
-
NextToken: __expectString,
|
|
1561
|
-
});
|
|
1562
|
-
};
|
|
1563
|
-
const de_ListCapacityReservationsOutput = (output, context) => {
|
|
1564
|
-
return take(output, {
|
|
1565
|
-
CapacityReservations: (_) => de_CapacityReservationsList(_, context),
|
|
1566
|
-
NextToken: __expectString,
|
|
1567
|
-
});
|
|
1568
|
-
};
|
|
1569
|
-
const de_ListNotebookMetadataOutput = (output, context) => {
|
|
1570
|
-
return take(output, {
|
|
1571
|
-
NextToken: __expectString,
|
|
1572
|
-
NotebookMetadataList: (_) => de_NotebookMetadataArray(_, context),
|
|
1573
|
-
});
|
|
1574
|
-
};
|
|
1575
|
-
const de_ListNotebookSessionsResponse = (output, context) => {
|
|
1576
|
-
return take(output, {
|
|
1577
|
-
NextToken: __expectString,
|
|
1578
|
-
NotebookSessionsList: (_) => de_NotebookSessionsList(_, context),
|
|
1579
|
-
});
|
|
1580
|
-
};
|
|
1581
|
-
const de_ListPreparedStatementsOutput = (output, context) => {
|
|
1582
|
-
return take(output, {
|
|
1583
|
-
NextToken: __expectString,
|
|
1584
|
-
PreparedStatements: (_) => de_PreparedStatementsList(_, context),
|
|
1585
|
-
});
|
|
1586
|
-
};
|
|
1587
|
-
const de_ListSessionsResponse = (output, context) => {
|
|
1588
|
-
return take(output, {
|
|
1589
|
-
NextToken: __expectString,
|
|
1590
|
-
Sessions: (_) => de_SessionsList(_, context),
|
|
1591
|
-
});
|
|
1592
|
-
};
|
|
1593
|
-
const de_ListTableMetadataOutput = (output, context) => {
|
|
1594
|
-
return take(output, {
|
|
1595
|
-
NextToken: __expectString,
|
|
1596
|
-
TableMetadataList: (_) => de_TableMetadataList(_, context),
|
|
1597
|
-
});
|
|
1598
|
-
};
|
|
1599
|
-
const de_ListWorkGroupsOutput = (output, context) => {
|
|
1600
|
-
return take(output, {
|
|
1601
|
-
NextToken: __expectString,
|
|
1602
|
-
WorkGroups: (_) => de_WorkGroupsList(_, context),
|
|
1603
|
-
});
|
|
1604
|
-
};
|
|
1605
|
-
const de_NotebookMetadata = (output, context) => {
|
|
1606
|
-
return take(output, {
|
|
1607
|
-
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1608
|
-
LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1609
|
-
Name: __expectString,
|
|
1610
|
-
NotebookId: __expectString,
|
|
1611
|
-
Type: __expectString,
|
|
1612
|
-
WorkGroup: __expectString,
|
|
1613
|
-
});
|
|
1614
|
-
};
|
|
1615
|
-
const de_NotebookMetadataArray = (output, context) => {
|
|
1616
|
-
const retVal = (output || [])
|
|
1617
|
-
.filter((e) => e != null)
|
|
1618
|
-
.map((entry) => {
|
|
1619
|
-
return de_NotebookMetadata(entry, context);
|
|
1620
|
-
});
|
|
1621
|
-
return retVal;
|
|
1622
|
-
};
|
|
1623
|
-
const de_NotebookSessionsList = (output, context) => {
|
|
1624
|
-
const retVal = (output || [])
|
|
1625
|
-
.filter((e) => e != null)
|
|
1626
|
-
.map((entry) => {
|
|
1627
|
-
return de_NotebookSessionSummary(entry, context);
|
|
1628
|
-
});
|
|
1629
|
-
return retVal;
|
|
1630
|
-
};
|
|
1631
|
-
const de_NotebookSessionSummary = (output, context) => {
|
|
1632
|
-
return take(output, {
|
|
1633
|
-
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1634
|
-
SessionId: __expectString,
|
|
1635
|
-
});
|
|
1636
|
-
};
|
|
1637
|
-
const de_PreparedStatement = (output, context) => {
|
|
1638
|
-
return take(output, {
|
|
1639
|
-
Description: __expectString,
|
|
1640
|
-
LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1641
|
-
QueryStatement: __expectString,
|
|
1642
|
-
StatementName: __expectString,
|
|
1643
|
-
WorkGroupName: __expectString,
|
|
1644
|
-
});
|
|
1645
|
-
};
|
|
1646
|
-
const de_PreparedStatementDetailsList = (output, context) => {
|
|
1647
|
-
const retVal = (output || [])
|
|
1648
|
-
.filter((e) => e != null)
|
|
1649
|
-
.map((entry) => {
|
|
1650
|
-
return de_PreparedStatement(entry, context);
|
|
1651
|
-
});
|
|
1652
|
-
return retVal;
|
|
1653
|
-
};
|
|
1654
|
-
const de_PreparedStatementsList = (output, context) => {
|
|
1655
|
-
const retVal = (output || [])
|
|
1656
|
-
.filter((e) => e != null)
|
|
1657
|
-
.map((entry) => {
|
|
1658
|
-
return de_PreparedStatementSummary(entry, context);
|
|
1659
|
-
});
|
|
1660
|
-
return retVal;
|
|
1661
|
-
};
|
|
1662
|
-
const de_PreparedStatementSummary = (output, context) => {
|
|
1663
|
-
return take(output, {
|
|
1664
|
-
LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1665
|
-
StatementName: __expectString,
|
|
1666
|
-
});
|
|
1667
|
-
};
|
|
1668
|
-
const de_QueryExecution = (output, context) => {
|
|
1669
|
-
return take(output, {
|
|
1670
|
-
EngineVersion: _json,
|
|
1671
|
-
ExecutionParameters: _json,
|
|
1672
|
-
ManagedQueryResultsConfiguration: _json,
|
|
1673
|
-
Query: __expectString,
|
|
1674
|
-
QueryExecutionContext: _json,
|
|
1675
|
-
QueryExecutionId: __expectString,
|
|
1676
|
-
QueryResultsS3AccessGrantsConfiguration: _json,
|
|
1677
|
-
ResultConfiguration: _json,
|
|
1678
|
-
ResultReuseConfiguration: _json,
|
|
1679
|
-
StatementType: __expectString,
|
|
1680
|
-
Statistics: _json,
|
|
1681
|
-
Status: (_) => de_QueryExecutionStatus(_, context),
|
|
1682
|
-
SubstatementType: __expectString,
|
|
1683
|
-
WorkGroup: __expectString,
|
|
1684
|
-
});
|
|
1685
|
-
};
|
|
1686
|
-
const de_QueryExecutionList = (output, context) => {
|
|
1687
|
-
const retVal = (output || [])
|
|
1688
|
-
.filter((e) => e != null)
|
|
1689
|
-
.map((entry) => {
|
|
1690
|
-
return de_QueryExecution(entry, context);
|
|
1691
|
-
});
|
|
1692
|
-
return retVal;
|
|
1693
|
-
};
|
|
1694
|
-
const de_QueryExecutionStatus = (output, context) => {
|
|
1695
|
-
return take(output, {
|
|
1696
|
-
AthenaError: _json,
|
|
1697
|
-
CompletionDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1698
|
-
State: __expectString,
|
|
1699
|
-
StateChangeReason: __expectString,
|
|
1700
|
-
SubmissionDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1701
|
-
});
|
|
1702
|
-
};
|
|
1703
|
-
const de_QueryRuntimeStatistics = (output, context) => {
|
|
1704
|
-
return take(output, {
|
|
1705
|
-
OutputStage: (_) => de_QueryStage(_, context),
|
|
1706
|
-
Rows: _json,
|
|
1707
|
-
Timeline: _json,
|
|
1708
|
-
});
|
|
1709
|
-
};
|
|
1710
|
-
const de_QueryStage = (output, context) => {
|
|
1711
|
-
return take(output, {
|
|
1712
|
-
ExecutionTime: __expectLong,
|
|
1713
|
-
InputBytes: __expectLong,
|
|
1714
|
-
InputRows: __expectLong,
|
|
1715
|
-
OutputBytes: __expectLong,
|
|
1716
|
-
OutputRows: __expectLong,
|
|
1717
|
-
QueryStagePlan: (_) => de_QueryStagePlanNode(_, context),
|
|
1718
|
-
StageId: __expectLong,
|
|
1719
|
-
State: __expectString,
|
|
1720
|
-
SubStages: (_) => de_QueryStages(_, context),
|
|
1721
|
-
});
|
|
1722
|
-
};
|
|
1723
|
-
const de_QueryStagePlanNode = (output, context) => {
|
|
1724
|
-
return take(output, {
|
|
1725
|
-
Children: (_) => de_QueryStagePlanNodes(_, context),
|
|
1726
|
-
Identifier: __expectString,
|
|
1727
|
-
Name: __expectString,
|
|
1728
|
-
RemoteSources: _json,
|
|
1729
|
-
});
|
|
1730
|
-
};
|
|
1731
|
-
const de_QueryStagePlanNodes = (output, context) => {
|
|
1732
|
-
const retVal = (output || [])
|
|
1733
|
-
.filter((e) => e != null)
|
|
1734
|
-
.map((entry) => {
|
|
1735
|
-
return de_QueryStagePlanNode(entry, context);
|
|
1736
|
-
});
|
|
1737
|
-
return retVal;
|
|
1738
|
-
};
|
|
1739
|
-
const de_QueryStages = (output, context) => {
|
|
1740
|
-
const retVal = (output || [])
|
|
1741
|
-
.filter((e) => e != null)
|
|
1742
|
-
.map((entry) => {
|
|
1743
|
-
return de_QueryStage(entry, context);
|
|
1744
|
-
});
|
|
1745
|
-
return retVal;
|
|
1746
|
-
};
|
|
1747
|
-
const de_SessionsList = (output, context) => {
|
|
1748
|
-
const retVal = (output || [])
|
|
1749
|
-
.filter((e) => e != null)
|
|
1750
|
-
.map((entry) => {
|
|
1751
|
-
return de_SessionSummary(entry, context);
|
|
1752
|
-
});
|
|
1753
|
-
return retVal;
|
|
1754
|
-
};
|
|
1755
|
-
const de_SessionStatus = (output, context) => {
|
|
1756
|
-
return take(output, {
|
|
1757
|
-
EndDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1758
|
-
IdleSinceDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1759
|
-
LastModifiedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1760
|
-
StartDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1761
|
-
State: __expectString,
|
|
1762
|
-
StateChangeReason: __expectString,
|
|
1763
|
-
});
|
|
1764
|
-
};
|
|
1765
|
-
const de_SessionSummary = (output, context) => {
|
|
1766
|
-
return take(output, {
|
|
1767
|
-
Description: __expectString,
|
|
1768
|
-
EngineVersion: _json,
|
|
1769
|
-
NotebookVersion: __expectString,
|
|
1770
|
-
SessionId: __expectString,
|
|
1771
|
-
Status: (_) => de_SessionStatus(_, context),
|
|
1772
|
-
});
|
|
1773
|
-
};
|
|
1774
|
-
const de_TableMetadata = (output, context) => {
|
|
1775
|
-
return take(output, {
|
|
1776
|
-
Columns: _json,
|
|
1777
|
-
CreateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1778
|
-
LastAccessTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1779
|
-
Name: __expectString,
|
|
1780
|
-
Parameters: _json,
|
|
1781
|
-
PartitionKeys: _json,
|
|
1782
|
-
TableType: __expectString,
|
|
1783
|
-
});
|
|
1784
|
-
};
|
|
1785
|
-
const de_TableMetadataList = (output, context) => {
|
|
1786
|
-
const retVal = (output || [])
|
|
1787
|
-
.filter((e) => e != null)
|
|
1788
|
-
.map((entry) => {
|
|
1789
|
-
return de_TableMetadata(entry, context);
|
|
1790
|
-
});
|
|
1791
|
-
return retVal;
|
|
1792
|
-
};
|
|
1793
|
-
const de_WorkGroup = (output, context) => {
|
|
1794
|
-
return take(output, {
|
|
1795
|
-
Configuration: _json,
|
|
1796
|
-
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1797
|
-
Description: __expectString,
|
|
1798
|
-
IdentityCenterApplicationArn: __expectString,
|
|
1799
|
-
Name: __expectString,
|
|
1800
|
-
State: __expectString,
|
|
1801
|
-
});
|
|
1802
|
-
};
|
|
1803
|
-
const de_WorkGroupsList = (output, context) => {
|
|
1804
|
-
const retVal = (output || [])
|
|
1805
|
-
.filter((e) => e != null)
|
|
1806
|
-
.map((entry) => {
|
|
1807
|
-
return de_WorkGroupSummary(entry, context);
|
|
1808
|
-
});
|
|
1809
|
-
return retVal;
|
|
1810
|
-
};
|
|
1811
|
-
const de_WorkGroupSummary = (output, context) => {
|
|
1812
|
-
return take(output, {
|
|
1813
|
-
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1814
|
-
Description: __expectString,
|
|
1815
|
-
EngineVersion: _json,
|
|
1816
|
-
IdentityCenterApplicationArn: __expectString,
|
|
1817
|
-
Name: __expectString,
|
|
1818
|
-
State: __expectString,
|
|
1819
|
-
});
|
|
1820
|
-
};
|
|
1821
|
-
const deserializeMetadata = (output) => ({
|
|
1822
|
-
httpStatusCode: output.statusCode,
|
|
1823
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1824
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1825
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
1826
|
-
});
|
|
1827
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1828
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
1829
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
1830
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1831
|
-
const contents = {
|
|
1832
|
-
protocol,
|
|
1833
|
-
hostname,
|
|
1834
|
-
port,
|
|
1835
|
-
method: "POST",
|
|
1836
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
1837
|
-
headers,
|
|
1838
|
-
};
|
|
1839
|
-
if (resolvedHostname !== undefined) {
|
|
1840
|
-
contents.hostname = resolvedHostname;
|
|
1841
|
-
}
|
|
1842
|
-
if (body !== undefined) {
|
|
1843
|
-
contents.body = body;
|
|
1844
|
-
}
|
|
1845
|
-
return new __HttpRequest(contents);
|
|
1846
|
-
};
|
|
1847
|
-
function sharedHeaders(operation) {
|
|
1848
|
-
return {
|
|
1849
|
-
"content-type": "application/x-amz-json-1.1",
|
|
1850
|
-
"x-amz-target": `AmazonAthena.${operation}`,
|
|
1851
|
-
};
|
|
1852
|
-
}
|