@aws-sdk/client-athena 3.489.0 → 3.495.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 +1 -147
- package/dist-cjs/AthenaClient.js +1 -43
- package/dist-cjs/commands/BatchGetNamedQueryCommand.js +1 -28
- package/dist-cjs/commands/BatchGetPreparedStatementCommand.js +1 -28
- package/dist-cjs/commands/BatchGetQueryExecutionCommand.js +1 -28
- package/dist-cjs/commands/CancelCapacityReservationCommand.js +1 -28
- package/dist-cjs/commands/CreateCapacityReservationCommand.js +1 -28
- package/dist-cjs/commands/CreateDataCatalogCommand.js +1 -28
- package/dist-cjs/commands/CreateNamedQueryCommand.js +1 -28
- package/dist-cjs/commands/CreateNotebookCommand.js +1 -28
- package/dist-cjs/commands/CreatePreparedStatementCommand.js +1 -28
- package/dist-cjs/commands/CreatePresignedNotebookUrlCommand.js +1 -28
- package/dist-cjs/commands/CreateWorkGroupCommand.js +1 -28
- package/dist-cjs/commands/DeleteCapacityReservationCommand.js +1 -28
- package/dist-cjs/commands/DeleteDataCatalogCommand.js +1 -28
- package/dist-cjs/commands/DeleteNamedQueryCommand.js +1 -28
- package/dist-cjs/commands/DeleteNotebookCommand.js +1 -28
- package/dist-cjs/commands/DeletePreparedStatementCommand.js +1 -28
- package/dist-cjs/commands/DeleteWorkGroupCommand.js +1 -28
- package/dist-cjs/commands/ExportNotebookCommand.js +1 -28
- package/dist-cjs/commands/GetCalculationExecutionCodeCommand.js +1 -28
- package/dist-cjs/commands/GetCalculationExecutionCommand.js +1 -28
- package/dist-cjs/commands/GetCalculationExecutionStatusCommand.js +1 -28
- package/dist-cjs/commands/GetCapacityAssignmentConfigurationCommand.js +1 -28
- package/dist-cjs/commands/GetCapacityReservationCommand.js +1 -28
- package/dist-cjs/commands/GetDataCatalogCommand.js +1 -28
- package/dist-cjs/commands/GetDatabaseCommand.js +1 -28
- package/dist-cjs/commands/GetNamedQueryCommand.js +1 -28
- package/dist-cjs/commands/GetNotebookMetadataCommand.js +1 -28
- package/dist-cjs/commands/GetPreparedStatementCommand.js +1 -28
- package/dist-cjs/commands/GetQueryExecutionCommand.js +1 -28
- package/dist-cjs/commands/GetQueryResultsCommand.js +1 -28
- package/dist-cjs/commands/GetQueryRuntimeStatisticsCommand.js +1 -28
- package/dist-cjs/commands/GetSessionCommand.js +1 -28
- package/dist-cjs/commands/GetSessionStatusCommand.js +1 -28
- package/dist-cjs/commands/GetTableMetadataCommand.js +1 -28
- package/dist-cjs/commands/GetWorkGroupCommand.js +1 -28
- package/dist-cjs/commands/ImportNotebookCommand.js +1 -28
- package/dist-cjs/commands/ListApplicationDPUSizesCommand.js +1 -28
- package/dist-cjs/commands/ListCalculationExecutionsCommand.js +1 -28
- package/dist-cjs/commands/ListCapacityReservationsCommand.js +1 -28
- package/dist-cjs/commands/ListDataCatalogsCommand.js +1 -28
- package/dist-cjs/commands/ListDatabasesCommand.js +1 -28
- package/dist-cjs/commands/ListEngineVersionsCommand.js +1 -28
- package/dist-cjs/commands/ListExecutorsCommand.js +1 -28
- package/dist-cjs/commands/ListNamedQueriesCommand.js +1 -28
- package/dist-cjs/commands/ListNotebookMetadataCommand.js +1 -28
- package/dist-cjs/commands/ListNotebookSessionsCommand.js +1 -28
- package/dist-cjs/commands/ListPreparedStatementsCommand.js +1 -28
- package/dist-cjs/commands/ListQueryExecutionsCommand.js +1 -28
- package/dist-cjs/commands/ListSessionsCommand.js +1 -28
- package/dist-cjs/commands/ListTableMetadataCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/ListWorkGroupsCommand.js +1 -28
- package/dist-cjs/commands/PutCapacityAssignmentConfigurationCommand.js +1 -28
- package/dist-cjs/commands/StartCalculationExecutionCommand.js +1 -28
- package/dist-cjs/commands/StartQueryExecutionCommand.js +1 -28
- package/dist-cjs/commands/StartSessionCommand.js +1 -28
- package/dist-cjs/commands/StopCalculationExecutionCommand.js +1 -28
- package/dist-cjs/commands/StopQueryExecutionCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/TerminateSessionCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateCapacityReservationCommand.js +1 -28
- package/dist-cjs/commands/UpdateDataCatalogCommand.js +1 -28
- package/dist-cjs/commands/UpdateNamedQueryCommand.js +1 -28
- package/dist-cjs/commands/UpdateNotebookCommand.js +1 -28
- package/dist-cjs/commands/UpdateNotebookMetadataCommand.js +1 -28
- package/dist-cjs/commands/UpdatePreparedStatementCommand.js +1 -28
- package/dist-cjs/commands/UpdateWorkGroupCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -71
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +5289 -11
- package/dist-cjs/models/AthenaServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -180
- package/dist-cjs/pagination/GetQueryResultsPaginator.js +1 -7
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListApplicationDPUSizesPaginator.js +1 -7
- package/dist-cjs/pagination/ListCalculationExecutionsPaginator.js +1 -7
- package/dist-cjs/pagination/ListCapacityReservationsPaginator.js +1 -7
- package/dist-cjs/pagination/ListDataCatalogsPaginator.js +1 -7
- package/dist-cjs/pagination/ListDatabasesPaginator.js +1 -7
- package/dist-cjs/pagination/ListEngineVersionsPaginator.js +1 -7
- package/dist-cjs/pagination/ListExecutorsPaginator.js +1 -7
- package/dist-cjs/pagination/ListNamedQueriesPaginator.js +1 -7
- package/dist-cjs/pagination/ListPreparedStatementsPaginator.js +1 -7
- package/dist-cjs/pagination/ListQueryExecutionsPaginator.js +1 -7
- package/dist-cjs/pagination/ListSessionsPaginator.js +1 -7
- package/dist-cjs/pagination/ListTableMetadataPaginator.js +1 -7
- package/dist-cjs/pagination/ListTagsForResourcePaginator.js +1 -7
- package/dist-cjs/pagination/ListWorkGroupsPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -19
- package/dist-cjs/protocols/Aws_json1_1.js +1 -3604
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
|
@@ -1,3604 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.se_ListTableMetadataCommand = exports.se_ListSessionsCommand = exports.se_ListQueryExecutionsCommand = exports.se_ListPreparedStatementsCommand = exports.se_ListNotebookSessionsCommand = exports.se_ListNotebookMetadataCommand = exports.se_ListNamedQueriesCommand = exports.se_ListExecutorsCommand = exports.se_ListEngineVersionsCommand = exports.se_ListDataCatalogsCommand = exports.se_ListDatabasesCommand = exports.se_ListCapacityReservationsCommand = exports.se_ListCalculationExecutionsCommand = exports.se_ListApplicationDPUSizesCommand = exports.se_ImportNotebookCommand = exports.se_GetWorkGroupCommand = exports.se_GetTableMetadataCommand = exports.se_GetSessionStatusCommand = exports.se_GetSessionCommand = exports.se_GetQueryRuntimeStatisticsCommand = exports.se_GetQueryResultsCommand = exports.se_GetQueryExecutionCommand = exports.se_GetPreparedStatementCommand = exports.se_GetNotebookMetadataCommand = exports.se_GetNamedQueryCommand = exports.se_GetDataCatalogCommand = exports.se_GetDatabaseCommand = exports.se_GetCapacityReservationCommand = exports.se_GetCapacityAssignmentConfigurationCommand = exports.se_GetCalculationExecutionStatusCommand = exports.se_GetCalculationExecutionCodeCommand = exports.se_GetCalculationExecutionCommand = exports.se_ExportNotebookCommand = exports.se_DeleteWorkGroupCommand = exports.se_DeletePreparedStatementCommand = exports.se_DeleteNotebookCommand = exports.se_DeleteNamedQueryCommand = exports.se_DeleteDataCatalogCommand = exports.se_DeleteCapacityReservationCommand = exports.se_CreateWorkGroupCommand = exports.se_CreatePresignedNotebookUrlCommand = exports.se_CreatePreparedStatementCommand = exports.se_CreateNotebookCommand = exports.se_CreateNamedQueryCommand = exports.se_CreateDataCatalogCommand = exports.se_CreateCapacityReservationCommand = exports.se_CancelCapacityReservationCommand = exports.se_BatchGetQueryExecutionCommand = exports.se_BatchGetPreparedStatementCommand = exports.se_BatchGetNamedQueryCommand = void 0;
|
|
4
|
-
exports.de_GetSessionCommand = exports.de_GetQueryRuntimeStatisticsCommand = exports.de_GetQueryResultsCommand = exports.de_GetQueryExecutionCommand = exports.de_GetPreparedStatementCommand = exports.de_GetNotebookMetadataCommand = exports.de_GetNamedQueryCommand = exports.de_GetDataCatalogCommand = exports.de_GetDatabaseCommand = exports.de_GetCapacityReservationCommand = exports.de_GetCapacityAssignmentConfigurationCommand = exports.de_GetCalculationExecutionStatusCommand = exports.de_GetCalculationExecutionCodeCommand = exports.de_GetCalculationExecutionCommand = exports.de_ExportNotebookCommand = exports.de_DeleteWorkGroupCommand = exports.de_DeletePreparedStatementCommand = exports.de_DeleteNotebookCommand = exports.de_DeleteNamedQueryCommand = exports.de_DeleteDataCatalogCommand = exports.de_DeleteCapacityReservationCommand = exports.de_CreateWorkGroupCommand = exports.de_CreatePresignedNotebookUrlCommand = exports.de_CreatePreparedStatementCommand = exports.de_CreateNotebookCommand = exports.de_CreateNamedQueryCommand = exports.de_CreateDataCatalogCommand = exports.de_CreateCapacityReservationCommand = exports.de_CancelCapacityReservationCommand = exports.de_BatchGetQueryExecutionCommand = exports.de_BatchGetPreparedStatementCommand = exports.de_BatchGetNamedQueryCommand = exports.se_UpdateWorkGroupCommand = exports.se_UpdatePreparedStatementCommand = exports.se_UpdateNotebookMetadataCommand = exports.se_UpdateNotebookCommand = exports.se_UpdateNamedQueryCommand = exports.se_UpdateDataCatalogCommand = exports.se_UpdateCapacityReservationCommand = exports.se_UntagResourceCommand = exports.se_TerminateSessionCommand = exports.se_TagResourceCommand = exports.se_StopQueryExecutionCommand = exports.se_StopCalculationExecutionCommand = exports.se_StartSessionCommand = exports.se_StartQueryExecutionCommand = exports.se_StartCalculationExecutionCommand = exports.se_PutCapacityAssignmentConfigurationCommand = exports.se_ListWorkGroupsCommand = exports.se_ListTagsForResourceCommand = void 0;
|
|
5
|
-
exports.de_UpdateWorkGroupCommand = exports.de_UpdatePreparedStatementCommand = exports.de_UpdateNotebookMetadataCommand = exports.de_UpdateNotebookCommand = exports.de_UpdateNamedQueryCommand = exports.de_UpdateDataCatalogCommand = exports.de_UpdateCapacityReservationCommand = exports.de_UntagResourceCommand = exports.de_TerminateSessionCommand = exports.de_TagResourceCommand = exports.de_StopQueryExecutionCommand = exports.de_StopCalculationExecutionCommand = exports.de_StartSessionCommand = exports.de_StartQueryExecutionCommand = exports.de_StartCalculationExecutionCommand = exports.de_PutCapacityAssignmentConfigurationCommand = exports.de_ListWorkGroupsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListTableMetadataCommand = exports.de_ListSessionsCommand = exports.de_ListQueryExecutionsCommand = exports.de_ListPreparedStatementsCommand = exports.de_ListNotebookSessionsCommand = exports.de_ListNotebookMetadataCommand = exports.de_ListNamedQueriesCommand = exports.de_ListExecutorsCommand = exports.de_ListEngineVersionsCommand = exports.de_ListDataCatalogsCommand = exports.de_ListDatabasesCommand = exports.de_ListCapacityReservationsCommand = exports.de_ListCalculationExecutionsCommand = exports.de_ListApplicationDPUSizesCommand = exports.de_ImportNotebookCommand = exports.de_GetWorkGroupCommand = exports.de_GetTableMetadataCommand = exports.de_GetSessionStatusCommand = void 0;
|
|
6
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
|
7
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
8
|
-
const uuid_1 = require("uuid");
|
|
9
|
-
const AthenaServiceException_1 = require("../models/AthenaServiceException");
|
|
10
|
-
const models_0_1 = require("../models/models_0");
|
|
11
|
-
const se_BatchGetNamedQueryCommand = async (input, context) => {
|
|
12
|
-
const headers = sharedHeaders("BatchGetNamedQuery");
|
|
13
|
-
let body;
|
|
14
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
15
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
16
|
-
};
|
|
17
|
-
exports.se_BatchGetNamedQueryCommand = se_BatchGetNamedQueryCommand;
|
|
18
|
-
const se_BatchGetPreparedStatementCommand = async (input, context) => {
|
|
19
|
-
const headers = sharedHeaders("BatchGetPreparedStatement");
|
|
20
|
-
let body;
|
|
21
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
22
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
23
|
-
};
|
|
24
|
-
exports.se_BatchGetPreparedStatementCommand = se_BatchGetPreparedStatementCommand;
|
|
25
|
-
const se_BatchGetQueryExecutionCommand = async (input, context) => {
|
|
26
|
-
const headers = sharedHeaders("BatchGetQueryExecution");
|
|
27
|
-
let body;
|
|
28
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
29
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
30
|
-
};
|
|
31
|
-
exports.se_BatchGetQueryExecutionCommand = se_BatchGetQueryExecutionCommand;
|
|
32
|
-
const se_CancelCapacityReservationCommand = async (input, context) => {
|
|
33
|
-
const headers = sharedHeaders("CancelCapacityReservation");
|
|
34
|
-
let body;
|
|
35
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
36
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
37
|
-
};
|
|
38
|
-
exports.se_CancelCapacityReservationCommand = se_CancelCapacityReservationCommand;
|
|
39
|
-
const se_CreateCapacityReservationCommand = async (input, context) => {
|
|
40
|
-
const headers = sharedHeaders("CreateCapacityReservation");
|
|
41
|
-
let body;
|
|
42
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
43
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
44
|
-
};
|
|
45
|
-
exports.se_CreateCapacityReservationCommand = se_CreateCapacityReservationCommand;
|
|
46
|
-
const se_CreateDataCatalogCommand = async (input, context) => {
|
|
47
|
-
const headers = sharedHeaders("CreateDataCatalog");
|
|
48
|
-
let body;
|
|
49
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
50
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
51
|
-
};
|
|
52
|
-
exports.se_CreateDataCatalogCommand = se_CreateDataCatalogCommand;
|
|
53
|
-
const se_CreateNamedQueryCommand = async (input, context) => {
|
|
54
|
-
const headers = sharedHeaders("CreateNamedQuery");
|
|
55
|
-
let body;
|
|
56
|
-
body = JSON.stringify(se_CreateNamedQueryInput(input, context));
|
|
57
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
|
-
};
|
|
59
|
-
exports.se_CreateNamedQueryCommand = se_CreateNamedQueryCommand;
|
|
60
|
-
const se_CreateNotebookCommand = async (input, context) => {
|
|
61
|
-
const headers = sharedHeaders("CreateNotebook");
|
|
62
|
-
let body;
|
|
63
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
64
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
65
|
-
};
|
|
66
|
-
exports.se_CreateNotebookCommand = se_CreateNotebookCommand;
|
|
67
|
-
const se_CreatePreparedStatementCommand = async (input, context) => {
|
|
68
|
-
const headers = sharedHeaders("CreatePreparedStatement");
|
|
69
|
-
let body;
|
|
70
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
71
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
72
|
-
};
|
|
73
|
-
exports.se_CreatePreparedStatementCommand = se_CreatePreparedStatementCommand;
|
|
74
|
-
const se_CreatePresignedNotebookUrlCommand = async (input, context) => {
|
|
75
|
-
const headers = sharedHeaders("CreatePresignedNotebookUrl");
|
|
76
|
-
let body;
|
|
77
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
78
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
79
|
-
};
|
|
80
|
-
exports.se_CreatePresignedNotebookUrlCommand = se_CreatePresignedNotebookUrlCommand;
|
|
81
|
-
const se_CreateWorkGroupCommand = async (input, context) => {
|
|
82
|
-
const headers = sharedHeaders("CreateWorkGroup");
|
|
83
|
-
let body;
|
|
84
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
85
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
86
|
-
};
|
|
87
|
-
exports.se_CreateWorkGroupCommand = se_CreateWorkGroupCommand;
|
|
88
|
-
const se_DeleteCapacityReservationCommand = async (input, context) => {
|
|
89
|
-
const headers = sharedHeaders("DeleteCapacityReservation");
|
|
90
|
-
let body;
|
|
91
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
92
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
93
|
-
};
|
|
94
|
-
exports.se_DeleteCapacityReservationCommand = se_DeleteCapacityReservationCommand;
|
|
95
|
-
const se_DeleteDataCatalogCommand = async (input, context) => {
|
|
96
|
-
const headers = sharedHeaders("DeleteDataCatalog");
|
|
97
|
-
let body;
|
|
98
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
99
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
100
|
-
};
|
|
101
|
-
exports.se_DeleteDataCatalogCommand = se_DeleteDataCatalogCommand;
|
|
102
|
-
const se_DeleteNamedQueryCommand = async (input, context) => {
|
|
103
|
-
const headers = sharedHeaders("DeleteNamedQuery");
|
|
104
|
-
let body;
|
|
105
|
-
body = JSON.stringify(se_DeleteNamedQueryInput(input, context));
|
|
106
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
107
|
-
};
|
|
108
|
-
exports.se_DeleteNamedQueryCommand = se_DeleteNamedQueryCommand;
|
|
109
|
-
const se_DeleteNotebookCommand = async (input, context) => {
|
|
110
|
-
const headers = sharedHeaders("DeleteNotebook");
|
|
111
|
-
let body;
|
|
112
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
113
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
114
|
-
};
|
|
115
|
-
exports.se_DeleteNotebookCommand = se_DeleteNotebookCommand;
|
|
116
|
-
const se_DeletePreparedStatementCommand = async (input, context) => {
|
|
117
|
-
const headers = sharedHeaders("DeletePreparedStatement");
|
|
118
|
-
let body;
|
|
119
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
120
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
121
|
-
};
|
|
122
|
-
exports.se_DeletePreparedStatementCommand = se_DeletePreparedStatementCommand;
|
|
123
|
-
const se_DeleteWorkGroupCommand = async (input, context) => {
|
|
124
|
-
const headers = sharedHeaders("DeleteWorkGroup");
|
|
125
|
-
let body;
|
|
126
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
127
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
128
|
-
};
|
|
129
|
-
exports.se_DeleteWorkGroupCommand = se_DeleteWorkGroupCommand;
|
|
130
|
-
const se_ExportNotebookCommand = async (input, context) => {
|
|
131
|
-
const headers = sharedHeaders("ExportNotebook");
|
|
132
|
-
let body;
|
|
133
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
134
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
135
|
-
};
|
|
136
|
-
exports.se_ExportNotebookCommand = se_ExportNotebookCommand;
|
|
137
|
-
const se_GetCalculationExecutionCommand = async (input, context) => {
|
|
138
|
-
const headers = sharedHeaders("GetCalculationExecution");
|
|
139
|
-
let body;
|
|
140
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
141
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
142
|
-
};
|
|
143
|
-
exports.se_GetCalculationExecutionCommand = se_GetCalculationExecutionCommand;
|
|
144
|
-
const se_GetCalculationExecutionCodeCommand = async (input, context) => {
|
|
145
|
-
const headers = sharedHeaders("GetCalculationExecutionCode");
|
|
146
|
-
let body;
|
|
147
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
148
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
149
|
-
};
|
|
150
|
-
exports.se_GetCalculationExecutionCodeCommand = se_GetCalculationExecutionCodeCommand;
|
|
151
|
-
const se_GetCalculationExecutionStatusCommand = async (input, context) => {
|
|
152
|
-
const headers = sharedHeaders("GetCalculationExecutionStatus");
|
|
153
|
-
let body;
|
|
154
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
155
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
156
|
-
};
|
|
157
|
-
exports.se_GetCalculationExecutionStatusCommand = se_GetCalculationExecutionStatusCommand;
|
|
158
|
-
const se_GetCapacityAssignmentConfigurationCommand = async (input, context) => {
|
|
159
|
-
const headers = sharedHeaders("GetCapacityAssignmentConfiguration");
|
|
160
|
-
let body;
|
|
161
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
162
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
163
|
-
};
|
|
164
|
-
exports.se_GetCapacityAssignmentConfigurationCommand = se_GetCapacityAssignmentConfigurationCommand;
|
|
165
|
-
const se_GetCapacityReservationCommand = async (input, context) => {
|
|
166
|
-
const headers = sharedHeaders("GetCapacityReservation");
|
|
167
|
-
let body;
|
|
168
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
169
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
170
|
-
};
|
|
171
|
-
exports.se_GetCapacityReservationCommand = se_GetCapacityReservationCommand;
|
|
172
|
-
const se_GetDatabaseCommand = async (input, context) => {
|
|
173
|
-
const headers = sharedHeaders("GetDatabase");
|
|
174
|
-
let body;
|
|
175
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
176
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
177
|
-
};
|
|
178
|
-
exports.se_GetDatabaseCommand = se_GetDatabaseCommand;
|
|
179
|
-
const se_GetDataCatalogCommand = async (input, context) => {
|
|
180
|
-
const headers = sharedHeaders("GetDataCatalog");
|
|
181
|
-
let body;
|
|
182
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
183
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
184
|
-
};
|
|
185
|
-
exports.se_GetDataCatalogCommand = se_GetDataCatalogCommand;
|
|
186
|
-
const se_GetNamedQueryCommand = async (input, context) => {
|
|
187
|
-
const headers = sharedHeaders("GetNamedQuery");
|
|
188
|
-
let body;
|
|
189
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
190
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
191
|
-
};
|
|
192
|
-
exports.se_GetNamedQueryCommand = se_GetNamedQueryCommand;
|
|
193
|
-
const se_GetNotebookMetadataCommand = async (input, context) => {
|
|
194
|
-
const headers = sharedHeaders("GetNotebookMetadata");
|
|
195
|
-
let body;
|
|
196
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
197
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
198
|
-
};
|
|
199
|
-
exports.se_GetNotebookMetadataCommand = se_GetNotebookMetadataCommand;
|
|
200
|
-
const se_GetPreparedStatementCommand = async (input, context) => {
|
|
201
|
-
const headers = sharedHeaders("GetPreparedStatement");
|
|
202
|
-
let body;
|
|
203
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
204
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
205
|
-
};
|
|
206
|
-
exports.se_GetPreparedStatementCommand = se_GetPreparedStatementCommand;
|
|
207
|
-
const se_GetQueryExecutionCommand = async (input, context) => {
|
|
208
|
-
const headers = sharedHeaders("GetQueryExecution");
|
|
209
|
-
let body;
|
|
210
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
211
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
212
|
-
};
|
|
213
|
-
exports.se_GetQueryExecutionCommand = se_GetQueryExecutionCommand;
|
|
214
|
-
const se_GetQueryResultsCommand = async (input, context) => {
|
|
215
|
-
const headers = sharedHeaders("GetQueryResults");
|
|
216
|
-
let body;
|
|
217
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
218
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
219
|
-
};
|
|
220
|
-
exports.se_GetQueryResultsCommand = se_GetQueryResultsCommand;
|
|
221
|
-
const se_GetQueryRuntimeStatisticsCommand = async (input, context) => {
|
|
222
|
-
const headers = sharedHeaders("GetQueryRuntimeStatistics");
|
|
223
|
-
let body;
|
|
224
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
225
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
226
|
-
};
|
|
227
|
-
exports.se_GetQueryRuntimeStatisticsCommand = se_GetQueryRuntimeStatisticsCommand;
|
|
228
|
-
const se_GetSessionCommand = async (input, context) => {
|
|
229
|
-
const headers = sharedHeaders("GetSession");
|
|
230
|
-
let body;
|
|
231
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
232
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
233
|
-
};
|
|
234
|
-
exports.se_GetSessionCommand = se_GetSessionCommand;
|
|
235
|
-
const se_GetSessionStatusCommand = async (input, context) => {
|
|
236
|
-
const headers = sharedHeaders("GetSessionStatus");
|
|
237
|
-
let body;
|
|
238
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
239
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
240
|
-
};
|
|
241
|
-
exports.se_GetSessionStatusCommand = se_GetSessionStatusCommand;
|
|
242
|
-
const se_GetTableMetadataCommand = async (input, context) => {
|
|
243
|
-
const headers = sharedHeaders("GetTableMetadata");
|
|
244
|
-
let body;
|
|
245
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
246
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
247
|
-
};
|
|
248
|
-
exports.se_GetTableMetadataCommand = se_GetTableMetadataCommand;
|
|
249
|
-
const se_GetWorkGroupCommand = async (input, context) => {
|
|
250
|
-
const headers = sharedHeaders("GetWorkGroup");
|
|
251
|
-
let body;
|
|
252
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
253
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
254
|
-
};
|
|
255
|
-
exports.se_GetWorkGroupCommand = se_GetWorkGroupCommand;
|
|
256
|
-
const se_ImportNotebookCommand = async (input, context) => {
|
|
257
|
-
const headers = sharedHeaders("ImportNotebook");
|
|
258
|
-
let body;
|
|
259
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
260
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
261
|
-
};
|
|
262
|
-
exports.se_ImportNotebookCommand = se_ImportNotebookCommand;
|
|
263
|
-
const se_ListApplicationDPUSizesCommand = async (input, context) => {
|
|
264
|
-
const headers = sharedHeaders("ListApplicationDPUSizes");
|
|
265
|
-
let body;
|
|
266
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
267
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
268
|
-
};
|
|
269
|
-
exports.se_ListApplicationDPUSizesCommand = se_ListApplicationDPUSizesCommand;
|
|
270
|
-
const se_ListCalculationExecutionsCommand = async (input, context) => {
|
|
271
|
-
const headers = sharedHeaders("ListCalculationExecutions");
|
|
272
|
-
let body;
|
|
273
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
274
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
275
|
-
};
|
|
276
|
-
exports.se_ListCalculationExecutionsCommand = se_ListCalculationExecutionsCommand;
|
|
277
|
-
const se_ListCapacityReservationsCommand = async (input, context) => {
|
|
278
|
-
const headers = sharedHeaders("ListCapacityReservations");
|
|
279
|
-
let body;
|
|
280
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
281
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
282
|
-
};
|
|
283
|
-
exports.se_ListCapacityReservationsCommand = se_ListCapacityReservationsCommand;
|
|
284
|
-
const se_ListDatabasesCommand = async (input, context) => {
|
|
285
|
-
const headers = sharedHeaders("ListDatabases");
|
|
286
|
-
let body;
|
|
287
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
288
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
289
|
-
};
|
|
290
|
-
exports.se_ListDatabasesCommand = se_ListDatabasesCommand;
|
|
291
|
-
const se_ListDataCatalogsCommand = async (input, context) => {
|
|
292
|
-
const headers = sharedHeaders("ListDataCatalogs");
|
|
293
|
-
let body;
|
|
294
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
295
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
296
|
-
};
|
|
297
|
-
exports.se_ListDataCatalogsCommand = se_ListDataCatalogsCommand;
|
|
298
|
-
const se_ListEngineVersionsCommand = async (input, context) => {
|
|
299
|
-
const headers = sharedHeaders("ListEngineVersions");
|
|
300
|
-
let body;
|
|
301
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
302
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
303
|
-
};
|
|
304
|
-
exports.se_ListEngineVersionsCommand = se_ListEngineVersionsCommand;
|
|
305
|
-
const se_ListExecutorsCommand = async (input, context) => {
|
|
306
|
-
const headers = sharedHeaders("ListExecutors");
|
|
307
|
-
let body;
|
|
308
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
309
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
310
|
-
};
|
|
311
|
-
exports.se_ListExecutorsCommand = se_ListExecutorsCommand;
|
|
312
|
-
const se_ListNamedQueriesCommand = async (input, context) => {
|
|
313
|
-
const headers = sharedHeaders("ListNamedQueries");
|
|
314
|
-
let body;
|
|
315
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
316
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
317
|
-
};
|
|
318
|
-
exports.se_ListNamedQueriesCommand = se_ListNamedQueriesCommand;
|
|
319
|
-
const se_ListNotebookMetadataCommand = async (input, context) => {
|
|
320
|
-
const headers = sharedHeaders("ListNotebookMetadata");
|
|
321
|
-
let body;
|
|
322
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
323
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
324
|
-
};
|
|
325
|
-
exports.se_ListNotebookMetadataCommand = se_ListNotebookMetadataCommand;
|
|
326
|
-
const se_ListNotebookSessionsCommand = async (input, context) => {
|
|
327
|
-
const headers = sharedHeaders("ListNotebookSessions");
|
|
328
|
-
let body;
|
|
329
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
330
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
331
|
-
};
|
|
332
|
-
exports.se_ListNotebookSessionsCommand = se_ListNotebookSessionsCommand;
|
|
333
|
-
const se_ListPreparedStatementsCommand = async (input, context) => {
|
|
334
|
-
const headers = sharedHeaders("ListPreparedStatements");
|
|
335
|
-
let body;
|
|
336
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
337
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
338
|
-
};
|
|
339
|
-
exports.se_ListPreparedStatementsCommand = se_ListPreparedStatementsCommand;
|
|
340
|
-
const se_ListQueryExecutionsCommand = async (input, context) => {
|
|
341
|
-
const headers = sharedHeaders("ListQueryExecutions");
|
|
342
|
-
let body;
|
|
343
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
344
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
345
|
-
};
|
|
346
|
-
exports.se_ListQueryExecutionsCommand = se_ListQueryExecutionsCommand;
|
|
347
|
-
const se_ListSessionsCommand = async (input, context) => {
|
|
348
|
-
const headers = sharedHeaders("ListSessions");
|
|
349
|
-
let body;
|
|
350
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
351
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
352
|
-
};
|
|
353
|
-
exports.se_ListSessionsCommand = se_ListSessionsCommand;
|
|
354
|
-
const se_ListTableMetadataCommand = async (input, context) => {
|
|
355
|
-
const headers = sharedHeaders("ListTableMetadata");
|
|
356
|
-
let body;
|
|
357
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
358
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
359
|
-
};
|
|
360
|
-
exports.se_ListTableMetadataCommand = se_ListTableMetadataCommand;
|
|
361
|
-
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
362
|
-
const headers = sharedHeaders("ListTagsForResource");
|
|
363
|
-
let body;
|
|
364
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
365
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
366
|
-
};
|
|
367
|
-
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
368
|
-
const se_ListWorkGroupsCommand = async (input, context) => {
|
|
369
|
-
const headers = sharedHeaders("ListWorkGroups");
|
|
370
|
-
let body;
|
|
371
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
372
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
373
|
-
};
|
|
374
|
-
exports.se_ListWorkGroupsCommand = se_ListWorkGroupsCommand;
|
|
375
|
-
const se_PutCapacityAssignmentConfigurationCommand = async (input, context) => {
|
|
376
|
-
const headers = sharedHeaders("PutCapacityAssignmentConfiguration");
|
|
377
|
-
let body;
|
|
378
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
379
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
380
|
-
};
|
|
381
|
-
exports.se_PutCapacityAssignmentConfigurationCommand = se_PutCapacityAssignmentConfigurationCommand;
|
|
382
|
-
const se_StartCalculationExecutionCommand = async (input, context) => {
|
|
383
|
-
const headers = sharedHeaders("StartCalculationExecution");
|
|
384
|
-
let body;
|
|
385
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
386
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
387
|
-
};
|
|
388
|
-
exports.se_StartCalculationExecutionCommand = se_StartCalculationExecutionCommand;
|
|
389
|
-
const se_StartQueryExecutionCommand = async (input, context) => {
|
|
390
|
-
const headers = sharedHeaders("StartQueryExecution");
|
|
391
|
-
let body;
|
|
392
|
-
body = JSON.stringify(se_StartQueryExecutionInput(input, context));
|
|
393
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
394
|
-
};
|
|
395
|
-
exports.se_StartQueryExecutionCommand = se_StartQueryExecutionCommand;
|
|
396
|
-
const se_StartSessionCommand = async (input, context) => {
|
|
397
|
-
const headers = sharedHeaders("StartSession");
|
|
398
|
-
let body;
|
|
399
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
400
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
401
|
-
};
|
|
402
|
-
exports.se_StartSessionCommand = se_StartSessionCommand;
|
|
403
|
-
const se_StopCalculationExecutionCommand = async (input, context) => {
|
|
404
|
-
const headers = sharedHeaders("StopCalculationExecution");
|
|
405
|
-
let body;
|
|
406
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
407
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
408
|
-
};
|
|
409
|
-
exports.se_StopCalculationExecutionCommand = se_StopCalculationExecutionCommand;
|
|
410
|
-
const se_StopQueryExecutionCommand = async (input, context) => {
|
|
411
|
-
const headers = sharedHeaders("StopQueryExecution");
|
|
412
|
-
let body;
|
|
413
|
-
body = JSON.stringify(se_StopQueryExecutionInput(input, context));
|
|
414
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
415
|
-
};
|
|
416
|
-
exports.se_StopQueryExecutionCommand = se_StopQueryExecutionCommand;
|
|
417
|
-
const se_TagResourceCommand = async (input, context) => {
|
|
418
|
-
const headers = sharedHeaders("TagResource");
|
|
419
|
-
let body;
|
|
420
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
421
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
422
|
-
};
|
|
423
|
-
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
424
|
-
const se_TerminateSessionCommand = async (input, context) => {
|
|
425
|
-
const headers = sharedHeaders("TerminateSession");
|
|
426
|
-
let body;
|
|
427
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
428
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
429
|
-
};
|
|
430
|
-
exports.se_TerminateSessionCommand = se_TerminateSessionCommand;
|
|
431
|
-
const se_UntagResourceCommand = async (input, context) => {
|
|
432
|
-
const headers = sharedHeaders("UntagResource");
|
|
433
|
-
let body;
|
|
434
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
435
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
436
|
-
};
|
|
437
|
-
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
438
|
-
const se_UpdateCapacityReservationCommand = async (input, context) => {
|
|
439
|
-
const headers = sharedHeaders("UpdateCapacityReservation");
|
|
440
|
-
let body;
|
|
441
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
442
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
443
|
-
};
|
|
444
|
-
exports.se_UpdateCapacityReservationCommand = se_UpdateCapacityReservationCommand;
|
|
445
|
-
const se_UpdateDataCatalogCommand = async (input, context) => {
|
|
446
|
-
const headers = sharedHeaders("UpdateDataCatalog");
|
|
447
|
-
let body;
|
|
448
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
449
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
450
|
-
};
|
|
451
|
-
exports.se_UpdateDataCatalogCommand = se_UpdateDataCatalogCommand;
|
|
452
|
-
const se_UpdateNamedQueryCommand = async (input, context) => {
|
|
453
|
-
const headers = sharedHeaders("UpdateNamedQuery");
|
|
454
|
-
let body;
|
|
455
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
456
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
457
|
-
};
|
|
458
|
-
exports.se_UpdateNamedQueryCommand = se_UpdateNamedQueryCommand;
|
|
459
|
-
const se_UpdateNotebookCommand = async (input, context) => {
|
|
460
|
-
const headers = sharedHeaders("UpdateNotebook");
|
|
461
|
-
let body;
|
|
462
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
463
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
464
|
-
};
|
|
465
|
-
exports.se_UpdateNotebookCommand = se_UpdateNotebookCommand;
|
|
466
|
-
const se_UpdateNotebookMetadataCommand = async (input, context) => {
|
|
467
|
-
const headers = sharedHeaders("UpdateNotebookMetadata");
|
|
468
|
-
let body;
|
|
469
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
470
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
471
|
-
};
|
|
472
|
-
exports.se_UpdateNotebookMetadataCommand = se_UpdateNotebookMetadataCommand;
|
|
473
|
-
const se_UpdatePreparedStatementCommand = async (input, context) => {
|
|
474
|
-
const headers = sharedHeaders("UpdatePreparedStatement");
|
|
475
|
-
let body;
|
|
476
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
477
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
478
|
-
};
|
|
479
|
-
exports.se_UpdatePreparedStatementCommand = se_UpdatePreparedStatementCommand;
|
|
480
|
-
const se_UpdateWorkGroupCommand = async (input, context) => {
|
|
481
|
-
const headers = sharedHeaders("UpdateWorkGroup");
|
|
482
|
-
let body;
|
|
483
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
484
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
485
|
-
};
|
|
486
|
-
exports.se_UpdateWorkGroupCommand = se_UpdateWorkGroupCommand;
|
|
487
|
-
const de_BatchGetNamedQueryCommand = async (output, context) => {
|
|
488
|
-
if (output.statusCode >= 300) {
|
|
489
|
-
return de_BatchGetNamedQueryCommandError(output, context);
|
|
490
|
-
}
|
|
491
|
-
const data = await parseBody(output.body, context);
|
|
492
|
-
let contents = {};
|
|
493
|
-
contents = (0, smithy_client_1._json)(data);
|
|
494
|
-
const response = {
|
|
495
|
-
$metadata: deserializeMetadata(output),
|
|
496
|
-
...contents,
|
|
497
|
-
};
|
|
498
|
-
return response;
|
|
499
|
-
};
|
|
500
|
-
exports.de_BatchGetNamedQueryCommand = de_BatchGetNamedQueryCommand;
|
|
501
|
-
const de_BatchGetNamedQueryCommandError = async (output, context) => {
|
|
502
|
-
const parsedOutput = {
|
|
503
|
-
...output,
|
|
504
|
-
body: await parseErrorBody(output.body, context),
|
|
505
|
-
};
|
|
506
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
507
|
-
switch (errorCode) {
|
|
508
|
-
case "InternalServerException":
|
|
509
|
-
case "com.amazonaws.athena#InternalServerException":
|
|
510
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
511
|
-
case "InvalidRequestException":
|
|
512
|
-
case "com.amazonaws.athena#InvalidRequestException":
|
|
513
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
514
|
-
default:
|
|
515
|
-
const parsedBody = parsedOutput.body;
|
|
516
|
-
return throwDefaultError({
|
|
517
|
-
output,
|
|
518
|
-
parsedBody,
|
|
519
|
-
errorCode,
|
|
520
|
-
});
|
|
521
|
-
}
|
|
522
|
-
};
|
|
523
|
-
const de_BatchGetPreparedStatementCommand = async (output, context) => {
|
|
524
|
-
if (output.statusCode >= 300) {
|
|
525
|
-
return de_BatchGetPreparedStatementCommandError(output, context);
|
|
526
|
-
}
|
|
527
|
-
const data = await parseBody(output.body, context);
|
|
528
|
-
let contents = {};
|
|
529
|
-
contents = de_BatchGetPreparedStatementOutput(data, context);
|
|
530
|
-
const response = {
|
|
531
|
-
$metadata: deserializeMetadata(output),
|
|
532
|
-
...contents,
|
|
533
|
-
};
|
|
534
|
-
return response;
|
|
535
|
-
};
|
|
536
|
-
exports.de_BatchGetPreparedStatementCommand = de_BatchGetPreparedStatementCommand;
|
|
537
|
-
const de_BatchGetPreparedStatementCommandError = async (output, context) => {
|
|
538
|
-
const parsedOutput = {
|
|
539
|
-
...output,
|
|
540
|
-
body: await parseErrorBody(output.body, context),
|
|
541
|
-
};
|
|
542
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
543
|
-
switch (errorCode) {
|
|
544
|
-
case "InternalServerException":
|
|
545
|
-
case "com.amazonaws.athena#InternalServerException":
|
|
546
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
547
|
-
case "InvalidRequestException":
|
|
548
|
-
case "com.amazonaws.athena#InvalidRequestException":
|
|
549
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
550
|
-
default:
|
|
551
|
-
const parsedBody = parsedOutput.body;
|
|
552
|
-
return throwDefaultError({
|
|
553
|
-
output,
|
|
554
|
-
parsedBody,
|
|
555
|
-
errorCode,
|
|
556
|
-
});
|
|
557
|
-
}
|
|
558
|
-
};
|
|
559
|
-
const de_BatchGetQueryExecutionCommand = async (output, context) => {
|
|
560
|
-
if (output.statusCode >= 300) {
|
|
561
|
-
return de_BatchGetQueryExecutionCommandError(output, context);
|
|
562
|
-
}
|
|
563
|
-
const data = await parseBody(output.body, context);
|
|
564
|
-
let contents = {};
|
|
565
|
-
contents = de_BatchGetQueryExecutionOutput(data, context);
|
|
566
|
-
const response = {
|
|
567
|
-
$metadata: deserializeMetadata(output),
|
|
568
|
-
...contents,
|
|
569
|
-
};
|
|
570
|
-
return response;
|
|
571
|
-
};
|
|
572
|
-
exports.de_BatchGetQueryExecutionCommand = de_BatchGetQueryExecutionCommand;
|
|
573
|
-
const de_BatchGetQueryExecutionCommandError = async (output, context) => {
|
|
574
|
-
const parsedOutput = {
|
|
575
|
-
...output,
|
|
576
|
-
body: await parseErrorBody(output.body, context),
|
|
577
|
-
};
|
|
578
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
579
|
-
switch (errorCode) {
|
|
580
|
-
case "InternalServerException":
|
|
581
|
-
case "com.amazonaws.athena#InternalServerException":
|
|
582
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
583
|
-
case "InvalidRequestException":
|
|
584
|
-
case "com.amazonaws.athena#InvalidRequestException":
|
|
585
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
586
|
-
default:
|
|
587
|
-
const parsedBody = parsedOutput.body;
|
|
588
|
-
return throwDefaultError({
|
|
589
|
-
output,
|
|
590
|
-
parsedBody,
|
|
591
|
-
errorCode,
|
|
592
|
-
});
|
|
593
|
-
}
|
|
594
|
-
};
|
|
595
|
-
const de_CancelCapacityReservationCommand = async (output, context) => {
|
|
596
|
-
if (output.statusCode >= 300) {
|
|
597
|
-
return de_CancelCapacityReservationCommandError(output, context);
|
|
598
|
-
}
|
|
599
|
-
const data = await parseBody(output.body, context);
|
|
600
|
-
let contents = {};
|
|
601
|
-
contents = (0, smithy_client_1._json)(data);
|
|
602
|
-
const response = {
|
|
603
|
-
$metadata: deserializeMetadata(output),
|
|
604
|
-
...contents,
|
|
605
|
-
};
|
|
606
|
-
return response;
|
|
607
|
-
};
|
|
608
|
-
exports.de_CancelCapacityReservationCommand = de_CancelCapacityReservationCommand;
|
|
609
|
-
const de_CancelCapacityReservationCommandError = async (output, context) => {
|
|
610
|
-
const parsedOutput = {
|
|
611
|
-
...output,
|
|
612
|
-
body: await parseErrorBody(output.body, context),
|
|
613
|
-
};
|
|
614
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
615
|
-
switch (errorCode) {
|
|
616
|
-
case "InternalServerException":
|
|
617
|
-
case "com.amazonaws.athena#InternalServerException":
|
|
618
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
619
|
-
case "InvalidRequestException":
|
|
620
|
-
case "com.amazonaws.athena#InvalidRequestException":
|
|
621
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
622
|
-
default:
|
|
623
|
-
const parsedBody = parsedOutput.body;
|
|
624
|
-
return throwDefaultError({
|
|
625
|
-
output,
|
|
626
|
-
parsedBody,
|
|
627
|
-
errorCode,
|
|
628
|
-
});
|
|
629
|
-
}
|
|
630
|
-
};
|
|
631
|
-
const de_CreateCapacityReservationCommand = async (output, context) => {
|
|
632
|
-
if (output.statusCode >= 300) {
|
|
633
|
-
return de_CreateCapacityReservationCommandError(output, context);
|
|
634
|
-
}
|
|
635
|
-
const data = await parseBody(output.body, context);
|
|
636
|
-
let contents = {};
|
|
637
|
-
contents = (0, smithy_client_1._json)(data);
|
|
638
|
-
const response = {
|
|
639
|
-
$metadata: deserializeMetadata(output),
|
|
640
|
-
...contents,
|
|
641
|
-
};
|
|
642
|
-
return response;
|
|
643
|
-
};
|
|
644
|
-
exports.de_CreateCapacityReservationCommand = de_CreateCapacityReservationCommand;
|
|
645
|
-
const de_CreateCapacityReservationCommandError = async (output, context) => {
|
|
646
|
-
const parsedOutput = {
|
|
647
|
-
...output,
|
|
648
|
-
body: await parseErrorBody(output.body, context),
|
|
649
|
-
};
|
|
650
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
651
|
-
switch (errorCode) {
|
|
652
|
-
case "InternalServerException":
|
|
653
|
-
case "com.amazonaws.athena#InternalServerException":
|
|
654
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
655
|
-
case "InvalidRequestException":
|
|
656
|
-
case "com.amazonaws.athena#InvalidRequestException":
|
|
657
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
658
|
-
default:
|
|
659
|
-
const parsedBody = parsedOutput.body;
|
|
660
|
-
return throwDefaultError({
|
|
661
|
-
output,
|
|
662
|
-
parsedBody,
|
|
663
|
-
errorCode,
|
|
664
|
-
});
|
|
665
|
-
}
|
|
666
|
-
};
|
|
667
|
-
const de_CreateDataCatalogCommand = async (output, context) => {
|
|
668
|
-
if (output.statusCode >= 300) {
|
|
669
|
-
return de_CreateDataCatalogCommandError(output, context);
|
|
670
|
-
}
|
|
671
|
-
const data = await parseBody(output.body, context);
|
|
672
|
-
let contents = {};
|
|
673
|
-
contents = (0, smithy_client_1._json)(data);
|
|
674
|
-
const response = {
|
|
675
|
-
$metadata: deserializeMetadata(output),
|
|
676
|
-
...contents,
|
|
677
|
-
};
|
|
678
|
-
return response;
|
|
679
|
-
};
|
|
680
|
-
exports.de_CreateDataCatalogCommand = de_CreateDataCatalogCommand;
|
|
681
|
-
const de_CreateDataCatalogCommandError = async (output, context) => {
|
|
682
|
-
const parsedOutput = {
|
|
683
|
-
...output,
|
|
684
|
-
body: await parseErrorBody(output.body, context),
|
|
685
|
-
};
|
|
686
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
687
|
-
switch (errorCode) {
|
|
688
|
-
case "InternalServerException":
|
|
689
|
-
case "com.amazonaws.athena#InternalServerException":
|
|
690
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
691
|
-
case "InvalidRequestException":
|
|
692
|
-
case "com.amazonaws.athena#InvalidRequestException":
|
|
693
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
694
|
-
default:
|
|
695
|
-
const parsedBody = parsedOutput.body;
|
|
696
|
-
return throwDefaultError({
|
|
697
|
-
output,
|
|
698
|
-
parsedBody,
|
|
699
|
-
errorCode,
|
|
700
|
-
});
|
|
701
|
-
}
|
|
702
|
-
};
|
|
703
|
-
const de_CreateNamedQueryCommand = async (output, context) => {
|
|
704
|
-
if (output.statusCode >= 300) {
|
|
705
|
-
return de_CreateNamedQueryCommandError(output, context);
|
|
706
|
-
}
|
|
707
|
-
const data = await parseBody(output.body, context);
|
|
708
|
-
let contents = {};
|
|
709
|
-
contents = (0, smithy_client_1._json)(data);
|
|
710
|
-
const response = {
|
|
711
|
-
$metadata: deserializeMetadata(output),
|
|
712
|
-
...contents,
|
|
713
|
-
};
|
|
714
|
-
return response;
|
|
715
|
-
};
|
|
716
|
-
exports.de_CreateNamedQueryCommand = de_CreateNamedQueryCommand;
|
|
717
|
-
const de_CreateNamedQueryCommandError = async (output, context) => {
|
|
718
|
-
const parsedOutput = {
|
|
719
|
-
...output,
|
|
720
|
-
body: await parseErrorBody(output.body, context),
|
|
721
|
-
};
|
|
722
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
723
|
-
switch (errorCode) {
|
|
724
|
-
case "InternalServerException":
|
|
725
|
-
case "com.amazonaws.athena#InternalServerException":
|
|
726
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
727
|
-
case "InvalidRequestException":
|
|
728
|
-
case "com.amazonaws.athena#InvalidRequestException":
|
|
729
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
730
|
-
default:
|
|
731
|
-
const parsedBody = parsedOutput.body;
|
|
732
|
-
return throwDefaultError({
|
|
733
|
-
output,
|
|
734
|
-
parsedBody,
|
|
735
|
-
errorCode,
|
|
736
|
-
});
|
|
737
|
-
}
|
|
738
|
-
};
|
|
739
|
-
const de_CreateNotebookCommand = async (output, context) => {
|
|
740
|
-
if (output.statusCode >= 300) {
|
|
741
|
-
return de_CreateNotebookCommandError(output, context);
|
|
742
|
-
}
|
|
743
|
-
const data = await parseBody(output.body, context);
|
|
744
|
-
let contents = {};
|
|
745
|
-
contents = (0, smithy_client_1._json)(data);
|
|
746
|
-
const response = {
|
|
747
|
-
$metadata: deserializeMetadata(output),
|
|
748
|
-
...contents,
|
|
749
|
-
};
|
|
750
|
-
return response;
|
|
751
|
-
};
|
|
752
|
-
exports.de_CreateNotebookCommand = de_CreateNotebookCommand;
|
|
753
|
-
const de_CreateNotebookCommandError = async (output, context) => {
|
|
754
|
-
const parsedOutput = {
|
|
755
|
-
...output,
|
|
756
|
-
body: await parseErrorBody(output.body, context),
|
|
757
|
-
};
|
|
758
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
759
|
-
switch (errorCode) {
|
|
760
|
-
case "InternalServerException":
|
|
761
|
-
case "com.amazonaws.athena#InternalServerException":
|
|
762
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
763
|
-
case "InvalidRequestException":
|
|
764
|
-
case "com.amazonaws.athena#InvalidRequestException":
|
|
765
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
766
|
-
case "TooManyRequestsException":
|
|
767
|
-
case "com.amazonaws.athena#TooManyRequestsException":
|
|
768
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
769
|
-
default:
|
|
770
|
-
const parsedBody = parsedOutput.body;
|
|
771
|
-
return throwDefaultError({
|
|
772
|
-
output,
|
|
773
|
-
parsedBody,
|
|
774
|
-
errorCode,
|
|
775
|
-
});
|
|
776
|
-
}
|
|
777
|
-
};
|
|
778
|
-
const de_CreatePreparedStatementCommand = async (output, context) => {
|
|
779
|
-
if (output.statusCode >= 300) {
|
|
780
|
-
return de_CreatePreparedStatementCommandError(output, context);
|
|
781
|
-
}
|
|
782
|
-
const data = await parseBody(output.body, context);
|
|
783
|
-
let contents = {};
|
|
784
|
-
contents = (0, smithy_client_1._json)(data);
|
|
785
|
-
const response = {
|
|
786
|
-
$metadata: deserializeMetadata(output),
|
|
787
|
-
...contents,
|
|
788
|
-
};
|
|
789
|
-
return response;
|
|
790
|
-
};
|
|
791
|
-
exports.de_CreatePreparedStatementCommand = de_CreatePreparedStatementCommand;
|
|
792
|
-
const de_CreatePreparedStatementCommandError = async (output, context) => {
|
|
793
|
-
const parsedOutput = {
|
|
794
|
-
...output,
|
|
795
|
-
body: await parseErrorBody(output.body, context),
|
|
796
|
-
};
|
|
797
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
798
|
-
switch (errorCode) {
|
|
799
|
-
case "InternalServerException":
|
|
800
|
-
case "com.amazonaws.athena#InternalServerException":
|
|
801
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
802
|
-
case "InvalidRequestException":
|
|
803
|
-
case "com.amazonaws.athena#InvalidRequestException":
|
|
804
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
805
|
-
default:
|
|
806
|
-
const parsedBody = parsedOutput.body;
|
|
807
|
-
return throwDefaultError({
|
|
808
|
-
output,
|
|
809
|
-
parsedBody,
|
|
810
|
-
errorCode,
|
|
811
|
-
});
|
|
812
|
-
}
|
|
813
|
-
};
|
|
814
|
-
const de_CreatePresignedNotebookUrlCommand = async (output, context) => {
|
|
815
|
-
if (output.statusCode >= 300) {
|
|
816
|
-
return de_CreatePresignedNotebookUrlCommandError(output, context);
|
|
817
|
-
}
|
|
818
|
-
const data = await parseBody(output.body, context);
|
|
819
|
-
let contents = {};
|
|
820
|
-
contents = (0, smithy_client_1._json)(data);
|
|
821
|
-
const response = {
|
|
822
|
-
$metadata: deserializeMetadata(output),
|
|
823
|
-
...contents,
|
|
824
|
-
};
|
|
825
|
-
return response;
|
|
826
|
-
};
|
|
827
|
-
exports.de_CreatePresignedNotebookUrlCommand = de_CreatePresignedNotebookUrlCommand;
|
|
828
|
-
const de_CreatePresignedNotebookUrlCommandError = async (output, context) => {
|
|
829
|
-
const parsedOutput = {
|
|
830
|
-
...output,
|
|
831
|
-
body: await parseErrorBody(output.body, context),
|
|
832
|
-
};
|
|
833
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
834
|
-
switch (errorCode) {
|
|
835
|
-
case "InternalServerException":
|
|
836
|
-
case "com.amazonaws.athena#InternalServerException":
|
|
837
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
838
|
-
case "InvalidRequestException":
|
|
839
|
-
case "com.amazonaws.athena#InvalidRequestException":
|
|
840
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
841
|
-
case "ResourceNotFoundException":
|
|
842
|
-
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
843
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
844
|
-
default:
|
|
845
|
-
const parsedBody = parsedOutput.body;
|
|
846
|
-
return throwDefaultError({
|
|
847
|
-
output,
|
|
848
|
-
parsedBody,
|
|
849
|
-
errorCode,
|
|
850
|
-
});
|
|
851
|
-
}
|
|
852
|
-
};
|
|
853
|
-
const de_CreateWorkGroupCommand = async (output, context) => {
|
|
854
|
-
if (output.statusCode >= 300) {
|
|
855
|
-
return de_CreateWorkGroupCommandError(output, context);
|
|
856
|
-
}
|
|
857
|
-
const data = await parseBody(output.body, context);
|
|
858
|
-
let contents = {};
|
|
859
|
-
contents = (0, smithy_client_1._json)(data);
|
|
860
|
-
const response = {
|
|
861
|
-
$metadata: deserializeMetadata(output),
|
|
862
|
-
...contents,
|
|
863
|
-
};
|
|
864
|
-
return response;
|
|
865
|
-
};
|
|
866
|
-
exports.de_CreateWorkGroupCommand = de_CreateWorkGroupCommand;
|
|
867
|
-
const de_CreateWorkGroupCommandError = async (output, context) => {
|
|
868
|
-
const parsedOutput = {
|
|
869
|
-
...output,
|
|
870
|
-
body: await parseErrorBody(output.body, context),
|
|
871
|
-
};
|
|
872
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
873
|
-
switch (errorCode) {
|
|
874
|
-
case "InternalServerException":
|
|
875
|
-
case "com.amazonaws.athena#InternalServerException":
|
|
876
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
877
|
-
case "InvalidRequestException":
|
|
878
|
-
case "com.amazonaws.athena#InvalidRequestException":
|
|
879
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
880
|
-
default:
|
|
881
|
-
const parsedBody = parsedOutput.body;
|
|
882
|
-
return throwDefaultError({
|
|
883
|
-
output,
|
|
884
|
-
parsedBody,
|
|
885
|
-
errorCode,
|
|
886
|
-
});
|
|
887
|
-
}
|
|
888
|
-
};
|
|
889
|
-
const de_DeleteCapacityReservationCommand = async (output, context) => {
|
|
890
|
-
if (output.statusCode >= 300) {
|
|
891
|
-
return de_DeleteCapacityReservationCommandError(output, context);
|
|
892
|
-
}
|
|
893
|
-
const data = await parseBody(output.body, context);
|
|
894
|
-
let contents = {};
|
|
895
|
-
contents = (0, smithy_client_1._json)(data);
|
|
896
|
-
const response = {
|
|
897
|
-
$metadata: deserializeMetadata(output),
|
|
898
|
-
...contents,
|
|
899
|
-
};
|
|
900
|
-
return response;
|
|
901
|
-
};
|
|
902
|
-
exports.de_DeleteCapacityReservationCommand = de_DeleteCapacityReservationCommand;
|
|
903
|
-
const de_DeleteCapacityReservationCommandError = async (output, context) => {
|
|
904
|
-
const parsedOutput = {
|
|
905
|
-
...output,
|
|
906
|
-
body: await parseErrorBody(output.body, context),
|
|
907
|
-
};
|
|
908
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
909
|
-
switch (errorCode) {
|
|
910
|
-
case "InternalServerException":
|
|
911
|
-
case "com.amazonaws.athena#InternalServerException":
|
|
912
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
913
|
-
case "InvalidRequestException":
|
|
914
|
-
case "com.amazonaws.athena#InvalidRequestException":
|
|
915
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
916
|
-
default:
|
|
917
|
-
const parsedBody = parsedOutput.body;
|
|
918
|
-
return throwDefaultError({
|
|
919
|
-
output,
|
|
920
|
-
parsedBody,
|
|
921
|
-
errorCode,
|
|
922
|
-
});
|
|
923
|
-
}
|
|
924
|
-
};
|
|
925
|
-
const de_DeleteDataCatalogCommand = async (output, context) => {
|
|
926
|
-
if (output.statusCode >= 300) {
|
|
927
|
-
return de_DeleteDataCatalogCommandError(output, context);
|
|
928
|
-
}
|
|
929
|
-
const data = await parseBody(output.body, context);
|
|
930
|
-
let contents = {};
|
|
931
|
-
contents = (0, smithy_client_1._json)(data);
|
|
932
|
-
const response = {
|
|
933
|
-
$metadata: deserializeMetadata(output),
|
|
934
|
-
...contents,
|
|
935
|
-
};
|
|
936
|
-
return response;
|
|
937
|
-
};
|
|
938
|
-
exports.de_DeleteDataCatalogCommand = de_DeleteDataCatalogCommand;
|
|
939
|
-
const de_DeleteDataCatalogCommandError = async (output, context) => {
|
|
940
|
-
const parsedOutput = {
|
|
941
|
-
...output,
|
|
942
|
-
body: await parseErrorBody(output.body, context),
|
|
943
|
-
};
|
|
944
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
945
|
-
switch (errorCode) {
|
|
946
|
-
case "InternalServerException":
|
|
947
|
-
case "com.amazonaws.athena#InternalServerException":
|
|
948
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
949
|
-
case "InvalidRequestException":
|
|
950
|
-
case "com.amazonaws.athena#InvalidRequestException":
|
|
951
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
952
|
-
default:
|
|
953
|
-
const parsedBody = parsedOutput.body;
|
|
954
|
-
return throwDefaultError({
|
|
955
|
-
output,
|
|
956
|
-
parsedBody,
|
|
957
|
-
errorCode,
|
|
958
|
-
});
|
|
959
|
-
}
|
|
960
|
-
};
|
|
961
|
-
const de_DeleteNamedQueryCommand = async (output, context) => {
|
|
962
|
-
if (output.statusCode >= 300) {
|
|
963
|
-
return de_DeleteNamedQueryCommandError(output, context);
|
|
964
|
-
}
|
|
965
|
-
const data = await parseBody(output.body, context);
|
|
966
|
-
let contents = {};
|
|
967
|
-
contents = (0, smithy_client_1._json)(data);
|
|
968
|
-
const response = {
|
|
969
|
-
$metadata: deserializeMetadata(output),
|
|
970
|
-
...contents,
|
|
971
|
-
};
|
|
972
|
-
return response;
|
|
973
|
-
};
|
|
974
|
-
exports.de_DeleteNamedQueryCommand = de_DeleteNamedQueryCommand;
|
|
975
|
-
const de_DeleteNamedQueryCommandError = async (output, context) => {
|
|
976
|
-
const parsedOutput = {
|
|
977
|
-
...output,
|
|
978
|
-
body: await parseErrorBody(output.body, context),
|
|
979
|
-
};
|
|
980
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
981
|
-
switch (errorCode) {
|
|
982
|
-
case "InternalServerException":
|
|
983
|
-
case "com.amazonaws.athena#InternalServerException":
|
|
984
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
985
|
-
case "InvalidRequestException":
|
|
986
|
-
case "com.amazonaws.athena#InvalidRequestException":
|
|
987
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
988
|
-
default:
|
|
989
|
-
const parsedBody = parsedOutput.body;
|
|
990
|
-
return throwDefaultError({
|
|
991
|
-
output,
|
|
992
|
-
parsedBody,
|
|
993
|
-
errorCode,
|
|
994
|
-
});
|
|
995
|
-
}
|
|
996
|
-
};
|
|
997
|
-
const de_DeleteNotebookCommand = async (output, context) => {
|
|
998
|
-
if (output.statusCode >= 300) {
|
|
999
|
-
return de_DeleteNotebookCommandError(output, context);
|
|
1000
|
-
}
|
|
1001
|
-
const data = await parseBody(output.body, context);
|
|
1002
|
-
let contents = {};
|
|
1003
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1004
|
-
const response = {
|
|
1005
|
-
$metadata: deserializeMetadata(output),
|
|
1006
|
-
...contents,
|
|
1007
|
-
};
|
|
1008
|
-
return response;
|
|
1009
|
-
};
|
|
1010
|
-
exports.de_DeleteNotebookCommand = de_DeleteNotebookCommand;
|
|
1011
|
-
const de_DeleteNotebookCommandError = async (output, context) => {
|
|
1012
|
-
const parsedOutput = {
|
|
1013
|
-
...output,
|
|
1014
|
-
body: await parseErrorBody(output.body, context),
|
|
1015
|
-
};
|
|
1016
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1017
|
-
switch (errorCode) {
|
|
1018
|
-
case "InternalServerException":
|
|
1019
|
-
case "com.amazonaws.athena#InternalServerException":
|
|
1020
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1021
|
-
case "InvalidRequestException":
|
|
1022
|
-
case "com.amazonaws.athena#InvalidRequestException":
|
|
1023
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1024
|
-
case "TooManyRequestsException":
|
|
1025
|
-
case "com.amazonaws.athena#TooManyRequestsException":
|
|
1026
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1027
|
-
default:
|
|
1028
|
-
const parsedBody = parsedOutput.body;
|
|
1029
|
-
return throwDefaultError({
|
|
1030
|
-
output,
|
|
1031
|
-
parsedBody,
|
|
1032
|
-
errorCode,
|
|
1033
|
-
});
|
|
1034
|
-
}
|
|
1035
|
-
};
|
|
1036
|
-
const de_DeletePreparedStatementCommand = async (output, context) => {
|
|
1037
|
-
if (output.statusCode >= 300) {
|
|
1038
|
-
return de_DeletePreparedStatementCommandError(output, context);
|
|
1039
|
-
}
|
|
1040
|
-
const data = await parseBody(output.body, context);
|
|
1041
|
-
let contents = {};
|
|
1042
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1043
|
-
const response = {
|
|
1044
|
-
$metadata: deserializeMetadata(output),
|
|
1045
|
-
...contents,
|
|
1046
|
-
};
|
|
1047
|
-
return response;
|
|
1048
|
-
};
|
|
1049
|
-
exports.de_DeletePreparedStatementCommand = de_DeletePreparedStatementCommand;
|
|
1050
|
-
const de_DeletePreparedStatementCommandError = async (output, context) => {
|
|
1051
|
-
const parsedOutput = {
|
|
1052
|
-
...output,
|
|
1053
|
-
body: await parseErrorBody(output.body, context),
|
|
1054
|
-
};
|
|
1055
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1056
|
-
switch (errorCode) {
|
|
1057
|
-
case "InternalServerException":
|
|
1058
|
-
case "com.amazonaws.athena#InternalServerException":
|
|
1059
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1060
|
-
case "InvalidRequestException":
|
|
1061
|
-
case "com.amazonaws.athena#InvalidRequestException":
|
|
1062
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1063
|
-
case "ResourceNotFoundException":
|
|
1064
|
-
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
1065
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1066
|
-
default:
|
|
1067
|
-
const parsedBody = parsedOutput.body;
|
|
1068
|
-
return throwDefaultError({
|
|
1069
|
-
output,
|
|
1070
|
-
parsedBody,
|
|
1071
|
-
errorCode,
|
|
1072
|
-
});
|
|
1073
|
-
}
|
|
1074
|
-
};
|
|
1075
|
-
const de_DeleteWorkGroupCommand = async (output, context) => {
|
|
1076
|
-
if (output.statusCode >= 300) {
|
|
1077
|
-
return de_DeleteWorkGroupCommandError(output, context);
|
|
1078
|
-
}
|
|
1079
|
-
const data = await parseBody(output.body, context);
|
|
1080
|
-
let contents = {};
|
|
1081
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1082
|
-
const response = {
|
|
1083
|
-
$metadata: deserializeMetadata(output),
|
|
1084
|
-
...contents,
|
|
1085
|
-
};
|
|
1086
|
-
return response;
|
|
1087
|
-
};
|
|
1088
|
-
exports.de_DeleteWorkGroupCommand = de_DeleteWorkGroupCommand;
|
|
1089
|
-
const de_DeleteWorkGroupCommandError = async (output, context) => {
|
|
1090
|
-
const parsedOutput = {
|
|
1091
|
-
...output,
|
|
1092
|
-
body: await parseErrorBody(output.body, context),
|
|
1093
|
-
};
|
|
1094
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1095
|
-
switch (errorCode) {
|
|
1096
|
-
case "InternalServerException":
|
|
1097
|
-
case "com.amazonaws.athena#InternalServerException":
|
|
1098
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1099
|
-
case "InvalidRequestException":
|
|
1100
|
-
case "com.amazonaws.athena#InvalidRequestException":
|
|
1101
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1102
|
-
default:
|
|
1103
|
-
const parsedBody = parsedOutput.body;
|
|
1104
|
-
return throwDefaultError({
|
|
1105
|
-
output,
|
|
1106
|
-
parsedBody,
|
|
1107
|
-
errorCode,
|
|
1108
|
-
});
|
|
1109
|
-
}
|
|
1110
|
-
};
|
|
1111
|
-
const de_ExportNotebookCommand = async (output, context) => {
|
|
1112
|
-
if (output.statusCode >= 300) {
|
|
1113
|
-
return de_ExportNotebookCommandError(output, context);
|
|
1114
|
-
}
|
|
1115
|
-
const data = await parseBody(output.body, context);
|
|
1116
|
-
let contents = {};
|
|
1117
|
-
contents = de_ExportNotebookOutput(data, context);
|
|
1118
|
-
const response = {
|
|
1119
|
-
$metadata: deserializeMetadata(output),
|
|
1120
|
-
...contents,
|
|
1121
|
-
};
|
|
1122
|
-
return response;
|
|
1123
|
-
};
|
|
1124
|
-
exports.de_ExportNotebookCommand = de_ExportNotebookCommand;
|
|
1125
|
-
const de_ExportNotebookCommandError = async (output, context) => {
|
|
1126
|
-
const parsedOutput = {
|
|
1127
|
-
...output,
|
|
1128
|
-
body: await parseErrorBody(output.body, context),
|
|
1129
|
-
};
|
|
1130
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1131
|
-
switch (errorCode) {
|
|
1132
|
-
case "InternalServerException":
|
|
1133
|
-
case "com.amazonaws.athena#InternalServerException":
|
|
1134
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1135
|
-
case "InvalidRequestException":
|
|
1136
|
-
case "com.amazonaws.athena#InvalidRequestException":
|
|
1137
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1138
|
-
case "TooManyRequestsException":
|
|
1139
|
-
case "com.amazonaws.athena#TooManyRequestsException":
|
|
1140
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1141
|
-
default:
|
|
1142
|
-
const parsedBody = parsedOutput.body;
|
|
1143
|
-
return throwDefaultError({
|
|
1144
|
-
output,
|
|
1145
|
-
parsedBody,
|
|
1146
|
-
errorCode,
|
|
1147
|
-
});
|
|
1148
|
-
}
|
|
1149
|
-
};
|
|
1150
|
-
const de_GetCalculationExecutionCommand = async (output, context) => {
|
|
1151
|
-
if (output.statusCode >= 300) {
|
|
1152
|
-
return de_GetCalculationExecutionCommandError(output, context);
|
|
1153
|
-
}
|
|
1154
|
-
const data = await parseBody(output.body, context);
|
|
1155
|
-
let contents = {};
|
|
1156
|
-
contents = de_GetCalculationExecutionResponse(data, context);
|
|
1157
|
-
const response = {
|
|
1158
|
-
$metadata: deserializeMetadata(output),
|
|
1159
|
-
...contents,
|
|
1160
|
-
};
|
|
1161
|
-
return response;
|
|
1162
|
-
};
|
|
1163
|
-
exports.de_GetCalculationExecutionCommand = de_GetCalculationExecutionCommand;
|
|
1164
|
-
const de_GetCalculationExecutionCommandError = async (output, context) => {
|
|
1165
|
-
const parsedOutput = {
|
|
1166
|
-
...output,
|
|
1167
|
-
body: await parseErrorBody(output.body, context),
|
|
1168
|
-
};
|
|
1169
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1170
|
-
switch (errorCode) {
|
|
1171
|
-
case "InternalServerException":
|
|
1172
|
-
case "com.amazonaws.athena#InternalServerException":
|
|
1173
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1174
|
-
case "InvalidRequestException":
|
|
1175
|
-
case "com.amazonaws.athena#InvalidRequestException":
|
|
1176
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1177
|
-
case "ResourceNotFoundException":
|
|
1178
|
-
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
1179
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1180
|
-
default:
|
|
1181
|
-
const parsedBody = parsedOutput.body;
|
|
1182
|
-
return throwDefaultError({
|
|
1183
|
-
output,
|
|
1184
|
-
parsedBody,
|
|
1185
|
-
errorCode,
|
|
1186
|
-
});
|
|
1187
|
-
}
|
|
1188
|
-
};
|
|
1189
|
-
const de_GetCalculationExecutionCodeCommand = async (output, context) => {
|
|
1190
|
-
if (output.statusCode >= 300) {
|
|
1191
|
-
return de_GetCalculationExecutionCodeCommandError(output, context);
|
|
1192
|
-
}
|
|
1193
|
-
const data = await parseBody(output.body, context);
|
|
1194
|
-
let contents = {};
|
|
1195
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1196
|
-
const response = {
|
|
1197
|
-
$metadata: deserializeMetadata(output),
|
|
1198
|
-
...contents,
|
|
1199
|
-
};
|
|
1200
|
-
return response;
|
|
1201
|
-
};
|
|
1202
|
-
exports.de_GetCalculationExecutionCodeCommand = de_GetCalculationExecutionCodeCommand;
|
|
1203
|
-
const de_GetCalculationExecutionCodeCommandError = async (output, context) => {
|
|
1204
|
-
const parsedOutput = {
|
|
1205
|
-
...output,
|
|
1206
|
-
body: await parseErrorBody(output.body, context),
|
|
1207
|
-
};
|
|
1208
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1209
|
-
switch (errorCode) {
|
|
1210
|
-
case "InternalServerException":
|
|
1211
|
-
case "com.amazonaws.athena#InternalServerException":
|
|
1212
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1213
|
-
case "InvalidRequestException":
|
|
1214
|
-
case "com.amazonaws.athena#InvalidRequestException":
|
|
1215
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1216
|
-
case "ResourceNotFoundException":
|
|
1217
|
-
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
1218
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1219
|
-
default:
|
|
1220
|
-
const parsedBody = parsedOutput.body;
|
|
1221
|
-
return throwDefaultError({
|
|
1222
|
-
output,
|
|
1223
|
-
parsedBody,
|
|
1224
|
-
errorCode,
|
|
1225
|
-
});
|
|
1226
|
-
}
|
|
1227
|
-
};
|
|
1228
|
-
const de_GetCalculationExecutionStatusCommand = async (output, context) => {
|
|
1229
|
-
if (output.statusCode >= 300) {
|
|
1230
|
-
return de_GetCalculationExecutionStatusCommandError(output, context);
|
|
1231
|
-
}
|
|
1232
|
-
const data = await parseBody(output.body, context);
|
|
1233
|
-
let contents = {};
|
|
1234
|
-
contents = de_GetCalculationExecutionStatusResponse(data, context);
|
|
1235
|
-
const response = {
|
|
1236
|
-
$metadata: deserializeMetadata(output),
|
|
1237
|
-
...contents,
|
|
1238
|
-
};
|
|
1239
|
-
return response;
|
|
1240
|
-
};
|
|
1241
|
-
exports.de_GetCalculationExecutionStatusCommand = de_GetCalculationExecutionStatusCommand;
|
|
1242
|
-
const de_GetCalculationExecutionStatusCommandError = async (output, context) => {
|
|
1243
|
-
const parsedOutput = {
|
|
1244
|
-
...output,
|
|
1245
|
-
body: await parseErrorBody(output.body, context),
|
|
1246
|
-
};
|
|
1247
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1248
|
-
switch (errorCode) {
|
|
1249
|
-
case "InternalServerException":
|
|
1250
|
-
case "com.amazonaws.athena#InternalServerException":
|
|
1251
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1252
|
-
case "InvalidRequestException":
|
|
1253
|
-
case "com.amazonaws.athena#InvalidRequestException":
|
|
1254
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1255
|
-
case "ResourceNotFoundException":
|
|
1256
|
-
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
1257
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1258
|
-
default:
|
|
1259
|
-
const parsedBody = parsedOutput.body;
|
|
1260
|
-
return throwDefaultError({
|
|
1261
|
-
output,
|
|
1262
|
-
parsedBody,
|
|
1263
|
-
errorCode,
|
|
1264
|
-
});
|
|
1265
|
-
}
|
|
1266
|
-
};
|
|
1267
|
-
const de_GetCapacityAssignmentConfigurationCommand = async (output, context) => {
|
|
1268
|
-
if (output.statusCode >= 300) {
|
|
1269
|
-
return de_GetCapacityAssignmentConfigurationCommandError(output, context);
|
|
1270
|
-
}
|
|
1271
|
-
const data = await parseBody(output.body, context);
|
|
1272
|
-
let contents = {};
|
|
1273
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1274
|
-
const response = {
|
|
1275
|
-
$metadata: deserializeMetadata(output),
|
|
1276
|
-
...contents,
|
|
1277
|
-
};
|
|
1278
|
-
return response;
|
|
1279
|
-
};
|
|
1280
|
-
exports.de_GetCapacityAssignmentConfigurationCommand = de_GetCapacityAssignmentConfigurationCommand;
|
|
1281
|
-
const de_GetCapacityAssignmentConfigurationCommandError = async (output, context) => {
|
|
1282
|
-
const parsedOutput = {
|
|
1283
|
-
...output,
|
|
1284
|
-
body: await parseErrorBody(output.body, context),
|
|
1285
|
-
};
|
|
1286
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1287
|
-
switch (errorCode) {
|
|
1288
|
-
case "InternalServerException":
|
|
1289
|
-
case "com.amazonaws.athena#InternalServerException":
|
|
1290
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1291
|
-
case "InvalidRequestException":
|
|
1292
|
-
case "com.amazonaws.athena#InvalidRequestException":
|
|
1293
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1294
|
-
default:
|
|
1295
|
-
const parsedBody = parsedOutput.body;
|
|
1296
|
-
return throwDefaultError({
|
|
1297
|
-
output,
|
|
1298
|
-
parsedBody,
|
|
1299
|
-
errorCode,
|
|
1300
|
-
});
|
|
1301
|
-
}
|
|
1302
|
-
};
|
|
1303
|
-
const de_GetCapacityReservationCommand = async (output, context) => {
|
|
1304
|
-
if (output.statusCode >= 300) {
|
|
1305
|
-
return de_GetCapacityReservationCommandError(output, context);
|
|
1306
|
-
}
|
|
1307
|
-
const data = await parseBody(output.body, context);
|
|
1308
|
-
let contents = {};
|
|
1309
|
-
contents = de_GetCapacityReservationOutput(data, context);
|
|
1310
|
-
const response = {
|
|
1311
|
-
$metadata: deserializeMetadata(output),
|
|
1312
|
-
...contents,
|
|
1313
|
-
};
|
|
1314
|
-
return response;
|
|
1315
|
-
};
|
|
1316
|
-
exports.de_GetCapacityReservationCommand = de_GetCapacityReservationCommand;
|
|
1317
|
-
const de_GetCapacityReservationCommandError = async (output, context) => {
|
|
1318
|
-
const parsedOutput = {
|
|
1319
|
-
...output,
|
|
1320
|
-
body: await parseErrorBody(output.body, context),
|
|
1321
|
-
};
|
|
1322
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1323
|
-
switch (errorCode) {
|
|
1324
|
-
case "InternalServerException":
|
|
1325
|
-
case "com.amazonaws.athena#InternalServerException":
|
|
1326
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1327
|
-
case "InvalidRequestException":
|
|
1328
|
-
case "com.amazonaws.athena#InvalidRequestException":
|
|
1329
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1330
|
-
default:
|
|
1331
|
-
const parsedBody = parsedOutput.body;
|
|
1332
|
-
return throwDefaultError({
|
|
1333
|
-
output,
|
|
1334
|
-
parsedBody,
|
|
1335
|
-
errorCode,
|
|
1336
|
-
});
|
|
1337
|
-
}
|
|
1338
|
-
};
|
|
1339
|
-
const de_GetDatabaseCommand = async (output, context) => {
|
|
1340
|
-
if (output.statusCode >= 300) {
|
|
1341
|
-
return de_GetDatabaseCommandError(output, context);
|
|
1342
|
-
}
|
|
1343
|
-
const data = await parseBody(output.body, context);
|
|
1344
|
-
let contents = {};
|
|
1345
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1346
|
-
const response = {
|
|
1347
|
-
$metadata: deserializeMetadata(output),
|
|
1348
|
-
...contents,
|
|
1349
|
-
};
|
|
1350
|
-
return response;
|
|
1351
|
-
};
|
|
1352
|
-
exports.de_GetDatabaseCommand = de_GetDatabaseCommand;
|
|
1353
|
-
const de_GetDatabaseCommandError = async (output, context) => {
|
|
1354
|
-
const parsedOutput = {
|
|
1355
|
-
...output,
|
|
1356
|
-
body: await parseErrorBody(output.body, context),
|
|
1357
|
-
};
|
|
1358
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1359
|
-
switch (errorCode) {
|
|
1360
|
-
case "InternalServerException":
|
|
1361
|
-
case "com.amazonaws.athena#InternalServerException":
|
|
1362
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1363
|
-
case "InvalidRequestException":
|
|
1364
|
-
case "com.amazonaws.athena#InvalidRequestException":
|
|
1365
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1366
|
-
case "MetadataException":
|
|
1367
|
-
case "com.amazonaws.athena#MetadataException":
|
|
1368
|
-
throw await de_MetadataExceptionRes(parsedOutput, context);
|
|
1369
|
-
default:
|
|
1370
|
-
const parsedBody = parsedOutput.body;
|
|
1371
|
-
return throwDefaultError({
|
|
1372
|
-
output,
|
|
1373
|
-
parsedBody,
|
|
1374
|
-
errorCode,
|
|
1375
|
-
});
|
|
1376
|
-
}
|
|
1377
|
-
};
|
|
1378
|
-
const de_GetDataCatalogCommand = async (output, context) => {
|
|
1379
|
-
if (output.statusCode >= 300) {
|
|
1380
|
-
return de_GetDataCatalogCommandError(output, context);
|
|
1381
|
-
}
|
|
1382
|
-
const data = await parseBody(output.body, context);
|
|
1383
|
-
let contents = {};
|
|
1384
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1385
|
-
const response = {
|
|
1386
|
-
$metadata: deserializeMetadata(output),
|
|
1387
|
-
...contents,
|
|
1388
|
-
};
|
|
1389
|
-
return response;
|
|
1390
|
-
};
|
|
1391
|
-
exports.de_GetDataCatalogCommand = de_GetDataCatalogCommand;
|
|
1392
|
-
const de_GetDataCatalogCommandError = async (output, context) => {
|
|
1393
|
-
const parsedOutput = {
|
|
1394
|
-
...output,
|
|
1395
|
-
body: await parseErrorBody(output.body, context),
|
|
1396
|
-
};
|
|
1397
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1398
|
-
switch (errorCode) {
|
|
1399
|
-
case "InternalServerException":
|
|
1400
|
-
case "com.amazonaws.athena#InternalServerException":
|
|
1401
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1402
|
-
case "InvalidRequestException":
|
|
1403
|
-
case "com.amazonaws.athena#InvalidRequestException":
|
|
1404
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1405
|
-
default:
|
|
1406
|
-
const parsedBody = parsedOutput.body;
|
|
1407
|
-
return throwDefaultError({
|
|
1408
|
-
output,
|
|
1409
|
-
parsedBody,
|
|
1410
|
-
errorCode,
|
|
1411
|
-
});
|
|
1412
|
-
}
|
|
1413
|
-
};
|
|
1414
|
-
const de_GetNamedQueryCommand = async (output, context) => {
|
|
1415
|
-
if (output.statusCode >= 300) {
|
|
1416
|
-
return de_GetNamedQueryCommandError(output, context);
|
|
1417
|
-
}
|
|
1418
|
-
const data = await parseBody(output.body, context);
|
|
1419
|
-
let contents = {};
|
|
1420
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1421
|
-
const response = {
|
|
1422
|
-
$metadata: deserializeMetadata(output),
|
|
1423
|
-
...contents,
|
|
1424
|
-
};
|
|
1425
|
-
return response;
|
|
1426
|
-
};
|
|
1427
|
-
exports.de_GetNamedQueryCommand = de_GetNamedQueryCommand;
|
|
1428
|
-
const de_GetNamedQueryCommandError = async (output, context) => {
|
|
1429
|
-
const parsedOutput = {
|
|
1430
|
-
...output,
|
|
1431
|
-
body: await parseErrorBody(output.body, context),
|
|
1432
|
-
};
|
|
1433
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1434
|
-
switch (errorCode) {
|
|
1435
|
-
case "InternalServerException":
|
|
1436
|
-
case "com.amazonaws.athena#InternalServerException":
|
|
1437
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1438
|
-
case "InvalidRequestException":
|
|
1439
|
-
case "com.amazonaws.athena#InvalidRequestException":
|
|
1440
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1441
|
-
default:
|
|
1442
|
-
const parsedBody = parsedOutput.body;
|
|
1443
|
-
return throwDefaultError({
|
|
1444
|
-
output,
|
|
1445
|
-
parsedBody,
|
|
1446
|
-
errorCode,
|
|
1447
|
-
});
|
|
1448
|
-
}
|
|
1449
|
-
};
|
|
1450
|
-
const de_GetNotebookMetadataCommand = async (output, context) => {
|
|
1451
|
-
if (output.statusCode >= 300) {
|
|
1452
|
-
return de_GetNotebookMetadataCommandError(output, context);
|
|
1453
|
-
}
|
|
1454
|
-
const data = await parseBody(output.body, context);
|
|
1455
|
-
let contents = {};
|
|
1456
|
-
contents = de_GetNotebookMetadataOutput(data, context);
|
|
1457
|
-
const response = {
|
|
1458
|
-
$metadata: deserializeMetadata(output),
|
|
1459
|
-
...contents,
|
|
1460
|
-
};
|
|
1461
|
-
return response;
|
|
1462
|
-
};
|
|
1463
|
-
exports.de_GetNotebookMetadataCommand = de_GetNotebookMetadataCommand;
|
|
1464
|
-
const de_GetNotebookMetadataCommandError = async (output, context) => {
|
|
1465
|
-
const parsedOutput = {
|
|
1466
|
-
...output,
|
|
1467
|
-
body: await parseErrorBody(output.body, context),
|
|
1468
|
-
};
|
|
1469
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1470
|
-
switch (errorCode) {
|
|
1471
|
-
case "InternalServerException":
|
|
1472
|
-
case "com.amazonaws.athena#InternalServerException":
|
|
1473
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1474
|
-
case "InvalidRequestException":
|
|
1475
|
-
case "com.amazonaws.athena#InvalidRequestException":
|
|
1476
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1477
|
-
case "TooManyRequestsException":
|
|
1478
|
-
case "com.amazonaws.athena#TooManyRequestsException":
|
|
1479
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1480
|
-
default:
|
|
1481
|
-
const parsedBody = parsedOutput.body;
|
|
1482
|
-
return throwDefaultError({
|
|
1483
|
-
output,
|
|
1484
|
-
parsedBody,
|
|
1485
|
-
errorCode,
|
|
1486
|
-
});
|
|
1487
|
-
}
|
|
1488
|
-
};
|
|
1489
|
-
const de_GetPreparedStatementCommand = async (output, context) => {
|
|
1490
|
-
if (output.statusCode >= 300) {
|
|
1491
|
-
return de_GetPreparedStatementCommandError(output, context);
|
|
1492
|
-
}
|
|
1493
|
-
const data = await parseBody(output.body, context);
|
|
1494
|
-
let contents = {};
|
|
1495
|
-
contents = de_GetPreparedStatementOutput(data, context);
|
|
1496
|
-
const response = {
|
|
1497
|
-
$metadata: deserializeMetadata(output),
|
|
1498
|
-
...contents,
|
|
1499
|
-
};
|
|
1500
|
-
return response;
|
|
1501
|
-
};
|
|
1502
|
-
exports.de_GetPreparedStatementCommand = de_GetPreparedStatementCommand;
|
|
1503
|
-
const de_GetPreparedStatementCommandError = async (output, context) => {
|
|
1504
|
-
const parsedOutput = {
|
|
1505
|
-
...output,
|
|
1506
|
-
body: await parseErrorBody(output.body, context),
|
|
1507
|
-
};
|
|
1508
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1509
|
-
switch (errorCode) {
|
|
1510
|
-
case "InternalServerException":
|
|
1511
|
-
case "com.amazonaws.athena#InternalServerException":
|
|
1512
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1513
|
-
case "InvalidRequestException":
|
|
1514
|
-
case "com.amazonaws.athena#InvalidRequestException":
|
|
1515
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1516
|
-
case "ResourceNotFoundException":
|
|
1517
|
-
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
1518
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1519
|
-
default:
|
|
1520
|
-
const parsedBody = parsedOutput.body;
|
|
1521
|
-
return throwDefaultError({
|
|
1522
|
-
output,
|
|
1523
|
-
parsedBody,
|
|
1524
|
-
errorCode,
|
|
1525
|
-
});
|
|
1526
|
-
}
|
|
1527
|
-
};
|
|
1528
|
-
const de_GetQueryExecutionCommand = async (output, context) => {
|
|
1529
|
-
if (output.statusCode >= 300) {
|
|
1530
|
-
return de_GetQueryExecutionCommandError(output, context);
|
|
1531
|
-
}
|
|
1532
|
-
const data = await parseBody(output.body, context);
|
|
1533
|
-
let contents = {};
|
|
1534
|
-
contents = de_GetQueryExecutionOutput(data, context);
|
|
1535
|
-
const response = {
|
|
1536
|
-
$metadata: deserializeMetadata(output),
|
|
1537
|
-
...contents,
|
|
1538
|
-
};
|
|
1539
|
-
return response;
|
|
1540
|
-
};
|
|
1541
|
-
exports.de_GetQueryExecutionCommand = de_GetQueryExecutionCommand;
|
|
1542
|
-
const de_GetQueryExecutionCommandError = async (output, context) => {
|
|
1543
|
-
const parsedOutput = {
|
|
1544
|
-
...output,
|
|
1545
|
-
body: await parseErrorBody(output.body, context),
|
|
1546
|
-
};
|
|
1547
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1548
|
-
switch (errorCode) {
|
|
1549
|
-
case "InternalServerException":
|
|
1550
|
-
case "com.amazonaws.athena#InternalServerException":
|
|
1551
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1552
|
-
case "InvalidRequestException":
|
|
1553
|
-
case "com.amazonaws.athena#InvalidRequestException":
|
|
1554
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1555
|
-
default:
|
|
1556
|
-
const parsedBody = parsedOutput.body;
|
|
1557
|
-
return throwDefaultError({
|
|
1558
|
-
output,
|
|
1559
|
-
parsedBody,
|
|
1560
|
-
errorCode,
|
|
1561
|
-
});
|
|
1562
|
-
}
|
|
1563
|
-
};
|
|
1564
|
-
const de_GetQueryResultsCommand = async (output, context) => {
|
|
1565
|
-
if (output.statusCode >= 300) {
|
|
1566
|
-
return de_GetQueryResultsCommandError(output, context);
|
|
1567
|
-
}
|
|
1568
|
-
const data = await parseBody(output.body, context);
|
|
1569
|
-
let contents = {};
|
|
1570
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1571
|
-
const response = {
|
|
1572
|
-
$metadata: deserializeMetadata(output),
|
|
1573
|
-
...contents,
|
|
1574
|
-
};
|
|
1575
|
-
return response;
|
|
1576
|
-
};
|
|
1577
|
-
exports.de_GetQueryResultsCommand = de_GetQueryResultsCommand;
|
|
1578
|
-
const de_GetQueryResultsCommandError = async (output, context) => {
|
|
1579
|
-
const parsedOutput = {
|
|
1580
|
-
...output,
|
|
1581
|
-
body: await parseErrorBody(output.body, context),
|
|
1582
|
-
};
|
|
1583
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1584
|
-
switch (errorCode) {
|
|
1585
|
-
case "InternalServerException":
|
|
1586
|
-
case "com.amazonaws.athena#InternalServerException":
|
|
1587
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1588
|
-
case "InvalidRequestException":
|
|
1589
|
-
case "com.amazonaws.athena#InvalidRequestException":
|
|
1590
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1591
|
-
case "TooManyRequestsException":
|
|
1592
|
-
case "com.amazonaws.athena#TooManyRequestsException":
|
|
1593
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1594
|
-
default:
|
|
1595
|
-
const parsedBody = parsedOutput.body;
|
|
1596
|
-
return throwDefaultError({
|
|
1597
|
-
output,
|
|
1598
|
-
parsedBody,
|
|
1599
|
-
errorCode,
|
|
1600
|
-
});
|
|
1601
|
-
}
|
|
1602
|
-
};
|
|
1603
|
-
const de_GetQueryRuntimeStatisticsCommand = async (output, context) => {
|
|
1604
|
-
if (output.statusCode >= 300) {
|
|
1605
|
-
return de_GetQueryRuntimeStatisticsCommandError(output, context);
|
|
1606
|
-
}
|
|
1607
|
-
const data = await parseBody(output.body, context);
|
|
1608
|
-
let contents = {};
|
|
1609
|
-
contents = de_GetQueryRuntimeStatisticsOutput(data, context);
|
|
1610
|
-
const response = {
|
|
1611
|
-
$metadata: deserializeMetadata(output),
|
|
1612
|
-
...contents,
|
|
1613
|
-
};
|
|
1614
|
-
return response;
|
|
1615
|
-
};
|
|
1616
|
-
exports.de_GetQueryRuntimeStatisticsCommand = de_GetQueryRuntimeStatisticsCommand;
|
|
1617
|
-
const de_GetQueryRuntimeStatisticsCommandError = async (output, context) => {
|
|
1618
|
-
const parsedOutput = {
|
|
1619
|
-
...output,
|
|
1620
|
-
body: await parseErrorBody(output.body, context),
|
|
1621
|
-
};
|
|
1622
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1623
|
-
switch (errorCode) {
|
|
1624
|
-
case "InternalServerException":
|
|
1625
|
-
case "com.amazonaws.athena#InternalServerException":
|
|
1626
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1627
|
-
case "InvalidRequestException":
|
|
1628
|
-
case "com.amazonaws.athena#InvalidRequestException":
|
|
1629
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1630
|
-
default:
|
|
1631
|
-
const parsedBody = parsedOutput.body;
|
|
1632
|
-
return throwDefaultError({
|
|
1633
|
-
output,
|
|
1634
|
-
parsedBody,
|
|
1635
|
-
errorCode,
|
|
1636
|
-
});
|
|
1637
|
-
}
|
|
1638
|
-
};
|
|
1639
|
-
const de_GetSessionCommand = async (output, context) => {
|
|
1640
|
-
if (output.statusCode >= 300) {
|
|
1641
|
-
return de_GetSessionCommandError(output, context);
|
|
1642
|
-
}
|
|
1643
|
-
const data = await parseBody(output.body, context);
|
|
1644
|
-
let contents = {};
|
|
1645
|
-
contents = de_GetSessionResponse(data, context);
|
|
1646
|
-
const response = {
|
|
1647
|
-
$metadata: deserializeMetadata(output),
|
|
1648
|
-
...contents,
|
|
1649
|
-
};
|
|
1650
|
-
return response;
|
|
1651
|
-
};
|
|
1652
|
-
exports.de_GetSessionCommand = de_GetSessionCommand;
|
|
1653
|
-
const de_GetSessionCommandError = async (output, context) => {
|
|
1654
|
-
const parsedOutput = {
|
|
1655
|
-
...output,
|
|
1656
|
-
body: await parseErrorBody(output.body, context),
|
|
1657
|
-
};
|
|
1658
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1659
|
-
switch (errorCode) {
|
|
1660
|
-
case "InternalServerException":
|
|
1661
|
-
case "com.amazonaws.athena#InternalServerException":
|
|
1662
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1663
|
-
case "InvalidRequestException":
|
|
1664
|
-
case "com.amazonaws.athena#InvalidRequestException":
|
|
1665
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1666
|
-
case "ResourceNotFoundException":
|
|
1667
|
-
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
1668
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1669
|
-
default:
|
|
1670
|
-
const parsedBody = parsedOutput.body;
|
|
1671
|
-
return throwDefaultError({
|
|
1672
|
-
output,
|
|
1673
|
-
parsedBody,
|
|
1674
|
-
errorCode,
|
|
1675
|
-
});
|
|
1676
|
-
}
|
|
1677
|
-
};
|
|
1678
|
-
const de_GetSessionStatusCommand = async (output, context) => {
|
|
1679
|
-
if (output.statusCode >= 300) {
|
|
1680
|
-
return de_GetSessionStatusCommandError(output, context);
|
|
1681
|
-
}
|
|
1682
|
-
const data = await parseBody(output.body, context);
|
|
1683
|
-
let contents = {};
|
|
1684
|
-
contents = de_GetSessionStatusResponse(data, context);
|
|
1685
|
-
const response = {
|
|
1686
|
-
$metadata: deserializeMetadata(output),
|
|
1687
|
-
...contents,
|
|
1688
|
-
};
|
|
1689
|
-
return response;
|
|
1690
|
-
};
|
|
1691
|
-
exports.de_GetSessionStatusCommand = de_GetSessionStatusCommand;
|
|
1692
|
-
const de_GetSessionStatusCommandError = async (output, context) => {
|
|
1693
|
-
const parsedOutput = {
|
|
1694
|
-
...output,
|
|
1695
|
-
body: await parseErrorBody(output.body, context),
|
|
1696
|
-
};
|
|
1697
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1698
|
-
switch (errorCode) {
|
|
1699
|
-
case "InternalServerException":
|
|
1700
|
-
case "com.amazonaws.athena#InternalServerException":
|
|
1701
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1702
|
-
case "InvalidRequestException":
|
|
1703
|
-
case "com.amazonaws.athena#InvalidRequestException":
|
|
1704
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1705
|
-
case "ResourceNotFoundException":
|
|
1706
|
-
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
1707
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1708
|
-
default:
|
|
1709
|
-
const parsedBody = parsedOutput.body;
|
|
1710
|
-
return throwDefaultError({
|
|
1711
|
-
output,
|
|
1712
|
-
parsedBody,
|
|
1713
|
-
errorCode,
|
|
1714
|
-
});
|
|
1715
|
-
}
|
|
1716
|
-
};
|
|
1717
|
-
const de_GetTableMetadataCommand = async (output, context) => {
|
|
1718
|
-
if (output.statusCode >= 300) {
|
|
1719
|
-
return de_GetTableMetadataCommandError(output, context);
|
|
1720
|
-
}
|
|
1721
|
-
const data = await parseBody(output.body, context);
|
|
1722
|
-
let contents = {};
|
|
1723
|
-
contents = de_GetTableMetadataOutput(data, context);
|
|
1724
|
-
const response = {
|
|
1725
|
-
$metadata: deserializeMetadata(output),
|
|
1726
|
-
...contents,
|
|
1727
|
-
};
|
|
1728
|
-
return response;
|
|
1729
|
-
};
|
|
1730
|
-
exports.de_GetTableMetadataCommand = de_GetTableMetadataCommand;
|
|
1731
|
-
const de_GetTableMetadataCommandError = async (output, context) => {
|
|
1732
|
-
const parsedOutput = {
|
|
1733
|
-
...output,
|
|
1734
|
-
body: await parseErrorBody(output.body, context),
|
|
1735
|
-
};
|
|
1736
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1737
|
-
switch (errorCode) {
|
|
1738
|
-
case "InternalServerException":
|
|
1739
|
-
case "com.amazonaws.athena#InternalServerException":
|
|
1740
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1741
|
-
case "InvalidRequestException":
|
|
1742
|
-
case "com.amazonaws.athena#InvalidRequestException":
|
|
1743
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1744
|
-
case "MetadataException":
|
|
1745
|
-
case "com.amazonaws.athena#MetadataException":
|
|
1746
|
-
throw await de_MetadataExceptionRes(parsedOutput, context);
|
|
1747
|
-
default:
|
|
1748
|
-
const parsedBody = parsedOutput.body;
|
|
1749
|
-
return throwDefaultError({
|
|
1750
|
-
output,
|
|
1751
|
-
parsedBody,
|
|
1752
|
-
errorCode,
|
|
1753
|
-
});
|
|
1754
|
-
}
|
|
1755
|
-
};
|
|
1756
|
-
const de_GetWorkGroupCommand = async (output, context) => {
|
|
1757
|
-
if (output.statusCode >= 300) {
|
|
1758
|
-
return de_GetWorkGroupCommandError(output, context);
|
|
1759
|
-
}
|
|
1760
|
-
const data = await parseBody(output.body, context);
|
|
1761
|
-
let contents = {};
|
|
1762
|
-
contents = de_GetWorkGroupOutput(data, context);
|
|
1763
|
-
const response = {
|
|
1764
|
-
$metadata: deserializeMetadata(output),
|
|
1765
|
-
...contents,
|
|
1766
|
-
};
|
|
1767
|
-
return response;
|
|
1768
|
-
};
|
|
1769
|
-
exports.de_GetWorkGroupCommand = de_GetWorkGroupCommand;
|
|
1770
|
-
const de_GetWorkGroupCommandError = async (output, context) => {
|
|
1771
|
-
const parsedOutput = {
|
|
1772
|
-
...output,
|
|
1773
|
-
body: await parseErrorBody(output.body, context),
|
|
1774
|
-
};
|
|
1775
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1776
|
-
switch (errorCode) {
|
|
1777
|
-
case "InternalServerException":
|
|
1778
|
-
case "com.amazonaws.athena#InternalServerException":
|
|
1779
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1780
|
-
case "InvalidRequestException":
|
|
1781
|
-
case "com.amazonaws.athena#InvalidRequestException":
|
|
1782
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1783
|
-
default:
|
|
1784
|
-
const parsedBody = parsedOutput.body;
|
|
1785
|
-
return throwDefaultError({
|
|
1786
|
-
output,
|
|
1787
|
-
parsedBody,
|
|
1788
|
-
errorCode,
|
|
1789
|
-
});
|
|
1790
|
-
}
|
|
1791
|
-
};
|
|
1792
|
-
const de_ImportNotebookCommand = async (output, context) => {
|
|
1793
|
-
if (output.statusCode >= 300) {
|
|
1794
|
-
return de_ImportNotebookCommandError(output, context);
|
|
1795
|
-
}
|
|
1796
|
-
const data = await parseBody(output.body, context);
|
|
1797
|
-
let contents = {};
|
|
1798
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1799
|
-
const response = {
|
|
1800
|
-
$metadata: deserializeMetadata(output),
|
|
1801
|
-
...contents,
|
|
1802
|
-
};
|
|
1803
|
-
return response;
|
|
1804
|
-
};
|
|
1805
|
-
exports.de_ImportNotebookCommand = de_ImportNotebookCommand;
|
|
1806
|
-
const de_ImportNotebookCommandError = async (output, context) => {
|
|
1807
|
-
const parsedOutput = {
|
|
1808
|
-
...output,
|
|
1809
|
-
body: await parseErrorBody(output.body, context),
|
|
1810
|
-
};
|
|
1811
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1812
|
-
switch (errorCode) {
|
|
1813
|
-
case "InternalServerException":
|
|
1814
|
-
case "com.amazonaws.athena#InternalServerException":
|
|
1815
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1816
|
-
case "InvalidRequestException":
|
|
1817
|
-
case "com.amazonaws.athena#InvalidRequestException":
|
|
1818
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1819
|
-
case "TooManyRequestsException":
|
|
1820
|
-
case "com.amazonaws.athena#TooManyRequestsException":
|
|
1821
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1822
|
-
default:
|
|
1823
|
-
const parsedBody = parsedOutput.body;
|
|
1824
|
-
return throwDefaultError({
|
|
1825
|
-
output,
|
|
1826
|
-
parsedBody,
|
|
1827
|
-
errorCode,
|
|
1828
|
-
});
|
|
1829
|
-
}
|
|
1830
|
-
};
|
|
1831
|
-
const de_ListApplicationDPUSizesCommand = async (output, context) => {
|
|
1832
|
-
if (output.statusCode >= 300) {
|
|
1833
|
-
return de_ListApplicationDPUSizesCommandError(output, context);
|
|
1834
|
-
}
|
|
1835
|
-
const data = await parseBody(output.body, context);
|
|
1836
|
-
let contents = {};
|
|
1837
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1838
|
-
const response = {
|
|
1839
|
-
$metadata: deserializeMetadata(output),
|
|
1840
|
-
...contents,
|
|
1841
|
-
};
|
|
1842
|
-
return response;
|
|
1843
|
-
};
|
|
1844
|
-
exports.de_ListApplicationDPUSizesCommand = de_ListApplicationDPUSizesCommand;
|
|
1845
|
-
const de_ListApplicationDPUSizesCommandError = async (output, context) => {
|
|
1846
|
-
const parsedOutput = {
|
|
1847
|
-
...output,
|
|
1848
|
-
body: await parseErrorBody(output.body, context),
|
|
1849
|
-
};
|
|
1850
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1851
|
-
switch (errorCode) {
|
|
1852
|
-
case "InternalServerException":
|
|
1853
|
-
case "com.amazonaws.athena#InternalServerException":
|
|
1854
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1855
|
-
case "InvalidRequestException":
|
|
1856
|
-
case "com.amazonaws.athena#InvalidRequestException":
|
|
1857
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1858
|
-
case "TooManyRequestsException":
|
|
1859
|
-
case "com.amazonaws.athena#TooManyRequestsException":
|
|
1860
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1861
|
-
default:
|
|
1862
|
-
const parsedBody = parsedOutput.body;
|
|
1863
|
-
return throwDefaultError({
|
|
1864
|
-
output,
|
|
1865
|
-
parsedBody,
|
|
1866
|
-
errorCode,
|
|
1867
|
-
});
|
|
1868
|
-
}
|
|
1869
|
-
};
|
|
1870
|
-
const de_ListCalculationExecutionsCommand = async (output, context) => {
|
|
1871
|
-
if (output.statusCode >= 300) {
|
|
1872
|
-
return de_ListCalculationExecutionsCommandError(output, context);
|
|
1873
|
-
}
|
|
1874
|
-
const data = await parseBody(output.body, context);
|
|
1875
|
-
let contents = {};
|
|
1876
|
-
contents = de_ListCalculationExecutionsResponse(data, context);
|
|
1877
|
-
const response = {
|
|
1878
|
-
$metadata: deserializeMetadata(output),
|
|
1879
|
-
...contents,
|
|
1880
|
-
};
|
|
1881
|
-
return response;
|
|
1882
|
-
};
|
|
1883
|
-
exports.de_ListCalculationExecutionsCommand = de_ListCalculationExecutionsCommand;
|
|
1884
|
-
const de_ListCalculationExecutionsCommandError = async (output, context) => {
|
|
1885
|
-
const parsedOutput = {
|
|
1886
|
-
...output,
|
|
1887
|
-
body: await parseErrorBody(output.body, context),
|
|
1888
|
-
};
|
|
1889
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1890
|
-
switch (errorCode) {
|
|
1891
|
-
case "InternalServerException":
|
|
1892
|
-
case "com.amazonaws.athena#InternalServerException":
|
|
1893
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1894
|
-
case "InvalidRequestException":
|
|
1895
|
-
case "com.amazonaws.athena#InvalidRequestException":
|
|
1896
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1897
|
-
case "ResourceNotFoundException":
|
|
1898
|
-
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
1899
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1900
|
-
default:
|
|
1901
|
-
const parsedBody = parsedOutput.body;
|
|
1902
|
-
return throwDefaultError({
|
|
1903
|
-
output,
|
|
1904
|
-
parsedBody,
|
|
1905
|
-
errorCode,
|
|
1906
|
-
});
|
|
1907
|
-
}
|
|
1908
|
-
};
|
|
1909
|
-
const de_ListCapacityReservationsCommand = async (output, context) => {
|
|
1910
|
-
if (output.statusCode >= 300) {
|
|
1911
|
-
return de_ListCapacityReservationsCommandError(output, context);
|
|
1912
|
-
}
|
|
1913
|
-
const data = await parseBody(output.body, context);
|
|
1914
|
-
let contents = {};
|
|
1915
|
-
contents = de_ListCapacityReservationsOutput(data, context);
|
|
1916
|
-
const response = {
|
|
1917
|
-
$metadata: deserializeMetadata(output),
|
|
1918
|
-
...contents,
|
|
1919
|
-
};
|
|
1920
|
-
return response;
|
|
1921
|
-
};
|
|
1922
|
-
exports.de_ListCapacityReservationsCommand = de_ListCapacityReservationsCommand;
|
|
1923
|
-
const de_ListCapacityReservationsCommandError = async (output, context) => {
|
|
1924
|
-
const parsedOutput = {
|
|
1925
|
-
...output,
|
|
1926
|
-
body: await parseErrorBody(output.body, context),
|
|
1927
|
-
};
|
|
1928
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1929
|
-
switch (errorCode) {
|
|
1930
|
-
case "InternalServerException":
|
|
1931
|
-
case "com.amazonaws.athena#InternalServerException":
|
|
1932
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1933
|
-
case "InvalidRequestException":
|
|
1934
|
-
case "com.amazonaws.athena#InvalidRequestException":
|
|
1935
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1936
|
-
default:
|
|
1937
|
-
const parsedBody = parsedOutput.body;
|
|
1938
|
-
return throwDefaultError({
|
|
1939
|
-
output,
|
|
1940
|
-
parsedBody,
|
|
1941
|
-
errorCode,
|
|
1942
|
-
});
|
|
1943
|
-
}
|
|
1944
|
-
};
|
|
1945
|
-
const de_ListDatabasesCommand = async (output, context) => {
|
|
1946
|
-
if (output.statusCode >= 300) {
|
|
1947
|
-
return de_ListDatabasesCommandError(output, context);
|
|
1948
|
-
}
|
|
1949
|
-
const data = await parseBody(output.body, context);
|
|
1950
|
-
let contents = {};
|
|
1951
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1952
|
-
const response = {
|
|
1953
|
-
$metadata: deserializeMetadata(output),
|
|
1954
|
-
...contents,
|
|
1955
|
-
};
|
|
1956
|
-
return response;
|
|
1957
|
-
};
|
|
1958
|
-
exports.de_ListDatabasesCommand = de_ListDatabasesCommand;
|
|
1959
|
-
const de_ListDatabasesCommandError = async (output, context) => {
|
|
1960
|
-
const parsedOutput = {
|
|
1961
|
-
...output,
|
|
1962
|
-
body: await parseErrorBody(output.body, context),
|
|
1963
|
-
};
|
|
1964
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1965
|
-
switch (errorCode) {
|
|
1966
|
-
case "InternalServerException":
|
|
1967
|
-
case "com.amazonaws.athena#InternalServerException":
|
|
1968
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1969
|
-
case "InvalidRequestException":
|
|
1970
|
-
case "com.amazonaws.athena#InvalidRequestException":
|
|
1971
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1972
|
-
case "MetadataException":
|
|
1973
|
-
case "com.amazonaws.athena#MetadataException":
|
|
1974
|
-
throw await de_MetadataExceptionRes(parsedOutput, context);
|
|
1975
|
-
default:
|
|
1976
|
-
const parsedBody = parsedOutput.body;
|
|
1977
|
-
return throwDefaultError({
|
|
1978
|
-
output,
|
|
1979
|
-
parsedBody,
|
|
1980
|
-
errorCode,
|
|
1981
|
-
});
|
|
1982
|
-
}
|
|
1983
|
-
};
|
|
1984
|
-
const de_ListDataCatalogsCommand = async (output, context) => {
|
|
1985
|
-
if (output.statusCode >= 300) {
|
|
1986
|
-
return de_ListDataCatalogsCommandError(output, context);
|
|
1987
|
-
}
|
|
1988
|
-
const data = await parseBody(output.body, context);
|
|
1989
|
-
let contents = {};
|
|
1990
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1991
|
-
const response = {
|
|
1992
|
-
$metadata: deserializeMetadata(output),
|
|
1993
|
-
...contents,
|
|
1994
|
-
};
|
|
1995
|
-
return response;
|
|
1996
|
-
};
|
|
1997
|
-
exports.de_ListDataCatalogsCommand = de_ListDataCatalogsCommand;
|
|
1998
|
-
const de_ListDataCatalogsCommandError = async (output, context) => {
|
|
1999
|
-
const parsedOutput = {
|
|
2000
|
-
...output,
|
|
2001
|
-
body: await parseErrorBody(output.body, context),
|
|
2002
|
-
};
|
|
2003
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2004
|
-
switch (errorCode) {
|
|
2005
|
-
case "InternalServerException":
|
|
2006
|
-
case "com.amazonaws.athena#InternalServerException":
|
|
2007
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2008
|
-
case "InvalidRequestException":
|
|
2009
|
-
case "com.amazonaws.athena#InvalidRequestException":
|
|
2010
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2011
|
-
default:
|
|
2012
|
-
const parsedBody = parsedOutput.body;
|
|
2013
|
-
return throwDefaultError({
|
|
2014
|
-
output,
|
|
2015
|
-
parsedBody,
|
|
2016
|
-
errorCode,
|
|
2017
|
-
});
|
|
2018
|
-
}
|
|
2019
|
-
};
|
|
2020
|
-
const de_ListEngineVersionsCommand = async (output, context) => {
|
|
2021
|
-
if (output.statusCode >= 300) {
|
|
2022
|
-
return de_ListEngineVersionsCommandError(output, context);
|
|
2023
|
-
}
|
|
2024
|
-
const data = await parseBody(output.body, context);
|
|
2025
|
-
let contents = {};
|
|
2026
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2027
|
-
const response = {
|
|
2028
|
-
$metadata: deserializeMetadata(output),
|
|
2029
|
-
...contents,
|
|
2030
|
-
};
|
|
2031
|
-
return response;
|
|
2032
|
-
};
|
|
2033
|
-
exports.de_ListEngineVersionsCommand = de_ListEngineVersionsCommand;
|
|
2034
|
-
const de_ListEngineVersionsCommandError = async (output, context) => {
|
|
2035
|
-
const parsedOutput = {
|
|
2036
|
-
...output,
|
|
2037
|
-
body: await parseErrorBody(output.body, context),
|
|
2038
|
-
};
|
|
2039
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2040
|
-
switch (errorCode) {
|
|
2041
|
-
case "InternalServerException":
|
|
2042
|
-
case "com.amazonaws.athena#InternalServerException":
|
|
2043
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2044
|
-
case "InvalidRequestException":
|
|
2045
|
-
case "com.amazonaws.athena#InvalidRequestException":
|
|
2046
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2047
|
-
default:
|
|
2048
|
-
const parsedBody = parsedOutput.body;
|
|
2049
|
-
return throwDefaultError({
|
|
2050
|
-
output,
|
|
2051
|
-
parsedBody,
|
|
2052
|
-
errorCode,
|
|
2053
|
-
});
|
|
2054
|
-
}
|
|
2055
|
-
};
|
|
2056
|
-
const de_ListExecutorsCommand = async (output, context) => {
|
|
2057
|
-
if (output.statusCode >= 300) {
|
|
2058
|
-
return de_ListExecutorsCommandError(output, context);
|
|
2059
|
-
}
|
|
2060
|
-
const data = await parseBody(output.body, context);
|
|
2061
|
-
let contents = {};
|
|
2062
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2063
|
-
const response = {
|
|
2064
|
-
$metadata: deserializeMetadata(output),
|
|
2065
|
-
...contents,
|
|
2066
|
-
};
|
|
2067
|
-
return response;
|
|
2068
|
-
};
|
|
2069
|
-
exports.de_ListExecutorsCommand = de_ListExecutorsCommand;
|
|
2070
|
-
const de_ListExecutorsCommandError = async (output, context) => {
|
|
2071
|
-
const parsedOutput = {
|
|
2072
|
-
...output,
|
|
2073
|
-
body: await parseErrorBody(output.body, context),
|
|
2074
|
-
};
|
|
2075
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2076
|
-
switch (errorCode) {
|
|
2077
|
-
case "InternalServerException":
|
|
2078
|
-
case "com.amazonaws.athena#InternalServerException":
|
|
2079
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2080
|
-
case "InvalidRequestException":
|
|
2081
|
-
case "com.amazonaws.athena#InvalidRequestException":
|
|
2082
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2083
|
-
case "ResourceNotFoundException":
|
|
2084
|
-
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
2085
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2086
|
-
default:
|
|
2087
|
-
const parsedBody = parsedOutput.body;
|
|
2088
|
-
return throwDefaultError({
|
|
2089
|
-
output,
|
|
2090
|
-
parsedBody,
|
|
2091
|
-
errorCode,
|
|
2092
|
-
});
|
|
2093
|
-
}
|
|
2094
|
-
};
|
|
2095
|
-
const de_ListNamedQueriesCommand = async (output, context) => {
|
|
2096
|
-
if (output.statusCode >= 300) {
|
|
2097
|
-
return de_ListNamedQueriesCommandError(output, context);
|
|
2098
|
-
}
|
|
2099
|
-
const data = await parseBody(output.body, context);
|
|
2100
|
-
let contents = {};
|
|
2101
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2102
|
-
const response = {
|
|
2103
|
-
$metadata: deserializeMetadata(output),
|
|
2104
|
-
...contents,
|
|
2105
|
-
};
|
|
2106
|
-
return response;
|
|
2107
|
-
};
|
|
2108
|
-
exports.de_ListNamedQueriesCommand = de_ListNamedQueriesCommand;
|
|
2109
|
-
const de_ListNamedQueriesCommandError = async (output, context) => {
|
|
2110
|
-
const parsedOutput = {
|
|
2111
|
-
...output,
|
|
2112
|
-
body: await parseErrorBody(output.body, context),
|
|
2113
|
-
};
|
|
2114
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2115
|
-
switch (errorCode) {
|
|
2116
|
-
case "InternalServerException":
|
|
2117
|
-
case "com.amazonaws.athena#InternalServerException":
|
|
2118
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2119
|
-
case "InvalidRequestException":
|
|
2120
|
-
case "com.amazonaws.athena#InvalidRequestException":
|
|
2121
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2122
|
-
default:
|
|
2123
|
-
const parsedBody = parsedOutput.body;
|
|
2124
|
-
return throwDefaultError({
|
|
2125
|
-
output,
|
|
2126
|
-
parsedBody,
|
|
2127
|
-
errorCode,
|
|
2128
|
-
});
|
|
2129
|
-
}
|
|
2130
|
-
};
|
|
2131
|
-
const de_ListNotebookMetadataCommand = async (output, context) => {
|
|
2132
|
-
if (output.statusCode >= 300) {
|
|
2133
|
-
return de_ListNotebookMetadataCommandError(output, context);
|
|
2134
|
-
}
|
|
2135
|
-
const data = await parseBody(output.body, context);
|
|
2136
|
-
let contents = {};
|
|
2137
|
-
contents = de_ListNotebookMetadataOutput(data, context);
|
|
2138
|
-
const response = {
|
|
2139
|
-
$metadata: deserializeMetadata(output),
|
|
2140
|
-
...contents,
|
|
2141
|
-
};
|
|
2142
|
-
return response;
|
|
2143
|
-
};
|
|
2144
|
-
exports.de_ListNotebookMetadataCommand = de_ListNotebookMetadataCommand;
|
|
2145
|
-
const de_ListNotebookMetadataCommandError = async (output, context) => {
|
|
2146
|
-
const parsedOutput = {
|
|
2147
|
-
...output,
|
|
2148
|
-
body: await parseErrorBody(output.body, context),
|
|
2149
|
-
};
|
|
2150
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2151
|
-
switch (errorCode) {
|
|
2152
|
-
case "InternalServerException":
|
|
2153
|
-
case "com.amazonaws.athena#InternalServerException":
|
|
2154
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2155
|
-
case "InvalidRequestException":
|
|
2156
|
-
case "com.amazonaws.athena#InvalidRequestException":
|
|
2157
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2158
|
-
case "TooManyRequestsException":
|
|
2159
|
-
case "com.amazonaws.athena#TooManyRequestsException":
|
|
2160
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2161
|
-
default:
|
|
2162
|
-
const parsedBody = parsedOutput.body;
|
|
2163
|
-
return throwDefaultError({
|
|
2164
|
-
output,
|
|
2165
|
-
parsedBody,
|
|
2166
|
-
errorCode,
|
|
2167
|
-
});
|
|
2168
|
-
}
|
|
2169
|
-
};
|
|
2170
|
-
const de_ListNotebookSessionsCommand = async (output, context) => {
|
|
2171
|
-
if (output.statusCode >= 300) {
|
|
2172
|
-
return de_ListNotebookSessionsCommandError(output, context);
|
|
2173
|
-
}
|
|
2174
|
-
const data = await parseBody(output.body, context);
|
|
2175
|
-
let contents = {};
|
|
2176
|
-
contents = de_ListNotebookSessionsResponse(data, context);
|
|
2177
|
-
const response = {
|
|
2178
|
-
$metadata: deserializeMetadata(output),
|
|
2179
|
-
...contents,
|
|
2180
|
-
};
|
|
2181
|
-
return response;
|
|
2182
|
-
};
|
|
2183
|
-
exports.de_ListNotebookSessionsCommand = de_ListNotebookSessionsCommand;
|
|
2184
|
-
const de_ListNotebookSessionsCommandError = async (output, context) => {
|
|
2185
|
-
const parsedOutput = {
|
|
2186
|
-
...output,
|
|
2187
|
-
body: await parseErrorBody(output.body, context),
|
|
2188
|
-
};
|
|
2189
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2190
|
-
switch (errorCode) {
|
|
2191
|
-
case "InternalServerException":
|
|
2192
|
-
case "com.amazonaws.athena#InternalServerException":
|
|
2193
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2194
|
-
case "InvalidRequestException":
|
|
2195
|
-
case "com.amazonaws.athena#InvalidRequestException":
|
|
2196
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2197
|
-
case "ResourceNotFoundException":
|
|
2198
|
-
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
2199
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2200
|
-
default:
|
|
2201
|
-
const parsedBody = parsedOutput.body;
|
|
2202
|
-
return throwDefaultError({
|
|
2203
|
-
output,
|
|
2204
|
-
parsedBody,
|
|
2205
|
-
errorCode,
|
|
2206
|
-
});
|
|
2207
|
-
}
|
|
2208
|
-
};
|
|
2209
|
-
const de_ListPreparedStatementsCommand = async (output, context) => {
|
|
2210
|
-
if (output.statusCode >= 300) {
|
|
2211
|
-
return de_ListPreparedStatementsCommandError(output, context);
|
|
2212
|
-
}
|
|
2213
|
-
const data = await parseBody(output.body, context);
|
|
2214
|
-
let contents = {};
|
|
2215
|
-
contents = de_ListPreparedStatementsOutput(data, context);
|
|
2216
|
-
const response = {
|
|
2217
|
-
$metadata: deserializeMetadata(output),
|
|
2218
|
-
...contents,
|
|
2219
|
-
};
|
|
2220
|
-
return response;
|
|
2221
|
-
};
|
|
2222
|
-
exports.de_ListPreparedStatementsCommand = de_ListPreparedStatementsCommand;
|
|
2223
|
-
const de_ListPreparedStatementsCommandError = async (output, context) => {
|
|
2224
|
-
const parsedOutput = {
|
|
2225
|
-
...output,
|
|
2226
|
-
body: await parseErrorBody(output.body, context),
|
|
2227
|
-
};
|
|
2228
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2229
|
-
switch (errorCode) {
|
|
2230
|
-
case "InternalServerException":
|
|
2231
|
-
case "com.amazonaws.athena#InternalServerException":
|
|
2232
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2233
|
-
case "InvalidRequestException":
|
|
2234
|
-
case "com.amazonaws.athena#InvalidRequestException":
|
|
2235
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2236
|
-
default:
|
|
2237
|
-
const parsedBody = parsedOutput.body;
|
|
2238
|
-
return throwDefaultError({
|
|
2239
|
-
output,
|
|
2240
|
-
parsedBody,
|
|
2241
|
-
errorCode,
|
|
2242
|
-
});
|
|
2243
|
-
}
|
|
2244
|
-
};
|
|
2245
|
-
const de_ListQueryExecutionsCommand = async (output, context) => {
|
|
2246
|
-
if (output.statusCode >= 300) {
|
|
2247
|
-
return de_ListQueryExecutionsCommandError(output, context);
|
|
2248
|
-
}
|
|
2249
|
-
const data = await parseBody(output.body, context);
|
|
2250
|
-
let contents = {};
|
|
2251
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2252
|
-
const response = {
|
|
2253
|
-
$metadata: deserializeMetadata(output),
|
|
2254
|
-
...contents,
|
|
2255
|
-
};
|
|
2256
|
-
return response;
|
|
2257
|
-
};
|
|
2258
|
-
exports.de_ListQueryExecutionsCommand = de_ListQueryExecutionsCommand;
|
|
2259
|
-
const de_ListQueryExecutionsCommandError = async (output, context) => {
|
|
2260
|
-
const parsedOutput = {
|
|
2261
|
-
...output,
|
|
2262
|
-
body: await parseErrorBody(output.body, context),
|
|
2263
|
-
};
|
|
2264
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2265
|
-
switch (errorCode) {
|
|
2266
|
-
case "InternalServerException":
|
|
2267
|
-
case "com.amazonaws.athena#InternalServerException":
|
|
2268
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2269
|
-
case "InvalidRequestException":
|
|
2270
|
-
case "com.amazonaws.athena#InvalidRequestException":
|
|
2271
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2272
|
-
default:
|
|
2273
|
-
const parsedBody = parsedOutput.body;
|
|
2274
|
-
return throwDefaultError({
|
|
2275
|
-
output,
|
|
2276
|
-
parsedBody,
|
|
2277
|
-
errorCode,
|
|
2278
|
-
});
|
|
2279
|
-
}
|
|
2280
|
-
};
|
|
2281
|
-
const de_ListSessionsCommand = async (output, context) => {
|
|
2282
|
-
if (output.statusCode >= 300) {
|
|
2283
|
-
return de_ListSessionsCommandError(output, context);
|
|
2284
|
-
}
|
|
2285
|
-
const data = await parseBody(output.body, context);
|
|
2286
|
-
let contents = {};
|
|
2287
|
-
contents = de_ListSessionsResponse(data, context);
|
|
2288
|
-
const response = {
|
|
2289
|
-
$metadata: deserializeMetadata(output),
|
|
2290
|
-
...contents,
|
|
2291
|
-
};
|
|
2292
|
-
return response;
|
|
2293
|
-
};
|
|
2294
|
-
exports.de_ListSessionsCommand = de_ListSessionsCommand;
|
|
2295
|
-
const de_ListSessionsCommandError = async (output, context) => {
|
|
2296
|
-
const parsedOutput = {
|
|
2297
|
-
...output,
|
|
2298
|
-
body: await parseErrorBody(output.body, context),
|
|
2299
|
-
};
|
|
2300
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2301
|
-
switch (errorCode) {
|
|
2302
|
-
case "InternalServerException":
|
|
2303
|
-
case "com.amazonaws.athena#InternalServerException":
|
|
2304
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2305
|
-
case "InvalidRequestException":
|
|
2306
|
-
case "com.amazonaws.athena#InvalidRequestException":
|
|
2307
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2308
|
-
case "ResourceNotFoundException":
|
|
2309
|
-
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
2310
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2311
|
-
default:
|
|
2312
|
-
const parsedBody = parsedOutput.body;
|
|
2313
|
-
return throwDefaultError({
|
|
2314
|
-
output,
|
|
2315
|
-
parsedBody,
|
|
2316
|
-
errorCode,
|
|
2317
|
-
});
|
|
2318
|
-
}
|
|
2319
|
-
};
|
|
2320
|
-
const de_ListTableMetadataCommand = async (output, context) => {
|
|
2321
|
-
if (output.statusCode >= 300) {
|
|
2322
|
-
return de_ListTableMetadataCommandError(output, context);
|
|
2323
|
-
}
|
|
2324
|
-
const data = await parseBody(output.body, context);
|
|
2325
|
-
let contents = {};
|
|
2326
|
-
contents = de_ListTableMetadataOutput(data, context);
|
|
2327
|
-
const response = {
|
|
2328
|
-
$metadata: deserializeMetadata(output),
|
|
2329
|
-
...contents,
|
|
2330
|
-
};
|
|
2331
|
-
return response;
|
|
2332
|
-
};
|
|
2333
|
-
exports.de_ListTableMetadataCommand = de_ListTableMetadataCommand;
|
|
2334
|
-
const de_ListTableMetadataCommandError = async (output, context) => {
|
|
2335
|
-
const parsedOutput = {
|
|
2336
|
-
...output,
|
|
2337
|
-
body: await parseErrorBody(output.body, context),
|
|
2338
|
-
};
|
|
2339
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2340
|
-
switch (errorCode) {
|
|
2341
|
-
case "InternalServerException":
|
|
2342
|
-
case "com.amazonaws.athena#InternalServerException":
|
|
2343
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2344
|
-
case "InvalidRequestException":
|
|
2345
|
-
case "com.amazonaws.athena#InvalidRequestException":
|
|
2346
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2347
|
-
case "MetadataException":
|
|
2348
|
-
case "com.amazonaws.athena#MetadataException":
|
|
2349
|
-
throw await de_MetadataExceptionRes(parsedOutput, context);
|
|
2350
|
-
default:
|
|
2351
|
-
const parsedBody = parsedOutput.body;
|
|
2352
|
-
return throwDefaultError({
|
|
2353
|
-
output,
|
|
2354
|
-
parsedBody,
|
|
2355
|
-
errorCode,
|
|
2356
|
-
});
|
|
2357
|
-
}
|
|
2358
|
-
};
|
|
2359
|
-
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
2360
|
-
if (output.statusCode >= 300) {
|
|
2361
|
-
return de_ListTagsForResourceCommandError(output, context);
|
|
2362
|
-
}
|
|
2363
|
-
const data = await parseBody(output.body, context);
|
|
2364
|
-
let contents = {};
|
|
2365
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2366
|
-
const response = {
|
|
2367
|
-
$metadata: deserializeMetadata(output),
|
|
2368
|
-
...contents,
|
|
2369
|
-
};
|
|
2370
|
-
return response;
|
|
2371
|
-
};
|
|
2372
|
-
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
2373
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
2374
|
-
const parsedOutput = {
|
|
2375
|
-
...output,
|
|
2376
|
-
body: await parseErrorBody(output.body, context),
|
|
2377
|
-
};
|
|
2378
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2379
|
-
switch (errorCode) {
|
|
2380
|
-
case "InternalServerException":
|
|
2381
|
-
case "com.amazonaws.athena#InternalServerException":
|
|
2382
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2383
|
-
case "InvalidRequestException":
|
|
2384
|
-
case "com.amazonaws.athena#InvalidRequestException":
|
|
2385
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2386
|
-
case "ResourceNotFoundException":
|
|
2387
|
-
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
2388
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2389
|
-
default:
|
|
2390
|
-
const parsedBody = parsedOutput.body;
|
|
2391
|
-
return throwDefaultError({
|
|
2392
|
-
output,
|
|
2393
|
-
parsedBody,
|
|
2394
|
-
errorCode,
|
|
2395
|
-
});
|
|
2396
|
-
}
|
|
2397
|
-
};
|
|
2398
|
-
const de_ListWorkGroupsCommand = async (output, context) => {
|
|
2399
|
-
if (output.statusCode >= 300) {
|
|
2400
|
-
return de_ListWorkGroupsCommandError(output, context);
|
|
2401
|
-
}
|
|
2402
|
-
const data = await parseBody(output.body, context);
|
|
2403
|
-
let contents = {};
|
|
2404
|
-
contents = de_ListWorkGroupsOutput(data, context);
|
|
2405
|
-
const response = {
|
|
2406
|
-
$metadata: deserializeMetadata(output),
|
|
2407
|
-
...contents,
|
|
2408
|
-
};
|
|
2409
|
-
return response;
|
|
2410
|
-
};
|
|
2411
|
-
exports.de_ListWorkGroupsCommand = de_ListWorkGroupsCommand;
|
|
2412
|
-
const de_ListWorkGroupsCommandError = async (output, context) => {
|
|
2413
|
-
const parsedOutput = {
|
|
2414
|
-
...output,
|
|
2415
|
-
body: await parseErrorBody(output.body, context),
|
|
2416
|
-
};
|
|
2417
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2418
|
-
switch (errorCode) {
|
|
2419
|
-
case "InternalServerException":
|
|
2420
|
-
case "com.amazonaws.athena#InternalServerException":
|
|
2421
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2422
|
-
case "InvalidRequestException":
|
|
2423
|
-
case "com.amazonaws.athena#InvalidRequestException":
|
|
2424
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2425
|
-
default:
|
|
2426
|
-
const parsedBody = parsedOutput.body;
|
|
2427
|
-
return throwDefaultError({
|
|
2428
|
-
output,
|
|
2429
|
-
parsedBody,
|
|
2430
|
-
errorCode,
|
|
2431
|
-
});
|
|
2432
|
-
}
|
|
2433
|
-
};
|
|
2434
|
-
const de_PutCapacityAssignmentConfigurationCommand = async (output, context) => {
|
|
2435
|
-
if (output.statusCode >= 300) {
|
|
2436
|
-
return de_PutCapacityAssignmentConfigurationCommandError(output, context);
|
|
2437
|
-
}
|
|
2438
|
-
const data = await parseBody(output.body, context);
|
|
2439
|
-
let contents = {};
|
|
2440
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2441
|
-
const response = {
|
|
2442
|
-
$metadata: deserializeMetadata(output),
|
|
2443
|
-
...contents,
|
|
2444
|
-
};
|
|
2445
|
-
return response;
|
|
2446
|
-
};
|
|
2447
|
-
exports.de_PutCapacityAssignmentConfigurationCommand = de_PutCapacityAssignmentConfigurationCommand;
|
|
2448
|
-
const de_PutCapacityAssignmentConfigurationCommandError = async (output, context) => {
|
|
2449
|
-
const parsedOutput = {
|
|
2450
|
-
...output,
|
|
2451
|
-
body: await parseErrorBody(output.body, context),
|
|
2452
|
-
};
|
|
2453
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2454
|
-
switch (errorCode) {
|
|
2455
|
-
case "InternalServerException":
|
|
2456
|
-
case "com.amazonaws.athena#InternalServerException":
|
|
2457
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2458
|
-
case "InvalidRequestException":
|
|
2459
|
-
case "com.amazonaws.athena#InvalidRequestException":
|
|
2460
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2461
|
-
default:
|
|
2462
|
-
const parsedBody = parsedOutput.body;
|
|
2463
|
-
return throwDefaultError({
|
|
2464
|
-
output,
|
|
2465
|
-
parsedBody,
|
|
2466
|
-
errorCode,
|
|
2467
|
-
});
|
|
2468
|
-
}
|
|
2469
|
-
};
|
|
2470
|
-
const de_StartCalculationExecutionCommand = async (output, context) => {
|
|
2471
|
-
if (output.statusCode >= 300) {
|
|
2472
|
-
return de_StartCalculationExecutionCommandError(output, context);
|
|
2473
|
-
}
|
|
2474
|
-
const data = await parseBody(output.body, context);
|
|
2475
|
-
let contents = {};
|
|
2476
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2477
|
-
const response = {
|
|
2478
|
-
$metadata: deserializeMetadata(output),
|
|
2479
|
-
...contents,
|
|
2480
|
-
};
|
|
2481
|
-
return response;
|
|
2482
|
-
};
|
|
2483
|
-
exports.de_StartCalculationExecutionCommand = de_StartCalculationExecutionCommand;
|
|
2484
|
-
const de_StartCalculationExecutionCommandError = async (output, context) => {
|
|
2485
|
-
const parsedOutput = {
|
|
2486
|
-
...output,
|
|
2487
|
-
body: await parseErrorBody(output.body, context),
|
|
2488
|
-
};
|
|
2489
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2490
|
-
switch (errorCode) {
|
|
2491
|
-
case "InternalServerException":
|
|
2492
|
-
case "com.amazonaws.athena#InternalServerException":
|
|
2493
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2494
|
-
case "InvalidRequestException":
|
|
2495
|
-
case "com.amazonaws.athena#InvalidRequestException":
|
|
2496
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2497
|
-
case "ResourceNotFoundException":
|
|
2498
|
-
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
2499
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2500
|
-
default:
|
|
2501
|
-
const parsedBody = parsedOutput.body;
|
|
2502
|
-
return throwDefaultError({
|
|
2503
|
-
output,
|
|
2504
|
-
parsedBody,
|
|
2505
|
-
errorCode,
|
|
2506
|
-
});
|
|
2507
|
-
}
|
|
2508
|
-
};
|
|
2509
|
-
const de_StartQueryExecutionCommand = async (output, context) => {
|
|
2510
|
-
if (output.statusCode >= 300) {
|
|
2511
|
-
return de_StartQueryExecutionCommandError(output, context);
|
|
2512
|
-
}
|
|
2513
|
-
const data = await parseBody(output.body, context);
|
|
2514
|
-
let contents = {};
|
|
2515
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2516
|
-
const response = {
|
|
2517
|
-
$metadata: deserializeMetadata(output),
|
|
2518
|
-
...contents,
|
|
2519
|
-
};
|
|
2520
|
-
return response;
|
|
2521
|
-
};
|
|
2522
|
-
exports.de_StartQueryExecutionCommand = de_StartQueryExecutionCommand;
|
|
2523
|
-
const de_StartQueryExecutionCommandError = async (output, context) => {
|
|
2524
|
-
const parsedOutput = {
|
|
2525
|
-
...output,
|
|
2526
|
-
body: await parseErrorBody(output.body, context),
|
|
2527
|
-
};
|
|
2528
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2529
|
-
switch (errorCode) {
|
|
2530
|
-
case "InternalServerException":
|
|
2531
|
-
case "com.amazonaws.athena#InternalServerException":
|
|
2532
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2533
|
-
case "InvalidRequestException":
|
|
2534
|
-
case "com.amazonaws.athena#InvalidRequestException":
|
|
2535
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2536
|
-
case "TooManyRequestsException":
|
|
2537
|
-
case "com.amazonaws.athena#TooManyRequestsException":
|
|
2538
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2539
|
-
default:
|
|
2540
|
-
const parsedBody = parsedOutput.body;
|
|
2541
|
-
return throwDefaultError({
|
|
2542
|
-
output,
|
|
2543
|
-
parsedBody,
|
|
2544
|
-
errorCode,
|
|
2545
|
-
});
|
|
2546
|
-
}
|
|
2547
|
-
};
|
|
2548
|
-
const de_StartSessionCommand = async (output, context) => {
|
|
2549
|
-
if (output.statusCode >= 300) {
|
|
2550
|
-
return de_StartSessionCommandError(output, context);
|
|
2551
|
-
}
|
|
2552
|
-
const data = await parseBody(output.body, context);
|
|
2553
|
-
let contents = {};
|
|
2554
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2555
|
-
const response = {
|
|
2556
|
-
$metadata: deserializeMetadata(output),
|
|
2557
|
-
...contents,
|
|
2558
|
-
};
|
|
2559
|
-
return response;
|
|
2560
|
-
};
|
|
2561
|
-
exports.de_StartSessionCommand = de_StartSessionCommand;
|
|
2562
|
-
const de_StartSessionCommandError = async (output, context) => {
|
|
2563
|
-
const parsedOutput = {
|
|
2564
|
-
...output,
|
|
2565
|
-
body: await parseErrorBody(output.body, context),
|
|
2566
|
-
};
|
|
2567
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2568
|
-
switch (errorCode) {
|
|
2569
|
-
case "InternalServerException":
|
|
2570
|
-
case "com.amazonaws.athena#InternalServerException":
|
|
2571
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2572
|
-
case "InvalidRequestException":
|
|
2573
|
-
case "com.amazonaws.athena#InvalidRequestException":
|
|
2574
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2575
|
-
case "ResourceNotFoundException":
|
|
2576
|
-
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
2577
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2578
|
-
case "SessionAlreadyExistsException":
|
|
2579
|
-
case "com.amazonaws.athena#SessionAlreadyExistsException":
|
|
2580
|
-
throw await de_SessionAlreadyExistsExceptionRes(parsedOutput, context);
|
|
2581
|
-
case "TooManyRequestsException":
|
|
2582
|
-
case "com.amazonaws.athena#TooManyRequestsException":
|
|
2583
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2584
|
-
default:
|
|
2585
|
-
const parsedBody = parsedOutput.body;
|
|
2586
|
-
return throwDefaultError({
|
|
2587
|
-
output,
|
|
2588
|
-
parsedBody,
|
|
2589
|
-
errorCode,
|
|
2590
|
-
});
|
|
2591
|
-
}
|
|
2592
|
-
};
|
|
2593
|
-
const de_StopCalculationExecutionCommand = async (output, context) => {
|
|
2594
|
-
if (output.statusCode >= 300) {
|
|
2595
|
-
return de_StopCalculationExecutionCommandError(output, context);
|
|
2596
|
-
}
|
|
2597
|
-
const data = await parseBody(output.body, context);
|
|
2598
|
-
let contents = {};
|
|
2599
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2600
|
-
const response = {
|
|
2601
|
-
$metadata: deserializeMetadata(output),
|
|
2602
|
-
...contents,
|
|
2603
|
-
};
|
|
2604
|
-
return response;
|
|
2605
|
-
};
|
|
2606
|
-
exports.de_StopCalculationExecutionCommand = de_StopCalculationExecutionCommand;
|
|
2607
|
-
const de_StopCalculationExecutionCommandError = async (output, context) => {
|
|
2608
|
-
const parsedOutput = {
|
|
2609
|
-
...output,
|
|
2610
|
-
body: await parseErrorBody(output.body, context),
|
|
2611
|
-
};
|
|
2612
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2613
|
-
switch (errorCode) {
|
|
2614
|
-
case "InternalServerException":
|
|
2615
|
-
case "com.amazonaws.athena#InternalServerException":
|
|
2616
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2617
|
-
case "InvalidRequestException":
|
|
2618
|
-
case "com.amazonaws.athena#InvalidRequestException":
|
|
2619
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2620
|
-
case "ResourceNotFoundException":
|
|
2621
|
-
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
2622
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2623
|
-
default:
|
|
2624
|
-
const parsedBody = parsedOutput.body;
|
|
2625
|
-
return throwDefaultError({
|
|
2626
|
-
output,
|
|
2627
|
-
parsedBody,
|
|
2628
|
-
errorCode,
|
|
2629
|
-
});
|
|
2630
|
-
}
|
|
2631
|
-
};
|
|
2632
|
-
const de_StopQueryExecutionCommand = async (output, context) => {
|
|
2633
|
-
if (output.statusCode >= 300) {
|
|
2634
|
-
return de_StopQueryExecutionCommandError(output, context);
|
|
2635
|
-
}
|
|
2636
|
-
const data = await parseBody(output.body, context);
|
|
2637
|
-
let contents = {};
|
|
2638
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2639
|
-
const response = {
|
|
2640
|
-
$metadata: deserializeMetadata(output),
|
|
2641
|
-
...contents,
|
|
2642
|
-
};
|
|
2643
|
-
return response;
|
|
2644
|
-
};
|
|
2645
|
-
exports.de_StopQueryExecutionCommand = de_StopQueryExecutionCommand;
|
|
2646
|
-
const de_StopQueryExecutionCommandError = async (output, context) => {
|
|
2647
|
-
const parsedOutput = {
|
|
2648
|
-
...output,
|
|
2649
|
-
body: await parseErrorBody(output.body, context),
|
|
2650
|
-
};
|
|
2651
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2652
|
-
switch (errorCode) {
|
|
2653
|
-
case "InternalServerException":
|
|
2654
|
-
case "com.amazonaws.athena#InternalServerException":
|
|
2655
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2656
|
-
case "InvalidRequestException":
|
|
2657
|
-
case "com.amazonaws.athena#InvalidRequestException":
|
|
2658
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2659
|
-
default:
|
|
2660
|
-
const parsedBody = parsedOutput.body;
|
|
2661
|
-
return throwDefaultError({
|
|
2662
|
-
output,
|
|
2663
|
-
parsedBody,
|
|
2664
|
-
errorCode,
|
|
2665
|
-
});
|
|
2666
|
-
}
|
|
2667
|
-
};
|
|
2668
|
-
const de_TagResourceCommand = async (output, context) => {
|
|
2669
|
-
if (output.statusCode >= 300) {
|
|
2670
|
-
return de_TagResourceCommandError(output, context);
|
|
2671
|
-
}
|
|
2672
|
-
const data = await parseBody(output.body, context);
|
|
2673
|
-
let contents = {};
|
|
2674
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2675
|
-
const response = {
|
|
2676
|
-
$metadata: deserializeMetadata(output),
|
|
2677
|
-
...contents,
|
|
2678
|
-
};
|
|
2679
|
-
return response;
|
|
2680
|
-
};
|
|
2681
|
-
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
2682
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
2683
|
-
const parsedOutput = {
|
|
2684
|
-
...output,
|
|
2685
|
-
body: await parseErrorBody(output.body, context),
|
|
2686
|
-
};
|
|
2687
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2688
|
-
switch (errorCode) {
|
|
2689
|
-
case "InternalServerException":
|
|
2690
|
-
case "com.amazonaws.athena#InternalServerException":
|
|
2691
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2692
|
-
case "InvalidRequestException":
|
|
2693
|
-
case "com.amazonaws.athena#InvalidRequestException":
|
|
2694
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2695
|
-
case "ResourceNotFoundException":
|
|
2696
|
-
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
2697
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2698
|
-
default:
|
|
2699
|
-
const parsedBody = parsedOutput.body;
|
|
2700
|
-
return throwDefaultError({
|
|
2701
|
-
output,
|
|
2702
|
-
parsedBody,
|
|
2703
|
-
errorCode,
|
|
2704
|
-
});
|
|
2705
|
-
}
|
|
2706
|
-
};
|
|
2707
|
-
const de_TerminateSessionCommand = async (output, context) => {
|
|
2708
|
-
if (output.statusCode >= 300) {
|
|
2709
|
-
return de_TerminateSessionCommandError(output, context);
|
|
2710
|
-
}
|
|
2711
|
-
const data = await parseBody(output.body, context);
|
|
2712
|
-
let contents = {};
|
|
2713
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2714
|
-
const response = {
|
|
2715
|
-
$metadata: deserializeMetadata(output),
|
|
2716
|
-
...contents,
|
|
2717
|
-
};
|
|
2718
|
-
return response;
|
|
2719
|
-
};
|
|
2720
|
-
exports.de_TerminateSessionCommand = de_TerminateSessionCommand;
|
|
2721
|
-
const de_TerminateSessionCommandError = async (output, context) => {
|
|
2722
|
-
const parsedOutput = {
|
|
2723
|
-
...output,
|
|
2724
|
-
body: await parseErrorBody(output.body, context),
|
|
2725
|
-
};
|
|
2726
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2727
|
-
switch (errorCode) {
|
|
2728
|
-
case "InternalServerException":
|
|
2729
|
-
case "com.amazonaws.athena#InternalServerException":
|
|
2730
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2731
|
-
case "InvalidRequestException":
|
|
2732
|
-
case "com.amazonaws.athena#InvalidRequestException":
|
|
2733
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2734
|
-
case "ResourceNotFoundException":
|
|
2735
|
-
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
2736
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2737
|
-
default:
|
|
2738
|
-
const parsedBody = parsedOutput.body;
|
|
2739
|
-
return throwDefaultError({
|
|
2740
|
-
output,
|
|
2741
|
-
parsedBody,
|
|
2742
|
-
errorCode,
|
|
2743
|
-
});
|
|
2744
|
-
}
|
|
2745
|
-
};
|
|
2746
|
-
const de_UntagResourceCommand = async (output, context) => {
|
|
2747
|
-
if (output.statusCode >= 300) {
|
|
2748
|
-
return de_UntagResourceCommandError(output, context);
|
|
2749
|
-
}
|
|
2750
|
-
const data = await parseBody(output.body, context);
|
|
2751
|
-
let contents = {};
|
|
2752
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2753
|
-
const response = {
|
|
2754
|
-
$metadata: deserializeMetadata(output),
|
|
2755
|
-
...contents,
|
|
2756
|
-
};
|
|
2757
|
-
return response;
|
|
2758
|
-
};
|
|
2759
|
-
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
2760
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
2761
|
-
const parsedOutput = {
|
|
2762
|
-
...output,
|
|
2763
|
-
body: await parseErrorBody(output.body, context),
|
|
2764
|
-
};
|
|
2765
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2766
|
-
switch (errorCode) {
|
|
2767
|
-
case "InternalServerException":
|
|
2768
|
-
case "com.amazonaws.athena#InternalServerException":
|
|
2769
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2770
|
-
case "InvalidRequestException":
|
|
2771
|
-
case "com.amazonaws.athena#InvalidRequestException":
|
|
2772
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2773
|
-
case "ResourceNotFoundException":
|
|
2774
|
-
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
2775
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2776
|
-
default:
|
|
2777
|
-
const parsedBody = parsedOutput.body;
|
|
2778
|
-
return throwDefaultError({
|
|
2779
|
-
output,
|
|
2780
|
-
parsedBody,
|
|
2781
|
-
errorCode,
|
|
2782
|
-
});
|
|
2783
|
-
}
|
|
2784
|
-
};
|
|
2785
|
-
const de_UpdateCapacityReservationCommand = async (output, context) => {
|
|
2786
|
-
if (output.statusCode >= 300) {
|
|
2787
|
-
return de_UpdateCapacityReservationCommandError(output, context);
|
|
2788
|
-
}
|
|
2789
|
-
const data = await parseBody(output.body, context);
|
|
2790
|
-
let contents = {};
|
|
2791
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2792
|
-
const response = {
|
|
2793
|
-
$metadata: deserializeMetadata(output),
|
|
2794
|
-
...contents,
|
|
2795
|
-
};
|
|
2796
|
-
return response;
|
|
2797
|
-
};
|
|
2798
|
-
exports.de_UpdateCapacityReservationCommand = de_UpdateCapacityReservationCommand;
|
|
2799
|
-
const de_UpdateCapacityReservationCommandError = async (output, context) => {
|
|
2800
|
-
const parsedOutput = {
|
|
2801
|
-
...output,
|
|
2802
|
-
body: await parseErrorBody(output.body, context),
|
|
2803
|
-
};
|
|
2804
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2805
|
-
switch (errorCode) {
|
|
2806
|
-
case "InternalServerException":
|
|
2807
|
-
case "com.amazonaws.athena#InternalServerException":
|
|
2808
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2809
|
-
case "InvalidRequestException":
|
|
2810
|
-
case "com.amazonaws.athena#InvalidRequestException":
|
|
2811
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2812
|
-
default:
|
|
2813
|
-
const parsedBody = parsedOutput.body;
|
|
2814
|
-
return throwDefaultError({
|
|
2815
|
-
output,
|
|
2816
|
-
parsedBody,
|
|
2817
|
-
errorCode,
|
|
2818
|
-
});
|
|
2819
|
-
}
|
|
2820
|
-
};
|
|
2821
|
-
const de_UpdateDataCatalogCommand = async (output, context) => {
|
|
2822
|
-
if (output.statusCode >= 300) {
|
|
2823
|
-
return de_UpdateDataCatalogCommandError(output, context);
|
|
2824
|
-
}
|
|
2825
|
-
const data = await parseBody(output.body, context);
|
|
2826
|
-
let contents = {};
|
|
2827
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2828
|
-
const response = {
|
|
2829
|
-
$metadata: deserializeMetadata(output),
|
|
2830
|
-
...contents,
|
|
2831
|
-
};
|
|
2832
|
-
return response;
|
|
2833
|
-
};
|
|
2834
|
-
exports.de_UpdateDataCatalogCommand = de_UpdateDataCatalogCommand;
|
|
2835
|
-
const de_UpdateDataCatalogCommandError = async (output, context) => {
|
|
2836
|
-
const parsedOutput = {
|
|
2837
|
-
...output,
|
|
2838
|
-
body: await parseErrorBody(output.body, context),
|
|
2839
|
-
};
|
|
2840
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2841
|
-
switch (errorCode) {
|
|
2842
|
-
case "InternalServerException":
|
|
2843
|
-
case "com.amazonaws.athena#InternalServerException":
|
|
2844
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2845
|
-
case "InvalidRequestException":
|
|
2846
|
-
case "com.amazonaws.athena#InvalidRequestException":
|
|
2847
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2848
|
-
default:
|
|
2849
|
-
const parsedBody = parsedOutput.body;
|
|
2850
|
-
return throwDefaultError({
|
|
2851
|
-
output,
|
|
2852
|
-
parsedBody,
|
|
2853
|
-
errorCode,
|
|
2854
|
-
});
|
|
2855
|
-
}
|
|
2856
|
-
};
|
|
2857
|
-
const de_UpdateNamedQueryCommand = async (output, context) => {
|
|
2858
|
-
if (output.statusCode >= 300) {
|
|
2859
|
-
return de_UpdateNamedQueryCommandError(output, context);
|
|
2860
|
-
}
|
|
2861
|
-
const data = await parseBody(output.body, context);
|
|
2862
|
-
let contents = {};
|
|
2863
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2864
|
-
const response = {
|
|
2865
|
-
$metadata: deserializeMetadata(output),
|
|
2866
|
-
...contents,
|
|
2867
|
-
};
|
|
2868
|
-
return response;
|
|
2869
|
-
};
|
|
2870
|
-
exports.de_UpdateNamedQueryCommand = de_UpdateNamedQueryCommand;
|
|
2871
|
-
const de_UpdateNamedQueryCommandError = async (output, context) => {
|
|
2872
|
-
const parsedOutput = {
|
|
2873
|
-
...output,
|
|
2874
|
-
body: await parseErrorBody(output.body, context),
|
|
2875
|
-
};
|
|
2876
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2877
|
-
switch (errorCode) {
|
|
2878
|
-
case "InternalServerException":
|
|
2879
|
-
case "com.amazonaws.athena#InternalServerException":
|
|
2880
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2881
|
-
case "InvalidRequestException":
|
|
2882
|
-
case "com.amazonaws.athena#InvalidRequestException":
|
|
2883
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2884
|
-
default:
|
|
2885
|
-
const parsedBody = parsedOutput.body;
|
|
2886
|
-
return throwDefaultError({
|
|
2887
|
-
output,
|
|
2888
|
-
parsedBody,
|
|
2889
|
-
errorCode,
|
|
2890
|
-
});
|
|
2891
|
-
}
|
|
2892
|
-
};
|
|
2893
|
-
const de_UpdateNotebookCommand = async (output, context) => {
|
|
2894
|
-
if (output.statusCode >= 300) {
|
|
2895
|
-
return de_UpdateNotebookCommandError(output, context);
|
|
2896
|
-
}
|
|
2897
|
-
const data = await parseBody(output.body, context);
|
|
2898
|
-
let contents = {};
|
|
2899
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2900
|
-
const response = {
|
|
2901
|
-
$metadata: deserializeMetadata(output),
|
|
2902
|
-
...contents,
|
|
2903
|
-
};
|
|
2904
|
-
return response;
|
|
2905
|
-
};
|
|
2906
|
-
exports.de_UpdateNotebookCommand = de_UpdateNotebookCommand;
|
|
2907
|
-
const de_UpdateNotebookCommandError = async (output, context) => {
|
|
2908
|
-
const parsedOutput = {
|
|
2909
|
-
...output,
|
|
2910
|
-
body: await parseErrorBody(output.body, context),
|
|
2911
|
-
};
|
|
2912
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2913
|
-
switch (errorCode) {
|
|
2914
|
-
case "InternalServerException":
|
|
2915
|
-
case "com.amazonaws.athena#InternalServerException":
|
|
2916
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2917
|
-
case "InvalidRequestException":
|
|
2918
|
-
case "com.amazonaws.athena#InvalidRequestException":
|
|
2919
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2920
|
-
case "TooManyRequestsException":
|
|
2921
|
-
case "com.amazonaws.athena#TooManyRequestsException":
|
|
2922
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2923
|
-
default:
|
|
2924
|
-
const parsedBody = parsedOutput.body;
|
|
2925
|
-
return throwDefaultError({
|
|
2926
|
-
output,
|
|
2927
|
-
parsedBody,
|
|
2928
|
-
errorCode,
|
|
2929
|
-
});
|
|
2930
|
-
}
|
|
2931
|
-
};
|
|
2932
|
-
const de_UpdateNotebookMetadataCommand = async (output, context) => {
|
|
2933
|
-
if (output.statusCode >= 300) {
|
|
2934
|
-
return de_UpdateNotebookMetadataCommandError(output, context);
|
|
2935
|
-
}
|
|
2936
|
-
const data = await parseBody(output.body, context);
|
|
2937
|
-
let contents = {};
|
|
2938
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2939
|
-
const response = {
|
|
2940
|
-
$metadata: deserializeMetadata(output),
|
|
2941
|
-
...contents,
|
|
2942
|
-
};
|
|
2943
|
-
return response;
|
|
2944
|
-
};
|
|
2945
|
-
exports.de_UpdateNotebookMetadataCommand = de_UpdateNotebookMetadataCommand;
|
|
2946
|
-
const de_UpdateNotebookMetadataCommandError = async (output, context) => {
|
|
2947
|
-
const parsedOutput = {
|
|
2948
|
-
...output,
|
|
2949
|
-
body: await parseErrorBody(output.body, context),
|
|
2950
|
-
};
|
|
2951
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2952
|
-
switch (errorCode) {
|
|
2953
|
-
case "InternalServerException":
|
|
2954
|
-
case "com.amazonaws.athena#InternalServerException":
|
|
2955
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2956
|
-
case "InvalidRequestException":
|
|
2957
|
-
case "com.amazonaws.athena#InvalidRequestException":
|
|
2958
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2959
|
-
case "TooManyRequestsException":
|
|
2960
|
-
case "com.amazonaws.athena#TooManyRequestsException":
|
|
2961
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2962
|
-
default:
|
|
2963
|
-
const parsedBody = parsedOutput.body;
|
|
2964
|
-
return throwDefaultError({
|
|
2965
|
-
output,
|
|
2966
|
-
parsedBody,
|
|
2967
|
-
errorCode,
|
|
2968
|
-
});
|
|
2969
|
-
}
|
|
2970
|
-
};
|
|
2971
|
-
const de_UpdatePreparedStatementCommand = async (output, context) => {
|
|
2972
|
-
if (output.statusCode >= 300) {
|
|
2973
|
-
return de_UpdatePreparedStatementCommandError(output, context);
|
|
2974
|
-
}
|
|
2975
|
-
const data = await parseBody(output.body, context);
|
|
2976
|
-
let contents = {};
|
|
2977
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2978
|
-
const response = {
|
|
2979
|
-
$metadata: deserializeMetadata(output),
|
|
2980
|
-
...contents,
|
|
2981
|
-
};
|
|
2982
|
-
return response;
|
|
2983
|
-
};
|
|
2984
|
-
exports.de_UpdatePreparedStatementCommand = de_UpdatePreparedStatementCommand;
|
|
2985
|
-
const de_UpdatePreparedStatementCommandError = async (output, context) => {
|
|
2986
|
-
const parsedOutput = {
|
|
2987
|
-
...output,
|
|
2988
|
-
body: await parseErrorBody(output.body, context),
|
|
2989
|
-
};
|
|
2990
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2991
|
-
switch (errorCode) {
|
|
2992
|
-
case "InternalServerException":
|
|
2993
|
-
case "com.amazonaws.athena#InternalServerException":
|
|
2994
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2995
|
-
case "InvalidRequestException":
|
|
2996
|
-
case "com.amazonaws.athena#InvalidRequestException":
|
|
2997
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2998
|
-
case "ResourceNotFoundException":
|
|
2999
|
-
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
3000
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3001
|
-
default:
|
|
3002
|
-
const parsedBody = parsedOutput.body;
|
|
3003
|
-
return throwDefaultError({
|
|
3004
|
-
output,
|
|
3005
|
-
parsedBody,
|
|
3006
|
-
errorCode,
|
|
3007
|
-
});
|
|
3008
|
-
}
|
|
3009
|
-
};
|
|
3010
|
-
const de_UpdateWorkGroupCommand = async (output, context) => {
|
|
3011
|
-
if (output.statusCode >= 300) {
|
|
3012
|
-
return de_UpdateWorkGroupCommandError(output, context);
|
|
3013
|
-
}
|
|
3014
|
-
const data = await parseBody(output.body, context);
|
|
3015
|
-
let contents = {};
|
|
3016
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3017
|
-
const response = {
|
|
3018
|
-
$metadata: deserializeMetadata(output),
|
|
3019
|
-
...contents,
|
|
3020
|
-
};
|
|
3021
|
-
return response;
|
|
3022
|
-
};
|
|
3023
|
-
exports.de_UpdateWorkGroupCommand = de_UpdateWorkGroupCommand;
|
|
3024
|
-
const de_UpdateWorkGroupCommandError = async (output, context) => {
|
|
3025
|
-
const parsedOutput = {
|
|
3026
|
-
...output,
|
|
3027
|
-
body: await parseErrorBody(output.body, context),
|
|
3028
|
-
};
|
|
3029
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3030
|
-
switch (errorCode) {
|
|
3031
|
-
case "InternalServerException":
|
|
3032
|
-
case "com.amazonaws.athena#InternalServerException":
|
|
3033
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3034
|
-
case "InvalidRequestException":
|
|
3035
|
-
case "com.amazonaws.athena#InvalidRequestException":
|
|
3036
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3037
|
-
default:
|
|
3038
|
-
const parsedBody = parsedOutput.body;
|
|
3039
|
-
return throwDefaultError({
|
|
3040
|
-
output,
|
|
3041
|
-
parsedBody,
|
|
3042
|
-
errorCode,
|
|
3043
|
-
});
|
|
3044
|
-
}
|
|
3045
|
-
};
|
|
3046
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
3047
|
-
const body = parsedOutput.body;
|
|
3048
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3049
|
-
const exception = new models_0_1.InternalServerException({
|
|
3050
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3051
|
-
...deserialized,
|
|
3052
|
-
});
|
|
3053
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3054
|
-
};
|
|
3055
|
-
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
3056
|
-
const body = parsedOutput.body;
|
|
3057
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3058
|
-
const exception = new models_0_1.InvalidRequestException({
|
|
3059
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3060
|
-
...deserialized,
|
|
3061
|
-
});
|
|
3062
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3063
|
-
};
|
|
3064
|
-
const de_MetadataExceptionRes = async (parsedOutput, context) => {
|
|
3065
|
-
const body = parsedOutput.body;
|
|
3066
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3067
|
-
const exception = new models_0_1.MetadataException({
|
|
3068
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3069
|
-
...deserialized,
|
|
3070
|
-
});
|
|
3071
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3072
|
-
};
|
|
3073
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
3074
|
-
const body = parsedOutput.body;
|
|
3075
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3076
|
-
const exception = new models_0_1.ResourceNotFoundException({
|
|
3077
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3078
|
-
...deserialized,
|
|
3079
|
-
});
|
|
3080
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3081
|
-
};
|
|
3082
|
-
const de_SessionAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
3083
|
-
const body = parsedOutput.body;
|
|
3084
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3085
|
-
const exception = new models_0_1.SessionAlreadyExistsException({
|
|
3086
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3087
|
-
...deserialized,
|
|
3088
|
-
});
|
|
3089
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3090
|
-
};
|
|
3091
|
-
const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
3092
|
-
const body = parsedOutput.body;
|
|
3093
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3094
|
-
const exception = new models_0_1.TooManyRequestsException({
|
|
3095
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3096
|
-
...deserialized,
|
|
3097
|
-
});
|
|
3098
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3099
|
-
};
|
|
3100
|
-
const se_CreateNamedQueryInput = (input, context) => {
|
|
3101
|
-
return (0, smithy_client_1.take)(input, {
|
|
3102
|
-
ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
3103
|
-
Database: [],
|
|
3104
|
-
Description: [],
|
|
3105
|
-
Name: [],
|
|
3106
|
-
QueryString: [],
|
|
3107
|
-
WorkGroup: [],
|
|
3108
|
-
});
|
|
3109
|
-
};
|
|
3110
|
-
const se_DeleteNamedQueryInput = (input, context) => {
|
|
3111
|
-
return (0, smithy_client_1.take)(input, {
|
|
3112
|
-
NamedQueryId: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
3113
|
-
});
|
|
3114
|
-
};
|
|
3115
|
-
const se_StartQueryExecutionInput = (input, context) => {
|
|
3116
|
-
return (0, smithy_client_1.take)(input, {
|
|
3117
|
-
ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
3118
|
-
ExecutionParameters: smithy_client_1._json,
|
|
3119
|
-
QueryExecutionContext: smithy_client_1._json,
|
|
3120
|
-
QueryString: [],
|
|
3121
|
-
ResultConfiguration: smithy_client_1._json,
|
|
3122
|
-
ResultReuseConfiguration: smithy_client_1._json,
|
|
3123
|
-
WorkGroup: [],
|
|
3124
|
-
});
|
|
3125
|
-
};
|
|
3126
|
-
const se_StopQueryExecutionInput = (input, context) => {
|
|
3127
|
-
return (0, smithy_client_1.take)(input, {
|
|
3128
|
-
QueryExecutionId: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
3129
|
-
});
|
|
3130
|
-
};
|
|
3131
|
-
const de_BatchGetPreparedStatementOutput = (output, context) => {
|
|
3132
|
-
return (0, smithy_client_1.take)(output, {
|
|
3133
|
-
PreparedStatements: (_) => de_PreparedStatementDetailsList(_, context),
|
|
3134
|
-
UnprocessedPreparedStatementNames: smithy_client_1._json,
|
|
3135
|
-
});
|
|
3136
|
-
};
|
|
3137
|
-
const de_BatchGetQueryExecutionOutput = (output, context) => {
|
|
3138
|
-
return (0, smithy_client_1.take)(output, {
|
|
3139
|
-
QueryExecutions: (_) => de_QueryExecutionList(_, context),
|
|
3140
|
-
UnprocessedQueryExecutionIds: smithy_client_1._json,
|
|
3141
|
-
});
|
|
3142
|
-
};
|
|
3143
|
-
const de_CalculationsList = (output, context) => {
|
|
3144
|
-
const retVal = (output || [])
|
|
3145
|
-
.filter((e) => e != null)
|
|
3146
|
-
.map((entry) => {
|
|
3147
|
-
return de_CalculationSummary(entry, context);
|
|
3148
|
-
});
|
|
3149
|
-
return retVal;
|
|
3150
|
-
};
|
|
3151
|
-
const de_CalculationStatus = (output, context) => {
|
|
3152
|
-
return (0, smithy_client_1.take)(output, {
|
|
3153
|
-
CompletionDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3154
|
-
State: smithy_client_1.expectString,
|
|
3155
|
-
StateChangeReason: smithy_client_1.expectString,
|
|
3156
|
-
SubmissionDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3157
|
-
});
|
|
3158
|
-
};
|
|
3159
|
-
const de_CalculationSummary = (output, context) => {
|
|
3160
|
-
return (0, smithy_client_1.take)(output, {
|
|
3161
|
-
CalculationExecutionId: smithy_client_1.expectString,
|
|
3162
|
-
Description: smithy_client_1.expectString,
|
|
3163
|
-
Status: (_) => de_CalculationStatus(_, context),
|
|
3164
|
-
});
|
|
3165
|
-
};
|
|
3166
|
-
const de_CapacityAllocation = (output, context) => {
|
|
3167
|
-
return (0, smithy_client_1.take)(output, {
|
|
3168
|
-
RequestCompletionTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3169
|
-
RequestTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3170
|
-
Status: smithy_client_1.expectString,
|
|
3171
|
-
StatusMessage: smithy_client_1.expectString,
|
|
3172
|
-
});
|
|
3173
|
-
};
|
|
3174
|
-
const de_CapacityReservation = (output, context) => {
|
|
3175
|
-
return (0, smithy_client_1.take)(output, {
|
|
3176
|
-
AllocatedDpus: smithy_client_1.expectInt32,
|
|
3177
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3178
|
-
LastAllocation: (_) => de_CapacityAllocation(_, context),
|
|
3179
|
-
LastSuccessfulAllocationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3180
|
-
Name: smithy_client_1.expectString,
|
|
3181
|
-
Status: smithy_client_1.expectString,
|
|
3182
|
-
TargetDpus: smithy_client_1.expectInt32,
|
|
3183
|
-
});
|
|
3184
|
-
};
|
|
3185
|
-
const de_CapacityReservationsList = (output, context) => {
|
|
3186
|
-
const retVal = (output || [])
|
|
3187
|
-
.filter((e) => e != null)
|
|
3188
|
-
.map((entry) => {
|
|
3189
|
-
return de_CapacityReservation(entry, context);
|
|
3190
|
-
});
|
|
3191
|
-
return retVal;
|
|
3192
|
-
};
|
|
3193
|
-
const de_ExportNotebookOutput = (output, context) => {
|
|
3194
|
-
return (0, smithy_client_1.take)(output, {
|
|
3195
|
-
NotebookMetadata: (_) => de_NotebookMetadata(_, context),
|
|
3196
|
-
Payload: smithy_client_1.expectString,
|
|
3197
|
-
});
|
|
3198
|
-
};
|
|
3199
|
-
const de_GetCalculationExecutionResponse = (output, context) => {
|
|
3200
|
-
return (0, smithy_client_1.take)(output, {
|
|
3201
|
-
CalculationExecutionId: smithy_client_1.expectString,
|
|
3202
|
-
Description: smithy_client_1.expectString,
|
|
3203
|
-
Result: smithy_client_1._json,
|
|
3204
|
-
SessionId: smithy_client_1.expectString,
|
|
3205
|
-
Statistics: smithy_client_1._json,
|
|
3206
|
-
Status: (_) => de_CalculationStatus(_, context),
|
|
3207
|
-
WorkingDirectory: smithy_client_1.expectString,
|
|
3208
|
-
});
|
|
3209
|
-
};
|
|
3210
|
-
const de_GetCalculationExecutionStatusResponse = (output, context) => {
|
|
3211
|
-
return (0, smithy_client_1.take)(output, {
|
|
3212
|
-
Statistics: smithy_client_1._json,
|
|
3213
|
-
Status: (_) => de_CalculationStatus(_, context),
|
|
3214
|
-
});
|
|
3215
|
-
};
|
|
3216
|
-
const de_GetCapacityReservationOutput = (output, context) => {
|
|
3217
|
-
return (0, smithy_client_1.take)(output, {
|
|
3218
|
-
CapacityReservation: (_) => de_CapacityReservation(_, context),
|
|
3219
|
-
});
|
|
3220
|
-
};
|
|
3221
|
-
const de_GetNotebookMetadataOutput = (output, context) => {
|
|
3222
|
-
return (0, smithy_client_1.take)(output, {
|
|
3223
|
-
NotebookMetadata: (_) => de_NotebookMetadata(_, context),
|
|
3224
|
-
});
|
|
3225
|
-
};
|
|
3226
|
-
const de_GetPreparedStatementOutput = (output, context) => {
|
|
3227
|
-
return (0, smithy_client_1.take)(output, {
|
|
3228
|
-
PreparedStatement: (_) => de_PreparedStatement(_, context),
|
|
3229
|
-
});
|
|
3230
|
-
};
|
|
3231
|
-
const de_GetQueryExecutionOutput = (output, context) => {
|
|
3232
|
-
return (0, smithy_client_1.take)(output, {
|
|
3233
|
-
QueryExecution: (_) => de_QueryExecution(_, context),
|
|
3234
|
-
});
|
|
3235
|
-
};
|
|
3236
|
-
const de_GetQueryRuntimeStatisticsOutput = (output, context) => {
|
|
3237
|
-
return (0, smithy_client_1.take)(output, {
|
|
3238
|
-
QueryRuntimeStatistics: (_) => de_QueryRuntimeStatistics(_, context),
|
|
3239
|
-
});
|
|
3240
|
-
};
|
|
3241
|
-
const de_GetSessionResponse = (output, context) => {
|
|
3242
|
-
return (0, smithy_client_1.take)(output, {
|
|
3243
|
-
Description: smithy_client_1.expectString,
|
|
3244
|
-
EngineConfiguration: smithy_client_1._json,
|
|
3245
|
-
EngineVersion: smithy_client_1.expectString,
|
|
3246
|
-
NotebookVersion: smithy_client_1.expectString,
|
|
3247
|
-
SessionConfiguration: smithy_client_1._json,
|
|
3248
|
-
SessionId: smithy_client_1.expectString,
|
|
3249
|
-
Statistics: smithy_client_1._json,
|
|
3250
|
-
Status: (_) => de_SessionStatus(_, context),
|
|
3251
|
-
WorkGroup: smithy_client_1.expectString,
|
|
3252
|
-
});
|
|
3253
|
-
};
|
|
3254
|
-
const de_GetSessionStatusResponse = (output, context) => {
|
|
3255
|
-
return (0, smithy_client_1.take)(output, {
|
|
3256
|
-
SessionId: smithy_client_1.expectString,
|
|
3257
|
-
Status: (_) => de_SessionStatus(_, context),
|
|
3258
|
-
});
|
|
3259
|
-
};
|
|
3260
|
-
const de_GetTableMetadataOutput = (output, context) => {
|
|
3261
|
-
return (0, smithy_client_1.take)(output, {
|
|
3262
|
-
TableMetadata: (_) => de_TableMetadata(_, context),
|
|
3263
|
-
});
|
|
3264
|
-
};
|
|
3265
|
-
const de_GetWorkGroupOutput = (output, context) => {
|
|
3266
|
-
return (0, smithy_client_1.take)(output, {
|
|
3267
|
-
WorkGroup: (_) => de_WorkGroup(_, context),
|
|
3268
|
-
});
|
|
3269
|
-
};
|
|
3270
|
-
const de_ListCalculationExecutionsResponse = (output, context) => {
|
|
3271
|
-
return (0, smithy_client_1.take)(output, {
|
|
3272
|
-
Calculations: (_) => de_CalculationsList(_, context),
|
|
3273
|
-
NextToken: smithy_client_1.expectString,
|
|
3274
|
-
});
|
|
3275
|
-
};
|
|
3276
|
-
const de_ListCapacityReservationsOutput = (output, context) => {
|
|
3277
|
-
return (0, smithy_client_1.take)(output, {
|
|
3278
|
-
CapacityReservations: (_) => de_CapacityReservationsList(_, context),
|
|
3279
|
-
NextToken: smithy_client_1.expectString,
|
|
3280
|
-
});
|
|
3281
|
-
};
|
|
3282
|
-
const de_ListNotebookMetadataOutput = (output, context) => {
|
|
3283
|
-
return (0, smithy_client_1.take)(output, {
|
|
3284
|
-
NextToken: smithy_client_1.expectString,
|
|
3285
|
-
NotebookMetadataList: (_) => de_NotebookMetadataArray(_, context),
|
|
3286
|
-
});
|
|
3287
|
-
};
|
|
3288
|
-
const de_ListNotebookSessionsResponse = (output, context) => {
|
|
3289
|
-
return (0, smithy_client_1.take)(output, {
|
|
3290
|
-
NextToken: smithy_client_1.expectString,
|
|
3291
|
-
NotebookSessionsList: (_) => de_NotebookSessionsList(_, context),
|
|
3292
|
-
});
|
|
3293
|
-
};
|
|
3294
|
-
const de_ListPreparedStatementsOutput = (output, context) => {
|
|
3295
|
-
return (0, smithy_client_1.take)(output, {
|
|
3296
|
-
NextToken: smithy_client_1.expectString,
|
|
3297
|
-
PreparedStatements: (_) => de_PreparedStatementsList(_, context),
|
|
3298
|
-
});
|
|
3299
|
-
};
|
|
3300
|
-
const de_ListSessionsResponse = (output, context) => {
|
|
3301
|
-
return (0, smithy_client_1.take)(output, {
|
|
3302
|
-
NextToken: smithy_client_1.expectString,
|
|
3303
|
-
Sessions: (_) => de_SessionsList(_, context),
|
|
3304
|
-
});
|
|
3305
|
-
};
|
|
3306
|
-
const de_ListTableMetadataOutput = (output, context) => {
|
|
3307
|
-
return (0, smithy_client_1.take)(output, {
|
|
3308
|
-
NextToken: smithy_client_1.expectString,
|
|
3309
|
-
TableMetadataList: (_) => de_TableMetadataList(_, context),
|
|
3310
|
-
});
|
|
3311
|
-
};
|
|
3312
|
-
const de_ListWorkGroupsOutput = (output, context) => {
|
|
3313
|
-
return (0, smithy_client_1.take)(output, {
|
|
3314
|
-
NextToken: smithy_client_1.expectString,
|
|
3315
|
-
WorkGroups: (_) => de_WorkGroupsList(_, context),
|
|
3316
|
-
});
|
|
3317
|
-
};
|
|
3318
|
-
const de_NotebookMetadata = (output, context) => {
|
|
3319
|
-
return (0, smithy_client_1.take)(output, {
|
|
3320
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3321
|
-
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3322
|
-
Name: smithy_client_1.expectString,
|
|
3323
|
-
NotebookId: smithy_client_1.expectString,
|
|
3324
|
-
Type: smithy_client_1.expectString,
|
|
3325
|
-
WorkGroup: smithy_client_1.expectString,
|
|
3326
|
-
});
|
|
3327
|
-
};
|
|
3328
|
-
const de_NotebookMetadataArray = (output, context) => {
|
|
3329
|
-
const retVal = (output || [])
|
|
3330
|
-
.filter((e) => e != null)
|
|
3331
|
-
.map((entry) => {
|
|
3332
|
-
return de_NotebookMetadata(entry, context);
|
|
3333
|
-
});
|
|
3334
|
-
return retVal;
|
|
3335
|
-
};
|
|
3336
|
-
const de_NotebookSessionsList = (output, context) => {
|
|
3337
|
-
const retVal = (output || [])
|
|
3338
|
-
.filter((e) => e != null)
|
|
3339
|
-
.map((entry) => {
|
|
3340
|
-
return de_NotebookSessionSummary(entry, context);
|
|
3341
|
-
});
|
|
3342
|
-
return retVal;
|
|
3343
|
-
};
|
|
3344
|
-
const de_NotebookSessionSummary = (output, context) => {
|
|
3345
|
-
return (0, smithy_client_1.take)(output, {
|
|
3346
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3347
|
-
SessionId: smithy_client_1.expectString,
|
|
3348
|
-
});
|
|
3349
|
-
};
|
|
3350
|
-
const de_PreparedStatement = (output, context) => {
|
|
3351
|
-
return (0, smithy_client_1.take)(output, {
|
|
3352
|
-
Description: smithy_client_1.expectString,
|
|
3353
|
-
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3354
|
-
QueryStatement: smithy_client_1.expectString,
|
|
3355
|
-
StatementName: smithy_client_1.expectString,
|
|
3356
|
-
WorkGroupName: smithy_client_1.expectString,
|
|
3357
|
-
});
|
|
3358
|
-
};
|
|
3359
|
-
const de_PreparedStatementDetailsList = (output, context) => {
|
|
3360
|
-
const retVal = (output || [])
|
|
3361
|
-
.filter((e) => e != null)
|
|
3362
|
-
.map((entry) => {
|
|
3363
|
-
return de_PreparedStatement(entry, context);
|
|
3364
|
-
});
|
|
3365
|
-
return retVal;
|
|
3366
|
-
};
|
|
3367
|
-
const de_PreparedStatementsList = (output, context) => {
|
|
3368
|
-
const retVal = (output || [])
|
|
3369
|
-
.filter((e) => e != null)
|
|
3370
|
-
.map((entry) => {
|
|
3371
|
-
return de_PreparedStatementSummary(entry, context);
|
|
3372
|
-
});
|
|
3373
|
-
return retVal;
|
|
3374
|
-
};
|
|
3375
|
-
const de_PreparedStatementSummary = (output, context) => {
|
|
3376
|
-
return (0, smithy_client_1.take)(output, {
|
|
3377
|
-
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3378
|
-
StatementName: smithy_client_1.expectString,
|
|
3379
|
-
});
|
|
3380
|
-
};
|
|
3381
|
-
const de_QueryExecution = (output, context) => {
|
|
3382
|
-
return (0, smithy_client_1.take)(output, {
|
|
3383
|
-
EngineVersion: smithy_client_1._json,
|
|
3384
|
-
ExecutionParameters: smithy_client_1._json,
|
|
3385
|
-
Query: smithy_client_1.expectString,
|
|
3386
|
-
QueryExecutionContext: smithy_client_1._json,
|
|
3387
|
-
QueryExecutionId: smithy_client_1.expectString,
|
|
3388
|
-
QueryResultsS3AccessGrantsConfiguration: smithy_client_1._json,
|
|
3389
|
-
ResultConfiguration: smithy_client_1._json,
|
|
3390
|
-
ResultReuseConfiguration: smithy_client_1._json,
|
|
3391
|
-
StatementType: smithy_client_1.expectString,
|
|
3392
|
-
Statistics: smithy_client_1._json,
|
|
3393
|
-
Status: (_) => de_QueryExecutionStatus(_, context),
|
|
3394
|
-
SubstatementType: smithy_client_1.expectString,
|
|
3395
|
-
WorkGroup: smithy_client_1.expectString,
|
|
3396
|
-
});
|
|
3397
|
-
};
|
|
3398
|
-
const de_QueryExecutionList = (output, context) => {
|
|
3399
|
-
const retVal = (output || [])
|
|
3400
|
-
.filter((e) => e != null)
|
|
3401
|
-
.map((entry) => {
|
|
3402
|
-
return de_QueryExecution(entry, context);
|
|
3403
|
-
});
|
|
3404
|
-
return retVal;
|
|
3405
|
-
};
|
|
3406
|
-
const de_QueryExecutionStatus = (output, context) => {
|
|
3407
|
-
return (0, smithy_client_1.take)(output, {
|
|
3408
|
-
AthenaError: smithy_client_1._json,
|
|
3409
|
-
CompletionDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3410
|
-
State: smithy_client_1.expectString,
|
|
3411
|
-
StateChangeReason: smithy_client_1.expectString,
|
|
3412
|
-
SubmissionDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3413
|
-
});
|
|
3414
|
-
};
|
|
3415
|
-
const de_QueryRuntimeStatistics = (output, context) => {
|
|
3416
|
-
return (0, smithy_client_1.take)(output, {
|
|
3417
|
-
OutputStage: (_) => de_QueryStage(_, context),
|
|
3418
|
-
Rows: smithy_client_1._json,
|
|
3419
|
-
Timeline: smithy_client_1._json,
|
|
3420
|
-
});
|
|
3421
|
-
};
|
|
3422
|
-
const de_QueryStage = (output, context) => {
|
|
3423
|
-
return (0, smithy_client_1.take)(output, {
|
|
3424
|
-
ExecutionTime: smithy_client_1.expectLong,
|
|
3425
|
-
InputBytes: smithy_client_1.expectLong,
|
|
3426
|
-
InputRows: smithy_client_1.expectLong,
|
|
3427
|
-
OutputBytes: smithy_client_1.expectLong,
|
|
3428
|
-
OutputRows: smithy_client_1.expectLong,
|
|
3429
|
-
QueryStagePlan: (_) => de_QueryStagePlanNode(_, context),
|
|
3430
|
-
StageId: smithy_client_1.expectLong,
|
|
3431
|
-
State: smithy_client_1.expectString,
|
|
3432
|
-
SubStages: (_) => de_QueryStages(_, context),
|
|
3433
|
-
});
|
|
3434
|
-
};
|
|
3435
|
-
const de_QueryStagePlanNode = (output, context) => {
|
|
3436
|
-
return (0, smithy_client_1.take)(output, {
|
|
3437
|
-
Children: (_) => de_QueryStagePlanNodes(_, context),
|
|
3438
|
-
Identifier: smithy_client_1.expectString,
|
|
3439
|
-
Name: smithy_client_1.expectString,
|
|
3440
|
-
RemoteSources: smithy_client_1._json,
|
|
3441
|
-
});
|
|
3442
|
-
};
|
|
3443
|
-
const de_QueryStagePlanNodes = (output, context) => {
|
|
3444
|
-
const retVal = (output || [])
|
|
3445
|
-
.filter((e) => e != null)
|
|
3446
|
-
.map((entry) => {
|
|
3447
|
-
return de_QueryStagePlanNode(entry, context);
|
|
3448
|
-
});
|
|
3449
|
-
return retVal;
|
|
3450
|
-
};
|
|
3451
|
-
const de_QueryStages = (output, context) => {
|
|
3452
|
-
const retVal = (output || [])
|
|
3453
|
-
.filter((e) => e != null)
|
|
3454
|
-
.map((entry) => {
|
|
3455
|
-
return de_QueryStage(entry, context);
|
|
3456
|
-
});
|
|
3457
|
-
return retVal;
|
|
3458
|
-
};
|
|
3459
|
-
const de_SessionsList = (output, context) => {
|
|
3460
|
-
const retVal = (output || [])
|
|
3461
|
-
.filter((e) => e != null)
|
|
3462
|
-
.map((entry) => {
|
|
3463
|
-
return de_SessionSummary(entry, context);
|
|
3464
|
-
});
|
|
3465
|
-
return retVal;
|
|
3466
|
-
};
|
|
3467
|
-
const de_SessionStatus = (output, context) => {
|
|
3468
|
-
return (0, smithy_client_1.take)(output, {
|
|
3469
|
-
EndDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3470
|
-
IdleSinceDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3471
|
-
LastModifiedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3472
|
-
StartDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3473
|
-
State: smithy_client_1.expectString,
|
|
3474
|
-
StateChangeReason: smithy_client_1.expectString,
|
|
3475
|
-
});
|
|
3476
|
-
};
|
|
3477
|
-
const de_SessionSummary = (output, context) => {
|
|
3478
|
-
return (0, smithy_client_1.take)(output, {
|
|
3479
|
-
Description: smithy_client_1.expectString,
|
|
3480
|
-
EngineVersion: smithy_client_1._json,
|
|
3481
|
-
NotebookVersion: smithy_client_1.expectString,
|
|
3482
|
-
SessionId: smithy_client_1.expectString,
|
|
3483
|
-
Status: (_) => de_SessionStatus(_, context),
|
|
3484
|
-
});
|
|
3485
|
-
};
|
|
3486
|
-
const de_TableMetadata = (output, context) => {
|
|
3487
|
-
return (0, smithy_client_1.take)(output, {
|
|
3488
|
-
Columns: smithy_client_1._json,
|
|
3489
|
-
CreateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3490
|
-
LastAccessTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3491
|
-
Name: smithy_client_1.expectString,
|
|
3492
|
-
Parameters: smithy_client_1._json,
|
|
3493
|
-
PartitionKeys: smithy_client_1._json,
|
|
3494
|
-
TableType: smithy_client_1.expectString,
|
|
3495
|
-
});
|
|
3496
|
-
};
|
|
3497
|
-
const de_TableMetadataList = (output, context) => {
|
|
3498
|
-
const retVal = (output || [])
|
|
3499
|
-
.filter((e) => e != null)
|
|
3500
|
-
.map((entry) => {
|
|
3501
|
-
return de_TableMetadata(entry, context);
|
|
3502
|
-
});
|
|
3503
|
-
return retVal;
|
|
3504
|
-
};
|
|
3505
|
-
const de_WorkGroup = (output, context) => {
|
|
3506
|
-
return (0, smithy_client_1.take)(output, {
|
|
3507
|
-
Configuration: smithy_client_1._json,
|
|
3508
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3509
|
-
Description: smithy_client_1.expectString,
|
|
3510
|
-
IdentityCenterApplicationArn: smithy_client_1.expectString,
|
|
3511
|
-
Name: smithy_client_1.expectString,
|
|
3512
|
-
State: smithy_client_1.expectString,
|
|
3513
|
-
});
|
|
3514
|
-
};
|
|
3515
|
-
const de_WorkGroupsList = (output, context) => {
|
|
3516
|
-
const retVal = (output || [])
|
|
3517
|
-
.filter((e) => e != null)
|
|
3518
|
-
.map((entry) => {
|
|
3519
|
-
return de_WorkGroupSummary(entry, context);
|
|
3520
|
-
});
|
|
3521
|
-
return retVal;
|
|
3522
|
-
};
|
|
3523
|
-
const de_WorkGroupSummary = (output, context) => {
|
|
3524
|
-
return (0, smithy_client_1.take)(output, {
|
|
3525
|
-
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3526
|
-
Description: smithy_client_1.expectString,
|
|
3527
|
-
EngineVersion: smithy_client_1._json,
|
|
3528
|
-
IdentityCenterApplicationArn: smithy_client_1.expectString,
|
|
3529
|
-
Name: smithy_client_1.expectString,
|
|
3530
|
-
State: smithy_client_1.expectString,
|
|
3531
|
-
});
|
|
3532
|
-
};
|
|
3533
|
-
const deserializeMetadata = (output) => ({
|
|
3534
|
-
httpStatusCode: output.statusCode,
|
|
3535
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
3536
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
3537
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
3538
|
-
});
|
|
3539
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
3540
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(AthenaServiceException_1.AthenaServiceException);
|
|
3541
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
3542
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3543
|
-
const contents = {
|
|
3544
|
-
protocol,
|
|
3545
|
-
hostname,
|
|
3546
|
-
port,
|
|
3547
|
-
method: "POST",
|
|
3548
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
3549
|
-
headers,
|
|
3550
|
-
};
|
|
3551
|
-
if (resolvedHostname !== undefined) {
|
|
3552
|
-
contents.hostname = resolvedHostname;
|
|
3553
|
-
}
|
|
3554
|
-
if (body !== undefined) {
|
|
3555
|
-
contents.body = body;
|
|
3556
|
-
}
|
|
3557
|
-
return new protocol_http_1.HttpRequest(contents);
|
|
3558
|
-
};
|
|
3559
|
-
function sharedHeaders(operation) {
|
|
3560
|
-
return {
|
|
3561
|
-
"content-type": "application/x-amz-json-1.1",
|
|
3562
|
-
"x-amz-target": `AmazonAthena.${operation}`,
|
|
3563
|
-
};
|
|
3564
|
-
}
|
|
3565
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
3566
|
-
if (encoded.length) {
|
|
3567
|
-
return JSON.parse(encoded);
|
|
3568
|
-
}
|
|
3569
|
-
return {};
|
|
3570
|
-
});
|
|
3571
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
3572
|
-
const value = await parseBody(errorBody, context);
|
|
3573
|
-
value.message = value.message ?? value.Message;
|
|
3574
|
-
return value;
|
|
3575
|
-
};
|
|
3576
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
3577
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
3578
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
3579
|
-
let cleanValue = rawValue;
|
|
3580
|
-
if (typeof cleanValue === "number") {
|
|
3581
|
-
cleanValue = cleanValue.toString();
|
|
3582
|
-
}
|
|
3583
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
3584
|
-
cleanValue = cleanValue.split(",")[0];
|
|
3585
|
-
}
|
|
3586
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
3587
|
-
cleanValue = cleanValue.split(":")[0];
|
|
3588
|
-
}
|
|
3589
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
3590
|
-
cleanValue = cleanValue.split("#")[1];
|
|
3591
|
-
}
|
|
3592
|
-
return cleanValue;
|
|
3593
|
-
};
|
|
3594
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
3595
|
-
if (headerKey !== undefined) {
|
|
3596
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
3597
|
-
}
|
|
3598
|
-
if (data.code !== undefined) {
|
|
3599
|
-
return sanitizeErrorCode(data.code);
|
|
3600
|
-
}
|
|
3601
|
-
if (data["__type"] !== undefined) {
|
|
3602
|
-
return sanitizeErrorCode(data["__type"]);
|
|
3603
|
-
}
|
|
3604
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|