@aws-sdk/client-simspaceweaver 3.310.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.
@@ -10,7 +10,7 @@ const se_DeleteAppCommand = async (input, context) => {
10
10
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
11
11
  const headers = {};
12
12
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/deleteapp";
13
- const query = map({
13
+ const query = (0, smithy_client_1.map)({
14
14
  simulation: [, (0, smithy_client_1.expectNonNull)(input.Simulation, `Simulation`)],
15
15
  domain: [, (0, smithy_client_1.expectNonNull)(input.Domain, `Domain`)],
16
16
  app: [, (0, smithy_client_1.expectNonNull)(input.App, `App`)],
@@ -32,7 +32,7 @@ const se_DeleteSimulationCommand = async (input, context) => {
32
32
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
33
33
  const headers = {};
34
34
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/deletesimulation";
35
- const query = map({
35
+ const query = (0, smithy_client_1.map)({
36
36
  simulation: [, (0, smithy_client_1.expectNonNull)(input.Simulation, `Simulation`)],
37
37
  });
38
38
  let body;
@@ -52,7 +52,7 @@ const se_DescribeAppCommand = async (input, context) => {
52
52
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
53
53
  const headers = {};
54
54
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describeapp";
55
- const query = map({
55
+ const query = (0, smithy_client_1.map)({
56
56
  simulation: [, (0, smithy_client_1.expectNonNull)(input.Simulation, `Simulation`)],
57
57
  domain: [, (0, smithy_client_1.expectNonNull)(input.Domain, `Domain`)],
58
58
  app: [, (0, smithy_client_1.expectNonNull)(input.App, `App`)],
@@ -74,7 +74,7 @@ const se_DescribeSimulationCommand = async (input, context) => {
74
74
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
75
75
  const headers = {};
76
76
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describesimulation";
77
- const query = map({
77
+ const query = (0, smithy_client_1.map)({
78
78
  simulation: [, (0, smithy_client_1.expectNonNull)(input.Simulation, `Simulation`)],
79
79
  });
80
80
  let body;
@@ -94,7 +94,7 @@ const se_ListAppsCommand = async (input, context) => {
94
94
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
95
95
  const headers = {};
96
96
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listapps";
97
- const query = map({
97
+ const query = (0, smithy_client_1.map)({
98
98
  simulation: [, (0, smithy_client_1.expectNonNull)(input.Simulation, `Simulation`)],
99
99
  domain: [, input.Domain],
100
100
  maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
@@ -117,7 +117,7 @@ const se_ListSimulationsCommand = async (input, context) => {
117
117
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
118
118
  const headers = {};
119
119
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listsimulations";
120
- const query = map({
120
+ const query = (0, smithy_client_1.map)({
121
121
  maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
122
122
  nextToken: [, input.NextToken],
123
123
  });
@@ -158,14 +158,14 @@ const se_StartAppCommand = async (input, context) => {
158
158
  };
159
159
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/startapp";
160
160
  let body;
161
- body = JSON.stringify({
162
- ClientToken: input.ClientToken ?? (0, uuid_1.v4)(),
163
- ...(input.Description != null && { Description: input.Description }),
164
- ...(input.Domain != null && { Domain: input.Domain }),
165
- ...(input.LaunchOverrides != null && { LaunchOverrides: se_LaunchOverrides(input.LaunchOverrides, context) }),
166
- ...(input.Name != null && { Name: input.Name }),
167
- ...(input.Simulation != null && { Simulation: input.Simulation }),
168
- });
161
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
162
+ ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
163
+ Description: [],
164
+ Domain: [],
165
+ LaunchOverrides: (_) => (0, smithy_client_1._json)(_),
166
+ Name: [],
167
+ Simulation: [],
168
+ }));
169
169
  return new protocol_http_1.HttpRequest({
170
170
  protocol,
171
171
  hostname,
@@ -184,9 +184,9 @@ const se_StartClockCommand = async (input, context) => {
184
184
  };
185
185
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/startclock";
186
186
  let body;
187
- body = JSON.stringify({
188
- ...(input.Simulation != null && { Simulation: input.Simulation }),
189
- });
187
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
188
+ Simulation: [],
189
+ }));
190
190
  return new protocol_http_1.HttpRequest({
191
191
  protocol,
192
192
  hostname,
@@ -205,15 +205,15 @@ const se_StartSimulationCommand = async (input, context) => {
205
205
  };
206
206
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/startsimulation";
207
207
  let body;
208
- body = JSON.stringify({
209
- ClientToken: input.ClientToken ?? (0, uuid_1.v4)(),
210
- ...(input.Description != null && { Description: input.Description }),
211
- ...(input.MaximumDuration != null && { MaximumDuration: input.MaximumDuration }),
212
- ...(input.Name != null && { Name: input.Name }),
213
- ...(input.RoleArn != null && { RoleArn: input.RoleArn }),
214
- ...(input.SchemaS3Location != null && { SchemaS3Location: se_S3Location(input.SchemaS3Location, context) }),
215
- ...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
216
- });
208
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
209
+ ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
210
+ Description: [],
211
+ MaximumDuration: [],
212
+ Name: [],
213
+ RoleArn: [],
214
+ SchemaS3Location: (_) => (0, smithy_client_1._json)(_),
215
+ Tags: (_) => (0, smithy_client_1._json)(_),
216
+ }));
217
217
  return new protocol_http_1.HttpRequest({
218
218
  protocol,
219
219
  hostname,
@@ -232,11 +232,11 @@ const se_StopAppCommand = async (input, context) => {
232
232
  };
233
233
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/stopapp";
234
234
  let body;
235
- body = JSON.stringify({
236
- ...(input.App != null && { App: input.App }),
237
- ...(input.Domain != null && { Domain: input.Domain }),
238
- ...(input.Simulation != null && { Simulation: input.Simulation }),
239
- });
235
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
236
+ App: [],
237
+ Domain: [],
238
+ Simulation: [],
239
+ }));
240
240
  return new protocol_http_1.HttpRequest({
241
241
  protocol,
242
242
  hostname,
@@ -255,9 +255,9 @@ const se_StopClockCommand = async (input, context) => {
255
255
  };
256
256
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/stopclock";
257
257
  let body;
258
- body = JSON.stringify({
259
- ...(input.Simulation != null && { Simulation: input.Simulation }),
260
- });
258
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
259
+ Simulation: [],
260
+ }));
261
261
  return new protocol_http_1.HttpRequest({
262
262
  protocol,
263
263
  hostname,
@@ -276,9 +276,9 @@ const se_StopSimulationCommand = async (input, context) => {
276
276
  };
277
277
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/stopsimulation";
278
278
  let body;
279
- body = JSON.stringify({
280
- ...(input.Simulation != null && { Simulation: input.Simulation }),
281
- });
279
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
280
+ Simulation: [],
281
+ }));
282
282
  return new protocol_http_1.HttpRequest({
283
283
  protocol,
284
284
  hostname,
@@ -298,9 +298,9 @@ const se_TagResourceCommand = async (input, context) => {
298
298
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
299
299
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
300
300
  let body;
301
- body = JSON.stringify({
302
- ...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
303
- });
301
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
302
+ Tags: (_) => (0, smithy_client_1._json)(_),
303
+ }));
304
304
  return new protocol_http_1.HttpRequest({
305
305
  protocol,
306
306
  hostname,
@@ -317,7 +317,7 @@ const se_UntagResourceCommand = async (input, context) => {
317
317
  const headers = {};
318
318
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
319
319
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
320
- const query = map({
320
+ const query = (0, smithy_client_1.map)({
321
321
  tagKeys: [
322
322
  (0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
323
323
  () => (input.TagKeys || []).map((_entry) => _entry),
@@ -340,7 +340,7 @@ const de_DeleteAppCommand = async (output, context) => {
340
340
  if (output.statusCode !== 200 && output.statusCode >= 300) {
341
341
  return de_DeleteAppCommandError(output, context);
342
342
  }
343
- const contents = map({
343
+ const contents = (0, smithy_client_1.map)({
344
344
  $metadata: deserializeMetadata(output),
345
345
  });
346
346
  await collectBody(output.body, context);
@@ -371,10 +371,9 @@ const de_DeleteAppCommandError = async (output, context) => {
371
371
  throw await de_ValidationExceptionRes(parsedOutput, context);
372
372
  default:
373
373
  const parsedBody = parsedOutput.body;
374
- (0, smithy_client_1.throwDefaultError)({
374
+ return throwDefaultError({
375
375
  output,
376
376
  parsedBody,
377
- exceptionCtor: SimSpaceWeaverServiceException_1.SimSpaceWeaverServiceException,
378
377
  errorCode,
379
378
  });
380
379
  }
@@ -383,7 +382,7 @@ const de_DeleteSimulationCommand = async (output, context) => {
383
382
  if (output.statusCode !== 200 && output.statusCode >= 300) {
384
383
  return de_DeleteSimulationCommandError(output, context);
385
384
  }
386
- const contents = map({
385
+ const contents = (0, smithy_client_1.map)({
387
386
  $metadata: deserializeMetadata(output),
388
387
  });
389
388
  await collectBody(output.body, context);
@@ -414,10 +413,9 @@ const de_DeleteSimulationCommandError = async (output, context) => {
414
413
  throw await de_ValidationExceptionRes(parsedOutput, context);
415
414
  default:
416
415
  const parsedBody = parsedOutput.body;
417
- (0, smithy_client_1.throwDefaultError)({
416
+ return throwDefaultError({
418
417
  output,
419
418
  parsedBody,
420
- exceptionCtor: SimSpaceWeaverServiceException_1.SimSpaceWeaverServiceException,
421
419
  errorCode,
422
420
  });
423
421
  }
@@ -426,34 +424,21 @@ const de_DescribeAppCommand = async (output, context) => {
426
424
  if (output.statusCode !== 200 && output.statusCode >= 300) {
427
425
  return de_DescribeAppCommandError(output, context);
428
426
  }
429
- const contents = map({
427
+ const contents = (0, smithy_client_1.map)({
430
428
  $metadata: deserializeMetadata(output),
431
429
  });
432
430
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
433
- if (data.Description != null) {
434
- contents.Description = (0, smithy_client_1.expectString)(data.Description);
435
- }
436
- if (data.Domain != null) {
437
- contents.Domain = (0, smithy_client_1.expectString)(data.Domain);
438
- }
439
- if (data.EndpointInfo != null) {
440
- contents.EndpointInfo = de_SimulationAppEndpointInfo(data.EndpointInfo, context);
441
- }
442
- if (data.LaunchOverrides != null) {
443
- contents.LaunchOverrides = de_LaunchOverrides(data.LaunchOverrides, context);
444
- }
445
- if (data.Name != null) {
446
- contents.Name = (0, smithy_client_1.expectString)(data.Name);
447
- }
448
- if (data.Simulation != null) {
449
- contents.Simulation = (0, smithy_client_1.expectString)(data.Simulation);
450
- }
451
- if (data.Status != null) {
452
- contents.Status = (0, smithy_client_1.expectString)(data.Status);
453
- }
454
- if (data.TargetStatus != null) {
455
- contents.TargetStatus = (0, smithy_client_1.expectString)(data.TargetStatus);
456
- }
431
+ const doc = (0, smithy_client_1.take)(data, {
432
+ Description: smithy_client_1.expectString,
433
+ Domain: smithy_client_1.expectString,
434
+ EndpointInfo: smithy_client_1._json,
435
+ LaunchOverrides: smithy_client_1._json,
436
+ Name: smithy_client_1.expectString,
437
+ Simulation: smithy_client_1.expectString,
438
+ Status: smithy_client_1.expectString,
439
+ TargetStatus: smithy_client_1.expectString,
440
+ });
441
+ Object.assign(contents, doc);
457
442
  return contents;
458
443
  };
459
444
  exports.de_DescribeAppCommand = de_DescribeAppCommand;
@@ -478,10 +463,9 @@ const de_DescribeAppCommandError = async (output, context) => {
478
463
  throw await de_ValidationExceptionRes(parsedOutput, context);
479
464
  default:
480
465
  const parsedBody = parsedOutput.body;
481
- (0, smithy_client_1.throwDefaultError)({
466
+ return throwDefaultError({
482
467
  output,
483
468
  parsedBody,
484
- exceptionCtor: SimSpaceWeaverServiceException_1.SimSpaceWeaverServiceException,
485
469
  errorCode,
486
470
  });
487
471
  }
@@ -490,49 +474,26 @@ const de_DescribeSimulationCommand = async (output, context) => {
490
474
  if (output.statusCode !== 200 && output.statusCode >= 300) {
491
475
  return de_DescribeSimulationCommandError(output, context);
492
476
  }
493
- const contents = map({
477
+ const contents = (0, smithy_client_1.map)({
494
478
  $metadata: deserializeMetadata(output),
495
479
  });
496
480
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
497
- if (data.Arn != null) {
498
- contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
499
- }
500
- if (data.CreationTime != null) {
501
- contents.CreationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.CreationTime)));
502
- }
503
- if (data.Description != null) {
504
- contents.Description = (0, smithy_client_1.expectString)(data.Description);
505
- }
506
- if (data.ExecutionId != null) {
507
- contents.ExecutionId = (0, smithy_client_1.expectString)(data.ExecutionId);
508
- }
509
- if (data.LiveSimulationState != null) {
510
- contents.LiveSimulationState = de_LiveSimulationState(data.LiveSimulationState, context);
511
- }
512
- if (data.LoggingConfiguration != null) {
513
- contents.LoggingConfiguration = de_LoggingConfiguration(data.LoggingConfiguration, context);
514
- }
515
- if (data.MaximumDuration != null) {
516
- contents.MaximumDuration = (0, smithy_client_1.expectString)(data.MaximumDuration);
517
- }
518
- if (data.Name != null) {
519
- contents.Name = (0, smithy_client_1.expectString)(data.Name);
520
- }
521
- if (data.RoleArn != null) {
522
- contents.RoleArn = (0, smithy_client_1.expectString)(data.RoleArn);
523
- }
524
- if (data.SchemaError != null) {
525
- contents.SchemaError = (0, smithy_client_1.expectString)(data.SchemaError);
526
- }
527
- if (data.SchemaS3Location != null) {
528
- contents.SchemaS3Location = de_S3Location(data.SchemaS3Location, context);
529
- }
530
- if (data.Status != null) {
531
- contents.Status = (0, smithy_client_1.expectString)(data.Status);
532
- }
533
- if (data.TargetStatus != null) {
534
- contents.TargetStatus = (0, smithy_client_1.expectString)(data.TargetStatus);
535
- }
481
+ const doc = (0, smithy_client_1.take)(data, {
482
+ Arn: smithy_client_1.expectString,
483
+ CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
484
+ Description: smithy_client_1.expectString,
485
+ ExecutionId: smithy_client_1.expectString,
486
+ LiveSimulationState: smithy_client_1._json,
487
+ LoggingConfiguration: smithy_client_1._json,
488
+ MaximumDuration: smithy_client_1.expectString,
489
+ Name: smithy_client_1.expectString,
490
+ RoleArn: smithy_client_1.expectString,
491
+ SchemaError: smithy_client_1.expectString,
492
+ SchemaS3Location: smithy_client_1._json,
493
+ Status: smithy_client_1.expectString,
494
+ TargetStatus: smithy_client_1.expectString,
495
+ });
496
+ Object.assign(contents, doc);
536
497
  return contents;
537
498
  };
538
499
  exports.de_DescribeSimulationCommand = de_DescribeSimulationCommand;
@@ -557,10 +518,9 @@ const de_DescribeSimulationCommandError = async (output, context) => {
557
518
  throw await de_ValidationExceptionRes(parsedOutput, context);
558
519
  default:
559
520
  const parsedBody = parsedOutput.body;
560
- (0, smithy_client_1.throwDefaultError)({
521
+ return throwDefaultError({
561
522
  output,
562
523
  parsedBody,
563
- exceptionCtor: SimSpaceWeaverServiceException_1.SimSpaceWeaverServiceException,
564
524
  errorCode,
565
525
  });
566
526
  }
@@ -569,16 +529,15 @@ const de_ListAppsCommand = async (output, context) => {
569
529
  if (output.statusCode !== 200 && output.statusCode >= 300) {
570
530
  return de_ListAppsCommandError(output, context);
571
531
  }
572
- const contents = map({
532
+ const contents = (0, smithy_client_1.map)({
573
533
  $metadata: deserializeMetadata(output),
574
534
  });
575
535
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
576
- if (data.Apps != null) {
577
- contents.Apps = de_SimulationAppList(data.Apps, context);
578
- }
579
- if (data.NextToken != null) {
580
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
581
- }
536
+ const doc = (0, smithy_client_1.take)(data, {
537
+ Apps: smithy_client_1._json,
538
+ NextToken: smithy_client_1.expectString,
539
+ });
540
+ Object.assign(contents, doc);
582
541
  return contents;
583
542
  };
584
543
  exports.de_ListAppsCommand = de_ListAppsCommand;
@@ -603,10 +562,9 @@ const de_ListAppsCommandError = async (output, context) => {
603
562
  throw await de_ValidationExceptionRes(parsedOutput, context);
604
563
  default:
605
564
  const parsedBody = parsedOutput.body;
606
- (0, smithy_client_1.throwDefaultError)({
565
+ return throwDefaultError({
607
566
  output,
608
567
  parsedBody,
609
- exceptionCtor: SimSpaceWeaverServiceException_1.SimSpaceWeaverServiceException,
610
568
  errorCode,
611
569
  });
612
570
  }
@@ -615,16 +573,15 @@ const de_ListSimulationsCommand = async (output, context) => {
615
573
  if (output.statusCode !== 200 && output.statusCode >= 300) {
616
574
  return de_ListSimulationsCommandError(output, context);
617
575
  }
618
- const contents = map({
576
+ const contents = (0, smithy_client_1.map)({
619
577
  $metadata: deserializeMetadata(output),
620
578
  });
621
579
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
622
- if (data.NextToken != null) {
623
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
624
- }
625
- if (data.Simulations != null) {
626
- contents.Simulations = de_SimulationList(data.Simulations, context);
627
- }
580
+ const doc = (0, smithy_client_1.take)(data, {
581
+ NextToken: smithy_client_1.expectString,
582
+ Simulations: (_) => de_SimulationList(_, context),
583
+ });
584
+ Object.assign(contents, doc);
628
585
  return contents;
629
586
  };
630
587
  exports.de_ListSimulationsCommand = de_ListSimulationsCommand;
@@ -646,10 +603,9 @@ const de_ListSimulationsCommandError = async (output, context) => {
646
603
  throw await de_ValidationExceptionRes(parsedOutput, context);
647
604
  default:
648
605
  const parsedBody = parsedOutput.body;
649
- (0, smithy_client_1.throwDefaultError)({
606
+ return throwDefaultError({
650
607
  output,
651
608
  parsedBody,
652
- exceptionCtor: SimSpaceWeaverServiceException_1.SimSpaceWeaverServiceException,
653
609
  errorCode,
654
610
  });
655
611
  }
@@ -658,13 +614,14 @@ const de_ListTagsForResourceCommand = async (output, context) => {
658
614
  if (output.statusCode !== 200 && output.statusCode >= 300) {
659
615
  return de_ListTagsForResourceCommandError(output, context);
660
616
  }
661
- const contents = map({
617
+ const contents = (0, smithy_client_1.map)({
662
618
  $metadata: deserializeMetadata(output),
663
619
  });
664
620
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
665
- if (data.Tags != null) {
666
- contents.Tags = de_TagMap(data.Tags, context);
667
- }
621
+ const doc = (0, smithy_client_1.take)(data, {
622
+ Tags: smithy_client_1._json,
623
+ });
624
+ Object.assign(contents, doc);
668
625
  return contents;
669
626
  };
670
627
  exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
@@ -683,10 +640,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
683
640
  throw await de_ValidationExceptionRes(parsedOutput, context);
684
641
  default:
685
642
  const parsedBody = parsedOutput.body;
686
- (0, smithy_client_1.throwDefaultError)({
643
+ return throwDefaultError({
687
644
  output,
688
645
  parsedBody,
689
- exceptionCtor: SimSpaceWeaverServiceException_1.SimSpaceWeaverServiceException,
690
646
  errorCode,
691
647
  });
692
648
  }
@@ -695,19 +651,16 @@ const de_StartAppCommand = async (output, context) => {
695
651
  if (output.statusCode !== 200 && output.statusCode >= 300) {
696
652
  return de_StartAppCommandError(output, context);
697
653
  }
698
- const contents = map({
654
+ const contents = (0, smithy_client_1.map)({
699
655
  $metadata: deserializeMetadata(output),
700
656
  });
701
657
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
702
- if (data.Domain != null) {
703
- contents.Domain = (0, smithy_client_1.expectString)(data.Domain);
704
- }
705
- if (data.Name != null) {
706
- contents.Name = (0, smithy_client_1.expectString)(data.Name);
707
- }
708
- if (data.Simulation != null) {
709
- contents.Simulation = (0, smithy_client_1.expectString)(data.Simulation);
710
- }
658
+ const doc = (0, smithy_client_1.take)(data, {
659
+ Domain: smithy_client_1.expectString,
660
+ Name: smithy_client_1.expectString,
661
+ Simulation: smithy_client_1.expectString,
662
+ });
663
+ Object.assign(contents, doc);
711
664
  return contents;
712
665
  };
713
666
  exports.de_StartAppCommand = de_StartAppCommand;
@@ -735,10 +688,9 @@ const de_StartAppCommandError = async (output, context) => {
735
688
  throw await de_ValidationExceptionRes(parsedOutput, context);
736
689
  default:
737
690
  const parsedBody = parsedOutput.body;
738
- (0, smithy_client_1.throwDefaultError)({
691
+ return throwDefaultError({
739
692
  output,
740
693
  parsedBody,
741
- exceptionCtor: SimSpaceWeaverServiceException_1.SimSpaceWeaverServiceException,
742
694
  errorCode,
743
695
  });
744
696
  }
@@ -747,7 +699,7 @@ const de_StartClockCommand = async (output, context) => {
747
699
  if (output.statusCode !== 200 && output.statusCode >= 300) {
748
700
  return de_StartClockCommandError(output, context);
749
701
  }
750
- const contents = map({
702
+ const contents = (0, smithy_client_1.map)({
751
703
  $metadata: deserializeMetadata(output),
752
704
  });
753
705
  await collectBody(output.body, context);
@@ -778,10 +730,9 @@ const de_StartClockCommandError = async (output, context) => {
778
730
  throw await de_ValidationExceptionRes(parsedOutput, context);
779
731
  default:
780
732
  const parsedBody = parsedOutput.body;
781
- (0, smithy_client_1.throwDefaultError)({
733
+ return throwDefaultError({
782
734
  output,
783
735
  parsedBody,
784
- exceptionCtor: SimSpaceWeaverServiceException_1.SimSpaceWeaverServiceException,
785
736
  errorCode,
786
737
  });
787
738
  }
@@ -790,19 +741,16 @@ const de_StartSimulationCommand = async (output, context) => {
790
741
  if (output.statusCode !== 200 && output.statusCode >= 300) {
791
742
  return de_StartSimulationCommandError(output, context);
792
743
  }
793
- const contents = map({
744
+ const contents = (0, smithy_client_1.map)({
794
745
  $metadata: deserializeMetadata(output),
795
746
  });
796
747
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
797
- if (data.Arn != null) {
798
- contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
799
- }
800
- if (data.CreationTime != null) {
801
- contents.CreationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.CreationTime)));
802
- }
803
- if (data.ExecutionId != null) {
804
- contents.ExecutionId = (0, smithy_client_1.expectString)(data.ExecutionId);
805
- }
748
+ const doc = (0, smithy_client_1.take)(data, {
749
+ Arn: smithy_client_1.expectString,
750
+ CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
751
+ ExecutionId: smithy_client_1.expectString,
752
+ });
753
+ Object.assign(contents, doc);
806
754
  return contents;
807
755
  };
808
756
  exports.de_StartSimulationCommand = de_StartSimulationCommand;
@@ -830,10 +778,9 @@ const de_StartSimulationCommandError = async (output, context) => {
830
778
  throw await de_ValidationExceptionRes(parsedOutput, context);
831
779
  default:
832
780
  const parsedBody = parsedOutput.body;
833
- (0, smithy_client_1.throwDefaultError)({
781
+ return throwDefaultError({
834
782
  output,
835
783
  parsedBody,
836
- exceptionCtor: SimSpaceWeaverServiceException_1.SimSpaceWeaverServiceException,
837
784
  errorCode,
838
785
  });
839
786
  }
@@ -842,7 +789,7 @@ const de_StopAppCommand = async (output, context) => {
842
789
  if (output.statusCode !== 200 && output.statusCode >= 300) {
843
790
  return de_StopAppCommandError(output, context);
844
791
  }
845
- const contents = map({
792
+ const contents = (0, smithy_client_1.map)({
846
793
  $metadata: deserializeMetadata(output),
847
794
  });
848
795
  await collectBody(output.body, context);
@@ -873,10 +820,9 @@ const de_StopAppCommandError = async (output, context) => {
873
820
  throw await de_ValidationExceptionRes(parsedOutput, context);
874
821
  default:
875
822
  const parsedBody = parsedOutput.body;
876
- (0, smithy_client_1.throwDefaultError)({
823
+ return throwDefaultError({
877
824
  output,
878
825
  parsedBody,
879
- exceptionCtor: SimSpaceWeaverServiceException_1.SimSpaceWeaverServiceException,
880
826
  errorCode,
881
827
  });
882
828
  }
@@ -885,7 +831,7 @@ const de_StopClockCommand = async (output, context) => {
885
831
  if (output.statusCode !== 200 && output.statusCode >= 300) {
886
832
  return de_StopClockCommandError(output, context);
887
833
  }
888
- const contents = map({
834
+ const contents = (0, smithy_client_1.map)({
889
835
  $metadata: deserializeMetadata(output),
890
836
  });
891
837
  await collectBody(output.body, context);
@@ -916,10 +862,9 @@ const de_StopClockCommandError = async (output, context) => {
916
862
  throw await de_ValidationExceptionRes(parsedOutput, context);
917
863
  default:
918
864
  const parsedBody = parsedOutput.body;
919
- (0, smithy_client_1.throwDefaultError)({
865
+ return throwDefaultError({
920
866
  output,
921
867
  parsedBody,
922
- exceptionCtor: SimSpaceWeaverServiceException_1.SimSpaceWeaverServiceException,
923
868
  errorCode,
924
869
  });
925
870
  }
@@ -928,7 +873,7 @@ const de_StopSimulationCommand = async (output, context) => {
928
873
  if (output.statusCode !== 200 && output.statusCode >= 300) {
929
874
  return de_StopSimulationCommandError(output, context);
930
875
  }
931
- const contents = map({
876
+ const contents = (0, smithy_client_1.map)({
932
877
  $metadata: deserializeMetadata(output),
933
878
  });
934
879
  await collectBody(output.body, context);
@@ -959,10 +904,9 @@ const de_StopSimulationCommandError = async (output, context) => {
959
904
  throw await de_ValidationExceptionRes(parsedOutput, context);
960
905
  default:
961
906
  const parsedBody = parsedOutput.body;
962
- (0, smithy_client_1.throwDefaultError)({
907
+ return throwDefaultError({
963
908
  output,
964
909
  parsedBody,
965
- exceptionCtor: SimSpaceWeaverServiceException_1.SimSpaceWeaverServiceException,
966
910
  errorCode,
967
911
  });
968
912
  }
@@ -971,7 +915,7 @@ const de_TagResourceCommand = async (output, context) => {
971
915
  if (output.statusCode !== 200 && output.statusCode >= 300) {
972
916
  return de_TagResourceCommandError(output, context);
973
917
  }
974
- const contents = map({
918
+ const contents = (0, smithy_client_1.map)({
975
919
  $metadata: deserializeMetadata(output),
976
920
  });
977
921
  await collectBody(output.body, context);
@@ -996,10 +940,9 @@ const de_TagResourceCommandError = async (output, context) => {
996
940
  throw await de_ValidationExceptionRes(parsedOutput, context);
997
941
  default:
998
942
  const parsedBody = parsedOutput.body;
999
- (0, smithy_client_1.throwDefaultError)({
943
+ return throwDefaultError({
1000
944
  output,
1001
945
  parsedBody,
1002
- exceptionCtor: SimSpaceWeaverServiceException_1.SimSpaceWeaverServiceException,
1003
946
  errorCode,
1004
947
  });
1005
948
  }
@@ -1008,7 +951,7 @@ const de_UntagResourceCommand = async (output, context) => {
1008
951
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1009
952
  return de_UntagResourceCommandError(output, context);
1010
953
  }
1011
- const contents = map({
954
+ const contents = (0, smithy_client_1.map)({
1012
955
  $metadata: deserializeMetadata(output),
1013
956
  });
1014
957
  await collectBody(output.body, context);
@@ -1030,21 +973,21 @@ const de_UntagResourceCommandError = async (output, context) => {
1030
973
  throw await de_ValidationExceptionRes(parsedOutput, context);
1031
974
  default:
1032
975
  const parsedBody = parsedOutput.body;
1033
- (0, smithy_client_1.throwDefaultError)({
976
+ return throwDefaultError({
1034
977
  output,
1035
978
  parsedBody,
1036
- exceptionCtor: SimSpaceWeaverServiceException_1.SimSpaceWeaverServiceException,
1037
979
  errorCode,
1038
980
  });
1039
981
  }
1040
982
  };
1041
- const map = smithy_client_1.map;
983
+ const throwDefaultError = (0, smithy_client_1.withBaseException)(SimSpaceWeaverServiceException_1.SimSpaceWeaverServiceException);
1042
984
  const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
1043
- const contents = map({});
985
+ const contents = (0, smithy_client_1.map)({});
1044
986
  const data = parsedOutput.body;
1045
- if (data.Message != null) {
1046
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
1047
- }
987
+ const doc = (0, smithy_client_1.take)(data, {
988
+ Message: smithy_client_1.expectString,
989
+ });
990
+ Object.assign(contents, doc);
1048
991
  const exception = new models_0_1.AccessDeniedException({
1049
992
  $metadata: deserializeMetadata(parsedOutput),
1050
993
  ...contents,
@@ -1052,11 +995,12 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
1052
995
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1053
996
  };
1054
997
  const de_ConflictExceptionRes = async (parsedOutput, context) => {
1055
- const contents = map({});
998
+ const contents = (0, smithy_client_1.map)({});
1056
999
  const data = parsedOutput.body;
1057
- if (data.Message != null) {
1058
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
1059
- }
1000
+ const doc = (0, smithy_client_1.take)(data, {
1001
+ Message: smithy_client_1.expectString,
1002
+ });
1003
+ Object.assign(contents, doc);
1060
1004
  const exception = new models_0_1.ConflictException({
1061
1005
  $metadata: deserializeMetadata(parsedOutput),
1062
1006
  ...contents,
@@ -1064,11 +1008,12 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
1064
1008
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1065
1009
  };
1066
1010
  const de_InternalServerExceptionRes = async (parsedOutput, context) => {
1067
- const contents = map({});
1011
+ const contents = (0, smithy_client_1.map)({});
1068
1012
  const data = parsedOutput.body;
1069
- if (data.Message != null) {
1070
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
1071
- }
1013
+ const doc = (0, smithy_client_1.take)(data, {
1014
+ Message: smithy_client_1.expectString,
1015
+ });
1016
+ Object.assign(contents, doc);
1072
1017
  const exception = new models_0_1.InternalServerException({
1073
1018
  $metadata: deserializeMetadata(parsedOutput),
1074
1019
  ...contents,
@@ -1076,11 +1021,12 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
1076
1021
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1077
1022
  };
1078
1023
  const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1079
- const contents = map({});
1024
+ const contents = (0, smithy_client_1.map)({});
1080
1025
  const data = parsedOutput.body;
1081
- if (data.Message != null) {
1082
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
1083
- }
1026
+ const doc = (0, smithy_client_1.take)(data, {
1027
+ Message: smithy_client_1.expectString,
1028
+ });
1029
+ Object.assign(contents, doc);
1084
1030
  const exception = new models_0_1.ResourceNotFoundException({
1085
1031
  $metadata: deserializeMetadata(parsedOutput),
1086
1032
  ...contents,
@@ -1088,11 +1034,12 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1088
1034
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1089
1035
  };
1090
1036
  const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
1091
- const contents = map({});
1037
+ const contents = (0, smithy_client_1.map)({});
1092
1038
  const data = parsedOutput.body;
1093
- if (data.Message != null) {
1094
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
1095
- }
1039
+ const doc = (0, smithy_client_1.take)(data, {
1040
+ Message: smithy_client_1.expectString,
1041
+ });
1042
+ Object.assign(contents, doc);
1096
1043
  const exception = new models_0_1.ServiceQuotaExceededException({
1097
1044
  $metadata: deserializeMetadata(parsedOutput),
1098
1045
  ...contents,
@@ -1100,11 +1047,12 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
1100
1047
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1101
1048
  };
1102
1049
  const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
1103
- const contents = map({});
1050
+ const contents = (0, smithy_client_1.map)({});
1104
1051
  const data = parsedOutput.body;
1105
- if (data.Message != null) {
1106
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
1107
- }
1052
+ const doc = (0, smithy_client_1.take)(data, {
1053
+ Message: smithy_client_1.expectString,
1054
+ });
1055
+ Object.assign(contents, doc);
1108
1056
  const exception = new models_0_1.TooManyTagsException({
1109
1057
  $metadata: deserializeMetadata(parsedOutput),
1110
1058
  ...contents,
@@ -1112,207 +1060,34 @@ const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
1112
1060
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1113
1061
  };
1114
1062
  const de_ValidationExceptionRes = async (parsedOutput, context) => {
1115
- const contents = map({});
1063
+ const contents = (0, smithy_client_1.map)({});
1116
1064
  const data = parsedOutput.body;
1117
- if (data.Message != null) {
1118
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
1119
- }
1065
+ const doc = (0, smithy_client_1.take)(data, {
1066
+ Message: smithy_client_1.expectString,
1067
+ });
1068
+ Object.assign(contents, doc);
1120
1069
  const exception = new models_0_1.ValidationException({
1121
1070
  $metadata: deserializeMetadata(parsedOutput),
1122
1071
  ...contents,
1123
1072
  });
1124
1073
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1125
1074
  };
1126
- const se_LaunchCommandList = (input, context) => {
1127
- return input
1128
- .filter((e) => e != null)
1129
- .map((entry) => {
1130
- return entry;
1131
- });
1132
- };
1133
- const se_LaunchOverrides = (input, context) => {
1134
- return {
1135
- ...(input.LaunchCommands != null && { LaunchCommands: se_LaunchCommandList(input.LaunchCommands, context) }),
1136
- };
1137
- };
1138
- const se_S3Location = (input, context) => {
1139
- return {
1140
- ...(input.BucketName != null && { BucketName: input.BucketName }),
1141
- ...(input.ObjectKey != null && { ObjectKey: input.ObjectKey }),
1142
- };
1143
- };
1144
- const se_TagMap = (input, context) => {
1145
- return Object.entries(input).reduce((acc, [key, value]) => {
1146
- if (value === null) {
1147
- return acc;
1148
- }
1149
- acc[key] = value;
1150
- return acc;
1151
- }, {});
1152
- };
1153
- const de_AppPortMappings = (output, context) => {
1154
- const retVal = (output || [])
1155
- .filter((e) => e != null)
1156
- .map((entry) => {
1157
- if (entry === null) {
1158
- return null;
1159
- }
1160
- return de_SimulationAppPortMapping(entry, context);
1161
- });
1162
- return retVal;
1163
- };
1164
- const de_CloudWatchLogsLogGroup = (output, context) => {
1165
- return {
1166
- LogGroupArn: (0, smithy_client_1.expectString)(output.LogGroupArn),
1167
- };
1168
- };
1169
- const de_Domain = (output, context) => {
1170
- return {
1171
- Lifecycle: (0, smithy_client_1.expectString)(output.Lifecycle),
1172
- Name: (0, smithy_client_1.expectString)(output.Name),
1173
- };
1174
- };
1175
- const de_DomainList = (output, context) => {
1176
- const retVal = (output || [])
1177
- .filter((e) => e != null)
1178
- .map((entry) => {
1179
- if (entry === null) {
1180
- return null;
1181
- }
1182
- return de_Domain(entry, context);
1183
- });
1184
- return retVal;
1185
- };
1186
- const de_LaunchCommandList = (output, context) => {
1187
- const retVal = (output || [])
1188
- .filter((e) => e != null)
1189
- .map((entry) => {
1190
- if (entry === null) {
1191
- return null;
1192
- }
1193
- return (0, smithy_client_1.expectString)(entry);
1194
- });
1195
- return retVal;
1196
- };
1197
- const de_LaunchOverrides = (output, context) => {
1198
- return {
1199
- LaunchCommands: output.LaunchCommands != null ? de_LaunchCommandList(output.LaunchCommands, context) : undefined,
1200
- };
1201
- };
1202
- const de_LiveSimulationState = (output, context) => {
1203
- return {
1204
- Clocks: output.Clocks != null ? de_SimulationClockList(output.Clocks, context) : undefined,
1205
- Domains: output.Domains != null ? de_DomainList(output.Domains, context) : undefined,
1206
- };
1207
- };
1208
- const de_LogDestination = (output, context) => {
1209
- return {
1210
- CloudWatchLogsLogGroup: output.CloudWatchLogsLogGroup != null
1211
- ? de_CloudWatchLogsLogGroup(output.CloudWatchLogsLogGroup, context)
1212
- : undefined,
1213
- };
1214
- };
1215
- const de_LogDestinations = (output, context) => {
1216
- const retVal = (output || [])
1217
- .filter((e) => e != null)
1218
- .map((entry) => {
1219
- if (entry === null) {
1220
- return null;
1221
- }
1222
- return de_LogDestination(entry, context);
1223
- });
1224
- return retVal;
1225
- };
1226
- const de_LoggingConfiguration = (output, context) => {
1227
- return {
1228
- Destinations: output.Destinations != null ? de_LogDestinations(output.Destinations, context) : undefined,
1229
- };
1230
- };
1231
- const de_S3Location = (output, context) => {
1232
- return {
1233
- BucketName: (0, smithy_client_1.expectString)(output.BucketName),
1234
- ObjectKey: (0, smithy_client_1.expectString)(output.ObjectKey),
1235
- };
1236
- };
1237
- const de_SimulationAppEndpointInfo = (output, context) => {
1238
- return {
1239
- Address: (0, smithy_client_1.expectString)(output.Address),
1240
- IngressPortMappings: output.IngressPortMappings != null ? de_AppPortMappings(output.IngressPortMappings, context) : undefined,
1241
- };
1242
- };
1243
- const de_SimulationAppList = (output, context) => {
1244
- const retVal = (output || [])
1245
- .filter((e) => e != null)
1246
- .map((entry) => {
1247
- if (entry === null) {
1248
- return null;
1249
- }
1250
- return de_SimulationAppMetadata(entry, context);
1251
- });
1252
- return retVal;
1253
- };
1254
- const de_SimulationAppMetadata = (output, context) => {
1255
- return {
1256
- Domain: (0, smithy_client_1.expectString)(output.Domain),
1257
- Name: (0, smithy_client_1.expectString)(output.Name),
1258
- Simulation: (0, smithy_client_1.expectString)(output.Simulation),
1259
- Status: (0, smithy_client_1.expectString)(output.Status),
1260
- TargetStatus: (0, smithy_client_1.expectString)(output.TargetStatus),
1261
- };
1262
- };
1263
- const de_SimulationAppPortMapping = (output, context) => {
1264
- return {
1265
- Actual: (0, smithy_client_1.expectInt32)(output.Actual),
1266
- Declared: (0, smithy_client_1.expectInt32)(output.Declared),
1267
- };
1268
- };
1269
- const de_SimulationClock = (output, context) => {
1270
- return {
1271
- Status: (0, smithy_client_1.expectString)(output.Status),
1272
- TargetStatus: (0, smithy_client_1.expectString)(output.TargetStatus),
1273
- };
1274
- };
1275
- const de_SimulationClockList = (output, context) => {
1276
- const retVal = (output || [])
1277
- .filter((e) => e != null)
1278
- .map((entry) => {
1279
- if (entry === null) {
1280
- return null;
1281
- }
1282
- return de_SimulationClock(entry, context);
1283
- });
1284
- return retVal;
1285
- };
1286
1075
  const de_SimulationList = (output, context) => {
1287
1076
  const retVal = (output || [])
1288
1077
  .filter((e) => e != null)
1289
1078
  .map((entry) => {
1290
- if (entry === null) {
1291
- return null;
1292
- }
1293
1079
  return de_SimulationMetadata(entry, context);
1294
1080
  });
1295
1081
  return retVal;
1296
1082
  };
1297
1083
  const de_SimulationMetadata = (output, context) => {
1298
- return {
1299
- Arn: (0, smithy_client_1.expectString)(output.Arn),
1300
- CreationTime: output.CreationTime != null
1301
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
1302
- : undefined,
1303
- Name: (0, smithy_client_1.expectString)(output.Name),
1304
- Status: (0, smithy_client_1.expectString)(output.Status),
1305
- TargetStatus: (0, smithy_client_1.expectString)(output.TargetStatus),
1306
- };
1307
- };
1308
- const de_TagMap = (output, context) => {
1309
- return Object.entries(output).reduce((acc, [key, value]) => {
1310
- if (value === null) {
1311
- return acc;
1312
- }
1313
- acc[key] = (0, smithy_client_1.expectString)(value);
1314
- return acc;
1315
- }, {});
1084
+ return (0, smithy_client_1.take)(output, {
1085
+ Arn: smithy_client_1.expectString,
1086
+ CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1087
+ Name: smithy_client_1.expectString,
1088
+ Status: smithy_client_1.expectString,
1089
+ TargetStatus: smithy_client_1.expectString,
1090
+ });
1316
1091
  };
1317
1092
  const deserializeMetadata = (output) => ({
1318
1093
  httpStatusCode: output.statusCode,