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