@aws-sdk/client-dataexchange 3.303.0 → 3.309.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/commands/CancelJobCommand.js +2 -2
- package/dist-cjs/commands/CreateDataSetCommand.js +2 -2
- package/dist-cjs/commands/CreateEventActionCommand.js +2 -2
- package/dist-cjs/commands/CreateJobCommand.js +2 -2
- package/dist-cjs/commands/CreateRevisionCommand.js +2 -2
- package/dist-cjs/commands/DeleteAssetCommand.js +2 -2
- package/dist-cjs/commands/DeleteDataSetCommand.js +2 -2
- package/dist-cjs/commands/DeleteEventActionCommand.js +2 -2
- package/dist-cjs/commands/DeleteRevisionCommand.js +2 -2
- package/dist-cjs/commands/GetAssetCommand.js +2 -2
- package/dist-cjs/commands/GetDataSetCommand.js +2 -2
- package/dist-cjs/commands/GetEventActionCommand.js +2 -2
- package/dist-cjs/commands/GetJobCommand.js +2 -2
- package/dist-cjs/commands/GetRevisionCommand.js +2 -2
- package/dist-cjs/commands/ListDataSetRevisionsCommand.js +2 -2
- package/dist-cjs/commands/ListDataSetsCommand.js +2 -2
- package/dist-cjs/commands/ListEventActionsCommand.js +2 -2
- package/dist-cjs/commands/ListJobsCommand.js +2 -2
- package/dist-cjs/commands/ListRevisionAssetsCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/RevokeRevisionCommand.js +2 -2
- package/dist-cjs/commands/SendApiAssetCommand.js +2 -2
- package/dist-cjs/commands/StartJobCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateAssetCommand.js +2 -2
- package/dist-cjs/commands/UpdateDataSetCommand.js +2 -2
- package/dist-cjs/commands/UpdateEventActionCommand.js +2 -2
- package/dist-cjs/commands/UpdateRevisionCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +544 -592
- package/dist-es/commands/CancelJobCommand.js +3 -3
- package/dist-es/commands/CreateDataSetCommand.js +3 -3
- package/dist-es/commands/CreateEventActionCommand.js +3 -3
- package/dist-es/commands/CreateJobCommand.js +3 -3
- package/dist-es/commands/CreateRevisionCommand.js +3 -3
- package/dist-es/commands/DeleteAssetCommand.js +3 -3
- package/dist-es/commands/DeleteDataSetCommand.js +3 -3
- package/dist-es/commands/DeleteEventActionCommand.js +3 -3
- package/dist-es/commands/DeleteRevisionCommand.js +3 -3
- package/dist-es/commands/GetAssetCommand.js +3 -3
- package/dist-es/commands/GetDataSetCommand.js +3 -3
- package/dist-es/commands/GetEventActionCommand.js +3 -3
- package/dist-es/commands/GetJobCommand.js +3 -3
- package/dist-es/commands/GetRevisionCommand.js +3 -3
- package/dist-es/commands/ListDataSetRevisionsCommand.js +3 -3
- package/dist-es/commands/ListDataSetsCommand.js +3 -3
- package/dist-es/commands/ListEventActionsCommand.js +3 -3
- package/dist-es/commands/ListJobsCommand.js +3 -3
- package/dist-es/commands/ListRevisionAssetsCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/RevokeRevisionCommand.js +3 -3
- package/dist-es/commands/SendApiAssetCommand.js +3 -3
- package/dist-es/commands/StartJobCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateAssetCommand.js +3 -3
- package/dist-es/commands/UpdateDataSetCommand.js +3 -3
- package/dist-es/commands/UpdateEventActionCommand.js +3 -3
- package/dist-es/commands/UpdateRevisionCommand.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +484 -532
- package/dist-types/protocols/Aws_restJson1.d.ts +232 -58
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +58 -58
- package/package.json +29 -29
|
@@ -2,7 +2,7 @@ import { HttpRequest as __HttpRequest, isValidHostname as __isValidHostname, } f
|
|
|
2
2
|
import { convertMap, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map as __map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { DataExchangeServiceException as __BaseException } from "../models/DataExchangeServiceException";
|
|
4
4
|
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceLimitExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
5
|
-
export const
|
|
5
|
+
export const se_CancelJobCommand = async (input, context) => {
|
|
6
6
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
7
7
|
const headers = {};
|
|
8
8
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/jobs/{JobId}";
|
|
@@ -18,7 +18,7 @@ export const serializeAws_restJson1CancelJobCommand = async (input, context) =>
|
|
|
18
18
|
body,
|
|
19
19
|
});
|
|
20
20
|
};
|
|
21
|
-
export const
|
|
21
|
+
export const se_CreateDataSetCommand = async (input, context) => {
|
|
22
22
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
23
23
|
const headers = {
|
|
24
24
|
"content-type": "application/json",
|
|
@@ -29,7 +29,7 @@ export const serializeAws_restJson1CreateDataSetCommand = async (input, context)
|
|
|
29
29
|
...(input.AssetType != null && { AssetType: input.AssetType }),
|
|
30
30
|
...(input.Description != null && { Description: input.Description }),
|
|
31
31
|
...(input.Name != null && { Name: input.Name }),
|
|
32
|
-
...(input.Tags != null && { Tags:
|
|
32
|
+
...(input.Tags != null && { Tags: se_MapOf__string(input.Tags, context) }),
|
|
33
33
|
});
|
|
34
34
|
return new __HttpRequest({
|
|
35
35
|
protocol,
|
|
@@ -41,7 +41,7 @@ export const serializeAws_restJson1CreateDataSetCommand = async (input, context)
|
|
|
41
41
|
body,
|
|
42
42
|
});
|
|
43
43
|
};
|
|
44
|
-
export const
|
|
44
|
+
export const se_CreateEventActionCommand = async (input, context) => {
|
|
45
45
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
46
46
|
const headers = {
|
|
47
47
|
"content-type": "application/json",
|
|
@@ -49,8 +49,8 @@ export const serializeAws_restJson1CreateEventActionCommand = async (input, cont
|
|
|
49
49
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/event-actions";
|
|
50
50
|
let body;
|
|
51
51
|
body = JSON.stringify({
|
|
52
|
-
...(input.Action != null && { Action:
|
|
53
|
-
...(input.Event != null && { Event:
|
|
52
|
+
...(input.Action != null && { Action: se_Action(input.Action, context) }),
|
|
53
|
+
...(input.Event != null && { Event: se_Event(input.Event, context) }),
|
|
54
54
|
});
|
|
55
55
|
return new __HttpRequest({
|
|
56
56
|
protocol,
|
|
@@ -62,7 +62,7 @@ export const serializeAws_restJson1CreateEventActionCommand = async (input, cont
|
|
|
62
62
|
body,
|
|
63
63
|
});
|
|
64
64
|
};
|
|
65
|
-
export const
|
|
65
|
+
export const se_CreateJobCommand = async (input, context) => {
|
|
66
66
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
67
67
|
const headers = {
|
|
68
68
|
"content-type": "application/json",
|
|
@@ -70,7 +70,7 @@ export const serializeAws_restJson1CreateJobCommand = async (input, context) =>
|
|
|
70
70
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/jobs";
|
|
71
71
|
let body;
|
|
72
72
|
body = JSON.stringify({
|
|
73
|
-
...(input.Details != null && { Details:
|
|
73
|
+
...(input.Details != null && { Details: se_RequestDetails(input.Details, context) }),
|
|
74
74
|
...(input.Type != null && { Type: input.Type }),
|
|
75
75
|
});
|
|
76
76
|
return new __HttpRequest({
|
|
@@ -83,7 +83,7 @@ export const serializeAws_restJson1CreateJobCommand = async (input, context) =>
|
|
|
83
83
|
body,
|
|
84
84
|
});
|
|
85
85
|
};
|
|
86
|
-
export const
|
|
86
|
+
export const se_CreateRevisionCommand = async (input, context) => {
|
|
87
87
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
88
88
|
const headers = {
|
|
89
89
|
"content-type": "application/json",
|
|
@@ -93,7 +93,7 @@ export const serializeAws_restJson1CreateRevisionCommand = async (input, context
|
|
|
93
93
|
let body;
|
|
94
94
|
body = JSON.stringify({
|
|
95
95
|
...(input.Comment != null && { Comment: input.Comment }),
|
|
96
|
-
...(input.Tags != null && { Tags:
|
|
96
|
+
...(input.Tags != null && { Tags: se_MapOf__string(input.Tags, context) }),
|
|
97
97
|
});
|
|
98
98
|
return new __HttpRequest({
|
|
99
99
|
protocol,
|
|
@@ -105,7 +105,7 @@ export const serializeAws_restJson1CreateRevisionCommand = async (input, context
|
|
|
105
105
|
body,
|
|
106
106
|
});
|
|
107
107
|
};
|
|
108
|
-
export const
|
|
108
|
+
export const se_DeleteAssetCommand = async (input, context) => {
|
|
109
109
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
110
110
|
const headers = {};
|
|
111
111
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -124,7 +124,7 @@ export const serializeAws_restJson1DeleteAssetCommand = async (input, context) =
|
|
|
124
124
|
body,
|
|
125
125
|
});
|
|
126
126
|
};
|
|
127
|
-
export const
|
|
127
|
+
export const se_DeleteDataSetCommand = async (input, context) => {
|
|
128
128
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
129
129
|
const headers = {};
|
|
130
130
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/data-sets/{DataSetId}";
|
|
@@ -140,7 +140,7 @@ export const serializeAws_restJson1DeleteDataSetCommand = async (input, context)
|
|
|
140
140
|
body,
|
|
141
141
|
});
|
|
142
142
|
};
|
|
143
|
-
export const
|
|
143
|
+
export const se_DeleteEventActionCommand = async (input, context) => {
|
|
144
144
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
145
145
|
const headers = {};
|
|
146
146
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/event-actions/{EventActionId}";
|
|
@@ -156,7 +156,7 @@ export const serializeAws_restJson1DeleteEventActionCommand = async (input, cont
|
|
|
156
156
|
body,
|
|
157
157
|
});
|
|
158
158
|
};
|
|
159
|
-
export const
|
|
159
|
+
export const se_DeleteRevisionCommand = async (input, context) => {
|
|
160
160
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
161
161
|
const headers = {};
|
|
162
162
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -174,7 +174,7 @@ export const serializeAws_restJson1DeleteRevisionCommand = async (input, context
|
|
|
174
174
|
body,
|
|
175
175
|
});
|
|
176
176
|
};
|
|
177
|
-
export const
|
|
177
|
+
export const se_GetAssetCommand = async (input, context) => {
|
|
178
178
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
179
179
|
const headers = {};
|
|
180
180
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -193,7 +193,7 @@ export const serializeAws_restJson1GetAssetCommand = async (input, context) => {
|
|
|
193
193
|
body,
|
|
194
194
|
});
|
|
195
195
|
};
|
|
196
|
-
export const
|
|
196
|
+
export const se_GetDataSetCommand = async (input, context) => {
|
|
197
197
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
198
198
|
const headers = {};
|
|
199
199
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/data-sets/{DataSetId}";
|
|
@@ -209,7 +209,7 @@ export const serializeAws_restJson1GetDataSetCommand = async (input, context) =>
|
|
|
209
209
|
body,
|
|
210
210
|
});
|
|
211
211
|
};
|
|
212
|
-
export const
|
|
212
|
+
export const se_GetEventActionCommand = async (input, context) => {
|
|
213
213
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
214
214
|
const headers = {};
|
|
215
215
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/event-actions/{EventActionId}";
|
|
@@ -225,7 +225,7 @@ export const serializeAws_restJson1GetEventActionCommand = async (input, context
|
|
|
225
225
|
body,
|
|
226
226
|
});
|
|
227
227
|
};
|
|
228
|
-
export const
|
|
228
|
+
export const se_GetJobCommand = async (input, context) => {
|
|
229
229
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
230
230
|
const headers = {};
|
|
231
231
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/jobs/{JobId}";
|
|
@@ -241,7 +241,7 @@ export const serializeAws_restJson1GetJobCommand = async (input, context) => {
|
|
|
241
241
|
body,
|
|
242
242
|
});
|
|
243
243
|
};
|
|
244
|
-
export const
|
|
244
|
+
export const se_GetRevisionCommand = async (input, context) => {
|
|
245
245
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
246
246
|
const headers = {};
|
|
247
247
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -259,7 +259,7 @@ export const serializeAws_restJson1GetRevisionCommand = async (input, context) =
|
|
|
259
259
|
body,
|
|
260
260
|
});
|
|
261
261
|
};
|
|
262
|
-
export const
|
|
262
|
+
export const se_ListDataSetRevisionsCommand = async (input, context) => {
|
|
263
263
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
264
264
|
const headers = {};
|
|
265
265
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/data-sets/{DataSetId}/revisions";
|
|
@@ -280,7 +280,7 @@ export const serializeAws_restJson1ListDataSetRevisionsCommand = async (input, c
|
|
|
280
280
|
body,
|
|
281
281
|
});
|
|
282
282
|
};
|
|
283
|
-
export const
|
|
283
|
+
export const se_ListDataSetsCommand = async (input, context) => {
|
|
284
284
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
285
285
|
const headers = {};
|
|
286
286
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/data-sets";
|
|
@@ -301,7 +301,7 @@ export const serializeAws_restJson1ListDataSetsCommand = async (input, context)
|
|
|
301
301
|
body,
|
|
302
302
|
});
|
|
303
303
|
};
|
|
304
|
-
export const
|
|
304
|
+
export const se_ListEventActionsCommand = async (input, context) => {
|
|
305
305
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
306
306
|
const headers = {};
|
|
307
307
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/event-actions";
|
|
@@ -322,7 +322,7 @@ export const serializeAws_restJson1ListEventActionsCommand = async (input, conte
|
|
|
322
322
|
body,
|
|
323
323
|
});
|
|
324
324
|
};
|
|
325
|
-
export const
|
|
325
|
+
export const se_ListJobsCommand = async (input, context) => {
|
|
326
326
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
327
327
|
const headers = {};
|
|
328
328
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/jobs";
|
|
@@ -344,7 +344,7 @@ export const serializeAws_restJson1ListJobsCommand = async (input, context) => {
|
|
|
344
344
|
body,
|
|
345
345
|
});
|
|
346
346
|
};
|
|
347
|
-
export const
|
|
347
|
+
export const se_ListRevisionAssetsCommand = async (input, context) => {
|
|
348
348
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
349
349
|
const headers = {};
|
|
350
350
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -367,7 +367,7 @@ export const serializeAws_restJson1ListRevisionAssetsCommand = async (input, con
|
|
|
367
367
|
body,
|
|
368
368
|
});
|
|
369
369
|
};
|
|
370
|
-
export const
|
|
370
|
+
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
371
371
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
372
372
|
const headers = {};
|
|
373
373
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
@@ -383,7 +383,7 @@ export const serializeAws_restJson1ListTagsForResourceCommand = async (input, co
|
|
|
383
383
|
body,
|
|
384
384
|
});
|
|
385
385
|
};
|
|
386
|
-
export const
|
|
386
|
+
export const se_RevokeRevisionCommand = async (input, context) => {
|
|
387
387
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
388
388
|
const headers = {
|
|
389
389
|
"content-type": "application/json",
|
|
@@ -406,7 +406,7 @@ export const serializeAws_restJson1RevokeRevisionCommand = async (input, context
|
|
|
406
406
|
body,
|
|
407
407
|
});
|
|
408
408
|
};
|
|
409
|
-
export const
|
|
409
|
+
export const se_SendApiAssetCommand = async (input, context) => {
|
|
410
410
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
411
411
|
const headers = map({}, isSerializableHeaderValue, {
|
|
412
412
|
"content-type": "text/plain",
|
|
@@ -447,7 +447,7 @@ export const serializeAws_restJson1SendApiAssetCommand = async (input, context)
|
|
|
447
447
|
body,
|
|
448
448
|
});
|
|
449
449
|
};
|
|
450
|
-
export const
|
|
450
|
+
export const se_StartJobCommand = async (input, context) => {
|
|
451
451
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
452
452
|
const headers = {};
|
|
453
453
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/jobs/{JobId}";
|
|
@@ -463,7 +463,7 @@ export const serializeAws_restJson1StartJobCommand = async (input, context) => {
|
|
|
463
463
|
body,
|
|
464
464
|
});
|
|
465
465
|
};
|
|
466
|
-
export const
|
|
466
|
+
export const se_TagResourceCommand = async (input, context) => {
|
|
467
467
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
468
468
|
const headers = {
|
|
469
469
|
"content-type": "application/json",
|
|
@@ -472,7 +472,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
|
|
|
472
472
|
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
473
473
|
let body;
|
|
474
474
|
body = JSON.stringify({
|
|
475
|
-
...(input.Tags != null && { tags:
|
|
475
|
+
...(input.Tags != null && { tags: se_MapOf__string(input.Tags, context) }),
|
|
476
476
|
});
|
|
477
477
|
return new __HttpRequest({
|
|
478
478
|
protocol,
|
|
@@ -484,7 +484,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
|
|
|
484
484
|
body,
|
|
485
485
|
});
|
|
486
486
|
};
|
|
487
|
-
export const
|
|
487
|
+
export const se_UntagResourceCommand = async (input, context) => {
|
|
488
488
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
489
489
|
const headers = {};
|
|
490
490
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
@@ -507,7 +507,7 @@ export const serializeAws_restJson1UntagResourceCommand = async (input, context)
|
|
|
507
507
|
body,
|
|
508
508
|
});
|
|
509
509
|
};
|
|
510
|
-
export const
|
|
510
|
+
export const se_UpdateAssetCommand = async (input, context) => {
|
|
511
511
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
512
512
|
const headers = {
|
|
513
513
|
"content-type": "application/json",
|
|
@@ -531,7 +531,7 @@ export const serializeAws_restJson1UpdateAssetCommand = async (input, context) =
|
|
|
531
531
|
body,
|
|
532
532
|
});
|
|
533
533
|
};
|
|
534
|
-
export const
|
|
534
|
+
export const se_UpdateDataSetCommand = async (input, context) => {
|
|
535
535
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
536
536
|
const headers = {
|
|
537
537
|
"content-type": "application/json",
|
|
@@ -553,7 +553,7 @@ export const serializeAws_restJson1UpdateDataSetCommand = async (input, context)
|
|
|
553
553
|
body,
|
|
554
554
|
});
|
|
555
555
|
};
|
|
556
|
-
export const
|
|
556
|
+
export const se_UpdateEventActionCommand = async (input, context) => {
|
|
557
557
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
558
558
|
const headers = {
|
|
559
559
|
"content-type": "application/json",
|
|
@@ -562,7 +562,7 @@ export const serializeAws_restJson1UpdateEventActionCommand = async (input, cont
|
|
|
562
562
|
resolvedPath = __resolvedPath(resolvedPath, input, "EventActionId", () => input.EventActionId, "{EventActionId}", false);
|
|
563
563
|
let body;
|
|
564
564
|
body = JSON.stringify({
|
|
565
|
-
...(input.Action != null && { Action:
|
|
565
|
+
...(input.Action != null && { Action: se_Action(input.Action, context) }),
|
|
566
566
|
});
|
|
567
567
|
return new __HttpRequest({
|
|
568
568
|
protocol,
|
|
@@ -574,7 +574,7 @@ export const serializeAws_restJson1UpdateEventActionCommand = async (input, cont
|
|
|
574
574
|
body,
|
|
575
575
|
});
|
|
576
576
|
};
|
|
577
|
-
export const
|
|
577
|
+
export const se_UpdateRevisionCommand = async (input, context) => {
|
|
578
578
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
579
579
|
const headers = {
|
|
580
580
|
"content-type": "application/json",
|
|
@@ -598,9 +598,9 @@ export const serializeAws_restJson1UpdateRevisionCommand = async (input, context
|
|
|
598
598
|
body,
|
|
599
599
|
});
|
|
600
600
|
};
|
|
601
|
-
export const
|
|
601
|
+
export const de_CancelJobCommand = async (output, context) => {
|
|
602
602
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
603
|
-
return
|
|
603
|
+
return de_CancelJobCommandError(output, context);
|
|
604
604
|
}
|
|
605
605
|
const contents = map({
|
|
606
606
|
$metadata: deserializeMetadata(output),
|
|
@@ -608,7 +608,7 @@ export const deserializeAws_restJson1CancelJobCommand = async (output, context)
|
|
|
608
608
|
await collectBody(output.body, context);
|
|
609
609
|
return contents;
|
|
610
610
|
};
|
|
611
|
-
const
|
|
611
|
+
const de_CancelJobCommandError = async (output, context) => {
|
|
612
612
|
const parsedOutput = {
|
|
613
613
|
...output,
|
|
614
614
|
body: await parseErrorBody(output.body, context),
|
|
@@ -617,19 +617,19 @@ const deserializeAws_restJson1CancelJobCommandError = async (output, context) =>
|
|
|
617
617
|
switch (errorCode) {
|
|
618
618
|
case "ConflictException":
|
|
619
619
|
case "com.amazonaws.dataexchange#ConflictException":
|
|
620
|
-
throw await
|
|
620
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
621
621
|
case "InternalServerException":
|
|
622
622
|
case "com.amazonaws.dataexchange#InternalServerException":
|
|
623
|
-
throw await
|
|
623
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
624
624
|
case "ResourceNotFoundException":
|
|
625
625
|
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
626
|
-
throw await
|
|
626
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
627
627
|
case "ThrottlingException":
|
|
628
628
|
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
629
|
-
throw await
|
|
629
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
630
630
|
case "ValidationException":
|
|
631
631
|
case "com.amazonaws.dataexchange#ValidationException":
|
|
632
|
-
throw await
|
|
632
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
633
633
|
default:
|
|
634
634
|
const parsedBody = parsedOutput.body;
|
|
635
635
|
throwDefaultError({
|
|
@@ -640,9 +640,9 @@ const deserializeAws_restJson1CancelJobCommandError = async (output, context) =>
|
|
|
640
640
|
});
|
|
641
641
|
}
|
|
642
642
|
};
|
|
643
|
-
export const
|
|
643
|
+
export const de_CreateDataSetCommand = async (output, context) => {
|
|
644
644
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
645
|
-
return
|
|
645
|
+
return de_CreateDataSetCommandError(output, context);
|
|
646
646
|
}
|
|
647
647
|
const contents = map({
|
|
648
648
|
$metadata: deserializeMetadata(output),
|
|
@@ -670,20 +670,20 @@ export const deserializeAws_restJson1CreateDataSetCommand = async (output, conte
|
|
|
670
670
|
contents.Origin = __expectString(data.Origin);
|
|
671
671
|
}
|
|
672
672
|
if (data.OriginDetails != null) {
|
|
673
|
-
contents.OriginDetails =
|
|
673
|
+
contents.OriginDetails = de_OriginDetails(data.OriginDetails, context);
|
|
674
674
|
}
|
|
675
675
|
if (data.SourceId != null) {
|
|
676
676
|
contents.SourceId = __expectString(data.SourceId);
|
|
677
677
|
}
|
|
678
678
|
if (data.Tags != null) {
|
|
679
|
-
contents.Tags =
|
|
679
|
+
contents.Tags = de_MapOf__string(data.Tags, context);
|
|
680
680
|
}
|
|
681
681
|
if (data.UpdatedAt != null) {
|
|
682
682
|
contents.UpdatedAt = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.UpdatedAt));
|
|
683
683
|
}
|
|
684
684
|
return contents;
|
|
685
685
|
};
|
|
686
|
-
const
|
|
686
|
+
const de_CreateDataSetCommandError = async (output, context) => {
|
|
687
687
|
const parsedOutput = {
|
|
688
688
|
...output,
|
|
689
689
|
body: await parseErrorBody(output.body, context),
|
|
@@ -692,19 +692,19 @@ const deserializeAws_restJson1CreateDataSetCommandError = async (output, context
|
|
|
692
692
|
switch (errorCode) {
|
|
693
693
|
case "AccessDeniedException":
|
|
694
694
|
case "com.amazonaws.dataexchange#AccessDeniedException":
|
|
695
|
-
throw await
|
|
695
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
696
696
|
case "InternalServerException":
|
|
697
697
|
case "com.amazonaws.dataexchange#InternalServerException":
|
|
698
|
-
throw await
|
|
698
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
699
699
|
case "ServiceLimitExceededException":
|
|
700
700
|
case "com.amazonaws.dataexchange#ServiceLimitExceededException":
|
|
701
|
-
throw await
|
|
701
|
+
throw await de_ServiceLimitExceededExceptionRes(parsedOutput, context);
|
|
702
702
|
case "ThrottlingException":
|
|
703
703
|
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
704
|
-
throw await
|
|
704
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
705
705
|
case "ValidationException":
|
|
706
706
|
case "com.amazonaws.dataexchange#ValidationException":
|
|
707
|
-
throw await
|
|
707
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
708
708
|
default:
|
|
709
709
|
const parsedBody = parsedOutput.body;
|
|
710
710
|
throwDefaultError({
|
|
@@ -715,16 +715,16 @@ const deserializeAws_restJson1CreateDataSetCommandError = async (output, context
|
|
|
715
715
|
});
|
|
716
716
|
}
|
|
717
717
|
};
|
|
718
|
-
export const
|
|
718
|
+
export const de_CreateEventActionCommand = async (output, context) => {
|
|
719
719
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
720
|
-
return
|
|
720
|
+
return de_CreateEventActionCommandError(output, context);
|
|
721
721
|
}
|
|
722
722
|
const contents = map({
|
|
723
723
|
$metadata: deserializeMetadata(output),
|
|
724
724
|
});
|
|
725
725
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
726
726
|
if (data.Action != null) {
|
|
727
|
-
contents.Action =
|
|
727
|
+
contents.Action = de_Action(data.Action, context);
|
|
728
728
|
}
|
|
729
729
|
if (data.Arn != null) {
|
|
730
730
|
contents.Arn = __expectString(data.Arn);
|
|
@@ -733,7 +733,7 @@ export const deserializeAws_restJson1CreateEventActionCommand = async (output, c
|
|
|
733
733
|
contents.CreatedAt = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.CreatedAt));
|
|
734
734
|
}
|
|
735
735
|
if (data.Event != null) {
|
|
736
|
-
contents.Event =
|
|
736
|
+
contents.Event = de_Event(data.Event, context);
|
|
737
737
|
}
|
|
738
738
|
if (data.Id != null) {
|
|
739
739
|
contents.Id = __expectString(data.Id);
|
|
@@ -743,7 +743,7 @@ export const deserializeAws_restJson1CreateEventActionCommand = async (output, c
|
|
|
743
743
|
}
|
|
744
744
|
return contents;
|
|
745
745
|
};
|
|
746
|
-
const
|
|
746
|
+
const de_CreateEventActionCommandError = async (output, context) => {
|
|
747
747
|
const parsedOutput = {
|
|
748
748
|
...output,
|
|
749
749
|
body: await parseErrorBody(output.body, context),
|
|
@@ -752,19 +752,19 @@ const deserializeAws_restJson1CreateEventActionCommandError = async (output, con
|
|
|
752
752
|
switch (errorCode) {
|
|
753
753
|
case "AccessDeniedException":
|
|
754
754
|
case "com.amazonaws.dataexchange#AccessDeniedException":
|
|
755
|
-
throw await
|
|
755
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
756
756
|
case "InternalServerException":
|
|
757
757
|
case "com.amazonaws.dataexchange#InternalServerException":
|
|
758
|
-
throw await
|
|
758
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
759
759
|
case "ServiceLimitExceededException":
|
|
760
760
|
case "com.amazonaws.dataexchange#ServiceLimitExceededException":
|
|
761
|
-
throw await
|
|
761
|
+
throw await de_ServiceLimitExceededExceptionRes(parsedOutput, context);
|
|
762
762
|
case "ThrottlingException":
|
|
763
763
|
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
764
|
-
throw await
|
|
764
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
765
765
|
case "ValidationException":
|
|
766
766
|
case "com.amazonaws.dataexchange#ValidationException":
|
|
767
|
-
throw await
|
|
767
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
768
768
|
default:
|
|
769
769
|
const parsedBody = parsedOutput.body;
|
|
770
770
|
throwDefaultError({
|
|
@@ -775,9 +775,9 @@ const deserializeAws_restJson1CreateEventActionCommandError = async (output, con
|
|
|
775
775
|
});
|
|
776
776
|
}
|
|
777
777
|
};
|
|
778
|
-
export const
|
|
778
|
+
export const de_CreateJobCommand = async (output, context) => {
|
|
779
779
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
780
|
-
return
|
|
780
|
+
return de_CreateJobCommandError(output, context);
|
|
781
781
|
}
|
|
782
782
|
const contents = map({
|
|
783
783
|
$metadata: deserializeMetadata(output),
|
|
@@ -790,10 +790,10 @@ export const deserializeAws_restJson1CreateJobCommand = async (output, context)
|
|
|
790
790
|
contents.CreatedAt = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.CreatedAt));
|
|
791
791
|
}
|
|
792
792
|
if (data.Details != null) {
|
|
793
|
-
contents.Details =
|
|
793
|
+
contents.Details = de_ResponseDetails(data.Details, context);
|
|
794
794
|
}
|
|
795
795
|
if (data.Errors != null) {
|
|
796
|
-
contents.Errors =
|
|
796
|
+
contents.Errors = de_ListOfJobError(data.Errors, context);
|
|
797
797
|
}
|
|
798
798
|
if (data.Id != null) {
|
|
799
799
|
contents.Id = __expectString(data.Id);
|
|
@@ -809,7 +809,7 @@ export const deserializeAws_restJson1CreateJobCommand = async (output, context)
|
|
|
809
809
|
}
|
|
810
810
|
return contents;
|
|
811
811
|
};
|
|
812
|
-
const
|
|
812
|
+
const de_CreateJobCommandError = async (output, context) => {
|
|
813
813
|
const parsedOutput = {
|
|
814
814
|
...output,
|
|
815
815
|
body: await parseErrorBody(output.body, context),
|
|
@@ -818,22 +818,22 @@ const deserializeAws_restJson1CreateJobCommandError = async (output, context) =>
|
|
|
818
818
|
switch (errorCode) {
|
|
819
819
|
case "AccessDeniedException":
|
|
820
820
|
case "com.amazonaws.dataexchange#AccessDeniedException":
|
|
821
|
-
throw await
|
|
821
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
822
822
|
case "ConflictException":
|
|
823
823
|
case "com.amazonaws.dataexchange#ConflictException":
|
|
824
|
-
throw await
|
|
824
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
825
825
|
case "InternalServerException":
|
|
826
826
|
case "com.amazonaws.dataexchange#InternalServerException":
|
|
827
|
-
throw await
|
|
827
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
828
828
|
case "ResourceNotFoundException":
|
|
829
829
|
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
830
|
-
throw await
|
|
830
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
831
831
|
case "ThrottlingException":
|
|
832
832
|
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
833
|
-
throw await
|
|
833
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
834
834
|
case "ValidationException":
|
|
835
835
|
case "com.amazonaws.dataexchange#ValidationException":
|
|
836
|
-
throw await
|
|
836
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
837
837
|
default:
|
|
838
838
|
const parsedBody = parsedOutput.body;
|
|
839
839
|
throwDefaultError({
|
|
@@ -844,9 +844,9 @@ const deserializeAws_restJson1CreateJobCommandError = async (output, context) =>
|
|
|
844
844
|
});
|
|
845
845
|
}
|
|
846
846
|
};
|
|
847
|
-
export const
|
|
847
|
+
export const de_CreateRevisionCommand = async (output, context) => {
|
|
848
848
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
849
|
-
return
|
|
849
|
+
return de_CreateRevisionCommandError(output, context);
|
|
850
850
|
}
|
|
851
851
|
const contents = map({
|
|
852
852
|
$metadata: deserializeMetadata(output),
|
|
@@ -883,14 +883,14 @@ export const deserializeAws_restJson1CreateRevisionCommand = async (output, cont
|
|
|
883
883
|
contents.SourceId = __expectString(data.SourceId);
|
|
884
884
|
}
|
|
885
885
|
if (data.Tags != null) {
|
|
886
|
-
contents.Tags =
|
|
886
|
+
contents.Tags = de_MapOf__string(data.Tags, context);
|
|
887
887
|
}
|
|
888
888
|
if (data.UpdatedAt != null) {
|
|
889
889
|
contents.UpdatedAt = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.UpdatedAt));
|
|
890
890
|
}
|
|
891
891
|
return contents;
|
|
892
892
|
};
|
|
893
|
-
const
|
|
893
|
+
const de_CreateRevisionCommandError = async (output, context) => {
|
|
894
894
|
const parsedOutput = {
|
|
895
895
|
...output,
|
|
896
896
|
body: await parseErrorBody(output.body, context),
|
|
@@ -899,19 +899,19 @@ const deserializeAws_restJson1CreateRevisionCommandError = async (output, contex
|
|
|
899
899
|
switch (errorCode) {
|
|
900
900
|
case "AccessDeniedException":
|
|
901
901
|
case "com.amazonaws.dataexchange#AccessDeniedException":
|
|
902
|
-
throw await
|
|
902
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
903
903
|
case "InternalServerException":
|
|
904
904
|
case "com.amazonaws.dataexchange#InternalServerException":
|
|
905
|
-
throw await
|
|
905
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
906
906
|
case "ResourceNotFoundException":
|
|
907
907
|
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
908
|
-
throw await
|
|
908
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
909
909
|
case "ThrottlingException":
|
|
910
910
|
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
911
|
-
throw await
|
|
911
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
912
912
|
case "ValidationException":
|
|
913
913
|
case "com.amazonaws.dataexchange#ValidationException":
|
|
914
|
-
throw await
|
|
914
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
915
915
|
default:
|
|
916
916
|
const parsedBody = parsedOutput.body;
|
|
917
917
|
throwDefaultError({
|
|
@@ -922,9 +922,9 @@ const deserializeAws_restJson1CreateRevisionCommandError = async (output, contex
|
|
|
922
922
|
});
|
|
923
923
|
}
|
|
924
924
|
};
|
|
925
|
-
export const
|
|
925
|
+
export const de_DeleteAssetCommand = async (output, context) => {
|
|
926
926
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
927
|
-
return
|
|
927
|
+
return de_DeleteAssetCommandError(output, context);
|
|
928
928
|
}
|
|
929
929
|
const contents = map({
|
|
930
930
|
$metadata: deserializeMetadata(output),
|
|
@@ -932,7 +932,7 @@ export const deserializeAws_restJson1DeleteAssetCommand = async (output, context
|
|
|
932
932
|
await collectBody(output.body, context);
|
|
933
933
|
return contents;
|
|
934
934
|
};
|
|
935
|
-
const
|
|
935
|
+
const de_DeleteAssetCommandError = async (output, context) => {
|
|
936
936
|
const parsedOutput = {
|
|
937
937
|
...output,
|
|
938
938
|
body: await parseErrorBody(output.body, context),
|
|
@@ -941,22 +941,22 @@ const deserializeAws_restJson1DeleteAssetCommandError = async (output, context)
|
|
|
941
941
|
switch (errorCode) {
|
|
942
942
|
case "AccessDeniedException":
|
|
943
943
|
case "com.amazonaws.dataexchange#AccessDeniedException":
|
|
944
|
-
throw await
|
|
944
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
945
945
|
case "ConflictException":
|
|
946
946
|
case "com.amazonaws.dataexchange#ConflictException":
|
|
947
|
-
throw await
|
|
947
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
948
948
|
case "InternalServerException":
|
|
949
949
|
case "com.amazonaws.dataexchange#InternalServerException":
|
|
950
|
-
throw await
|
|
950
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
951
951
|
case "ResourceNotFoundException":
|
|
952
952
|
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
953
|
-
throw await
|
|
953
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
954
954
|
case "ThrottlingException":
|
|
955
955
|
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
956
|
-
throw await
|
|
956
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
957
957
|
case "ValidationException":
|
|
958
958
|
case "com.amazonaws.dataexchange#ValidationException":
|
|
959
|
-
throw await
|
|
959
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
960
960
|
default:
|
|
961
961
|
const parsedBody = parsedOutput.body;
|
|
962
962
|
throwDefaultError({
|
|
@@ -967,9 +967,9 @@ const deserializeAws_restJson1DeleteAssetCommandError = async (output, context)
|
|
|
967
967
|
});
|
|
968
968
|
}
|
|
969
969
|
};
|
|
970
|
-
export const
|
|
970
|
+
export const de_DeleteDataSetCommand = async (output, context) => {
|
|
971
971
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
972
|
-
return
|
|
972
|
+
return de_DeleteDataSetCommandError(output, context);
|
|
973
973
|
}
|
|
974
974
|
const contents = map({
|
|
975
975
|
$metadata: deserializeMetadata(output),
|
|
@@ -977,7 +977,7 @@ export const deserializeAws_restJson1DeleteDataSetCommand = async (output, conte
|
|
|
977
977
|
await collectBody(output.body, context);
|
|
978
978
|
return contents;
|
|
979
979
|
};
|
|
980
|
-
const
|
|
980
|
+
const de_DeleteDataSetCommandError = async (output, context) => {
|
|
981
981
|
const parsedOutput = {
|
|
982
982
|
...output,
|
|
983
983
|
body: await parseErrorBody(output.body, context),
|
|
@@ -986,22 +986,22 @@ const deserializeAws_restJson1DeleteDataSetCommandError = async (output, context
|
|
|
986
986
|
switch (errorCode) {
|
|
987
987
|
case "AccessDeniedException":
|
|
988
988
|
case "com.amazonaws.dataexchange#AccessDeniedException":
|
|
989
|
-
throw await
|
|
989
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
990
990
|
case "ConflictException":
|
|
991
991
|
case "com.amazonaws.dataexchange#ConflictException":
|
|
992
|
-
throw await
|
|
992
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
993
993
|
case "InternalServerException":
|
|
994
994
|
case "com.amazonaws.dataexchange#InternalServerException":
|
|
995
|
-
throw await
|
|
995
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
996
996
|
case "ResourceNotFoundException":
|
|
997
997
|
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
998
|
-
throw await
|
|
998
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
999
999
|
case "ThrottlingException":
|
|
1000
1000
|
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1001
|
-
throw await
|
|
1001
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1002
1002
|
case "ValidationException":
|
|
1003
1003
|
case "com.amazonaws.dataexchange#ValidationException":
|
|
1004
|
-
throw await
|
|
1004
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1005
1005
|
default:
|
|
1006
1006
|
const parsedBody = parsedOutput.body;
|
|
1007
1007
|
throwDefaultError({
|
|
@@ -1012,9 +1012,9 @@ const deserializeAws_restJson1DeleteDataSetCommandError = async (output, context
|
|
|
1012
1012
|
});
|
|
1013
1013
|
}
|
|
1014
1014
|
};
|
|
1015
|
-
export const
|
|
1015
|
+
export const de_DeleteEventActionCommand = async (output, context) => {
|
|
1016
1016
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1017
|
-
return
|
|
1017
|
+
return de_DeleteEventActionCommandError(output, context);
|
|
1018
1018
|
}
|
|
1019
1019
|
const contents = map({
|
|
1020
1020
|
$metadata: deserializeMetadata(output),
|
|
@@ -1022,7 +1022,7 @@ export const deserializeAws_restJson1DeleteEventActionCommand = async (output, c
|
|
|
1022
1022
|
await collectBody(output.body, context);
|
|
1023
1023
|
return contents;
|
|
1024
1024
|
};
|
|
1025
|
-
const
|
|
1025
|
+
const de_DeleteEventActionCommandError = async (output, context) => {
|
|
1026
1026
|
const parsedOutput = {
|
|
1027
1027
|
...output,
|
|
1028
1028
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1031,16 +1031,16 @@ const deserializeAws_restJson1DeleteEventActionCommandError = async (output, con
|
|
|
1031
1031
|
switch (errorCode) {
|
|
1032
1032
|
case "InternalServerException":
|
|
1033
1033
|
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1034
|
-
throw await
|
|
1034
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1035
1035
|
case "ResourceNotFoundException":
|
|
1036
1036
|
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
1037
|
-
throw await
|
|
1037
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1038
1038
|
case "ThrottlingException":
|
|
1039
1039
|
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1040
|
-
throw await
|
|
1040
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1041
1041
|
case "ValidationException":
|
|
1042
1042
|
case "com.amazonaws.dataexchange#ValidationException":
|
|
1043
|
-
throw await
|
|
1043
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1044
1044
|
default:
|
|
1045
1045
|
const parsedBody = parsedOutput.body;
|
|
1046
1046
|
throwDefaultError({
|
|
@@ -1051,9 +1051,9 @@ const deserializeAws_restJson1DeleteEventActionCommandError = async (output, con
|
|
|
1051
1051
|
});
|
|
1052
1052
|
}
|
|
1053
1053
|
};
|
|
1054
|
-
export const
|
|
1054
|
+
export const de_DeleteRevisionCommand = async (output, context) => {
|
|
1055
1055
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1056
|
-
return
|
|
1056
|
+
return de_DeleteRevisionCommandError(output, context);
|
|
1057
1057
|
}
|
|
1058
1058
|
const contents = map({
|
|
1059
1059
|
$metadata: deserializeMetadata(output),
|
|
@@ -1061,7 +1061,7 @@ export const deserializeAws_restJson1DeleteRevisionCommand = async (output, cont
|
|
|
1061
1061
|
await collectBody(output.body, context);
|
|
1062
1062
|
return contents;
|
|
1063
1063
|
};
|
|
1064
|
-
const
|
|
1064
|
+
const de_DeleteRevisionCommandError = async (output, context) => {
|
|
1065
1065
|
const parsedOutput = {
|
|
1066
1066
|
...output,
|
|
1067
1067
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1070,22 +1070,22 @@ const deserializeAws_restJson1DeleteRevisionCommandError = async (output, contex
|
|
|
1070
1070
|
switch (errorCode) {
|
|
1071
1071
|
case "AccessDeniedException":
|
|
1072
1072
|
case "com.amazonaws.dataexchange#AccessDeniedException":
|
|
1073
|
-
throw await
|
|
1073
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1074
1074
|
case "ConflictException":
|
|
1075
1075
|
case "com.amazonaws.dataexchange#ConflictException":
|
|
1076
|
-
throw await
|
|
1076
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1077
1077
|
case "InternalServerException":
|
|
1078
1078
|
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1079
|
-
throw await
|
|
1079
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1080
1080
|
case "ResourceNotFoundException":
|
|
1081
1081
|
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
1082
|
-
throw await
|
|
1082
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1083
1083
|
case "ThrottlingException":
|
|
1084
1084
|
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1085
|
-
throw await
|
|
1085
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1086
1086
|
case "ValidationException":
|
|
1087
1087
|
case "com.amazonaws.dataexchange#ValidationException":
|
|
1088
|
-
throw await
|
|
1088
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1089
1089
|
default:
|
|
1090
1090
|
const parsedBody = parsedOutput.body;
|
|
1091
1091
|
throwDefaultError({
|
|
@@ -1096,9 +1096,9 @@ const deserializeAws_restJson1DeleteRevisionCommandError = async (output, contex
|
|
|
1096
1096
|
});
|
|
1097
1097
|
}
|
|
1098
1098
|
};
|
|
1099
|
-
export const
|
|
1099
|
+
export const de_GetAssetCommand = async (output, context) => {
|
|
1100
1100
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1101
|
-
return
|
|
1101
|
+
return de_GetAssetCommandError(output, context);
|
|
1102
1102
|
}
|
|
1103
1103
|
const contents = map({
|
|
1104
1104
|
$metadata: deserializeMetadata(output),
|
|
@@ -1108,7 +1108,7 @@ export const deserializeAws_restJson1GetAssetCommand = async (output, context) =
|
|
|
1108
1108
|
contents.Arn = __expectString(data.Arn);
|
|
1109
1109
|
}
|
|
1110
1110
|
if (data.AssetDetails != null) {
|
|
1111
|
-
contents.AssetDetails =
|
|
1111
|
+
contents.AssetDetails = de_AssetDetails(data.AssetDetails, context);
|
|
1112
1112
|
}
|
|
1113
1113
|
if (data.AssetType != null) {
|
|
1114
1114
|
contents.AssetType = __expectString(data.AssetType);
|
|
@@ -1136,7 +1136,7 @@ export const deserializeAws_restJson1GetAssetCommand = async (output, context) =
|
|
|
1136
1136
|
}
|
|
1137
1137
|
return contents;
|
|
1138
1138
|
};
|
|
1139
|
-
const
|
|
1139
|
+
const de_GetAssetCommandError = async (output, context) => {
|
|
1140
1140
|
const parsedOutput = {
|
|
1141
1141
|
...output,
|
|
1142
1142
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1145,16 +1145,16 @@ const deserializeAws_restJson1GetAssetCommandError = async (output, context) =>
|
|
|
1145
1145
|
switch (errorCode) {
|
|
1146
1146
|
case "InternalServerException":
|
|
1147
1147
|
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1148
|
-
throw await
|
|
1148
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1149
1149
|
case "ResourceNotFoundException":
|
|
1150
1150
|
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
1151
|
-
throw await
|
|
1151
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1152
1152
|
case "ThrottlingException":
|
|
1153
1153
|
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1154
|
-
throw await
|
|
1154
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1155
1155
|
case "ValidationException":
|
|
1156
1156
|
case "com.amazonaws.dataexchange#ValidationException":
|
|
1157
|
-
throw await
|
|
1157
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1158
1158
|
default:
|
|
1159
1159
|
const parsedBody = parsedOutput.body;
|
|
1160
1160
|
throwDefaultError({
|
|
@@ -1165,9 +1165,9 @@ const deserializeAws_restJson1GetAssetCommandError = async (output, context) =>
|
|
|
1165
1165
|
});
|
|
1166
1166
|
}
|
|
1167
1167
|
};
|
|
1168
|
-
export const
|
|
1168
|
+
export const de_GetDataSetCommand = async (output, context) => {
|
|
1169
1169
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1170
|
-
return
|
|
1170
|
+
return de_GetDataSetCommandError(output, context);
|
|
1171
1171
|
}
|
|
1172
1172
|
const contents = map({
|
|
1173
1173
|
$metadata: deserializeMetadata(output),
|
|
@@ -1195,20 +1195,20 @@ export const deserializeAws_restJson1GetDataSetCommand = async (output, context)
|
|
|
1195
1195
|
contents.Origin = __expectString(data.Origin);
|
|
1196
1196
|
}
|
|
1197
1197
|
if (data.OriginDetails != null) {
|
|
1198
|
-
contents.OriginDetails =
|
|
1198
|
+
contents.OriginDetails = de_OriginDetails(data.OriginDetails, context);
|
|
1199
1199
|
}
|
|
1200
1200
|
if (data.SourceId != null) {
|
|
1201
1201
|
contents.SourceId = __expectString(data.SourceId);
|
|
1202
1202
|
}
|
|
1203
1203
|
if (data.Tags != null) {
|
|
1204
|
-
contents.Tags =
|
|
1204
|
+
contents.Tags = de_MapOf__string(data.Tags, context);
|
|
1205
1205
|
}
|
|
1206
1206
|
if (data.UpdatedAt != null) {
|
|
1207
1207
|
contents.UpdatedAt = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.UpdatedAt));
|
|
1208
1208
|
}
|
|
1209
1209
|
return contents;
|
|
1210
1210
|
};
|
|
1211
|
-
const
|
|
1211
|
+
const de_GetDataSetCommandError = async (output, context) => {
|
|
1212
1212
|
const parsedOutput = {
|
|
1213
1213
|
...output,
|
|
1214
1214
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1217,16 +1217,16 @@ const deserializeAws_restJson1GetDataSetCommandError = async (output, context) =
|
|
|
1217
1217
|
switch (errorCode) {
|
|
1218
1218
|
case "InternalServerException":
|
|
1219
1219
|
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1220
|
-
throw await
|
|
1220
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1221
1221
|
case "ResourceNotFoundException":
|
|
1222
1222
|
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
1223
|
-
throw await
|
|
1223
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1224
1224
|
case "ThrottlingException":
|
|
1225
1225
|
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1226
|
-
throw await
|
|
1226
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1227
1227
|
case "ValidationException":
|
|
1228
1228
|
case "com.amazonaws.dataexchange#ValidationException":
|
|
1229
|
-
throw await
|
|
1229
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1230
1230
|
default:
|
|
1231
1231
|
const parsedBody = parsedOutput.body;
|
|
1232
1232
|
throwDefaultError({
|
|
@@ -1237,16 +1237,16 @@ const deserializeAws_restJson1GetDataSetCommandError = async (output, context) =
|
|
|
1237
1237
|
});
|
|
1238
1238
|
}
|
|
1239
1239
|
};
|
|
1240
|
-
export const
|
|
1240
|
+
export const de_GetEventActionCommand = async (output, context) => {
|
|
1241
1241
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1242
|
-
return
|
|
1242
|
+
return de_GetEventActionCommandError(output, context);
|
|
1243
1243
|
}
|
|
1244
1244
|
const contents = map({
|
|
1245
1245
|
$metadata: deserializeMetadata(output),
|
|
1246
1246
|
});
|
|
1247
1247
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1248
1248
|
if (data.Action != null) {
|
|
1249
|
-
contents.Action =
|
|
1249
|
+
contents.Action = de_Action(data.Action, context);
|
|
1250
1250
|
}
|
|
1251
1251
|
if (data.Arn != null) {
|
|
1252
1252
|
contents.Arn = __expectString(data.Arn);
|
|
@@ -1255,7 +1255,7 @@ export const deserializeAws_restJson1GetEventActionCommand = async (output, cont
|
|
|
1255
1255
|
contents.CreatedAt = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.CreatedAt));
|
|
1256
1256
|
}
|
|
1257
1257
|
if (data.Event != null) {
|
|
1258
|
-
contents.Event =
|
|
1258
|
+
contents.Event = de_Event(data.Event, context);
|
|
1259
1259
|
}
|
|
1260
1260
|
if (data.Id != null) {
|
|
1261
1261
|
contents.Id = __expectString(data.Id);
|
|
@@ -1265,7 +1265,7 @@ export const deserializeAws_restJson1GetEventActionCommand = async (output, cont
|
|
|
1265
1265
|
}
|
|
1266
1266
|
return contents;
|
|
1267
1267
|
};
|
|
1268
|
-
const
|
|
1268
|
+
const de_GetEventActionCommandError = async (output, context) => {
|
|
1269
1269
|
const parsedOutput = {
|
|
1270
1270
|
...output,
|
|
1271
1271
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1274,16 +1274,16 @@ const deserializeAws_restJson1GetEventActionCommandError = async (output, contex
|
|
|
1274
1274
|
switch (errorCode) {
|
|
1275
1275
|
case "InternalServerException":
|
|
1276
1276
|
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1277
|
-
throw await
|
|
1277
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1278
1278
|
case "ResourceNotFoundException":
|
|
1279
1279
|
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
1280
|
-
throw await
|
|
1280
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1281
1281
|
case "ThrottlingException":
|
|
1282
1282
|
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1283
|
-
throw await
|
|
1283
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1284
1284
|
case "ValidationException":
|
|
1285
1285
|
case "com.amazonaws.dataexchange#ValidationException":
|
|
1286
|
-
throw await
|
|
1286
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1287
1287
|
default:
|
|
1288
1288
|
const parsedBody = parsedOutput.body;
|
|
1289
1289
|
throwDefaultError({
|
|
@@ -1294,9 +1294,9 @@ const deserializeAws_restJson1GetEventActionCommandError = async (output, contex
|
|
|
1294
1294
|
});
|
|
1295
1295
|
}
|
|
1296
1296
|
};
|
|
1297
|
-
export const
|
|
1297
|
+
export const de_GetJobCommand = async (output, context) => {
|
|
1298
1298
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1299
|
-
return
|
|
1299
|
+
return de_GetJobCommandError(output, context);
|
|
1300
1300
|
}
|
|
1301
1301
|
const contents = map({
|
|
1302
1302
|
$metadata: deserializeMetadata(output),
|
|
@@ -1309,10 +1309,10 @@ export const deserializeAws_restJson1GetJobCommand = async (output, context) =>
|
|
|
1309
1309
|
contents.CreatedAt = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.CreatedAt));
|
|
1310
1310
|
}
|
|
1311
1311
|
if (data.Details != null) {
|
|
1312
|
-
contents.Details =
|
|
1312
|
+
contents.Details = de_ResponseDetails(data.Details, context);
|
|
1313
1313
|
}
|
|
1314
1314
|
if (data.Errors != null) {
|
|
1315
|
-
contents.Errors =
|
|
1315
|
+
contents.Errors = de_ListOfJobError(data.Errors, context);
|
|
1316
1316
|
}
|
|
1317
1317
|
if (data.Id != null) {
|
|
1318
1318
|
contents.Id = __expectString(data.Id);
|
|
@@ -1328,7 +1328,7 @@ export const deserializeAws_restJson1GetJobCommand = async (output, context) =>
|
|
|
1328
1328
|
}
|
|
1329
1329
|
return contents;
|
|
1330
1330
|
};
|
|
1331
|
-
const
|
|
1331
|
+
const de_GetJobCommandError = async (output, context) => {
|
|
1332
1332
|
const parsedOutput = {
|
|
1333
1333
|
...output,
|
|
1334
1334
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1337,16 +1337,16 @@ const deserializeAws_restJson1GetJobCommandError = async (output, context) => {
|
|
|
1337
1337
|
switch (errorCode) {
|
|
1338
1338
|
case "InternalServerException":
|
|
1339
1339
|
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1340
|
-
throw await
|
|
1340
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1341
1341
|
case "ResourceNotFoundException":
|
|
1342
1342
|
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
1343
|
-
throw await
|
|
1343
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1344
1344
|
case "ThrottlingException":
|
|
1345
1345
|
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1346
|
-
throw await
|
|
1346
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1347
1347
|
case "ValidationException":
|
|
1348
1348
|
case "com.amazonaws.dataexchange#ValidationException":
|
|
1349
|
-
throw await
|
|
1349
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1350
1350
|
default:
|
|
1351
1351
|
const parsedBody = parsedOutput.body;
|
|
1352
1352
|
throwDefaultError({
|
|
@@ -1357,9 +1357,9 @@ const deserializeAws_restJson1GetJobCommandError = async (output, context) => {
|
|
|
1357
1357
|
});
|
|
1358
1358
|
}
|
|
1359
1359
|
};
|
|
1360
|
-
export const
|
|
1360
|
+
export const de_GetRevisionCommand = async (output, context) => {
|
|
1361
1361
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1362
|
-
return
|
|
1362
|
+
return de_GetRevisionCommandError(output, context);
|
|
1363
1363
|
}
|
|
1364
1364
|
const contents = map({
|
|
1365
1365
|
$metadata: deserializeMetadata(output),
|
|
@@ -1396,14 +1396,14 @@ export const deserializeAws_restJson1GetRevisionCommand = async (output, context
|
|
|
1396
1396
|
contents.SourceId = __expectString(data.SourceId);
|
|
1397
1397
|
}
|
|
1398
1398
|
if (data.Tags != null) {
|
|
1399
|
-
contents.Tags =
|
|
1399
|
+
contents.Tags = de_MapOf__string(data.Tags, context);
|
|
1400
1400
|
}
|
|
1401
1401
|
if (data.UpdatedAt != null) {
|
|
1402
1402
|
contents.UpdatedAt = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.UpdatedAt));
|
|
1403
1403
|
}
|
|
1404
1404
|
return contents;
|
|
1405
1405
|
};
|
|
1406
|
-
const
|
|
1406
|
+
const de_GetRevisionCommandError = async (output, context) => {
|
|
1407
1407
|
const parsedOutput = {
|
|
1408
1408
|
...output,
|
|
1409
1409
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1412,16 +1412,16 @@ const deserializeAws_restJson1GetRevisionCommandError = async (output, context)
|
|
|
1412
1412
|
switch (errorCode) {
|
|
1413
1413
|
case "InternalServerException":
|
|
1414
1414
|
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1415
|
-
throw await
|
|
1415
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1416
1416
|
case "ResourceNotFoundException":
|
|
1417
1417
|
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
1418
|
-
throw await
|
|
1418
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1419
1419
|
case "ThrottlingException":
|
|
1420
1420
|
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1421
|
-
throw await
|
|
1421
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1422
1422
|
case "ValidationException":
|
|
1423
1423
|
case "com.amazonaws.dataexchange#ValidationException":
|
|
1424
|
-
throw await
|
|
1424
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1425
1425
|
default:
|
|
1426
1426
|
const parsedBody = parsedOutput.body;
|
|
1427
1427
|
throwDefaultError({
|
|
@@ -1432,9 +1432,9 @@ const deserializeAws_restJson1GetRevisionCommandError = async (output, context)
|
|
|
1432
1432
|
});
|
|
1433
1433
|
}
|
|
1434
1434
|
};
|
|
1435
|
-
export const
|
|
1435
|
+
export const de_ListDataSetRevisionsCommand = async (output, context) => {
|
|
1436
1436
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1437
|
-
return
|
|
1437
|
+
return de_ListDataSetRevisionsCommandError(output, context);
|
|
1438
1438
|
}
|
|
1439
1439
|
const contents = map({
|
|
1440
1440
|
$metadata: deserializeMetadata(output),
|
|
@@ -1444,11 +1444,11 @@ export const deserializeAws_restJson1ListDataSetRevisionsCommand = async (output
|
|
|
1444
1444
|
contents.NextToken = __expectString(data.NextToken);
|
|
1445
1445
|
}
|
|
1446
1446
|
if (data.Revisions != null) {
|
|
1447
|
-
contents.Revisions =
|
|
1447
|
+
contents.Revisions = de_ListOfRevisionEntry(data.Revisions, context);
|
|
1448
1448
|
}
|
|
1449
1449
|
return contents;
|
|
1450
1450
|
};
|
|
1451
|
-
const
|
|
1451
|
+
const de_ListDataSetRevisionsCommandError = async (output, context) => {
|
|
1452
1452
|
const parsedOutput = {
|
|
1453
1453
|
...output,
|
|
1454
1454
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1457,16 +1457,16 @@ const deserializeAws_restJson1ListDataSetRevisionsCommandError = async (output,
|
|
|
1457
1457
|
switch (errorCode) {
|
|
1458
1458
|
case "InternalServerException":
|
|
1459
1459
|
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1460
|
-
throw await
|
|
1460
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1461
1461
|
case "ResourceNotFoundException":
|
|
1462
1462
|
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
1463
|
-
throw await
|
|
1463
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1464
1464
|
case "ThrottlingException":
|
|
1465
1465
|
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1466
|
-
throw await
|
|
1466
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1467
1467
|
case "ValidationException":
|
|
1468
1468
|
case "com.amazonaws.dataexchange#ValidationException":
|
|
1469
|
-
throw await
|
|
1469
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1470
1470
|
default:
|
|
1471
1471
|
const parsedBody = parsedOutput.body;
|
|
1472
1472
|
throwDefaultError({
|
|
@@ -1477,23 +1477,23 @@ const deserializeAws_restJson1ListDataSetRevisionsCommandError = async (output,
|
|
|
1477
1477
|
});
|
|
1478
1478
|
}
|
|
1479
1479
|
};
|
|
1480
|
-
export const
|
|
1480
|
+
export const de_ListDataSetsCommand = async (output, context) => {
|
|
1481
1481
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1482
|
-
return
|
|
1482
|
+
return de_ListDataSetsCommandError(output, context);
|
|
1483
1483
|
}
|
|
1484
1484
|
const contents = map({
|
|
1485
1485
|
$metadata: deserializeMetadata(output),
|
|
1486
1486
|
});
|
|
1487
1487
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1488
1488
|
if (data.DataSets != null) {
|
|
1489
|
-
contents.DataSets =
|
|
1489
|
+
contents.DataSets = de_ListOfDataSetEntry(data.DataSets, context);
|
|
1490
1490
|
}
|
|
1491
1491
|
if (data.NextToken != null) {
|
|
1492
1492
|
contents.NextToken = __expectString(data.NextToken);
|
|
1493
1493
|
}
|
|
1494
1494
|
return contents;
|
|
1495
1495
|
};
|
|
1496
|
-
const
|
|
1496
|
+
const de_ListDataSetsCommandError = async (output, context) => {
|
|
1497
1497
|
const parsedOutput = {
|
|
1498
1498
|
...output,
|
|
1499
1499
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1502,16 +1502,16 @@ const deserializeAws_restJson1ListDataSetsCommandError = async (output, context)
|
|
|
1502
1502
|
switch (errorCode) {
|
|
1503
1503
|
case "InternalServerException":
|
|
1504
1504
|
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1505
|
-
throw await
|
|
1505
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1506
1506
|
case "ResourceNotFoundException":
|
|
1507
1507
|
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
1508
|
-
throw await
|
|
1508
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1509
1509
|
case "ThrottlingException":
|
|
1510
1510
|
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1511
|
-
throw await
|
|
1511
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1512
1512
|
case "ValidationException":
|
|
1513
1513
|
case "com.amazonaws.dataexchange#ValidationException":
|
|
1514
|
-
throw await
|
|
1514
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1515
1515
|
default:
|
|
1516
1516
|
const parsedBody = parsedOutput.body;
|
|
1517
1517
|
throwDefaultError({
|
|
@@ -1522,23 +1522,23 @@ const deserializeAws_restJson1ListDataSetsCommandError = async (output, context)
|
|
|
1522
1522
|
});
|
|
1523
1523
|
}
|
|
1524
1524
|
};
|
|
1525
|
-
export const
|
|
1525
|
+
export const de_ListEventActionsCommand = async (output, context) => {
|
|
1526
1526
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1527
|
-
return
|
|
1527
|
+
return de_ListEventActionsCommandError(output, context);
|
|
1528
1528
|
}
|
|
1529
1529
|
const contents = map({
|
|
1530
1530
|
$metadata: deserializeMetadata(output),
|
|
1531
1531
|
});
|
|
1532
1532
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1533
1533
|
if (data.EventActions != null) {
|
|
1534
|
-
contents.EventActions =
|
|
1534
|
+
contents.EventActions = de_ListOfEventActionEntry(data.EventActions, context);
|
|
1535
1535
|
}
|
|
1536
1536
|
if (data.NextToken != null) {
|
|
1537
1537
|
contents.NextToken = __expectString(data.NextToken);
|
|
1538
1538
|
}
|
|
1539
1539
|
return contents;
|
|
1540
1540
|
};
|
|
1541
|
-
const
|
|
1541
|
+
const de_ListEventActionsCommandError = async (output, context) => {
|
|
1542
1542
|
const parsedOutput = {
|
|
1543
1543
|
...output,
|
|
1544
1544
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1547,16 +1547,16 @@ const deserializeAws_restJson1ListEventActionsCommandError = async (output, cont
|
|
|
1547
1547
|
switch (errorCode) {
|
|
1548
1548
|
case "InternalServerException":
|
|
1549
1549
|
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1550
|
-
throw await
|
|
1550
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1551
1551
|
case "ResourceNotFoundException":
|
|
1552
1552
|
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
1553
|
-
throw await
|
|
1553
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1554
1554
|
case "ThrottlingException":
|
|
1555
1555
|
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1556
|
-
throw await
|
|
1556
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1557
1557
|
case "ValidationException":
|
|
1558
1558
|
case "com.amazonaws.dataexchange#ValidationException":
|
|
1559
|
-
throw await
|
|
1559
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1560
1560
|
default:
|
|
1561
1561
|
const parsedBody = parsedOutput.body;
|
|
1562
1562
|
throwDefaultError({
|
|
@@ -1567,23 +1567,23 @@ const deserializeAws_restJson1ListEventActionsCommandError = async (output, cont
|
|
|
1567
1567
|
});
|
|
1568
1568
|
}
|
|
1569
1569
|
};
|
|
1570
|
-
export const
|
|
1570
|
+
export const de_ListJobsCommand = async (output, context) => {
|
|
1571
1571
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1572
|
-
return
|
|
1572
|
+
return de_ListJobsCommandError(output, context);
|
|
1573
1573
|
}
|
|
1574
1574
|
const contents = map({
|
|
1575
1575
|
$metadata: deserializeMetadata(output),
|
|
1576
1576
|
});
|
|
1577
1577
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1578
1578
|
if (data.Jobs != null) {
|
|
1579
|
-
contents.Jobs =
|
|
1579
|
+
contents.Jobs = de_ListOfJobEntry(data.Jobs, context);
|
|
1580
1580
|
}
|
|
1581
1581
|
if (data.NextToken != null) {
|
|
1582
1582
|
contents.NextToken = __expectString(data.NextToken);
|
|
1583
1583
|
}
|
|
1584
1584
|
return contents;
|
|
1585
1585
|
};
|
|
1586
|
-
const
|
|
1586
|
+
const de_ListJobsCommandError = async (output, context) => {
|
|
1587
1587
|
const parsedOutput = {
|
|
1588
1588
|
...output,
|
|
1589
1589
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1592,16 +1592,16 @@ const deserializeAws_restJson1ListJobsCommandError = async (output, context) =>
|
|
|
1592
1592
|
switch (errorCode) {
|
|
1593
1593
|
case "InternalServerException":
|
|
1594
1594
|
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1595
|
-
throw await
|
|
1595
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1596
1596
|
case "ResourceNotFoundException":
|
|
1597
1597
|
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
1598
|
-
throw await
|
|
1598
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1599
1599
|
case "ThrottlingException":
|
|
1600
1600
|
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1601
|
-
throw await
|
|
1601
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1602
1602
|
case "ValidationException":
|
|
1603
1603
|
case "com.amazonaws.dataexchange#ValidationException":
|
|
1604
|
-
throw await
|
|
1604
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1605
1605
|
default:
|
|
1606
1606
|
const parsedBody = parsedOutput.body;
|
|
1607
1607
|
throwDefaultError({
|
|
@@ -1612,23 +1612,23 @@ const deserializeAws_restJson1ListJobsCommandError = async (output, context) =>
|
|
|
1612
1612
|
});
|
|
1613
1613
|
}
|
|
1614
1614
|
};
|
|
1615
|
-
export const
|
|
1615
|
+
export const de_ListRevisionAssetsCommand = async (output, context) => {
|
|
1616
1616
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1617
|
-
return
|
|
1617
|
+
return de_ListRevisionAssetsCommandError(output, context);
|
|
1618
1618
|
}
|
|
1619
1619
|
const contents = map({
|
|
1620
1620
|
$metadata: deserializeMetadata(output),
|
|
1621
1621
|
});
|
|
1622
1622
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1623
1623
|
if (data.Assets != null) {
|
|
1624
|
-
contents.Assets =
|
|
1624
|
+
contents.Assets = de_ListOfAssetEntry(data.Assets, context);
|
|
1625
1625
|
}
|
|
1626
1626
|
if (data.NextToken != null) {
|
|
1627
1627
|
contents.NextToken = __expectString(data.NextToken);
|
|
1628
1628
|
}
|
|
1629
1629
|
return contents;
|
|
1630
1630
|
};
|
|
1631
|
-
const
|
|
1631
|
+
const de_ListRevisionAssetsCommandError = async (output, context) => {
|
|
1632
1632
|
const parsedOutput = {
|
|
1633
1633
|
...output,
|
|
1634
1634
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1637,16 +1637,16 @@ const deserializeAws_restJson1ListRevisionAssetsCommandError = async (output, co
|
|
|
1637
1637
|
switch (errorCode) {
|
|
1638
1638
|
case "InternalServerException":
|
|
1639
1639
|
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1640
|
-
throw await
|
|
1640
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1641
1641
|
case "ResourceNotFoundException":
|
|
1642
1642
|
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
1643
|
-
throw await
|
|
1643
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1644
1644
|
case "ThrottlingException":
|
|
1645
1645
|
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1646
|
-
throw await
|
|
1646
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1647
1647
|
case "ValidationException":
|
|
1648
1648
|
case "com.amazonaws.dataexchange#ValidationException":
|
|
1649
|
-
throw await
|
|
1649
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1650
1650
|
default:
|
|
1651
1651
|
const parsedBody = parsedOutput.body;
|
|
1652
1652
|
throwDefaultError({
|
|
@@ -1657,20 +1657,20 @@ const deserializeAws_restJson1ListRevisionAssetsCommandError = async (output, co
|
|
|
1657
1657
|
});
|
|
1658
1658
|
}
|
|
1659
1659
|
};
|
|
1660
|
-
export const
|
|
1660
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1661
1661
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1662
|
-
return
|
|
1662
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
1663
1663
|
}
|
|
1664
1664
|
const contents = map({
|
|
1665
1665
|
$metadata: deserializeMetadata(output),
|
|
1666
1666
|
});
|
|
1667
1667
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1668
1668
|
if (data.tags != null) {
|
|
1669
|
-
contents.Tags =
|
|
1669
|
+
contents.Tags = de_MapOf__string(data.tags, context);
|
|
1670
1670
|
}
|
|
1671
1671
|
return contents;
|
|
1672
1672
|
};
|
|
1673
|
-
const
|
|
1673
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1674
1674
|
const parsedOutput = {
|
|
1675
1675
|
...output,
|
|
1676
1676
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1684,9 +1684,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1684
1684
|
errorCode,
|
|
1685
1685
|
});
|
|
1686
1686
|
};
|
|
1687
|
-
export const
|
|
1687
|
+
export const de_RevokeRevisionCommand = async (output, context) => {
|
|
1688
1688
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1689
|
-
return
|
|
1689
|
+
return de_RevokeRevisionCommandError(output, context);
|
|
1690
1690
|
}
|
|
1691
1691
|
const contents = map({
|
|
1692
1692
|
$metadata: deserializeMetadata(output),
|
|
@@ -1727,7 +1727,7 @@ export const deserializeAws_restJson1RevokeRevisionCommand = async (output, cont
|
|
|
1727
1727
|
}
|
|
1728
1728
|
return contents;
|
|
1729
1729
|
};
|
|
1730
|
-
const
|
|
1730
|
+
const de_RevokeRevisionCommandError = async (output, context) => {
|
|
1731
1731
|
const parsedOutput = {
|
|
1732
1732
|
...output,
|
|
1733
1733
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1736,22 +1736,22 @@ const deserializeAws_restJson1RevokeRevisionCommandError = async (output, contex
|
|
|
1736
1736
|
switch (errorCode) {
|
|
1737
1737
|
case "AccessDeniedException":
|
|
1738
1738
|
case "com.amazonaws.dataexchange#AccessDeniedException":
|
|
1739
|
-
throw await
|
|
1739
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1740
1740
|
case "ConflictException":
|
|
1741
1741
|
case "com.amazonaws.dataexchange#ConflictException":
|
|
1742
|
-
throw await
|
|
1742
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1743
1743
|
case "InternalServerException":
|
|
1744
1744
|
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1745
|
-
throw await
|
|
1745
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1746
1746
|
case "ResourceNotFoundException":
|
|
1747
1747
|
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
1748
|
-
throw await
|
|
1748
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1749
1749
|
case "ThrottlingException":
|
|
1750
1750
|
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1751
|
-
throw await
|
|
1751
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1752
1752
|
case "ValidationException":
|
|
1753
1753
|
case "com.amazonaws.dataexchange#ValidationException":
|
|
1754
|
-
throw await
|
|
1754
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1755
1755
|
default:
|
|
1756
1756
|
const parsedBody = parsedOutput.body;
|
|
1757
1757
|
throwDefaultError({
|
|
@@ -1762,9 +1762,9 @@ const deserializeAws_restJson1RevokeRevisionCommandError = async (output, contex
|
|
|
1762
1762
|
});
|
|
1763
1763
|
}
|
|
1764
1764
|
};
|
|
1765
|
-
export const
|
|
1765
|
+
export const de_SendApiAssetCommand = async (output, context) => {
|
|
1766
1766
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1767
|
-
return
|
|
1767
|
+
return de_SendApiAssetCommandError(output, context);
|
|
1768
1768
|
}
|
|
1769
1769
|
const contents = map({
|
|
1770
1770
|
$metadata: deserializeMetadata(output),
|
|
@@ -1782,7 +1782,7 @@ export const deserializeAws_restJson1SendApiAssetCommand = async (output, contex
|
|
|
1782
1782
|
contents.Body = __expectString(data);
|
|
1783
1783
|
return contents;
|
|
1784
1784
|
};
|
|
1785
|
-
const
|
|
1785
|
+
const de_SendApiAssetCommandError = async (output, context) => {
|
|
1786
1786
|
const parsedOutput = {
|
|
1787
1787
|
...output,
|
|
1788
1788
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1791,19 +1791,19 @@ const deserializeAws_restJson1SendApiAssetCommandError = async (output, context)
|
|
|
1791
1791
|
switch (errorCode) {
|
|
1792
1792
|
case "AccessDeniedException":
|
|
1793
1793
|
case "com.amazonaws.dataexchange#AccessDeniedException":
|
|
1794
|
-
throw await
|
|
1794
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1795
1795
|
case "InternalServerException":
|
|
1796
1796
|
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1797
|
-
throw await
|
|
1797
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1798
1798
|
case "ResourceNotFoundException":
|
|
1799
1799
|
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
1800
|
-
throw await
|
|
1800
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1801
1801
|
case "ThrottlingException":
|
|
1802
1802
|
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1803
|
-
throw await
|
|
1803
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1804
1804
|
case "ValidationException":
|
|
1805
1805
|
case "com.amazonaws.dataexchange#ValidationException":
|
|
1806
|
-
throw await
|
|
1806
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1807
1807
|
default:
|
|
1808
1808
|
const parsedBody = parsedOutput.body;
|
|
1809
1809
|
throwDefaultError({
|
|
@@ -1814,9 +1814,9 @@ const deserializeAws_restJson1SendApiAssetCommandError = async (output, context)
|
|
|
1814
1814
|
});
|
|
1815
1815
|
}
|
|
1816
1816
|
};
|
|
1817
|
-
export const
|
|
1817
|
+
export const de_StartJobCommand = async (output, context) => {
|
|
1818
1818
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1819
|
-
return
|
|
1819
|
+
return de_StartJobCommandError(output, context);
|
|
1820
1820
|
}
|
|
1821
1821
|
const contents = map({
|
|
1822
1822
|
$metadata: deserializeMetadata(output),
|
|
@@ -1824,7 +1824,7 @@ export const deserializeAws_restJson1StartJobCommand = async (output, context) =
|
|
|
1824
1824
|
await collectBody(output.body, context);
|
|
1825
1825
|
return contents;
|
|
1826
1826
|
};
|
|
1827
|
-
const
|
|
1827
|
+
const de_StartJobCommandError = async (output, context) => {
|
|
1828
1828
|
const parsedOutput = {
|
|
1829
1829
|
...output,
|
|
1830
1830
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1833,22 +1833,22 @@ const deserializeAws_restJson1StartJobCommandError = async (output, context) =>
|
|
|
1833
1833
|
switch (errorCode) {
|
|
1834
1834
|
case "AccessDeniedException":
|
|
1835
1835
|
case "com.amazonaws.dataexchange#AccessDeniedException":
|
|
1836
|
-
throw await
|
|
1836
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1837
1837
|
case "ConflictException":
|
|
1838
1838
|
case "com.amazonaws.dataexchange#ConflictException":
|
|
1839
|
-
throw await
|
|
1839
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1840
1840
|
case "InternalServerException":
|
|
1841
1841
|
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1842
|
-
throw await
|
|
1842
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1843
1843
|
case "ResourceNotFoundException":
|
|
1844
1844
|
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
1845
|
-
throw await
|
|
1845
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1846
1846
|
case "ThrottlingException":
|
|
1847
1847
|
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1848
|
-
throw await
|
|
1848
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1849
1849
|
case "ValidationException":
|
|
1850
1850
|
case "com.amazonaws.dataexchange#ValidationException":
|
|
1851
|
-
throw await
|
|
1851
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1852
1852
|
default:
|
|
1853
1853
|
const parsedBody = parsedOutput.body;
|
|
1854
1854
|
throwDefaultError({
|
|
@@ -1859,9 +1859,9 @@ const deserializeAws_restJson1StartJobCommandError = async (output, context) =>
|
|
|
1859
1859
|
});
|
|
1860
1860
|
}
|
|
1861
1861
|
};
|
|
1862
|
-
export const
|
|
1862
|
+
export const de_TagResourceCommand = async (output, context) => {
|
|
1863
1863
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1864
|
-
return
|
|
1864
|
+
return de_TagResourceCommandError(output, context);
|
|
1865
1865
|
}
|
|
1866
1866
|
const contents = map({
|
|
1867
1867
|
$metadata: deserializeMetadata(output),
|
|
@@ -1869,7 +1869,7 @@ export const deserializeAws_restJson1TagResourceCommand = async (output, context
|
|
|
1869
1869
|
await collectBody(output.body, context);
|
|
1870
1870
|
return contents;
|
|
1871
1871
|
};
|
|
1872
|
-
const
|
|
1872
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
1873
1873
|
const parsedOutput = {
|
|
1874
1874
|
...output,
|
|
1875
1875
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1883,9 +1883,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1883
1883
|
errorCode,
|
|
1884
1884
|
});
|
|
1885
1885
|
};
|
|
1886
|
-
export const
|
|
1886
|
+
export const de_UntagResourceCommand = async (output, context) => {
|
|
1887
1887
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1888
|
-
return
|
|
1888
|
+
return de_UntagResourceCommandError(output, context);
|
|
1889
1889
|
}
|
|
1890
1890
|
const contents = map({
|
|
1891
1891
|
$metadata: deserializeMetadata(output),
|
|
@@ -1893,7 +1893,7 @@ export const deserializeAws_restJson1UntagResourceCommand = async (output, conte
|
|
|
1893
1893
|
await collectBody(output.body, context);
|
|
1894
1894
|
return contents;
|
|
1895
1895
|
};
|
|
1896
|
-
const
|
|
1896
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
1897
1897
|
const parsedOutput = {
|
|
1898
1898
|
...output,
|
|
1899
1899
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1907,9 +1907,9 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1907
1907
|
errorCode,
|
|
1908
1908
|
});
|
|
1909
1909
|
};
|
|
1910
|
-
export const
|
|
1910
|
+
export const de_UpdateAssetCommand = async (output, context) => {
|
|
1911
1911
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1912
|
-
return
|
|
1912
|
+
return de_UpdateAssetCommandError(output, context);
|
|
1913
1913
|
}
|
|
1914
1914
|
const contents = map({
|
|
1915
1915
|
$metadata: deserializeMetadata(output),
|
|
@@ -1919,7 +1919,7 @@ export const deserializeAws_restJson1UpdateAssetCommand = async (output, context
|
|
|
1919
1919
|
contents.Arn = __expectString(data.Arn);
|
|
1920
1920
|
}
|
|
1921
1921
|
if (data.AssetDetails != null) {
|
|
1922
|
-
contents.AssetDetails =
|
|
1922
|
+
contents.AssetDetails = de_AssetDetails(data.AssetDetails, context);
|
|
1923
1923
|
}
|
|
1924
1924
|
if (data.AssetType != null) {
|
|
1925
1925
|
contents.AssetType = __expectString(data.AssetType);
|
|
@@ -1947,7 +1947,7 @@ export const deserializeAws_restJson1UpdateAssetCommand = async (output, context
|
|
|
1947
1947
|
}
|
|
1948
1948
|
return contents;
|
|
1949
1949
|
};
|
|
1950
|
-
const
|
|
1950
|
+
const de_UpdateAssetCommandError = async (output, context) => {
|
|
1951
1951
|
const parsedOutput = {
|
|
1952
1952
|
...output,
|
|
1953
1953
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1956,22 +1956,22 @@ const deserializeAws_restJson1UpdateAssetCommandError = async (output, context)
|
|
|
1956
1956
|
switch (errorCode) {
|
|
1957
1957
|
case "AccessDeniedException":
|
|
1958
1958
|
case "com.amazonaws.dataexchange#AccessDeniedException":
|
|
1959
|
-
throw await
|
|
1959
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1960
1960
|
case "ConflictException":
|
|
1961
1961
|
case "com.amazonaws.dataexchange#ConflictException":
|
|
1962
|
-
throw await
|
|
1962
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1963
1963
|
case "InternalServerException":
|
|
1964
1964
|
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1965
|
-
throw await
|
|
1965
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1966
1966
|
case "ResourceNotFoundException":
|
|
1967
1967
|
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
1968
|
-
throw await
|
|
1968
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1969
1969
|
case "ThrottlingException":
|
|
1970
1970
|
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1971
|
-
throw await
|
|
1971
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1972
1972
|
case "ValidationException":
|
|
1973
1973
|
case "com.amazonaws.dataexchange#ValidationException":
|
|
1974
|
-
throw await
|
|
1974
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1975
1975
|
default:
|
|
1976
1976
|
const parsedBody = parsedOutput.body;
|
|
1977
1977
|
throwDefaultError({
|
|
@@ -1982,9 +1982,9 @@ const deserializeAws_restJson1UpdateAssetCommandError = async (output, context)
|
|
|
1982
1982
|
});
|
|
1983
1983
|
}
|
|
1984
1984
|
};
|
|
1985
|
-
export const
|
|
1985
|
+
export const de_UpdateDataSetCommand = async (output, context) => {
|
|
1986
1986
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1987
|
-
return
|
|
1987
|
+
return de_UpdateDataSetCommandError(output, context);
|
|
1988
1988
|
}
|
|
1989
1989
|
const contents = map({
|
|
1990
1990
|
$metadata: deserializeMetadata(output),
|
|
@@ -2012,7 +2012,7 @@ export const deserializeAws_restJson1UpdateDataSetCommand = async (output, conte
|
|
|
2012
2012
|
contents.Origin = __expectString(data.Origin);
|
|
2013
2013
|
}
|
|
2014
2014
|
if (data.OriginDetails != null) {
|
|
2015
|
-
contents.OriginDetails =
|
|
2015
|
+
contents.OriginDetails = de_OriginDetails(data.OriginDetails, context);
|
|
2016
2016
|
}
|
|
2017
2017
|
if (data.SourceId != null) {
|
|
2018
2018
|
contents.SourceId = __expectString(data.SourceId);
|
|
@@ -2022,7 +2022,7 @@ export const deserializeAws_restJson1UpdateDataSetCommand = async (output, conte
|
|
|
2022
2022
|
}
|
|
2023
2023
|
return contents;
|
|
2024
2024
|
};
|
|
2025
|
-
const
|
|
2025
|
+
const de_UpdateDataSetCommandError = async (output, context) => {
|
|
2026
2026
|
const parsedOutput = {
|
|
2027
2027
|
...output,
|
|
2028
2028
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2031,19 +2031,19 @@ const deserializeAws_restJson1UpdateDataSetCommandError = async (output, context
|
|
|
2031
2031
|
switch (errorCode) {
|
|
2032
2032
|
case "AccessDeniedException":
|
|
2033
2033
|
case "com.amazonaws.dataexchange#AccessDeniedException":
|
|
2034
|
-
throw await
|
|
2034
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2035
2035
|
case "InternalServerException":
|
|
2036
2036
|
case "com.amazonaws.dataexchange#InternalServerException":
|
|
2037
|
-
throw await
|
|
2037
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2038
2038
|
case "ResourceNotFoundException":
|
|
2039
2039
|
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
2040
|
-
throw await
|
|
2040
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2041
2041
|
case "ThrottlingException":
|
|
2042
2042
|
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
2043
|
-
throw await
|
|
2043
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2044
2044
|
case "ValidationException":
|
|
2045
2045
|
case "com.amazonaws.dataexchange#ValidationException":
|
|
2046
|
-
throw await
|
|
2046
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2047
2047
|
default:
|
|
2048
2048
|
const parsedBody = parsedOutput.body;
|
|
2049
2049
|
throwDefaultError({
|
|
@@ -2054,16 +2054,16 @@ const deserializeAws_restJson1UpdateDataSetCommandError = async (output, context
|
|
|
2054
2054
|
});
|
|
2055
2055
|
}
|
|
2056
2056
|
};
|
|
2057
|
-
export const
|
|
2057
|
+
export const de_UpdateEventActionCommand = async (output, context) => {
|
|
2058
2058
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2059
|
-
return
|
|
2059
|
+
return de_UpdateEventActionCommandError(output, context);
|
|
2060
2060
|
}
|
|
2061
2061
|
const contents = map({
|
|
2062
2062
|
$metadata: deserializeMetadata(output),
|
|
2063
2063
|
});
|
|
2064
2064
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2065
2065
|
if (data.Action != null) {
|
|
2066
|
-
contents.Action =
|
|
2066
|
+
contents.Action = de_Action(data.Action, context);
|
|
2067
2067
|
}
|
|
2068
2068
|
if (data.Arn != null) {
|
|
2069
2069
|
contents.Arn = __expectString(data.Arn);
|
|
@@ -2072,7 +2072,7 @@ export const deserializeAws_restJson1UpdateEventActionCommand = async (output, c
|
|
|
2072
2072
|
contents.CreatedAt = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.CreatedAt));
|
|
2073
2073
|
}
|
|
2074
2074
|
if (data.Event != null) {
|
|
2075
|
-
contents.Event =
|
|
2075
|
+
contents.Event = de_Event(data.Event, context);
|
|
2076
2076
|
}
|
|
2077
2077
|
if (data.Id != null) {
|
|
2078
2078
|
contents.Id = __expectString(data.Id);
|
|
@@ -2082,7 +2082,7 @@ export const deserializeAws_restJson1UpdateEventActionCommand = async (output, c
|
|
|
2082
2082
|
}
|
|
2083
2083
|
return contents;
|
|
2084
2084
|
};
|
|
2085
|
-
const
|
|
2085
|
+
const de_UpdateEventActionCommandError = async (output, context) => {
|
|
2086
2086
|
const parsedOutput = {
|
|
2087
2087
|
...output,
|
|
2088
2088
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2091,19 +2091,19 @@ const deserializeAws_restJson1UpdateEventActionCommandError = async (output, con
|
|
|
2091
2091
|
switch (errorCode) {
|
|
2092
2092
|
case "AccessDeniedException":
|
|
2093
2093
|
case "com.amazonaws.dataexchange#AccessDeniedException":
|
|
2094
|
-
throw await
|
|
2094
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2095
2095
|
case "InternalServerException":
|
|
2096
2096
|
case "com.amazonaws.dataexchange#InternalServerException":
|
|
2097
|
-
throw await
|
|
2097
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2098
2098
|
case "ResourceNotFoundException":
|
|
2099
2099
|
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
2100
|
-
throw await
|
|
2100
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2101
2101
|
case "ThrottlingException":
|
|
2102
2102
|
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
2103
|
-
throw await
|
|
2103
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2104
2104
|
case "ValidationException":
|
|
2105
2105
|
case "com.amazonaws.dataexchange#ValidationException":
|
|
2106
|
-
throw await
|
|
2106
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2107
2107
|
default:
|
|
2108
2108
|
const parsedBody = parsedOutput.body;
|
|
2109
2109
|
throwDefaultError({
|
|
@@ -2114,9 +2114,9 @@ const deserializeAws_restJson1UpdateEventActionCommandError = async (output, con
|
|
|
2114
2114
|
});
|
|
2115
2115
|
}
|
|
2116
2116
|
};
|
|
2117
|
-
export const
|
|
2117
|
+
export const de_UpdateRevisionCommand = async (output, context) => {
|
|
2118
2118
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2119
|
-
return
|
|
2119
|
+
return de_UpdateRevisionCommandError(output, context);
|
|
2120
2120
|
}
|
|
2121
2121
|
const contents = map({
|
|
2122
2122
|
$metadata: deserializeMetadata(output),
|
|
@@ -2157,7 +2157,7 @@ export const deserializeAws_restJson1UpdateRevisionCommand = async (output, cont
|
|
|
2157
2157
|
}
|
|
2158
2158
|
return contents;
|
|
2159
2159
|
};
|
|
2160
|
-
const
|
|
2160
|
+
const de_UpdateRevisionCommandError = async (output, context) => {
|
|
2161
2161
|
const parsedOutput = {
|
|
2162
2162
|
...output,
|
|
2163
2163
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2166,22 +2166,22 @@ const deserializeAws_restJson1UpdateRevisionCommandError = async (output, contex
|
|
|
2166
2166
|
switch (errorCode) {
|
|
2167
2167
|
case "AccessDeniedException":
|
|
2168
2168
|
case "com.amazonaws.dataexchange#AccessDeniedException":
|
|
2169
|
-
throw await
|
|
2169
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2170
2170
|
case "ConflictException":
|
|
2171
2171
|
case "com.amazonaws.dataexchange#ConflictException":
|
|
2172
|
-
throw await
|
|
2172
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2173
2173
|
case "InternalServerException":
|
|
2174
2174
|
case "com.amazonaws.dataexchange#InternalServerException":
|
|
2175
|
-
throw await
|
|
2175
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2176
2176
|
case "ResourceNotFoundException":
|
|
2177
2177
|
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
2178
|
-
throw await
|
|
2178
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2179
2179
|
case "ThrottlingException":
|
|
2180
2180
|
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
2181
|
-
throw await
|
|
2181
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2182
2182
|
case "ValidationException":
|
|
2183
2183
|
case "com.amazonaws.dataexchange#ValidationException":
|
|
2184
|
-
throw await
|
|
2184
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2185
2185
|
default:
|
|
2186
2186
|
const parsedBody = parsedOutput.body;
|
|
2187
2187
|
throwDefaultError({
|
|
@@ -2193,7 +2193,7 @@ const deserializeAws_restJson1UpdateRevisionCommandError = async (output, contex
|
|
|
2193
2193
|
}
|
|
2194
2194
|
};
|
|
2195
2195
|
const map = __map;
|
|
2196
|
-
const
|
|
2196
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
2197
2197
|
const contents = map({});
|
|
2198
2198
|
const data = parsedOutput.body;
|
|
2199
2199
|
if (data.Message != null) {
|
|
@@ -2205,7 +2205,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
|
|
|
2205
2205
|
});
|
|
2206
2206
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2207
2207
|
};
|
|
2208
|
-
const
|
|
2208
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
2209
2209
|
const contents = map({});
|
|
2210
2210
|
const data = parsedOutput.body;
|
|
2211
2211
|
if (data.Message != null) {
|
|
@@ -2223,7 +2223,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
2223
2223
|
});
|
|
2224
2224
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2225
2225
|
};
|
|
2226
|
-
const
|
|
2226
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
2227
2227
|
const contents = map({});
|
|
2228
2228
|
const data = parsedOutput.body;
|
|
2229
2229
|
if (data.Message != null) {
|
|
@@ -2235,7 +2235,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
2235
2235
|
});
|
|
2236
2236
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2237
2237
|
};
|
|
2238
|
-
const
|
|
2238
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2239
2239
|
const contents = map({});
|
|
2240
2240
|
const data = parsedOutput.body;
|
|
2241
2241
|
if (data.Message != null) {
|
|
@@ -2253,7 +2253,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
2253
2253
|
});
|
|
2254
2254
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2255
2255
|
};
|
|
2256
|
-
const
|
|
2256
|
+
const de_ServiceLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
2257
2257
|
const contents = map({});
|
|
2258
2258
|
const data = parsedOutput.body;
|
|
2259
2259
|
if (data.LimitName != null) {
|
|
@@ -2271,7 +2271,7 @@ const deserializeAws_restJson1ServiceLimitExceededExceptionResponse = async (par
|
|
|
2271
2271
|
});
|
|
2272
2272
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2273
2273
|
};
|
|
2274
|
-
const
|
|
2274
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
2275
2275
|
const contents = map({});
|
|
2276
2276
|
const data = parsedOutput.body;
|
|
2277
2277
|
if (data.Message != null) {
|
|
@@ -2283,7 +2283,7 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
2283
2283
|
});
|
|
2284
2284
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2285
2285
|
};
|
|
2286
|
-
const
|
|
2286
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
2287
2287
|
const contents = map({});
|
|
2288
2288
|
const data = parsedOutput.body;
|
|
2289
2289
|
if (data.ExceptionCause != null) {
|
|
@@ -2298,103 +2298,95 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
2298
2298
|
});
|
|
2299
2299
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2300
2300
|
};
|
|
2301
|
-
const
|
|
2301
|
+
const se_Action = (input, context) => {
|
|
2302
2302
|
return {
|
|
2303
2303
|
...(input.ExportRevisionToS3 != null && {
|
|
2304
|
-
ExportRevisionToS3:
|
|
2304
|
+
ExportRevisionToS3: se_AutoExportRevisionToS3RequestDetails(input.ExportRevisionToS3, context),
|
|
2305
2305
|
}),
|
|
2306
2306
|
};
|
|
2307
2307
|
};
|
|
2308
|
-
const
|
|
2308
|
+
const se_AssetDestinationEntry = (input, context) => {
|
|
2309
2309
|
return {
|
|
2310
2310
|
...(input.AssetId != null && { AssetId: input.AssetId }),
|
|
2311
2311
|
...(input.Bucket != null && { Bucket: input.Bucket }),
|
|
2312
2312
|
...(input.Key != null && { Key: input.Key }),
|
|
2313
2313
|
};
|
|
2314
2314
|
};
|
|
2315
|
-
const
|
|
2315
|
+
const se_AssetSourceEntry = (input, context) => {
|
|
2316
2316
|
return {
|
|
2317
2317
|
...(input.Bucket != null && { Bucket: input.Bucket }),
|
|
2318
2318
|
...(input.Key != null && { Key: input.Key }),
|
|
2319
2319
|
};
|
|
2320
2320
|
};
|
|
2321
|
-
const
|
|
2321
|
+
const se_AutoExportRevisionDestinationEntry = (input, context) => {
|
|
2322
2322
|
return {
|
|
2323
2323
|
...(input.Bucket != null && { Bucket: input.Bucket }),
|
|
2324
2324
|
...(input.KeyPattern != null && { KeyPattern: input.KeyPattern }),
|
|
2325
2325
|
};
|
|
2326
2326
|
};
|
|
2327
|
-
const
|
|
2327
|
+
const se_AutoExportRevisionToS3RequestDetails = (input, context) => {
|
|
2328
2328
|
return {
|
|
2329
|
-
...(input.Encryption != null && {
|
|
2330
|
-
Encryption: serializeAws_restJson1ExportServerSideEncryption(input.Encryption, context),
|
|
2331
|
-
}),
|
|
2329
|
+
...(input.Encryption != null && { Encryption: se_ExportServerSideEncryption(input.Encryption, context) }),
|
|
2332
2330
|
...(input.RevisionDestination != null && {
|
|
2333
|
-
RevisionDestination:
|
|
2331
|
+
RevisionDestination: se_AutoExportRevisionDestinationEntry(input.RevisionDestination, context),
|
|
2334
2332
|
}),
|
|
2335
2333
|
};
|
|
2336
2334
|
};
|
|
2337
|
-
const
|
|
2335
|
+
const se_CreateS3DataAccessFromS3BucketRequestDetails = (input, context) => {
|
|
2338
2336
|
return {
|
|
2339
|
-
...(input.AssetSource != null && {
|
|
2340
|
-
AssetSource: serializeAws_restJson1S3DataAccessAssetSourceEntry(input.AssetSource, context),
|
|
2341
|
-
}),
|
|
2337
|
+
...(input.AssetSource != null && { AssetSource: se_S3DataAccessAssetSourceEntry(input.AssetSource, context) }),
|
|
2342
2338
|
...(input.DataSetId != null && { DataSetId: input.DataSetId }),
|
|
2343
2339
|
...(input.RevisionId != null && { RevisionId: input.RevisionId }),
|
|
2344
2340
|
};
|
|
2345
2341
|
};
|
|
2346
|
-
const
|
|
2342
|
+
const se_DatabaseLFTagPolicyAndPermissions = (input, context) => {
|
|
2347
2343
|
return {
|
|
2348
|
-
...(input.Expression != null && { Expression:
|
|
2344
|
+
...(input.Expression != null && { Expression: se_ListOfLFTags(input.Expression, context) }),
|
|
2349
2345
|
...(input.Permissions != null && {
|
|
2350
|
-
Permissions:
|
|
2346
|
+
Permissions: se_ListOfDatabaseLFTagPolicyPermissions(input.Permissions, context),
|
|
2351
2347
|
}),
|
|
2352
2348
|
};
|
|
2353
2349
|
};
|
|
2354
|
-
const
|
|
2350
|
+
const se_Event = (input, context) => {
|
|
2355
2351
|
return {
|
|
2356
2352
|
...(input.RevisionPublished != null && {
|
|
2357
|
-
RevisionPublished:
|
|
2353
|
+
RevisionPublished: se_RevisionPublished(input.RevisionPublished, context),
|
|
2358
2354
|
}),
|
|
2359
2355
|
};
|
|
2360
2356
|
};
|
|
2361
|
-
const
|
|
2357
|
+
const se_ExportAssetsToS3RequestDetails = (input, context) => {
|
|
2362
2358
|
return {
|
|
2363
2359
|
...(input.AssetDestinations != null && {
|
|
2364
|
-
AssetDestinations:
|
|
2360
|
+
AssetDestinations: se_ListOfAssetDestinationEntry(input.AssetDestinations, context),
|
|
2365
2361
|
}),
|
|
2366
2362
|
...(input.DataSetId != null && { DataSetId: input.DataSetId }),
|
|
2367
|
-
...(input.Encryption != null && {
|
|
2368
|
-
Encryption: serializeAws_restJson1ExportServerSideEncryption(input.Encryption, context),
|
|
2369
|
-
}),
|
|
2363
|
+
...(input.Encryption != null && { Encryption: se_ExportServerSideEncryption(input.Encryption, context) }),
|
|
2370
2364
|
...(input.RevisionId != null && { RevisionId: input.RevisionId }),
|
|
2371
2365
|
};
|
|
2372
2366
|
};
|
|
2373
|
-
const
|
|
2367
|
+
const se_ExportAssetToSignedUrlRequestDetails = (input, context) => {
|
|
2374
2368
|
return {
|
|
2375
2369
|
...(input.AssetId != null && { AssetId: input.AssetId }),
|
|
2376
2370
|
...(input.DataSetId != null && { DataSetId: input.DataSetId }),
|
|
2377
2371
|
...(input.RevisionId != null && { RevisionId: input.RevisionId }),
|
|
2378
2372
|
};
|
|
2379
2373
|
};
|
|
2380
|
-
const
|
|
2374
|
+
const se_ExportRevisionsToS3RequestDetails = (input, context) => {
|
|
2381
2375
|
return {
|
|
2382
2376
|
...(input.DataSetId != null && { DataSetId: input.DataSetId }),
|
|
2383
|
-
...(input.Encryption != null && {
|
|
2384
|
-
Encryption: serializeAws_restJson1ExportServerSideEncryption(input.Encryption, context),
|
|
2385
|
-
}),
|
|
2377
|
+
...(input.Encryption != null && { Encryption: se_ExportServerSideEncryption(input.Encryption, context) }),
|
|
2386
2378
|
...(input.RevisionDestinations != null && {
|
|
2387
|
-
RevisionDestinations:
|
|
2379
|
+
RevisionDestinations: se_ListOfRevisionDestinationEntry(input.RevisionDestinations, context),
|
|
2388
2380
|
}),
|
|
2389
2381
|
};
|
|
2390
2382
|
};
|
|
2391
|
-
const
|
|
2383
|
+
const se_ExportServerSideEncryption = (input, context) => {
|
|
2392
2384
|
return {
|
|
2393
2385
|
...(input.KmsKeyArn != null && { KmsKeyArn: input.KmsKeyArn }),
|
|
2394
2386
|
...(input.Type != null && { Type: input.Type }),
|
|
2395
2387
|
};
|
|
2396
2388
|
};
|
|
2397
|
-
const
|
|
2389
|
+
const se_ImportAssetFromApiGatewayApiRequestDetails = (input, context) => {
|
|
2398
2390
|
return {
|
|
2399
2391
|
...(input.ApiDescription != null && { ApiDescription: input.ApiDescription }),
|
|
2400
2392
|
...(input.ApiId != null && { ApiId: input.ApiId }),
|
|
@@ -2407,7 +2399,7 @@ const serializeAws_restJson1ImportAssetFromApiGatewayApiRequestDetails = (input,
|
|
|
2407
2399
|
...(input.Stage != null && { Stage: input.Stage }),
|
|
2408
2400
|
};
|
|
2409
2401
|
};
|
|
2410
|
-
const
|
|
2402
|
+
const se_ImportAssetFromSignedUrlRequestDetails = (input, context) => {
|
|
2411
2403
|
return {
|
|
2412
2404
|
...(input.AssetName != null && { AssetName: input.AssetName }),
|
|
2413
2405
|
...(input.DataSetId != null && { DataSetId: input.DataSetId }),
|
|
@@ -2415,118 +2407,114 @@ const serializeAws_restJson1ImportAssetFromSignedUrlRequestDetails = (input, con
|
|
|
2415
2407
|
...(input.RevisionId != null && { RevisionId: input.RevisionId }),
|
|
2416
2408
|
};
|
|
2417
2409
|
};
|
|
2418
|
-
const
|
|
2410
|
+
const se_ImportAssetsFromLakeFormationTagPolicyRequestDetails = (input, context) => {
|
|
2419
2411
|
return {
|
|
2420
2412
|
...(input.CatalogId != null && { CatalogId: input.CatalogId }),
|
|
2421
2413
|
...(input.DataSetId != null && { DataSetId: input.DataSetId }),
|
|
2422
|
-
...(input.Database != null && {
|
|
2423
|
-
Database: serializeAws_restJson1DatabaseLFTagPolicyAndPermissions(input.Database, context),
|
|
2424
|
-
}),
|
|
2414
|
+
...(input.Database != null && { Database: se_DatabaseLFTagPolicyAndPermissions(input.Database, context) }),
|
|
2425
2415
|
...(input.RevisionId != null && { RevisionId: input.RevisionId }),
|
|
2426
2416
|
...(input.RoleArn != null && { RoleArn: input.RoleArn }),
|
|
2427
|
-
...(input.Table != null && { Table:
|
|
2417
|
+
...(input.Table != null && { Table: se_TableLFTagPolicyAndPermissions(input.Table, context) }),
|
|
2428
2418
|
};
|
|
2429
2419
|
};
|
|
2430
|
-
const
|
|
2420
|
+
const se_ImportAssetsFromRedshiftDataSharesRequestDetails = (input, context) => {
|
|
2431
2421
|
return {
|
|
2432
2422
|
...(input.AssetSources != null && {
|
|
2433
|
-
AssetSources:
|
|
2423
|
+
AssetSources: se_ListOfRedshiftDataShareAssetSourceEntry(input.AssetSources, context),
|
|
2434
2424
|
}),
|
|
2435
2425
|
...(input.DataSetId != null && { DataSetId: input.DataSetId }),
|
|
2436
2426
|
...(input.RevisionId != null && { RevisionId: input.RevisionId }),
|
|
2437
2427
|
};
|
|
2438
2428
|
};
|
|
2439
|
-
const
|
|
2429
|
+
const se_ImportAssetsFromS3RequestDetails = (input, context) => {
|
|
2440
2430
|
return {
|
|
2441
|
-
...(input.AssetSources != null && {
|
|
2442
|
-
AssetSources: serializeAws_restJson1ListOfAssetSourceEntry(input.AssetSources, context),
|
|
2443
|
-
}),
|
|
2431
|
+
...(input.AssetSources != null && { AssetSources: se_ListOfAssetSourceEntry(input.AssetSources, context) }),
|
|
2444
2432
|
...(input.DataSetId != null && { DataSetId: input.DataSetId }),
|
|
2445
2433
|
...(input.RevisionId != null && { RevisionId: input.RevisionId }),
|
|
2446
2434
|
};
|
|
2447
2435
|
};
|
|
2448
|
-
const
|
|
2436
|
+
const se_KmsKeyToGrant = (input, context) => {
|
|
2449
2437
|
return {
|
|
2450
2438
|
...(input.KmsKeyArn != null && { KmsKeyArn: input.KmsKeyArn }),
|
|
2451
2439
|
};
|
|
2452
2440
|
};
|
|
2453
|
-
const
|
|
2441
|
+
const se_LFTag = (input, context) => {
|
|
2454
2442
|
return {
|
|
2455
2443
|
...(input.TagKey != null && { TagKey: input.TagKey }),
|
|
2456
|
-
...(input.TagValues != null && { TagValues:
|
|
2444
|
+
...(input.TagValues != null && { TagValues: se_ListOfLFTagValues(input.TagValues, context) }),
|
|
2457
2445
|
};
|
|
2458
2446
|
};
|
|
2459
|
-
const
|
|
2447
|
+
const se_ListOf__string = (input, context) => {
|
|
2460
2448
|
return input
|
|
2461
2449
|
.filter((e) => e != null)
|
|
2462
2450
|
.map((entry) => {
|
|
2463
2451
|
return entry;
|
|
2464
2452
|
});
|
|
2465
2453
|
};
|
|
2466
|
-
const
|
|
2454
|
+
const se_ListOfAssetDestinationEntry = (input, context) => {
|
|
2467
2455
|
return input
|
|
2468
2456
|
.filter((e) => e != null)
|
|
2469
2457
|
.map((entry) => {
|
|
2470
|
-
return
|
|
2458
|
+
return se_AssetDestinationEntry(entry, context);
|
|
2471
2459
|
});
|
|
2472
2460
|
};
|
|
2473
|
-
const
|
|
2461
|
+
const se_ListOfAssetSourceEntry = (input, context) => {
|
|
2474
2462
|
return input
|
|
2475
2463
|
.filter((e) => e != null)
|
|
2476
2464
|
.map((entry) => {
|
|
2477
|
-
return
|
|
2465
|
+
return se_AssetSourceEntry(entry, context);
|
|
2478
2466
|
});
|
|
2479
2467
|
};
|
|
2480
|
-
const
|
|
2468
|
+
const se_ListOfDatabaseLFTagPolicyPermissions = (input, context) => {
|
|
2481
2469
|
return input
|
|
2482
2470
|
.filter((e) => e != null)
|
|
2483
2471
|
.map((entry) => {
|
|
2484
2472
|
return entry;
|
|
2485
2473
|
});
|
|
2486
2474
|
};
|
|
2487
|
-
const
|
|
2475
|
+
const se_ListOfKmsKeysToGrant = (input, context) => {
|
|
2488
2476
|
return input
|
|
2489
2477
|
.filter((e) => e != null)
|
|
2490
2478
|
.map((entry) => {
|
|
2491
|
-
return
|
|
2479
|
+
return se_KmsKeyToGrant(entry, context);
|
|
2492
2480
|
});
|
|
2493
2481
|
};
|
|
2494
|
-
const
|
|
2482
|
+
const se_ListOfLFTags = (input, context) => {
|
|
2495
2483
|
return input
|
|
2496
2484
|
.filter((e) => e != null)
|
|
2497
2485
|
.map((entry) => {
|
|
2498
|
-
return
|
|
2486
|
+
return se_LFTag(entry, context);
|
|
2499
2487
|
});
|
|
2500
2488
|
};
|
|
2501
|
-
const
|
|
2489
|
+
const se_ListOfLFTagValues = (input, context) => {
|
|
2502
2490
|
return input
|
|
2503
2491
|
.filter((e) => e != null)
|
|
2504
2492
|
.map((entry) => {
|
|
2505
2493
|
return entry;
|
|
2506
2494
|
});
|
|
2507
2495
|
};
|
|
2508
|
-
const
|
|
2496
|
+
const se_ListOfRedshiftDataShareAssetSourceEntry = (input, context) => {
|
|
2509
2497
|
return input
|
|
2510
2498
|
.filter((e) => e != null)
|
|
2511
2499
|
.map((entry) => {
|
|
2512
|
-
return
|
|
2500
|
+
return se_RedshiftDataShareAssetSourceEntry(entry, context);
|
|
2513
2501
|
});
|
|
2514
2502
|
};
|
|
2515
|
-
const
|
|
2503
|
+
const se_ListOfRevisionDestinationEntry = (input, context) => {
|
|
2516
2504
|
return input
|
|
2517
2505
|
.filter((e) => e != null)
|
|
2518
2506
|
.map((entry) => {
|
|
2519
|
-
return
|
|
2507
|
+
return se_RevisionDestinationEntry(entry, context);
|
|
2520
2508
|
});
|
|
2521
2509
|
};
|
|
2522
|
-
const
|
|
2510
|
+
const se_ListOfTableTagPolicyLFPermissions = (input, context) => {
|
|
2523
2511
|
return input
|
|
2524
2512
|
.filter((e) => e != null)
|
|
2525
2513
|
.map((entry) => {
|
|
2526
2514
|
return entry;
|
|
2527
2515
|
});
|
|
2528
2516
|
};
|
|
2529
|
-
const
|
|
2517
|
+
const se_MapOf__string = (input, context) => {
|
|
2530
2518
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2531
2519
|
if (value === null) {
|
|
2532
2520
|
return acc;
|
|
@@ -2535,80 +2523,76 @@ const serializeAws_restJson1MapOf__string = (input, context) => {
|
|
|
2535
2523
|
return acc;
|
|
2536
2524
|
}, {});
|
|
2537
2525
|
};
|
|
2538
|
-
const
|
|
2526
|
+
const se_RedshiftDataShareAssetSourceEntry = (input, context) => {
|
|
2539
2527
|
return {
|
|
2540
2528
|
...(input.DataShareArn != null && { DataShareArn: input.DataShareArn }),
|
|
2541
2529
|
};
|
|
2542
2530
|
};
|
|
2543
|
-
const
|
|
2531
|
+
const se_RequestDetails = (input, context) => {
|
|
2544
2532
|
return {
|
|
2545
2533
|
...(input.CreateS3DataAccessFromS3Bucket != null && {
|
|
2546
|
-
CreateS3DataAccessFromS3Bucket:
|
|
2534
|
+
CreateS3DataAccessFromS3Bucket: se_CreateS3DataAccessFromS3BucketRequestDetails(input.CreateS3DataAccessFromS3Bucket, context),
|
|
2547
2535
|
}),
|
|
2548
2536
|
...(input.ExportAssetToSignedUrl != null && {
|
|
2549
|
-
ExportAssetToSignedUrl:
|
|
2537
|
+
ExportAssetToSignedUrl: se_ExportAssetToSignedUrlRequestDetails(input.ExportAssetToSignedUrl, context),
|
|
2550
2538
|
}),
|
|
2551
2539
|
...(input.ExportAssetsToS3 != null && {
|
|
2552
|
-
ExportAssetsToS3:
|
|
2540
|
+
ExportAssetsToS3: se_ExportAssetsToS3RequestDetails(input.ExportAssetsToS3, context),
|
|
2553
2541
|
}),
|
|
2554
2542
|
...(input.ExportRevisionsToS3 != null && {
|
|
2555
|
-
ExportRevisionsToS3:
|
|
2543
|
+
ExportRevisionsToS3: se_ExportRevisionsToS3RequestDetails(input.ExportRevisionsToS3, context),
|
|
2556
2544
|
}),
|
|
2557
2545
|
...(input.ImportAssetFromApiGatewayApi != null && {
|
|
2558
|
-
ImportAssetFromApiGatewayApi:
|
|
2546
|
+
ImportAssetFromApiGatewayApi: se_ImportAssetFromApiGatewayApiRequestDetails(input.ImportAssetFromApiGatewayApi, context),
|
|
2559
2547
|
}),
|
|
2560
2548
|
...(input.ImportAssetFromSignedUrl != null && {
|
|
2561
|
-
ImportAssetFromSignedUrl:
|
|
2549
|
+
ImportAssetFromSignedUrl: se_ImportAssetFromSignedUrlRequestDetails(input.ImportAssetFromSignedUrl, context),
|
|
2562
2550
|
}),
|
|
2563
2551
|
...(input.ImportAssetsFromLakeFormationTagPolicy != null && {
|
|
2564
|
-
ImportAssetsFromLakeFormationTagPolicy:
|
|
2552
|
+
ImportAssetsFromLakeFormationTagPolicy: se_ImportAssetsFromLakeFormationTagPolicyRequestDetails(input.ImportAssetsFromLakeFormationTagPolicy, context),
|
|
2565
2553
|
}),
|
|
2566
2554
|
...(input.ImportAssetsFromRedshiftDataShares != null && {
|
|
2567
|
-
ImportAssetsFromRedshiftDataShares:
|
|
2555
|
+
ImportAssetsFromRedshiftDataShares: se_ImportAssetsFromRedshiftDataSharesRequestDetails(input.ImportAssetsFromRedshiftDataShares, context),
|
|
2568
2556
|
}),
|
|
2569
2557
|
...(input.ImportAssetsFromS3 != null && {
|
|
2570
|
-
ImportAssetsFromS3:
|
|
2558
|
+
ImportAssetsFromS3: se_ImportAssetsFromS3RequestDetails(input.ImportAssetsFromS3, context),
|
|
2571
2559
|
}),
|
|
2572
2560
|
};
|
|
2573
2561
|
};
|
|
2574
|
-
const
|
|
2562
|
+
const se_RevisionDestinationEntry = (input, context) => {
|
|
2575
2563
|
return {
|
|
2576
2564
|
...(input.Bucket != null && { Bucket: input.Bucket }),
|
|
2577
2565
|
...(input.KeyPattern != null && { KeyPattern: input.KeyPattern }),
|
|
2578
2566
|
...(input.RevisionId != null && { RevisionId: input.RevisionId }),
|
|
2579
2567
|
};
|
|
2580
2568
|
};
|
|
2581
|
-
const
|
|
2569
|
+
const se_RevisionPublished = (input, context) => {
|
|
2582
2570
|
return {
|
|
2583
2571
|
...(input.DataSetId != null && { DataSetId: input.DataSetId }),
|
|
2584
2572
|
};
|
|
2585
2573
|
};
|
|
2586
|
-
const
|
|
2574
|
+
const se_S3DataAccessAssetSourceEntry = (input, context) => {
|
|
2587
2575
|
return {
|
|
2588
2576
|
...(input.Bucket != null && { Bucket: input.Bucket }),
|
|
2589
|
-
...(input.KeyPrefixes != null && { KeyPrefixes:
|
|
2590
|
-
...(input.Keys != null && { Keys:
|
|
2591
|
-
...(input.KmsKeysToGrant != null && {
|
|
2592
|
-
KmsKeysToGrant: serializeAws_restJson1ListOfKmsKeysToGrant(input.KmsKeysToGrant, context),
|
|
2593
|
-
}),
|
|
2577
|
+
...(input.KeyPrefixes != null && { KeyPrefixes: se_ListOf__string(input.KeyPrefixes, context) }),
|
|
2578
|
+
...(input.Keys != null && { Keys: se_ListOf__string(input.Keys, context) }),
|
|
2579
|
+
...(input.KmsKeysToGrant != null && { KmsKeysToGrant: se_ListOfKmsKeysToGrant(input.KmsKeysToGrant, context) }),
|
|
2594
2580
|
};
|
|
2595
2581
|
};
|
|
2596
|
-
const
|
|
2582
|
+
const se_TableLFTagPolicyAndPermissions = (input, context) => {
|
|
2597
2583
|
return {
|
|
2598
|
-
...(input.Expression != null && { Expression:
|
|
2599
|
-
...(input.Permissions != null && {
|
|
2600
|
-
Permissions: serializeAws_restJson1ListOfTableTagPolicyLFPermissions(input.Permissions, context),
|
|
2601
|
-
}),
|
|
2584
|
+
...(input.Expression != null && { Expression: se_ListOfLFTags(input.Expression, context) }),
|
|
2585
|
+
...(input.Permissions != null && { Permissions: se_ListOfTableTagPolicyLFPermissions(input.Permissions, context) }),
|
|
2602
2586
|
};
|
|
2603
2587
|
};
|
|
2604
|
-
const
|
|
2588
|
+
const de_Action = (output, context) => {
|
|
2605
2589
|
return {
|
|
2606
2590
|
ExportRevisionToS3: output.ExportRevisionToS3 != null
|
|
2607
|
-
?
|
|
2591
|
+
? de_AutoExportRevisionToS3RequestDetails(output.ExportRevisionToS3, context)
|
|
2608
2592
|
: undefined,
|
|
2609
2593
|
};
|
|
2610
2594
|
};
|
|
2611
|
-
const
|
|
2595
|
+
const de_ApiGatewayApiAsset = (output, context) => {
|
|
2612
2596
|
return {
|
|
2613
2597
|
ApiDescription: __expectString(output.ApiDescription),
|
|
2614
2598
|
ApiEndpoint: __expectString(output.ApiEndpoint),
|
|
@@ -2623,36 +2607,30 @@ const deserializeAws_restJson1ApiGatewayApiAsset = (output, context) => {
|
|
|
2623
2607
|
Stage: __expectString(output.Stage),
|
|
2624
2608
|
};
|
|
2625
2609
|
};
|
|
2626
|
-
const
|
|
2610
|
+
const de_AssetDestinationEntry = (output, context) => {
|
|
2627
2611
|
return {
|
|
2628
2612
|
AssetId: __expectString(output.AssetId),
|
|
2629
2613
|
Bucket: __expectString(output.Bucket),
|
|
2630
2614
|
Key: __expectString(output.Key),
|
|
2631
2615
|
};
|
|
2632
2616
|
};
|
|
2633
|
-
const
|
|
2617
|
+
const de_AssetDetails = (output, context) => {
|
|
2634
2618
|
return {
|
|
2635
|
-
ApiGatewayApiAsset: output.ApiGatewayApiAsset != null
|
|
2636
|
-
? deserializeAws_restJson1ApiGatewayApiAsset(output.ApiGatewayApiAsset, context)
|
|
2637
|
-
: undefined,
|
|
2619
|
+
ApiGatewayApiAsset: output.ApiGatewayApiAsset != null ? de_ApiGatewayApiAsset(output.ApiGatewayApiAsset, context) : undefined,
|
|
2638
2620
|
LakeFormationDataPermissionAsset: output.LakeFormationDataPermissionAsset != null
|
|
2639
|
-
?
|
|
2621
|
+
? de_LakeFormationDataPermissionAsset(output.LakeFormationDataPermissionAsset, context)
|
|
2640
2622
|
: undefined,
|
|
2641
2623
|
RedshiftDataShareAsset: output.RedshiftDataShareAsset != null
|
|
2642
|
-
?
|
|
2643
|
-
: undefined,
|
|
2644
|
-
S3DataAccessAsset: output.S3DataAccessAsset != null
|
|
2645
|
-
? deserializeAws_restJson1S3DataAccessAsset(output.S3DataAccessAsset, context)
|
|
2646
|
-
: undefined,
|
|
2647
|
-
S3SnapshotAsset: output.S3SnapshotAsset != null
|
|
2648
|
-
? deserializeAws_restJson1S3SnapshotAsset(output.S3SnapshotAsset, context)
|
|
2624
|
+
? de_RedshiftDataShareAsset(output.RedshiftDataShareAsset, context)
|
|
2649
2625
|
: undefined,
|
|
2626
|
+
S3DataAccessAsset: output.S3DataAccessAsset != null ? de_S3DataAccessAsset(output.S3DataAccessAsset, context) : undefined,
|
|
2627
|
+
S3SnapshotAsset: output.S3SnapshotAsset != null ? de_S3SnapshotAsset(output.S3SnapshotAsset, context) : undefined,
|
|
2650
2628
|
};
|
|
2651
2629
|
};
|
|
2652
|
-
const
|
|
2630
|
+
const de_AssetEntry = (output, context) => {
|
|
2653
2631
|
return {
|
|
2654
2632
|
Arn: __expectString(output.Arn),
|
|
2655
|
-
AssetDetails: output.AssetDetails != null ?
|
|
2633
|
+
AssetDetails: output.AssetDetails != null ? de_AssetDetails(output.AssetDetails, context) : undefined,
|
|
2656
2634
|
AssetType: __expectString(output.AssetType),
|
|
2657
2635
|
CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.CreatedAt)) : undefined,
|
|
2658
2636
|
DataSetId: __expectString(output.DataSetId),
|
|
@@ -2663,51 +2641,45 @@ const deserializeAws_restJson1AssetEntry = (output, context) => {
|
|
|
2663
2641
|
UpdatedAt: output.UpdatedAt != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.UpdatedAt)) : undefined,
|
|
2664
2642
|
};
|
|
2665
2643
|
};
|
|
2666
|
-
const
|
|
2644
|
+
const de_AssetSourceEntry = (output, context) => {
|
|
2667
2645
|
return {
|
|
2668
2646
|
Bucket: __expectString(output.Bucket),
|
|
2669
2647
|
Key: __expectString(output.Key),
|
|
2670
2648
|
};
|
|
2671
2649
|
};
|
|
2672
|
-
const
|
|
2650
|
+
const de_AutoExportRevisionDestinationEntry = (output, context) => {
|
|
2673
2651
|
return {
|
|
2674
2652
|
Bucket: __expectString(output.Bucket),
|
|
2675
2653
|
KeyPattern: __expectString(output.KeyPattern),
|
|
2676
2654
|
};
|
|
2677
2655
|
};
|
|
2678
|
-
const
|
|
2656
|
+
const de_AutoExportRevisionToS3RequestDetails = (output, context) => {
|
|
2679
2657
|
return {
|
|
2680
|
-
Encryption: output.Encryption != null
|
|
2681
|
-
? deserializeAws_restJson1ExportServerSideEncryption(output.Encryption, context)
|
|
2682
|
-
: undefined,
|
|
2658
|
+
Encryption: output.Encryption != null ? de_ExportServerSideEncryption(output.Encryption, context) : undefined,
|
|
2683
2659
|
RevisionDestination: output.RevisionDestination != null
|
|
2684
|
-
?
|
|
2660
|
+
? de_AutoExportRevisionDestinationEntry(output.RevisionDestination, context)
|
|
2685
2661
|
: undefined,
|
|
2686
2662
|
};
|
|
2687
2663
|
};
|
|
2688
|
-
const
|
|
2664
|
+
const de_CreateS3DataAccessFromS3BucketResponseDetails = (output, context) => {
|
|
2689
2665
|
return {
|
|
2690
|
-
AssetSource: output.AssetSource != null
|
|
2691
|
-
? deserializeAws_restJson1S3DataAccessAssetSourceEntry(output.AssetSource, context)
|
|
2692
|
-
: undefined,
|
|
2666
|
+
AssetSource: output.AssetSource != null ? de_S3DataAccessAssetSourceEntry(output.AssetSource, context) : undefined,
|
|
2693
2667
|
DataSetId: __expectString(output.DataSetId),
|
|
2694
2668
|
RevisionId: __expectString(output.RevisionId),
|
|
2695
2669
|
};
|
|
2696
2670
|
};
|
|
2697
|
-
const
|
|
2671
|
+
const de_DatabaseLFTagPolicy = (output, context) => {
|
|
2698
2672
|
return {
|
|
2699
|
-
Expression: output.Expression != null ?
|
|
2673
|
+
Expression: output.Expression != null ? de_ListOfLFTags(output.Expression, context) : undefined,
|
|
2700
2674
|
};
|
|
2701
2675
|
};
|
|
2702
|
-
const
|
|
2676
|
+
const de_DatabaseLFTagPolicyAndPermissions = (output, context) => {
|
|
2703
2677
|
return {
|
|
2704
|
-
Expression: output.Expression != null ?
|
|
2705
|
-
Permissions: output.Permissions != null
|
|
2706
|
-
? deserializeAws_restJson1ListOfDatabaseLFTagPolicyPermissions(output.Permissions, context)
|
|
2707
|
-
: undefined,
|
|
2678
|
+
Expression: output.Expression != null ? de_ListOfLFTags(output.Expression, context) : undefined,
|
|
2679
|
+
Permissions: output.Permissions != null ? de_ListOfDatabaseLFTagPolicyPermissions(output.Permissions, context) : undefined,
|
|
2708
2680
|
};
|
|
2709
2681
|
};
|
|
2710
|
-
const
|
|
2682
|
+
const de_DataSetEntry = (output, context) => {
|
|
2711
2683
|
return {
|
|
2712
2684
|
Arn: __expectString(output.Arn),
|
|
2713
2685
|
AssetType: __expectString(output.AssetType),
|
|
@@ -2716,51 +2688,45 @@ const deserializeAws_restJson1DataSetEntry = (output, context) => {
|
|
|
2716
2688
|
Id: __expectString(output.Id),
|
|
2717
2689
|
Name: __expectString(output.Name),
|
|
2718
2690
|
Origin: __expectString(output.Origin),
|
|
2719
|
-
OriginDetails: output.OriginDetails != null ?
|
|
2691
|
+
OriginDetails: output.OriginDetails != null ? de_OriginDetails(output.OriginDetails, context) : undefined,
|
|
2720
2692
|
SourceId: __expectString(output.SourceId),
|
|
2721
2693
|
UpdatedAt: output.UpdatedAt != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.UpdatedAt)) : undefined,
|
|
2722
2694
|
};
|
|
2723
2695
|
};
|
|
2724
|
-
const
|
|
2696
|
+
const de_Details = (output, context) => {
|
|
2725
2697
|
return {
|
|
2726
2698
|
ImportAssetFromSignedUrlJobErrorDetails: output.ImportAssetFromSignedUrlJobErrorDetails != null
|
|
2727
|
-
?
|
|
2699
|
+
? de_ImportAssetFromSignedUrlJobErrorDetails(output.ImportAssetFromSignedUrlJobErrorDetails, context)
|
|
2728
2700
|
: undefined,
|
|
2729
2701
|
ImportAssetsFromS3JobErrorDetails: output.ImportAssetsFromS3JobErrorDetails != null
|
|
2730
|
-
?
|
|
2702
|
+
? de_ListOfAssetSourceEntry(output.ImportAssetsFromS3JobErrorDetails, context)
|
|
2731
2703
|
: undefined,
|
|
2732
2704
|
};
|
|
2733
2705
|
};
|
|
2734
|
-
const
|
|
2706
|
+
const de_Event = (output, context) => {
|
|
2735
2707
|
return {
|
|
2736
|
-
RevisionPublished: output.RevisionPublished != null
|
|
2737
|
-
? deserializeAws_restJson1RevisionPublished(output.RevisionPublished, context)
|
|
2738
|
-
: undefined,
|
|
2708
|
+
RevisionPublished: output.RevisionPublished != null ? de_RevisionPublished(output.RevisionPublished, context) : undefined,
|
|
2739
2709
|
};
|
|
2740
2710
|
};
|
|
2741
|
-
const
|
|
2711
|
+
const de_EventActionEntry = (output, context) => {
|
|
2742
2712
|
return {
|
|
2743
|
-
Action: output.Action != null ?
|
|
2713
|
+
Action: output.Action != null ? de_Action(output.Action, context) : undefined,
|
|
2744
2714
|
Arn: __expectString(output.Arn),
|
|
2745
2715
|
CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.CreatedAt)) : undefined,
|
|
2746
|
-
Event: output.Event != null ?
|
|
2716
|
+
Event: output.Event != null ? de_Event(output.Event, context) : undefined,
|
|
2747
2717
|
Id: __expectString(output.Id),
|
|
2748
2718
|
UpdatedAt: output.UpdatedAt != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.UpdatedAt)) : undefined,
|
|
2749
2719
|
};
|
|
2750
2720
|
};
|
|
2751
|
-
const
|
|
2721
|
+
const de_ExportAssetsToS3ResponseDetails = (output, context) => {
|
|
2752
2722
|
return {
|
|
2753
|
-
AssetDestinations: output.AssetDestinations != null
|
|
2754
|
-
? deserializeAws_restJson1ListOfAssetDestinationEntry(output.AssetDestinations, context)
|
|
2755
|
-
: undefined,
|
|
2723
|
+
AssetDestinations: output.AssetDestinations != null ? de_ListOfAssetDestinationEntry(output.AssetDestinations, context) : undefined,
|
|
2756
2724
|
DataSetId: __expectString(output.DataSetId),
|
|
2757
|
-
Encryption: output.Encryption != null
|
|
2758
|
-
? deserializeAws_restJson1ExportServerSideEncryption(output.Encryption, context)
|
|
2759
|
-
: undefined,
|
|
2725
|
+
Encryption: output.Encryption != null ? de_ExportServerSideEncryption(output.Encryption, context) : undefined,
|
|
2760
2726
|
RevisionId: __expectString(output.RevisionId),
|
|
2761
2727
|
};
|
|
2762
2728
|
};
|
|
2763
|
-
const
|
|
2729
|
+
const de_ExportAssetToSignedUrlResponseDetails = (output, context) => {
|
|
2764
2730
|
return {
|
|
2765
2731
|
AssetId: __expectString(output.AssetId),
|
|
2766
2732
|
DataSetId: __expectString(output.DataSetId),
|
|
@@ -2771,25 +2737,23 @@ const deserializeAws_restJson1ExportAssetToSignedUrlResponseDetails = (output, c
|
|
|
2771
2737
|
: undefined,
|
|
2772
2738
|
};
|
|
2773
2739
|
};
|
|
2774
|
-
const
|
|
2740
|
+
const de_ExportRevisionsToS3ResponseDetails = (output, context) => {
|
|
2775
2741
|
return {
|
|
2776
2742
|
DataSetId: __expectString(output.DataSetId),
|
|
2777
|
-
Encryption: output.Encryption != null
|
|
2778
|
-
? deserializeAws_restJson1ExportServerSideEncryption(output.Encryption, context)
|
|
2779
|
-
: undefined,
|
|
2743
|
+
Encryption: output.Encryption != null ? de_ExportServerSideEncryption(output.Encryption, context) : undefined,
|
|
2780
2744
|
EventActionArn: __expectString(output.EventActionArn),
|
|
2781
2745
|
RevisionDestinations: output.RevisionDestinations != null
|
|
2782
|
-
?
|
|
2746
|
+
? de_ListOfRevisionDestinationEntry(output.RevisionDestinations, context)
|
|
2783
2747
|
: undefined,
|
|
2784
2748
|
};
|
|
2785
2749
|
};
|
|
2786
|
-
const
|
|
2750
|
+
const de_ExportServerSideEncryption = (output, context) => {
|
|
2787
2751
|
return {
|
|
2788
2752
|
KmsKeyArn: __expectString(output.KmsKeyArn),
|
|
2789
2753
|
Type: __expectString(output.Type),
|
|
2790
2754
|
};
|
|
2791
2755
|
};
|
|
2792
|
-
const
|
|
2756
|
+
const de_ImportAssetFromApiGatewayApiResponseDetails = (output, context) => {
|
|
2793
2757
|
return {
|
|
2794
2758
|
ApiDescription: __expectString(output.ApiDescription),
|
|
2795
2759
|
ApiId: __expectString(output.ApiId),
|
|
@@ -2806,12 +2770,12 @@ const deserializeAws_restJson1ImportAssetFromApiGatewayApiResponseDetails = (out
|
|
|
2806
2770
|
Stage: __expectString(output.Stage),
|
|
2807
2771
|
};
|
|
2808
2772
|
};
|
|
2809
|
-
const
|
|
2773
|
+
const de_ImportAssetFromSignedUrlJobErrorDetails = (output, context) => {
|
|
2810
2774
|
return {
|
|
2811
2775
|
AssetName: __expectString(output.AssetName),
|
|
2812
2776
|
};
|
|
2813
2777
|
};
|
|
2814
|
-
const
|
|
2778
|
+
const de_ImportAssetFromSignedUrlResponseDetails = (output, context) => {
|
|
2815
2779
|
return {
|
|
2816
2780
|
AssetName: __expectString(output.AssetName),
|
|
2817
2781
|
DataSetId: __expectString(output.DataSetId),
|
|
@@ -2823,52 +2787,48 @@ const deserializeAws_restJson1ImportAssetFromSignedUrlResponseDetails = (output,
|
|
|
2823
2787
|
: undefined,
|
|
2824
2788
|
};
|
|
2825
2789
|
};
|
|
2826
|
-
const
|
|
2790
|
+
const de_ImportAssetsFromLakeFormationTagPolicyResponseDetails = (output, context) => {
|
|
2827
2791
|
return {
|
|
2828
2792
|
CatalogId: __expectString(output.CatalogId),
|
|
2829
2793
|
DataSetId: __expectString(output.DataSetId),
|
|
2830
|
-
Database: output.Database != null
|
|
2831
|
-
? deserializeAws_restJson1DatabaseLFTagPolicyAndPermissions(output.Database, context)
|
|
2832
|
-
: undefined,
|
|
2794
|
+
Database: output.Database != null ? de_DatabaseLFTagPolicyAndPermissions(output.Database, context) : undefined,
|
|
2833
2795
|
RevisionId: __expectString(output.RevisionId),
|
|
2834
2796
|
RoleArn: __expectString(output.RoleArn),
|
|
2835
|
-
Table: output.Table != null ?
|
|
2797
|
+
Table: output.Table != null ? de_TableLFTagPolicyAndPermissions(output.Table, context) : undefined,
|
|
2836
2798
|
};
|
|
2837
2799
|
};
|
|
2838
|
-
const
|
|
2800
|
+
const de_ImportAssetsFromRedshiftDataSharesResponseDetails = (output, context) => {
|
|
2839
2801
|
return {
|
|
2840
2802
|
AssetSources: output.AssetSources != null
|
|
2841
|
-
?
|
|
2803
|
+
? de_ListOfRedshiftDataShareAssetSourceEntry(output.AssetSources, context)
|
|
2842
2804
|
: undefined,
|
|
2843
2805
|
DataSetId: __expectString(output.DataSetId),
|
|
2844
2806
|
RevisionId: __expectString(output.RevisionId),
|
|
2845
2807
|
};
|
|
2846
2808
|
};
|
|
2847
|
-
const
|
|
2809
|
+
const de_ImportAssetsFromS3ResponseDetails = (output, context) => {
|
|
2848
2810
|
return {
|
|
2849
|
-
AssetSources: output.AssetSources != null
|
|
2850
|
-
? deserializeAws_restJson1ListOfAssetSourceEntry(output.AssetSources, context)
|
|
2851
|
-
: undefined,
|
|
2811
|
+
AssetSources: output.AssetSources != null ? de_ListOfAssetSourceEntry(output.AssetSources, context) : undefined,
|
|
2852
2812
|
DataSetId: __expectString(output.DataSetId),
|
|
2853
2813
|
RevisionId: __expectString(output.RevisionId),
|
|
2854
2814
|
};
|
|
2855
2815
|
};
|
|
2856
|
-
const
|
|
2816
|
+
const de_JobEntry = (output, context) => {
|
|
2857
2817
|
return {
|
|
2858
2818
|
Arn: __expectString(output.Arn),
|
|
2859
2819
|
CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.CreatedAt)) : undefined,
|
|
2860
|
-
Details: output.Details != null ?
|
|
2861
|
-
Errors: output.Errors != null ?
|
|
2820
|
+
Details: output.Details != null ? de_ResponseDetails(output.Details, context) : undefined,
|
|
2821
|
+
Errors: output.Errors != null ? de_ListOfJobError(output.Errors, context) : undefined,
|
|
2862
2822
|
Id: __expectString(output.Id),
|
|
2863
2823
|
State: __expectString(output.State),
|
|
2864
2824
|
Type: __expectString(output.Type),
|
|
2865
2825
|
UpdatedAt: output.UpdatedAt != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.UpdatedAt)) : undefined,
|
|
2866
2826
|
};
|
|
2867
2827
|
};
|
|
2868
|
-
const
|
|
2828
|
+
const de_JobError = (output, context) => {
|
|
2869
2829
|
return {
|
|
2870
2830
|
Code: __expectString(output.Code),
|
|
2871
|
-
Details: output.Details != null ?
|
|
2831
|
+
Details: output.Details != null ? de_Details(output.Details, context) : undefined,
|
|
2872
2832
|
LimitName: __expectString(output.LimitName),
|
|
2873
2833
|
LimitValue: __limitedParseDouble(output.LimitValue),
|
|
2874
2834
|
Message: __expectString(output.Message),
|
|
@@ -2876,48 +2836,46 @@ const deserializeAws_restJson1JobError = (output, context) => {
|
|
|
2876
2836
|
ResourceType: __expectString(output.ResourceType),
|
|
2877
2837
|
};
|
|
2878
2838
|
};
|
|
2879
|
-
const
|
|
2839
|
+
const de_KmsKeyToGrant = (output, context) => {
|
|
2880
2840
|
return {
|
|
2881
2841
|
KmsKeyArn: __expectString(output.KmsKeyArn),
|
|
2882
2842
|
};
|
|
2883
2843
|
};
|
|
2884
|
-
const
|
|
2844
|
+
const de_LakeFormationDataPermissionAsset = (output, context) => {
|
|
2885
2845
|
return {
|
|
2886
2846
|
LakeFormationDataPermissionDetails: output.LakeFormationDataPermissionDetails != null
|
|
2887
|
-
?
|
|
2847
|
+
? de_LakeFormationDataPermissionDetails(output.LakeFormationDataPermissionDetails, context)
|
|
2888
2848
|
: undefined,
|
|
2889
2849
|
LakeFormationDataPermissionType: __expectString(output.LakeFormationDataPermissionType),
|
|
2890
|
-
Permissions: output.Permissions != null ?
|
|
2850
|
+
Permissions: output.Permissions != null ? de_ListOfLFPermissions(output.Permissions, context) : undefined,
|
|
2891
2851
|
RoleArn: __expectString(output.RoleArn),
|
|
2892
2852
|
};
|
|
2893
2853
|
};
|
|
2894
|
-
const
|
|
2854
|
+
const de_LakeFormationDataPermissionDetails = (output, context) => {
|
|
2895
2855
|
return {
|
|
2896
|
-
LFTagPolicy: output.LFTagPolicy != null ?
|
|
2856
|
+
LFTagPolicy: output.LFTagPolicy != null ? de_LFTagPolicyDetails(output.LFTagPolicy, context) : undefined,
|
|
2897
2857
|
};
|
|
2898
2858
|
};
|
|
2899
|
-
const
|
|
2859
|
+
const de_LFResourceDetails = (output, context) => {
|
|
2900
2860
|
return {
|
|
2901
|
-
Database: output.Database != null ?
|
|
2902
|
-
Table: output.Table != null ?
|
|
2861
|
+
Database: output.Database != null ? de_DatabaseLFTagPolicy(output.Database, context) : undefined,
|
|
2862
|
+
Table: output.Table != null ? de_TableLFTagPolicy(output.Table, context) : undefined,
|
|
2903
2863
|
};
|
|
2904
2864
|
};
|
|
2905
|
-
const
|
|
2865
|
+
const de_LFTag = (output, context) => {
|
|
2906
2866
|
return {
|
|
2907
2867
|
TagKey: __expectString(output.TagKey),
|
|
2908
|
-
TagValues: output.TagValues != null ?
|
|
2868
|
+
TagValues: output.TagValues != null ? de_ListOfLFTagValues(output.TagValues, context) : undefined,
|
|
2909
2869
|
};
|
|
2910
2870
|
};
|
|
2911
|
-
const
|
|
2871
|
+
const de_LFTagPolicyDetails = (output, context) => {
|
|
2912
2872
|
return {
|
|
2913
2873
|
CatalogId: __expectString(output.CatalogId),
|
|
2914
|
-
ResourceDetails: output.ResourceDetails != null
|
|
2915
|
-
? deserializeAws_restJson1LFResourceDetails(output.ResourceDetails, context)
|
|
2916
|
-
: undefined,
|
|
2874
|
+
ResourceDetails: output.ResourceDetails != null ? de_LFResourceDetails(output.ResourceDetails, context) : undefined,
|
|
2917
2875
|
ResourceType: __expectString(output.ResourceType),
|
|
2918
2876
|
};
|
|
2919
2877
|
};
|
|
2920
|
-
const
|
|
2878
|
+
const de_ListOf__string = (output, context) => {
|
|
2921
2879
|
const retVal = (output || [])
|
|
2922
2880
|
.filter((e) => e != null)
|
|
2923
2881
|
.map((entry) => {
|
|
@@ -2928,40 +2886,40 @@ const deserializeAws_restJson1ListOf__string = (output, context) => {
|
|
|
2928
2886
|
});
|
|
2929
2887
|
return retVal;
|
|
2930
2888
|
};
|
|
2931
|
-
const
|
|
2889
|
+
const de_ListOfAssetDestinationEntry = (output, context) => {
|
|
2932
2890
|
const retVal = (output || [])
|
|
2933
2891
|
.filter((e) => e != null)
|
|
2934
2892
|
.map((entry) => {
|
|
2935
2893
|
if (entry === null) {
|
|
2936
2894
|
return null;
|
|
2937
2895
|
}
|
|
2938
|
-
return
|
|
2896
|
+
return de_AssetDestinationEntry(entry, context);
|
|
2939
2897
|
});
|
|
2940
2898
|
return retVal;
|
|
2941
2899
|
};
|
|
2942
|
-
const
|
|
2900
|
+
const de_ListOfAssetEntry = (output, context) => {
|
|
2943
2901
|
const retVal = (output || [])
|
|
2944
2902
|
.filter((e) => e != null)
|
|
2945
2903
|
.map((entry) => {
|
|
2946
2904
|
if (entry === null) {
|
|
2947
2905
|
return null;
|
|
2948
2906
|
}
|
|
2949
|
-
return
|
|
2907
|
+
return de_AssetEntry(entry, context);
|
|
2950
2908
|
});
|
|
2951
2909
|
return retVal;
|
|
2952
2910
|
};
|
|
2953
|
-
const
|
|
2911
|
+
const de_ListOfAssetSourceEntry = (output, context) => {
|
|
2954
2912
|
const retVal = (output || [])
|
|
2955
2913
|
.filter((e) => e != null)
|
|
2956
2914
|
.map((entry) => {
|
|
2957
2915
|
if (entry === null) {
|
|
2958
2916
|
return null;
|
|
2959
2917
|
}
|
|
2960
|
-
return
|
|
2918
|
+
return de_AssetSourceEntry(entry, context);
|
|
2961
2919
|
});
|
|
2962
2920
|
return retVal;
|
|
2963
2921
|
};
|
|
2964
|
-
const
|
|
2922
|
+
const de_ListOfDatabaseLFTagPolicyPermissions = (output, context) => {
|
|
2965
2923
|
const retVal = (output || [])
|
|
2966
2924
|
.filter((e) => e != null)
|
|
2967
2925
|
.map((entry) => {
|
|
@@ -2972,62 +2930,62 @@ const deserializeAws_restJson1ListOfDatabaseLFTagPolicyPermissions = (output, co
|
|
|
2972
2930
|
});
|
|
2973
2931
|
return retVal;
|
|
2974
2932
|
};
|
|
2975
|
-
const
|
|
2933
|
+
const de_ListOfDataSetEntry = (output, context) => {
|
|
2976
2934
|
const retVal = (output || [])
|
|
2977
2935
|
.filter((e) => e != null)
|
|
2978
2936
|
.map((entry) => {
|
|
2979
2937
|
if (entry === null) {
|
|
2980
2938
|
return null;
|
|
2981
2939
|
}
|
|
2982
|
-
return
|
|
2940
|
+
return de_DataSetEntry(entry, context);
|
|
2983
2941
|
});
|
|
2984
2942
|
return retVal;
|
|
2985
2943
|
};
|
|
2986
|
-
const
|
|
2944
|
+
const de_ListOfEventActionEntry = (output, context) => {
|
|
2987
2945
|
const retVal = (output || [])
|
|
2988
2946
|
.filter((e) => e != null)
|
|
2989
2947
|
.map((entry) => {
|
|
2990
2948
|
if (entry === null) {
|
|
2991
2949
|
return null;
|
|
2992
2950
|
}
|
|
2993
|
-
return
|
|
2951
|
+
return de_EventActionEntry(entry, context);
|
|
2994
2952
|
});
|
|
2995
2953
|
return retVal;
|
|
2996
2954
|
};
|
|
2997
|
-
const
|
|
2955
|
+
const de_ListOfJobEntry = (output, context) => {
|
|
2998
2956
|
const retVal = (output || [])
|
|
2999
2957
|
.filter((e) => e != null)
|
|
3000
2958
|
.map((entry) => {
|
|
3001
2959
|
if (entry === null) {
|
|
3002
2960
|
return null;
|
|
3003
2961
|
}
|
|
3004
|
-
return
|
|
2962
|
+
return de_JobEntry(entry, context);
|
|
3005
2963
|
});
|
|
3006
2964
|
return retVal;
|
|
3007
2965
|
};
|
|
3008
|
-
const
|
|
2966
|
+
const de_ListOfJobError = (output, context) => {
|
|
3009
2967
|
const retVal = (output || [])
|
|
3010
2968
|
.filter((e) => e != null)
|
|
3011
2969
|
.map((entry) => {
|
|
3012
2970
|
if (entry === null) {
|
|
3013
2971
|
return null;
|
|
3014
2972
|
}
|
|
3015
|
-
return
|
|
2973
|
+
return de_JobError(entry, context);
|
|
3016
2974
|
});
|
|
3017
2975
|
return retVal;
|
|
3018
2976
|
};
|
|
3019
|
-
const
|
|
2977
|
+
const de_ListOfKmsKeysToGrant = (output, context) => {
|
|
3020
2978
|
const retVal = (output || [])
|
|
3021
2979
|
.filter((e) => e != null)
|
|
3022
2980
|
.map((entry) => {
|
|
3023
2981
|
if (entry === null) {
|
|
3024
2982
|
return null;
|
|
3025
2983
|
}
|
|
3026
|
-
return
|
|
2984
|
+
return de_KmsKeyToGrant(entry, context);
|
|
3027
2985
|
});
|
|
3028
2986
|
return retVal;
|
|
3029
2987
|
};
|
|
3030
|
-
const
|
|
2988
|
+
const de_ListOfLFPermissions = (output, context) => {
|
|
3031
2989
|
const retVal = (output || [])
|
|
3032
2990
|
.filter((e) => e != null)
|
|
3033
2991
|
.map((entry) => {
|
|
@@ -3038,18 +2996,18 @@ const deserializeAws_restJson1ListOfLFPermissions = (output, context) => {
|
|
|
3038
2996
|
});
|
|
3039
2997
|
return retVal;
|
|
3040
2998
|
};
|
|
3041
|
-
const
|
|
2999
|
+
const de_ListOfLFTags = (output, context) => {
|
|
3042
3000
|
const retVal = (output || [])
|
|
3043
3001
|
.filter((e) => e != null)
|
|
3044
3002
|
.map((entry) => {
|
|
3045
3003
|
if (entry === null) {
|
|
3046
3004
|
return null;
|
|
3047
3005
|
}
|
|
3048
|
-
return
|
|
3006
|
+
return de_LFTag(entry, context);
|
|
3049
3007
|
});
|
|
3050
3008
|
return retVal;
|
|
3051
3009
|
};
|
|
3052
|
-
const
|
|
3010
|
+
const de_ListOfLFTagValues = (output, context) => {
|
|
3053
3011
|
const retVal = (output || [])
|
|
3054
3012
|
.filter((e) => e != null)
|
|
3055
3013
|
.map((entry) => {
|
|
@@ -3060,40 +3018,40 @@ const deserializeAws_restJson1ListOfLFTagValues = (output, context) => {
|
|
|
3060
3018
|
});
|
|
3061
3019
|
return retVal;
|
|
3062
3020
|
};
|
|
3063
|
-
const
|
|
3021
|
+
const de_ListOfRedshiftDataShareAssetSourceEntry = (output, context) => {
|
|
3064
3022
|
const retVal = (output || [])
|
|
3065
3023
|
.filter((e) => e != null)
|
|
3066
3024
|
.map((entry) => {
|
|
3067
3025
|
if (entry === null) {
|
|
3068
3026
|
return null;
|
|
3069
3027
|
}
|
|
3070
|
-
return
|
|
3028
|
+
return de_RedshiftDataShareAssetSourceEntry(entry, context);
|
|
3071
3029
|
});
|
|
3072
3030
|
return retVal;
|
|
3073
3031
|
};
|
|
3074
|
-
const
|
|
3032
|
+
const de_ListOfRevisionDestinationEntry = (output, context) => {
|
|
3075
3033
|
const retVal = (output || [])
|
|
3076
3034
|
.filter((e) => e != null)
|
|
3077
3035
|
.map((entry) => {
|
|
3078
3036
|
if (entry === null) {
|
|
3079
3037
|
return null;
|
|
3080
3038
|
}
|
|
3081
|
-
return
|
|
3039
|
+
return de_RevisionDestinationEntry(entry, context);
|
|
3082
3040
|
});
|
|
3083
3041
|
return retVal;
|
|
3084
3042
|
};
|
|
3085
|
-
const
|
|
3043
|
+
const de_ListOfRevisionEntry = (output, context) => {
|
|
3086
3044
|
const retVal = (output || [])
|
|
3087
3045
|
.filter((e) => e != null)
|
|
3088
3046
|
.map((entry) => {
|
|
3089
3047
|
if (entry === null) {
|
|
3090
3048
|
return null;
|
|
3091
3049
|
}
|
|
3092
|
-
return
|
|
3050
|
+
return de_RevisionEntry(entry, context);
|
|
3093
3051
|
});
|
|
3094
3052
|
return retVal;
|
|
3095
3053
|
};
|
|
3096
|
-
const
|
|
3054
|
+
const de_ListOfTableTagPolicyLFPermissions = (output, context) => {
|
|
3097
3055
|
const retVal = (output || [])
|
|
3098
3056
|
.filter((e) => e != null)
|
|
3099
3057
|
.map((entry) => {
|
|
@@ -3104,7 +3062,7 @@ const deserializeAws_restJson1ListOfTableTagPolicyLFPermissions = (output, conte
|
|
|
3104
3062
|
});
|
|
3105
3063
|
return retVal;
|
|
3106
3064
|
};
|
|
3107
|
-
const
|
|
3065
|
+
const de_MapOf__string = (output, context) => {
|
|
3108
3066
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3109
3067
|
if (value === null) {
|
|
3110
3068
|
return acc;
|
|
@@ -3113,60 +3071,60 @@ const deserializeAws_restJson1MapOf__string = (output, context) => {
|
|
|
3113
3071
|
return acc;
|
|
3114
3072
|
}, {});
|
|
3115
3073
|
};
|
|
3116
|
-
const
|
|
3074
|
+
const de_OriginDetails = (output, context) => {
|
|
3117
3075
|
return {
|
|
3118
3076
|
ProductId: __expectString(output.ProductId),
|
|
3119
3077
|
};
|
|
3120
3078
|
};
|
|
3121
|
-
const
|
|
3079
|
+
const de_RedshiftDataShareAsset = (output, context) => {
|
|
3122
3080
|
return {
|
|
3123
3081
|
Arn: __expectString(output.Arn),
|
|
3124
3082
|
};
|
|
3125
3083
|
};
|
|
3126
|
-
const
|
|
3084
|
+
const de_RedshiftDataShareAssetSourceEntry = (output, context) => {
|
|
3127
3085
|
return {
|
|
3128
3086
|
DataShareArn: __expectString(output.DataShareArn),
|
|
3129
3087
|
};
|
|
3130
3088
|
};
|
|
3131
|
-
const
|
|
3089
|
+
const de_ResponseDetails = (output, context) => {
|
|
3132
3090
|
return {
|
|
3133
3091
|
CreateS3DataAccessFromS3Bucket: output.CreateS3DataAccessFromS3Bucket != null
|
|
3134
|
-
?
|
|
3092
|
+
? de_CreateS3DataAccessFromS3BucketResponseDetails(output.CreateS3DataAccessFromS3Bucket, context)
|
|
3135
3093
|
: undefined,
|
|
3136
3094
|
ExportAssetToSignedUrl: output.ExportAssetToSignedUrl != null
|
|
3137
|
-
?
|
|
3095
|
+
? de_ExportAssetToSignedUrlResponseDetails(output.ExportAssetToSignedUrl, context)
|
|
3138
3096
|
: undefined,
|
|
3139
3097
|
ExportAssetsToS3: output.ExportAssetsToS3 != null
|
|
3140
|
-
?
|
|
3098
|
+
? de_ExportAssetsToS3ResponseDetails(output.ExportAssetsToS3, context)
|
|
3141
3099
|
: undefined,
|
|
3142
3100
|
ExportRevisionsToS3: output.ExportRevisionsToS3 != null
|
|
3143
|
-
?
|
|
3101
|
+
? de_ExportRevisionsToS3ResponseDetails(output.ExportRevisionsToS3, context)
|
|
3144
3102
|
: undefined,
|
|
3145
3103
|
ImportAssetFromApiGatewayApi: output.ImportAssetFromApiGatewayApi != null
|
|
3146
|
-
?
|
|
3104
|
+
? de_ImportAssetFromApiGatewayApiResponseDetails(output.ImportAssetFromApiGatewayApi, context)
|
|
3147
3105
|
: undefined,
|
|
3148
3106
|
ImportAssetFromSignedUrl: output.ImportAssetFromSignedUrl != null
|
|
3149
|
-
?
|
|
3107
|
+
? de_ImportAssetFromSignedUrlResponseDetails(output.ImportAssetFromSignedUrl, context)
|
|
3150
3108
|
: undefined,
|
|
3151
3109
|
ImportAssetsFromLakeFormationTagPolicy: output.ImportAssetsFromLakeFormationTagPolicy != null
|
|
3152
|
-
?
|
|
3110
|
+
? de_ImportAssetsFromLakeFormationTagPolicyResponseDetails(output.ImportAssetsFromLakeFormationTagPolicy, context)
|
|
3153
3111
|
: undefined,
|
|
3154
3112
|
ImportAssetsFromRedshiftDataShares: output.ImportAssetsFromRedshiftDataShares != null
|
|
3155
|
-
?
|
|
3113
|
+
? de_ImportAssetsFromRedshiftDataSharesResponseDetails(output.ImportAssetsFromRedshiftDataShares, context)
|
|
3156
3114
|
: undefined,
|
|
3157
3115
|
ImportAssetsFromS3: output.ImportAssetsFromS3 != null
|
|
3158
|
-
?
|
|
3116
|
+
? de_ImportAssetsFromS3ResponseDetails(output.ImportAssetsFromS3, context)
|
|
3159
3117
|
: undefined,
|
|
3160
3118
|
};
|
|
3161
3119
|
};
|
|
3162
|
-
const
|
|
3120
|
+
const de_RevisionDestinationEntry = (output, context) => {
|
|
3163
3121
|
return {
|
|
3164
3122
|
Bucket: __expectString(output.Bucket),
|
|
3165
3123
|
KeyPattern: __expectString(output.KeyPattern),
|
|
3166
3124
|
RevisionId: __expectString(output.RevisionId),
|
|
3167
3125
|
};
|
|
3168
3126
|
};
|
|
3169
|
-
const
|
|
3127
|
+
const de_RevisionEntry = (output, context) => {
|
|
3170
3128
|
return {
|
|
3171
3129
|
Arn: __expectString(output.Arn),
|
|
3172
3130
|
Comment: __expectString(output.Comment),
|
|
@@ -3181,49 +3139,43 @@ const deserializeAws_restJson1RevisionEntry = (output, context) => {
|
|
|
3181
3139
|
UpdatedAt: output.UpdatedAt != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.UpdatedAt)) : undefined,
|
|
3182
3140
|
};
|
|
3183
3141
|
};
|
|
3184
|
-
const
|
|
3142
|
+
const de_RevisionPublished = (output, context) => {
|
|
3185
3143
|
return {
|
|
3186
3144
|
DataSetId: __expectString(output.DataSetId),
|
|
3187
3145
|
};
|
|
3188
3146
|
};
|
|
3189
|
-
const
|
|
3147
|
+
const de_S3DataAccessAsset = (output, context) => {
|
|
3190
3148
|
return {
|
|
3191
3149
|
Bucket: __expectString(output.Bucket),
|
|
3192
|
-
KeyPrefixes: output.KeyPrefixes != null ?
|
|
3193
|
-
Keys: output.Keys != null ?
|
|
3194
|
-
KmsKeysToGrant: output.KmsKeysToGrant != null
|
|
3195
|
-
? deserializeAws_restJson1ListOfKmsKeysToGrant(output.KmsKeysToGrant, context)
|
|
3196
|
-
: undefined,
|
|
3150
|
+
KeyPrefixes: output.KeyPrefixes != null ? de_ListOf__string(output.KeyPrefixes, context) : undefined,
|
|
3151
|
+
Keys: output.Keys != null ? de_ListOf__string(output.Keys, context) : undefined,
|
|
3152
|
+
KmsKeysToGrant: output.KmsKeysToGrant != null ? de_ListOfKmsKeysToGrant(output.KmsKeysToGrant, context) : undefined,
|
|
3197
3153
|
S3AccessPointAlias: __expectString(output.S3AccessPointAlias),
|
|
3198
3154
|
S3AccessPointArn: __expectString(output.S3AccessPointArn),
|
|
3199
3155
|
};
|
|
3200
3156
|
};
|
|
3201
|
-
const
|
|
3157
|
+
const de_S3DataAccessAssetSourceEntry = (output, context) => {
|
|
3202
3158
|
return {
|
|
3203
3159
|
Bucket: __expectString(output.Bucket),
|
|
3204
|
-
KeyPrefixes: output.KeyPrefixes != null ?
|
|
3205
|
-
Keys: output.Keys != null ?
|
|
3206
|
-
KmsKeysToGrant: output.KmsKeysToGrant != null
|
|
3207
|
-
? deserializeAws_restJson1ListOfKmsKeysToGrant(output.KmsKeysToGrant, context)
|
|
3208
|
-
: undefined,
|
|
3160
|
+
KeyPrefixes: output.KeyPrefixes != null ? de_ListOf__string(output.KeyPrefixes, context) : undefined,
|
|
3161
|
+
Keys: output.Keys != null ? de_ListOf__string(output.Keys, context) : undefined,
|
|
3162
|
+
KmsKeysToGrant: output.KmsKeysToGrant != null ? de_ListOfKmsKeysToGrant(output.KmsKeysToGrant, context) : undefined,
|
|
3209
3163
|
};
|
|
3210
3164
|
};
|
|
3211
|
-
const
|
|
3165
|
+
const de_S3SnapshotAsset = (output, context) => {
|
|
3212
3166
|
return {
|
|
3213
3167
|
Size: __limitedParseDouble(output.Size),
|
|
3214
3168
|
};
|
|
3215
3169
|
};
|
|
3216
|
-
const
|
|
3170
|
+
const de_TableLFTagPolicy = (output, context) => {
|
|
3217
3171
|
return {
|
|
3218
|
-
Expression: output.Expression != null ?
|
|
3172
|
+
Expression: output.Expression != null ? de_ListOfLFTags(output.Expression, context) : undefined,
|
|
3219
3173
|
};
|
|
3220
3174
|
};
|
|
3221
|
-
const
|
|
3175
|
+
const de_TableLFTagPolicyAndPermissions = (output, context) => {
|
|
3222
3176
|
return {
|
|
3223
|
-
Expression: output.Expression != null ?
|
|
3224
|
-
Permissions: output.Permissions != null
|
|
3225
|
-
? deserializeAws_restJson1ListOfTableTagPolicyLFPermissions(output.Permissions, context)
|
|
3226
|
-
: undefined,
|
|
3177
|
+
Expression: output.Expression != null ? de_ListOfLFTags(output.Expression, context) : undefined,
|
|
3178
|
+
Permissions: output.Permissions != null ? de_ListOfTableTagPolicyLFPermissions(output.Permissions, context) : undefined,
|
|
3227
3179
|
};
|
|
3228
3180
|
};
|
|
3229
3181
|
const deserializeMetadata = (output) => ({
|