@aws-sdk/client-dataexchange 3.141.0 → 3.150.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +481 -1029
- package/dist-es/protocols/Aws_restJson1.js +578 -1024
- package/package.json +11 -6
|
@@ -10,16 +10,7 @@ const serializeAws_restJson1CancelJobCommand = async (input, context) => {
|
|
|
10
10
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
11
11
|
const headers = {};
|
|
12
12
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/jobs/{JobId}";
|
|
13
|
-
|
|
14
|
-
const labelValue = input.JobId;
|
|
15
|
-
if (labelValue.length <= 0) {
|
|
16
|
-
throw new Error("Empty value provided for input HTTP label: JobId.");
|
|
17
|
-
}
|
|
18
|
-
resolvedPath = resolvedPath.replace("{JobId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
19
|
-
}
|
|
20
|
-
else {
|
|
21
|
-
throw new Error("No value provided for input HTTP label: JobId.");
|
|
22
|
-
}
|
|
13
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "JobId", () => input.JobId, "{JobId}", false);
|
|
23
14
|
let body;
|
|
24
15
|
return new protocol_http_1.HttpRequest({
|
|
25
16
|
protocol,
|
|
@@ -106,16 +97,7 @@ const serializeAws_restJson1CreateRevisionCommand = async (input, context) => {
|
|
|
106
97
|
"content-type": "application/json",
|
|
107
98
|
};
|
|
108
99
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/data-sets/{DataSetId}/revisions";
|
|
109
|
-
|
|
110
|
-
const labelValue = input.DataSetId;
|
|
111
|
-
if (labelValue.length <= 0) {
|
|
112
|
-
throw new Error("Empty value provided for input HTTP label: DataSetId.");
|
|
113
|
-
}
|
|
114
|
-
resolvedPath = resolvedPath.replace("{DataSetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
115
|
-
}
|
|
116
|
-
else {
|
|
117
|
-
throw new Error("No value provided for input HTTP label: DataSetId.");
|
|
118
|
-
}
|
|
100
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DataSetId", () => input.DataSetId, "{DataSetId}", false);
|
|
119
101
|
let body;
|
|
120
102
|
body = JSON.stringify({
|
|
121
103
|
...(input.Comment != null && { Comment: input.Comment }),
|
|
@@ -137,36 +119,9 @@ const serializeAws_restJson1DeleteAssetCommand = async (input, context) => {
|
|
|
137
119
|
const headers = {};
|
|
138
120
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
139
121
|
"/v1/data-sets/{DataSetId}/revisions/{RevisionId}/assets/{AssetId}";
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
throw new Error("Empty value provided for input HTTP label: AssetId.");
|
|
144
|
-
}
|
|
145
|
-
resolvedPath = resolvedPath.replace("{AssetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
146
|
-
}
|
|
147
|
-
else {
|
|
148
|
-
throw new Error("No value provided for input HTTP label: AssetId.");
|
|
149
|
-
}
|
|
150
|
-
if (input.DataSetId !== undefined) {
|
|
151
|
-
const labelValue = input.DataSetId;
|
|
152
|
-
if (labelValue.length <= 0) {
|
|
153
|
-
throw new Error("Empty value provided for input HTTP label: DataSetId.");
|
|
154
|
-
}
|
|
155
|
-
resolvedPath = resolvedPath.replace("{DataSetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
156
|
-
}
|
|
157
|
-
else {
|
|
158
|
-
throw new Error("No value provided for input HTTP label: DataSetId.");
|
|
159
|
-
}
|
|
160
|
-
if (input.RevisionId !== undefined) {
|
|
161
|
-
const labelValue = input.RevisionId;
|
|
162
|
-
if (labelValue.length <= 0) {
|
|
163
|
-
throw new Error("Empty value provided for input HTTP label: RevisionId.");
|
|
164
|
-
}
|
|
165
|
-
resolvedPath = resolvedPath.replace("{RevisionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
166
|
-
}
|
|
167
|
-
else {
|
|
168
|
-
throw new Error("No value provided for input HTTP label: RevisionId.");
|
|
169
|
-
}
|
|
122
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AssetId", () => input.AssetId, "{AssetId}", false);
|
|
123
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DataSetId", () => input.DataSetId, "{DataSetId}", false);
|
|
124
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RevisionId", () => input.RevisionId, "{RevisionId}", false);
|
|
170
125
|
let body;
|
|
171
126
|
return new protocol_http_1.HttpRequest({
|
|
172
127
|
protocol,
|
|
@@ -183,16 +138,7 @@ const serializeAws_restJson1DeleteDataSetCommand = async (input, context) => {
|
|
|
183
138
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
184
139
|
const headers = {};
|
|
185
140
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/data-sets/{DataSetId}";
|
|
186
|
-
|
|
187
|
-
const labelValue = input.DataSetId;
|
|
188
|
-
if (labelValue.length <= 0) {
|
|
189
|
-
throw new Error("Empty value provided for input HTTP label: DataSetId.");
|
|
190
|
-
}
|
|
191
|
-
resolvedPath = resolvedPath.replace("{DataSetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
192
|
-
}
|
|
193
|
-
else {
|
|
194
|
-
throw new Error("No value provided for input HTTP label: DataSetId.");
|
|
195
|
-
}
|
|
141
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DataSetId", () => input.DataSetId, "{DataSetId}", false);
|
|
196
142
|
let body;
|
|
197
143
|
return new protocol_http_1.HttpRequest({
|
|
198
144
|
protocol,
|
|
@@ -209,16 +155,7 @@ const serializeAws_restJson1DeleteEventActionCommand = async (input, context) =>
|
|
|
209
155
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
210
156
|
const headers = {};
|
|
211
157
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/event-actions/{EventActionId}";
|
|
212
|
-
|
|
213
|
-
const labelValue = input.EventActionId;
|
|
214
|
-
if (labelValue.length <= 0) {
|
|
215
|
-
throw new Error("Empty value provided for input HTTP label: EventActionId.");
|
|
216
|
-
}
|
|
217
|
-
resolvedPath = resolvedPath.replace("{EventActionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
218
|
-
}
|
|
219
|
-
else {
|
|
220
|
-
throw new Error("No value provided for input HTTP label: EventActionId.");
|
|
221
|
-
}
|
|
158
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EventActionId", () => input.EventActionId, "{EventActionId}", false);
|
|
222
159
|
let body;
|
|
223
160
|
return new protocol_http_1.HttpRequest({
|
|
224
161
|
protocol,
|
|
@@ -236,26 +173,8 @@ const serializeAws_restJson1DeleteRevisionCommand = async (input, context) => {
|
|
|
236
173
|
const headers = {};
|
|
237
174
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
238
175
|
"/v1/data-sets/{DataSetId}/revisions/{RevisionId}";
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
if (labelValue.length <= 0) {
|
|
242
|
-
throw new Error("Empty value provided for input HTTP label: DataSetId.");
|
|
243
|
-
}
|
|
244
|
-
resolvedPath = resolvedPath.replace("{DataSetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
245
|
-
}
|
|
246
|
-
else {
|
|
247
|
-
throw new Error("No value provided for input HTTP label: DataSetId.");
|
|
248
|
-
}
|
|
249
|
-
if (input.RevisionId !== undefined) {
|
|
250
|
-
const labelValue = input.RevisionId;
|
|
251
|
-
if (labelValue.length <= 0) {
|
|
252
|
-
throw new Error("Empty value provided for input HTTP label: RevisionId.");
|
|
253
|
-
}
|
|
254
|
-
resolvedPath = resolvedPath.replace("{RevisionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
255
|
-
}
|
|
256
|
-
else {
|
|
257
|
-
throw new Error("No value provided for input HTTP label: RevisionId.");
|
|
258
|
-
}
|
|
176
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DataSetId", () => input.DataSetId, "{DataSetId}", false);
|
|
177
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RevisionId", () => input.RevisionId, "{RevisionId}", false);
|
|
259
178
|
let body;
|
|
260
179
|
return new protocol_http_1.HttpRequest({
|
|
261
180
|
protocol,
|
|
@@ -273,36 +192,9 @@ const serializeAws_restJson1GetAssetCommand = async (input, context) => {
|
|
|
273
192
|
const headers = {};
|
|
274
193
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
275
194
|
"/v1/data-sets/{DataSetId}/revisions/{RevisionId}/assets/{AssetId}";
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
throw new Error("Empty value provided for input HTTP label: AssetId.");
|
|
280
|
-
}
|
|
281
|
-
resolvedPath = resolvedPath.replace("{AssetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
282
|
-
}
|
|
283
|
-
else {
|
|
284
|
-
throw new Error("No value provided for input HTTP label: AssetId.");
|
|
285
|
-
}
|
|
286
|
-
if (input.DataSetId !== undefined) {
|
|
287
|
-
const labelValue = input.DataSetId;
|
|
288
|
-
if (labelValue.length <= 0) {
|
|
289
|
-
throw new Error("Empty value provided for input HTTP label: DataSetId.");
|
|
290
|
-
}
|
|
291
|
-
resolvedPath = resolvedPath.replace("{DataSetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
292
|
-
}
|
|
293
|
-
else {
|
|
294
|
-
throw new Error("No value provided for input HTTP label: DataSetId.");
|
|
295
|
-
}
|
|
296
|
-
if (input.RevisionId !== undefined) {
|
|
297
|
-
const labelValue = input.RevisionId;
|
|
298
|
-
if (labelValue.length <= 0) {
|
|
299
|
-
throw new Error("Empty value provided for input HTTP label: RevisionId.");
|
|
300
|
-
}
|
|
301
|
-
resolvedPath = resolvedPath.replace("{RevisionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
302
|
-
}
|
|
303
|
-
else {
|
|
304
|
-
throw new Error("No value provided for input HTTP label: RevisionId.");
|
|
305
|
-
}
|
|
195
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AssetId", () => input.AssetId, "{AssetId}", false);
|
|
196
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DataSetId", () => input.DataSetId, "{DataSetId}", false);
|
|
197
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RevisionId", () => input.RevisionId, "{RevisionId}", false);
|
|
306
198
|
let body;
|
|
307
199
|
return new protocol_http_1.HttpRequest({
|
|
308
200
|
protocol,
|
|
@@ -319,16 +211,7 @@ const serializeAws_restJson1GetDataSetCommand = async (input, context) => {
|
|
|
319
211
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
320
212
|
const headers = {};
|
|
321
213
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/data-sets/{DataSetId}";
|
|
322
|
-
|
|
323
|
-
const labelValue = input.DataSetId;
|
|
324
|
-
if (labelValue.length <= 0) {
|
|
325
|
-
throw new Error("Empty value provided for input HTTP label: DataSetId.");
|
|
326
|
-
}
|
|
327
|
-
resolvedPath = resolvedPath.replace("{DataSetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
328
|
-
}
|
|
329
|
-
else {
|
|
330
|
-
throw new Error("No value provided for input HTTP label: DataSetId.");
|
|
331
|
-
}
|
|
214
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DataSetId", () => input.DataSetId, "{DataSetId}", false);
|
|
332
215
|
let body;
|
|
333
216
|
return new protocol_http_1.HttpRequest({
|
|
334
217
|
protocol,
|
|
@@ -345,16 +228,7 @@ const serializeAws_restJson1GetEventActionCommand = async (input, context) => {
|
|
|
345
228
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
346
229
|
const headers = {};
|
|
347
230
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/event-actions/{EventActionId}";
|
|
348
|
-
|
|
349
|
-
const labelValue = input.EventActionId;
|
|
350
|
-
if (labelValue.length <= 0) {
|
|
351
|
-
throw new Error("Empty value provided for input HTTP label: EventActionId.");
|
|
352
|
-
}
|
|
353
|
-
resolvedPath = resolvedPath.replace("{EventActionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
354
|
-
}
|
|
355
|
-
else {
|
|
356
|
-
throw new Error("No value provided for input HTTP label: EventActionId.");
|
|
357
|
-
}
|
|
231
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EventActionId", () => input.EventActionId, "{EventActionId}", false);
|
|
358
232
|
let body;
|
|
359
233
|
return new protocol_http_1.HttpRequest({
|
|
360
234
|
protocol,
|
|
@@ -371,16 +245,7 @@ const serializeAws_restJson1GetJobCommand = async (input, context) => {
|
|
|
371
245
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
372
246
|
const headers = {};
|
|
373
247
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/jobs/{JobId}";
|
|
374
|
-
|
|
375
|
-
const labelValue = input.JobId;
|
|
376
|
-
if (labelValue.length <= 0) {
|
|
377
|
-
throw new Error("Empty value provided for input HTTP label: JobId.");
|
|
378
|
-
}
|
|
379
|
-
resolvedPath = resolvedPath.replace("{JobId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
380
|
-
}
|
|
381
|
-
else {
|
|
382
|
-
throw new Error("No value provided for input HTTP label: JobId.");
|
|
383
|
-
}
|
|
248
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "JobId", () => input.JobId, "{JobId}", false);
|
|
384
249
|
let body;
|
|
385
250
|
return new protocol_http_1.HttpRequest({
|
|
386
251
|
protocol,
|
|
@@ -398,26 +263,8 @@ const serializeAws_restJson1GetRevisionCommand = async (input, context) => {
|
|
|
398
263
|
const headers = {};
|
|
399
264
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
400
265
|
"/v1/data-sets/{DataSetId}/revisions/{RevisionId}";
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
if (labelValue.length <= 0) {
|
|
404
|
-
throw new Error("Empty value provided for input HTTP label: DataSetId.");
|
|
405
|
-
}
|
|
406
|
-
resolvedPath = resolvedPath.replace("{DataSetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
407
|
-
}
|
|
408
|
-
else {
|
|
409
|
-
throw new Error("No value provided for input HTTP label: DataSetId.");
|
|
410
|
-
}
|
|
411
|
-
if (input.RevisionId !== undefined) {
|
|
412
|
-
const labelValue = input.RevisionId;
|
|
413
|
-
if (labelValue.length <= 0) {
|
|
414
|
-
throw new Error("Empty value provided for input HTTP label: RevisionId.");
|
|
415
|
-
}
|
|
416
|
-
resolvedPath = resolvedPath.replace("{RevisionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
417
|
-
}
|
|
418
|
-
else {
|
|
419
|
-
throw new Error("No value provided for input HTTP label: RevisionId.");
|
|
420
|
-
}
|
|
266
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DataSetId", () => input.DataSetId, "{DataSetId}", false);
|
|
267
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RevisionId", () => input.RevisionId, "{RevisionId}", false);
|
|
421
268
|
let body;
|
|
422
269
|
return new protocol_http_1.HttpRequest({
|
|
423
270
|
protocol,
|
|
@@ -434,20 +281,11 @@ const serializeAws_restJson1ListDataSetRevisionsCommand = async (input, context)
|
|
|
434
281
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
435
282
|
const headers = {};
|
|
436
283
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/data-sets/{DataSetId}/revisions";
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
resolvedPath = resolvedPath.replace("{DataSetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
443
|
-
}
|
|
444
|
-
else {
|
|
445
|
-
throw new Error("No value provided for input HTTP label: DataSetId.");
|
|
446
|
-
}
|
|
447
|
-
const query = {
|
|
448
|
-
...(input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() }),
|
|
449
|
-
...(input.NextToken !== undefined && { nextToken: input.NextToken }),
|
|
450
|
-
};
|
|
284
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DataSetId", () => input.DataSetId, "{DataSetId}", false);
|
|
285
|
+
const query = map({
|
|
286
|
+
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
287
|
+
nextToken: [, input.NextToken],
|
|
288
|
+
});
|
|
451
289
|
let body;
|
|
452
290
|
return new protocol_http_1.HttpRequest({
|
|
453
291
|
protocol,
|
|
@@ -465,11 +303,11 @@ const serializeAws_restJson1ListDataSetsCommand = async (input, context) => {
|
|
|
465
303
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
466
304
|
const headers = {};
|
|
467
305
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/data-sets";
|
|
468
|
-
const query = {
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
};
|
|
306
|
+
const query = map({
|
|
307
|
+
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
308
|
+
nextToken: [, input.NextToken],
|
|
309
|
+
origin: [, input.Origin],
|
|
310
|
+
});
|
|
473
311
|
let body;
|
|
474
312
|
return new protocol_http_1.HttpRequest({
|
|
475
313
|
protocol,
|
|
@@ -487,11 +325,11 @@ const serializeAws_restJson1ListEventActionsCommand = async (input, context) =>
|
|
|
487
325
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
488
326
|
const headers = {};
|
|
489
327
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/event-actions";
|
|
490
|
-
const query = {
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
};
|
|
328
|
+
const query = map({
|
|
329
|
+
eventSourceId: [, input.EventSourceId],
|
|
330
|
+
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
331
|
+
nextToken: [, input.NextToken],
|
|
332
|
+
});
|
|
495
333
|
let body;
|
|
496
334
|
return new protocol_http_1.HttpRequest({
|
|
497
335
|
protocol,
|
|
@@ -509,12 +347,12 @@ const serializeAws_restJson1ListJobsCommand = async (input, context) => {
|
|
|
509
347
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
510
348
|
const headers = {};
|
|
511
349
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/jobs";
|
|
512
|
-
const query = {
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
};
|
|
350
|
+
const query = map({
|
|
351
|
+
dataSetId: [, input.DataSetId],
|
|
352
|
+
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
353
|
+
nextToken: [, input.NextToken],
|
|
354
|
+
revisionId: [, input.RevisionId],
|
|
355
|
+
});
|
|
518
356
|
let body;
|
|
519
357
|
return new protocol_http_1.HttpRequest({
|
|
520
358
|
protocol,
|
|
@@ -533,30 +371,12 @@ const serializeAws_restJson1ListRevisionAssetsCommand = async (input, context) =
|
|
|
533
371
|
const headers = {};
|
|
534
372
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
535
373
|
"/v1/data-sets/{DataSetId}/revisions/{RevisionId}/assets";
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
}
|
|
543
|
-
else {
|
|
544
|
-
throw new Error("No value provided for input HTTP label: DataSetId.");
|
|
545
|
-
}
|
|
546
|
-
if (input.RevisionId !== undefined) {
|
|
547
|
-
const labelValue = input.RevisionId;
|
|
548
|
-
if (labelValue.length <= 0) {
|
|
549
|
-
throw new Error("Empty value provided for input HTTP label: RevisionId.");
|
|
550
|
-
}
|
|
551
|
-
resolvedPath = resolvedPath.replace("{RevisionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
552
|
-
}
|
|
553
|
-
else {
|
|
554
|
-
throw new Error("No value provided for input HTTP label: RevisionId.");
|
|
555
|
-
}
|
|
556
|
-
const query = {
|
|
557
|
-
...(input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() }),
|
|
558
|
-
...(input.NextToken !== undefined && { nextToken: input.NextToken }),
|
|
559
|
-
};
|
|
374
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DataSetId", () => input.DataSetId, "{DataSetId}", false);
|
|
375
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RevisionId", () => input.RevisionId, "{RevisionId}", false);
|
|
376
|
+
const query = map({
|
|
377
|
+
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
378
|
+
nextToken: [, input.NextToken],
|
|
379
|
+
});
|
|
560
380
|
let body;
|
|
561
381
|
return new protocol_http_1.HttpRequest({
|
|
562
382
|
protocol,
|
|
@@ -574,16 +394,7 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
574
394
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
575
395
|
const headers = {};
|
|
576
396
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
577
|
-
|
|
578
|
-
const labelValue = input.ResourceArn;
|
|
579
|
-
if (labelValue.length <= 0) {
|
|
580
|
-
throw new Error("Empty value provided for input HTTP label: ResourceArn.");
|
|
581
|
-
}
|
|
582
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
583
|
-
}
|
|
584
|
-
else {
|
|
585
|
-
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
586
|
-
}
|
|
397
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
587
398
|
let body;
|
|
588
399
|
return new protocol_http_1.HttpRequest({
|
|
589
400
|
protocol,
|
|
@@ -603,26 +414,8 @@ const serializeAws_restJson1RevokeRevisionCommand = async (input, context) => {
|
|
|
603
414
|
};
|
|
604
415
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
605
416
|
"/v1/data-sets/{DataSetId}/revisions/{RevisionId}/revoke";
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
if (labelValue.length <= 0) {
|
|
609
|
-
throw new Error("Empty value provided for input HTTP label: DataSetId.");
|
|
610
|
-
}
|
|
611
|
-
resolvedPath = resolvedPath.replace("{DataSetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
612
|
-
}
|
|
613
|
-
else {
|
|
614
|
-
throw new Error("No value provided for input HTTP label: DataSetId.");
|
|
615
|
-
}
|
|
616
|
-
if (input.RevisionId !== undefined) {
|
|
617
|
-
const labelValue = input.RevisionId;
|
|
618
|
-
if (labelValue.length <= 0) {
|
|
619
|
-
throw new Error("Empty value provided for input HTTP label: RevisionId.");
|
|
620
|
-
}
|
|
621
|
-
resolvedPath = resolvedPath.replace("{RevisionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
622
|
-
}
|
|
623
|
-
else {
|
|
624
|
-
throw new Error("No value provided for input HTTP label: RevisionId.");
|
|
625
|
-
}
|
|
417
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DataSetId", () => input.DataSetId, "{DataSetId}", false);
|
|
418
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RevisionId", () => input.RevisionId, "{RevisionId}", false);
|
|
626
419
|
let body;
|
|
627
420
|
body = JSON.stringify({
|
|
628
421
|
...(input.RevocationComment != null && { RevocationComment: input.RevocationComment }),
|
|
@@ -640,23 +433,23 @@ const serializeAws_restJson1RevokeRevisionCommand = async (input, context) => {
|
|
|
640
433
|
exports.serializeAws_restJson1RevokeRevisionCommand = serializeAws_restJson1RevokeRevisionCommand;
|
|
641
434
|
const serializeAws_restJson1SendApiAssetCommand = async (input, context) => {
|
|
642
435
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
643
|
-
const headers = {
|
|
436
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
644
437
|
"content-type": "text/plain",
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
438
|
+
"x-amzn-dataexchange-asset-id": input.AssetId,
|
|
439
|
+
"x-amzn-dataexchange-data-set-id": input.DataSetId,
|
|
440
|
+
"x-amzn-dataexchange-http-method": input.Method,
|
|
441
|
+
"x-amzn-dataexchange-path": input.Path,
|
|
442
|
+
"x-amzn-dataexchange-revision-id": input.RevisionId,
|
|
650
443
|
...(input.RequestHeaders !== undefined &&
|
|
651
444
|
Object.keys(input.RequestHeaders).reduce((acc, suffix) => ({
|
|
652
445
|
...acc,
|
|
653
446
|
[`x-amzn-dataexchange-header-${suffix.toLowerCase()}`]: input.RequestHeaders[suffix],
|
|
654
447
|
}), {})),
|
|
655
|
-
};
|
|
448
|
+
});
|
|
656
449
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1";
|
|
657
|
-
const query = {
|
|
658
|
-
...(
|
|
659
|
-
};
|
|
450
|
+
const query = map({
|
|
451
|
+
...(0, smithy_client_1.convertMap)(input.QueryStringParameters),
|
|
452
|
+
});
|
|
660
453
|
let body;
|
|
661
454
|
if (input.Body !== undefined) {
|
|
662
455
|
body = input.Body;
|
|
@@ -684,16 +477,7 @@ const serializeAws_restJson1StartJobCommand = async (input, context) => {
|
|
|
684
477
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
685
478
|
const headers = {};
|
|
686
479
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/jobs/{JobId}";
|
|
687
|
-
|
|
688
|
-
const labelValue = input.JobId;
|
|
689
|
-
if (labelValue.length <= 0) {
|
|
690
|
-
throw new Error("Empty value provided for input HTTP label: JobId.");
|
|
691
|
-
}
|
|
692
|
-
resolvedPath = resolvedPath.replace("{JobId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
693
|
-
}
|
|
694
|
-
else {
|
|
695
|
-
throw new Error("No value provided for input HTTP label: JobId.");
|
|
696
|
-
}
|
|
480
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "JobId", () => input.JobId, "{JobId}", false);
|
|
697
481
|
let body;
|
|
698
482
|
return new protocol_http_1.HttpRequest({
|
|
699
483
|
protocol,
|
|
@@ -712,16 +496,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
712
496
|
"content-type": "application/json",
|
|
713
497
|
};
|
|
714
498
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
715
|
-
|
|
716
|
-
const labelValue = input.ResourceArn;
|
|
717
|
-
if (labelValue.length <= 0) {
|
|
718
|
-
throw new Error("Empty value provided for input HTTP label: ResourceArn.");
|
|
719
|
-
}
|
|
720
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
721
|
-
}
|
|
722
|
-
else {
|
|
723
|
-
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
724
|
-
}
|
|
499
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
725
500
|
let body;
|
|
726
501
|
body = JSON.stringify({
|
|
727
502
|
...(input.Tags != null && { tags: serializeAws_restJson1MapOf__string(input.Tags, context) }),
|
|
@@ -741,19 +516,10 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
741
516
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
742
517
|
const headers = {};
|
|
743
518
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
}
|
|
749
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
750
|
-
}
|
|
751
|
-
else {
|
|
752
|
-
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
753
|
-
}
|
|
754
|
-
const query = {
|
|
755
|
-
...(input.TagKeys !== undefined && { tagKeys: (input.TagKeys || []).map((_entry) => _entry) }),
|
|
756
|
-
};
|
|
519
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
520
|
+
const query = map({
|
|
521
|
+
tagKeys: [() => input.TagKeys !== void 0, () => (input.TagKeys || []).map((_entry) => _entry)],
|
|
522
|
+
});
|
|
757
523
|
let body;
|
|
758
524
|
return new protocol_http_1.HttpRequest({
|
|
759
525
|
protocol,
|
|
@@ -774,36 +540,9 @@ const serializeAws_restJson1UpdateAssetCommand = async (input, context) => {
|
|
|
774
540
|
};
|
|
775
541
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
776
542
|
"/v1/data-sets/{DataSetId}/revisions/{RevisionId}/assets/{AssetId}";
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
throw new Error("Empty value provided for input HTTP label: AssetId.");
|
|
781
|
-
}
|
|
782
|
-
resolvedPath = resolvedPath.replace("{AssetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
783
|
-
}
|
|
784
|
-
else {
|
|
785
|
-
throw new Error("No value provided for input HTTP label: AssetId.");
|
|
786
|
-
}
|
|
787
|
-
if (input.DataSetId !== undefined) {
|
|
788
|
-
const labelValue = input.DataSetId;
|
|
789
|
-
if (labelValue.length <= 0) {
|
|
790
|
-
throw new Error("Empty value provided for input HTTP label: DataSetId.");
|
|
791
|
-
}
|
|
792
|
-
resolvedPath = resolvedPath.replace("{DataSetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
793
|
-
}
|
|
794
|
-
else {
|
|
795
|
-
throw new Error("No value provided for input HTTP label: DataSetId.");
|
|
796
|
-
}
|
|
797
|
-
if (input.RevisionId !== undefined) {
|
|
798
|
-
const labelValue = input.RevisionId;
|
|
799
|
-
if (labelValue.length <= 0) {
|
|
800
|
-
throw new Error("Empty value provided for input HTTP label: RevisionId.");
|
|
801
|
-
}
|
|
802
|
-
resolvedPath = resolvedPath.replace("{RevisionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
803
|
-
}
|
|
804
|
-
else {
|
|
805
|
-
throw new Error("No value provided for input HTTP label: RevisionId.");
|
|
806
|
-
}
|
|
543
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AssetId", () => input.AssetId, "{AssetId}", false);
|
|
544
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DataSetId", () => input.DataSetId, "{DataSetId}", false);
|
|
545
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RevisionId", () => input.RevisionId, "{RevisionId}", false);
|
|
807
546
|
let body;
|
|
808
547
|
body = JSON.stringify({
|
|
809
548
|
...(input.Name != null && { Name: input.Name }),
|
|
@@ -825,16 +564,7 @@ const serializeAws_restJson1UpdateDataSetCommand = async (input, context) => {
|
|
|
825
564
|
"content-type": "application/json",
|
|
826
565
|
};
|
|
827
566
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/data-sets/{DataSetId}";
|
|
828
|
-
|
|
829
|
-
const labelValue = input.DataSetId;
|
|
830
|
-
if (labelValue.length <= 0) {
|
|
831
|
-
throw new Error("Empty value provided for input HTTP label: DataSetId.");
|
|
832
|
-
}
|
|
833
|
-
resolvedPath = resolvedPath.replace("{DataSetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
834
|
-
}
|
|
835
|
-
else {
|
|
836
|
-
throw new Error("No value provided for input HTTP label: DataSetId.");
|
|
837
|
-
}
|
|
567
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DataSetId", () => input.DataSetId, "{DataSetId}", false);
|
|
838
568
|
let body;
|
|
839
569
|
body = JSON.stringify({
|
|
840
570
|
...(input.Description != null && { Description: input.Description }),
|
|
@@ -857,16 +587,7 @@ const serializeAws_restJson1UpdateEventActionCommand = async (input, context) =>
|
|
|
857
587
|
"content-type": "application/json",
|
|
858
588
|
};
|
|
859
589
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/event-actions/{EventActionId}";
|
|
860
|
-
|
|
861
|
-
const labelValue = input.EventActionId;
|
|
862
|
-
if (labelValue.length <= 0) {
|
|
863
|
-
throw new Error("Empty value provided for input HTTP label: EventActionId.");
|
|
864
|
-
}
|
|
865
|
-
resolvedPath = resolvedPath.replace("{EventActionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
866
|
-
}
|
|
867
|
-
else {
|
|
868
|
-
throw new Error("No value provided for input HTTP label: EventActionId.");
|
|
869
|
-
}
|
|
590
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EventActionId", () => input.EventActionId, "{EventActionId}", false);
|
|
870
591
|
let body;
|
|
871
592
|
body = JSON.stringify({
|
|
872
593
|
...(input.Action != null && { Action: serializeAws_restJson1Action(input.Action, context) }),
|
|
@@ -889,26 +610,8 @@ const serializeAws_restJson1UpdateRevisionCommand = async (input, context) => {
|
|
|
889
610
|
};
|
|
890
611
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
891
612
|
"/v1/data-sets/{DataSetId}/revisions/{RevisionId}";
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
if (labelValue.length <= 0) {
|
|
895
|
-
throw new Error("Empty value provided for input HTTP label: DataSetId.");
|
|
896
|
-
}
|
|
897
|
-
resolvedPath = resolvedPath.replace("{DataSetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
898
|
-
}
|
|
899
|
-
else {
|
|
900
|
-
throw new Error("No value provided for input HTTP label: DataSetId.");
|
|
901
|
-
}
|
|
902
|
-
if (input.RevisionId !== undefined) {
|
|
903
|
-
const labelValue = input.RevisionId;
|
|
904
|
-
if (labelValue.length <= 0) {
|
|
905
|
-
throw new Error("Empty value provided for input HTTP label: RevisionId.");
|
|
906
|
-
}
|
|
907
|
-
resolvedPath = resolvedPath.replace("{RevisionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
908
|
-
}
|
|
909
|
-
else {
|
|
910
|
-
throw new Error("No value provided for input HTTP label: RevisionId.");
|
|
911
|
-
}
|
|
613
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DataSetId", () => input.DataSetId, "{DataSetId}", false);
|
|
614
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RevisionId", () => input.RevisionId, "{RevisionId}", false);
|
|
912
615
|
let body;
|
|
913
616
|
body = JSON.stringify({
|
|
914
617
|
...(input.Comment != null && { Comment: input.Comment }),
|
|
@@ -929,11 +632,11 @@ const deserializeAws_restJson1CancelJobCommand = async (output, context) => {
|
|
|
929
632
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
930
633
|
return deserializeAws_restJson1CancelJobCommandError(output, context);
|
|
931
634
|
}
|
|
932
|
-
const contents = {
|
|
635
|
+
const contents = map({
|
|
933
636
|
$metadata: deserializeMetadata(output),
|
|
934
|
-
};
|
|
637
|
+
});
|
|
935
638
|
await collectBody(output.body, context);
|
|
936
|
-
return
|
|
639
|
+
return contents;
|
|
937
640
|
};
|
|
938
641
|
exports.deserializeAws_restJson1CancelJobCommand = deserializeAws_restJson1CancelJobCommand;
|
|
939
642
|
const deserializeAws_restJson1CancelJobCommandError = async (output, context) => {
|
|
@@ -941,7 +644,6 @@ const deserializeAws_restJson1CancelJobCommandError = async (output, context) =>
|
|
|
941
644
|
...output,
|
|
942
645
|
body: await parseBody(output.body, context),
|
|
943
646
|
};
|
|
944
|
-
let response;
|
|
945
647
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
946
648
|
switch (errorCode) {
|
|
947
649
|
case "ConflictException":
|
|
@@ -961,69 +663,56 @@ const deserializeAws_restJson1CancelJobCommandError = async (output, context) =>
|
|
|
961
663
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
962
664
|
default:
|
|
963
665
|
const parsedBody = parsedOutput.body;
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
$metadata,
|
|
666
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
667
|
+
output,
|
|
668
|
+
parsedBody,
|
|
669
|
+
exceptionCtor: DataExchangeServiceException_1.DataExchangeServiceException,
|
|
670
|
+
errorCode,
|
|
970
671
|
});
|
|
971
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
972
672
|
}
|
|
973
673
|
};
|
|
974
674
|
const deserializeAws_restJson1CreateDataSetCommand = async (output, context) => {
|
|
975
675
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
976
676
|
return deserializeAws_restJson1CreateDataSetCommandError(output, context);
|
|
977
677
|
}
|
|
978
|
-
const contents = {
|
|
678
|
+
const contents = map({
|
|
979
679
|
$metadata: deserializeMetadata(output),
|
|
980
|
-
|
|
981
|
-
AssetType: undefined,
|
|
982
|
-
CreatedAt: undefined,
|
|
983
|
-
Description: undefined,
|
|
984
|
-
Id: undefined,
|
|
985
|
-
Name: undefined,
|
|
986
|
-
Origin: undefined,
|
|
987
|
-
OriginDetails: undefined,
|
|
988
|
-
SourceId: undefined,
|
|
989
|
-
Tags: undefined,
|
|
990
|
-
UpdatedAt: undefined,
|
|
991
|
-
};
|
|
680
|
+
});
|
|
992
681
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
993
|
-
if (data.Arn
|
|
682
|
+
if (data.Arn != null) {
|
|
994
683
|
contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
|
|
995
684
|
}
|
|
996
|
-
if (data.AssetType
|
|
685
|
+
if (data.AssetType != null) {
|
|
997
686
|
contents.AssetType = (0, smithy_client_1.expectString)(data.AssetType);
|
|
998
687
|
}
|
|
999
|
-
if (data.CreatedAt
|
|
688
|
+
if (data.CreatedAt != null) {
|
|
1000
689
|
contents.CreatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.CreatedAt));
|
|
1001
690
|
}
|
|
1002
|
-
if (data.Description
|
|
691
|
+
if (data.Description != null) {
|
|
1003
692
|
contents.Description = (0, smithy_client_1.expectString)(data.Description);
|
|
1004
693
|
}
|
|
1005
|
-
if (data.Id
|
|
694
|
+
if (data.Id != null) {
|
|
1006
695
|
contents.Id = (0, smithy_client_1.expectString)(data.Id);
|
|
1007
696
|
}
|
|
1008
|
-
if (data.Name
|
|
697
|
+
if (data.Name != null) {
|
|
1009
698
|
contents.Name = (0, smithy_client_1.expectString)(data.Name);
|
|
1010
699
|
}
|
|
1011
|
-
if (data.Origin
|
|
700
|
+
if (data.Origin != null) {
|
|
1012
701
|
contents.Origin = (0, smithy_client_1.expectString)(data.Origin);
|
|
1013
702
|
}
|
|
1014
|
-
if (data.OriginDetails
|
|
703
|
+
if (data.OriginDetails != null) {
|
|
1015
704
|
contents.OriginDetails = deserializeAws_restJson1OriginDetails(data.OriginDetails, context);
|
|
1016
705
|
}
|
|
1017
|
-
if (data.SourceId
|
|
706
|
+
if (data.SourceId != null) {
|
|
1018
707
|
contents.SourceId = (0, smithy_client_1.expectString)(data.SourceId);
|
|
1019
708
|
}
|
|
1020
|
-
if (data.Tags
|
|
709
|
+
if (data.Tags != null) {
|
|
1021
710
|
contents.Tags = deserializeAws_restJson1MapOf__string(data.Tags, context);
|
|
1022
711
|
}
|
|
1023
|
-
if (data.UpdatedAt
|
|
712
|
+
if (data.UpdatedAt != null) {
|
|
1024
713
|
contents.UpdatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.UpdatedAt));
|
|
1025
714
|
}
|
|
1026
|
-
return
|
|
715
|
+
return contents;
|
|
1027
716
|
};
|
|
1028
717
|
exports.deserializeAws_restJson1CreateDataSetCommand = deserializeAws_restJson1CreateDataSetCommand;
|
|
1029
718
|
const deserializeAws_restJson1CreateDataSetCommandError = async (output, context) => {
|
|
@@ -1031,7 +720,6 @@ const deserializeAws_restJson1CreateDataSetCommandError = async (output, context
|
|
|
1031
720
|
...output,
|
|
1032
721
|
body: await parseBody(output.body, context),
|
|
1033
722
|
};
|
|
1034
|
-
let response;
|
|
1035
723
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1036
724
|
switch (errorCode) {
|
|
1037
725
|
case "AccessDeniedException":
|
|
@@ -1051,49 +739,41 @@ const deserializeAws_restJson1CreateDataSetCommandError = async (output, context
|
|
|
1051
739
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1052
740
|
default:
|
|
1053
741
|
const parsedBody = parsedOutput.body;
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
$metadata,
|
|
742
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
743
|
+
output,
|
|
744
|
+
parsedBody,
|
|
745
|
+
exceptionCtor: DataExchangeServiceException_1.DataExchangeServiceException,
|
|
746
|
+
errorCode,
|
|
1060
747
|
});
|
|
1061
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1062
748
|
}
|
|
1063
749
|
};
|
|
1064
750
|
const deserializeAws_restJson1CreateEventActionCommand = async (output, context) => {
|
|
1065
751
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1066
752
|
return deserializeAws_restJson1CreateEventActionCommandError(output, context);
|
|
1067
753
|
}
|
|
1068
|
-
const contents = {
|
|
754
|
+
const contents = map({
|
|
1069
755
|
$metadata: deserializeMetadata(output),
|
|
1070
|
-
|
|
1071
|
-
Arn: undefined,
|
|
1072
|
-
CreatedAt: undefined,
|
|
1073
|
-
Event: undefined,
|
|
1074
|
-
Id: undefined,
|
|
1075
|
-
UpdatedAt: undefined,
|
|
1076
|
-
};
|
|
756
|
+
});
|
|
1077
757
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1078
|
-
if (data.Action
|
|
758
|
+
if (data.Action != null) {
|
|
1079
759
|
contents.Action = deserializeAws_restJson1Action(data.Action, context);
|
|
1080
760
|
}
|
|
1081
|
-
if (data.Arn
|
|
761
|
+
if (data.Arn != null) {
|
|
1082
762
|
contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
|
|
1083
763
|
}
|
|
1084
|
-
if (data.CreatedAt
|
|
764
|
+
if (data.CreatedAt != null) {
|
|
1085
765
|
contents.CreatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.CreatedAt));
|
|
1086
766
|
}
|
|
1087
|
-
if (data.Event
|
|
767
|
+
if (data.Event != null) {
|
|
1088
768
|
contents.Event = deserializeAws_restJson1Event(data.Event, context);
|
|
1089
769
|
}
|
|
1090
|
-
if (data.Id
|
|
770
|
+
if (data.Id != null) {
|
|
1091
771
|
contents.Id = (0, smithy_client_1.expectString)(data.Id);
|
|
1092
772
|
}
|
|
1093
|
-
if (data.UpdatedAt
|
|
773
|
+
if (data.UpdatedAt != null) {
|
|
1094
774
|
contents.UpdatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.UpdatedAt));
|
|
1095
775
|
}
|
|
1096
|
-
return
|
|
776
|
+
return contents;
|
|
1097
777
|
};
|
|
1098
778
|
exports.deserializeAws_restJson1CreateEventActionCommand = deserializeAws_restJson1CreateEventActionCommand;
|
|
1099
779
|
const deserializeAws_restJson1CreateEventActionCommandError = async (output, context) => {
|
|
@@ -1101,7 +781,6 @@ const deserializeAws_restJson1CreateEventActionCommandError = async (output, con
|
|
|
1101
781
|
...output,
|
|
1102
782
|
body: await parseBody(output.body, context),
|
|
1103
783
|
};
|
|
1104
|
-
let response;
|
|
1105
784
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1106
785
|
switch (errorCode) {
|
|
1107
786
|
case "AccessDeniedException":
|
|
@@ -1121,57 +800,47 @@ const deserializeAws_restJson1CreateEventActionCommandError = async (output, con
|
|
|
1121
800
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1122
801
|
default:
|
|
1123
802
|
const parsedBody = parsedOutput.body;
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
$metadata,
|
|
803
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
804
|
+
output,
|
|
805
|
+
parsedBody,
|
|
806
|
+
exceptionCtor: DataExchangeServiceException_1.DataExchangeServiceException,
|
|
807
|
+
errorCode,
|
|
1130
808
|
});
|
|
1131
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1132
809
|
}
|
|
1133
810
|
};
|
|
1134
811
|
const deserializeAws_restJson1CreateJobCommand = async (output, context) => {
|
|
1135
812
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1136
813
|
return deserializeAws_restJson1CreateJobCommandError(output, context);
|
|
1137
814
|
}
|
|
1138
|
-
const contents = {
|
|
815
|
+
const contents = map({
|
|
1139
816
|
$metadata: deserializeMetadata(output),
|
|
1140
|
-
|
|
1141
|
-
CreatedAt: undefined,
|
|
1142
|
-
Details: undefined,
|
|
1143
|
-
Errors: undefined,
|
|
1144
|
-
Id: undefined,
|
|
1145
|
-
State: undefined,
|
|
1146
|
-
Type: undefined,
|
|
1147
|
-
UpdatedAt: undefined,
|
|
1148
|
-
};
|
|
817
|
+
});
|
|
1149
818
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1150
|
-
if (data.Arn
|
|
819
|
+
if (data.Arn != null) {
|
|
1151
820
|
contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
|
|
1152
821
|
}
|
|
1153
|
-
if (data.CreatedAt
|
|
822
|
+
if (data.CreatedAt != null) {
|
|
1154
823
|
contents.CreatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.CreatedAt));
|
|
1155
824
|
}
|
|
1156
|
-
if (data.Details
|
|
825
|
+
if (data.Details != null) {
|
|
1157
826
|
contents.Details = deserializeAws_restJson1ResponseDetails(data.Details, context);
|
|
1158
827
|
}
|
|
1159
|
-
if (data.Errors
|
|
828
|
+
if (data.Errors != null) {
|
|
1160
829
|
contents.Errors = deserializeAws_restJson1ListOfJobError(data.Errors, context);
|
|
1161
830
|
}
|
|
1162
|
-
if (data.Id
|
|
831
|
+
if (data.Id != null) {
|
|
1163
832
|
contents.Id = (0, smithy_client_1.expectString)(data.Id);
|
|
1164
833
|
}
|
|
1165
|
-
if (data.State
|
|
834
|
+
if (data.State != null) {
|
|
1166
835
|
contents.State = (0, smithy_client_1.expectString)(data.State);
|
|
1167
836
|
}
|
|
1168
|
-
if (data.Type
|
|
837
|
+
if (data.Type != null) {
|
|
1169
838
|
contents.Type = (0, smithy_client_1.expectString)(data.Type);
|
|
1170
839
|
}
|
|
1171
|
-
if (data.UpdatedAt
|
|
840
|
+
if (data.UpdatedAt != null) {
|
|
1172
841
|
contents.UpdatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.UpdatedAt));
|
|
1173
842
|
}
|
|
1174
|
-
return
|
|
843
|
+
return contents;
|
|
1175
844
|
};
|
|
1176
845
|
exports.deserializeAws_restJson1CreateJobCommand = deserializeAws_restJson1CreateJobCommand;
|
|
1177
846
|
const deserializeAws_restJson1CreateJobCommandError = async (output, context) => {
|
|
@@ -1179,7 +848,6 @@ const deserializeAws_restJson1CreateJobCommandError = async (output, context) =>
|
|
|
1179
848
|
...output,
|
|
1180
849
|
body: await parseBody(output.body, context),
|
|
1181
850
|
};
|
|
1182
|
-
let response;
|
|
1183
851
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1184
852
|
switch (errorCode) {
|
|
1185
853
|
case "AccessDeniedException":
|
|
@@ -1202,73 +870,59 @@ const deserializeAws_restJson1CreateJobCommandError = async (output, context) =>
|
|
|
1202
870
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1203
871
|
default:
|
|
1204
872
|
const parsedBody = parsedOutput.body;
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
$metadata,
|
|
873
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
874
|
+
output,
|
|
875
|
+
parsedBody,
|
|
876
|
+
exceptionCtor: DataExchangeServiceException_1.DataExchangeServiceException,
|
|
877
|
+
errorCode,
|
|
1211
878
|
});
|
|
1212
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1213
879
|
}
|
|
1214
880
|
};
|
|
1215
881
|
const deserializeAws_restJson1CreateRevisionCommand = async (output, context) => {
|
|
1216
882
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1217
883
|
return deserializeAws_restJson1CreateRevisionCommandError(output, context);
|
|
1218
884
|
}
|
|
1219
|
-
const contents = {
|
|
885
|
+
const contents = map({
|
|
1220
886
|
$metadata: deserializeMetadata(output),
|
|
1221
|
-
|
|
1222
|
-
Comment: undefined,
|
|
1223
|
-
CreatedAt: undefined,
|
|
1224
|
-
DataSetId: undefined,
|
|
1225
|
-
Finalized: undefined,
|
|
1226
|
-
Id: undefined,
|
|
1227
|
-
RevocationComment: undefined,
|
|
1228
|
-
Revoked: undefined,
|
|
1229
|
-
RevokedAt: undefined,
|
|
1230
|
-
SourceId: undefined,
|
|
1231
|
-
Tags: undefined,
|
|
1232
|
-
UpdatedAt: undefined,
|
|
1233
|
-
};
|
|
887
|
+
});
|
|
1234
888
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1235
|
-
if (data.Arn
|
|
889
|
+
if (data.Arn != null) {
|
|
1236
890
|
contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
|
|
1237
891
|
}
|
|
1238
|
-
if (data.Comment
|
|
892
|
+
if (data.Comment != null) {
|
|
1239
893
|
contents.Comment = (0, smithy_client_1.expectString)(data.Comment);
|
|
1240
894
|
}
|
|
1241
|
-
if (data.CreatedAt
|
|
895
|
+
if (data.CreatedAt != null) {
|
|
1242
896
|
contents.CreatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.CreatedAt));
|
|
1243
897
|
}
|
|
1244
|
-
if (data.DataSetId
|
|
898
|
+
if (data.DataSetId != null) {
|
|
1245
899
|
contents.DataSetId = (0, smithy_client_1.expectString)(data.DataSetId);
|
|
1246
900
|
}
|
|
1247
|
-
if (data.Finalized
|
|
901
|
+
if (data.Finalized != null) {
|
|
1248
902
|
contents.Finalized = (0, smithy_client_1.expectBoolean)(data.Finalized);
|
|
1249
903
|
}
|
|
1250
|
-
if (data.Id
|
|
904
|
+
if (data.Id != null) {
|
|
1251
905
|
contents.Id = (0, smithy_client_1.expectString)(data.Id);
|
|
1252
906
|
}
|
|
1253
|
-
if (data.RevocationComment
|
|
907
|
+
if (data.RevocationComment != null) {
|
|
1254
908
|
contents.RevocationComment = (0, smithy_client_1.expectString)(data.RevocationComment);
|
|
1255
909
|
}
|
|
1256
|
-
if (data.Revoked
|
|
910
|
+
if (data.Revoked != null) {
|
|
1257
911
|
contents.Revoked = (0, smithy_client_1.expectBoolean)(data.Revoked);
|
|
1258
912
|
}
|
|
1259
|
-
if (data.RevokedAt
|
|
913
|
+
if (data.RevokedAt != null) {
|
|
1260
914
|
contents.RevokedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.RevokedAt));
|
|
1261
915
|
}
|
|
1262
|
-
if (data.SourceId
|
|
916
|
+
if (data.SourceId != null) {
|
|
1263
917
|
contents.SourceId = (0, smithy_client_1.expectString)(data.SourceId);
|
|
1264
918
|
}
|
|
1265
|
-
if (data.Tags
|
|
919
|
+
if (data.Tags != null) {
|
|
1266
920
|
contents.Tags = deserializeAws_restJson1MapOf__string(data.Tags, context);
|
|
1267
921
|
}
|
|
1268
|
-
if (data.UpdatedAt
|
|
922
|
+
if (data.UpdatedAt != null) {
|
|
1269
923
|
contents.UpdatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.UpdatedAt));
|
|
1270
924
|
}
|
|
1271
|
-
return
|
|
925
|
+
return contents;
|
|
1272
926
|
};
|
|
1273
927
|
exports.deserializeAws_restJson1CreateRevisionCommand = deserializeAws_restJson1CreateRevisionCommand;
|
|
1274
928
|
const deserializeAws_restJson1CreateRevisionCommandError = async (output, context) => {
|
|
@@ -1276,7 +930,6 @@ const deserializeAws_restJson1CreateRevisionCommandError = async (output, contex
|
|
|
1276
930
|
...output,
|
|
1277
931
|
body: await parseBody(output.body, context),
|
|
1278
932
|
};
|
|
1279
|
-
let response;
|
|
1280
933
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1281
934
|
switch (errorCode) {
|
|
1282
935
|
case "AccessDeniedException":
|
|
@@ -1296,25 +949,23 @@ const deserializeAws_restJson1CreateRevisionCommandError = async (output, contex
|
|
|
1296
949
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1297
950
|
default:
|
|
1298
951
|
const parsedBody = parsedOutput.body;
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
$metadata,
|
|
952
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
953
|
+
output,
|
|
954
|
+
parsedBody,
|
|
955
|
+
exceptionCtor: DataExchangeServiceException_1.DataExchangeServiceException,
|
|
956
|
+
errorCode,
|
|
1305
957
|
});
|
|
1306
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1307
958
|
}
|
|
1308
959
|
};
|
|
1309
960
|
const deserializeAws_restJson1DeleteAssetCommand = async (output, context) => {
|
|
1310
961
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1311
962
|
return deserializeAws_restJson1DeleteAssetCommandError(output, context);
|
|
1312
963
|
}
|
|
1313
|
-
const contents = {
|
|
964
|
+
const contents = map({
|
|
1314
965
|
$metadata: deserializeMetadata(output),
|
|
1315
|
-
};
|
|
966
|
+
});
|
|
1316
967
|
await collectBody(output.body, context);
|
|
1317
|
-
return
|
|
968
|
+
return contents;
|
|
1318
969
|
};
|
|
1319
970
|
exports.deserializeAws_restJson1DeleteAssetCommand = deserializeAws_restJson1DeleteAssetCommand;
|
|
1320
971
|
const deserializeAws_restJson1DeleteAssetCommandError = async (output, context) => {
|
|
@@ -1322,7 +973,6 @@ const deserializeAws_restJson1DeleteAssetCommandError = async (output, context)
|
|
|
1322
973
|
...output,
|
|
1323
974
|
body: await parseBody(output.body, context),
|
|
1324
975
|
};
|
|
1325
|
-
let response;
|
|
1326
976
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1327
977
|
switch (errorCode) {
|
|
1328
978
|
case "AccessDeniedException":
|
|
@@ -1345,25 +995,23 @@ const deserializeAws_restJson1DeleteAssetCommandError = async (output, context)
|
|
|
1345
995
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1346
996
|
default:
|
|
1347
997
|
const parsedBody = parsedOutput.body;
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
$metadata,
|
|
998
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
999
|
+
output,
|
|
1000
|
+
parsedBody,
|
|
1001
|
+
exceptionCtor: DataExchangeServiceException_1.DataExchangeServiceException,
|
|
1002
|
+
errorCode,
|
|
1354
1003
|
});
|
|
1355
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1356
1004
|
}
|
|
1357
1005
|
};
|
|
1358
1006
|
const deserializeAws_restJson1DeleteDataSetCommand = async (output, context) => {
|
|
1359
1007
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1360
1008
|
return deserializeAws_restJson1DeleteDataSetCommandError(output, context);
|
|
1361
1009
|
}
|
|
1362
|
-
const contents = {
|
|
1010
|
+
const contents = map({
|
|
1363
1011
|
$metadata: deserializeMetadata(output),
|
|
1364
|
-
};
|
|
1012
|
+
});
|
|
1365
1013
|
await collectBody(output.body, context);
|
|
1366
|
-
return
|
|
1014
|
+
return contents;
|
|
1367
1015
|
};
|
|
1368
1016
|
exports.deserializeAws_restJson1DeleteDataSetCommand = deserializeAws_restJson1DeleteDataSetCommand;
|
|
1369
1017
|
const deserializeAws_restJson1DeleteDataSetCommandError = async (output, context) => {
|
|
@@ -1371,7 +1019,6 @@ const deserializeAws_restJson1DeleteDataSetCommandError = async (output, context
|
|
|
1371
1019
|
...output,
|
|
1372
1020
|
body: await parseBody(output.body, context),
|
|
1373
1021
|
};
|
|
1374
|
-
let response;
|
|
1375
1022
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1376
1023
|
switch (errorCode) {
|
|
1377
1024
|
case "AccessDeniedException":
|
|
@@ -1394,25 +1041,23 @@ const deserializeAws_restJson1DeleteDataSetCommandError = async (output, context
|
|
|
1394
1041
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1395
1042
|
default:
|
|
1396
1043
|
const parsedBody = parsedOutput.body;
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
$metadata,
|
|
1044
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1045
|
+
output,
|
|
1046
|
+
parsedBody,
|
|
1047
|
+
exceptionCtor: DataExchangeServiceException_1.DataExchangeServiceException,
|
|
1048
|
+
errorCode,
|
|
1403
1049
|
});
|
|
1404
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1405
1050
|
}
|
|
1406
1051
|
};
|
|
1407
1052
|
const deserializeAws_restJson1DeleteEventActionCommand = async (output, context) => {
|
|
1408
1053
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1409
1054
|
return deserializeAws_restJson1DeleteEventActionCommandError(output, context);
|
|
1410
1055
|
}
|
|
1411
|
-
const contents = {
|
|
1056
|
+
const contents = map({
|
|
1412
1057
|
$metadata: deserializeMetadata(output),
|
|
1413
|
-
};
|
|
1058
|
+
});
|
|
1414
1059
|
await collectBody(output.body, context);
|
|
1415
|
-
return
|
|
1060
|
+
return contents;
|
|
1416
1061
|
};
|
|
1417
1062
|
exports.deserializeAws_restJson1DeleteEventActionCommand = deserializeAws_restJson1DeleteEventActionCommand;
|
|
1418
1063
|
const deserializeAws_restJson1DeleteEventActionCommandError = async (output, context) => {
|
|
@@ -1420,7 +1065,6 @@ const deserializeAws_restJson1DeleteEventActionCommandError = async (output, con
|
|
|
1420
1065
|
...output,
|
|
1421
1066
|
body: await parseBody(output.body, context),
|
|
1422
1067
|
};
|
|
1423
|
-
let response;
|
|
1424
1068
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1425
1069
|
switch (errorCode) {
|
|
1426
1070
|
case "InternalServerException":
|
|
@@ -1437,25 +1081,23 @@ const deserializeAws_restJson1DeleteEventActionCommandError = async (output, con
|
|
|
1437
1081
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1438
1082
|
default:
|
|
1439
1083
|
const parsedBody = parsedOutput.body;
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
$metadata,
|
|
1084
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1085
|
+
output,
|
|
1086
|
+
parsedBody,
|
|
1087
|
+
exceptionCtor: DataExchangeServiceException_1.DataExchangeServiceException,
|
|
1088
|
+
errorCode,
|
|
1446
1089
|
});
|
|
1447
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1448
1090
|
}
|
|
1449
1091
|
};
|
|
1450
1092
|
const deserializeAws_restJson1DeleteRevisionCommand = async (output, context) => {
|
|
1451
1093
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1452
1094
|
return deserializeAws_restJson1DeleteRevisionCommandError(output, context);
|
|
1453
1095
|
}
|
|
1454
|
-
const contents = {
|
|
1096
|
+
const contents = map({
|
|
1455
1097
|
$metadata: deserializeMetadata(output),
|
|
1456
|
-
};
|
|
1098
|
+
});
|
|
1457
1099
|
await collectBody(output.body, context);
|
|
1458
|
-
return
|
|
1100
|
+
return contents;
|
|
1459
1101
|
};
|
|
1460
1102
|
exports.deserializeAws_restJson1DeleteRevisionCommand = deserializeAws_restJson1DeleteRevisionCommand;
|
|
1461
1103
|
const deserializeAws_restJson1DeleteRevisionCommandError = async (output, context) => {
|
|
@@ -1463,7 +1105,6 @@ const deserializeAws_restJson1DeleteRevisionCommandError = async (output, contex
|
|
|
1463
1105
|
...output,
|
|
1464
1106
|
body: await parseBody(output.body, context),
|
|
1465
1107
|
};
|
|
1466
|
-
let response;
|
|
1467
1108
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1468
1109
|
switch (errorCode) {
|
|
1469
1110
|
case "AccessDeniedException":
|
|
@@ -1486,65 +1127,53 @@ const deserializeAws_restJson1DeleteRevisionCommandError = async (output, contex
|
|
|
1486
1127
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1487
1128
|
default:
|
|
1488
1129
|
const parsedBody = parsedOutput.body;
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
$metadata,
|
|
1130
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1131
|
+
output,
|
|
1132
|
+
parsedBody,
|
|
1133
|
+
exceptionCtor: DataExchangeServiceException_1.DataExchangeServiceException,
|
|
1134
|
+
errorCode,
|
|
1495
1135
|
});
|
|
1496
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1497
1136
|
}
|
|
1498
1137
|
};
|
|
1499
1138
|
const deserializeAws_restJson1GetAssetCommand = async (output, context) => {
|
|
1500
1139
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1501
1140
|
return deserializeAws_restJson1GetAssetCommandError(output, context);
|
|
1502
1141
|
}
|
|
1503
|
-
const contents = {
|
|
1142
|
+
const contents = map({
|
|
1504
1143
|
$metadata: deserializeMetadata(output),
|
|
1505
|
-
|
|
1506
|
-
AssetDetails: undefined,
|
|
1507
|
-
AssetType: undefined,
|
|
1508
|
-
CreatedAt: undefined,
|
|
1509
|
-
DataSetId: undefined,
|
|
1510
|
-
Id: undefined,
|
|
1511
|
-
Name: undefined,
|
|
1512
|
-
RevisionId: undefined,
|
|
1513
|
-
SourceId: undefined,
|
|
1514
|
-
UpdatedAt: undefined,
|
|
1515
|
-
};
|
|
1144
|
+
});
|
|
1516
1145
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1517
|
-
if (data.Arn
|
|
1146
|
+
if (data.Arn != null) {
|
|
1518
1147
|
contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
|
|
1519
1148
|
}
|
|
1520
|
-
if (data.AssetDetails
|
|
1149
|
+
if (data.AssetDetails != null) {
|
|
1521
1150
|
contents.AssetDetails = deserializeAws_restJson1AssetDetails(data.AssetDetails, context);
|
|
1522
1151
|
}
|
|
1523
|
-
if (data.AssetType
|
|
1152
|
+
if (data.AssetType != null) {
|
|
1524
1153
|
contents.AssetType = (0, smithy_client_1.expectString)(data.AssetType);
|
|
1525
1154
|
}
|
|
1526
|
-
if (data.CreatedAt
|
|
1155
|
+
if (data.CreatedAt != null) {
|
|
1527
1156
|
contents.CreatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.CreatedAt));
|
|
1528
1157
|
}
|
|
1529
|
-
if (data.DataSetId
|
|
1158
|
+
if (data.DataSetId != null) {
|
|
1530
1159
|
contents.DataSetId = (0, smithy_client_1.expectString)(data.DataSetId);
|
|
1531
1160
|
}
|
|
1532
|
-
if (data.Id
|
|
1161
|
+
if (data.Id != null) {
|
|
1533
1162
|
contents.Id = (0, smithy_client_1.expectString)(data.Id);
|
|
1534
1163
|
}
|
|
1535
|
-
if (data.Name
|
|
1164
|
+
if (data.Name != null) {
|
|
1536
1165
|
contents.Name = (0, smithy_client_1.expectString)(data.Name);
|
|
1537
1166
|
}
|
|
1538
|
-
if (data.RevisionId
|
|
1167
|
+
if (data.RevisionId != null) {
|
|
1539
1168
|
contents.RevisionId = (0, smithy_client_1.expectString)(data.RevisionId);
|
|
1540
1169
|
}
|
|
1541
|
-
if (data.SourceId
|
|
1170
|
+
if (data.SourceId != null) {
|
|
1542
1171
|
contents.SourceId = (0, smithy_client_1.expectString)(data.SourceId);
|
|
1543
1172
|
}
|
|
1544
|
-
if (data.UpdatedAt
|
|
1173
|
+
if (data.UpdatedAt != null) {
|
|
1545
1174
|
contents.UpdatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.UpdatedAt));
|
|
1546
1175
|
}
|
|
1547
|
-
return
|
|
1176
|
+
return contents;
|
|
1548
1177
|
};
|
|
1549
1178
|
exports.deserializeAws_restJson1GetAssetCommand = deserializeAws_restJson1GetAssetCommand;
|
|
1550
1179
|
const deserializeAws_restJson1GetAssetCommandError = async (output, context) => {
|
|
@@ -1552,7 +1181,6 @@ const deserializeAws_restJson1GetAssetCommandError = async (output, context) =>
|
|
|
1552
1181
|
...output,
|
|
1553
1182
|
body: await parseBody(output.body, context),
|
|
1554
1183
|
};
|
|
1555
|
-
let response;
|
|
1556
1184
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1557
1185
|
switch (errorCode) {
|
|
1558
1186
|
case "InternalServerException":
|
|
@@ -1569,69 +1197,56 @@ const deserializeAws_restJson1GetAssetCommandError = async (output, context) =>
|
|
|
1569
1197
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1570
1198
|
default:
|
|
1571
1199
|
const parsedBody = parsedOutput.body;
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
$metadata,
|
|
1200
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1201
|
+
output,
|
|
1202
|
+
parsedBody,
|
|
1203
|
+
exceptionCtor: DataExchangeServiceException_1.DataExchangeServiceException,
|
|
1204
|
+
errorCode,
|
|
1578
1205
|
});
|
|
1579
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1580
1206
|
}
|
|
1581
1207
|
};
|
|
1582
1208
|
const deserializeAws_restJson1GetDataSetCommand = async (output, context) => {
|
|
1583
1209
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1584
1210
|
return deserializeAws_restJson1GetDataSetCommandError(output, context);
|
|
1585
1211
|
}
|
|
1586
|
-
const contents = {
|
|
1212
|
+
const contents = map({
|
|
1587
1213
|
$metadata: deserializeMetadata(output),
|
|
1588
|
-
|
|
1589
|
-
AssetType: undefined,
|
|
1590
|
-
CreatedAt: undefined,
|
|
1591
|
-
Description: undefined,
|
|
1592
|
-
Id: undefined,
|
|
1593
|
-
Name: undefined,
|
|
1594
|
-
Origin: undefined,
|
|
1595
|
-
OriginDetails: undefined,
|
|
1596
|
-
SourceId: undefined,
|
|
1597
|
-
Tags: undefined,
|
|
1598
|
-
UpdatedAt: undefined,
|
|
1599
|
-
};
|
|
1214
|
+
});
|
|
1600
1215
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1601
|
-
if (data.Arn
|
|
1216
|
+
if (data.Arn != null) {
|
|
1602
1217
|
contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
|
|
1603
1218
|
}
|
|
1604
|
-
if (data.AssetType
|
|
1219
|
+
if (data.AssetType != null) {
|
|
1605
1220
|
contents.AssetType = (0, smithy_client_1.expectString)(data.AssetType);
|
|
1606
1221
|
}
|
|
1607
|
-
if (data.CreatedAt
|
|
1222
|
+
if (data.CreatedAt != null) {
|
|
1608
1223
|
contents.CreatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.CreatedAt));
|
|
1609
1224
|
}
|
|
1610
|
-
if (data.Description
|
|
1225
|
+
if (data.Description != null) {
|
|
1611
1226
|
contents.Description = (0, smithy_client_1.expectString)(data.Description);
|
|
1612
1227
|
}
|
|
1613
|
-
if (data.Id
|
|
1228
|
+
if (data.Id != null) {
|
|
1614
1229
|
contents.Id = (0, smithy_client_1.expectString)(data.Id);
|
|
1615
1230
|
}
|
|
1616
|
-
if (data.Name
|
|
1231
|
+
if (data.Name != null) {
|
|
1617
1232
|
contents.Name = (0, smithy_client_1.expectString)(data.Name);
|
|
1618
1233
|
}
|
|
1619
|
-
if (data.Origin
|
|
1234
|
+
if (data.Origin != null) {
|
|
1620
1235
|
contents.Origin = (0, smithy_client_1.expectString)(data.Origin);
|
|
1621
1236
|
}
|
|
1622
|
-
if (data.OriginDetails
|
|
1237
|
+
if (data.OriginDetails != null) {
|
|
1623
1238
|
contents.OriginDetails = deserializeAws_restJson1OriginDetails(data.OriginDetails, context);
|
|
1624
1239
|
}
|
|
1625
|
-
if (data.SourceId
|
|
1240
|
+
if (data.SourceId != null) {
|
|
1626
1241
|
contents.SourceId = (0, smithy_client_1.expectString)(data.SourceId);
|
|
1627
1242
|
}
|
|
1628
|
-
if (data.Tags
|
|
1243
|
+
if (data.Tags != null) {
|
|
1629
1244
|
contents.Tags = deserializeAws_restJson1MapOf__string(data.Tags, context);
|
|
1630
1245
|
}
|
|
1631
|
-
if (data.UpdatedAt
|
|
1246
|
+
if (data.UpdatedAt != null) {
|
|
1632
1247
|
contents.UpdatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.UpdatedAt));
|
|
1633
1248
|
}
|
|
1634
|
-
return
|
|
1249
|
+
return contents;
|
|
1635
1250
|
};
|
|
1636
1251
|
exports.deserializeAws_restJson1GetDataSetCommand = deserializeAws_restJson1GetDataSetCommand;
|
|
1637
1252
|
const deserializeAws_restJson1GetDataSetCommandError = async (output, context) => {
|
|
@@ -1639,7 +1254,6 @@ const deserializeAws_restJson1GetDataSetCommandError = async (output, context) =
|
|
|
1639
1254
|
...output,
|
|
1640
1255
|
body: await parseBody(output.body, context),
|
|
1641
1256
|
};
|
|
1642
|
-
let response;
|
|
1643
1257
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1644
1258
|
switch (errorCode) {
|
|
1645
1259
|
case "InternalServerException":
|
|
@@ -1656,49 +1270,41 @@ const deserializeAws_restJson1GetDataSetCommandError = async (output, context) =
|
|
|
1656
1270
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1657
1271
|
default:
|
|
1658
1272
|
const parsedBody = parsedOutput.body;
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
$metadata,
|
|
1273
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1274
|
+
output,
|
|
1275
|
+
parsedBody,
|
|
1276
|
+
exceptionCtor: DataExchangeServiceException_1.DataExchangeServiceException,
|
|
1277
|
+
errorCode,
|
|
1665
1278
|
});
|
|
1666
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1667
1279
|
}
|
|
1668
1280
|
};
|
|
1669
1281
|
const deserializeAws_restJson1GetEventActionCommand = async (output, context) => {
|
|
1670
1282
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1671
1283
|
return deserializeAws_restJson1GetEventActionCommandError(output, context);
|
|
1672
1284
|
}
|
|
1673
|
-
const contents = {
|
|
1285
|
+
const contents = map({
|
|
1674
1286
|
$metadata: deserializeMetadata(output),
|
|
1675
|
-
|
|
1676
|
-
Arn: undefined,
|
|
1677
|
-
CreatedAt: undefined,
|
|
1678
|
-
Event: undefined,
|
|
1679
|
-
Id: undefined,
|
|
1680
|
-
UpdatedAt: undefined,
|
|
1681
|
-
};
|
|
1287
|
+
});
|
|
1682
1288
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1683
|
-
if (data.Action
|
|
1289
|
+
if (data.Action != null) {
|
|
1684
1290
|
contents.Action = deserializeAws_restJson1Action(data.Action, context);
|
|
1685
1291
|
}
|
|
1686
|
-
if (data.Arn
|
|
1292
|
+
if (data.Arn != null) {
|
|
1687
1293
|
contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
|
|
1688
1294
|
}
|
|
1689
|
-
if (data.CreatedAt
|
|
1295
|
+
if (data.CreatedAt != null) {
|
|
1690
1296
|
contents.CreatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.CreatedAt));
|
|
1691
1297
|
}
|
|
1692
|
-
if (data.Event
|
|
1298
|
+
if (data.Event != null) {
|
|
1693
1299
|
contents.Event = deserializeAws_restJson1Event(data.Event, context);
|
|
1694
1300
|
}
|
|
1695
|
-
if (data.Id
|
|
1301
|
+
if (data.Id != null) {
|
|
1696
1302
|
contents.Id = (0, smithy_client_1.expectString)(data.Id);
|
|
1697
1303
|
}
|
|
1698
|
-
if (data.UpdatedAt
|
|
1304
|
+
if (data.UpdatedAt != null) {
|
|
1699
1305
|
contents.UpdatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.UpdatedAt));
|
|
1700
1306
|
}
|
|
1701
|
-
return
|
|
1307
|
+
return contents;
|
|
1702
1308
|
};
|
|
1703
1309
|
exports.deserializeAws_restJson1GetEventActionCommand = deserializeAws_restJson1GetEventActionCommand;
|
|
1704
1310
|
const deserializeAws_restJson1GetEventActionCommandError = async (output, context) => {
|
|
@@ -1706,7 +1312,6 @@ const deserializeAws_restJson1GetEventActionCommandError = async (output, contex
|
|
|
1706
1312
|
...output,
|
|
1707
1313
|
body: await parseBody(output.body, context),
|
|
1708
1314
|
};
|
|
1709
|
-
let response;
|
|
1710
1315
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1711
1316
|
switch (errorCode) {
|
|
1712
1317
|
case "InternalServerException":
|
|
@@ -1723,57 +1328,47 @@ const deserializeAws_restJson1GetEventActionCommandError = async (output, contex
|
|
|
1723
1328
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1724
1329
|
default:
|
|
1725
1330
|
const parsedBody = parsedOutput.body;
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
$metadata,
|
|
1331
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1332
|
+
output,
|
|
1333
|
+
parsedBody,
|
|
1334
|
+
exceptionCtor: DataExchangeServiceException_1.DataExchangeServiceException,
|
|
1335
|
+
errorCode,
|
|
1732
1336
|
});
|
|
1733
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1734
1337
|
}
|
|
1735
1338
|
};
|
|
1736
1339
|
const deserializeAws_restJson1GetJobCommand = async (output, context) => {
|
|
1737
1340
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1738
1341
|
return deserializeAws_restJson1GetJobCommandError(output, context);
|
|
1739
1342
|
}
|
|
1740
|
-
const contents = {
|
|
1343
|
+
const contents = map({
|
|
1741
1344
|
$metadata: deserializeMetadata(output),
|
|
1742
|
-
|
|
1743
|
-
CreatedAt: undefined,
|
|
1744
|
-
Details: undefined,
|
|
1745
|
-
Errors: undefined,
|
|
1746
|
-
Id: undefined,
|
|
1747
|
-
State: undefined,
|
|
1748
|
-
Type: undefined,
|
|
1749
|
-
UpdatedAt: undefined,
|
|
1750
|
-
};
|
|
1345
|
+
});
|
|
1751
1346
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1752
|
-
if (data.Arn
|
|
1347
|
+
if (data.Arn != null) {
|
|
1753
1348
|
contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
|
|
1754
1349
|
}
|
|
1755
|
-
if (data.CreatedAt
|
|
1350
|
+
if (data.CreatedAt != null) {
|
|
1756
1351
|
contents.CreatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.CreatedAt));
|
|
1757
1352
|
}
|
|
1758
|
-
if (data.Details
|
|
1353
|
+
if (data.Details != null) {
|
|
1759
1354
|
contents.Details = deserializeAws_restJson1ResponseDetails(data.Details, context);
|
|
1760
1355
|
}
|
|
1761
|
-
if (data.Errors
|
|
1356
|
+
if (data.Errors != null) {
|
|
1762
1357
|
contents.Errors = deserializeAws_restJson1ListOfJobError(data.Errors, context);
|
|
1763
1358
|
}
|
|
1764
|
-
if (data.Id
|
|
1359
|
+
if (data.Id != null) {
|
|
1765
1360
|
contents.Id = (0, smithy_client_1.expectString)(data.Id);
|
|
1766
1361
|
}
|
|
1767
|
-
if (data.State
|
|
1362
|
+
if (data.State != null) {
|
|
1768
1363
|
contents.State = (0, smithy_client_1.expectString)(data.State);
|
|
1769
1364
|
}
|
|
1770
|
-
if (data.Type
|
|
1365
|
+
if (data.Type != null) {
|
|
1771
1366
|
contents.Type = (0, smithy_client_1.expectString)(data.Type);
|
|
1772
1367
|
}
|
|
1773
|
-
if (data.UpdatedAt
|
|
1368
|
+
if (data.UpdatedAt != null) {
|
|
1774
1369
|
contents.UpdatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.UpdatedAt));
|
|
1775
1370
|
}
|
|
1776
|
-
return
|
|
1371
|
+
return contents;
|
|
1777
1372
|
};
|
|
1778
1373
|
exports.deserializeAws_restJson1GetJobCommand = deserializeAws_restJson1GetJobCommand;
|
|
1779
1374
|
const deserializeAws_restJson1GetJobCommandError = async (output, context) => {
|
|
@@ -1781,7 +1376,6 @@ const deserializeAws_restJson1GetJobCommandError = async (output, context) => {
|
|
|
1781
1376
|
...output,
|
|
1782
1377
|
body: await parseBody(output.body, context),
|
|
1783
1378
|
};
|
|
1784
|
-
let response;
|
|
1785
1379
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1786
1380
|
switch (errorCode) {
|
|
1787
1381
|
case "InternalServerException":
|
|
@@ -1798,73 +1392,59 @@ const deserializeAws_restJson1GetJobCommandError = async (output, context) => {
|
|
|
1798
1392
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1799
1393
|
default:
|
|
1800
1394
|
const parsedBody = parsedOutput.body;
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
$metadata,
|
|
1395
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1396
|
+
output,
|
|
1397
|
+
parsedBody,
|
|
1398
|
+
exceptionCtor: DataExchangeServiceException_1.DataExchangeServiceException,
|
|
1399
|
+
errorCode,
|
|
1807
1400
|
});
|
|
1808
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1809
1401
|
}
|
|
1810
1402
|
};
|
|
1811
1403
|
const deserializeAws_restJson1GetRevisionCommand = async (output, context) => {
|
|
1812
1404
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1813
1405
|
return deserializeAws_restJson1GetRevisionCommandError(output, context);
|
|
1814
1406
|
}
|
|
1815
|
-
const contents = {
|
|
1407
|
+
const contents = map({
|
|
1816
1408
|
$metadata: deserializeMetadata(output),
|
|
1817
|
-
|
|
1818
|
-
Comment: undefined,
|
|
1819
|
-
CreatedAt: undefined,
|
|
1820
|
-
DataSetId: undefined,
|
|
1821
|
-
Finalized: undefined,
|
|
1822
|
-
Id: undefined,
|
|
1823
|
-
RevocationComment: undefined,
|
|
1824
|
-
Revoked: undefined,
|
|
1825
|
-
RevokedAt: undefined,
|
|
1826
|
-
SourceId: undefined,
|
|
1827
|
-
Tags: undefined,
|
|
1828
|
-
UpdatedAt: undefined,
|
|
1829
|
-
};
|
|
1409
|
+
});
|
|
1830
1410
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1831
|
-
if (data.Arn
|
|
1411
|
+
if (data.Arn != null) {
|
|
1832
1412
|
contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
|
|
1833
1413
|
}
|
|
1834
|
-
if (data.Comment
|
|
1414
|
+
if (data.Comment != null) {
|
|
1835
1415
|
contents.Comment = (0, smithy_client_1.expectString)(data.Comment);
|
|
1836
1416
|
}
|
|
1837
|
-
if (data.CreatedAt
|
|
1417
|
+
if (data.CreatedAt != null) {
|
|
1838
1418
|
contents.CreatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.CreatedAt));
|
|
1839
1419
|
}
|
|
1840
|
-
if (data.DataSetId
|
|
1420
|
+
if (data.DataSetId != null) {
|
|
1841
1421
|
contents.DataSetId = (0, smithy_client_1.expectString)(data.DataSetId);
|
|
1842
1422
|
}
|
|
1843
|
-
if (data.Finalized
|
|
1423
|
+
if (data.Finalized != null) {
|
|
1844
1424
|
contents.Finalized = (0, smithy_client_1.expectBoolean)(data.Finalized);
|
|
1845
1425
|
}
|
|
1846
|
-
if (data.Id
|
|
1426
|
+
if (data.Id != null) {
|
|
1847
1427
|
contents.Id = (0, smithy_client_1.expectString)(data.Id);
|
|
1848
1428
|
}
|
|
1849
|
-
if (data.RevocationComment
|
|
1429
|
+
if (data.RevocationComment != null) {
|
|
1850
1430
|
contents.RevocationComment = (0, smithy_client_1.expectString)(data.RevocationComment);
|
|
1851
1431
|
}
|
|
1852
|
-
if (data.Revoked
|
|
1432
|
+
if (data.Revoked != null) {
|
|
1853
1433
|
contents.Revoked = (0, smithy_client_1.expectBoolean)(data.Revoked);
|
|
1854
1434
|
}
|
|
1855
|
-
if (data.RevokedAt
|
|
1435
|
+
if (data.RevokedAt != null) {
|
|
1856
1436
|
contents.RevokedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.RevokedAt));
|
|
1857
1437
|
}
|
|
1858
|
-
if (data.SourceId
|
|
1438
|
+
if (data.SourceId != null) {
|
|
1859
1439
|
contents.SourceId = (0, smithy_client_1.expectString)(data.SourceId);
|
|
1860
1440
|
}
|
|
1861
|
-
if (data.Tags
|
|
1441
|
+
if (data.Tags != null) {
|
|
1862
1442
|
contents.Tags = deserializeAws_restJson1MapOf__string(data.Tags, context);
|
|
1863
1443
|
}
|
|
1864
|
-
if (data.UpdatedAt
|
|
1444
|
+
if (data.UpdatedAt != null) {
|
|
1865
1445
|
contents.UpdatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.UpdatedAt));
|
|
1866
1446
|
}
|
|
1867
|
-
return
|
|
1447
|
+
return contents;
|
|
1868
1448
|
};
|
|
1869
1449
|
exports.deserializeAws_restJson1GetRevisionCommand = deserializeAws_restJson1GetRevisionCommand;
|
|
1870
1450
|
const deserializeAws_restJson1GetRevisionCommandError = async (output, context) => {
|
|
@@ -1872,7 +1452,6 @@ const deserializeAws_restJson1GetRevisionCommandError = async (output, context)
|
|
|
1872
1452
|
...output,
|
|
1873
1453
|
body: await parseBody(output.body, context),
|
|
1874
1454
|
};
|
|
1875
|
-
let response;
|
|
1876
1455
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1877
1456
|
switch (errorCode) {
|
|
1878
1457
|
case "InternalServerException":
|
|
@@ -1889,33 +1468,29 @@ const deserializeAws_restJson1GetRevisionCommandError = async (output, context)
|
|
|
1889
1468
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1890
1469
|
default:
|
|
1891
1470
|
const parsedBody = parsedOutput.body;
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
$metadata,
|
|
1471
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1472
|
+
output,
|
|
1473
|
+
parsedBody,
|
|
1474
|
+
exceptionCtor: DataExchangeServiceException_1.DataExchangeServiceException,
|
|
1475
|
+
errorCode,
|
|
1898
1476
|
});
|
|
1899
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1900
1477
|
}
|
|
1901
1478
|
};
|
|
1902
1479
|
const deserializeAws_restJson1ListDataSetRevisionsCommand = async (output, context) => {
|
|
1903
1480
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1904
1481
|
return deserializeAws_restJson1ListDataSetRevisionsCommandError(output, context);
|
|
1905
1482
|
}
|
|
1906
|
-
const contents = {
|
|
1483
|
+
const contents = map({
|
|
1907
1484
|
$metadata: deserializeMetadata(output),
|
|
1908
|
-
|
|
1909
|
-
Revisions: undefined,
|
|
1910
|
-
};
|
|
1485
|
+
});
|
|
1911
1486
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1912
|
-
if (data.NextToken
|
|
1487
|
+
if (data.NextToken != null) {
|
|
1913
1488
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
1914
1489
|
}
|
|
1915
|
-
if (data.Revisions
|
|
1490
|
+
if (data.Revisions != null) {
|
|
1916
1491
|
contents.Revisions = deserializeAws_restJson1ListOfRevisionEntry(data.Revisions, context);
|
|
1917
1492
|
}
|
|
1918
|
-
return
|
|
1493
|
+
return contents;
|
|
1919
1494
|
};
|
|
1920
1495
|
exports.deserializeAws_restJson1ListDataSetRevisionsCommand = deserializeAws_restJson1ListDataSetRevisionsCommand;
|
|
1921
1496
|
const deserializeAws_restJson1ListDataSetRevisionsCommandError = async (output, context) => {
|
|
@@ -1923,7 +1498,6 @@ const deserializeAws_restJson1ListDataSetRevisionsCommandError = async (output,
|
|
|
1923
1498
|
...output,
|
|
1924
1499
|
body: await parseBody(output.body, context),
|
|
1925
1500
|
};
|
|
1926
|
-
let response;
|
|
1927
1501
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1928
1502
|
switch (errorCode) {
|
|
1929
1503
|
case "InternalServerException":
|
|
@@ -1940,33 +1514,29 @@ const deserializeAws_restJson1ListDataSetRevisionsCommandError = async (output,
|
|
|
1940
1514
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1941
1515
|
default:
|
|
1942
1516
|
const parsedBody = parsedOutput.body;
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
$metadata,
|
|
1517
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1518
|
+
output,
|
|
1519
|
+
parsedBody,
|
|
1520
|
+
exceptionCtor: DataExchangeServiceException_1.DataExchangeServiceException,
|
|
1521
|
+
errorCode,
|
|
1949
1522
|
});
|
|
1950
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1951
1523
|
}
|
|
1952
1524
|
};
|
|
1953
1525
|
const deserializeAws_restJson1ListDataSetsCommand = async (output, context) => {
|
|
1954
1526
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1955
1527
|
return deserializeAws_restJson1ListDataSetsCommandError(output, context);
|
|
1956
1528
|
}
|
|
1957
|
-
const contents = {
|
|
1529
|
+
const contents = map({
|
|
1958
1530
|
$metadata: deserializeMetadata(output),
|
|
1959
|
-
|
|
1960
|
-
NextToken: undefined,
|
|
1961
|
-
};
|
|
1531
|
+
});
|
|
1962
1532
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1963
|
-
if (data.DataSets
|
|
1533
|
+
if (data.DataSets != null) {
|
|
1964
1534
|
contents.DataSets = deserializeAws_restJson1ListOfDataSetEntry(data.DataSets, context);
|
|
1965
1535
|
}
|
|
1966
|
-
if (data.NextToken
|
|
1536
|
+
if (data.NextToken != null) {
|
|
1967
1537
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
1968
1538
|
}
|
|
1969
|
-
return
|
|
1539
|
+
return contents;
|
|
1970
1540
|
};
|
|
1971
1541
|
exports.deserializeAws_restJson1ListDataSetsCommand = deserializeAws_restJson1ListDataSetsCommand;
|
|
1972
1542
|
const deserializeAws_restJson1ListDataSetsCommandError = async (output, context) => {
|
|
@@ -1974,7 +1544,6 @@ const deserializeAws_restJson1ListDataSetsCommandError = async (output, context)
|
|
|
1974
1544
|
...output,
|
|
1975
1545
|
body: await parseBody(output.body, context),
|
|
1976
1546
|
};
|
|
1977
|
-
let response;
|
|
1978
1547
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1979
1548
|
switch (errorCode) {
|
|
1980
1549
|
case "InternalServerException":
|
|
@@ -1991,33 +1560,29 @@ const deserializeAws_restJson1ListDataSetsCommandError = async (output, context)
|
|
|
1991
1560
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1992
1561
|
default:
|
|
1993
1562
|
const parsedBody = parsedOutput.body;
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
$metadata,
|
|
1563
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1564
|
+
output,
|
|
1565
|
+
parsedBody,
|
|
1566
|
+
exceptionCtor: DataExchangeServiceException_1.DataExchangeServiceException,
|
|
1567
|
+
errorCode,
|
|
2000
1568
|
});
|
|
2001
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2002
1569
|
}
|
|
2003
1570
|
};
|
|
2004
1571
|
const deserializeAws_restJson1ListEventActionsCommand = async (output, context) => {
|
|
2005
1572
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2006
1573
|
return deserializeAws_restJson1ListEventActionsCommandError(output, context);
|
|
2007
1574
|
}
|
|
2008
|
-
const contents = {
|
|
1575
|
+
const contents = map({
|
|
2009
1576
|
$metadata: deserializeMetadata(output),
|
|
2010
|
-
|
|
2011
|
-
NextToken: undefined,
|
|
2012
|
-
};
|
|
1577
|
+
});
|
|
2013
1578
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2014
|
-
if (data.EventActions
|
|
1579
|
+
if (data.EventActions != null) {
|
|
2015
1580
|
contents.EventActions = deserializeAws_restJson1ListOfEventActionEntry(data.EventActions, context);
|
|
2016
1581
|
}
|
|
2017
|
-
if (data.NextToken
|
|
1582
|
+
if (data.NextToken != null) {
|
|
2018
1583
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
2019
1584
|
}
|
|
2020
|
-
return
|
|
1585
|
+
return contents;
|
|
2021
1586
|
};
|
|
2022
1587
|
exports.deserializeAws_restJson1ListEventActionsCommand = deserializeAws_restJson1ListEventActionsCommand;
|
|
2023
1588
|
const deserializeAws_restJson1ListEventActionsCommandError = async (output, context) => {
|
|
@@ -2025,7 +1590,6 @@ const deserializeAws_restJson1ListEventActionsCommandError = async (output, cont
|
|
|
2025
1590
|
...output,
|
|
2026
1591
|
body: await parseBody(output.body, context),
|
|
2027
1592
|
};
|
|
2028
|
-
let response;
|
|
2029
1593
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2030
1594
|
switch (errorCode) {
|
|
2031
1595
|
case "InternalServerException":
|
|
@@ -2042,33 +1606,29 @@ const deserializeAws_restJson1ListEventActionsCommandError = async (output, cont
|
|
|
2042
1606
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2043
1607
|
default:
|
|
2044
1608
|
const parsedBody = parsedOutput.body;
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
$metadata,
|
|
1609
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1610
|
+
output,
|
|
1611
|
+
parsedBody,
|
|
1612
|
+
exceptionCtor: DataExchangeServiceException_1.DataExchangeServiceException,
|
|
1613
|
+
errorCode,
|
|
2051
1614
|
});
|
|
2052
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2053
1615
|
}
|
|
2054
1616
|
};
|
|
2055
1617
|
const deserializeAws_restJson1ListJobsCommand = async (output, context) => {
|
|
2056
1618
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2057
1619
|
return deserializeAws_restJson1ListJobsCommandError(output, context);
|
|
2058
1620
|
}
|
|
2059
|
-
const contents = {
|
|
1621
|
+
const contents = map({
|
|
2060
1622
|
$metadata: deserializeMetadata(output),
|
|
2061
|
-
|
|
2062
|
-
NextToken: undefined,
|
|
2063
|
-
};
|
|
1623
|
+
});
|
|
2064
1624
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2065
|
-
if (data.Jobs
|
|
1625
|
+
if (data.Jobs != null) {
|
|
2066
1626
|
contents.Jobs = deserializeAws_restJson1ListOfJobEntry(data.Jobs, context);
|
|
2067
1627
|
}
|
|
2068
|
-
if (data.NextToken
|
|
1628
|
+
if (data.NextToken != null) {
|
|
2069
1629
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
2070
1630
|
}
|
|
2071
|
-
return
|
|
1631
|
+
return contents;
|
|
2072
1632
|
};
|
|
2073
1633
|
exports.deserializeAws_restJson1ListJobsCommand = deserializeAws_restJson1ListJobsCommand;
|
|
2074
1634
|
const deserializeAws_restJson1ListJobsCommandError = async (output, context) => {
|
|
@@ -2076,7 +1636,6 @@ const deserializeAws_restJson1ListJobsCommandError = async (output, context) =>
|
|
|
2076
1636
|
...output,
|
|
2077
1637
|
body: await parseBody(output.body, context),
|
|
2078
1638
|
};
|
|
2079
|
-
let response;
|
|
2080
1639
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2081
1640
|
switch (errorCode) {
|
|
2082
1641
|
case "InternalServerException":
|
|
@@ -2093,33 +1652,29 @@ const deserializeAws_restJson1ListJobsCommandError = async (output, context) =>
|
|
|
2093
1652
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2094
1653
|
default:
|
|
2095
1654
|
const parsedBody = parsedOutput.body;
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
$metadata,
|
|
1655
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1656
|
+
output,
|
|
1657
|
+
parsedBody,
|
|
1658
|
+
exceptionCtor: DataExchangeServiceException_1.DataExchangeServiceException,
|
|
1659
|
+
errorCode,
|
|
2102
1660
|
});
|
|
2103
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2104
1661
|
}
|
|
2105
1662
|
};
|
|
2106
1663
|
const deserializeAws_restJson1ListRevisionAssetsCommand = async (output, context) => {
|
|
2107
1664
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2108
1665
|
return deserializeAws_restJson1ListRevisionAssetsCommandError(output, context);
|
|
2109
1666
|
}
|
|
2110
|
-
const contents = {
|
|
1667
|
+
const contents = map({
|
|
2111
1668
|
$metadata: deserializeMetadata(output),
|
|
2112
|
-
|
|
2113
|
-
NextToken: undefined,
|
|
2114
|
-
};
|
|
1669
|
+
});
|
|
2115
1670
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2116
|
-
if (data.Assets
|
|
1671
|
+
if (data.Assets != null) {
|
|
2117
1672
|
contents.Assets = deserializeAws_restJson1ListOfAssetEntry(data.Assets, context);
|
|
2118
1673
|
}
|
|
2119
|
-
if (data.NextToken
|
|
1674
|
+
if (data.NextToken != null) {
|
|
2120
1675
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
2121
1676
|
}
|
|
2122
|
-
return
|
|
1677
|
+
return contents;
|
|
2123
1678
|
};
|
|
2124
1679
|
exports.deserializeAws_restJson1ListRevisionAssetsCommand = deserializeAws_restJson1ListRevisionAssetsCommand;
|
|
2125
1680
|
const deserializeAws_restJson1ListRevisionAssetsCommandError = async (output, context) => {
|
|
@@ -2127,7 +1682,6 @@ const deserializeAws_restJson1ListRevisionAssetsCommandError = async (output, co
|
|
|
2127
1682
|
...output,
|
|
2128
1683
|
body: await parseBody(output.body, context),
|
|
2129
1684
|
};
|
|
2130
|
-
let response;
|
|
2131
1685
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2132
1686
|
switch (errorCode) {
|
|
2133
1687
|
case "InternalServerException":
|
|
@@ -2144,29 +1698,26 @@ const deserializeAws_restJson1ListRevisionAssetsCommandError = async (output, co
|
|
|
2144
1698
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2145
1699
|
default:
|
|
2146
1700
|
const parsedBody = parsedOutput.body;
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
$metadata,
|
|
1701
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1702
|
+
output,
|
|
1703
|
+
parsedBody,
|
|
1704
|
+
exceptionCtor: DataExchangeServiceException_1.DataExchangeServiceException,
|
|
1705
|
+
errorCode,
|
|
2153
1706
|
});
|
|
2154
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2155
1707
|
}
|
|
2156
1708
|
};
|
|
2157
1709
|
const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
|
|
2158
1710
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2159
1711
|
return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
|
|
2160
1712
|
}
|
|
2161
|
-
const contents = {
|
|
1713
|
+
const contents = map({
|
|
2162
1714
|
$metadata: deserializeMetadata(output),
|
|
2163
|
-
|
|
2164
|
-
};
|
|
1715
|
+
});
|
|
2165
1716
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2166
|
-
if (data.tags
|
|
1717
|
+
if (data.tags != null) {
|
|
2167
1718
|
contents.Tags = deserializeAws_restJson1MapOf__string(data.tags, context);
|
|
2168
1719
|
}
|
|
2169
|
-
return
|
|
1720
|
+
return contents;
|
|
2170
1721
|
};
|
|
2171
1722
|
exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_restJson1ListTagsForResourceCommand;
|
|
2172
1723
|
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -2174,74 +1725,57 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2174
1725
|
...output,
|
|
2175
1726
|
body: await parseBody(output.body, context),
|
|
2176
1727
|
};
|
|
2177
|
-
let response;
|
|
2178
1728
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
$fault: "client",
|
|
2187
|
-
$metadata,
|
|
2188
|
-
});
|
|
2189
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2190
|
-
}
|
|
1729
|
+
const parsedBody = parsedOutput.body;
|
|
1730
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1731
|
+
output,
|
|
1732
|
+
parsedBody,
|
|
1733
|
+
exceptionCtor: DataExchangeServiceException_1.DataExchangeServiceException,
|
|
1734
|
+
errorCode,
|
|
1735
|
+
});
|
|
2191
1736
|
};
|
|
2192
1737
|
const deserializeAws_restJson1RevokeRevisionCommand = async (output, context) => {
|
|
2193
1738
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2194
1739
|
return deserializeAws_restJson1RevokeRevisionCommandError(output, context);
|
|
2195
1740
|
}
|
|
2196
|
-
const contents = {
|
|
1741
|
+
const contents = map({
|
|
2197
1742
|
$metadata: deserializeMetadata(output),
|
|
2198
|
-
|
|
2199
|
-
Comment: undefined,
|
|
2200
|
-
CreatedAt: undefined,
|
|
2201
|
-
DataSetId: undefined,
|
|
2202
|
-
Finalized: undefined,
|
|
2203
|
-
Id: undefined,
|
|
2204
|
-
RevocationComment: undefined,
|
|
2205
|
-
Revoked: undefined,
|
|
2206
|
-
RevokedAt: undefined,
|
|
2207
|
-
SourceId: undefined,
|
|
2208
|
-
UpdatedAt: undefined,
|
|
2209
|
-
};
|
|
1743
|
+
});
|
|
2210
1744
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2211
|
-
if (data.Arn
|
|
1745
|
+
if (data.Arn != null) {
|
|
2212
1746
|
contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
|
|
2213
1747
|
}
|
|
2214
|
-
if (data.Comment
|
|
1748
|
+
if (data.Comment != null) {
|
|
2215
1749
|
contents.Comment = (0, smithy_client_1.expectString)(data.Comment);
|
|
2216
1750
|
}
|
|
2217
|
-
if (data.CreatedAt
|
|
1751
|
+
if (data.CreatedAt != null) {
|
|
2218
1752
|
contents.CreatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.CreatedAt));
|
|
2219
1753
|
}
|
|
2220
|
-
if (data.DataSetId
|
|
1754
|
+
if (data.DataSetId != null) {
|
|
2221
1755
|
contents.DataSetId = (0, smithy_client_1.expectString)(data.DataSetId);
|
|
2222
1756
|
}
|
|
2223
|
-
if (data.Finalized
|
|
1757
|
+
if (data.Finalized != null) {
|
|
2224
1758
|
contents.Finalized = (0, smithy_client_1.expectBoolean)(data.Finalized);
|
|
2225
1759
|
}
|
|
2226
|
-
if (data.Id
|
|
1760
|
+
if (data.Id != null) {
|
|
2227
1761
|
contents.Id = (0, smithy_client_1.expectString)(data.Id);
|
|
2228
1762
|
}
|
|
2229
|
-
if (data.RevocationComment
|
|
1763
|
+
if (data.RevocationComment != null) {
|
|
2230
1764
|
contents.RevocationComment = (0, smithy_client_1.expectString)(data.RevocationComment);
|
|
2231
1765
|
}
|
|
2232
|
-
if (data.Revoked
|
|
1766
|
+
if (data.Revoked != null) {
|
|
2233
1767
|
contents.Revoked = (0, smithy_client_1.expectBoolean)(data.Revoked);
|
|
2234
1768
|
}
|
|
2235
|
-
if (data.RevokedAt
|
|
1769
|
+
if (data.RevokedAt != null) {
|
|
2236
1770
|
contents.RevokedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.RevokedAt));
|
|
2237
1771
|
}
|
|
2238
|
-
if (data.SourceId
|
|
1772
|
+
if (data.SourceId != null) {
|
|
2239
1773
|
contents.SourceId = (0, smithy_client_1.expectString)(data.SourceId);
|
|
2240
1774
|
}
|
|
2241
|
-
if (data.UpdatedAt
|
|
1775
|
+
if (data.UpdatedAt != null) {
|
|
2242
1776
|
contents.UpdatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.UpdatedAt));
|
|
2243
1777
|
}
|
|
2244
|
-
return
|
|
1778
|
+
return contents;
|
|
2245
1779
|
};
|
|
2246
1780
|
exports.deserializeAws_restJson1RevokeRevisionCommand = deserializeAws_restJson1RevokeRevisionCommand;
|
|
2247
1781
|
const deserializeAws_restJson1RevokeRevisionCommandError = async (output, context) => {
|
|
@@ -2249,7 +1783,6 @@ const deserializeAws_restJson1RevokeRevisionCommandError = async (output, contex
|
|
|
2249
1783
|
...output,
|
|
2250
1784
|
body: await parseBody(output.body, context),
|
|
2251
1785
|
};
|
|
2252
|
-
let response;
|
|
2253
1786
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2254
1787
|
switch (errorCode) {
|
|
2255
1788
|
case "AccessDeniedException":
|
|
@@ -2272,36 +1805,33 @@ const deserializeAws_restJson1RevokeRevisionCommandError = async (output, contex
|
|
|
2272
1805
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2273
1806
|
default:
|
|
2274
1807
|
const parsedBody = parsedOutput.body;
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
$metadata,
|
|
1808
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1809
|
+
output,
|
|
1810
|
+
parsedBody,
|
|
1811
|
+
exceptionCtor: DataExchangeServiceException_1.DataExchangeServiceException,
|
|
1812
|
+
errorCode,
|
|
2281
1813
|
});
|
|
2282
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2283
1814
|
}
|
|
2284
1815
|
};
|
|
2285
1816
|
const deserializeAws_restJson1SendApiAssetCommand = async (output, context) => {
|
|
2286
1817
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2287
1818
|
return deserializeAws_restJson1SendApiAssetCommandError(output, context);
|
|
2288
1819
|
}
|
|
2289
|
-
const contents = {
|
|
1820
|
+
const contents = map({
|
|
2290
1821
|
$metadata: deserializeMetadata(output),
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
}
|
|
1822
|
+
ResponseHeaders: [
|
|
1823
|
+
,
|
|
1824
|
+
Object.keys(output.headers)
|
|
1825
|
+
.filter((header) => header.startsWith(""))
|
|
1826
|
+
.reduce((acc, header) => {
|
|
1827
|
+
acc[header.substring(0)] = output.headers[header];
|
|
1828
|
+
return acc;
|
|
1829
|
+
}, {}),
|
|
1830
|
+
],
|
|
2301
1831
|
});
|
|
2302
1832
|
const data = await collectBodyString(output.body, context);
|
|
2303
1833
|
contents.Body = (0, smithy_client_1.expectString)(data);
|
|
2304
|
-
return
|
|
1834
|
+
return contents;
|
|
2305
1835
|
};
|
|
2306
1836
|
exports.deserializeAws_restJson1SendApiAssetCommand = deserializeAws_restJson1SendApiAssetCommand;
|
|
2307
1837
|
const deserializeAws_restJson1SendApiAssetCommandError = async (output, context) => {
|
|
@@ -2309,7 +1839,6 @@ const deserializeAws_restJson1SendApiAssetCommandError = async (output, context)
|
|
|
2309
1839
|
...output,
|
|
2310
1840
|
body: await parseBody(output.body, context),
|
|
2311
1841
|
};
|
|
2312
|
-
let response;
|
|
2313
1842
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2314
1843
|
switch (errorCode) {
|
|
2315
1844
|
case "AccessDeniedException":
|
|
@@ -2329,25 +1858,23 @@ const deserializeAws_restJson1SendApiAssetCommandError = async (output, context)
|
|
|
2329
1858
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2330
1859
|
default:
|
|
2331
1860
|
const parsedBody = parsedOutput.body;
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
$metadata,
|
|
1861
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1862
|
+
output,
|
|
1863
|
+
parsedBody,
|
|
1864
|
+
exceptionCtor: DataExchangeServiceException_1.DataExchangeServiceException,
|
|
1865
|
+
errorCode,
|
|
2338
1866
|
});
|
|
2339
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2340
1867
|
}
|
|
2341
1868
|
};
|
|
2342
1869
|
const deserializeAws_restJson1StartJobCommand = async (output, context) => {
|
|
2343
1870
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2344
1871
|
return deserializeAws_restJson1StartJobCommandError(output, context);
|
|
2345
1872
|
}
|
|
2346
|
-
const contents = {
|
|
1873
|
+
const contents = map({
|
|
2347
1874
|
$metadata: deserializeMetadata(output),
|
|
2348
|
-
};
|
|
1875
|
+
});
|
|
2349
1876
|
await collectBody(output.body, context);
|
|
2350
|
-
return
|
|
1877
|
+
return contents;
|
|
2351
1878
|
};
|
|
2352
1879
|
exports.deserializeAws_restJson1StartJobCommand = deserializeAws_restJson1StartJobCommand;
|
|
2353
1880
|
const deserializeAws_restJson1StartJobCommandError = async (output, context) => {
|
|
@@ -2355,7 +1882,6 @@ const deserializeAws_restJson1StartJobCommandError = async (output, context) =>
|
|
|
2355
1882
|
...output,
|
|
2356
1883
|
body: await parseBody(output.body, context),
|
|
2357
1884
|
};
|
|
2358
|
-
let response;
|
|
2359
1885
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2360
1886
|
switch (errorCode) {
|
|
2361
1887
|
case "AccessDeniedException":
|
|
@@ -2378,25 +1904,23 @@ const deserializeAws_restJson1StartJobCommandError = async (output, context) =>
|
|
|
2378
1904
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2379
1905
|
default:
|
|
2380
1906
|
const parsedBody = parsedOutput.body;
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
$metadata,
|
|
1907
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1908
|
+
output,
|
|
1909
|
+
parsedBody,
|
|
1910
|
+
exceptionCtor: DataExchangeServiceException_1.DataExchangeServiceException,
|
|
1911
|
+
errorCode,
|
|
2387
1912
|
});
|
|
2388
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2389
1913
|
}
|
|
2390
1914
|
};
|
|
2391
1915
|
const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
2392
1916
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2393
1917
|
return deserializeAws_restJson1TagResourceCommandError(output, context);
|
|
2394
1918
|
}
|
|
2395
|
-
const contents = {
|
|
1919
|
+
const contents = map({
|
|
2396
1920
|
$metadata: deserializeMetadata(output),
|
|
2397
|
-
};
|
|
1921
|
+
});
|
|
2398
1922
|
await collectBody(output.body, context);
|
|
2399
|
-
return
|
|
1923
|
+
return contents;
|
|
2400
1924
|
};
|
|
2401
1925
|
exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1TagResourceCommand;
|
|
2402
1926
|
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
@@ -2404,30 +1928,24 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2404
1928
|
...output,
|
|
2405
1929
|
body: await parseBody(output.body, context),
|
|
2406
1930
|
};
|
|
2407
|
-
let response;
|
|
2408
1931
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
$fault: "client",
|
|
2417
|
-
$metadata,
|
|
2418
|
-
});
|
|
2419
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2420
|
-
}
|
|
1932
|
+
const parsedBody = parsedOutput.body;
|
|
1933
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1934
|
+
output,
|
|
1935
|
+
parsedBody,
|
|
1936
|
+
exceptionCtor: DataExchangeServiceException_1.DataExchangeServiceException,
|
|
1937
|
+
errorCode,
|
|
1938
|
+
});
|
|
2421
1939
|
};
|
|
2422
1940
|
const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
|
|
2423
1941
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2424
1942
|
return deserializeAws_restJson1UntagResourceCommandError(output, context);
|
|
2425
1943
|
}
|
|
2426
|
-
const contents = {
|
|
1944
|
+
const contents = map({
|
|
2427
1945
|
$metadata: deserializeMetadata(output),
|
|
2428
|
-
};
|
|
1946
|
+
});
|
|
2429
1947
|
await collectBody(output.body, context);
|
|
2430
|
-
return
|
|
1948
|
+
return contents;
|
|
2431
1949
|
};
|
|
2432
1950
|
exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1UntagResourceCommand;
|
|
2433
1951
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
@@ -2435,70 +1953,54 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2435
1953
|
...output,
|
|
2436
1954
|
body: await parseBody(output.body, context),
|
|
2437
1955
|
};
|
|
2438
|
-
let response;
|
|
2439
1956
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
$fault: "client",
|
|
2448
|
-
$metadata,
|
|
2449
|
-
});
|
|
2450
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2451
|
-
}
|
|
1957
|
+
const parsedBody = parsedOutput.body;
|
|
1958
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1959
|
+
output,
|
|
1960
|
+
parsedBody,
|
|
1961
|
+
exceptionCtor: DataExchangeServiceException_1.DataExchangeServiceException,
|
|
1962
|
+
errorCode,
|
|
1963
|
+
});
|
|
2452
1964
|
};
|
|
2453
1965
|
const deserializeAws_restJson1UpdateAssetCommand = async (output, context) => {
|
|
2454
1966
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2455
1967
|
return deserializeAws_restJson1UpdateAssetCommandError(output, context);
|
|
2456
1968
|
}
|
|
2457
|
-
const contents = {
|
|
1969
|
+
const contents = map({
|
|
2458
1970
|
$metadata: deserializeMetadata(output),
|
|
2459
|
-
|
|
2460
|
-
AssetDetails: undefined,
|
|
2461
|
-
AssetType: undefined,
|
|
2462
|
-
CreatedAt: undefined,
|
|
2463
|
-
DataSetId: undefined,
|
|
2464
|
-
Id: undefined,
|
|
2465
|
-
Name: undefined,
|
|
2466
|
-
RevisionId: undefined,
|
|
2467
|
-
SourceId: undefined,
|
|
2468
|
-
UpdatedAt: undefined,
|
|
2469
|
-
};
|
|
1971
|
+
});
|
|
2470
1972
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2471
|
-
if (data.Arn
|
|
1973
|
+
if (data.Arn != null) {
|
|
2472
1974
|
contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
|
|
2473
1975
|
}
|
|
2474
|
-
if (data.AssetDetails
|
|
1976
|
+
if (data.AssetDetails != null) {
|
|
2475
1977
|
contents.AssetDetails = deserializeAws_restJson1AssetDetails(data.AssetDetails, context);
|
|
2476
1978
|
}
|
|
2477
|
-
if (data.AssetType
|
|
1979
|
+
if (data.AssetType != null) {
|
|
2478
1980
|
contents.AssetType = (0, smithy_client_1.expectString)(data.AssetType);
|
|
2479
1981
|
}
|
|
2480
|
-
if (data.CreatedAt
|
|
1982
|
+
if (data.CreatedAt != null) {
|
|
2481
1983
|
contents.CreatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.CreatedAt));
|
|
2482
1984
|
}
|
|
2483
|
-
if (data.DataSetId
|
|
1985
|
+
if (data.DataSetId != null) {
|
|
2484
1986
|
contents.DataSetId = (0, smithy_client_1.expectString)(data.DataSetId);
|
|
2485
1987
|
}
|
|
2486
|
-
if (data.Id
|
|
1988
|
+
if (data.Id != null) {
|
|
2487
1989
|
contents.Id = (0, smithy_client_1.expectString)(data.Id);
|
|
2488
1990
|
}
|
|
2489
|
-
if (data.Name
|
|
1991
|
+
if (data.Name != null) {
|
|
2490
1992
|
contents.Name = (0, smithy_client_1.expectString)(data.Name);
|
|
2491
1993
|
}
|
|
2492
|
-
if (data.RevisionId
|
|
1994
|
+
if (data.RevisionId != null) {
|
|
2493
1995
|
contents.RevisionId = (0, smithy_client_1.expectString)(data.RevisionId);
|
|
2494
1996
|
}
|
|
2495
|
-
if (data.SourceId
|
|
1997
|
+
if (data.SourceId != null) {
|
|
2496
1998
|
contents.SourceId = (0, smithy_client_1.expectString)(data.SourceId);
|
|
2497
1999
|
}
|
|
2498
|
-
if (data.UpdatedAt
|
|
2000
|
+
if (data.UpdatedAt != null) {
|
|
2499
2001
|
contents.UpdatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.UpdatedAt));
|
|
2500
2002
|
}
|
|
2501
|
-
return
|
|
2003
|
+
return contents;
|
|
2502
2004
|
};
|
|
2503
2005
|
exports.deserializeAws_restJson1UpdateAssetCommand = deserializeAws_restJson1UpdateAssetCommand;
|
|
2504
2006
|
const deserializeAws_restJson1UpdateAssetCommandError = async (output, context) => {
|
|
@@ -2506,7 +2008,6 @@ const deserializeAws_restJson1UpdateAssetCommandError = async (output, context)
|
|
|
2506
2008
|
...output,
|
|
2507
2009
|
body: await parseBody(output.body, context),
|
|
2508
2010
|
};
|
|
2509
|
-
let response;
|
|
2510
2011
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2511
2012
|
switch (errorCode) {
|
|
2512
2013
|
case "AccessDeniedException":
|
|
@@ -2529,65 +2030,53 @@ const deserializeAws_restJson1UpdateAssetCommandError = async (output, context)
|
|
|
2529
2030
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2530
2031
|
default:
|
|
2531
2032
|
const parsedBody = parsedOutput.body;
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
$metadata,
|
|
2033
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2034
|
+
output,
|
|
2035
|
+
parsedBody,
|
|
2036
|
+
exceptionCtor: DataExchangeServiceException_1.DataExchangeServiceException,
|
|
2037
|
+
errorCode,
|
|
2538
2038
|
});
|
|
2539
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2540
2039
|
}
|
|
2541
2040
|
};
|
|
2542
2041
|
const deserializeAws_restJson1UpdateDataSetCommand = async (output, context) => {
|
|
2543
2042
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2544
2043
|
return deserializeAws_restJson1UpdateDataSetCommandError(output, context);
|
|
2545
2044
|
}
|
|
2546
|
-
const contents = {
|
|
2045
|
+
const contents = map({
|
|
2547
2046
|
$metadata: deserializeMetadata(output),
|
|
2548
|
-
|
|
2549
|
-
AssetType: undefined,
|
|
2550
|
-
CreatedAt: undefined,
|
|
2551
|
-
Description: undefined,
|
|
2552
|
-
Id: undefined,
|
|
2553
|
-
Name: undefined,
|
|
2554
|
-
Origin: undefined,
|
|
2555
|
-
OriginDetails: undefined,
|
|
2556
|
-
SourceId: undefined,
|
|
2557
|
-
UpdatedAt: undefined,
|
|
2558
|
-
};
|
|
2047
|
+
});
|
|
2559
2048
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2560
|
-
if (data.Arn
|
|
2049
|
+
if (data.Arn != null) {
|
|
2561
2050
|
contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
|
|
2562
2051
|
}
|
|
2563
|
-
if (data.AssetType
|
|
2052
|
+
if (data.AssetType != null) {
|
|
2564
2053
|
contents.AssetType = (0, smithy_client_1.expectString)(data.AssetType);
|
|
2565
2054
|
}
|
|
2566
|
-
if (data.CreatedAt
|
|
2055
|
+
if (data.CreatedAt != null) {
|
|
2567
2056
|
contents.CreatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.CreatedAt));
|
|
2568
2057
|
}
|
|
2569
|
-
if (data.Description
|
|
2058
|
+
if (data.Description != null) {
|
|
2570
2059
|
contents.Description = (0, smithy_client_1.expectString)(data.Description);
|
|
2571
2060
|
}
|
|
2572
|
-
if (data.Id
|
|
2061
|
+
if (data.Id != null) {
|
|
2573
2062
|
contents.Id = (0, smithy_client_1.expectString)(data.Id);
|
|
2574
2063
|
}
|
|
2575
|
-
if (data.Name
|
|
2064
|
+
if (data.Name != null) {
|
|
2576
2065
|
contents.Name = (0, smithy_client_1.expectString)(data.Name);
|
|
2577
2066
|
}
|
|
2578
|
-
if (data.Origin
|
|
2067
|
+
if (data.Origin != null) {
|
|
2579
2068
|
contents.Origin = (0, smithy_client_1.expectString)(data.Origin);
|
|
2580
2069
|
}
|
|
2581
|
-
if (data.OriginDetails
|
|
2070
|
+
if (data.OriginDetails != null) {
|
|
2582
2071
|
contents.OriginDetails = deserializeAws_restJson1OriginDetails(data.OriginDetails, context);
|
|
2583
2072
|
}
|
|
2584
|
-
if (data.SourceId
|
|
2073
|
+
if (data.SourceId != null) {
|
|
2585
2074
|
contents.SourceId = (0, smithy_client_1.expectString)(data.SourceId);
|
|
2586
2075
|
}
|
|
2587
|
-
if (data.UpdatedAt
|
|
2076
|
+
if (data.UpdatedAt != null) {
|
|
2588
2077
|
contents.UpdatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.UpdatedAt));
|
|
2589
2078
|
}
|
|
2590
|
-
return
|
|
2079
|
+
return contents;
|
|
2591
2080
|
};
|
|
2592
2081
|
exports.deserializeAws_restJson1UpdateDataSetCommand = deserializeAws_restJson1UpdateDataSetCommand;
|
|
2593
2082
|
const deserializeAws_restJson1UpdateDataSetCommandError = async (output, context) => {
|
|
@@ -2595,7 +2084,6 @@ const deserializeAws_restJson1UpdateDataSetCommandError = async (output, context
|
|
|
2595
2084
|
...output,
|
|
2596
2085
|
body: await parseBody(output.body, context),
|
|
2597
2086
|
};
|
|
2598
|
-
let response;
|
|
2599
2087
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2600
2088
|
switch (errorCode) {
|
|
2601
2089
|
case "AccessDeniedException":
|
|
@@ -2615,49 +2103,41 @@ const deserializeAws_restJson1UpdateDataSetCommandError = async (output, context
|
|
|
2615
2103
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2616
2104
|
default:
|
|
2617
2105
|
const parsedBody = parsedOutput.body;
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
$metadata,
|
|
2106
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2107
|
+
output,
|
|
2108
|
+
parsedBody,
|
|
2109
|
+
exceptionCtor: DataExchangeServiceException_1.DataExchangeServiceException,
|
|
2110
|
+
errorCode,
|
|
2624
2111
|
});
|
|
2625
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2626
2112
|
}
|
|
2627
2113
|
};
|
|
2628
2114
|
const deserializeAws_restJson1UpdateEventActionCommand = async (output, context) => {
|
|
2629
2115
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2630
2116
|
return deserializeAws_restJson1UpdateEventActionCommandError(output, context);
|
|
2631
2117
|
}
|
|
2632
|
-
const contents = {
|
|
2118
|
+
const contents = map({
|
|
2633
2119
|
$metadata: deserializeMetadata(output),
|
|
2634
|
-
|
|
2635
|
-
Arn: undefined,
|
|
2636
|
-
CreatedAt: undefined,
|
|
2637
|
-
Event: undefined,
|
|
2638
|
-
Id: undefined,
|
|
2639
|
-
UpdatedAt: undefined,
|
|
2640
|
-
};
|
|
2120
|
+
});
|
|
2641
2121
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2642
|
-
if (data.Action
|
|
2122
|
+
if (data.Action != null) {
|
|
2643
2123
|
contents.Action = deserializeAws_restJson1Action(data.Action, context);
|
|
2644
2124
|
}
|
|
2645
|
-
if (data.Arn
|
|
2125
|
+
if (data.Arn != null) {
|
|
2646
2126
|
contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
|
|
2647
2127
|
}
|
|
2648
|
-
if (data.CreatedAt
|
|
2128
|
+
if (data.CreatedAt != null) {
|
|
2649
2129
|
contents.CreatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.CreatedAt));
|
|
2650
2130
|
}
|
|
2651
|
-
if (data.Event
|
|
2131
|
+
if (data.Event != null) {
|
|
2652
2132
|
contents.Event = deserializeAws_restJson1Event(data.Event, context);
|
|
2653
2133
|
}
|
|
2654
|
-
if (data.Id
|
|
2134
|
+
if (data.Id != null) {
|
|
2655
2135
|
contents.Id = (0, smithy_client_1.expectString)(data.Id);
|
|
2656
2136
|
}
|
|
2657
|
-
if (data.UpdatedAt
|
|
2137
|
+
if (data.UpdatedAt != null) {
|
|
2658
2138
|
contents.UpdatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.UpdatedAt));
|
|
2659
2139
|
}
|
|
2660
|
-
return
|
|
2140
|
+
return contents;
|
|
2661
2141
|
};
|
|
2662
2142
|
exports.deserializeAws_restJson1UpdateEventActionCommand = deserializeAws_restJson1UpdateEventActionCommand;
|
|
2663
2143
|
const deserializeAws_restJson1UpdateEventActionCommandError = async (output, context) => {
|
|
@@ -2665,7 +2145,6 @@ const deserializeAws_restJson1UpdateEventActionCommandError = async (output, con
|
|
|
2665
2145
|
...output,
|
|
2666
2146
|
body: await parseBody(output.body, context),
|
|
2667
2147
|
};
|
|
2668
|
-
let response;
|
|
2669
2148
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2670
2149
|
switch (errorCode) {
|
|
2671
2150
|
case "AccessDeniedException":
|
|
@@ -2685,69 +2164,56 @@ const deserializeAws_restJson1UpdateEventActionCommandError = async (output, con
|
|
|
2685
2164
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2686
2165
|
default:
|
|
2687
2166
|
const parsedBody = parsedOutput.body;
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
$metadata,
|
|
2167
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2168
|
+
output,
|
|
2169
|
+
parsedBody,
|
|
2170
|
+
exceptionCtor: DataExchangeServiceException_1.DataExchangeServiceException,
|
|
2171
|
+
errorCode,
|
|
2694
2172
|
});
|
|
2695
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2696
2173
|
}
|
|
2697
2174
|
};
|
|
2698
2175
|
const deserializeAws_restJson1UpdateRevisionCommand = async (output, context) => {
|
|
2699
2176
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2700
2177
|
return deserializeAws_restJson1UpdateRevisionCommandError(output, context);
|
|
2701
2178
|
}
|
|
2702
|
-
const contents = {
|
|
2179
|
+
const contents = map({
|
|
2703
2180
|
$metadata: deserializeMetadata(output),
|
|
2704
|
-
|
|
2705
|
-
Comment: undefined,
|
|
2706
|
-
CreatedAt: undefined,
|
|
2707
|
-
DataSetId: undefined,
|
|
2708
|
-
Finalized: undefined,
|
|
2709
|
-
Id: undefined,
|
|
2710
|
-
RevocationComment: undefined,
|
|
2711
|
-
Revoked: undefined,
|
|
2712
|
-
RevokedAt: undefined,
|
|
2713
|
-
SourceId: undefined,
|
|
2714
|
-
UpdatedAt: undefined,
|
|
2715
|
-
};
|
|
2181
|
+
});
|
|
2716
2182
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2717
|
-
if (data.Arn
|
|
2183
|
+
if (data.Arn != null) {
|
|
2718
2184
|
contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
|
|
2719
2185
|
}
|
|
2720
|
-
if (data.Comment
|
|
2186
|
+
if (data.Comment != null) {
|
|
2721
2187
|
contents.Comment = (0, smithy_client_1.expectString)(data.Comment);
|
|
2722
2188
|
}
|
|
2723
|
-
if (data.CreatedAt
|
|
2189
|
+
if (data.CreatedAt != null) {
|
|
2724
2190
|
contents.CreatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.CreatedAt));
|
|
2725
2191
|
}
|
|
2726
|
-
if (data.DataSetId
|
|
2192
|
+
if (data.DataSetId != null) {
|
|
2727
2193
|
contents.DataSetId = (0, smithy_client_1.expectString)(data.DataSetId);
|
|
2728
2194
|
}
|
|
2729
|
-
if (data.Finalized
|
|
2195
|
+
if (data.Finalized != null) {
|
|
2730
2196
|
contents.Finalized = (0, smithy_client_1.expectBoolean)(data.Finalized);
|
|
2731
2197
|
}
|
|
2732
|
-
if (data.Id
|
|
2198
|
+
if (data.Id != null) {
|
|
2733
2199
|
contents.Id = (0, smithy_client_1.expectString)(data.Id);
|
|
2734
2200
|
}
|
|
2735
|
-
if (data.RevocationComment
|
|
2201
|
+
if (data.RevocationComment != null) {
|
|
2736
2202
|
contents.RevocationComment = (0, smithy_client_1.expectString)(data.RevocationComment);
|
|
2737
2203
|
}
|
|
2738
|
-
if (data.Revoked
|
|
2204
|
+
if (data.Revoked != null) {
|
|
2739
2205
|
contents.Revoked = (0, smithy_client_1.expectBoolean)(data.Revoked);
|
|
2740
2206
|
}
|
|
2741
|
-
if (data.RevokedAt
|
|
2207
|
+
if (data.RevokedAt != null) {
|
|
2742
2208
|
contents.RevokedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.RevokedAt));
|
|
2743
2209
|
}
|
|
2744
|
-
if (data.SourceId
|
|
2210
|
+
if (data.SourceId != null) {
|
|
2745
2211
|
contents.SourceId = (0, smithy_client_1.expectString)(data.SourceId);
|
|
2746
2212
|
}
|
|
2747
|
-
if (data.UpdatedAt
|
|
2213
|
+
if (data.UpdatedAt != null) {
|
|
2748
2214
|
contents.UpdatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.UpdatedAt));
|
|
2749
2215
|
}
|
|
2750
|
-
return
|
|
2216
|
+
return contents;
|
|
2751
2217
|
};
|
|
2752
2218
|
exports.deserializeAws_restJson1UpdateRevisionCommand = deserializeAws_restJson1UpdateRevisionCommand;
|
|
2753
2219
|
const deserializeAws_restJson1UpdateRevisionCommandError = async (output, context) => {
|
|
@@ -2755,7 +2221,6 @@ const deserializeAws_restJson1UpdateRevisionCommandError = async (output, contex
|
|
|
2755
2221
|
...output,
|
|
2756
2222
|
body: await parseBody(output.body, context),
|
|
2757
2223
|
};
|
|
2758
|
-
let response;
|
|
2759
2224
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2760
2225
|
switch (errorCode) {
|
|
2761
2226
|
case "AccessDeniedException":
|
|
@@ -2778,20 +2243,19 @@ const deserializeAws_restJson1UpdateRevisionCommandError = async (output, contex
|
|
|
2778
2243
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2779
2244
|
default:
|
|
2780
2245
|
const parsedBody = parsedOutput.body;
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
$metadata,
|
|
2246
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2247
|
+
output,
|
|
2248
|
+
parsedBody,
|
|
2249
|
+
exceptionCtor: DataExchangeServiceException_1.DataExchangeServiceException,
|
|
2250
|
+
errorCode,
|
|
2787
2251
|
});
|
|
2788
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2789
2252
|
}
|
|
2790
2253
|
};
|
|
2254
|
+
const map = smithy_client_1.map;
|
|
2791
2255
|
const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
2792
|
-
const contents = {};
|
|
2256
|
+
const contents = map({});
|
|
2793
2257
|
const data = parsedOutput.body;
|
|
2794
|
-
if (data.Message
|
|
2258
|
+
if (data.Message != null) {
|
|
2795
2259
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
2796
2260
|
}
|
|
2797
2261
|
const exception = new models_0_1.AccessDeniedException({
|
|
@@ -2801,15 +2265,15 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
|
|
|
2801
2265
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2802
2266
|
};
|
|
2803
2267
|
const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
2804
|
-
const contents = {};
|
|
2268
|
+
const contents = map({});
|
|
2805
2269
|
const data = parsedOutput.body;
|
|
2806
|
-
if (data.Message
|
|
2270
|
+
if (data.Message != null) {
|
|
2807
2271
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
2808
2272
|
}
|
|
2809
|
-
if (data.ResourceId
|
|
2273
|
+
if (data.ResourceId != null) {
|
|
2810
2274
|
contents.ResourceId = (0, smithy_client_1.expectString)(data.ResourceId);
|
|
2811
2275
|
}
|
|
2812
|
-
if (data.ResourceType
|
|
2276
|
+
if (data.ResourceType != null) {
|
|
2813
2277
|
contents.ResourceType = (0, smithy_client_1.expectString)(data.ResourceType);
|
|
2814
2278
|
}
|
|
2815
2279
|
const exception = new models_0_1.ConflictException({
|
|
@@ -2819,9 +2283,9 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
2819
2283
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2820
2284
|
};
|
|
2821
2285
|
const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
|
|
2822
|
-
const contents = {};
|
|
2286
|
+
const contents = map({});
|
|
2823
2287
|
const data = parsedOutput.body;
|
|
2824
|
-
if (data.Message
|
|
2288
|
+
if (data.Message != null) {
|
|
2825
2289
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
2826
2290
|
}
|
|
2827
2291
|
const exception = new models_0_1.InternalServerException({
|
|
@@ -2831,15 +2295,15 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
2831
2295
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2832
2296
|
};
|
|
2833
2297
|
const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
2834
|
-
const contents = {};
|
|
2298
|
+
const contents = map({});
|
|
2835
2299
|
const data = parsedOutput.body;
|
|
2836
|
-
if (data.Message
|
|
2300
|
+
if (data.Message != null) {
|
|
2837
2301
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
2838
2302
|
}
|
|
2839
|
-
if (data.ResourceId
|
|
2303
|
+
if (data.ResourceId != null) {
|
|
2840
2304
|
contents.ResourceId = (0, smithy_client_1.expectString)(data.ResourceId);
|
|
2841
2305
|
}
|
|
2842
|
-
if (data.ResourceType
|
|
2306
|
+
if (data.ResourceType != null) {
|
|
2843
2307
|
contents.ResourceType = (0, smithy_client_1.expectString)(data.ResourceType);
|
|
2844
2308
|
}
|
|
2845
2309
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
@@ -2849,15 +2313,15 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
2849
2313
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2850
2314
|
};
|
|
2851
2315
|
const deserializeAws_restJson1ServiceLimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
2852
|
-
const contents = {};
|
|
2316
|
+
const contents = map({});
|
|
2853
2317
|
const data = parsedOutput.body;
|
|
2854
|
-
if (data.LimitName
|
|
2318
|
+
if (data.LimitName != null) {
|
|
2855
2319
|
contents.LimitName = (0, smithy_client_1.expectString)(data.LimitName);
|
|
2856
2320
|
}
|
|
2857
|
-
if (data.LimitValue
|
|
2321
|
+
if (data.LimitValue != null) {
|
|
2858
2322
|
contents.LimitValue = (0, smithy_client_1.limitedParseDouble)(data.LimitValue);
|
|
2859
2323
|
}
|
|
2860
|
-
if (data.Message
|
|
2324
|
+
if (data.Message != null) {
|
|
2861
2325
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
2862
2326
|
}
|
|
2863
2327
|
const exception = new models_0_1.ServiceLimitExceededException({
|
|
@@ -2867,9 +2331,9 @@ const deserializeAws_restJson1ServiceLimitExceededExceptionResponse = async (par
|
|
|
2867
2331
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2868
2332
|
};
|
|
2869
2333
|
const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
|
|
2870
|
-
const contents = {};
|
|
2334
|
+
const contents = map({});
|
|
2871
2335
|
const data = parsedOutput.body;
|
|
2872
|
-
if (data.Message
|
|
2336
|
+
if (data.Message != null) {
|
|
2873
2337
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
2874
2338
|
}
|
|
2875
2339
|
const exception = new models_0_1.ThrottlingException({
|
|
@@ -2879,12 +2343,12 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
2879
2343
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2880
2344
|
};
|
|
2881
2345
|
const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
|
|
2882
|
-
const contents = {};
|
|
2346
|
+
const contents = map({});
|
|
2883
2347
|
const data = parsedOutput.body;
|
|
2884
|
-
if (data.ExceptionCause
|
|
2348
|
+
if (data.ExceptionCause != null) {
|
|
2885
2349
|
contents.ExceptionCause = (0, smithy_client_1.expectString)(data.ExceptionCause);
|
|
2886
2350
|
}
|
|
2887
|
-
if (data.Message
|
|
2351
|
+
if (data.Message != null) {
|
|
2888
2352
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
2889
2353
|
}
|
|
2890
2354
|
const exception = new models_0_1.ValidationException({
|
|
@@ -3015,9 +2479,6 @@ const serializeAws_restJson1ListOfAssetDestinationEntry = (input, context) => {
|
|
|
3015
2479
|
return input
|
|
3016
2480
|
.filter((e) => e != null)
|
|
3017
2481
|
.map((entry) => {
|
|
3018
|
-
if (entry === null) {
|
|
3019
|
-
return null;
|
|
3020
|
-
}
|
|
3021
2482
|
return serializeAws_restJson1AssetDestinationEntry(entry, context);
|
|
3022
2483
|
});
|
|
3023
2484
|
};
|
|
@@ -3025,9 +2486,6 @@ const serializeAws_restJson1ListOfAssetSourceEntry = (input, context) => {
|
|
|
3025
2486
|
return input
|
|
3026
2487
|
.filter((e) => e != null)
|
|
3027
2488
|
.map((entry) => {
|
|
3028
|
-
if (entry === null) {
|
|
3029
|
-
return null;
|
|
3030
|
-
}
|
|
3031
2489
|
return serializeAws_restJson1AssetSourceEntry(entry, context);
|
|
3032
2490
|
});
|
|
3033
2491
|
};
|
|
@@ -3035,9 +2493,6 @@ const serializeAws_restJson1ListOfRedshiftDataShareAssetSourceEntry = (input, co
|
|
|
3035
2493
|
return input
|
|
3036
2494
|
.filter((e) => e != null)
|
|
3037
2495
|
.map((entry) => {
|
|
3038
|
-
if (entry === null) {
|
|
3039
|
-
return null;
|
|
3040
|
-
}
|
|
3041
2496
|
return serializeAws_restJson1RedshiftDataShareAssetSourceEntry(entry, context);
|
|
3042
2497
|
});
|
|
3043
2498
|
};
|
|
@@ -3045,9 +2500,6 @@ const serializeAws_restJson1ListOfRevisionDestinationEntry = (input, context) =>
|
|
|
3045
2500
|
return input
|
|
3046
2501
|
.filter((e) => e != null)
|
|
3047
2502
|
.map((entry) => {
|
|
3048
|
-
if (entry === null) {
|
|
3049
|
-
return null;
|
|
3050
|
-
}
|
|
3051
2503
|
return serializeAws_restJson1RevisionDestinationEntry(entry, context);
|
|
3052
2504
|
});
|
|
3053
2505
|
};
|