@aws-sdk/client-account 3.312.0 → 3.316.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/Account.js +13 -126
- package/dist-cjs/protocols/Aws_restJson1.js +110 -203
- package/dist-es/Account.js +13 -126
- package/dist-es/protocols/Aws_restJson1.js +96 -189
- package/dist-types/Account.d.ts +16 -53
- package/dist-types/ts3.4/Account.d.ts +2 -1
- package/package.json +6 -6
|
@@ -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
|
-
|
|
17
|
-
|
|
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
|
-
|
|
39
|
-
|
|
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
|
-
|
|
61
|
-
|
|
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
|
-
|
|
83
|
-
|
|
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
|
-
|
|
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
|
-
|
|
126
|
-
|
|
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
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
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
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
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
|
-
|
|
200
|
-
|
|
201
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
353
|
-
|
|
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
|
-
|
|
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
|
-
|
|
399
|
-
|
|
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
|
-
|
|
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
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
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
|
-
|
|
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
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
613
|
-
|
|
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
|
-
|
|
625
|
-
|
|
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
|
-
|
|
637
|
-
|
|
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
|
-
|
|
649
|
-
|
|
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
|
-
|
|
661
|
-
|
|
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
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
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"],
|