@aws-sdk/client-timestream-write 3.306.0 → 3.309.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/commands/CreateBatchLoadTaskCommand.js +2 -2
- package/dist-cjs/commands/CreateDatabaseCommand.js +2 -2
- package/dist-cjs/commands/CreateTableCommand.js +2 -2
- package/dist-cjs/commands/DeleteDatabaseCommand.js +2 -2
- package/dist-cjs/commands/DeleteTableCommand.js +2 -2
- package/dist-cjs/commands/DescribeBatchLoadTaskCommand.js +2 -2
- package/dist-cjs/commands/DescribeDatabaseCommand.js +2 -2
- package/dist-cjs/commands/DescribeEndpointsCommand.js +2 -2
- package/dist-cjs/commands/DescribeTableCommand.js +2 -2
- package/dist-cjs/commands/ListBatchLoadTasksCommand.js +2 -2
- package/dist-cjs/commands/ListDatabasesCommand.js +2 -2
- package/dist-cjs/commands/ListTablesCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/ResumeBatchLoadTaskCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateDatabaseCommand.js +2 -2
- package/dist-cjs/commands/UpdateTableCommand.js +2 -2
- package/dist-cjs/commands/WriteRecordsCommand.js +2 -2
- package/dist-cjs/protocols/Aws_json1_0.js +462 -490
- package/dist-es/commands/CreateBatchLoadTaskCommand.js +3 -3
- package/dist-es/commands/CreateDatabaseCommand.js +3 -3
- package/dist-es/commands/CreateTableCommand.js +3 -3
- package/dist-es/commands/DeleteDatabaseCommand.js +3 -3
- package/dist-es/commands/DeleteTableCommand.js +3 -3
- package/dist-es/commands/DescribeBatchLoadTaskCommand.js +3 -3
- package/dist-es/commands/DescribeDatabaseCommand.js +3 -3
- package/dist-es/commands/DescribeEndpointsCommand.js +3 -3
- package/dist-es/commands/DescribeTableCommand.js +3 -3
- package/dist-es/commands/ListBatchLoadTasksCommand.js +3 -3
- package/dist-es/commands/ListDatabasesCommand.js +3 -3
- package/dist-es/commands/ListTablesCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/ResumeBatchLoadTaskCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateDatabaseCommand.js +3 -3
- package/dist-es/commands/UpdateTableCommand.js +3 -3
- package/dist-es/commands/WriteRecordsCommand.js +3 -3
- package/dist-es/protocols/Aws_json1_0.js +423 -451
- package/dist-types/protocols/Aws_json1_0.d.ts +152 -38
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +38 -38
- package/package.json +6 -6
|
@@ -3,191 +3,191 @@ import { decorateServiceException as __decorateServiceException, expectBoolean a
|
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
4
|
import { AccessDeniedException, ConflictException, InternalServerException, InvalidEndpointException, RejectedRecordsException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
5
5
|
import { TimestreamWriteServiceException as __BaseException } from "../models/TimestreamWriteServiceException";
|
|
6
|
-
export const
|
|
6
|
+
export const se_CreateBatchLoadTaskCommand = async (input, context) => {
|
|
7
7
|
const headers = {
|
|
8
8
|
"content-type": "application/x-amz-json-1.0",
|
|
9
9
|
"x-amz-target": "Timestream_20181101.CreateBatchLoadTask",
|
|
10
10
|
};
|
|
11
11
|
let body;
|
|
12
|
-
body = JSON.stringify(
|
|
12
|
+
body = JSON.stringify(se_CreateBatchLoadTaskRequest(input, context));
|
|
13
13
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
14
14
|
};
|
|
15
|
-
export const
|
|
15
|
+
export const se_CreateDatabaseCommand = async (input, context) => {
|
|
16
16
|
const headers = {
|
|
17
17
|
"content-type": "application/x-amz-json-1.0",
|
|
18
18
|
"x-amz-target": "Timestream_20181101.CreateDatabase",
|
|
19
19
|
};
|
|
20
20
|
let body;
|
|
21
|
-
body = JSON.stringify(
|
|
21
|
+
body = JSON.stringify(se_CreateDatabaseRequest(input, context));
|
|
22
22
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
23
23
|
};
|
|
24
|
-
export const
|
|
24
|
+
export const se_CreateTableCommand = async (input, context) => {
|
|
25
25
|
const headers = {
|
|
26
26
|
"content-type": "application/x-amz-json-1.0",
|
|
27
27
|
"x-amz-target": "Timestream_20181101.CreateTable",
|
|
28
28
|
};
|
|
29
29
|
let body;
|
|
30
|
-
body = JSON.stringify(
|
|
30
|
+
body = JSON.stringify(se_CreateTableRequest(input, context));
|
|
31
31
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
32
32
|
};
|
|
33
|
-
export const
|
|
33
|
+
export const se_DeleteDatabaseCommand = async (input, context) => {
|
|
34
34
|
const headers = {
|
|
35
35
|
"content-type": "application/x-amz-json-1.0",
|
|
36
36
|
"x-amz-target": "Timestream_20181101.DeleteDatabase",
|
|
37
37
|
};
|
|
38
38
|
let body;
|
|
39
|
-
body = JSON.stringify(
|
|
39
|
+
body = JSON.stringify(se_DeleteDatabaseRequest(input, context));
|
|
40
40
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
41
|
};
|
|
42
|
-
export const
|
|
42
|
+
export const se_DeleteTableCommand = async (input, context) => {
|
|
43
43
|
const headers = {
|
|
44
44
|
"content-type": "application/x-amz-json-1.0",
|
|
45
45
|
"x-amz-target": "Timestream_20181101.DeleteTable",
|
|
46
46
|
};
|
|
47
47
|
let body;
|
|
48
|
-
body = JSON.stringify(
|
|
48
|
+
body = JSON.stringify(se_DeleteTableRequest(input, context));
|
|
49
49
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
50
50
|
};
|
|
51
|
-
export const
|
|
51
|
+
export const se_DescribeBatchLoadTaskCommand = async (input, context) => {
|
|
52
52
|
const headers = {
|
|
53
53
|
"content-type": "application/x-amz-json-1.0",
|
|
54
54
|
"x-amz-target": "Timestream_20181101.DescribeBatchLoadTask",
|
|
55
55
|
};
|
|
56
56
|
let body;
|
|
57
|
-
body = JSON.stringify(
|
|
57
|
+
body = JSON.stringify(se_DescribeBatchLoadTaskRequest(input, context));
|
|
58
58
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
59
59
|
};
|
|
60
|
-
export const
|
|
60
|
+
export const se_DescribeDatabaseCommand = async (input, context) => {
|
|
61
61
|
const headers = {
|
|
62
62
|
"content-type": "application/x-amz-json-1.0",
|
|
63
63
|
"x-amz-target": "Timestream_20181101.DescribeDatabase",
|
|
64
64
|
};
|
|
65
65
|
let body;
|
|
66
|
-
body = JSON.stringify(
|
|
66
|
+
body = JSON.stringify(se_DescribeDatabaseRequest(input, context));
|
|
67
67
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
68
68
|
};
|
|
69
|
-
export const
|
|
69
|
+
export const se_DescribeEndpointsCommand = async (input, context) => {
|
|
70
70
|
const headers = {
|
|
71
71
|
"content-type": "application/x-amz-json-1.0",
|
|
72
72
|
"x-amz-target": "Timestream_20181101.DescribeEndpoints",
|
|
73
73
|
};
|
|
74
74
|
let body;
|
|
75
|
-
body = JSON.stringify(
|
|
75
|
+
body = JSON.stringify(se_DescribeEndpointsRequest(input, context));
|
|
76
76
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
77
|
};
|
|
78
|
-
export const
|
|
78
|
+
export const se_DescribeTableCommand = async (input, context) => {
|
|
79
79
|
const headers = {
|
|
80
80
|
"content-type": "application/x-amz-json-1.0",
|
|
81
81
|
"x-amz-target": "Timestream_20181101.DescribeTable",
|
|
82
82
|
};
|
|
83
83
|
let body;
|
|
84
|
-
body = JSON.stringify(
|
|
84
|
+
body = JSON.stringify(se_DescribeTableRequest(input, context));
|
|
85
85
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
86
86
|
};
|
|
87
|
-
export const
|
|
87
|
+
export const se_ListBatchLoadTasksCommand = async (input, context) => {
|
|
88
88
|
const headers = {
|
|
89
89
|
"content-type": "application/x-amz-json-1.0",
|
|
90
90
|
"x-amz-target": "Timestream_20181101.ListBatchLoadTasks",
|
|
91
91
|
};
|
|
92
92
|
let body;
|
|
93
|
-
body = JSON.stringify(
|
|
93
|
+
body = JSON.stringify(se_ListBatchLoadTasksRequest(input, context));
|
|
94
94
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
95
95
|
};
|
|
96
|
-
export const
|
|
96
|
+
export const se_ListDatabasesCommand = async (input, context) => {
|
|
97
97
|
const headers = {
|
|
98
98
|
"content-type": "application/x-amz-json-1.0",
|
|
99
99
|
"x-amz-target": "Timestream_20181101.ListDatabases",
|
|
100
100
|
};
|
|
101
101
|
let body;
|
|
102
|
-
body = JSON.stringify(
|
|
102
|
+
body = JSON.stringify(se_ListDatabasesRequest(input, context));
|
|
103
103
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
104
104
|
};
|
|
105
|
-
export const
|
|
105
|
+
export const se_ListTablesCommand = async (input, context) => {
|
|
106
106
|
const headers = {
|
|
107
107
|
"content-type": "application/x-amz-json-1.0",
|
|
108
108
|
"x-amz-target": "Timestream_20181101.ListTables",
|
|
109
109
|
};
|
|
110
110
|
let body;
|
|
111
|
-
body = JSON.stringify(
|
|
111
|
+
body = JSON.stringify(se_ListTablesRequest(input, context));
|
|
112
112
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
113
113
|
};
|
|
114
|
-
export const
|
|
114
|
+
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
115
115
|
const headers = {
|
|
116
116
|
"content-type": "application/x-amz-json-1.0",
|
|
117
117
|
"x-amz-target": "Timestream_20181101.ListTagsForResource",
|
|
118
118
|
};
|
|
119
119
|
let body;
|
|
120
|
-
body = JSON.stringify(
|
|
120
|
+
body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
|
|
121
121
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
122
122
|
};
|
|
123
|
-
export const
|
|
123
|
+
export const se_ResumeBatchLoadTaskCommand = async (input, context) => {
|
|
124
124
|
const headers = {
|
|
125
125
|
"content-type": "application/x-amz-json-1.0",
|
|
126
126
|
"x-amz-target": "Timestream_20181101.ResumeBatchLoadTask",
|
|
127
127
|
};
|
|
128
128
|
let body;
|
|
129
|
-
body = JSON.stringify(
|
|
129
|
+
body = JSON.stringify(se_ResumeBatchLoadTaskRequest(input, context));
|
|
130
130
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
131
131
|
};
|
|
132
|
-
export const
|
|
132
|
+
export const se_TagResourceCommand = async (input, context) => {
|
|
133
133
|
const headers = {
|
|
134
134
|
"content-type": "application/x-amz-json-1.0",
|
|
135
135
|
"x-amz-target": "Timestream_20181101.TagResource",
|
|
136
136
|
};
|
|
137
137
|
let body;
|
|
138
|
-
body = JSON.stringify(
|
|
138
|
+
body = JSON.stringify(se_TagResourceRequest(input, context));
|
|
139
139
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
140
140
|
};
|
|
141
|
-
export const
|
|
141
|
+
export const se_UntagResourceCommand = async (input, context) => {
|
|
142
142
|
const headers = {
|
|
143
143
|
"content-type": "application/x-amz-json-1.0",
|
|
144
144
|
"x-amz-target": "Timestream_20181101.UntagResource",
|
|
145
145
|
};
|
|
146
146
|
let body;
|
|
147
|
-
body = JSON.stringify(
|
|
147
|
+
body = JSON.stringify(se_UntagResourceRequest(input, context));
|
|
148
148
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
149
149
|
};
|
|
150
|
-
export const
|
|
150
|
+
export const se_UpdateDatabaseCommand = async (input, context) => {
|
|
151
151
|
const headers = {
|
|
152
152
|
"content-type": "application/x-amz-json-1.0",
|
|
153
153
|
"x-amz-target": "Timestream_20181101.UpdateDatabase",
|
|
154
154
|
};
|
|
155
155
|
let body;
|
|
156
|
-
body = JSON.stringify(
|
|
156
|
+
body = JSON.stringify(se_UpdateDatabaseRequest(input, context));
|
|
157
157
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
158
158
|
};
|
|
159
|
-
export const
|
|
159
|
+
export const se_UpdateTableCommand = async (input, context) => {
|
|
160
160
|
const headers = {
|
|
161
161
|
"content-type": "application/x-amz-json-1.0",
|
|
162
162
|
"x-amz-target": "Timestream_20181101.UpdateTable",
|
|
163
163
|
};
|
|
164
164
|
let body;
|
|
165
|
-
body = JSON.stringify(
|
|
165
|
+
body = JSON.stringify(se_UpdateTableRequest(input, context));
|
|
166
166
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
167
167
|
};
|
|
168
|
-
export const
|
|
168
|
+
export const se_WriteRecordsCommand = async (input, context) => {
|
|
169
169
|
const headers = {
|
|
170
170
|
"content-type": "application/x-amz-json-1.0",
|
|
171
171
|
"x-amz-target": "Timestream_20181101.WriteRecords",
|
|
172
172
|
};
|
|
173
173
|
let body;
|
|
174
|
-
body = JSON.stringify(
|
|
174
|
+
body = JSON.stringify(se_WriteRecordsRequest(input, context));
|
|
175
175
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
176
176
|
};
|
|
177
|
-
export const
|
|
177
|
+
export const de_CreateBatchLoadTaskCommand = async (output, context) => {
|
|
178
178
|
if (output.statusCode >= 300) {
|
|
179
|
-
return
|
|
179
|
+
return de_CreateBatchLoadTaskCommandError(output, context);
|
|
180
180
|
}
|
|
181
181
|
const data = await parseBody(output.body, context);
|
|
182
182
|
let contents = {};
|
|
183
|
-
contents =
|
|
183
|
+
contents = de_CreateBatchLoadTaskResponse(data, context);
|
|
184
184
|
const response = {
|
|
185
185
|
$metadata: deserializeMetadata(output),
|
|
186
186
|
...contents,
|
|
187
187
|
};
|
|
188
188
|
return Promise.resolve(response);
|
|
189
189
|
};
|
|
190
|
-
const
|
|
190
|
+
const de_CreateBatchLoadTaskCommandError = async (output, context) => {
|
|
191
191
|
const parsedOutput = {
|
|
192
192
|
...output,
|
|
193
193
|
body: await parseErrorBody(output.body, context),
|
|
@@ -196,28 +196,28 @@ const deserializeAws_json1_0CreateBatchLoadTaskCommandError = async (output, con
|
|
|
196
196
|
switch (errorCode) {
|
|
197
197
|
case "AccessDeniedException":
|
|
198
198
|
case "com.amazonaws.timestreamwrite#AccessDeniedException":
|
|
199
|
-
throw await
|
|
199
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
200
200
|
case "ConflictException":
|
|
201
201
|
case "com.amazonaws.timestreamwrite#ConflictException":
|
|
202
|
-
throw await
|
|
202
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
203
203
|
case "InternalServerException":
|
|
204
204
|
case "com.amazonaws.timestreamwrite#InternalServerException":
|
|
205
|
-
throw await
|
|
205
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
206
206
|
case "InvalidEndpointException":
|
|
207
207
|
case "com.amazonaws.timestreamwrite#InvalidEndpointException":
|
|
208
|
-
throw await
|
|
208
|
+
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
209
209
|
case "ResourceNotFoundException":
|
|
210
210
|
case "com.amazonaws.timestreamwrite#ResourceNotFoundException":
|
|
211
|
-
throw await
|
|
211
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
212
212
|
case "ServiceQuotaExceededException":
|
|
213
213
|
case "com.amazonaws.timestreamwrite#ServiceQuotaExceededException":
|
|
214
|
-
throw await
|
|
214
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
215
215
|
case "ThrottlingException":
|
|
216
216
|
case "com.amazonaws.timestreamwrite#ThrottlingException":
|
|
217
|
-
throw await
|
|
217
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
218
218
|
case "ValidationException":
|
|
219
219
|
case "com.amazonaws.timestreamwrite#ValidationException":
|
|
220
|
-
throw await
|
|
220
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
221
221
|
default:
|
|
222
222
|
const parsedBody = parsedOutput.body;
|
|
223
223
|
throwDefaultError({
|
|
@@ -228,20 +228,20 @@ const deserializeAws_json1_0CreateBatchLoadTaskCommandError = async (output, con
|
|
|
228
228
|
});
|
|
229
229
|
}
|
|
230
230
|
};
|
|
231
|
-
export const
|
|
231
|
+
export const de_CreateDatabaseCommand = async (output, context) => {
|
|
232
232
|
if (output.statusCode >= 300) {
|
|
233
|
-
return
|
|
233
|
+
return de_CreateDatabaseCommandError(output, context);
|
|
234
234
|
}
|
|
235
235
|
const data = await parseBody(output.body, context);
|
|
236
236
|
let contents = {};
|
|
237
|
-
contents =
|
|
237
|
+
contents = de_CreateDatabaseResponse(data, context);
|
|
238
238
|
const response = {
|
|
239
239
|
$metadata: deserializeMetadata(output),
|
|
240
240
|
...contents,
|
|
241
241
|
};
|
|
242
242
|
return Promise.resolve(response);
|
|
243
243
|
};
|
|
244
|
-
const
|
|
244
|
+
const de_CreateDatabaseCommandError = async (output, context) => {
|
|
245
245
|
const parsedOutput = {
|
|
246
246
|
...output,
|
|
247
247
|
body: await parseErrorBody(output.body, context),
|
|
@@ -250,25 +250,25 @@ const deserializeAws_json1_0CreateDatabaseCommandError = async (output, context)
|
|
|
250
250
|
switch (errorCode) {
|
|
251
251
|
case "AccessDeniedException":
|
|
252
252
|
case "com.amazonaws.timestreamwrite#AccessDeniedException":
|
|
253
|
-
throw await
|
|
253
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
254
254
|
case "ConflictException":
|
|
255
255
|
case "com.amazonaws.timestreamwrite#ConflictException":
|
|
256
|
-
throw await
|
|
256
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
257
257
|
case "InternalServerException":
|
|
258
258
|
case "com.amazonaws.timestreamwrite#InternalServerException":
|
|
259
|
-
throw await
|
|
259
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
260
260
|
case "InvalidEndpointException":
|
|
261
261
|
case "com.amazonaws.timestreamwrite#InvalidEndpointException":
|
|
262
|
-
throw await
|
|
262
|
+
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
263
263
|
case "ServiceQuotaExceededException":
|
|
264
264
|
case "com.amazonaws.timestreamwrite#ServiceQuotaExceededException":
|
|
265
|
-
throw await
|
|
265
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
266
266
|
case "ThrottlingException":
|
|
267
267
|
case "com.amazonaws.timestreamwrite#ThrottlingException":
|
|
268
|
-
throw await
|
|
268
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
269
269
|
case "ValidationException":
|
|
270
270
|
case "com.amazonaws.timestreamwrite#ValidationException":
|
|
271
|
-
throw await
|
|
271
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
272
272
|
default:
|
|
273
273
|
const parsedBody = parsedOutput.body;
|
|
274
274
|
throwDefaultError({
|
|
@@ -279,20 +279,20 @@ const deserializeAws_json1_0CreateDatabaseCommandError = async (output, context)
|
|
|
279
279
|
});
|
|
280
280
|
}
|
|
281
281
|
};
|
|
282
|
-
export const
|
|
282
|
+
export const de_CreateTableCommand = async (output, context) => {
|
|
283
283
|
if (output.statusCode >= 300) {
|
|
284
|
-
return
|
|
284
|
+
return de_CreateTableCommandError(output, context);
|
|
285
285
|
}
|
|
286
286
|
const data = await parseBody(output.body, context);
|
|
287
287
|
let contents = {};
|
|
288
|
-
contents =
|
|
288
|
+
contents = de_CreateTableResponse(data, context);
|
|
289
289
|
const response = {
|
|
290
290
|
$metadata: deserializeMetadata(output),
|
|
291
291
|
...contents,
|
|
292
292
|
};
|
|
293
293
|
return Promise.resolve(response);
|
|
294
294
|
};
|
|
295
|
-
const
|
|
295
|
+
const de_CreateTableCommandError = async (output, context) => {
|
|
296
296
|
const parsedOutput = {
|
|
297
297
|
...output,
|
|
298
298
|
body: await parseErrorBody(output.body, context),
|
|
@@ -301,28 +301,28 @@ const deserializeAws_json1_0CreateTableCommandError = async (output, context) =>
|
|
|
301
301
|
switch (errorCode) {
|
|
302
302
|
case "AccessDeniedException":
|
|
303
303
|
case "com.amazonaws.timestreamwrite#AccessDeniedException":
|
|
304
|
-
throw await
|
|
304
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
305
305
|
case "ConflictException":
|
|
306
306
|
case "com.amazonaws.timestreamwrite#ConflictException":
|
|
307
|
-
throw await
|
|
307
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
308
308
|
case "InternalServerException":
|
|
309
309
|
case "com.amazonaws.timestreamwrite#InternalServerException":
|
|
310
|
-
throw await
|
|
310
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
311
311
|
case "InvalidEndpointException":
|
|
312
312
|
case "com.amazonaws.timestreamwrite#InvalidEndpointException":
|
|
313
|
-
throw await
|
|
313
|
+
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
314
314
|
case "ResourceNotFoundException":
|
|
315
315
|
case "com.amazonaws.timestreamwrite#ResourceNotFoundException":
|
|
316
|
-
throw await
|
|
316
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
317
317
|
case "ServiceQuotaExceededException":
|
|
318
318
|
case "com.amazonaws.timestreamwrite#ServiceQuotaExceededException":
|
|
319
|
-
throw await
|
|
319
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
320
320
|
case "ThrottlingException":
|
|
321
321
|
case "com.amazonaws.timestreamwrite#ThrottlingException":
|
|
322
|
-
throw await
|
|
322
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
323
323
|
case "ValidationException":
|
|
324
324
|
case "com.amazonaws.timestreamwrite#ValidationException":
|
|
325
|
-
throw await
|
|
325
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
326
326
|
default:
|
|
327
327
|
const parsedBody = parsedOutput.body;
|
|
328
328
|
throwDefaultError({
|
|
@@ -333,9 +333,9 @@ const deserializeAws_json1_0CreateTableCommandError = async (output, context) =>
|
|
|
333
333
|
});
|
|
334
334
|
}
|
|
335
335
|
};
|
|
336
|
-
export const
|
|
336
|
+
export const de_DeleteDatabaseCommand = async (output, context) => {
|
|
337
337
|
if (output.statusCode >= 300) {
|
|
338
|
-
return
|
|
338
|
+
return de_DeleteDatabaseCommandError(output, context);
|
|
339
339
|
}
|
|
340
340
|
await collectBody(output.body, context);
|
|
341
341
|
const response = {
|
|
@@ -343,7 +343,7 @@ export const deserializeAws_json1_0DeleteDatabaseCommand = async (output, contex
|
|
|
343
343
|
};
|
|
344
344
|
return Promise.resolve(response);
|
|
345
345
|
};
|
|
346
|
-
const
|
|
346
|
+
const de_DeleteDatabaseCommandError = async (output, context) => {
|
|
347
347
|
const parsedOutput = {
|
|
348
348
|
...output,
|
|
349
349
|
body: await parseErrorBody(output.body, context),
|
|
@@ -352,22 +352,22 @@ const deserializeAws_json1_0DeleteDatabaseCommandError = async (output, context)
|
|
|
352
352
|
switch (errorCode) {
|
|
353
353
|
case "AccessDeniedException":
|
|
354
354
|
case "com.amazonaws.timestreamwrite#AccessDeniedException":
|
|
355
|
-
throw await
|
|
355
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
356
356
|
case "InternalServerException":
|
|
357
357
|
case "com.amazonaws.timestreamwrite#InternalServerException":
|
|
358
|
-
throw await
|
|
358
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
359
359
|
case "InvalidEndpointException":
|
|
360
360
|
case "com.amazonaws.timestreamwrite#InvalidEndpointException":
|
|
361
|
-
throw await
|
|
361
|
+
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
362
362
|
case "ResourceNotFoundException":
|
|
363
363
|
case "com.amazonaws.timestreamwrite#ResourceNotFoundException":
|
|
364
|
-
throw await
|
|
364
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
365
365
|
case "ThrottlingException":
|
|
366
366
|
case "com.amazonaws.timestreamwrite#ThrottlingException":
|
|
367
|
-
throw await
|
|
367
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
368
368
|
case "ValidationException":
|
|
369
369
|
case "com.amazonaws.timestreamwrite#ValidationException":
|
|
370
|
-
throw await
|
|
370
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
371
371
|
default:
|
|
372
372
|
const parsedBody = parsedOutput.body;
|
|
373
373
|
throwDefaultError({
|
|
@@ -378,9 +378,9 @@ const deserializeAws_json1_0DeleteDatabaseCommandError = async (output, context)
|
|
|
378
378
|
});
|
|
379
379
|
}
|
|
380
380
|
};
|
|
381
|
-
export const
|
|
381
|
+
export const de_DeleteTableCommand = async (output, context) => {
|
|
382
382
|
if (output.statusCode >= 300) {
|
|
383
|
-
return
|
|
383
|
+
return de_DeleteTableCommandError(output, context);
|
|
384
384
|
}
|
|
385
385
|
await collectBody(output.body, context);
|
|
386
386
|
const response = {
|
|
@@ -388,7 +388,7 @@ export const deserializeAws_json1_0DeleteTableCommand = async (output, context)
|
|
|
388
388
|
};
|
|
389
389
|
return Promise.resolve(response);
|
|
390
390
|
};
|
|
391
|
-
const
|
|
391
|
+
const de_DeleteTableCommandError = async (output, context) => {
|
|
392
392
|
const parsedOutput = {
|
|
393
393
|
...output,
|
|
394
394
|
body: await parseErrorBody(output.body, context),
|
|
@@ -397,22 +397,22 @@ const deserializeAws_json1_0DeleteTableCommandError = async (output, context) =>
|
|
|
397
397
|
switch (errorCode) {
|
|
398
398
|
case "AccessDeniedException":
|
|
399
399
|
case "com.amazonaws.timestreamwrite#AccessDeniedException":
|
|
400
|
-
throw await
|
|
400
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
401
401
|
case "InternalServerException":
|
|
402
402
|
case "com.amazonaws.timestreamwrite#InternalServerException":
|
|
403
|
-
throw await
|
|
403
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
404
404
|
case "InvalidEndpointException":
|
|
405
405
|
case "com.amazonaws.timestreamwrite#InvalidEndpointException":
|
|
406
|
-
throw await
|
|
406
|
+
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
407
407
|
case "ResourceNotFoundException":
|
|
408
408
|
case "com.amazonaws.timestreamwrite#ResourceNotFoundException":
|
|
409
|
-
throw await
|
|
409
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
410
410
|
case "ThrottlingException":
|
|
411
411
|
case "com.amazonaws.timestreamwrite#ThrottlingException":
|
|
412
|
-
throw await
|
|
412
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
413
413
|
case "ValidationException":
|
|
414
414
|
case "com.amazonaws.timestreamwrite#ValidationException":
|
|
415
|
-
throw await
|
|
415
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
416
416
|
default:
|
|
417
417
|
const parsedBody = parsedOutput.body;
|
|
418
418
|
throwDefaultError({
|
|
@@ -423,20 +423,20 @@ const deserializeAws_json1_0DeleteTableCommandError = async (output, context) =>
|
|
|
423
423
|
});
|
|
424
424
|
}
|
|
425
425
|
};
|
|
426
|
-
export const
|
|
426
|
+
export const de_DescribeBatchLoadTaskCommand = async (output, context) => {
|
|
427
427
|
if (output.statusCode >= 300) {
|
|
428
|
-
return
|
|
428
|
+
return de_DescribeBatchLoadTaskCommandError(output, context);
|
|
429
429
|
}
|
|
430
430
|
const data = await parseBody(output.body, context);
|
|
431
431
|
let contents = {};
|
|
432
|
-
contents =
|
|
432
|
+
contents = de_DescribeBatchLoadTaskResponse(data, context);
|
|
433
433
|
const response = {
|
|
434
434
|
$metadata: deserializeMetadata(output),
|
|
435
435
|
...contents,
|
|
436
436
|
};
|
|
437
437
|
return Promise.resolve(response);
|
|
438
438
|
};
|
|
439
|
-
const
|
|
439
|
+
const de_DescribeBatchLoadTaskCommandError = async (output, context) => {
|
|
440
440
|
const parsedOutput = {
|
|
441
441
|
...output,
|
|
442
442
|
body: await parseErrorBody(output.body, context),
|
|
@@ -445,19 +445,19 @@ const deserializeAws_json1_0DescribeBatchLoadTaskCommandError = async (output, c
|
|
|
445
445
|
switch (errorCode) {
|
|
446
446
|
case "AccessDeniedException":
|
|
447
447
|
case "com.amazonaws.timestreamwrite#AccessDeniedException":
|
|
448
|
-
throw await
|
|
448
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
449
449
|
case "InternalServerException":
|
|
450
450
|
case "com.amazonaws.timestreamwrite#InternalServerException":
|
|
451
|
-
throw await
|
|
451
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
452
452
|
case "InvalidEndpointException":
|
|
453
453
|
case "com.amazonaws.timestreamwrite#InvalidEndpointException":
|
|
454
|
-
throw await
|
|
454
|
+
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
455
455
|
case "ResourceNotFoundException":
|
|
456
456
|
case "com.amazonaws.timestreamwrite#ResourceNotFoundException":
|
|
457
|
-
throw await
|
|
457
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
458
458
|
case "ThrottlingException":
|
|
459
459
|
case "com.amazonaws.timestreamwrite#ThrottlingException":
|
|
460
|
-
throw await
|
|
460
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
461
461
|
default:
|
|
462
462
|
const parsedBody = parsedOutput.body;
|
|
463
463
|
throwDefaultError({
|
|
@@ -468,20 +468,20 @@ const deserializeAws_json1_0DescribeBatchLoadTaskCommandError = async (output, c
|
|
|
468
468
|
});
|
|
469
469
|
}
|
|
470
470
|
};
|
|
471
|
-
export const
|
|
471
|
+
export const de_DescribeDatabaseCommand = async (output, context) => {
|
|
472
472
|
if (output.statusCode >= 300) {
|
|
473
|
-
return
|
|
473
|
+
return de_DescribeDatabaseCommandError(output, context);
|
|
474
474
|
}
|
|
475
475
|
const data = await parseBody(output.body, context);
|
|
476
476
|
let contents = {};
|
|
477
|
-
contents =
|
|
477
|
+
contents = de_DescribeDatabaseResponse(data, context);
|
|
478
478
|
const response = {
|
|
479
479
|
$metadata: deserializeMetadata(output),
|
|
480
480
|
...contents,
|
|
481
481
|
};
|
|
482
482
|
return Promise.resolve(response);
|
|
483
483
|
};
|
|
484
|
-
const
|
|
484
|
+
const de_DescribeDatabaseCommandError = async (output, context) => {
|
|
485
485
|
const parsedOutput = {
|
|
486
486
|
...output,
|
|
487
487
|
body: await parseErrorBody(output.body, context),
|
|
@@ -490,22 +490,22 @@ const deserializeAws_json1_0DescribeDatabaseCommandError = async (output, contex
|
|
|
490
490
|
switch (errorCode) {
|
|
491
491
|
case "AccessDeniedException":
|
|
492
492
|
case "com.amazonaws.timestreamwrite#AccessDeniedException":
|
|
493
|
-
throw await
|
|
493
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
494
494
|
case "InternalServerException":
|
|
495
495
|
case "com.amazonaws.timestreamwrite#InternalServerException":
|
|
496
|
-
throw await
|
|
496
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
497
497
|
case "InvalidEndpointException":
|
|
498
498
|
case "com.amazonaws.timestreamwrite#InvalidEndpointException":
|
|
499
|
-
throw await
|
|
499
|
+
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
500
500
|
case "ResourceNotFoundException":
|
|
501
501
|
case "com.amazonaws.timestreamwrite#ResourceNotFoundException":
|
|
502
|
-
throw await
|
|
502
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
503
503
|
case "ThrottlingException":
|
|
504
504
|
case "com.amazonaws.timestreamwrite#ThrottlingException":
|
|
505
|
-
throw await
|
|
505
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
506
506
|
case "ValidationException":
|
|
507
507
|
case "com.amazonaws.timestreamwrite#ValidationException":
|
|
508
|
-
throw await
|
|
508
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
509
509
|
default:
|
|
510
510
|
const parsedBody = parsedOutput.body;
|
|
511
511
|
throwDefaultError({
|
|
@@ -516,20 +516,20 @@ const deserializeAws_json1_0DescribeDatabaseCommandError = async (output, contex
|
|
|
516
516
|
});
|
|
517
517
|
}
|
|
518
518
|
};
|
|
519
|
-
export const
|
|
519
|
+
export const de_DescribeEndpointsCommand = async (output, context) => {
|
|
520
520
|
if (output.statusCode >= 300) {
|
|
521
|
-
return
|
|
521
|
+
return de_DescribeEndpointsCommandError(output, context);
|
|
522
522
|
}
|
|
523
523
|
const data = await parseBody(output.body, context);
|
|
524
524
|
let contents = {};
|
|
525
|
-
contents =
|
|
525
|
+
contents = de_DescribeEndpointsResponse(data, context);
|
|
526
526
|
const response = {
|
|
527
527
|
$metadata: deserializeMetadata(output),
|
|
528
528
|
...contents,
|
|
529
529
|
};
|
|
530
530
|
return Promise.resolve(response);
|
|
531
531
|
};
|
|
532
|
-
const
|
|
532
|
+
const de_DescribeEndpointsCommandError = async (output, context) => {
|
|
533
533
|
const parsedOutput = {
|
|
534
534
|
...output,
|
|
535
535
|
body: await parseErrorBody(output.body, context),
|
|
@@ -538,13 +538,13 @@ const deserializeAws_json1_0DescribeEndpointsCommandError = async (output, conte
|
|
|
538
538
|
switch (errorCode) {
|
|
539
539
|
case "InternalServerException":
|
|
540
540
|
case "com.amazonaws.timestreamwrite#InternalServerException":
|
|
541
|
-
throw await
|
|
541
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
542
542
|
case "ThrottlingException":
|
|
543
543
|
case "com.amazonaws.timestreamwrite#ThrottlingException":
|
|
544
|
-
throw await
|
|
544
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
545
545
|
case "ValidationException":
|
|
546
546
|
case "com.amazonaws.timestreamwrite#ValidationException":
|
|
547
|
-
throw await
|
|
547
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
548
548
|
default:
|
|
549
549
|
const parsedBody = parsedOutput.body;
|
|
550
550
|
throwDefaultError({
|
|
@@ -555,20 +555,20 @@ const deserializeAws_json1_0DescribeEndpointsCommandError = async (output, conte
|
|
|
555
555
|
});
|
|
556
556
|
}
|
|
557
557
|
};
|
|
558
|
-
export const
|
|
558
|
+
export const de_DescribeTableCommand = async (output, context) => {
|
|
559
559
|
if (output.statusCode >= 300) {
|
|
560
|
-
return
|
|
560
|
+
return de_DescribeTableCommandError(output, context);
|
|
561
561
|
}
|
|
562
562
|
const data = await parseBody(output.body, context);
|
|
563
563
|
let contents = {};
|
|
564
|
-
contents =
|
|
564
|
+
contents = de_DescribeTableResponse(data, context);
|
|
565
565
|
const response = {
|
|
566
566
|
$metadata: deserializeMetadata(output),
|
|
567
567
|
...contents,
|
|
568
568
|
};
|
|
569
569
|
return Promise.resolve(response);
|
|
570
570
|
};
|
|
571
|
-
const
|
|
571
|
+
const de_DescribeTableCommandError = async (output, context) => {
|
|
572
572
|
const parsedOutput = {
|
|
573
573
|
...output,
|
|
574
574
|
body: await parseErrorBody(output.body, context),
|
|
@@ -577,22 +577,22 @@ const deserializeAws_json1_0DescribeTableCommandError = async (output, context)
|
|
|
577
577
|
switch (errorCode) {
|
|
578
578
|
case "AccessDeniedException":
|
|
579
579
|
case "com.amazonaws.timestreamwrite#AccessDeniedException":
|
|
580
|
-
throw await
|
|
580
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
581
581
|
case "InternalServerException":
|
|
582
582
|
case "com.amazonaws.timestreamwrite#InternalServerException":
|
|
583
|
-
throw await
|
|
583
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
584
584
|
case "InvalidEndpointException":
|
|
585
585
|
case "com.amazonaws.timestreamwrite#InvalidEndpointException":
|
|
586
|
-
throw await
|
|
586
|
+
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
587
587
|
case "ResourceNotFoundException":
|
|
588
588
|
case "com.amazonaws.timestreamwrite#ResourceNotFoundException":
|
|
589
|
-
throw await
|
|
589
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
590
590
|
case "ThrottlingException":
|
|
591
591
|
case "com.amazonaws.timestreamwrite#ThrottlingException":
|
|
592
|
-
throw await
|
|
592
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
593
593
|
case "ValidationException":
|
|
594
594
|
case "com.amazonaws.timestreamwrite#ValidationException":
|
|
595
|
-
throw await
|
|
595
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
596
596
|
default:
|
|
597
597
|
const parsedBody = parsedOutput.body;
|
|
598
598
|
throwDefaultError({
|
|
@@ -603,20 +603,20 @@ const deserializeAws_json1_0DescribeTableCommandError = async (output, context)
|
|
|
603
603
|
});
|
|
604
604
|
}
|
|
605
605
|
};
|
|
606
|
-
export const
|
|
606
|
+
export const de_ListBatchLoadTasksCommand = async (output, context) => {
|
|
607
607
|
if (output.statusCode >= 300) {
|
|
608
|
-
return
|
|
608
|
+
return de_ListBatchLoadTasksCommandError(output, context);
|
|
609
609
|
}
|
|
610
610
|
const data = await parseBody(output.body, context);
|
|
611
611
|
let contents = {};
|
|
612
|
-
contents =
|
|
612
|
+
contents = de_ListBatchLoadTasksResponse(data, context);
|
|
613
613
|
const response = {
|
|
614
614
|
$metadata: deserializeMetadata(output),
|
|
615
615
|
...contents,
|
|
616
616
|
};
|
|
617
617
|
return Promise.resolve(response);
|
|
618
618
|
};
|
|
619
|
-
const
|
|
619
|
+
const de_ListBatchLoadTasksCommandError = async (output, context) => {
|
|
620
620
|
const parsedOutput = {
|
|
621
621
|
...output,
|
|
622
622
|
body: await parseErrorBody(output.body, context),
|
|
@@ -625,19 +625,19 @@ const deserializeAws_json1_0ListBatchLoadTasksCommandError = async (output, cont
|
|
|
625
625
|
switch (errorCode) {
|
|
626
626
|
case "AccessDeniedException":
|
|
627
627
|
case "com.amazonaws.timestreamwrite#AccessDeniedException":
|
|
628
|
-
throw await
|
|
628
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
629
629
|
case "InternalServerException":
|
|
630
630
|
case "com.amazonaws.timestreamwrite#InternalServerException":
|
|
631
|
-
throw await
|
|
631
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
632
632
|
case "InvalidEndpointException":
|
|
633
633
|
case "com.amazonaws.timestreamwrite#InvalidEndpointException":
|
|
634
|
-
throw await
|
|
634
|
+
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
635
635
|
case "ThrottlingException":
|
|
636
636
|
case "com.amazonaws.timestreamwrite#ThrottlingException":
|
|
637
|
-
throw await
|
|
637
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
638
638
|
case "ValidationException":
|
|
639
639
|
case "com.amazonaws.timestreamwrite#ValidationException":
|
|
640
|
-
throw await
|
|
640
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
641
641
|
default:
|
|
642
642
|
const parsedBody = parsedOutput.body;
|
|
643
643
|
throwDefaultError({
|
|
@@ -648,20 +648,20 @@ const deserializeAws_json1_0ListBatchLoadTasksCommandError = async (output, cont
|
|
|
648
648
|
});
|
|
649
649
|
}
|
|
650
650
|
};
|
|
651
|
-
export const
|
|
651
|
+
export const de_ListDatabasesCommand = async (output, context) => {
|
|
652
652
|
if (output.statusCode >= 300) {
|
|
653
|
-
return
|
|
653
|
+
return de_ListDatabasesCommandError(output, context);
|
|
654
654
|
}
|
|
655
655
|
const data = await parseBody(output.body, context);
|
|
656
656
|
let contents = {};
|
|
657
|
-
contents =
|
|
657
|
+
contents = de_ListDatabasesResponse(data, context);
|
|
658
658
|
const response = {
|
|
659
659
|
$metadata: deserializeMetadata(output),
|
|
660
660
|
...contents,
|
|
661
661
|
};
|
|
662
662
|
return Promise.resolve(response);
|
|
663
663
|
};
|
|
664
|
-
const
|
|
664
|
+
const de_ListDatabasesCommandError = async (output, context) => {
|
|
665
665
|
const parsedOutput = {
|
|
666
666
|
...output,
|
|
667
667
|
body: await parseErrorBody(output.body, context),
|
|
@@ -670,19 +670,19 @@ const deserializeAws_json1_0ListDatabasesCommandError = async (output, context)
|
|
|
670
670
|
switch (errorCode) {
|
|
671
671
|
case "AccessDeniedException":
|
|
672
672
|
case "com.amazonaws.timestreamwrite#AccessDeniedException":
|
|
673
|
-
throw await
|
|
673
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
674
674
|
case "InternalServerException":
|
|
675
675
|
case "com.amazonaws.timestreamwrite#InternalServerException":
|
|
676
|
-
throw await
|
|
676
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
677
677
|
case "InvalidEndpointException":
|
|
678
678
|
case "com.amazonaws.timestreamwrite#InvalidEndpointException":
|
|
679
|
-
throw await
|
|
679
|
+
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
680
680
|
case "ThrottlingException":
|
|
681
681
|
case "com.amazonaws.timestreamwrite#ThrottlingException":
|
|
682
|
-
throw await
|
|
682
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
683
683
|
case "ValidationException":
|
|
684
684
|
case "com.amazonaws.timestreamwrite#ValidationException":
|
|
685
|
-
throw await
|
|
685
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
686
686
|
default:
|
|
687
687
|
const parsedBody = parsedOutput.body;
|
|
688
688
|
throwDefaultError({
|
|
@@ -693,20 +693,20 @@ const deserializeAws_json1_0ListDatabasesCommandError = async (output, context)
|
|
|
693
693
|
});
|
|
694
694
|
}
|
|
695
695
|
};
|
|
696
|
-
export const
|
|
696
|
+
export const de_ListTablesCommand = async (output, context) => {
|
|
697
697
|
if (output.statusCode >= 300) {
|
|
698
|
-
return
|
|
698
|
+
return de_ListTablesCommandError(output, context);
|
|
699
699
|
}
|
|
700
700
|
const data = await parseBody(output.body, context);
|
|
701
701
|
let contents = {};
|
|
702
|
-
contents =
|
|
702
|
+
contents = de_ListTablesResponse(data, context);
|
|
703
703
|
const response = {
|
|
704
704
|
$metadata: deserializeMetadata(output),
|
|
705
705
|
...contents,
|
|
706
706
|
};
|
|
707
707
|
return Promise.resolve(response);
|
|
708
708
|
};
|
|
709
|
-
const
|
|
709
|
+
const de_ListTablesCommandError = async (output, context) => {
|
|
710
710
|
const parsedOutput = {
|
|
711
711
|
...output,
|
|
712
712
|
body: await parseErrorBody(output.body, context),
|
|
@@ -715,22 +715,22 @@ const deserializeAws_json1_0ListTablesCommandError = async (output, context) =>
|
|
|
715
715
|
switch (errorCode) {
|
|
716
716
|
case "AccessDeniedException":
|
|
717
717
|
case "com.amazonaws.timestreamwrite#AccessDeniedException":
|
|
718
|
-
throw await
|
|
718
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
719
719
|
case "InternalServerException":
|
|
720
720
|
case "com.amazonaws.timestreamwrite#InternalServerException":
|
|
721
|
-
throw await
|
|
721
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
722
722
|
case "InvalidEndpointException":
|
|
723
723
|
case "com.amazonaws.timestreamwrite#InvalidEndpointException":
|
|
724
|
-
throw await
|
|
724
|
+
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
725
725
|
case "ResourceNotFoundException":
|
|
726
726
|
case "com.amazonaws.timestreamwrite#ResourceNotFoundException":
|
|
727
|
-
throw await
|
|
727
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
728
728
|
case "ThrottlingException":
|
|
729
729
|
case "com.amazonaws.timestreamwrite#ThrottlingException":
|
|
730
|
-
throw await
|
|
730
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
731
731
|
case "ValidationException":
|
|
732
732
|
case "com.amazonaws.timestreamwrite#ValidationException":
|
|
733
|
-
throw await
|
|
733
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
734
734
|
default:
|
|
735
735
|
const parsedBody = parsedOutput.body;
|
|
736
736
|
throwDefaultError({
|
|
@@ -741,20 +741,20 @@ const deserializeAws_json1_0ListTablesCommandError = async (output, context) =>
|
|
|
741
741
|
});
|
|
742
742
|
}
|
|
743
743
|
};
|
|
744
|
-
export const
|
|
744
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
745
745
|
if (output.statusCode >= 300) {
|
|
746
|
-
return
|
|
746
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
747
747
|
}
|
|
748
748
|
const data = await parseBody(output.body, context);
|
|
749
749
|
let contents = {};
|
|
750
|
-
contents =
|
|
750
|
+
contents = de_ListTagsForResourceResponse(data, context);
|
|
751
751
|
const response = {
|
|
752
752
|
$metadata: deserializeMetadata(output),
|
|
753
753
|
...contents,
|
|
754
754
|
};
|
|
755
755
|
return Promise.resolve(response);
|
|
756
756
|
};
|
|
757
|
-
const
|
|
757
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
758
758
|
const parsedOutput = {
|
|
759
759
|
...output,
|
|
760
760
|
body: await parseErrorBody(output.body, context),
|
|
@@ -763,16 +763,16 @@ const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, con
|
|
|
763
763
|
switch (errorCode) {
|
|
764
764
|
case "InvalidEndpointException":
|
|
765
765
|
case "com.amazonaws.timestreamwrite#InvalidEndpointException":
|
|
766
|
-
throw await
|
|
766
|
+
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
767
767
|
case "ResourceNotFoundException":
|
|
768
768
|
case "com.amazonaws.timestreamwrite#ResourceNotFoundException":
|
|
769
|
-
throw await
|
|
769
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
770
770
|
case "ThrottlingException":
|
|
771
771
|
case "com.amazonaws.timestreamwrite#ThrottlingException":
|
|
772
|
-
throw await
|
|
772
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
773
773
|
case "ValidationException":
|
|
774
774
|
case "com.amazonaws.timestreamwrite#ValidationException":
|
|
775
|
-
throw await
|
|
775
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
776
776
|
default:
|
|
777
777
|
const parsedBody = parsedOutput.body;
|
|
778
778
|
throwDefaultError({
|
|
@@ -783,20 +783,20 @@ const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, con
|
|
|
783
783
|
});
|
|
784
784
|
}
|
|
785
785
|
};
|
|
786
|
-
export const
|
|
786
|
+
export const de_ResumeBatchLoadTaskCommand = async (output, context) => {
|
|
787
787
|
if (output.statusCode >= 300) {
|
|
788
|
-
return
|
|
788
|
+
return de_ResumeBatchLoadTaskCommandError(output, context);
|
|
789
789
|
}
|
|
790
790
|
const data = await parseBody(output.body, context);
|
|
791
791
|
let contents = {};
|
|
792
|
-
contents =
|
|
792
|
+
contents = de_ResumeBatchLoadTaskResponse(data, context);
|
|
793
793
|
const response = {
|
|
794
794
|
$metadata: deserializeMetadata(output),
|
|
795
795
|
...contents,
|
|
796
796
|
};
|
|
797
797
|
return Promise.resolve(response);
|
|
798
798
|
};
|
|
799
|
-
const
|
|
799
|
+
const de_ResumeBatchLoadTaskCommandError = async (output, context) => {
|
|
800
800
|
const parsedOutput = {
|
|
801
801
|
...output,
|
|
802
802
|
body: await parseErrorBody(output.body, context),
|
|
@@ -805,22 +805,22 @@ const deserializeAws_json1_0ResumeBatchLoadTaskCommandError = async (output, con
|
|
|
805
805
|
switch (errorCode) {
|
|
806
806
|
case "AccessDeniedException":
|
|
807
807
|
case "com.amazonaws.timestreamwrite#AccessDeniedException":
|
|
808
|
-
throw await
|
|
808
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
809
809
|
case "InternalServerException":
|
|
810
810
|
case "com.amazonaws.timestreamwrite#InternalServerException":
|
|
811
|
-
throw await
|
|
811
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
812
812
|
case "InvalidEndpointException":
|
|
813
813
|
case "com.amazonaws.timestreamwrite#InvalidEndpointException":
|
|
814
|
-
throw await
|
|
814
|
+
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
815
815
|
case "ResourceNotFoundException":
|
|
816
816
|
case "com.amazonaws.timestreamwrite#ResourceNotFoundException":
|
|
817
|
-
throw await
|
|
817
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
818
818
|
case "ThrottlingException":
|
|
819
819
|
case "com.amazonaws.timestreamwrite#ThrottlingException":
|
|
820
|
-
throw await
|
|
820
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
821
821
|
case "ValidationException":
|
|
822
822
|
case "com.amazonaws.timestreamwrite#ValidationException":
|
|
823
|
-
throw await
|
|
823
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
824
824
|
default:
|
|
825
825
|
const parsedBody = parsedOutput.body;
|
|
826
826
|
throwDefaultError({
|
|
@@ -831,20 +831,20 @@ const deserializeAws_json1_0ResumeBatchLoadTaskCommandError = async (output, con
|
|
|
831
831
|
});
|
|
832
832
|
}
|
|
833
833
|
};
|
|
834
|
-
export const
|
|
834
|
+
export const de_TagResourceCommand = async (output, context) => {
|
|
835
835
|
if (output.statusCode >= 300) {
|
|
836
|
-
return
|
|
836
|
+
return de_TagResourceCommandError(output, context);
|
|
837
837
|
}
|
|
838
838
|
const data = await parseBody(output.body, context);
|
|
839
839
|
let contents = {};
|
|
840
|
-
contents =
|
|
840
|
+
contents = de_TagResourceResponse(data, context);
|
|
841
841
|
const response = {
|
|
842
842
|
$metadata: deserializeMetadata(output),
|
|
843
843
|
...contents,
|
|
844
844
|
};
|
|
845
845
|
return Promise.resolve(response);
|
|
846
846
|
};
|
|
847
|
-
const
|
|
847
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
848
848
|
const parsedOutput = {
|
|
849
849
|
...output,
|
|
850
850
|
body: await parseErrorBody(output.body, context),
|
|
@@ -853,19 +853,19 @@ const deserializeAws_json1_0TagResourceCommandError = async (output, context) =>
|
|
|
853
853
|
switch (errorCode) {
|
|
854
854
|
case "InvalidEndpointException":
|
|
855
855
|
case "com.amazonaws.timestreamwrite#InvalidEndpointException":
|
|
856
|
-
throw await
|
|
856
|
+
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
857
857
|
case "ResourceNotFoundException":
|
|
858
858
|
case "com.amazonaws.timestreamwrite#ResourceNotFoundException":
|
|
859
|
-
throw await
|
|
859
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
860
860
|
case "ServiceQuotaExceededException":
|
|
861
861
|
case "com.amazonaws.timestreamwrite#ServiceQuotaExceededException":
|
|
862
|
-
throw await
|
|
862
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
863
863
|
case "ThrottlingException":
|
|
864
864
|
case "com.amazonaws.timestreamwrite#ThrottlingException":
|
|
865
|
-
throw await
|
|
865
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
866
866
|
case "ValidationException":
|
|
867
867
|
case "com.amazonaws.timestreamwrite#ValidationException":
|
|
868
|
-
throw await
|
|
868
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
869
869
|
default:
|
|
870
870
|
const parsedBody = parsedOutput.body;
|
|
871
871
|
throwDefaultError({
|
|
@@ -876,20 +876,20 @@ const deserializeAws_json1_0TagResourceCommandError = async (output, context) =>
|
|
|
876
876
|
});
|
|
877
877
|
}
|
|
878
878
|
};
|
|
879
|
-
export const
|
|
879
|
+
export const de_UntagResourceCommand = async (output, context) => {
|
|
880
880
|
if (output.statusCode >= 300) {
|
|
881
|
-
return
|
|
881
|
+
return de_UntagResourceCommandError(output, context);
|
|
882
882
|
}
|
|
883
883
|
const data = await parseBody(output.body, context);
|
|
884
884
|
let contents = {};
|
|
885
|
-
contents =
|
|
885
|
+
contents = de_UntagResourceResponse(data, context);
|
|
886
886
|
const response = {
|
|
887
887
|
$metadata: deserializeMetadata(output),
|
|
888
888
|
...contents,
|
|
889
889
|
};
|
|
890
890
|
return Promise.resolve(response);
|
|
891
891
|
};
|
|
892
|
-
const
|
|
892
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
893
893
|
const parsedOutput = {
|
|
894
894
|
...output,
|
|
895
895
|
body: await parseErrorBody(output.body, context),
|
|
@@ -898,19 +898,19 @@ const deserializeAws_json1_0UntagResourceCommandError = async (output, context)
|
|
|
898
898
|
switch (errorCode) {
|
|
899
899
|
case "InvalidEndpointException":
|
|
900
900
|
case "com.amazonaws.timestreamwrite#InvalidEndpointException":
|
|
901
|
-
throw await
|
|
901
|
+
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
902
902
|
case "ResourceNotFoundException":
|
|
903
903
|
case "com.amazonaws.timestreamwrite#ResourceNotFoundException":
|
|
904
|
-
throw await
|
|
904
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
905
905
|
case "ServiceQuotaExceededException":
|
|
906
906
|
case "com.amazonaws.timestreamwrite#ServiceQuotaExceededException":
|
|
907
|
-
throw await
|
|
907
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
908
908
|
case "ThrottlingException":
|
|
909
909
|
case "com.amazonaws.timestreamwrite#ThrottlingException":
|
|
910
|
-
throw await
|
|
910
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
911
911
|
case "ValidationException":
|
|
912
912
|
case "com.amazonaws.timestreamwrite#ValidationException":
|
|
913
|
-
throw await
|
|
913
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
914
914
|
default:
|
|
915
915
|
const parsedBody = parsedOutput.body;
|
|
916
916
|
throwDefaultError({
|
|
@@ -921,20 +921,20 @@ const deserializeAws_json1_0UntagResourceCommandError = async (output, context)
|
|
|
921
921
|
});
|
|
922
922
|
}
|
|
923
923
|
};
|
|
924
|
-
export const
|
|
924
|
+
export const de_UpdateDatabaseCommand = async (output, context) => {
|
|
925
925
|
if (output.statusCode >= 300) {
|
|
926
|
-
return
|
|
926
|
+
return de_UpdateDatabaseCommandError(output, context);
|
|
927
927
|
}
|
|
928
928
|
const data = await parseBody(output.body, context);
|
|
929
929
|
let contents = {};
|
|
930
|
-
contents =
|
|
930
|
+
contents = de_UpdateDatabaseResponse(data, context);
|
|
931
931
|
const response = {
|
|
932
932
|
$metadata: deserializeMetadata(output),
|
|
933
933
|
...contents,
|
|
934
934
|
};
|
|
935
935
|
return Promise.resolve(response);
|
|
936
936
|
};
|
|
937
|
-
const
|
|
937
|
+
const de_UpdateDatabaseCommandError = async (output, context) => {
|
|
938
938
|
const parsedOutput = {
|
|
939
939
|
...output,
|
|
940
940
|
body: await parseErrorBody(output.body, context),
|
|
@@ -943,25 +943,25 @@ const deserializeAws_json1_0UpdateDatabaseCommandError = async (output, context)
|
|
|
943
943
|
switch (errorCode) {
|
|
944
944
|
case "AccessDeniedException":
|
|
945
945
|
case "com.amazonaws.timestreamwrite#AccessDeniedException":
|
|
946
|
-
throw await
|
|
946
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
947
947
|
case "InternalServerException":
|
|
948
948
|
case "com.amazonaws.timestreamwrite#InternalServerException":
|
|
949
|
-
throw await
|
|
949
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
950
950
|
case "InvalidEndpointException":
|
|
951
951
|
case "com.amazonaws.timestreamwrite#InvalidEndpointException":
|
|
952
|
-
throw await
|
|
952
|
+
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
953
953
|
case "ResourceNotFoundException":
|
|
954
954
|
case "com.amazonaws.timestreamwrite#ResourceNotFoundException":
|
|
955
|
-
throw await
|
|
955
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
956
956
|
case "ServiceQuotaExceededException":
|
|
957
957
|
case "com.amazonaws.timestreamwrite#ServiceQuotaExceededException":
|
|
958
|
-
throw await
|
|
958
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
959
959
|
case "ThrottlingException":
|
|
960
960
|
case "com.amazonaws.timestreamwrite#ThrottlingException":
|
|
961
|
-
throw await
|
|
961
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
962
962
|
case "ValidationException":
|
|
963
963
|
case "com.amazonaws.timestreamwrite#ValidationException":
|
|
964
|
-
throw await
|
|
964
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
965
965
|
default:
|
|
966
966
|
const parsedBody = parsedOutput.body;
|
|
967
967
|
throwDefaultError({
|
|
@@ -972,20 +972,20 @@ const deserializeAws_json1_0UpdateDatabaseCommandError = async (output, context)
|
|
|
972
972
|
});
|
|
973
973
|
}
|
|
974
974
|
};
|
|
975
|
-
export const
|
|
975
|
+
export const de_UpdateTableCommand = async (output, context) => {
|
|
976
976
|
if (output.statusCode >= 300) {
|
|
977
|
-
return
|
|
977
|
+
return de_UpdateTableCommandError(output, context);
|
|
978
978
|
}
|
|
979
979
|
const data = await parseBody(output.body, context);
|
|
980
980
|
let contents = {};
|
|
981
|
-
contents =
|
|
981
|
+
contents = de_UpdateTableResponse(data, context);
|
|
982
982
|
const response = {
|
|
983
983
|
$metadata: deserializeMetadata(output),
|
|
984
984
|
...contents,
|
|
985
985
|
};
|
|
986
986
|
return Promise.resolve(response);
|
|
987
987
|
};
|
|
988
|
-
const
|
|
988
|
+
const de_UpdateTableCommandError = async (output, context) => {
|
|
989
989
|
const parsedOutput = {
|
|
990
990
|
...output,
|
|
991
991
|
body: await parseErrorBody(output.body, context),
|
|
@@ -994,22 +994,22 @@ const deserializeAws_json1_0UpdateTableCommandError = async (output, context) =>
|
|
|
994
994
|
switch (errorCode) {
|
|
995
995
|
case "AccessDeniedException":
|
|
996
996
|
case "com.amazonaws.timestreamwrite#AccessDeniedException":
|
|
997
|
-
throw await
|
|
997
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
998
998
|
case "InternalServerException":
|
|
999
999
|
case "com.amazonaws.timestreamwrite#InternalServerException":
|
|
1000
|
-
throw await
|
|
1000
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1001
1001
|
case "InvalidEndpointException":
|
|
1002
1002
|
case "com.amazonaws.timestreamwrite#InvalidEndpointException":
|
|
1003
|
-
throw await
|
|
1003
|
+
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
1004
1004
|
case "ResourceNotFoundException":
|
|
1005
1005
|
case "com.amazonaws.timestreamwrite#ResourceNotFoundException":
|
|
1006
|
-
throw await
|
|
1006
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1007
1007
|
case "ThrottlingException":
|
|
1008
1008
|
case "com.amazonaws.timestreamwrite#ThrottlingException":
|
|
1009
|
-
throw await
|
|
1009
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1010
1010
|
case "ValidationException":
|
|
1011
1011
|
case "com.amazonaws.timestreamwrite#ValidationException":
|
|
1012
|
-
throw await
|
|
1012
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1013
1013
|
default:
|
|
1014
1014
|
const parsedBody = parsedOutput.body;
|
|
1015
1015
|
throwDefaultError({
|
|
@@ -1020,20 +1020,20 @@ const deserializeAws_json1_0UpdateTableCommandError = async (output, context) =>
|
|
|
1020
1020
|
});
|
|
1021
1021
|
}
|
|
1022
1022
|
};
|
|
1023
|
-
export const
|
|
1023
|
+
export const de_WriteRecordsCommand = async (output, context) => {
|
|
1024
1024
|
if (output.statusCode >= 300) {
|
|
1025
|
-
return
|
|
1025
|
+
return de_WriteRecordsCommandError(output, context);
|
|
1026
1026
|
}
|
|
1027
1027
|
const data = await parseBody(output.body, context);
|
|
1028
1028
|
let contents = {};
|
|
1029
|
-
contents =
|
|
1029
|
+
contents = de_WriteRecordsResponse(data, context);
|
|
1030
1030
|
const response = {
|
|
1031
1031
|
$metadata: deserializeMetadata(output),
|
|
1032
1032
|
...contents,
|
|
1033
1033
|
};
|
|
1034
1034
|
return Promise.resolve(response);
|
|
1035
1035
|
};
|
|
1036
|
-
const
|
|
1036
|
+
const de_WriteRecordsCommandError = async (output, context) => {
|
|
1037
1037
|
const parsedOutput = {
|
|
1038
1038
|
...output,
|
|
1039
1039
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1042,25 +1042,25 @@ const deserializeAws_json1_0WriteRecordsCommandError = async (output, context) =
|
|
|
1042
1042
|
switch (errorCode) {
|
|
1043
1043
|
case "AccessDeniedException":
|
|
1044
1044
|
case "com.amazonaws.timestreamwrite#AccessDeniedException":
|
|
1045
|
-
throw await
|
|
1045
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1046
1046
|
case "InternalServerException":
|
|
1047
1047
|
case "com.amazonaws.timestreamwrite#InternalServerException":
|
|
1048
|
-
throw await
|
|
1048
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1049
1049
|
case "InvalidEndpointException":
|
|
1050
1050
|
case "com.amazonaws.timestreamwrite#InvalidEndpointException":
|
|
1051
|
-
throw await
|
|
1051
|
+
throw await de_InvalidEndpointExceptionRes(parsedOutput, context);
|
|
1052
1052
|
case "RejectedRecordsException":
|
|
1053
1053
|
case "com.amazonaws.timestreamwrite#RejectedRecordsException":
|
|
1054
|
-
throw await
|
|
1054
|
+
throw await de_RejectedRecordsExceptionRes(parsedOutput, context);
|
|
1055
1055
|
case "ResourceNotFoundException":
|
|
1056
1056
|
case "com.amazonaws.timestreamwrite#ResourceNotFoundException":
|
|
1057
|
-
throw await
|
|
1057
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1058
1058
|
case "ThrottlingException":
|
|
1059
1059
|
case "com.amazonaws.timestreamwrite#ThrottlingException":
|
|
1060
|
-
throw await
|
|
1060
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1061
1061
|
case "ValidationException":
|
|
1062
1062
|
case "com.amazonaws.timestreamwrite#ValidationException":
|
|
1063
|
-
throw await
|
|
1063
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1064
1064
|
default:
|
|
1065
1065
|
const parsedBody = parsedOutput.body;
|
|
1066
1066
|
throwDefaultError({
|
|
@@ -1071,125 +1071,125 @@ const deserializeAws_json1_0WriteRecordsCommandError = async (output, context) =
|
|
|
1071
1071
|
});
|
|
1072
1072
|
}
|
|
1073
1073
|
};
|
|
1074
|
-
const
|
|
1074
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1075
1075
|
const body = parsedOutput.body;
|
|
1076
|
-
const deserialized =
|
|
1076
|
+
const deserialized = de_AccessDeniedException(body, context);
|
|
1077
1077
|
const exception = new AccessDeniedException({
|
|
1078
1078
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1079
1079
|
...deserialized,
|
|
1080
1080
|
});
|
|
1081
1081
|
return __decorateServiceException(exception, body);
|
|
1082
1082
|
};
|
|
1083
|
-
const
|
|
1083
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1084
1084
|
const body = parsedOutput.body;
|
|
1085
|
-
const deserialized =
|
|
1085
|
+
const deserialized = de_ConflictException(body, context);
|
|
1086
1086
|
const exception = new ConflictException({
|
|
1087
1087
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1088
1088
|
...deserialized,
|
|
1089
1089
|
});
|
|
1090
1090
|
return __decorateServiceException(exception, body);
|
|
1091
1091
|
};
|
|
1092
|
-
const
|
|
1092
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1093
1093
|
const body = parsedOutput.body;
|
|
1094
|
-
const deserialized =
|
|
1094
|
+
const deserialized = de_InternalServerException(body, context);
|
|
1095
1095
|
const exception = new InternalServerException({
|
|
1096
1096
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1097
1097
|
...deserialized,
|
|
1098
1098
|
});
|
|
1099
1099
|
return __decorateServiceException(exception, body);
|
|
1100
1100
|
};
|
|
1101
|
-
const
|
|
1101
|
+
const de_InvalidEndpointExceptionRes = async (parsedOutput, context) => {
|
|
1102
1102
|
const body = parsedOutput.body;
|
|
1103
|
-
const deserialized =
|
|
1103
|
+
const deserialized = de_InvalidEndpointException(body, context);
|
|
1104
1104
|
const exception = new InvalidEndpointException({
|
|
1105
1105
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1106
1106
|
...deserialized,
|
|
1107
1107
|
});
|
|
1108
1108
|
return __decorateServiceException(exception, body);
|
|
1109
1109
|
};
|
|
1110
|
-
const
|
|
1110
|
+
const de_RejectedRecordsExceptionRes = async (parsedOutput, context) => {
|
|
1111
1111
|
const body = parsedOutput.body;
|
|
1112
|
-
const deserialized =
|
|
1112
|
+
const deserialized = de_RejectedRecordsException(body, context);
|
|
1113
1113
|
const exception = new RejectedRecordsException({
|
|
1114
1114
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1115
1115
|
...deserialized,
|
|
1116
1116
|
});
|
|
1117
1117
|
return __decorateServiceException(exception, body);
|
|
1118
1118
|
};
|
|
1119
|
-
const
|
|
1119
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1120
1120
|
const body = parsedOutput.body;
|
|
1121
|
-
const deserialized =
|
|
1121
|
+
const deserialized = de_ResourceNotFoundException(body, context);
|
|
1122
1122
|
const exception = new ResourceNotFoundException({
|
|
1123
1123
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1124
1124
|
...deserialized,
|
|
1125
1125
|
});
|
|
1126
1126
|
return __decorateServiceException(exception, body);
|
|
1127
1127
|
};
|
|
1128
|
-
const
|
|
1128
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1129
1129
|
const body = parsedOutput.body;
|
|
1130
|
-
const deserialized =
|
|
1130
|
+
const deserialized = de_ServiceQuotaExceededException(body, context);
|
|
1131
1131
|
const exception = new ServiceQuotaExceededException({
|
|
1132
1132
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1133
1133
|
...deserialized,
|
|
1134
1134
|
});
|
|
1135
1135
|
return __decorateServiceException(exception, body);
|
|
1136
1136
|
};
|
|
1137
|
-
const
|
|
1137
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1138
1138
|
const body = parsedOutput.body;
|
|
1139
|
-
const deserialized =
|
|
1139
|
+
const deserialized = de_ThrottlingException(body, context);
|
|
1140
1140
|
const exception = new ThrottlingException({
|
|
1141
1141
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1142
1142
|
...deserialized,
|
|
1143
1143
|
});
|
|
1144
1144
|
return __decorateServiceException(exception, body);
|
|
1145
1145
|
};
|
|
1146
|
-
const
|
|
1146
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1147
1147
|
const body = parsedOutput.body;
|
|
1148
|
-
const deserialized =
|
|
1148
|
+
const deserialized = de_ValidationException(body, context);
|
|
1149
1149
|
const exception = new ValidationException({
|
|
1150
1150
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1151
1151
|
...deserialized,
|
|
1152
1152
|
});
|
|
1153
1153
|
return __decorateServiceException(exception, body);
|
|
1154
1154
|
};
|
|
1155
|
-
const
|
|
1155
|
+
const se_CreateBatchLoadTaskRequest = (input, context) => {
|
|
1156
1156
|
return {
|
|
1157
1157
|
ClientToken: input.ClientToken ?? generateIdempotencyToken(),
|
|
1158
1158
|
...(input.DataModelConfiguration != null && {
|
|
1159
|
-
DataModelConfiguration:
|
|
1159
|
+
DataModelConfiguration: se_DataModelConfiguration(input.DataModelConfiguration, context),
|
|
1160
1160
|
}),
|
|
1161
1161
|
...(input.DataSourceConfiguration != null && {
|
|
1162
|
-
DataSourceConfiguration:
|
|
1162
|
+
DataSourceConfiguration: se_DataSourceConfiguration(input.DataSourceConfiguration, context),
|
|
1163
1163
|
}),
|
|
1164
1164
|
...(input.RecordVersion != null && { RecordVersion: input.RecordVersion }),
|
|
1165
1165
|
...(input.ReportConfiguration != null && {
|
|
1166
|
-
ReportConfiguration:
|
|
1166
|
+
ReportConfiguration: se_ReportConfiguration(input.ReportConfiguration, context),
|
|
1167
1167
|
}),
|
|
1168
1168
|
...(input.TargetDatabaseName != null && { TargetDatabaseName: input.TargetDatabaseName }),
|
|
1169
1169
|
...(input.TargetTableName != null && { TargetTableName: input.TargetTableName }),
|
|
1170
1170
|
};
|
|
1171
1171
|
};
|
|
1172
|
-
const
|
|
1172
|
+
const se_CreateDatabaseRequest = (input, context) => {
|
|
1173
1173
|
return {
|
|
1174
1174
|
...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
|
|
1175
1175
|
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
1176
|
-
...(input.Tags != null && { Tags:
|
|
1176
|
+
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
1177
1177
|
};
|
|
1178
1178
|
};
|
|
1179
|
-
const
|
|
1179
|
+
const se_CreateTableRequest = (input, context) => {
|
|
1180
1180
|
return {
|
|
1181
1181
|
...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
|
|
1182
1182
|
...(input.MagneticStoreWriteProperties != null && {
|
|
1183
|
-
MagneticStoreWriteProperties:
|
|
1183
|
+
MagneticStoreWriteProperties: se_MagneticStoreWriteProperties(input.MagneticStoreWriteProperties, context),
|
|
1184
1184
|
}),
|
|
1185
1185
|
...(input.RetentionProperties != null && {
|
|
1186
|
-
RetentionProperties:
|
|
1186
|
+
RetentionProperties: se_RetentionProperties(input.RetentionProperties, context),
|
|
1187
1187
|
}),
|
|
1188
1188
|
...(input.TableName != null && { TableName: input.TableName }),
|
|
1189
|
-
...(input.Tags != null && { Tags:
|
|
1189
|
+
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
1190
1190
|
};
|
|
1191
1191
|
};
|
|
1192
|
-
const
|
|
1192
|
+
const se_CsvConfiguration = (input, context) => {
|
|
1193
1193
|
return {
|
|
1194
1194
|
...(input.ColumnSeparator != null && { ColumnSeparator: input.ColumnSeparator }),
|
|
1195
1195
|
...(input.EscapeChar != null && { EscapeChar: input.EscapeChar }),
|
|
@@ -1198,183 +1198,179 @@ const serializeAws_json1_0CsvConfiguration = (input, context) => {
|
|
|
1198
1198
|
...(input.TrimWhiteSpace != null && { TrimWhiteSpace: input.TrimWhiteSpace }),
|
|
1199
1199
|
};
|
|
1200
1200
|
};
|
|
1201
|
-
const
|
|
1201
|
+
const se_DataModel = (input, context) => {
|
|
1202
1202
|
return {
|
|
1203
1203
|
...(input.DimensionMappings != null && {
|
|
1204
|
-
DimensionMappings:
|
|
1204
|
+
DimensionMappings: se_DimensionMappings(input.DimensionMappings, context),
|
|
1205
1205
|
}),
|
|
1206
1206
|
...(input.MeasureNameColumn != null && { MeasureNameColumn: input.MeasureNameColumn }),
|
|
1207
1207
|
...(input.MixedMeasureMappings != null && {
|
|
1208
|
-
MixedMeasureMappings:
|
|
1208
|
+
MixedMeasureMappings: se_MixedMeasureMappingList(input.MixedMeasureMappings, context),
|
|
1209
1209
|
}),
|
|
1210
1210
|
...(input.MultiMeasureMappings != null && {
|
|
1211
|
-
MultiMeasureMappings:
|
|
1211
|
+
MultiMeasureMappings: se_MultiMeasureMappings(input.MultiMeasureMappings, context),
|
|
1212
1212
|
}),
|
|
1213
1213
|
...(input.TimeColumn != null && { TimeColumn: input.TimeColumn }),
|
|
1214
1214
|
...(input.TimeUnit != null && { TimeUnit: input.TimeUnit }),
|
|
1215
1215
|
};
|
|
1216
1216
|
};
|
|
1217
|
-
const
|
|
1217
|
+
const se_DataModelConfiguration = (input, context) => {
|
|
1218
1218
|
return {
|
|
1219
|
-
...(input.DataModel != null && { DataModel:
|
|
1219
|
+
...(input.DataModel != null && { DataModel: se_DataModel(input.DataModel, context) }),
|
|
1220
1220
|
...(input.DataModelS3Configuration != null && {
|
|
1221
|
-
DataModelS3Configuration:
|
|
1221
|
+
DataModelS3Configuration: se_DataModelS3Configuration(input.DataModelS3Configuration, context),
|
|
1222
1222
|
}),
|
|
1223
1223
|
};
|
|
1224
1224
|
};
|
|
1225
|
-
const
|
|
1225
|
+
const se_DataModelS3Configuration = (input, context) => {
|
|
1226
1226
|
return {
|
|
1227
1227
|
...(input.BucketName != null && { BucketName: input.BucketName }),
|
|
1228
1228
|
...(input.ObjectKey != null && { ObjectKey: input.ObjectKey }),
|
|
1229
1229
|
};
|
|
1230
1230
|
};
|
|
1231
|
-
const
|
|
1231
|
+
const se_DataSourceConfiguration = (input, context) => {
|
|
1232
1232
|
return {
|
|
1233
|
-
...(input.CsvConfiguration != null && {
|
|
1234
|
-
CsvConfiguration: serializeAws_json1_0CsvConfiguration(input.CsvConfiguration, context),
|
|
1235
|
-
}),
|
|
1233
|
+
...(input.CsvConfiguration != null && { CsvConfiguration: se_CsvConfiguration(input.CsvConfiguration, context) }),
|
|
1236
1234
|
...(input.DataFormat != null && { DataFormat: input.DataFormat }),
|
|
1237
1235
|
...(input.DataSourceS3Configuration != null && {
|
|
1238
|
-
DataSourceS3Configuration:
|
|
1236
|
+
DataSourceS3Configuration: se_DataSourceS3Configuration(input.DataSourceS3Configuration, context),
|
|
1239
1237
|
}),
|
|
1240
1238
|
};
|
|
1241
1239
|
};
|
|
1242
|
-
const
|
|
1240
|
+
const se_DataSourceS3Configuration = (input, context) => {
|
|
1243
1241
|
return {
|
|
1244
1242
|
...(input.BucketName != null && { BucketName: input.BucketName }),
|
|
1245
1243
|
...(input.ObjectKeyPrefix != null && { ObjectKeyPrefix: input.ObjectKeyPrefix }),
|
|
1246
1244
|
};
|
|
1247
1245
|
};
|
|
1248
|
-
const
|
|
1246
|
+
const se_DeleteDatabaseRequest = (input, context) => {
|
|
1249
1247
|
return {
|
|
1250
1248
|
...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
|
|
1251
1249
|
};
|
|
1252
1250
|
};
|
|
1253
|
-
const
|
|
1251
|
+
const se_DeleteTableRequest = (input, context) => {
|
|
1254
1252
|
return {
|
|
1255
1253
|
...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
|
|
1256
1254
|
...(input.TableName != null && { TableName: input.TableName }),
|
|
1257
1255
|
};
|
|
1258
1256
|
};
|
|
1259
|
-
const
|
|
1257
|
+
const se_DescribeBatchLoadTaskRequest = (input, context) => {
|
|
1260
1258
|
return {
|
|
1261
1259
|
...(input.TaskId != null && { TaskId: input.TaskId }),
|
|
1262
1260
|
};
|
|
1263
1261
|
};
|
|
1264
|
-
const
|
|
1262
|
+
const se_DescribeDatabaseRequest = (input, context) => {
|
|
1265
1263
|
return {
|
|
1266
1264
|
...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
|
|
1267
1265
|
};
|
|
1268
1266
|
};
|
|
1269
|
-
const
|
|
1267
|
+
const se_DescribeEndpointsRequest = (input, context) => {
|
|
1270
1268
|
return {};
|
|
1271
1269
|
};
|
|
1272
|
-
const
|
|
1270
|
+
const se_DescribeTableRequest = (input, context) => {
|
|
1273
1271
|
return {
|
|
1274
1272
|
...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
|
|
1275
1273
|
...(input.TableName != null && { TableName: input.TableName }),
|
|
1276
1274
|
};
|
|
1277
1275
|
};
|
|
1278
|
-
const
|
|
1276
|
+
const se_Dimension = (input, context) => {
|
|
1279
1277
|
return {
|
|
1280
1278
|
...(input.DimensionValueType != null && { DimensionValueType: input.DimensionValueType }),
|
|
1281
1279
|
...(input.Name != null && { Name: input.Name }),
|
|
1282
1280
|
...(input.Value != null && { Value: input.Value }),
|
|
1283
1281
|
};
|
|
1284
1282
|
};
|
|
1285
|
-
const
|
|
1283
|
+
const se_DimensionMapping = (input, context) => {
|
|
1286
1284
|
return {
|
|
1287
1285
|
...(input.DestinationColumn != null && { DestinationColumn: input.DestinationColumn }),
|
|
1288
1286
|
...(input.SourceColumn != null && { SourceColumn: input.SourceColumn }),
|
|
1289
1287
|
};
|
|
1290
1288
|
};
|
|
1291
|
-
const
|
|
1289
|
+
const se_DimensionMappings = (input, context) => {
|
|
1292
1290
|
return input
|
|
1293
1291
|
.filter((e) => e != null)
|
|
1294
1292
|
.map((entry) => {
|
|
1295
|
-
return
|
|
1293
|
+
return se_DimensionMapping(entry, context);
|
|
1296
1294
|
});
|
|
1297
1295
|
};
|
|
1298
|
-
const
|
|
1296
|
+
const se_Dimensions = (input, context) => {
|
|
1299
1297
|
return input
|
|
1300
1298
|
.filter((e) => e != null)
|
|
1301
1299
|
.map((entry) => {
|
|
1302
|
-
return
|
|
1300
|
+
return se_Dimension(entry, context);
|
|
1303
1301
|
});
|
|
1304
1302
|
};
|
|
1305
|
-
const
|
|
1303
|
+
const se_ListBatchLoadTasksRequest = (input, context) => {
|
|
1306
1304
|
return {
|
|
1307
1305
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1308
1306
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1309
1307
|
...(input.TaskStatus != null && { TaskStatus: input.TaskStatus }),
|
|
1310
1308
|
};
|
|
1311
1309
|
};
|
|
1312
|
-
const
|
|
1310
|
+
const se_ListDatabasesRequest = (input, context) => {
|
|
1313
1311
|
return {
|
|
1314
1312
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1315
1313
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1316
1314
|
};
|
|
1317
1315
|
};
|
|
1318
|
-
const
|
|
1316
|
+
const se_ListTablesRequest = (input, context) => {
|
|
1319
1317
|
return {
|
|
1320
1318
|
...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
|
|
1321
1319
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1322
1320
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1323
1321
|
};
|
|
1324
1322
|
};
|
|
1325
|
-
const
|
|
1323
|
+
const se_ListTagsForResourceRequest = (input, context) => {
|
|
1326
1324
|
return {
|
|
1327
1325
|
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
1328
1326
|
};
|
|
1329
1327
|
};
|
|
1330
|
-
const
|
|
1328
|
+
const se_MagneticStoreRejectedDataLocation = (input, context) => {
|
|
1331
1329
|
return {
|
|
1332
|
-
...(input.S3Configuration != null && {
|
|
1333
|
-
S3Configuration: serializeAws_json1_0S3Configuration(input.S3Configuration, context),
|
|
1334
|
-
}),
|
|
1330
|
+
...(input.S3Configuration != null && { S3Configuration: se_S3Configuration(input.S3Configuration, context) }),
|
|
1335
1331
|
};
|
|
1336
1332
|
};
|
|
1337
|
-
const
|
|
1333
|
+
const se_MagneticStoreWriteProperties = (input, context) => {
|
|
1338
1334
|
return {
|
|
1339
1335
|
...(input.EnableMagneticStoreWrites != null && { EnableMagneticStoreWrites: input.EnableMagneticStoreWrites }),
|
|
1340
1336
|
...(input.MagneticStoreRejectedDataLocation != null && {
|
|
1341
|
-
MagneticStoreRejectedDataLocation:
|
|
1337
|
+
MagneticStoreRejectedDataLocation: se_MagneticStoreRejectedDataLocation(input.MagneticStoreRejectedDataLocation, context),
|
|
1342
1338
|
}),
|
|
1343
1339
|
};
|
|
1344
1340
|
};
|
|
1345
|
-
const
|
|
1341
|
+
const se_MeasureValue = (input, context) => {
|
|
1346
1342
|
return {
|
|
1347
1343
|
...(input.Name != null && { Name: input.Name }),
|
|
1348
1344
|
...(input.Type != null && { Type: input.Type }),
|
|
1349
1345
|
...(input.Value != null && { Value: input.Value }),
|
|
1350
1346
|
};
|
|
1351
1347
|
};
|
|
1352
|
-
const
|
|
1348
|
+
const se_MeasureValues = (input, context) => {
|
|
1353
1349
|
return input
|
|
1354
1350
|
.filter((e) => e != null)
|
|
1355
1351
|
.map((entry) => {
|
|
1356
|
-
return
|
|
1352
|
+
return se_MeasureValue(entry, context);
|
|
1357
1353
|
});
|
|
1358
1354
|
};
|
|
1359
|
-
const
|
|
1355
|
+
const se_MixedMeasureMapping = (input, context) => {
|
|
1360
1356
|
return {
|
|
1361
1357
|
...(input.MeasureName != null && { MeasureName: input.MeasureName }),
|
|
1362
1358
|
...(input.MeasureValueType != null && { MeasureValueType: input.MeasureValueType }),
|
|
1363
1359
|
...(input.MultiMeasureAttributeMappings != null && {
|
|
1364
|
-
MultiMeasureAttributeMappings:
|
|
1360
|
+
MultiMeasureAttributeMappings: se_MultiMeasureAttributeMappingList(input.MultiMeasureAttributeMappings, context),
|
|
1365
1361
|
}),
|
|
1366
1362
|
...(input.SourceColumn != null && { SourceColumn: input.SourceColumn }),
|
|
1367
1363
|
...(input.TargetMeasureName != null && { TargetMeasureName: input.TargetMeasureName }),
|
|
1368
1364
|
};
|
|
1369
1365
|
};
|
|
1370
|
-
const
|
|
1366
|
+
const se_MixedMeasureMappingList = (input, context) => {
|
|
1371
1367
|
return input
|
|
1372
1368
|
.filter((e) => e != null)
|
|
1373
1369
|
.map((entry) => {
|
|
1374
|
-
return
|
|
1370
|
+
return se_MixedMeasureMapping(entry, context);
|
|
1375
1371
|
});
|
|
1376
1372
|
};
|
|
1377
|
-
const
|
|
1373
|
+
const se_MultiMeasureAttributeMapping = (input, context) => {
|
|
1378
1374
|
return {
|
|
1379
1375
|
...(input.MeasureValueType != null && { MeasureValueType: input.MeasureValueType }),
|
|
1380
1376
|
...(input.SourceColumn != null && { SourceColumn: input.SourceColumn }),
|
|
@@ -1383,50 +1379,48 @@ const serializeAws_json1_0MultiMeasureAttributeMapping = (input, context) => {
|
|
|
1383
1379
|
}),
|
|
1384
1380
|
};
|
|
1385
1381
|
};
|
|
1386
|
-
const
|
|
1382
|
+
const se_MultiMeasureAttributeMappingList = (input, context) => {
|
|
1387
1383
|
return input
|
|
1388
1384
|
.filter((e) => e != null)
|
|
1389
1385
|
.map((entry) => {
|
|
1390
|
-
return
|
|
1386
|
+
return se_MultiMeasureAttributeMapping(entry, context);
|
|
1391
1387
|
});
|
|
1392
1388
|
};
|
|
1393
|
-
const
|
|
1389
|
+
const se_MultiMeasureMappings = (input, context) => {
|
|
1394
1390
|
return {
|
|
1395
1391
|
...(input.MultiMeasureAttributeMappings != null && {
|
|
1396
|
-
MultiMeasureAttributeMappings:
|
|
1392
|
+
MultiMeasureAttributeMappings: se_MultiMeasureAttributeMappingList(input.MultiMeasureAttributeMappings, context),
|
|
1397
1393
|
}),
|
|
1398
1394
|
...(input.TargetMultiMeasureName != null && { TargetMultiMeasureName: input.TargetMultiMeasureName }),
|
|
1399
1395
|
};
|
|
1400
1396
|
};
|
|
1401
|
-
const
|
|
1397
|
+
const se__Record = (input, context) => {
|
|
1402
1398
|
return {
|
|
1403
|
-
...(input.Dimensions != null && { Dimensions:
|
|
1399
|
+
...(input.Dimensions != null && { Dimensions: se_Dimensions(input.Dimensions, context) }),
|
|
1404
1400
|
...(input.MeasureName != null && { MeasureName: input.MeasureName }),
|
|
1405
1401
|
...(input.MeasureValue != null && { MeasureValue: input.MeasureValue }),
|
|
1406
1402
|
...(input.MeasureValueType != null && { MeasureValueType: input.MeasureValueType }),
|
|
1407
|
-
...(input.MeasureValues != null && {
|
|
1408
|
-
MeasureValues: serializeAws_json1_0MeasureValues(input.MeasureValues, context),
|
|
1409
|
-
}),
|
|
1403
|
+
...(input.MeasureValues != null && { MeasureValues: se_MeasureValues(input.MeasureValues, context) }),
|
|
1410
1404
|
...(input.Time != null && { Time: input.Time }),
|
|
1411
1405
|
...(input.TimeUnit != null && { TimeUnit: input.TimeUnit }),
|
|
1412
1406
|
...(input.Version != null && { Version: input.Version }),
|
|
1413
1407
|
};
|
|
1414
1408
|
};
|
|
1415
|
-
const
|
|
1409
|
+
const se_Records = (input, context) => {
|
|
1416
1410
|
return input
|
|
1417
1411
|
.filter((e) => e != null)
|
|
1418
1412
|
.map((entry) => {
|
|
1419
|
-
return
|
|
1413
|
+
return se__Record(entry, context);
|
|
1420
1414
|
});
|
|
1421
1415
|
};
|
|
1422
|
-
const
|
|
1416
|
+
const se_ReportConfiguration = (input, context) => {
|
|
1423
1417
|
return {
|
|
1424
1418
|
...(input.ReportS3Configuration != null && {
|
|
1425
|
-
ReportS3Configuration:
|
|
1419
|
+
ReportS3Configuration: se_ReportS3Configuration(input.ReportS3Configuration, context),
|
|
1426
1420
|
}),
|
|
1427
1421
|
};
|
|
1428
1422
|
};
|
|
1429
|
-
const
|
|
1423
|
+
const se_ReportS3Configuration = (input, context) => {
|
|
1430
1424
|
return {
|
|
1431
1425
|
...(input.BucketName != null && { BucketName: input.BucketName }),
|
|
1432
1426
|
...(input.EncryptionOption != null && { EncryptionOption: input.EncryptionOption }),
|
|
@@ -1434,12 +1428,12 @@ const serializeAws_json1_0ReportS3Configuration = (input, context) => {
|
|
|
1434
1428
|
...(input.ObjectKeyPrefix != null && { ObjectKeyPrefix: input.ObjectKeyPrefix }),
|
|
1435
1429
|
};
|
|
1436
1430
|
};
|
|
1437
|
-
const
|
|
1431
|
+
const se_ResumeBatchLoadTaskRequest = (input, context) => {
|
|
1438
1432
|
return {
|
|
1439
1433
|
...(input.TaskId != null && { TaskId: input.TaskId }),
|
|
1440
1434
|
};
|
|
1441
1435
|
};
|
|
1442
|
-
const
|
|
1436
|
+
const se_RetentionProperties = (input, context) => {
|
|
1443
1437
|
return {
|
|
1444
1438
|
...(input.MagneticStoreRetentionPeriodInDays != null && {
|
|
1445
1439
|
MagneticStoreRetentionPeriodInDays: input.MagneticStoreRetentionPeriodInDays,
|
|
@@ -1449,7 +1443,7 @@ const serializeAws_json1_0RetentionProperties = (input, context) => {
|
|
|
1449
1443
|
}),
|
|
1450
1444
|
};
|
|
1451
1445
|
};
|
|
1452
|
-
const
|
|
1446
|
+
const se_S3Configuration = (input, context) => {
|
|
1453
1447
|
return {
|
|
1454
1448
|
...(input.BucketName != null && { BucketName: input.BucketName }),
|
|
1455
1449
|
...(input.EncryptionOption != null && { EncryptionOption: input.EncryptionOption }),
|
|
@@ -1457,72 +1451,70 @@ const serializeAws_json1_0S3Configuration = (input, context) => {
|
|
|
1457
1451
|
...(input.ObjectKeyPrefix != null && { ObjectKeyPrefix: input.ObjectKeyPrefix }),
|
|
1458
1452
|
};
|
|
1459
1453
|
};
|
|
1460
|
-
const
|
|
1454
|
+
const se_Tag = (input, context) => {
|
|
1461
1455
|
return {
|
|
1462
1456
|
...(input.Key != null && { Key: input.Key }),
|
|
1463
1457
|
...(input.Value != null && { Value: input.Value }),
|
|
1464
1458
|
};
|
|
1465
1459
|
};
|
|
1466
|
-
const
|
|
1460
|
+
const se_TagKeyList = (input, context) => {
|
|
1467
1461
|
return input
|
|
1468
1462
|
.filter((e) => e != null)
|
|
1469
1463
|
.map((entry) => {
|
|
1470
1464
|
return entry;
|
|
1471
1465
|
});
|
|
1472
1466
|
};
|
|
1473
|
-
const
|
|
1467
|
+
const se_TagList = (input, context) => {
|
|
1474
1468
|
return input
|
|
1475
1469
|
.filter((e) => e != null)
|
|
1476
1470
|
.map((entry) => {
|
|
1477
|
-
return
|
|
1471
|
+
return se_Tag(entry, context);
|
|
1478
1472
|
});
|
|
1479
1473
|
};
|
|
1480
|
-
const
|
|
1474
|
+
const se_TagResourceRequest = (input, context) => {
|
|
1481
1475
|
return {
|
|
1482
1476
|
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
1483
|
-
...(input.Tags != null && { Tags:
|
|
1477
|
+
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
1484
1478
|
};
|
|
1485
1479
|
};
|
|
1486
|
-
const
|
|
1480
|
+
const se_UntagResourceRequest = (input, context) => {
|
|
1487
1481
|
return {
|
|
1488
1482
|
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
1489
|
-
...(input.TagKeys != null && { TagKeys:
|
|
1483
|
+
...(input.TagKeys != null && { TagKeys: se_TagKeyList(input.TagKeys, context) }),
|
|
1490
1484
|
};
|
|
1491
1485
|
};
|
|
1492
|
-
const
|
|
1486
|
+
const se_UpdateDatabaseRequest = (input, context) => {
|
|
1493
1487
|
return {
|
|
1494
1488
|
...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
|
|
1495
1489
|
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
1496
1490
|
};
|
|
1497
1491
|
};
|
|
1498
|
-
const
|
|
1492
|
+
const se_UpdateTableRequest = (input, context) => {
|
|
1499
1493
|
return {
|
|
1500
1494
|
...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
|
|
1501
1495
|
...(input.MagneticStoreWriteProperties != null && {
|
|
1502
|
-
MagneticStoreWriteProperties:
|
|
1496
|
+
MagneticStoreWriteProperties: se_MagneticStoreWriteProperties(input.MagneticStoreWriteProperties, context),
|
|
1503
1497
|
}),
|
|
1504
1498
|
...(input.RetentionProperties != null && {
|
|
1505
|
-
RetentionProperties:
|
|
1499
|
+
RetentionProperties: se_RetentionProperties(input.RetentionProperties, context),
|
|
1506
1500
|
}),
|
|
1507
1501
|
...(input.TableName != null && { TableName: input.TableName }),
|
|
1508
1502
|
};
|
|
1509
1503
|
};
|
|
1510
|
-
const
|
|
1504
|
+
const se_WriteRecordsRequest = (input, context) => {
|
|
1511
1505
|
return {
|
|
1512
|
-
...(input.CommonAttributes != null && {
|
|
1513
|
-
CommonAttributes: serializeAws_json1_0_Record(input.CommonAttributes, context),
|
|
1514
|
-
}),
|
|
1506
|
+
...(input.CommonAttributes != null && { CommonAttributes: se__Record(input.CommonAttributes, context) }),
|
|
1515
1507
|
...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
|
|
1516
|
-
...(input.Records != null && { Records:
|
|
1508
|
+
...(input.Records != null && { Records: se_Records(input.Records, context) }),
|
|
1517
1509
|
...(input.TableName != null && { TableName: input.TableName }),
|
|
1518
1510
|
};
|
|
1519
1511
|
};
|
|
1520
|
-
const
|
|
1512
|
+
const de_AccessDeniedException = (output, context) => {
|
|
1521
1513
|
return {
|
|
1522
1514
|
Message: __expectString(output.Message),
|
|
1523
1515
|
};
|
|
1524
1516
|
};
|
|
1525
|
-
const
|
|
1517
|
+
const de_BatchLoadProgressReport = (output, context) => {
|
|
1526
1518
|
return {
|
|
1527
1519
|
BytesMetered: __expectLong(output.BytesMetered),
|
|
1528
1520
|
FileFailures: __expectLong(output.FileFailures),
|
|
@@ -1532,7 +1524,7 @@ const deserializeAws_json1_0BatchLoadProgressReport = (output, context) => {
|
|
|
1532
1524
|
RecordsProcessed: __expectLong(output.RecordsProcessed),
|
|
1533
1525
|
};
|
|
1534
1526
|
};
|
|
1535
|
-
const
|
|
1527
|
+
const de_BatchLoadTask = (output, context) => {
|
|
1536
1528
|
return {
|
|
1537
1529
|
CreationTime: output.CreationTime != null
|
|
1538
1530
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
|
|
@@ -1549,28 +1541,24 @@ const deserializeAws_json1_0BatchLoadTask = (output, context) => {
|
|
|
1549
1541
|
TaskStatus: __expectString(output.TaskStatus),
|
|
1550
1542
|
};
|
|
1551
1543
|
};
|
|
1552
|
-
const
|
|
1544
|
+
const de_BatchLoadTaskDescription = (output, context) => {
|
|
1553
1545
|
return {
|
|
1554
1546
|
CreationTime: output.CreationTime != null
|
|
1555
1547
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
|
|
1556
1548
|
: undefined,
|
|
1557
1549
|
DataModelConfiguration: output.DataModelConfiguration != null
|
|
1558
|
-
?
|
|
1550
|
+
? de_DataModelConfiguration(output.DataModelConfiguration, context)
|
|
1559
1551
|
: undefined,
|
|
1560
1552
|
DataSourceConfiguration: output.DataSourceConfiguration != null
|
|
1561
|
-
?
|
|
1553
|
+
? de_DataSourceConfiguration(output.DataSourceConfiguration, context)
|
|
1562
1554
|
: undefined,
|
|
1563
1555
|
ErrorMessage: __expectString(output.ErrorMessage),
|
|
1564
1556
|
LastUpdatedTime: output.LastUpdatedTime != null
|
|
1565
1557
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTime)))
|
|
1566
1558
|
: undefined,
|
|
1567
|
-
ProgressReport: output.ProgressReport != null
|
|
1568
|
-
? deserializeAws_json1_0BatchLoadProgressReport(output.ProgressReport, context)
|
|
1569
|
-
: undefined,
|
|
1559
|
+
ProgressReport: output.ProgressReport != null ? de_BatchLoadProgressReport(output.ProgressReport, context) : undefined,
|
|
1570
1560
|
RecordVersion: __expectLong(output.RecordVersion),
|
|
1571
|
-
ReportConfiguration: output.ReportConfiguration != null
|
|
1572
|
-
? deserializeAws_json1_0ReportConfiguration(output.ReportConfiguration, context)
|
|
1573
|
-
: undefined,
|
|
1561
|
+
ReportConfiguration: output.ReportConfiguration != null ? de_ReportConfiguration(output.ReportConfiguration, context) : undefined,
|
|
1574
1562
|
ResumableUntil: output.ResumableUntil != null
|
|
1575
1563
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ResumableUntil)))
|
|
1576
1564
|
: undefined,
|
|
@@ -1580,38 +1568,38 @@ const deserializeAws_json1_0BatchLoadTaskDescription = (output, context) => {
|
|
|
1580
1568
|
TaskStatus: __expectString(output.TaskStatus),
|
|
1581
1569
|
};
|
|
1582
1570
|
};
|
|
1583
|
-
const
|
|
1571
|
+
const de_BatchLoadTaskList = (output, context) => {
|
|
1584
1572
|
const retVal = (output || [])
|
|
1585
1573
|
.filter((e) => e != null)
|
|
1586
1574
|
.map((entry) => {
|
|
1587
1575
|
if (entry === null) {
|
|
1588
1576
|
return null;
|
|
1589
1577
|
}
|
|
1590
|
-
return
|
|
1578
|
+
return de_BatchLoadTask(entry, context);
|
|
1591
1579
|
});
|
|
1592
1580
|
return retVal;
|
|
1593
1581
|
};
|
|
1594
|
-
const
|
|
1582
|
+
const de_ConflictException = (output, context) => {
|
|
1595
1583
|
return {
|
|
1596
1584
|
Message: __expectString(output.Message),
|
|
1597
1585
|
};
|
|
1598
1586
|
};
|
|
1599
|
-
const
|
|
1587
|
+
const de_CreateBatchLoadTaskResponse = (output, context) => {
|
|
1600
1588
|
return {
|
|
1601
1589
|
TaskId: __expectString(output.TaskId),
|
|
1602
1590
|
};
|
|
1603
1591
|
};
|
|
1604
|
-
const
|
|
1592
|
+
const de_CreateDatabaseResponse = (output, context) => {
|
|
1605
1593
|
return {
|
|
1606
|
-
Database: output.Database != null ?
|
|
1594
|
+
Database: output.Database != null ? de_Database(output.Database, context) : undefined,
|
|
1607
1595
|
};
|
|
1608
1596
|
};
|
|
1609
|
-
const
|
|
1597
|
+
const de_CreateTableResponse = (output, context) => {
|
|
1610
1598
|
return {
|
|
1611
|
-
Table: output.Table != null ?
|
|
1599
|
+
Table: output.Table != null ? de_Table(output.Table, context) : undefined,
|
|
1612
1600
|
};
|
|
1613
1601
|
};
|
|
1614
|
-
const
|
|
1602
|
+
const de_CsvConfiguration = (output, context) => {
|
|
1615
1603
|
return {
|
|
1616
1604
|
ColumnSeparator: __expectString(output.ColumnSeparator),
|
|
1617
1605
|
EscapeChar: __expectString(output.EscapeChar),
|
|
@@ -1620,7 +1608,7 @@ const deserializeAws_json1_0CsvConfiguration = (output, context) => {
|
|
|
1620
1608
|
TrimWhiteSpace: __expectBoolean(output.TrimWhiteSpace),
|
|
1621
1609
|
};
|
|
1622
1610
|
};
|
|
1623
|
-
const
|
|
1611
|
+
const de_Database = (output, context) => {
|
|
1624
1612
|
return {
|
|
1625
1613
|
Arn: __expectString(output.Arn),
|
|
1626
1614
|
CreationTime: output.CreationTime != null
|
|
@@ -1634,259 +1622,247 @@ const deserializeAws_json1_0Database = (output, context) => {
|
|
|
1634
1622
|
TableCount: __expectLong(output.TableCount),
|
|
1635
1623
|
};
|
|
1636
1624
|
};
|
|
1637
|
-
const
|
|
1625
|
+
const de_DatabaseList = (output, context) => {
|
|
1638
1626
|
const retVal = (output || [])
|
|
1639
1627
|
.filter((e) => e != null)
|
|
1640
1628
|
.map((entry) => {
|
|
1641
1629
|
if (entry === null) {
|
|
1642
1630
|
return null;
|
|
1643
1631
|
}
|
|
1644
|
-
return
|
|
1632
|
+
return de_Database(entry, context);
|
|
1645
1633
|
});
|
|
1646
1634
|
return retVal;
|
|
1647
1635
|
};
|
|
1648
|
-
const
|
|
1636
|
+
const de_DataModel = (output, context) => {
|
|
1649
1637
|
return {
|
|
1650
|
-
DimensionMappings: output.DimensionMappings != null
|
|
1651
|
-
? deserializeAws_json1_0DimensionMappings(output.DimensionMappings, context)
|
|
1652
|
-
: undefined,
|
|
1638
|
+
DimensionMappings: output.DimensionMappings != null ? de_DimensionMappings(output.DimensionMappings, context) : undefined,
|
|
1653
1639
|
MeasureNameColumn: __expectString(output.MeasureNameColumn),
|
|
1654
1640
|
MixedMeasureMappings: output.MixedMeasureMappings != null
|
|
1655
|
-
?
|
|
1656
|
-
: undefined,
|
|
1657
|
-
MultiMeasureMappings: output.MultiMeasureMappings != null
|
|
1658
|
-
? deserializeAws_json1_0MultiMeasureMappings(output.MultiMeasureMappings, context)
|
|
1641
|
+
? de_MixedMeasureMappingList(output.MixedMeasureMappings, context)
|
|
1659
1642
|
: undefined,
|
|
1643
|
+
MultiMeasureMappings: output.MultiMeasureMappings != null ? de_MultiMeasureMappings(output.MultiMeasureMappings, context) : undefined,
|
|
1660
1644
|
TimeColumn: __expectString(output.TimeColumn),
|
|
1661
1645
|
TimeUnit: __expectString(output.TimeUnit),
|
|
1662
1646
|
};
|
|
1663
1647
|
};
|
|
1664
|
-
const
|
|
1648
|
+
const de_DataModelConfiguration = (output, context) => {
|
|
1665
1649
|
return {
|
|
1666
|
-
DataModel: output.DataModel != null ?
|
|
1650
|
+
DataModel: output.DataModel != null ? de_DataModel(output.DataModel, context) : undefined,
|
|
1667
1651
|
DataModelS3Configuration: output.DataModelS3Configuration != null
|
|
1668
|
-
?
|
|
1652
|
+
? de_DataModelS3Configuration(output.DataModelS3Configuration, context)
|
|
1669
1653
|
: undefined,
|
|
1670
1654
|
};
|
|
1671
1655
|
};
|
|
1672
|
-
const
|
|
1656
|
+
const de_DataModelS3Configuration = (output, context) => {
|
|
1673
1657
|
return {
|
|
1674
1658
|
BucketName: __expectString(output.BucketName),
|
|
1675
1659
|
ObjectKey: __expectString(output.ObjectKey),
|
|
1676
1660
|
};
|
|
1677
1661
|
};
|
|
1678
|
-
const
|
|
1662
|
+
const de_DataSourceConfiguration = (output, context) => {
|
|
1679
1663
|
return {
|
|
1680
|
-
CsvConfiguration: output.CsvConfiguration != null
|
|
1681
|
-
? deserializeAws_json1_0CsvConfiguration(output.CsvConfiguration, context)
|
|
1682
|
-
: undefined,
|
|
1664
|
+
CsvConfiguration: output.CsvConfiguration != null ? de_CsvConfiguration(output.CsvConfiguration, context) : undefined,
|
|
1683
1665
|
DataFormat: __expectString(output.DataFormat),
|
|
1684
1666
|
DataSourceS3Configuration: output.DataSourceS3Configuration != null
|
|
1685
|
-
?
|
|
1667
|
+
? de_DataSourceS3Configuration(output.DataSourceS3Configuration, context)
|
|
1686
1668
|
: undefined,
|
|
1687
1669
|
};
|
|
1688
1670
|
};
|
|
1689
|
-
const
|
|
1671
|
+
const de_DataSourceS3Configuration = (output, context) => {
|
|
1690
1672
|
return {
|
|
1691
1673
|
BucketName: __expectString(output.BucketName),
|
|
1692
1674
|
ObjectKeyPrefix: __expectString(output.ObjectKeyPrefix),
|
|
1693
1675
|
};
|
|
1694
1676
|
};
|
|
1695
|
-
const
|
|
1677
|
+
const de_DescribeBatchLoadTaskResponse = (output, context) => {
|
|
1696
1678
|
return {
|
|
1697
1679
|
BatchLoadTaskDescription: output.BatchLoadTaskDescription != null
|
|
1698
|
-
?
|
|
1680
|
+
? de_BatchLoadTaskDescription(output.BatchLoadTaskDescription, context)
|
|
1699
1681
|
: undefined,
|
|
1700
1682
|
};
|
|
1701
1683
|
};
|
|
1702
|
-
const
|
|
1684
|
+
const de_DescribeDatabaseResponse = (output, context) => {
|
|
1703
1685
|
return {
|
|
1704
|
-
Database: output.Database != null ?
|
|
1686
|
+
Database: output.Database != null ? de_Database(output.Database, context) : undefined,
|
|
1705
1687
|
};
|
|
1706
1688
|
};
|
|
1707
|
-
const
|
|
1689
|
+
const de_DescribeEndpointsResponse = (output, context) => {
|
|
1708
1690
|
return {
|
|
1709
|
-
Endpoints: output.Endpoints != null ?
|
|
1691
|
+
Endpoints: output.Endpoints != null ? de_Endpoints(output.Endpoints, context) : undefined,
|
|
1710
1692
|
};
|
|
1711
1693
|
};
|
|
1712
|
-
const
|
|
1694
|
+
const de_DescribeTableResponse = (output, context) => {
|
|
1713
1695
|
return {
|
|
1714
|
-
Table: output.Table != null ?
|
|
1696
|
+
Table: output.Table != null ? de_Table(output.Table, context) : undefined,
|
|
1715
1697
|
};
|
|
1716
1698
|
};
|
|
1717
|
-
const
|
|
1699
|
+
const de_DimensionMapping = (output, context) => {
|
|
1718
1700
|
return {
|
|
1719
1701
|
DestinationColumn: __expectString(output.DestinationColumn),
|
|
1720
1702
|
SourceColumn: __expectString(output.SourceColumn),
|
|
1721
1703
|
};
|
|
1722
1704
|
};
|
|
1723
|
-
const
|
|
1705
|
+
const de_DimensionMappings = (output, context) => {
|
|
1724
1706
|
const retVal = (output || [])
|
|
1725
1707
|
.filter((e) => e != null)
|
|
1726
1708
|
.map((entry) => {
|
|
1727
1709
|
if (entry === null) {
|
|
1728
1710
|
return null;
|
|
1729
1711
|
}
|
|
1730
|
-
return
|
|
1712
|
+
return de_DimensionMapping(entry, context);
|
|
1731
1713
|
});
|
|
1732
1714
|
return retVal;
|
|
1733
1715
|
};
|
|
1734
|
-
const
|
|
1716
|
+
const de_Endpoint = (output, context) => {
|
|
1735
1717
|
return {
|
|
1736
1718
|
Address: __expectString(output.Address),
|
|
1737
1719
|
CachePeriodInMinutes: __expectLong(output.CachePeriodInMinutes),
|
|
1738
1720
|
};
|
|
1739
1721
|
};
|
|
1740
|
-
const
|
|
1722
|
+
const de_Endpoints = (output, context) => {
|
|
1741
1723
|
const retVal = (output || [])
|
|
1742
1724
|
.filter((e) => e != null)
|
|
1743
1725
|
.map((entry) => {
|
|
1744
1726
|
if (entry === null) {
|
|
1745
1727
|
return null;
|
|
1746
1728
|
}
|
|
1747
|
-
return
|
|
1729
|
+
return de_Endpoint(entry, context);
|
|
1748
1730
|
});
|
|
1749
1731
|
return retVal;
|
|
1750
1732
|
};
|
|
1751
|
-
const
|
|
1733
|
+
const de_InternalServerException = (output, context) => {
|
|
1752
1734
|
return {
|
|
1753
1735
|
Message: __expectString(output.Message),
|
|
1754
1736
|
};
|
|
1755
1737
|
};
|
|
1756
|
-
const
|
|
1738
|
+
const de_InvalidEndpointException = (output, context) => {
|
|
1757
1739
|
return {
|
|
1758
1740
|
Message: __expectString(output.Message),
|
|
1759
1741
|
};
|
|
1760
1742
|
};
|
|
1761
|
-
const
|
|
1743
|
+
const de_ListBatchLoadTasksResponse = (output, context) => {
|
|
1762
1744
|
return {
|
|
1763
|
-
BatchLoadTasks: output.BatchLoadTasks != null
|
|
1764
|
-
? deserializeAws_json1_0BatchLoadTaskList(output.BatchLoadTasks, context)
|
|
1765
|
-
: undefined,
|
|
1745
|
+
BatchLoadTasks: output.BatchLoadTasks != null ? de_BatchLoadTaskList(output.BatchLoadTasks, context) : undefined,
|
|
1766
1746
|
NextToken: __expectString(output.NextToken),
|
|
1767
1747
|
};
|
|
1768
1748
|
};
|
|
1769
|
-
const
|
|
1749
|
+
const de_ListDatabasesResponse = (output, context) => {
|
|
1770
1750
|
return {
|
|
1771
|
-
Databases: output.Databases != null ?
|
|
1751
|
+
Databases: output.Databases != null ? de_DatabaseList(output.Databases, context) : undefined,
|
|
1772
1752
|
NextToken: __expectString(output.NextToken),
|
|
1773
1753
|
};
|
|
1774
1754
|
};
|
|
1775
|
-
const
|
|
1755
|
+
const de_ListTablesResponse = (output, context) => {
|
|
1776
1756
|
return {
|
|
1777
1757
|
NextToken: __expectString(output.NextToken),
|
|
1778
|
-
Tables: output.Tables != null ?
|
|
1758
|
+
Tables: output.Tables != null ? de_TableList(output.Tables, context) : undefined,
|
|
1779
1759
|
};
|
|
1780
1760
|
};
|
|
1781
|
-
const
|
|
1761
|
+
const de_ListTagsForResourceResponse = (output, context) => {
|
|
1782
1762
|
return {
|
|
1783
|
-
Tags: output.Tags != null ?
|
|
1763
|
+
Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
|
|
1784
1764
|
};
|
|
1785
1765
|
};
|
|
1786
|
-
const
|
|
1766
|
+
const de_MagneticStoreRejectedDataLocation = (output, context) => {
|
|
1787
1767
|
return {
|
|
1788
|
-
S3Configuration: output.S3Configuration != null
|
|
1789
|
-
? deserializeAws_json1_0S3Configuration(output.S3Configuration, context)
|
|
1790
|
-
: undefined,
|
|
1768
|
+
S3Configuration: output.S3Configuration != null ? de_S3Configuration(output.S3Configuration, context) : undefined,
|
|
1791
1769
|
};
|
|
1792
1770
|
};
|
|
1793
|
-
const
|
|
1771
|
+
const de_MagneticStoreWriteProperties = (output, context) => {
|
|
1794
1772
|
return {
|
|
1795
1773
|
EnableMagneticStoreWrites: __expectBoolean(output.EnableMagneticStoreWrites),
|
|
1796
1774
|
MagneticStoreRejectedDataLocation: output.MagneticStoreRejectedDataLocation != null
|
|
1797
|
-
?
|
|
1775
|
+
? de_MagneticStoreRejectedDataLocation(output.MagneticStoreRejectedDataLocation, context)
|
|
1798
1776
|
: undefined,
|
|
1799
1777
|
};
|
|
1800
1778
|
};
|
|
1801
|
-
const
|
|
1779
|
+
const de_MixedMeasureMapping = (output, context) => {
|
|
1802
1780
|
return {
|
|
1803
1781
|
MeasureName: __expectString(output.MeasureName),
|
|
1804
1782
|
MeasureValueType: __expectString(output.MeasureValueType),
|
|
1805
1783
|
MultiMeasureAttributeMappings: output.MultiMeasureAttributeMappings != null
|
|
1806
|
-
?
|
|
1784
|
+
? de_MultiMeasureAttributeMappingList(output.MultiMeasureAttributeMappings, context)
|
|
1807
1785
|
: undefined,
|
|
1808
1786
|
SourceColumn: __expectString(output.SourceColumn),
|
|
1809
1787
|
TargetMeasureName: __expectString(output.TargetMeasureName),
|
|
1810
1788
|
};
|
|
1811
1789
|
};
|
|
1812
|
-
const
|
|
1790
|
+
const de_MixedMeasureMappingList = (output, context) => {
|
|
1813
1791
|
const retVal = (output || [])
|
|
1814
1792
|
.filter((e) => e != null)
|
|
1815
1793
|
.map((entry) => {
|
|
1816
1794
|
if (entry === null) {
|
|
1817
1795
|
return null;
|
|
1818
1796
|
}
|
|
1819
|
-
return
|
|
1797
|
+
return de_MixedMeasureMapping(entry, context);
|
|
1820
1798
|
});
|
|
1821
1799
|
return retVal;
|
|
1822
1800
|
};
|
|
1823
|
-
const
|
|
1801
|
+
const de_MultiMeasureAttributeMapping = (output, context) => {
|
|
1824
1802
|
return {
|
|
1825
1803
|
MeasureValueType: __expectString(output.MeasureValueType),
|
|
1826
1804
|
SourceColumn: __expectString(output.SourceColumn),
|
|
1827
1805
|
TargetMultiMeasureAttributeName: __expectString(output.TargetMultiMeasureAttributeName),
|
|
1828
1806
|
};
|
|
1829
1807
|
};
|
|
1830
|
-
const
|
|
1808
|
+
const de_MultiMeasureAttributeMappingList = (output, context) => {
|
|
1831
1809
|
const retVal = (output || [])
|
|
1832
1810
|
.filter((e) => e != null)
|
|
1833
1811
|
.map((entry) => {
|
|
1834
1812
|
if (entry === null) {
|
|
1835
1813
|
return null;
|
|
1836
1814
|
}
|
|
1837
|
-
return
|
|
1815
|
+
return de_MultiMeasureAttributeMapping(entry, context);
|
|
1838
1816
|
});
|
|
1839
1817
|
return retVal;
|
|
1840
1818
|
};
|
|
1841
|
-
const
|
|
1819
|
+
const de_MultiMeasureMappings = (output, context) => {
|
|
1842
1820
|
return {
|
|
1843
1821
|
MultiMeasureAttributeMappings: output.MultiMeasureAttributeMappings != null
|
|
1844
|
-
?
|
|
1822
|
+
? de_MultiMeasureAttributeMappingList(output.MultiMeasureAttributeMappings, context)
|
|
1845
1823
|
: undefined,
|
|
1846
1824
|
TargetMultiMeasureName: __expectString(output.TargetMultiMeasureName),
|
|
1847
1825
|
};
|
|
1848
1826
|
};
|
|
1849
|
-
const
|
|
1827
|
+
const de_RecordsIngested = (output, context) => {
|
|
1850
1828
|
return {
|
|
1851
1829
|
MagneticStore: __expectInt32(output.MagneticStore),
|
|
1852
1830
|
MemoryStore: __expectInt32(output.MemoryStore),
|
|
1853
1831
|
Total: __expectInt32(output.Total),
|
|
1854
1832
|
};
|
|
1855
1833
|
};
|
|
1856
|
-
const
|
|
1834
|
+
const de_RejectedRecord = (output, context) => {
|
|
1857
1835
|
return {
|
|
1858
1836
|
ExistingVersion: __expectLong(output.ExistingVersion),
|
|
1859
1837
|
Reason: __expectString(output.Reason),
|
|
1860
1838
|
RecordIndex: __expectInt32(output.RecordIndex),
|
|
1861
1839
|
};
|
|
1862
1840
|
};
|
|
1863
|
-
const
|
|
1841
|
+
const de_RejectedRecords = (output, context) => {
|
|
1864
1842
|
const retVal = (output || [])
|
|
1865
1843
|
.filter((e) => e != null)
|
|
1866
1844
|
.map((entry) => {
|
|
1867
1845
|
if (entry === null) {
|
|
1868
1846
|
return null;
|
|
1869
1847
|
}
|
|
1870
|
-
return
|
|
1848
|
+
return de_RejectedRecord(entry, context);
|
|
1871
1849
|
});
|
|
1872
1850
|
return retVal;
|
|
1873
1851
|
};
|
|
1874
|
-
const
|
|
1852
|
+
const de_RejectedRecordsException = (output, context) => {
|
|
1875
1853
|
return {
|
|
1876
1854
|
Message: __expectString(output.Message),
|
|
1877
|
-
RejectedRecords: output.RejectedRecords != null
|
|
1878
|
-
? deserializeAws_json1_0RejectedRecords(output.RejectedRecords, context)
|
|
1879
|
-
: undefined,
|
|
1855
|
+
RejectedRecords: output.RejectedRecords != null ? de_RejectedRecords(output.RejectedRecords, context) : undefined,
|
|
1880
1856
|
};
|
|
1881
1857
|
};
|
|
1882
|
-
const
|
|
1858
|
+
const de_ReportConfiguration = (output, context) => {
|
|
1883
1859
|
return {
|
|
1884
1860
|
ReportS3Configuration: output.ReportS3Configuration != null
|
|
1885
|
-
?
|
|
1861
|
+
? de_ReportS3Configuration(output.ReportS3Configuration, context)
|
|
1886
1862
|
: undefined,
|
|
1887
1863
|
};
|
|
1888
1864
|
};
|
|
1889
|
-
const
|
|
1865
|
+
const de_ReportS3Configuration = (output, context) => {
|
|
1890
1866
|
return {
|
|
1891
1867
|
BucketName: __expectString(output.BucketName),
|
|
1892
1868
|
EncryptionOption: __expectString(output.EncryptionOption),
|
|
@@ -1894,21 +1870,21 @@ const deserializeAws_json1_0ReportS3Configuration = (output, context) => {
|
|
|
1894
1870
|
ObjectKeyPrefix: __expectString(output.ObjectKeyPrefix),
|
|
1895
1871
|
};
|
|
1896
1872
|
};
|
|
1897
|
-
const
|
|
1873
|
+
const de_ResourceNotFoundException = (output, context) => {
|
|
1898
1874
|
return {
|
|
1899
1875
|
Message: __expectString(output.Message),
|
|
1900
1876
|
};
|
|
1901
1877
|
};
|
|
1902
|
-
const
|
|
1878
|
+
const de_ResumeBatchLoadTaskResponse = (output, context) => {
|
|
1903
1879
|
return {};
|
|
1904
1880
|
};
|
|
1905
|
-
const
|
|
1881
|
+
const de_RetentionProperties = (output, context) => {
|
|
1906
1882
|
return {
|
|
1907
1883
|
MagneticStoreRetentionPeriodInDays: __expectLong(output.MagneticStoreRetentionPeriodInDays),
|
|
1908
1884
|
MemoryStoreRetentionPeriodInHours: __expectLong(output.MemoryStoreRetentionPeriodInHours),
|
|
1909
1885
|
};
|
|
1910
1886
|
};
|
|
1911
|
-
const
|
|
1887
|
+
const de_S3Configuration = (output, context) => {
|
|
1912
1888
|
return {
|
|
1913
1889
|
BucketName: __expectString(output.BucketName),
|
|
1914
1890
|
EncryptionOption: __expectString(output.EncryptionOption),
|
|
@@ -1916,12 +1892,12 @@ const deserializeAws_json1_0S3Configuration = (output, context) => {
|
|
|
1916
1892
|
ObjectKeyPrefix: __expectString(output.ObjectKeyPrefix),
|
|
1917
1893
|
};
|
|
1918
1894
|
};
|
|
1919
|
-
const
|
|
1895
|
+
const de_ServiceQuotaExceededException = (output, context) => {
|
|
1920
1896
|
return {
|
|
1921
1897
|
Message: __expectString(output.Message),
|
|
1922
1898
|
};
|
|
1923
1899
|
};
|
|
1924
|
-
const
|
|
1900
|
+
const de_Table = (output, context) => {
|
|
1925
1901
|
return {
|
|
1926
1902
|
Arn: __expectString(output.Arn),
|
|
1927
1903
|
CreationTime: output.CreationTime != null
|
|
@@ -1932,74 +1908,70 @@ const deserializeAws_json1_0Table = (output, context) => {
|
|
|
1932
1908
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTime)))
|
|
1933
1909
|
: undefined,
|
|
1934
1910
|
MagneticStoreWriteProperties: output.MagneticStoreWriteProperties != null
|
|
1935
|
-
?
|
|
1936
|
-
: undefined,
|
|
1937
|
-
RetentionProperties: output.RetentionProperties != null
|
|
1938
|
-
? deserializeAws_json1_0RetentionProperties(output.RetentionProperties, context)
|
|
1911
|
+
? de_MagneticStoreWriteProperties(output.MagneticStoreWriteProperties, context)
|
|
1939
1912
|
: undefined,
|
|
1913
|
+
RetentionProperties: output.RetentionProperties != null ? de_RetentionProperties(output.RetentionProperties, context) : undefined,
|
|
1940
1914
|
TableName: __expectString(output.TableName),
|
|
1941
1915
|
TableStatus: __expectString(output.TableStatus),
|
|
1942
1916
|
};
|
|
1943
1917
|
};
|
|
1944
|
-
const
|
|
1918
|
+
const de_TableList = (output, context) => {
|
|
1945
1919
|
const retVal = (output || [])
|
|
1946
1920
|
.filter((e) => e != null)
|
|
1947
1921
|
.map((entry) => {
|
|
1948
1922
|
if (entry === null) {
|
|
1949
1923
|
return null;
|
|
1950
1924
|
}
|
|
1951
|
-
return
|
|
1925
|
+
return de_Table(entry, context);
|
|
1952
1926
|
});
|
|
1953
1927
|
return retVal;
|
|
1954
1928
|
};
|
|
1955
|
-
const
|
|
1929
|
+
const de_Tag = (output, context) => {
|
|
1956
1930
|
return {
|
|
1957
1931
|
Key: __expectString(output.Key),
|
|
1958
1932
|
Value: __expectString(output.Value),
|
|
1959
1933
|
};
|
|
1960
1934
|
};
|
|
1961
|
-
const
|
|
1935
|
+
const de_TagList = (output, context) => {
|
|
1962
1936
|
const retVal = (output || [])
|
|
1963
1937
|
.filter((e) => e != null)
|
|
1964
1938
|
.map((entry) => {
|
|
1965
1939
|
if (entry === null) {
|
|
1966
1940
|
return null;
|
|
1967
1941
|
}
|
|
1968
|
-
return
|
|
1942
|
+
return de_Tag(entry, context);
|
|
1969
1943
|
});
|
|
1970
1944
|
return retVal;
|
|
1971
1945
|
};
|
|
1972
|
-
const
|
|
1946
|
+
const de_TagResourceResponse = (output, context) => {
|
|
1973
1947
|
return {};
|
|
1974
1948
|
};
|
|
1975
|
-
const
|
|
1949
|
+
const de_ThrottlingException = (output, context) => {
|
|
1976
1950
|
return {
|
|
1977
1951
|
Message: __expectString(output.Message),
|
|
1978
1952
|
};
|
|
1979
1953
|
};
|
|
1980
|
-
const
|
|
1954
|
+
const de_UntagResourceResponse = (output, context) => {
|
|
1981
1955
|
return {};
|
|
1982
1956
|
};
|
|
1983
|
-
const
|
|
1957
|
+
const de_UpdateDatabaseResponse = (output, context) => {
|
|
1984
1958
|
return {
|
|
1985
|
-
Database: output.Database != null ?
|
|
1959
|
+
Database: output.Database != null ? de_Database(output.Database, context) : undefined,
|
|
1986
1960
|
};
|
|
1987
1961
|
};
|
|
1988
|
-
const
|
|
1962
|
+
const de_UpdateTableResponse = (output, context) => {
|
|
1989
1963
|
return {
|
|
1990
|
-
Table: output.Table != null ?
|
|
1964
|
+
Table: output.Table != null ? de_Table(output.Table, context) : undefined,
|
|
1991
1965
|
};
|
|
1992
1966
|
};
|
|
1993
|
-
const
|
|
1967
|
+
const de_ValidationException = (output, context) => {
|
|
1994
1968
|
return {
|
|
1995
1969
|
Message: __expectString(output.Message),
|
|
1996
1970
|
};
|
|
1997
1971
|
};
|
|
1998
|
-
const
|
|
1972
|
+
const de_WriteRecordsResponse = (output, context) => {
|
|
1999
1973
|
return {
|
|
2000
|
-
RecordsIngested: output.RecordsIngested != null
|
|
2001
|
-
? deserializeAws_json1_0RecordsIngested(output.RecordsIngested, context)
|
|
2002
|
-
: undefined,
|
|
1974
|
+
RecordsIngested: output.RecordsIngested != null ? de_RecordsIngested(output.RecordsIngested, context) : undefined,
|
|
2003
1975
|
};
|
|
2004
1976
|
};
|
|
2005
1977
|
const deserializeMetadata = (output) => ({
|