@aws-sdk/client-secrets-manager 3.312.0 → 3.315.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/protocols/Aws_json1_1.js +207 -686
- package/dist-es/protocols/Aws_json1_1.js +208 -687
- package/package.json +6 -6
|
@@ -9,7 +9,7 @@ const SecretsManagerServiceException_1 = require("../models/SecretsManagerServic
|
|
|
9
9
|
const se_CancelRotateSecretCommand = async (input, context) => {
|
|
10
10
|
const headers = sharedHeaders("CancelRotateSecret");
|
|
11
11
|
let body;
|
|
12
|
-
body = JSON.stringify(
|
|
12
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
13
13
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
14
14
|
};
|
|
15
15
|
exports.se_CancelRotateSecretCommand = se_CancelRotateSecretCommand;
|
|
@@ -23,63 +23,63 @@ exports.se_CreateSecretCommand = se_CreateSecretCommand;
|
|
|
23
23
|
const se_DeleteResourcePolicyCommand = async (input, context) => {
|
|
24
24
|
const headers = sharedHeaders("DeleteResourcePolicy");
|
|
25
25
|
let body;
|
|
26
|
-
body = JSON.stringify(
|
|
26
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
27
27
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
28
28
|
};
|
|
29
29
|
exports.se_DeleteResourcePolicyCommand = se_DeleteResourcePolicyCommand;
|
|
30
30
|
const se_DeleteSecretCommand = async (input, context) => {
|
|
31
31
|
const headers = sharedHeaders("DeleteSecret");
|
|
32
32
|
let body;
|
|
33
|
-
body = JSON.stringify(
|
|
33
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
34
34
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
35
35
|
};
|
|
36
36
|
exports.se_DeleteSecretCommand = se_DeleteSecretCommand;
|
|
37
37
|
const se_DescribeSecretCommand = async (input, context) => {
|
|
38
38
|
const headers = sharedHeaders("DescribeSecret");
|
|
39
39
|
let body;
|
|
40
|
-
body = JSON.stringify(
|
|
40
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
41
41
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
42
42
|
};
|
|
43
43
|
exports.se_DescribeSecretCommand = se_DescribeSecretCommand;
|
|
44
44
|
const se_GetRandomPasswordCommand = async (input, context) => {
|
|
45
45
|
const headers = sharedHeaders("GetRandomPassword");
|
|
46
46
|
let body;
|
|
47
|
-
body = JSON.stringify(
|
|
47
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
48
48
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
49
49
|
};
|
|
50
50
|
exports.se_GetRandomPasswordCommand = se_GetRandomPasswordCommand;
|
|
51
51
|
const se_GetResourcePolicyCommand = async (input, context) => {
|
|
52
52
|
const headers = sharedHeaders("GetResourcePolicy");
|
|
53
53
|
let body;
|
|
54
|
-
body = JSON.stringify(
|
|
54
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
55
55
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
56
56
|
};
|
|
57
57
|
exports.se_GetResourcePolicyCommand = se_GetResourcePolicyCommand;
|
|
58
58
|
const se_GetSecretValueCommand = async (input, context) => {
|
|
59
59
|
const headers = sharedHeaders("GetSecretValue");
|
|
60
60
|
let body;
|
|
61
|
-
body = JSON.stringify(
|
|
61
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
62
62
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
63
63
|
};
|
|
64
64
|
exports.se_GetSecretValueCommand = se_GetSecretValueCommand;
|
|
65
65
|
const se_ListSecretsCommand = async (input, context) => {
|
|
66
66
|
const headers = sharedHeaders("ListSecrets");
|
|
67
67
|
let body;
|
|
68
|
-
body = JSON.stringify(
|
|
68
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
69
69
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
70
70
|
};
|
|
71
71
|
exports.se_ListSecretsCommand = se_ListSecretsCommand;
|
|
72
72
|
const se_ListSecretVersionIdsCommand = async (input, context) => {
|
|
73
73
|
const headers = sharedHeaders("ListSecretVersionIds");
|
|
74
74
|
let body;
|
|
75
|
-
body = JSON.stringify(
|
|
75
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
76
76
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
77
|
};
|
|
78
78
|
exports.se_ListSecretVersionIdsCommand = se_ListSecretVersionIdsCommand;
|
|
79
79
|
const se_PutResourcePolicyCommand = async (input, context) => {
|
|
80
80
|
const headers = sharedHeaders("PutResourcePolicy");
|
|
81
81
|
let body;
|
|
82
|
-
body = JSON.stringify(
|
|
82
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
83
83
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
84
84
|
};
|
|
85
85
|
exports.se_PutResourcePolicyCommand = se_PutResourcePolicyCommand;
|
|
@@ -93,21 +93,21 @@ exports.se_PutSecretValueCommand = se_PutSecretValueCommand;
|
|
|
93
93
|
const se_RemoveRegionsFromReplicationCommand = async (input, context) => {
|
|
94
94
|
const headers = sharedHeaders("RemoveRegionsFromReplication");
|
|
95
95
|
let body;
|
|
96
|
-
body = JSON.stringify(
|
|
96
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
97
97
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
98
98
|
};
|
|
99
99
|
exports.se_RemoveRegionsFromReplicationCommand = se_RemoveRegionsFromReplicationCommand;
|
|
100
100
|
const se_ReplicateSecretToRegionsCommand = async (input, context) => {
|
|
101
101
|
const headers = sharedHeaders("ReplicateSecretToRegions");
|
|
102
102
|
let body;
|
|
103
|
-
body = JSON.stringify(
|
|
103
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
104
104
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
105
105
|
};
|
|
106
106
|
exports.se_ReplicateSecretToRegionsCommand = se_ReplicateSecretToRegionsCommand;
|
|
107
107
|
const se_RestoreSecretCommand = async (input, context) => {
|
|
108
108
|
const headers = sharedHeaders("RestoreSecret");
|
|
109
109
|
let body;
|
|
110
|
-
body = JSON.stringify(
|
|
110
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
111
111
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
112
112
|
};
|
|
113
113
|
exports.se_RestoreSecretCommand = se_RestoreSecretCommand;
|
|
@@ -121,21 +121,21 @@ exports.se_RotateSecretCommand = se_RotateSecretCommand;
|
|
|
121
121
|
const se_StopReplicationToReplicaCommand = async (input, context) => {
|
|
122
122
|
const headers = sharedHeaders("StopReplicationToReplica");
|
|
123
123
|
let body;
|
|
124
|
-
body = JSON.stringify(
|
|
124
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
125
125
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
126
126
|
};
|
|
127
127
|
exports.se_StopReplicationToReplicaCommand = se_StopReplicationToReplicaCommand;
|
|
128
128
|
const se_TagResourceCommand = async (input, context) => {
|
|
129
129
|
const headers = sharedHeaders("TagResource");
|
|
130
130
|
let body;
|
|
131
|
-
body = JSON.stringify(
|
|
131
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
132
132
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
133
133
|
};
|
|
134
134
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
135
135
|
const se_UntagResourceCommand = async (input, context) => {
|
|
136
136
|
const headers = sharedHeaders("UntagResource");
|
|
137
137
|
let body;
|
|
138
|
-
body = JSON.stringify(
|
|
138
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
139
139
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
140
140
|
};
|
|
141
141
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
@@ -149,14 +149,14 @@ exports.se_UpdateSecretCommand = se_UpdateSecretCommand;
|
|
|
149
149
|
const se_UpdateSecretVersionStageCommand = async (input, context) => {
|
|
150
150
|
const headers = sharedHeaders("UpdateSecretVersionStage");
|
|
151
151
|
let body;
|
|
152
|
-
body = JSON.stringify(
|
|
152
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
153
153
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
154
154
|
};
|
|
155
155
|
exports.se_UpdateSecretVersionStageCommand = se_UpdateSecretVersionStageCommand;
|
|
156
156
|
const se_ValidateResourcePolicyCommand = async (input, context) => {
|
|
157
157
|
const headers = sharedHeaders("ValidateResourcePolicy");
|
|
158
158
|
let body;
|
|
159
|
-
body = JSON.stringify(
|
|
159
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
160
160
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
161
161
|
};
|
|
162
162
|
exports.se_ValidateResourcePolicyCommand = se_ValidateResourcePolicyCommand;
|
|
@@ -166,12 +166,12 @@ const de_CancelRotateSecretCommand = async (output, context) => {
|
|
|
166
166
|
}
|
|
167
167
|
const data = await parseBody(output.body, context);
|
|
168
168
|
let contents = {};
|
|
169
|
-
contents =
|
|
169
|
+
contents = (0, smithy_client_1._json)(data);
|
|
170
170
|
const response = {
|
|
171
171
|
$metadata: deserializeMetadata(output),
|
|
172
172
|
...contents,
|
|
173
173
|
};
|
|
174
|
-
return
|
|
174
|
+
return response;
|
|
175
175
|
};
|
|
176
176
|
exports.de_CancelRotateSecretCommand = de_CancelRotateSecretCommand;
|
|
177
177
|
const de_CancelRotateSecretCommandError = async (output, context) => {
|
|
@@ -195,10 +195,9 @@ const de_CancelRotateSecretCommandError = async (output, context) => {
|
|
|
195
195
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
196
196
|
default:
|
|
197
197
|
const parsedBody = parsedOutput.body;
|
|
198
|
-
|
|
198
|
+
return throwDefaultError({
|
|
199
199
|
output,
|
|
200
200
|
parsedBody,
|
|
201
|
-
exceptionCtor: SecretsManagerServiceException_1.SecretsManagerServiceException,
|
|
202
201
|
errorCode,
|
|
203
202
|
});
|
|
204
203
|
}
|
|
@@ -214,7 +213,7 @@ const de_CreateSecretCommand = async (output, context) => {
|
|
|
214
213
|
$metadata: deserializeMetadata(output),
|
|
215
214
|
...contents,
|
|
216
215
|
};
|
|
217
|
-
return
|
|
216
|
+
return response;
|
|
218
217
|
};
|
|
219
218
|
exports.de_CreateSecretCommand = de_CreateSecretCommand;
|
|
220
219
|
const de_CreateSecretCommandError = async (output, context) => {
|
|
@@ -256,10 +255,9 @@ const de_CreateSecretCommandError = async (output, context) => {
|
|
|
256
255
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
257
256
|
default:
|
|
258
257
|
const parsedBody = parsedOutput.body;
|
|
259
|
-
|
|
258
|
+
return throwDefaultError({
|
|
260
259
|
output,
|
|
261
260
|
parsedBody,
|
|
262
|
-
exceptionCtor: SecretsManagerServiceException_1.SecretsManagerServiceException,
|
|
263
261
|
errorCode,
|
|
264
262
|
});
|
|
265
263
|
}
|
|
@@ -270,12 +268,12 @@ const de_DeleteResourcePolicyCommand = async (output, context) => {
|
|
|
270
268
|
}
|
|
271
269
|
const data = await parseBody(output.body, context);
|
|
272
270
|
let contents = {};
|
|
273
|
-
contents =
|
|
271
|
+
contents = (0, smithy_client_1._json)(data);
|
|
274
272
|
const response = {
|
|
275
273
|
$metadata: deserializeMetadata(output),
|
|
276
274
|
...contents,
|
|
277
275
|
};
|
|
278
|
-
return
|
|
276
|
+
return response;
|
|
279
277
|
};
|
|
280
278
|
exports.de_DeleteResourcePolicyCommand = de_DeleteResourcePolicyCommand;
|
|
281
279
|
const de_DeleteResourcePolicyCommandError = async (output, context) => {
|
|
@@ -299,10 +297,9 @@ const de_DeleteResourcePolicyCommandError = async (output, context) => {
|
|
|
299
297
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
300
298
|
default:
|
|
301
299
|
const parsedBody = parsedOutput.body;
|
|
302
|
-
|
|
300
|
+
return throwDefaultError({
|
|
303
301
|
output,
|
|
304
302
|
parsedBody,
|
|
305
|
-
exceptionCtor: SecretsManagerServiceException_1.SecretsManagerServiceException,
|
|
306
303
|
errorCode,
|
|
307
304
|
});
|
|
308
305
|
}
|
|
@@ -318,7 +315,7 @@ const de_DeleteSecretCommand = async (output, context) => {
|
|
|
318
315
|
$metadata: deserializeMetadata(output),
|
|
319
316
|
...contents,
|
|
320
317
|
};
|
|
321
|
-
return
|
|
318
|
+
return response;
|
|
322
319
|
};
|
|
323
320
|
exports.de_DeleteSecretCommand = de_DeleteSecretCommand;
|
|
324
321
|
const de_DeleteSecretCommandError = async (output, context) => {
|
|
@@ -342,10 +339,9 @@ const de_DeleteSecretCommandError = async (output, context) => {
|
|
|
342
339
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
343
340
|
default:
|
|
344
341
|
const parsedBody = parsedOutput.body;
|
|
345
|
-
|
|
342
|
+
return throwDefaultError({
|
|
346
343
|
output,
|
|
347
344
|
parsedBody,
|
|
348
|
-
exceptionCtor: SecretsManagerServiceException_1.SecretsManagerServiceException,
|
|
349
345
|
errorCode,
|
|
350
346
|
});
|
|
351
347
|
}
|
|
@@ -361,7 +357,7 @@ const de_DescribeSecretCommand = async (output, context) => {
|
|
|
361
357
|
$metadata: deserializeMetadata(output),
|
|
362
358
|
...contents,
|
|
363
359
|
};
|
|
364
|
-
return
|
|
360
|
+
return response;
|
|
365
361
|
};
|
|
366
362
|
exports.de_DescribeSecretCommand = de_DescribeSecretCommand;
|
|
367
363
|
const de_DescribeSecretCommandError = async (output, context) => {
|
|
@@ -382,10 +378,9 @@ const de_DescribeSecretCommandError = async (output, context) => {
|
|
|
382
378
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
383
379
|
default:
|
|
384
380
|
const parsedBody = parsedOutput.body;
|
|
385
|
-
|
|
381
|
+
return throwDefaultError({
|
|
386
382
|
output,
|
|
387
383
|
parsedBody,
|
|
388
|
-
exceptionCtor: SecretsManagerServiceException_1.SecretsManagerServiceException,
|
|
389
384
|
errorCode,
|
|
390
385
|
});
|
|
391
386
|
}
|
|
@@ -396,12 +391,12 @@ const de_GetRandomPasswordCommand = async (output, context) => {
|
|
|
396
391
|
}
|
|
397
392
|
const data = await parseBody(output.body, context);
|
|
398
393
|
let contents = {};
|
|
399
|
-
contents =
|
|
394
|
+
contents = (0, smithy_client_1._json)(data);
|
|
400
395
|
const response = {
|
|
401
396
|
$metadata: deserializeMetadata(output),
|
|
402
397
|
...contents,
|
|
403
398
|
};
|
|
404
|
-
return
|
|
399
|
+
return response;
|
|
405
400
|
};
|
|
406
401
|
exports.de_GetRandomPasswordCommand = de_GetRandomPasswordCommand;
|
|
407
402
|
const de_GetRandomPasswordCommandError = async (output, context) => {
|
|
@@ -422,10 +417,9 @@ const de_GetRandomPasswordCommandError = async (output, context) => {
|
|
|
422
417
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
423
418
|
default:
|
|
424
419
|
const parsedBody = parsedOutput.body;
|
|
425
|
-
|
|
420
|
+
return throwDefaultError({
|
|
426
421
|
output,
|
|
427
422
|
parsedBody,
|
|
428
|
-
exceptionCtor: SecretsManagerServiceException_1.SecretsManagerServiceException,
|
|
429
423
|
errorCode,
|
|
430
424
|
});
|
|
431
425
|
}
|
|
@@ -436,12 +430,12 @@ const de_GetResourcePolicyCommand = async (output, context) => {
|
|
|
436
430
|
}
|
|
437
431
|
const data = await parseBody(output.body, context);
|
|
438
432
|
let contents = {};
|
|
439
|
-
contents =
|
|
433
|
+
contents = (0, smithy_client_1._json)(data);
|
|
440
434
|
const response = {
|
|
441
435
|
$metadata: deserializeMetadata(output),
|
|
442
436
|
...contents,
|
|
443
437
|
};
|
|
444
|
-
return
|
|
438
|
+
return response;
|
|
445
439
|
};
|
|
446
440
|
exports.de_GetResourcePolicyCommand = de_GetResourcePolicyCommand;
|
|
447
441
|
const de_GetResourcePolicyCommandError = async (output, context) => {
|
|
@@ -465,10 +459,9 @@ const de_GetResourcePolicyCommandError = async (output, context) => {
|
|
|
465
459
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
466
460
|
default:
|
|
467
461
|
const parsedBody = parsedOutput.body;
|
|
468
|
-
|
|
462
|
+
return throwDefaultError({
|
|
469
463
|
output,
|
|
470
464
|
parsedBody,
|
|
471
|
-
exceptionCtor: SecretsManagerServiceException_1.SecretsManagerServiceException,
|
|
472
465
|
errorCode,
|
|
473
466
|
});
|
|
474
467
|
}
|
|
@@ -484,7 +477,7 @@ const de_GetSecretValueCommand = async (output, context) => {
|
|
|
484
477
|
$metadata: deserializeMetadata(output),
|
|
485
478
|
...contents,
|
|
486
479
|
};
|
|
487
|
-
return
|
|
480
|
+
return response;
|
|
488
481
|
};
|
|
489
482
|
exports.de_GetSecretValueCommand = de_GetSecretValueCommand;
|
|
490
483
|
const de_GetSecretValueCommandError = async (output, context) => {
|
|
@@ -511,10 +504,9 @@ const de_GetSecretValueCommandError = async (output, context) => {
|
|
|
511
504
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
512
505
|
default:
|
|
513
506
|
const parsedBody = parsedOutput.body;
|
|
514
|
-
|
|
507
|
+
return throwDefaultError({
|
|
515
508
|
output,
|
|
516
509
|
parsedBody,
|
|
517
|
-
exceptionCtor: SecretsManagerServiceException_1.SecretsManagerServiceException,
|
|
518
510
|
errorCode,
|
|
519
511
|
});
|
|
520
512
|
}
|
|
@@ -530,7 +522,7 @@ const de_ListSecretsCommand = async (output, context) => {
|
|
|
530
522
|
$metadata: deserializeMetadata(output),
|
|
531
523
|
...contents,
|
|
532
524
|
};
|
|
533
|
-
return
|
|
525
|
+
return response;
|
|
534
526
|
};
|
|
535
527
|
exports.de_ListSecretsCommand = de_ListSecretsCommand;
|
|
536
528
|
const de_ListSecretsCommandError = async (output, context) => {
|
|
@@ -551,10 +543,9 @@ const de_ListSecretsCommandError = async (output, context) => {
|
|
|
551
543
|
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
552
544
|
default:
|
|
553
545
|
const parsedBody = parsedOutput.body;
|
|
554
|
-
|
|
546
|
+
return throwDefaultError({
|
|
555
547
|
output,
|
|
556
548
|
parsedBody,
|
|
557
|
-
exceptionCtor: SecretsManagerServiceException_1.SecretsManagerServiceException,
|
|
558
549
|
errorCode,
|
|
559
550
|
});
|
|
560
551
|
}
|
|
@@ -570,7 +561,7 @@ const de_ListSecretVersionIdsCommand = async (output, context) => {
|
|
|
570
561
|
$metadata: deserializeMetadata(output),
|
|
571
562
|
...contents,
|
|
572
563
|
};
|
|
573
|
-
return
|
|
564
|
+
return response;
|
|
574
565
|
};
|
|
575
566
|
exports.de_ListSecretVersionIdsCommand = de_ListSecretVersionIdsCommand;
|
|
576
567
|
const de_ListSecretVersionIdsCommandError = async (output, context) => {
|
|
@@ -594,10 +585,9 @@ const de_ListSecretVersionIdsCommandError = async (output, context) => {
|
|
|
594
585
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
595
586
|
default:
|
|
596
587
|
const parsedBody = parsedOutput.body;
|
|
597
|
-
|
|
588
|
+
return throwDefaultError({
|
|
598
589
|
output,
|
|
599
590
|
parsedBody,
|
|
600
|
-
exceptionCtor: SecretsManagerServiceException_1.SecretsManagerServiceException,
|
|
601
591
|
errorCode,
|
|
602
592
|
});
|
|
603
593
|
}
|
|
@@ -608,12 +598,12 @@ const de_PutResourcePolicyCommand = async (output, context) => {
|
|
|
608
598
|
}
|
|
609
599
|
const data = await parseBody(output.body, context);
|
|
610
600
|
let contents = {};
|
|
611
|
-
contents =
|
|
601
|
+
contents = (0, smithy_client_1._json)(data);
|
|
612
602
|
const response = {
|
|
613
603
|
$metadata: deserializeMetadata(output),
|
|
614
604
|
...contents,
|
|
615
605
|
};
|
|
616
|
-
return
|
|
606
|
+
return response;
|
|
617
607
|
};
|
|
618
608
|
exports.de_PutResourcePolicyCommand = de_PutResourcePolicyCommand;
|
|
619
609
|
const de_PutResourcePolicyCommandError = async (output, context) => {
|
|
@@ -643,10 +633,9 @@ const de_PutResourcePolicyCommandError = async (output, context) => {
|
|
|
643
633
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
644
634
|
default:
|
|
645
635
|
const parsedBody = parsedOutput.body;
|
|
646
|
-
|
|
636
|
+
return throwDefaultError({
|
|
647
637
|
output,
|
|
648
638
|
parsedBody,
|
|
649
|
-
exceptionCtor: SecretsManagerServiceException_1.SecretsManagerServiceException,
|
|
650
639
|
errorCode,
|
|
651
640
|
});
|
|
652
641
|
}
|
|
@@ -657,12 +646,12 @@ const de_PutSecretValueCommand = async (output, context) => {
|
|
|
657
646
|
}
|
|
658
647
|
const data = await parseBody(output.body, context);
|
|
659
648
|
let contents = {};
|
|
660
|
-
contents =
|
|
649
|
+
contents = (0, smithy_client_1._json)(data);
|
|
661
650
|
const response = {
|
|
662
651
|
$metadata: deserializeMetadata(output),
|
|
663
652
|
...contents,
|
|
664
653
|
};
|
|
665
|
-
return
|
|
654
|
+
return response;
|
|
666
655
|
};
|
|
667
656
|
exports.de_PutSecretValueCommand = de_PutSecretValueCommand;
|
|
668
657
|
const de_PutSecretValueCommandError = async (output, context) => {
|
|
@@ -698,10 +687,9 @@ const de_PutSecretValueCommandError = async (output, context) => {
|
|
|
698
687
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
699
688
|
default:
|
|
700
689
|
const parsedBody = parsedOutput.body;
|
|
701
|
-
|
|
690
|
+
return throwDefaultError({
|
|
702
691
|
output,
|
|
703
692
|
parsedBody,
|
|
704
|
-
exceptionCtor: SecretsManagerServiceException_1.SecretsManagerServiceException,
|
|
705
693
|
errorCode,
|
|
706
694
|
});
|
|
707
695
|
}
|
|
@@ -717,7 +705,7 @@ const de_RemoveRegionsFromReplicationCommand = async (output, context) => {
|
|
|
717
705
|
$metadata: deserializeMetadata(output),
|
|
718
706
|
...contents,
|
|
719
707
|
};
|
|
720
|
-
return
|
|
708
|
+
return response;
|
|
721
709
|
};
|
|
722
710
|
exports.de_RemoveRegionsFromReplicationCommand = de_RemoveRegionsFromReplicationCommand;
|
|
723
711
|
const de_RemoveRegionsFromReplicationCommandError = async (output, context) => {
|
|
@@ -741,10 +729,9 @@ const de_RemoveRegionsFromReplicationCommandError = async (output, context) => {
|
|
|
741
729
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
742
730
|
default:
|
|
743
731
|
const parsedBody = parsedOutput.body;
|
|
744
|
-
|
|
732
|
+
return throwDefaultError({
|
|
745
733
|
output,
|
|
746
734
|
parsedBody,
|
|
747
|
-
exceptionCtor: SecretsManagerServiceException_1.SecretsManagerServiceException,
|
|
748
735
|
errorCode,
|
|
749
736
|
});
|
|
750
737
|
}
|
|
@@ -760,7 +747,7 @@ const de_ReplicateSecretToRegionsCommand = async (output, context) => {
|
|
|
760
747
|
$metadata: deserializeMetadata(output),
|
|
761
748
|
...contents,
|
|
762
749
|
};
|
|
763
|
-
return
|
|
750
|
+
return response;
|
|
764
751
|
};
|
|
765
752
|
exports.de_ReplicateSecretToRegionsCommand = de_ReplicateSecretToRegionsCommand;
|
|
766
753
|
const de_ReplicateSecretToRegionsCommandError = async (output, context) => {
|
|
@@ -784,10 +771,9 @@ const de_ReplicateSecretToRegionsCommandError = async (output, context) => {
|
|
|
784
771
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
785
772
|
default:
|
|
786
773
|
const parsedBody = parsedOutput.body;
|
|
787
|
-
|
|
774
|
+
return throwDefaultError({
|
|
788
775
|
output,
|
|
789
776
|
parsedBody,
|
|
790
|
-
exceptionCtor: SecretsManagerServiceException_1.SecretsManagerServiceException,
|
|
791
777
|
errorCode,
|
|
792
778
|
});
|
|
793
779
|
}
|
|
@@ -798,12 +784,12 @@ const de_RestoreSecretCommand = async (output, context) => {
|
|
|
798
784
|
}
|
|
799
785
|
const data = await parseBody(output.body, context);
|
|
800
786
|
let contents = {};
|
|
801
|
-
contents =
|
|
787
|
+
contents = (0, smithy_client_1._json)(data);
|
|
802
788
|
const response = {
|
|
803
789
|
$metadata: deserializeMetadata(output),
|
|
804
790
|
...contents,
|
|
805
791
|
};
|
|
806
|
-
return
|
|
792
|
+
return response;
|
|
807
793
|
};
|
|
808
794
|
exports.de_RestoreSecretCommand = de_RestoreSecretCommand;
|
|
809
795
|
const de_RestoreSecretCommandError = async (output, context) => {
|
|
@@ -827,10 +813,9 @@ const de_RestoreSecretCommandError = async (output, context) => {
|
|
|
827
813
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
828
814
|
default:
|
|
829
815
|
const parsedBody = parsedOutput.body;
|
|
830
|
-
|
|
816
|
+
return throwDefaultError({
|
|
831
817
|
output,
|
|
832
818
|
parsedBody,
|
|
833
|
-
exceptionCtor: SecretsManagerServiceException_1.SecretsManagerServiceException,
|
|
834
819
|
errorCode,
|
|
835
820
|
});
|
|
836
821
|
}
|
|
@@ -841,12 +826,12 @@ const de_RotateSecretCommand = async (output, context) => {
|
|
|
841
826
|
}
|
|
842
827
|
const data = await parseBody(output.body, context);
|
|
843
828
|
let contents = {};
|
|
844
|
-
contents =
|
|
829
|
+
contents = (0, smithy_client_1._json)(data);
|
|
845
830
|
const response = {
|
|
846
831
|
$metadata: deserializeMetadata(output),
|
|
847
832
|
...contents,
|
|
848
833
|
};
|
|
849
|
-
return
|
|
834
|
+
return response;
|
|
850
835
|
};
|
|
851
836
|
exports.de_RotateSecretCommand = de_RotateSecretCommand;
|
|
852
837
|
const de_RotateSecretCommandError = async (output, context) => {
|
|
@@ -870,10 +855,9 @@ const de_RotateSecretCommandError = async (output, context) => {
|
|
|
870
855
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
871
856
|
default:
|
|
872
857
|
const parsedBody = parsedOutput.body;
|
|
873
|
-
|
|
858
|
+
return throwDefaultError({
|
|
874
859
|
output,
|
|
875
860
|
parsedBody,
|
|
876
|
-
exceptionCtor: SecretsManagerServiceException_1.SecretsManagerServiceException,
|
|
877
861
|
errorCode,
|
|
878
862
|
});
|
|
879
863
|
}
|
|
@@ -884,12 +868,12 @@ const de_StopReplicationToReplicaCommand = async (output, context) => {
|
|
|
884
868
|
}
|
|
885
869
|
const data = await parseBody(output.body, context);
|
|
886
870
|
let contents = {};
|
|
887
|
-
contents =
|
|
871
|
+
contents = (0, smithy_client_1._json)(data);
|
|
888
872
|
const response = {
|
|
889
873
|
$metadata: deserializeMetadata(output),
|
|
890
874
|
...contents,
|
|
891
875
|
};
|
|
892
|
-
return
|
|
876
|
+
return response;
|
|
893
877
|
};
|
|
894
878
|
exports.de_StopReplicationToReplicaCommand = de_StopReplicationToReplicaCommand;
|
|
895
879
|
const de_StopReplicationToReplicaCommandError = async (output, context) => {
|
|
@@ -913,10 +897,9 @@ const de_StopReplicationToReplicaCommandError = async (output, context) => {
|
|
|
913
897
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
914
898
|
default:
|
|
915
899
|
const parsedBody = parsedOutput.body;
|
|
916
|
-
|
|
900
|
+
return throwDefaultError({
|
|
917
901
|
output,
|
|
918
902
|
parsedBody,
|
|
919
|
-
exceptionCtor: SecretsManagerServiceException_1.SecretsManagerServiceException,
|
|
920
903
|
errorCode,
|
|
921
904
|
});
|
|
922
905
|
}
|
|
@@ -929,7 +912,7 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
929
912
|
const response = {
|
|
930
913
|
$metadata: deserializeMetadata(output),
|
|
931
914
|
};
|
|
932
|
-
return
|
|
915
|
+
return response;
|
|
933
916
|
};
|
|
934
917
|
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
935
918
|
const de_TagResourceCommandError = async (output, context) => {
|
|
@@ -953,10 +936,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
953
936
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
954
937
|
default:
|
|
955
938
|
const parsedBody = parsedOutput.body;
|
|
956
|
-
|
|
939
|
+
return throwDefaultError({
|
|
957
940
|
output,
|
|
958
941
|
parsedBody,
|
|
959
|
-
exceptionCtor: SecretsManagerServiceException_1.SecretsManagerServiceException,
|
|
960
942
|
errorCode,
|
|
961
943
|
});
|
|
962
944
|
}
|
|
@@ -969,7 +951,7 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
969
951
|
const response = {
|
|
970
952
|
$metadata: deserializeMetadata(output),
|
|
971
953
|
};
|
|
972
|
-
return
|
|
954
|
+
return response;
|
|
973
955
|
};
|
|
974
956
|
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
975
957
|
const de_UntagResourceCommandError = async (output, context) => {
|
|
@@ -993,10 +975,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
993
975
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
994
976
|
default:
|
|
995
977
|
const parsedBody = parsedOutput.body;
|
|
996
|
-
|
|
978
|
+
return throwDefaultError({
|
|
997
979
|
output,
|
|
998
980
|
parsedBody,
|
|
999
|
-
exceptionCtor: SecretsManagerServiceException_1.SecretsManagerServiceException,
|
|
1000
981
|
errorCode,
|
|
1001
982
|
});
|
|
1002
983
|
}
|
|
@@ -1007,12 +988,12 @@ const de_UpdateSecretCommand = async (output, context) => {
|
|
|
1007
988
|
}
|
|
1008
989
|
const data = await parseBody(output.body, context);
|
|
1009
990
|
let contents = {};
|
|
1010
|
-
contents =
|
|
991
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1011
992
|
const response = {
|
|
1012
993
|
$metadata: deserializeMetadata(output),
|
|
1013
994
|
...contents,
|
|
1014
995
|
};
|
|
1015
|
-
return
|
|
996
|
+
return response;
|
|
1016
997
|
};
|
|
1017
998
|
exports.de_UpdateSecretCommand = de_UpdateSecretCommand;
|
|
1018
999
|
const de_UpdateSecretCommandError = async (output, context) => {
|
|
@@ -1054,10 +1035,9 @@ const de_UpdateSecretCommandError = async (output, context) => {
|
|
|
1054
1035
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1055
1036
|
default:
|
|
1056
1037
|
const parsedBody = parsedOutput.body;
|
|
1057
|
-
|
|
1038
|
+
return throwDefaultError({
|
|
1058
1039
|
output,
|
|
1059
1040
|
parsedBody,
|
|
1060
|
-
exceptionCtor: SecretsManagerServiceException_1.SecretsManagerServiceException,
|
|
1061
1041
|
errorCode,
|
|
1062
1042
|
});
|
|
1063
1043
|
}
|
|
@@ -1068,12 +1048,12 @@ const de_UpdateSecretVersionStageCommand = async (output, context) => {
|
|
|
1068
1048
|
}
|
|
1069
1049
|
const data = await parseBody(output.body, context);
|
|
1070
1050
|
let contents = {};
|
|
1071
|
-
contents =
|
|
1051
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1072
1052
|
const response = {
|
|
1073
1053
|
$metadata: deserializeMetadata(output),
|
|
1074
1054
|
...contents,
|
|
1075
1055
|
};
|
|
1076
|
-
return
|
|
1056
|
+
return response;
|
|
1077
1057
|
};
|
|
1078
1058
|
exports.de_UpdateSecretVersionStageCommand = de_UpdateSecretVersionStageCommand;
|
|
1079
1059
|
const de_UpdateSecretVersionStageCommandError = async (output, context) => {
|
|
@@ -1100,10 +1080,9 @@ const de_UpdateSecretVersionStageCommandError = async (output, context) => {
|
|
|
1100
1080
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1101
1081
|
default:
|
|
1102
1082
|
const parsedBody = parsedOutput.body;
|
|
1103
|
-
|
|
1083
|
+
return throwDefaultError({
|
|
1104
1084
|
output,
|
|
1105
1085
|
parsedBody,
|
|
1106
|
-
exceptionCtor: SecretsManagerServiceException_1.SecretsManagerServiceException,
|
|
1107
1086
|
errorCode,
|
|
1108
1087
|
});
|
|
1109
1088
|
}
|
|
@@ -1114,12 +1093,12 @@ const de_ValidateResourcePolicyCommand = async (output, context) => {
|
|
|
1114
1093
|
}
|
|
1115
1094
|
const data = await parseBody(output.body, context);
|
|
1116
1095
|
let contents = {};
|
|
1117
|
-
contents =
|
|
1096
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1118
1097
|
const response = {
|
|
1119
1098
|
$metadata: deserializeMetadata(output),
|
|
1120
1099
|
...contents,
|
|
1121
1100
|
};
|
|
1122
|
-
return
|
|
1101
|
+
return response;
|
|
1123
1102
|
};
|
|
1124
1103
|
exports.de_ValidateResourcePolicyCommand = de_ValidateResourcePolicyCommand;
|
|
1125
1104
|
const de_ValidateResourcePolicyCommandError = async (output, context) => {
|
|
@@ -1146,17 +1125,16 @@ const de_ValidateResourcePolicyCommandError = async (output, context) => {
|
|
|
1146
1125
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1147
1126
|
default:
|
|
1148
1127
|
const parsedBody = parsedOutput.body;
|
|
1149
|
-
|
|
1128
|
+
return throwDefaultError({
|
|
1150
1129
|
output,
|
|
1151
1130
|
parsedBody,
|
|
1152
|
-
exceptionCtor: SecretsManagerServiceException_1.SecretsManagerServiceException,
|
|
1153
1131
|
errorCode,
|
|
1154
1132
|
});
|
|
1155
1133
|
}
|
|
1156
1134
|
};
|
|
1157
1135
|
const de_DecryptionFailureRes = async (parsedOutput, context) => {
|
|
1158
1136
|
const body = parsedOutput.body;
|
|
1159
|
-
const deserialized =
|
|
1137
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1160
1138
|
const exception = new models_0_1.DecryptionFailure({
|
|
1161
1139
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1162
1140
|
...deserialized,
|
|
@@ -1165,7 +1143,7 @@ const de_DecryptionFailureRes = async (parsedOutput, context) => {
|
|
|
1165
1143
|
};
|
|
1166
1144
|
const de_EncryptionFailureRes = async (parsedOutput, context) => {
|
|
1167
1145
|
const body = parsedOutput.body;
|
|
1168
|
-
const deserialized =
|
|
1146
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1169
1147
|
const exception = new models_0_1.EncryptionFailure({
|
|
1170
1148
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1171
1149
|
...deserialized,
|
|
@@ -1174,7 +1152,7 @@ const de_EncryptionFailureRes = async (parsedOutput, context) => {
|
|
|
1174
1152
|
};
|
|
1175
1153
|
const de_InternalServiceErrorRes = async (parsedOutput, context) => {
|
|
1176
1154
|
const body = parsedOutput.body;
|
|
1177
|
-
const deserialized =
|
|
1155
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1178
1156
|
const exception = new models_0_1.InternalServiceError({
|
|
1179
1157
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1180
1158
|
...deserialized,
|
|
@@ -1183,7 +1161,7 @@ const de_InternalServiceErrorRes = async (parsedOutput, context) => {
|
|
|
1183
1161
|
};
|
|
1184
1162
|
const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
|
|
1185
1163
|
const body = parsedOutput.body;
|
|
1186
|
-
const deserialized =
|
|
1164
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1187
1165
|
const exception = new models_0_1.InvalidNextTokenException({
|
|
1188
1166
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1189
1167
|
...deserialized,
|
|
@@ -1192,7 +1170,7 @@ const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
|
|
|
1192
1170
|
};
|
|
1193
1171
|
const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
1194
1172
|
const body = parsedOutput.body;
|
|
1195
|
-
const deserialized =
|
|
1173
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1196
1174
|
const exception = new models_0_1.InvalidParameterException({
|
|
1197
1175
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1198
1176
|
...deserialized,
|
|
@@ -1201,7 +1179,7 @@ const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
|
1201
1179
|
};
|
|
1202
1180
|
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
1203
1181
|
const body = parsedOutput.body;
|
|
1204
|
-
const deserialized =
|
|
1182
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1205
1183
|
const exception = new models_0_1.InvalidRequestException({
|
|
1206
1184
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1207
1185
|
...deserialized,
|
|
@@ -1210,7 +1188,7 @@ const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
|
1210
1188
|
};
|
|
1211
1189
|
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1212
1190
|
const body = parsedOutput.body;
|
|
1213
|
-
const deserialized =
|
|
1191
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1214
1192
|
const exception = new models_0_1.LimitExceededException({
|
|
1215
1193
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1216
1194
|
...deserialized,
|
|
@@ -1219,7 +1197,7 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
1219
1197
|
};
|
|
1220
1198
|
const de_MalformedPolicyDocumentExceptionRes = async (parsedOutput, context) => {
|
|
1221
1199
|
const body = parsedOutput.body;
|
|
1222
|
-
const deserialized =
|
|
1200
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1223
1201
|
const exception = new models_0_1.MalformedPolicyDocumentException({
|
|
1224
1202
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1225
1203
|
...deserialized,
|
|
@@ -1228,7 +1206,7 @@ const de_MalformedPolicyDocumentExceptionRes = async (parsedOutput, context) =>
|
|
|
1228
1206
|
};
|
|
1229
1207
|
const de_PreconditionNotMetExceptionRes = async (parsedOutput, context) => {
|
|
1230
1208
|
const body = parsedOutput.body;
|
|
1231
|
-
const deserialized =
|
|
1209
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1232
1210
|
const exception = new models_0_1.PreconditionNotMetException({
|
|
1233
1211
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1234
1212
|
...deserialized,
|
|
@@ -1237,7 +1215,7 @@ const de_PreconditionNotMetExceptionRes = async (parsedOutput, context) => {
|
|
|
1237
1215
|
};
|
|
1238
1216
|
const de_PublicPolicyExceptionRes = async (parsedOutput, context) => {
|
|
1239
1217
|
const body = parsedOutput.body;
|
|
1240
|
-
const deserialized =
|
|
1218
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1241
1219
|
const exception = new models_0_1.PublicPolicyException({
|
|
1242
1220
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1243
1221
|
...deserialized,
|
|
@@ -1246,7 +1224,7 @@ const de_PublicPolicyExceptionRes = async (parsedOutput, context) => {
|
|
|
1246
1224
|
};
|
|
1247
1225
|
const de_ResourceExistsExceptionRes = async (parsedOutput, context) => {
|
|
1248
1226
|
const body = parsedOutput.body;
|
|
1249
|
-
const deserialized =
|
|
1227
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1250
1228
|
const exception = new models_0_1.ResourceExistsException({
|
|
1251
1229
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1252
1230
|
...deserialized,
|
|
@@ -1255,649 +1233,191 @@ const de_ResourceExistsExceptionRes = async (parsedOutput, context) => {
|
|
|
1255
1233
|
};
|
|
1256
1234
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1257
1235
|
const body = parsedOutput.body;
|
|
1258
|
-
const deserialized =
|
|
1236
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1259
1237
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
1260
1238
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1261
1239
|
...deserialized,
|
|
1262
1240
|
});
|
|
1263
1241
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1264
1242
|
};
|
|
1265
|
-
const se_AddReplicaRegionListType = (input, context) => {
|
|
1266
|
-
return input
|
|
1267
|
-
.filter((e) => e != null)
|
|
1268
|
-
.map((entry) => {
|
|
1269
|
-
return se_ReplicaRegionType(entry, context);
|
|
1270
|
-
});
|
|
1271
|
-
};
|
|
1272
|
-
const se_CancelRotateSecretRequest = (input, context) => {
|
|
1273
|
-
return {
|
|
1274
|
-
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1275
|
-
};
|
|
1276
|
-
};
|
|
1277
1243
|
const se_CreateSecretRequest = (input, context) => {
|
|
1278
|
-
return {
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
...(input.Name != null && { Name: input.Name }),
|
|
1289
|
-
...(input.SecretBinary != null && { SecretBinary: context.base64Encoder(input.SecretBinary) }),
|
|
1290
|
-
...(input.SecretString != null && { SecretString: input.SecretString }),
|
|
1291
|
-
...(input.Tags != null && { Tags: se_TagListType(input.Tags, context) }),
|
|
1292
|
-
};
|
|
1293
|
-
};
|
|
1294
|
-
const se_DeleteResourcePolicyRequest = (input, context) => {
|
|
1295
|
-
return {
|
|
1296
|
-
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1297
|
-
};
|
|
1298
|
-
};
|
|
1299
|
-
const se_DeleteSecretRequest = (input, context) => {
|
|
1300
|
-
return {
|
|
1301
|
-
...(input.ForceDeleteWithoutRecovery != null && { ForceDeleteWithoutRecovery: input.ForceDeleteWithoutRecovery }),
|
|
1302
|
-
...(input.RecoveryWindowInDays != null && { RecoveryWindowInDays: input.RecoveryWindowInDays }),
|
|
1303
|
-
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1304
|
-
};
|
|
1305
|
-
};
|
|
1306
|
-
const se_DescribeSecretRequest = (input, context) => {
|
|
1307
|
-
return {
|
|
1308
|
-
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1309
|
-
};
|
|
1310
|
-
};
|
|
1311
|
-
const se_Filter = (input, context) => {
|
|
1312
|
-
return {
|
|
1313
|
-
...(input.Key != null && { Key: input.Key }),
|
|
1314
|
-
...(input.Values != null && { Values: se_FilterValuesStringList(input.Values, context) }),
|
|
1315
|
-
};
|
|
1316
|
-
};
|
|
1317
|
-
const se_FiltersListType = (input, context) => {
|
|
1318
|
-
return input
|
|
1319
|
-
.filter((e) => e != null)
|
|
1320
|
-
.map((entry) => {
|
|
1321
|
-
return se_Filter(entry, context);
|
|
1244
|
+
return (0, smithy_client_1.take)(input, {
|
|
1245
|
+
AddReplicaRegions: smithy_client_1._json,
|
|
1246
|
+
ClientRequestToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
1247
|
+
Description: [],
|
|
1248
|
+
ForceOverwriteReplicaSecret: [],
|
|
1249
|
+
KmsKeyId: [],
|
|
1250
|
+
Name: [],
|
|
1251
|
+
SecretBinary: context.base64Encoder,
|
|
1252
|
+
SecretString: [],
|
|
1253
|
+
Tags: smithy_client_1._json,
|
|
1322
1254
|
});
|
|
1323
1255
|
};
|
|
1324
|
-
const se_FilterValuesStringList = (input, context) => {
|
|
1325
|
-
return input
|
|
1326
|
-
.filter((e) => e != null)
|
|
1327
|
-
.map((entry) => {
|
|
1328
|
-
return entry;
|
|
1329
|
-
});
|
|
1330
|
-
};
|
|
1331
|
-
const se_GetRandomPasswordRequest = (input, context) => {
|
|
1332
|
-
return {
|
|
1333
|
-
...(input.ExcludeCharacters != null && { ExcludeCharacters: input.ExcludeCharacters }),
|
|
1334
|
-
...(input.ExcludeLowercase != null && { ExcludeLowercase: input.ExcludeLowercase }),
|
|
1335
|
-
...(input.ExcludeNumbers != null && { ExcludeNumbers: input.ExcludeNumbers }),
|
|
1336
|
-
...(input.ExcludePunctuation != null && { ExcludePunctuation: input.ExcludePunctuation }),
|
|
1337
|
-
...(input.ExcludeUppercase != null && { ExcludeUppercase: input.ExcludeUppercase }),
|
|
1338
|
-
...(input.IncludeSpace != null && { IncludeSpace: input.IncludeSpace }),
|
|
1339
|
-
...(input.PasswordLength != null && { PasswordLength: input.PasswordLength }),
|
|
1340
|
-
...(input.RequireEachIncludedType != null && { RequireEachIncludedType: input.RequireEachIncludedType }),
|
|
1341
|
-
};
|
|
1342
|
-
};
|
|
1343
|
-
const se_GetResourcePolicyRequest = (input, context) => {
|
|
1344
|
-
return {
|
|
1345
|
-
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1346
|
-
};
|
|
1347
|
-
};
|
|
1348
|
-
const se_GetSecretValueRequest = (input, context) => {
|
|
1349
|
-
return {
|
|
1350
|
-
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1351
|
-
...(input.VersionId != null && { VersionId: input.VersionId }),
|
|
1352
|
-
...(input.VersionStage != null && { VersionStage: input.VersionStage }),
|
|
1353
|
-
};
|
|
1354
|
-
};
|
|
1355
|
-
const se_ListSecretsRequest = (input, context) => {
|
|
1356
|
-
return {
|
|
1357
|
-
...(input.Filters != null && { Filters: se_FiltersListType(input.Filters, context) }),
|
|
1358
|
-
...(input.IncludePlannedDeletion != null && { IncludePlannedDeletion: input.IncludePlannedDeletion }),
|
|
1359
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1360
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1361
|
-
...(input.SortOrder != null && { SortOrder: input.SortOrder }),
|
|
1362
|
-
};
|
|
1363
|
-
};
|
|
1364
|
-
const se_ListSecretVersionIdsRequest = (input, context) => {
|
|
1365
|
-
return {
|
|
1366
|
-
...(input.IncludeDeprecated != null && { IncludeDeprecated: input.IncludeDeprecated }),
|
|
1367
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1368
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1369
|
-
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1370
|
-
};
|
|
1371
|
-
};
|
|
1372
|
-
const se_PutResourcePolicyRequest = (input, context) => {
|
|
1373
|
-
return {
|
|
1374
|
-
...(input.BlockPublicPolicy != null && { BlockPublicPolicy: input.BlockPublicPolicy }),
|
|
1375
|
-
...(input.ResourcePolicy != null && { ResourcePolicy: input.ResourcePolicy }),
|
|
1376
|
-
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1377
|
-
};
|
|
1378
|
-
};
|
|
1379
1256
|
const se_PutSecretValueRequest = (input, context) => {
|
|
1380
|
-
return {
|
|
1381
|
-
ClientRequestToken:
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
};
|
|
1387
|
-
};
|
|
1388
|
-
const se_RemoveRegionsFromReplicationRequest = (input, context) => {
|
|
1389
|
-
return {
|
|
1390
|
-
...(input.RemoveReplicaRegions != null && {
|
|
1391
|
-
RemoveReplicaRegions: se_RemoveReplicaRegionListType(input.RemoveReplicaRegions, context),
|
|
1392
|
-
}),
|
|
1393
|
-
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1394
|
-
};
|
|
1395
|
-
};
|
|
1396
|
-
const se_RemoveReplicaRegionListType = (input, context) => {
|
|
1397
|
-
return input
|
|
1398
|
-
.filter((e) => e != null)
|
|
1399
|
-
.map((entry) => {
|
|
1400
|
-
return entry;
|
|
1257
|
+
return (0, smithy_client_1.take)(input, {
|
|
1258
|
+
ClientRequestToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
1259
|
+
SecretBinary: context.base64Encoder,
|
|
1260
|
+
SecretId: [],
|
|
1261
|
+
SecretString: [],
|
|
1262
|
+
VersionStages: smithy_client_1._json,
|
|
1401
1263
|
});
|
|
1402
1264
|
};
|
|
1403
|
-
const se_ReplicaRegionType = (input, context) => {
|
|
1404
|
-
return {
|
|
1405
|
-
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
1406
|
-
...(input.Region != null && { Region: input.Region }),
|
|
1407
|
-
};
|
|
1408
|
-
};
|
|
1409
|
-
const se_ReplicateSecretToRegionsRequest = (input, context) => {
|
|
1410
|
-
return {
|
|
1411
|
-
...(input.AddReplicaRegions != null && {
|
|
1412
|
-
AddReplicaRegions: se_AddReplicaRegionListType(input.AddReplicaRegions, context),
|
|
1413
|
-
}),
|
|
1414
|
-
...(input.ForceOverwriteReplicaSecret != null && {
|
|
1415
|
-
ForceOverwriteReplicaSecret: input.ForceOverwriteReplicaSecret,
|
|
1416
|
-
}),
|
|
1417
|
-
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1418
|
-
};
|
|
1419
|
-
};
|
|
1420
|
-
const se_RestoreSecretRequest = (input, context) => {
|
|
1421
|
-
return {
|
|
1422
|
-
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1423
|
-
};
|
|
1424
|
-
};
|
|
1425
1265
|
const se_RotateSecretRequest = (input, context) => {
|
|
1426
|
-
return {
|
|
1427
|
-
ClientRequestToken:
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
};
|
|
1433
|
-
};
|
|
1434
|
-
const se_RotationRulesType = (input, context) => {
|
|
1435
|
-
return {
|
|
1436
|
-
...(input.AutomaticallyAfterDays != null && { AutomaticallyAfterDays: input.AutomaticallyAfterDays }),
|
|
1437
|
-
...(input.Duration != null && { Duration: input.Duration }),
|
|
1438
|
-
...(input.ScheduleExpression != null && { ScheduleExpression: input.ScheduleExpression }),
|
|
1439
|
-
};
|
|
1440
|
-
};
|
|
1441
|
-
const se_SecretVersionStagesType = (input, context) => {
|
|
1442
|
-
return input
|
|
1443
|
-
.filter((e) => e != null)
|
|
1444
|
-
.map((entry) => {
|
|
1445
|
-
return entry;
|
|
1266
|
+
return (0, smithy_client_1.take)(input, {
|
|
1267
|
+
ClientRequestToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
1268
|
+
RotateImmediately: [],
|
|
1269
|
+
RotationLambdaARN: [],
|
|
1270
|
+
RotationRules: smithy_client_1._json,
|
|
1271
|
+
SecretId: [],
|
|
1446
1272
|
});
|
|
1447
1273
|
};
|
|
1448
|
-
const se_StopReplicationToReplicaRequest = (input, context) => {
|
|
1449
|
-
return {
|
|
1450
|
-
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1451
|
-
};
|
|
1452
|
-
};
|
|
1453
|
-
const se_Tag = (input, context) => {
|
|
1454
|
-
return {
|
|
1455
|
-
...(input.Key != null && { Key: input.Key }),
|
|
1456
|
-
...(input.Value != null && { Value: input.Value }),
|
|
1457
|
-
};
|
|
1458
|
-
};
|
|
1459
|
-
const se_TagKeyListType = (input, context) => {
|
|
1460
|
-
return input
|
|
1461
|
-
.filter((e) => e != null)
|
|
1462
|
-
.map((entry) => {
|
|
1463
|
-
return entry;
|
|
1464
|
-
});
|
|
1465
|
-
};
|
|
1466
|
-
const se_TagListType = (input, context) => {
|
|
1467
|
-
return input
|
|
1468
|
-
.filter((e) => e != null)
|
|
1469
|
-
.map((entry) => {
|
|
1470
|
-
return se_Tag(entry, context);
|
|
1471
|
-
});
|
|
1472
|
-
};
|
|
1473
|
-
const se_TagResourceRequest = (input, context) => {
|
|
1474
|
-
return {
|
|
1475
|
-
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1476
|
-
...(input.Tags != null && { Tags: se_TagListType(input.Tags, context) }),
|
|
1477
|
-
};
|
|
1478
|
-
};
|
|
1479
|
-
const se_UntagResourceRequest = (input, context) => {
|
|
1480
|
-
return {
|
|
1481
|
-
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1482
|
-
...(input.TagKeys != null && { TagKeys: se_TagKeyListType(input.TagKeys, context) }),
|
|
1483
|
-
};
|
|
1484
|
-
};
|
|
1485
1274
|
const se_UpdateSecretRequest = (input, context) => {
|
|
1486
|
-
return {
|
|
1487
|
-
ClientRequestToken:
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
};
|
|
1494
|
-
};
|
|
1495
|
-
const se_UpdateSecretVersionStageRequest = (input, context) => {
|
|
1496
|
-
return {
|
|
1497
|
-
...(input.MoveToVersionId != null && { MoveToVersionId: input.MoveToVersionId }),
|
|
1498
|
-
...(input.RemoveFromVersionId != null && { RemoveFromVersionId: input.RemoveFromVersionId }),
|
|
1499
|
-
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1500
|
-
...(input.VersionStage != null && { VersionStage: input.VersionStage }),
|
|
1501
|
-
};
|
|
1502
|
-
};
|
|
1503
|
-
const se_ValidateResourcePolicyRequest = (input, context) => {
|
|
1504
|
-
return {
|
|
1505
|
-
...(input.ResourcePolicy != null && { ResourcePolicy: input.ResourcePolicy }),
|
|
1506
|
-
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1507
|
-
};
|
|
1508
|
-
};
|
|
1509
|
-
const de_CancelRotateSecretResponse = (output, context) => {
|
|
1510
|
-
return {
|
|
1511
|
-
ARN: (0, smithy_client_1.expectString)(output.ARN),
|
|
1512
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1513
|
-
VersionId: (0, smithy_client_1.expectString)(output.VersionId),
|
|
1514
|
-
};
|
|
1275
|
+
return (0, smithy_client_1.take)(input, {
|
|
1276
|
+
ClientRequestToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
1277
|
+
Description: [],
|
|
1278
|
+
KmsKeyId: [],
|
|
1279
|
+
SecretBinary: context.base64Encoder,
|
|
1280
|
+
SecretId: [],
|
|
1281
|
+
SecretString: [],
|
|
1282
|
+
});
|
|
1515
1283
|
};
|
|
1516
1284
|
const de_CreateSecretResponse = (output, context) => {
|
|
1517
|
-
return {
|
|
1518
|
-
ARN:
|
|
1519
|
-
Name:
|
|
1520
|
-
ReplicationStatus:
|
|
1521
|
-
VersionId:
|
|
1522
|
-
};
|
|
1523
|
-
};
|
|
1524
|
-
const de_DecryptionFailure = (output, context) => {
|
|
1525
|
-
return {
|
|
1526
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1527
|
-
};
|
|
1528
|
-
};
|
|
1529
|
-
const de_DeleteResourcePolicyResponse = (output, context) => {
|
|
1530
|
-
return {
|
|
1531
|
-
ARN: (0, smithy_client_1.expectString)(output.ARN),
|
|
1532
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1533
|
-
};
|
|
1285
|
+
return (0, smithy_client_1.take)(output, {
|
|
1286
|
+
ARN: smithy_client_1.expectString,
|
|
1287
|
+
Name: smithy_client_1.expectString,
|
|
1288
|
+
ReplicationStatus: (_) => de_ReplicationStatusListType(_, context),
|
|
1289
|
+
VersionId: smithy_client_1.expectString,
|
|
1290
|
+
});
|
|
1534
1291
|
};
|
|
1535
1292
|
const de_DeleteSecretResponse = (output, context) => {
|
|
1536
|
-
return {
|
|
1537
|
-
ARN:
|
|
1538
|
-
DeletionDate:
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1542
|
-
};
|
|
1293
|
+
return (0, smithy_client_1.take)(output, {
|
|
1294
|
+
ARN: smithy_client_1.expectString,
|
|
1295
|
+
DeletionDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1296
|
+
Name: smithy_client_1.expectString,
|
|
1297
|
+
});
|
|
1543
1298
|
};
|
|
1544
1299
|
const de_DescribeSecretResponse = (output, context) => {
|
|
1545
|
-
return {
|
|
1546
|
-
ARN:
|
|
1547
|
-
CreatedDate:
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
NextRotationDate: output.NextRotationDate != null
|
|
1566
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.NextRotationDate)))
|
|
1567
|
-
: undefined,
|
|
1568
|
-
OwningService: (0, smithy_client_1.expectString)(output.OwningService),
|
|
1569
|
-
PrimaryRegion: (0, smithy_client_1.expectString)(output.PrimaryRegion),
|
|
1570
|
-
ReplicationStatus: output.ReplicationStatus != null ? de_ReplicationStatusListType(output.ReplicationStatus, context) : undefined,
|
|
1571
|
-
RotationEnabled: (0, smithy_client_1.expectBoolean)(output.RotationEnabled),
|
|
1572
|
-
RotationLambdaARN: (0, smithy_client_1.expectString)(output.RotationLambdaARN),
|
|
1573
|
-
RotationRules: output.RotationRules != null ? de_RotationRulesType(output.RotationRules, context) : undefined,
|
|
1574
|
-
Tags: output.Tags != null ? de_TagListType(output.Tags, context) : undefined,
|
|
1575
|
-
VersionIdsToStages: output.VersionIdsToStages != null
|
|
1576
|
-
? de_SecretVersionsToStagesMapType(output.VersionIdsToStages, context)
|
|
1577
|
-
: undefined,
|
|
1578
|
-
};
|
|
1579
|
-
};
|
|
1580
|
-
const de_EncryptionFailure = (output, context) => {
|
|
1581
|
-
return {
|
|
1582
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1583
|
-
};
|
|
1584
|
-
};
|
|
1585
|
-
const de_GetRandomPasswordResponse = (output, context) => {
|
|
1586
|
-
return {
|
|
1587
|
-
RandomPassword: (0, smithy_client_1.expectString)(output.RandomPassword),
|
|
1588
|
-
};
|
|
1589
|
-
};
|
|
1590
|
-
const de_GetResourcePolicyResponse = (output, context) => {
|
|
1591
|
-
return {
|
|
1592
|
-
ARN: (0, smithy_client_1.expectString)(output.ARN),
|
|
1593
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1594
|
-
ResourcePolicy: (0, smithy_client_1.expectString)(output.ResourcePolicy),
|
|
1595
|
-
};
|
|
1300
|
+
return (0, smithy_client_1.take)(output, {
|
|
1301
|
+
ARN: smithy_client_1.expectString,
|
|
1302
|
+
CreatedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1303
|
+
DeletedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1304
|
+
Description: smithy_client_1.expectString,
|
|
1305
|
+
KmsKeyId: smithy_client_1.expectString,
|
|
1306
|
+
LastAccessedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1307
|
+
LastChangedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1308
|
+
LastRotatedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1309
|
+
Name: smithy_client_1.expectString,
|
|
1310
|
+
NextRotationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1311
|
+
OwningService: smithy_client_1.expectString,
|
|
1312
|
+
PrimaryRegion: smithy_client_1.expectString,
|
|
1313
|
+
ReplicationStatus: (_) => de_ReplicationStatusListType(_, context),
|
|
1314
|
+
RotationEnabled: smithy_client_1.expectBoolean,
|
|
1315
|
+
RotationLambdaARN: smithy_client_1.expectString,
|
|
1316
|
+
RotationRules: smithy_client_1._json,
|
|
1317
|
+
Tags: smithy_client_1._json,
|
|
1318
|
+
VersionIdsToStages: smithy_client_1._json,
|
|
1319
|
+
});
|
|
1596
1320
|
};
|
|
1597
1321
|
const de_GetSecretValueResponse = (output, context) => {
|
|
1598
|
-
return {
|
|
1599
|
-
ARN:
|
|
1600
|
-
CreatedDate:
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
VersionId: (0, smithy_client_1.expectString)(output.VersionId),
|
|
1607
|
-
VersionStages: output.VersionStages != null ? de_SecretVersionStagesType(output.VersionStages, context) : undefined,
|
|
1608
|
-
};
|
|
1609
|
-
};
|
|
1610
|
-
const de_InternalServiceError = (output, context) => {
|
|
1611
|
-
return {
|
|
1612
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1613
|
-
};
|
|
1614
|
-
};
|
|
1615
|
-
const de_InvalidNextTokenException = (output, context) => {
|
|
1616
|
-
return {
|
|
1617
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1618
|
-
};
|
|
1619
|
-
};
|
|
1620
|
-
const de_InvalidParameterException = (output, context) => {
|
|
1621
|
-
return {
|
|
1622
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1623
|
-
};
|
|
1624
|
-
};
|
|
1625
|
-
const de_InvalidRequestException = (output, context) => {
|
|
1626
|
-
return {
|
|
1627
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1628
|
-
};
|
|
1629
|
-
};
|
|
1630
|
-
const de_KmsKeyIdListType = (output, context) => {
|
|
1631
|
-
const retVal = (output || [])
|
|
1632
|
-
.filter((e) => e != null)
|
|
1633
|
-
.map((entry) => {
|
|
1634
|
-
if (entry === null) {
|
|
1635
|
-
return null;
|
|
1636
|
-
}
|
|
1637
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1322
|
+
return (0, smithy_client_1.take)(output, {
|
|
1323
|
+
ARN: smithy_client_1.expectString,
|
|
1324
|
+
CreatedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1325
|
+
Name: smithy_client_1.expectString,
|
|
1326
|
+
SecretBinary: context.base64Decoder,
|
|
1327
|
+
SecretString: smithy_client_1.expectString,
|
|
1328
|
+
VersionId: smithy_client_1.expectString,
|
|
1329
|
+
VersionStages: smithy_client_1._json,
|
|
1638
1330
|
});
|
|
1639
|
-
return retVal;
|
|
1640
|
-
};
|
|
1641
|
-
const de_LimitExceededException = (output, context) => {
|
|
1642
|
-
return {
|
|
1643
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1644
|
-
};
|
|
1645
1331
|
};
|
|
1646
1332
|
const de_ListSecretsResponse = (output, context) => {
|
|
1647
|
-
return {
|
|
1648
|
-
NextToken:
|
|
1649
|
-
SecretList:
|
|
1650
|
-
};
|
|
1333
|
+
return (0, smithy_client_1.take)(output, {
|
|
1334
|
+
NextToken: smithy_client_1.expectString,
|
|
1335
|
+
SecretList: (_) => de_SecretListType(_, context),
|
|
1336
|
+
});
|
|
1651
1337
|
};
|
|
1652
1338
|
const de_ListSecretVersionIdsResponse = (output, context) => {
|
|
1653
|
-
return {
|
|
1654
|
-
ARN:
|
|
1655
|
-
Name:
|
|
1656
|
-
NextToken:
|
|
1657
|
-
Versions:
|
|
1658
|
-
};
|
|
1659
|
-
};
|
|
1660
|
-
const de_MalformedPolicyDocumentException = (output, context) => {
|
|
1661
|
-
return {
|
|
1662
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1663
|
-
};
|
|
1664
|
-
};
|
|
1665
|
-
const de_PreconditionNotMetException = (output, context) => {
|
|
1666
|
-
return {
|
|
1667
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1668
|
-
};
|
|
1669
|
-
};
|
|
1670
|
-
const de_PublicPolicyException = (output, context) => {
|
|
1671
|
-
return {
|
|
1672
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1673
|
-
};
|
|
1674
|
-
};
|
|
1675
|
-
const de_PutResourcePolicyResponse = (output, context) => {
|
|
1676
|
-
return {
|
|
1677
|
-
ARN: (0, smithy_client_1.expectString)(output.ARN),
|
|
1678
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1679
|
-
};
|
|
1680
|
-
};
|
|
1681
|
-
const de_PutSecretValueResponse = (output, context) => {
|
|
1682
|
-
return {
|
|
1683
|
-
ARN: (0, smithy_client_1.expectString)(output.ARN),
|
|
1684
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1685
|
-
VersionId: (0, smithy_client_1.expectString)(output.VersionId),
|
|
1686
|
-
VersionStages: output.VersionStages != null ? de_SecretVersionStagesType(output.VersionStages, context) : undefined,
|
|
1687
|
-
};
|
|
1339
|
+
return (0, smithy_client_1.take)(output, {
|
|
1340
|
+
ARN: smithy_client_1.expectString,
|
|
1341
|
+
Name: smithy_client_1.expectString,
|
|
1342
|
+
NextToken: smithy_client_1.expectString,
|
|
1343
|
+
Versions: (_) => de_SecretVersionsListType(_, context),
|
|
1344
|
+
});
|
|
1688
1345
|
};
|
|
1689
1346
|
const de_RemoveRegionsFromReplicationResponse = (output, context) => {
|
|
1690
|
-
return {
|
|
1691
|
-
ARN:
|
|
1692
|
-
ReplicationStatus:
|
|
1693
|
-
};
|
|
1347
|
+
return (0, smithy_client_1.take)(output, {
|
|
1348
|
+
ARN: smithy_client_1.expectString,
|
|
1349
|
+
ReplicationStatus: (_) => de_ReplicationStatusListType(_, context),
|
|
1350
|
+
});
|
|
1694
1351
|
};
|
|
1695
1352
|
const de_ReplicateSecretToRegionsResponse = (output, context) => {
|
|
1696
|
-
return {
|
|
1697
|
-
ARN:
|
|
1698
|
-
ReplicationStatus:
|
|
1699
|
-
};
|
|
1353
|
+
return (0, smithy_client_1.take)(output, {
|
|
1354
|
+
ARN: smithy_client_1.expectString,
|
|
1355
|
+
ReplicationStatus: (_) => de_ReplicationStatusListType(_, context),
|
|
1356
|
+
});
|
|
1700
1357
|
};
|
|
1701
1358
|
const de_ReplicationStatusListType = (output, context) => {
|
|
1702
1359
|
const retVal = (output || [])
|
|
1703
1360
|
.filter((e) => e != null)
|
|
1704
1361
|
.map((entry) => {
|
|
1705
|
-
if (entry === null) {
|
|
1706
|
-
return null;
|
|
1707
|
-
}
|
|
1708
1362
|
return de_ReplicationStatusType(entry, context);
|
|
1709
1363
|
});
|
|
1710
1364
|
return retVal;
|
|
1711
1365
|
};
|
|
1712
1366
|
const de_ReplicationStatusType = (output, context) => {
|
|
1713
|
-
return {
|
|
1714
|
-
KmsKeyId:
|
|
1715
|
-
LastAccessedDate:
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
1721
|
-
};
|
|
1722
|
-
};
|
|
1723
|
-
const de_ResourceExistsException = (output, context) => {
|
|
1724
|
-
return {
|
|
1725
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1726
|
-
};
|
|
1727
|
-
};
|
|
1728
|
-
const de_ResourceNotFoundException = (output, context) => {
|
|
1729
|
-
return {
|
|
1730
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1731
|
-
};
|
|
1732
|
-
};
|
|
1733
|
-
const de_RestoreSecretResponse = (output, context) => {
|
|
1734
|
-
return {
|
|
1735
|
-
ARN: (0, smithy_client_1.expectString)(output.ARN),
|
|
1736
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1737
|
-
};
|
|
1738
|
-
};
|
|
1739
|
-
const de_RotateSecretResponse = (output, context) => {
|
|
1740
|
-
return {
|
|
1741
|
-
ARN: (0, smithy_client_1.expectString)(output.ARN),
|
|
1742
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1743
|
-
VersionId: (0, smithy_client_1.expectString)(output.VersionId),
|
|
1744
|
-
};
|
|
1745
|
-
};
|
|
1746
|
-
const de_RotationRulesType = (output, context) => {
|
|
1747
|
-
return {
|
|
1748
|
-
AutomaticallyAfterDays: (0, smithy_client_1.expectLong)(output.AutomaticallyAfterDays),
|
|
1749
|
-
Duration: (0, smithy_client_1.expectString)(output.Duration),
|
|
1750
|
-
ScheduleExpression: (0, smithy_client_1.expectString)(output.ScheduleExpression),
|
|
1751
|
-
};
|
|
1367
|
+
return (0, smithy_client_1.take)(output, {
|
|
1368
|
+
KmsKeyId: smithy_client_1.expectString,
|
|
1369
|
+
LastAccessedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1370
|
+
Region: smithy_client_1.expectString,
|
|
1371
|
+
Status: smithy_client_1.expectString,
|
|
1372
|
+
StatusMessage: smithy_client_1.expectString,
|
|
1373
|
+
});
|
|
1752
1374
|
};
|
|
1753
1375
|
const de_SecretListEntry = (output, context) => {
|
|
1754
|
-
return {
|
|
1755
|
-
ARN:
|
|
1756
|
-
CreatedDate:
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1774
|
-
NextRotationDate: output.NextRotationDate != null
|
|
1775
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.NextRotationDate)))
|
|
1776
|
-
: undefined,
|
|
1777
|
-
OwningService: (0, smithy_client_1.expectString)(output.OwningService),
|
|
1778
|
-
PrimaryRegion: (0, smithy_client_1.expectString)(output.PrimaryRegion),
|
|
1779
|
-
RotationEnabled: (0, smithy_client_1.expectBoolean)(output.RotationEnabled),
|
|
1780
|
-
RotationLambdaARN: (0, smithy_client_1.expectString)(output.RotationLambdaARN),
|
|
1781
|
-
RotationRules: output.RotationRules != null ? de_RotationRulesType(output.RotationRules, context) : undefined,
|
|
1782
|
-
SecretVersionsToStages: output.SecretVersionsToStages != null
|
|
1783
|
-
? de_SecretVersionsToStagesMapType(output.SecretVersionsToStages, context)
|
|
1784
|
-
: undefined,
|
|
1785
|
-
Tags: output.Tags != null ? de_TagListType(output.Tags, context) : undefined,
|
|
1786
|
-
};
|
|
1376
|
+
return (0, smithy_client_1.take)(output, {
|
|
1377
|
+
ARN: smithy_client_1.expectString,
|
|
1378
|
+
CreatedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1379
|
+
DeletedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1380
|
+
Description: smithy_client_1.expectString,
|
|
1381
|
+
KmsKeyId: smithy_client_1.expectString,
|
|
1382
|
+
LastAccessedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1383
|
+
LastChangedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1384
|
+
LastRotatedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1385
|
+
Name: smithy_client_1.expectString,
|
|
1386
|
+
NextRotationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1387
|
+
OwningService: smithy_client_1.expectString,
|
|
1388
|
+
PrimaryRegion: smithy_client_1.expectString,
|
|
1389
|
+
RotationEnabled: smithy_client_1.expectBoolean,
|
|
1390
|
+
RotationLambdaARN: smithy_client_1.expectString,
|
|
1391
|
+
RotationRules: smithy_client_1._json,
|
|
1392
|
+
SecretVersionsToStages: smithy_client_1._json,
|
|
1393
|
+
Tags: smithy_client_1._json,
|
|
1394
|
+
});
|
|
1787
1395
|
};
|
|
1788
1396
|
const de_SecretListType = (output, context) => {
|
|
1789
1397
|
const retVal = (output || [])
|
|
1790
1398
|
.filter((e) => e != null)
|
|
1791
1399
|
.map((entry) => {
|
|
1792
|
-
if (entry === null) {
|
|
1793
|
-
return null;
|
|
1794
|
-
}
|
|
1795
1400
|
return de_SecretListEntry(entry, context);
|
|
1796
1401
|
});
|
|
1797
1402
|
return retVal;
|
|
1798
1403
|
};
|
|
1799
1404
|
const de_SecretVersionsListEntry = (output, context) => {
|
|
1800
|
-
return {
|
|
1801
|
-
CreatedDate:
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
: undefined,
|
|
1808
|
-
VersionId: (0, smithy_client_1.expectString)(output.VersionId),
|
|
1809
|
-
VersionStages: output.VersionStages != null ? de_SecretVersionStagesType(output.VersionStages, context) : undefined,
|
|
1810
|
-
};
|
|
1405
|
+
return (0, smithy_client_1.take)(output, {
|
|
1406
|
+
CreatedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1407
|
+
KmsKeyIds: smithy_client_1._json,
|
|
1408
|
+
LastAccessedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1409
|
+
VersionId: smithy_client_1.expectString,
|
|
1410
|
+
VersionStages: smithy_client_1._json,
|
|
1411
|
+
});
|
|
1811
1412
|
};
|
|
1812
1413
|
const de_SecretVersionsListType = (output, context) => {
|
|
1813
1414
|
const retVal = (output || [])
|
|
1814
1415
|
.filter((e) => e != null)
|
|
1815
1416
|
.map((entry) => {
|
|
1816
|
-
if (entry === null) {
|
|
1817
|
-
return null;
|
|
1818
|
-
}
|
|
1819
1417
|
return de_SecretVersionsListEntry(entry, context);
|
|
1820
1418
|
});
|
|
1821
1419
|
return retVal;
|
|
1822
1420
|
};
|
|
1823
|
-
const de_SecretVersionStagesType = (output, context) => {
|
|
1824
|
-
const retVal = (output || [])
|
|
1825
|
-
.filter((e) => e != null)
|
|
1826
|
-
.map((entry) => {
|
|
1827
|
-
if (entry === null) {
|
|
1828
|
-
return null;
|
|
1829
|
-
}
|
|
1830
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1831
|
-
});
|
|
1832
|
-
return retVal;
|
|
1833
|
-
};
|
|
1834
|
-
const de_SecretVersionsToStagesMapType = (output, context) => {
|
|
1835
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1836
|
-
if (value === null) {
|
|
1837
|
-
return acc;
|
|
1838
|
-
}
|
|
1839
|
-
acc[key] = de_SecretVersionStagesType(value, context);
|
|
1840
|
-
return acc;
|
|
1841
|
-
}, {});
|
|
1842
|
-
};
|
|
1843
|
-
const de_StopReplicationToReplicaResponse = (output, context) => {
|
|
1844
|
-
return {
|
|
1845
|
-
ARN: (0, smithy_client_1.expectString)(output.ARN),
|
|
1846
|
-
};
|
|
1847
|
-
};
|
|
1848
|
-
const de_Tag = (output, context) => {
|
|
1849
|
-
return {
|
|
1850
|
-
Key: (0, smithy_client_1.expectString)(output.Key),
|
|
1851
|
-
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
1852
|
-
};
|
|
1853
|
-
};
|
|
1854
|
-
const de_TagListType = (output, context) => {
|
|
1855
|
-
const retVal = (output || [])
|
|
1856
|
-
.filter((e) => e != null)
|
|
1857
|
-
.map((entry) => {
|
|
1858
|
-
if (entry === null) {
|
|
1859
|
-
return null;
|
|
1860
|
-
}
|
|
1861
|
-
return de_Tag(entry, context);
|
|
1862
|
-
});
|
|
1863
|
-
return retVal;
|
|
1864
|
-
};
|
|
1865
|
-
const de_UpdateSecretResponse = (output, context) => {
|
|
1866
|
-
return {
|
|
1867
|
-
ARN: (0, smithy_client_1.expectString)(output.ARN),
|
|
1868
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1869
|
-
VersionId: (0, smithy_client_1.expectString)(output.VersionId),
|
|
1870
|
-
};
|
|
1871
|
-
};
|
|
1872
|
-
const de_UpdateSecretVersionStageResponse = (output, context) => {
|
|
1873
|
-
return {
|
|
1874
|
-
ARN: (0, smithy_client_1.expectString)(output.ARN),
|
|
1875
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1876
|
-
};
|
|
1877
|
-
};
|
|
1878
|
-
const de_ValidateResourcePolicyResponse = (output, context) => {
|
|
1879
|
-
return {
|
|
1880
|
-
PolicyValidationPassed: (0, smithy_client_1.expectBoolean)(output.PolicyValidationPassed),
|
|
1881
|
-
ValidationErrors: output.ValidationErrors != null ? de_ValidationErrorsType(output.ValidationErrors, context) : undefined,
|
|
1882
|
-
};
|
|
1883
|
-
};
|
|
1884
|
-
const de_ValidationErrorsEntry = (output, context) => {
|
|
1885
|
-
return {
|
|
1886
|
-
CheckName: (0, smithy_client_1.expectString)(output.CheckName),
|
|
1887
|
-
ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
|
|
1888
|
-
};
|
|
1889
|
-
};
|
|
1890
|
-
const de_ValidationErrorsType = (output, context) => {
|
|
1891
|
-
const retVal = (output || [])
|
|
1892
|
-
.filter((e) => e != null)
|
|
1893
|
-
.map((entry) => {
|
|
1894
|
-
if (entry === null) {
|
|
1895
|
-
return null;
|
|
1896
|
-
}
|
|
1897
|
-
return de_ValidationErrorsEntry(entry, context);
|
|
1898
|
-
});
|
|
1899
|
-
return retVal;
|
|
1900
|
-
};
|
|
1901
1421
|
const deserializeMetadata = (output) => ({
|
|
1902
1422
|
httpStatusCode: output.statusCode,
|
|
1903
1423
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
@@ -1911,6 +1431,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
1911
1431
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
1912
1432
|
};
|
|
1913
1433
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1434
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(SecretsManagerServiceException_1.SecretsManagerServiceException);
|
|
1914
1435
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
1915
1436
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1916
1437
|
const contents = {
|