@aws-sdk/client-health 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,11 +1,11 @@
1
1
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
- import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, throwDefaultError, } from "@aws-sdk/smithy-client";
2
+ import { _json, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@aws-sdk/smithy-client";
3
3
  import { HealthServiceException as __BaseException } from "../models/HealthServiceException";
4
4
  import { ConcurrentModificationException, InvalidPaginationToken, UnsupportedLocale, } from "../models/models_0";
5
5
  export const se_DescribeAffectedAccountsForOrganizationCommand = async (input, context) => {
6
6
  const headers = sharedHeaders("DescribeAffectedAccountsForOrganization");
7
7
  let body;
8
- body = JSON.stringify(se_DescribeAffectedAccountsForOrganizationRequest(input, context));
8
+ body = JSON.stringify(_json(input));
9
9
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
10
10
  };
11
11
  export const se_DescribeAffectedEntitiesCommand = async (input, context) => {
@@ -17,13 +17,13 @@ export const se_DescribeAffectedEntitiesCommand = async (input, context) => {
17
17
  export const se_DescribeAffectedEntitiesForOrganizationCommand = async (input, context) => {
18
18
  const headers = sharedHeaders("DescribeAffectedEntitiesForOrganization");
19
19
  let body;
20
- body = JSON.stringify(se_DescribeAffectedEntitiesForOrganizationRequest(input, context));
20
+ body = JSON.stringify(_json(input));
21
21
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
22
22
  };
23
23
  export const se_DescribeEntityAggregatesCommand = async (input, context) => {
24
24
  const headers = sharedHeaders("DescribeEntityAggregates");
25
25
  let body;
26
- body = JSON.stringify(se_DescribeEntityAggregatesRequest(input, context));
26
+ body = JSON.stringify(_json(input));
27
27
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
28
28
  };
29
29
  export const se_DescribeEventAggregatesCommand = async (input, context) => {
@@ -35,13 +35,13 @@ export const se_DescribeEventAggregatesCommand = async (input, context) => {
35
35
  export const se_DescribeEventDetailsCommand = async (input, context) => {
36
36
  const headers = sharedHeaders("DescribeEventDetails");
37
37
  let body;
38
- body = JSON.stringify(se_DescribeEventDetailsRequest(input, context));
38
+ body = JSON.stringify(_json(input));
39
39
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
40
40
  };
41
41
  export const se_DescribeEventDetailsForOrganizationCommand = async (input, context) => {
42
42
  const headers = sharedHeaders("DescribeEventDetailsForOrganization");
43
43
  let body;
44
- body = JSON.stringify(se_DescribeEventDetailsForOrganizationRequest(input, context));
44
+ body = JSON.stringify(_json(input));
45
45
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
46
46
  };
47
47
  export const se_DescribeEventsCommand = async (input, context) => {
@@ -59,7 +59,7 @@ export const se_DescribeEventsForOrganizationCommand = async (input, context) =>
59
59
  export const se_DescribeEventTypesCommand = async (input, context) => {
60
60
  const headers = sharedHeaders("DescribeEventTypes");
61
61
  let body;
62
- body = JSON.stringify(se_DescribeEventTypesRequest(input, context));
62
+ body = JSON.stringify(_json(input));
63
63
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
64
64
  };
65
65
  export const se_DescribeHealthServiceStatusForOrganizationCommand = async (input, context) => {
@@ -83,12 +83,12 @@ export const de_DescribeAffectedAccountsForOrganizationCommand = async (output,
83
83
  }
84
84
  const data = await parseBody(output.body, context);
85
85
  let contents = {};
86
- contents = de_DescribeAffectedAccountsForOrganizationResponse(data, context);
86
+ contents = _json(data);
87
87
  const response = {
88
88
  $metadata: deserializeMetadata(output),
89
89
  ...contents,
90
90
  };
91
- return Promise.resolve(response);
91
+ return response;
92
92
  };
93
93
  const de_DescribeAffectedAccountsForOrganizationCommandError = async (output, context) => {
94
94
  const parsedOutput = {
@@ -102,10 +102,9 @@ const de_DescribeAffectedAccountsForOrganizationCommandError = async (output, co
102
102
  throw await de_InvalidPaginationTokenRes(parsedOutput, context);
103
103
  default:
104
104
  const parsedBody = parsedOutput.body;
105
- throwDefaultError({
105
+ return throwDefaultError({
106
106
  output,
107
107
  parsedBody,
108
- exceptionCtor: __BaseException,
109
108
  errorCode,
110
109
  });
111
110
  }
@@ -121,7 +120,7 @@ export const de_DescribeAffectedEntitiesCommand = async (output, context) => {
121
120
  $metadata: deserializeMetadata(output),
122
121
  ...contents,
123
122
  };
124
- return Promise.resolve(response);
123
+ return response;
125
124
  };
126
125
  const de_DescribeAffectedEntitiesCommandError = async (output, context) => {
127
126
  const parsedOutput = {
@@ -138,10 +137,9 @@ const de_DescribeAffectedEntitiesCommandError = async (output, context) => {
138
137
  throw await de_UnsupportedLocaleRes(parsedOutput, context);
139
138
  default:
140
139
  const parsedBody = parsedOutput.body;
141
- throwDefaultError({
140
+ return throwDefaultError({
142
141
  output,
143
142
  parsedBody,
144
- exceptionCtor: __BaseException,
145
143
  errorCode,
146
144
  });
147
145
  }
@@ -157,7 +155,7 @@ export const de_DescribeAffectedEntitiesForOrganizationCommand = async (output,
157
155
  $metadata: deserializeMetadata(output),
158
156
  ...contents,
159
157
  };
160
- return Promise.resolve(response);
158
+ return response;
161
159
  };
162
160
  const de_DescribeAffectedEntitiesForOrganizationCommandError = async (output, context) => {
163
161
  const parsedOutput = {
@@ -174,10 +172,9 @@ const de_DescribeAffectedEntitiesForOrganizationCommandError = async (output, co
174
172
  throw await de_UnsupportedLocaleRes(parsedOutput, context);
175
173
  default:
176
174
  const parsedBody = parsedOutput.body;
177
- throwDefaultError({
175
+ return throwDefaultError({
178
176
  output,
179
177
  parsedBody,
180
- exceptionCtor: __BaseException,
181
178
  errorCode,
182
179
  });
183
180
  }
@@ -188,12 +185,12 @@ export const de_DescribeEntityAggregatesCommand = async (output, context) => {
188
185
  }
189
186
  const data = await parseBody(output.body, context);
190
187
  let contents = {};
191
- contents = de_DescribeEntityAggregatesResponse(data, context);
188
+ contents = _json(data);
192
189
  const response = {
193
190
  $metadata: deserializeMetadata(output),
194
191
  ...contents,
195
192
  };
196
- return Promise.resolve(response);
193
+ return response;
197
194
  };
198
195
  const de_DescribeEntityAggregatesCommandError = async (output, context) => {
199
196
  const parsedOutput = {
@@ -202,10 +199,9 @@ const de_DescribeEntityAggregatesCommandError = async (output, context) => {
202
199
  };
203
200
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
204
201
  const parsedBody = parsedOutput.body;
205
- throwDefaultError({
202
+ return throwDefaultError({
206
203
  output,
207
204
  parsedBody,
208
- exceptionCtor: __BaseException,
209
205
  errorCode,
210
206
  });
211
207
  };
@@ -215,12 +211,12 @@ export const de_DescribeEventAggregatesCommand = async (output, context) => {
215
211
  }
216
212
  const data = await parseBody(output.body, context);
217
213
  let contents = {};
218
- contents = de_DescribeEventAggregatesResponse(data, context);
214
+ contents = _json(data);
219
215
  const response = {
220
216
  $metadata: deserializeMetadata(output),
221
217
  ...contents,
222
218
  };
223
- return Promise.resolve(response);
219
+ return response;
224
220
  };
225
221
  const de_DescribeEventAggregatesCommandError = async (output, context) => {
226
222
  const parsedOutput = {
@@ -234,10 +230,9 @@ const de_DescribeEventAggregatesCommandError = async (output, context) => {
234
230
  throw await de_InvalidPaginationTokenRes(parsedOutput, context);
235
231
  default:
236
232
  const parsedBody = parsedOutput.body;
237
- throwDefaultError({
233
+ return throwDefaultError({
238
234
  output,
239
235
  parsedBody,
240
- exceptionCtor: __BaseException,
241
236
  errorCode,
242
237
  });
243
238
  }
@@ -253,7 +248,7 @@ export const de_DescribeEventDetailsCommand = async (output, context) => {
253
248
  $metadata: deserializeMetadata(output),
254
249
  ...contents,
255
250
  };
256
- return Promise.resolve(response);
251
+ return response;
257
252
  };
258
253
  const de_DescribeEventDetailsCommandError = async (output, context) => {
259
254
  const parsedOutput = {
@@ -267,10 +262,9 @@ const de_DescribeEventDetailsCommandError = async (output, context) => {
267
262
  throw await de_UnsupportedLocaleRes(parsedOutput, context);
268
263
  default:
269
264
  const parsedBody = parsedOutput.body;
270
- throwDefaultError({
265
+ return throwDefaultError({
271
266
  output,
272
267
  parsedBody,
273
- exceptionCtor: __BaseException,
274
268
  errorCode,
275
269
  });
276
270
  }
@@ -286,7 +280,7 @@ export const de_DescribeEventDetailsForOrganizationCommand = async (output, cont
286
280
  $metadata: deserializeMetadata(output),
287
281
  ...contents,
288
282
  };
289
- return Promise.resolve(response);
283
+ return response;
290
284
  };
291
285
  const de_DescribeEventDetailsForOrganizationCommandError = async (output, context) => {
292
286
  const parsedOutput = {
@@ -300,10 +294,9 @@ const de_DescribeEventDetailsForOrganizationCommandError = async (output, contex
300
294
  throw await de_UnsupportedLocaleRes(parsedOutput, context);
301
295
  default:
302
296
  const parsedBody = parsedOutput.body;
303
- throwDefaultError({
297
+ return throwDefaultError({
304
298
  output,
305
299
  parsedBody,
306
- exceptionCtor: __BaseException,
307
300
  errorCode,
308
301
  });
309
302
  }
@@ -319,7 +312,7 @@ export const de_DescribeEventsCommand = async (output, context) => {
319
312
  $metadata: deserializeMetadata(output),
320
313
  ...contents,
321
314
  };
322
- return Promise.resolve(response);
315
+ return response;
323
316
  };
324
317
  const de_DescribeEventsCommandError = async (output, context) => {
325
318
  const parsedOutput = {
@@ -336,10 +329,9 @@ const de_DescribeEventsCommandError = async (output, context) => {
336
329
  throw await de_UnsupportedLocaleRes(parsedOutput, context);
337
330
  default:
338
331
  const parsedBody = parsedOutput.body;
339
- throwDefaultError({
332
+ return throwDefaultError({
340
333
  output,
341
334
  parsedBody,
342
- exceptionCtor: __BaseException,
343
335
  errorCode,
344
336
  });
345
337
  }
@@ -355,7 +347,7 @@ export const de_DescribeEventsForOrganizationCommand = async (output, context) =
355
347
  $metadata: deserializeMetadata(output),
356
348
  ...contents,
357
349
  };
358
- return Promise.resolve(response);
350
+ return response;
359
351
  };
360
352
  const de_DescribeEventsForOrganizationCommandError = async (output, context) => {
361
353
  const parsedOutput = {
@@ -372,10 +364,9 @@ const de_DescribeEventsForOrganizationCommandError = async (output, context) =>
372
364
  throw await de_UnsupportedLocaleRes(parsedOutput, context);
373
365
  default:
374
366
  const parsedBody = parsedOutput.body;
375
- throwDefaultError({
367
+ return throwDefaultError({
376
368
  output,
377
369
  parsedBody,
378
- exceptionCtor: __BaseException,
379
370
  errorCode,
380
371
  });
381
372
  }
@@ -386,12 +377,12 @@ export const de_DescribeEventTypesCommand = async (output, context) => {
386
377
  }
387
378
  const data = await parseBody(output.body, context);
388
379
  let contents = {};
389
- contents = de_DescribeEventTypesResponse(data, context);
380
+ contents = _json(data);
390
381
  const response = {
391
382
  $metadata: deserializeMetadata(output),
392
383
  ...contents,
393
384
  };
394
- return Promise.resolve(response);
385
+ return response;
395
386
  };
396
387
  const de_DescribeEventTypesCommandError = async (output, context) => {
397
388
  const parsedOutput = {
@@ -408,10 +399,9 @@ const de_DescribeEventTypesCommandError = async (output, context) => {
408
399
  throw await de_UnsupportedLocaleRes(parsedOutput, context);
409
400
  default:
410
401
  const parsedBody = parsedOutput.body;
411
- throwDefaultError({
402
+ return throwDefaultError({
412
403
  output,
413
404
  parsedBody,
414
- exceptionCtor: __BaseException,
415
405
  errorCode,
416
406
  });
417
407
  }
@@ -422,12 +412,12 @@ export const de_DescribeHealthServiceStatusForOrganizationCommand = async (outpu
422
412
  }
423
413
  const data = await parseBody(output.body, context);
424
414
  let contents = {};
425
- contents = de_DescribeHealthServiceStatusForOrganizationResponse(data, context);
415
+ contents = _json(data);
426
416
  const response = {
427
417
  $metadata: deserializeMetadata(output),
428
418
  ...contents,
429
419
  };
430
- return Promise.resolve(response);
420
+ return response;
431
421
  };
432
422
  const de_DescribeHealthServiceStatusForOrganizationCommandError = async (output, context) => {
433
423
  const parsedOutput = {
@@ -436,10 +426,9 @@ const de_DescribeHealthServiceStatusForOrganizationCommandError = async (output,
436
426
  };
437
427
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
438
428
  const parsedBody = parsedOutput.body;
439
- throwDefaultError({
429
+ return throwDefaultError({
440
430
  output,
441
431
  parsedBody,
442
- exceptionCtor: __BaseException,
443
432
  errorCode,
444
433
  });
445
434
  };
@@ -451,7 +440,7 @@ export const de_DisableHealthServiceAccessForOrganizationCommand = async (output
451
440
  const response = {
452
441
  $metadata: deserializeMetadata(output),
453
442
  };
454
- return Promise.resolve(response);
443
+ return response;
455
444
  };
456
445
  const de_DisableHealthServiceAccessForOrganizationCommandError = async (output, context) => {
457
446
  const parsedOutput = {
@@ -465,10 +454,9 @@ const de_DisableHealthServiceAccessForOrganizationCommandError = async (output,
465
454
  throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
466
455
  default:
467
456
  const parsedBody = parsedOutput.body;
468
- throwDefaultError({
457
+ return throwDefaultError({
469
458
  output,
470
459
  parsedBody,
471
- exceptionCtor: __BaseException,
472
460
  errorCode,
473
461
  });
474
462
  }
@@ -481,7 +469,7 @@ export const de_EnableHealthServiceAccessForOrganizationCommand = async (output,
481
469
  const response = {
482
470
  $metadata: deserializeMetadata(output),
483
471
  };
484
- return Promise.resolve(response);
472
+ return response;
485
473
  };
486
474
  const de_EnableHealthServiceAccessForOrganizationCommandError = async (output, context) => {
487
475
  const parsedOutput = {
@@ -495,17 +483,16 @@ const de_EnableHealthServiceAccessForOrganizationCommandError = async (output, c
495
483
  throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
496
484
  default:
497
485
  const parsedBody = parsedOutput.body;
498
- throwDefaultError({
486
+ return throwDefaultError({
499
487
  output,
500
488
  parsedBody,
501
- exceptionCtor: __BaseException,
502
489
  errorCode,
503
490
  });
504
491
  }
505
492
  };
506
493
  const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
507
494
  const body = parsedOutput.body;
508
- const deserialized = de_ConcurrentModificationException(body, context);
495
+ const deserialized = _json(body);
509
496
  const exception = new ConcurrentModificationException({
510
497
  $metadata: deserializeMetadata(parsedOutput),
511
498
  ...deserialized,
@@ -514,7 +501,7 @@ const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
514
501
  };
515
502
  const de_InvalidPaginationTokenRes = async (parsedOutput, context) => {
516
503
  const body = parsedOutput.body;
517
- const deserialized = de_InvalidPaginationToken(body, context);
504
+ const deserialized = _json(body);
518
505
  const exception = new InvalidPaginationToken({
519
506
  $metadata: deserializeMetadata(parsedOutput),
520
507
  ...deserialized,
@@ -523,32 +510,18 @@ const de_InvalidPaginationTokenRes = async (parsedOutput, context) => {
523
510
  };
524
511
  const de_UnsupportedLocaleRes = async (parsedOutput, context) => {
525
512
  const body = parsedOutput.body;
526
- const deserialized = de_UnsupportedLocale(body, context);
513
+ const deserialized = _json(body);
527
514
  const exception = new UnsupportedLocale({
528
515
  $metadata: deserializeMetadata(parsedOutput),
529
516
  ...deserialized,
530
517
  });
531
518
  return __decorateServiceException(exception, body);
532
519
  };
533
- const se_availabilityZones = (input, context) => {
534
- return input
535
- .filter((e) => e != null)
536
- .map((entry) => {
537
- return entry;
538
- });
539
- };
540
- const se_awsAccountIdsList = (input, context) => {
541
- return input
542
- .filter((e) => e != null)
543
- .map((entry) => {
544
- return entry;
545
- });
546
- };
547
520
  const se_DateTimeRange = (input, context) => {
548
- return {
549
- ...(input.from != null && { from: Math.round(input.from.getTime() / 1000) }),
550
- ...(input.to != null && { to: Math.round(input.to.getTime() / 1000) }),
551
- };
521
+ return take(input, {
522
+ from: (_) => Math.round(_.getTime() / 1000),
523
+ to: (_) => Math.round(_.getTime() / 1000),
524
+ });
552
525
  };
553
526
  const se_dateTimeRangeList = (input, context) => {
554
527
  return input
@@ -557,607 +530,213 @@ const se_dateTimeRangeList = (input, context) => {
557
530
  return se_DateTimeRange(entry, context);
558
531
  });
559
532
  };
560
- const se_DescribeAffectedAccountsForOrganizationRequest = (input, context) => {
561
- return {
562
- ...(input.eventArn != null && { eventArn: input.eventArn }),
563
- ...(input.maxResults != null && { maxResults: input.maxResults }),
564
- ...(input.nextToken != null && { nextToken: input.nextToken }),
565
- };
566
- };
567
- const se_DescribeAffectedEntitiesForOrganizationRequest = (input, context) => {
568
- return {
569
- ...(input.locale != null && { locale: input.locale }),
570
- ...(input.maxResults != null && { maxResults: input.maxResults }),
571
- ...(input.nextToken != null && { nextToken: input.nextToken }),
572
- ...(input.organizationEntityFilters != null && {
573
- organizationEntityFilters: se_OrganizationEntityFiltersList(input.organizationEntityFilters, context),
574
- }),
575
- };
576
- };
577
533
  const se_DescribeAffectedEntitiesRequest = (input, context) => {
578
- return {
579
- ...(input.filter != null && { filter: se_EntityFilter(input.filter, context) }),
580
- ...(input.locale != null && { locale: input.locale }),
581
- ...(input.maxResults != null && { maxResults: input.maxResults }),
582
- ...(input.nextToken != null && { nextToken: input.nextToken }),
583
- };
584
- };
585
- const se_DescribeEntityAggregatesRequest = (input, context) => {
586
- return {
587
- ...(input.eventArns != null && { eventArns: se_EventArnsList(input.eventArns, context) }),
588
- };
534
+ return take(input, {
535
+ filter: (_) => se_EntityFilter(_, context),
536
+ locale: [],
537
+ maxResults: [],
538
+ nextToken: [],
539
+ });
589
540
  };
590
541
  const se_DescribeEventAggregatesRequest = (input, context) => {
591
- return {
592
- ...(input.aggregateField != null && { aggregateField: input.aggregateField }),
593
- ...(input.filter != null && { filter: se_EventFilter(input.filter, context) }),
594
- ...(input.maxResults != null && { maxResults: input.maxResults }),
595
- ...(input.nextToken != null && { nextToken: input.nextToken }),
596
- };
597
- };
598
- const se_DescribeEventDetailsForOrganizationRequest = (input, context) => {
599
- return {
600
- ...(input.locale != null && { locale: input.locale }),
601
- ...(input.organizationEventDetailFilters != null && {
602
- organizationEventDetailFilters: se_OrganizationEventDetailFiltersList(input.organizationEventDetailFilters, context),
603
- }),
604
- };
605
- };
606
- const se_DescribeEventDetailsRequest = (input, context) => {
607
- return {
608
- ...(input.eventArns != null && { eventArns: se_eventArnList(input.eventArns, context) }),
609
- ...(input.locale != null && { locale: input.locale }),
610
- };
542
+ return take(input, {
543
+ aggregateField: [],
544
+ filter: (_) => se_EventFilter(_, context),
545
+ maxResults: [],
546
+ nextToken: [],
547
+ });
611
548
  };
612
549
  const se_DescribeEventsForOrganizationRequest = (input, context) => {
613
- return {
614
- ...(input.filter != null && { filter: se_OrganizationEventFilter(input.filter, context) }),
615
- ...(input.locale != null && { locale: input.locale }),
616
- ...(input.maxResults != null && { maxResults: input.maxResults }),
617
- ...(input.nextToken != null && { nextToken: input.nextToken }),
618
- };
550
+ return take(input, {
551
+ filter: (_) => se_OrganizationEventFilter(_, context),
552
+ locale: [],
553
+ maxResults: [],
554
+ nextToken: [],
555
+ });
619
556
  };
620
557
  const se_DescribeEventsRequest = (input, context) => {
621
- return {
622
- ...(input.filter != null && { filter: se_EventFilter(input.filter, context) }),
623
- ...(input.locale != null && { locale: input.locale }),
624
- ...(input.maxResults != null && { maxResults: input.maxResults }),
625
- ...(input.nextToken != null && { nextToken: input.nextToken }),
626
- };
627
- };
628
- const se_DescribeEventTypesRequest = (input, context) => {
629
- return {
630
- ...(input.filter != null && { filter: se_EventTypeFilter(input.filter, context) }),
631
- ...(input.locale != null && { locale: input.locale }),
632
- ...(input.maxResults != null && { maxResults: input.maxResults }),
633
- ...(input.nextToken != null && { nextToken: input.nextToken }),
634
- };
635
- };
636
- const se_entityArnList = (input, context) => {
637
- return input
638
- .filter((e) => e != null)
639
- .map((entry) => {
640
- return entry;
558
+ return take(input, {
559
+ filter: (_) => se_EventFilter(_, context),
560
+ locale: [],
561
+ maxResults: [],
562
+ nextToken: [],
641
563
  });
642
564
  };
643
565
  const se_EntityFilter = (input, context) => {
644
- return {
645
- ...(input.entityArns != null && { entityArns: se_entityArnList(input.entityArns, context) }),
646
- ...(input.entityValues != null && { entityValues: se_entityValueList(input.entityValues, context) }),
647
- ...(input.eventArns != null && { eventArns: se_eventArnList(input.eventArns, context) }),
648
- ...(input.lastUpdatedTimes != null && { lastUpdatedTimes: se_dateTimeRangeList(input.lastUpdatedTimes, context) }),
649
- ...(input.statusCodes != null && { statusCodes: se_entityStatusCodeList(input.statusCodes, context) }),
650
- ...(input.tags != null && { tags: se_tagFilter(input.tags, context) }),
651
- };
652
- };
653
- const se_entityStatusCodeList = (input, context) => {
654
- return input
655
- .filter((e) => e != null)
656
- .map((entry) => {
657
- return entry;
658
- });
659
- };
660
- const se_entityValueList = (input, context) => {
661
- return input
662
- .filter((e) => e != null)
663
- .map((entry) => {
664
- return entry;
665
- });
666
- };
667
- const se_EventAccountFilter = (input, context) => {
668
- return {
669
- ...(input.awsAccountId != null && { awsAccountId: input.awsAccountId }),
670
- ...(input.eventArn != null && { eventArn: input.eventArn }),
671
- };
672
- };
673
- const se_eventArnList = (input, context) => {
674
- return input
675
- .filter((e) => e != null)
676
- .map((entry) => {
677
- return entry;
678
- });
679
- };
680
- const se_EventArnsList = (input, context) => {
681
- return input
682
- .filter((e) => e != null)
683
- .map((entry) => {
684
- return entry;
566
+ return take(input, {
567
+ entityArns: _json,
568
+ entityValues: _json,
569
+ eventArns: _json,
570
+ lastUpdatedTimes: (_) => se_dateTimeRangeList(_, context),
571
+ statusCodes: _json,
572
+ tags: _json,
685
573
  });
686
574
  };
687
575
  const se_EventFilter = (input, context) => {
688
- return {
689
- ...(input.availabilityZones != null && {
690
- availabilityZones: se_availabilityZones(input.availabilityZones, context),
691
- }),
692
- ...(input.endTimes != null && { endTimes: se_dateTimeRangeList(input.endTimes, context) }),
693
- ...(input.entityArns != null && { entityArns: se_entityArnList(input.entityArns, context) }),
694
- ...(input.entityValues != null && { entityValues: se_entityValueList(input.entityValues, context) }),
695
- ...(input.eventArns != null && { eventArns: se_eventArnList(input.eventArns, context) }),
696
- ...(input.eventStatusCodes != null && {
697
- eventStatusCodes: se_eventStatusCodeList(input.eventStatusCodes, context),
698
- }),
699
- ...(input.eventTypeCategories != null && {
700
- eventTypeCategories: se_eventTypeCategoryList2(input.eventTypeCategories, context),
701
- }),
702
- ...(input.eventTypeCodes != null && { eventTypeCodes: se_eventTypeList2(input.eventTypeCodes, context) }),
703
- ...(input.lastUpdatedTimes != null && { lastUpdatedTimes: se_dateTimeRangeList(input.lastUpdatedTimes, context) }),
704
- ...(input.regions != null && { regions: se_regionList(input.regions, context) }),
705
- ...(input.services != null && { services: se_serviceList(input.services, context) }),
706
- ...(input.startTimes != null && { startTimes: se_dateTimeRangeList(input.startTimes, context) }),
707
- ...(input.tags != null && { tags: se_tagFilter(input.tags, context) }),
708
- };
709
- };
710
- const se_eventStatusCodeList = (input, context) => {
711
- return input
712
- .filter((e) => e != null)
713
- .map((entry) => {
714
- return entry;
715
- });
716
- };
717
- const se_EventTypeCategoryList = (input, context) => {
718
- return input
719
- .filter((e) => e != null)
720
- .map((entry) => {
721
- return entry;
722
- });
723
- };
724
- const se_eventTypeCategoryList2 = (input, context) => {
725
- return input
726
- .filter((e) => e != null)
727
- .map((entry) => {
728
- return entry;
729
- });
730
- };
731
- const se_EventTypeCodeList = (input, context) => {
732
- return input
733
- .filter((e) => e != null)
734
- .map((entry) => {
735
- return entry;
736
- });
737
- };
738
- const se_EventTypeFilter = (input, context) => {
739
- return {
740
- ...(input.eventTypeCategories != null && {
741
- eventTypeCategories: se_EventTypeCategoryList(input.eventTypeCategories, context),
742
- }),
743
- ...(input.eventTypeCodes != null && { eventTypeCodes: se_EventTypeCodeList(input.eventTypeCodes, context) }),
744
- ...(input.services != null && { services: se_serviceList(input.services, context) }),
745
- };
746
- };
747
- const se_eventTypeList2 = (input, context) => {
748
- return input
749
- .filter((e) => e != null)
750
- .map((entry) => {
751
- return entry;
752
- });
753
- };
754
- const se_OrganizationEntityFiltersList = (input, context) => {
755
- return input
756
- .filter((e) => e != null)
757
- .map((entry) => {
758
- return se_EventAccountFilter(entry, context);
759
- });
760
- };
761
- const se_OrganizationEventDetailFiltersList = (input, context) => {
762
- return input
763
- .filter((e) => e != null)
764
- .map((entry) => {
765
- return se_EventAccountFilter(entry, context);
576
+ return take(input, {
577
+ availabilityZones: _json,
578
+ endTimes: (_) => se_dateTimeRangeList(_, context),
579
+ entityArns: _json,
580
+ entityValues: _json,
581
+ eventArns: _json,
582
+ eventStatusCodes: _json,
583
+ eventTypeCategories: _json,
584
+ eventTypeCodes: _json,
585
+ lastUpdatedTimes: (_) => se_dateTimeRangeList(_, context),
586
+ regions: _json,
587
+ services: _json,
588
+ startTimes: (_) => se_dateTimeRangeList(_, context),
589
+ tags: _json,
766
590
  });
767
591
  };
768
592
  const se_OrganizationEventFilter = (input, context) => {
769
- return {
770
- ...(input.awsAccountIds != null && { awsAccountIds: se_awsAccountIdsList(input.awsAccountIds, context) }),
771
- ...(input.endTime != null && { endTime: se_DateTimeRange(input.endTime, context) }),
772
- ...(input.entityArns != null && { entityArns: se_entityArnList(input.entityArns, context) }),
773
- ...(input.entityValues != null && { entityValues: se_entityValueList(input.entityValues, context) }),
774
- ...(input.eventStatusCodes != null && {
775
- eventStatusCodes: se_eventStatusCodeList(input.eventStatusCodes, context),
776
- }),
777
- ...(input.eventTypeCategories != null && {
778
- eventTypeCategories: se_eventTypeCategoryList2(input.eventTypeCategories, context),
779
- }),
780
- ...(input.eventTypeCodes != null && { eventTypeCodes: se_eventTypeList2(input.eventTypeCodes, context) }),
781
- ...(input.lastUpdatedTime != null && { lastUpdatedTime: se_DateTimeRange(input.lastUpdatedTime, context) }),
782
- ...(input.regions != null && { regions: se_regionList(input.regions, context) }),
783
- ...(input.services != null && { services: se_serviceList(input.services, context) }),
784
- ...(input.startTime != null && { startTime: se_DateTimeRange(input.startTime, context) }),
785
- };
786
- };
787
- const se_regionList = (input, context) => {
788
- return input
789
- .filter((e) => e != null)
790
- .map((entry) => {
791
- return entry;
792
- });
793
- };
794
- const se_serviceList = (input, context) => {
795
- return input
796
- .filter((e) => e != null)
797
- .map((entry) => {
798
- return entry;
593
+ return take(input, {
594
+ awsAccountIds: _json,
595
+ endTime: (_) => se_DateTimeRange(_, context),
596
+ entityArns: _json,
597
+ entityValues: _json,
598
+ eventStatusCodes: _json,
599
+ eventTypeCategories: _json,
600
+ eventTypeCodes: _json,
601
+ lastUpdatedTime: (_) => se_DateTimeRange(_, context),
602
+ regions: _json,
603
+ services: _json,
604
+ startTime: (_) => se_DateTimeRange(_, context),
799
605
  });
800
606
  };
801
- const se_tagFilter = (input, context) => {
802
- return input
803
- .filter((e) => e != null)
804
- .map((entry) => {
805
- return se_tagSet(entry, context);
806
- });
807
- };
808
- const se_tagSet = (input, context) => {
809
- return Object.entries(input).reduce((acc, [key, value]) => {
810
- if (value === null) {
811
- return acc;
812
- }
813
- acc[key] = value;
814
- return acc;
815
- }, {});
816
- };
817
- const de_affectedAccountsList = (output, context) => {
818
- const retVal = (output || [])
819
- .filter((e) => e != null)
820
- .map((entry) => {
821
- if (entry === null) {
822
- return null;
823
- }
824
- return __expectString(entry);
825
- });
826
- return retVal;
827
- };
828
607
  const de_AffectedEntity = (output, context) => {
829
- return {
830
- awsAccountId: __expectString(output.awsAccountId),
831
- entityArn: __expectString(output.entityArn),
832
- entityUrl: __expectString(output.entityUrl),
833
- entityValue: __expectString(output.entityValue),
834
- eventArn: __expectString(output.eventArn),
835
- lastUpdatedTime: output.lastUpdatedTime != null
836
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedTime)))
837
- : undefined,
838
- statusCode: __expectString(output.statusCode),
839
- tags: output.tags != null ? de_tagSet(output.tags, context) : undefined,
840
- };
841
- };
842
- const de_ConcurrentModificationException = (output, context) => {
843
- return {
844
- message: __expectString(output.message),
845
- };
846
- };
847
- const de_DescribeAffectedAccountsForOrganizationResponse = (output, context) => {
848
- return {
849
- affectedAccounts: output.affectedAccounts != null ? de_affectedAccountsList(output.affectedAccounts, context) : undefined,
850
- eventScopeCode: __expectString(output.eventScopeCode),
851
- nextToken: __expectString(output.nextToken),
852
- };
853
- };
854
- const de_DescribeAffectedEntitiesForOrganizationFailedSet = (output, context) => {
855
- const retVal = (output || [])
856
- .filter((e) => e != null)
857
- .map((entry) => {
858
- if (entry === null) {
859
- return null;
860
- }
861
- return de_OrganizationAffectedEntitiesErrorItem(entry, context);
608
+ return take(output, {
609
+ awsAccountId: __expectString,
610
+ entityArn: __expectString,
611
+ entityUrl: __expectString,
612
+ entityValue: __expectString,
613
+ eventArn: __expectString,
614
+ lastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
615
+ statusCode: __expectString,
616
+ tags: _json,
862
617
  });
863
- return retVal;
864
618
  };
865
619
  const de_DescribeAffectedEntitiesForOrganizationResponse = (output, context) => {
866
- return {
867
- entities: output.entities != null ? de_EntityList(output.entities, context) : undefined,
868
- failedSet: output.failedSet != null
869
- ? de_DescribeAffectedEntitiesForOrganizationFailedSet(output.failedSet, context)
870
- : undefined,
871
- nextToken: __expectString(output.nextToken),
872
- };
873
- };
874
- const de_DescribeAffectedEntitiesResponse = (output, context) => {
875
- return {
876
- entities: output.entities != null ? de_EntityList(output.entities, context) : undefined,
877
- nextToken: __expectString(output.nextToken),
878
- };
879
- };
880
- const de_DescribeEntityAggregatesResponse = (output, context) => {
881
- return {
882
- entityAggregates: output.entityAggregates != null ? de_EntityAggregateList(output.entityAggregates, context) : undefined,
883
- };
884
- };
885
- const de_DescribeEventAggregatesResponse = (output, context) => {
886
- return {
887
- eventAggregates: output.eventAggregates != null ? de_EventAggregateList(output.eventAggregates, context) : undefined,
888
- nextToken: __expectString(output.nextToken),
889
- };
890
- };
891
- const de_DescribeEventDetailsFailedSet = (output, context) => {
892
- const retVal = (output || [])
893
- .filter((e) => e != null)
894
- .map((entry) => {
895
- if (entry === null) {
896
- return null;
897
- }
898
- return de_EventDetailsErrorItem(entry, context);
620
+ return take(output, {
621
+ entities: (_) => de_EntityList(_, context),
622
+ failedSet: _json,
623
+ nextToken: __expectString,
899
624
  });
900
- return retVal;
901
625
  };
902
- const de_DescribeEventDetailsForOrganizationFailedSet = (output, context) => {
903
- const retVal = (output || [])
904
- .filter((e) => e != null)
905
- .map((entry) => {
906
- if (entry === null) {
907
- return null;
908
- }
909
- return de_OrganizationEventDetailsErrorItem(entry, context);
626
+ const de_DescribeAffectedEntitiesResponse = (output, context) => {
627
+ return take(output, {
628
+ entities: (_) => de_EntityList(_, context),
629
+ nextToken: __expectString,
910
630
  });
911
- return retVal;
912
631
  };
913
632
  const de_DescribeEventDetailsForOrganizationResponse = (output, context) => {
914
- return {
915
- failedSet: output.failedSet != null ? de_DescribeEventDetailsForOrganizationFailedSet(output.failedSet, context) : undefined,
916
- successfulSet: output.successfulSet != null
917
- ? de_DescribeEventDetailsForOrganizationSuccessfulSet(output.successfulSet, context)
918
- : undefined,
919
- };
633
+ return take(output, {
634
+ failedSet: _json,
635
+ successfulSet: (_) => de_DescribeEventDetailsForOrganizationSuccessfulSet(_, context),
636
+ });
920
637
  };
921
638
  const de_DescribeEventDetailsForOrganizationSuccessfulSet = (output, context) => {
922
639
  const retVal = (output || [])
923
640
  .filter((e) => e != null)
924
641
  .map((entry) => {
925
- if (entry === null) {
926
- return null;
927
- }
928
642
  return de_OrganizationEventDetails(entry, context);
929
643
  });
930
644
  return retVal;
931
645
  };
932
646
  const de_DescribeEventDetailsResponse = (output, context) => {
933
- return {
934
- failedSet: output.failedSet != null ? de_DescribeEventDetailsFailedSet(output.failedSet, context) : undefined,
935
- successfulSet: output.successfulSet != null ? de_DescribeEventDetailsSuccessfulSet(output.successfulSet, context) : undefined,
936
- };
647
+ return take(output, {
648
+ failedSet: _json,
649
+ successfulSet: (_) => de_DescribeEventDetailsSuccessfulSet(_, context),
650
+ });
937
651
  };
938
652
  const de_DescribeEventDetailsSuccessfulSet = (output, context) => {
939
653
  const retVal = (output || [])
940
654
  .filter((e) => e != null)
941
655
  .map((entry) => {
942
- if (entry === null) {
943
- return null;
944
- }
945
656
  return de_EventDetails(entry, context);
946
657
  });
947
658
  return retVal;
948
659
  };
949
660
  const de_DescribeEventsForOrganizationResponse = (output, context) => {
950
- return {
951
- events: output.events != null ? de_OrganizationEventList(output.events, context) : undefined,
952
- nextToken: __expectString(output.nextToken),
953
- };
661
+ return take(output, {
662
+ events: (_) => de_OrganizationEventList(_, context),
663
+ nextToken: __expectString,
664
+ });
954
665
  };
955
666
  const de_DescribeEventsResponse = (output, context) => {
956
- return {
957
- events: output.events != null ? de_EventList(output.events, context) : undefined,
958
- nextToken: __expectString(output.nextToken),
959
- };
960
- };
961
- const de_DescribeEventTypesResponse = (output, context) => {
962
- return {
963
- eventTypes: output.eventTypes != null ? de_EventTypeList(output.eventTypes, context) : undefined,
964
- nextToken: __expectString(output.nextToken),
965
- };
966
- };
967
- const de_DescribeHealthServiceStatusForOrganizationResponse = (output, context) => {
968
- return {
969
- healthServiceAccessStatusForOrganization: __expectString(output.healthServiceAccessStatusForOrganization),
970
- };
971
- };
972
- const de_EntityAggregate = (output, context) => {
973
- return {
974
- count: __expectInt32(output.count),
975
- eventArn: __expectString(output.eventArn),
976
- };
977
- };
978
- const de_EntityAggregateList = (output, context) => {
979
- const retVal = (output || [])
980
- .filter((e) => e != null)
981
- .map((entry) => {
982
- if (entry === null) {
983
- return null;
984
- }
985
- return de_EntityAggregate(entry, context);
667
+ return take(output, {
668
+ events: (_) => de_EventList(_, context),
669
+ nextToken: __expectString,
986
670
  });
987
- return retVal;
988
671
  };
989
672
  const de_EntityList = (output, context) => {
990
673
  const retVal = (output || [])
991
674
  .filter((e) => e != null)
992
675
  .map((entry) => {
993
- if (entry === null) {
994
- return null;
995
- }
996
676
  return de_AffectedEntity(entry, context);
997
677
  });
998
678
  return retVal;
999
679
  };
1000
680
  const de_Event = (output, context) => {
1001
- return {
1002
- arn: __expectString(output.arn),
1003
- availabilityZone: __expectString(output.availabilityZone),
1004
- endTime: output.endTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.endTime))) : undefined,
1005
- eventScopeCode: __expectString(output.eventScopeCode),
1006
- eventTypeCategory: __expectString(output.eventTypeCategory),
1007
- eventTypeCode: __expectString(output.eventTypeCode),
1008
- lastUpdatedTime: output.lastUpdatedTime != null
1009
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedTime)))
1010
- : undefined,
1011
- region: __expectString(output.region),
1012
- service: __expectString(output.service),
1013
- startTime: output.startTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime))) : undefined,
1014
- statusCode: __expectString(output.statusCode),
1015
- };
1016
- };
1017
- const de_EventAggregate = (output, context) => {
1018
- return {
1019
- aggregateValue: __expectString(output.aggregateValue),
1020
- count: __expectInt32(output.count),
1021
- };
1022
- };
1023
- const de_EventAggregateList = (output, context) => {
1024
- const retVal = (output || [])
1025
- .filter((e) => e != null)
1026
- .map((entry) => {
1027
- if (entry === null) {
1028
- return null;
1029
- }
1030
- return de_EventAggregate(entry, context);
681
+ return take(output, {
682
+ arn: __expectString,
683
+ availabilityZone: __expectString,
684
+ endTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
685
+ eventScopeCode: __expectString,
686
+ eventTypeCategory: __expectString,
687
+ eventTypeCode: __expectString,
688
+ lastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
689
+ region: __expectString,
690
+ service: __expectString,
691
+ startTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
692
+ statusCode: __expectString,
1031
693
  });
1032
- return retVal;
1033
- };
1034
- const de_EventDescription = (output, context) => {
1035
- return {
1036
- latestDescription: __expectString(output.latestDescription),
1037
- };
1038
694
  };
1039
695
  const de_EventDetails = (output, context) => {
1040
- return {
1041
- event: output.event != null ? de_Event(output.event, context) : undefined,
1042
- eventDescription: output.eventDescription != null ? de_EventDescription(output.eventDescription, context) : undefined,
1043
- eventMetadata: output.eventMetadata != null ? de_eventMetadata(output.eventMetadata, context) : undefined,
1044
- };
1045
- };
1046
- const de_EventDetailsErrorItem = (output, context) => {
1047
- return {
1048
- errorMessage: __expectString(output.errorMessage),
1049
- errorName: __expectString(output.errorName),
1050
- eventArn: __expectString(output.eventArn),
1051
- };
696
+ return take(output, {
697
+ event: (_) => de_Event(_, context),
698
+ eventDescription: _json,
699
+ eventMetadata: _json,
700
+ });
1052
701
  };
1053
702
  const de_EventList = (output, context) => {
1054
703
  const retVal = (output || [])
1055
704
  .filter((e) => e != null)
1056
705
  .map((entry) => {
1057
- if (entry === null) {
1058
- return null;
1059
- }
1060
706
  return de_Event(entry, context);
1061
707
  });
1062
708
  return retVal;
1063
709
  };
1064
- const de_eventMetadata = (output, context) => {
1065
- return Object.entries(output).reduce((acc, [key, value]) => {
1066
- if (value === null) {
1067
- return acc;
1068
- }
1069
- acc[key] = __expectString(value);
1070
- return acc;
1071
- }, {});
1072
- };
1073
- const de_EventType = (output, context) => {
1074
- return {
1075
- category: __expectString(output.category),
1076
- code: __expectString(output.code),
1077
- service: __expectString(output.service),
1078
- };
1079
- };
1080
- const de_EventTypeList = (output, context) => {
1081
- const retVal = (output || [])
1082
- .filter((e) => e != null)
1083
- .map((entry) => {
1084
- if (entry === null) {
1085
- return null;
1086
- }
1087
- return de_EventType(entry, context);
1088
- });
1089
- return retVal;
1090
- };
1091
- const de_InvalidPaginationToken = (output, context) => {
1092
- return {
1093
- message: __expectString(output.message),
1094
- };
1095
- };
1096
- const de_OrganizationAffectedEntitiesErrorItem = (output, context) => {
1097
- return {
1098
- awsAccountId: __expectString(output.awsAccountId),
1099
- errorMessage: __expectString(output.errorMessage),
1100
- errorName: __expectString(output.errorName),
1101
- eventArn: __expectString(output.eventArn),
1102
- };
1103
- };
1104
710
  const de_OrganizationEvent = (output, context) => {
1105
- return {
1106
- arn: __expectString(output.arn),
1107
- endTime: output.endTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.endTime))) : undefined,
1108
- eventScopeCode: __expectString(output.eventScopeCode),
1109
- eventTypeCategory: __expectString(output.eventTypeCategory),
1110
- eventTypeCode: __expectString(output.eventTypeCode),
1111
- lastUpdatedTime: output.lastUpdatedTime != null
1112
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedTime)))
1113
- : undefined,
1114
- region: __expectString(output.region),
1115
- service: __expectString(output.service),
1116
- startTime: output.startTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime))) : undefined,
1117
- statusCode: __expectString(output.statusCode),
1118
- };
711
+ return take(output, {
712
+ arn: __expectString,
713
+ endTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
714
+ eventScopeCode: __expectString,
715
+ eventTypeCategory: __expectString,
716
+ eventTypeCode: __expectString,
717
+ lastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
718
+ region: __expectString,
719
+ service: __expectString,
720
+ startTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
721
+ statusCode: __expectString,
722
+ });
1119
723
  };
1120
724
  const de_OrganizationEventDetails = (output, context) => {
1121
- return {
1122
- awsAccountId: __expectString(output.awsAccountId),
1123
- event: output.event != null ? de_Event(output.event, context) : undefined,
1124
- eventDescription: output.eventDescription != null ? de_EventDescription(output.eventDescription, context) : undefined,
1125
- eventMetadata: output.eventMetadata != null ? de_eventMetadata(output.eventMetadata, context) : undefined,
1126
- };
1127
- };
1128
- const de_OrganizationEventDetailsErrorItem = (output, context) => {
1129
- return {
1130
- awsAccountId: __expectString(output.awsAccountId),
1131
- errorMessage: __expectString(output.errorMessage),
1132
- errorName: __expectString(output.errorName),
1133
- eventArn: __expectString(output.eventArn),
1134
- };
725
+ return take(output, {
726
+ awsAccountId: __expectString,
727
+ event: (_) => de_Event(_, context),
728
+ eventDescription: _json,
729
+ eventMetadata: _json,
730
+ });
1135
731
  };
1136
732
  const de_OrganizationEventList = (output, context) => {
1137
733
  const retVal = (output || [])
1138
734
  .filter((e) => e != null)
1139
735
  .map((entry) => {
1140
- if (entry === null) {
1141
- return null;
1142
- }
1143
736
  return de_OrganizationEvent(entry, context);
1144
737
  });
1145
738
  return retVal;
1146
739
  };
1147
- const de_tagSet = (output, context) => {
1148
- return Object.entries(output).reduce((acc, [key, value]) => {
1149
- if (value === null) {
1150
- return acc;
1151
- }
1152
- acc[key] = __expectString(value);
1153
- return acc;
1154
- }, {});
1155
- };
1156
- const de_UnsupportedLocale = (output, context) => {
1157
- return {
1158
- message: __expectString(output.message),
1159
- };
1160
- };
1161
740
  const deserializeMetadata = (output) => ({
1162
741
  httpStatusCode: output.statusCode,
1163
742
  requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
@@ -1171,6 +750,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
1171
750
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
1172
751
  };
1173
752
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
753
+ const throwDefaultError = withBaseException(__BaseException);
1174
754
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
1175
755
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1176
756
  const contents = {