@aws-sdk/client-omics 3.312.0 → 3.315.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.
@@ -1,7 +1,7 @@
1
1
  import { HttpRequest as __HttpRequest, isValidHostname as __isValidHostname, } from "@aws-sdk/protocol-http";
2
- import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, map as __map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
2
+ import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, resolvedPath as __resolvedPath, take, withBaseException, } from "@aws-sdk/smithy-client";
3
3
  import { v4 as generateIdempotencyToken } from "uuid";
4
- import { AccessDeniedException, ConflictException, FormatOptions, InternalServerException, RangeNotSatisfiableException, ReferenceItem, RequestTimeoutException, ResourceNotFoundException, ServiceQuotaExceededException, StoreOptions, ThrottlingException, ValidationException, } from "../models/models_0";
4
+ import { AccessDeniedException, ConflictException, InternalServerException, RangeNotSatisfiableException, RequestTimeoutException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
5
5
  import { OmicsServiceException as __BaseException } from "../models/OmicsServiceException";
6
6
  export const se_BatchDeleteReadSetCommand = async (input, context) => {
7
7
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
@@ -12,9 +12,9 @@ export const se_BatchDeleteReadSetCommand = async (input, context) => {
12
12
  "/sequencestore/{sequenceStoreId}/readset/batch/delete";
13
13
  resolvedPath = __resolvedPath(resolvedPath, input, "sequenceStoreId", () => input.sequenceStoreId, "{sequenceStoreId}", false);
14
14
  let body;
15
- body = JSON.stringify({
16
- ...(input.ids != null && { ids: se_ReadSetIdList(input.ids, context) }),
17
- });
15
+ body = JSON.stringify(take(input, {
16
+ ids: (_) => _json(_),
17
+ }));
18
18
  let { hostname: resolvedHostname } = await context.endpoint();
19
19
  if (context.disableHostPrefix !== true) {
20
20
  resolvedHostname = "control-storage-" + resolvedHostname;
@@ -108,15 +108,15 @@ export const se_CreateAnnotationStoreCommand = async (input, context) => {
108
108
  };
109
109
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/annotationStore";
110
110
  let body;
111
- body = JSON.stringify({
112
- ...(input.description != null && { description: input.description }),
113
- ...(input.name != null && { name: input.name }),
114
- ...(input.reference != null && { reference: se_ReferenceItem(input.reference, context) }),
115
- ...(input.sseConfig != null && { sseConfig: se_SseConfig(input.sseConfig, context) }),
116
- ...(input.storeFormat != null && { storeFormat: input.storeFormat }),
117
- ...(input.storeOptions != null && { storeOptions: se_StoreOptions(input.storeOptions, context) }),
118
- ...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
119
- });
111
+ body = JSON.stringify(take(input, {
112
+ description: [],
113
+ name: [],
114
+ reference: (_) => _json(_),
115
+ sseConfig: (_) => _json(_),
116
+ storeFormat: [],
117
+ storeOptions: (_) => _json(_),
118
+ tags: (_) => _json(_),
119
+ }));
120
120
  let { hostname: resolvedHostname } = await context.endpoint();
121
121
  if (context.disableHostPrefix !== true) {
122
122
  resolvedHostname = "analytics-" + resolvedHostname;
@@ -141,13 +141,13 @@ export const se_CreateReferenceStoreCommand = async (input, context) => {
141
141
  };
142
142
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/referencestore";
143
143
  let body;
144
- body = JSON.stringify({
145
- ...(input.clientToken != null && { clientToken: input.clientToken }),
146
- ...(input.description != null && { description: input.description }),
147
- ...(input.name != null && { name: input.name }),
148
- ...(input.sseConfig != null && { sseConfig: se_SseConfig(input.sseConfig, context) }),
149
- ...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
150
- });
144
+ body = JSON.stringify(take(input, {
145
+ clientToken: [],
146
+ description: [],
147
+ name: [],
148
+ sseConfig: (_) => _json(_),
149
+ tags: (_) => _json(_),
150
+ }));
151
151
  let { hostname: resolvedHostname } = await context.endpoint();
152
152
  if (context.disableHostPrefix !== true) {
153
153
  resolvedHostname = "control-storage-" + resolvedHostname;
@@ -172,14 +172,14 @@ export const se_CreateRunGroupCommand = async (input, context) => {
172
172
  };
173
173
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/runGroup";
174
174
  let body;
175
- body = JSON.stringify({
176
- ...(input.maxCpus != null && { maxCpus: input.maxCpus }),
177
- ...(input.maxDuration != null && { maxDuration: input.maxDuration }),
178
- ...(input.maxRuns != null && { maxRuns: input.maxRuns }),
179
- ...(input.name != null && { name: input.name }),
180
- requestId: input.requestId ?? generateIdempotencyToken(),
181
- ...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
182
- });
175
+ body = JSON.stringify(take(input, {
176
+ maxCpus: [],
177
+ maxDuration: [],
178
+ maxRuns: [],
179
+ name: [],
180
+ requestId: (_) => _ ?? generateIdempotencyToken(),
181
+ tags: (_) => _json(_),
182
+ }));
183
183
  let { hostname: resolvedHostname } = await context.endpoint();
184
184
  if (context.disableHostPrefix !== true) {
185
185
  resolvedHostname = "workflows-" + resolvedHostname;
@@ -204,13 +204,13 @@ export const se_CreateSequenceStoreCommand = async (input, context) => {
204
204
  };
205
205
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sequencestore";
206
206
  let body;
207
- body = JSON.stringify({
208
- ...(input.clientToken != null && { clientToken: input.clientToken }),
209
- ...(input.description != null && { description: input.description }),
210
- ...(input.name != null && { name: input.name }),
211
- ...(input.sseConfig != null && { sseConfig: se_SseConfig(input.sseConfig, context) }),
212
- ...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
213
- });
207
+ body = JSON.stringify(take(input, {
208
+ clientToken: [],
209
+ description: [],
210
+ name: [],
211
+ sseConfig: (_) => _json(_),
212
+ tags: (_) => _json(_),
213
+ }));
214
214
  let { hostname: resolvedHostname } = await context.endpoint();
215
215
  if (context.disableHostPrefix !== true) {
216
216
  resolvedHostname = "control-storage-" + resolvedHostname;
@@ -235,13 +235,13 @@ export const se_CreateVariantStoreCommand = async (input, context) => {
235
235
  };
236
236
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/variantStore";
237
237
  let body;
238
- body = JSON.stringify({
239
- ...(input.description != null && { description: input.description }),
240
- ...(input.name != null && { name: input.name }),
241
- ...(input.reference != null && { reference: se_ReferenceItem(input.reference, context) }),
242
- ...(input.sseConfig != null && { sseConfig: se_SseConfig(input.sseConfig, context) }),
243
- ...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
244
- });
238
+ body = JSON.stringify(take(input, {
239
+ description: [],
240
+ name: [],
241
+ reference: (_) => _json(_),
242
+ sseConfig: (_) => _json(_),
243
+ tags: (_) => _json(_),
244
+ }));
245
245
  let { hostname: resolvedHostname } = await context.endpoint();
246
246
  if (context.disableHostPrefix !== true) {
247
247
  resolvedHostname = "analytics-" + resolvedHostname;
@@ -266,20 +266,18 @@ export const se_CreateWorkflowCommand = async (input, context) => {
266
266
  };
267
267
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workflow";
268
268
  let body;
269
- body = JSON.stringify({
270
- ...(input.definitionUri != null && { definitionUri: input.definitionUri }),
271
- ...(input.definitionZip != null && { definitionZip: context.base64Encoder(input.definitionZip) }),
272
- ...(input.description != null && { description: input.description }),
273
- ...(input.engine != null && { engine: input.engine }),
274
- ...(input.main != null && { main: input.main }),
275
- ...(input.name != null && { name: input.name }),
276
- ...(input.parameterTemplate != null && {
277
- parameterTemplate: se_WorkflowParameterTemplate(input.parameterTemplate, context),
278
- }),
279
- requestId: input.requestId ?? generateIdempotencyToken(),
280
- ...(input.storageCapacity != null && { storageCapacity: input.storageCapacity }),
281
- ...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
282
- });
269
+ body = JSON.stringify(take(input, {
270
+ definitionUri: [],
271
+ definitionZip: (_) => context.base64Encoder(_),
272
+ description: [],
273
+ engine: [],
274
+ main: [],
275
+ name: [],
276
+ parameterTemplate: (_) => _json(_),
277
+ requestId: (_) => _ ?? generateIdempotencyToken(),
278
+ storageCapacity: [],
279
+ tags: (_) => _json(_),
280
+ }));
283
281
  let { hostname: resolvedHostname } = await context.endpoint();
284
282
  if (context.disableHostPrefix !== true) {
285
283
  resolvedHostname = "workflows-" + resolvedHostname;
@@ -954,10 +952,10 @@ export const se_ListAnnotationImportJobsCommand = async (input, context) => {
954
952
  nextToken: [, input.nextToken],
955
953
  });
956
954
  let body;
957
- body = JSON.stringify({
958
- ...(input.filter != null && { filter: se_ListAnnotationImportJobsFilter(input.filter, context) }),
959
- ...(input.ids != null && { ids: se_IdList(input.ids, context) }),
960
- });
955
+ body = JSON.stringify(take(input, {
956
+ filter: (_) => _json(_),
957
+ ids: (_) => _json(_),
958
+ }));
961
959
  let { hostname: resolvedHostname } = await context.endpoint();
962
960
  if (context.disableHostPrefix !== true) {
963
961
  resolvedHostname = "analytics-" + resolvedHostname;
@@ -987,10 +985,10 @@ export const se_ListAnnotationStoresCommand = async (input, context) => {
987
985
  nextToken: [, input.nextToken],
988
986
  });
989
987
  let body;
990
- body = JSON.stringify({
991
- ...(input.filter != null && { filter: se_ListAnnotationStoresFilter(input.filter, context) }),
992
- ...(input.ids != null && { ids: se_IdList(input.ids, context) }),
993
- });
988
+ body = JSON.stringify(take(input, {
989
+ filter: (_) => _json(_),
990
+ ids: (_) => _json(_),
991
+ }));
994
992
  let { hostname: resolvedHostname } = await context.endpoint();
995
993
  if (context.disableHostPrefix !== true) {
996
994
  resolvedHostname = "analytics-" + resolvedHostname;
@@ -1022,9 +1020,9 @@ export const se_ListReadSetActivationJobsCommand = async (input, context) => {
1022
1020
  nextToken: [, input.nextToken],
1023
1021
  });
1024
1022
  let body;
1025
- body = JSON.stringify({
1026
- ...(input.filter != null && { filter: se_ActivateReadSetFilter(input.filter, context) }),
1027
- });
1023
+ body = JSON.stringify(take(input, {
1024
+ filter: (_) => se_ActivateReadSetFilter(_, context),
1025
+ }));
1028
1026
  let { hostname: resolvedHostname } = await context.endpoint();
1029
1027
  if (context.disableHostPrefix !== true) {
1030
1028
  resolvedHostname = "control-storage-" + resolvedHostname;
@@ -1056,9 +1054,9 @@ export const se_ListReadSetExportJobsCommand = async (input, context) => {
1056
1054
  nextToken: [, input.nextToken],
1057
1055
  });
1058
1056
  let body;
1059
- body = JSON.stringify({
1060
- ...(input.filter != null && { filter: se_ExportReadSetFilter(input.filter, context) }),
1061
- });
1057
+ body = JSON.stringify(take(input, {
1058
+ filter: (_) => se_ExportReadSetFilter(_, context),
1059
+ }));
1062
1060
  let { hostname: resolvedHostname } = await context.endpoint();
1063
1061
  if (context.disableHostPrefix !== true) {
1064
1062
  resolvedHostname = "control-storage-" + resolvedHostname;
@@ -1090,9 +1088,9 @@ export const se_ListReadSetImportJobsCommand = async (input, context) => {
1090
1088
  nextToken: [, input.nextToken],
1091
1089
  });
1092
1090
  let body;
1093
- body = JSON.stringify({
1094
- ...(input.filter != null && { filter: se_ImportReadSetFilter(input.filter, context) }),
1095
- });
1091
+ body = JSON.stringify(take(input, {
1092
+ filter: (_) => se_ImportReadSetFilter(_, context),
1093
+ }));
1096
1094
  let { hostname: resolvedHostname } = await context.endpoint();
1097
1095
  if (context.disableHostPrefix !== true) {
1098
1096
  resolvedHostname = "control-storage-" + resolvedHostname;
@@ -1123,9 +1121,9 @@ export const se_ListReadSetsCommand = async (input, context) => {
1123
1121
  nextToken: [, input.nextToken],
1124
1122
  });
1125
1123
  let body;
1126
- body = JSON.stringify({
1127
- ...(input.filter != null && { filter: se_ReadSetFilter(input.filter, context) }),
1128
- });
1124
+ body = JSON.stringify(take(input, {
1125
+ filter: (_) => se_ReadSetFilter(_, context),
1126
+ }));
1129
1127
  let { hostname: resolvedHostname } = await context.endpoint();
1130
1128
  if (context.disableHostPrefix !== true) {
1131
1129
  resolvedHostname = "control-storage-" + resolvedHostname;
@@ -1157,9 +1155,9 @@ export const se_ListReferenceImportJobsCommand = async (input, context) => {
1157
1155
  nextToken: [, input.nextToken],
1158
1156
  });
1159
1157
  let body;
1160
- body = JSON.stringify({
1161
- ...(input.filter != null && { filter: se_ImportReferenceFilter(input.filter, context) }),
1162
- });
1158
+ body = JSON.stringify(take(input, {
1159
+ filter: (_) => se_ImportReferenceFilter(_, context),
1160
+ }));
1163
1161
  let { hostname: resolvedHostname } = await context.endpoint();
1164
1162
  if (context.disableHostPrefix !== true) {
1165
1163
  resolvedHostname = "control-storage-" + resolvedHostname;
@@ -1191,9 +1189,9 @@ export const se_ListReferencesCommand = async (input, context) => {
1191
1189
  nextToken: [, input.nextToken],
1192
1190
  });
1193
1191
  let body;
1194
- body = JSON.stringify({
1195
- ...(input.filter != null && { filter: se_ReferenceFilter(input.filter, context) }),
1196
- });
1192
+ body = JSON.stringify(take(input, {
1193
+ filter: (_) => se_ReferenceFilter(_, context),
1194
+ }));
1197
1195
  let { hostname: resolvedHostname } = await context.endpoint();
1198
1196
  if (context.disableHostPrefix !== true) {
1199
1197
  resolvedHostname = "control-storage-" + resolvedHostname;
@@ -1223,9 +1221,9 @@ export const se_ListReferenceStoresCommand = async (input, context) => {
1223
1221
  nextToken: [, input.nextToken],
1224
1222
  });
1225
1223
  let body;
1226
- body = JSON.stringify({
1227
- ...(input.filter != null && { filter: se_ReferenceStoreFilter(input.filter, context) }),
1228
- });
1224
+ body = JSON.stringify(take(input, {
1225
+ filter: (_) => se_ReferenceStoreFilter(_, context),
1226
+ }));
1229
1227
  let { hostname: resolvedHostname } = await context.endpoint();
1230
1228
  if (context.disableHostPrefix !== true) {
1231
1229
  resolvedHostname = "control-storage-" + resolvedHostname;
@@ -1341,9 +1339,9 @@ export const se_ListSequenceStoresCommand = async (input, context) => {
1341
1339
  nextToken: [, input.nextToken],
1342
1340
  });
1343
1341
  let body;
1344
- body = JSON.stringify({
1345
- ...(input.filter != null && { filter: se_SequenceStoreFilter(input.filter, context) }),
1346
- });
1342
+ body = JSON.stringify(take(input, {
1343
+ filter: (_) => se_SequenceStoreFilter(_, context),
1344
+ }));
1347
1345
  let { hostname: resolvedHostname } = await context.endpoint();
1348
1346
  if (context.disableHostPrefix !== true) {
1349
1347
  resolvedHostname = "control-storage-" + resolvedHostname;
@@ -1396,10 +1394,10 @@ export const se_ListVariantImportJobsCommand = async (input, context) => {
1396
1394
  nextToken: [, input.nextToken],
1397
1395
  });
1398
1396
  let body;
1399
- body = JSON.stringify({
1400
- ...(input.filter != null && { filter: se_ListVariantImportJobsFilter(input.filter, context) }),
1401
- ...(input.ids != null && { ids: se_IdList(input.ids, context) }),
1402
- });
1397
+ body = JSON.stringify(take(input, {
1398
+ filter: (_) => _json(_),
1399
+ ids: (_) => _json(_),
1400
+ }));
1403
1401
  let { hostname: resolvedHostname } = await context.endpoint();
1404
1402
  if (context.disableHostPrefix !== true) {
1405
1403
  resolvedHostname = "analytics-" + resolvedHostname;
@@ -1429,10 +1427,10 @@ export const se_ListVariantStoresCommand = async (input, context) => {
1429
1427
  nextToken: [, input.nextToken],
1430
1428
  });
1431
1429
  let body;
1432
- body = JSON.stringify({
1433
- ...(input.filter != null && { filter: se_ListVariantStoresFilter(input.filter, context) }),
1434
- ...(input.ids != null && { ids: se_IdList(input.ids, context) }),
1435
- });
1430
+ body = JSON.stringify(take(input, {
1431
+ filter: (_) => _json(_),
1432
+ ids: (_) => _json(_),
1433
+ }));
1436
1434
  let { hostname: resolvedHostname } = await context.endpoint();
1437
1435
  if (context.disableHostPrefix !== true) {
1438
1436
  resolvedHostname = "analytics-" + resolvedHostname;
@@ -1487,13 +1485,13 @@ export const se_StartAnnotationImportJobCommand = async (input, context) => {
1487
1485
  };
1488
1486
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/import/annotation";
1489
1487
  let body;
1490
- body = JSON.stringify({
1491
- ...(input.destinationName != null && { destinationName: input.destinationName }),
1492
- ...(input.formatOptions != null && { formatOptions: se_FormatOptions(input.formatOptions, context) }),
1493
- ...(input.items != null && { items: se_AnnotationImportItemSources(input.items, context) }),
1494
- ...(input.roleArn != null && { roleArn: input.roleArn }),
1495
- ...(input.runLeftNormalization != null && { runLeftNormalization: input.runLeftNormalization }),
1496
- });
1488
+ body = JSON.stringify(take(input, {
1489
+ destinationName: [],
1490
+ formatOptions: (_) => _json(_),
1491
+ items: (_) => _json(_),
1492
+ roleArn: [],
1493
+ runLeftNormalization: [],
1494
+ }));
1497
1495
  let { hostname: resolvedHostname } = await context.endpoint();
1498
1496
  if (context.disableHostPrefix !== true) {
1499
1497
  resolvedHostname = "analytics-" + resolvedHostname;
@@ -1520,10 +1518,10 @@ export const se_StartReadSetActivationJobCommand = async (input, context) => {
1520
1518
  "/sequencestore/{sequenceStoreId}/activationjob";
1521
1519
  resolvedPath = __resolvedPath(resolvedPath, input, "sequenceStoreId", () => input.sequenceStoreId, "{sequenceStoreId}", false);
1522
1520
  let body;
1523
- body = JSON.stringify({
1524
- ...(input.clientToken != null && { clientToken: input.clientToken }),
1525
- ...(input.sources != null && { sources: se_StartReadSetActivationJobSourceList(input.sources, context) }),
1526
- });
1521
+ body = JSON.stringify(take(input, {
1522
+ clientToken: [],
1523
+ sources: (_) => _json(_),
1524
+ }));
1527
1525
  let { hostname: resolvedHostname } = await context.endpoint();
1528
1526
  if (context.disableHostPrefix !== true) {
1529
1527
  resolvedHostname = "control-storage-" + resolvedHostname;
@@ -1550,12 +1548,12 @@ export const se_StartReadSetExportJobCommand = async (input, context) => {
1550
1548
  "/sequencestore/{sequenceStoreId}/exportjob";
1551
1549
  resolvedPath = __resolvedPath(resolvedPath, input, "sequenceStoreId", () => input.sequenceStoreId, "{sequenceStoreId}", false);
1552
1550
  let body;
1553
- body = JSON.stringify({
1554
- ...(input.clientToken != null && { clientToken: input.clientToken }),
1555
- ...(input.destination != null && { destination: input.destination }),
1556
- ...(input.roleArn != null && { roleArn: input.roleArn }),
1557
- ...(input.sources != null && { sources: se_ExportReadSetList(input.sources, context) }),
1558
- });
1551
+ body = JSON.stringify(take(input, {
1552
+ clientToken: [],
1553
+ destination: [],
1554
+ roleArn: [],
1555
+ sources: (_) => _json(_),
1556
+ }));
1559
1557
  let { hostname: resolvedHostname } = await context.endpoint();
1560
1558
  if (context.disableHostPrefix !== true) {
1561
1559
  resolvedHostname = "control-storage-" + resolvedHostname;
@@ -1582,11 +1580,11 @@ export const se_StartReadSetImportJobCommand = async (input, context) => {
1582
1580
  "/sequencestore/{sequenceStoreId}/importjob";
1583
1581
  resolvedPath = __resolvedPath(resolvedPath, input, "sequenceStoreId", () => input.sequenceStoreId, "{sequenceStoreId}", false);
1584
1582
  let body;
1585
- body = JSON.stringify({
1586
- ...(input.clientToken != null && { clientToken: input.clientToken }),
1587
- ...(input.roleArn != null && { roleArn: input.roleArn }),
1588
- ...(input.sources != null && { sources: se_StartReadSetImportJobSourceList(input.sources, context) }),
1589
- });
1583
+ body = JSON.stringify(take(input, {
1584
+ clientToken: [],
1585
+ roleArn: [],
1586
+ sources: (_) => _json(_),
1587
+ }));
1590
1588
  let { hostname: resolvedHostname } = await context.endpoint();
1591
1589
  if (context.disableHostPrefix !== true) {
1592
1590
  resolvedHostname = "control-storage-" + resolvedHostname;
@@ -1613,11 +1611,11 @@ export const se_StartReferenceImportJobCommand = async (input, context) => {
1613
1611
  "/referencestore/{referenceStoreId}/importjob";
1614
1612
  resolvedPath = __resolvedPath(resolvedPath, input, "referenceStoreId", () => input.referenceStoreId, "{referenceStoreId}", false);
1615
1613
  let body;
1616
- body = JSON.stringify({
1617
- ...(input.clientToken != null && { clientToken: input.clientToken }),
1618
- ...(input.roleArn != null && { roleArn: input.roleArn }),
1619
- ...(input.sources != null && { sources: se_StartReferenceImportJobSourceList(input.sources, context) }),
1620
- });
1614
+ body = JSON.stringify(take(input, {
1615
+ clientToken: [],
1616
+ roleArn: [],
1617
+ sources: (_) => _json(_),
1618
+ }));
1621
1619
  let { hostname: resolvedHostname } = await context.endpoint();
1622
1620
  if (context.disableHostPrefix !== true) {
1623
1621
  resolvedHostname = "control-storage-" + resolvedHostname;
@@ -1642,21 +1640,21 @@ export const se_StartRunCommand = async (input, context) => {
1642
1640
  };
1643
1641
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/run";
1644
1642
  let body;
1645
- body = JSON.stringify({
1646
- ...(input.logLevel != null && { logLevel: input.logLevel }),
1647
- ...(input.name != null && { name: input.name }),
1648
- ...(input.outputUri != null && { outputUri: input.outputUri }),
1649
- ...(input.parameters != null && { parameters: se_RunParameters(input.parameters, context) }),
1650
- ...(input.priority != null && { priority: input.priority }),
1651
- requestId: input.requestId ?? generateIdempotencyToken(),
1652
- ...(input.roleArn != null && { roleArn: input.roleArn }),
1653
- ...(input.runGroupId != null && { runGroupId: input.runGroupId }),
1654
- ...(input.runId != null && { runId: input.runId }),
1655
- ...(input.storageCapacity != null && { storageCapacity: input.storageCapacity }),
1656
- ...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
1657
- ...(input.workflowId != null && { workflowId: input.workflowId }),
1658
- ...(input.workflowType != null && { workflowType: input.workflowType }),
1659
- });
1643
+ body = JSON.stringify(take(input, {
1644
+ logLevel: [],
1645
+ name: [],
1646
+ outputUri: [],
1647
+ parameters: (_) => se_RunParameters(_, context),
1648
+ priority: [],
1649
+ requestId: (_) => _ ?? generateIdempotencyToken(),
1650
+ roleArn: [],
1651
+ runGroupId: [],
1652
+ runId: [],
1653
+ storageCapacity: [],
1654
+ tags: (_) => _json(_),
1655
+ workflowId: [],
1656
+ workflowType: [],
1657
+ }));
1660
1658
  let { hostname: resolvedHostname } = await context.endpoint();
1661
1659
  if (context.disableHostPrefix !== true) {
1662
1660
  resolvedHostname = "workflows-" + resolvedHostname;
@@ -1681,12 +1679,12 @@ export const se_StartVariantImportJobCommand = async (input, context) => {
1681
1679
  };
1682
1680
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/import/variant";
1683
1681
  let body;
1684
- body = JSON.stringify({
1685
- ...(input.destinationName != null && { destinationName: input.destinationName }),
1686
- ...(input.items != null && { items: se_VariantImportItemSources(input.items, context) }),
1687
- ...(input.roleArn != null && { roleArn: input.roleArn }),
1688
- ...(input.runLeftNormalization != null && { runLeftNormalization: input.runLeftNormalization }),
1689
- });
1682
+ body = JSON.stringify(take(input, {
1683
+ destinationName: [],
1684
+ items: (_) => _json(_),
1685
+ roleArn: [],
1686
+ runLeftNormalization: [],
1687
+ }));
1690
1688
  let { hostname: resolvedHostname } = await context.endpoint();
1691
1689
  if (context.disableHostPrefix !== true) {
1692
1690
  resolvedHostname = "analytics-" + resolvedHostname;
@@ -1712,9 +1710,9 @@ export const se_TagResourceCommand = async (input, context) => {
1712
1710
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
1713
1711
  resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
1714
1712
  let body;
1715
- body = JSON.stringify({
1716
- ...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
1717
- });
1713
+ body = JSON.stringify(take(input, {
1714
+ tags: (_) => _json(_),
1715
+ }));
1718
1716
  let { hostname: resolvedHostname } = await context.endpoint();
1719
1717
  if (context.disableHostPrefix !== true) {
1720
1718
  resolvedHostname = "tags-" + resolvedHostname;
@@ -1770,9 +1768,9 @@ export const se_UpdateAnnotationStoreCommand = async (input, context) => {
1770
1768
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/annotationStore/{name}";
1771
1769
  resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name, "{name}", false);
1772
1770
  let body;
1773
- body = JSON.stringify({
1774
- ...(input.description != null && { description: input.description }),
1775
- });
1771
+ body = JSON.stringify(take(input, {
1772
+ description: [],
1773
+ }));
1776
1774
  let { hostname: resolvedHostname } = await context.endpoint();
1777
1775
  if (context.disableHostPrefix !== true) {
1778
1776
  resolvedHostname = "analytics-" + resolvedHostname;
@@ -1798,12 +1796,12 @@ export const se_UpdateRunGroupCommand = async (input, context) => {
1798
1796
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/runGroup/{id}";
1799
1797
  resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id, "{id}", false);
1800
1798
  let body;
1801
- body = JSON.stringify({
1802
- ...(input.maxCpus != null && { maxCpus: input.maxCpus }),
1803
- ...(input.maxDuration != null && { maxDuration: input.maxDuration }),
1804
- ...(input.maxRuns != null && { maxRuns: input.maxRuns }),
1805
- ...(input.name != null && { name: input.name }),
1806
- });
1799
+ body = JSON.stringify(take(input, {
1800
+ maxCpus: [],
1801
+ maxDuration: [],
1802
+ maxRuns: [],
1803
+ name: [],
1804
+ }));
1807
1805
  let { hostname: resolvedHostname } = await context.endpoint();
1808
1806
  if (context.disableHostPrefix !== true) {
1809
1807
  resolvedHostname = "workflows-" + resolvedHostname;
@@ -1829,9 +1827,9 @@ export const se_UpdateVariantStoreCommand = async (input, context) => {
1829
1827
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/variantStore/{name}";
1830
1828
  resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name, "{name}", false);
1831
1829
  let body;
1832
- body = JSON.stringify({
1833
- ...(input.description != null && { description: input.description }),
1834
- });
1830
+ body = JSON.stringify(take(input, {
1831
+ description: [],
1832
+ }));
1835
1833
  let { hostname: resolvedHostname } = await context.endpoint();
1836
1834
  if (context.disableHostPrefix !== true) {
1837
1835
  resolvedHostname = "analytics-" + resolvedHostname;
@@ -1857,10 +1855,10 @@ export const se_UpdateWorkflowCommand = async (input, context) => {
1857
1855
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workflow/{id}";
1858
1856
  resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id, "{id}", false);
1859
1857
  let body;
1860
- body = JSON.stringify({
1861
- ...(input.description != null && { description: input.description }),
1862
- ...(input.name != null && { name: input.name }),
1863
- });
1858
+ body = JSON.stringify(take(input, {
1859
+ description: [],
1860
+ name: [],
1861
+ }));
1864
1862
  let { hostname: resolvedHostname } = await context.endpoint();
1865
1863
  if (context.disableHostPrefix !== true) {
1866
1864
  resolvedHostname = "workflows-" + resolvedHostname;
@@ -1886,9 +1884,10 @@ export const de_BatchDeleteReadSetCommand = async (output, context) => {
1886
1884
  $metadata: deserializeMetadata(output),
1887
1885
  });
1888
1886
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1889
- if (data.errors != null) {
1890
- contents.errors = de_ReadSetBatchErrorList(data.errors, context);
1891
- }
1887
+ const doc = take(data, {
1888
+ errors: _json,
1889
+ });
1890
+ Object.assign(contents, doc);
1892
1891
  return contents;
1893
1892
  };
1894
1893
  const de_BatchDeleteReadSetCommandError = async (output, context) => {
@@ -1918,10 +1917,9 @@ const de_BatchDeleteReadSetCommandError = async (output, context) => {
1918
1917
  throw await de_ValidationExceptionRes(parsedOutput, context);
1919
1918
  default:
1920
1919
  const parsedBody = parsedOutput.body;
1921
- throwDefaultError({
1920
+ return throwDefaultError({
1922
1921
  output,
1923
1922
  parsedBody,
1924
- exceptionCtor: __BaseException,
1925
1923
  errorCode,
1926
1924
  });
1927
1925
  }
@@ -1960,10 +1958,9 @@ const de_CancelAnnotationImportJobCommandError = async (output, context) => {
1960
1958
  throw await de_ValidationExceptionRes(parsedOutput, context);
1961
1959
  default:
1962
1960
  const parsedBody = parsedOutput.body;
1963
- throwDefaultError({
1961
+ return throwDefaultError({
1964
1962
  output,
1965
1963
  parsedBody,
1966
- exceptionCtor: __BaseException,
1967
1964
  errorCode,
1968
1965
  });
1969
1966
  }
@@ -2011,10 +2008,9 @@ const de_CancelRunCommandError = async (output, context) => {
2011
2008
  throw await de_ValidationExceptionRes(parsedOutput, context);
2012
2009
  default:
2013
2010
  const parsedBody = parsedOutput.body;
2014
- throwDefaultError({
2011
+ return throwDefaultError({
2015
2012
  output,
2016
2013
  parsedBody,
2017
- exceptionCtor: __BaseException,
2018
2014
  errorCode,
2019
2015
  });
2020
2016
  }
@@ -2053,10 +2049,9 @@ const de_CancelVariantImportJobCommandError = async (output, context) => {
2053
2049
  throw await de_ValidationExceptionRes(parsedOutput, context);
2054
2050
  default:
2055
2051
  const parsedBody = parsedOutput.body;
2056
- throwDefaultError({
2052
+ return throwDefaultError({
2057
2053
  output,
2058
2054
  parsedBody,
2059
- exceptionCtor: __BaseException,
2060
2055
  errorCode,
2061
2056
  });
2062
2057
  }
@@ -2069,27 +2064,16 @@ export const de_CreateAnnotationStoreCommand = async (output, context) => {
2069
2064
  $metadata: deserializeMetadata(output),
2070
2065
  });
2071
2066
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2072
- if (data.creationTime != null) {
2073
- contents.creationTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.creationTime));
2074
- }
2075
- if (data.id != null) {
2076
- contents.id = __expectString(data.id);
2077
- }
2078
- if (data.name != null) {
2079
- contents.name = __expectString(data.name);
2080
- }
2081
- if (data.reference != null) {
2082
- contents.reference = de_ReferenceItem(__expectUnion(data.reference), context);
2083
- }
2084
- if (data.status != null) {
2085
- contents.status = __expectString(data.status);
2086
- }
2087
- if (data.storeFormat != null) {
2088
- contents.storeFormat = __expectString(data.storeFormat);
2089
- }
2090
- if (data.storeOptions != null) {
2091
- contents.storeOptions = de_StoreOptions(__expectUnion(data.storeOptions), context);
2092
- }
2067
+ const doc = take(data, {
2068
+ creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
2069
+ id: __expectString,
2070
+ name: __expectString,
2071
+ reference: (_) => _json(__expectUnion(_)),
2072
+ status: __expectString,
2073
+ storeFormat: __expectString,
2074
+ storeOptions: (_) => _json(__expectUnion(_)),
2075
+ });
2076
+ Object.assign(contents, doc);
2093
2077
  return contents;
2094
2078
  };
2095
2079
  const de_CreateAnnotationStoreCommandError = async (output, context) => {
@@ -2122,10 +2106,9 @@ const de_CreateAnnotationStoreCommandError = async (output, context) => {
2122
2106
  throw await de_ValidationExceptionRes(parsedOutput, context);
2123
2107
  default:
2124
2108
  const parsedBody = parsedOutput.body;
2125
- throwDefaultError({
2109
+ return throwDefaultError({
2126
2110
  output,
2127
2111
  parsedBody,
2128
- exceptionCtor: __BaseException,
2129
2112
  errorCode,
2130
2113
  });
2131
2114
  }
@@ -2138,24 +2121,15 @@ export const de_CreateReferenceStoreCommand = async (output, context) => {
2138
2121
  $metadata: deserializeMetadata(output),
2139
2122
  });
2140
2123
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2141
- if (data.arn != null) {
2142
- contents.arn = __expectString(data.arn);
2143
- }
2144
- if (data.creationTime != null) {
2145
- contents.creationTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.creationTime));
2146
- }
2147
- if (data.description != null) {
2148
- contents.description = __expectString(data.description);
2149
- }
2150
- if (data.id != null) {
2151
- contents.id = __expectString(data.id);
2152
- }
2153
- if (data.name != null) {
2154
- contents.name = __expectString(data.name);
2155
- }
2156
- if (data.sseConfig != null) {
2157
- contents.sseConfig = de_SseConfig(data.sseConfig, context);
2158
- }
2124
+ const doc = take(data, {
2125
+ arn: __expectString,
2126
+ creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
2127
+ description: __expectString,
2128
+ id: __expectString,
2129
+ name: __expectString,
2130
+ sseConfig: _json,
2131
+ });
2132
+ Object.assign(contents, doc);
2159
2133
  return contents;
2160
2134
  };
2161
2135
  const de_CreateReferenceStoreCommandError = async (output, context) => {
@@ -2185,10 +2159,9 @@ const de_CreateReferenceStoreCommandError = async (output, context) => {
2185
2159
  throw await de_ValidationExceptionRes(parsedOutput, context);
2186
2160
  default:
2187
2161
  const parsedBody = parsedOutput.body;
2188
- throwDefaultError({
2162
+ return throwDefaultError({
2189
2163
  output,
2190
2164
  parsedBody,
2191
- exceptionCtor: __BaseException,
2192
2165
  errorCode,
2193
2166
  });
2194
2167
  }
@@ -2201,15 +2174,12 @@ export const de_CreateRunGroupCommand = async (output, context) => {
2201
2174
  $metadata: deserializeMetadata(output),
2202
2175
  });
2203
2176
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2204
- if (data.arn != null) {
2205
- contents.arn = __expectString(data.arn);
2206
- }
2207
- if (data.id != null) {
2208
- contents.id = __expectString(data.id);
2209
- }
2210
- if (data.tags != null) {
2211
- contents.tags = de_TagMap(data.tags, context);
2212
- }
2177
+ const doc = take(data, {
2178
+ arn: __expectString,
2179
+ id: __expectString,
2180
+ tags: _json,
2181
+ });
2182
+ Object.assign(contents, doc);
2213
2183
  return contents;
2214
2184
  };
2215
2185
  const de_CreateRunGroupCommandError = async (output, context) => {
@@ -2245,10 +2215,9 @@ const de_CreateRunGroupCommandError = async (output, context) => {
2245
2215
  throw await de_ValidationExceptionRes(parsedOutput, context);
2246
2216
  default:
2247
2217
  const parsedBody = parsedOutput.body;
2248
- throwDefaultError({
2218
+ return throwDefaultError({
2249
2219
  output,
2250
2220
  parsedBody,
2251
- exceptionCtor: __BaseException,
2252
2221
  errorCode,
2253
2222
  });
2254
2223
  }
@@ -2261,24 +2230,15 @@ export const de_CreateSequenceStoreCommand = async (output, context) => {
2261
2230
  $metadata: deserializeMetadata(output),
2262
2231
  });
2263
2232
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2264
- if (data.arn != null) {
2265
- contents.arn = __expectString(data.arn);
2266
- }
2267
- if (data.creationTime != null) {
2268
- contents.creationTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.creationTime));
2269
- }
2270
- if (data.description != null) {
2271
- contents.description = __expectString(data.description);
2272
- }
2273
- if (data.id != null) {
2274
- contents.id = __expectString(data.id);
2275
- }
2276
- if (data.name != null) {
2277
- contents.name = __expectString(data.name);
2278
- }
2279
- if (data.sseConfig != null) {
2280
- contents.sseConfig = de_SseConfig(data.sseConfig, context);
2281
- }
2233
+ const doc = take(data, {
2234
+ arn: __expectString,
2235
+ creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
2236
+ description: __expectString,
2237
+ id: __expectString,
2238
+ name: __expectString,
2239
+ sseConfig: _json,
2240
+ });
2241
+ Object.assign(contents, doc);
2282
2242
  return contents;
2283
2243
  };
2284
2244
  const de_CreateSequenceStoreCommandError = async (output, context) => {
@@ -2308,10 +2268,9 @@ const de_CreateSequenceStoreCommandError = async (output, context) => {
2308
2268
  throw await de_ValidationExceptionRes(parsedOutput, context);
2309
2269
  default:
2310
2270
  const parsedBody = parsedOutput.body;
2311
- throwDefaultError({
2271
+ return throwDefaultError({
2312
2272
  output,
2313
2273
  parsedBody,
2314
- exceptionCtor: __BaseException,
2315
2274
  errorCode,
2316
2275
  });
2317
2276
  }
@@ -2324,21 +2283,14 @@ export const de_CreateVariantStoreCommand = async (output, context) => {
2324
2283
  $metadata: deserializeMetadata(output),
2325
2284
  });
2326
2285
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2327
- if (data.creationTime != null) {
2328
- contents.creationTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.creationTime));
2329
- }
2330
- if (data.id != null) {
2331
- contents.id = __expectString(data.id);
2332
- }
2333
- if (data.name != null) {
2334
- contents.name = __expectString(data.name);
2335
- }
2336
- if (data.reference != null) {
2337
- contents.reference = de_ReferenceItem(__expectUnion(data.reference), context);
2338
- }
2339
- if (data.status != null) {
2340
- contents.status = __expectString(data.status);
2341
- }
2286
+ const doc = take(data, {
2287
+ creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
2288
+ id: __expectString,
2289
+ name: __expectString,
2290
+ reference: (_) => _json(__expectUnion(_)),
2291
+ status: __expectString,
2292
+ });
2293
+ Object.assign(contents, doc);
2342
2294
  return contents;
2343
2295
  };
2344
2296
  const de_CreateVariantStoreCommandError = async (output, context) => {
@@ -2371,10 +2323,9 @@ const de_CreateVariantStoreCommandError = async (output, context) => {
2371
2323
  throw await de_ValidationExceptionRes(parsedOutput, context);
2372
2324
  default:
2373
2325
  const parsedBody = parsedOutput.body;
2374
- throwDefaultError({
2326
+ return throwDefaultError({
2375
2327
  output,
2376
2328
  parsedBody,
2377
- exceptionCtor: __BaseException,
2378
2329
  errorCode,
2379
2330
  });
2380
2331
  }
@@ -2387,18 +2338,13 @@ export const de_CreateWorkflowCommand = async (output, context) => {
2387
2338
  $metadata: deserializeMetadata(output),
2388
2339
  });
2389
2340
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2390
- if (data.arn != null) {
2391
- contents.arn = __expectString(data.arn);
2392
- }
2393
- if (data.id != null) {
2394
- contents.id = __expectString(data.id);
2395
- }
2396
- if (data.status != null) {
2397
- contents.status = __expectString(data.status);
2398
- }
2399
- if (data.tags != null) {
2400
- contents.tags = de_TagMap(data.tags, context);
2401
- }
2341
+ const doc = take(data, {
2342
+ arn: __expectString,
2343
+ id: __expectString,
2344
+ status: __expectString,
2345
+ tags: _json,
2346
+ });
2347
+ Object.assign(contents, doc);
2402
2348
  return contents;
2403
2349
  };
2404
2350
  const de_CreateWorkflowCommandError = async (output, context) => {
@@ -2434,10 +2380,9 @@ const de_CreateWorkflowCommandError = async (output, context) => {
2434
2380
  throw await de_ValidationExceptionRes(parsedOutput, context);
2435
2381
  default:
2436
2382
  const parsedBody = parsedOutput.body;
2437
- throwDefaultError({
2383
+ return throwDefaultError({
2438
2384
  output,
2439
2385
  parsedBody,
2440
- exceptionCtor: __BaseException,
2441
2386
  errorCode,
2442
2387
  });
2443
2388
  }
@@ -2450,9 +2395,10 @@ export const de_DeleteAnnotationStoreCommand = async (output, context) => {
2450
2395
  $metadata: deserializeMetadata(output),
2451
2396
  });
2452
2397
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2453
- if (data.status != null) {
2454
- contents.status = __expectString(data.status);
2455
- }
2398
+ const doc = take(data, {
2399
+ status: __expectString,
2400
+ });
2401
+ Object.assign(contents, doc);
2456
2402
  return contents;
2457
2403
  };
2458
2404
  const de_DeleteAnnotationStoreCommandError = async (output, context) => {
@@ -2482,10 +2428,9 @@ const de_DeleteAnnotationStoreCommandError = async (output, context) => {
2482
2428
  throw await de_ValidationExceptionRes(parsedOutput, context);
2483
2429
  default:
2484
2430
  const parsedBody = parsedOutput.body;
2485
- throwDefaultError({
2431
+ return throwDefaultError({
2486
2432
  output,
2487
2433
  parsedBody,
2488
- exceptionCtor: __BaseException,
2489
2434
  errorCode,
2490
2435
  });
2491
2436
  }
@@ -2530,10 +2475,9 @@ const de_DeleteReferenceCommandError = async (output, context) => {
2530
2475
  throw await de_ValidationExceptionRes(parsedOutput, context);
2531
2476
  default:
2532
2477
  const parsedBody = parsedOutput.body;
2533
- throwDefaultError({
2478
+ return throwDefaultError({
2534
2479
  output,
2535
2480
  parsedBody,
2536
- exceptionCtor: __BaseException,
2537
2481
  errorCode,
2538
2482
  });
2539
2483
  }
@@ -2578,10 +2522,9 @@ const de_DeleteReferenceStoreCommandError = async (output, context) => {
2578
2522
  throw await de_ValidationExceptionRes(parsedOutput, context);
2579
2523
  default:
2580
2524
  const parsedBody = parsedOutput.body;
2581
- throwDefaultError({
2525
+ return throwDefaultError({
2582
2526
  output,
2583
2527
  parsedBody,
2584
- exceptionCtor: __BaseException,
2585
2528
  errorCode,
2586
2529
  });
2587
2530
  }
@@ -2629,10 +2572,9 @@ const de_DeleteRunCommandError = async (output, context) => {
2629
2572
  throw await de_ValidationExceptionRes(parsedOutput, context);
2630
2573
  default:
2631
2574
  const parsedBody = parsedOutput.body;
2632
- throwDefaultError({
2575
+ return throwDefaultError({
2633
2576
  output,
2634
2577
  parsedBody,
2635
- exceptionCtor: __BaseException,
2636
2578
  errorCode,
2637
2579
  });
2638
2580
  }
@@ -2680,10 +2622,9 @@ const de_DeleteRunGroupCommandError = async (output, context) => {
2680
2622
  throw await de_ValidationExceptionRes(parsedOutput, context);
2681
2623
  default:
2682
2624
  const parsedBody = parsedOutput.body;
2683
- throwDefaultError({
2625
+ return throwDefaultError({
2684
2626
  output,
2685
2627
  parsedBody,
2686
- exceptionCtor: __BaseException,
2687
2628
  errorCode,
2688
2629
  });
2689
2630
  }
@@ -2728,10 +2669,9 @@ const de_DeleteSequenceStoreCommandError = async (output, context) => {
2728
2669
  throw await de_ValidationExceptionRes(parsedOutput, context);
2729
2670
  default:
2730
2671
  const parsedBody = parsedOutput.body;
2731
- throwDefaultError({
2672
+ return throwDefaultError({
2732
2673
  output,
2733
2674
  parsedBody,
2734
- exceptionCtor: __BaseException,
2735
2675
  errorCode,
2736
2676
  });
2737
2677
  }
@@ -2744,9 +2684,10 @@ export const de_DeleteVariantStoreCommand = async (output, context) => {
2744
2684
  $metadata: deserializeMetadata(output),
2745
2685
  });
2746
2686
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2747
- if (data.status != null) {
2748
- contents.status = __expectString(data.status);
2749
- }
2687
+ const doc = take(data, {
2688
+ status: __expectString,
2689
+ });
2690
+ Object.assign(contents, doc);
2750
2691
  return contents;
2751
2692
  };
2752
2693
  const de_DeleteVariantStoreCommandError = async (output, context) => {
@@ -2776,10 +2717,9 @@ const de_DeleteVariantStoreCommandError = async (output, context) => {
2776
2717
  throw await de_ValidationExceptionRes(parsedOutput, context);
2777
2718
  default:
2778
2719
  const parsedBody = parsedOutput.body;
2779
- throwDefaultError({
2720
+ return throwDefaultError({
2780
2721
  output,
2781
2722
  parsedBody,
2782
- exceptionCtor: __BaseException,
2783
2723
  errorCode,
2784
2724
  });
2785
2725
  }
@@ -2827,10 +2767,9 @@ const de_DeleteWorkflowCommandError = async (output, context) => {
2827
2767
  throw await de_ValidationExceptionRes(parsedOutput, context);
2828
2768
  default:
2829
2769
  const parsedBody = parsedOutput.body;
2830
- throwDefaultError({
2770
+ return throwDefaultError({
2831
2771
  output,
2832
2772
  parsedBody,
2833
- exceptionCtor: __BaseException,
2834
2773
  errorCode,
2835
2774
  });
2836
2775
  }
@@ -2843,39 +2782,20 @@ export const de_GetAnnotationImportJobCommand = async (output, context) => {
2843
2782
  $metadata: deserializeMetadata(output),
2844
2783
  });
2845
2784
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2846
- if (data.completionTime != null) {
2847
- contents.completionTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.completionTime));
2848
- }
2849
- if (data.creationTime != null) {
2850
- contents.creationTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.creationTime));
2851
- }
2852
- if (data.destinationName != null) {
2853
- contents.destinationName = __expectString(data.destinationName);
2854
- }
2855
- if (data.formatOptions != null) {
2856
- contents.formatOptions = de_FormatOptions(__expectUnion(data.formatOptions), context);
2857
- }
2858
- if (data.id != null) {
2859
- contents.id = __expectString(data.id);
2860
- }
2861
- if (data.items != null) {
2862
- contents.items = de_AnnotationImportItemDetails(data.items, context);
2863
- }
2864
- if (data.roleArn != null) {
2865
- contents.roleArn = __expectString(data.roleArn);
2866
- }
2867
- if (data.runLeftNormalization != null) {
2868
- contents.runLeftNormalization = __expectBoolean(data.runLeftNormalization);
2869
- }
2870
- if (data.status != null) {
2871
- contents.status = __expectString(data.status);
2872
- }
2873
- if (data.statusMessage != null) {
2874
- contents.statusMessage = __expectString(data.statusMessage);
2875
- }
2876
- if (data.updateTime != null) {
2877
- contents.updateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.updateTime));
2878
- }
2785
+ const doc = take(data, {
2786
+ completionTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
2787
+ creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
2788
+ destinationName: __expectString,
2789
+ formatOptions: (_) => _json(__expectUnion(_)),
2790
+ id: __expectString,
2791
+ items: _json,
2792
+ roleArn: __expectString,
2793
+ runLeftNormalization: __expectBoolean,
2794
+ status: __expectString,
2795
+ statusMessage: __expectString,
2796
+ updateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
2797
+ });
2798
+ Object.assign(contents, doc);
2879
2799
  return contents;
2880
2800
  };
2881
2801
  const de_GetAnnotationImportJobCommandError = async (output, context) => {
@@ -2902,10 +2822,9 @@ const de_GetAnnotationImportJobCommandError = async (output, context) => {
2902
2822
  throw await de_ValidationExceptionRes(parsedOutput, context);
2903
2823
  default:
2904
2824
  const parsedBody = parsedOutput.body;
2905
- throwDefaultError({
2825
+ return throwDefaultError({
2906
2826
  output,
2907
2827
  parsedBody,
2908
- exceptionCtor: __BaseException,
2909
2828
  errorCode,
2910
2829
  });
2911
2830
  }
@@ -2918,48 +2837,23 @@ export const de_GetAnnotationStoreCommand = async (output, context) => {
2918
2837
  $metadata: deserializeMetadata(output),
2919
2838
  });
2920
2839
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2921
- if (data.creationTime != null) {
2922
- contents.creationTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.creationTime));
2923
- }
2924
- if (data.description != null) {
2925
- contents.description = __expectString(data.description);
2926
- }
2927
- if (data.id != null) {
2928
- contents.id = __expectString(data.id);
2929
- }
2930
- if (data.name != null) {
2931
- contents.name = __expectString(data.name);
2932
- }
2933
- if (data.reference != null) {
2934
- contents.reference = de_ReferenceItem(__expectUnion(data.reference), context);
2935
- }
2936
- if (data.sseConfig != null) {
2937
- contents.sseConfig = de_SseConfig(data.sseConfig, context);
2938
- }
2939
- if (data.status != null) {
2940
- contents.status = __expectString(data.status);
2941
- }
2942
- if (data.statusMessage != null) {
2943
- contents.statusMessage = __expectString(data.statusMessage);
2944
- }
2945
- if (data.storeArn != null) {
2946
- contents.storeArn = __expectString(data.storeArn);
2947
- }
2948
- if (data.storeFormat != null) {
2949
- contents.storeFormat = __expectString(data.storeFormat);
2950
- }
2951
- if (data.storeOptions != null) {
2952
- contents.storeOptions = de_StoreOptions(__expectUnion(data.storeOptions), context);
2953
- }
2954
- if (data.storeSizeBytes != null) {
2955
- contents.storeSizeBytes = __expectLong(data.storeSizeBytes);
2956
- }
2957
- if (data.tags != null) {
2958
- contents.tags = de_TagMap(data.tags, context);
2959
- }
2960
- if (data.updateTime != null) {
2961
- contents.updateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.updateTime));
2962
- }
2840
+ const doc = take(data, {
2841
+ creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
2842
+ description: __expectString,
2843
+ id: __expectString,
2844
+ name: __expectString,
2845
+ reference: (_) => _json(__expectUnion(_)),
2846
+ sseConfig: _json,
2847
+ status: __expectString,
2848
+ statusMessage: __expectString,
2849
+ storeArn: __expectString,
2850
+ storeFormat: __expectString,
2851
+ storeOptions: (_) => _json(__expectUnion(_)),
2852
+ storeSizeBytes: __expectLong,
2853
+ tags: _json,
2854
+ updateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
2855
+ });
2856
+ Object.assign(contents, doc);
2963
2857
  return contents;
2964
2858
  };
2965
2859
  const de_GetAnnotationStoreCommandError = async (output, context) => {
@@ -2986,10 +2880,9 @@ const de_GetAnnotationStoreCommandError = async (output, context) => {
2986
2880
  throw await de_ValidationExceptionRes(parsedOutput, context);
2987
2881
  default:
2988
2882
  const parsedBody = parsedOutput.body;
2989
- throwDefaultError({
2883
+ return throwDefaultError({
2990
2884
  output,
2991
2885
  parsedBody,
2992
- exceptionCtor: __BaseException,
2993
2886
  errorCode,
2994
2887
  });
2995
2888
  }
@@ -3039,10 +2932,9 @@ const de_GetReadSetCommandError = async (output, context) => {
3039
2932
  throw await de_ValidationExceptionRes(parsedOutput, context);
3040
2933
  default:
3041
2934
  const parsedBody = parsedOutput.body;
3042
- throwDefaultError({
2935
+ return throwDefaultError({
3043
2936
  output,
3044
2937
  parsedBody,
3045
- exceptionCtor: __BaseException,
3046
2938
  errorCode,
3047
2939
  });
3048
2940
  }
@@ -3055,27 +2947,16 @@ export const de_GetReadSetActivationJobCommand = async (output, context) => {
3055
2947
  $metadata: deserializeMetadata(output),
3056
2948
  });
3057
2949
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3058
- if (data.completionTime != null) {
3059
- contents.completionTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.completionTime));
3060
- }
3061
- if (data.creationTime != null) {
3062
- contents.creationTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.creationTime));
3063
- }
3064
- if (data.id != null) {
3065
- contents.id = __expectString(data.id);
3066
- }
3067
- if (data.sequenceStoreId != null) {
3068
- contents.sequenceStoreId = __expectString(data.sequenceStoreId);
3069
- }
3070
- if (data.sources != null) {
3071
- contents.sources = de_ActivateReadSetSourceList(data.sources, context);
3072
- }
3073
- if (data.status != null) {
3074
- contents.status = __expectString(data.status);
3075
- }
3076
- if (data.statusMessage != null) {
3077
- contents.statusMessage = __expectString(data.statusMessage);
3078
- }
2950
+ const doc = take(data, {
2951
+ completionTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
2952
+ creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
2953
+ id: __expectString,
2954
+ sequenceStoreId: __expectString,
2955
+ sources: _json,
2956
+ status: __expectString,
2957
+ statusMessage: __expectString,
2958
+ });
2959
+ Object.assign(contents, doc);
3079
2960
  return contents;
3080
2961
  };
3081
2962
  const de_GetReadSetActivationJobCommandError = async (output, context) => {
@@ -3105,10 +2986,9 @@ const de_GetReadSetActivationJobCommandError = async (output, context) => {
3105
2986
  throw await de_ValidationExceptionRes(parsedOutput, context);
3106
2987
  default:
3107
2988
  const parsedBody = parsedOutput.body;
3108
- throwDefaultError({
2989
+ return throwDefaultError({
3109
2990
  output,
3110
2991
  parsedBody,
3111
- exceptionCtor: __BaseException,
3112
2992
  errorCode,
3113
2993
  });
3114
2994
  }
@@ -3121,30 +3001,17 @@ export const de_GetReadSetExportJobCommand = async (output, context) => {
3121
3001
  $metadata: deserializeMetadata(output),
3122
3002
  });
3123
3003
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3124
- if (data.completionTime != null) {
3125
- contents.completionTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.completionTime));
3126
- }
3127
- if (data.creationTime != null) {
3128
- contents.creationTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.creationTime));
3129
- }
3130
- if (data.destination != null) {
3131
- contents.destination = __expectString(data.destination);
3132
- }
3133
- if (data.id != null) {
3134
- contents.id = __expectString(data.id);
3135
- }
3136
- if (data.readSets != null) {
3137
- contents.readSets = de_ExportReadSetDetailList(data.readSets, context);
3138
- }
3139
- if (data.sequenceStoreId != null) {
3140
- contents.sequenceStoreId = __expectString(data.sequenceStoreId);
3141
- }
3142
- if (data.status != null) {
3143
- contents.status = __expectString(data.status);
3144
- }
3145
- if (data.statusMessage != null) {
3146
- contents.statusMessage = __expectString(data.statusMessage);
3147
- }
3004
+ const doc = take(data, {
3005
+ completionTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
3006
+ creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
3007
+ destination: __expectString,
3008
+ id: __expectString,
3009
+ readSets: _json,
3010
+ sequenceStoreId: __expectString,
3011
+ status: __expectString,
3012
+ statusMessage: __expectString,
3013
+ });
3014
+ Object.assign(contents, doc);
3148
3015
  return contents;
3149
3016
  };
3150
3017
  const de_GetReadSetExportJobCommandError = async (output, context) => {
@@ -3174,10 +3041,9 @@ const de_GetReadSetExportJobCommandError = async (output, context) => {
3174
3041
  throw await de_ValidationExceptionRes(parsedOutput, context);
3175
3042
  default:
3176
3043
  const parsedBody = parsedOutput.body;
3177
- throwDefaultError({
3044
+ return throwDefaultError({
3178
3045
  output,
3179
3046
  parsedBody,
3180
- exceptionCtor: __BaseException,
3181
3047
  errorCode,
3182
3048
  });
3183
3049
  }
@@ -3190,30 +3056,17 @@ export const de_GetReadSetImportJobCommand = async (output, context) => {
3190
3056
  $metadata: deserializeMetadata(output),
3191
3057
  });
3192
3058
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3193
- if (data.completionTime != null) {
3194
- contents.completionTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.completionTime));
3195
- }
3196
- if (data.creationTime != null) {
3197
- contents.creationTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.creationTime));
3198
- }
3199
- if (data.id != null) {
3200
- contents.id = __expectString(data.id);
3201
- }
3202
- if (data.roleArn != null) {
3203
- contents.roleArn = __expectString(data.roleArn);
3204
- }
3205
- if (data.sequenceStoreId != null) {
3206
- contents.sequenceStoreId = __expectString(data.sequenceStoreId);
3207
- }
3208
- if (data.sources != null) {
3209
- contents.sources = de_ImportReadSetSourceList(data.sources, context);
3210
- }
3211
- if (data.status != null) {
3212
- contents.status = __expectString(data.status);
3213
- }
3214
- if (data.statusMessage != null) {
3215
- contents.statusMessage = __expectString(data.statusMessage);
3216
- }
3059
+ const doc = take(data, {
3060
+ completionTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
3061
+ creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
3062
+ id: __expectString,
3063
+ roleArn: __expectString,
3064
+ sequenceStoreId: __expectString,
3065
+ sources: _json,
3066
+ status: __expectString,
3067
+ statusMessage: __expectString,
3068
+ });
3069
+ Object.assign(contents, doc);
3217
3070
  return contents;
3218
3071
  };
3219
3072
  const de_GetReadSetImportJobCommandError = async (output, context) => {
@@ -3243,10 +3096,9 @@ const de_GetReadSetImportJobCommandError = async (output, context) => {
3243
3096
  throw await de_ValidationExceptionRes(parsedOutput, context);
3244
3097
  default:
3245
3098
  const parsedBody = parsedOutput.body;
3246
- throwDefaultError({
3099
+ return throwDefaultError({
3247
3100
  output,
3248
3101
  parsedBody,
3249
- exceptionCtor: __BaseException,
3250
3102
  errorCode,
3251
3103
  });
3252
3104
  }
@@ -3259,45 +3111,22 @@ export const de_GetReadSetMetadataCommand = async (output, context) => {
3259
3111
  $metadata: deserializeMetadata(output),
3260
3112
  });
3261
3113
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3262
- if (data.arn != null) {
3263
- contents.arn = __expectString(data.arn);
3264
- }
3265
- if (data.creationTime != null) {
3266
- contents.creationTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.creationTime));
3267
- }
3268
- if (data.description != null) {
3269
- contents.description = __expectString(data.description);
3270
- }
3271
- if (data.fileType != null) {
3272
- contents.fileType = __expectString(data.fileType);
3273
- }
3274
- if (data.files != null) {
3275
- contents.files = de_ReadSetFiles(data.files, context);
3276
- }
3277
- if (data.id != null) {
3278
- contents.id = __expectString(data.id);
3279
- }
3280
- if (data.name != null) {
3281
- contents.name = __expectString(data.name);
3282
- }
3283
- if (data.referenceArn != null) {
3284
- contents.referenceArn = __expectString(data.referenceArn);
3285
- }
3286
- if (data.sampleId != null) {
3287
- contents.sampleId = __expectString(data.sampleId);
3288
- }
3289
- if (data.sequenceInformation != null) {
3290
- contents.sequenceInformation = de_SequenceInformation(data.sequenceInformation, context);
3291
- }
3292
- if (data.sequenceStoreId != null) {
3293
- contents.sequenceStoreId = __expectString(data.sequenceStoreId);
3294
- }
3295
- if (data.status != null) {
3296
- contents.status = __expectString(data.status);
3297
- }
3298
- if (data.subjectId != null) {
3299
- contents.subjectId = __expectString(data.subjectId);
3300
- }
3114
+ const doc = take(data, {
3115
+ arn: __expectString,
3116
+ creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
3117
+ description: __expectString,
3118
+ fileType: __expectString,
3119
+ files: _json,
3120
+ id: __expectString,
3121
+ name: __expectString,
3122
+ referenceArn: __expectString,
3123
+ sampleId: __expectString,
3124
+ sequenceInformation: _json,
3125
+ sequenceStoreId: __expectString,
3126
+ status: __expectString,
3127
+ subjectId: __expectString,
3128
+ });
3129
+ Object.assign(contents, doc);
3301
3130
  return contents;
3302
3131
  };
3303
3132
  const de_GetReadSetMetadataCommandError = async (output, context) => {
@@ -3327,10 +3156,9 @@ const de_GetReadSetMetadataCommandError = async (output, context) => {
3327
3156
  throw await de_ValidationExceptionRes(parsedOutput, context);
3328
3157
  default:
3329
3158
  const parsedBody = parsedOutput.body;
3330
- throwDefaultError({
3159
+ return throwDefaultError({
3331
3160
  output,
3332
3161
  parsedBody,
3333
- exceptionCtor: __BaseException,
3334
3162
  errorCode,
3335
3163
  });
3336
3164
  }
@@ -3377,10 +3205,9 @@ const de_GetReferenceCommandError = async (output, context) => {
3377
3205
  throw await de_ValidationExceptionRes(parsedOutput, context);
3378
3206
  default:
3379
3207
  const parsedBody = parsedOutput.body;
3380
- throwDefaultError({
3208
+ return throwDefaultError({
3381
3209
  output,
3382
3210
  parsedBody,
3383
- exceptionCtor: __BaseException,
3384
3211
  errorCode,
3385
3212
  });
3386
3213
  }
@@ -3393,30 +3220,17 @@ export const de_GetReferenceImportJobCommand = async (output, context) => {
3393
3220
  $metadata: deserializeMetadata(output),
3394
3221
  });
3395
3222
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3396
- if (data.completionTime != null) {
3397
- contents.completionTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.completionTime));
3398
- }
3399
- if (data.creationTime != null) {
3400
- contents.creationTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.creationTime));
3401
- }
3402
- if (data.id != null) {
3403
- contents.id = __expectString(data.id);
3404
- }
3405
- if (data.referenceStoreId != null) {
3406
- contents.referenceStoreId = __expectString(data.referenceStoreId);
3407
- }
3408
- if (data.roleArn != null) {
3409
- contents.roleArn = __expectString(data.roleArn);
3410
- }
3411
- if (data.sources != null) {
3412
- contents.sources = de_ImportReferenceSourceList(data.sources, context);
3413
- }
3414
- if (data.status != null) {
3415
- contents.status = __expectString(data.status);
3416
- }
3417
- if (data.statusMessage != null) {
3418
- contents.statusMessage = __expectString(data.statusMessage);
3419
- }
3223
+ const doc = take(data, {
3224
+ completionTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
3225
+ creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
3226
+ id: __expectString,
3227
+ referenceStoreId: __expectString,
3228
+ roleArn: __expectString,
3229
+ sources: _json,
3230
+ status: __expectString,
3231
+ statusMessage: __expectString,
3232
+ });
3233
+ Object.assign(contents, doc);
3420
3234
  return contents;
3421
3235
  };
3422
3236
  const de_GetReferenceImportJobCommandError = async (output, context) => {
@@ -3446,10 +3260,9 @@ const de_GetReferenceImportJobCommandError = async (output, context) => {
3446
3260
  throw await de_ValidationExceptionRes(parsedOutput, context);
3447
3261
  default:
3448
3262
  const parsedBody = parsedOutput.body;
3449
- throwDefaultError({
3263
+ return throwDefaultError({
3450
3264
  output,
3451
3265
  parsedBody,
3452
- exceptionCtor: __BaseException,
3453
3266
  errorCode,
3454
3267
  });
3455
3268
  }
@@ -3462,36 +3275,19 @@ export const de_GetReferenceMetadataCommand = async (output, context) => {
3462
3275
  $metadata: deserializeMetadata(output),
3463
3276
  });
3464
3277
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3465
- if (data.arn != null) {
3466
- contents.arn = __expectString(data.arn);
3467
- }
3468
- if (data.creationTime != null) {
3469
- contents.creationTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.creationTime));
3470
- }
3471
- if (data.description != null) {
3472
- contents.description = __expectString(data.description);
3473
- }
3474
- if (data.files != null) {
3475
- contents.files = de_ReferenceFiles(data.files, context);
3476
- }
3477
- if (data.id != null) {
3478
- contents.id = __expectString(data.id);
3479
- }
3480
- if (data.md5 != null) {
3481
- contents.md5 = __expectString(data.md5);
3482
- }
3483
- if (data.name != null) {
3484
- contents.name = __expectString(data.name);
3485
- }
3486
- if (data.referenceStoreId != null) {
3487
- contents.referenceStoreId = __expectString(data.referenceStoreId);
3488
- }
3489
- if (data.status != null) {
3490
- contents.status = __expectString(data.status);
3491
- }
3492
- if (data.updateTime != null) {
3493
- contents.updateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.updateTime));
3494
- }
3278
+ const doc = take(data, {
3279
+ arn: __expectString,
3280
+ creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
3281
+ description: __expectString,
3282
+ files: _json,
3283
+ id: __expectString,
3284
+ md5: __expectString,
3285
+ name: __expectString,
3286
+ referenceStoreId: __expectString,
3287
+ status: __expectString,
3288
+ updateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
3289
+ });
3290
+ Object.assign(contents, doc);
3495
3291
  return contents;
3496
3292
  };
3497
3293
  const de_GetReferenceMetadataCommandError = async (output, context) => {
@@ -3521,10 +3317,9 @@ const de_GetReferenceMetadataCommandError = async (output, context) => {
3521
3317
  throw await de_ValidationExceptionRes(parsedOutput, context);
3522
3318
  default:
3523
3319
  const parsedBody = parsedOutput.body;
3524
- throwDefaultError({
3320
+ return throwDefaultError({
3525
3321
  output,
3526
3322
  parsedBody,
3527
- exceptionCtor: __BaseException,
3528
3323
  errorCode,
3529
3324
  });
3530
3325
  }
@@ -3537,24 +3332,15 @@ export const de_GetReferenceStoreCommand = async (output, context) => {
3537
3332
  $metadata: deserializeMetadata(output),
3538
3333
  });
3539
3334
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3540
- if (data.arn != null) {
3541
- contents.arn = __expectString(data.arn);
3542
- }
3543
- if (data.creationTime != null) {
3544
- contents.creationTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.creationTime));
3545
- }
3546
- if (data.description != null) {
3547
- contents.description = __expectString(data.description);
3548
- }
3549
- if (data.id != null) {
3550
- contents.id = __expectString(data.id);
3551
- }
3552
- if (data.name != null) {
3553
- contents.name = __expectString(data.name);
3554
- }
3555
- if (data.sseConfig != null) {
3556
- contents.sseConfig = de_SseConfig(data.sseConfig, context);
3557
- }
3335
+ const doc = take(data, {
3336
+ arn: __expectString,
3337
+ creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
3338
+ description: __expectString,
3339
+ id: __expectString,
3340
+ name: __expectString,
3341
+ sseConfig: _json,
3342
+ });
3343
+ Object.assign(contents, doc);
3558
3344
  return contents;
3559
3345
  };
3560
3346
  const de_GetReferenceStoreCommandError = async (output, context) => {
@@ -3584,10 +3370,9 @@ const de_GetReferenceStoreCommandError = async (output, context) => {
3584
3370
  throw await de_ValidationExceptionRes(parsedOutput, context);
3585
3371
  default:
3586
3372
  const parsedBody = parsedOutput.body;
3587
- throwDefaultError({
3373
+ return throwDefaultError({
3588
3374
  output,
3589
3375
  parsedBody,
3590
- exceptionCtor: __BaseException,
3591
3376
  errorCode,
3592
3377
  });
3593
3378
  }
@@ -3600,75 +3385,32 @@ export const de_GetRunCommand = async (output, context) => {
3600
3385
  $metadata: deserializeMetadata(output),
3601
3386
  });
3602
3387
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3603
- if (data.arn != null) {
3604
- contents.arn = __expectString(data.arn);
3605
- }
3606
- if (data.creationTime != null) {
3607
- contents.creationTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.creationTime));
3608
- }
3609
- if (data.definition != null) {
3610
- contents.definition = __expectString(data.definition);
3611
- }
3612
- if (data.digest != null) {
3613
- contents.digest = __expectString(data.digest);
3614
- }
3615
- if (data.id != null) {
3616
- contents.id = __expectString(data.id);
3617
- }
3618
- if (data.logLevel != null) {
3619
- contents.logLevel = __expectString(data.logLevel);
3620
- }
3621
- if (data.name != null) {
3622
- contents.name = __expectString(data.name);
3623
- }
3624
- if (data.outputUri != null) {
3625
- contents.outputUri = __expectString(data.outputUri);
3626
- }
3627
- if (data.parameters != null) {
3628
- contents.parameters = de_RunParameters(data.parameters, context);
3629
- }
3630
- if (data.priority != null) {
3631
- contents.priority = __expectInt32(data.priority);
3632
- }
3633
- if (data.resourceDigests != null) {
3634
- contents.resourceDigests = de_RunResourceDigests(data.resourceDigests, context);
3635
- }
3636
- if (data.roleArn != null) {
3637
- contents.roleArn = __expectString(data.roleArn);
3638
- }
3639
- if (data.runGroupId != null) {
3640
- contents.runGroupId = __expectString(data.runGroupId);
3641
- }
3642
- if (data.runId != null) {
3643
- contents.runId = __expectString(data.runId);
3644
- }
3645
- if (data.startTime != null) {
3646
- contents.startTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.startTime));
3647
- }
3648
- if (data.startedBy != null) {
3649
- contents.startedBy = __expectString(data.startedBy);
3650
- }
3651
- if (data.status != null) {
3652
- contents.status = __expectString(data.status);
3653
- }
3654
- if (data.statusMessage != null) {
3655
- contents.statusMessage = __expectString(data.statusMessage);
3656
- }
3657
- if (data.stopTime != null) {
3658
- contents.stopTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.stopTime));
3659
- }
3660
- if (data.storageCapacity != null) {
3661
- contents.storageCapacity = __expectInt32(data.storageCapacity);
3662
- }
3663
- if (data.tags != null) {
3664
- contents.tags = de_TagMap(data.tags, context);
3665
- }
3666
- if (data.workflowId != null) {
3667
- contents.workflowId = __expectString(data.workflowId);
3668
- }
3669
- if (data.workflowType != null) {
3670
- contents.workflowType = __expectString(data.workflowType);
3671
- }
3388
+ const doc = take(data, {
3389
+ arn: __expectString,
3390
+ creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
3391
+ definition: __expectString,
3392
+ digest: __expectString,
3393
+ id: __expectString,
3394
+ logLevel: __expectString,
3395
+ name: __expectString,
3396
+ outputUri: __expectString,
3397
+ parameters: (_) => de_RunParameters(_, context),
3398
+ priority: __expectInt32,
3399
+ resourceDigests: _json,
3400
+ roleArn: __expectString,
3401
+ runGroupId: __expectString,
3402
+ runId: __expectString,
3403
+ startTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
3404
+ startedBy: __expectString,
3405
+ status: __expectString,
3406
+ statusMessage: __expectString,
3407
+ stopTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
3408
+ storageCapacity: __expectInt32,
3409
+ tags: _json,
3410
+ workflowId: __expectString,
3411
+ workflowType: __expectString,
3412
+ });
3413
+ Object.assign(contents, doc);
3672
3414
  return contents;
3673
3415
  };
3674
3416
  const de_GetRunCommandError = async (output, context) => {
@@ -3704,10 +3446,9 @@ const de_GetRunCommandError = async (output, context) => {
3704
3446
  throw await de_ValidationExceptionRes(parsedOutput, context);
3705
3447
  default:
3706
3448
  const parsedBody = parsedOutput.body;
3707
- throwDefaultError({
3449
+ return throwDefaultError({
3708
3450
  output,
3709
3451
  parsedBody,
3710
- exceptionCtor: __BaseException,
3711
3452
  errorCode,
3712
3453
  });
3713
3454
  }
@@ -3720,30 +3461,17 @@ export const de_GetRunGroupCommand = async (output, context) => {
3720
3461
  $metadata: deserializeMetadata(output),
3721
3462
  });
3722
3463
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3723
- if (data.arn != null) {
3724
- contents.arn = __expectString(data.arn);
3725
- }
3726
- if (data.creationTime != null) {
3727
- contents.creationTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.creationTime));
3728
- }
3729
- if (data.id != null) {
3730
- contents.id = __expectString(data.id);
3731
- }
3732
- if (data.maxCpus != null) {
3733
- contents.maxCpus = __expectInt32(data.maxCpus);
3734
- }
3735
- if (data.maxDuration != null) {
3736
- contents.maxDuration = __expectInt32(data.maxDuration);
3737
- }
3738
- if (data.maxRuns != null) {
3739
- contents.maxRuns = __expectInt32(data.maxRuns);
3740
- }
3741
- if (data.name != null) {
3742
- contents.name = __expectString(data.name);
3743
- }
3744
- if (data.tags != null) {
3745
- contents.tags = de_TagMap(data.tags, context);
3746
- }
3464
+ const doc = take(data, {
3465
+ arn: __expectString,
3466
+ creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
3467
+ id: __expectString,
3468
+ maxCpus: __expectInt32,
3469
+ maxDuration: __expectInt32,
3470
+ maxRuns: __expectInt32,
3471
+ name: __expectString,
3472
+ tags: _json,
3473
+ });
3474
+ Object.assign(contents, doc);
3747
3475
  return contents;
3748
3476
  };
3749
3477
  const de_GetRunGroupCommandError = async (output, context) => {
@@ -3779,10 +3507,9 @@ const de_GetRunGroupCommandError = async (output, context) => {
3779
3507
  throw await de_ValidationExceptionRes(parsedOutput, context);
3780
3508
  default:
3781
3509
  const parsedBody = parsedOutput.body;
3782
- throwDefaultError({
3510
+ return throwDefaultError({
3783
3511
  output,
3784
3512
  parsedBody,
3785
- exceptionCtor: __BaseException,
3786
3513
  errorCode,
3787
3514
  });
3788
3515
  }
@@ -3795,36 +3522,19 @@ export const de_GetRunTaskCommand = async (output, context) => {
3795
3522
  $metadata: deserializeMetadata(output),
3796
3523
  });
3797
3524
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3798
- if (data.cpus != null) {
3799
- contents.cpus = __expectInt32(data.cpus);
3800
- }
3801
- if (data.creationTime != null) {
3802
- contents.creationTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.creationTime));
3803
- }
3804
- if (data.logStream != null) {
3805
- contents.logStream = __expectString(data.logStream);
3806
- }
3807
- if (data.memory != null) {
3808
- contents.memory = __expectInt32(data.memory);
3809
- }
3810
- if (data.name != null) {
3811
- contents.name = __expectString(data.name);
3812
- }
3813
- if (data.startTime != null) {
3814
- contents.startTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.startTime));
3815
- }
3816
- if (data.status != null) {
3817
- contents.status = __expectString(data.status);
3818
- }
3819
- if (data.statusMessage != null) {
3820
- contents.statusMessage = __expectString(data.statusMessage);
3821
- }
3822
- if (data.stopTime != null) {
3823
- contents.stopTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.stopTime));
3824
- }
3825
- if (data.taskId != null) {
3826
- contents.taskId = __expectString(data.taskId);
3827
- }
3525
+ const doc = take(data, {
3526
+ cpus: __expectInt32,
3527
+ creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
3528
+ logStream: __expectString,
3529
+ memory: __expectInt32,
3530
+ name: __expectString,
3531
+ startTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
3532
+ status: __expectString,
3533
+ statusMessage: __expectString,
3534
+ stopTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
3535
+ taskId: __expectString,
3536
+ });
3537
+ Object.assign(contents, doc);
3828
3538
  return contents;
3829
3539
  };
3830
3540
  const de_GetRunTaskCommandError = async (output, context) => {
@@ -3860,10 +3570,9 @@ const de_GetRunTaskCommandError = async (output, context) => {
3860
3570
  throw await de_ValidationExceptionRes(parsedOutput, context);
3861
3571
  default:
3862
3572
  const parsedBody = parsedOutput.body;
3863
- throwDefaultError({
3573
+ return throwDefaultError({
3864
3574
  output,
3865
3575
  parsedBody,
3866
- exceptionCtor: __BaseException,
3867
3576
  errorCode,
3868
3577
  });
3869
3578
  }
@@ -3876,24 +3585,15 @@ export const de_GetSequenceStoreCommand = async (output, context) => {
3876
3585
  $metadata: deserializeMetadata(output),
3877
3586
  });
3878
3587
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3879
- if (data.arn != null) {
3880
- contents.arn = __expectString(data.arn);
3881
- }
3882
- if (data.creationTime != null) {
3883
- contents.creationTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.creationTime));
3884
- }
3885
- if (data.description != null) {
3886
- contents.description = __expectString(data.description);
3887
- }
3888
- if (data.id != null) {
3889
- contents.id = __expectString(data.id);
3890
- }
3891
- if (data.name != null) {
3892
- contents.name = __expectString(data.name);
3893
- }
3894
- if (data.sseConfig != null) {
3895
- contents.sseConfig = de_SseConfig(data.sseConfig, context);
3896
- }
3588
+ const doc = take(data, {
3589
+ arn: __expectString,
3590
+ creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
3591
+ description: __expectString,
3592
+ id: __expectString,
3593
+ name: __expectString,
3594
+ sseConfig: _json,
3595
+ });
3596
+ Object.assign(contents, doc);
3897
3597
  return contents;
3898
3598
  };
3899
3599
  const de_GetSequenceStoreCommandError = async (output, context) => {
@@ -3923,10 +3623,9 @@ const de_GetSequenceStoreCommandError = async (output, context) => {
3923
3623
  throw await de_ValidationExceptionRes(parsedOutput, context);
3924
3624
  default:
3925
3625
  const parsedBody = parsedOutput.body;
3926
- throwDefaultError({
3626
+ return throwDefaultError({
3927
3627
  output,
3928
3628
  parsedBody,
3929
- exceptionCtor: __BaseException,
3930
3629
  errorCode,
3931
3630
  });
3932
3631
  }
@@ -3939,36 +3638,19 @@ export const de_GetVariantImportJobCommand = async (output, context) => {
3939
3638
  $metadata: deserializeMetadata(output),
3940
3639
  });
3941
3640
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3942
- if (data.completionTime != null) {
3943
- contents.completionTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.completionTime));
3944
- }
3945
- if (data.creationTime != null) {
3946
- contents.creationTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.creationTime));
3947
- }
3948
- if (data.destinationName != null) {
3949
- contents.destinationName = __expectString(data.destinationName);
3950
- }
3951
- if (data.id != null) {
3952
- contents.id = __expectString(data.id);
3953
- }
3954
- if (data.items != null) {
3955
- contents.items = de_VariantImportItemDetails(data.items, context);
3956
- }
3957
- if (data.roleArn != null) {
3958
- contents.roleArn = __expectString(data.roleArn);
3959
- }
3960
- if (data.runLeftNormalization != null) {
3961
- contents.runLeftNormalization = __expectBoolean(data.runLeftNormalization);
3962
- }
3963
- if (data.status != null) {
3964
- contents.status = __expectString(data.status);
3965
- }
3966
- if (data.statusMessage != null) {
3967
- contents.statusMessage = __expectString(data.statusMessage);
3968
- }
3969
- if (data.updateTime != null) {
3970
- contents.updateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.updateTime));
3971
- }
3641
+ const doc = take(data, {
3642
+ completionTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
3643
+ creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
3644
+ destinationName: __expectString,
3645
+ id: __expectString,
3646
+ items: _json,
3647
+ roleArn: __expectString,
3648
+ runLeftNormalization: __expectBoolean,
3649
+ status: __expectString,
3650
+ statusMessage: __expectString,
3651
+ updateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
3652
+ });
3653
+ Object.assign(contents, doc);
3972
3654
  return contents;
3973
3655
  };
3974
3656
  const de_GetVariantImportJobCommandError = async (output, context) => {
@@ -3995,10 +3677,9 @@ const de_GetVariantImportJobCommandError = async (output, context) => {
3995
3677
  throw await de_ValidationExceptionRes(parsedOutput, context);
3996
3678
  default:
3997
3679
  const parsedBody = parsedOutput.body;
3998
- throwDefaultError({
3680
+ return throwDefaultError({
3999
3681
  output,
4000
3682
  parsedBody,
4001
- exceptionCtor: __BaseException,
4002
3683
  errorCode,
4003
3684
  });
4004
3685
  }
@@ -4011,42 +3692,21 @@ export const de_GetVariantStoreCommand = async (output, context) => {
4011
3692
  $metadata: deserializeMetadata(output),
4012
3693
  });
4013
3694
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4014
- if (data.creationTime != null) {
4015
- contents.creationTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.creationTime));
4016
- }
4017
- if (data.description != null) {
4018
- contents.description = __expectString(data.description);
4019
- }
4020
- if (data.id != null) {
4021
- contents.id = __expectString(data.id);
4022
- }
4023
- if (data.name != null) {
4024
- contents.name = __expectString(data.name);
4025
- }
4026
- if (data.reference != null) {
4027
- contents.reference = de_ReferenceItem(__expectUnion(data.reference), context);
4028
- }
4029
- if (data.sseConfig != null) {
4030
- contents.sseConfig = de_SseConfig(data.sseConfig, context);
4031
- }
4032
- if (data.status != null) {
4033
- contents.status = __expectString(data.status);
4034
- }
4035
- if (data.statusMessage != null) {
4036
- contents.statusMessage = __expectString(data.statusMessage);
4037
- }
4038
- if (data.storeArn != null) {
4039
- contents.storeArn = __expectString(data.storeArn);
4040
- }
4041
- if (data.storeSizeBytes != null) {
4042
- contents.storeSizeBytes = __expectLong(data.storeSizeBytes);
4043
- }
4044
- if (data.tags != null) {
4045
- contents.tags = de_TagMap(data.tags, context);
4046
- }
4047
- if (data.updateTime != null) {
4048
- contents.updateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.updateTime));
4049
- }
3695
+ const doc = take(data, {
3696
+ creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
3697
+ description: __expectString,
3698
+ id: __expectString,
3699
+ name: __expectString,
3700
+ reference: (_) => _json(__expectUnion(_)),
3701
+ sseConfig: _json,
3702
+ status: __expectString,
3703
+ statusMessage: __expectString,
3704
+ storeArn: __expectString,
3705
+ storeSizeBytes: __expectLong,
3706
+ tags: _json,
3707
+ updateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
3708
+ });
3709
+ Object.assign(contents, doc);
4050
3710
  return contents;
4051
3711
  };
4052
3712
  const de_GetVariantStoreCommandError = async (output, context) => {
@@ -4073,10 +3733,9 @@ const de_GetVariantStoreCommandError = async (output, context) => {
4073
3733
  throw await de_ValidationExceptionRes(parsedOutput, context);
4074
3734
  default:
4075
3735
  const parsedBody = parsedOutput.body;
4076
- throwDefaultError({
3736
+ return throwDefaultError({
4077
3737
  output,
4078
3738
  parsedBody,
4079
- exceptionCtor: __BaseException,
4080
3739
  errorCode,
4081
3740
  });
4082
3741
  }
@@ -4089,51 +3748,24 @@ export const de_GetWorkflowCommand = async (output, context) => {
4089
3748
  $metadata: deserializeMetadata(output),
4090
3749
  });
4091
3750
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4092
- if (data.arn != null) {
4093
- contents.arn = __expectString(data.arn);
4094
- }
4095
- if (data.creationTime != null) {
4096
- contents.creationTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.creationTime));
4097
- }
4098
- if (data.definition != null) {
4099
- contents.definition = __expectString(data.definition);
4100
- }
4101
- if (data.description != null) {
4102
- contents.description = __expectString(data.description);
4103
- }
4104
- if (data.digest != null) {
4105
- contents.digest = __expectString(data.digest);
4106
- }
4107
- if (data.engine != null) {
4108
- contents.engine = __expectString(data.engine);
4109
- }
4110
- if (data.id != null) {
4111
- contents.id = __expectString(data.id);
4112
- }
4113
- if (data.main != null) {
4114
- contents.main = __expectString(data.main);
4115
- }
4116
- if (data.name != null) {
4117
- contents.name = __expectString(data.name);
4118
- }
4119
- if (data.parameterTemplate != null) {
4120
- contents.parameterTemplate = de_WorkflowParameterTemplate(data.parameterTemplate, context);
4121
- }
4122
- if (data.status != null) {
4123
- contents.status = __expectString(data.status);
4124
- }
4125
- if (data.statusMessage != null) {
4126
- contents.statusMessage = __expectString(data.statusMessage);
4127
- }
4128
- if (data.storageCapacity != null) {
4129
- contents.storageCapacity = __expectInt32(data.storageCapacity);
4130
- }
4131
- if (data.tags != null) {
4132
- contents.tags = de_TagMap(data.tags, context);
4133
- }
4134
- if (data.type != null) {
4135
- contents.type = __expectString(data.type);
4136
- }
3751
+ const doc = take(data, {
3752
+ arn: __expectString,
3753
+ creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
3754
+ definition: __expectString,
3755
+ description: __expectString,
3756
+ digest: __expectString,
3757
+ engine: __expectString,
3758
+ id: __expectString,
3759
+ main: __expectString,
3760
+ name: __expectString,
3761
+ parameterTemplate: _json,
3762
+ status: __expectString,
3763
+ statusMessage: __expectString,
3764
+ storageCapacity: __expectInt32,
3765
+ tags: _json,
3766
+ type: __expectString,
3767
+ });
3768
+ Object.assign(contents, doc);
4137
3769
  return contents;
4138
3770
  };
4139
3771
  const de_GetWorkflowCommandError = async (output, context) => {
@@ -4169,10 +3801,9 @@ const de_GetWorkflowCommandError = async (output, context) => {
4169
3801
  throw await de_ValidationExceptionRes(parsedOutput, context);
4170
3802
  default:
4171
3803
  const parsedBody = parsedOutput.body;
4172
- throwDefaultError({
3804
+ return throwDefaultError({
4173
3805
  output,
4174
3806
  parsedBody,
4175
- exceptionCtor: __BaseException,
4176
3807
  errorCode,
4177
3808
  });
4178
3809
  }
@@ -4185,12 +3816,11 @@ export const de_ListAnnotationImportJobsCommand = async (output, context) => {
4185
3816
  $metadata: deserializeMetadata(output),
4186
3817
  });
4187
3818
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4188
- if (data.annotationImportJobs != null) {
4189
- contents.annotationImportJobs = de_AnnotationImportJobItems(data.annotationImportJobs, context);
4190
- }
4191
- if (data.nextToken != null) {
4192
- contents.nextToken = __expectString(data.nextToken);
4193
- }
3819
+ const doc = take(data, {
3820
+ annotationImportJobs: (_) => de_AnnotationImportJobItems(_, context),
3821
+ nextToken: __expectString,
3822
+ });
3823
+ Object.assign(contents, doc);
4194
3824
  return contents;
4195
3825
  };
4196
3826
  const de_ListAnnotationImportJobsCommandError = async (output, context) => {
@@ -4217,10 +3847,9 @@ const de_ListAnnotationImportJobsCommandError = async (output, context) => {
4217
3847
  throw await de_ValidationExceptionRes(parsedOutput, context);
4218
3848
  default:
4219
3849
  const parsedBody = parsedOutput.body;
4220
- throwDefaultError({
3850
+ return throwDefaultError({
4221
3851
  output,
4222
3852
  parsedBody,
4223
- exceptionCtor: __BaseException,
4224
3853
  errorCode,
4225
3854
  });
4226
3855
  }
@@ -4233,12 +3862,11 @@ export const de_ListAnnotationStoresCommand = async (output, context) => {
4233
3862
  $metadata: deserializeMetadata(output),
4234
3863
  });
4235
3864
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4236
- if (data.annotationStores != null) {
4237
- contents.annotationStores = de_AnnotationStoreItems(data.annotationStores, context);
4238
- }
4239
- if (data.nextToken != null) {
4240
- contents.nextToken = __expectString(data.nextToken);
4241
- }
3865
+ const doc = take(data, {
3866
+ annotationStores: (_) => de_AnnotationStoreItems(_, context),
3867
+ nextToken: __expectString,
3868
+ });
3869
+ Object.assign(contents, doc);
4242
3870
  return contents;
4243
3871
  };
4244
3872
  const de_ListAnnotationStoresCommandError = async (output, context) => {
@@ -4265,10 +3893,9 @@ const de_ListAnnotationStoresCommandError = async (output, context) => {
4265
3893
  throw await de_ValidationExceptionRes(parsedOutput, context);
4266
3894
  default:
4267
3895
  const parsedBody = parsedOutput.body;
4268
- throwDefaultError({
3896
+ return throwDefaultError({
4269
3897
  output,
4270
3898
  parsedBody,
4271
- exceptionCtor: __BaseException,
4272
3899
  errorCode,
4273
3900
  });
4274
3901
  }
@@ -4281,12 +3908,11 @@ export const de_ListReadSetActivationJobsCommand = async (output, context) => {
4281
3908
  $metadata: deserializeMetadata(output),
4282
3909
  });
4283
3910
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4284
- if (data.activationJobs != null) {
4285
- contents.activationJobs = de_ActivateReadSetJobList(data.activationJobs, context);
4286
- }
4287
- if (data.nextToken != null) {
4288
- contents.nextToken = __expectString(data.nextToken);
4289
- }
3911
+ const doc = take(data, {
3912
+ activationJobs: (_) => de_ActivateReadSetJobList(_, context),
3913
+ nextToken: __expectString,
3914
+ });
3915
+ Object.assign(contents, doc);
4290
3916
  return contents;
4291
3917
  };
4292
3918
  const de_ListReadSetActivationJobsCommandError = async (output, context) => {
@@ -4316,10 +3942,9 @@ const de_ListReadSetActivationJobsCommandError = async (output, context) => {
4316
3942
  throw await de_ValidationExceptionRes(parsedOutput, context);
4317
3943
  default:
4318
3944
  const parsedBody = parsedOutput.body;
4319
- throwDefaultError({
3945
+ return throwDefaultError({
4320
3946
  output,
4321
3947
  parsedBody,
4322
- exceptionCtor: __BaseException,
4323
3948
  errorCode,
4324
3949
  });
4325
3950
  }
@@ -4332,12 +3957,11 @@ export const de_ListReadSetExportJobsCommand = async (output, context) => {
4332
3957
  $metadata: deserializeMetadata(output),
4333
3958
  });
4334
3959
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4335
- if (data.exportJobs != null) {
4336
- contents.exportJobs = de_ExportReadSetJobDetailList(data.exportJobs, context);
4337
- }
4338
- if (data.nextToken != null) {
4339
- contents.nextToken = __expectString(data.nextToken);
4340
- }
3960
+ const doc = take(data, {
3961
+ exportJobs: (_) => de_ExportReadSetJobDetailList(_, context),
3962
+ nextToken: __expectString,
3963
+ });
3964
+ Object.assign(contents, doc);
4341
3965
  return contents;
4342
3966
  };
4343
3967
  const de_ListReadSetExportJobsCommandError = async (output, context) => {
@@ -4367,10 +3991,9 @@ const de_ListReadSetExportJobsCommandError = async (output, context) => {
4367
3991
  throw await de_ValidationExceptionRes(parsedOutput, context);
4368
3992
  default:
4369
3993
  const parsedBody = parsedOutput.body;
4370
- throwDefaultError({
3994
+ return throwDefaultError({
4371
3995
  output,
4372
3996
  parsedBody,
4373
- exceptionCtor: __BaseException,
4374
3997
  errorCode,
4375
3998
  });
4376
3999
  }
@@ -4383,12 +4006,11 @@ export const de_ListReadSetImportJobsCommand = async (output, context) => {
4383
4006
  $metadata: deserializeMetadata(output),
4384
4007
  });
4385
4008
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4386
- if (data.importJobs != null) {
4387
- contents.importJobs = de_ImportReadSetJobList(data.importJobs, context);
4388
- }
4389
- if (data.nextToken != null) {
4390
- contents.nextToken = __expectString(data.nextToken);
4391
- }
4009
+ const doc = take(data, {
4010
+ importJobs: (_) => de_ImportReadSetJobList(_, context),
4011
+ nextToken: __expectString,
4012
+ });
4013
+ Object.assign(contents, doc);
4392
4014
  return contents;
4393
4015
  };
4394
4016
  const de_ListReadSetImportJobsCommandError = async (output, context) => {
@@ -4418,10 +4040,9 @@ const de_ListReadSetImportJobsCommandError = async (output, context) => {
4418
4040
  throw await de_ValidationExceptionRes(parsedOutput, context);
4419
4041
  default:
4420
4042
  const parsedBody = parsedOutput.body;
4421
- throwDefaultError({
4043
+ return throwDefaultError({
4422
4044
  output,
4423
4045
  parsedBody,
4424
- exceptionCtor: __BaseException,
4425
4046
  errorCode,
4426
4047
  });
4427
4048
  }
@@ -4434,12 +4055,11 @@ export const de_ListReadSetsCommand = async (output, context) => {
4434
4055
  $metadata: deserializeMetadata(output),
4435
4056
  });
4436
4057
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4437
- if (data.nextToken != null) {
4438
- contents.nextToken = __expectString(data.nextToken);
4439
- }
4440
- if (data.readSets != null) {
4441
- contents.readSets = de_ReadSetList(data.readSets, context);
4442
- }
4058
+ const doc = take(data, {
4059
+ nextToken: __expectString,
4060
+ readSets: (_) => de_ReadSetList(_, context),
4061
+ });
4062
+ Object.assign(contents, doc);
4443
4063
  return contents;
4444
4064
  };
4445
4065
  const de_ListReadSetsCommandError = async (output, context) => {
@@ -4469,10 +4089,9 @@ const de_ListReadSetsCommandError = async (output, context) => {
4469
4089
  throw await de_ValidationExceptionRes(parsedOutput, context);
4470
4090
  default:
4471
4091
  const parsedBody = parsedOutput.body;
4472
- throwDefaultError({
4092
+ return throwDefaultError({
4473
4093
  output,
4474
4094
  parsedBody,
4475
- exceptionCtor: __BaseException,
4476
4095
  errorCode,
4477
4096
  });
4478
4097
  }
@@ -4485,12 +4104,11 @@ export const de_ListReferenceImportJobsCommand = async (output, context) => {
4485
4104
  $metadata: deserializeMetadata(output),
4486
4105
  });
4487
4106
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4488
- if (data.importJobs != null) {
4489
- contents.importJobs = de_ImportReferenceJobList(data.importJobs, context);
4490
- }
4491
- if (data.nextToken != null) {
4492
- contents.nextToken = __expectString(data.nextToken);
4493
- }
4107
+ const doc = take(data, {
4108
+ importJobs: (_) => de_ImportReferenceJobList(_, context),
4109
+ nextToken: __expectString,
4110
+ });
4111
+ Object.assign(contents, doc);
4494
4112
  return contents;
4495
4113
  };
4496
4114
  const de_ListReferenceImportJobsCommandError = async (output, context) => {
@@ -4520,10 +4138,9 @@ const de_ListReferenceImportJobsCommandError = async (output, context) => {
4520
4138
  throw await de_ValidationExceptionRes(parsedOutput, context);
4521
4139
  default:
4522
4140
  const parsedBody = parsedOutput.body;
4523
- throwDefaultError({
4141
+ return throwDefaultError({
4524
4142
  output,
4525
4143
  parsedBody,
4526
- exceptionCtor: __BaseException,
4527
4144
  errorCode,
4528
4145
  });
4529
4146
  }
@@ -4536,12 +4153,11 @@ export const de_ListReferencesCommand = async (output, context) => {
4536
4153
  $metadata: deserializeMetadata(output),
4537
4154
  });
4538
4155
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4539
- if (data.nextToken != null) {
4540
- contents.nextToken = __expectString(data.nextToken);
4541
- }
4542
- if (data.references != null) {
4543
- contents.references = de_ReferenceList(data.references, context);
4544
- }
4156
+ const doc = take(data, {
4157
+ nextToken: __expectString,
4158
+ references: (_) => de_ReferenceList(_, context),
4159
+ });
4160
+ Object.assign(contents, doc);
4545
4161
  return contents;
4546
4162
  };
4547
4163
  const de_ListReferencesCommandError = async (output, context) => {
@@ -4571,10 +4187,9 @@ const de_ListReferencesCommandError = async (output, context) => {
4571
4187
  throw await de_ValidationExceptionRes(parsedOutput, context);
4572
4188
  default:
4573
4189
  const parsedBody = parsedOutput.body;
4574
- throwDefaultError({
4190
+ return throwDefaultError({
4575
4191
  output,
4576
4192
  parsedBody,
4577
- exceptionCtor: __BaseException,
4578
4193
  errorCode,
4579
4194
  });
4580
4195
  }
@@ -4587,12 +4202,11 @@ export const de_ListReferenceStoresCommand = async (output, context) => {
4587
4202
  $metadata: deserializeMetadata(output),
4588
4203
  });
4589
4204
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4590
- if (data.nextToken != null) {
4591
- contents.nextToken = __expectString(data.nextToken);
4592
- }
4593
- if (data.referenceStores != null) {
4594
- contents.referenceStores = de_ReferenceStoreDetailList(data.referenceStores, context);
4595
- }
4205
+ const doc = take(data, {
4206
+ nextToken: __expectString,
4207
+ referenceStores: (_) => de_ReferenceStoreDetailList(_, context),
4208
+ });
4209
+ Object.assign(contents, doc);
4596
4210
  return contents;
4597
4211
  };
4598
4212
  const de_ListReferenceStoresCommandError = async (output, context) => {
@@ -4619,10 +4233,9 @@ const de_ListReferenceStoresCommandError = async (output, context) => {
4619
4233
  throw await de_ValidationExceptionRes(parsedOutput, context);
4620
4234
  default:
4621
4235
  const parsedBody = parsedOutput.body;
4622
- throwDefaultError({
4236
+ return throwDefaultError({
4623
4237
  output,
4624
4238
  parsedBody,
4625
- exceptionCtor: __BaseException,
4626
4239
  errorCode,
4627
4240
  });
4628
4241
  }
@@ -4635,12 +4248,11 @@ export const de_ListRunGroupsCommand = async (output, context) => {
4635
4248
  $metadata: deserializeMetadata(output),
4636
4249
  });
4637
4250
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4638
- if (data.items != null) {
4639
- contents.items = de_RunGroupList(data.items, context);
4640
- }
4641
- if (data.nextToken != null) {
4642
- contents.nextToken = __expectString(data.nextToken);
4643
- }
4251
+ const doc = take(data, {
4252
+ items: (_) => de_RunGroupList(_, context),
4253
+ nextToken: __expectString,
4254
+ });
4255
+ Object.assign(contents, doc);
4644
4256
  return contents;
4645
4257
  };
4646
4258
  const de_ListRunGroupsCommandError = async (output, context) => {
@@ -4676,10 +4288,9 @@ const de_ListRunGroupsCommandError = async (output, context) => {
4676
4288
  throw await de_ValidationExceptionRes(parsedOutput, context);
4677
4289
  default:
4678
4290
  const parsedBody = parsedOutput.body;
4679
- throwDefaultError({
4291
+ return throwDefaultError({
4680
4292
  output,
4681
4293
  parsedBody,
4682
- exceptionCtor: __BaseException,
4683
4294
  errorCode,
4684
4295
  });
4685
4296
  }
@@ -4692,12 +4303,11 @@ export const de_ListRunsCommand = async (output, context) => {
4692
4303
  $metadata: deserializeMetadata(output),
4693
4304
  });
4694
4305
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4695
- if (data.items != null) {
4696
- contents.items = de_RunList(data.items, context);
4697
- }
4698
- if (data.nextToken != null) {
4699
- contents.nextToken = __expectString(data.nextToken);
4700
- }
4306
+ const doc = take(data, {
4307
+ items: (_) => de_RunList(_, context),
4308
+ nextToken: __expectString,
4309
+ });
4310
+ Object.assign(contents, doc);
4701
4311
  return contents;
4702
4312
  };
4703
4313
  const de_ListRunsCommandError = async (output, context) => {
@@ -4733,10 +4343,9 @@ const de_ListRunsCommandError = async (output, context) => {
4733
4343
  throw await de_ValidationExceptionRes(parsedOutput, context);
4734
4344
  default:
4735
4345
  const parsedBody = parsedOutput.body;
4736
- throwDefaultError({
4346
+ return throwDefaultError({
4737
4347
  output,
4738
4348
  parsedBody,
4739
- exceptionCtor: __BaseException,
4740
4349
  errorCode,
4741
4350
  });
4742
4351
  }
@@ -4749,12 +4358,11 @@ export const de_ListRunTasksCommand = async (output, context) => {
4749
4358
  $metadata: deserializeMetadata(output),
4750
4359
  });
4751
4360
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4752
- if (data.items != null) {
4753
- contents.items = de_TaskList(data.items, context);
4754
- }
4755
- if (data.nextToken != null) {
4756
- contents.nextToken = __expectString(data.nextToken);
4757
- }
4361
+ const doc = take(data, {
4362
+ items: (_) => de_TaskList(_, context),
4363
+ nextToken: __expectString,
4364
+ });
4365
+ Object.assign(contents, doc);
4758
4366
  return contents;
4759
4367
  };
4760
4368
  const de_ListRunTasksCommandError = async (output, context) => {
@@ -4790,10 +4398,9 @@ const de_ListRunTasksCommandError = async (output, context) => {
4790
4398
  throw await de_ValidationExceptionRes(parsedOutput, context);
4791
4399
  default:
4792
4400
  const parsedBody = parsedOutput.body;
4793
- throwDefaultError({
4401
+ return throwDefaultError({
4794
4402
  output,
4795
4403
  parsedBody,
4796
- exceptionCtor: __BaseException,
4797
4404
  errorCode,
4798
4405
  });
4799
4406
  }
@@ -4806,12 +4413,11 @@ export const de_ListSequenceStoresCommand = async (output, context) => {
4806
4413
  $metadata: deserializeMetadata(output),
4807
4414
  });
4808
4415
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4809
- if (data.nextToken != null) {
4810
- contents.nextToken = __expectString(data.nextToken);
4811
- }
4812
- if (data.sequenceStores != null) {
4813
- contents.sequenceStores = de_SequenceStoreDetailList(data.sequenceStores, context);
4814
- }
4416
+ const doc = take(data, {
4417
+ nextToken: __expectString,
4418
+ sequenceStores: (_) => de_SequenceStoreDetailList(_, context),
4419
+ });
4420
+ Object.assign(contents, doc);
4815
4421
  return contents;
4816
4422
  };
4817
4423
  const de_ListSequenceStoresCommandError = async (output, context) => {
@@ -4838,10 +4444,9 @@ const de_ListSequenceStoresCommandError = async (output, context) => {
4838
4444
  throw await de_ValidationExceptionRes(parsedOutput, context);
4839
4445
  default:
4840
4446
  const parsedBody = parsedOutput.body;
4841
- throwDefaultError({
4447
+ return throwDefaultError({
4842
4448
  output,
4843
4449
  parsedBody,
4844
- exceptionCtor: __BaseException,
4845
4450
  errorCode,
4846
4451
  });
4847
4452
  }
@@ -4854,9 +4459,10 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
4854
4459
  $metadata: deserializeMetadata(output),
4855
4460
  });
4856
4461
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4857
- if (data.tags != null) {
4858
- contents.tags = de_TagMap(data.tags, context);
4859
- }
4462
+ const doc = take(data, {
4463
+ tags: _json,
4464
+ });
4465
+ Object.assign(contents, doc);
4860
4466
  return contents;
4861
4467
  };
4862
4468
  const de_ListTagsForResourceCommandError = async (output, context) => {
@@ -4892,10 +4498,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
4892
4498
  throw await de_ValidationExceptionRes(parsedOutput, context);
4893
4499
  default:
4894
4500
  const parsedBody = parsedOutput.body;
4895
- throwDefaultError({
4501
+ return throwDefaultError({
4896
4502
  output,
4897
4503
  parsedBody,
4898
- exceptionCtor: __BaseException,
4899
4504
  errorCode,
4900
4505
  });
4901
4506
  }
@@ -4908,12 +4513,11 @@ export const de_ListVariantImportJobsCommand = async (output, context) => {
4908
4513
  $metadata: deserializeMetadata(output),
4909
4514
  });
4910
4515
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4911
- if (data.nextToken != null) {
4912
- contents.nextToken = __expectString(data.nextToken);
4913
- }
4914
- if (data.variantImportJobs != null) {
4915
- contents.variantImportJobs = de_VariantImportJobItems(data.variantImportJobs, context);
4916
- }
4516
+ const doc = take(data, {
4517
+ nextToken: __expectString,
4518
+ variantImportJobs: (_) => de_VariantImportJobItems(_, context),
4519
+ });
4520
+ Object.assign(contents, doc);
4917
4521
  return contents;
4918
4522
  };
4919
4523
  const de_ListVariantImportJobsCommandError = async (output, context) => {
@@ -4940,10 +4544,9 @@ const de_ListVariantImportJobsCommandError = async (output, context) => {
4940
4544
  throw await de_ValidationExceptionRes(parsedOutput, context);
4941
4545
  default:
4942
4546
  const parsedBody = parsedOutput.body;
4943
- throwDefaultError({
4547
+ return throwDefaultError({
4944
4548
  output,
4945
4549
  parsedBody,
4946
- exceptionCtor: __BaseException,
4947
4550
  errorCode,
4948
4551
  });
4949
4552
  }
@@ -4956,12 +4559,11 @@ export const de_ListVariantStoresCommand = async (output, context) => {
4956
4559
  $metadata: deserializeMetadata(output),
4957
4560
  });
4958
4561
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4959
- if (data.nextToken != null) {
4960
- contents.nextToken = __expectString(data.nextToken);
4961
- }
4962
- if (data.variantStores != null) {
4963
- contents.variantStores = de_VariantStoreItems(data.variantStores, context);
4964
- }
4562
+ const doc = take(data, {
4563
+ nextToken: __expectString,
4564
+ variantStores: (_) => de_VariantStoreItems(_, context),
4565
+ });
4566
+ Object.assign(contents, doc);
4965
4567
  return contents;
4966
4568
  };
4967
4569
  const de_ListVariantStoresCommandError = async (output, context) => {
@@ -4988,10 +4590,9 @@ const de_ListVariantStoresCommandError = async (output, context) => {
4988
4590
  throw await de_ValidationExceptionRes(parsedOutput, context);
4989
4591
  default:
4990
4592
  const parsedBody = parsedOutput.body;
4991
- throwDefaultError({
4593
+ return throwDefaultError({
4992
4594
  output,
4993
4595
  parsedBody,
4994
- exceptionCtor: __BaseException,
4995
4596
  errorCode,
4996
4597
  });
4997
4598
  }
@@ -5004,12 +4605,11 @@ export const de_ListWorkflowsCommand = async (output, context) => {
5004
4605
  $metadata: deserializeMetadata(output),
5005
4606
  });
5006
4607
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
5007
- if (data.items != null) {
5008
- contents.items = de_WorkflowList(data.items, context);
5009
- }
5010
- if (data.nextToken != null) {
5011
- contents.nextToken = __expectString(data.nextToken);
5012
- }
4608
+ const doc = take(data, {
4609
+ items: (_) => de_WorkflowList(_, context),
4610
+ nextToken: __expectString,
4611
+ });
4612
+ Object.assign(contents, doc);
5013
4613
  return contents;
5014
4614
  };
5015
4615
  const de_ListWorkflowsCommandError = async (output, context) => {
@@ -5045,10 +4645,9 @@ const de_ListWorkflowsCommandError = async (output, context) => {
5045
4645
  throw await de_ValidationExceptionRes(parsedOutput, context);
5046
4646
  default:
5047
4647
  const parsedBody = parsedOutput.body;
5048
- throwDefaultError({
4648
+ return throwDefaultError({
5049
4649
  output,
5050
4650
  parsedBody,
5051
- exceptionCtor: __BaseException,
5052
4651
  errorCode,
5053
4652
  });
5054
4653
  }
@@ -5061,9 +4660,10 @@ export const de_StartAnnotationImportJobCommand = async (output, context) => {
5061
4660
  $metadata: deserializeMetadata(output),
5062
4661
  });
5063
4662
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
5064
- if (data.jobId != null) {
5065
- contents.jobId = __expectString(data.jobId);
5066
- }
4663
+ const doc = take(data, {
4664
+ jobId: __expectString,
4665
+ });
4666
+ Object.assign(contents, doc);
5067
4667
  return contents;
5068
4668
  };
5069
4669
  const de_StartAnnotationImportJobCommandError = async (output, context) => {
@@ -5093,10 +4693,9 @@ const de_StartAnnotationImportJobCommandError = async (output, context) => {
5093
4693
  throw await de_ValidationExceptionRes(parsedOutput, context);
5094
4694
  default:
5095
4695
  const parsedBody = parsedOutput.body;
5096
- throwDefaultError({
4696
+ return throwDefaultError({
5097
4697
  output,
5098
4698
  parsedBody,
5099
- exceptionCtor: __BaseException,
5100
4699
  errorCode,
5101
4700
  });
5102
4701
  }
@@ -5109,18 +4708,13 @@ export const de_StartReadSetActivationJobCommand = async (output, context) => {
5109
4708
  $metadata: deserializeMetadata(output),
5110
4709
  });
5111
4710
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
5112
- if (data.creationTime != null) {
5113
- contents.creationTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.creationTime));
5114
- }
5115
- if (data.id != null) {
5116
- contents.id = __expectString(data.id);
5117
- }
5118
- if (data.sequenceStoreId != null) {
5119
- contents.sequenceStoreId = __expectString(data.sequenceStoreId);
5120
- }
5121
- if (data.status != null) {
5122
- contents.status = __expectString(data.status);
5123
- }
4711
+ const doc = take(data, {
4712
+ creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
4713
+ id: __expectString,
4714
+ sequenceStoreId: __expectString,
4715
+ status: __expectString,
4716
+ });
4717
+ Object.assign(contents, doc);
5124
4718
  return contents;
5125
4719
  };
5126
4720
  const de_StartReadSetActivationJobCommandError = async (output, context) => {
@@ -5153,10 +4747,9 @@ const de_StartReadSetActivationJobCommandError = async (output, context) => {
5153
4747
  throw await de_ValidationExceptionRes(parsedOutput, context);
5154
4748
  default:
5155
4749
  const parsedBody = parsedOutput.body;
5156
- throwDefaultError({
4750
+ return throwDefaultError({
5157
4751
  output,
5158
4752
  parsedBody,
5159
- exceptionCtor: __BaseException,
5160
4753
  errorCode,
5161
4754
  });
5162
4755
  }
@@ -5169,21 +4762,14 @@ export const de_StartReadSetExportJobCommand = async (output, context) => {
5169
4762
  $metadata: deserializeMetadata(output),
5170
4763
  });
5171
4764
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
5172
- if (data.creationTime != null) {
5173
- contents.creationTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.creationTime));
5174
- }
5175
- if (data.destination != null) {
5176
- contents.destination = __expectString(data.destination);
5177
- }
5178
- if (data.id != null) {
5179
- contents.id = __expectString(data.id);
5180
- }
5181
- if (data.sequenceStoreId != null) {
5182
- contents.sequenceStoreId = __expectString(data.sequenceStoreId);
5183
- }
5184
- if (data.status != null) {
5185
- contents.status = __expectString(data.status);
5186
- }
4765
+ const doc = take(data, {
4766
+ creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
4767
+ destination: __expectString,
4768
+ id: __expectString,
4769
+ sequenceStoreId: __expectString,
4770
+ status: __expectString,
4771
+ });
4772
+ Object.assign(contents, doc);
5187
4773
  return contents;
5188
4774
  };
5189
4775
  const de_StartReadSetExportJobCommandError = async (output, context) => {
@@ -5216,10 +4802,9 @@ const de_StartReadSetExportJobCommandError = async (output, context) => {
5216
4802
  throw await de_ValidationExceptionRes(parsedOutput, context);
5217
4803
  default:
5218
4804
  const parsedBody = parsedOutput.body;
5219
- throwDefaultError({
4805
+ return throwDefaultError({
5220
4806
  output,
5221
4807
  parsedBody,
5222
- exceptionCtor: __BaseException,
5223
4808
  errorCode,
5224
4809
  });
5225
4810
  }
@@ -5232,21 +4817,14 @@ export const de_StartReadSetImportJobCommand = async (output, context) => {
5232
4817
  $metadata: deserializeMetadata(output),
5233
4818
  });
5234
4819
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
5235
- if (data.creationTime != null) {
5236
- contents.creationTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.creationTime));
5237
- }
5238
- if (data.id != null) {
5239
- contents.id = __expectString(data.id);
5240
- }
5241
- if (data.roleArn != null) {
5242
- contents.roleArn = __expectString(data.roleArn);
5243
- }
5244
- if (data.sequenceStoreId != null) {
5245
- contents.sequenceStoreId = __expectString(data.sequenceStoreId);
5246
- }
5247
- if (data.status != null) {
5248
- contents.status = __expectString(data.status);
5249
- }
4820
+ const doc = take(data, {
4821
+ creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
4822
+ id: __expectString,
4823
+ roleArn: __expectString,
4824
+ sequenceStoreId: __expectString,
4825
+ status: __expectString,
4826
+ });
4827
+ Object.assign(contents, doc);
5250
4828
  return contents;
5251
4829
  };
5252
4830
  const de_StartReadSetImportJobCommandError = async (output, context) => {
@@ -5279,10 +4857,9 @@ const de_StartReadSetImportJobCommandError = async (output, context) => {
5279
4857
  throw await de_ValidationExceptionRes(parsedOutput, context);
5280
4858
  default:
5281
4859
  const parsedBody = parsedOutput.body;
5282
- throwDefaultError({
4860
+ return throwDefaultError({
5283
4861
  output,
5284
4862
  parsedBody,
5285
- exceptionCtor: __BaseException,
5286
4863
  errorCode,
5287
4864
  });
5288
4865
  }
@@ -5295,21 +4872,14 @@ export const de_StartReferenceImportJobCommand = async (output, context) => {
5295
4872
  $metadata: deserializeMetadata(output),
5296
4873
  });
5297
4874
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
5298
- if (data.creationTime != null) {
5299
- contents.creationTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.creationTime));
5300
- }
5301
- if (data.id != null) {
5302
- contents.id = __expectString(data.id);
5303
- }
5304
- if (data.referenceStoreId != null) {
5305
- contents.referenceStoreId = __expectString(data.referenceStoreId);
5306
- }
5307
- if (data.roleArn != null) {
5308
- contents.roleArn = __expectString(data.roleArn);
5309
- }
5310
- if (data.status != null) {
5311
- contents.status = __expectString(data.status);
5312
- }
4875
+ const doc = take(data, {
4876
+ creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
4877
+ id: __expectString,
4878
+ referenceStoreId: __expectString,
4879
+ roleArn: __expectString,
4880
+ status: __expectString,
4881
+ });
4882
+ Object.assign(contents, doc);
5313
4883
  return contents;
5314
4884
  };
5315
4885
  const de_StartReferenceImportJobCommandError = async (output, context) => {
@@ -5342,10 +4912,9 @@ const de_StartReferenceImportJobCommandError = async (output, context) => {
5342
4912
  throw await de_ValidationExceptionRes(parsedOutput, context);
5343
4913
  default:
5344
4914
  const parsedBody = parsedOutput.body;
5345
- throwDefaultError({
4915
+ return throwDefaultError({
5346
4916
  output,
5347
4917
  parsedBody,
5348
- exceptionCtor: __BaseException,
5349
4918
  errorCode,
5350
4919
  });
5351
4920
  }
@@ -5358,18 +4927,13 @@ export const de_StartRunCommand = async (output, context) => {
5358
4927
  $metadata: deserializeMetadata(output),
5359
4928
  });
5360
4929
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
5361
- if (data.arn != null) {
5362
- contents.arn = __expectString(data.arn);
5363
- }
5364
- if (data.id != null) {
5365
- contents.id = __expectString(data.id);
5366
- }
5367
- if (data.status != null) {
5368
- contents.status = __expectString(data.status);
5369
- }
5370
- if (data.tags != null) {
5371
- contents.tags = de_TagMap(data.tags, context);
5372
- }
4930
+ const doc = take(data, {
4931
+ arn: __expectString,
4932
+ id: __expectString,
4933
+ status: __expectString,
4934
+ tags: _json,
4935
+ });
4936
+ Object.assign(contents, doc);
5373
4937
  return contents;
5374
4938
  };
5375
4939
  const de_StartRunCommandError = async (output, context) => {
@@ -5405,10 +4969,9 @@ const de_StartRunCommandError = async (output, context) => {
5405
4969
  throw await de_ValidationExceptionRes(parsedOutput, context);
5406
4970
  default:
5407
4971
  const parsedBody = parsedOutput.body;
5408
- throwDefaultError({
4972
+ return throwDefaultError({
5409
4973
  output,
5410
4974
  parsedBody,
5411
- exceptionCtor: __BaseException,
5412
4975
  errorCode,
5413
4976
  });
5414
4977
  }
@@ -5421,9 +4984,10 @@ export const de_StartVariantImportJobCommand = async (output, context) => {
5421
4984
  $metadata: deserializeMetadata(output),
5422
4985
  });
5423
4986
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
5424
- if (data.jobId != null) {
5425
- contents.jobId = __expectString(data.jobId);
5426
- }
4987
+ const doc = take(data, {
4988
+ jobId: __expectString,
4989
+ });
4990
+ Object.assign(contents, doc);
5427
4991
  return contents;
5428
4992
  };
5429
4993
  const de_StartVariantImportJobCommandError = async (output, context) => {
@@ -5453,10 +5017,9 @@ const de_StartVariantImportJobCommandError = async (output, context) => {
5453
5017
  throw await de_ValidationExceptionRes(parsedOutput, context);
5454
5018
  default:
5455
5019
  const parsedBody = parsedOutput.body;
5456
- throwDefaultError({
5020
+ return throwDefaultError({
5457
5021
  output,
5458
5022
  parsedBody,
5459
- exceptionCtor: __BaseException,
5460
5023
  errorCode,
5461
5024
  });
5462
5025
  }
@@ -5504,10 +5067,9 @@ const de_TagResourceCommandError = async (output, context) => {
5504
5067
  throw await de_ValidationExceptionRes(parsedOutput, context);
5505
5068
  default:
5506
5069
  const parsedBody = parsedOutput.body;
5507
- throwDefaultError({
5070
+ return throwDefaultError({
5508
5071
  output,
5509
5072
  parsedBody,
5510
- exceptionCtor: __BaseException,
5511
5073
  errorCode,
5512
5074
  });
5513
5075
  }
@@ -5555,10 +5117,9 @@ const de_UntagResourceCommandError = async (output, context) => {
5555
5117
  throw await de_ValidationExceptionRes(parsedOutput, context);
5556
5118
  default:
5557
5119
  const parsedBody = parsedOutput.body;
5558
- throwDefaultError({
5120
+ return throwDefaultError({
5559
5121
  output,
5560
5122
  parsedBody,
5561
- exceptionCtor: __BaseException,
5562
5123
  errorCode,
5563
5124
  });
5564
5125
  }
@@ -5571,33 +5132,18 @@ export const de_UpdateAnnotationStoreCommand = async (output, context) => {
5571
5132
  $metadata: deserializeMetadata(output),
5572
5133
  });
5573
5134
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
5574
- if (data.creationTime != null) {
5575
- contents.creationTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.creationTime));
5576
- }
5577
- if (data.description != null) {
5578
- contents.description = __expectString(data.description);
5579
- }
5580
- if (data.id != null) {
5581
- contents.id = __expectString(data.id);
5582
- }
5583
- if (data.name != null) {
5584
- contents.name = __expectString(data.name);
5585
- }
5586
- if (data.reference != null) {
5587
- contents.reference = de_ReferenceItem(__expectUnion(data.reference), context);
5588
- }
5589
- if (data.status != null) {
5590
- contents.status = __expectString(data.status);
5591
- }
5592
- if (data.storeFormat != null) {
5593
- contents.storeFormat = __expectString(data.storeFormat);
5594
- }
5595
- if (data.storeOptions != null) {
5596
- contents.storeOptions = de_StoreOptions(__expectUnion(data.storeOptions), context);
5597
- }
5598
- if (data.updateTime != null) {
5599
- contents.updateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.updateTime));
5600
- }
5135
+ const doc = take(data, {
5136
+ creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
5137
+ description: __expectString,
5138
+ id: __expectString,
5139
+ name: __expectString,
5140
+ reference: (_) => _json(__expectUnion(_)),
5141
+ status: __expectString,
5142
+ storeFormat: __expectString,
5143
+ storeOptions: (_) => _json(__expectUnion(_)),
5144
+ updateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
5145
+ });
5146
+ Object.assign(contents, doc);
5601
5147
  return contents;
5602
5148
  };
5603
5149
  const de_UpdateAnnotationStoreCommandError = async (output, context) => {
@@ -5624,10 +5170,9 @@ const de_UpdateAnnotationStoreCommandError = async (output, context) => {
5624
5170
  throw await de_ValidationExceptionRes(parsedOutput, context);
5625
5171
  default:
5626
5172
  const parsedBody = parsedOutput.body;
5627
- throwDefaultError({
5173
+ return throwDefaultError({
5628
5174
  output,
5629
5175
  parsedBody,
5630
- exceptionCtor: __BaseException,
5631
5176
  errorCode,
5632
5177
  });
5633
5178
  }
@@ -5675,10 +5220,9 @@ const de_UpdateRunGroupCommandError = async (output, context) => {
5675
5220
  throw await de_ValidationExceptionRes(parsedOutput, context);
5676
5221
  default:
5677
5222
  const parsedBody = parsedOutput.body;
5678
- throwDefaultError({
5223
+ return throwDefaultError({
5679
5224
  output,
5680
5225
  parsedBody,
5681
- exceptionCtor: __BaseException,
5682
5226
  errorCode,
5683
5227
  });
5684
5228
  }
@@ -5691,27 +5235,16 @@ export const de_UpdateVariantStoreCommand = async (output, context) => {
5691
5235
  $metadata: deserializeMetadata(output),
5692
5236
  });
5693
5237
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
5694
- if (data.creationTime != null) {
5695
- contents.creationTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.creationTime));
5696
- }
5697
- if (data.description != null) {
5698
- contents.description = __expectString(data.description);
5699
- }
5700
- if (data.id != null) {
5701
- contents.id = __expectString(data.id);
5702
- }
5703
- if (data.name != null) {
5704
- contents.name = __expectString(data.name);
5705
- }
5706
- if (data.reference != null) {
5707
- contents.reference = de_ReferenceItem(__expectUnion(data.reference), context);
5708
- }
5709
- if (data.status != null) {
5710
- contents.status = __expectString(data.status);
5711
- }
5712
- if (data.updateTime != null) {
5713
- contents.updateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.updateTime));
5714
- }
5238
+ const doc = take(data, {
5239
+ creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
5240
+ description: __expectString,
5241
+ id: __expectString,
5242
+ name: __expectString,
5243
+ reference: (_) => _json(__expectUnion(_)),
5244
+ status: __expectString,
5245
+ updateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
5246
+ });
5247
+ Object.assign(contents, doc);
5715
5248
  return contents;
5716
5249
  };
5717
5250
  const de_UpdateVariantStoreCommandError = async (output, context) => {
@@ -5738,10 +5271,9 @@ const de_UpdateVariantStoreCommandError = async (output, context) => {
5738
5271
  throw await de_ValidationExceptionRes(parsedOutput, context);
5739
5272
  default:
5740
5273
  const parsedBody = parsedOutput.body;
5741
- throwDefaultError({
5274
+ return throwDefaultError({
5742
5275
  output,
5743
5276
  parsedBody,
5744
- exceptionCtor: __BaseException,
5745
5277
  errorCode,
5746
5278
  });
5747
5279
  }
@@ -5789,21 +5321,21 @@ const de_UpdateWorkflowCommandError = async (output, context) => {
5789
5321
  throw await de_ValidationExceptionRes(parsedOutput, context);
5790
5322
  default:
5791
5323
  const parsedBody = parsedOutput.body;
5792
- throwDefaultError({
5324
+ return throwDefaultError({
5793
5325
  output,
5794
5326
  parsedBody,
5795
- exceptionCtor: __BaseException,
5796
5327
  errorCode,
5797
5328
  });
5798
5329
  }
5799
5330
  };
5800
- const map = __map;
5331
+ const throwDefaultError = withBaseException(__BaseException);
5801
5332
  const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
5802
5333
  const contents = map({});
5803
5334
  const data = parsedOutput.body;
5804
- if (data.message != null) {
5805
- contents.message = __expectString(data.message);
5806
- }
5335
+ const doc = take(data, {
5336
+ message: __expectString,
5337
+ });
5338
+ Object.assign(contents, doc);
5807
5339
  const exception = new AccessDeniedException({
5808
5340
  $metadata: deserializeMetadata(parsedOutput),
5809
5341
  ...contents,
@@ -5813,9 +5345,10 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
5813
5345
  const de_ConflictExceptionRes = async (parsedOutput, context) => {
5814
5346
  const contents = map({});
5815
5347
  const data = parsedOutput.body;
5816
- if (data.message != null) {
5817
- contents.message = __expectString(data.message);
5818
- }
5348
+ const doc = take(data, {
5349
+ message: __expectString,
5350
+ });
5351
+ Object.assign(contents, doc);
5819
5352
  const exception = new ConflictException({
5820
5353
  $metadata: deserializeMetadata(parsedOutput),
5821
5354
  ...contents,
@@ -5825,9 +5358,10 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
5825
5358
  const de_InternalServerExceptionRes = async (parsedOutput, context) => {
5826
5359
  const contents = map({});
5827
5360
  const data = parsedOutput.body;
5828
- if (data.message != null) {
5829
- contents.message = __expectString(data.message);
5830
- }
5361
+ const doc = take(data, {
5362
+ message: __expectString,
5363
+ });
5364
+ Object.assign(contents, doc);
5831
5365
  const exception = new InternalServerException({
5832
5366
  $metadata: deserializeMetadata(parsedOutput),
5833
5367
  ...contents,
@@ -5837,9 +5371,10 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
5837
5371
  const de_RangeNotSatisfiableExceptionRes = async (parsedOutput, context) => {
5838
5372
  const contents = map({});
5839
5373
  const data = parsedOutput.body;
5840
- if (data.message != null) {
5841
- contents.message = __expectString(data.message);
5842
- }
5374
+ const doc = take(data, {
5375
+ message: __expectString,
5376
+ });
5377
+ Object.assign(contents, doc);
5843
5378
  const exception = new RangeNotSatisfiableException({
5844
5379
  $metadata: deserializeMetadata(parsedOutput),
5845
5380
  ...contents,
@@ -5849,9 +5384,10 @@ const de_RangeNotSatisfiableExceptionRes = async (parsedOutput, context) => {
5849
5384
  const de_RequestTimeoutExceptionRes = async (parsedOutput, context) => {
5850
5385
  const contents = map({});
5851
5386
  const data = parsedOutput.body;
5852
- if (data.message != null) {
5853
- contents.message = __expectString(data.message);
5854
- }
5387
+ const doc = take(data, {
5388
+ message: __expectString,
5389
+ });
5390
+ Object.assign(contents, doc);
5855
5391
  const exception = new RequestTimeoutException({
5856
5392
  $metadata: deserializeMetadata(parsedOutput),
5857
5393
  ...contents,
@@ -5861,9 +5397,10 @@ const de_RequestTimeoutExceptionRes = async (parsedOutput, context) => {
5861
5397
  const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
5862
5398
  const contents = map({});
5863
5399
  const data = parsedOutput.body;
5864
- if (data.message != null) {
5865
- contents.message = __expectString(data.message);
5866
- }
5400
+ const doc = take(data, {
5401
+ message: __expectString,
5402
+ });
5403
+ Object.assign(contents, doc);
5867
5404
  const exception = new ResourceNotFoundException({
5868
5405
  $metadata: deserializeMetadata(parsedOutput),
5869
5406
  ...contents,
@@ -5873,9 +5410,10 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
5873
5410
  const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
5874
5411
  const contents = map({});
5875
5412
  const data = parsedOutput.body;
5876
- if (data.message != null) {
5877
- contents.message = __expectString(data.message);
5878
- }
5413
+ const doc = take(data, {
5414
+ message: __expectString,
5415
+ });
5416
+ Object.assign(contents, doc);
5879
5417
  const exception = new ServiceQuotaExceededException({
5880
5418
  $metadata: deserializeMetadata(parsedOutput),
5881
5419
  ...contents,
@@ -5885,9 +5423,10 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
5885
5423
  const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
5886
5424
  const contents = map({});
5887
5425
  const data = parsedOutput.body;
5888
- if (data.message != null) {
5889
- contents.message = __expectString(data.message);
5890
- }
5426
+ const doc = take(data, {
5427
+ message: __expectString,
5428
+ });
5429
+ Object.assign(contents, doc);
5891
5430
  const exception = new ThrottlingException({
5892
5431
  $metadata: deserializeMetadata(parsedOutput),
5893
5432
  ...contents,
@@ -5897,9 +5436,10 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
5897
5436
  const de_ValidationExceptionRes = async (parsedOutput, context) => {
5898
5437
  const contents = map({});
5899
5438
  const data = parsedOutput.body;
5900
- if (data.message != null) {
5901
- contents.message = __expectString(data.message);
5902
- }
5439
+ const doc = take(data, {
5440
+ message: __expectString,
5441
+ });
5442
+ Object.assign(contents, doc);
5903
5443
  const exception = new ValidationException({
5904
5444
  $metadata: deserializeMetadata(parsedOutput),
5905
5445
  ...contents,
@@ -5907,687 +5447,241 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
5907
5447
  return __decorateServiceException(exception, parsedOutput.body);
5908
5448
  };
5909
5449
  const se_ActivateReadSetFilter = (input, context) => {
5910
- return {
5911
- ...(input.createdAfter != null && { createdAfter: input.createdAfter.toISOString().split(".")[0] + "Z" }),
5912
- ...(input.createdBefore != null && { createdBefore: input.createdBefore.toISOString().split(".")[0] + "Z" }),
5913
- ...(input.status != null && { status: input.status }),
5914
- };
5915
- };
5916
- const se_AnnotationImportItemSource = (input, context) => {
5917
- return {
5918
- ...(input.source != null && { source: input.source }),
5919
- };
5920
- };
5921
- const se_AnnotationImportItemSources = (input, context) => {
5922
- return input
5923
- .filter((e) => e != null)
5924
- .map((entry) => {
5925
- return se_AnnotationImportItemSource(entry, context);
5450
+ return take(input, {
5451
+ createdAfter: (_) => _.toISOString().split(".")[0] + "Z",
5452
+ createdBefore: (_) => _.toISOString().split(".")[0] + "Z",
5453
+ status: [],
5926
5454
  });
5927
5455
  };
5928
- const se_ExportReadSet = (input, context) => {
5929
- return {
5930
- ...(input.readSetId != null && { readSetId: input.readSetId }),
5931
- };
5932
- };
5933
5456
  const se_ExportReadSetFilter = (input, context) => {
5934
- return {
5935
- ...(input.createdAfter != null && { createdAfter: input.createdAfter.toISOString().split(".")[0] + "Z" }),
5936
- ...(input.createdBefore != null && { createdBefore: input.createdBefore.toISOString().split(".")[0] + "Z" }),
5937
- ...(input.status != null && { status: input.status }),
5938
- };
5939
- };
5940
- const se_ExportReadSetList = (input, context) => {
5941
- return input
5942
- .filter((e) => e != null)
5943
- .map((entry) => {
5944
- return se_ExportReadSet(entry, context);
5945
- });
5946
- };
5947
- const se_FormatOptions = (input, context) => {
5948
- return FormatOptions.visit(input, {
5949
- tsvOptions: (value) => ({ tsvOptions: se_TsvOptions(value, context) }),
5950
- vcfOptions: (value) => ({ vcfOptions: se_VcfOptions(value, context) }),
5951
- _: (name, value) => ({ name: value }),
5952
- });
5953
- };
5954
- const se_FormatToHeader = (input, context) => {
5955
- return Object.entries(input).reduce((acc, [key, value]) => {
5956
- if (value === null) {
5957
- return acc;
5958
- }
5959
- acc[key] = value;
5960
- return acc;
5961
- }, {});
5962
- };
5963
- const se_IdList = (input, context) => {
5964
- return input
5965
- .filter((e) => e != null)
5966
- .map((entry) => {
5967
- return entry;
5457
+ return take(input, {
5458
+ createdAfter: (_) => _.toISOString().split(".")[0] + "Z",
5459
+ createdBefore: (_) => _.toISOString().split(".")[0] + "Z",
5460
+ status: [],
5968
5461
  });
5969
5462
  };
5970
5463
  const se_ImportReadSetFilter = (input, context) => {
5971
- return {
5972
- ...(input.createdAfter != null && { createdAfter: input.createdAfter.toISOString().split(".")[0] + "Z" }),
5973
- ...(input.createdBefore != null && { createdBefore: input.createdBefore.toISOString().split(".")[0] + "Z" }),
5974
- ...(input.status != null && { status: input.status }),
5975
- };
5464
+ return take(input, {
5465
+ createdAfter: (_) => _.toISOString().split(".")[0] + "Z",
5466
+ createdBefore: (_) => _.toISOString().split(".")[0] + "Z",
5467
+ status: [],
5468
+ });
5976
5469
  };
5977
5470
  const se_ImportReferenceFilter = (input, context) => {
5978
- return {
5979
- ...(input.createdAfter != null && { createdAfter: input.createdAfter.toISOString().split(".")[0] + "Z" }),
5980
- ...(input.createdBefore != null && { createdBefore: input.createdBefore.toISOString().split(".")[0] + "Z" }),
5981
- ...(input.status != null && { status: input.status }),
5982
- };
5983
- };
5984
- const se_ListAnnotationImportJobsFilter = (input, context) => {
5985
- return {
5986
- ...(input.status != null && { status: input.status }),
5987
- ...(input.storeName != null && { storeName: input.storeName }),
5988
- };
5989
- };
5990
- const se_ListAnnotationStoresFilter = (input, context) => {
5991
- return {
5992
- ...(input.status != null && { status: input.status }),
5993
- };
5994
- };
5995
- const se_ListVariantImportJobsFilter = (input, context) => {
5996
- return {
5997
- ...(input.status != null && { status: input.status }),
5998
- ...(input.storeName != null && { storeName: input.storeName }),
5999
- };
6000
- };
6001
- const se_ListVariantStoresFilter = (input, context) => {
6002
- return {
6003
- ...(input.status != null && { status: input.status }),
6004
- };
6005
- };
6006
- const se_ReadOptions = (input, context) => {
6007
- return {
6008
- ...(input.comment != null && { comment: input.comment }),
6009
- ...(input.encoding != null && { encoding: input.encoding }),
6010
- ...(input.escape != null && { escape: input.escape }),
6011
- ...(input.escapeQuotes != null && { escapeQuotes: input.escapeQuotes }),
6012
- ...(input.header != null && { header: input.header }),
6013
- ...(input.lineSep != null && { lineSep: input.lineSep }),
6014
- ...(input.quote != null && { quote: input.quote }),
6015
- ...(input.quoteAll != null && { quoteAll: input.quoteAll }),
6016
- ...(input.sep != null && { sep: input.sep }),
6017
- };
5471
+ return take(input, {
5472
+ createdAfter: (_) => _.toISOString().split(".")[0] + "Z",
5473
+ createdBefore: (_) => _.toISOString().split(".")[0] + "Z",
5474
+ status: [],
5475
+ });
6018
5476
  };
6019
5477
  const se_ReadSetFilter = (input, context) => {
6020
- return {
6021
- ...(input.createdAfter != null && { createdAfter: input.createdAfter.toISOString().split(".")[0] + "Z" }),
6022
- ...(input.createdBefore != null && { createdBefore: input.createdBefore.toISOString().split(".")[0] + "Z" }),
6023
- ...(input.name != null && { name: input.name }),
6024
- ...(input.referenceArn != null && { referenceArn: input.referenceArn }),
6025
- ...(input.status != null && { status: input.status }),
6026
- };
6027
- };
6028
- const se_ReadSetIdList = (input, context) => {
6029
- return input
6030
- .filter((e) => e != null)
6031
- .map((entry) => {
6032
- return entry;
5478
+ return take(input, {
5479
+ createdAfter: (_) => _.toISOString().split(".")[0] + "Z",
5480
+ createdBefore: (_) => _.toISOString().split(".")[0] + "Z",
5481
+ name: [],
5482
+ referenceArn: [],
5483
+ status: [],
6033
5484
  });
6034
5485
  };
6035
5486
  const se_ReferenceFilter = (input, context) => {
6036
- return {
6037
- ...(input.createdAfter != null && { createdAfter: input.createdAfter.toISOString().split(".")[0] + "Z" }),
6038
- ...(input.createdBefore != null && { createdBefore: input.createdBefore.toISOString().split(".")[0] + "Z" }),
6039
- ...(input.md5 != null && { md5: input.md5 }),
6040
- ...(input.name != null && { name: input.name }),
6041
- };
6042
- };
6043
- const se_ReferenceItem = (input, context) => {
6044
- return ReferenceItem.visit(input, {
6045
- referenceArn: (value) => ({ referenceArn: value }),
6046
- _: (name, value) => ({ name: value }),
5487
+ return take(input, {
5488
+ createdAfter: (_) => _.toISOString().split(".")[0] + "Z",
5489
+ createdBefore: (_) => _.toISOString().split(".")[0] + "Z",
5490
+ md5: [],
5491
+ name: [],
6047
5492
  });
6048
5493
  };
6049
5494
  const se_ReferenceStoreFilter = (input, context) => {
6050
- return {
6051
- ...(input.createdAfter != null && { createdAfter: input.createdAfter.toISOString().split(".")[0] + "Z" }),
6052
- ...(input.createdBefore != null && { createdBefore: input.createdBefore.toISOString().split(".")[0] + "Z" }),
6053
- ...(input.name != null && { name: input.name }),
6054
- };
5495
+ return take(input, {
5496
+ createdAfter: (_) => _.toISOString().split(".")[0] + "Z",
5497
+ createdBefore: (_) => _.toISOString().split(".")[0] + "Z",
5498
+ name: [],
5499
+ });
6055
5500
  };
6056
5501
  const se_RunParameters = (input, context) => {
6057
5502
  return input;
6058
5503
  };
6059
- const se_Schema = (input, context) => {
6060
- return input
6061
- .filter((e) => e != null)
6062
- .map((entry) => {
6063
- return se_SchemaItem(entry, context);
6064
- });
6065
- };
6066
- const se_SchemaItem = (input, context) => {
6067
- return Object.entries(input).reduce((acc, [key, value]) => {
6068
- if (value === null) {
6069
- return acc;
6070
- }
6071
- acc[key] = value;
6072
- return acc;
6073
- }, {});
6074
- };
6075
5504
  const se_SequenceStoreFilter = (input, context) => {
6076
- return {
6077
- ...(input.createdAfter != null && { createdAfter: input.createdAfter.toISOString().split(".")[0] + "Z" }),
6078
- ...(input.createdBefore != null && { createdBefore: input.createdBefore.toISOString().split(".")[0] + "Z" }),
6079
- ...(input.name != null && { name: input.name }),
6080
- };
6081
- };
6082
- const se_SourceFiles = (input, context) => {
6083
- return {
6084
- ...(input.source1 != null && { source1: input.source1 }),
6085
- ...(input.source2 != null && { source2: input.source2 }),
6086
- };
6087
- };
6088
- const se_SseConfig = (input, context) => {
6089
- return {
6090
- ...(input.keyArn != null && { keyArn: input.keyArn }),
6091
- ...(input.type != null && { type: input.type }),
6092
- };
6093
- };
6094
- const se_StartReadSetActivationJobSourceItem = (input, context) => {
6095
- return {
6096
- ...(input.readSetId != null && { readSetId: input.readSetId }),
6097
- };
6098
- };
6099
- const se_StartReadSetActivationJobSourceList = (input, context) => {
6100
- return input
6101
- .filter((e) => e != null)
6102
- .map((entry) => {
6103
- return se_StartReadSetActivationJobSourceItem(entry, context);
6104
- });
6105
- };
6106
- const se_StartReadSetImportJobSourceItem = (input, context) => {
6107
- return {
6108
- ...(input.description != null && { description: input.description }),
6109
- ...(input.generatedFrom != null && { generatedFrom: input.generatedFrom }),
6110
- ...(input.name != null && { name: input.name }),
6111
- ...(input.referenceArn != null && { referenceArn: input.referenceArn }),
6112
- ...(input.sampleId != null && { sampleId: input.sampleId }),
6113
- ...(input.sourceFileType != null && { sourceFileType: input.sourceFileType }),
6114
- ...(input.sourceFiles != null && { sourceFiles: se_SourceFiles(input.sourceFiles, context) }),
6115
- ...(input.subjectId != null && { subjectId: input.subjectId }),
6116
- ...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
6117
- };
6118
- };
6119
- const se_StartReadSetImportJobSourceList = (input, context) => {
6120
- return input
6121
- .filter((e) => e != null)
6122
- .map((entry) => {
6123
- return se_StartReadSetImportJobSourceItem(entry, context);
6124
- });
6125
- };
6126
- const se_StartReferenceImportJobSourceItem = (input, context) => {
6127
- return {
6128
- ...(input.description != null && { description: input.description }),
6129
- ...(input.name != null && { name: input.name }),
6130
- ...(input.sourceFile != null && { sourceFile: input.sourceFile }),
6131
- ...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
6132
- };
6133
- };
6134
- const se_StartReferenceImportJobSourceList = (input, context) => {
6135
- return input
6136
- .filter((e) => e != null)
6137
- .map((entry) => {
6138
- return se_StartReferenceImportJobSourceItem(entry, context);
6139
- });
6140
- };
6141
- const se_StoreOptions = (input, context) => {
6142
- return StoreOptions.visit(input, {
6143
- tsvStoreOptions: (value) => ({ tsvStoreOptions: se_TsvStoreOptions(value, context) }),
6144
- _: (name, value) => ({ name: value }),
6145
- });
6146
- };
6147
- const se_TagMap = (input, context) => {
6148
- return Object.entries(input).reduce((acc, [key, value]) => {
6149
- if (value === null) {
6150
- return acc;
6151
- }
6152
- acc[key] = value;
6153
- return acc;
6154
- }, {});
6155
- };
6156
- const se_TsvOptions = (input, context) => {
6157
- return {
6158
- ...(input.readOptions != null && { readOptions: se_ReadOptions(input.readOptions, context) }),
6159
- };
6160
- };
6161
- const se_TsvStoreOptions = (input, context) => {
6162
- return {
6163
- ...(input.annotationType != null && { annotationType: input.annotationType }),
6164
- ...(input.formatToHeader != null && { formatToHeader: se_FormatToHeader(input.formatToHeader, context) }),
6165
- ...(input.schema != null && { schema: se_Schema(input.schema, context) }),
6166
- };
6167
- };
6168
- const se_VariantImportItemSource = (input, context) => {
6169
- return {
6170
- ...(input.source != null && { source: input.source }),
6171
- };
6172
- };
6173
- const se_VariantImportItemSources = (input, context) => {
6174
- return input
6175
- .filter((e) => e != null)
6176
- .map((entry) => {
6177
- return se_VariantImportItemSource(entry, context);
5505
+ return take(input, {
5506
+ createdAfter: (_) => _.toISOString().split(".")[0] + "Z",
5507
+ createdBefore: (_) => _.toISOString().split(".")[0] + "Z",
5508
+ name: [],
6178
5509
  });
6179
5510
  };
6180
- const se_VcfOptions = (input, context) => {
6181
- return {
6182
- ...(input.ignoreFilterField != null && { ignoreFilterField: input.ignoreFilterField }),
6183
- ...(input.ignoreQualField != null && { ignoreQualField: input.ignoreQualField }),
6184
- };
6185
- };
6186
- const se_WorkflowParameter = (input, context) => {
6187
- return {
6188
- ...(input.description != null && { description: input.description }),
6189
- ...(input.optional != null && { optional: input.optional }),
6190
- };
6191
- };
6192
- const se_WorkflowParameterTemplate = (input, context) => {
6193
- return Object.entries(input).reduce((acc, [key, value]) => {
6194
- if (value === null) {
6195
- return acc;
6196
- }
6197
- acc[key] = se_WorkflowParameter(value, context);
6198
- return acc;
6199
- }, {});
6200
- };
6201
5511
  const de_ActivateReadSetJobItem = (output, context) => {
6202
- return {
6203
- completionTime: output.completionTime != null
6204
- ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.completionTime))
6205
- : undefined,
6206
- creationTime: output.creationTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.creationTime)) : undefined,
6207
- id: __expectString(output.id),
6208
- sequenceStoreId: __expectString(output.sequenceStoreId),
6209
- status: __expectString(output.status),
6210
- };
5512
+ return take(output, {
5513
+ completionTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
5514
+ creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
5515
+ id: __expectString,
5516
+ sequenceStoreId: __expectString,
5517
+ status: __expectString,
5518
+ });
6211
5519
  };
6212
5520
  const de_ActivateReadSetJobList = (output, context) => {
6213
5521
  const retVal = (output || [])
6214
5522
  .filter((e) => e != null)
6215
5523
  .map((entry) => {
6216
- if (entry === null) {
6217
- return null;
6218
- }
6219
5524
  return de_ActivateReadSetJobItem(entry, context);
6220
5525
  });
6221
5526
  return retVal;
6222
5527
  };
6223
- const de_ActivateReadSetSourceItem = (output, context) => {
6224
- return {
6225
- readSetId: __expectString(output.readSetId),
6226
- status: __expectString(output.status),
6227
- statusMessage: __expectString(output.statusMessage),
6228
- };
6229
- };
6230
- const de_ActivateReadSetSourceList = (output, context) => {
6231
- const retVal = (output || [])
6232
- .filter((e) => e != null)
6233
- .map((entry) => {
6234
- if (entry === null) {
6235
- return null;
6236
- }
6237
- return de_ActivateReadSetSourceItem(entry, context);
6238
- });
6239
- return retVal;
6240
- };
6241
- const de_AnnotationImportItemDetail = (output, context) => {
6242
- return {
6243
- jobStatus: __expectString(output.jobStatus),
6244
- source: __expectString(output.source),
6245
- };
6246
- };
6247
- const de_AnnotationImportItemDetails = (output, context) => {
6248
- const retVal = (output || [])
6249
- .filter((e) => e != null)
6250
- .map((entry) => {
6251
- if (entry === null) {
6252
- return null;
6253
- }
6254
- return de_AnnotationImportItemDetail(entry, context);
6255
- });
6256
- return retVal;
6257
- };
6258
5528
  const de_AnnotationImportJobItem = (output, context) => {
6259
- return {
6260
- completionTime: output.completionTime != null
6261
- ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.completionTime))
6262
- : undefined,
6263
- creationTime: output.creationTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.creationTime)) : undefined,
6264
- destinationName: __expectString(output.destinationName),
6265
- id: __expectString(output.id),
6266
- roleArn: __expectString(output.roleArn),
6267
- runLeftNormalization: __expectBoolean(output.runLeftNormalization),
6268
- status: __expectString(output.status),
6269
- updateTime: output.updateTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.updateTime)) : undefined,
6270
- };
5529
+ return take(output, {
5530
+ completionTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
5531
+ creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
5532
+ destinationName: __expectString,
5533
+ id: __expectString,
5534
+ roleArn: __expectString,
5535
+ runLeftNormalization: __expectBoolean,
5536
+ status: __expectString,
5537
+ updateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
5538
+ });
6271
5539
  };
6272
5540
  const de_AnnotationImportJobItems = (output, context) => {
6273
5541
  const retVal = (output || [])
6274
5542
  .filter((e) => e != null)
6275
5543
  .map((entry) => {
6276
- if (entry === null) {
6277
- return null;
6278
- }
6279
5544
  return de_AnnotationImportJobItem(entry, context);
6280
5545
  });
6281
5546
  return retVal;
6282
5547
  };
6283
5548
  const de_AnnotationStoreItem = (output, context) => {
6284
- return {
6285
- creationTime: output.creationTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.creationTime)) : undefined,
6286
- description: __expectString(output.description),
6287
- id: __expectString(output.id),
6288
- name: __expectString(output.name),
6289
- reference: output.reference != null ? de_ReferenceItem(__expectUnion(output.reference), context) : undefined,
6290
- sseConfig: output.sseConfig != null ? de_SseConfig(output.sseConfig, context) : undefined,
6291
- status: __expectString(output.status),
6292
- statusMessage: __expectString(output.statusMessage),
6293
- storeArn: __expectString(output.storeArn),
6294
- storeFormat: __expectString(output.storeFormat),
6295
- storeSizeBytes: __expectLong(output.storeSizeBytes),
6296
- updateTime: output.updateTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.updateTime)) : undefined,
6297
- };
5549
+ return take(output, {
5550
+ creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
5551
+ description: __expectString,
5552
+ id: __expectString,
5553
+ name: __expectString,
5554
+ reference: (_) => _json(__expectUnion(_)),
5555
+ sseConfig: _json,
5556
+ status: __expectString,
5557
+ statusMessage: __expectString,
5558
+ storeArn: __expectString,
5559
+ storeFormat: __expectString,
5560
+ storeSizeBytes: __expectLong,
5561
+ updateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
5562
+ });
6298
5563
  };
6299
5564
  const de_AnnotationStoreItems = (output, context) => {
6300
5565
  const retVal = (output || [])
6301
5566
  .filter((e) => e != null)
6302
5567
  .map((entry) => {
6303
- if (entry === null) {
6304
- return null;
6305
- }
6306
5568
  return de_AnnotationStoreItem(entry, context);
6307
5569
  });
6308
5570
  return retVal;
6309
5571
  };
6310
- const de_ExportReadSetDetail = (output, context) => {
6311
- return {
6312
- id: __expectString(output.id),
6313
- status: __expectString(output.status),
6314
- statusMessage: __expectString(output.statusMessage),
6315
- };
6316
- };
6317
- const de_ExportReadSetDetailList = (output, context) => {
6318
- const retVal = (output || [])
6319
- .filter((e) => e != null)
6320
- .map((entry) => {
6321
- if (entry === null) {
6322
- return null;
6323
- }
6324
- return de_ExportReadSetDetail(entry, context);
6325
- });
6326
- return retVal;
6327
- };
6328
5572
  const de_ExportReadSetJobDetail = (output, context) => {
6329
- return {
6330
- completionTime: output.completionTime != null
6331
- ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.completionTime))
6332
- : undefined,
6333
- creationTime: output.creationTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.creationTime)) : undefined,
6334
- destination: __expectString(output.destination),
6335
- id: __expectString(output.id),
6336
- sequenceStoreId: __expectString(output.sequenceStoreId),
6337
- status: __expectString(output.status),
6338
- };
5573
+ return take(output, {
5574
+ completionTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
5575
+ creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
5576
+ destination: __expectString,
5577
+ id: __expectString,
5578
+ sequenceStoreId: __expectString,
5579
+ status: __expectString,
5580
+ });
6339
5581
  };
6340
5582
  const de_ExportReadSetJobDetailList = (output, context) => {
6341
5583
  const retVal = (output || [])
6342
5584
  .filter((e) => e != null)
6343
5585
  .map((entry) => {
6344
- if (entry === null) {
6345
- return null;
6346
- }
6347
5586
  return de_ExportReadSetJobDetail(entry, context);
6348
5587
  });
6349
5588
  return retVal;
6350
5589
  };
6351
- const de_FileInformation = (output, context) => {
6352
- return {
6353
- contentLength: __expectLong(output.contentLength),
6354
- partSize: __expectLong(output.partSize),
6355
- totalParts: __expectInt32(output.totalParts),
6356
- };
6357
- };
6358
- const de_FormatOptions = (output, context) => {
6359
- if (output.tsvOptions != null) {
6360
- return {
6361
- tsvOptions: de_TsvOptions(output.tsvOptions, context),
6362
- };
6363
- }
6364
- if (output.vcfOptions != null) {
6365
- return {
6366
- vcfOptions: de_VcfOptions(output.vcfOptions, context),
6367
- };
6368
- }
6369
- return { $unknown: Object.entries(output)[0] };
6370
- };
6371
- const de_FormatToHeader = (output, context) => {
6372
- return Object.entries(output).reduce((acc, [key, value]) => {
6373
- if (value === null) {
6374
- return acc;
6375
- }
6376
- acc[key] = __expectString(value);
6377
- return acc;
6378
- }, {});
6379
- };
6380
5590
  const de_ImportReadSetJobItem = (output, context) => {
6381
- return {
6382
- completionTime: output.completionTime != null
6383
- ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.completionTime))
6384
- : undefined,
6385
- creationTime: output.creationTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.creationTime)) : undefined,
6386
- id: __expectString(output.id),
6387
- roleArn: __expectString(output.roleArn),
6388
- sequenceStoreId: __expectString(output.sequenceStoreId),
6389
- status: __expectString(output.status),
6390
- };
5591
+ return take(output, {
5592
+ completionTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
5593
+ creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
5594
+ id: __expectString,
5595
+ roleArn: __expectString,
5596
+ sequenceStoreId: __expectString,
5597
+ status: __expectString,
5598
+ });
6391
5599
  };
6392
5600
  const de_ImportReadSetJobList = (output, context) => {
6393
5601
  const retVal = (output || [])
6394
5602
  .filter((e) => e != null)
6395
5603
  .map((entry) => {
6396
- if (entry === null) {
6397
- return null;
6398
- }
6399
5604
  return de_ImportReadSetJobItem(entry, context);
6400
5605
  });
6401
5606
  return retVal;
6402
5607
  };
6403
- const de_ImportReadSetSourceItem = (output, context) => {
6404
- return {
6405
- description: __expectString(output.description),
6406
- generatedFrom: __expectString(output.generatedFrom),
6407
- name: __expectString(output.name),
6408
- referenceArn: __expectString(output.referenceArn),
6409
- sampleId: __expectString(output.sampleId),
6410
- sourceFileType: __expectString(output.sourceFileType),
6411
- sourceFiles: output.sourceFiles != null ? de_SourceFiles(output.sourceFiles, context) : undefined,
6412
- status: __expectString(output.status),
6413
- statusMessage: __expectString(output.statusMessage),
6414
- subjectId: __expectString(output.subjectId),
6415
- tags: output.tags != null ? de_TagMap(output.tags, context) : undefined,
6416
- };
6417
- };
6418
- const de_ImportReadSetSourceList = (output, context) => {
6419
- const retVal = (output || [])
6420
- .filter((e) => e != null)
6421
- .map((entry) => {
6422
- if (entry === null) {
6423
- return null;
6424
- }
6425
- return de_ImportReadSetSourceItem(entry, context);
6426
- });
6427
- return retVal;
6428
- };
6429
5608
  const de_ImportReferenceJobItem = (output, context) => {
6430
- return {
6431
- completionTime: output.completionTime != null
6432
- ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.completionTime))
6433
- : undefined,
6434
- creationTime: output.creationTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.creationTime)) : undefined,
6435
- id: __expectString(output.id),
6436
- referenceStoreId: __expectString(output.referenceStoreId),
6437
- roleArn: __expectString(output.roleArn),
6438
- status: __expectString(output.status),
6439
- };
5609
+ return take(output, {
5610
+ completionTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
5611
+ creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
5612
+ id: __expectString,
5613
+ referenceStoreId: __expectString,
5614
+ roleArn: __expectString,
5615
+ status: __expectString,
5616
+ });
6440
5617
  };
6441
5618
  const de_ImportReferenceJobList = (output, context) => {
6442
5619
  const retVal = (output || [])
6443
5620
  .filter((e) => e != null)
6444
5621
  .map((entry) => {
6445
- if (entry === null) {
6446
- return null;
6447
- }
6448
5622
  return de_ImportReferenceJobItem(entry, context);
6449
5623
  });
6450
5624
  return retVal;
6451
5625
  };
6452
- const de_ImportReferenceSourceItem = (output, context) => {
6453
- return {
6454
- description: __expectString(output.description),
6455
- name: __expectString(output.name),
6456
- sourceFile: __expectString(output.sourceFile),
6457
- status: __expectString(output.status),
6458
- statusMessage: __expectString(output.statusMessage),
6459
- tags: output.tags != null ? de_TagMap(output.tags, context) : undefined,
6460
- };
6461
- };
6462
- const de_ImportReferenceSourceList = (output, context) => {
6463
- const retVal = (output || [])
6464
- .filter((e) => e != null)
6465
- .map((entry) => {
6466
- if (entry === null) {
6467
- return null;
6468
- }
6469
- return de_ImportReferenceSourceItem(entry, context);
6470
- });
6471
- return retVal;
6472
- };
6473
- const de_ReadOptions = (output, context) => {
6474
- return {
6475
- comment: __expectString(output.comment),
6476
- encoding: __expectString(output.encoding),
6477
- escape: __expectString(output.escape),
6478
- escapeQuotes: __expectBoolean(output.escapeQuotes),
6479
- header: __expectBoolean(output.header),
6480
- lineSep: __expectString(output.lineSep),
6481
- quote: __expectString(output.quote),
6482
- quoteAll: __expectBoolean(output.quoteAll),
6483
- sep: __expectString(output.sep),
6484
- };
6485
- };
6486
- const de_ReadSetBatchError = (output, context) => {
6487
- return {
6488
- code: __expectString(output.code),
6489
- id: __expectString(output.id),
6490
- message: __expectString(output.message),
6491
- };
6492
- };
6493
- const de_ReadSetBatchErrorList = (output, context) => {
6494
- const retVal = (output || [])
6495
- .filter((e) => e != null)
6496
- .map((entry) => {
6497
- if (entry === null) {
6498
- return null;
6499
- }
6500
- return de_ReadSetBatchError(entry, context);
6501
- });
6502
- return retVal;
6503
- };
6504
- const de_ReadSetFiles = (output, context) => {
6505
- return {
6506
- index: output.index != null ? de_FileInformation(output.index, context) : undefined,
6507
- source1: output.source1 != null ? de_FileInformation(output.source1, context) : undefined,
6508
- source2: output.source2 != null ? de_FileInformation(output.source2, context) : undefined,
6509
- };
6510
- };
6511
5626
  const de_ReadSetList = (output, context) => {
6512
5627
  const retVal = (output || [])
6513
5628
  .filter((e) => e != null)
6514
5629
  .map((entry) => {
6515
- if (entry === null) {
6516
- return null;
6517
- }
6518
5630
  return de_ReadSetListItem(entry, context);
6519
5631
  });
6520
5632
  return retVal;
6521
5633
  };
6522
5634
  const de_ReadSetListItem = (output, context) => {
6523
- return {
6524
- arn: __expectString(output.arn),
6525
- creationTime: output.creationTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.creationTime)) : undefined,
6526
- description: __expectString(output.description),
6527
- fileType: __expectString(output.fileType),
6528
- id: __expectString(output.id),
6529
- name: __expectString(output.name),
6530
- referenceArn: __expectString(output.referenceArn),
6531
- sampleId: __expectString(output.sampleId),
6532
- sequenceInformation: output.sequenceInformation != null ? de_SequenceInformation(output.sequenceInformation, context) : undefined,
6533
- sequenceStoreId: __expectString(output.sequenceStoreId),
6534
- status: __expectString(output.status),
6535
- subjectId: __expectString(output.subjectId),
6536
- };
6537
- };
6538
- const de_ReferenceFiles = (output, context) => {
6539
- return {
6540
- index: output.index != null ? de_FileInformation(output.index, context) : undefined,
6541
- source: output.source != null ? de_FileInformation(output.source, context) : undefined,
6542
- };
6543
- };
6544
- const de_ReferenceItem = (output, context) => {
6545
- if (__expectString(output.referenceArn) !== undefined) {
6546
- return { referenceArn: __expectString(output.referenceArn) };
6547
- }
6548
- return { $unknown: Object.entries(output)[0] };
5635
+ return take(output, {
5636
+ arn: __expectString,
5637
+ creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
5638
+ description: __expectString,
5639
+ fileType: __expectString,
5640
+ id: __expectString,
5641
+ name: __expectString,
5642
+ referenceArn: __expectString,
5643
+ sampleId: __expectString,
5644
+ sequenceInformation: _json,
5645
+ sequenceStoreId: __expectString,
5646
+ status: __expectString,
5647
+ subjectId: __expectString,
5648
+ });
6549
5649
  };
6550
5650
  const de_ReferenceList = (output, context) => {
6551
5651
  const retVal = (output || [])
6552
5652
  .filter((e) => e != null)
6553
5653
  .map((entry) => {
6554
- if (entry === null) {
6555
- return null;
6556
- }
6557
5654
  return de_ReferenceListItem(entry, context);
6558
5655
  });
6559
5656
  return retVal;
6560
5657
  };
6561
5658
  const de_ReferenceListItem = (output, context) => {
6562
- return {
6563
- arn: __expectString(output.arn),
6564
- creationTime: output.creationTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.creationTime)) : undefined,
6565
- description: __expectString(output.description),
6566
- id: __expectString(output.id),
6567
- md5: __expectString(output.md5),
6568
- name: __expectString(output.name),
6569
- referenceStoreId: __expectString(output.referenceStoreId),
6570
- status: __expectString(output.status),
6571
- updateTime: output.updateTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.updateTime)) : undefined,
6572
- };
5659
+ return take(output, {
5660
+ arn: __expectString,
5661
+ creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
5662
+ description: __expectString,
5663
+ id: __expectString,
5664
+ md5: __expectString,
5665
+ name: __expectString,
5666
+ referenceStoreId: __expectString,
5667
+ status: __expectString,
5668
+ updateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
5669
+ });
6573
5670
  };
6574
5671
  const de_ReferenceStoreDetail = (output, context) => {
6575
- return {
6576
- arn: __expectString(output.arn),
6577
- creationTime: output.creationTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.creationTime)) : undefined,
6578
- description: __expectString(output.description),
6579
- id: __expectString(output.id),
6580
- name: __expectString(output.name),
6581
- sseConfig: output.sseConfig != null ? de_SseConfig(output.sseConfig, context) : undefined,
6582
- };
5672
+ return take(output, {
5673
+ arn: __expectString,
5674
+ creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
5675
+ description: __expectString,
5676
+ id: __expectString,
5677
+ name: __expectString,
5678
+ sseConfig: _json,
5679
+ });
6583
5680
  };
6584
5681
  const de_ReferenceStoreDetailList = (output, context) => {
6585
5682
  const retVal = (output || [])
6586
5683
  .filter((e) => e != null)
6587
5684
  .map((entry) => {
6588
- if (entry === null) {
6589
- return null;
6590
- }
6591
5685
  return de_ReferenceStoreDetail(entry, context);
6592
5686
  });
6593
5687
  return retVal;
@@ -6596,285 +5690,145 @@ const de_RunGroupList = (output, context) => {
6596
5690
  const retVal = (output || [])
6597
5691
  .filter((e) => e != null)
6598
5692
  .map((entry) => {
6599
- if (entry === null) {
6600
- return null;
6601
- }
6602
5693
  return de_RunGroupListItem(entry, context);
6603
5694
  });
6604
5695
  return retVal;
6605
5696
  };
6606
5697
  const de_RunGroupListItem = (output, context) => {
6607
- return {
6608
- arn: __expectString(output.arn),
6609
- creationTime: output.creationTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.creationTime)) : undefined,
6610
- id: __expectString(output.id),
6611
- maxCpus: __expectInt32(output.maxCpus),
6612
- maxDuration: __expectInt32(output.maxDuration),
6613
- maxRuns: __expectInt32(output.maxRuns),
6614
- name: __expectString(output.name),
6615
- };
5698
+ return take(output, {
5699
+ arn: __expectString,
5700
+ creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
5701
+ id: __expectString,
5702
+ maxCpus: __expectInt32,
5703
+ maxDuration: __expectInt32,
5704
+ maxRuns: __expectInt32,
5705
+ name: __expectString,
5706
+ });
6616
5707
  };
6617
5708
  const de_RunList = (output, context) => {
6618
5709
  const retVal = (output || [])
6619
5710
  .filter((e) => e != null)
6620
5711
  .map((entry) => {
6621
- if (entry === null) {
6622
- return null;
6623
- }
6624
5712
  return de_RunListItem(entry, context);
6625
5713
  });
6626
5714
  return retVal;
6627
5715
  };
6628
5716
  const de_RunListItem = (output, context) => {
6629
- return {
6630
- arn: __expectString(output.arn),
6631
- creationTime: output.creationTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.creationTime)) : undefined,
6632
- id: __expectString(output.id),
6633
- name: __expectString(output.name),
6634
- priority: __expectInt32(output.priority),
6635
- startTime: output.startTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.startTime)) : undefined,
6636
- status: __expectString(output.status),
6637
- stopTime: output.stopTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.stopTime)) : undefined,
6638
- storageCapacity: __expectInt32(output.storageCapacity),
6639
- workflowId: __expectString(output.workflowId),
6640
- };
5717
+ return take(output, {
5718
+ arn: __expectString,
5719
+ creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
5720
+ id: __expectString,
5721
+ name: __expectString,
5722
+ priority: __expectInt32,
5723
+ startTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
5724
+ status: __expectString,
5725
+ stopTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
5726
+ storageCapacity: __expectInt32,
5727
+ workflowId: __expectString,
5728
+ });
6641
5729
  };
6642
5730
  const de_RunParameters = (output, context) => {
6643
5731
  return output;
6644
5732
  };
6645
- const de_RunResourceDigests = (output, context) => {
6646
- return Object.entries(output).reduce((acc, [key, value]) => {
6647
- if (value === null) {
6648
- return acc;
6649
- }
6650
- acc[key] = __expectString(value);
6651
- return acc;
6652
- }, {});
6653
- };
6654
- const de_Schema = (output, context) => {
6655
- const retVal = (output || [])
6656
- .filter((e) => e != null)
6657
- .map((entry) => {
6658
- if (entry === null) {
6659
- return null;
6660
- }
6661
- return de_SchemaItem(entry, context);
6662
- });
6663
- return retVal;
6664
- };
6665
- const de_SchemaItem = (output, context) => {
6666
- return Object.entries(output).reduce((acc, [key, value]) => {
6667
- if (value === null) {
6668
- return acc;
6669
- }
6670
- acc[key] = __expectString(value);
6671
- return acc;
6672
- }, {});
6673
- };
6674
- const de_SequenceInformation = (output, context) => {
6675
- return {
6676
- alignment: __expectString(output.alignment),
6677
- generatedFrom: __expectString(output.generatedFrom),
6678
- totalBaseCount: __expectLong(output.totalBaseCount),
6679
- totalReadCount: __expectLong(output.totalReadCount),
6680
- };
6681
- };
6682
5733
  const de_SequenceStoreDetail = (output, context) => {
6683
- return {
6684
- arn: __expectString(output.arn),
6685
- creationTime: output.creationTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.creationTime)) : undefined,
6686
- description: __expectString(output.description),
6687
- id: __expectString(output.id),
6688
- name: __expectString(output.name),
6689
- sseConfig: output.sseConfig != null ? de_SseConfig(output.sseConfig, context) : undefined,
6690
- };
5734
+ return take(output, {
5735
+ arn: __expectString,
5736
+ creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
5737
+ description: __expectString,
5738
+ id: __expectString,
5739
+ name: __expectString,
5740
+ sseConfig: _json,
5741
+ });
6691
5742
  };
6692
5743
  const de_SequenceStoreDetailList = (output, context) => {
6693
5744
  const retVal = (output || [])
6694
5745
  .filter((e) => e != null)
6695
5746
  .map((entry) => {
6696
- if (entry === null) {
6697
- return null;
6698
- }
6699
5747
  return de_SequenceStoreDetail(entry, context);
6700
5748
  });
6701
5749
  return retVal;
6702
5750
  };
6703
- const de_SourceFiles = (output, context) => {
6704
- return {
6705
- source1: __expectString(output.source1),
6706
- source2: __expectString(output.source2),
6707
- };
6708
- };
6709
- const de_SseConfig = (output, context) => {
6710
- return {
6711
- keyArn: __expectString(output.keyArn),
6712
- type: __expectString(output.type),
6713
- };
6714
- };
6715
- const de_StoreOptions = (output, context) => {
6716
- if (output.tsvStoreOptions != null) {
6717
- return {
6718
- tsvStoreOptions: de_TsvStoreOptions(output.tsvStoreOptions, context),
6719
- };
6720
- }
6721
- return { $unknown: Object.entries(output)[0] };
6722
- };
6723
- const de_TagMap = (output, context) => {
6724
- return Object.entries(output).reduce((acc, [key, value]) => {
6725
- if (value === null) {
6726
- return acc;
6727
- }
6728
- acc[key] = __expectString(value);
6729
- return acc;
6730
- }, {});
6731
- };
6732
5751
  const de_TaskList = (output, context) => {
6733
5752
  const retVal = (output || [])
6734
5753
  .filter((e) => e != null)
6735
5754
  .map((entry) => {
6736
- if (entry === null) {
6737
- return null;
6738
- }
6739
5755
  return de_TaskListItem(entry, context);
6740
5756
  });
6741
5757
  return retVal;
6742
5758
  };
6743
5759
  const de_TaskListItem = (output, context) => {
6744
- return {
6745
- cpus: __expectInt32(output.cpus),
6746
- creationTime: output.creationTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.creationTime)) : undefined,
6747
- memory: __expectInt32(output.memory),
6748
- name: __expectString(output.name),
6749
- startTime: output.startTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.startTime)) : undefined,
6750
- status: __expectString(output.status),
6751
- stopTime: output.stopTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.stopTime)) : undefined,
6752
- taskId: __expectString(output.taskId),
6753
- };
6754
- };
6755
- const de_TsvOptions = (output, context) => {
6756
- return {
6757
- readOptions: output.readOptions != null ? de_ReadOptions(output.readOptions, context) : undefined,
6758
- };
6759
- };
6760
- const de_TsvStoreOptions = (output, context) => {
6761
- return {
6762
- annotationType: __expectString(output.annotationType),
6763
- formatToHeader: output.formatToHeader != null ? de_FormatToHeader(output.formatToHeader, context) : undefined,
6764
- schema: output.schema != null ? de_Schema(output.schema, context) : undefined,
6765
- };
6766
- };
6767
- const de_VariantImportItemDetail = (output, context) => {
6768
- return {
6769
- jobStatus: __expectString(output.jobStatus),
6770
- source: __expectString(output.source),
6771
- statusMessage: __expectString(output.statusMessage),
6772
- };
6773
- };
6774
- const de_VariantImportItemDetails = (output, context) => {
6775
- const retVal = (output || [])
6776
- .filter((e) => e != null)
6777
- .map((entry) => {
6778
- if (entry === null) {
6779
- return null;
6780
- }
6781
- return de_VariantImportItemDetail(entry, context);
5760
+ return take(output, {
5761
+ cpus: __expectInt32,
5762
+ creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
5763
+ memory: __expectInt32,
5764
+ name: __expectString,
5765
+ startTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
5766
+ status: __expectString,
5767
+ stopTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
5768
+ taskId: __expectString,
6782
5769
  });
6783
- return retVal;
6784
5770
  };
6785
5771
  const de_VariantImportJobItem = (output, context) => {
6786
- return {
6787
- completionTime: output.completionTime != null
6788
- ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.completionTime))
6789
- : undefined,
6790
- creationTime: output.creationTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.creationTime)) : undefined,
6791
- destinationName: __expectString(output.destinationName),
6792
- id: __expectString(output.id),
6793
- roleArn: __expectString(output.roleArn),
6794
- runLeftNormalization: __expectBoolean(output.runLeftNormalization),
6795
- status: __expectString(output.status),
6796
- updateTime: output.updateTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.updateTime)) : undefined,
6797
- };
5772
+ return take(output, {
5773
+ completionTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
5774
+ creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
5775
+ destinationName: __expectString,
5776
+ id: __expectString,
5777
+ roleArn: __expectString,
5778
+ runLeftNormalization: __expectBoolean,
5779
+ status: __expectString,
5780
+ updateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
5781
+ });
6798
5782
  };
6799
5783
  const de_VariantImportJobItems = (output, context) => {
6800
5784
  const retVal = (output || [])
6801
5785
  .filter((e) => e != null)
6802
5786
  .map((entry) => {
6803
- if (entry === null) {
6804
- return null;
6805
- }
6806
5787
  return de_VariantImportJobItem(entry, context);
6807
5788
  });
6808
5789
  return retVal;
6809
5790
  };
6810
5791
  const de_VariantStoreItem = (output, context) => {
6811
- return {
6812
- creationTime: output.creationTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.creationTime)) : undefined,
6813
- description: __expectString(output.description),
6814
- id: __expectString(output.id),
6815
- name: __expectString(output.name),
6816
- reference: output.reference != null ? de_ReferenceItem(__expectUnion(output.reference), context) : undefined,
6817
- sseConfig: output.sseConfig != null ? de_SseConfig(output.sseConfig, context) : undefined,
6818
- status: __expectString(output.status),
6819
- statusMessage: __expectString(output.statusMessage),
6820
- storeArn: __expectString(output.storeArn),
6821
- storeSizeBytes: __expectLong(output.storeSizeBytes),
6822
- updateTime: output.updateTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.updateTime)) : undefined,
6823
- };
5792
+ return take(output, {
5793
+ creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
5794
+ description: __expectString,
5795
+ id: __expectString,
5796
+ name: __expectString,
5797
+ reference: (_) => _json(__expectUnion(_)),
5798
+ sseConfig: _json,
5799
+ status: __expectString,
5800
+ statusMessage: __expectString,
5801
+ storeArn: __expectString,
5802
+ storeSizeBytes: __expectLong,
5803
+ updateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
5804
+ });
6824
5805
  };
6825
5806
  const de_VariantStoreItems = (output, context) => {
6826
5807
  const retVal = (output || [])
6827
5808
  .filter((e) => e != null)
6828
5809
  .map((entry) => {
6829
- if (entry === null) {
6830
- return null;
6831
- }
6832
5810
  return de_VariantStoreItem(entry, context);
6833
5811
  });
6834
5812
  return retVal;
6835
5813
  };
6836
- const de_VcfOptions = (output, context) => {
6837
- return {
6838
- ignoreFilterField: __expectBoolean(output.ignoreFilterField),
6839
- ignoreQualField: __expectBoolean(output.ignoreQualField),
6840
- };
6841
- };
6842
5814
  const de_WorkflowList = (output, context) => {
6843
5815
  const retVal = (output || [])
6844
5816
  .filter((e) => e != null)
6845
5817
  .map((entry) => {
6846
- if (entry === null) {
6847
- return null;
6848
- }
6849
5818
  return de_WorkflowListItem(entry, context);
6850
5819
  });
6851
5820
  return retVal;
6852
5821
  };
6853
5822
  const de_WorkflowListItem = (output, context) => {
6854
- return {
6855
- arn: __expectString(output.arn),
6856
- creationTime: output.creationTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.creationTime)) : undefined,
6857
- digest: __expectString(output.digest),
6858
- id: __expectString(output.id),
6859
- name: __expectString(output.name),
6860
- status: __expectString(output.status),
6861
- type: __expectString(output.type),
6862
- };
6863
- };
6864
- const de_WorkflowParameter = (output, context) => {
6865
- return {
6866
- description: __expectString(output.description),
6867
- optional: __expectBoolean(output.optional),
6868
- };
6869
- };
6870
- const de_WorkflowParameterTemplate = (output, context) => {
6871
- return Object.entries(output).reduce((acc, [key, value]) => {
6872
- if (value === null) {
6873
- return acc;
6874
- }
6875
- acc[key] = de_WorkflowParameter(value, context);
6876
- return acc;
6877
- }, {});
5823
+ return take(output, {
5824
+ arn: __expectString,
5825
+ creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
5826
+ digest: __expectString,
5827
+ id: __expectString,
5828
+ name: __expectString,
5829
+ status: __expectString,
5830
+ type: __expectString,
5831
+ });
6878
5832
  };
6879
5833
  const deserializeMetadata = (output) => ({
6880
5834
  httpStatusCode: output.statusCode,