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