@aws-sdk/client-account 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.
@@ -12,10 +12,10 @@ const se_DeleteAlternateContactCommand = async (input, context) => {
12
12
  };
13
13
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/deleteAlternateContact";
14
14
  let body;
15
- body = JSON.stringify({
16
- ...(input.AccountId != null && { AccountId: input.AccountId }),
17
- ...(input.AlternateContactType != null && { AlternateContactType: input.AlternateContactType }),
18
- });
15
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
16
+ AccountId: [],
17
+ AlternateContactType: [],
18
+ }));
19
19
  return new protocol_http_1.HttpRequest({
20
20
  protocol,
21
21
  hostname,
@@ -34,10 +34,10 @@ const se_DisableRegionCommand = async (input, context) => {
34
34
  };
35
35
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/disableRegion";
36
36
  let body;
37
- body = JSON.stringify({
38
- ...(input.AccountId != null && { AccountId: input.AccountId }),
39
- ...(input.RegionName != null && { RegionName: input.RegionName }),
40
- });
37
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
38
+ AccountId: [],
39
+ RegionName: [],
40
+ }));
41
41
  return new protocol_http_1.HttpRequest({
42
42
  protocol,
43
43
  hostname,
@@ -56,10 +56,10 @@ const se_EnableRegionCommand = async (input, context) => {
56
56
  };
57
57
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/enableRegion";
58
58
  let body;
59
- body = JSON.stringify({
60
- ...(input.AccountId != null && { AccountId: input.AccountId }),
61
- ...(input.RegionName != null && { RegionName: input.RegionName }),
62
- });
59
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
60
+ AccountId: [],
61
+ RegionName: [],
62
+ }));
63
63
  return new protocol_http_1.HttpRequest({
64
64
  protocol,
65
65
  hostname,
@@ -78,10 +78,10 @@ const se_GetAlternateContactCommand = async (input, context) => {
78
78
  };
79
79
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/getAlternateContact";
80
80
  let body;
81
- body = JSON.stringify({
82
- ...(input.AccountId != null && { AccountId: input.AccountId }),
83
- ...(input.AlternateContactType != null && { AlternateContactType: input.AlternateContactType }),
84
- });
81
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
82
+ AccountId: [],
83
+ AlternateContactType: [],
84
+ }));
85
85
  return new protocol_http_1.HttpRequest({
86
86
  protocol,
87
87
  hostname,
@@ -100,9 +100,9 @@ const se_GetContactInformationCommand = async (input, context) => {
100
100
  };
101
101
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/getContactInformation";
102
102
  let body;
103
- body = JSON.stringify({
104
- ...(input.AccountId != null && { AccountId: input.AccountId }),
105
- });
103
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
104
+ AccountId: [],
105
+ }));
106
106
  return new protocol_http_1.HttpRequest({
107
107
  protocol,
108
108
  hostname,
@@ -121,10 +121,10 @@ const se_GetRegionOptStatusCommand = async (input, context) => {
121
121
  };
122
122
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/getRegionOptStatus";
123
123
  let body;
124
- body = JSON.stringify({
125
- ...(input.AccountId != null && { AccountId: input.AccountId }),
126
- ...(input.RegionName != null && { RegionName: input.RegionName }),
127
- });
124
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
125
+ AccountId: [],
126
+ RegionName: [],
127
+ }));
128
128
  return new protocol_http_1.HttpRequest({
129
129
  protocol,
130
130
  hostname,
@@ -143,14 +143,12 @@ const se_ListRegionsCommand = async (input, context) => {
143
143
  };
144
144
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listRegions";
145
145
  let body;
146
- body = JSON.stringify({
147
- ...(input.AccountId != null && { AccountId: input.AccountId }),
148
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
149
- ...(input.NextToken != null && { NextToken: input.NextToken }),
150
- ...(input.RegionOptStatusContains != null && {
151
- RegionOptStatusContains: se_RegionOptStatusList(input.RegionOptStatusContains, context),
152
- }),
153
- });
146
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
147
+ AccountId: [],
148
+ MaxResults: [],
149
+ NextToken: [],
150
+ RegionOptStatusContains: (_) => (0, smithy_client_1._json)(_),
151
+ }));
154
152
  return new protocol_http_1.HttpRequest({
155
153
  protocol,
156
154
  hostname,
@@ -169,14 +167,14 @@ const se_PutAlternateContactCommand = async (input, context) => {
169
167
  };
170
168
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/putAlternateContact";
171
169
  let body;
172
- body = JSON.stringify({
173
- ...(input.AccountId != null && { AccountId: input.AccountId }),
174
- ...(input.AlternateContactType != null && { AlternateContactType: input.AlternateContactType }),
175
- ...(input.EmailAddress != null && { EmailAddress: input.EmailAddress }),
176
- ...(input.Name != null && { Name: input.Name }),
177
- ...(input.PhoneNumber != null && { PhoneNumber: input.PhoneNumber }),
178
- ...(input.Title != null && { Title: input.Title }),
179
- });
170
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
171
+ AccountId: [],
172
+ AlternateContactType: [],
173
+ EmailAddress: [],
174
+ Name: [],
175
+ PhoneNumber: [],
176
+ Title: [],
177
+ }));
180
178
  return new protocol_http_1.HttpRequest({
181
179
  protocol,
182
180
  hostname,
@@ -195,12 +193,10 @@ const se_PutContactInformationCommand = async (input, context) => {
195
193
  };
196
194
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/putContactInformation";
197
195
  let body;
198
- body = JSON.stringify({
199
- ...(input.AccountId != null && { AccountId: input.AccountId }),
200
- ...(input.ContactInformation != null && {
201
- ContactInformation: se_ContactInformation(input.ContactInformation, context),
202
- }),
203
- });
196
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
197
+ AccountId: [],
198
+ ContactInformation: (_) => (0, smithy_client_1._json)(_),
199
+ }));
204
200
  return new protocol_http_1.HttpRequest({
205
201
  protocol,
206
202
  hostname,
@@ -216,7 +212,7 @@ const de_DeleteAlternateContactCommand = async (output, context) => {
216
212
  if (output.statusCode !== 200 && output.statusCode >= 300) {
217
213
  return de_DeleteAlternateContactCommandError(output, context);
218
214
  }
219
- const contents = map({
215
+ const contents = (0, smithy_client_1.map)({
220
216
  $metadata: deserializeMetadata(output),
221
217
  });
222
218
  await collectBody(output.body, context);
@@ -247,10 +243,9 @@ const de_DeleteAlternateContactCommandError = async (output, context) => {
247
243
  throw await de_ValidationExceptionRes(parsedOutput, context);
248
244
  default:
249
245
  const parsedBody = parsedOutput.body;
250
- (0, smithy_client_1.throwDefaultError)({
246
+ return throwDefaultError({
251
247
  output,
252
248
  parsedBody,
253
- exceptionCtor: AccountServiceException_1.AccountServiceException,
254
249
  errorCode,
255
250
  });
256
251
  }
@@ -259,7 +254,7 @@ const de_DisableRegionCommand = async (output, context) => {
259
254
  if (output.statusCode !== 200 && output.statusCode >= 300) {
260
255
  return de_DisableRegionCommandError(output, context);
261
256
  }
262
- const contents = map({
257
+ const contents = (0, smithy_client_1.map)({
263
258
  $metadata: deserializeMetadata(output),
264
259
  });
265
260
  await collectBody(output.body, context);
@@ -290,10 +285,9 @@ const de_DisableRegionCommandError = async (output, context) => {
290
285
  throw await de_ValidationExceptionRes(parsedOutput, context);
291
286
  default:
292
287
  const parsedBody = parsedOutput.body;
293
- (0, smithy_client_1.throwDefaultError)({
288
+ return throwDefaultError({
294
289
  output,
295
290
  parsedBody,
296
- exceptionCtor: AccountServiceException_1.AccountServiceException,
297
291
  errorCode,
298
292
  });
299
293
  }
@@ -302,7 +296,7 @@ const de_EnableRegionCommand = async (output, context) => {
302
296
  if (output.statusCode !== 200 && output.statusCode >= 300) {
303
297
  return de_EnableRegionCommandError(output, context);
304
298
  }
305
- const contents = map({
299
+ const contents = (0, smithy_client_1.map)({
306
300
  $metadata: deserializeMetadata(output),
307
301
  });
308
302
  await collectBody(output.body, context);
@@ -333,10 +327,9 @@ const de_EnableRegionCommandError = async (output, context) => {
333
327
  throw await de_ValidationExceptionRes(parsedOutput, context);
334
328
  default:
335
329
  const parsedBody = parsedOutput.body;
336
- (0, smithy_client_1.throwDefaultError)({
330
+ return throwDefaultError({
337
331
  output,
338
332
  parsedBody,
339
- exceptionCtor: AccountServiceException_1.AccountServiceException,
340
333
  errorCode,
341
334
  });
342
335
  }
@@ -345,13 +338,14 @@ const de_GetAlternateContactCommand = async (output, context) => {
345
338
  if (output.statusCode !== 200 && output.statusCode >= 300) {
346
339
  return de_GetAlternateContactCommandError(output, context);
347
340
  }
348
- const contents = map({
341
+ const contents = (0, smithy_client_1.map)({
349
342
  $metadata: deserializeMetadata(output),
350
343
  });
351
344
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
352
- if (data.AlternateContact != null) {
353
- contents.AlternateContact = de_AlternateContact(data.AlternateContact, context);
354
- }
345
+ const doc = (0, smithy_client_1.take)(data, {
346
+ AlternateContact: smithy_client_1._json,
347
+ });
348
+ Object.assign(contents, doc);
355
349
  return contents;
356
350
  };
357
351
  exports.de_GetAlternateContactCommand = de_GetAlternateContactCommand;
@@ -379,10 +373,9 @@ const de_GetAlternateContactCommandError = async (output, context) => {
379
373
  throw await de_ValidationExceptionRes(parsedOutput, context);
380
374
  default:
381
375
  const parsedBody = parsedOutput.body;
382
- (0, smithy_client_1.throwDefaultError)({
376
+ return throwDefaultError({
383
377
  output,
384
378
  parsedBody,
385
- exceptionCtor: AccountServiceException_1.AccountServiceException,
386
379
  errorCode,
387
380
  });
388
381
  }
@@ -391,13 +384,14 @@ const de_GetContactInformationCommand = async (output, context) => {
391
384
  if (output.statusCode !== 200 && output.statusCode >= 300) {
392
385
  return de_GetContactInformationCommandError(output, context);
393
386
  }
394
- const contents = map({
387
+ const contents = (0, smithy_client_1.map)({
395
388
  $metadata: deserializeMetadata(output),
396
389
  });
397
390
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
398
- if (data.ContactInformation != null) {
399
- contents.ContactInformation = de_ContactInformation(data.ContactInformation, context);
400
- }
391
+ const doc = (0, smithy_client_1.take)(data, {
392
+ ContactInformation: smithy_client_1._json,
393
+ });
394
+ Object.assign(contents, doc);
401
395
  return contents;
402
396
  };
403
397
  exports.de_GetContactInformationCommand = de_GetContactInformationCommand;
@@ -425,10 +419,9 @@ const de_GetContactInformationCommandError = async (output, context) => {
425
419
  throw await de_ValidationExceptionRes(parsedOutput, context);
426
420
  default:
427
421
  const parsedBody = parsedOutput.body;
428
- (0, smithy_client_1.throwDefaultError)({
422
+ return throwDefaultError({
429
423
  output,
430
424
  parsedBody,
431
- exceptionCtor: AccountServiceException_1.AccountServiceException,
432
425
  errorCode,
433
426
  });
434
427
  }
@@ -437,16 +430,15 @@ const de_GetRegionOptStatusCommand = async (output, context) => {
437
430
  if (output.statusCode !== 200 && output.statusCode >= 300) {
438
431
  return de_GetRegionOptStatusCommandError(output, context);
439
432
  }
440
- const contents = map({
433
+ const contents = (0, smithy_client_1.map)({
441
434
  $metadata: deserializeMetadata(output),
442
435
  });
443
436
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
444
- if (data.RegionName != null) {
445
- contents.RegionName = (0, smithy_client_1.expectString)(data.RegionName);
446
- }
447
- if (data.RegionOptStatus != null) {
448
- contents.RegionOptStatus = (0, smithy_client_1.expectString)(data.RegionOptStatus);
449
- }
437
+ const doc = (0, smithy_client_1.take)(data, {
438
+ RegionName: smithy_client_1.expectString,
439
+ RegionOptStatus: smithy_client_1.expectString,
440
+ });
441
+ Object.assign(contents, doc);
450
442
  return contents;
451
443
  };
452
444
  exports.de_GetRegionOptStatusCommand = de_GetRegionOptStatusCommand;
@@ -471,10 +463,9 @@ const de_GetRegionOptStatusCommandError = async (output, context) => {
471
463
  throw await de_ValidationExceptionRes(parsedOutput, context);
472
464
  default:
473
465
  const parsedBody = parsedOutput.body;
474
- (0, smithy_client_1.throwDefaultError)({
466
+ return throwDefaultError({
475
467
  output,
476
468
  parsedBody,
477
- exceptionCtor: AccountServiceException_1.AccountServiceException,
478
469
  errorCode,
479
470
  });
480
471
  }
@@ -483,16 +474,15 @@ const de_ListRegionsCommand = async (output, context) => {
483
474
  if (output.statusCode !== 200 && output.statusCode >= 300) {
484
475
  return de_ListRegionsCommandError(output, context);
485
476
  }
486
- const contents = map({
477
+ const contents = (0, smithy_client_1.map)({
487
478
  $metadata: deserializeMetadata(output),
488
479
  });
489
480
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
490
- if (data.NextToken != null) {
491
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
492
- }
493
- if (data.Regions != null) {
494
- contents.Regions = de_RegionOptList(data.Regions, context);
495
- }
481
+ const doc = (0, smithy_client_1.take)(data, {
482
+ NextToken: smithy_client_1.expectString,
483
+ Regions: smithy_client_1._json,
484
+ });
485
+ Object.assign(contents, doc);
496
486
  return contents;
497
487
  };
498
488
  exports.de_ListRegionsCommand = de_ListRegionsCommand;
@@ -517,10 +507,9 @@ const de_ListRegionsCommandError = async (output, context) => {
517
507
  throw await de_ValidationExceptionRes(parsedOutput, context);
518
508
  default:
519
509
  const parsedBody = parsedOutput.body;
520
- (0, smithy_client_1.throwDefaultError)({
510
+ return throwDefaultError({
521
511
  output,
522
512
  parsedBody,
523
- exceptionCtor: AccountServiceException_1.AccountServiceException,
524
513
  errorCode,
525
514
  });
526
515
  }
@@ -529,7 +518,7 @@ const de_PutAlternateContactCommand = async (output, context) => {
529
518
  if (output.statusCode !== 200 && output.statusCode >= 300) {
530
519
  return de_PutAlternateContactCommandError(output, context);
531
520
  }
532
- const contents = map({
521
+ const contents = (0, smithy_client_1.map)({
533
522
  $metadata: deserializeMetadata(output),
534
523
  });
535
524
  await collectBody(output.body, context);
@@ -557,10 +546,9 @@ const de_PutAlternateContactCommandError = async (output, context) => {
557
546
  throw await de_ValidationExceptionRes(parsedOutput, context);
558
547
  default:
559
548
  const parsedBody = parsedOutput.body;
560
- (0, smithy_client_1.throwDefaultError)({
549
+ return throwDefaultError({
561
550
  output,
562
551
  parsedBody,
563
- exceptionCtor: AccountServiceException_1.AccountServiceException,
564
552
  errorCode,
565
553
  });
566
554
  }
@@ -569,7 +557,7 @@ const de_PutContactInformationCommand = async (output, context) => {
569
557
  if (output.statusCode !== 200 && output.statusCode >= 300) {
570
558
  return de_PutContactInformationCommandError(output, context);
571
559
  }
572
- const contents = map({
560
+ const contents = (0, smithy_client_1.map)({
573
561
  $metadata: deserializeMetadata(output),
574
562
  });
575
563
  await collectBody(output.body, context);
@@ -597,21 +585,21 @@ const de_PutContactInformationCommandError = async (output, context) => {
597
585
  throw await de_ValidationExceptionRes(parsedOutput, context);
598
586
  default:
599
587
  const parsedBody = parsedOutput.body;
600
- (0, smithy_client_1.throwDefaultError)({
588
+ return throwDefaultError({
601
589
  output,
602
590
  parsedBody,
603
- exceptionCtor: AccountServiceException_1.AccountServiceException,
604
591
  errorCode,
605
592
  });
606
593
  }
607
594
  };
608
- const map = smithy_client_1.map;
595
+ const throwDefaultError = (0, smithy_client_1.withBaseException)(AccountServiceException_1.AccountServiceException);
609
596
  const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
610
- const contents = map({});
597
+ const contents = (0, smithy_client_1.map)({});
611
598
  const data = parsedOutput.body;
612
- if (data.message != null) {
613
- contents.message = (0, smithy_client_1.expectString)(data.message);
614
- }
599
+ const doc = (0, smithy_client_1.take)(data, {
600
+ message: smithy_client_1.expectString,
601
+ });
602
+ Object.assign(contents, doc);
615
603
  const exception = new models_0_1.AccessDeniedException({
616
604
  $metadata: deserializeMetadata(parsedOutput),
617
605
  ...contents,
@@ -619,11 +607,12 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
619
607
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
620
608
  };
621
609
  const de_ConflictExceptionRes = async (parsedOutput, context) => {
622
- const contents = map({});
610
+ const contents = (0, smithy_client_1.map)({});
623
611
  const data = parsedOutput.body;
624
- if (data.message != null) {
625
- contents.message = (0, smithy_client_1.expectString)(data.message);
626
- }
612
+ const doc = (0, smithy_client_1.take)(data, {
613
+ message: smithy_client_1.expectString,
614
+ });
615
+ Object.assign(contents, doc);
627
616
  const exception = new models_0_1.ConflictException({
628
617
  $metadata: deserializeMetadata(parsedOutput),
629
618
  ...contents,
@@ -631,11 +620,12 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
631
620
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
632
621
  };
633
622
  const de_InternalServerExceptionRes = async (parsedOutput, context) => {
634
- const contents = map({});
623
+ const contents = (0, smithy_client_1.map)({});
635
624
  const data = parsedOutput.body;
636
- if (data.message != null) {
637
- contents.message = (0, smithy_client_1.expectString)(data.message);
638
- }
625
+ const doc = (0, smithy_client_1.take)(data, {
626
+ message: smithy_client_1.expectString,
627
+ });
628
+ Object.assign(contents, doc);
639
629
  const exception = new models_0_1.InternalServerException({
640
630
  $metadata: deserializeMetadata(parsedOutput),
641
631
  ...contents,
@@ -643,11 +633,12 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
643
633
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
644
634
  };
645
635
  const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
646
- const contents = map({});
636
+ const contents = (0, smithy_client_1.map)({});
647
637
  const data = parsedOutput.body;
648
- if (data.message != null) {
649
- contents.message = (0, smithy_client_1.expectString)(data.message);
650
- }
638
+ const doc = (0, smithy_client_1.take)(data, {
639
+ message: smithy_client_1.expectString,
640
+ });
641
+ Object.assign(contents, doc);
651
642
  const exception = new models_0_1.ResourceNotFoundException({
652
643
  $metadata: deserializeMetadata(parsedOutput),
653
644
  ...contents,
@@ -655,11 +646,12 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
655
646
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
656
647
  };
657
648
  const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
658
- const contents = map({});
649
+ const contents = (0, smithy_client_1.map)({});
659
650
  const data = parsedOutput.body;
660
- if (data.message != null) {
661
- contents.message = (0, smithy_client_1.expectString)(data.message);
662
- }
651
+ const doc = (0, smithy_client_1.take)(data, {
652
+ message: smithy_client_1.expectString,
653
+ });
654
+ Object.assign(contents, doc);
663
655
  const exception = new models_0_1.TooManyRequestsException({
664
656
  $metadata: deserializeMetadata(parsedOutput),
665
657
  ...contents,
@@ -667,105 +659,20 @@ const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
667
659
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
668
660
  };
669
661
  const de_ValidationExceptionRes = async (parsedOutput, context) => {
670
- const contents = map({});
662
+ const contents = (0, smithy_client_1.map)({});
671
663
  const data = parsedOutput.body;
672
- if (data.fieldList != null) {
673
- contents.fieldList = de_ValidationExceptionFieldList(data.fieldList, context);
674
- }
675
- if (data.message != null) {
676
- contents.message = (0, smithy_client_1.expectString)(data.message);
677
- }
678
- if (data.reason != null) {
679
- contents.reason = (0, smithy_client_1.expectString)(data.reason);
680
- }
664
+ const doc = (0, smithy_client_1.take)(data, {
665
+ fieldList: smithy_client_1._json,
666
+ message: smithy_client_1.expectString,
667
+ reason: smithy_client_1.expectString,
668
+ });
669
+ Object.assign(contents, doc);
681
670
  const exception = new models_0_1.ValidationException({
682
671
  $metadata: deserializeMetadata(parsedOutput),
683
672
  ...contents,
684
673
  });
685
674
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
686
675
  };
687
- const se_ContactInformation = (input, context) => {
688
- return {
689
- ...(input.AddressLine1 != null && { AddressLine1: input.AddressLine1 }),
690
- ...(input.AddressLine2 != null && { AddressLine2: input.AddressLine2 }),
691
- ...(input.AddressLine3 != null && { AddressLine3: input.AddressLine3 }),
692
- ...(input.City != null && { City: input.City }),
693
- ...(input.CompanyName != null && { CompanyName: input.CompanyName }),
694
- ...(input.CountryCode != null && { CountryCode: input.CountryCode }),
695
- ...(input.DistrictOrCounty != null && { DistrictOrCounty: input.DistrictOrCounty }),
696
- ...(input.FullName != null && { FullName: input.FullName }),
697
- ...(input.PhoneNumber != null && { PhoneNumber: input.PhoneNumber }),
698
- ...(input.PostalCode != null && { PostalCode: input.PostalCode }),
699
- ...(input.StateOrRegion != null && { StateOrRegion: input.StateOrRegion }),
700
- ...(input.WebsiteUrl != null && { WebsiteUrl: input.WebsiteUrl }),
701
- };
702
- };
703
- const se_RegionOptStatusList = (input, context) => {
704
- return input
705
- .filter((e) => e != null)
706
- .map((entry) => {
707
- return entry;
708
- });
709
- };
710
- const de_AlternateContact = (output, context) => {
711
- return {
712
- AlternateContactType: (0, smithy_client_1.expectString)(output.AlternateContactType),
713
- EmailAddress: (0, smithy_client_1.expectString)(output.EmailAddress),
714
- Name: (0, smithy_client_1.expectString)(output.Name),
715
- PhoneNumber: (0, smithy_client_1.expectString)(output.PhoneNumber),
716
- Title: (0, smithy_client_1.expectString)(output.Title),
717
- };
718
- };
719
- const de_ContactInformation = (output, context) => {
720
- return {
721
- AddressLine1: (0, smithy_client_1.expectString)(output.AddressLine1),
722
- AddressLine2: (0, smithy_client_1.expectString)(output.AddressLine2),
723
- AddressLine3: (0, smithy_client_1.expectString)(output.AddressLine3),
724
- City: (0, smithy_client_1.expectString)(output.City),
725
- CompanyName: (0, smithy_client_1.expectString)(output.CompanyName),
726
- CountryCode: (0, smithy_client_1.expectString)(output.CountryCode),
727
- DistrictOrCounty: (0, smithy_client_1.expectString)(output.DistrictOrCounty),
728
- FullName: (0, smithy_client_1.expectString)(output.FullName),
729
- PhoneNumber: (0, smithy_client_1.expectString)(output.PhoneNumber),
730
- PostalCode: (0, smithy_client_1.expectString)(output.PostalCode),
731
- StateOrRegion: (0, smithy_client_1.expectString)(output.StateOrRegion),
732
- WebsiteUrl: (0, smithy_client_1.expectString)(output.WebsiteUrl),
733
- };
734
- };
735
- const de_Region = (output, context) => {
736
- return {
737
- RegionName: (0, smithy_client_1.expectString)(output.RegionName),
738
- RegionOptStatus: (0, smithy_client_1.expectString)(output.RegionOptStatus),
739
- };
740
- };
741
- const de_RegionOptList = (output, context) => {
742
- const retVal = (output || [])
743
- .filter((e) => e != null)
744
- .map((entry) => {
745
- if (entry === null) {
746
- return null;
747
- }
748
- return de_Region(entry, context);
749
- });
750
- return retVal;
751
- };
752
- const de_ValidationExceptionField = (output, context) => {
753
- return {
754
- message: (0, smithy_client_1.expectString)(output.message),
755
- name: (0, smithy_client_1.expectString)(output.name),
756
- };
757
- };
758
- const de_ValidationExceptionFieldList = (output, context) => {
759
- const retVal = (output || [])
760
- .filter((e) => e != null)
761
- .map((entry) => {
762
- if (entry === null) {
763
- return null;
764
- }
765
- return de_ValidationExceptionField(entry, context);
766
- });
767
- return retVal;
768
- };
769
676
  const deserializeMetadata = (output) => ({
770
677
  httpStatusCode: output.statusCode,
771
678
  requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
@@ -1,5 +1,5 @@
1
1
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
- import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map as __map, throwDefaultError, } from "@aws-sdk/smithy-client";
2
+ import { _json, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, take, withBaseException, } from "@aws-sdk/smithy-client";
3
3
  import { AccountServiceException as __BaseException } from "../models/AccountServiceException";
4
4
  import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, TooManyRequestsException, ValidationException, } from "../models/models_0";
5
5
  export const se_DeleteAlternateContactCommand = async (input, context) => {
@@ -9,10 +9,10 @@ export const se_DeleteAlternateContactCommand = async (input, context) => {
9
9
  };
10
10
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/deleteAlternateContact";
11
11
  let body;
12
- body = JSON.stringify({
13
- ...(input.AccountId != null && { AccountId: input.AccountId }),
14
- ...(input.AlternateContactType != null && { AlternateContactType: input.AlternateContactType }),
15
- });
12
+ body = JSON.stringify(take(input, {
13
+ AccountId: [],
14
+ AlternateContactType: [],
15
+ }));
16
16
  return new __HttpRequest({
17
17
  protocol,
18
18
  hostname,
@@ -30,10 +30,10 @@ export const se_DisableRegionCommand = async (input, context) => {
30
30
  };
31
31
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/disableRegion";
32
32
  let body;
33
- body = JSON.stringify({
34
- ...(input.AccountId != null && { AccountId: input.AccountId }),
35
- ...(input.RegionName != null && { RegionName: input.RegionName }),
36
- });
33
+ body = JSON.stringify(take(input, {
34
+ AccountId: [],
35
+ RegionName: [],
36
+ }));
37
37
  return new __HttpRequest({
38
38
  protocol,
39
39
  hostname,
@@ -51,10 +51,10 @@ export const se_EnableRegionCommand = async (input, context) => {
51
51
  };
52
52
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/enableRegion";
53
53
  let body;
54
- body = JSON.stringify({
55
- ...(input.AccountId != null && { AccountId: input.AccountId }),
56
- ...(input.RegionName != null && { RegionName: input.RegionName }),
57
- });
54
+ body = JSON.stringify(take(input, {
55
+ AccountId: [],
56
+ RegionName: [],
57
+ }));
58
58
  return new __HttpRequest({
59
59
  protocol,
60
60
  hostname,
@@ -72,10 +72,10 @@ export const se_GetAlternateContactCommand = async (input, context) => {
72
72
  };
73
73
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/getAlternateContact";
74
74
  let body;
75
- body = JSON.stringify({
76
- ...(input.AccountId != null && { AccountId: input.AccountId }),
77
- ...(input.AlternateContactType != null && { AlternateContactType: input.AlternateContactType }),
78
- });
75
+ body = JSON.stringify(take(input, {
76
+ AccountId: [],
77
+ AlternateContactType: [],
78
+ }));
79
79
  return new __HttpRequest({
80
80
  protocol,
81
81
  hostname,
@@ -93,9 +93,9 @@ export const se_GetContactInformationCommand = async (input, context) => {
93
93
  };
94
94
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/getContactInformation";
95
95
  let body;
96
- body = JSON.stringify({
97
- ...(input.AccountId != null && { AccountId: input.AccountId }),
98
- });
96
+ body = JSON.stringify(take(input, {
97
+ AccountId: [],
98
+ }));
99
99
  return new __HttpRequest({
100
100
  protocol,
101
101
  hostname,
@@ -113,10 +113,10 @@ export const se_GetRegionOptStatusCommand = async (input, context) => {
113
113
  };
114
114
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/getRegionOptStatus";
115
115
  let body;
116
- body = JSON.stringify({
117
- ...(input.AccountId != null && { AccountId: input.AccountId }),
118
- ...(input.RegionName != null && { RegionName: input.RegionName }),
119
- });
116
+ body = JSON.stringify(take(input, {
117
+ AccountId: [],
118
+ RegionName: [],
119
+ }));
120
120
  return new __HttpRequest({
121
121
  protocol,
122
122
  hostname,
@@ -134,14 +134,12 @@ export const se_ListRegionsCommand = async (input, context) => {
134
134
  };
135
135
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listRegions";
136
136
  let body;
137
- body = JSON.stringify({
138
- ...(input.AccountId != null && { AccountId: input.AccountId }),
139
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
140
- ...(input.NextToken != null && { NextToken: input.NextToken }),
141
- ...(input.RegionOptStatusContains != null && {
142
- RegionOptStatusContains: se_RegionOptStatusList(input.RegionOptStatusContains, context),
143
- }),
144
- });
137
+ body = JSON.stringify(take(input, {
138
+ AccountId: [],
139
+ MaxResults: [],
140
+ NextToken: [],
141
+ RegionOptStatusContains: (_) => _json(_),
142
+ }));
145
143
  return new __HttpRequest({
146
144
  protocol,
147
145
  hostname,
@@ -159,14 +157,14 @@ export const se_PutAlternateContactCommand = async (input, context) => {
159
157
  };
160
158
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/putAlternateContact";
161
159
  let body;
162
- body = JSON.stringify({
163
- ...(input.AccountId != null && { AccountId: input.AccountId }),
164
- ...(input.AlternateContactType != null && { AlternateContactType: input.AlternateContactType }),
165
- ...(input.EmailAddress != null && { EmailAddress: input.EmailAddress }),
166
- ...(input.Name != null && { Name: input.Name }),
167
- ...(input.PhoneNumber != null && { PhoneNumber: input.PhoneNumber }),
168
- ...(input.Title != null && { Title: input.Title }),
169
- });
160
+ body = JSON.stringify(take(input, {
161
+ AccountId: [],
162
+ AlternateContactType: [],
163
+ EmailAddress: [],
164
+ Name: [],
165
+ PhoneNumber: [],
166
+ Title: [],
167
+ }));
170
168
  return new __HttpRequest({
171
169
  protocol,
172
170
  hostname,
@@ -184,12 +182,10 @@ export const se_PutContactInformationCommand = async (input, context) => {
184
182
  };
185
183
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/putContactInformation";
186
184
  let body;
187
- body = JSON.stringify({
188
- ...(input.AccountId != null && { AccountId: input.AccountId }),
189
- ...(input.ContactInformation != null && {
190
- ContactInformation: se_ContactInformation(input.ContactInformation, context),
191
- }),
192
- });
185
+ body = JSON.stringify(take(input, {
186
+ AccountId: [],
187
+ ContactInformation: (_) => _json(_),
188
+ }));
193
189
  return new __HttpRequest({
194
190
  protocol,
195
191
  hostname,
@@ -234,10 +230,9 @@ const de_DeleteAlternateContactCommandError = async (output, context) => {
234
230
  throw await de_ValidationExceptionRes(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
  }
@@ -276,10 +271,9 @@ const de_DisableRegionCommandError = async (output, context) => {
276
271
  throw await de_ValidationExceptionRes(parsedOutput, context);
277
272
  default:
278
273
  const parsedBody = parsedOutput.body;
279
- throwDefaultError({
274
+ return throwDefaultError({
280
275
  output,
281
276
  parsedBody,
282
- exceptionCtor: __BaseException,
283
277
  errorCode,
284
278
  });
285
279
  }
@@ -318,10 +312,9 @@ const de_EnableRegionCommandError = async (output, context) => {
318
312
  throw await de_ValidationExceptionRes(parsedOutput, context);
319
313
  default:
320
314
  const parsedBody = parsedOutput.body;
321
- throwDefaultError({
315
+ return throwDefaultError({
322
316
  output,
323
317
  parsedBody,
324
- exceptionCtor: __BaseException,
325
318
  errorCode,
326
319
  });
327
320
  }
@@ -334,9 +327,10 @@ export const de_GetAlternateContactCommand = async (output, context) => {
334
327
  $metadata: deserializeMetadata(output),
335
328
  });
336
329
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
337
- if (data.AlternateContact != null) {
338
- contents.AlternateContact = de_AlternateContact(data.AlternateContact, context);
339
- }
330
+ const doc = take(data, {
331
+ AlternateContact: _json,
332
+ });
333
+ Object.assign(contents, doc);
340
334
  return contents;
341
335
  };
342
336
  const de_GetAlternateContactCommandError = async (output, context) => {
@@ -363,10 +357,9 @@ const de_GetAlternateContactCommandError = async (output, context) => {
363
357
  throw await de_ValidationExceptionRes(parsedOutput, context);
364
358
  default:
365
359
  const parsedBody = parsedOutput.body;
366
- throwDefaultError({
360
+ return throwDefaultError({
367
361
  output,
368
362
  parsedBody,
369
- exceptionCtor: __BaseException,
370
363
  errorCode,
371
364
  });
372
365
  }
@@ -379,9 +372,10 @@ export const de_GetContactInformationCommand = async (output, context) => {
379
372
  $metadata: deserializeMetadata(output),
380
373
  });
381
374
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
382
- if (data.ContactInformation != null) {
383
- contents.ContactInformation = de_ContactInformation(data.ContactInformation, context);
384
- }
375
+ const doc = take(data, {
376
+ ContactInformation: _json,
377
+ });
378
+ Object.assign(contents, doc);
385
379
  return contents;
386
380
  };
387
381
  const de_GetContactInformationCommandError = async (output, context) => {
@@ -408,10 +402,9 @@ const de_GetContactInformationCommandError = async (output, context) => {
408
402
  throw await de_ValidationExceptionRes(parsedOutput, context);
409
403
  default:
410
404
  const parsedBody = parsedOutput.body;
411
- throwDefaultError({
405
+ return throwDefaultError({
412
406
  output,
413
407
  parsedBody,
414
- exceptionCtor: __BaseException,
415
408
  errorCode,
416
409
  });
417
410
  }
@@ -424,12 +417,11 @@ export const de_GetRegionOptStatusCommand = async (output, context) => {
424
417
  $metadata: deserializeMetadata(output),
425
418
  });
426
419
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
427
- if (data.RegionName != null) {
428
- contents.RegionName = __expectString(data.RegionName);
429
- }
430
- if (data.RegionOptStatus != null) {
431
- contents.RegionOptStatus = __expectString(data.RegionOptStatus);
432
- }
420
+ const doc = take(data, {
421
+ RegionName: __expectString,
422
+ RegionOptStatus: __expectString,
423
+ });
424
+ Object.assign(contents, doc);
433
425
  return contents;
434
426
  };
435
427
  const de_GetRegionOptStatusCommandError = async (output, context) => {
@@ -453,10 +445,9 @@ const de_GetRegionOptStatusCommandError = async (output, context) => {
453
445
  throw await de_ValidationExceptionRes(parsedOutput, context);
454
446
  default:
455
447
  const parsedBody = parsedOutput.body;
456
- throwDefaultError({
448
+ return throwDefaultError({
457
449
  output,
458
450
  parsedBody,
459
- exceptionCtor: __BaseException,
460
451
  errorCode,
461
452
  });
462
453
  }
@@ -469,12 +460,11 @@ export const de_ListRegionsCommand = async (output, context) => {
469
460
  $metadata: deserializeMetadata(output),
470
461
  });
471
462
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
472
- if (data.NextToken != null) {
473
- contents.NextToken = __expectString(data.NextToken);
474
- }
475
- if (data.Regions != null) {
476
- contents.Regions = de_RegionOptList(data.Regions, context);
477
- }
463
+ const doc = take(data, {
464
+ NextToken: __expectString,
465
+ Regions: _json,
466
+ });
467
+ Object.assign(contents, doc);
478
468
  return contents;
479
469
  };
480
470
  const de_ListRegionsCommandError = async (output, context) => {
@@ -498,10 +488,9 @@ const de_ListRegionsCommandError = async (output, context) => {
498
488
  throw await de_ValidationExceptionRes(parsedOutput, context);
499
489
  default:
500
490
  const parsedBody = parsedOutput.body;
501
- throwDefaultError({
491
+ return throwDefaultError({
502
492
  output,
503
493
  parsedBody,
504
- exceptionCtor: __BaseException,
505
494
  errorCode,
506
495
  });
507
496
  }
@@ -537,10 +526,9 @@ const de_PutAlternateContactCommandError = async (output, context) => {
537
526
  throw await de_ValidationExceptionRes(parsedOutput, context);
538
527
  default:
539
528
  const parsedBody = parsedOutput.body;
540
- throwDefaultError({
529
+ return throwDefaultError({
541
530
  output,
542
531
  parsedBody,
543
- exceptionCtor: __BaseException,
544
532
  errorCode,
545
533
  });
546
534
  }
@@ -576,21 +564,21 @@ const de_PutContactInformationCommandError = async (output, context) => {
576
564
  throw await de_ValidationExceptionRes(parsedOutput, context);
577
565
  default:
578
566
  const parsedBody = parsedOutput.body;
579
- throwDefaultError({
567
+ return throwDefaultError({
580
568
  output,
581
569
  parsedBody,
582
- exceptionCtor: __BaseException,
583
570
  errorCode,
584
571
  });
585
572
  }
586
573
  };
587
- const map = __map;
574
+ const throwDefaultError = withBaseException(__BaseException);
588
575
  const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
589
576
  const contents = map({});
590
577
  const data = parsedOutput.body;
591
- if (data.message != null) {
592
- contents.message = __expectString(data.message);
593
- }
578
+ const doc = take(data, {
579
+ message: __expectString,
580
+ });
581
+ Object.assign(contents, doc);
594
582
  const exception = new AccessDeniedException({
595
583
  $metadata: deserializeMetadata(parsedOutput),
596
584
  ...contents,
@@ -600,9 +588,10 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
600
588
  const de_ConflictExceptionRes = async (parsedOutput, context) => {
601
589
  const contents = map({});
602
590
  const data = parsedOutput.body;
603
- if (data.message != null) {
604
- contents.message = __expectString(data.message);
605
- }
591
+ const doc = take(data, {
592
+ message: __expectString,
593
+ });
594
+ Object.assign(contents, doc);
606
595
  const exception = new ConflictException({
607
596
  $metadata: deserializeMetadata(parsedOutput),
608
597
  ...contents,
@@ -612,9 +601,10 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
612
601
  const de_InternalServerExceptionRes = async (parsedOutput, context) => {
613
602
  const contents = map({});
614
603
  const data = parsedOutput.body;
615
- if (data.message != null) {
616
- contents.message = __expectString(data.message);
617
- }
604
+ const doc = take(data, {
605
+ message: __expectString,
606
+ });
607
+ Object.assign(contents, doc);
618
608
  const exception = new InternalServerException({
619
609
  $metadata: deserializeMetadata(parsedOutput),
620
610
  ...contents,
@@ -624,9 +614,10 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
624
614
  const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
625
615
  const contents = map({});
626
616
  const data = parsedOutput.body;
627
- if (data.message != null) {
628
- contents.message = __expectString(data.message);
629
- }
617
+ const doc = take(data, {
618
+ message: __expectString,
619
+ });
620
+ Object.assign(contents, doc);
630
621
  const exception = new ResourceNotFoundException({
631
622
  $metadata: deserializeMetadata(parsedOutput),
632
623
  ...contents,
@@ -636,9 +627,10 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
636
627
  const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
637
628
  const contents = map({});
638
629
  const data = parsedOutput.body;
639
- if (data.message != null) {
640
- contents.message = __expectString(data.message);
641
- }
630
+ const doc = take(data, {
631
+ message: __expectString,
632
+ });
633
+ Object.assign(contents, doc);
642
634
  const exception = new TooManyRequestsException({
643
635
  $metadata: deserializeMetadata(parsedOutput),
644
636
  ...contents,
@@ -648,103 +640,18 @@ const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
648
640
  const de_ValidationExceptionRes = async (parsedOutput, context) => {
649
641
  const contents = map({});
650
642
  const data = parsedOutput.body;
651
- if (data.fieldList != null) {
652
- contents.fieldList = de_ValidationExceptionFieldList(data.fieldList, context);
653
- }
654
- if (data.message != null) {
655
- contents.message = __expectString(data.message);
656
- }
657
- if (data.reason != null) {
658
- contents.reason = __expectString(data.reason);
659
- }
643
+ const doc = take(data, {
644
+ fieldList: _json,
645
+ message: __expectString,
646
+ reason: __expectString,
647
+ });
648
+ Object.assign(contents, doc);
660
649
  const exception = new ValidationException({
661
650
  $metadata: deserializeMetadata(parsedOutput),
662
651
  ...contents,
663
652
  });
664
653
  return __decorateServiceException(exception, parsedOutput.body);
665
654
  };
666
- const se_ContactInformation = (input, context) => {
667
- return {
668
- ...(input.AddressLine1 != null && { AddressLine1: input.AddressLine1 }),
669
- ...(input.AddressLine2 != null && { AddressLine2: input.AddressLine2 }),
670
- ...(input.AddressLine3 != null && { AddressLine3: input.AddressLine3 }),
671
- ...(input.City != null && { City: input.City }),
672
- ...(input.CompanyName != null && { CompanyName: input.CompanyName }),
673
- ...(input.CountryCode != null && { CountryCode: input.CountryCode }),
674
- ...(input.DistrictOrCounty != null && { DistrictOrCounty: input.DistrictOrCounty }),
675
- ...(input.FullName != null && { FullName: input.FullName }),
676
- ...(input.PhoneNumber != null && { PhoneNumber: input.PhoneNumber }),
677
- ...(input.PostalCode != null && { PostalCode: input.PostalCode }),
678
- ...(input.StateOrRegion != null && { StateOrRegion: input.StateOrRegion }),
679
- ...(input.WebsiteUrl != null && { WebsiteUrl: input.WebsiteUrl }),
680
- };
681
- };
682
- const se_RegionOptStatusList = (input, context) => {
683
- return input
684
- .filter((e) => e != null)
685
- .map((entry) => {
686
- return entry;
687
- });
688
- };
689
- const de_AlternateContact = (output, context) => {
690
- return {
691
- AlternateContactType: __expectString(output.AlternateContactType),
692
- EmailAddress: __expectString(output.EmailAddress),
693
- Name: __expectString(output.Name),
694
- PhoneNumber: __expectString(output.PhoneNumber),
695
- Title: __expectString(output.Title),
696
- };
697
- };
698
- const de_ContactInformation = (output, context) => {
699
- return {
700
- AddressLine1: __expectString(output.AddressLine1),
701
- AddressLine2: __expectString(output.AddressLine2),
702
- AddressLine3: __expectString(output.AddressLine3),
703
- City: __expectString(output.City),
704
- CompanyName: __expectString(output.CompanyName),
705
- CountryCode: __expectString(output.CountryCode),
706
- DistrictOrCounty: __expectString(output.DistrictOrCounty),
707
- FullName: __expectString(output.FullName),
708
- PhoneNumber: __expectString(output.PhoneNumber),
709
- PostalCode: __expectString(output.PostalCode),
710
- StateOrRegion: __expectString(output.StateOrRegion),
711
- WebsiteUrl: __expectString(output.WebsiteUrl),
712
- };
713
- };
714
- const de_Region = (output, context) => {
715
- return {
716
- RegionName: __expectString(output.RegionName),
717
- RegionOptStatus: __expectString(output.RegionOptStatus),
718
- };
719
- };
720
- const de_RegionOptList = (output, context) => {
721
- const retVal = (output || [])
722
- .filter((e) => e != null)
723
- .map((entry) => {
724
- if (entry === null) {
725
- return null;
726
- }
727
- return de_Region(entry, context);
728
- });
729
- return retVal;
730
- };
731
- const de_ValidationExceptionField = (output, context) => {
732
- return {
733
- message: __expectString(output.message),
734
- name: __expectString(output.name),
735
- };
736
- };
737
- const de_ValidationExceptionFieldList = (output, context) => {
738
- const retVal = (output || [])
739
- .filter((e) => e != null)
740
- .map((entry) => {
741
- if (entry === null) {
742
- return null;
743
- }
744
- return de_ValidationExceptionField(entry, context);
745
- });
746
- return retVal;
747
- };
748
655
  const deserializeMetadata = (output) => ({
749
656
  httpStatusCode: output.statusCode,
750
657
  requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-account",
3
3
  "description": "AWS SDK for JavaScript Account Client for Node.js, Browser and React Native",
4
- "version": "3.310.0",
4
+ "version": "3.315.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,9 +21,9 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.310.0",
24
+ "@aws-sdk/client-sts": "3.315.0",
25
25
  "@aws-sdk/config-resolver": "3.310.0",
26
- "@aws-sdk/credential-provider-node": "3.310.0",
26
+ "@aws-sdk/credential-provider-node": "3.315.0",
27
27
  "@aws-sdk/fetch-http-handler": "3.310.0",
28
28
  "@aws-sdk/hash-node": "3.310.0",
29
29
  "@aws-sdk/invalid-dependency": "3.310.0",
@@ -40,14 +40,14 @@
40
40
  "@aws-sdk/node-config-provider": "3.310.0",
41
41
  "@aws-sdk/node-http-handler": "3.310.0",
42
42
  "@aws-sdk/protocol-http": "3.310.0",
43
- "@aws-sdk/smithy-client": "3.310.0",
43
+ "@aws-sdk/smithy-client": "3.315.0",
44
44
  "@aws-sdk/types": "3.310.0",
45
45
  "@aws-sdk/url-parser": "3.310.0",
46
46
  "@aws-sdk/util-base64": "3.310.0",
47
47
  "@aws-sdk/util-body-length-browser": "3.310.0",
48
48
  "@aws-sdk/util-body-length-node": "3.310.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.310.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.310.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.315.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.315.0",
51
51
  "@aws-sdk/util-endpoints": "3.310.0",
52
52
  "@aws-sdk/util-retry": "3.310.0",
53
53
  "@aws-sdk/util-user-agent-browser": "3.310.0",