@aws-sdk/client-secrets-manager 3.310.0 → 3.315.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/protocols/Aws_json1_1.js +235 -774
- package/dist-es/protocols/Aws_json1_1.js +236 -775
- package/package.json +6 -6
|
@@ -7,222 +7,156 @@ const uuid_1 = require("uuid");
|
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const SecretsManagerServiceException_1 = require("../models/SecretsManagerServiceException");
|
|
9
9
|
const se_CancelRotateSecretCommand = async (input, context) => {
|
|
10
|
-
const headers =
|
|
11
|
-
"content-type": "application/x-amz-json-1.1",
|
|
12
|
-
"x-amz-target": "secretsmanager.CancelRotateSecret",
|
|
13
|
-
};
|
|
10
|
+
const headers = sharedHeaders("CancelRotateSecret");
|
|
14
11
|
let body;
|
|
15
|
-
body = JSON.stringify(
|
|
12
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
16
13
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
17
14
|
};
|
|
18
15
|
exports.se_CancelRotateSecretCommand = se_CancelRotateSecretCommand;
|
|
19
16
|
const se_CreateSecretCommand = async (input, context) => {
|
|
20
|
-
const headers =
|
|
21
|
-
"content-type": "application/x-amz-json-1.1",
|
|
22
|
-
"x-amz-target": "secretsmanager.CreateSecret",
|
|
23
|
-
};
|
|
17
|
+
const headers = sharedHeaders("CreateSecret");
|
|
24
18
|
let body;
|
|
25
19
|
body = JSON.stringify(se_CreateSecretRequest(input, context));
|
|
26
20
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
27
21
|
};
|
|
28
22
|
exports.se_CreateSecretCommand = se_CreateSecretCommand;
|
|
29
23
|
const se_DeleteResourcePolicyCommand = async (input, context) => {
|
|
30
|
-
const headers =
|
|
31
|
-
"content-type": "application/x-amz-json-1.1",
|
|
32
|
-
"x-amz-target": "secretsmanager.DeleteResourcePolicy",
|
|
33
|
-
};
|
|
24
|
+
const headers = sharedHeaders("DeleteResourcePolicy");
|
|
34
25
|
let body;
|
|
35
|
-
body = JSON.stringify(
|
|
26
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
36
27
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
37
28
|
};
|
|
38
29
|
exports.se_DeleteResourcePolicyCommand = se_DeleteResourcePolicyCommand;
|
|
39
30
|
const se_DeleteSecretCommand = async (input, context) => {
|
|
40
|
-
const headers =
|
|
41
|
-
"content-type": "application/x-amz-json-1.1",
|
|
42
|
-
"x-amz-target": "secretsmanager.DeleteSecret",
|
|
43
|
-
};
|
|
31
|
+
const headers = sharedHeaders("DeleteSecret");
|
|
44
32
|
let body;
|
|
45
|
-
body = JSON.stringify(
|
|
33
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
46
34
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
47
35
|
};
|
|
48
36
|
exports.se_DeleteSecretCommand = se_DeleteSecretCommand;
|
|
49
37
|
const se_DescribeSecretCommand = async (input, context) => {
|
|
50
|
-
const headers =
|
|
51
|
-
"content-type": "application/x-amz-json-1.1",
|
|
52
|
-
"x-amz-target": "secretsmanager.DescribeSecret",
|
|
53
|
-
};
|
|
38
|
+
const headers = sharedHeaders("DescribeSecret");
|
|
54
39
|
let body;
|
|
55
|
-
body = JSON.stringify(
|
|
40
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
56
41
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
57
42
|
};
|
|
58
43
|
exports.se_DescribeSecretCommand = se_DescribeSecretCommand;
|
|
59
44
|
const se_GetRandomPasswordCommand = async (input, context) => {
|
|
60
|
-
const headers =
|
|
61
|
-
"content-type": "application/x-amz-json-1.1",
|
|
62
|
-
"x-amz-target": "secretsmanager.GetRandomPassword",
|
|
63
|
-
};
|
|
45
|
+
const headers = sharedHeaders("GetRandomPassword");
|
|
64
46
|
let body;
|
|
65
|
-
body = JSON.stringify(
|
|
47
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
66
48
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
49
|
};
|
|
68
50
|
exports.se_GetRandomPasswordCommand = se_GetRandomPasswordCommand;
|
|
69
51
|
const se_GetResourcePolicyCommand = async (input, context) => {
|
|
70
|
-
const headers =
|
|
71
|
-
"content-type": "application/x-amz-json-1.1",
|
|
72
|
-
"x-amz-target": "secretsmanager.GetResourcePolicy",
|
|
73
|
-
};
|
|
52
|
+
const headers = sharedHeaders("GetResourcePolicy");
|
|
74
53
|
let body;
|
|
75
|
-
body = JSON.stringify(
|
|
54
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
76
55
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
56
|
};
|
|
78
57
|
exports.se_GetResourcePolicyCommand = se_GetResourcePolicyCommand;
|
|
79
58
|
const se_GetSecretValueCommand = async (input, context) => {
|
|
80
|
-
const headers =
|
|
81
|
-
"content-type": "application/x-amz-json-1.1",
|
|
82
|
-
"x-amz-target": "secretsmanager.GetSecretValue",
|
|
83
|
-
};
|
|
59
|
+
const headers = sharedHeaders("GetSecretValue");
|
|
84
60
|
let body;
|
|
85
|
-
body = JSON.stringify(
|
|
61
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
86
62
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
87
63
|
};
|
|
88
64
|
exports.se_GetSecretValueCommand = se_GetSecretValueCommand;
|
|
89
65
|
const se_ListSecretsCommand = async (input, context) => {
|
|
90
|
-
const headers =
|
|
91
|
-
"content-type": "application/x-amz-json-1.1",
|
|
92
|
-
"x-amz-target": "secretsmanager.ListSecrets",
|
|
93
|
-
};
|
|
66
|
+
const headers = sharedHeaders("ListSecrets");
|
|
94
67
|
let body;
|
|
95
|
-
body = JSON.stringify(
|
|
68
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
96
69
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
97
70
|
};
|
|
98
71
|
exports.se_ListSecretsCommand = se_ListSecretsCommand;
|
|
99
72
|
const se_ListSecretVersionIdsCommand = async (input, context) => {
|
|
100
|
-
const headers =
|
|
101
|
-
"content-type": "application/x-amz-json-1.1",
|
|
102
|
-
"x-amz-target": "secretsmanager.ListSecretVersionIds",
|
|
103
|
-
};
|
|
73
|
+
const headers = sharedHeaders("ListSecretVersionIds");
|
|
104
74
|
let body;
|
|
105
|
-
body = JSON.stringify(
|
|
75
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
106
76
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
107
77
|
};
|
|
108
78
|
exports.se_ListSecretVersionIdsCommand = se_ListSecretVersionIdsCommand;
|
|
109
79
|
const se_PutResourcePolicyCommand = async (input, context) => {
|
|
110
|
-
const headers =
|
|
111
|
-
"content-type": "application/x-amz-json-1.1",
|
|
112
|
-
"x-amz-target": "secretsmanager.PutResourcePolicy",
|
|
113
|
-
};
|
|
80
|
+
const headers = sharedHeaders("PutResourcePolicy");
|
|
114
81
|
let body;
|
|
115
|
-
body = JSON.stringify(
|
|
82
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
116
83
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
117
84
|
};
|
|
118
85
|
exports.se_PutResourcePolicyCommand = se_PutResourcePolicyCommand;
|
|
119
86
|
const se_PutSecretValueCommand = async (input, context) => {
|
|
120
|
-
const headers =
|
|
121
|
-
"content-type": "application/x-amz-json-1.1",
|
|
122
|
-
"x-amz-target": "secretsmanager.PutSecretValue",
|
|
123
|
-
};
|
|
87
|
+
const headers = sharedHeaders("PutSecretValue");
|
|
124
88
|
let body;
|
|
125
89
|
body = JSON.stringify(se_PutSecretValueRequest(input, context));
|
|
126
90
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
127
91
|
};
|
|
128
92
|
exports.se_PutSecretValueCommand = se_PutSecretValueCommand;
|
|
129
93
|
const se_RemoveRegionsFromReplicationCommand = async (input, context) => {
|
|
130
|
-
const headers =
|
|
131
|
-
"content-type": "application/x-amz-json-1.1",
|
|
132
|
-
"x-amz-target": "secretsmanager.RemoveRegionsFromReplication",
|
|
133
|
-
};
|
|
94
|
+
const headers = sharedHeaders("RemoveRegionsFromReplication");
|
|
134
95
|
let body;
|
|
135
|
-
body = JSON.stringify(
|
|
96
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
136
97
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
137
98
|
};
|
|
138
99
|
exports.se_RemoveRegionsFromReplicationCommand = se_RemoveRegionsFromReplicationCommand;
|
|
139
100
|
const se_ReplicateSecretToRegionsCommand = async (input, context) => {
|
|
140
|
-
const headers =
|
|
141
|
-
"content-type": "application/x-amz-json-1.1",
|
|
142
|
-
"x-amz-target": "secretsmanager.ReplicateSecretToRegions",
|
|
143
|
-
};
|
|
101
|
+
const headers = sharedHeaders("ReplicateSecretToRegions");
|
|
144
102
|
let body;
|
|
145
|
-
body = JSON.stringify(
|
|
103
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
146
104
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
147
105
|
};
|
|
148
106
|
exports.se_ReplicateSecretToRegionsCommand = se_ReplicateSecretToRegionsCommand;
|
|
149
107
|
const se_RestoreSecretCommand = async (input, context) => {
|
|
150
|
-
const headers =
|
|
151
|
-
"content-type": "application/x-amz-json-1.1",
|
|
152
|
-
"x-amz-target": "secretsmanager.RestoreSecret",
|
|
153
|
-
};
|
|
108
|
+
const headers = sharedHeaders("RestoreSecret");
|
|
154
109
|
let body;
|
|
155
|
-
body = JSON.stringify(
|
|
110
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
156
111
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
157
112
|
};
|
|
158
113
|
exports.se_RestoreSecretCommand = se_RestoreSecretCommand;
|
|
159
114
|
const se_RotateSecretCommand = async (input, context) => {
|
|
160
|
-
const headers =
|
|
161
|
-
"content-type": "application/x-amz-json-1.1",
|
|
162
|
-
"x-amz-target": "secretsmanager.RotateSecret",
|
|
163
|
-
};
|
|
115
|
+
const headers = sharedHeaders("RotateSecret");
|
|
164
116
|
let body;
|
|
165
117
|
body = JSON.stringify(se_RotateSecretRequest(input, context));
|
|
166
118
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
167
119
|
};
|
|
168
120
|
exports.se_RotateSecretCommand = se_RotateSecretCommand;
|
|
169
121
|
const se_StopReplicationToReplicaCommand = async (input, context) => {
|
|
170
|
-
const headers =
|
|
171
|
-
"content-type": "application/x-amz-json-1.1",
|
|
172
|
-
"x-amz-target": "secretsmanager.StopReplicationToReplica",
|
|
173
|
-
};
|
|
122
|
+
const headers = sharedHeaders("StopReplicationToReplica");
|
|
174
123
|
let body;
|
|
175
|
-
body = JSON.stringify(
|
|
124
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
176
125
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
177
126
|
};
|
|
178
127
|
exports.se_StopReplicationToReplicaCommand = se_StopReplicationToReplicaCommand;
|
|
179
128
|
const se_TagResourceCommand = async (input, context) => {
|
|
180
|
-
const headers =
|
|
181
|
-
"content-type": "application/x-amz-json-1.1",
|
|
182
|
-
"x-amz-target": "secretsmanager.TagResource",
|
|
183
|
-
};
|
|
129
|
+
const headers = sharedHeaders("TagResource");
|
|
184
130
|
let body;
|
|
185
|
-
body = JSON.stringify(
|
|
131
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
186
132
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
187
133
|
};
|
|
188
134
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
189
135
|
const se_UntagResourceCommand = async (input, context) => {
|
|
190
|
-
const headers =
|
|
191
|
-
"content-type": "application/x-amz-json-1.1",
|
|
192
|
-
"x-amz-target": "secretsmanager.UntagResource",
|
|
193
|
-
};
|
|
136
|
+
const headers = sharedHeaders("UntagResource");
|
|
194
137
|
let body;
|
|
195
|
-
body = JSON.stringify(
|
|
138
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
196
139
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
197
140
|
};
|
|
198
141
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
199
142
|
const se_UpdateSecretCommand = async (input, context) => {
|
|
200
|
-
const headers =
|
|
201
|
-
"content-type": "application/x-amz-json-1.1",
|
|
202
|
-
"x-amz-target": "secretsmanager.UpdateSecret",
|
|
203
|
-
};
|
|
143
|
+
const headers = sharedHeaders("UpdateSecret");
|
|
204
144
|
let body;
|
|
205
145
|
body = JSON.stringify(se_UpdateSecretRequest(input, context));
|
|
206
146
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
207
147
|
};
|
|
208
148
|
exports.se_UpdateSecretCommand = se_UpdateSecretCommand;
|
|
209
149
|
const se_UpdateSecretVersionStageCommand = async (input, context) => {
|
|
210
|
-
const headers =
|
|
211
|
-
"content-type": "application/x-amz-json-1.1",
|
|
212
|
-
"x-amz-target": "secretsmanager.UpdateSecretVersionStage",
|
|
213
|
-
};
|
|
150
|
+
const headers = sharedHeaders("UpdateSecretVersionStage");
|
|
214
151
|
let body;
|
|
215
|
-
body = JSON.stringify(
|
|
152
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
216
153
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
217
154
|
};
|
|
218
155
|
exports.se_UpdateSecretVersionStageCommand = se_UpdateSecretVersionStageCommand;
|
|
219
156
|
const se_ValidateResourcePolicyCommand = async (input, context) => {
|
|
220
|
-
const headers =
|
|
221
|
-
"content-type": "application/x-amz-json-1.1",
|
|
222
|
-
"x-amz-target": "secretsmanager.ValidateResourcePolicy",
|
|
223
|
-
};
|
|
157
|
+
const headers = sharedHeaders("ValidateResourcePolicy");
|
|
224
158
|
let body;
|
|
225
|
-
body = JSON.stringify(
|
|
159
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
226
160
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
227
161
|
};
|
|
228
162
|
exports.se_ValidateResourcePolicyCommand = se_ValidateResourcePolicyCommand;
|
|
@@ -232,12 +166,12 @@ const de_CancelRotateSecretCommand = async (output, context) => {
|
|
|
232
166
|
}
|
|
233
167
|
const data = await parseBody(output.body, context);
|
|
234
168
|
let contents = {};
|
|
235
|
-
contents =
|
|
169
|
+
contents = (0, smithy_client_1._json)(data);
|
|
236
170
|
const response = {
|
|
237
171
|
$metadata: deserializeMetadata(output),
|
|
238
172
|
...contents,
|
|
239
173
|
};
|
|
240
|
-
return
|
|
174
|
+
return response;
|
|
241
175
|
};
|
|
242
176
|
exports.de_CancelRotateSecretCommand = de_CancelRotateSecretCommand;
|
|
243
177
|
const de_CancelRotateSecretCommandError = async (output, context) => {
|
|
@@ -261,10 +195,9 @@ const de_CancelRotateSecretCommandError = async (output, context) => {
|
|
|
261
195
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
262
196
|
default:
|
|
263
197
|
const parsedBody = parsedOutput.body;
|
|
264
|
-
|
|
198
|
+
return throwDefaultError({
|
|
265
199
|
output,
|
|
266
200
|
parsedBody,
|
|
267
|
-
exceptionCtor: SecretsManagerServiceException_1.SecretsManagerServiceException,
|
|
268
201
|
errorCode,
|
|
269
202
|
});
|
|
270
203
|
}
|
|
@@ -280,7 +213,7 @@ const de_CreateSecretCommand = async (output, context) => {
|
|
|
280
213
|
$metadata: deserializeMetadata(output),
|
|
281
214
|
...contents,
|
|
282
215
|
};
|
|
283
|
-
return
|
|
216
|
+
return response;
|
|
284
217
|
};
|
|
285
218
|
exports.de_CreateSecretCommand = de_CreateSecretCommand;
|
|
286
219
|
const de_CreateSecretCommandError = async (output, context) => {
|
|
@@ -322,10 +255,9 @@ const de_CreateSecretCommandError = async (output, context) => {
|
|
|
322
255
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
323
256
|
default:
|
|
324
257
|
const parsedBody = parsedOutput.body;
|
|
325
|
-
|
|
258
|
+
return throwDefaultError({
|
|
326
259
|
output,
|
|
327
260
|
parsedBody,
|
|
328
|
-
exceptionCtor: SecretsManagerServiceException_1.SecretsManagerServiceException,
|
|
329
261
|
errorCode,
|
|
330
262
|
});
|
|
331
263
|
}
|
|
@@ -336,12 +268,12 @@ const de_DeleteResourcePolicyCommand = async (output, context) => {
|
|
|
336
268
|
}
|
|
337
269
|
const data = await parseBody(output.body, context);
|
|
338
270
|
let contents = {};
|
|
339
|
-
contents =
|
|
271
|
+
contents = (0, smithy_client_1._json)(data);
|
|
340
272
|
const response = {
|
|
341
273
|
$metadata: deserializeMetadata(output),
|
|
342
274
|
...contents,
|
|
343
275
|
};
|
|
344
|
-
return
|
|
276
|
+
return response;
|
|
345
277
|
};
|
|
346
278
|
exports.de_DeleteResourcePolicyCommand = de_DeleteResourcePolicyCommand;
|
|
347
279
|
const de_DeleteResourcePolicyCommandError = async (output, context) => {
|
|
@@ -365,10 +297,9 @@ const de_DeleteResourcePolicyCommandError = async (output, context) => {
|
|
|
365
297
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
366
298
|
default:
|
|
367
299
|
const parsedBody = parsedOutput.body;
|
|
368
|
-
|
|
300
|
+
return throwDefaultError({
|
|
369
301
|
output,
|
|
370
302
|
parsedBody,
|
|
371
|
-
exceptionCtor: SecretsManagerServiceException_1.SecretsManagerServiceException,
|
|
372
303
|
errorCode,
|
|
373
304
|
});
|
|
374
305
|
}
|
|
@@ -384,7 +315,7 @@ const de_DeleteSecretCommand = async (output, context) => {
|
|
|
384
315
|
$metadata: deserializeMetadata(output),
|
|
385
316
|
...contents,
|
|
386
317
|
};
|
|
387
|
-
return
|
|
318
|
+
return response;
|
|
388
319
|
};
|
|
389
320
|
exports.de_DeleteSecretCommand = de_DeleteSecretCommand;
|
|
390
321
|
const de_DeleteSecretCommandError = async (output, context) => {
|
|
@@ -408,10 +339,9 @@ const de_DeleteSecretCommandError = async (output, context) => {
|
|
|
408
339
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
409
340
|
default:
|
|
410
341
|
const parsedBody = parsedOutput.body;
|
|
411
|
-
|
|
342
|
+
return throwDefaultError({
|
|
412
343
|
output,
|
|
413
344
|
parsedBody,
|
|
414
|
-
exceptionCtor: SecretsManagerServiceException_1.SecretsManagerServiceException,
|
|
415
345
|
errorCode,
|
|
416
346
|
});
|
|
417
347
|
}
|
|
@@ -427,7 +357,7 @@ const de_DescribeSecretCommand = async (output, context) => {
|
|
|
427
357
|
$metadata: deserializeMetadata(output),
|
|
428
358
|
...contents,
|
|
429
359
|
};
|
|
430
|
-
return
|
|
360
|
+
return response;
|
|
431
361
|
};
|
|
432
362
|
exports.de_DescribeSecretCommand = de_DescribeSecretCommand;
|
|
433
363
|
const de_DescribeSecretCommandError = async (output, context) => {
|
|
@@ -448,10 +378,9 @@ const de_DescribeSecretCommandError = async (output, context) => {
|
|
|
448
378
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
449
379
|
default:
|
|
450
380
|
const parsedBody = parsedOutput.body;
|
|
451
|
-
|
|
381
|
+
return throwDefaultError({
|
|
452
382
|
output,
|
|
453
383
|
parsedBody,
|
|
454
|
-
exceptionCtor: SecretsManagerServiceException_1.SecretsManagerServiceException,
|
|
455
384
|
errorCode,
|
|
456
385
|
});
|
|
457
386
|
}
|
|
@@ -462,12 +391,12 @@ const de_GetRandomPasswordCommand = async (output, context) => {
|
|
|
462
391
|
}
|
|
463
392
|
const data = await parseBody(output.body, context);
|
|
464
393
|
let contents = {};
|
|
465
|
-
contents =
|
|
394
|
+
contents = (0, smithy_client_1._json)(data);
|
|
466
395
|
const response = {
|
|
467
396
|
$metadata: deserializeMetadata(output),
|
|
468
397
|
...contents,
|
|
469
398
|
};
|
|
470
|
-
return
|
|
399
|
+
return response;
|
|
471
400
|
};
|
|
472
401
|
exports.de_GetRandomPasswordCommand = de_GetRandomPasswordCommand;
|
|
473
402
|
const de_GetRandomPasswordCommandError = async (output, context) => {
|
|
@@ -488,10 +417,9 @@ const de_GetRandomPasswordCommandError = async (output, context) => {
|
|
|
488
417
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
489
418
|
default:
|
|
490
419
|
const parsedBody = parsedOutput.body;
|
|
491
|
-
|
|
420
|
+
return throwDefaultError({
|
|
492
421
|
output,
|
|
493
422
|
parsedBody,
|
|
494
|
-
exceptionCtor: SecretsManagerServiceException_1.SecretsManagerServiceException,
|
|
495
423
|
errorCode,
|
|
496
424
|
});
|
|
497
425
|
}
|
|
@@ -502,12 +430,12 @@ const de_GetResourcePolicyCommand = async (output, context) => {
|
|
|
502
430
|
}
|
|
503
431
|
const data = await parseBody(output.body, context);
|
|
504
432
|
let contents = {};
|
|
505
|
-
contents =
|
|
433
|
+
contents = (0, smithy_client_1._json)(data);
|
|
506
434
|
const response = {
|
|
507
435
|
$metadata: deserializeMetadata(output),
|
|
508
436
|
...contents,
|
|
509
437
|
};
|
|
510
|
-
return
|
|
438
|
+
return response;
|
|
511
439
|
};
|
|
512
440
|
exports.de_GetResourcePolicyCommand = de_GetResourcePolicyCommand;
|
|
513
441
|
const de_GetResourcePolicyCommandError = async (output, context) => {
|
|
@@ -531,10 +459,9 @@ const de_GetResourcePolicyCommandError = async (output, context) => {
|
|
|
531
459
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
532
460
|
default:
|
|
533
461
|
const parsedBody = parsedOutput.body;
|
|
534
|
-
|
|
462
|
+
return throwDefaultError({
|
|
535
463
|
output,
|
|
536
464
|
parsedBody,
|
|
537
|
-
exceptionCtor: SecretsManagerServiceException_1.SecretsManagerServiceException,
|
|
538
465
|
errorCode,
|
|
539
466
|
});
|
|
540
467
|
}
|
|
@@ -550,7 +477,7 @@ const de_GetSecretValueCommand = async (output, context) => {
|
|
|
550
477
|
$metadata: deserializeMetadata(output),
|
|
551
478
|
...contents,
|
|
552
479
|
};
|
|
553
|
-
return
|
|
480
|
+
return response;
|
|
554
481
|
};
|
|
555
482
|
exports.de_GetSecretValueCommand = de_GetSecretValueCommand;
|
|
556
483
|
const de_GetSecretValueCommandError = async (output, context) => {
|
|
@@ -577,10 +504,9 @@ const de_GetSecretValueCommandError = async (output, context) => {
|
|
|
577
504
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
578
505
|
default:
|
|
579
506
|
const parsedBody = parsedOutput.body;
|
|
580
|
-
|
|
507
|
+
return throwDefaultError({
|
|
581
508
|
output,
|
|
582
509
|
parsedBody,
|
|
583
|
-
exceptionCtor: SecretsManagerServiceException_1.SecretsManagerServiceException,
|
|
584
510
|
errorCode,
|
|
585
511
|
});
|
|
586
512
|
}
|
|
@@ -596,7 +522,7 @@ const de_ListSecretsCommand = async (output, context) => {
|
|
|
596
522
|
$metadata: deserializeMetadata(output),
|
|
597
523
|
...contents,
|
|
598
524
|
};
|
|
599
|
-
return
|
|
525
|
+
return response;
|
|
600
526
|
};
|
|
601
527
|
exports.de_ListSecretsCommand = de_ListSecretsCommand;
|
|
602
528
|
const de_ListSecretsCommandError = async (output, context) => {
|
|
@@ -617,10 +543,9 @@ const de_ListSecretsCommandError = async (output, context) => {
|
|
|
617
543
|
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
618
544
|
default:
|
|
619
545
|
const parsedBody = parsedOutput.body;
|
|
620
|
-
|
|
546
|
+
return throwDefaultError({
|
|
621
547
|
output,
|
|
622
548
|
parsedBody,
|
|
623
|
-
exceptionCtor: SecretsManagerServiceException_1.SecretsManagerServiceException,
|
|
624
549
|
errorCode,
|
|
625
550
|
});
|
|
626
551
|
}
|
|
@@ -636,7 +561,7 @@ const de_ListSecretVersionIdsCommand = async (output, context) => {
|
|
|
636
561
|
$metadata: deserializeMetadata(output),
|
|
637
562
|
...contents,
|
|
638
563
|
};
|
|
639
|
-
return
|
|
564
|
+
return response;
|
|
640
565
|
};
|
|
641
566
|
exports.de_ListSecretVersionIdsCommand = de_ListSecretVersionIdsCommand;
|
|
642
567
|
const de_ListSecretVersionIdsCommandError = async (output, context) => {
|
|
@@ -660,10 +585,9 @@ const de_ListSecretVersionIdsCommandError = async (output, context) => {
|
|
|
660
585
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
661
586
|
default:
|
|
662
587
|
const parsedBody = parsedOutput.body;
|
|
663
|
-
|
|
588
|
+
return throwDefaultError({
|
|
664
589
|
output,
|
|
665
590
|
parsedBody,
|
|
666
|
-
exceptionCtor: SecretsManagerServiceException_1.SecretsManagerServiceException,
|
|
667
591
|
errorCode,
|
|
668
592
|
});
|
|
669
593
|
}
|
|
@@ -674,12 +598,12 @@ const de_PutResourcePolicyCommand = async (output, context) => {
|
|
|
674
598
|
}
|
|
675
599
|
const data = await parseBody(output.body, context);
|
|
676
600
|
let contents = {};
|
|
677
|
-
contents =
|
|
601
|
+
contents = (0, smithy_client_1._json)(data);
|
|
678
602
|
const response = {
|
|
679
603
|
$metadata: deserializeMetadata(output),
|
|
680
604
|
...contents,
|
|
681
605
|
};
|
|
682
|
-
return
|
|
606
|
+
return response;
|
|
683
607
|
};
|
|
684
608
|
exports.de_PutResourcePolicyCommand = de_PutResourcePolicyCommand;
|
|
685
609
|
const de_PutResourcePolicyCommandError = async (output, context) => {
|
|
@@ -709,10 +633,9 @@ const de_PutResourcePolicyCommandError = async (output, context) => {
|
|
|
709
633
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
710
634
|
default:
|
|
711
635
|
const parsedBody = parsedOutput.body;
|
|
712
|
-
|
|
636
|
+
return throwDefaultError({
|
|
713
637
|
output,
|
|
714
638
|
parsedBody,
|
|
715
|
-
exceptionCtor: SecretsManagerServiceException_1.SecretsManagerServiceException,
|
|
716
639
|
errorCode,
|
|
717
640
|
});
|
|
718
641
|
}
|
|
@@ -723,12 +646,12 @@ const de_PutSecretValueCommand = async (output, context) => {
|
|
|
723
646
|
}
|
|
724
647
|
const data = await parseBody(output.body, context);
|
|
725
648
|
let contents = {};
|
|
726
|
-
contents =
|
|
649
|
+
contents = (0, smithy_client_1._json)(data);
|
|
727
650
|
const response = {
|
|
728
651
|
$metadata: deserializeMetadata(output),
|
|
729
652
|
...contents,
|
|
730
653
|
};
|
|
731
|
-
return
|
|
654
|
+
return response;
|
|
732
655
|
};
|
|
733
656
|
exports.de_PutSecretValueCommand = de_PutSecretValueCommand;
|
|
734
657
|
const de_PutSecretValueCommandError = async (output, context) => {
|
|
@@ -764,10 +687,9 @@ const de_PutSecretValueCommandError = async (output, context) => {
|
|
|
764
687
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
765
688
|
default:
|
|
766
689
|
const parsedBody = parsedOutput.body;
|
|
767
|
-
|
|
690
|
+
return throwDefaultError({
|
|
768
691
|
output,
|
|
769
692
|
parsedBody,
|
|
770
|
-
exceptionCtor: SecretsManagerServiceException_1.SecretsManagerServiceException,
|
|
771
693
|
errorCode,
|
|
772
694
|
});
|
|
773
695
|
}
|
|
@@ -783,7 +705,7 @@ const de_RemoveRegionsFromReplicationCommand = async (output, context) => {
|
|
|
783
705
|
$metadata: deserializeMetadata(output),
|
|
784
706
|
...contents,
|
|
785
707
|
};
|
|
786
|
-
return
|
|
708
|
+
return response;
|
|
787
709
|
};
|
|
788
710
|
exports.de_RemoveRegionsFromReplicationCommand = de_RemoveRegionsFromReplicationCommand;
|
|
789
711
|
const de_RemoveRegionsFromReplicationCommandError = async (output, context) => {
|
|
@@ -807,10 +729,9 @@ const de_RemoveRegionsFromReplicationCommandError = async (output, context) => {
|
|
|
807
729
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
808
730
|
default:
|
|
809
731
|
const parsedBody = parsedOutput.body;
|
|
810
|
-
|
|
732
|
+
return throwDefaultError({
|
|
811
733
|
output,
|
|
812
734
|
parsedBody,
|
|
813
|
-
exceptionCtor: SecretsManagerServiceException_1.SecretsManagerServiceException,
|
|
814
735
|
errorCode,
|
|
815
736
|
});
|
|
816
737
|
}
|
|
@@ -826,7 +747,7 @@ const de_ReplicateSecretToRegionsCommand = async (output, context) => {
|
|
|
826
747
|
$metadata: deserializeMetadata(output),
|
|
827
748
|
...contents,
|
|
828
749
|
};
|
|
829
|
-
return
|
|
750
|
+
return response;
|
|
830
751
|
};
|
|
831
752
|
exports.de_ReplicateSecretToRegionsCommand = de_ReplicateSecretToRegionsCommand;
|
|
832
753
|
const de_ReplicateSecretToRegionsCommandError = async (output, context) => {
|
|
@@ -850,10 +771,9 @@ const de_ReplicateSecretToRegionsCommandError = async (output, context) => {
|
|
|
850
771
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
851
772
|
default:
|
|
852
773
|
const parsedBody = parsedOutput.body;
|
|
853
|
-
|
|
774
|
+
return throwDefaultError({
|
|
854
775
|
output,
|
|
855
776
|
parsedBody,
|
|
856
|
-
exceptionCtor: SecretsManagerServiceException_1.SecretsManagerServiceException,
|
|
857
777
|
errorCode,
|
|
858
778
|
});
|
|
859
779
|
}
|
|
@@ -864,12 +784,12 @@ const de_RestoreSecretCommand = async (output, context) => {
|
|
|
864
784
|
}
|
|
865
785
|
const data = await parseBody(output.body, context);
|
|
866
786
|
let contents = {};
|
|
867
|
-
contents =
|
|
787
|
+
contents = (0, smithy_client_1._json)(data);
|
|
868
788
|
const response = {
|
|
869
789
|
$metadata: deserializeMetadata(output),
|
|
870
790
|
...contents,
|
|
871
791
|
};
|
|
872
|
-
return
|
|
792
|
+
return response;
|
|
873
793
|
};
|
|
874
794
|
exports.de_RestoreSecretCommand = de_RestoreSecretCommand;
|
|
875
795
|
const de_RestoreSecretCommandError = async (output, context) => {
|
|
@@ -893,10 +813,9 @@ const de_RestoreSecretCommandError = async (output, context) => {
|
|
|
893
813
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
894
814
|
default:
|
|
895
815
|
const parsedBody = parsedOutput.body;
|
|
896
|
-
|
|
816
|
+
return throwDefaultError({
|
|
897
817
|
output,
|
|
898
818
|
parsedBody,
|
|
899
|
-
exceptionCtor: SecretsManagerServiceException_1.SecretsManagerServiceException,
|
|
900
819
|
errorCode,
|
|
901
820
|
});
|
|
902
821
|
}
|
|
@@ -907,12 +826,12 @@ const de_RotateSecretCommand = async (output, context) => {
|
|
|
907
826
|
}
|
|
908
827
|
const data = await parseBody(output.body, context);
|
|
909
828
|
let contents = {};
|
|
910
|
-
contents =
|
|
829
|
+
contents = (0, smithy_client_1._json)(data);
|
|
911
830
|
const response = {
|
|
912
831
|
$metadata: deserializeMetadata(output),
|
|
913
832
|
...contents,
|
|
914
833
|
};
|
|
915
|
-
return
|
|
834
|
+
return response;
|
|
916
835
|
};
|
|
917
836
|
exports.de_RotateSecretCommand = de_RotateSecretCommand;
|
|
918
837
|
const de_RotateSecretCommandError = async (output, context) => {
|
|
@@ -936,10 +855,9 @@ const de_RotateSecretCommandError = async (output, context) => {
|
|
|
936
855
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
937
856
|
default:
|
|
938
857
|
const parsedBody = parsedOutput.body;
|
|
939
|
-
|
|
858
|
+
return throwDefaultError({
|
|
940
859
|
output,
|
|
941
860
|
parsedBody,
|
|
942
|
-
exceptionCtor: SecretsManagerServiceException_1.SecretsManagerServiceException,
|
|
943
861
|
errorCode,
|
|
944
862
|
});
|
|
945
863
|
}
|
|
@@ -950,12 +868,12 @@ const de_StopReplicationToReplicaCommand = async (output, context) => {
|
|
|
950
868
|
}
|
|
951
869
|
const data = await parseBody(output.body, context);
|
|
952
870
|
let contents = {};
|
|
953
|
-
contents =
|
|
871
|
+
contents = (0, smithy_client_1._json)(data);
|
|
954
872
|
const response = {
|
|
955
873
|
$metadata: deserializeMetadata(output),
|
|
956
874
|
...contents,
|
|
957
875
|
};
|
|
958
|
-
return
|
|
876
|
+
return response;
|
|
959
877
|
};
|
|
960
878
|
exports.de_StopReplicationToReplicaCommand = de_StopReplicationToReplicaCommand;
|
|
961
879
|
const de_StopReplicationToReplicaCommandError = async (output, context) => {
|
|
@@ -979,10 +897,9 @@ const de_StopReplicationToReplicaCommandError = async (output, context) => {
|
|
|
979
897
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
980
898
|
default:
|
|
981
899
|
const parsedBody = parsedOutput.body;
|
|
982
|
-
|
|
900
|
+
return throwDefaultError({
|
|
983
901
|
output,
|
|
984
902
|
parsedBody,
|
|
985
|
-
exceptionCtor: SecretsManagerServiceException_1.SecretsManagerServiceException,
|
|
986
903
|
errorCode,
|
|
987
904
|
});
|
|
988
905
|
}
|
|
@@ -995,7 +912,7 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
995
912
|
const response = {
|
|
996
913
|
$metadata: deserializeMetadata(output),
|
|
997
914
|
};
|
|
998
|
-
return
|
|
915
|
+
return response;
|
|
999
916
|
};
|
|
1000
917
|
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
1001
918
|
const de_TagResourceCommandError = async (output, context) => {
|
|
@@ -1019,10 +936,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
1019
936
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1020
937
|
default:
|
|
1021
938
|
const parsedBody = parsedOutput.body;
|
|
1022
|
-
|
|
939
|
+
return throwDefaultError({
|
|
1023
940
|
output,
|
|
1024
941
|
parsedBody,
|
|
1025
|
-
exceptionCtor: SecretsManagerServiceException_1.SecretsManagerServiceException,
|
|
1026
942
|
errorCode,
|
|
1027
943
|
});
|
|
1028
944
|
}
|
|
@@ -1035,7 +951,7 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
1035
951
|
const response = {
|
|
1036
952
|
$metadata: deserializeMetadata(output),
|
|
1037
953
|
};
|
|
1038
|
-
return
|
|
954
|
+
return response;
|
|
1039
955
|
};
|
|
1040
956
|
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
1041
957
|
const de_UntagResourceCommandError = async (output, context) => {
|
|
@@ -1059,10 +975,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
1059
975
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1060
976
|
default:
|
|
1061
977
|
const parsedBody = parsedOutput.body;
|
|
1062
|
-
|
|
978
|
+
return throwDefaultError({
|
|
1063
979
|
output,
|
|
1064
980
|
parsedBody,
|
|
1065
|
-
exceptionCtor: SecretsManagerServiceException_1.SecretsManagerServiceException,
|
|
1066
981
|
errorCode,
|
|
1067
982
|
});
|
|
1068
983
|
}
|
|
@@ -1073,12 +988,12 @@ const de_UpdateSecretCommand = async (output, context) => {
|
|
|
1073
988
|
}
|
|
1074
989
|
const data = await parseBody(output.body, context);
|
|
1075
990
|
let contents = {};
|
|
1076
|
-
contents =
|
|
991
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1077
992
|
const response = {
|
|
1078
993
|
$metadata: deserializeMetadata(output),
|
|
1079
994
|
...contents,
|
|
1080
995
|
};
|
|
1081
|
-
return
|
|
996
|
+
return response;
|
|
1082
997
|
};
|
|
1083
998
|
exports.de_UpdateSecretCommand = de_UpdateSecretCommand;
|
|
1084
999
|
const de_UpdateSecretCommandError = async (output, context) => {
|
|
@@ -1120,10 +1035,9 @@ const de_UpdateSecretCommandError = async (output, context) => {
|
|
|
1120
1035
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1121
1036
|
default:
|
|
1122
1037
|
const parsedBody = parsedOutput.body;
|
|
1123
|
-
|
|
1038
|
+
return throwDefaultError({
|
|
1124
1039
|
output,
|
|
1125
1040
|
parsedBody,
|
|
1126
|
-
exceptionCtor: SecretsManagerServiceException_1.SecretsManagerServiceException,
|
|
1127
1041
|
errorCode,
|
|
1128
1042
|
});
|
|
1129
1043
|
}
|
|
@@ -1134,12 +1048,12 @@ const de_UpdateSecretVersionStageCommand = async (output, context) => {
|
|
|
1134
1048
|
}
|
|
1135
1049
|
const data = await parseBody(output.body, context);
|
|
1136
1050
|
let contents = {};
|
|
1137
|
-
contents =
|
|
1051
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1138
1052
|
const response = {
|
|
1139
1053
|
$metadata: deserializeMetadata(output),
|
|
1140
1054
|
...contents,
|
|
1141
1055
|
};
|
|
1142
|
-
return
|
|
1056
|
+
return response;
|
|
1143
1057
|
};
|
|
1144
1058
|
exports.de_UpdateSecretVersionStageCommand = de_UpdateSecretVersionStageCommand;
|
|
1145
1059
|
const de_UpdateSecretVersionStageCommandError = async (output, context) => {
|
|
@@ -1166,10 +1080,9 @@ const de_UpdateSecretVersionStageCommandError = async (output, context) => {
|
|
|
1166
1080
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1167
1081
|
default:
|
|
1168
1082
|
const parsedBody = parsedOutput.body;
|
|
1169
|
-
|
|
1083
|
+
return throwDefaultError({
|
|
1170
1084
|
output,
|
|
1171
1085
|
parsedBody,
|
|
1172
|
-
exceptionCtor: SecretsManagerServiceException_1.SecretsManagerServiceException,
|
|
1173
1086
|
errorCode,
|
|
1174
1087
|
});
|
|
1175
1088
|
}
|
|
@@ -1180,12 +1093,12 @@ const de_ValidateResourcePolicyCommand = async (output, context) => {
|
|
|
1180
1093
|
}
|
|
1181
1094
|
const data = await parseBody(output.body, context);
|
|
1182
1095
|
let contents = {};
|
|
1183
|
-
contents =
|
|
1096
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1184
1097
|
const response = {
|
|
1185
1098
|
$metadata: deserializeMetadata(output),
|
|
1186
1099
|
...contents,
|
|
1187
1100
|
};
|
|
1188
|
-
return
|
|
1101
|
+
return response;
|
|
1189
1102
|
};
|
|
1190
1103
|
exports.de_ValidateResourcePolicyCommand = de_ValidateResourcePolicyCommand;
|
|
1191
1104
|
const de_ValidateResourcePolicyCommandError = async (output, context) => {
|
|
@@ -1212,17 +1125,16 @@ const de_ValidateResourcePolicyCommandError = async (output, context) => {
|
|
|
1212
1125
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1213
1126
|
default:
|
|
1214
1127
|
const parsedBody = parsedOutput.body;
|
|
1215
|
-
|
|
1128
|
+
return throwDefaultError({
|
|
1216
1129
|
output,
|
|
1217
1130
|
parsedBody,
|
|
1218
|
-
exceptionCtor: SecretsManagerServiceException_1.SecretsManagerServiceException,
|
|
1219
1131
|
errorCode,
|
|
1220
1132
|
});
|
|
1221
1133
|
}
|
|
1222
1134
|
};
|
|
1223
1135
|
const de_DecryptionFailureRes = async (parsedOutput, context) => {
|
|
1224
1136
|
const body = parsedOutput.body;
|
|
1225
|
-
const deserialized =
|
|
1137
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1226
1138
|
const exception = new models_0_1.DecryptionFailure({
|
|
1227
1139
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1228
1140
|
...deserialized,
|
|
@@ -1231,7 +1143,7 @@ const de_DecryptionFailureRes = async (parsedOutput, context) => {
|
|
|
1231
1143
|
};
|
|
1232
1144
|
const de_EncryptionFailureRes = async (parsedOutput, context) => {
|
|
1233
1145
|
const body = parsedOutput.body;
|
|
1234
|
-
const deserialized =
|
|
1146
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1235
1147
|
const exception = new models_0_1.EncryptionFailure({
|
|
1236
1148
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1237
1149
|
...deserialized,
|
|
@@ -1240,7 +1152,7 @@ const de_EncryptionFailureRes = async (parsedOutput, context) => {
|
|
|
1240
1152
|
};
|
|
1241
1153
|
const de_InternalServiceErrorRes = async (parsedOutput, context) => {
|
|
1242
1154
|
const body = parsedOutput.body;
|
|
1243
|
-
const deserialized =
|
|
1155
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1244
1156
|
const exception = new models_0_1.InternalServiceError({
|
|
1245
1157
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1246
1158
|
...deserialized,
|
|
@@ -1249,7 +1161,7 @@ const de_InternalServiceErrorRes = async (parsedOutput, context) => {
|
|
|
1249
1161
|
};
|
|
1250
1162
|
const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
|
|
1251
1163
|
const body = parsedOutput.body;
|
|
1252
|
-
const deserialized =
|
|
1164
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1253
1165
|
const exception = new models_0_1.InvalidNextTokenException({
|
|
1254
1166
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1255
1167
|
...deserialized,
|
|
@@ -1258,7 +1170,7 @@ const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
|
|
|
1258
1170
|
};
|
|
1259
1171
|
const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
1260
1172
|
const body = parsedOutput.body;
|
|
1261
|
-
const deserialized =
|
|
1173
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1262
1174
|
const exception = new models_0_1.InvalidParameterException({
|
|
1263
1175
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1264
1176
|
...deserialized,
|
|
@@ -1267,7 +1179,7 @@ const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
|
1267
1179
|
};
|
|
1268
1180
|
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
1269
1181
|
const body = parsedOutput.body;
|
|
1270
|
-
const deserialized =
|
|
1182
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1271
1183
|
const exception = new models_0_1.InvalidRequestException({
|
|
1272
1184
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1273
1185
|
...deserialized,
|
|
@@ -1276,7 +1188,7 @@ const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
|
1276
1188
|
};
|
|
1277
1189
|
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1278
1190
|
const body = parsedOutput.body;
|
|
1279
|
-
const deserialized =
|
|
1191
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1280
1192
|
const exception = new models_0_1.LimitExceededException({
|
|
1281
1193
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1282
1194
|
...deserialized,
|
|
@@ -1285,7 +1197,7 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
1285
1197
|
};
|
|
1286
1198
|
const de_MalformedPolicyDocumentExceptionRes = async (parsedOutput, context) => {
|
|
1287
1199
|
const body = parsedOutput.body;
|
|
1288
|
-
const deserialized =
|
|
1200
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1289
1201
|
const exception = new models_0_1.MalformedPolicyDocumentException({
|
|
1290
1202
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1291
1203
|
...deserialized,
|
|
@@ -1294,7 +1206,7 @@ const de_MalformedPolicyDocumentExceptionRes = async (parsedOutput, context) =>
|
|
|
1294
1206
|
};
|
|
1295
1207
|
const de_PreconditionNotMetExceptionRes = async (parsedOutput, context) => {
|
|
1296
1208
|
const body = parsedOutput.body;
|
|
1297
|
-
const deserialized =
|
|
1209
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1298
1210
|
const exception = new models_0_1.PreconditionNotMetException({
|
|
1299
1211
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1300
1212
|
...deserialized,
|
|
@@ -1303,7 +1215,7 @@ const de_PreconditionNotMetExceptionRes = async (parsedOutput, context) => {
|
|
|
1303
1215
|
};
|
|
1304
1216
|
const de_PublicPolicyExceptionRes = async (parsedOutput, context) => {
|
|
1305
1217
|
const body = parsedOutput.body;
|
|
1306
|
-
const deserialized =
|
|
1218
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1307
1219
|
const exception = new models_0_1.PublicPolicyException({
|
|
1308
1220
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1309
1221
|
...deserialized,
|
|
@@ -1312,7 +1224,7 @@ const de_PublicPolicyExceptionRes = async (parsedOutput, context) => {
|
|
|
1312
1224
|
};
|
|
1313
1225
|
const de_ResourceExistsExceptionRes = async (parsedOutput, context) => {
|
|
1314
1226
|
const body = parsedOutput.body;
|
|
1315
|
-
const deserialized =
|
|
1227
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1316
1228
|
const exception = new models_0_1.ResourceExistsException({
|
|
1317
1229
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1318
1230
|
...deserialized,
|
|
@@ -1321,649 +1233,191 @@ const de_ResourceExistsExceptionRes = async (parsedOutput, context) => {
|
|
|
1321
1233
|
};
|
|
1322
1234
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1323
1235
|
const body = parsedOutput.body;
|
|
1324
|
-
const deserialized =
|
|
1236
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1325
1237
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
1326
1238
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1327
1239
|
...deserialized,
|
|
1328
1240
|
});
|
|
1329
1241
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1330
1242
|
};
|
|
1331
|
-
const se_AddReplicaRegionListType = (input, context) => {
|
|
1332
|
-
return input
|
|
1333
|
-
.filter((e) => e != null)
|
|
1334
|
-
.map((entry) => {
|
|
1335
|
-
return se_ReplicaRegionType(entry, context);
|
|
1336
|
-
});
|
|
1337
|
-
};
|
|
1338
|
-
const se_CancelRotateSecretRequest = (input, context) => {
|
|
1339
|
-
return {
|
|
1340
|
-
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1341
|
-
};
|
|
1342
|
-
};
|
|
1343
1243
|
const se_CreateSecretRequest = (input, context) => {
|
|
1344
|
-
return {
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
...(input.Name != null && { Name: input.Name }),
|
|
1355
|
-
...(input.SecretBinary != null && { SecretBinary: context.base64Encoder(input.SecretBinary) }),
|
|
1356
|
-
...(input.SecretString != null && { SecretString: input.SecretString }),
|
|
1357
|
-
...(input.Tags != null && { Tags: se_TagListType(input.Tags, context) }),
|
|
1358
|
-
};
|
|
1359
|
-
};
|
|
1360
|
-
const se_DeleteResourcePolicyRequest = (input, context) => {
|
|
1361
|
-
return {
|
|
1362
|
-
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1363
|
-
};
|
|
1364
|
-
};
|
|
1365
|
-
const se_DeleteSecretRequest = (input, context) => {
|
|
1366
|
-
return {
|
|
1367
|
-
...(input.ForceDeleteWithoutRecovery != null && { ForceDeleteWithoutRecovery: input.ForceDeleteWithoutRecovery }),
|
|
1368
|
-
...(input.RecoveryWindowInDays != null && { RecoveryWindowInDays: input.RecoveryWindowInDays }),
|
|
1369
|
-
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1370
|
-
};
|
|
1371
|
-
};
|
|
1372
|
-
const se_DescribeSecretRequest = (input, context) => {
|
|
1373
|
-
return {
|
|
1374
|
-
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1375
|
-
};
|
|
1376
|
-
};
|
|
1377
|
-
const se_Filter = (input, context) => {
|
|
1378
|
-
return {
|
|
1379
|
-
...(input.Key != null && { Key: input.Key }),
|
|
1380
|
-
...(input.Values != null && { Values: se_FilterValuesStringList(input.Values, context) }),
|
|
1381
|
-
};
|
|
1382
|
-
};
|
|
1383
|
-
const se_FiltersListType = (input, context) => {
|
|
1384
|
-
return input
|
|
1385
|
-
.filter((e) => e != null)
|
|
1386
|
-
.map((entry) => {
|
|
1387
|
-
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,
|
|
1388
1254
|
});
|
|
1389
1255
|
};
|
|
1390
|
-
const se_FilterValuesStringList = (input, context) => {
|
|
1391
|
-
return input
|
|
1392
|
-
.filter((e) => e != null)
|
|
1393
|
-
.map((entry) => {
|
|
1394
|
-
return entry;
|
|
1395
|
-
});
|
|
1396
|
-
};
|
|
1397
|
-
const se_GetRandomPasswordRequest = (input, context) => {
|
|
1398
|
-
return {
|
|
1399
|
-
...(input.ExcludeCharacters != null && { ExcludeCharacters: input.ExcludeCharacters }),
|
|
1400
|
-
...(input.ExcludeLowercase != null && { ExcludeLowercase: input.ExcludeLowercase }),
|
|
1401
|
-
...(input.ExcludeNumbers != null && { ExcludeNumbers: input.ExcludeNumbers }),
|
|
1402
|
-
...(input.ExcludePunctuation != null && { ExcludePunctuation: input.ExcludePunctuation }),
|
|
1403
|
-
...(input.ExcludeUppercase != null && { ExcludeUppercase: input.ExcludeUppercase }),
|
|
1404
|
-
...(input.IncludeSpace != null && { IncludeSpace: input.IncludeSpace }),
|
|
1405
|
-
...(input.PasswordLength != null && { PasswordLength: input.PasswordLength }),
|
|
1406
|
-
...(input.RequireEachIncludedType != null && { RequireEachIncludedType: input.RequireEachIncludedType }),
|
|
1407
|
-
};
|
|
1408
|
-
};
|
|
1409
|
-
const se_GetResourcePolicyRequest = (input, context) => {
|
|
1410
|
-
return {
|
|
1411
|
-
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1412
|
-
};
|
|
1413
|
-
};
|
|
1414
|
-
const se_GetSecretValueRequest = (input, context) => {
|
|
1415
|
-
return {
|
|
1416
|
-
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1417
|
-
...(input.VersionId != null && { VersionId: input.VersionId }),
|
|
1418
|
-
...(input.VersionStage != null && { VersionStage: input.VersionStage }),
|
|
1419
|
-
};
|
|
1420
|
-
};
|
|
1421
|
-
const se_ListSecretsRequest = (input, context) => {
|
|
1422
|
-
return {
|
|
1423
|
-
...(input.Filters != null && { Filters: se_FiltersListType(input.Filters, context) }),
|
|
1424
|
-
...(input.IncludePlannedDeletion != null && { IncludePlannedDeletion: input.IncludePlannedDeletion }),
|
|
1425
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1426
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1427
|
-
...(input.SortOrder != null && { SortOrder: input.SortOrder }),
|
|
1428
|
-
};
|
|
1429
|
-
};
|
|
1430
|
-
const se_ListSecretVersionIdsRequest = (input, context) => {
|
|
1431
|
-
return {
|
|
1432
|
-
...(input.IncludeDeprecated != null && { IncludeDeprecated: input.IncludeDeprecated }),
|
|
1433
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1434
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1435
|
-
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1436
|
-
};
|
|
1437
|
-
};
|
|
1438
|
-
const se_PutResourcePolicyRequest = (input, context) => {
|
|
1439
|
-
return {
|
|
1440
|
-
...(input.BlockPublicPolicy != null && { BlockPublicPolicy: input.BlockPublicPolicy }),
|
|
1441
|
-
...(input.ResourcePolicy != null && { ResourcePolicy: input.ResourcePolicy }),
|
|
1442
|
-
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1443
|
-
};
|
|
1444
|
-
};
|
|
1445
1256
|
const se_PutSecretValueRequest = (input, context) => {
|
|
1446
|
-
return {
|
|
1447
|
-
ClientRequestToken:
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
};
|
|
1453
|
-
};
|
|
1454
|
-
const se_RemoveRegionsFromReplicationRequest = (input, context) => {
|
|
1455
|
-
return {
|
|
1456
|
-
...(input.RemoveReplicaRegions != null && {
|
|
1457
|
-
RemoveReplicaRegions: se_RemoveReplicaRegionListType(input.RemoveReplicaRegions, context),
|
|
1458
|
-
}),
|
|
1459
|
-
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1460
|
-
};
|
|
1461
|
-
};
|
|
1462
|
-
const se_RemoveReplicaRegionListType = (input, context) => {
|
|
1463
|
-
return input
|
|
1464
|
-
.filter((e) => e != null)
|
|
1465
|
-
.map((entry) => {
|
|
1466
|
-
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,
|
|
1467
1263
|
});
|
|
1468
1264
|
};
|
|
1469
|
-
const se_ReplicaRegionType = (input, context) => {
|
|
1470
|
-
return {
|
|
1471
|
-
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
1472
|
-
...(input.Region != null && { Region: input.Region }),
|
|
1473
|
-
};
|
|
1474
|
-
};
|
|
1475
|
-
const se_ReplicateSecretToRegionsRequest = (input, context) => {
|
|
1476
|
-
return {
|
|
1477
|
-
...(input.AddReplicaRegions != null && {
|
|
1478
|
-
AddReplicaRegions: se_AddReplicaRegionListType(input.AddReplicaRegions, context),
|
|
1479
|
-
}),
|
|
1480
|
-
...(input.ForceOverwriteReplicaSecret != null && {
|
|
1481
|
-
ForceOverwriteReplicaSecret: input.ForceOverwriteReplicaSecret,
|
|
1482
|
-
}),
|
|
1483
|
-
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1484
|
-
};
|
|
1485
|
-
};
|
|
1486
|
-
const se_RestoreSecretRequest = (input, context) => {
|
|
1487
|
-
return {
|
|
1488
|
-
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1489
|
-
};
|
|
1490
|
-
};
|
|
1491
1265
|
const se_RotateSecretRequest = (input, context) => {
|
|
1492
|
-
return {
|
|
1493
|
-
ClientRequestToken:
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
};
|
|
1499
|
-
};
|
|
1500
|
-
const se_RotationRulesType = (input, context) => {
|
|
1501
|
-
return {
|
|
1502
|
-
...(input.AutomaticallyAfterDays != null && { AutomaticallyAfterDays: input.AutomaticallyAfterDays }),
|
|
1503
|
-
...(input.Duration != null && { Duration: input.Duration }),
|
|
1504
|
-
...(input.ScheduleExpression != null && { ScheduleExpression: input.ScheduleExpression }),
|
|
1505
|
-
};
|
|
1506
|
-
};
|
|
1507
|
-
const se_SecretVersionStagesType = (input, context) => {
|
|
1508
|
-
return input
|
|
1509
|
-
.filter((e) => e != null)
|
|
1510
|
-
.map((entry) => {
|
|
1511
|
-
return entry;
|
|
1512
|
-
});
|
|
1513
|
-
};
|
|
1514
|
-
const se_StopReplicationToReplicaRequest = (input, context) => {
|
|
1515
|
-
return {
|
|
1516
|
-
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1517
|
-
};
|
|
1518
|
-
};
|
|
1519
|
-
const se_Tag = (input, context) => {
|
|
1520
|
-
return {
|
|
1521
|
-
...(input.Key != null && { Key: input.Key }),
|
|
1522
|
-
...(input.Value != null && { Value: input.Value }),
|
|
1523
|
-
};
|
|
1524
|
-
};
|
|
1525
|
-
const se_TagKeyListType = (input, context) => {
|
|
1526
|
-
return input
|
|
1527
|
-
.filter((e) => e != null)
|
|
1528
|
-
.map((entry) => {
|
|
1529
|
-
return entry;
|
|
1530
|
-
});
|
|
1531
|
-
};
|
|
1532
|
-
const se_TagListType = (input, context) => {
|
|
1533
|
-
return input
|
|
1534
|
-
.filter((e) => e != null)
|
|
1535
|
-
.map((entry) => {
|
|
1536
|
-
return se_Tag(entry, context);
|
|
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: [],
|
|
1537
1272
|
});
|
|
1538
1273
|
};
|
|
1539
|
-
const se_TagResourceRequest = (input, context) => {
|
|
1540
|
-
return {
|
|
1541
|
-
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1542
|
-
...(input.Tags != null && { Tags: se_TagListType(input.Tags, context) }),
|
|
1543
|
-
};
|
|
1544
|
-
};
|
|
1545
|
-
const se_UntagResourceRequest = (input, context) => {
|
|
1546
|
-
return {
|
|
1547
|
-
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1548
|
-
...(input.TagKeys != null && { TagKeys: se_TagKeyListType(input.TagKeys, context) }),
|
|
1549
|
-
};
|
|
1550
|
-
};
|
|
1551
1274
|
const se_UpdateSecretRequest = (input, context) => {
|
|
1552
|
-
return {
|
|
1553
|
-
ClientRequestToken:
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
};
|
|
1560
|
-
};
|
|
1561
|
-
const se_UpdateSecretVersionStageRequest = (input, context) => {
|
|
1562
|
-
return {
|
|
1563
|
-
...(input.MoveToVersionId != null && { MoveToVersionId: input.MoveToVersionId }),
|
|
1564
|
-
...(input.RemoveFromVersionId != null && { RemoveFromVersionId: input.RemoveFromVersionId }),
|
|
1565
|
-
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1566
|
-
...(input.VersionStage != null && { VersionStage: input.VersionStage }),
|
|
1567
|
-
};
|
|
1568
|
-
};
|
|
1569
|
-
const se_ValidateResourcePolicyRequest = (input, context) => {
|
|
1570
|
-
return {
|
|
1571
|
-
...(input.ResourcePolicy != null && { ResourcePolicy: input.ResourcePolicy }),
|
|
1572
|
-
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1573
|
-
};
|
|
1574
|
-
};
|
|
1575
|
-
const de_CancelRotateSecretResponse = (output, context) => {
|
|
1576
|
-
return {
|
|
1577
|
-
ARN: (0, smithy_client_1.expectString)(output.ARN),
|
|
1578
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1579
|
-
VersionId: (0, smithy_client_1.expectString)(output.VersionId),
|
|
1580
|
-
};
|
|
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
|
+
});
|
|
1581
1283
|
};
|
|
1582
1284
|
const de_CreateSecretResponse = (output, context) => {
|
|
1583
|
-
return {
|
|
1584
|
-
ARN:
|
|
1585
|
-
Name:
|
|
1586
|
-
ReplicationStatus:
|
|
1587
|
-
VersionId:
|
|
1588
|
-
};
|
|
1589
|
-
};
|
|
1590
|
-
const de_DecryptionFailure = (output, context) => {
|
|
1591
|
-
return {
|
|
1592
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1593
|
-
};
|
|
1594
|
-
};
|
|
1595
|
-
const de_DeleteResourcePolicyResponse = (output, context) => {
|
|
1596
|
-
return {
|
|
1597
|
-
ARN: (0, smithy_client_1.expectString)(output.ARN),
|
|
1598
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1599
|
-
};
|
|
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
|
+
});
|
|
1600
1291
|
};
|
|
1601
1292
|
const de_DeleteSecretResponse = (output, context) => {
|
|
1602
|
-
return {
|
|
1603
|
-
ARN:
|
|
1604
|
-
DeletionDate:
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1608
|
-
};
|
|
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
|
+
});
|
|
1609
1298
|
};
|
|
1610
1299
|
const de_DescribeSecretResponse = (output, context) => {
|
|
1611
|
-
return {
|
|
1612
|
-
ARN:
|
|
1613
|
-
CreatedDate:
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
NextRotationDate: output.NextRotationDate != null
|
|
1632
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.NextRotationDate)))
|
|
1633
|
-
: undefined,
|
|
1634
|
-
OwningService: (0, smithy_client_1.expectString)(output.OwningService),
|
|
1635
|
-
PrimaryRegion: (0, smithy_client_1.expectString)(output.PrimaryRegion),
|
|
1636
|
-
ReplicationStatus: output.ReplicationStatus != null ? de_ReplicationStatusListType(output.ReplicationStatus, context) : undefined,
|
|
1637
|
-
RotationEnabled: (0, smithy_client_1.expectBoolean)(output.RotationEnabled),
|
|
1638
|
-
RotationLambdaARN: (0, smithy_client_1.expectString)(output.RotationLambdaARN),
|
|
1639
|
-
RotationRules: output.RotationRules != null ? de_RotationRulesType(output.RotationRules, context) : undefined,
|
|
1640
|
-
Tags: output.Tags != null ? de_TagListType(output.Tags, context) : undefined,
|
|
1641
|
-
VersionIdsToStages: output.VersionIdsToStages != null
|
|
1642
|
-
? de_SecretVersionsToStagesMapType(output.VersionIdsToStages, context)
|
|
1643
|
-
: undefined,
|
|
1644
|
-
};
|
|
1645
|
-
};
|
|
1646
|
-
const de_EncryptionFailure = (output, context) => {
|
|
1647
|
-
return {
|
|
1648
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1649
|
-
};
|
|
1650
|
-
};
|
|
1651
|
-
const de_GetRandomPasswordResponse = (output, context) => {
|
|
1652
|
-
return {
|
|
1653
|
-
RandomPassword: (0, smithy_client_1.expectString)(output.RandomPassword),
|
|
1654
|
-
};
|
|
1655
|
-
};
|
|
1656
|
-
const de_GetResourcePolicyResponse = (output, context) => {
|
|
1657
|
-
return {
|
|
1658
|
-
ARN: (0, smithy_client_1.expectString)(output.ARN),
|
|
1659
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1660
|
-
ResourcePolicy: (0, smithy_client_1.expectString)(output.ResourcePolicy),
|
|
1661
|
-
};
|
|
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
|
+
});
|
|
1662
1320
|
};
|
|
1663
1321
|
const de_GetSecretValueResponse = (output, context) => {
|
|
1664
|
-
return {
|
|
1665
|
-
ARN:
|
|
1666
|
-
CreatedDate:
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
VersionId: (0, smithy_client_1.expectString)(output.VersionId),
|
|
1673
|
-
VersionStages: output.VersionStages != null ? de_SecretVersionStagesType(output.VersionStages, context) : undefined,
|
|
1674
|
-
};
|
|
1675
|
-
};
|
|
1676
|
-
const de_InternalServiceError = (output, context) => {
|
|
1677
|
-
return {
|
|
1678
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1679
|
-
};
|
|
1680
|
-
};
|
|
1681
|
-
const de_InvalidNextTokenException = (output, context) => {
|
|
1682
|
-
return {
|
|
1683
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1684
|
-
};
|
|
1685
|
-
};
|
|
1686
|
-
const de_InvalidParameterException = (output, context) => {
|
|
1687
|
-
return {
|
|
1688
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1689
|
-
};
|
|
1690
|
-
};
|
|
1691
|
-
const de_InvalidRequestException = (output, context) => {
|
|
1692
|
-
return {
|
|
1693
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1694
|
-
};
|
|
1695
|
-
};
|
|
1696
|
-
const de_KmsKeyIdListType = (output, context) => {
|
|
1697
|
-
const retVal = (output || [])
|
|
1698
|
-
.filter((e) => e != null)
|
|
1699
|
-
.map((entry) => {
|
|
1700
|
-
if (entry === null) {
|
|
1701
|
-
return null;
|
|
1702
|
-
}
|
|
1703
|
-
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,
|
|
1704
1330
|
});
|
|
1705
|
-
return retVal;
|
|
1706
|
-
};
|
|
1707
|
-
const de_LimitExceededException = (output, context) => {
|
|
1708
|
-
return {
|
|
1709
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1710
|
-
};
|
|
1711
1331
|
};
|
|
1712
1332
|
const de_ListSecretsResponse = (output, context) => {
|
|
1713
|
-
return {
|
|
1714
|
-
NextToken:
|
|
1715
|
-
SecretList:
|
|
1716
|
-
};
|
|
1333
|
+
return (0, smithy_client_1.take)(output, {
|
|
1334
|
+
NextToken: smithy_client_1.expectString,
|
|
1335
|
+
SecretList: (_) => de_SecretListType(_, context),
|
|
1336
|
+
});
|
|
1717
1337
|
};
|
|
1718
1338
|
const de_ListSecretVersionIdsResponse = (output, context) => {
|
|
1719
|
-
return {
|
|
1720
|
-
ARN:
|
|
1721
|
-
Name:
|
|
1722
|
-
NextToken:
|
|
1723
|
-
Versions:
|
|
1724
|
-
};
|
|
1725
|
-
};
|
|
1726
|
-
const de_MalformedPolicyDocumentException = (output, context) => {
|
|
1727
|
-
return {
|
|
1728
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1729
|
-
};
|
|
1730
|
-
};
|
|
1731
|
-
const de_PreconditionNotMetException = (output, context) => {
|
|
1732
|
-
return {
|
|
1733
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1734
|
-
};
|
|
1735
|
-
};
|
|
1736
|
-
const de_PublicPolicyException = (output, context) => {
|
|
1737
|
-
return {
|
|
1738
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1739
|
-
};
|
|
1740
|
-
};
|
|
1741
|
-
const de_PutResourcePolicyResponse = (output, context) => {
|
|
1742
|
-
return {
|
|
1743
|
-
ARN: (0, smithy_client_1.expectString)(output.ARN),
|
|
1744
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1745
|
-
};
|
|
1746
|
-
};
|
|
1747
|
-
const de_PutSecretValueResponse = (output, context) => {
|
|
1748
|
-
return {
|
|
1749
|
-
ARN: (0, smithy_client_1.expectString)(output.ARN),
|
|
1750
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1751
|
-
VersionId: (0, smithy_client_1.expectString)(output.VersionId),
|
|
1752
|
-
VersionStages: output.VersionStages != null ? de_SecretVersionStagesType(output.VersionStages, context) : undefined,
|
|
1753
|
-
};
|
|
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
|
+
});
|
|
1754
1345
|
};
|
|
1755
1346
|
const de_RemoveRegionsFromReplicationResponse = (output, context) => {
|
|
1756
|
-
return {
|
|
1757
|
-
ARN:
|
|
1758
|
-
ReplicationStatus:
|
|
1759
|
-
};
|
|
1347
|
+
return (0, smithy_client_1.take)(output, {
|
|
1348
|
+
ARN: smithy_client_1.expectString,
|
|
1349
|
+
ReplicationStatus: (_) => de_ReplicationStatusListType(_, context),
|
|
1350
|
+
});
|
|
1760
1351
|
};
|
|
1761
1352
|
const de_ReplicateSecretToRegionsResponse = (output, context) => {
|
|
1762
|
-
return {
|
|
1763
|
-
ARN:
|
|
1764
|
-
ReplicationStatus:
|
|
1765
|
-
};
|
|
1353
|
+
return (0, smithy_client_1.take)(output, {
|
|
1354
|
+
ARN: smithy_client_1.expectString,
|
|
1355
|
+
ReplicationStatus: (_) => de_ReplicationStatusListType(_, context),
|
|
1356
|
+
});
|
|
1766
1357
|
};
|
|
1767
1358
|
const de_ReplicationStatusListType = (output, context) => {
|
|
1768
1359
|
const retVal = (output || [])
|
|
1769
1360
|
.filter((e) => e != null)
|
|
1770
1361
|
.map((entry) => {
|
|
1771
|
-
if (entry === null) {
|
|
1772
|
-
return null;
|
|
1773
|
-
}
|
|
1774
1362
|
return de_ReplicationStatusType(entry, context);
|
|
1775
1363
|
});
|
|
1776
1364
|
return retVal;
|
|
1777
1365
|
};
|
|
1778
1366
|
const de_ReplicationStatusType = (output, context) => {
|
|
1779
|
-
return {
|
|
1780
|
-
KmsKeyId:
|
|
1781
|
-
LastAccessedDate:
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
1787
|
-
};
|
|
1788
|
-
};
|
|
1789
|
-
const de_ResourceExistsException = (output, context) => {
|
|
1790
|
-
return {
|
|
1791
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1792
|
-
};
|
|
1793
|
-
};
|
|
1794
|
-
const de_ResourceNotFoundException = (output, context) => {
|
|
1795
|
-
return {
|
|
1796
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1797
|
-
};
|
|
1798
|
-
};
|
|
1799
|
-
const de_RestoreSecretResponse = (output, context) => {
|
|
1800
|
-
return {
|
|
1801
|
-
ARN: (0, smithy_client_1.expectString)(output.ARN),
|
|
1802
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1803
|
-
};
|
|
1804
|
-
};
|
|
1805
|
-
const de_RotateSecretResponse = (output, context) => {
|
|
1806
|
-
return {
|
|
1807
|
-
ARN: (0, smithy_client_1.expectString)(output.ARN),
|
|
1808
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1809
|
-
VersionId: (0, smithy_client_1.expectString)(output.VersionId),
|
|
1810
|
-
};
|
|
1811
|
-
};
|
|
1812
|
-
const de_RotationRulesType = (output, context) => {
|
|
1813
|
-
return {
|
|
1814
|
-
AutomaticallyAfterDays: (0, smithy_client_1.expectLong)(output.AutomaticallyAfterDays),
|
|
1815
|
-
Duration: (0, smithy_client_1.expectString)(output.Duration),
|
|
1816
|
-
ScheduleExpression: (0, smithy_client_1.expectString)(output.ScheduleExpression),
|
|
1817
|
-
};
|
|
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
|
+
});
|
|
1818
1374
|
};
|
|
1819
1375
|
const de_SecretListEntry = (output, context) => {
|
|
1820
|
-
return {
|
|
1821
|
-
ARN:
|
|
1822
|
-
CreatedDate:
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1840
|
-
NextRotationDate: output.NextRotationDate != null
|
|
1841
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.NextRotationDate)))
|
|
1842
|
-
: undefined,
|
|
1843
|
-
OwningService: (0, smithy_client_1.expectString)(output.OwningService),
|
|
1844
|
-
PrimaryRegion: (0, smithy_client_1.expectString)(output.PrimaryRegion),
|
|
1845
|
-
RotationEnabled: (0, smithy_client_1.expectBoolean)(output.RotationEnabled),
|
|
1846
|
-
RotationLambdaARN: (0, smithy_client_1.expectString)(output.RotationLambdaARN),
|
|
1847
|
-
RotationRules: output.RotationRules != null ? de_RotationRulesType(output.RotationRules, context) : undefined,
|
|
1848
|
-
SecretVersionsToStages: output.SecretVersionsToStages != null
|
|
1849
|
-
? de_SecretVersionsToStagesMapType(output.SecretVersionsToStages, context)
|
|
1850
|
-
: undefined,
|
|
1851
|
-
Tags: output.Tags != null ? de_TagListType(output.Tags, context) : undefined,
|
|
1852
|
-
};
|
|
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
|
+
});
|
|
1853
1395
|
};
|
|
1854
1396
|
const de_SecretListType = (output, context) => {
|
|
1855
1397
|
const retVal = (output || [])
|
|
1856
1398
|
.filter((e) => e != null)
|
|
1857
1399
|
.map((entry) => {
|
|
1858
|
-
if (entry === null) {
|
|
1859
|
-
return null;
|
|
1860
|
-
}
|
|
1861
1400
|
return de_SecretListEntry(entry, context);
|
|
1862
1401
|
});
|
|
1863
1402
|
return retVal;
|
|
1864
1403
|
};
|
|
1865
1404
|
const de_SecretVersionsListEntry = (output, context) => {
|
|
1866
|
-
return {
|
|
1867
|
-
CreatedDate:
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
: undefined,
|
|
1874
|
-
VersionId: (0, smithy_client_1.expectString)(output.VersionId),
|
|
1875
|
-
VersionStages: output.VersionStages != null ? de_SecretVersionStagesType(output.VersionStages, context) : undefined,
|
|
1876
|
-
};
|
|
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
|
+
});
|
|
1877
1412
|
};
|
|
1878
1413
|
const de_SecretVersionsListType = (output, context) => {
|
|
1879
1414
|
const retVal = (output || [])
|
|
1880
1415
|
.filter((e) => e != null)
|
|
1881
1416
|
.map((entry) => {
|
|
1882
|
-
if (entry === null) {
|
|
1883
|
-
return null;
|
|
1884
|
-
}
|
|
1885
1417
|
return de_SecretVersionsListEntry(entry, context);
|
|
1886
1418
|
});
|
|
1887
1419
|
return retVal;
|
|
1888
1420
|
};
|
|
1889
|
-
const de_SecretVersionStagesType = (output, context) => {
|
|
1890
|
-
const retVal = (output || [])
|
|
1891
|
-
.filter((e) => e != null)
|
|
1892
|
-
.map((entry) => {
|
|
1893
|
-
if (entry === null) {
|
|
1894
|
-
return null;
|
|
1895
|
-
}
|
|
1896
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1897
|
-
});
|
|
1898
|
-
return retVal;
|
|
1899
|
-
};
|
|
1900
|
-
const de_SecretVersionsToStagesMapType = (output, context) => {
|
|
1901
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1902
|
-
if (value === null) {
|
|
1903
|
-
return acc;
|
|
1904
|
-
}
|
|
1905
|
-
acc[key] = de_SecretVersionStagesType(value, context);
|
|
1906
|
-
return acc;
|
|
1907
|
-
}, {});
|
|
1908
|
-
};
|
|
1909
|
-
const de_StopReplicationToReplicaResponse = (output, context) => {
|
|
1910
|
-
return {
|
|
1911
|
-
ARN: (0, smithy_client_1.expectString)(output.ARN),
|
|
1912
|
-
};
|
|
1913
|
-
};
|
|
1914
|
-
const de_Tag = (output, context) => {
|
|
1915
|
-
return {
|
|
1916
|
-
Key: (0, smithy_client_1.expectString)(output.Key),
|
|
1917
|
-
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
1918
|
-
};
|
|
1919
|
-
};
|
|
1920
|
-
const de_TagListType = (output, context) => {
|
|
1921
|
-
const retVal = (output || [])
|
|
1922
|
-
.filter((e) => e != null)
|
|
1923
|
-
.map((entry) => {
|
|
1924
|
-
if (entry === null) {
|
|
1925
|
-
return null;
|
|
1926
|
-
}
|
|
1927
|
-
return de_Tag(entry, context);
|
|
1928
|
-
});
|
|
1929
|
-
return retVal;
|
|
1930
|
-
};
|
|
1931
|
-
const de_UpdateSecretResponse = (output, context) => {
|
|
1932
|
-
return {
|
|
1933
|
-
ARN: (0, smithy_client_1.expectString)(output.ARN),
|
|
1934
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1935
|
-
VersionId: (0, smithy_client_1.expectString)(output.VersionId),
|
|
1936
|
-
};
|
|
1937
|
-
};
|
|
1938
|
-
const de_UpdateSecretVersionStageResponse = (output, context) => {
|
|
1939
|
-
return {
|
|
1940
|
-
ARN: (0, smithy_client_1.expectString)(output.ARN),
|
|
1941
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1942
|
-
};
|
|
1943
|
-
};
|
|
1944
|
-
const de_ValidateResourcePolicyResponse = (output, context) => {
|
|
1945
|
-
return {
|
|
1946
|
-
PolicyValidationPassed: (0, smithy_client_1.expectBoolean)(output.PolicyValidationPassed),
|
|
1947
|
-
ValidationErrors: output.ValidationErrors != null ? de_ValidationErrorsType(output.ValidationErrors, context) : undefined,
|
|
1948
|
-
};
|
|
1949
|
-
};
|
|
1950
|
-
const de_ValidationErrorsEntry = (output, context) => {
|
|
1951
|
-
return {
|
|
1952
|
-
CheckName: (0, smithy_client_1.expectString)(output.CheckName),
|
|
1953
|
-
ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
|
|
1954
|
-
};
|
|
1955
|
-
};
|
|
1956
|
-
const de_ValidationErrorsType = (output, context) => {
|
|
1957
|
-
const retVal = (output || [])
|
|
1958
|
-
.filter((e) => e != null)
|
|
1959
|
-
.map((entry) => {
|
|
1960
|
-
if (entry === null) {
|
|
1961
|
-
return null;
|
|
1962
|
-
}
|
|
1963
|
-
return de_ValidationErrorsEntry(entry, context);
|
|
1964
|
-
});
|
|
1965
|
-
return retVal;
|
|
1966
|
-
};
|
|
1967
1421
|
const deserializeMetadata = (output) => ({
|
|
1968
1422
|
httpStatusCode: output.statusCode,
|
|
1969
1423
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
@@ -1977,6 +1431,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
1977
1431
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
1978
1432
|
};
|
|
1979
1433
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1434
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(SecretsManagerServiceException_1.SecretsManagerServiceException);
|
|
1980
1435
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
1981
1436
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1982
1437
|
const contents = {
|
|
@@ -1995,6 +1450,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
1995
1450
|
}
|
|
1996
1451
|
return new protocol_http_1.HttpRequest(contents);
|
|
1997
1452
|
};
|
|
1453
|
+
function sharedHeaders(operation) {
|
|
1454
|
+
return {
|
|
1455
|
+
"content-type": "application/x-amz-json-1.1",
|
|
1456
|
+
"x-amz-target": `secretsmanager.${operation}`,
|
|
1457
|
+
};
|
|
1458
|
+
}
|
|
1998
1459
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1999
1460
|
if (encoded.length) {
|
|
2000
1461
|
return JSON.parse(encoded);
|