@aws-sdk/client-timestream-query 3.41.0 → 3.46.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +47 -0
- package/README.md +3 -2
- package/dist-cjs/TimestreamQuery.js +150 -0
- package/dist-cjs/commands/CreateScheduledQueryCommand.js +38 -0
- package/dist-cjs/commands/DeleteScheduledQueryCommand.js +38 -0
- package/dist-cjs/commands/DescribeScheduledQueryCommand.js +38 -0
- package/dist-cjs/commands/ExecuteScheduledQueryCommand.js +38 -0
- package/dist-cjs/commands/ListScheduledQueriesCommand.js +38 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +38 -0
- package/dist-cjs/commands/PrepareQueryCommand.js +38 -0
- package/dist-cjs/commands/TagResourceCommand.js +38 -0
- package/dist-cjs/commands/UntagResourceCommand.js +38 -0
- package/dist-cjs/commands/UpdateScheduledQueryCommand.js +38 -0
- package/dist-cjs/commands/index.js +10 -0
- package/dist-cjs/endpoints.js +1 -0
- package/dist-cjs/models/models_0.js +291 -1
- package/dist-cjs/pagination/ListScheduledQueriesPaginator.js +35 -0
- package/dist-cjs/pagination/ListTagsForResourcePaginator.js +35 -0
- package/dist-cjs/pagination/index.js +2 -0
- package/dist-cjs/protocols/Aws_json1_0.js +1580 -34
- package/dist-cjs/runtimeConfig.js +0 -2
- package/dist-es/TimestreamQuery.js +150 -0
- package/dist-es/commands/CreateScheduledQueryCommand.js +41 -0
- package/dist-es/commands/DeleteScheduledQueryCommand.js +41 -0
- package/dist-es/commands/DescribeScheduledQueryCommand.js +41 -0
- package/dist-es/commands/ExecuteScheduledQueryCommand.js +41 -0
- package/dist-es/commands/ListScheduledQueriesCommand.js +41 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +41 -0
- package/dist-es/commands/PrepareQueryCommand.js +41 -0
- package/dist-es/commands/TagResourceCommand.js +41 -0
- package/dist-es/commands/UntagResourceCommand.js +41 -0
- package/dist-es/commands/UpdateScheduledQueryCommand.js +41 -0
- package/dist-es/commands/index.js +10 -0
- package/dist-es/endpoints.js +1 -0
- package/dist-es/models/models_0.js +200 -0
- package/dist-es/pagination/ListScheduledQueriesPaginator.js +74 -0
- package/dist-es/pagination/ListTagsForResourcePaginator.js +74 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_json1_0.js +1678 -106
- package/dist-es/runtimeConfig.js +0 -2
- package/dist-types/TimestreamQuery.d.ts +132 -19
- package/dist-types/TimestreamQueryClient.d.ts +15 -5
- package/dist-types/commands/CancelQueryCommand.d.ts +6 -5
- package/dist-types/commands/CreateScheduledQueryCommand.d.ts +39 -0
- package/dist-types/commands/DeleteScheduledQueryCommand.d.ts +35 -0
- package/dist-types/commands/DescribeEndpointsCommand.d.ts +15 -9
- package/dist-types/commands/DescribeScheduledQueryCommand.d.ts +35 -0
- package/dist-types/commands/ExecuteScheduledQueryCommand.d.ts +35 -0
- package/dist-types/commands/ListScheduledQueriesCommand.d.ts +35 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +35 -0
- package/dist-types/commands/PrepareQueryCommand.d.ts +37 -0
- package/dist-types/commands/QueryCommand.d.ts +30 -2
- package/dist-types/commands/TagResourceCommand.d.ts +37 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +35 -0
- package/dist-types/commands/UpdateScheduledQueryCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +1183 -183
- package/dist-types/pagination/ListScheduledQueriesPaginator.d.ts +4 -0
- package/dist-types/pagination/ListTagsForResourcePaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_json1_0.d.ts +30 -0
- package/dist-types/ts3.4/TimestreamQuery.d.ts +50 -0
- package/dist-types/ts3.4/TimestreamQueryClient.d.ts +12 -2
- package/dist-types/ts3.4/commands/CreateScheduledQueryCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteScheduledQueryCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeScheduledQueryCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ExecuteScheduledQueryCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListScheduledQueriesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PrepareQueryCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateScheduledQueryCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +10 -0
- package/dist-types/ts3.4/models/models_0.d.ts +536 -0
- package/dist-types/ts3.4/pagination/ListScheduledQueriesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListTagsForResourcePaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +30 -0
- package/package.json +37 -44
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.deserializeAws_json1_0QueryCommand = exports.deserializeAws_json1_0DescribeEndpointsCommand = exports.deserializeAws_json1_0CancelQueryCommand = exports.serializeAws_json1_0QueryCommand = exports.serializeAws_json1_0DescribeEndpointsCommand = exports.serializeAws_json1_0CancelQueryCommand = void 0;
|
|
3
|
+
exports.deserializeAws_json1_0UpdateScheduledQueryCommand = exports.deserializeAws_json1_0UntagResourceCommand = exports.deserializeAws_json1_0TagResourceCommand = exports.deserializeAws_json1_0QueryCommand = exports.deserializeAws_json1_0PrepareQueryCommand = exports.deserializeAws_json1_0ListTagsForResourceCommand = exports.deserializeAws_json1_0ListScheduledQueriesCommand = exports.deserializeAws_json1_0ExecuteScheduledQueryCommand = exports.deserializeAws_json1_0DescribeScheduledQueryCommand = exports.deserializeAws_json1_0DescribeEndpointsCommand = exports.deserializeAws_json1_0DeleteScheduledQueryCommand = exports.deserializeAws_json1_0CreateScheduledQueryCommand = exports.deserializeAws_json1_0CancelQueryCommand = exports.serializeAws_json1_0UpdateScheduledQueryCommand = exports.serializeAws_json1_0UntagResourceCommand = exports.serializeAws_json1_0TagResourceCommand = exports.serializeAws_json1_0QueryCommand = exports.serializeAws_json1_0PrepareQueryCommand = exports.serializeAws_json1_0ListTagsForResourceCommand = exports.serializeAws_json1_0ListScheduledQueriesCommand = exports.serializeAws_json1_0ExecuteScheduledQueryCommand = exports.serializeAws_json1_0DescribeScheduledQueryCommand = exports.serializeAws_json1_0DescribeEndpointsCommand = exports.serializeAws_json1_0DeleteScheduledQueryCommand = exports.serializeAws_json1_0CreateScheduledQueryCommand = exports.serializeAws_json1_0CancelQueryCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const uuid_1 = require("uuid");
|
|
@@ -14,6 +14,26 @@ const serializeAws_json1_0CancelQueryCommand = async (input, context) => {
|
|
|
14
14
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
15
15
|
};
|
|
16
16
|
exports.serializeAws_json1_0CancelQueryCommand = serializeAws_json1_0CancelQueryCommand;
|
|
17
|
+
const serializeAws_json1_0CreateScheduledQueryCommand = async (input, context) => {
|
|
18
|
+
const headers = {
|
|
19
|
+
"content-type": "application/x-amz-json-1.0",
|
|
20
|
+
"x-amz-target": "Timestream_20181101.CreateScheduledQuery",
|
|
21
|
+
};
|
|
22
|
+
let body;
|
|
23
|
+
body = JSON.stringify(serializeAws_json1_0CreateScheduledQueryRequest(input, context));
|
|
24
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
25
|
+
};
|
|
26
|
+
exports.serializeAws_json1_0CreateScheduledQueryCommand = serializeAws_json1_0CreateScheduledQueryCommand;
|
|
27
|
+
const serializeAws_json1_0DeleteScheduledQueryCommand = async (input, context) => {
|
|
28
|
+
const headers = {
|
|
29
|
+
"content-type": "application/x-amz-json-1.0",
|
|
30
|
+
"x-amz-target": "Timestream_20181101.DeleteScheduledQuery",
|
|
31
|
+
};
|
|
32
|
+
let body;
|
|
33
|
+
body = JSON.stringify(serializeAws_json1_0DeleteScheduledQueryRequest(input, context));
|
|
34
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
35
|
+
};
|
|
36
|
+
exports.serializeAws_json1_0DeleteScheduledQueryCommand = serializeAws_json1_0DeleteScheduledQueryCommand;
|
|
17
37
|
const serializeAws_json1_0DescribeEndpointsCommand = async (input, context) => {
|
|
18
38
|
const headers = {
|
|
19
39
|
"content-type": "application/x-amz-json-1.0",
|
|
@@ -24,6 +44,56 @@ const serializeAws_json1_0DescribeEndpointsCommand = async (input, context) => {
|
|
|
24
44
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
25
45
|
};
|
|
26
46
|
exports.serializeAws_json1_0DescribeEndpointsCommand = serializeAws_json1_0DescribeEndpointsCommand;
|
|
47
|
+
const serializeAws_json1_0DescribeScheduledQueryCommand = async (input, context) => {
|
|
48
|
+
const headers = {
|
|
49
|
+
"content-type": "application/x-amz-json-1.0",
|
|
50
|
+
"x-amz-target": "Timestream_20181101.DescribeScheduledQuery",
|
|
51
|
+
};
|
|
52
|
+
let body;
|
|
53
|
+
body = JSON.stringify(serializeAws_json1_0DescribeScheduledQueryRequest(input, context));
|
|
54
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
55
|
+
};
|
|
56
|
+
exports.serializeAws_json1_0DescribeScheduledQueryCommand = serializeAws_json1_0DescribeScheduledQueryCommand;
|
|
57
|
+
const serializeAws_json1_0ExecuteScheduledQueryCommand = async (input, context) => {
|
|
58
|
+
const headers = {
|
|
59
|
+
"content-type": "application/x-amz-json-1.0",
|
|
60
|
+
"x-amz-target": "Timestream_20181101.ExecuteScheduledQuery",
|
|
61
|
+
};
|
|
62
|
+
let body;
|
|
63
|
+
body = JSON.stringify(serializeAws_json1_0ExecuteScheduledQueryRequest(input, context));
|
|
64
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
65
|
+
};
|
|
66
|
+
exports.serializeAws_json1_0ExecuteScheduledQueryCommand = serializeAws_json1_0ExecuteScheduledQueryCommand;
|
|
67
|
+
const serializeAws_json1_0ListScheduledQueriesCommand = async (input, context) => {
|
|
68
|
+
const headers = {
|
|
69
|
+
"content-type": "application/x-amz-json-1.0",
|
|
70
|
+
"x-amz-target": "Timestream_20181101.ListScheduledQueries",
|
|
71
|
+
};
|
|
72
|
+
let body;
|
|
73
|
+
body = JSON.stringify(serializeAws_json1_0ListScheduledQueriesRequest(input, context));
|
|
74
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
75
|
+
};
|
|
76
|
+
exports.serializeAws_json1_0ListScheduledQueriesCommand = serializeAws_json1_0ListScheduledQueriesCommand;
|
|
77
|
+
const serializeAws_json1_0ListTagsForResourceCommand = async (input, context) => {
|
|
78
|
+
const headers = {
|
|
79
|
+
"content-type": "application/x-amz-json-1.0",
|
|
80
|
+
"x-amz-target": "Timestream_20181101.ListTagsForResource",
|
|
81
|
+
};
|
|
82
|
+
let body;
|
|
83
|
+
body = JSON.stringify(serializeAws_json1_0ListTagsForResourceRequest(input, context));
|
|
84
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
85
|
+
};
|
|
86
|
+
exports.serializeAws_json1_0ListTagsForResourceCommand = serializeAws_json1_0ListTagsForResourceCommand;
|
|
87
|
+
const serializeAws_json1_0PrepareQueryCommand = async (input, context) => {
|
|
88
|
+
const headers = {
|
|
89
|
+
"content-type": "application/x-amz-json-1.0",
|
|
90
|
+
"x-amz-target": "Timestream_20181101.PrepareQuery",
|
|
91
|
+
};
|
|
92
|
+
let body;
|
|
93
|
+
body = JSON.stringify(serializeAws_json1_0PrepareQueryRequest(input, context));
|
|
94
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
95
|
+
};
|
|
96
|
+
exports.serializeAws_json1_0PrepareQueryCommand = serializeAws_json1_0PrepareQueryCommand;
|
|
27
97
|
const serializeAws_json1_0QueryCommand = async (input, context) => {
|
|
28
98
|
const headers = {
|
|
29
99
|
"content-type": "application/x-amz-json-1.0",
|
|
@@ -34,6 +104,36 @@ const serializeAws_json1_0QueryCommand = async (input, context) => {
|
|
|
34
104
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
35
105
|
};
|
|
36
106
|
exports.serializeAws_json1_0QueryCommand = serializeAws_json1_0QueryCommand;
|
|
107
|
+
const serializeAws_json1_0TagResourceCommand = async (input, context) => {
|
|
108
|
+
const headers = {
|
|
109
|
+
"content-type": "application/x-amz-json-1.0",
|
|
110
|
+
"x-amz-target": "Timestream_20181101.TagResource",
|
|
111
|
+
};
|
|
112
|
+
let body;
|
|
113
|
+
body = JSON.stringify(serializeAws_json1_0TagResourceRequest(input, context));
|
|
114
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
115
|
+
};
|
|
116
|
+
exports.serializeAws_json1_0TagResourceCommand = serializeAws_json1_0TagResourceCommand;
|
|
117
|
+
const serializeAws_json1_0UntagResourceCommand = async (input, context) => {
|
|
118
|
+
const headers = {
|
|
119
|
+
"content-type": "application/x-amz-json-1.0",
|
|
120
|
+
"x-amz-target": "Timestream_20181101.UntagResource",
|
|
121
|
+
};
|
|
122
|
+
let body;
|
|
123
|
+
body = JSON.stringify(serializeAws_json1_0UntagResourceRequest(input, context));
|
|
124
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
125
|
+
};
|
|
126
|
+
exports.serializeAws_json1_0UntagResourceCommand = serializeAws_json1_0UntagResourceCommand;
|
|
127
|
+
const serializeAws_json1_0UpdateScheduledQueryCommand = async (input, context) => {
|
|
128
|
+
const headers = {
|
|
129
|
+
"content-type": "application/x-amz-json-1.0",
|
|
130
|
+
"x-amz-target": "Timestream_20181101.UpdateScheduledQuery",
|
|
131
|
+
};
|
|
132
|
+
let body;
|
|
133
|
+
body = JSON.stringify(serializeAws_json1_0UpdateScheduledQueryRequest(input, context));
|
|
134
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
135
|
+
};
|
|
136
|
+
exports.serializeAws_json1_0UpdateScheduledQueryCommand = serializeAws_json1_0UpdateScheduledQueryCommand;
|
|
37
137
|
const deserializeAws_json1_0CancelQueryCommand = async (output, context) => {
|
|
38
138
|
if (output.statusCode >= 300) {
|
|
39
139
|
return deserializeAws_json1_0CancelQueryCommandError(output, context);
|
|
@@ -113,6 +213,185 @@ const deserializeAws_json1_0CancelQueryCommandError = async (output, context) =>
|
|
|
113
213
|
delete response.Message;
|
|
114
214
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
115
215
|
};
|
|
216
|
+
const deserializeAws_json1_0CreateScheduledQueryCommand = async (output, context) => {
|
|
217
|
+
if (output.statusCode >= 300) {
|
|
218
|
+
return deserializeAws_json1_0CreateScheduledQueryCommandError(output, context);
|
|
219
|
+
}
|
|
220
|
+
const data = await parseBody(output.body, context);
|
|
221
|
+
let contents = {};
|
|
222
|
+
contents = deserializeAws_json1_0CreateScheduledQueryResponse(data, context);
|
|
223
|
+
const response = {
|
|
224
|
+
$metadata: deserializeMetadata(output),
|
|
225
|
+
...contents,
|
|
226
|
+
};
|
|
227
|
+
return Promise.resolve(response);
|
|
228
|
+
};
|
|
229
|
+
exports.deserializeAws_json1_0CreateScheduledQueryCommand = deserializeAws_json1_0CreateScheduledQueryCommand;
|
|
230
|
+
const deserializeAws_json1_0CreateScheduledQueryCommandError = async (output, context) => {
|
|
231
|
+
const parsedOutput = {
|
|
232
|
+
...output,
|
|
233
|
+
body: await parseBody(output.body, context),
|
|
234
|
+
};
|
|
235
|
+
let response;
|
|
236
|
+
let errorCode = "UnknownError";
|
|
237
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
238
|
+
switch (errorCode) {
|
|
239
|
+
case "AccessDeniedException":
|
|
240
|
+
case "com.amazonaws.timestreamquery#AccessDeniedException":
|
|
241
|
+
response = {
|
|
242
|
+
...(await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
243
|
+
name: errorCode,
|
|
244
|
+
$metadata: deserializeMetadata(output),
|
|
245
|
+
};
|
|
246
|
+
break;
|
|
247
|
+
case "ConflictException":
|
|
248
|
+
case "com.amazonaws.timestreamquery#ConflictException":
|
|
249
|
+
response = {
|
|
250
|
+
...(await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context)),
|
|
251
|
+
name: errorCode,
|
|
252
|
+
$metadata: deserializeMetadata(output),
|
|
253
|
+
};
|
|
254
|
+
break;
|
|
255
|
+
case "InternalServerException":
|
|
256
|
+
case "com.amazonaws.timestreamquery#InternalServerException":
|
|
257
|
+
response = {
|
|
258
|
+
...(await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)),
|
|
259
|
+
name: errorCode,
|
|
260
|
+
$metadata: deserializeMetadata(output),
|
|
261
|
+
};
|
|
262
|
+
break;
|
|
263
|
+
case "InvalidEndpointException":
|
|
264
|
+
case "com.amazonaws.timestreamquery#InvalidEndpointException":
|
|
265
|
+
response = {
|
|
266
|
+
...(await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)),
|
|
267
|
+
name: errorCode,
|
|
268
|
+
$metadata: deserializeMetadata(output),
|
|
269
|
+
};
|
|
270
|
+
break;
|
|
271
|
+
case "ServiceQuotaExceededException":
|
|
272
|
+
case "com.amazonaws.timestreamquery#ServiceQuotaExceededException":
|
|
273
|
+
response = {
|
|
274
|
+
...(await deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
275
|
+
name: errorCode,
|
|
276
|
+
$metadata: deserializeMetadata(output),
|
|
277
|
+
};
|
|
278
|
+
break;
|
|
279
|
+
case "ThrottlingException":
|
|
280
|
+
case "com.amazonaws.timestreamquery#ThrottlingException":
|
|
281
|
+
response = {
|
|
282
|
+
...(await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)),
|
|
283
|
+
name: errorCode,
|
|
284
|
+
$metadata: deserializeMetadata(output),
|
|
285
|
+
};
|
|
286
|
+
break;
|
|
287
|
+
case "ValidationException":
|
|
288
|
+
case "com.amazonaws.timestreamquery#ValidationException":
|
|
289
|
+
response = {
|
|
290
|
+
...(await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)),
|
|
291
|
+
name: errorCode,
|
|
292
|
+
$metadata: deserializeMetadata(output),
|
|
293
|
+
};
|
|
294
|
+
break;
|
|
295
|
+
default:
|
|
296
|
+
const parsedBody = parsedOutput.body;
|
|
297
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
298
|
+
response = {
|
|
299
|
+
...parsedBody,
|
|
300
|
+
name: `${errorCode}`,
|
|
301
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
302
|
+
$fault: "client",
|
|
303
|
+
$metadata: deserializeMetadata(output),
|
|
304
|
+
};
|
|
305
|
+
}
|
|
306
|
+
const message = response.message || response.Message || errorCode;
|
|
307
|
+
response.message = message;
|
|
308
|
+
delete response.Message;
|
|
309
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
310
|
+
};
|
|
311
|
+
const deserializeAws_json1_0DeleteScheduledQueryCommand = async (output, context) => {
|
|
312
|
+
if (output.statusCode >= 300) {
|
|
313
|
+
return deserializeAws_json1_0DeleteScheduledQueryCommandError(output, context);
|
|
314
|
+
}
|
|
315
|
+
await collectBody(output.body, context);
|
|
316
|
+
const response = {
|
|
317
|
+
$metadata: deserializeMetadata(output),
|
|
318
|
+
};
|
|
319
|
+
return Promise.resolve(response);
|
|
320
|
+
};
|
|
321
|
+
exports.deserializeAws_json1_0DeleteScheduledQueryCommand = deserializeAws_json1_0DeleteScheduledQueryCommand;
|
|
322
|
+
const deserializeAws_json1_0DeleteScheduledQueryCommandError = async (output, context) => {
|
|
323
|
+
const parsedOutput = {
|
|
324
|
+
...output,
|
|
325
|
+
body: await parseBody(output.body, context),
|
|
326
|
+
};
|
|
327
|
+
let response;
|
|
328
|
+
let errorCode = "UnknownError";
|
|
329
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
330
|
+
switch (errorCode) {
|
|
331
|
+
case "AccessDeniedException":
|
|
332
|
+
case "com.amazonaws.timestreamquery#AccessDeniedException":
|
|
333
|
+
response = {
|
|
334
|
+
...(await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
335
|
+
name: errorCode,
|
|
336
|
+
$metadata: deserializeMetadata(output),
|
|
337
|
+
};
|
|
338
|
+
break;
|
|
339
|
+
case "InternalServerException":
|
|
340
|
+
case "com.amazonaws.timestreamquery#InternalServerException":
|
|
341
|
+
response = {
|
|
342
|
+
...(await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)),
|
|
343
|
+
name: errorCode,
|
|
344
|
+
$metadata: deserializeMetadata(output),
|
|
345
|
+
};
|
|
346
|
+
break;
|
|
347
|
+
case "InvalidEndpointException":
|
|
348
|
+
case "com.amazonaws.timestreamquery#InvalidEndpointException":
|
|
349
|
+
response = {
|
|
350
|
+
...(await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)),
|
|
351
|
+
name: errorCode,
|
|
352
|
+
$metadata: deserializeMetadata(output),
|
|
353
|
+
};
|
|
354
|
+
break;
|
|
355
|
+
case "ResourceNotFoundException":
|
|
356
|
+
case "com.amazonaws.timestreamquery#ResourceNotFoundException":
|
|
357
|
+
response = {
|
|
358
|
+
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
359
|
+
name: errorCode,
|
|
360
|
+
$metadata: deserializeMetadata(output),
|
|
361
|
+
};
|
|
362
|
+
break;
|
|
363
|
+
case "ThrottlingException":
|
|
364
|
+
case "com.amazonaws.timestreamquery#ThrottlingException":
|
|
365
|
+
response = {
|
|
366
|
+
...(await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)),
|
|
367
|
+
name: errorCode,
|
|
368
|
+
$metadata: deserializeMetadata(output),
|
|
369
|
+
};
|
|
370
|
+
break;
|
|
371
|
+
case "ValidationException":
|
|
372
|
+
case "com.amazonaws.timestreamquery#ValidationException":
|
|
373
|
+
response = {
|
|
374
|
+
...(await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)),
|
|
375
|
+
name: errorCode,
|
|
376
|
+
$metadata: deserializeMetadata(output),
|
|
377
|
+
};
|
|
378
|
+
break;
|
|
379
|
+
default:
|
|
380
|
+
const parsedBody = parsedOutput.body;
|
|
381
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
382
|
+
response = {
|
|
383
|
+
...parsedBody,
|
|
384
|
+
name: `${errorCode}`,
|
|
385
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
386
|
+
$fault: "client",
|
|
387
|
+
$metadata: deserializeMetadata(output),
|
|
388
|
+
};
|
|
389
|
+
}
|
|
390
|
+
const message = response.message || response.Message || errorCode;
|
|
391
|
+
response.message = message;
|
|
392
|
+
delete response.Message;
|
|
393
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
394
|
+
};
|
|
116
395
|
const deserializeAws_json1_0DescribeEndpointsCommand = async (output, context) => {
|
|
117
396
|
if (output.statusCode >= 300) {
|
|
118
397
|
return deserializeAws_json1_0DescribeEndpointsCommandError(output, context);
|
|
@@ -176,21 +455,21 @@ const deserializeAws_json1_0DescribeEndpointsCommandError = async (output, conte
|
|
|
176
455
|
delete response.Message;
|
|
177
456
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
178
457
|
};
|
|
179
|
-
const
|
|
458
|
+
const deserializeAws_json1_0DescribeScheduledQueryCommand = async (output, context) => {
|
|
180
459
|
if (output.statusCode >= 300) {
|
|
181
|
-
return
|
|
460
|
+
return deserializeAws_json1_0DescribeScheduledQueryCommandError(output, context);
|
|
182
461
|
}
|
|
183
462
|
const data = await parseBody(output.body, context);
|
|
184
463
|
let contents = {};
|
|
185
|
-
contents =
|
|
464
|
+
contents = deserializeAws_json1_0DescribeScheduledQueryResponse(data, context);
|
|
186
465
|
const response = {
|
|
187
466
|
$metadata: deserializeMetadata(output),
|
|
188
467
|
...contents,
|
|
189
468
|
};
|
|
190
469
|
return Promise.resolve(response);
|
|
191
470
|
};
|
|
192
|
-
exports.
|
|
193
|
-
const
|
|
471
|
+
exports.deserializeAws_json1_0DescribeScheduledQueryCommand = deserializeAws_json1_0DescribeScheduledQueryCommand;
|
|
472
|
+
const deserializeAws_json1_0DescribeScheduledQueryCommandError = async (output, context) => {
|
|
194
473
|
const parsedOutput = {
|
|
195
474
|
...output,
|
|
196
475
|
body: await parseBody(output.body, context),
|
|
@@ -207,14 +486,6 @@ const deserializeAws_json1_0QueryCommandError = async (output, context) => {
|
|
|
207
486
|
$metadata: deserializeMetadata(output),
|
|
208
487
|
};
|
|
209
488
|
break;
|
|
210
|
-
case "ConflictException":
|
|
211
|
-
case "com.amazonaws.timestreamquery#ConflictException":
|
|
212
|
-
response = {
|
|
213
|
-
...(await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context)),
|
|
214
|
-
name: errorCode,
|
|
215
|
-
$metadata: deserializeMetadata(output),
|
|
216
|
-
};
|
|
217
|
-
break;
|
|
218
489
|
case "InternalServerException":
|
|
219
490
|
case "com.amazonaws.timestreamquery#InternalServerException":
|
|
220
491
|
response = {
|
|
@@ -231,10 +502,10 @@ const deserializeAws_json1_0QueryCommandError = async (output, context) => {
|
|
|
231
502
|
$metadata: deserializeMetadata(output),
|
|
232
503
|
};
|
|
233
504
|
break;
|
|
234
|
-
case "
|
|
235
|
-
case "com.amazonaws.timestreamquery#
|
|
505
|
+
case "ResourceNotFoundException":
|
|
506
|
+
case "com.amazonaws.timestreamquery#ResourceNotFoundException":
|
|
236
507
|
response = {
|
|
237
|
-
...(await
|
|
508
|
+
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
238
509
|
name: errorCode,
|
|
239
510
|
$metadata: deserializeMetadata(output),
|
|
240
511
|
};
|
|
@@ -271,20 +542,662 @@ const deserializeAws_json1_0QueryCommandError = async (output, context) => {
|
|
|
271
542
|
delete response.Message;
|
|
272
543
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
273
544
|
};
|
|
274
|
-
const
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
$metadata: deserializeMetadata(
|
|
281
|
-
...deserialized,
|
|
545
|
+
const deserializeAws_json1_0ExecuteScheduledQueryCommand = async (output, context) => {
|
|
546
|
+
if (output.statusCode >= 300) {
|
|
547
|
+
return deserializeAws_json1_0ExecuteScheduledQueryCommandError(output, context);
|
|
548
|
+
}
|
|
549
|
+
await collectBody(output.body, context);
|
|
550
|
+
const response = {
|
|
551
|
+
$metadata: deserializeMetadata(output),
|
|
282
552
|
};
|
|
283
|
-
return
|
|
553
|
+
return Promise.resolve(response);
|
|
284
554
|
};
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
const
|
|
555
|
+
exports.deserializeAws_json1_0ExecuteScheduledQueryCommand = deserializeAws_json1_0ExecuteScheduledQueryCommand;
|
|
556
|
+
const deserializeAws_json1_0ExecuteScheduledQueryCommandError = async (output, context) => {
|
|
557
|
+
const parsedOutput = {
|
|
558
|
+
...output,
|
|
559
|
+
body: await parseBody(output.body, context),
|
|
560
|
+
};
|
|
561
|
+
let response;
|
|
562
|
+
let errorCode = "UnknownError";
|
|
563
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
564
|
+
switch (errorCode) {
|
|
565
|
+
case "AccessDeniedException":
|
|
566
|
+
case "com.amazonaws.timestreamquery#AccessDeniedException":
|
|
567
|
+
response = {
|
|
568
|
+
...(await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
569
|
+
name: errorCode,
|
|
570
|
+
$metadata: deserializeMetadata(output),
|
|
571
|
+
};
|
|
572
|
+
break;
|
|
573
|
+
case "InternalServerException":
|
|
574
|
+
case "com.amazonaws.timestreamquery#InternalServerException":
|
|
575
|
+
response = {
|
|
576
|
+
...(await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)),
|
|
577
|
+
name: errorCode,
|
|
578
|
+
$metadata: deserializeMetadata(output),
|
|
579
|
+
};
|
|
580
|
+
break;
|
|
581
|
+
case "InvalidEndpointException":
|
|
582
|
+
case "com.amazonaws.timestreamquery#InvalidEndpointException":
|
|
583
|
+
response = {
|
|
584
|
+
...(await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)),
|
|
585
|
+
name: errorCode,
|
|
586
|
+
$metadata: deserializeMetadata(output),
|
|
587
|
+
};
|
|
588
|
+
break;
|
|
589
|
+
case "ResourceNotFoundException":
|
|
590
|
+
case "com.amazonaws.timestreamquery#ResourceNotFoundException":
|
|
591
|
+
response = {
|
|
592
|
+
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
593
|
+
name: errorCode,
|
|
594
|
+
$metadata: deserializeMetadata(output),
|
|
595
|
+
};
|
|
596
|
+
break;
|
|
597
|
+
case "ThrottlingException":
|
|
598
|
+
case "com.amazonaws.timestreamquery#ThrottlingException":
|
|
599
|
+
response = {
|
|
600
|
+
...(await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)),
|
|
601
|
+
name: errorCode,
|
|
602
|
+
$metadata: deserializeMetadata(output),
|
|
603
|
+
};
|
|
604
|
+
break;
|
|
605
|
+
case "ValidationException":
|
|
606
|
+
case "com.amazonaws.timestreamquery#ValidationException":
|
|
607
|
+
response = {
|
|
608
|
+
...(await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)),
|
|
609
|
+
name: errorCode,
|
|
610
|
+
$metadata: deserializeMetadata(output),
|
|
611
|
+
};
|
|
612
|
+
break;
|
|
613
|
+
default:
|
|
614
|
+
const parsedBody = parsedOutput.body;
|
|
615
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
616
|
+
response = {
|
|
617
|
+
...parsedBody,
|
|
618
|
+
name: `${errorCode}`,
|
|
619
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
620
|
+
$fault: "client",
|
|
621
|
+
$metadata: deserializeMetadata(output),
|
|
622
|
+
};
|
|
623
|
+
}
|
|
624
|
+
const message = response.message || response.Message || errorCode;
|
|
625
|
+
response.message = message;
|
|
626
|
+
delete response.Message;
|
|
627
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
628
|
+
};
|
|
629
|
+
const deserializeAws_json1_0ListScheduledQueriesCommand = async (output, context) => {
|
|
630
|
+
if (output.statusCode >= 300) {
|
|
631
|
+
return deserializeAws_json1_0ListScheduledQueriesCommandError(output, context);
|
|
632
|
+
}
|
|
633
|
+
const data = await parseBody(output.body, context);
|
|
634
|
+
let contents = {};
|
|
635
|
+
contents = deserializeAws_json1_0ListScheduledQueriesResponse(data, context);
|
|
636
|
+
const response = {
|
|
637
|
+
$metadata: deserializeMetadata(output),
|
|
638
|
+
...contents,
|
|
639
|
+
};
|
|
640
|
+
return Promise.resolve(response);
|
|
641
|
+
};
|
|
642
|
+
exports.deserializeAws_json1_0ListScheduledQueriesCommand = deserializeAws_json1_0ListScheduledQueriesCommand;
|
|
643
|
+
const deserializeAws_json1_0ListScheduledQueriesCommandError = async (output, context) => {
|
|
644
|
+
const parsedOutput = {
|
|
645
|
+
...output,
|
|
646
|
+
body: await parseBody(output.body, context),
|
|
647
|
+
};
|
|
648
|
+
let response;
|
|
649
|
+
let errorCode = "UnknownError";
|
|
650
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
651
|
+
switch (errorCode) {
|
|
652
|
+
case "AccessDeniedException":
|
|
653
|
+
case "com.amazonaws.timestreamquery#AccessDeniedException":
|
|
654
|
+
response = {
|
|
655
|
+
...(await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
656
|
+
name: errorCode,
|
|
657
|
+
$metadata: deserializeMetadata(output),
|
|
658
|
+
};
|
|
659
|
+
break;
|
|
660
|
+
case "InternalServerException":
|
|
661
|
+
case "com.amazonaws.timestreamquery#InternalServerException":
|
|
662
|
+
response = {
|
|
663
|
+
...(await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)),
|
|
664
|
+
name: errorCode,
|
|
665
|
+
$metadata: deserializeMetadata(output),
|
|
666
|
+
};
|
|
667
|
+
break;
|
|
668
|
+
case "InvalidEndpointException":
|
|
669
|
+
case "com.amazonaws.timestreamquery#InvalidEndpointException":
|
|
670
|
+
response = {
|
|
671
|
+
...(await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)),
|
|
672
|
+
name: errorCode,
|
|
673
|
+
$metadata: deserializeMetadata(output),
|
|
674
|
+
};
|
|
675
|
+
break;
|
|
676
|
+
case "ThrottlingException":
|
|
677
|
+
case "com.amazonaws.timestreamquery#ThrottlingException":
|
|
678
|
+
response = {
|
|
679
|
+
...(await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)),
|
|
680
|
+
name: errorCode,
|
|
681
|
+
$metadata: deserializeMetadata(output),
|
|
682
|
+
};
|
|
683
|
+
break;
|
|
684
|
+
case "ValidationException":
|
|
685
|
+
case "com.amazonaws.timestreamquery#ValidationException":
|
|
686
|
+
response = {
|
|
687
|
+
...(await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)),
|
|
688
|
+
name: errorCode,
|
|
689
|
+
$metadata: deserializeMetadata(output),
|
|
690
|
+
};
|
|
691
|
+
break;
|
|
692
|
+
default:
|
|
693
|
+
const parsedBody = parsedOutput.body;
|
|
694
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
695
|
+
response = {
|
|
696
|
+
...parsedBody,
|
|
697
|
+
name: `${errorCode}`,
|
|
698
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
699
|
+
$fault: "client",
|
|
700
|
+
$metadata: deserializeMetadata(output),
|
|
701
|
+
};
|
|
702
|
+
}
|
|
703
|
+
const message = response.message || response.Message || errorCode;
|
|
704
|
+
response.message = message;
|
|
705
|
+
delete response.Message;
|
|
706
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
707
|
+
};
|
|
708
|
+
const deserializeAws_json1_0ListTagsForResourceCommand = async (output, context) => {
|
|
709
|
+
if (output.statusCode >= 300) {
|
|
710
|
+
return deserializeAws_json1_0ListTagsForResourceCommandError(output, context);
|
|
711
|
+
}
|
|
712
|
+
const data = await parseBody(output.body, context);
|
|
713
|
+
let contents = {};
|
|
714
|
+
contents = deserializeAws_json1_0ListTagsForResourceResponse(data, context);
|
|
715
|
+
const response = {
|
|
716
|
+
$metadata: deserializeMetadata(output),
|
|
717
|
+
...contents,
|
|
718
|
+
};
|
|
719
|
+
return Promise.resolve(response);
|
|
720
|
+
};
|
|
721
|
+
exports.deserializeAws_json1_0ListTagsForResourceCommand = deserializeAws_json1_0ListTagsForResourceCommand;
|
|
722
|
+
const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, context) => {
|
|
723
|
+
const parsedOutput = {
|
|
724
|
+
...output,
|
|
725
|
+
body: await parseBody(output.body, context),
|
|
726
|
+
};
|
|
727
|
+
let response;
|
|
728
|
+
let errorCode = "UnknownError";
|
|
729
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
730
|
+
switch (errorCode) {
|
|
731
|
+
case "InvalidEndpointException":
|
|
732
|
+
case "com.amazonaws.timestreamquery#InvalidEndpointException":
|
|
733
|
+
response = {
|
|
734
|
+
...(await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)),
|
|
735
|
+
name: errorCode,
|
|
736
|
+
$metadata: deserializeMetadata(output),
|
|
737
|
+
};
|
|
738
|
+
break;
|
|
739
|
+
case "ResourceNotFoundException":
|
|
740
|
+
case "com.amazonaws.timestreamquery#ResourceNotFoundException":
|
|
741
|
+
response = {
|
|
742
|
+
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
743
|
+
name: errorCode,
|
|
744
|
+
$metadata: deserializeMetadata(output),
|
|
745
|
+
};
|
|
746
|
+
break;
|
|
747
|
+
case "ThrottlingException":
|
|
748
|
+
case "com.amazonaws.timestreamquery#ThrottlingException":
|
|
749
|
+
response = {
|
|
750
|
+
...(await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)),
|
|
751
|
+
name: errorCode,
|
|
752
|
+
$metadata: deserializeMetadata(output),
|
|
753
|
+
};
|
|
754
|
+
break;
|
|
755
|
+
case "ValidationException":
|
|
756
|
+
case "com.amazonaws.timestreamquery#ValidationException":
|
|
757
|
+
response = {
|
|
758
|
+
...(await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)),
|
|
759
|
+
name: errorCode,
|
|
760
|
+
$metadata: deserializeMetadata(output),
|
|
761
|
+
};
|
|
762
|
+
break;
|
|
763
|
+
default:
|
|
764
|
+
const parsedBody = parsedOutput.body;
|
|
765
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
766
|
+
response = {
|
|
767
|
+
...parsedBody,
|
|
768
|
+
name: `${errorCode}`,
|
|
769
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
770
|
+
$fault: "client",
|
|
771
|
+
$metadata: deserializeMetadata(output),
|
|
772
|
+
};
|
|
773
|
+
}
|
|
774
|
+
const message = response.message || response.Message || errorCode;
|
|
775
|
+
response.message = message;
|
|
776
|
+
delete response.Message;
|
|
777
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
778
|
+
};
|
|
779
|
+
const deserializeAws_json1_0PrepareQueryCommand = async (output, context) => {
|
|
780
|
+
if (output.statusCode >= 300) {
|
|
781
|
+
return deserializeAws_json1_0PrepareQueryCommandError(output, context);
|
|
782
|
+
}
|
|
783
|
+
const data = await parseBody(output.body, context);
|
|
784
|
+
let contents = {};
|
|
785
|
+
contents = deserializeAws_json1_0PrepareQueryResponse(data, context);
|
|
786
|
+
const response = {
|
|
787
|
+
$metadata: deserializeMetadata(output),
|
|
788
|
+
...contents,
|
|
789
|
+
};
|
|
790
|
+
return Promise.resolve(response);
|
|
791
|
+
};
|
|
792
|
+
exports.deserializeAws_json1_0PrepareQueryCommand = deserializeAws_json1_0PrepareQueryCommand;
|
|
793
|
+
const deserializeAws_json1_0PrepareQueryCommandError = async (output, context) => {
|
|
794
|
+
const parsedOutput = {
|
|
795
|
+
...output,
|
|
796
|
+
body: await parseBody(output.body, context),
|
|
797
|
+
};
|
|
798
|
+
let response;
|
|
799
|
+
let errorCode = "UnknownError";
|
|
800
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
801
|
+
switch (errorCode) {
|
|
802
|
+
case "AccessDeniedException":
|
|
803
|
+
case "com.amazonaws.timestreamquery#AccessDeniedException":
|
|
804
|
+
response = {
|
|
805
|
+
...(await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
806
|
+
name: errorCode,
|
|
807
|
+
$metadata: deserializeMetadata(output),
|
|
808
|
+
};
|
|
809
|
+
break;
|
|
810
|
+
case "InternalServerException":
|
|
811
|
+
case "com.amazonaws.timestreamquery#InternalServerException":
|
|
812
|
+
response = {
|
|
813
|
+
...(await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)),
|
|
814
|
+
name: errorCode,
|
|
815
|
+
$metadata: deserializeMetadata(output),
|
|
816
|
+
};
|
|
817
|
+
break;
|
|
818
|
+
case "InvalidEndpointException":
|
|
819
|
+
case "com.amazonaws.timestreamquery#InvalidEndpointException":
|
|
820
|
+
response = {
|
|
821
|
+
...(await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)),
|
|
822
|
+
name: errorCode,
|
|
823
|
+
$metadata: deserializeMetadata(output),
|
|
824
|
+
};
|
|
825
|
+
break;
|
|
826
|
+
case "ThrottlingException":
|
|
827
|
+
case "com.amazonaws.timestreamquery#ThrottlingException":
|
|
828
|
+
response = {
|
|
829
|
+
...(await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)),
|
|
830
|
+
name: errorCode,
|
|
831
|
+
$metadata: deserializeMetadata(output),
|
|
832
|
+
};
|
|
833
|
+
break;
|
|
834
|
+
case "ValidationException":
|
|
835
|
+
case "com.amazonaws.timestreamquery#ValidationException":
|
|
836
|
+
response = {
|
|
837
|
+
...(await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)),
|
|
838
|
+
name: errorCode,
|
|
839
|
+
$metadata: deserializeMetadata(output),
|
|
840
|
+
};
|
|
841
|
+
break;
|
|
842
|
+
default:
|
|
843
|
+
const parsedBody = parsedOutput.body;
|
|
844
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
845
|
+
response = {
|
|
846
|
+
...parsedBody,
|
|
847
|
+
name: `${errorCode}`,
|
|
848
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
849
|
+
$fault: "client",
|
|
850
|
+
$metadata: deserializeMetadata(output),
|
|
851
|
+
};
|
|
852
|
+
}
|
|
853
|
+
const message = response.message || response.Message || errorCode;
|
|
854
|
+
response.message = message;
|
|
855
|
+
delete response.Message;
|
|
856
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
857
|
+
};
|
|
858
|
+
const deserializeAws_json1_0QueryCommand = async (output, context) => {
|
|
859
|
+
if (output.statusCode >= 300) {
|
|
860
|
+
return deserializeAws_json1_0QueryCommandError(output, context);
|
|
861
|
+
}
|
|
862
|
+
const data = await parseBody(output.body, context);
|
|
863
|
+
let contents = {};
|
|
864
|
+
contents = deserializeAws_json1_0QueryResponse(data, context);
|
|
865
|
+
const response = {
|
|
866
|
+
$metadata: deserializeMetadata(output),
|
|
867
|
+
...contents,
|
|
868
|
+
};
|
|
869
|
+
return Promise.resolve(response);
|
|
870
|
+
};
|
|
871
|
+
exports.deserializeAws_json1_0QueryCommand = deserializeAws_json1_0QueryCommand;
|
|
872
|
+
const deserializeAws_json1_0QueryCommandError = async (output, context) => {
|
|
873
|
+
const parsedOutput = {
|
|
874
|
+
...output,
|
|
875
|
+
body: await parseBody(output.body, context),
|
|
876
|
+
};
|
|
877
|
+
let response;
|
|
878
|
+
let errorCode = "UnknownError";
|
|
879
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
880
|
+
switch (errorCode) {
|
|
881
|
+
case "AccessDeniedException":
|
|
882
|
+
case "com.amazonaws.timestreamquery#AccessDeniedException":
|
|
883
|
+
response = {
|
|
884
|
+
...(await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
885
|
+
name: errorCode,
|
|
886
|
+
$metadata: deserializeMetadata(output),
|
|
887
|
+
};
|
|
888
|
+
break;
|
|
889
|
+
case "ConflictException":
|
|
890
|
+
case "com.amazonaws.timestreamquery#ConflictException":
|
|
891
|
+
response = {
|
|
892
|
+
...(await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context)),
|
|
893
|
+
name: errorCode,
|
|
894
|
+
$metadata: deserializeMetadata(output),
|
|
895
|
+
};
|
|
896
|
+
break;
|
|
897
|
+
case "InternalServerException":
|
|
898
|
+
case "com.amazonaws.timestreamquery#InternalServerException":
|
|
899
|
+
response = {
|
|
900
|
+
...(await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)),
|
|
901
|
+
name: errorCode,
|
|
902
|
+
$metadata: deserializeMetadata(output),
|
|
903
|
+
};
|
|
904
|
+
break;
|
|
905
|
+
case "InvalidEndpointException":
|
|
906
|
+
case "com.amazonaws.timestreamquery#InvalidEndpointException":
|
|
907
|
+
response = {
|
|
908
|
+
...(await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)),
|
|
909
|
+
name: errorCode,
|
|
910
|
+
$metadata: deserializeMetadata(output),
|
|
911
|
+
};
|
|
912
|
+
break;
|
|
913
|
+
case "QueryExecutionException":
|
|
914
|
+
case "com.amazonaws.timestreamquery#QueryExecutionException":
|
|
915
|
+
response = {
|
|
916
|
+
...(await deserializeAws_json1_0QueryExecutionExceptionResponse(parsedOutput, context)),
|
|
917
|
+
name: errorCode,
|
|
918
|
+
$metadata: deserializeMetadata(output),
|
|
919
|
+
};
|
|
920
|
+
break;
|
|
921
|
+
case "ThrottlingException":
|
|
922
|
+
case "com.amazonaws.timestreamquery#ThrottlingException":
|
|
923
|
+
response = {
|
|
924
|
+
...(await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)),
|
|
925
|
+
name: errorCode,
|
|
926
|
+
$metadata: deserializeMetadata(output),
|
|
927
|
+
};
|
|
928
|
+
break;
|
|
929
|
+
case "ValidationException":
|
|
930
|
+
case "com.amazonaws.timestreamquery#ValidationException":
|
|
931
|
+
response = {
|
|
932
|
+
...(await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)),
|
|
933
|
+
name: errorCode,
|
|
934
|
+
$metadata: deserializeMetadata(output),
|
|
935
|
+
};
|
|
936
|
+
break;
|
|
937
|
+
default:
|
|
938
|
+
const parsedBody = parsedOutput.body;
|
|
939
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
940
|
+
response = {
|
|
941
|
+
...parsedBody,
|
|
942
|
+
name: `${errorCode}`,
|
|
943
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
944
|
+
$fault: "client",
|
|
945
|
+
$metadata: deserializeMetadata(output),
|
|
946
|
+
};
|
|
947
|
+
}
|
|
948
|
+
const message = response.message || response.Message || errorCode;
|
|
949
|
+
response.message = message;
|
|
950
|
+
delete response.Message;
|
|
951
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
952
|
+
};
|
|
953
|
+
const deserializeAws_json1_0TagResourceCommand = async (output, context) => {
|
|
954
|
+
if (output.statusCode >= 300) {
|
|
955
|
+
return deserializeAws_json1_0TagResourceCommandError(output, context);
|
|
956
|
+
}
|
|
957
|
+
const data = await parseBody(output.body, context);
|
|
958
|
+
let contents = {};
|
|
959
|
+
contents = deserializeAws_json1_0TagResourceResponse(data, context);
|
|
960
|
+
const response = {
|
|
961
|
+
$metadata: deserializeMetadata(output),
|
|
962
|
+
...contents,
|
|
963
|
+
};
|
|
964
|
+
return Promise.resolve(response);
|
|
965
|
+
};
|
|
966
|
+
exports.deserializeAws_json1_0TagResourceCommand = deserializeAws_json1_0TagResourceCommand;
|
|
967
|
+
const deserializeAws_json1_0TagResourceCommandError = async (output, context) => {
|
|
968
|
+
const parsedOutput = {
|
|
969
|
+
...output,
|
|
970
|
+
body: await parseBody(output.body, context),
|
|
971
|
+
};
|
|
972
|
+
let response;
|
|
973
|
+
let errorCode = "UnknownError";
|
|
974
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
975
|
+
switch (errorCode) {
|
|
976
|
+
case "InvalidEndpointException":
|
|
977
|
+
case "com.amazonaws.timestreamquery#InvalidEndpointException":
|
|
978
|
+
response = {
|
|
979
|
+
...(await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)),
|
|
980
|
+
name: errorCode,
|
|
981
|
+
$metadata: deserializeMetadata(output),
|
|
982
|
+
};
|
|
983
|
+
break;
|
|
984
|
+
case "ResourceNotFoundException":
|
|
985
|
+
case "com.amazonaws.timestreamquery#ResourceNotFoundException":
|
|
986
|
+
response = {
|
|
987
|
+
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
988
|
+
name: errorCode,
|
|
989
|
+
$metadata: deserializeMetadata(output),
|
|
990
|
+
};
|
|
991
|
+
break;
|
|
992
|
+
case "ServiceQuotaExceededException":
|
|
993
|
+
case "com.amazonaws.timestreamquery#ServiceQuotaExceededException":
|
|
994
|
+
response = {
|
|
995
|
+
...(await deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
996
|
+
name: errorCode,
|
|
997
|
+
$metadata: deserializeMetadata(output),
|
|
998
|
+
};
|
|
999
|
+
break;
|
|
1000
|
+
case "ThrottlingException":
|
|
1001
|
+
case "com.amazonaws.timestreamquery#ThrottlingException":
|
|
1002
|
+
response = {
|
|
1003
|
+
...(await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1004
|
+
name: errorCode,
|
|
1005
|
+
$metadata: deserializeMetadata(output),
|
|
1006
|
+
};
|
|
1007
|
+
break;
|
|
1008
|
+
case "ValidationException":
|
|
1009
|
+
case "com.amazonaws.timestreamquery#ValidationException":
|
|
1010
|
+
response = {
|
|
1011
|
+
...(await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)),
|
|
1012
|
+
name: errorCode,
|
|
1013
|
+
$metadata: deserializeMetadata(output),
|
|
1014
|
+
};
|
|
1015
|
+
break;
|
|
1016
|
+
default:
|
|
1017
|
+
const parsedBody = parsedOutput.body;
|
|
1018
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1019
|
+
response = {
|
|
1020
|
+
...parsedBody,
|
|
1021
|
+
name: `${errorCode}`,
|
|
1022
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1023
|
+
$fault: "client",
|
|
1024
|
+
$metadata: deserializeMetadata(output),
|
|
1025
|
+
};
|
|
1026
|
+
}
|
|
1027
|
+
const message = response.message || response.Message || errorCode;
|
|
1028
|
+
response.message = message;
|
|
1029
|
+
delete response.Message;
|
|
1030
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
1031
|
+
};
|
|
1032
|
+
const deserializeAws_json1_0UntagResourceCommand = async (output, context) => {
|
|
1033
|
+
if (output.statusCode >= 300) {
|
|
1034
|
+
return deserializeAws_json1_0UntagResourceCommandError(output, context);
|
|
1035
|
+
}
|
|
1036
|
+
const data = await parseBody(output.body, context);
|
|
1037
|
+
let contents = {};
|
|
1038
|
+
contents = deserializeAws_json1_0UntagResourceResponse(data, context);
|
|
1039
|
+
const response = {
|
|
1040
|
+
$metadata: deserializeMetadata(output),
|
|
1041
|
+
...contents,
|
|
1042
|
+
};
|
|
1043
|
+
return Promise.resolve(response);
|
|
1044
|
+
};
|
|
1045
|
+
exports.deserializeAws_json1_0UntagResourceCommand = deserializeAws_json1_0UntagResourceCommand;
|
|
1046
|
+
const deserializeAws_json1_0UntagResourceCommandError = async (output, context) => {
|
|
1047
|
+
const parsedOutput = {
|
|
1048
|
+
...output,
|
|
1049
|
+
body: await parseBody(output.body, context),
|
|
1050
|
+
};
|
|
1051
|
+
let response;
|
|
1052
|
+
let errorCode = "UnknownError";
|
|
1053
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1054
|
+
switch (errorCode) {
|
|
1055
|
+
case "InvalidEndpointException":
|
|
1056
|
+
case "com.amazonaws.timestreamquery#InvalidEndpointException":
|
|
1057
|
+
response = {
|
|
1058
|
+
...(await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)),
|
|
1059
|
+
name: errorCode,
|
|
1060
|
+
$metadata: deserializeMetadata(output),
|
|
1061
|
+
};
|
|
1062
|
+
break;
|
|
1063
|
+
case "ResourceNotFoundException":
|
|
1064
|
+
case "com.amazonaws.timestreamquery#ResourceNotFoundException":
|
|
1065
|
+
response = {
|
|
1066
|
+
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1067
|
+
name: errorCode,
|
|
1068
|
+
$metadata: deserializeMetadata(output),
|
|
1069
|
+
};
|
|
1070
|
+
break;
|
|
1071
|
+
case "ThrottlingException":
|
|
1072
|
+
case "com.amazonaws.timestreamquery#ThrottlingException":
|
|
1073
|
+
response = {
|
|
1074
|
+
...(await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1075
|
+
name: errorCode,
|
|
1076
|
+
$metadata: deserializeMetadata(output),
|
|
1077
|
+
};
|
|
1078
|
+
break;
|
|
1079
|
+
case "ValidationException":
|
|
1080
|
+
case "com.amazonaws.timestreamquery#ValidationException":
|
|
1081
|
+
response = {
|
|
1082
|
+
...(await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)),
|
|
1083
|
+
name: errorCode,
|
|
1084
|
+
$metadata: deserializeMetadata(output),
|
|
1085
|
+
};
|
|
1086
|
+
break;
|
|
1087
|
+
default:
|
|
1088
|
+
const parsedBody = parsedOutput.body;
|
|
1089
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1090
|
+
response = {
|
|
1091
|
+
...parsedBody,
|
|
1092
|
+
name: `${errorCode}`,
|
|
1093
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1094
|
+
$fault: "client",
|
|
1095
|
+
$metadata: deserializeMetadata(output),
|
|
1096
|
+
};
|
|
1097
|
+
}
|
|
1098
|
+
const message = response.message || response.Message || errorCode;
|
|
1099
|
+
response.message = message;
|
|
1100
|
+
delete response.Message;
|
|
1101
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
1102
|
+
};
|
|
1103
|
+
const deserializeAws_json1_0UpdateScheduledQueryCommand = async (output, context) => {
|
|
1104
|
+
if (output.statusCode >= 300) {
|
|
1105
|
+
return deserializeAws_json1_0UpdateScheduledQueryCommandError(output, context);
|
|
1106
|
+
}
|
|
1107
|
+
await collectBody(output.body, context);
|
|
1108
|
+
const response = {
|
|
1109
|
+
$metadata: deserializeMetadata(output),
|
|
1110
|
+
};
|
|
1111
|
+
return Promise.resolve(response);
|
|
1112
|
+
};
|
|
1113
|
+
exports.deserializeAws_json1_0UpdateScheduledQueryCommand = deserializeAws_json1_0UpdateScheduledQueryCommand;
|
|
1114
|
+
const deserializeAws_json1_0UpdateScheduledQueryCommandError = async (output, context) => {
|
|
1115
|
+
const parsedOutput = {
|
|
1116
|
+
...output,
|
|
1117
|
+
body: await parseBody(output.body, context),
|
|
1118
|
+
};
|
|
1119
|
+
let response;
|
|
1120
|
+
let errorCode = "UnknownError";
|
|
1121
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1122
|
+
switch (errorCode) {
|
|
1123
|
+
case "AccessDeniedException":
|
|
1124
|
+
case "com.amazonaws.timestreamquery#AccessDeniedException":
|
|
1125
|
+
response = {
|
|
1126
|
+
...(await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1127
|
+
name: errorCode,
|
|
1128
|
+
$metadata: deserializeMetadata(output),
|
|
1129
|
+
};
|
|
1130
|
+
break;
|
|
1131
|
+
case "InternalServerException":
|
|
1132
|
+
case "com.amazonaws.timestreamquery#InternalServerException":
|
|
1133
|
+
response = {
|
|
1134
|
+
...(await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)),
|
|
1135
|
+
name: errorCode,
|
|
1136
|
+
$metadata: deserializeMetadata(output),
|
|
1137
|
+
};
|
|
1138
|
+
break;
|
|
1139
|
+
case "InvalidEndpointException":
|
|
1140
|
+
case "com.amazonaws.timestreamquery#InvalidEndpointException":
|
|
1141
|
+
response = {
|
|
1142
|
+
...(await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context)),
|
|
1143
|
+
name: errorCode,
|
|
1144
|
+
$metadata: deserializeMetadata(output),
|
|
1145
|
+
};
|
|
1146
|
+
break;
|
|
1147
|
+
case "ResourceNotFoundException":
|
|
1148
|
+
case "com.amazonaws.timestreamquery#ResourceNotFoundException":
|
|
1149
|
+
response = {
|
|
1150
|
+
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1151
|
+
name: errorCode,
|
|
1152
|
+
$metadata: deserializeMetadata(output),
|
|
1153
|
+
};
|
|
1154
|
+
break;
|
|
1155
|
+
case "ThrottlingException":
|
|
1156
|
+
case "com.amazonaws.timestreamquery#ThrottlingException":
|
|
1157
|
+
response = {
|
|
1158
|
+
...(await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1159
|
+
name: errorCode,
|
|
1160
|
+
$metadata: deserializeMetadata(output),
|
|
1161
|
+
};
|
|
1162
|
+
break;
|
|
1163
|
+
case "ValidationException":
|
|
1164
|
+
case "com.amazonaws.timestreamquery#ValidationException":
|
|
1165
|
+
response = {
|
|
1166
|
+
...(await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)),
|
|
1167
|
+
name: errorCode,
|
|
1168
|
+
$metadata: deserializeMetadata(output),
|
|
1169
|
+
};
|
|
1170
|
+
break;
|
|
1171
|
+
default:
|
|
1172
|
+
const parsedBody = parsedOutput.body;
|
|
1173
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1174
|
+
response = {
|
|
1175
|
+
...parsedBody,
|
|
1176
|
+
name: `${errorCode}`,
|
|
1177
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1178
|
+
$fault: "client",
|
|
1179
|
+
$metadata: deserializeMetadata(output),
|
|
1180
|
+
};
|
|
1181
|
+
}
|
|
1182
|
+
const message = response.message || response.Message || errorCode;
|
|
1183
|
+
response.message = message;
|
|
1184
|
+
delete response.Message;
|
|
1185
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
1186
|
+
};
|
|
1187
|
+
const deserializeAws_json1_0AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
1188
|
+
const body = parsedOutput.body;
|
|
1189
|
+
const deserialized = deserializeAws_json1_0AccessDeniedException(body, context);
|
|
1190
|
+
const contents = {
|
|
1191
|
+
name: "AccessDeniedException",
|
|
1192
|
+
$fault: "client",
|
|
1193
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1194
|
+
...deserialized,
|
|
1195
|
+
};
|
|
1196
|
+
return contents;
|
|
1197
|
+
};
|
|
1198
|
+
const deserializeAws_json1_0ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
1199
|
+
const body = parsedOutput.body;
|
|
1200
|
+
const deserialized = deserializeAws_json1_0ConflictException(body, context);
|
|
288
1201
|
const contents = {
|
|
289
1202
|
name: "ConflictException",
|
|
290
1203
|
$fault: "client",
|
|
@@ -326,6 +1239,28 @@ const deserializeAws_json1_0QueryExecutionExceptionResponse = async (parsedOutpu
|
|
|
326
1239
|
};
|
|
327
1240
|
return contents;
|
|
328
1241
|
};
|
|
1242
|
+
const deserializeAws_json1_0ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
1243
|
+
const body = parsedOutput.body;
|
|
1244
|
+
const deserialized = deserializeAws_json1_0ResourceNotFoundException(body, context);
|
|
1245
|
+
const contents = {
|
|
1246
|
+
name: "ResourceNotFoundException",
|
|
1247
|
+
$fault: "client",
|
|
1248
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1249
|
+
...deserialized,
|
|
1250
|
+
};
|
|
1251
|
+
return contents;
|
|
1252
|
+
};
|
|
1253
|
+
const deserializeAws_json1_0ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
|
|
1254
|
+
const body = parsedOutput.body;
|
|
1255
|
+
const deserialized = deserializeAws_json1_0ServiceQuotaExceededException(body, context);
|
|
1256
|
+
const contents = {
|
|
1257
|
+
name: "ServiceQuotaExceededException",
|
|
1258
|
+
$fault: "client",
|
|
1259
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1260
|
+
...deserialized,
|
|
1261
|
+
};
|
|
1262
|
+
return contents;
|
|
1263
|
+
};
|
|
329
1264
|
const deserializeAws_json1_0ThrottlingExceptionResponse = async (parsedOutput, context) => {
|
|
330
1265
|
const body = parsedOutput.body;
|
|
331
1266
|
const deserialized = deserializeAws_json1_0ThrottlingException(body, context);
|
|
@@ -346,15 +1281,174 @@ const deserializeAws_json1_0ValidationExceptionResponse = async (parsedOutput, c
|
|
|
346
1281
|
$metadata: deserializeMetadata(parsedOutput),
|
|
347
1282
|
...deserialized,
|
|
348
1283
|
};
|
|
349
|
-
return contents;
|
|
1284
|
+
return contents;
|
|
1285
|
+
};
|
|
1286
|
+
const serializeAws_json1_0CancelQueryRequest = (input, context) => {
|
|
1287
|
+
return {
|
|
1288
|
+
...(input.QueryId !== undefined && input.QueryId !== null && { QueryId: input.QueryId }),
|
|
1289
|
+
};
|
|
1290
|
+
};
|
|
1291
|
+
const serializeAws_json1_0CreateScheduledQueryRequest = (input, context) => {
|
|
1292
|
+
var _a;
|
|
1293
|
+
return {
|
|
1294
|
+
ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
1295
|
+
...(input.ErrorReportConfiguration !== undefined &&
|
|
1296
|
+
input.ErrorReportConfiguration !== null && {
|
|
1297
|
+
ErrorReportConfiguration: serializeAws_json1_0ErrorReportConfiguration(input.ErrorReportConfiguration, context),
|
|
1298
|
+
}),
|
|
1299
|
+
...(input.KmsKeyId !== undefined && input.KmsKeyId !== null && { KmsKeyId: input.KmsKeyId }),
|
|
1300
|
+
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
1301
|
+
...(input.NotificationConfiguration !== undefined &&
|
|
1302
|
+
input.NotificationConfiguration !== null && {
|
|
1303
|
+
NotificationConfiguration: serializeAws_json1_0NotificationConfiguration(input.NotificationConfiguration, context),
|
|
1304
|
+
}),
|
|
1305
|
+
...(input.QueryString !== undefined && input.QueryString !== null && { QueryString: input.QueryString }),
|
|
1306
|
+
...(input.ScheduleConfiguration !== undefined &&
|
|
1307
|
+
input.ScheduleConfiguration !== null && {
|
|
1308
|
+
ScheduleConfiguration: serializeAws_json1_0ScheduleConfiguration(input.ScheduleConfiguration, context),
|
|
1309
|
+
}),
|
|
1310
|
+
...(input.ScheduledQueryExecutionRoleArn !== undefined &&
|
|
1311
|
+
input.ScheduledQueryExecutionRoleArn !== null && {
|
|
1312
|
+
ScheduledQueryExecutionRoleArn: input.ScheduledQueryExecutionRoleArn,
|
|
1313
|
+
}),
|
|
1314
|
+
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }),
|
|
1315
|
+
...(input.TargetConfiguration !== undefined &&
|
|
1316
|
+
input.TargetConfiguration !== null && {
|
|
1317
|
+
TargetConfiguration: serializeAws_json1_0TargetConfiguration(input.TargetConfiguration, context),
|
|
1318
|
+
}),
|
|
1319
|
+
};
|
|
1320
|
+
};
|
|
1321
|
+
const serializeAws_json1_0DeleteScheduledQueryRequest = (input, context) => {
|
|
1322
|
+
return {
|
|
1323
|
+
...(input.ScheduledQueryArn !== undefined &&
|
|
1324
|
+
input.ScheduledQueryArn !== null && { ScheduledQueryArn: input.ScheduledQueryArn }),
|
|
1325
|
+
};
|
|
1326
|
+
};
|
|
1327
|
+
const serializeAws_json1_0DescribeEndpointsRequest = (input, context) => {
|
|
1328
|
+
return {};
|
|
1329
|
+
};
|
|
1330
|
+
const serializeAws_json1_0DescribeScheduledQueryRequest = (input, context) => {
|
|
1331
|
+
return {
|
|
1332
|
+
...(input.ScheduledQueryArn !== undefined &&
|
|
1333
|
+
input.ScheduledQueryArn !== null && { ScheduledQueryArn: input.ScheduledQueryArn }),
|
|
1334
|
+
};
|
|
1335
|
+
};
|
|
1336
|
+
const serializeAws_json1_0DimensionMapping = (input, context) => {
|
|
1337
|
+
return {
|
|
1338
|
+
...(input.DimensionValueType !== undefined &&
|
|
1339
|
+
input.DimensionValueType !== null && { DimensionValueType: input.DimensionValueType }),
|
|
1340
|
+
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
1341
|
+
};
|
|
1342
|
+
};
|
|
1343
|
+
const serializeAws_json1_0DimensionMappingList = (input, context) => {
|
|
1344
|
+
return input
|
|
1345
|
+
.filter((e) => e != null)
|
|
1346
|
+
.map((entry) => {
|
|
1347
|
+
if (entry === null) {
|
|
1348
|
+
return null;
|
|
1349
|
+
}
|
|
1350
|
+
return serializeAws_json1_0DimensionMapping(entry, context);
|
|
1351
|
+
});
|
|
1352
|
+
};
|
|
1353
|
+
const serializeAws_json1_0ErrorReportConfiguration = (input, context) => {
|
|
1354
|
+
return {
|
|
1355
|
+
...(input.S3Configuration !== undefined &&
|
|
1356
|
+
input.S3Configuration !== null && {
|
|
1357
|
+
S3Configuration: serializeAws_json1_0S3Configuration(input.S3Configuration, context),
|
|
1358
|
+
}),
|
|
1359
|
+
};
|
|
1360
|
+
};
|
|
1361
|
+
const serializeAws_json1_0ExecuteScheduledQueryRequest = (input, context) => {
|
|
1362
|
+
var _a;
|
|
1363
|
+
return {
|
|
1364
|
+
ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
1365
|
+
...(input.InvocationTime !== undefined &&
|
|
1366
|
+
input.InvocationTime !== null && { InvocationTime: Math.round(input.InvocationTime.getTime() / 1000) }),
|
|
1367
|
+
...(input.ScheduledQueryArn !== undefined &&
|
|
1368
|
+
input.ScheduledQueryArn !== null && { ScheduledQueryArn: input.ScheduledQueryArn }),
|
|
1369
|
+
};
|
|
1370
|
+
};
|
|
1371
|
+
const serializeAws_json1_0ListScheduledQueriesRequest = (input, context) => {
|
|
1372
|
+
return {
|
|
1373
|
+
...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
|
|
1374
|
+
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
1375
|
+
};
|
|
1376
|
+
};
|
|
1377
|
+
const serializeAws_json1_0ListTagsForResourceRequest = (input, context) => {
|
|
1378
|
+
return {
|
|
1379
|
+
...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
|
|
1380
|
+
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
1381
|
+
...(input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN }),
|
|
1382
|
+
};
|
|
1383
|
+
};
|
|
1384
|
+
const serializeAws_json1_0MixedMeasureMapping = (input, context) => {
|
|
1385
|
+
return {
|
|
1386
|
+
...(input.MeasureName !== undefined && input.MeasureName !== null && { MeasureName: input.MeasureName }),
|
|
1387
|
+
...(input.MeasureValueType !== undefined &&
|
|
1388
|
+
input.MeasureValueType !== null && { MeasureValueType: input.MeasureValueType }),
|
|
1389
|
+
...(input.MultiMeasureAttributeMappings !== undefined &&
|
|
1390
|
+
input.MultiMeasureAttributeMappings !== null && {
|
|
1391
|
+
MultiMeasureAttributeMappings: serializeAws_json1_0MultiMeasureAttributeMappingList(input.MultiMeasureAttributeMappings, context),
|
|
1392
|
+
}),
|
|
1393
|
+
...(input.SourceColumn !== undefined && input.SourceColumn !== null && { SourceColumn: input.SourceColumn }),
|
|
1394
|
+
...(input.TargetMeasureName !== undefined &&
|
|
1395
|
+
input.TargetMeasureName !== null && { TargetMeasureName: input.TargetMeasureName }),
|
|
1396
|
+
};
|
|
1397
|
+
};
|
|
1398
|
+
const serializeAws_json1_0MixedMeasureMappingList = (input, context) => {
|
|
1399
|
+
return input
|
|
1400
|
+
.filter((e) => e != null)
|
|
1401
|
+
.map((entry) => {
|
|
1402
|
+
if (entry === null) {
|
|
1403
|
+
return null;
|
|
1404
|
+
}
|
|
1405
|
+
return serializeAws_json1_0MixedMeasureMapping(entry, context);
|
|
1406
|
+
});
|
|
1407
|
+
};
|
|
1408
|
+
const serializeAws_json1_0MultiMeasureAttributeMapping = (input, context) => {
|
|
1409
|
+
return {
|
|
1410
|
+
...(input.MeasureValueType !== undefined &&
|
|
1411
|
+
input.MeasureValueType !== null && { MeasureValueType: input.MeasureValueType }),
|
|
1412
|
+
...(input.SourceColumn !== undefined && input.SourceColumn !== null && { SourceColumn: input.SourceColumn }),
|
|
1413
|
+
...(input.TargetMultiMeasureAttributeName !== undefined &&
|
|
1414
|
+
input.TargetMultiMeasureAttributeName !== null && {
|
|
1415
|
+
TargetMultiMeasureAttributeName: input.TargetMultiMeasureAttributeName,
|
|
1416
|
+
}),
|
|
1417
|
+
};
|
|
1418
|
+
};
|
|
1419
|
+
const serializeAws_json1_0MultiMeasureAttributeMappingList = (input, context) => {
|
|
1420
|
+
return input
|
|
1421
|
+
.filter((e) => e != null)
|
|
1422
|
+
.map((entry) => {
|
|
1423
|
+
if (entry === null) {
|
|
1424
|
+
return null;
|
|
1425
|
+
}
|
|
1426
|
+
return serializeAws_json1_0MultiMeasureAttributeMapping(entry, context);
|
|
1427
|
+
});
|
|
1428
|
+
};
|
|
1429
|
+
const serializeAws_json1_0MultiMeasureMappings = (input, context) => {
|
|
1430
|
+
return {
|
|
1431
|
+
...(input.MultiMeasureAttributeMappings !== undefined &&
|
|
1432
|
+
input.MultiMeasureAttributeMappings !== null && {
|
|
1433
|
+
MultiMeasureAttributeMappings: serializeAws_json1_0MultiMeasureAttributeMappingList(input.MultiMeasureAttributeMappings, context),
|
|
1434
|
+
}),
|
|
1435
|
+
...(input.TargetMultiMeasureName !== undefined &&
|
|
1436
|
+
input.TargetMultiMeasureName !== null && { TargetMultiMeasureName: input.TargetMultiMeasureName }),
|
|
1437
|
+
};
|
|
350
1438
|
};
|
|
351
|
-
const
|
|
1439
|
+
const serializeAws_json1_0NotificationConfiguration = (input, context) => {
|
|
352
1440
|
return {
|
|
353
|
-
...(input.
|
|
1441
|
+
...(input.SnsConfiguration !== undefined &&
|
|
1442
|
+
input.SnsConfiguration !== null && {
|
|
1443
|
+
SnsConfiguration: serializeAws_json1_0SnsConfiguration(input.SnsConfiguration, context),
|
|
1444
|
+
}),
|
|
354
1445
|
};
|
|
355
1446
|
};
|
|
356
|
-
const
|
|
357
|
-
return {
|
|
1447
|
+
const serializeAws_json1_0PrepareQueryRequest = (input, context) => {
|
|
1448
|
+
return {
|
|
1449
|
+
...(input.QueryString !== undefined && input.QueryString !== null && { QueryString: input.QueryString }),
|
|
1450
|
+
...(input.ValidateOnly !== undefined && input.ValidateOnly !== null && { ValidateOnly: input.ValidateOnly }),
|
|
1451
|
+
};
|
|
358
1452
|
};
|
|
359
1453
|
const serializeAws_json1_0QueryRequest = (input, context) => {
|
|
360
1454
|
var _a;
|
|
@@ -365,6 +1459,101 @@ const serializeAws_json1_0QueryRequest = (input, context) => {
|
|
|
365
1459
|
...(input.QueryString !== undefined && input.QueryString !== null && { QueryString: input.QueryString }),
|
|
366
1460
|
};
|
|
367
1461
|
};
|
|
1462
|
+
const serializeAws_json1_0S3Configuration = (input, context) => {
|
|
1463
|
+
return {
|
|
1464
|
+
...(input.BucketName !== undefined && input.BucketName !== null && { BucketName: input.BucketName }),
|
|
1465
|
+
...(input.EncryptionOption !== undefined &&
|
|
1466
|
+
input.EncryptionOption !== null && { EncryptionOption: input.EncryptionOption }),
|
|
1467
|
+
...(input.ObjectKeyPrefix !== undefined &&
|
|
1468
|
+
input.ObjectKeyPrefix !== null && { ObjectKeyPrefix: input.ObjectKeyPrefix }),
|
|
1469
|
+
};
|
|
1470
|
+
};
|
|
1471
|
+
const serializeAws_json1_0ScheduleConfiguration = (input, context) => {
|
|
1472
|
+
return {
|
|
1473
|
+
...(input.ScheduleExpression !== undefined &&
|
|
1474
|
+
input.ScheduleExpression !== null && { ScheduleExpression: input.ScheduleExpression }),
|
|
1475
|
+
};
|
|
1476
|
+
};
|
|
1477
|
+
const serializeAws_json1_0SnsConfiguration = (input, context) => {
|
|
1478
|
+
return {
|
|
1479
|
+
...(input.TopicArn !== undefined && input.TopicArn !== null && { TopicArn: input.TopicArn }),
|
|
1480
|
+
};
|
|
1481
|
+
};
|
|
1482
|
+
const serializeAws_json1_0Tag = (input, context) => {
|
|
1483
|
+
return {
|
|
1484
|
+
...(input.Key !== undefined && input.Key !== null && { Key: input.Key }),
|
|
1485
|
+
...(input.Value !== undefined && input.Value !== null && { Value: input.Value }),
|
|
1486
|
+
};
|
|
1487
|
+
};
|
|
1488
|
+
const serializeAws_json1_0TagKeyList = (input, context) => {
|
|
1489
|
+
return input
|
|
1490
|
+
.filter((e) => e != null)
|
|
1491
|
+
.map((entry) => {
|
|
1492
|
+
if (entry === null) {
|
|
1493
|
+
return null;
|
|
1494
|
+
}
|
|
1495
|
+
return entry;
|
|
1496
|
+
});
|
|
1497
|
+
};
|
|
1498
|
+
const serializeAws_json1_0TagList = (input, context) => {
|
|
1499
|
+
return input
|
|
1500
|
+
.filter((e) => e != null)
|
|
1501
|
+
.map((entry) => {
|
|
1502
|
+
if (entry === null) {
|
|
1503
|
+
return null;
|
|
1504
|
+
}
|
|
1505
|
+
return serializeAws_json1_0Tag(entry, context);
|
|
1506
|
+
});
|
|
1507
|
+
};
|
|
1508
|
+
const serializeAws_json1_0TagResourceRequest = (input, context) => {
|
|
1509
|
+
return {
|
|
1510
|
+
...(input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN }),
|
|
1511
|
+
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }),
|
|
1512
|
+
};
|
|
1513
|
+
};
|
|
1514
|
+
const serializeAws_json1_0TargetConfiguration = (input, context) => {
|
|
1515
|
+
return {
|
|
1516
|
+
...(input.TimestreamConfiguration !== undefined &&
|
|
1517
|
+
input.TimestreamConfiguration !== null && {
|
|
1518
|
+
TimestreamConfiguration: serializeAws_json1_0TimestreamConfiguration(input.TimestreamConfiguration, context),
|
|
1519
|
+
}),
|
|
1520
|
+
};
|
|
1521
|
+
};
|
|
1522
|
+
const serializeAws_json1_0TimestreamConfiguration = (input, context) => {
|
|
1523
|
+
return {
|
|
1524
|
+
...(input.DatabaseName !== undefined && input.DatabaseName !== null && { DatabaseName: input.DatabaseName }),
|
|
1525
|
+
...(input.DimensionMappings !== undefined &&
|
|
1526
|
+
input.DimensionMappings !== null && {
|
|
1527
|
+
DimensionMappings: serializeAws_json1_0DimensionMappingList(input.DimensionMappings, context),
|
|
1528
|
+
}),
|
|
1529
|
+
...(input.MeasureNameColumn !== undefined &&
|
|
1530
|
+
input.MeasureNameColumn !== null && { MeasureNameColumn: input.MeasureNameColumn }),
|
|
1531
|
+
...(input.MixedMeasureMappings !== undefined &&
|
|
1532
|
+
input.MixedMeasureMappings !== null && {
|
|
1533
|
+
MixedMeasureMappings: serializeAws_json1_0MixedMeasureMappingList(input.MixedMeasureMappings, context),
|
|
1534
|
+
}),
|
|
1535
|
+
...(input.MultiMeasureMappings !== undefined &&
|
|
1536
|
+
input.MultiMeasureMappings !== null && {
|
|
1537
|
+
MultiMeasureMappings: serializeAws_json1_0MultiMeasureMappings(input.MultiMeasureMappings, context),
|
|
1538
|
+
}),
|
|
1539
|
+
...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
|
|
1540
|
+
...(input.TimeColumn !== undefined && input.TimeColumn !== null && { TimeColumn: input.TimeColumn }),
|
|
1541
|
+
};
|
|
1542
|
+
};
|
|
1543
|
+
const serializeAws_json1_0UntagResourceRequest = (input, context) => {
|
|
1544
|
+
return {
|
|
1545
|
+
...(input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN }),
|
|
1546
|
+
...(input.TagKeys !== undefined &&
|
|
1547
|
+
input.TagKeys !== null && { TagKeys: serializeAws_json1_0TagKeyList(input.TagKeys, context) }),
|
|
1548
|
+
};
|
|
1549
|
+
};
|
|
1550
|
+
const serializeAws_json1_0UpdateScheduledQueryRequest = (input, context) => {
|
|
1551
|
+
return {
|
|
1552
|
+
...(input.ScheduledQueryArn !== undefined &&
|
|
1553
|
+
input.ScheduledQueryArn !== null && { ScheduledQueryArn: input.ScheduledQueryArn }),
|
|
1554
|
+
...(input.State !== undefined && input.State !== null && { State: input.State }),
|
|
1555
|
+
};
|
|
1556
|
+
};
|
|
368
1557
|
const deserializeAws_json1_0AccessDeniedException = (output, context) => {
|
|
369
1558
|
return {
|
|
370
1559
|
Message: smithy_client_1.expectString(output.Message),
|
|
@@ -396,6 +1585,11 @@ const deserializeAws_json1_0ConflictException = (output, context) => {
|
|
|
396
1585
|
Message: smithy_client_1.expectString(output.Message),
|
|
397
1586
|
};
|
|
398
1587
|
};
|
|
1588
|
+
const deserializeAws_json1_0CreateScheduledQueryResponse = (output, context) => {
|
|
1589
|
+
return {
|
|
1590
|
+
Arn: smithy_client_1.expectString(output.Arn),
|
|
1591
|
+
};
|
|
1592
|
+
};
|
|
399
1593
|
const deserializeAws_json1_0Datum = (output, context) => {
|
|
400
1594
|
return {
|
|
401
1595
|
ArrayValue: output.ArrayValue !== undefined && output.ArrayValue !== null
|
|
@@ -428,6 +1622,29 @@ const deserializeAws_json1_0DescribeEndpointsResponse = (output, context) => {
|
|
|
428
1622
|
: undefined,
|
|
429
1623
|
};
|
|
430
1624
|
};
|
|
1625
|
+
const deserializeAws_json1_0DescribeScheduledQueryResponse = (output, context) => {
|
|
1626
|
+
return {
|
|
1627
|
+
ScheduledQuery: output.ScheduledQuery !== undefined && output.ScheduledQuery !== null
|
|
1628
|
+
? deserializeAws_json1_0ScheduledQueryDescription(output.ScheduledQuery, context)
|
|
1629
|
+
: undefined,
|
|
1630
|
+
};
|
|
1631
|
+
};
|
|
1632
|
+
const deserializeAws_json1_0DimensionMapping = (output, context) => {
|
|
1633
|
+
return {
|
|
1634
|
+
DimensionValueType: smithy_client_1.expectString(output.DimensionValueType),
|
|
1635
|
+
Name: smithy_client_1.expectString(output.Name),
|
|
1636
|
+
};
|
|
1637
|
+
};
|
|
1638
|
+
const deserializeAws_json1_0DimensionMappingList = (output, context) => {
|
|
1639
|
+
return (output || [])
|
|
1640
|
+
.filter((e) => e != null)
|
|
1641
|
+
.map((entry) => {
|
|
1642
|
+
if (entry === null) {
|
|
1643
|
+
return null;
|
|
1644
|
+
}
|
|
1645
|
+
return deserializeAws_json1_0DimensionMapping(entry, context);
|
|
1646
|
+
});
|
|
1647
|
+
};
|
|
431
1648
|
const deserializeAws_json1_0Endpoint = (output, context) => {
|
|
432
1649
|
return {
|
|
433
1650
|
Address: smithy_client_1.expectString(output.Address),
|
|
@@ -444,6 +1661,29 @@ const deserializeAws_json1_0Endpoints = (output, context) => {
|
|
|
444
1661
|
return deserializeAws_json1_0Endpoint(entry, context);
|
|
445
1662
|
});
|
|
446
1663
|
};
|
|
1664
|
+
const deserializeAws_json1_0ErrorReportConfiguration = (output, context) => {
|
|
1665
|
+
return {
|
|
1666
|
+
S3Configuration: output.S3Configuration !== undefined && output.S3Configuration !== null
|
|
1667
|
+
? deserializeAws_json1_0S3Configuration(output.S3Configuration, context)
|
|
1668
|
+
: undefined,
|
|
1669
|
+
};
|
|
1670
|
+
};
|
|
1671
|
+
const deserializeAws_json1_0ErrorReportLocation = (output, context) => {
|
|
1672
|
+
return {
|
|
1673
|
+
S3ReportLocation: output.S3ReportLocation !== undefined && output.S3ReportLocation !== null
|
|
1674
|
+
? deserializeAws_json1_0S3ReportLocation(output.S3ReportLocation, context)
|
|
1675
|
+
: undefined,
|
|
1676
|
+
};
|
|
1677
|
+
};
|
|
1678
|
+
const deserializeAws_json1_0ExecutionStats = (output, context) => {
|
|
1679
|
+
return {
|
|
1680
|
+
BytesMetered: smithy_client_1.expectLong(output.BytesMetered),
|
|
1681
|
+
DataWrites: smithy_client_1.expectLong(output.DataWrites),
|
|
1682
|
+
ExecutionTimeInMillis: smithy_client_1.expectLong(output.ExecutionTimeInMillis),
|
|
1683
|
+
QueryResultRows: smithy_client_1.expectLong(output.QueryResultRows),
|
|
1684
|
+
RecordsIngested: smithy_client_1.expectLong(output.RecordsIngested),
|
|
1685
|
+
};
|
|
1686
|
+
};
|
|
447
1687
|
const deserializeAws_json1_0InternalServerException = (output, context) => {
|
|
448
1688
|
return {
|
|
449
1689
|
Message: smithy_client_1.expectString(output.Message),
|
|
@@ -454,6 +1694,102 @@ const deserializeAws_json1_0InvalidEndpointException = (output, context) => {
|
|
|
454
1694
|
Message: smithy_client_1.expectString(output.Message),
|
|
455
1695
|
};
|
|
456
1696
|
};
|
|
1697
|
+
const deserializeAws_json1_0ListScheduledQueriesResponse = (output, context) => {
|
|
1698
|
+
return {
|
|
1699
|
+
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
1700
|
+
ScheduledQueries: output.ScheduledQueries !== undefined && output.ScheduledQueries !== null
|
|
1701
|
+
? deserializeAws_json1_0ScheduledQueryList(output.ScheduledQueries, context)
|
|
1702
|
+
: undefined,
|
|
1703
|
+
};
|
|
1704
|
+
};
|
|
1705
|
+
const deserializeAws_json1_0ListTagsForResourceResponse = (output, context) => {
|
|
1706
|
+
return {
|
|
1707
|
+
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
1708
|
+
Tags: output.Tags !== undefined && output.Tags !== null
|
|
1709
|
+
? deserializeAws_json1_0TagList(output.Tags, context)
|
|
1710
|
+
: undefined,
|
|
1711
|
+
};
|
|
1712
|
+
};
|
|
1713
|
+
const deserializeAws_json1_0MixedMeasureMapping = (output, context) => {
|
|
1714
|
+
return {
|
|
1715
|
+
MeasureName: smithy_client_1.expectString(output.MeasureName),
|
|
1716
|
+
MeasureValueType: smithy_client_1.expectString(output.MeasureValueType),
|
|
1717
|
+
MultiMeasureAttributeMappings: output.MultiMeasureAttributeMappings !== undefined && output.MultiMeasureAttributeMappings !== null
|
|
1718
|
+
? deserializeAws_json1_0MultiMeasureAttributeMappingList(output.MultiMeasureAttributeMappings, context)
|
|
1719
|
+
: undefined,
|
|
1720
|
+
SourceColumn: smithy_client_1.expectString(output.SourceColumn),
|
|
1721
|
+
TargetMeasureName: smithy_client_1.expectString(output.TargetMeasureName),
|
|
1722
|
+
};
|
|
1723
|
+
};
|
|
1724
|
+
const deserializeAws_json1_0MixedMeasureMappingList = (output, context) => {
|
|
1725
|
+
return (output || [])
|
|
1726
|
+
.filter((e) => e != null)
|
|
1727
|
+
.map((entry) => {
|
|
1728
|
+
if (entry === null) {
|
|
1729
|
+
return null;
|
|
1730
|
+
}
|
|
1731
|
+
return deserializeAws_json1_0MixedMeasureMapping(entry, context);
|
|
1732
|
+
});
|
|
1733
|
+
};
|
|
1734
|
+
const deserializeAws_json1_0MultiMeasureAttributeMapping = (output, context) => {
|
|
1735
|
+
return {
|
|
1736
|
+
MeasureValueType: smithy_client_1.expectString(output.MeasureValueType),
|
|
1737
|
+
SourceColumn: smithy_client_1.expectString(output.SourceColumn),
|
|
1738
|
+
TargetMultiMeasureAttributeName: smithy_client_1.expectString(output.TargetMultiMeasureAttributeName),
|
|
1739
|
+
};
|
|
1740
|
+
};
|
|
1741
|
+
const deserializeAws_json1_0MultiMeasureAttributeMappingList = (output, context) => {
|
|
1742
|
+
return (output || [])
|
|
1743
|
+
.filter((e) => e != null)
|
|
1744
|
+
.map((entry) => {
|
|
1745
|
+
if (entry === null) {
|
|
1746
|
+
return null;
|
|
1747
|
+
}
|
|
1748
|
+
return deserializeAws_json1_0MultiMeasureAttributeMapping(entry, context);
|
|
1749
|
+
});
|
|
1750
|
+
};
|
|
1751
|
+
const deserializeAws_json1_0MultiMeasureMappings = (output, context) => {
|
|
1752
|
+
return {
|
|
1753
|
+
MultiMeasureAttributeMappings: output.MultiMeasureAttributeMappings !== undefined && output.MultiMeasureAttributeMappings !== null
|
|
1754
|
+
? deserializeAws_json1_0MultiMeasureAttributeMappingList(output.MultiMeasureAttributeMappings, context)
|
|
1755
|
+
: undefined,
|
|
1756
|
+
TargetMultiMeasureName: smithy_client_1.expectString(output.TargetMultiMeasureName),
|
|
1757
|
+
};
|
|
1758
|
+
};
|
|
1759
|
+
const deserializeAws_json1_0NotificationConfiguration = (output, context) => {
|
|
1760
|
+
return {
|
|
1761
|
+
SnsConfiguration: output.SnsConfiguration !== undefined && output.SnsConfiguration !== null
|
|
1762
|
+
? deserializeAws_json1_0SnsConfiguration(output.SnsConfiguration, context)
|
|
1763
|
+
: undefined,
|
|
1764
|
+
};
|
|
1765
|
+
};
|
|
1766
|
+
const deserializeAws_json1_0ParameterMapping = (output, context) => {
|
|
1767
|
+
return {
|
|
1768
|
+
Name: smithy_client_1.expectString(output.Name),
|
|
1769
|
+
Type: output.Type !== undefined && output.Type !== null ? deserializeAws_json1_0Type(output.Type, context) : undefined,
|
|
1770
|
+
};
|
|
1771
|
+
};
|
|
1772
|
+
const deserializeAws_json1_0ParameterMappingList = (output, context) => {
|
|
1773
|
+
return (output || [])
|
|
1774
|
+
.filter((e) => e != null)
|
|
1775
|
+
.map((entry) => {
|
|
1776
|
+
if (entry === null) {
|
|
1777
|
+
return null;
|
|
1778
|
+
}
|
|
1779
|
+
return deserializeAws_json1_0ParameterMapping(entry, context);
|
|
1780
|
+
});
|
|
1781
|
+
};
|
|
1782
|
+
const deserializeAws_json1_0PrepareQueryResponse = (output, context) => {
|
|
1783
|
+
return {
|
|
1784
|
+
Columns: output.Columns !== undefined && output.Columns !== null
|
|
1785
|
+
? deserializeAws_json1_0SelectColumnList(output.Columns, context)
|
|
1786
|
+
: undefined,
|
|
1787
|
+
Parameters: output.Parameters !== undefined && output.Parameters !== null
|
|
1788
|
+
? deserializeAws_json1_0ParameterMappingList(output.Parameters, context)
|
|
1789
|
+
: undefined,
|
|
1790
|
+
QueryString: smithy_client_1.expectString(output.QueryString),
|
|
1791
|
+
};
|
|
1792
|
+
};
|
|
457
1793
|
const deserializeAws_json1_0QueryExecutionException = (output, context) => {
|
|
458
1794
|
return {
|
|
459
1795
|
Message: smithy_client_1.expectString(output.Message),
|
|
@@ -481,6 +1817,12 @@ const deserializeAws_json1_0QueryStatus = (output, context) => {
|
|
|
481
1817
|
ProgressPercentage: smithy_client_1.limitedParseDouble(output.ProgressPercentage),
|
|
482
1818
|
};
|
|
483
1819
|
};
|
|
1820
|
+
const deserializeAws_json1_0ResourceNotFoundException = (output, context) => {
|
|
1821
|
+
return {
|
|
1822
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
1823
|
+
ScheduledQueryArn: smithy_client_1.expectString(output.ScheduledQueryArn),
|
|
1824
|
+
};
|
|
1825
|
+
};
|
|
484
1826
|
const deserializeAws_json1_0Row = (output, context) => {
|
|
485
1827
|
return {
|
|
486
1828
|
Data: output.Data !== undefined && output.Data !== null
|
|
@@ -498,6 +1840,184 @@ const deserializeAws_json1_0RowList = (output, context) => {
|
|
|
498
1840
|
return deserializeAws_json1_0Row(entry, context);
|
|
499
1841
|
});
|
|
500
1842
|
};
|
|
1843
|
+
const deserializeAws_json1_0S3Configuration = (output, context) => {
|
|
1844
|
+
return {
|
|
1845
|
+
BucketName: smithy_client_1.expectString(output.BucketName),
|
|
1846
|
+
EncryptionOption: smithy_client_1.expectString(output.EncryptionOption),
|
|
1847
|
+
ObjectKeyPrefix: smithy_client_1.expectString(output.ObjectKeyPrefix),
|
|
1848
|
+
};
|
|
1849
|
+
};
|
|
1850
|
+
const deserializeAws_json1_0S3ReportLocation = (output, context) => {
|
|
1851
|
+
return {
|
|
1852
|
+
BucketName: smithy_client_1.expectString(output.BucketName),
|
|
1853
|
+
ObjectKey: smithy_client_1.expectString(output.ObjectKey),
|
|
1854
|
+
};
|
|
1855
|
+
};
|
|
1856
|
+
const deserializeAws_json1_0ScheduleConfiguration = (output, context) => {
|
|
1857
|
+
return {
|
|
1858
|
+
ScheduleExpression: smithy_client_1.expectString(output.ScheduleExpression),
|
|
1859
|
+
};
|
|
1860
|
+
};
|
|
1861
|
+
const deserializeAws_json1_0ScheduledQuery = (output, context) => {
|
|
1862
|
+
return {
|
|
1863
|
+
Arn: smithy_client_1.expectString(output.Arn),
|
|
1864
|
+
CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
|
|
1865
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreationTime)))
|
|
1866
|
+
: undefined,
|
|
1867
|
+
ErrorReportConfiguration: output.ErrorReportConfiguration !== undefined && output.ErrorReportConfiguration !== null
|
|
1868
|
+
? deserializeAws_json1_0ErrorReportConfiguration(output.ErrorReportConfiguration, context)
|
|
1869
|
+
: undefined,
|
|
1870
|
+
LastRunStatus: smithy_client_1.expectString(output.LastRunStatus),
|
|
1871
|
+
Name: smithy_client_1.expectString(output.Name),
|
|
1872
|
+
NextInvocationTime: output.NextInvocationTime !== undefined && output.NextInvocationTime !== null
|
|
1873
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.NextInvocationTime)))
|
|
1874
|
+
: undefined,
|
|
1875
|
+
PreviousInvocationTime: output.PreviousInvocationTime !== undefined && output.PreviousInvocationTime !== null
|
|
1876
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.PreviousInvocationTime)))
|
|
1877
|
+
: undefined,
|
|
1878
|
+
State: smithy_client_1.expectString(output.State),
|
|
1879
|
+
TargetDestination: output.TargetDestination !== undefined && output.TargetDestination !== null
|
|
1880
|
+
? deserializeAws_json1_0TargetDestination(output.TargetDestination, context)
|
|
1881
|
+
: undefined,
|
|
1882
|
+
};
|
|
1883
|
+
};
|
|
1884
|
+
const deserializeAws_json1_0ScheduledQueryDescription = (output, context) => {
|
|
1885
|
+
return {
|
|
1886
|
+
Arn: smithy_client_1.expectString(output.Arn),
|
|
1887
|
+
CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
|
|
1888
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreationTime)))
|
|
1889
|
+
: undefined,
|
|
1890
|
+
ErrorReportConfiguration: output.ErrorReportConfiguration !== undefined && output.ErrorReportConfiguration !== null
|
|
1891
|
+
? deserializeAws_json1_0ErrorReportConfiguration(output.ErrorReportConfiguration, context)
|
|
1892
|
+
: undefined,
|
|
1893
|
+
KmsKeyId: smithy_client_1.expectString(output.KmsKeyId),
|
|
1894
|
+
LastRunSummary: output.LastRunSummary !== undefined && output.LastRunSummary !== null
|
|
1895
|
+
? deserializeAws_json1_0ScheduledQueryRunSummary(output.LastRunSummary, context)
|
|
1896
|
+
: undefined,
|
|
1897
|
+
Name: smithy_client_1.expectString(output.Name),
|
|
1898
|
+
NextInvocationTime: output.NextInvocationTime !== undefined && output.NextInvocationTime !== null
|
|
1899
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.NextInvocationTime)))
|
|
1900
|
+
: undefined,
|
|
1901
|
+
NotificationConfiguration: output.NotificationConfiguration !== undefined && output.NotificationConfiguration !== null
|
|
1902
|
+
? deserializeAws_json1_0NotificationConfiguration(output.NotificationConfiguration, context)
|
|
1903
|
+
: undefined,
|
|
1904
|
+
PreviousInvocationTime: output.PreviousInvocationTime !== undefined && output.PreviousInvocationTime !== null
|
|
1905
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.PreviousInvocationTime)))
|
|
1906
|
+
: undefined,
|
|
1907
|
+
QueryString: smithy_client_1.expectString(output.QueryString),
|
|
1908
|
+
RecentlyFailedRuns: output.RecentlyFailedRuns !== undefined && output.RecentlyFailedRuns !== null
|
|
1909
|
+
? deserializeAws_json1_0ScheduledQueryRunSummaryList(output.RecentlyFailedRuns, context)
|
|
1910
|
+
: undefined,
|
|
1911
|
+
ScheduleConfiguration: output.ScheduleConfiguration !== undefined && output.ScheduleConfiguration !== null
|
|
1912
|
+
? deserializeAws_json1_0ScheduleConfiguration(output.ScheduleConfiguration, context)
|
|
1913
|
+
: undefined,
|
|
1914
|
+
ScheduledQueryExecutionRoleArn: smithy_client_1.expectString(output.ScheduledQueryExecutionRoleArn),
|
|
1915
|
+
State: smithy_client_1.expectString(output.State),
|
|
1916
|
+
TargetConfiguration: output.TargetConfiguration !== undefined && output.TargetConfiguration !== null
|
|
1917
|
+
? deserializeAws_json1_0TargetConfiguration(output.TargetConfiguration, context)
|
|
1918
|
+
: undefined,
|
|
1919
|
+
};
|
|
1920
|
+
};
|
|
1921
|
+
const deserializeAws_json1_0ScheduledQueryList = (output, context) => {
|
|
1922
|
+
return (output || [])
|
|
1923
|
+
.filter((e) => e != null)
|
|
1924
|
+
.map((entry) => {
|
|
1925
|
+
if (entry === null) {
|
|
1926
|
+
return null;
|
|
1927
|
+
}
|
|
1928
|
+
return deserializeAws_json1_0ScheduledQuery(entry, context);
|
|
1929
|
+
});
|
|
1930
|
+
};
|
|
1931
|
+
const deserializeAws_json1_0ScheduledQueryRunSummary = (output, context) => {
|
|
1932
|
+
return {
|
|
1933
|
+
ErrorReportLocation: output.ErrorReportLocation !== undefined && output.ErrorReportLocation !== null
|
|
1934
|
+
? deserializeAws_json1_0ErrorReportLocation(output.ErrorReportLocation, context)
|
|
1935
|
+
: undefined,
|
|
1936
|
+
ExecutionStats: output.ExecutionStats !== undefined && output.ExecutionStats !== null
|
|
1937
|
+
? deserializeAws_json1_0ExecutionStats(output.ExecutionStats, context)
|
|
1938
|
+
: undefined,
|
|
1939
|
+
FailureReason: smithy_client_1.expectString(output.FailureReason),
|
|
1940
|
+
InvocationTime: output.InvocationTime !== undefined && output.InvocationTime !== null
|
|
1941
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.InvocationTime)))
|
|
1942
|
+
: undefined,
|
|
1943
|
+
RunStatus: smithy_client_1.expectString(output.RunStatus),
|
|
1944
|
+
TriggerTime: output.TriggerTime !== undefined && output.TriggerTime !== null
|
|
1945
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.TriggerTime)))
|
|
1946
|
+
: undefined,
|
|
1947
|
+
};
|
|
1948
|
+
};
|
|
1949
|
+
const deserializeAws_json1_0ScheduledQueryRunSummaryList = (output, context) => {
|
|
1950
|
+
return (output || [])
|
|
1951
|
+
.filter((e) => e != null)
|
|
1952
|
+
.map((entry) => {
|
|
1953
|
+
if (entry === null) {
|
|
1954
|
+
return null;
|
|
1955
|
+
}
|
|
1956
|
+
return deserializeAws_json1_0ScheduledQueryRunSummary(entry, context);
|
|
1957
|
+
});
|
|
1958
|
+
};
|
|
1959
|
+
const deserializeAws_json1_0SelectColumn = (output, context) => {
|
|
1960
|
+
return {
|
|
1961
|
+
Aliased: smithy_client_1.expectBoolean(output.Aliased),
|
|
1962
|
+
DatabaseName: smithy_client_1.expectString(output.DatabaseName),
|
|
1963
|
+
Name: smithy_client_1.expectString(output.Name),
|
|
1964
|
+
TableName: smithy_client_1.expectString(output.TableName),
|
|
1965
|
+
Type: output.Type !== undefined && output.Type !== null ? deserializeAws_json1_0Type(output.Type, context) : undefined,
|
|
1966
|
+
};
|
|
1967
|
+
};
|
|
1968
|
+
const deserializeAws_json1_0SelectColumnList = (output, context) => {
|
|
1969
|
+
return (output || [])
|
|
1970
|
+
.filter((e) => e != null)
|
|
1971
|
+
.map((entry) => {
|
|
1972
|
+
if (entry === null) {
|
|
1973
|
+
return null;
|
|
1974
|
+
}
|
|
1975
|
+
return deserializeAws_json1_0SelectColumn(entry, context);
|
|
1976
|
+
});
|
|
1977
|
+
};
|
|
1978
|
+
const deserializeAws_json1_0ServiceQuotaExceededException = (output, context) => {
|
|
1979
|
+
return {
|
|
1980
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
1981
|
+
};
|
|
1982
|
+
};
|
|
1983
|
+
const deserializeAws_json1_0SnsConfiguration = (output, context) => {
|
|
1984
|
+
return {
|
|
1985
|
+
TopicArn: smithy_client_1.expectString(output.TopicArn),
|
|
1986
|
+
};
|
|
1987
|
+
};
|
|
1988
|
+
const deserializeAws_json1_0Tag = (output, context) => {
|
|
1989
|
+
return {
|
|
1990
|
+
Key: smithy_client_1.expectString(output.Key),
|
|
1991
|
+
Value: smithy_client_1.expectString(output.Value),
|
|
1992
|
+
};
|
|
1993
|
+
};
|
|
1994
|
+
const deserializeAws_json1_0TagList = (output, context) => {
|
|
1995
|
+
return (output || [])
|
|
1996
|
+
.filter((e) => e != null)
|
|
1997
|
+
.map((entry) => {
|
|
1998
|
+
if (entry === null) {
|
|
1999
|
+
return null;
|
|
2000
|
+
}
|
|
2001
|
+
return deserializeAws_json1_0Tag(entry, context);
|
|
2002
|
+
});
|
|
2003
|
+
};
|
|
2004
|
+
const deserializeAws_json1_0TagResourceResponse = (output, context) => {
|
|
2005
|
+
return {};
|
|
2006
|
+
};
|
|
2007
|
+
const deserializeAws_json1_0TargetConfiguration = (output, context) => {
|
|
2008
|
+
return {
|
|
2009
|
+
TimestreamConfiguration: output.TimestreamConfiguration !== undefined && output.TimestreamConfiguration !== null
|
|
2010
|
+
? deserializeAws_json1_0TimestreamConfiguration(output.TimestreamConfiguration, context)
|
|
2011
|
+
: undefined,
|
|
2012
|
+
};
|
|
2013
|
+
};
|
|
2014
|
+
const deserializeAws_json1_0TargetDestination = (output, context) => {
|
|
2015
|
+
return {
|
|
2016
|
+
TimestreamDestination: output.TimestreamDestination !== undefined && output.TimestreamDestination !== null
|
|
2017
|
+
? deserializeAws_json1_0TimestreamDestination(output.TimestreamDestination, context)
|
|
2018
|
+
: undefined,
|
|
2019
|
+
};
|
|
2020
|
+
};
|
|
501
2021
|
const deserializeAws_json1_0ThrottlingException = (output, context) => {
|
|
502
2022
|
return {
|
|
503
2023
|
Message: smithy_client_1.expectString(output.Message),
|
|
@@ -521,6 +2041,29 @@ const deserializeAws_json1_0TimeSeriesDataPointList = (output, context) => {
|
|
|
521
2041
|
return deserializeAws_json1_0TimeSeriesDataPoint(entry, context);
|
|
522
2042
|
});
|
|
523
2043
|
};
|
|
2044
|
+
const deserializeAws_json1_0TimestreamConfiguration = (output, context) => {
|
|
2045
|
+
return {
|
|
2046
|
+
DatabaseName: smithy_client_1.expectString(output.DatabaseName),
|
|
2047
|
+
DimensionMappings: output.DimensionMappings !== undefined && output.DimensionMappings !== null
|
|
2048
|
+
? deserializeAws_json1_0DimensionMappingList(output.DimensionMappings, context)
|
|
2049
|
+
: undefined,
|
|
2050
|
+
MeasureNameColumn: smithy_client_1.expectString(output.MeasureNameColumn),
|
|
2051
|
+
MixedMeasureMappings: output.MixedMeasureMappings !== undefined && output.MixedMeasureMappings !== null
|
|
2052
|
+
? deserializeAws_json1_0MixedMeasureMappingList(output.MixedMeasureMappings, context)
|
|
2053
|
+
: undefined,
|
|
2054
|
+
MultiMeasureMappings: output.MultiMeasureMappings !== undefined && output.MultiMeasureMappings !== null
|
|
2055
|
+
? deserializeAws_json1_0MultiMeasureMappings(output.MultiMeasureMappings, context)
|
|
2056
|
+
: undefined,
|
|
2057
|
+
TableName: smithy_client_1.expectString(output.TableName),
|
|
2058
|
+
TimeColumn: smithy_client_1.expectString(output.TimeColumn),
|
|
2059
|
+
};
|
|
2060
|
+
};
|
|
2061
|
+
const deserializeAws_json1_0TimestreamDestination = (output, context) => {
|
|
2062
|
+
return {
|
|
2063
|
+
DatabaseName: smithy_client_1.expectString(output.DatabaseName),
|
|
2064
|
+
TableName: smithy_client_1.expectString(output.TableName),
|
|
2065
|
+
};
|
|
2066
|
+
};
|
|
524
2067
|
const deserializeAws_json1_0Type = (output, context) => {
|
|
525
2068
|
return {
|
|
526
2069
|
ArrayColumnInfo: output.ArrayColumnInfo !== undefined && output.ArrayColumnInfo !== null
|
|
@@ -535,6 +2078,9 @@ const deserializeAws_json1_0Type = (output, context) => {
|
|
|
535
2078
|
: undefined,
|
|
536
2079
|
};
|
|
537
2080
|
};
|
|
2081
|
+
const deserializeAws_json1_0UntagResourceResponse = (output, context) => {
|
|
2082
|
+
return {};
|
|
2083
|
+
};
|
|
538
2084
|
const deserializeAws_json1_0ValidationException = (output, context) => {
|
|
539
2085
|
return {
|
|
540
2086
|
Message: smithy_client_1.expectString(output.Message),
|