@aws-sdk/client-secrets-manager 3.185.0 → 3.188.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/CHANGELOG.md +16 -0
- package/dist-es/SecretsManager.js +90 -97
- package/dist-es/SecretsManagerClient.js +22 -28
- package/dist-es/commands/CancelRotateSecretCommand.js +21 -28
- package/dist-es/commands/CreateSecretCommand.js +21 -28
- package/dist-es/commands/DeleteResourcePolicyCommand.js +21 -28
- package/dist-es/commands/DeleteSecretCommand.js +21 -28
- package/dist-es/commands/DescribeSecretCommand.js +21 -28
- package/dist-es/commands/GetRandomPasswordCommand.js +21 -28
- package/dist-es/commands/GetResourcePolicyCommand.js +21 -28
- package/dist-es/commands/GetSecretValueCommand.js +21 -28
- package/dist-es/commands/ListSecretVersionIdsCommand.js +21 -28
- package/dist-es/commands/ListSecretsCommand.js +21 -28
- package/dist-es/commands/PutResourcePolicyCommand.js +21 -28
- package/dist-es/commands/PutSecretValueCommand.js +21 -28
- package/dist-es/commands/RemoveRegionsFromReplicationCommand.js +21 -28
- package/dist-es/commands/ReplicateSecretToRegionsCommand.js +21 -28
- package/dist-es/commands/RestoreSecretCommand.js +21 -28
- package/dist-es/commands/RotateSecretCommand.js +21 -28
- package/dist-es/commands/StopReplicationToReplicaCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +22 -29
- package/dist-es/commands/UntagResourceCommand.js +22 -29
- package/dist-es/commands/UpdateSecretCommand.js +21 -28
- package/dist-es/commands/UpdateSecretVersionStageCommand.js +21 -28
- package/dist-es/commands/ValidateResourcePolicyCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/SecretsManagerServiceException.js +5 -10
- package/dist-es/models/models_0.js +303 -195
- package/dist-es/pagination/ListSecretVersionIdsPaginator.js +25 -68
- package/dist-es/pagination/ListSecretsPaginator.js +25 -68
- package/dist-es/protocols/Aws_json1_1.js +1584 -2035
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
|
@@ -1,1970 +1,1541 @@
|
|
|
1
|
-
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
2
|
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
5
4
|
import { DecryptionFailure, EncryptionFailure, InternalServiceError, InvalidNextTokenException, InvalidParameterException, InvalidRequestException, LimitExceededException, MalformedPolicyDocumentException, PreconditionNotMetException, PublicPolicyException, ResourceExistsException, ResourceNotFoundException, } from "../models/models_0";
|
|
6
5
|
import { SecretsManagerServiceException as __BaseException } from "../models/SecretsManagerServiceException";
|
|
7
|
-
export
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
return
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
}
|
|
106
|
-
export
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
return
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
}
|
|
205
|
-
export
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
}
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
}
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
parsedBody
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
errorCode
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
return
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
errorCode
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
}
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
throwDefaultError({
|
|
1287
|
-
output: output,
|
|
1288
|
-
parsedBody: parsedBody,
|
|
1289
|
-
exceptionCtor: __BaseException,
|
|
1290
|
-
errorCode: errorCode,
|
|
1291
|
-
});
|
|
1292
|
-
_d.label = 11;
|
|
1293
|
-
case 11: return [2];
|
|
1294
|
-
}
|
|
1295
|
-
});
|
|
1296
|
-
}); };
|
|
1297
|
-
export var deserializeAws_json1_1StopReplicationToReplicaCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1298
|
-
var data, contents, response;
|
|
1299
|
-
return __generator(this, function (_a) {
|
|
1300
|
-
switch (_a.label) {
|
|
1301
|
-
case 0:
|
|
1302
|
-
if (output.statusCode >= 300) {
|
|
1303
|
-
return [2, deserializeAws_json1_1StopReplicationToReplicaCommandError(output, context)];
|
|
1304
|
-
}
|
|
1305
|
-
return [4, parseBody(output.body, context)];
|
|
1306
|
-
case 1:
|
|
1307
|
-
data = _a.sent();
|
|
1308
|
-
contents = {};
|
|
1309
|
-
contents = deserializeAws_json1_1StopReplicationToReplicaResponse(data, context);
|
|
1310
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1311
|
-
return [2, Promise.resolve(response)];
|
|
1312
|
-
}
|
|
1313
|
-
});
|
|
1314
|
-
}); };
|
|
1315
|
-
var deserializeAws_json1_1StopReplicationToReplicaCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1316
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1317
|
-
var _c;
|
|
1318
|
-
return __generator(this, function (_d) {
|
|
1319
|
-
switch (_d.label) {
|
|
1320
|
-
case 0:
|
|
1321
|
-
_a = [__assign({}, output)];
|
|
1322
|
-
_c = {};
|
|
1323
|
-
return [4, parseErrorBody(output.body, context)];
|
|
1324
|
-
case 1:
|
|
1325
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1326
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1327
|
-
_b = errorCode;
|
|
1328
|
-
switch (_b) {
|
|
1329
|
-
case "InternalServiceError": return [3, 2];
|
|
1330
|
-
case "com.amazonaws.secretsmanager#InternalServiceError": return [3, 2];
|
|
1331
|
-
case "InvalidParameterException": return [3, 4];
|
|
1332
|
-
case "com.amazonaws.secretsmanager#InvalidParameterException": return [3, 4];
|
|
1333
|
-
case "InvalidRequestException": return [3, 6];
|
|
1334
|
-
case "com.amazonaws.secretsmanager#InvalidRequestException": return [3, 6];
|
|
1335
|
-
case "ResourceNotFoundException": return [3, 8];
|
|
1336
|
-
case "com.amazonaws.secretsmanager#ResourceNotFoundException": return [3, 8];
|
|
1337
|
-
}
|
|
1338
|
-
return [3, 10];
|
|
1339
|
-
case 2: return [4, deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)];
|
|
1340
|
-
case 3: throw _d.sent();
|
|
1341
|
-
case 4: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1342
|
-
case 5: throw _d.sent();
|
|
1343
|
-
case 6: return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1344
|
-
case 7: throw _d.sent();
|
|
1345
|
-
case 8: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1346
|
-
case 9: throw _d.sent();
|
|
1347
|
-
case 10:
|
|
1348
|
-
parsedBody = parsedOutput.body;
|
|
1349
|
-
throwDefaultError({
|
|
1350
|
-
output: output,
|
|
1351
|
-
parsedBody: parsedBody,
|
|
1352
|
-
exceptionCtor: __BaseException,
|
|
1353
|
-
errorCode: errorCode,
|
|
1354
|
-
});
|
|
1355
|
-
_d.label = 11;
|
|
1356
|
-
case 11: return [2];
|
|
1357
|
-
}
|
|
1358
|
-
});
|
|
1359
|
-
}); };
|
|
1360
|
-
export var deserializeAws_json1_1TagResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1361
|
-
var response;
|
|
1362
|
-
return __generator(this, function (_a) {
|
|
1363
|
-
switch (_a.label) {
|
|
1364
|
-
case 0:
|
|
1365
|
-
if (output.statusCode >= 300) {
|
|
1366
|
-
return [2, deserializeAws_json1_1TagResourceCommandError(output, context)];
|
|
1367
|
-
}
|
|
1368
|
-
return [4, collectBody(output.body, context)];
|
|
1369
|
-
case 1:
|
|
1370
|
-
_a.sent();
|
|
1371
|
-
response = {
|
|
1372
|
-
$metadata: deserializeMetadata(output),
|
|
1373
|
-
};
|
|
1374
|
-
return [2, Promise.resolve(response)];
|
|
1375
|
-
}
|
|
1376
|
-
});
|
|
1377
|
-
}); };
|
|
1378
|
-
var deserializeAws_json1_1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1379
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1380
|
-
var _c;
|
|
1381
|
-
return __generator(this, function (_d) {
|
|
1382
|
-
switch (_d.label) {
|
|
1383
|
-
case 0:
|
|
1384
|
-
_a = [__assign({}, output)];
|
|
1385
|
-
_c = {};
|
|
1386
|
-
return [4, parseErrorBody(output.body, context)];
|
|
1387
|
-
case 1:
|
|
1388
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1389
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1390
|
-
_b = errorCode;
|
|
1391
|
-
switch (_b) {
|
|
1392
|
-
case "InternalServiceError": return [3, 2];
|
|
1393
|
-
case "com.amazonaws.secretsmanager#InternalServiceError": return [3, 2];
|
|
1394
|
-
case "InvalidParameterException": return [3, 4];
|
|
1395
|
-
case "com.amazonaws.secretsmanager#InvalidParameterException": return [3, 4];
|
|
1396
|
-
case "InvalidRequestException": return [3, 6];
|
|
1397
|
-
case "com.amazonaws.secretsmanager#InvalidRequestException": return [3, 6];
|
|
1398
|
-
case "ResourceNotFoundException": return [3, 8];
|
|
1399
|
-
case "com.amazonaws.secretsmanager#ResourceNotFoundException": return [3, 8];
|
|
1400
|
-
}
|
|
1401
|
-
return [3, 10];
|
|
1402
|
-
case 2: return [4, deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)];
|
|
1403
|
-
case 3: throw _d.sent();
|
|
1404
|
-
case 4: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1405
|
-
case 5: throw _d.sent();
|
|
1406
|
-
case 6: return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1407
|
-
case 7: throw _d.sent();
|
|
1408
|
-
case 8: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1409
|
-
case 9: throw _d.sent();
|
|
1410
|
-
case 10:
|
|
1411
|
-
parsedBody = parsedOutput.body;
|
|
1412
|
-
throwDefaultError({
|
|
1413
|
-
output: output,
|
|
1414
|
-
parsedBody: parsedBody,
|
|
1415
|
-
exceptionCtor: __BaseException,
|
|
1416
|
-
errorCode: errorCode,
|
|
1417
|
-
});
|
|
1418
|
-
_d.label = 11;
|
|
1419
|
-
case 11: return [2];
|
|
1420
|
-
}
|
|
1421
|
-
});
|
|
1422
|
-
}); };
|
|
1423
|
-
export var deserializeAws_json1_1UntagResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1424
|
-
var response;
|
|
1425
|
-
return __generator(this, function (_a) {
|
|
1426
|
-
switch (_a.label) {
|
|
1427
|
-
case 0:
|
|
1428
|
-
if (output.statusCode >= 300) {
|
|
1429
|
-
return [2, deserializeAws_json1_1UntagResourceCommandError(output, context)];
|
|
1430
|
-
}
|
|
1431
|
-
return [4, collectBody(output.body, context)];
|
|
1432
|
-
case 1:
|
|
1433
|
-
_a.sent();
|
|
1434
|
-
response = {
|
|
1435
|
-
$metadata: deserializeMetadata(output),
|
|
1436
|
-
};
|
|
1437
|
-
return [2, Promise.resolve(response)];
|
|
1438
|
-
}
|
|
1439
|
-
});
|
|
1440
|
-
}); };
|
|
1441
|
-
var deserializeAws_json1_1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1442
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1443
|
-
var _c;
|
|
1444
|
-
return __generator(this, function (_d) {
|
|
1445
|
-
switch (_d.label) {
|
|
1446
|
-
case 0:
|
|
1447
|
-
_a = [__assign({}, output)];
|
|
1448
|
-
_c = {};
|
|
1449
|
-
return [4, parseErrorBody(output.body, context)];
|
|
1450
|
-
case 1:
|
|
1451
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1452
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1453
|
-
_b = errorCode;
|
|
1454
|
-
switch (_b) {
|
|
1455
|
-
case "InternalServiceError": return [3, 2];
|
|
1456
|
-
case "com.amazonaws.secretsmanager#InternalServiceError": return [3, 2];
|
|
1457
|
-
case "InvalidParameterException": return [3, 4];
|
|
1458
|
-
case "com.amazonaws.secretsmanager#InvalidParameterException": return [3, 4];
|
|
1459
|
-
case "InvalidRequestException": return [3, 6];
|
|
1460
|
-
case "com.amazonaws.secretsmanager#InvalidRequestException": return [3, 6];
|
|
1461
|
-
case "ResourceNotFoundException": return [3, 8];
|
|
1462
|
-
case "com.amazonaws.secretsmanager#ResourceNotFoundException": return [3, 8];
|
|
1463
|
-
}
|
|
1464
|
-
return [3, 10];
|
|
1465
|
-
case 2: return [4, deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)];
|
|
1466
|
-
case 3: throw _d.sent();
|
|
1467
|
-
case 4: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1468
|
-
case 5: throw _d.sent();
|
|
1469
|
-
case 6: return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1470
|
-
case 7: throw _d.sent();
|
|
1471
|
-
case 8: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1472
|
-
case 9: throw _d.sent();
|
|
1473
|
-
case 10:
|
|
1474
|
-
parsedBody = parsedOutput.body;
|
|
1475
|
-
throwDefaultError({
|
|
1476
|
-
output: output,
|
|
1477
|
-
parsedBody: parsedBody,
|
|
1478
|
-
exceptionCtor: __BaseException,
|
|
1479
|
-
errorCode: errorCode,
|
|
1480
|
-
});
|
|
1481
|
-
_d.label = 11;
|
|
1482
|
-
case 11: return [2];
|
|
1483
|
-
}
|
|
1484
|
-
});
|
|
1485
|
-
}); };
|
|
1486
|
-
export var deserializeAws_json1_1UpdateSecretCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1487
|
-
var data, contents, response;
|
|
1488
|
-
return __generator(this, function (_a) {
|
|
1489
|
-
switch (_a.label) {
|
|
1490
|
-
case 0:
|
|
1491
|
-
if (output.statusCode >= 300) {
|
|
1492
|
-
return [2, deserializeAws_json1_1UpdateSecretCommandError(output, context)];
|
|
1493
|
-
}
|
|
1494
|
-
return [4, parseBody(output.body, context)];
|
|
1495
|
-
case 1:
|
|
1496
|
-
data = _a.sent();
|
|
1497
|
-
contents = {};
|
|
1498
|
-
contents = deserializeAws_json1_1UpdateSecretResponse(data, context);
|
|
1499
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1500
|
-
return [2, Promise.resolve(response)];
|
|
1501
|
-
}
|
|
1502
|
-
});
|
|
1503
|
-
}); };
|
|
1504
|
-
var deserializeAws_json1_1UpdateSecretCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1505
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1506
|
-
var _c;
|
|
1507
|
-
return __generator(this, function (_d) {
|
|
1508
|
-
switch (_d.label) {
|
|
1509
|
-
case 0:
|
|
1510
|
-
_a = [__assign({}, output)];
|
|
1511
|
-
_c = {};
|
|
1512
|
-
return [4, parseErrorBody(output.body, context)];
|
|
1513
|
-
case 1:
|
|
1514
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1515
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1516
|
-
_b = errorCode;
|
|
1517
|
-
switch (_b) {
|
|
1518
|
-
case "DecryptionFailure": return [3, 2];
|
|
1519
|
-
case "com.amazonaws.secretsmanager#DecryptionFailure": return [3, 2];
|
|
1520
|
-
case "EncryptionFailure": return [3, 4];
|
|
1521
|
-
case "com.amazonaws.secretsmanager#EncryptionFailure": return [3, 4];
|
|
1522
|
-
case "InternalServiceError": return [3, 6];
|
|
1523
|
-
case "com.amazonaws.secretsmanager#InternalServiceError": return [3, 6];
|
|
1524
|
-
case "InvalidParameterException": return [3, 8];
|
|
1525
|
-
case "com.amazonaws.secretsmanager#InvalidParameterException": return [3, 8];
|
|
1526
|
-
case "InvalidRequestException": return [3, 10];
|
|
1527
|
-
case "com.amazonaws.secretsmanager#InvalidRequestException": return [3, 10];
|
|
1528
|
-
case "LimitExceededException": return [3, 12];
|
|
1529
|
-
case "com.amazonaws.secretsmanager#LimitExceededException": return [3, 12];
|
|
1530
|
-
case "MalformedPolicyDocumentException": return [3, 14];
|
|
1531
|
-
case "com.amazonaws.secretsmanager#MalformedPolicyDocumentException": return [3, 14];
|
|
1532
|
-
case "PreconditionNotMetException": return [3, 16];
|
|
1533
|
-
case "com.amazonaws.secretsmanager#PreconditionNotMetException": return [3, 16];
|
|
1534
|
-
case "ResourceExistsException": return [3, 18];
|
|
1535
|
-
case "com.amazonaws.secretsmanager#ResourceExistsException": return [3, 18];
|
|
1536
|
-
case "ResourceNotFoundException": return [3, 20];
|
|
1537
|
-
case "com.amazonaws.secretsmanager#ResourceNotFoundException": return [3, 20];
|
|
1538
|
-
}
|
|
1539
|
-
return [3, 22];
|
|
1540
|
-
case 2: return [4, deserializeAws_json1_1DecryptionFailureResponse(parsedOutput, context)];
|
|
1541
|
-
case 3: throw _d.sent();
|
|
1542
|
-
case 4: return [4, deserializeAws_json1_1EncryptionFailureResponse(parsedOutput, context)];
|
|
1543
|
-
case 5: throw _d.sent();
|
|
1544
|
-
case 6: return [4, deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)];
|
|
1545
|
-
case 7: throw _d.sent();
|
|
1546
|
-
case 8: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1547
|
-
case 9: throw _d.sent();
|
|
1548
|
-
case 10: return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1549
|
-
case 11: throw _d.sent();
|
|
1550
|
-
case 12: return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1551
|
-
case 13: throw _d.sent();
|
|
1552
|
-
case 14: return [4, deserializeAws_json1_1MalformedPolicyDocumentExceptionResponse(parsedOutput, context)];
|
|
1553
|
-
case 15: throw _d.sent();
|
|
1554
|
-
case 16: return [4, deserializeAws_json1_1PreconditionNotMetExceptionResponse(parsedOutput, context)];
|
|
1555
|
-
case 17: throw _d.sent();
|
|
1556
|
-
case 18: return [4, deserializeAws_json1_1ResourceExistsExceptionResponse(parsedOutput, context)];
|
|
1557
|
-
case 19: throw _d.sent();
|
|
1558
|
-
case 20: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1559
|
-
case 21: throw _d.sent();
|
|
1560
|
-
case 22:
|
|
1561
|
-
parsedBody = parsedOutput.body;
|
|
1562
|
-
throwDefaultError({
|
|
1563
|
-
output: output,
|
|
1564
|
-
parsedBody: parsedBody,
|
|
1565
|
-
exceptionCtor: __BaseException,
|
|
1566
|
-
errorCode: errorCode,
|
|
1567
|
-
});
|
|
1568
|
-
_d.label = 23;
|
|
1569
|
-
case 23: return [2];
|
|
1570
|
-
}
|
|
1571
|
-
});
|
|
1572
|
-
}); };
|
|
1573
|
-
export var deserializeAws_json1_1UpdateSecretVersionStageCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1574
|
-
var data, contents, response;
|
|
1575
|
-
return __generator(this, function (_a) {
|
|
1576
|
-
switch (_a.label) {
|
|
1577
|
-
case 0:
|
|
1578
|
-
if (output.statusCode >= 300) {
|
|
1579
|
-
return [2, deserializeAws_json1_1UpdateSecretVersionStageCommandError(output, context)];
|
|
1580
|
-
}
|
|
1581
|
-
return [4, parseBody(output.body, context)];
|
|
1582
|
-
case 1:
|
|
1583
|
-
data = _a.sent();
|
|
1584
|
-
contents = {};
|
|
1585
|
-
contents = deserializeAws_json1_1UpdateSecretVersionStageResponse(data, context);
|
|
1586
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1587
|
-
return [2, Promise.resolve(response)];
|
|
1588
|
-
}
|
|
1589
|
-
});
|
|
1590
|
-
}); };
|
|
1591
|
-
var deserializeAws_json1_1UpdateSecretVersionStageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1592
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1593
|
-
var _c;
|
|
1594
|
-
return __generator(this, function (_d) {
|
|
1595
|
-
switch (_d.label) {
|
|
1596
|
-
case 0:
|
|
1597
|
-
_a = [__assign({}, output)];
|
|
1598
|
-
_c = {};
|
|
1599
|
-
return [4, parseErrorBody(output.body, context)];
|
|
1600
|
-
case 1:
|
|
1601
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1602
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1603
|
-
_b = errorCode;
|
|
1604
|
-
switch (_b) {
|
|
1605
|
-
case "InternalServiceError": return [3, 2];
|
|
1606
|
-
case "com.amazonaws.secretsmanager#InternalServiceError": return [3, 2];
|
|
1607
|
-
case "InvalidParameterException": return [3, 4];
|
|
1608
|
-
case "com.amazonaws.secretsmanager#InvalidParameterException": return [3, 4];
|
|
1609
|
-
case "InvalidRequestException": return [3, 6];
|
|
1610
|
-
case "com.amazonaws.secretsmanager#InvalidRequestException": return [3, 6];
|
|
1611
|
-
case "LimitExceededException": return [3, 8];
|
|
1612
|
-
case "com.amazonaws.secretsmanager#LimitExceededException": return [3, 8];
|
|
1613
|
-
case "ResourceNotFoundException": return [3, 10];
|
|
1614
|
-
case "com.amazonaws.secretsmanager#ResourceNotFoundException": return [3, 10];
|
|
1615
|
-
}
|
|
1616
|
-
return [3, 12];
|
|
1617
|
-
case 2: return [4, deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)];
|
|
1618
|
-
case 3: throw _d.sent();
|
|
1619
|
-
case 4: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1620
|
-
case 5: throw _d.sent();
|
|
1621
|
-
case 6: return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1622
|
-
case 7: throw _d.sent();
|
|
1623
|
-
case 8: return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1624
|
-
case 9: throw _d.sent();
|
|
1625
|
-
case 10: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1626
|
-
case 11: throw _d.sent();
|
|
1627
|
-
case 12:
|
|
1628
|
-
parsedBody = parsedOutput.body;
|
|
1629
|
-
throwDefaultError({
|
|
1630
|
-
output: output,
|
|
1631
|
-
parsedBody: parsedBody,
|
|
1632
|
-
exceptionCtor: __BaseException,
|
|
1633
|
-
errorCode: errorCode,
|
|
1634
|
-
});
|
|
1635
|
-
_d.label = 13;
|
|
1636
|
-
case 13: return [2];
|
|
1637
|
-
}
|
|
1638
|
-
});
|
|
1639
|
-
}); };
|
|
1640
|
-
export var deserializeAws_json1_1ValidateResourcePolicyCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1641
|
-
var data, contents, response;
|
|
1642
|
-
return __generator(this, function (_a) {
|
|
1643
|
-
switch (_a.label) {
|
|
1644
|
-
case 0:
|
|
1645
|
-
if (output.statusCode >= 300) {
|
|
1646
|
-
return [2, deserializeAws_json1_1ValidateResourcePolicyCommandError(output, context)];
|
|
1647
|
-
}
|
|
1648
|
-
return [4, parseBody(output.body, context)];
|
|
1649
|
-
case 1:
|
|
1650
|
-
data = _a.sent();
|
|
1651
|
-
contents = {};
|
|
1652
|
-
contents = deserializeAws_json1_1ValidateResourcePolicyResponse(data, context);
|
|
1653
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1654
|
-
return [2, Promise.resolve(response)];
|
|
1655
|
-
}
|
|
1656
|
-
});
|
|
1657
|
-
}); };
|
|
1658
|
-
var deserializeAws_json1_1ValidateResourcePolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1659
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1660
|
-
var _c;
|
|
1661
|
-
return __generator(this, function (_d) {
|
|
1662
|
-
switch (_d.label) {
|
|
1663
|
-
case 0:
|
|
1664
|
-
_a = [__assign({}, output)];
|
|
1665
|
-
_c = {};
|
|
1666
|
-
return [4, parseErrorBody(output.body, context)];
|
|
1667
|
-
case 1:
|
|
1668
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1669
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1670
|
-
_b = errorCode;
|
|
1671
|
-
switch (_b) {
|
|
1672
|
-
case "InternalServiceError": return [3, 2];
|
|
1673
|
-
case "com.amazonaws.secretsmanager#InternalServiceError": return [3, 2];
|
|
1674
|
-
case "InvalidParameterException": return [3, 4];
|
|
1675
|
-
case "com.amazonaws.secretsmanager#InvalidParameterException": return [3, 4];
|
|
1676
|
-
case "InvalidRequestException": return [3, 6];
|
|
1677
|
-
case "com.amazonaws.secretsmanager#InvalidRequestException": return [3, 6];
|
|
1678
|
-
case "MalformedPolicyDocumentException": return [3, 8];
|
|
1679
|
-
case "com.amazonaws.secretsmanager#MalformedPolicyDocumentException": return [3, 8];
|
|
1680
|
-
case "ResourceNotFoundException": return [3, 10];
|
|
1681
|
-
case "com.amazonaws.secretsmanager#ResourceNotFoundException": return [3, 10];
|
|
1682
|
-
}
|
|
1683
|
-
return [3, 12];
|
|
1684
|
-
case 2: return [4, deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context)];
|
|
1685
|
-
case 3: throw _d.sent();
|
|
1686
|
-
case 4: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1687
|
-
case 5: throw _d.sent();
|
|
1688
|
-
case 6: return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1689
|
-
case 7: throw _d.sent();
|
|
1690
|
-
case 8: return [4, deserializeAws_json1_1MalformedPolicyDocumentExceptionResponse(parsedOutput, context)];
|
|
1691
|
-
case 9: throw _d.sent();
|
|
1692
|
-
case 10: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1693
|
-
case 11: throw _d.sent();
|
|
1694
|
-
case 12:
|
|
1695
|
-
parsedBody = parsedOutput.body;
|
|
1696
|
-
throwDefaultError({
|
|
1697
|
-
output: output,
|
|
1698
|
-
parsedBody: parsedBody,
|
|
1699
|
-
exceptionCtor: __BaseException,
|
|
1700
|
-
errorCode: errorCode,
|
|
1701
|
-
});
|
|
1702
|
-
_d.label = 13;
|
|
1703
|
-
case 13: return [2];
|
|
1704
|
-
}
|
|
1705
|
-
});
|
|
1706
|
-
}); };
|
|
1707
|
-
var deserializeAws_json1_1DecryptionFailureResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1708
|
-
var body, deserialized, exception;
|
|
1709
|
-
return __generator(this, function (_a) {
|
|
1710
|
-
body = parsedOutput.body;
|
|
1711
|
-
deserialized = deserializeAws_json1_1DecryptionFailure(body, context);
|
|
1712
|
-
exception = new DecryptionFailure(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1713
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1714
|
-
});
|
|
1715
|
-
}); };
|
|
1716
|
-
var deserializeAws_json1_1EncryptionFailureResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1717
|
-
var body, deserialized, exception;
|
|
1718
|
-
return __generator(this, function (_a) {
|
|
1719
|
-
body = parsedOutput.body;
|
|
1720
|
-
deserialized = deserializeAws_json1_1EncryptionFailure(body, context);
|
|
1721
|
-
exception = new EncryptionFailure(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1722
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1723
|
-
});
|
|
1724
|
-
}); };
|
|
1725
|
-
var deserializeAws_json1_1InternalServiceErrorResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1726
|
-
var body, deserialized, exception;
|
|
1727
|
-
return __generator(this, function (_a) {
|
|
1728
|
-
body = parsedOutput.body;
|
|
1729
|
-
deserialized = deserializeAws_json1_1InternalServiceError(body, context);
|
|
1730
|
-
exception = new InternalServiceError(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1731
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1732
|
-
});
|
|
1733
|
-
}); };
|
|
1734
|
-
var deserializeAws_json1_1InvalidNextTokenExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1735
|
-
var body, deserialized, exception;
|
|
1736
|
-
return __generator(this, function (_a) {
|
|
1737
|
-
body = parsedOutput.body;
|
|
1738
|
-
deserialized = deserializeAws_json1_1InvalidNextTokenException(body, context);
|
|
1739
|
-
exception = new InvalidNextTokenException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1740
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1741
|
-
});
|
|
1742
|
-
}); };
|
|
1743
|
-
var deserializeAws_json1_1InvalidParameterExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1744
|
-
var body, deserialized, exception;
|
|
1745
|
-
return __generator(this, function (_a) {
|
|
1746
|
-
body = parsedOutput.body;
|
|
1747
|
-
deserialized = deserializeAws_json1_1InvalidParameterException(body, context);
|
|
1748
|
-
exception = new InvalidParameterException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1749
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1750
|
-
});
|
|
1751
|
-
}); };
|
|
1752
|
-
var deserializeAws_json1_1InvalidRequestExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1753
|
-
var body, deserialized, exception;
|
|
1754
|
-
return __generator(this, function (_a) {
|
|
1755
|
-
body = parsedOutput.body;
|
|
1756
|
-
deserialized = deserializeAws_json1_1InvalidRequestException(body, context);
|
|
1757
|
-
exception = new InvalidRequestException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1758
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1759
|
-
});
|
|
1760
|
-
}); };
|
|
1761
|
-
var deserializeAws_json1_1LimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1762
|
-
var body, deserialized, exception;
|
|
1763
|
-
return __generator(this, function (_a) {
|
|
1764
|
-
body = parsedOutput.body;
|
|
1765
|
-
deserialized = deserializeAws_json1_1LimitExceededException(body, context);
|
|
1766
|
-
exception = new LimitExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1767
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1768
|
-
});
|
|
1769
|
-
}); };
|
|
1770
|
-
var deserializeAws_json1_1MalformedPolicyDocumentExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1771
|
-
var body, deserialized, exception;
|
|
1772
|
-
return __generator(this, function (_a) {
|
|
1773
|
-
body = parsedOutput.body;
|
|
1774
|
-
deserialized = deserializeAws_json1_1MalformedPolicyDocumentException(body, context);
|
|
1775
|
-
exception = new MalformedPolicyDocumentException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1776
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1777
|
-
});
|
|
1778
|
-
}); };
|
|
1779
|
-
var deserializeAws_json1_1PreconditionNotMetExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1780
|
-
var body, deserialized, exception;
|
|
1781
|
-
return __generator(this, function (_a) {
|
|
1782
|
-
body = parsedOutput.body;
|
|
1783
|
-
deserialized = deserializeAws_json1_1PreconditionNotMetException(body, context);
|
|
1784
|
-
exception = new PreconditionNotMetException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1785
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1786
|
-
});
|
|
1787
|
-
}); };
|
|
1788
|
-
var deserializeAws_json1_1PublicPolicyExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1789
|
-
var body, deserialized, exception;
|
|
1790
|
-
return __generator(this, function (_a) {
|
|
1791
|
-
body = parsedOutput.body;
|
|
1792
|
-
deserialized = deserializeAws_json1_1PublicPolicyException(body, context);
|
|
1793
|
-
exception = new PublicPolicyException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1794
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1795
|
-
});
|
|
1796
|
-
}); };
|
|
1797
|
-
var deserializeAws_json1_1ResourceExistsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1798
|
-
var body, deserialized, exception;
|
|
1799
|
-
return __generator(this, function (_a) {
|
|
1800
|
-
body = parsedOutput.body;
|
|
1801
|
-
deserialized = deserializeAws_json1_1ResourceExistsException(body, context);
|
|
1802
|
-
exception = new ResourceExistsException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1803
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1804
|
-
});
|
|
1805
|
-
}); };
|
|
1806
|
-
var deserializeAws_json1_1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1807
|
-
var body, deserialized, exception;
|
|
1808
|
-
return __generator(this, function (_a) {
|
|
1809
|
-
body = parsedOutput.body;
|
|
1810
|
-
deserialized = deserializeAws_json1_1ResourceNotFoundException(body, context);
|
|
1811
|
-
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1812
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1813
|
-
});
|
|
1814
|
-
}); };
|
|
1815
|
-
var serializeAws_json1_1AddReplicaRegionListType = function (input, context) {
|
|
6
|
+
export const serializeAws_json1_1CancelRotateSecretCommand = async (input, context) => {
|
|
7
|
+
const headers = {
|
|
8
|
+
"content-type": "application/x-amz-json-1.1",
|
|
9
|
+
"x-amz-target": "secretsmanager.CancelRotateSecret",
|
|
10
|
+
};
|
|
11
|
+
let body;
|
|
12
|
+
body = JSON.stringify(serializeAws_json1_1CancelRotateSecretRequest(input, context));
|
|
13
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
14
|
+
};
|
|
15
|
+
export const serializeAws_json1_1CreateSecretCommand = async (input, context) => {
|
|
16
|
+
const headers = {
|
|
17
|
+
"content-type": "application/x-amz-json-1.1",
|
|
18
|
+
"x-amz-target": "secretsmanager.CreateSecret",
|
|
19
|
+
};
|
|
20
|
+
let body;
|
|
21
|
+
body = JSON.stringify(serializeAws_json1_1CreateSecretRequest(input, context));
|
|
22
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
23
|
+
};
|
|
24
|
+
export const serializeAws_json1_1DeleteResourcePolicyCommand = async (input, context) => {
|
|
25
|
+
const headers = {
|
|
26
|
+
"content-type": "application/x-amz-json-1.1",
|
|
27
|
+
"x-amz-target": "secretsmanager.DeleteResourcePolicy",
|
|
28
|
+
};
|
|
29
|
+
let body;
|
|
30
|
+
body = JSON.stringify(serializeAws_json1_1DeleteResourcePolicyRequest(input, context));
|
|
31
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
32
|
+
};
|
|
33
|
+
export const serializeAws_json1_1DeleteSecretCommand = async (input, context) => {
|
|
34
|
+
const headers = {
|
|
35
|
+
"content-type": "application/x-amz-json-1.1",
|
|
36
|
+
"x-amz-target": "secretsmanager.DeleteSecret",
|
|
37
|
+
};
|
|
38
|
+
let body;
|
|
39
|
+
body = JSON.stringify(serializeAws_json1_1DeleteSecretRequest(input, context));
|
|
40
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
|
+
};
|
|
42
|
+
export const serializeAws_json1_1DescribeSecretCommand = async (input, context) => {
|
|
43
|
+
const headers = {
|
|
44
|
+
"content-type": "application/x-amz-json-1.1",
|
|
45
|
+
"x-amz-target": "secretsmanager.DescribeSecret",
|
|
46
|
+
};
|
|
47
|
+
let body;
|
|
48
|
+
body = JSON.stringify(serializeAws_json1_1DescribeSecretRequest(input, context));
|
|
49
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
50
|
+
};
|
|
51
|
+
export const serializeAws_json1_1GetRandomPasswordCommand = async (input, context) => {
|
|
52
|
+
const headers = {
|
|
53
|
+
"content-type": "application/x-amz-json-1.1",
|
|
54
|
+
"x-amz-target": "secretsmanager.GetRandomPassword",
|
|
55
|
+
};
|
|
56
|
+
let body;
|
|
57
|
+
body = JSON.stringify(serializeAws_json1_1GetRandomPasswordRequest(input, context));
|
|
58
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
59
|
+
};
|
|
60
|
+
export const serializeAws_json1_1GetResourcePolicyCommand = async (input, context) => {
|
|
61
|
+
const headers = {
|
|
62
|
+
"content-type": "application/x-amz-json-1.1",
|
|
63
|
+
"x-amz-target": "secretsmanager.GetResourcePolicy",
|
|
64
|
+
};
|
|
65
|
+
let body;
|
|
66
|
+
body = JSON.stringify(serializeAws_json1_1GetResourcePolicyRequest(input, context));
|
|
67
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
68
|
+
};
|
|
69
|
+
export const serializeAws_json1_1GetSecretValueCommand = async (input, context) => {
|
|
70
|
+
const headers = {
|
|
71
|
+
"content-type": "application/x-amz-json-1.1",
|
|
72
|
+
"x-amz-target": "secretsmanager.GetSecretValue",
|
|
73
|
+
};
|
|
74
|
+
let body;
|
|
75
|
+
body = JSON.stringify(serializeAws_json1_1GetSecretValueRequest(input, context));
|
|
76
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
|
+
};
|
|
78
|
+
export const serializeAws_json1_1ListSecretsCommand = async (input, context) => {
|
|
79
|
+
const headers = {
|
|
80
|
+
"content-type": "application/x-amz-json-1.1",
|
|
81
|
+
"x-amz-target": "secretsmanager.ListSecrets",
|
|
82
|
+
};
|
|
83
|
+
let body;
|
|
84
|
+
body = JSON.stringify(serializeAws_json1_1ListSecretsRequest(input, context));
|
|
85
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
86
|
+
};
|
|
87
|
+
export const serializeAws_json1_1ListSecretVersionIdsCommand = async (input, context) => {
|
|
88
|
+
const headers = {
|
|
89
|
+
"content-type": "application/x-amz-json-1.1",
|
|
90
|
+
"x-amz-target": "secretsmanager.ListSecretVersionIds",
|
|
91
|
+
};
|
|
92
|
+
let body;
|
|
93
|
+
body = JSON.stringify(serializeAws_json1_1ListSecretVersionIdsRequest(input, context));
|
|
94
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
95
|
+
};
|
|
96
|
+
export const serializeAws_json1_1PutResourcePolicyCommand = async (input, context) => {
|
|
97
|
+
const headers = {
|
|
98
|
+
"content-type": "application/x-amz-json-1.1",
|
|
99
|
+
"x-amz-target": "secretsmanager.PutResourcePolicy",
|
|
100
|
+
};
|
|
101
|
+
let body;
|
|
102
|
+
body = JSON.stringify(serializeAws_json1_1PutResourcePolicyRequest(input, context));
|
|
103
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
104
|
+
};
|
|
105
|
+
export const serializeAws_json1_1PutSecretValueCommand = async (input, context) => {
|
|
106
|
+
const headers = {
|
|
107
|
+
"content-type": "application/x-amz-json-1.1",
|
|
108
|
+
"x-amz-target": "secretsmanager.PutSecretValue",
|
|
109
|
+
};
|
|
110
|
+
let body;
|
|
111
|
+
body = JSON.stringify(serializeAws_json1_1PutSecretValueRequest(input, context));
|
|
112
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
113
|
+
};
|
|
114
|
+
export const serializeAws_json1_1RemoveRegionsFromReplicationCommand = async (input, context) => {
|
|
115
|
+
const headers = {
|
|
116
|
+
"content-type": "application/x-amz-json-1.1",
|
|
117
|
+
"x-amz-target": "secretsmanager.RemoveRegionsFromReplication",
|
|
118
|
+
};
|
|
119
|
+
let body;
|
|
120
|
+
body = JSON.stringify(serializeAws_json1_1RemoveRegionsFromReplicationRequest(input, context));
|
|
121
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
122
|
+
};
|
|
123
|
+
export const serializeAws_json1_1ReplicateSecretToRegionsCommand = async (input, context) => {
|
|
124
|
+
const headers = {
|
|
125
|
+
"content-type": "application/x-amz-json-1.1",
|
|
126
|
+
"x-amz-target": "secretsmanager.ReplicateSecretToRegions",
|
|
127
|
+
};
|
|
128
|
+
let body;
|
|
129
|
+
body = JSON.stringify(serializeAws_json1_1ReplicateSecretToRegionsRequest(input, context));
|
|
130
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
131
|
+
};
|
|
132
|
+
export const serializeAws_json1_1RestoreSecretCommand = async (input, context) => {
|
|
133
|
+
const headers = {
|
|
134
|
+
"content-type": "application/x-amz-json-1.1",
|
|
135
|
+
"x-amz-target": "secretsmanager.RestoreSecret",
|
|
136
|
+
};
|
|
137
|
+
let body;
|
|
138
|
+
body = JSON.stringify(serializeAws_json1_1RestoreSecretRequest(input, context));
|
|
139
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
140
|
+
};
|
|
141
|
+
export const serializeAws_json1_1RotateSecretCommand = async (input, context) => {
|
|
142
|
+
const headers = {
|
|
143
|
+
"content-type": "application/x-amz-json-1.1",
|
|
144
|
+
"x-amz-target": "secretsmanager.RotateSecret",
|
|
145
|
+
};
|
|
146
|
+
let body;
|
|
147
|
+
body = JSON.stringify(serializeAws_json1_1RotateSecretRequest(input, context));
|
|
148
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
149
|
+
};
|
|
150
|
+
export const serializeAws_json1_1StopReplicationToReplicaCommand = async (input, context) => {
|
|
151
|
+
const headers = {
|
|
152
|
+
"content-type": "application/x-amz-json-1.1",
|
|
153
|
+
"x-amz-target": "secretsmanager.StopReplicationToReplica",
|
|
154
|
+
};
|
|
155
|
+
let body;
|
|
156
|
+
body = JSON.stringify(serializeAws_json1_1StopReplicationToReplicaRequest(input, context));
|
|
157
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
158
|
+
};
|
|
159
|
+
export const serializeAws_json1_1TagResourceCommand = async (input, context) => {
|
|
160
|
+
const headers = {
|
|
161
|
+
"content-type": "application/x-amz-json-1.1",
|
|
162
|
+
"x-amz-target": "secretsmanager.TagResource",
|
|
163
|
+
};
|
|
164
|
+
let body;
|
|
165
|
+
body = JSON.stringify(serializeAws_json1_1TagResourceRequest(input, context));
|
|
166
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
167
|
+
};
|
|
168
|
+
export const serializeAws_json1_1UntagResourceCommand = async (input, context) => {
|
|
169
|
+
const headers = {
|
|
170
|
+
"content-type": "application/x-amz-json-1.1",
|
|
171
|
+
"x-amz-target": "secretsmanager.UntagResource",
|
|
172
|
+
};
|
|
173
|
+
let body;
|
|
174
|
+
body = JSON.stringify(serializeAws_json1_1UntagResourceRequest(input, context));
|
|
175
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
176
|
+
};
|
|
177
|
+
export const serializeAws_json1_1UpdateSecretCommand = async (input, context) => {
|
|
178
|
+
const headers = {
|
|
179
|
+
"content-type": "application/x-amz-json-1.1",
|
|
180
|
+
"x-amz-target": "secretsmanager.UpdateSecret",
|
|
181
|
+
};
|
|
182
|
+
let body;
|
|
183
|
+
body = JSON.stringify(serializeAws_json1_1UpdateSecretRequest(input, context));
|
|
184
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
185
|
+
};
|
|
186
|
+
export const serializeAws_json1_1UpdateSecretVersionStageCommand = async (input, context) => {
|
|
187
|
+
const headers = {
|
|
188
|
+
"content-type": "application/x-amz-json-1.1",
|
|
189
|
+
"x-amz-target": "secretsmanager.UpdateSecretVersionStage",
|
|
190
|
+
};
|
|
191
|
+
let body;
|
|
192
|
+
body = JSON.stringify(serializeAws_json1_1UpdateSecretVersionStageRequest(input, context));
|
|
193
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
194
|
+
};
|
|
195
|
+
export const serializeAws_json1_1ValidateResourcePolicyCommand = async (input, context) => {
|
|
196
|
+
const headers = {
|
|
197
|
+
"content-type": "application/x-amz-json-1.1",
|
|
198
|
+
"x-amz-target": "secretsmanager.ValidateResourcePolicy",
|
|
199
|
+
};
|
|
200
|
+
let body;
|
|
201
|
+
body = JSON.stringify(serializeAws_json1_1ValidateResourcePolicyRequest(input, context));
|
|
202
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
203
|
+
};
|
|
204
|
+
export const deserializeAws_json1_1CancelRotateSecretCommand = async (output, context) => {
|
|
205
|
+
if (output.statusCode >= 300) {
|
|
206
|
+
return deserializeAws_json1_1CancelRotateSecretCommandError(output, context);
|
|
207
|
+
}
|
|
208
|
+
const data = await parseBody(output.body, context);
|
|
209
|
+
let contents = {};
|
|
210
|
+
contents = deserializeAws_json1_1CancelRotateSecretResponse(data, context);
|
|
211
|
+
const response = {
|
|
212
|
+
$metadata: deserializeMetadata(output),
|
|
213
|
+
...contents,
|
|
214
|
+
};
|
|
215
|
+
return Promise.resolve(response);
|
|
216
|
+
};
|
|
217
|
+
const deserializeAws_json1_1CancelRotateSecretCommandError = async (output, context) => {
|
|
218
|
+
const parsedOutput = {
|
|
219
|
+
...output,
|
|
220
|
+
body: await parseErrorBody(output.body, context),
|
|
221
|
+
};
|
|
222
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
223
|
+
switch (errorCode) {
|
|
224
|
+
case "InternalServiceError":
|
|
225
|
+
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
226
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
227
|
+
case "InvalidParameterException":
|
|
228
|
+
case "com.amazonaws.secretsmanager#InvalidParameterException":
|
|
229
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
230
|
+
case "InvalidRequestException":
|
|
231
|
+
case "com.amazonaws.secretsmanager#InvalidRequestException":
|
|
232
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
233
|
+
case "ResourceNotFoundException":
|
|
234
|
+
case "com.amazonaws.secretsmanager#ResourceNotFoundException":
|
|
235
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
236
|
+
default:
|
|
237
|
+
const parsedBody = parsedOutput.body;
|
|
238
|
+
throwDefaultError({
|
|
239
|
+
output,
|
|
240
|
+
parsedBody,
|
|
241
|
+
exceptionCtor: __BaseException,
|
|
242
|
+
errorCode,
|
|
243
|
+
});
|
|
244
|
+
}
|
|
245
|
+
};
|
|
246
|
+
export const deserializeAws_json1_1CreateSecretCommand = async (output, context) => {
|
|
247
|
+
if (output.statusCode >= 300) {
|
|
248
|
+
return deserializeAws_json1_1CreateSecretCommandError(output, context);
|
|
249
|
+
}
|
|
250
|
+
const data = await parseBody(output.body, context);
|
|
251
|
+
let contents = {};
|
|
252
|
+
contents = deserializeAws_json1_1CreateSecretResponse(data, context);
|
|
253
|
+
const response = {
|
|
254
|
+
$metadata: deserializeMetadata(output),
|
|
255
|
+
...contents,
|
|
256
|
+
};
|
|
257
|
+
return Promise.resolve(response);
|
|
258
|
+
};
|
|
259
|
+
const deserializeAws_json1_1CreateSecretCommandError = async (output, context) => {
|
|
260
|
+
const parsedOutput = {
|
|
261
|
+
...output,
|
|
262
|
+
body: await parseErrorBody(output.body, context),
|
|
263
|
+
};
|
|
264
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
265
|
+
switch (errorCode) {
|
|
266
|
+
case "DecryptionFailure":
|
|
267
|
+
case "com.amazonaws.secretsmanager#DecryptionFailure":
|
|
268
|
+
throw await deserializeAws_json1_1DecryptionFailureResponse(parsedOutput, context);
|
|
269
|
+
case "EncryptionFailure":
|
|
270
|
+
case "com.amazonaws.secretsmanager#EncryptionFailure":
|
|
271
|
+
throw await deserializeAws_json1_1EncryptionFailureResponse(parsedOutput, context);
|
|
272
|
+
case "InternalServiceError":
|
|
273
|
+
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
274
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
275
|
+
case "InvalidParameterException":
|
|
276
|
+
case "com.amazonaws.secretsmanager#InvalidParameterException":
|
|
277
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
278
|
+
case "InvalidRequestException":
|
|
279
|
+
case "com.amazonaws.secretsmanager#InvalidRequestException":
|
|
280
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
281
|
+
case "LimitExceededException":
|
|
282
|
+
case "com.amazonaws.secretsmanager#LimitExceededException":
|
|
283
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
284
|
+
case "MalformedPolicyDocumentException":
|
|
285
|
+
case "com.amazonaws.secretsmanager#MalformedPolicyDocumentException":
|
|
286
|
+
throw await deserializeAws_json1_1MalformedPolicyDocumentExceptionResponse(parsedOutput, context);
|
|
287
|
+
case "PreconditionNotMetException":
|
|
288
|
+
case "com.amazonaws.secretsmanager#PreconditionNotMetException":
|
|
289
|
+
throw await deserializeAws_json1_1PreconditionNotMetExceptionResponse(parsedOutput, context);
|
|
290
|
+
case "ResourceExistsException":
|
|
291
|
+
case "com.amazonaws.secretsmanager#ResourceExistsException":
|
|
292
|
+
throw await deserializeAws_json1_1ResourceExistsExceptionResponse(parsedOutput, context);
|
|
293
|
+
case "ResourceNotFoundException":
|
|
294
|
+
case "com.amazonaws.secretsmanager#ResourceNotFoundException":
|
|
295
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
296
|
+
default:
|
|
297
|
+
const parsedBody = parsedOutput.body;
|
|
298
|
+
throwDefaultError({
|
|
299
|
+
output,
|
|
300
|
+
parsedBody,
|
|
301
|
+
exceptionCtor: __BaseException,
|
|
302
|
+
errorCode,
|
|
303
|
+
});
|
|
304
|
+
}
|
|
305
|
+
};
|
|
306
|
+
export const deserializeAws_json1_1DeleteResourcePolicyCommand = async (output, context) => {
|
|
307
|
+
if (output.statusCode >= 300) {
|
|
308
|
+
return deserializeAws_json1_1DeleteResourcePolicyCommandError(output, context);
|
|
309
|
+
}
|
|
310
|
+
const data = await parseBody(output.body, context);
|
|
311
|
+
let contents = {};
|
|
312
|
+
contents = deserializeAws_json1_1DeleteResourcePolicyResponse(data, context);
|
|
313
|
+
const response = {
|
|
314
|
+
$metadata: deserializeMetadata(output),
|
|
315
|
+
...contents,
|
|
316
|
+
};
|
|
317
|
+
return Promise.resolve(response);
|
|
318
|
+
};
|
|
319
|
+
const deserializeAws_json1_1DeleteResourcePolicyCommandError = async (output, context) => {
|
|
320
|
+
const parsedOutput = {
|
|
321
|
+
...output,
|
|
322
|
+
body: await parseErrorBody(output.body, context),
|
|
323
|
+
};
|
|
324
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
325
|
+
switch (errorCode) {
|
|
326
|
+
case "InternalServiceError":
|
|
327
|
+
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
328
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
329
|
+
case "InvalidParameterException":
|
|
330
|
+
case "com.amazonaws.secretsmanager#InvalidParameterException":
|
|
331
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
332
|
+
case "InvalidRequestException":
|
|
333
|
+
case "com.amazonaws.secretsmanager#InvalidRequestException":
|
|
334
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
335
|
+
case "ResourceNotFoundException":
|
|
336
|
+
case "com.amazonaws.secretsmanager#ResourceNotFoundException":
|
|
337
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
338
|
+
default:
|
|
339
|
+
const parsedBody = parsedOutput.body;
|
|
340
|
+
throwDefaultError({
|
|
341
|
+
output,
|
|
342
|
+
parsedBody,
|
|
343
|
+
exceptionCtor: __BaseException,
|
|
344
|
+
errorCode,
|
|
345
|
+
});
|
|
346
|
+
}
|
|
347
|
+
};
|
|
348
|
+
export const deserializeAws_json1_1DeleteSecretCommand = async (output, context) => {
|
|
349
|
+
if (output.statusCode >= 300) {
|
|
350
|
+
return deserializeAws_json1_1DeleteSecretCommandError(output, context);
|
|
351
|
+
}
|
|
352
|
+
const data = await parseBody(output.body, context);
|
|
353
|
+
let contents = {};
|
|
354
|
+
contents = deserializeAws_json1_1DeleteSecretResponse(data, context);
|
|
355
|
+
const response = {
|
|
356
|
+
$metadata: deserializeMetadata(output),
|
|
357
|
+
...contents,
|
|
358
|
+
};
|
|
359
|
+
return Promise.resolve(response);
|
|
360
|
+
};
|
|
361
|
+
const deserializeAws_json1_1DeleteSecretCommandError = async (output, context) => {
|
|
362
|
+
const parsedOutput = {
|
|
363
|
+
...output,
|
|
364
|
+
body: await parseErrorBody(output.body, context),
|
|
365
|
+
};
|
|
366
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
367
|
+
switch (errorCode) {
|
|
368
|
+
case "InternalServiceError":
|
|
369
|
+
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
370
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
371
|
+
case "InvalidParameterException":
|
|
372
|
+
case "com.amazonaws.secretsmanager#InvalidParameterException":
|
|
373
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
374
|
+
case "InvalidRequestException":
|
|
375
|
+
case "com.amazonaws.secretsmanager#InvalidRequestException":
|
|
376
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
377
|
+
case "ResourceNotFoundException":
|
|
378
|
+
case "com.amazonaws.secretsmanager#ResourceNotFoundException":
|
|
379
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
380
|
+
default:
|
|
381
|
+
const parsedBody = parsedOutput.body;
|
|
382
|
+
throwDefaultError({
|
|
383
|
+
output,
|
|
384
|
+
parsedBody,
|
|
385
|
+
exceptionCtor: __BaseException,
|
|
386
|
+
errorCode,
|
|
387
|
+
});
|
|
388
|
+
}
|
|
389
|
+
};
|
|
390
|
+
export const deserializeAws_json1_1DescribeSecretCommand = async (output, context) => {
|
|
391
|
+
if (output.statusCode >= 300) {
|
|
392
|
+
return deserializeAws_json1_1DescribeSecretCommandError(output, context);
|
|
393
|
+
}
|
|
394
|
+
const data = await parseBody(output.body, context);
|
|
395
|
+
let contents = {};
|
|
396
|
+
contents = deserializeAws_json1_1DescribeSecretResponse(data, context);
|
|
397
|
+
const response = {
|
|
398
|
+
$metadata: deserializeMetadata(output),
|
|
399
|
+
...contents,
|
|
400
|
+
};
|
|
401
|
+
return Promise.resolve(response);
|
|
402
|
+
};
|
|
403
|
+
const deserializeAws_json1_1DescribeSecretCommandError = async (output, context) => {
|
|
404
|
+
const parsedOutput = {
|
|
405
|
+
...output,
|
|
406
|
+
body: await parseErrorBody(output.body, context),
|
|
407
|
+
};
|
|
408
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
409
|
+
switch (errorCode) {
|
|
410
|
+
case "InternalServiceError":
|
|
411
|
+
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
412
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
413
|
+
case "InvalidParameterException":
|
|
414
|
+
case "com.amazonaws.secretsmanager#InvalidParameterException":
|
|
415
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
416
|
+
case "ResourceNotFoundException":
|
|
417
|
+
case "com.amazonaws.secretsmanager#ResourceNotFoundException":
|
|
418
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
419
|
+
default:
|
|
420
|
+
const parsedBody = parsedOutput.body;
|
|
421
|
+
throwDefaultError({
|
|
422
|
+
output,
|
|
423
|
+
parsedBody,
|
|
424
|
+
exceptionCtor: __BaseException,
|
|
425
|
+
errorCode,
|
|
426
|
+
});
|
|
427
|
+
}
|
|
428
|
+
};
|
|
429
|
+
export const deserializeAws_json1_1GetRandomPasswordCommand = async (output, context) => {
|
|
430
|
+
if (output.statusCode >= 300) {
|
|
431
|
+
return deserializeAws_json1_1GetRandomPasswordCommandError(output, context);
|
|
432
|
+
}
|
|
433
|
+
const data = await parseBody(output.body, context);
|
|
434
|
+
let contents = {};
|
|
435
|
+
contents = deserializeAws_json1_1GetRandomPasswordResponse(data, context);
|
|
436
|
+
const response = {
|
|
437
|
+
$metadata: deserializeMetadata(output),
|
|
438
|
+
...contents,
|
|
439
|
+
};
|
|
440
|
+
return Promise.resolve(response);
|
|
441
|
+
};
|
|
442
|
+
const deserializeAws_json1_1GetRandomPasswordCommandError = async (output, context) => {
|
|
443
|
+
const parsedOutput = {
|
|
444
|
+
...output,
|
|
445
|
+
body: await parseErrorBody(output.body, context),
|
|
446
|
+
};
|
|
447
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
448
|
+
switch (errorCode) {
|
|
449
|
+
case "InternalServiceError":
|
|
450
|
+
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
451
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
452
|
+
case "InvalidParameterException":
|
|
453
|
+
case "com.amazonaws.secretsmanager#InvalidParameterException":
|
|
454
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
455
|
+
case "InvalidRequestException":
|
|
456
|
+
case "com.amazonaws.secretsmanager#InvalidRequestException":
|
|
457
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
458
|
+
default:
|
|
459
|
+
const parsedBody = parsedOutput.body;
|
|
460
|
+
throwDefaultError({
|
|
461
|
+
output,
|
|
462
|
+
parsedBody,
|
|
463
|
+
exceptionCtor: __BaseException,
|
|
464
|
+
errorCode,
|
|
465
|
+
});
|
|
466
|
+
}
|
|
467
|
+
};
|
|
468
|
+
export const deserializeAws_json1_1GetResourcePolicyCommand = async (output, context) => {
|
|
469
|
+
if (output.statusCode >= 300) {
|
|
470
|
+
return deserializeAws_json1_1GetResourcePolicyCommandError(output, context);
|
|
471
|
+
}
|
|
472
|
+
const data = await parseBody(output.body, context);
|
|
473
|
+
let contents = {};
|
|
474
|
+
contents = deserializeAws_json1_1GetResourcePolicyResponse(data, context);
|
|
475
|
+
const response = {
|
|
476
|
+
$metadata: deserializeMetadata(output),
|
|
477
|
+
...contents,
|
|
478
|
+
};
|
|
479
|
+
return Promise.resolve(response);
|
|
480
|
+
};
|
|
481
|
+
const deserializeAws_json1_1GetResourcePolicyCommandError = async (output, context) => {
|
|
482
|
+
const parsedOutput = {
|
|
483
|
+
...output,
|
|
484
|
+
body: await parseErrorBody(output.body, context),
|
|
485
|
+
};
|
|
486
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
487
|
+
switch (errorCode) {
|
|
488
|
+
case "InternalServiceError":
|
|
489
|
+
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
490
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
491
|
+
case "InvalidParameterException":
|
|
492
|
+
case "com.amazonaws.secretsmanager#InvalidParameterException":
|
|
493
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
494
|
+
case "InvalidRequestException":
|
|
495
|
+
case "com.amazonaws.secretsmanager#InvalidRequestException":
|
|
496
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
497
|
+
case "ResourceNotFoundException":
|
|
498
|
+
case "com.amazonaws.secretsmanager#ResourceNotFoundException":
|
|
499
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
500
|
+
default:
|
|
501
|
+
const parsedBody = parsedOutput.body;
|
|
502
|
+
throwDefaultError({
|
|
503
|
+
output,
|
|
504
|
+
parsedBody,
|
|
505
|
+
exceptionCtor: __BaseException,
|
|
506
|
+
errorCode,
|
|
507
|
+
});
|
|
508
|
+
}
|
|
509
|
+
};
|
|
510
|
+
export const deserializeAws_json1_1GetSecretValueCommand = async (output, context) => {
|
|
511
|
+
if (output.statusCode >= 300) {
|
|
512
|
+
return deserializeAws_json1_1GetSecretValueCommandError(output, context);
|
|
513
|
+
}
|
|
514
|
+
const data = await parseBody(output.body, context);
|
|
515
|
+
let contents = {};
|
|
516
|
+
contents = deserializeAws_json1_1GetSecretValueResponse(data, context);
|
|
517
|
+
const response = {
|
|
518
|
+
$metadata: deserializeMetadata(output),
|
|
519
|
+
...contents,
|
|
520
|
+
};
|
|
521
|
+
return Promise.resolve(response);
|
|
522
|
+
};
|
|
523
|
+
const deserializeAws_json1_1GetSecretValueCommandError = async (output, context) => {
|
|
524
|
+
const parsedOutput = {
|
|
525
|
+
...output,
|
|
526
|
+
body: await parseErrorBody(output.body, context),
|
|
527
|
+
};
|
|
528
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
529
|
+
switch (errorCode) {
|
|
530
|
+
case "DecryptionFailure":
|
|
531
|
+
case "com.amazonaws.secretsmanager#DecryptionFailure":
|
|
532
|
+
throw await deserializeAws_json1_1DecryptionFailureResponse(parsedOutput, context);
|
|
533
|
+
case "InternalServiceError":
|
|
534
|
+
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
535
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
536
|
+
case "InvalidParameterException":
|
|
537
|
+
case "com.amazonaws.secretsmanager#InvalidParameterException":
|
|
538
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
539
|
+
case "InvalidRequestException":
|
|
540
|
+
case "com.amazonaws.secretsmanager#InvalidRequestException":
|
|
541
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
542
|
+
case "ResourceNotFoundException":
|
|
543
|
+
case "com.amazonaws.secretsmanager#ResourceNotFoundException":
|
|
544
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
545
|
+
default:
|
|
546
|
+
const parsedBody = parsedOutput.body;
|
|
547
|
+
throwDefaultError({
|
|
548
|
+
output,
|
|
549
|
+
parsedBody,
|
|
550
|
+
exceptionCtor: __BaseException,
|
|
551
|
+
errorCode,
|
|
552
|
+
});
|
|
553
|
+
}
|
|
554
|
+
};
|
|
555
|
+
export const deserializeAws_json1_1ListSecretsCommand = async (output, context) => {
|
|
556
|
+
if (output.statusCode >= 300) {
|
|
557
|
+
return deserializeAws_json1_1ListSecretsCommandError(output, context);
|
|
558
|
+
}
|
|
559
|
+
const data = await parseBody(output.body, context);
|
|
560
|
+
let contents = {};
|
|
561
|
+
contents = deserializeAws_json1_1ListSecretsResponse(data, context);
|
|
562
|
+
const response = {
|
|
563
|
+
$metadata: deserializeMetadata(output),
|
|
564
|
+
...contents,
|
|
565
|
+
};
|
|
566
|
+
return Promise.resolve(response);
|
|
567
|
+
};
|
|
568
|
+
const deserializeAws_json1_1ListSecretsCommandError = async (output, context) => {
|
|
569
|
+
const parsedOutput = {
|
|
570
|
+
...output,
|
|
571
|
+
body: await parseErrorBody(output.body, context),
|
|
572
|
+
};
|
|
573
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
574
|
+
switch (errorCode) {
|
|
575
|
+
case "InternalServiceError":
|
|
576
|
+
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
577
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
578
|
+
case "InvalidNextTokenException":
|
|
579
|
+
case "com.amazonaws.secretsmanager#InvalidNextTokenException":
|
|
580
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
581
|
+
case "InvalidParameterException":
|
|
582
|
+
case "com.amazonaws.secretsmanager#InvalidParameterException":
|
|
583
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
584
|
+
default:
|
|
585
|
+
const parsedBody = parsedOutput.body;
|
|
586
|
+
throwDefaultError({
|
|
587
|
+
output,
|
|
588
|
+
parsedBody,
|
|
589
|
+
exceptionCtor: __BaseException,
|
|
590
|
+
errorCode,
|
|
591
|
+
});
|
|
592
|
+
}
|
|
593
|
+
};
|
|
594
|
+
export const deserializeAws_json1_1ListSecretVersionIdsCommand = async (output, context) => {
|
|
595
|
+
if (output.statusCode >= 300) {
|
|
596
|
+
return deserializeAws_json1_1ListSecretVersionIdsCommandError(output, context);
|
|
597
|
+
}
|
|
598
|
+
const data = await parseBody(output.body, context);
|
|
599
|
+
let contents = {};
|
|
600
|
+
contents = deserializeAws_json1_1ListSecretVersionIdsResponse(data, context);
|
|
601
|
+
const response = {
|
|
602
|
+
$metadata: deserializeMetadata(output),
|
|
603
|
+
...contents,
|
|
604
|
+
};
|
|
605
|
+
return Promise.resolve(response);
|
|
606
|
+
};
|
|
607
|
+
const deserializeAws_json1_1ListSecretVersionIdsCommandError = async (output, context) => {
|
|
608
|
+
const parsedOutput = {
|
|
609
|
+
...output,
|
|
610
|
+
body: await parseErrorBody(output.body, context),
|
|
611
|
+
};
|
|
612
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
613
|
+
switch (errorCode) {
|
|
614
|
+
case "InternalServiceError":
|
|
615
|
+
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
616
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
617
|
+
case "InvalidNextTokenException":
|
|
618
|
+
case "com.amazonaws.secretsmanager#InvalidNextTokenException":
|
|
619
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
620
|
+
case "InvalidParameterException":
|
|
621
|
+
case "com.amazonaws.secretsmanager#InvalidParameterException":
|
|
622
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
623
|
+
case "ResourceNotFoundException":
|
|
624
|
+
case "com.amazonaws.secretsmanager#ResourceNotFoundException":
|
|
625
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
626
|
+
default:
|
|
627
|
+
const parsedBody = parsedOutput.body;
|
|
628
|
+
throwDefaultError({
|
|
629
|
+
output,
|
|
630
|
+
parsedBody,
|
|
631
|
+
exceptionCtor: __BaseException,
|
|
632
|
+
errorCode,
|
|
633
|
+
});
|
|
634
|
+
}
|
|
635
|
+
};
|
|
636
|
+
export const deserializeAws_json1_1PutResourcePolicyCommand = async (output, context) => {
|
|
637
|
+
if (output.statusCode >= 300) {
|
|
638
|
+
return deserializeAws_json1_1PutResourcePolicyCommandError(output, context);
|
|
639
|
+
}
|
|
640
|
+
const data = await parseBody(output.body, context);
|
|
641
|
+
let contents = {};
|
|
642
|
+
contents = deserializeAws_json1_1PutResourcePolicyResponse(data, context);
|
|
643
|
+
const response = {
|
|
644
|
+
$metadata: deserializeMetadata(output),
|
|
645
|
+
...contents,
|
|
646
|
+
};
|
|
647
|
+
return Promise.resolve(response);
|
|
648
|
+
};
|
|
649
|
+
const deserializeAws_json1_1PutResourcePolicyCommandError = async (output, context) => {
|
|
650
|
+
const parsedOutput = {
|
|
651
|
+
...output,
|
|
652
|
+
body: await parseErrorBody(output.body, context),
|
|
653
|
+
};
|
|
654
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
655
|
+
switch (errorCode) {
|
|
656
|
+
case "InternalServiceError":
|
|
657
|
+
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
658
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
659
|
+
case "InvalidParameterException":
|
|
660
|
+
case "com.amazonaws.secretsmanager#InvalidParameterException":
|
|
661
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
662
|
+
case "InvalidRequestException":
|
|
663
|
+
case "com.amazonaws.secretsmanager#InvalidRequestException":
|
|
664
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
665
|
+
case "MalformedPolicyDocumentException":
|
|
666
|
+
case "com.amazonaws.secretsmanager#MalformedPolicyDocumentException":
|
|
667
|
+
throw await deserializeAws_json1_1MalformedPolicyDocumentExceptionResponse(parsedOutput, context);
|
|
668
|
+
case "PublicPolicyException":
|
|
669
|
+
case "com.amazonaws.secretsmanager#PublicPolicyException":
|
|
670
|
+
throw await deserializeAws_json1_1PublicPolicyExceptionResponse(parsedOutput, context);
|
|
671
|
+
case "ResourceNotFoundException":
|
|
672
|
+
case "com.amazonaws.secretsmanager#ResourceNotFoundException":
|
|
673
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
674
|
+
default:
|
|
675
|
+
const parsedBody = parsedOutput.body;
|
|
676
|
+
throwDefaultError({
|
|
677
|
+
output,
|
|
678
|
+
parsedBody,
|
|
679
|
+
exceptionCtor: __BaseException,
|
|
680
|
+
errorCode,
|
|
681
|
+
});
|
|
682
|
+
}
|
|
683
|
+
};
|
|
684
|
+
export const deserializeAws_json1_1PutSecretValueCommand = async (output, context) => {
|
|
685
|
+
if (output.statusCode >= 300) {
|
|
686
|
+
return deserializeAws_json1_1PutSecretValueCommandError(output, context);
|
|
687
|
+
}
|
|
688
|
+
const data = await parseBody(output.body, context);
|
|
689
|
+
let contents = {};
|
|
690
|
+
contents = deserializeAws_json1_1PutSecretValueResponse(data, context);
|
|
691
|
+
const response = {
|
|
692
|
+
$metadata: deserializeMetadata(output),
|
|
693
|
+
...contents,
|
|
694
|
+
};
|
|
695
|
+
return Promise.resolve(response);
|
|
696
|
+
};
|
|
697
|
+
const deserializeAws_json1_1PutSecretValueCommandError = async (output, context) => {
|
|
698
|
+
const parsedOutput = {
|
|
699
|
+
...output,
|
|
700
|
+
body: await parseErrorBody(output.body, context),
|
|
701
|
+
};
|
|
702
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
703
|
+
switch (errorCode) {
|
|
704
|
+
case "DecryptionFailure":
|
|
705
|
+
case "com.amazonaws.secretsmanager#DecryptionFailure":
|
|
706
|
+
throw await deserializeAws_json1_1DecryptionFailureResponse(parsedOutput, context);
|
|
707
|
+
case "EncryptionFailure":
|
|
708
|
+
case "com.amazonaws.secretsmanager#EncryptionFailure":
|
|
709
|
+
throw await deserializeAws_json1_1EncryptionFailureResponse(parsedOutput, context);
|
|
710
|
+
case "InternalServiceError":
|
|
711
|
+
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
712
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
713
|
+
case "InvalidParameterException":
|
|
714
|
+
case "com.amazonaws.secretsmanager#InvalidParameterException":
|
|
715
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
716
|
+
case "InvalidRequestException":
|
|
717
|
+
case "com.amazonaws.secretsmanager#InvalidRequestException":
|
|
718
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
719
|
+
case "LimitExceededException":
|
|
720
|
+
case "com.amazonaws.secretsmanager#LimitExceededException":
|
|
721
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
722
|
+
case "ResourceExistsException":
|
|
723
|
+
case "com.amazonaws.secretsmanager#ResourceExistsException":
|
|
724
|
+
throw await deserializeAws_json1_1ResourceExistsExceptionResponse(parsedOutput, context);
|
|
725
|
+
case "ResourceNotFoundException":
|
|
726
|
+
case "com.amazonaws.secretsmanager#ResourceNotFoundException":
|
|
727
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
728
|
+
default:
|
|
729
|
+
const parsedBody = parsedOutput.body;
|
|
730
|
+
throwDefaultError({
|
|
731
|
+
output,
|
|
732
|
+
parsedBody,
|
|
733
|
+
exceptionCtor: __BaseException,
|
|
734
|
+
errorCode,
|
|
735
|
+
});
|
|
736
|
+
}
|
|
737
|
+
};
|
|
738
|
+
export const deserializeAws_json1_1RemoveRegionsFromReplicationCommand = async (output, context) => {
|
|
739
|
+
if (output.statusCode >= 300) {
|
|
740
|
+
return deserializeAws_json1_1RemoveRegionsFromReplicationCommandError(output, context);
|
|
741
|
+
}
|
|
742
|
+
const data = await parseBody(output.body, context);
|
|
743
|
+
let contents = {};
|
|
744
|
+
contents = deserializeAws_json1_1RemoveRegionsFromReplicationResponse(data, context);
|
|
745
|
+
const response = {
|
|
746
|
+
$metadata: deserializeMetadata(output),
|
|
747
|
+
...contents,
|
|
748
|
+
};
|
|
749
|
+
return Promise.resolve(response);
|
|
750
|
+
};
|
|
751
|
+
const deserializeAws_json1_1RemoveRegionsFromReplicationCommandError = async (output, context) => {
|
|
752
|
+
const parsedOutput = {
|
|
753
|
+
...output,
|
|
754
|
+
body: await parseErrorBody(output.body, context),
|
|
755
|
+
};
|
|
756
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
757
|
+
switch (errorCode) {
|
|
758
|
+
case "InternalServiceError":
|
|
759
|
+
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
760
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
761
|
+
case "InvalidParameterException":
|
|
762
|
+
case "com.amazonaws.secretsmanager#InvalidParameterException":
|
|
763
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
764
|
+
case "InvalidRequestException":
|
|
765
|
+
case "com.amazonaws.secretsmanager#InvalidRequestException":
|
|
766
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
767
|
+
case "ResourceNotFoundException":
|
|
768
|
+
case "com.amazonaws.secretsmanager#ResourceNotFoundException":
|
|
769
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
770
|
+
default:
|
|
771
|
+
const parsedBody = parsedOutput.body;
|
|
772
|
+
throwDefaultError({
|
|
773
|
+
output,
|
|
774
|
+
parsedBody,
|
|
775
|
+
exceptionCtor: __BaseException,
|
|
776
|
+
errorCode,
|
|
777
|
+
});
|
|
778
|
+
}
|
|
779
|
+
};
|
|
780
|
+
export const deserializeAws_json1_1ReplicateSecretToRegionsCommand = async (output, context) => {
|
|
781
|
+
if (output.statusCode >= 300) {
|
|
782
|
+
return deserializeAws_json1_1ReplicateSecretToRegionsCommandError(output, context);
|
|
783
|
+
}
|
|
784
|
+
const data = await parseBody(output.body, context);
|
|
785
|
+
let contents = {};
|
|
786
|
+
contents = deserializeAws_json1_1ReplicateSecretToRegionsResponse(data, context);
|
|
787
|
+
const response = {
|
|
788
|
+
$metadata: deserializeMetadata(output),
|
|
789
|
+
...contents,
|
|
790
|
+
};
|
|
791
|
+
return Promise.resolve(response);
|
|
792
|
+
};
|
|
793
|
+
const deserializeAws_json1_1ReplicateSecretToRegionsCommandError = async (output, context) => {
|
|
794
|
+
const parsedOutput = {
|
|
795
|
+
...output,
|
|
796
|
+
body: await parseErrorBody(output.body, context),
|
|
797
|
+
};
|
|
798
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
799
|
+
switch (errorCode) {
|
|
800
|
+
case "InternalServiceError":
|
|
801
|
+
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
802
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
803
|
+
case "InvalidParameterException":
|
|
804
|
+
case "com.amazonaws.secretsmanager#InvalidParameterException":
|
|
805
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
806
|
+
case "InvalidRequestException":
|
|
807
|
+
case "com.amazonaws.secretsmanager#InvalidRequestException":
|
|
808
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
809
|
+
case "ResourceNotFoundException":
|
|
810
|
+
case "com.amazonaws.secretsmanager#ResourceNotFoundException":
|
|
811
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
812
|
+
default:
|
|
813
|
+
const parsedBody = parsedOutput.body;
|
|
814
|
+
throwDefaultError({
|
|
815
|
+
output,
|
|
816
|
+
parsedBody,
|
|
817
|
+
exceptionCtor: __BaseException,
|
|
818
|
+
errorCode,
|
|
819
|
+
});
|
|
820
|
+
}
|
|
821
|
+
};
|
|
822
|
+
export const deserializeAws_json1_1RestoreSecretCommand = async (output, context) => {
|
|
823
|
+
if (output.statusCode >= 300) {
|
|
824
|
+
return deserializeAws_json1_1RestoreSecretCommandError(output, context);
|
|
825
|
+
}
|
|
826
|
+
const data = await parseBody(output.body, context);
|
|
827
|
+
let contents = {};
|
|
828
|
+
contents = deserializeAws_json1_1RestoreSecretResponse(data, context);
|
|
829
|
+
const response = {
|
|
830
|
+
$metadata: deserializeMetadata(output),
|
|
831
|
+
...contents,
|
|
832
|
+
};
|
|
833
|
+
return Promise.resolve(response);
|
|
834
|
+
};
|
|
835
|
+
const deserializeAws_json1_1RestoreSecretCommandError = async (output, context) => {
|
|
836
|
+
const parsedOutput = {
|
|
837
|
+
...output,
|
|
838
|
+
body: await parseErrorBody(output.body, context),
|
|
839
|
+
};
|
|
840
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
841
|
+
switch (errorCode) {
|
|
842
|
+
case "InternalServiceError":
|
|
843
|
+
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
844
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
845
|
+
case "InvalidParameterException":
|
|
846
|
+
case "com.amazonaws.secretsmanager#InvalidParameterException":
|
|
847
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
848
|
+
case "InvalidRequestException":
|
|
849
|
+
case "com.amazonaws.secretsmanager#InvalidRequestException":
|
|
850
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
851
|
+
case "ResourceNotFoundException":
|
|
852
|
+
case "com.amazonaws.secretsmanager#ResourceNotFoundException":
|
|
853
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
854
|
+
default:
|
|
855
|
+
const parsedBody = parsedOutput.body;
|
|
856
|
+
throwDefaultError({
|
|
857
|
+
output,
|
|
858
|
+
parsedBody,
|
|
859
|
+
exceptionCtor: __BaseException,
|
|
860
|
+
errorCode,
|
|
861
|
+
});
|
|
862
|
+
}
|
|
863
|
+
};
|
|
864
|
+
export const deserializeAws_json1_1RotateSecretCommand = async (output, context) => {
|
|
865
|
+
if (output.statusCode >= 300) {
|
|
866
|
+
return deserializeAws_json1_1RotateSecretCommandError(output, context);
|
|
867
|
+
}
|
|
868
|
+
const data = await parseBody(output.body, context);
|
|
869
|
+
let contents = {};
|
|
870
|
+
contents = deserializeAws_json1_1RotateSecretResponse(data, context);
|
|
871
|
+
const response = {
|
|
872
|
+
$metadata: deserializeMetadata(output),
|
|
873
|
+
...contents,
|
|
874
|
+
};
|
|
875
|
+
return Promise.resolve(response);
|
|
876
|
+
};
|
|
877
|
+
const deserializeAws_json1_1RotateSecretCommandError = async (output, context) => {
|
|
878
|
+
const parsedOutput = {
|
|
879
|
+
...output,
|
|
880
|
+
body: await parseErrorBody(output.body, context),
|
|
881
|
+
};
|
|
882
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
883
|
+
switch (errorCode) {
|
|
884
|
+
case "InternalServiceError":
|
|
885
|
+
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
886
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
887
|
+
case "InvalidParameterException":
|
|
888
|
+
case "com.amazonaws.secretsmanager#InvalidParameterException":
|
|
889
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
890
|
+
case "InvalidRequestException":
|
|
891
|
+
case "com.amazonaws.secretsmanager#InvalidRequestException":
|
|
892
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
893
|
+
case "ResourceNotFoundException":
|
|
894
|
+
case "com.amazonaws.secretsmanager#ResourceNotFoundException":
|
|
895
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
896
|
+
default:
|
|
897
|
+
const parsedBody = parsedOutput.body;
|
|
898
|
+
throwDefaultError({
|
|
899
|
+
output,
|
|
900
|
+
parsedBody,
|
|
901
|
+
exceptionCtor: __BaseException,
|
|
902
|
+
errorCode,
|
|
903
|
+
});
|
|
904
|
+
}
|
|
905
|
+
};
|
|
906
|
+
export const deserializeAws_json1_1StopReplicationToReplicaCommand = async (output, context) => {
|
|
907
|
+
if (output.statusCode >= 300) {
|
|
908
|
+
return deserializeAws_json1_1StopReplicationToReplicaCommandError(output, context);
|
|
909
|
+
}
|
|
910
|
+
const data = await parseBody(output.body, context);
|
|
911
|
+
let contents = {};
|
|
912
|
+
contents = deserializeAws_json1_1StopReplicationToReplicaResponse(data, context);
|
|
913
|
+
const response = {
|
|
914
|
+
$metadata: deserializeMetadata(output),
|
|
915
|
+
...contents,
|
|
916
|
+
};
|
|
917
|
+
return Promise.resolve(response);
|
|
918
|
+
};
|
|
919
|
+
const deserializeAws_json1_1StopReplicationToReplicaCommandError = async (output, context) => {
|
|
920
|
+
const parsedOutput = {
|
|
921
|
+
...output,
|
|
922
|
+
body: await parseErrorBody(output.body, context),
|
|
923
|
+
};
|
|
924
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
925
|
+
switch (errorCode) {
|
|
926
|
+
case "InternalServiceError":
|
|
927
|
+
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
928
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
929
|
+
case "InvalidParameterException":
|
|
930
|
+
case "com.amazonaws.secretsmanager#InvalidParameterException":
|
|
931
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
932
|
+
case "InvalidRequestException":
|
|
933
|
+
case "com.amazonaws.secretsmanager#InvalidRequestException":
|
|
934
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
935
|
+
case "ResourceNotFoundException":
|
|
936
|
+
case "com.amazonaws.secretsmanager#ResourceNotFoundException":
|
|
937
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
938
|
+
default:
|
|
939
|
+
const parsedBody = parsedOutput.body;
|
|
940
|
+
throwDefaultError({
|
|
941
|
+
output,
|
|
942
|
+
parsedBody,
|
|
943
|
+
exceptionCtor: __BaseException,
|
|
944
|
+
errorCode,
|
|
945
|
+
});
|
|
946
|
+
}
|
|
947
|
+
};
|
|
948
|
+
export const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
949
|
+
if (output.statusCode >= 300) {
|
|
950
|
+
return deserializeAws_json1_1TagResourceCommandError(output, context);
|
|
951
|
+
}
|
|
952
|
+
await collectBody(output.body, context);
|
|
953
|
+
const response = {
|
|
954
|
+
$metadata: deserializeMetadata(output),
|
|
955
|
+
};
|
|
956
|
+
return Promise.resolve(response);
|
|
957
|
+
};
|
|
958
|
+
const deserializeAws_json1_1TagResourceCommandError = async (output, context) => {
|
|
959
|
+
const parsedOutput = {
|
|
960
|
+
...output,
|
|
961
|
+
body: await parseErrorBody(output.body, context),
|
|
962
|
+
};
|
|
963
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
964
|
+
switch (errorCode) {
|
|
965
|
+
case "InternalServiceError":
|
|
966
|
+
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
967
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
968
|
+
case "InvalidParameterException":
|
|
969
|
+
case "com.amazonaws.secretsmanager#InvalidParameterException":
|
|
970
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
971
|
+
case "InvalidRequestException":
|
|
972
|
+
case "com.amazonaws.secretsmanager#InvalidRequestException":
|
|
973
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
974
|
+
case "ResourceNotFoundException":
|
|
975
|
+
case "com.amazonaws.secretsmanager#ResourceNotFoundException":
|
|
976
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
977
|
+
default:
|
|
978
|
+
const parsedBody = parsedOutput.body;
|
|
979
|
+
throwDefaultError({
|
|
980
|
+
output,
|
|
981
|
+
parsedBody,
|
|
982
|
+
exceptionCtor: __BaseException,
|
|
983
|
+
errorCode,
|
|
984
|
+
});
|
|
985
|
+
}
|
|
986
|
+
};
|
|
987
|
+
export const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
|
|
988
|
+
if (output.statusCode >= 300) {
|
|
989
|
+
return deserializeAws_json1_1UntagResourceCommandError(output, context);
|
|
990
|
+
}
|
|
991
|
+
await collectBody(output.body, context);
|
|
992
|
+
const response = {
|
|
993
|
+
$metadata: deserializeMetadata(output),
|
|
994
|
+
};
|
|
995
|
+
return Promise.resolve(response);
|
|
996
|
+
};
|
|
997
|
+
const deserializeAws_json1_1UntagResourceCommandError = async (output, context) => {
|
|
998
|
+
const parsedOutput = {
|
|
999
|
+
...output,
|
|
1000
|
+
body: await parseErrorBody(output.body, context),
|
|
1001
|
+
};
|
|
1002
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1003
|
+
switch (errorCode) {
|
|
1004
|
+
case "InternalServiceError":
|
|
1005
|
+
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
1006
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
1007
|
+
case "InvalidParameterException":
|
|
1008
|
+
case "com.amazonaws.secretsmanager#InvalidParameterException":
|
|
1009
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1010
|
+
case "InvalidRequestException":
|
|
1011
|
+
case "com.amazonaws.secretsmanager#InvalidRequestException":
|
|
1012
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1013
|
+
case "ResourceNotFoundException":
|
|
1014
|
+
case "com.amazonaws.secretsmanager#ResourceNotFoundException":
|
|
1015
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1016
|
+
default:
|
|
1017
|
+
const parsedBody = parsedOutput.body;
|
|
1018
|
+
throwDefaultError({
|
|
1019
|
+
output,
|
|
1020
|
+
parsedBody,
|
|
1021
|
+
exceptionCtor: __BaseException,
|
|
1022
|
+
errorCode,
|
|
1023
|
+
});
|
|
1024
|
+
}
|
|
1025
|
+
};
|
|
1026
|
+
export const deserializeAws_json1_1UpdateSecretCommand = async (output, context) => {
|
|
1027
|
+
if (output.statusCode >= 300) {
|
|
1028
|
+
return deserializeAws_json1_1UpdateSecretCommandError(output, context);
|
|
1029
|
+
}
|
|
1030
|
+
const data = await parseBody(output.body, context);
|
|
1031
|
+
let contents = {};
|
|
1032
|
+
contents = deserializeAws_json1_1UpdateSecretResponse(data, context);
|
|
1033
|
+
const response = {
|
|
1034
|
+
$metadata: deserializeMetadata(output),
|
|
1035
|
+
...contents,
|
|
1036
|
+
};
|
|
1037
|
+
return Promise.resolve(response);
|
|
1038
|
+
};
|
|
1039
|
+
const deserializeAws_json1_1UpdateSecretCommandError = async (output, context) => {
|
|
1040
|
+
const parsedOutput = {
|
|
1041
|
+
...output,
|
|
1042
|
+
body: await parseErrorBody(output.body, context),
|
|
1043
|
+
};
|
|
1044
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1045
|
+
switch (errorCode) {
|
|
1046
|
+
case "DecryptionFailure":
|
|
1047
|
+
case "com.amazonaws.secretsmanager#DecryptionFailure":
|
|
1048
|
+
throw await deserializeAws_json1_1DecryptionFailureResponse(parsedOutput, context);
|
|
1049
|
+
case "EncryptionFailure":
|
|
1050
|
+
case "com.amazonaws.secretsmanager#EncryptionFailure":
|
|
1051
|
+
throw await deserializeAws_json1_1EncryptionFailureResponse(parsedOutput, context);
|
|
1052
|
+
case "InternalServiceError":
|
|
1053
|
+
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
1054
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
1055
|
+
case "InvalidParameterException":
|
|
1056
|
+
case "com.amazonaws.secretsmanager#InvalidParameterException":
|
|
1057
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1058
|
+
case "InvalidRequestException":
|
|
1059
|
+
case "com.amazonaws.secretsmanager#InvalidRequestException":
|
|
1060
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1061
|
+
case "LimitExceededException":
|
|
1062
|
+
case "com.amazonaws.secretsmanager#LimitExceededException":
|
|
1063
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1064
|
+
case "MalformedPolicyDocumentException":
|
|
1065
|
+
case "com.amazonaws.secretsmanager#MalformedPolicyDocumentException":
|
|
1066
|
+
throw await deserializeAws_json1_1MalformedPolicyDocumentExceptionResponse(parsedOutput, context);
|
|
1067
|
+
case "PreconditionNotMetException":
|
|
1068
|
+
case "com.amazonaws.secretsmanager#PreconditionNotMetException":
|
|
1069
|
+
throw await deserializeAws_json1_1PreconditionNotMetExceptionResponse(parsedOutput, context);
|
|
1070
|
+
case "ResourceExistsException":
|
|
1071
|
+
case "com.amazonaws.secretsmanager#ResourceExistsException":
|
|
1072
|
+
throw await deserializeAws_json1_1ResourceExistsExceptionResponse(parsedOutput, context);
|
|
1073
|
+
case "ResourceNotFoundException":
|
|
1074
|
+
case "com.amazonaws.secretsmanager#ResourceNotFoundException":
|
|
1075
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1076
|
+
default:
|
|
1077
|
+
const parsedBody = parsedOutput.body;
|
|
1078
|
+
throwDefaultError({
|
|
1079
|
+
output,
|
|
1080
|
+
parsedBody,
|
|
1081
|
+
exceptionCtor: __BaseException,
|
|
1082
|
+
errorCode,
|
|
1083
|
+
});
|
|
1084
|
+
}
|
|
1085
|
+
};
|
|
1086
|
+
export const deserializeAws_json1_1UpdateSecretVersionStageCommand = async (output, context) => {
|
|
1087
|
+
if (output.statusCode >= 300) {
|
|
1088
|
+
return deserializeAws_json1_1UpdateSecretVersionStageCommandError(output, context);
|
|
1089
|
+
}
|
|
1090
|
+
const data = await parseBody(output.body, context);
|
|
1091
|
+
let contents = {};
|
|
1092
|
+
contents = deserializeAws_json1_1UpdateSecretVersionStageResponse(data, context);
|
|
1093
|
+
const response = {
|
|
1094
|
+
$metadata: deserializeMetadata(output),
|
|
1095
|
+
...contents,
|
|
1096
|
+
};
|
|
1097
|
+
return Promise.resolve(response);
|
|
1098
|
+
};
|
|
1099
|
+
const deserializeAws_json1_1UpdateSecretVersionStageCommandError = async (output, context) => {
|
|
1100
|
+
const parsedOutput = {
|
|
1101
|
+
...output,
|
|
1102
|
+
body: await parseErrorBody(output.body, context),
|
|
1103
|
+
};
|
|
1104
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1105
|
+
switch (errorCode) {
|
|
1106
|
+
case "InternalServiceError":
|
|
1107
|
+
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
1108
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
1109
|
+
case "InvalidParameterException":
|
|
1110
|
+
case "com.amazonaws.secretsmanager#InvalidParameterException":
|
|
1111
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1112
|
+
case "InvalidRequestException":
|
|
1113
|
+
case "com.amazonaws.secretsmanager#InvalidRequestException":
|
|
1114
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1115
|
+
case "LimitExceededException":
|
|
1116
|
+
case "com.amazonaws.secretsmanager#LimitExceededException":
|
|
1117
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1118
|
+
case "ResourceNotFoundException":
|
|
1119
|
+
case "com.amazonaws.secretsmanager#ResourceNotFoundException":
|
|
1120
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1121
|
+
default:
|
|
1122
|
+
const parsedBody = parsedOutput.body;
|
|
1123
|
+
throwDefaultError({
|
|
1124
|
+
output,
|
|
1125
|
+
parsedBody,
|
|
1126
|
+
exceptionCtor: __BaseException,
|
|
1127
|
+
errorCode,
|
|
1128
|
+
});
|
|
1129
|
+
}
|
|
1130
|
+
};
|
|
1131
|
+
export const deserializeAws_json1_1ValidateResourcePolicyCommand = async (output, context) => {
|
|
1132
|
+
if (output.statusCode >= 300) {
|
|
1133
|
+
return deserializeAws_json1_1ValidateResourcePolicyCommandError(output, context);
|
|
1134
|
+
}
|
|
1135
|
+
const data = await parseBody(output.body, context);
|
|
1136
|
+
let contents = {};
|
|
1137
|
+
contents = deserializeAws_json1_1ValidateResourcePolicyResponse(data, context);
|
|
1138
|
+
const response = {
|
|
1139
|
+
$metadata: deserializeMetadata(output),
|
|
1140
|
+
...contents,
|
|
1141
|
+
};
|
|
1142
|
+
return Promise.resolve(response);
|
|
1143
|
+
};
|
|
1144
|
+
const deserializeAws_json1_1ValidateResourcePolicyCommandError = async (output, context) => {
|
|
1145
|
+
const parsedOutput = {
|
|
1146
|
+
...output,
|
|
1147
|
+
body: await parseErrorBody(output.body, context),
|
|
1148
|
+
};
|
|
1149
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1150
|
+
switch (errorCode) {
|
|
1151
|
+
case "InternalServiceError":
|
|
1152
|
+
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
1153
|
+
throw await deserializeAws_json1_1InternalServiceErrorResponse(parsedOutput, context);
|
|
1154
|
+
case "InvalidParameterException":
|
|
1155
|
+
case "com.amazonaws.secretsmanager#InvalidParameterException":
|
|
1156
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1157
|
+
case "InvalidRequestException":
|
|
1158
|
+
case "com.amazonaws.secretsmanager#InvalidRequestException":
|
|
1159
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1160
|
+
case "MalformedPolicyDocumentException":
|
|
1161
|
+
case "com.amazonaws.secretsmanager#MalformedPolicyDocumentException":
|
|
1162
|
+
throw await deserializeAws_json1_1MalformedPolicyDocumentExceptionResponse(parsedOutput, context);
|
|
1163
|
+
case "ResourceNotFoundException":
|
|
1164
|
+
case "com.amazonaws.secretsmanager#ResourceNotFoundException":
|
|
1165
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1166
|
+
default:
|
|
1167
|
+
const parsedBody = parsedOutput.body;
|
|
1168
|
+
throwDefaultError({
|
|
1169
|
+
output,
|
|
1170
|
+
parsedBody,
|
|
1171
|
+
exceptionCtor: __BaseException,
|
|
1172
|
+
errorCode,
|
|
1173
|
+
});
|
|
1174
|
+
}
|
|
1175
|
+
};
|
|
1176
|
+
const deserializeAws_json1_1DecryptionFailureResponse = async (parsedOutput, context) => {
|
|
1177
|
+
const body = parsedOutput.body;
|
|
1178
|
+
const deserialized = deserializeAws_json1_1DecryptionFailure(body, context);
|
|
1179
|
+
const exception = new DecryptionFailure({
|
|
1180
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1181
|
+
...deserialized,
|
|
1182
|
+
});
|
|
1183
|
+
return __decorateServiceException(exception, body);
|
|
1184
|
+
};
|
|
1185
|
+
const deserializeAws_json1_1EncryptionFailureResponse = async (parsedOutput, context) => {
|
|
1186
|
+
const body = parsedOutput.body;
|
|
1187
|
+
const deserialized = deserializeAws_json1_1EncryptionFailure(body, context);
|
|
1188
|
+
const exception = new EncryptionFailure({
|
|
1189
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1190
|
+
...deserialized,
|
|
1191
|
+
});
|
|
1192
|
+
return __decorateServiceException(exception, body);
|
|
1193
|
+
};
|
|
1194
|
+
const deserializeAws_json1_1InternalServiceErrorResponse = async (parsedOutput, context) => {
|
|
1195
|
+
const body = parsedOutput.body;
|
|
1196
|
+
const deserialized = deserializeAws_json1_1InternalServiceError(body, context);
|
|
1197
|
+
const exception = new InternalServiceError({
|
|
1198
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1199
|
+
...deserialized,
|
|
1200
|
+
});
|
|
1201
|
+
return __decorateServiceException(exception, body);
|
|
1202
|
+
};
|
|
1203
|
+
const deserializeAws_json1_1InvalidNextTokenExceptionResponse = async (parsedOutput, context) => {
|
|
1204
|
+
const body = parsedOutput.body;
|
|
1205
|
+
const deserialized = deserializeAws_json1_1InvalidNextTokenException(body, context);
|
|
1206
|
+
const exception = new InvalidNextTokenException({
|
|
1207
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1208
|
+
...deserialized,
|
|
1209
|
+
});
|
|
1210
|
+
return __decorateServiceException(exception, body);
|
|
1211
|
+
};
|
|
1212
|
+
const deserializeAws_json1_1InvalidParameterExceptionResponse = async (parsedOutput, context) => {
|
|
1213
|
+
const body = parsedOutput.body;
|
|
1214
|
+
const deserialized = deserializeAws_json1_1InvalidParameterException(body, context);
|
|
1215
|
+
const exception = new InvalidParameterException({
|
|
1216
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1217
|
+
...deserialized,
|
|
1218
|
+
});
|
|
1219
|
+
return __decorateServiceException(exception, body);
|
|
1220
|
+
};
|
|
1221
|
+
const deserializeAws_json1_1InvalidRequestExceptionResponse = async (parsedOutput, context) => {
|
|
1222
|
+
const body = parsedOutput.body;
|
|
1223
|
+
const deserialized = deserializeAws_json1_1InvalidRequestException(body, context);
|
|
1224
|
+
const exception = new InvalidRequestException({
|
|
1225
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1226
|
+
...deserialized,
|
|
1227
|
+
});
|
|
1228
|
+
return __decorateServiceException(exception, body);
|
|
1229
|
+
};
|
|
1230
|
+
const deserializeAws_json1_1LimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
1231
|
+
const body = parsedOutput.body;
|
|
1232
|
+
const deserialized = deserializeAws_json1_1LimitExceededException(body, context);
|
|
1233
|
+
const exception = new LimitExceededException({
|
|
1234
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1235
|
+
...deserialized,
|
|
1236
|
+
});
|
|
1237
|
+
return __decorateServiceException(exception, body);
|
|
1238
|
+
};
|
|
1239
|
+
const deserializeAws_json1_1MalformedPolicyDocumentExceptionResponse = async (parsedOutput, context) => {
|
|
1240
|
+
const body = parsedOutput.body;
|
|
1241
|
+
const deserialized = deserializeAws_json1_1MalformedPolicyDocumentException(body, context);
|
|
1242
|
+
const exception = new MalformedPolicyDocumentException({
|
|
1243
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1244
|
+
...deserialized,
|
|
1245
|
+
});
|
|
1246
|
+
return __decorateServiceException(exception, body);
|
|
1247
|
+
};
|
|
1248
|
+
const deserializeAws_json1_1PreconditionNotMetExceptionResponse = async (parsedOutput, context) => {
|
|
1249
|
+
const body = parsedOutput.body;
|
|
1250
|
+
const deserialized = deserializeAws_json1_1PreconditionNotMetException(body, context);
|
|
1251
|
+
const exception = new PreconditionNotMetException({
|
|
1252
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1253
|
+
...deserialized,
|
|
1254
|
+
});
|
|
1255
|
+
return __decorateServiceException(exception, body);
|
|
1256
|
+
};
|
|
1257
|
+
const deserializeAws_json1_1PublicPolicyExceptionResponse = async (parsedOutput, context) => {
|
|
1258
|
+
const body = parsedOutput.body;
|
|
1259
|
+
const deserialized = deserializeAws_json1_1PublicPolicyException(body, context);
|
|
1260
|
+
const exception = new PublicPolicyException({
|
|
1261
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1262
|
+
...deserialized,
|
|
1263
|
+
});
|
|
1264
|
+
return __decorateServiceException(exception, body);
|
|
1265
|
+
};
|
|
1266
|
+
const deserializeAws_json1_1ResourceExistsExceptionResponse = async (parsedOutput, context) => {
|
|
1267
|
+
const body = parsedOutput.body;
|
|
1268
|
+
const deserialized = deserializeAws_json1_1ResourceExistsException(body, context);
|
|
1269
|
+
const exception = new ResourceExistsException({
|
|
1270
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1271
|
+
...deserialized,
|
|
1272
|
+
});
|
|
1273
|
+
return __decorateServiceException(exception, body);
|
|
1274
|
+
};
|
|
1275
|
+
const deserializeAws_json1_1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
1276
|
+
const body = parsedOutput.body;
|
|
1277
|
+
const deserialized = deserializeAws_json1_1ResourceNotFoundException(body, context);
|
|
1278
|
+
const exception = new ResourceNotFoundException({
|
|
1279
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1280
|
+
...deserialized,
|
|
1281
|
+
});
|
|
1282
|
+
return __decorateServiceException(exception, body);
|
|
1283
|
+
};
|
|
1284
|
+
const serializeAws_json1_1AddReplicaRegionListType = (input, context) => {
|
|
1816
1285
|
return input
|
|
1817
|
-
.filter(
|
|
1818
|
-
.map(
|
|
1286
|
+
.filter((e) => e != null)
|
|
1287
|
+
.map((entry) => {
|
|
1819
1288
|
return serializeAws_json1_1ReplicaRegionType(entry, context);
|
|
1820
1289
|
});
|
|
1821
1290
|
};
|
|
1822
|
-
|
|
1823
|
-
return
|
|
1291
|
+
const serializeAws_json1_1CancelRotateSecretRequest = (input, context) => {
|
|
1292
|
+
return {
|
|
1293
|
+
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1294
|
+
};
|
|
1824
1295
|
};
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1296
|
+
const serializeAws_json1_1CreateSecretRequest = (input, context) => {
|
|
1297
|
+
return {
|
|
1298
|
+
...(input.AddReplicaRegions != null && {
|
|
1299
|
+
AddReplicaRegions: serializeAws_json1_1AddReplicaRegionListType(input.AddReplicaRegions, context),
|
|
1300
|
+
}),
|
|
1301
|
+
ClientRequestToken: input.ClientRequestToken ?? generateIdempotencyToken(),
|
|
1302
|
+
...(input.Description != null && { Description: input.Description }),
|
|
1303
|
+
...(input.ForceOverwriteReplicaSecret != null && {
|
|
1304
|
+
ForceOverwriteReplicaSecret: input.ForceOverwriteReplicaSecret,
|
|
1305
|
+
}),
|
|
1306
|
+
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
1307
|
+
...(input.Name != null && { Name: input.Name }),
|
|
1308
|
+
...(input.SecretBinary != null && { SecretBinary: context.base64Encoder(input.SecretBinary) }),
|
|
1309
|
+
...(input.SecretString != null && { SecretString: input.SecretString }),
|
|
1310
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagListType(input.Tags, context) }),
|
|
1311
|
+
};
|
|
1832
1312
|
};
|
|
1833
|
-
|
|
1834
|
-
return
|
|
1313
|
+
const serializeAws_json1_1DeleteResourcePolicyRequest = (input, context) => {
|
|
1314
|
+
return {
|
|
1315
|
+
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1316
|
+
};
|
|
1835
1317
|
};
|
|
1836
|
-
|
|
1837
|
-
return
|
|
1318
|
+
const serializeAws_json1_1DeleteSecretRequest = (input, context) => {
|
|
1319
|
+
return {
|
|
1320
|
+
...(input.ForceDeleteWithoutRecovery != null && { ForceDeleteWithoutRecovery: input.ForceDeleteWithoutRecovery }),
|
|
1321
|
+
...(input.RecoveryWindowInDays != null && { RecoveryWindowInDays: input.RecoveryWindowInDays }),
|
|
1322
|
+
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1323
|
+
};
|
|
1838
1324
|
};
|
|
1839
|
-
|
|
1840
|
-
return
|
|
1325
|
+
const serializeAws_json1_1DescribeSecretRequest = (input, context) => {
|
|
1326
|
+
return {
|
|
1327
|
+
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1328
|
+
};
|
|
1841
1329
|
};
|
|
1842
|
-
|
|
1843
|
-
return
|
|
1330
|
+
const serializeAws_json1_1Filter = (input, context) => {
|
|
1331
|
+
return {
|
|
1332
|
+
...(input.Key != null && { Key: input.Key }),
|
|
1333
|
+
...(input.Values != null && { Values: serializeAws_json1_1FilterValuesStringList(input.Values, context) }),
|
|
1334
|
+
};
|
|
1844
1335
|
};
|
|
1845
|
-
|
|
1336
|
+
const serializeAws_json1_1FiltersListType = (input, context) => {
|
|
1846
1337
|
return input
|
|
1847
|
-
.filter(
|
|
1848
|
-
.map(
|
|
1338
|
+
.filter((e) => e != null)
|
|
1339
|
+
.map((entry) => {
|
|
1849
1340
|
return serializeAws_json1_1Filter(entry, context);
|
|
1850
1341
|
});
|
|
1851
1342
|
};
|
|
1852
|
-
|
|
1343
|
+
const serializeAws_json1_1FilterValuesStringList = (input, context) => {
|
|
1853
1344
|
return input
|
|
1854
|
-
.filter(
|
|
1855
|
-
.map(
|
|
1345
|
+
.filter((e) => e != null)
|
|
1346
|
+
.map((entry) => {
|
|
1856
1347
|
return entry;
|
|
1857
1348
|
});
|
|
1858
1349
|
};
|
|
1859
|
-
|
|
1860
|
-
return
|
|
1350
|
+
const serializeAws_json1_1GetRandomPasswordRequest = (input, context) => {
|
|
1351
|
+
return {
|
|
1352
|
+
...(input.ExcludeCharacters != null && { ExcludeCharacters: input.ExcludeCharacters }),
|
|
1353
|
+
...(input.ExcludeLowercase != null && { ExcludeLowercase: input.ExcludeLowercase }),
|
|
1354
|
+
...(input.ExcludeNumbers != null && { ExcludeNumbers: input.ExcludeNumbers }),
|
|
1355
|
+
...(input.ExcludePunctuation != null && { ExcludePunctuation: input.ExcludePunctuation }),
|
|
1356
|
+
...(input.ExcludeUppercase != null && { ExcludeUppercase: input.ExcludeUppercase }),
|
|
1357
|
+
...(input.IncludeSpace != null && { IncludeSpace: input.IncludeSpace }),
|
|
1358
|
+
...(input.PasswordLength != null && { PasswordLength: input.PasswordLength }),
|
|
1359
|
+
...(input.RequireEachIncludedType != null && { RequireEachIncludedType: input.RequireEachIncludedType }),
|
|
1360
|
+
};
|
|
1861
1361
|
};
|
|
1862
|
-
|
|
1863
|
-
return
|
|
1362
|
+
const serializeAws_json1_1GetResourcePolicyRequest = (input, context) => {
|
|
1363
|
+
return {
|
|
1364
|
+
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1365
|
+
};
|
|
1864
1366
|
};
|
|
1865
|
-
|
|
1866
|
-
return
|
|
1367
|
+
const serializeAws_json1_1GetSecretValueRequest = (input, context) => {
|
|
1368
|
+
return {
|
|
1369
|
+
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1370
|
+
...(input.VersionId != null && { VersionId: input.VersionId }),
|
|
1371
|
+
...(input.VersionStage != null && { VersionStage: input.VersionStage }),
|
|
1372
|
+
};
|
|
1867
1373
|
};
|
|
1868
|
-
|
|
1869
|
-
return
|
|
1374
|
+
const serializeAws_json1_1ListSecretsRequest = (input, context) => {
|
|
1375
|
+
return {
|
|
1376
|
+
...(input.Filters != null && { Filters: serializeAws_json1_1FiltersListType(input.Filters, context) }),
|
|
1377
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1378
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1379
|
+
...(input.SortOrder != null && { SortOrder: input.SortOrder }),
|
|
1380
|
+
};
|
|
1870
1381
|
};
|
|
1871
|
-
|
|
1872
|
-
return
|
|
1382
|
+
const serializeAws_json1_1ListSecretVersionIdsRequest = (input, context) => {
|
|
1383
|
+
return {
|
|
1384
|
+
...(input.IncludeDeprecated != null && { IncludeDeprecated: input.IncludeDeprecated }),
|
|
1385
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1386
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1387
|
+
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1388
|
+
};
|
|
1873
1389
|
};
|
|
1874
|
-
|
|
1875
|
-
return
|
|
1390
|
+
const serializeAws_json1_1PutResourcePolicyRequest = (input, context) => {
|
|
1391
|
+
return {
|
|
1392
|
+
...(input.BlockPublicPolicy != null && { BlockPublicPolicy: input.BlockPublicPolicy }),
|
|
1393
|
+
...(input.ResourcePolicy != null && { ResourcePolicy: input.ResourcePolicy }),
|
|
1394
|
+
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1395
|
+
};
|
|
1876
1396
|
};
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1397
|
+
const serializeAws_json1_1PutSecretValueRequest = (input, context) => {
|
|
1398
|
+
return {
|
|
1399
|
+
ClientRequestToken: input.ClientRequestToken ?? generateIdempotencyToken(),
|
|
1400
|
+
...(input.SecretBinary != null && { SecretBinary: context.base64Encoder(input.SecretBinary) }),
|
|
1401
|
+
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1402
|
+
...(input.SecretString != null && { SecretString: input.SecretString }),
|
|
1403
|
+
...(input.VersionStages != null && {
|
|
1404
|
+
VersionStages: serializeAws_json1_1SecretVersionStagesType(input.VersionStages, context),
|
|
1405
|
+
}),
|
|
1406
|
+
};
|
|
1882
1407
|
};
|
|
1883
|
-
|
|
1884
|
-
return
|
|
1885
|
-
|
|
1886
|
-
|
|
1408
|
+
const serializeAws_json1_1RemoveRegionsFromReplicationRequest = (input, context) => {
|
|
1409
|
+
return {
|
|
1410
|
+
...(input.RemoveReplicaRegions != null && {
|
|
1411
|
+
RemoveReplicaRegions: serializeAws_json1_1RemoveReplicaRegionListType(input.RemoveReplicaRegions, context),
|
|
1412
|
+
}),
|
|
1413
|
+
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1414
|
+
};
|
|
1887
1415
|
};
|
|
1888
|
-
|
|
1416
|
+
const serializeAws_json1_1RemoveReplicaRegionListType = (input, context) => {
|
|
1889
1417
|
return input
|
|
1890
|
-
.filter(
|
|
1891
|
-
.map(
|
|
1418
|
+
.filter((e) => e != null)
|
|
1419
|
+
.map((entry) => {
|
|
1892
1420
|
return entry;
|
|
1893
1421
|
});
|
|
1894
1422
|
};
|
|
1895
|
-
|
|
1896
|
-
return
|
|
1423
|
+
const serializeAws_json1_1ReplicaRegionType = (input, context) => {
|
|
1424
|
+
return {
|
|
1425
|
+
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
1426
|
+
...(input.Region != null && { Region: input.Region }),
|
|
1427
|
+
};
|
|
1897
1428
|
};
|
|
1898
|
-
|
|
1899
|
-
return
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1429
|
+
const serializeAws_json1_1ReplicateSecretToRegionsRequest = (input, context) => {
|
|
1430
|
+
return {
|
|
1431
|
+
...(input.AddReplicaRegions != null && {
|
|
1432
|
+
AddReplicaRegions: serializeAws_json1_1AddReplicaRegionListType(input.AddReplicaRegions, context),
|
|
1433
|
+
}),
|
|
1434
|
+
...(input.ForceOverwriteReplicaSecret != null && {
|
|
1435
|
+
ForceOverwriteReplicaSecret: input.ForceOverwriteReplicaSecret,
|
|
1436
|
+
}),
|
|
1437
|
+
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1438
|
+
};
|
|
1904
1439
|
};
|
|
1905
|
-
|
|
1906
|
-
return
|
|
1440
|
+
const serializeAws_json1_1RestoreSecretRequest = (input, context) => {
|
|
1441
|
+
return {
|
|
1442
|
+
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1443
|
+
};
|
|
1907
1444
|
};
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1445
|
+
const serializeAws_json1_1RotateSecretRequest = (input, context) => {
|
|
1446
|
+
return {
|
|
1447
|
+
ClientRequestToken: input.ClientRequestToken ?? generateIdempotencyToken(),
|
|
1448
|
+
...(input.RotateImmediately != null && { RotateImmediately: input.RotateImmediately }),
|
|
1449
|
+
...(input.RotationLambdaARN != null && { RotationLambdaARN: input.RotationLambdaARN }),
|
|
1450
|
+
...(input.RotationRules != null && {
|
|
1451
|
+
RotationRules: serializeAws_json1_1RotationRulesType(input.RotationRules, context),
|
|
1452
|
+
}),
|
|
1453
|
+
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1454
|
+
};
|
|
1913
1455
|
};
|
|
1914
|
-
|
|
1915
|
-
return
|
|
1456
|
+
const serializeAws_json1_1RotationRulesType = (input, context) => {
|
|
1457
|
+
return {
|
|
1458
|
+
...(input.AutomaticallyAfterDays != null && { AutomaticallyAfterDays: input.AutomaticallyAfterDays }),
|
|
1459
|
+
...(input.Duration != null && { Duration: input.Duration }),
|
|
1460
|
+
...(input.ScheduleExpression != null && { ScheduleExpression: input.ScheduleExpression }),
|
|
1461
|
+
};
|
|
1916
1462
|
};
|
|
1917
|
-
|
|
1463
|
+
const serializeAws_json1_1SecretVersionStagesType = (input, context) => {
|
|
1918
1464
|
return input
|
|
1919
|
-
.filter(
|
|
1920
|
-
.map(
|
|
1465
|
+
.filter((e) => e != null)
|
|
1466
|
+
.map((entry) => {
|
|
1921
1467
|
return entry;
|
|
1922
1468
|
});
|
|
1923
1469
|
};
|
|
1924
|
-
|
|
1925
|
-
return
|
|
1470
|
+
const serializeAws_json1_1StopReplicationToReplicaRequest = (input, context) => {
|
|
1471
|
+
return {
|
|
1472
|
+
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1473
|
+
};
|
|
1926
1474
|
};
|
|
1927
|
-
|
|
1928
|
-
return
|
|
1475
|
+
const serializeAws_json1_1Tag = (input, context) => {
|
|
1476
|
+
return {
|
|
1477
|
+
...(input.Key != null && { Key: input.Key }),
|
|
1478
|
+
...(input.Value != null && { Value: input.Value }),
|
|
1479
|
+
};
|
|
1929
1480
|
};
|
|
1930
|
-
|
|
1481
|
+
const serializeAws_json1_1TagKeyListType = (input, context) => {
|
|
1931
1482
|
return input
|
|
1932
|
-
.filter(
|
|
1933
|
-
.map(
|
|
1483
|
+
.filter((e) => e != null)
|
|
1484
|
+
.map((entry) => {
|
|
1934
1485
|
return entry;
|
|
1935
1486
|
});
|
|
1936
1487
|
};
|
|
1937
|
-
|
|
1488
|
+
const serializeAws_json1_1TagListType = (input, context) => {
|
|
1938
1489
|
return input
|
|
1939
|
-
.filter(
|
|
1940
|
-
.map(
|
|
1490
|
+
.filter((e) => e != null)
|
|
1491
|
+
.map((entry) => {
|
|
1941
1492
|
return serializeAws_json1_1Tag(entry, context);
|
|
1942
1493
|
});
|
|
1943
1494
|
};
|
|
1944
|
-
|
|
1945
|
-
return
|
|
1495
|
+
const serializeAws_json1_1TagResourceRequest = (input, context) => {
|
|
1496
|
+
return {
|
|
1497
|
+
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1498
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagListType(input.Tags, context) }),
|
|
1499
|
+
};
|
|
1946
1500
|
};
|
|
1947
|
-
|
|
1948
|
-
return
|
|
1501
|
+
const serializeAws_json1_1UntagResourceRequest = (input, context) => {
|
|
1502
|
+
return {
|
|
1503
|
+
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1504
|
+
...(input.TagKeys != null && { TagKeys: serializeAws_json1_1TagKeyListType(input.TagKeys, context) }),
|
|
1505
|
+
};
|
|
1949
1506
|
};
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1507
|
+
const serializeAws_json1_1UpdateSecretRequest = (input, context) => {
|
|
1508
|
+
return {
|
|
1509
|
+
ClientRequestToken: input.ClientRequestToken ?? generateIdempotencyToken(),
|
|
1510
|
+
...(input.Description != null && { Description: input.Description }),
|
|
1511
|
+
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
1512
|
+
...(input.SecretBinary != null && { SecretBinary: context.base64Encoder(input.SecretBinary) }),
|
|
1513
|
+
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1514
|
+
...(input.SecretString != null && { SecretString: input.SecretString }),
|
|
1515
|
+
};
|
|
1953
1516
|
};
|
|
1954
|
-
|
|
1955
|
-
return
|
|
1517
|
+
const serializeAws_json1_1UpdateSecretVersionStageRequest = (input, context) => {
|
|
1518
|
+
return {
|
|
1519
|
+
...(input.MoveToVersionId != null && { MoveToVersionId: input.MoveToVersionId }),
|
|
1520
|
+
...(input.RemoveFromVersionId != null && { RemoveFromVersionId: input.RemoveFromVersionId }),
|
|
1521
|
+
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1522
|
+
...(input.VersionStage != null && { VersionStage: input.VersionStage }),
|
|
1523
|
+
};
|
|
1956
1524
|
};
|
|
1957
|
-
|
|
1958
|
-
return
|
|
1525
|
+
const serializeAws_json1_1ValidateResourcePolicyRequest = (input, context) => {
|
|
1526
|
+
return {
|
|
1527
|
+
...(input.ResourcePolicy != null && { ResourcePolicy: input.ResourcePolicy }),
|
|
1528
|
+
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1529
|
+
};
|
|
1959
1530
|
};
|
|
1960
|
-
|
|
1531
|
+
const deserializeAws_json1_1CancelRotateSecretResponse = (output, context) => {
|
|
1961
1532
|
return {
|
|
1962
1533
|
ARN: __expectString(output.ARN),
|
|
1963
1534
|
Name: __expectString(output.Name),
|
|
1964
1535
|
VersionId: __expectString(output.VersionId),
|
|
1965
1536
|
};
|
|
1966
1537
|
};
|
|
1967
|
-
|
|
1538
|
+
const deserializeAws_json1_1CreateSecretResponse = (output, context) => {
|
|
1968
1539
|
return {
|
|
1969
1540
|
ARN: __expectString(output.ARN),
|
|
1970
1541
|
Name: __expectString(output.Name),
|
|
@@ -1974,18 +1545,18 @@ var deserializeAws_json1_1CreateSecretResponse = function (output, context) {
|
|
|
1974
1545
|
VersionId: __expectString(output.VersionId),
|
|
1975
1546
|
};
|
|
1976
1547
|
};
|
|
1977
|
-
|
|
1548
|
+
const deserializeAws_json1_1DecryptionFailure = (output, context) => {
|
|
1978
1549
|
return {
|
|
1979
1550
|
Message: __expectString(output.Message),
|
|
1980
1551
|
};
|
|
1981
1552
|
};
|
|
1982
|
-
|
|
1553
|
+
const deserializeAws_json1_1DeleteResourcePolicyResponse = (output, context) => {
|
|
1983
1554
|
return {
|
|
1984
1555
|
ARN: __expectString(output.ARN),
|
|
1985
1556
|
Name: __expectString(output.Name),
|
|
1986
1557
|
};
|
|
1987
1558
|
};
|
|
1988
|
-
|
|
1559
|
+
const deserializeAws_json1_1DeleteSecretResponse = (output, context) => {
|
|
1989
1560
|
return {
|
|
1990
1561
|
ARN: __expectString(output.ARN),
|
|
1991
1562
|
DeletionDate: output.DeletionDate != null
|
|
@@ -1994,7 +1565,7 @@ var deserializeAws_json1_1DeleteSecretResponse = function (output, context) {
|
|
|
1994
1565
|
Name: __expectString(output.Name),
|
|
1995
1566
|
};
|
|
1996
1567
|
};
|
|
1997
|
-
|
|
1568
|
+
const deserializeAws_json1_1DescribeSecretResponse = (output, context) => {
|
|
1998
1569
|
return {
|
|
1999
1570
|
ARN: __expectString(output.ARN),
|
|
2000
1571
|
CreatedDate: output.CreatedDate != null
|
|
@@ -2029,24 +1600,24 @@ var deserializeAws_json1_1DescribeSecretResponse = function (output, context) {
|
|
|
2029
1600
|
: undefined,
|
|
2030
1601
|
};
|
|
2031
1602
|
};
|
|
2032
|
-
|
|
1603
|
+
const deserializeAws_json1_1EncryptionFailure = (output, context) => {
|
|
2033
1604
|
return {
|
|
2034
1605
|
Message: __expectString(output.Message),
|
|
2035
1606
|
};
|
|
2036
1607
|
};
|
|
2037
|
-
|
|
1608
|
+
const deserializeAws_json1_1GetRandomPasswordResponse = (output, context) => {
|
|
2038
1609
|
return {
|
|
2039
1610
|
RandomPassword: __expectString(output.RandomPassword),
|
|
2040
1611
|
};
|
|
2041
1612
|
};
|
|
2042
|
-
|
|
1613
|
+
const deserializeAws_json1_1GetResourcePolicyResponse = (output, context) => {
|
|
2043
1614
|
return {
|
|
2044
1615
|
ARN: __expectString(output.ARN),
|
|
2045
1616
|
Name: __expectString(output.Name),
|
|
2046
1617
|
ResourcePolicy: __expectString(output.ResourcePolicy),
|
|
2047
1618
|
};
|
|
2048
1619
|
};
|
|
2049
|
-
|
|
1620
|
+
const deserializeAws_json1_1GetSecretValueResponse = (output, context) => {
|
|
2050
1621
|
return {
|
|
2051
1622
|
ARN: __expectString(output.ARN),
|
|
2052
1623
|
CreatedDate: output.CreatedDate != null
|
|
@@ -2061,30 +1632,30 @@ var deserializeAws_json1_1GetSecretValueResponse = function (output, context) {
|
|
|
2061
1632
|
: undefined,
|
|
2062
1633
|
};
|
|
2063
1634
|
};
|
|
2064
|
-
|
|
1635
|
+
const deserializeAws_json1_1InternalServiceError = (output, context) => {
|
|
2065
1636
|
return {
|
|
2066
1637
|
Message: __expectString(output.Message),
|
|
2067
1638
|
};
|
|
2068
1639
|
};
|
|
2069
|
-
|
|
1640
|
+
const deserializeAws_json1_1InvalidNextTokenException = (output, context) => {
|
|
2070
1641
|
return {
|
|
2071
1642
|
Message: __expectString(output.Message),
|
|
2072
1643
|
};
|
|
2073
1644
|
};
|
|
2074
|
-
|
|
1645
|
+
const deserializeAws_json1_1InvalidParameterException = (output, context) => {
|
|
2075
1646
|
return {
|
|
2076
1647
|
Message: __expectString(output.Message),
|
|
2077
1648
|
};
|
|
2078
1649
|
};
|
|
2079
|
-
|
|
1650
|
+
const deserializeAws_json1_1InvalidRequestException = (output, context) => {
|
|
2080
1651
|
return {
|
|
2081
1652
|
Message: __expectString(output.Message),
|
|
2082
1653
|
};
|
|
2083
1654
|
};
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
.filter(
|
|
2087
|
-
.map(
|
|
1655
|
+
const deserializeAws_json1_1KmsKeyIdListType = (output, context) => {
|
|
1656
|
+
const retVal = (output || [])
|
|
1657
|
+
.filter((e) => e != null)
|
|
1658
|
+
.map((entry) => {
|
|
2088
1659
|
if (entry === null) {
|
|
2089
1660
|
return null;
|
|
2090
1661
|
}
|
|
@@ -2092,18 +1663,18 @@ var deserializeAws_json1_1KmsKeyIdListType = function (output, context) {
|
|
|
2092
1663
|
});
|
|
2093
1664
|
return retVal;
|
|
2094
1665
|
};
|
|
2095
|
-
|
|
1666
|
+
const deserializeAws_json1_1LimitExceededException = (output, context) => {
|
|
2096
1667
|
return {
|
|
2097
1668
|
Message: __expectString(output.Message),
|
|
2098
1669
|
};
|
|
2099
1670
|
};
|
|
2100
|
-
|
|
1671
|
+
const deserializeAws_json1_1ListSecretsResponse = (output, context) => {
|
|
2101
1672
|
return {
|
|
2102
1673
|
NextToken: __expectString(output.NextToken),
|
|
2103
1674
|
SecretList: output.SecretList != null ? deserializeAws_json1_1SecretListType(output.SecretList, context) : undefined,
|
|
2104
1675
|
};
|
|
2105
1676
|
};
|
|
2106
|
-
|
|
1677
|
+
const deserializeAws_json1_1ListSecretVersionIdsResponse = (output, context) => {
|
|
2107
1678
|
return {
|
|
2108
1679
|
ARN: __expectString(output.ARN),
|
|
2109
1680
|
Name: __expectString(output.Name),
|
|
@@ -2111,28 +1682,28 @@ var deserializeAws_json1_1ListSecretVersionIdsResponse = function (output, conte
|
|
|
2111
1682
|
Versions: output.Versions != null ? deserializeAws_json1_1SecretVersionsListType(output.Versions, context) : undefined,
|
|
2112
1683
|
};
|
|
2113
1684
|
};
|
|
2114
|
-
|
|
1685
|
+
const deserializeAws_json1_1MalformedPolicyDocumentException = (output, context) => {
|
|
2115
1686
|
return {
|
|
2116
1687
|
Message: __expectString(output.Message),
|
|
2117
1688
|
};
|
|
2118
1689
|
};
|
|
2119
|
-
|
|
1690
|
+
const deserializeAws_json1_1PreconditionNotMetException = (output, context) => {
|
|
2120
1691
|
return {
|
|
2121
1692
|
Message: __expectString(output.Message),
|
|
2122
1693
|
};
|
|
2123
1694
|
};
|
|
2124
|
-
|
|
1695
|
+
const deserializeAws_json1_1PublicPolicyException = (output, context) => {
|
|
2125
1696
|
return {
|
|
2126
1697
|
Message: __expectString(output.Message),
|
|
2127
1698
|
};
|
|
2128
1699
|
};
|
|
2129
|
-
|
|
1700
|
+
const deserializeAws_json1_1PutResourcePolicyResponse = (output, context) => {
|
|
2130
1701
|
return {
|
|
2131
1702
|
ARN: __expectString(output.ARN),
|
|
2132
1703
|
Name: __expectString(output.Name),
|
|
2133
1704
|
};
|
|
2134
1705
|
};
|
|
2135
|
-
|
|
1706
|
+
const deserializeAws_json1_1PutSecretValueResponse = (output, context) => {
|
|
2136
1707
|
return {
|
|
2137
1708
|
ARN: __expectString(output.ARN),
|
|
2138
1709
|
Name: __expectString(output.Name),
|
|
@@ -2142,7 +1713,7 @@ var deserializeAws_json1_1PutSecretValueResponse = function (output, context) {
|
|
|
2142
1713
|
: undefined,
|
|
2143
1714
|
};
|
|
2144
1715
|
};
|
|
2145
|
-
|
|
1716
|
+
const deserializeAws_json1_1RemoveRegionsFromReplicationResponse = (output, context) => {
|
|
2146
1717
|
return {
|
|
2147
1718
|
ARN: __expectString(output.ARN),
|
|
2148
1719
|
ReplicationStatus: output.ReplicationStatus != null
|
|
@@ -2150,7 +1721,7 @@ var deserializeAws_json1_1RemoveRegionsFromReplicationResponse = function (outpu
|
|
|
2150
1721
|
: undefined,
|
|
2151
1722
|
};
|
|
2152
1723
|
};
|
|
2153
|
-
|
|
1724
|
+
const deserializeAws_json1_1ReplicateSecretToRegionsResponse = (output, context) => {
|
|
2154
1725
|
return {
|
|
2155
1726
|
ARN: __expectString(output.ARN),
|
|
2156
1727
|
ReplicationStatus: output.ReplicationStatus != null
|
|
@@ -2158,10 +1729,10 @@ var deserializeAws_json1_1ReplicateSecretToRegionsResponse = function (output, c
|
|
|
2158
1729
|
: undefined,
|
|
2159
1730
|
};
|
|
2160
1731
|
};
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
.filter(
|
|
2164
|
-
.map(
|
|
1732
|
+
const deserializeAws_json1_1ReplicationStatusListType = (output, context) => {
|
|
1733
|
+
const retVal = (output || [])
|
|
1734
|
+
.filter((e) => e != null)
|
|
1735
|
+
.map((entry) => {
|
|
2165
1736
|
if (entry === null) {
|
|
2166
1737
|
return null;
|
|
2167
1738
|
}
|
|
@@ -2169,7 +1740,7 @@ var deserializeAws_json1_1ReplicationStatusListType = function (output, context)
|
|
|
2169
1740
|
});
|
|
2170
1741
|
return retVal;
|
|
2171
1742
|
};
|
|
2172
|
-
|
|
1743
|
+
const deserializeAws_json1_1ReplicationStatusType = (output, context) => {
|
|
2173
1744
|
return {
|
|
2174
1745
|
KmsKeyId: __expectString(output.KmsKeyId),
|
|
2175
1746
|
LastAccessedDate: output.LastAccessedDate != null
|
|
@@ -2180,37 +1751,37 @@ var deserializeAws_json1_1ReplicationStatusType = function (output, context) {
|
|
|
2180
1751
|
StatusMessage: __expectString(output.StatusMessage),
|
|
2181
1752
|
};
|
|
2182
1753
|
};
|
|
2183
|
-
|
|
1754
|
+
const deserializeAws_json1_1ResourceExistsException = (output, context) => {
|
|
2184
1755
|
return {
|
|
2185
1756
|
Message: __expectString(output.Message),
|
|
2186
1757
|
};
|
|
2187
1758
|
};
|
|
2188
|
-
|
|
1759
|
+
const deserializeAws_json1_1ResourceNotFoundException = (output, context) => {
|
|
2189
1760
|
return {
|
|
2190
1761
|
Message: __expectString(output.Message),
|
|
2191
1762
|
};
|
|
2192
1763
|
};
|
|
2193
|
-
|
|
1764
|
+
const deserializeAws_json1_1RestoreSecretResponse = (output, context) => {
|
|
2194
1765
|
return {
|
|
2195
1766
|
ARN: __expectString(output.ARN),
|
|
2196
1767
|
Name: __expectString(output.Name),
|
|
2197
1768
|
};
|
|
2198
1769
|
};
|
|
2199
|
-
|
|
1770
|
+
const deserializeAws_json1_1RotateSecretResponse = (output, context) => {
|
|
2200
1771
|
return {
|
|
2201
1772
|
ARN: __expectString(output.ARN),
|
|
2202
1773
|
Name: __expectString(output.Name),
|
|
2203
1774
|
VersionId: __expectString(output.VersionId),
|
|
2204
1775
|
};
|
|
2205
1776
|
};
|
|
2206
|
-
|
|
1777
|
+
const deserializeAws_json1_1RotationRulesType = (output, context) => {
|
|
2207
1778
|
return {
|
|
2208
1779
|
AutomaticallyAfterDays: __expectLong(output.AutomaticallyAfterDays),
|
|
2209
1780
|
Duration: __expectString(output.Duration),
|
|
2210
1781
|
ScheduleExpression: __expectString(output.ScheduleExpression),
|
|
2211
1782
|
};
|
|
2212
1783
|
};
|
|
2213
|
-
|
|
1784
|
+
const deserializeAws_json1_1SecretListEntry = (output, context) => {
|
|
2214
1785
|
return {
|
|
2215
1786
|
ARN: __expectString(output.ARN),
|
|
2216
1787
|
CreatedDate: output.CreatedDate != null
|
|
@@ -2242,10 +1813,10 @@ var deserializeAws_json1_1SecretListEntry = function (output, context) {
|
|
|
2242
1813
|
Tags: output.Tags != null ? deserializeAws_json1_1TagListType(output.Tags, context) : undefined,
|
|
2243
1814
|
};
|
|
2244
1815
|
};
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
.filter(
|
|
2248
|
-
.map(
|
|
1816
|
+
const deserializeAws_json1_1SecretListType = (output, context) => {
|
|
1817
|
+
const retVal = (output || [])
|
|
1818
|
+
.filter((e) => e != null)
|
|
1819
|
+
.map((entry) => {
|
|
2249
1820
|
if (entry === null) {
|
|
2250
1821
|
return null;
|
|
2251
1822
|
}
|
|
@@ -2253,7 +1824,7 @@ var deserializeAws_json1_1SecretListType = function (output, context) {
|
|
|
2253
1824
|
});
|
|
2254
1825
|
return retVal;
|
|
2255
1826
|
};
|
|
2256
|
-
|
|
1827
|
+
const deserializeAws_json1_1SecretVersionsListEntry = (output, context) => {
|
|
2257
1828
|
return {
|
|
2258
1829
|
CreatedDate: output.CreatedDate != null
|
|
2259
1830
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedDate)))
|
|
@@ -2268,10 +1839,10 @@ var deserializeAws_json1_1SecretVersionsListEntry = function (output, context) {
|
|
|
2268
1839
|
: undefined,
|
|
2269
1840
|
};
|
|
2270
1841
|
};
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
.filter(
|
|
2274
|
-
.map(
|
|
1842
|
+
const deserializeAws_json1_1SecretVersionsListType = (output, context) => {
|
|
1843
|
+
const retVal = (output || [])
|
|
1844
|
+
.filter((e) => e != null)
|
|
1845
|
+
.map((entry) => {
|
|
2275
1846
|
if (entry === null) {
|
|
2276
1847
|
return null;
|
|
2277
1848
|
}
|
|
@@ -2279,10 +1850,10 @@ var deserializeAws_json1_1SecretVersionsListType = function (output, context) {
|
|
|
2279
1850
|
});
|
|
2280
1851
|
return retVal;
|
|
2281
1852
|
};
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
.filter(
|
|
2285
|
-
.map(
|
|
1853
|
+
const deserializeAws_json1_1SecretVersionStagesType = (output, context) => {
|
|
1854
|
+
const retVal = (output || [])
|
|
1855
|
+
.filter((e) => e != null)
|
|
1856
|
+
.map((entry) => {
|
|
2286
1857
|
if (entry === null) {
|
|
2287
1858
|
return null;
|
|
2288
1859
|
}
|
|
@@ -2290,31 +1861,32 @@ var deserializeAws_json1_1SecretVersionStagesType = function (output, context) {
|
|
|
2290
1861
|
});
|
|
2291
1862
|
return retVal;
|
|
2292
1863
|
};
|
|
2293
|
-
|
|
2294
|
-
return Object.entries(output).reduce(
|
|
2295
|
-
var _b;
|
|
2296
|
-
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
1864
|
+
const deserializeAws_json1_1SecretVersionsToStagesMapType = (output, context) => {
|
|
1865
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2297
1866
|
if (value === null) {
|
|
2298
1867
|
return acc;
|
|
2299
1868
|
}
|
|
2300
|
-
return
|
|
1869
|
+
return {
|
|
1870
|
+
...acc,
|
|
1871
|
+
[key]: deserializeAws_json1_1SecretVersionStagesType(value, context),
|
|
1872
|
+
};
|
|
2301
1873
|
}, {});
|
|
2302
1874
|
};
|
|
2303
|
-
|
|
1875
|
+
const deserializeAws_json1_1StopReplicationToReplicaResponse = (output, context) => {
|
|
2304
1876
|
return {
|
|
2305
1877
|
ARN: __expectString(output.ARN),
|
|
2306
1878
|
};
|
|
2307
1879
|
};
|
|
2308
|
-
|
|
1880
|
+
const deserializeAws_json1_1Tag = (output, context) => {
|
|
2309
1881
|
return {
|
|
2310
1882
|
Key: __expectString(output.Key),
|
|
2311
1883
|
Value: __expectString(output.Value),
|
|
2312
1884
|
};
|
|
2313
1885
|
};
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
.filter(
|
|
2317
|
-
.map(
|
|
1886
|
+
const deserializeAws_json1_1TagListType = (output, context) => {
|
|
1887
|
+
const retVal = (output || [])
|
|
1888
|
+
.filter((e) => e != null)
|
|
1889
|
+
.map((entry) => {
|
|
2318
1890
|
if (entry === null) {
|
|
2319
1891
|
return null;
|
|
2320
1892
|
}
|
|
@@ -2322,20 +1894,20 @@ var deserializeAws_json1_1TagListType = function (output, context) {
|
|
|
2322
1894
|
});
|
|
2323
1895
|
return retVal;
|
|
2324
1896
|
};
|
|
2325
|
-
|
|
1897
|
+
const deserializeAws_json1_1UpdateSecretResponse = (output, context) => {
|
|
2326
1898
|
return {
|
|
2327
1899
|
ARN: __expectString(output.ARN),
|
|
2328
1900
|
Name: __expectString(output.Name),
|
|
2329
1901
|
VersionId: __expectString(output.VersionId),
|
|
2330
1902
|
};
|
|
2331
1903
|
};
|
|
2332
|
-
|
|
1904
|
+
const deserializeAws_json1_1UpdateSecretVersionStageResponse = (output, context) => {
|
|
2333
1905
|
return {
|
|
2334
1906
|
ARN: __expectString(output.ARN),
|
|
2335
1907
|
Name: __expectString(output.Name),
|
|
2336
1908
|
};
|
|
2337
1909
|
};
|
|
2338
|
-
|
|
1910
|
+
const deserializeAws_json1_1ValidateResourcePolicyResponse = (output, context) => {
|
|
2339
1911
|
return {
|
|
2340
1912
|
PolicyValidationPassed: __expectBoolean(output.PolicyValidationPassed),
|
|
2341
1913
|
ValidationErrors: output.ValidationErrors != null
|
|
@@ -2343,16 +1915,16 @@ var deserializeAws_json1_1ValidateResourcePolicyResponse = function (output, con
|
|
|
2343
1915
|
: undefined,
|
|
2344
1916
|
};
|
|
2345
1917
|
};
|
|
2346
|
-
|
|
1918
|
+
const deserializeAws_json1_1ValidationErrorsEntry = (output, context) => {
|
|
2347
1919
|
return {
|
|
2348
1920
|
CheckName: __expectString(output.CheckName),
|
|
2349
1921
|
ErrorMessage: __expectString(output.ErrorMessage),
|
|
2350
1922
|
};
|
|
2351
1923
|
};
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
.filter(
|
|
2355
|
-
.map(
|
|
1924
|
+
const deserializeAws_json1_1ValidationErrorsType = (output, context) => {
|
|
1925
|
+
const retVal = (output || [])
|
|
1926
|
+
.filter((e) => e != null)
|
|
1927
|
+
.map((entry) => {
|
|
2356
1928
|
if (entry === null) {
|
|
2357
1929
|
return null;
|
|
2358
1930
|
}
|
|
@@ -2360,75 +1932,52 @@ var deserializeAws_json1_1ValidationErrorsType = function (output, context) {
|
|
|
2360
1932
|
});
|
|
2361
1933
|
return retVal;
|
|
2362
1934
|
};
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
});
|
|
2371
|
-
};
|
|
2372
|
-
var collectBody = function (streamBody, context) {
|
|
2373
|
-
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
1935
|
+
const deserializeMetadata = (output) => ({
|
|
1936
|
+
httpStatusCode: output.statusCode,
|
|
1937
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1938
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1939
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
1940
|
+
});
|
|
1941
|
+
const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
2374
1942
|
if (streamBody instanceof Uint8Array) {
|
|
2375
1943
|
return Promise.resolve(streamBody);
|
|
2376
1944
|
}
|
|
2377
1945
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
2378
1946
|
};
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
};
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
if (resolvedHostname !== undefined) {
|
|
2398
|
-
contents.hostname = resolvedHostname;
|
|
2399
|
-
}
|
|
2400
|
-
if (body !== undefined) {
|
|
2401
|
-
contents.body = body;
|
|
2402
|
-
}
|
|
2403
|
-
return [2, new __HttpRequest(contents)];
|
|
2404
|
-
}
|
|
2405
|
-
});
|
|
2406
|
-
}); };
|
|
2407
|
-
var parseBody = function (streamBody, context) {
|
|
2408
|
-
return collectBodyString(streamBody, context).then(function (encoded) {
|
|
2409
|
-
if (encoded.length) {
|
|
2410
|
-
return JSON.parse(encoded);
|
|
2411
|
-
}
|
|
2412
|
-
return {};
|
|
2413
|
-
});
|
|
1947
|
+
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1948
|
+
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
1949
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1950
|
+
const contents = {
|
|
1951
|
+
protocol,
|
|
1952
|
+
hostname,
|
|
1953
|
+
port,
|
|
1954
|
+
method: "POST",
|
|
1955
|
+
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
1956
|
+
headers,
|
|
1957
|
+
};
|
|
1958
|
+
if (resolvedHostname !== undefined) {
|
|
1959
|
+
contents.hostname = resolvedHostname;
|
|
1960
|
+
}
|
|
1961
|
+
if (body !== undefined) {
|
|
1962
|
+
contents.body = body;
|
|
1963
|
+
}
|
|
1964
|
+
return new __HttpRequest(contents);
|
|
2414
1965
|
};
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
var sanitizeErrorCode = function (rawValue) {
|
|
2431
|
-
var cleanValue = rawValue;
|
|
1966
|
+
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1967
|
+
if (encoded.length) {
|
|
1968
|
+
return JSON.parse(encoded);
|
|
1969
|
+
}
|
|
1970
|
+
return {};
|
|
1971
|
+
});
|
|
1972
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
1973
|
+
const value = await parseBody(errorBody, context);
|
|
1974
|
+
value.message = value.message ?? value.Message;
|
|
1975
|
+
return value;
|
|
1976
|
+
};
|
|
1977
|
+
const loadRestJsonErrorCode = (output, data) => {
|
|
1978
|
+
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1979
|
+
const sanitizeErrorCode = (rawValue) => {
|
|
1980
|
+
let cleanValue = rawValue;
|
|
2432
1981
|
if (typeof cleanValue === "number") {
|
|
2433
1982
|
cleanValue = cleanValue.toString();
|
|
2434
1983
|
}
|
|
@@ -2443,7 +1992,7 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
2443
1992
|
}
|
|
2444
1993
|
return cleanValue;
|
|
2445
1994
|
};
|
|
2446
|
-
|
|
1995
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2447
1996
|
if (headerKey !== undefined) {
|
|
2448
1997
|
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2449
1998
|
}
|