@aws-sdk/client-secrets-manager 3.306.0 → 3.310.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/commands/CancelRotateSecretCommand.js +2 -2
- package/dist-cjs/commands/CreateSecretCommand.js +2 -2
- package/dist-cjs/commands/DeleteResourcePolicyCommand.js +2 -2
- package/dist-cjs/commands/DeleteSecretCommand.js +2 -2
- package/dist-cjs/commands/DescribeSecretCommand.js +2 -2
- package/dist-cjs/commands/GetRandomPasswordCommand.js +2 -2
- package/dist-cjs/commands/GetResourcePolicyCommand.js +2 -2
- package/dist-cjs/commands/GetSecretValueCommand.js +2 -2
- package/dist-cjs/commands/ListSecretVersionIdsCommand.js +2 -2
- package/dist-cjs/commands/ListSecretsCommand.js +2 -2
- package/dist-cjs/commands/PutResourcePolicyCommand.js +2 -2
- package/dist-cjs/commands/PutSecretValueCommand.js +2 -2
- package/dist-cjs/commands/RemoveRegionsFromReplicationCommand.js +2 -2
- package/dist-cjs/commands/ReplicateSecretToRegionsCommand.js +2 -2
- package/dist-cjs/commands/RestoreSecretCommand.js +2 -2
- package/dist-cjs/commands/RotateSecretCommand.js +2 -2
- package/dist-cjs/commands/StopReplicationToReplicaCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateSecretCommand.js +2 -2
- package/dist-cjs/commands/UpdateSecretVersionStageCommand.js +2 -2
- package/dist-cjs/commands/ValidateResourcePolicyCommand.js +2 -2
- package/dist-cjs/protocols/Aws_json1_1.js +420 -440
- package/dist-es/commands/CancelRotateSecretCommand.js +3 -3
- package/dist-es/commands/CreateSecretCommand.js +3 -3
- package/dist-es/commands/DeleteResourcePolicyCommand.js +3 -3
- package/dist-es/commands/DeleteSecretCommand.js +3 -3
- package/dist-es/commands/DescribeSecretCommand.js +3 -3
- package/dist-es/commands/GetRandomPasswordCommand.js +3 -3
- package/dist-es/commands/GetResourcePolicyCommand.js +3 -3
- package/dist-es/commands/GetSecretValueCommand.js +3 -3
- package/dist-es/commands/ListSecretVersionIdsCommand.js +3 -3
- package/dist-es/commands/ListSecretsCommand.js +3 -3
- package/dist-es/commands/PutResourcePolicyCommand.js +3 -3
- package/dist-es/commands/PutSecretValueCommand.js +3 -3
- package/dist-es/commands/RemoveRegionsFromReplicationCommand.js +3 -3
- package/dist-es/commands/ReplicateSecretToRegionsCommand.js +3 -3
- package/dist-es/commands/RestoreSecretCommand.js +3 -3
- package/dist-es/commands/RotateSecretCommand.js +3 -3
- package/dist-es/commands/StopReplicationToReplicaCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateSecretCommand.js +3 -3
- package/dist-es/commands/UpdateSecretVersionStageCommand.js +3 -3
- package/dist-es/commands/ValidateResourcePolicyCommand.js +3 -3
- package/dist-es/protocols/Aws_json1_1.js +375 -395
- package/dist-types/protocols/Aws_json1_1.d.ts +176 -44
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +44 -44
- package/package.json +35 -35
|
@@ -3,218 +3,218 @@ import { decorateServiceException as __decorateServiceException, expectBoolean a
|
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
4
|
import { DecryptionFailure, EncryptionFailure, InternalServiceError, InvalidNextTokenException, InvalidParameterException, InvalidRequestException, LimitExceededException, MalformedPolicyDocumentException, PreconditionNotMetException, PublicPolicyException, ResourceExistsException, ResourceNotFoundException, } from "../models/models_0";
|
|
5
5
|
import { SecretsManagerServiceException as __BaseException } from "../models/SecretsManagerServiceException";
|
|
6
|
-
export const
|
|
6
|
+
export const se_CancelRotateSecretCommand = async (input, context) => {
|
|
7
7
|
const headers = {
|
|
8
8
|
"content-type": "application/x-amz-json-1.1",
|
|
9
9
|
"x-amz-target": "secretsmanager.CancelRotateSecret",
|
|
10
10
|
};
|
|
11
11
|
let body;
|
|
12
|
-
body = JSON.stringify(
|
|
12
|
+
body = JSON.stringify(se_CancelRotateSecretRequest(input, context));
|
|
13
13
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
14
14
|
};
|
|
15
|
-
export const
|
|
15
|
+
export const se_CreateSecretCommand = async (input, context) => {
|
|
16
16
|
const headers = {
|
|
17
17
|
"content-type": "application/x-amz-json-1.1",
|
|
18
18
|
"x-amz-target": "secretsmanager.CreateSecret",
|
|
19
19
|
};
|
|
20
20
|
let body;
|
|
21
|
-
body = JSON.stringify(
|
|
21
|
+
body = JSON.stringify(se_CreateSecretRequest(input, context));
|
|
22
22
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
23
23
|
};
|
|
24
|
-
export const
|
|
24
|
+
export const se_DeleteResourcePolicyCommand = async (input, context) => {
|
|
25
25
|
const headers = {
|
|
26
26
|
"content-type": "application/x-amz-json-1.1",
|
|
27
27
|
"x-amz-target": "secretsmanager.DeleteResourcePolicy",
|
|
28
28
|
};
|
|
29
29
|
let body;
|
|
30
|
-
body = JSON.stringify(
|
|
30
|
+
body = JSON.stringify(se_DeleteResourcePolicyRequest(input, context));
|
|
31
31
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
32
32
|
};
|
|
33
|
-
export const
|
|
33
|
+
export const se_DeleteSecretCommand = async (input, context) => {
|
|
34
34
|
const headers = {
|
|
35
35
|
"content-type": "application/x-amz-json-1.1",
|
|
36
36
|
"x-amz-target": "secretsmanager.DeleteSecret",
|
|
37
37
|
};
|
|
38
38
|
let body;
|
|
39
|
-
body = JSON.stringify(
|
|
39
|
+
body = JSON.stringify(se_DeleteSecretRequest(input, context));
|
|
40
40
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
41
|
};
|
|
42
|
-
export const
|
|
42
|
+
export const se_DescribeSecretCommand = async (input, context) => {
|
|
43
43
|
const headers = {
|
|
44
44
|
"content-type": "application/x-amz-json-1.1",
|
|
45
45
|
"x-amz-target": "secretsmanager.DescribeSecret",
|
|
46
46
|
};
|
|
47
47
|
let body;
|
|
48
|
-
body = JSON.stringify(
|
|
48
|
+
body = JSON.stringify(se_DescribeSecretRequest(input, context));
|
|
49
49
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
50
50
|
};
|
|
51
|
-
export const
|
|
51
|
+
export const se_GetRandomPasswordCommand = async (input, context) => {
|
|
52
52
|
const headers = {
|
|
53
53
|
"content-type": "application/x-amz-json-1.1",
|
|
54
54
|
"x-amz-target": "secretsmanager.GetRandomPassword",
|
|
55
55
|
};
|
|
56
56
|
let body;
|
|
57
|
-
body = JSON.stringify(
|
|
57
|
+
body = JSON.stringify(se_GetRandomPasswordRequest(input, context));
|
|
58
58
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
59
59
|
};
|
|
60
|
-
export const
|
|
60
|
+
export const se_GetResourcePolicyCommand = async (input, context) => {
|
|
61
61
|
const headers = {
|
|
62
62
|
"content-type": "application/x-amz-json-1.1",
|
|
63
63
|
"x-amz-target": "secretsmanager.GetResourcePolicy",
|
|
64
64
|
};
|
|
65
65
|
let body;
|
|
66
|
-
body = JSON.stringify(
|
|
66
|
+
body = JSON.stringify(se_GetResourcePolicyRequest(input, context));
|
|
67
67
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
68
68
|
};
|
|
69
|
-
export const
|
|
69
|
+
export const se_GetSecretValueCommand = async (input, context) => {
|
|
70
70
|
const headers = {
|
|
71
71
|
"content-type": "application/x-amz-json-1.1",
|
|
72
72
|
"x-amz-target": "secretsmanager.GetSecretValue",
|
|
73
73
|
};
|
|
74
74
|
let body;
|
|
75
|
-
body = JSON.stringify(
|
|
75
|
+
body = JSON.stringify(se_GetSecretValueRequest(input, context));
|
|
76
76
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
77
|
};
|
|
78
|
-
export const
|
|
78
|
+
export const se_ListSecretsCommand = async (input, context) => {
|
|
79
79
|
const headers = {
|
|
80
80
|
"content-type": "application/x-amz-json-1.1",
|
|
81
81
|
"x-amz-target": "secretsmanager.ListSecrets",
|
|
82
82
|
};
|
|
83
83
|
let body;
|
|
84
|
-
body = JSON.stringify(
|
|
84
|
+
body = JSON.stringify(se_ListSecretsRequest(input, context));
|
|
85
85
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
86
86
|
};
|
|
87
|
-
export const
|
|
87
|
+
export const se_ListSecretVersionIdsCommand = async (input, context) => {
|
|
88
88
|
const headers = {
|
|
89
89
|
"content-type": "application/x-amz-json-1.1",
|
|
90
90
|
"x-amz-target": "secretsmanager.ListSecretVersionIds",
|
|
91
91
|
};
|
|
92
92
|
let body;
|
|
93
|
-
body = JSON.stringify(
|
|
93
|
+
body = JSON.stringify(se_ListSecretVersionIdsRequest(input, context));
|
|
94
94
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
95
95
|
};
|
|
96
|
-
export const
|
|
96
|
+
export const se_PutResourcePolicyCommand = async (input, context) => {
|
|
97
97
|
const headers = {
|
|
98
98
|
"content-type": "application/x-amz-json-1.1",
|
|
99
99
|
"x-amz-target": "secretsmanager.PutResourcePolicy",
|
|
100
100
|
};
|
|
101
101
|
let body;
|
|
102
|
-
body = JSON.stringify(
|
|
102
|
+
body = JSON.stringify(se_PutResourcePolicyRequest(input, context));
|
|
103
103
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
104
104
|
};
|
|
105
|
-
export const
|
|
105
|
+
export const se_PutSecretValueCommand = async (input, context) => {
|
|
106
106
|
const headers = {
|
|
107
107
|
"content-type": "application/x-amz-json-1.1",
|
|
108
108
|
"x-amz-target": "secretsmanager.PutSecretValue",
|
|
109
109
|
};
|
|
110
110
|
let body;
|
|
111
|
-
body = JSON.stringify(
|
|
111
|
+
body = JSON.stringify(se_PutSecretValueRequest(input, context));
|
|
112
112
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
113
113
|
};
|
|
114
|
-
export const
|
|
114
|
+
export const se_RemoveRegionsFromReplicationCommand = async (input, context) => {
|
|
115
115
|
const headers = {
|
|
116
116
|
"content-type": "application/x-amz-json-1.1",
|
|
117
117
|
"x-amz-target": "secretsmanager.RemoveRegionsFromReplication",
|
|
118
118
|
};
|
|
119
119
|
let body;
|
|
120
|
-
body = JSON.stringify(
|
|
120
|
+
body = JSON.stringify(se_RemoveRegionsFromReplicationRequest(input, context));
|
|
121
121
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
122
122
|
};
|
|
123
|
-
export const
|
|
123
|
+
export const se_ReplicateSecretToRegionsCommand = async (input, context) => {
|
|
124
124
|
const headers = {
|
|
125
125
|
"content-type": "application/x-amz-json-1.1",
|
|
126
126
|
"x-amz-target": "secretsmanager.ReplicateSecretToRegions",
|
|
127
127
|
};
|
|
128
128
|
let body;
|
|
129
|
-
body = JSON.stringify(
|
|
129
|
+
body = JSON.stringify(se_ReplicateSecretToRegionsRequest(input, context));
|
|
130
130
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
131
131
|
};
|
|
132
|
-
export const
|
|
132
|
+
export const se_RestoreSecretCommand = async (input, context) => {
|
|
133
133
|
const headers = {
|
|
134
134
|
"content-type": "application/x-amz-json-1.1",
|
|
135
135
|
"x-amz-target": "secretsmanager.RestoreSecret",
|
|
136
136
|
};
|
|
137
137
|
let body;
|
|
138
|
-
body = JSON.stringify(
|
|
138
|
+
body = JSON.stringify(se_RestoreSecretRequest(input, context));
|
|
139
139
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
140
140
|
};
|
|
141
|
-
export const
|
|
141
|
+
export const se_RotateSecretCommand = async (input, context) => {
|
|
142
142
|
const headers = {
|
|
143
143
|
"content-type": "application/x-amz-json-1.1",
|
|
144
144
|
"x-amz-target": "secretsmanager.RotateSecret",
|
|
145
145
|
};
|
|
146
146
|
let body;
|
|
147
|
-
body = JSON.stringify(
|
|
147
|
+
body = JSON.stringify(se_RotateSecretRequest(input, context));
|
|
148
148
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
149
149
|
};
|
|
150
|
-
export const
|
|
150
|
+
export const se_StopReplicationToReplicaCommand = async (input, context) => {
|
|
151
151
|
const headers = {
|
|
152
152
|
"content-type": "application/x-amz-json-1.1",
|
|
153
153
|
"x-amz-target": "secretsmanager.StopReplicationToReplica",
|
|
154
154
|
};
|
|
155
155
|
let body;
|
|
156
|
-
body = JSON.stringify(
|
|
156
|
+
body = JSON.stringify(se_StopReplicationToReplicaRequest(input, context));
|
|
157
157
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
158
158
|
};
|
|
159
|
-
export const
|
|
159
|
+
export const se_TagResourceCommand = async (input, context) => {
|
|
160
160
|
const headers = {
|
|
161
161
|
"content-type": "application/x-amz-json-1.1",
|
|
162
162
|
"x-amz-target": "secretsmanager.TagResource",
|
|
163
163
|
};
|
|
164
164
|
let body;
|
|
165
|
-
body = JSON.stringify(
|
|
165
|
+
body = JSON.stringify(se_TagResourceRequest(input, context));
|
|
166
166
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
167
167
|
};
|
|
168
|
-
export const
|
|
168
|
+
export const se_UntagResourceCommand = async (input, context) => {
|
|
169
169
|
const headers = {
|
|
170
170
|
"content-type": "application/x-amz-json-1.1",
|
|
171
171
|
"x-amz-target": "secretsmanager.UntagResource",
|
|
172
172
|
};
|
|
173
173
|
let body;
|
|
174
|
-
body = JSON.stringify(
|
|
174
|
+
body = JSON.stringify(se_UntagResourceRequest(input, context));
|
|
175
175
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
176
176
|
};
|
|
177
|
-
export const
|
|
177
|
+
export const se_UpdateSecretCommand = async (input, context) => {
|
|
178
178
|
const headers = {
|
|
179
179
|
"content-type": "application/x-amz-json-1.1",
|
|
180
180
|
"x-amz-target": "secretsmanager.UpdateSecret",
|
|
181
181
|
};
|
|
182
182
|
let body;
|
|
183
|
-
body = JSON.stringify(
|
|
183
|
+
body = JSON.stringify(se_UpdateSecretRequest(input, context));
|
|
184
184
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
185
185
|
};
|
|
186
|
-
export const
|
|
186
|
+
export const se_UpdateSecretVersionStageCommand = async (input, context) => {
|
|
187
187
|
const headers = {
|
|
188
188
|
"content-type": "application/x-amz-json-1.1",
|
|
189
189
|
"x-amz-target": "secretsmanager.UpdateSecretVersionStage",
|
|
190
190
|
};
|
|
191
191
|
let body;
|
|
192
|
-
body = JSON.stringify(
|
|
192
|
+
body = JSON.stringify(se_UpdateSecretVersionStageRequest(input, context));
|
|
193
193
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
194
194
|
};
|
|
195
|
-
export const
|
|
195
|
+
export const se_ValidateResourcePolicyCommand = async (input, context) => {
|
|
196
196
|
const headers = {
|
|
197
197
|
"content-type": "application/x-amz-json-1.1",
|
|
198
198
|
"x-amz-target": "secretsmanager.ValidateResourcePolicy",
|
|
199
199
|
};
|
|
200
200
|
let body;
|
|
201
|
-
body = JSON.stringify(
|
|
201
|
+
body = JSON.stringify(se_ValidateResourcePolicyRequest(input, context));
|
|
202
202
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
203
203
|
};
|
|
204
|
-
export const
|
|
204
|
+
export const de_CancelRotateSecretCommand = async (output, context) => {
|
|
205
205
|
if (output.statusCode >= 300) {
|
|
206
|
-
return
|
|
206
|
+
return de_CancelRotateSecretCommandError(output, context);
|
|
207
207
|
}
|
|
208
208
|
const data = await parseBody(output.body, context);
|
|
209
209
|
let contents = {};
|
|
210
|
-
contents =
|
|
210
|
+
contents = de_CancelRotateSecretResponse(data, context);
|
|
211
211
|
const response = {
|
|
212
212
|
$metadata: deserializeMetadata(output),
|
|
213
213
|
...contents,
|
|
214
214
|
};
|
|
215
215
|
return Promise.resolve(response);
|
|
216
216
|
};
|
|
217
|
-
const
|
|
217
|
+
const de_CancelRotateSecretCommandError = async (output, context) => {
|
|
218
218
|
const parsedOutput = {
|
|
219
219
|
...output,
|
|
220
220
|
body: await parseErrorBody(output.body, context),
|
|
@@ -223,16 +223,16 @@ const deserializeAws_json1_1CancelRotateSecretCommandError = async (output, cont
|
|
|
223
223
|
switch (errorCode) {
|
|
224
224
|
case "InternalServiceError":
|
|
225
225
|
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
226
|
-
throw await
|
|
226
|
+
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
227
227
|
case "InvalidParameterException":
|
|
228
228
|
case "com.amazonaws.secretsmanager#InvalidParameterException":
|
|
229
|
-
throw await
|
|
229
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
230
230
|
case "InvalidRequestException":
|
|
231
231
|
case "com.amazonaws.secretsmanager#InvalidRequestException":
|
|
232
|
-
throw await
|
|
232
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
233
233
|
case "ResourceNotFoundException":
|
|
234
234
|
case "com.amazonaws.secretsmanager#ResourceNotFoundException":
|
|
235
|
-
throw await
|
|
235
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
236
236
|
default:
|
|
237
237
|
const parsedBody = parsedOutput.body;
|
|
238
238
|
throwDefaultError({
|
|
@@ -243,20 +243,20 @@ const deserializeAws_json1_1CancelRotateSecretCommandError = async (output, cont
|
|
|
243
243
|
});
|
|
244
244
|
}
|
|
245
245
|
};
|
|
246
|
-
export const
|
|
246
|
+
export const de_CreateSecretCommand = async (output, context) => {
|
|
247
247
|
if (output.statusCode >= 300) {
|
|
248
|
-
return
|
|
248
|
+
return de_CreateSecretCommandError(output, context);
|
|
249
249
|
}
|
|
250
250
|
const data = await parseBody(output.body, context);
|
|
251
251
|
let contents = {};
|
|
252
|
-
contents =
|
|
252
|
+
contents = de_CreateSecretResponse(data, context);
|
|
253
253
|
const response = {
|
|
254
254
|
$metadata: deserializeMetadata(output),
|
|
255
255
|
...contents,
|
|
256
256
|
};
|
|
257
257
|
return Promise.resolve(response);
|
|
258
258
|
};
|
|
259
|
-
const
|
|
259
|
+
const de_CreateSecretCommandError = async (output, context) => {
|
|
260
260
|
const parsedOutput = {
|
|
261
261
|
...output,
|
|
262
262
|
body: await parseErrorBody(output.body, context),
|
|
@@ -265,34 +265,34 @@ const deserializeAws_json1_1CreateSecretCommandError = async (output, context) =
|
|
|
265
265
|
switch (errorCode) {
|
|
266
266
|
case "DecryptionFailure":
|
|
267
267
|
case "com.amazonaws.secretsmanager#DecryptionFailure":
|
|
268
|
-
throw await
|
|
268
|
+
throw await de_DecryptionFailureRes(parsedOutput, context);
|
|
269
269
|
case "EncryptionFailure":
|
|
270
270
|
case "com.amazonaws.secretsmanager#EncryptionFailure":
|
|
271
|
-
throw await
|
|
271
|
+
throw await de_EncryptionFailureRes(parsedOutput, context);
|
|
272
272
|
case "InternalServiceError":
|
|
273
273
|
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
274
|
-
throw await
|
|
274
|
+
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
275
275
|
case "InvalidParameterException":
|
|
276
276
|
case "com.amazonaws.secretsmanager#InvalidParameterException":
|
|
277
|
-
throw await
|
|
277
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
278
278
|
case "InvalidRequestException":
|
|
279
279
|
case "com.amazonaws.secretsmanager#InvalidRequestException":
|
|
280
|
-
throw await
|
|
280
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
281
281
|
case "LimitExceededException":
|
|
282
282
|
case "com.amazonaws.secretsmanager#LimitExceededException":
|
|
283
|
-
throw await
|
|
283
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
284
284
|
case "MalformedPolicyDocumentException":
|
|
285
285
|
case "com.amazonaws.secretsmanager#MalformedPolicyDocumentException":
|
|
286
|
-
throw await
|
|
286
|
+
throw await de_MalformedPolicyDocumentExceptionRes(parsedOutput, context);
|
|
287
287
|
case "PreconditionNotMetException":
|
|
288
288
|
case "com.amazonaws.secretsmanager#PreconditionNotMetException":
|
|
289
|
-
throw await
|
|
289
|
+
throw await de_PreconditionNotMetExceptionRes(parsedOutput, context);
|
|
290
290
|
case "ResourceExistsException":
|
|
291
291
|
case "com.amazonaws.secretsmanager#ResourceExistsException":
|
|
292
|
-
throw await
|
|
292
|
+
throw await de_ResourceExistsExceptionRes(parsedOutput, context);
|
|
293
293
|
case "ResourceNotFoundException":
|
|
294
294
|
case "com.amazonaws.secretsmanager#ResourceNotFoundException":
|
|
295
|
-
throw await
|
|
295
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
296
296
|
default:
|
|
297
297
|
const parsedBody = parsedOutput.body;
|
|
298
298
|
throwDefaultError({
|
|
@@ -303,20 +303,20 @@ const deserializeAws_json1_1CreateSecretCommandError = async (output, context) =
|
|
|
303
303
|
});
|
|
304
304
|
}
|
|
305
305
|
};
|
|
306
|
-
export const
|
|
306
|
+
export const de_DeleteResourcePolicyCommand = async (output, context) => {
|
|
307
307
|
if (output.statusCode >= 300) {
|
|
308
|
-
return
|
|
308
|
+
return de_DeleteResourcePolicyCommandError(output, context);
|
|
309
309
|
}
|
|
310
310
|
const data = await parseBody(output.body, context);
|
|
311
311
|
let contents = {};
|
|
312
|
-
contents =
|
|
312
|
+
contents = de_DeleteResourcePolicyResponse(data, context);
|
|
313
313
|
const response = {
|
|
314
314
|
$metadata: deserializeMetadata(output),
|
|
315
315
|
...contents,
|
|
316
316
|
};
|
|
317
317
|
return Promise.resolve(response);
|
|
318
318
|
};
|
|
319
|
-
const
|
|
319
|
+
const de_DeleteResourcePolicyCommandError = async (output, context) => {
|
|
320
320
|
const parsedOutput = {
|
|
321
321
|
...output,
|
|
322
322
|
body: await parseErrorBody(output.body, context),
|
|
@@ -325,16 +325,16 @@ const deserializeAws_json1_1DeleteResourcePolicyCommandError = async (output, co
|
|
|
325
325
|
switch (errorCode) {
|
|
326
326
|
case "InternalServiceError":
|
|
327
327
|
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
328
|
-
throw await
|
|
328
|
+
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
329
329
|
case "InvalidParameterException":
|
|
330
330
|
case "com.amazonaws.secretsmanager#InvalidParameterException":
|
|
331
|
-
throw await
|
|
331
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
332
332
|
case "InvalidRequestException":
|
|
333
333
|
case "com.amazonaws.secretsmanager#InvalidRequestException":
|
|
334
|
-
throw await
|
|
334
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
335
335
|
case "ResourceNotFoundException":
|
|
336
336
|
case "com.amazonaws.secretsmanager#ResourceNotFoundException":
|
|
337
|
-
throw await
|
|
337
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
338
338
|
default:
|
|
339
339
|
const parsedBody = parsedOutput.body;
|
|
340
340
|
throwDefaultError({
|
|
@@ -345,20 +345,20 @@ const deserializeAws_json1_1DeleteResourcePolicyCommandError = async (output, co
|
|
|
345
345
|
});
|
|
346
346
|
}
|
|
347
347
|
};
|
|
348
|
-
export const
|
|
348
|
+
export const de_DeleteSecretCommand = async (output, context) => {
|
|
349
349
|
if (output.statusCode >= 300) {
|
|
350
|
-
return
|
|
350
|
+
return de_DeleteSecretCommandError(output, context);
|
|
351
351
|
}
|
|
352
352
|
const data = await parseBody(output.body, context);
|
|
353
353
|
let contents = {};
|
|
354
|
-
contents =
|
|
354
|
+
contents = de_DeleteSecretResponse(data, context);
|
|
355
355
|
const response = {
|
|
356
356
|
$metadata: deserializeMetadata(output),
|
|
357
357
|
...contents,
|
|
358
358
|
};
|
|
359
359
|
return Promise.resolve(response);
|
|
360
360
|
};
|
|
361
|
-
const
|
|
361
|
+
const de_DeleteSecretCommandError = async (output, context) => {
|
|
362
362
|
const parsedOutput = {
|
|
363
363
|
...output,
|
|
364
364
|
body: await parseErrorBody(output.body, context),
|
|
@@ -367,16 +367,16 @@ const deserializeAws_json1_1DeleteSecretCommandError = async (output, context) =
|
|
|
367
367
|
switch (errorCode) {
|
|
368
368
|
case "InternalServiceError":
|
|
369
369
|
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
370
|
-
throw await
|
|
370
|
+
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
371
371
|
case "InvalidParameterException":
|
|
372
372
|
case "com.amazonaws.secretsmanager#InvalidParameterException":
|
|
373
|
-
throw await
|
|
373
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
374
374
|
case "InvalidRequestException":
|
|
375
375
|
case "com.amazonaws.secretsmanager#InvalidRequestException":
|
|
376
|
-
throw await
|
|
376
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
377
377
|
case "ResourceNotFoundException":
|
|
378
378
|
case "com.amazonaws.secretsmanager#ResourceNotFoundException":
|
|
379
|
-
throw await
|
|
379
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
380
380
|
default:
|
|
381
381
|
const parsedBody = parsedOutput.body;
|
|
382
382
|
throwDefaultError({
|
|
@@ -387,20 +387,20 @@ const deserializeAws_json1_1DeleteSecretCommandError = async (output, context) =
|
|
|
387
387
|
});
|
|
388
388
|
}
|
|
389
389
|
};
|
|
390
|
-
export const
|
|
390
|
+
export const de_DescribeSecretCommand = async (output, context) => {
|
|
391
391
|
if (output.statusCode >= 300) {
|
|
392
|
-
return
|
|
392
|
+
return de_DescribeSecretCommandError(output, context);
|
|
393
393
|
}
|
|
394
394
|
const data = await parseBody(output.body, context);
|
|
395
395
|
let contents = {};
|
|
396
|
-
contents =
|
|
396
|
+
contents = de_DescribeSecretResponse(data, context);
|
|
397
397
|
const response = {
|
|
398
398
|
$metadata: deserializeMetadata(output),
|
|
399
399
|
...contents,
|
|
400
400
|
};
|
|
401
401
|
return Promise.resolve(response);
|
|
402
402
|
};
|
|
403
|
-
const
|
|
403
|
+
const de_DescribeSecretCommandError = async (output, context) => {
|
|
404
404
|
const parsedOutput = {
|
|
405
405
|
...output,
|
|
406
406
|
body: await parseErrorBody(output.body, context),
|
|
@@ -409,13 +409,13 @@ const deserializeAws_json1_1DescribeSecretCommandError = async (output, context)
|
|
|
409
409
|
switch (errorCode) {
|
|
410
410
|
case "InternalServiceError":
|
|
411
411
|
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
412
|
-
throw await
|
|
412
|
+
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
413
413
|
case "InvalidParameterException":
|
|
414
414
|
case "com.amazonaws.secretsmanager#InvalidParameterException":
|
|
415
|
-
throw await
|
|
415
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
416
416
|
case "ResourceNotFoundException":
|
|
417
417
|
case "com.amazonaws.secretsmanager#ResourceNotFoundException":
|
|
418
|
-
throw await
|
|
418
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
419
419
|
default:
|
|
420
420
|
const parsedBody = parsedOutput.body;
|
|
421
421
|
throwDefaultError({
|
|
@@ -426,20 +426,20 @@ const deserializeAws_json1_1DescribeSecretCommandError = async (output, context)
|
|
|
426
426
|
});
|
|
427
427
|
}
|
|
428
428
|
};
|
|
429
|
-
export const
|
|
429
|
+
export const de_GetRandomPasswordCommand = async (output, context) => {
|
|
430
430
|
if (output.statusCode >= 300) {
|
|
431
|
-
return
|
|
431
|
+
return de_GetRandomPasswordCommandError(output, context);
|
|
432
432
|
}
|
|
433
433
|
const data = await parseBody(output.body, context);
|
|
434
434
|
let contents = {};
|
|
435
|
-
contents =
|
|
435
|
+
contents = de_GetRandomPasswordResponse(data, context);
|
|
436
436
|
const response = {
|
|
437
437
|
$metadata: deserializeMetadata(output),
|
|
438
438
|
...contents,
|
|
439
439
|
};
|
|
440
440
|
return Promise.resolve(response);
|
|
441
441
|
};
|
|
442
|
-
const
|
|
442
|
+
const de_GetRandomPasswordCommandError = async (output, context) => {
|
|
443
443
|
const parsedOutput = {
|
|
444
444
|
...output,
|
|
445
445
|
body: await parseErrorBody(output.body, context),
|
|
@@ -448,13 +448,13 @@ const deserializeAws_json1_1GetRandomPasswordCommandError = async (output, conte
|
|
|
448
448
|
switch (errorCode) {
|
|
449
449
|
case "InternalServiceError":
|
|
450
450
|
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
451
|
-
throw await
|
|
451
|
+
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
452
452
|
case "InvalidParameterException":
|
|
453
453
|
case "com.amazonaws.secretsmanager#InvalidParameterException":
|
|
454
|
-
throw await
|
|
454
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
455
455
|
case "InvalidRequestException":
|
|
456
456
|
case "com.amazonaws.secretsmanager#InvalidRequestException":
|
|
457
|
-
throw await
|
|
457
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
458
458
|
default:
|
|
459
459
|
const parsedBody = parsedOutput.body;
|
|
460
460
|
throwDefaultError({
|
|
@@ -465,20 +465,20 @@ const deserializeAws_json1_1GetRandomPasswordCommandError = async (output, conte
|
|
|
465
465
|
});
|
|
466
466
|
}
|
|
467
467
|
};
|
|
468
|
-
export const
|
|
468
|
+
export const de_GetResourcePolicyCommand = async (output, context) => {
|
|
469
469
|
if (output.statusCode >= 300) {
|
|
470
|
-
return
|
|
470
|
+
return de_GetResourcePolicyCommandError(output, context);
|
|
471
471
|
}
|
|
472
472
|
const data = await parseBody(output.body, context);
|
|
473
473
|
let contents = {};
|
|
474
|
-
contents =
|
|
474
|
+
contents = de_GetResourcePolicyResponse(data, context);
|
|
475
475
|
const response = {
|
|
476
476
|
$metadata: deserializeMetadata(output),
|
|
477
477
|
...contents,
|
|
478
478
|
};
|
|
479
479
|
return Promise.resolve(response);
|
|
480
480
|
};
|
|
481
|
-
const
|
|
481
|
+
const de_GetResourcePolicyCommandError = async (output, context) => {
|
|
482
482
|
const parsedOutput = {
|
|
483
483
|
...output,
|
|
484
484
|
body: await parseErrorBody(output.body, context),
|
|
@@ -487,16 +487,16 @@ const deserializeAws_json1_1GetResourcePolicyCommandError = async (output, conte
|
|
|
487
487
|
switch (errorCode) {
|
|
488
488
|
case "InternalServiceError":
|
|
489
489
|
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
490
|
-
throw await
|
|
490
|
+
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
491
491
|
case "InvalidParameterException":
|
|
492
492
|
case "com.amazonaws.secretsmanager#InvalidParameterException":
|
|
493
|
-
throw await
|
|
493
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
494
494
|
case "InvalidRequestException":
|
|
495
495
|
case "com.amazonaws.secretsmanager#InvalidRequestException":
|
|
496
|
-
throw await
|
|
496
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
497
497
|
case "ResourceNotFoundException":
|
|
498
498
|
case "com.amazonaws.secretsmanager#ResourceNotFoundException":
|
|
499
|
-
throw await
|
|
499
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
500
500
|
default:
|
|
501
501
|
const parsedBody = parsedOutput.body;
|
|
502
502
|
throwDefaultError({
|
|
@@ -507,20 +507,20 @@ const deserializeAws_json1_1GetResourcePolicyCommandError = async (output, conte
|
|
|
507
507
|
});
|
|
508
508
|
}
|
|
509
509
|
};
|
|
510
|
-
export const
|
|
510
|
+
export const de_GetSecretValueCommand = async (output, context) => {
|
|
511
511
|
if (output.statusCode >= 300) {
|
|
512
|
-
return
|
|
512
|
+
return de_GetSecretValueCommandError(output, context);
|
|
513
513
|
}
|
|
514
514
|
const data = await parseBody(output.body, context);
|
|
515
515
|
let contents = {};
|
|
516
|
-
contents =
|
|
516
|
+
contents = de_GetSecretValueResponse(data, context);
|
|
517
517
|
const response = {
|
|
518
518
|
$metadata: deserializeMetadata(output),
|
|
519
519
|
...contents,
|
|
520
520
|
};
|
|
521
521
|
return Promise.resolve(response);
|
|
522
522
|
};
|
|
523
|
-
const
|
|
523
|
+
const de_GetSecretValueCommandError = async (output, context) => {
|
|
524
524
|
const parsedOutput = {
|
|
525
525
|
...output,
|
|
526
526
|
body: await parseErrorBody(output.body, context),
|
|
@@ -529,19 +529,19 @@ const deserializeAws_json1_1GetSecretValueCommandError = async (output, context)
|
|
|
529
529
|
switch (errorCode) {
|
|
530
530
|
case "DecryptionFailure":
|
|
531
531
|
case "com.amazonaws.secretsmanager#DecryptionFailure":
|
|
532
|
-
throw await
|
|
532
|
+
throw await de_DecryptionFailureRes(parsedOutput, context);
|
|
533
533
|
case "InternalServiceError":
|
|
534
534
|
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
535
|
-
throw await
|
|
535
|
+
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
536
536
|
case "InvalidParameterException":
|
|
537
537
|
case "com.amazonaws.secretsmanager#InvalidParameterException":
|
|
538
|
-
throw await
|
|
538
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
539
539
|
case "InvalidRequestException":
|
|
540
540
|
case "com.amazonaws.secretsmanager#InvalidRequestException":
|
|
541
|
-
throw await
|
|
541
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
542
542
|
case "ResourceNotFoundException":
|
|
543
543
|
case "com.amazonaws.secretsmanager#ResourceNotFoundException":
|
|
544
|
-
throw await
|
|
544
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
545
545
|
default:
|
|
546
546
|
const parsedBody = parsedOutput.body;
|
|
547
547
|
throwDefaultError({
|
|
@@ -552,20 +552,20 @@ const deserializeAws_json1_1GetSecretValueCommandError = async (output, context)
|
|
|
552
552
|
});
|
|
553
553
|
}
|
|
554
554
|
};
|
|
555
|
-
export const
|
|
555
|
+
export const de_ListSecretsCommand = async (output, context) => {
|
|
556
556
|
if (output.statusCode >= 300) {
|
|
557
|
-
return
|
|
557
|
+
return de_ListSecretsCommandError(output, context);
|
|
558
558
|
}
|
|
559
559
|
const data = await parseBody(output.body, context);
|
|
560
560
|
let contents = {};
|
|
561
|
-
contents =
|
|
561
|
+
contents = de_ListSecretsResponse(data, context);
|
|
562
562
|
const response = {
|
|
563
563
|
$metadata: deserializeMetadata(output),
|
|
564
564
|
...contents,
|
|
565
565
|
};
|
|
566
566
|
return Promise.resolve(response);
|
|
567
567
|
};
|
|
568
|
-
const
|
|
568
|
+
const de_ListSecretsCommandError = async (output, context) => {
|
|
569
569
|
const parsedOutput = {
|
|
570
570
|
...output,
|
|
571
571
|
body: await parseErrorBody(output.body, context),
|
|
@@ -574,13 +574,13 @@ const deserializeAws_json1_1ListSecretsCommandError = async (output, context) =>
|
|
|
574
574
|
switch (errorCode) {
|
|
575
575
|
case "InternalServiceError":
|
|
576
576
|
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
577
|
-
throw await
|
|
577
|
+
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
578
578
|
case "InvalidNextTokenException":
|
|
579
579
|
case "com.amazonaws.secretsmanager#InvalidNextTokenException":
|
|
580
|
-
throw await
|
|
580
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
581
581
|
case "InvalidParameterException":
|
|
582
582
|
case "com.amazonaws.secretsmanager#InvalidParameterException":
|
|
583
|
-
throw await
|
|
583
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
584
584
|
default:
|
|
585
585
|
const parsedBody = parsedOutput.body;
|
|
586
586
|
throwDefaultError({
|
|
@@ -591,20 +591,20 @@ const deserializeAws_json1_1ListSecretsCommandError = async (output, context) =>
|
|
|
591
591
|
});
|
|
592
592
|
}
|
|
593
593
|
};
|
|
594
|
-
export const
|
|
594
|
+
export const de_ListSecretVersionIdsCommand = async (output, context) => {
|
|
595
595
|
if (output.statusCode >= 300) {
|
|
596
|
-
return
|
|
596
|
+
return de_ListSecretVersionIdsCommandError(output, context);
|
|
597
597
|
}
|
|
598
598
|
const data = await parseBody(output.body, context);
|
|
599
599
|
let contents = {};
|
|
600
|
-
contents =
|
|
600
|
+
contents = de_ListSecretVersionIdsResponse(data, context);
|
|
601
601
|
const response = {
|
|
602
602
|
$metadata: deserializeMetadata(output),
|
|
603
603
|
...contents,
|
|
604
604
|
};
|
|
605
605
|
return Promise.resolve(response);
|
|
606
606
|
};
|
|
607
|
-
const
|
|
607
|
+
const de_ListSecretVersionIdsCommandError = async (output, context) => {
|
|
608
608
|
const parsedOutput = {
|
|
609
609
|
...output,
|
|
610
610
|
body: await parseErrorBody(output.body, context),
|
|
@@ -613,16 +613,16 @@ const deserializeAws_json1_1ListSecretVersionIdsCommandError = async (output, co
|
|
|
613
613
|
switch (errorCode) {
|
|
614
614
|
case "InternalServiceError":
|
|
615
615
|
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
616
|
-
throw await
|
|
616
|
+
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
617
617
|
case "InvalidNextTokenException":
|
|
618
618
|
case "com.amazonaws.secretsmanager#InvalidNextTokenException":
|
|
619
|
-
throw await
|
|
619
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
620
620
|
case "InvalidParameterException":
|
|
621
621
|
case "com.amazonaws.secretsmanager#InvalidParameterException":
|
|
622
|
-
throw await
|
|
622
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
623
623
|
case "ResourceNotFoundException":
|
|
624
624
|
case "com.amazonaws.secretsmanager#ResourceNotFoundException":
|
|
625
|
-
throw await
|
|
625
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
626
626
|
default:
|
|
627
627
|
const parsedBody = parsedOutput.body;
|
|
628
628
|
throwDefaultError({
|
|
@@ -633,20 +633,20 @@ const deserializeAws_json1_1ListSecretVersionIdsCommandError = async (output, co
|
|
|
633
633
|
});
|
|
634
634
|
}
|
|
635
635
|
};
|
|
636
|
-
export const
|
|
636
|
+
export const de_PutResourcePolicyCommand = async (output, context) => {
|
|
637
637
|
if (output.statusCode >= 300) {
|
|
638
|
-
return
|
|
638
|
+
return de_PutResourcePolicyCommandError(output, context);
|
|
639
639
|
}
|
|
640
640
|
const data = await parseBody(output.body, context);
|
|
641
641
|
let contents = {};
|
|
642
|
-
contents =
|
|
642
|
+
contents = de_PutResourcePolicyResponse(data, context);
|
|
643
643
|
const response = {
|
|
644
644
|
$metadata: deserializeMetadata(output),
|
|
645
645
|
...contents,
|
|
646
646
|
};
|
|
647
647
|
return Promise.resolve(response);
|
|
648
648
|
};
|
|
649
|
-
const
|
|
649
|
+
const de_PutResourcePolicyCommandError = async (output, context) => {
|
|
650
650
|
const parsedOutput = {
|
|
651
651
|
...output,
|
|
652
652
|
body: await parseErrorBody(output.body, context),
|
|
@@ -655,22 +655,22 @@ const deserializeAws_json1_1PutResourcePolicyCommandError = async (output, conte
|
|
|
655
655
|
switch (errorCode) {
|
|
656
656
|
case "InternalServiceError":
|
|
657
657
|
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
658
|
-
throw await
|
|
658
|
+
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
659
659
|
case "InvalidParameterException":
|
|
660
660
|
case "com.amazonaws.secretsmanager#InvalidParameterException":
|
|
661
|
-
throw await
|
|
661
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
662
662
|
case "InvalidRequestException":
|
|
663
663
|
case "com.amazonaws.secretsmanager#InvalidRequestException":
|
|
664
|
-
throw await
|
|
664
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
665
665
|
case "MalformedPolicyDocumentException":
|
|
666
666
|
case "com.amazonaws.secretsmanager#MalformedPolicyDocumentException":
|
|
667
|
-
throw await
|
|
667
|
+
throw await de_MalformedPolicyDocumentExceptionRes(parsedOutput, context);
|
|
668
668
|
case "PublicPolicyException":
|
|
669
669
|
case "com.amazonaws.secretsmanager#PublicPolicyException":
|
|
670
|
-
throw await
|
|
670
|
+
throw await de_PublicPolicyExceptionRes(parsedOutput, context);
|
|
671
671
|
case "ResourceNotFoundException":
|
|
672
672
|
case "com.amazonaws.secretsmanager#ResourceNotFoundException":
|
|
673
|
-
throw await
|
|
673
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
674
674
|
default:
|
|
675
675
|
const parsedBody = parsedOutput.body;
|
|
676
676
|
throwDefaultError({
|
|
@@ -681,20 +681,20 @@ const deserializeAws_json1_1PutResourcePolicyCommandError = async (output, conte
|
|
|
681
681
|
});
|
|
682
682
|
}
|
|
683
683
|
};
|
|
684
|
-
export const
|
|
684
|
+
export const de_PutSecretValueCommand = async (output, context) => {
|
|
685
685
|
if (output.statusCode >= 300) {
|
|
686
|
-
return
|
|
686
|
+
return de_PutSecretValueCommandError(output, context);
|
|
687
687
|
}
|
|
688
688
|
const data = await parseBody(output.body, context);
|
|
689
689
|
let contents = {};
|
|
690
|
-
contents =
|
|
690
|
+
contents = de_PutSecretValueResponse(data, context);
|
|
691
691
|
const response = {
|
|
692
692
|
$metadata: deserializeMetadata(output),
|
|
693
693
|
...contents,
|
|
694
694
|
};
|
|
695
695
|
return Promise.resolve(response);
|
|
696
696
|
};
|
|
697
|
-
const
|
|
697
|
+
const de_PutSecretValueCommandError = async (output, context) => {
|
|
698
698
|
const parsedOutput = {
|
|
699
699
|
...output,
|
|
700
700
|
body: await parseErrorBody(output.body, context),
|
|
@@ -703,28 +703,28 @@ const deserializeAws_json1_1PutSecretValueCommandError = async (output, context)
|
|
|
703
703
|
switch (errorCode) {
|
|
704
704
|
case "DecryptionFailure":
|
|
705
705
|
case "com.amazonaws.secretsmanager#DecryptionFailure":
|
|
706
|
-
throw await
|
|
706
|
+
throw await de_DecryptionFailureRes(parsedOutput, context);
|
|
707
707
|
case "EncryptionFailure":
|
|
708
708
|
case "com.amazonaws.secretsmanager#EncryptionFailure":
|
|
709
|
-
throw await
|
|
709
|
+
throw await de_EncryptionFailureRes(parsedOutput, context);
|
|
710
710
|
case "InternalServiceError":
|
|
711
711
|
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
712
|
-
throw await
|
|
712
|
+
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
713
713
|
case "InvalidParameterException":
|
|
714
714
|
case "com.amazonaws.secretsmanager#InvalidParameterException":
|
|
715
|
-
throw await
|
|
715
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
716
716
|
case "InvalidRequestException":
|
|
717
717
|
case "com.amazonaws.secretsmanager#InvalidRequestException":
|
|
718
|
-
throw await
|
|
718
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
719
719
|
case "LimitExceededException":
|
|
720
720
|
case "com.amazonaws.secretsmanager#LimitExceededException":
|
|
721
|
-
throw await
|
|
721
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
722
722
|
case "ResourceExistsException":
|
|
723
723
|
case "com.amazonaws.secretsmanager#ResourceExistsException":
|
|
724
|
-
throw await
|
|
724
|
+
throw await de_ResourceExistsExceptionRes(parsedOutput, context);
|
|
725
725
|
case "ResourceNotFoundException":
|
|
726
726
|
case "com.amazonaws.secretsmanager#ResourceNotFoundException":
|
|
727
|
-
throw await
|
|
727
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
728
728
|
default:
|
|
729
729
|
const parsedBody = parsedOutput.body;
|
|
730
730
|
throwDefaultError({
|
|
@@ -735,20 +735,20 @@ const deserializeAws_json1_1PutSecretValueCommandError = async (output, context)
|
|
|
735
735
|
});
|
|
736
736
|
}
|
|
737
737
|
};
|
|
738
|
-
export const
|
|
738
|
+
export const de_RemoveRegionsFromReplicationCommand = async (output, context) => {
|
|
739
739
|
if (output.statusCode >= 300) {
|
|
740
|
-
return
|
|
740
|
+
return de_RemoveRegionsFromReplicationCommandError(output, context);
|
|
741
741
|
}
|
|
742
742
|
const data = await parseBody(output.body, context);
|
|
743
743
|
let contents = {};
|
|
744
|
-
contents =
|
|
744
|
+
contents = de_RemoveRegionsFromReplicationResponse(data, context);
|
|
745
745
|
const response = {
|
|
746
746
|
$metadata: deserializeMetadata(output),
|
|
747
747
|
...contents,
|
|
748
748
|
};
|
|
749
749
|
return Promise.resolve(response);
|
|
750
750
|
};
|
|
751
|
-
const
|
|
751
|
+
const de_RemoveRegionsFromReplicationCommandError = async (output, context) => {
|
|
752
752
|
const parsedOutput = {
|
|
753
753
|
...output,
|
|
754
754
|
body: await parseErrorBody(output.body, context),
|
|
@@ -757,16 +757,16 @@ const deserializeAws_json1_1RemoveRegionsFromReplicationCommandError = async (ou
|
|
|
757
757
|
switch (errorCode) {
|
|
758
758
|
case "InternalServiceError":
|
|
759
759
|
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
760
|
-
throw await
|
|
760
|
+
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
761
761
|
case "InvalidParameterException":
|
|
762
762
|
case "com.amazonaws.secretsmanager#InvalidParameterException":
|
|
763
|
-
throw await
|
|
763
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
764
764
|
case "InvalidRequestException":
|
|
765
765
|
case "com.amazonaws.secretsmanager#InvalidRequestException":
|
|
766
|
-
throw await
|
|
766
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
767
767
|
case "ResourceNotFoundException":
|
|
768
768
|
case "com.amazonaws.secretsmanager#ResourceNotFoundException":
|
|
769
|
-
throw await
|
|
769
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
770
770
|
default:
|
|
771
771
|
const parsedBody = parsedOutput.body;
|
|
772
772
|
throwDefaultError({
|
|
@@ -777,20 +777,20 @@ const deserializeAws_json1_1RemoveRegionsFromReplicationCommandError = async (ou
|
|
|
777
777
|
});
|
|
778
778
|
}
|
|
779
779
|
};
|
|
780
|
-
export const
|
|
780
|
+
export const de_ReplicateSecretToRegionsCommand = async (output, context) => {
|
|
781
781
|
if (output.statusCode >= 300) {
|
|
782
|
-
return
|
|
782
|
+
return de_ReplicateSecretToRegionsCommandError(output, context);
|
|
783
783
|
}
|
|
784
784
|
const data = await parseBody(output.body, context);
|
|
785
785
|
let contents = {};
|
|
786
|
-
contents =
|
|
786
|
+
contents = de_ReplicateSecretToRegionsResponse(data, context);
|
|
787
787
|
const response = {
|
|
788
788
|
$metadata: deserializeMetadata(output),
|
|
789
789
|
...contents,
|
|
790
790
|
};
|
|
791
791
|
return Promise.resolve(response);
|
|
792
792
|
};
|
|
793
|
-
const
|
|
793
|
+
const de_ReplicateSecretToRegionsCommandError = async (output, context) => {
|
|
794
794
|
const parsedOutput = {
|
|
795
795
|
...output,
|
|
796
796
|
body: await parseErrorBody(output.body, context),
|
|
@@ -799,16 +799,16 @@ const deserializeAws_json1_1ReplicateSecretToRegionsCommandError = async (output
|
|
|
799
799
|
switch (errorCode) {
|
|
800
800
|
case "InternalServiceError":
|
|
801
801
|
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
802
|
-
throw await
|
|
802
|
+
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
803
803
|
case "InvalidParameterException":
|
|
804
804
|
case "com.amazonaws.secretsmanager#InvalidParameterException":
|
|
805
|
-
throw await
|
|
805
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
806
806
|
case "InvalidRequestException":
|
|
807
807
|
case "com.amazonaws.secretsmanager#InvalidRequestException":
|
|
808
|
-
throw await
|
|
808
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
809
809
|
case "ResourceNotFoundException":
|
|
810
810
|
case "com.amazonaws.secretsmanager#ResourceNotFoundException":
|
|
811
|
-
throw await
|
|
811
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
812
812
|
default:
|
|
813
813
|
const parsedBody = parsedOutput.body;
|
|
814
814
|
throwDefaultError({
|
|
@@ -819,20 +819,20 @@ const deserializeAws_json1_1ReplicateSecretToRegionsCommandError = async (output
|
|
|
819
819
|
});
|
|
820
820
|
}
|
|
821
821
|
};
|
|
822
|
-
export const
|
|
822
|
+
export const de_RestoreSecretCommand = async (output, context) => {
|
|
823
823
|
if (output.statusCode >= 300) {
|
|
824
|
-
return
|
|
824
|
+
return de_RestoreSecretCommandError(output, context);
|
|
825
825
|
}
|
|
826
826
|
const data = await parseBody(output.body, context);
|
|
827
827
|
let contents = {};
|
|
828
|
-
contents =
|
|
828
|
+
contents = de_RestoreSecretResponse(data, context);
|
|
829
829
|
const response = {
|
|
830
830
|
$metadata: deserializeMetadata(output),
|
|
831
831
|
...contents,
|
|
832
832
|
};
|
|
833
833
|
return Promise.resolve(response);
|
|
834
834
|
};
|
|
835
|
-
const
|
|
835
|
+
const de_RestoreSecretCommandError = async (output, context) => {
|
|
836
836
|
const parsedOutput = {
|
|
837
837
|
...output,
|
|
838
838
|
body: await parseErrorBody(output.body, context),
|
|
@@ -841,16 +841,16 @@ const deserializeAws_json1_1RestoreSecretCommandError = async (output, context)
|
|
|
841
841
|
switch (errorCode) {
|
|
842
842
|
case "InternalServiceError":
|
|
843
843
|
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
844
|
-
throw await
|
|
844
|
+
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
845
845
|
case "InvalidParameterException":
|
|
846
846
|
case "com.amazonaws.secretsmanager#InvalidParameterException":
|
|
847
|
-
throw await
|
|
847
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
848
848
|
case "InvalidRequestException":
|
|
849
849
|
case "com.amazonaws.secretsmanager#InvalidRequestException":
|
|
850
|
-
throw await
|
|
850
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
851
851
|
case "ResourceNotFoundException":
|
|
852
852
|
case "com.amazonaws.secretsmanager#ResourceNotFoundException":
|
|
853
|
-
throw await
|
|
853
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
854
854
|
default:
|
|
855
855
|
const parsedBody = parsedOutput.body;
|
|
856
856
|
throwDefaultError({
|
|
@@ -861,20 +861,20 @@ const deserializeAws_json1_1RestoreSecretCommandError = async (output, context)
|
|
|
861
861
|
});
|
|
862
862
|
}
|
|
863
863
|
};
|
|
864
|
-
export const
|
|
864
|
+
export const de_RotateSecretCommand = async (output, context) => {
|
|
865
865
|
if (output.statusCode >= 300) {
|
|
866
|
-
return
|
|
866
|
+
return de_RotateSecretCommandError(output, context);
|
|
867
867
|
}
|
|
868
868
|
const data = await parseBody(output.body, context);
|
|
869
869
|
let contents = {};
|
|
870
|
-
contents =
|
|
870
|
+
contents = de_RotateSecretResponse(data, context);
|
|
871
871
|
const response = {
|
|
872
872
|
$metadata: deserializeMetadata(output),
|
|
873
873
|
...contents,
|
|
874
874
|
};
|
|
875
875
|
return Promise.resolve(response);
|
|
876
876
|
};
|
|
877
|
-
const
|
|
877
|
+
const de_RotateSecretCommandError = async (output, context) => {
|
|
878
878
|
const parsedOutput = {
|
|
879
879
|
...output,
|
|
880
880
|
body: await parseErrorBody(output.body, context),
|
|
@@ -883,16 +883,16 @@ const deserializeAws_json1_1RotateSecretCommandError = async (output, context) =
|
|
|
883
883
|
switch (errorCode) {
|
|
884
884
|
case "InternalServiceError":
|
|
885
885
|
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
886
|
-
throw await
|
|
886
|
+
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
887
887
|
case "InvalidParameterException":
|
|
888
888
|
case "com.amazonaws.secretsmanager#InvalidParameterException":
|
|
889
|
-
throw await
|
|
889
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
890
890
|
case "InvalidRequestException":
|
|
891
891
|
case "com.amazonaws.secretsmanager#InvalidRequestException":
|
|
892
|
-
throw await
|
|
892
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
893
893
|
case "ResourceNotFoundException":
|
|
894
894
|
case "com.amazonaws.secretsmanager#ResourceNotFoundException":
|
|
895
|
-
throw await
|
|
895
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
896
896
|
default:
|
|
897
897
|
const parsedBody = parsedOutput.body;
|
|
898
898
|
throwDefaultError({
|
|
@@ -903,20 +903,20 @@ const deserializeAws_json1_1RotateSecretCommandError = async (output, context) =
|
|
|
903
903
|
});
|
|
904
904
|
}
|
|
905
905
|
};
|
|
906
|
-
export const
|
|
906
|
+
export const de_StopReplicationToReplicaCommand = async (output, context) => {
|
|
907
907
|
if (output.statusCode >= 300) {
|
|
908
|
-
return
|
|
908
|
+
return de_StopReplicationToReplicaCommandError(output, context);
|
|
909
909
|
}
|
|
910
910
|
const data = await parseBody(output.body, context);
|
|
911
911
|
let contents = {};
|
|
912
|
-
contents =
|
|
912
|
+
contents = de_StopReplicationToReplicaResponse(data, context);
|
|
913
913
|
const response = {
|
|
914
914
|
$metadata: deserializeMetadata(output),
|
|
915
915
|
...contents,
|
|
916
916
|
};
|
|
917
917
|
return Promise.resolve(response);
|
|
918
918
|
};
|
|
919
|
-
const
|
|
919
|
+
const de_StopReplicationToReplicaCommandError = async (output, context) => {
|
|
920
920
|
const parsedOutput = {
|
|
921
921
|
...output,
|
|
922
922
|
body: await parseErrorBody(output.body, context),
|
|
@@ -925,16 +925,16 @@ const deserializeAws_json1_1StopReplicationToReplicaCommandError = async (output
|
|
|
925
925
|
switch (errorCode) {
|
|
926
926
|
case "InternalServiceError":
|
|
927
927
|
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
928
|
-
throw await
|
|
928
|
+
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
929
929
|
case "InvalidParameterException":
|
|
930
930
|
case "com.amazonaws.secretsmanager#InvalidParameterException":
|
|
931
|
-
throw await
|
|
931
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
932
932
|
case "InvalidRequestException":
|
|
933
933
|
case "com.amazonaws.secretsmanager#InvalidRequestException":
|
|
934
|
-
throw await
|
|
934
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
935
935
|
case "ResourceNotFoundException":
|
|
936
936
|
case "com.amazonaws.secretsmanager#ResourceNotFoundException":
|
|
937
|
-
throw await
|
|
937
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
938
938
|
default:
|
|
939
939
|
const parsedBody = parsedOutput.body;
|
|
940
940
|
throwDefaultError({
|
|
@@ -945,9 +945,9 @@ const deserializeAws_json1_1StopReplicationToReplicaCommandError = async (output
|
|
|
945
945
|
});
|
|
946
946
|
}
|
|
947
947
|
};
|
|
948
|
-
export const
|
|
948
|
+
export const de_TagResourceCommand = async (output, context) => {
|
|
949
949
|
if (output.statusCode >= 300) {
|
|
950
|
-
return
|
|
950
|
+
return de_TagResourceCommandError(output, context);
|
|
951
951
|
}
|
|
952
952
|
await collectBody(output.body, context);
|
|
953
953
|
const response = {
|
|
@@ -955,7 +955,7 @@ export const deserializeAws_json1_1TagResourceCommand = async (output, context)
|
|
|
955
955
|
};
|
|
956
956
|
return Promise.resolve(response);
|
|
957
957
|
};
|
|
958
|
-
const
|
|
958
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
959
959
|
const parsedOutput = {
|
|
960
960
|
...output,
|
|
961
961
|
body: await parseErrorBody(output.body, context),
|
|
@@ -964,16 +964,16 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
964
964
|
switch (errorCode) {
|
|
965
965
|
case "InternalServiceError":
|
|
966
966
|
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
967
|
-
throw await
|
|
967
|
+
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
968
968
|
case "InvalidParameterException":
|
|
969
969
|
case "com.amazonaws.secretsmanager#InvalidParameterException":
|
|
970
|
-
throw await
|
|
970
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
971
971
|
case "InvalidRequestException":
|
|
972
972
|
case "com.amazonaws.secretsmanager#InvalidRequestException":
|
|
973
|
-
throw await
|
|
973
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
974
974
|
case "ResourceNotFoundException":
|
|
975
975
|
case "com.amazonaws.secretsmanager#ResourceNotFoundException":
|
|
976
|
-
throw await
|
|
976
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
977
977
|
default:
|
|
978
978
|
const parsedBody = parsedOutput.body;
|
|
979
979
|
throwDefaultError({
|
|
@@ -984,9 +984,9 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
984
984
|
});
|
|
985
985
|
}
|
|
986
986
|
};
|
|
987
|
-
export const
|
|
987
|
+
export const de_UntagResourceCommand = async (output, context) => {
|
|
988
988
|
if (output.statusCode >= 300) {
|
|
989
|
-
return
|
|
989
|
+
return de_UntagResourceCommandError(output, context);
|
|
990
990
|
}
|
|
991
991
|
await collectBody(output.body, context);
|
|
992
992
|
const response = {
|
|
@@ -994,7 +994,7 @@ export const deserializeAws_json1_1UntagResourceCommand = async (output, context
|
|
|
994
994
|
};
|
|
995
995
|
return Promise.resolve(response);
|
|
996
996
|
};
|
|
997
|
-
const
|
|
997
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
998
998
|
const parsedOutput = {
|
|
999
999
|
...output,
|
|
1000
1000
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1003,16 +1003,16 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
1003
1003
|
switch (errorCode) {
|
|
1004
1004
|
case "InternalServiceError":
|
|
1005
1005
|
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
1006
|
-
throw await
|
|
1006
|
+
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1007
1007
|
case "InvalidParameterException":
|
|
1008
1008
|
case "com.amazonaws.secretsmanager#InvalidParameterException":
|
|
1009
|
-
throw await
|
|
1009
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1010
1010
|
case "InvalidRequestException":
|
|
1011
1011
|
case "com.amazonaws.secretsmanager#InvalidRequestException":
|
|
1012
|
-
throw await
|
|
1012
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1013
1013
|
case "ResourceNotFoundException":
|
|
1014
1014
|
case "com.amazonaws.secretsmanager#ResourceNotFoundException":
|
|
1015
|
-
throw await
|
|
1015
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1016
1016
|
default:
|
|
1017
1017
|
const parsedBody = parsedOutput.body;
|
|
1018
1018
|
throwDefaultError({
|
|
@@ -1023,20 +1023,20 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
1023
1023
|
});
|
|
1024
1024
|
}
|
|
1025
1025
|
};
|
|
1026
|
-
export const
|
|
1026
|
+
export const de_UpdateSecretCommand = async (output, context) => {
|
|
1027
1027
|
if (output.statusCode >= 300) {
|
|
1028
|
-
return
|
|
1028
|
+
return de_UpdateSecretCommandError(output, context);
|
|
1029
1029
|
}
|
|
1030
1030
|
const data = await parseBody(output.body, context);
|
|
1031
1031
|
let contents = {};
|
|
1032
|
-
contents =
|
|
1032
|
+
contents = de_UpdateSecretResponse(data, context);
|
|
1033
1033
|
const response = {
|
|
1034
1034
|
$metadata: deserializeMetadata(output),
|
|
1035
1035
|
...contents,
|
|
1036
1036
|
};
|
|
1037
1037
|
return Promise.resolve(response);
|
|
1038
1038
|
};
|
|
1039
|
-
const
|
|
1039
|
+
const de_UpdateSecretCommandError = async (output, context) => {
|
|
1040
1040
|
const parsedOutput = {
|
|
1041
1041
|
...output,
|
|
1042
1042
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1045,34 +1045,34 @@ const deserializeAws_json1_1UpdateSecretCommandError = async (output, context) =
|
|
|
1045
1045
|
switch (errorCode) {
|
|
1046
1046
|
case "DecryptionFailure":
|
|
1047
1047
|
case "com.amazonaws.secretsmanager#DecryptionFailure":
|
|
1048
|
-
throw await
|
|
1048
|
+
throw await de_DecryptionFailureRes(parsedOutput, context);
|
|
1049
1049
|
case "EncryptionFailure":
|
|
1050
1050
|
case "com.amazonaws.secretsmanager#EncryptionFailure":
|
|
1051
|
-
throw await
|
|
1051
|
+
throw await de_EncryptionFailureRes(parsedOutput, context);
|
|
1052
1052
|
case "InternalServiceError":
|
|
1053
1053
|
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
1054
|
-
throw await
|
|
1054
|
+
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1055
1055
|
case "InvalidParameterException":
|
|
1056
1056
|
case "com.amazonaws.secretsmanager#InvalidParameterException":
|
|
1057
|
-
throw await
|
|
1057
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1058
1058
|
case "InvalidRequestException":
|
|
1059
1059
|
case "com.amazonaws.secretsmanager#InvalidRequestException":
|
|
1060
|
-
throw await
|
|
1060
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1061
1061
|
case "LimitExceededException":
|
|
1062
1062
|
case "com.amazonaws.secretsmanager#LimitExceededException":
|
|
1063
|
-
throw await
|
|
1063
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1064
1064
|
case "MalformedPolicyDocumentException":
|
|
1065
1065
|
case "com.amazonaws.secretsmanager#MalformedPolicyDocumentException":
|
|
1066
|
-
throw await
|
|
1066
|
+
throw await de_MalformedPolicyDocumentExceptionRes(parsedOutput, context);
|
|
1067
1067
|
case "PreconditionNotMetException":
|
|
1068
1068
|
case "com.amazonaws.secretsmanager#PreconditionNotMetException":
|
|
1069
|
-
throw await
|
|
1069
|
+
throw await de_PreconditionNotMetExceptionRes(parsedOutput, context);
|
|
1070
1070
|
case "ResourceExistsException":
|
|
1071
1071
|
case "com.amazonaws.secretsmanager#ResourceExistsException":
|
|
1072
|
-
throw await
|
|
1072
|
+
throw await de_ResourceExistsExceptionRes(parsedOutput, context);
|
|
1073
1073
|
case "ResourceNotFoundException":
|
|
1074
1074
|
case "com.amazonaws.secretsmanager#ResourceNotFoundException":
|
|
1075
|
-
throw await
|
|
1075
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1076
1076
|
default:
|
|
1077
1077
|
const parsedBody = parsedOutput.body;
|
|
1078
1078
|
throwDefaultError({
|
|
@@ -1083,20 +1083,20 @@ const deserializeAws_json1_1UpdateSecretCommandError = async (output, context) =
|
|
|
1083
1083
|
});
|
|
1084
1084
|
}
|
|
1085
1085
|
};
|
|
1086
|
-
export const
|
|
1086
|
+
export const de_UpdateSecretVersionStageCommand = async (output, context) => {
|
|
1087
1087
|
if (output.statusCode >= 300) {
|
|
1088
|
-
return
|
|
1088
|
+
return de_UpdateSecretVersionStageCommandError(output, context);
|
|
1089
1089
|
}
|
|
1090
1090
|
const data = await parseBody(output.body, context);
|
|
1091
1091
|
let contents = {};
|
|
1092
|
-
contents =
|
|
1092
|
+
contents = de_UpdateSecretVersionStageResponse(data, context);
|
|
1093
1093
|
const response = {
|
|
1094
1094
|
$metadata: deserializeMetadata(output),
|
|
1095
1095
|
...contents,
|
|
1096
1096
|
};
|
|
1097
1097
|
return Promise.resolve(response);
|
|
1098
1098
|
};
|
|
1099
|
-
const
|
|
1099
|
+
const de_UpdateSecretVersionStageCommandError = async (output, context) => {
|
|
1100
1100
|
const parsedOutput = {
|
|
1101
1101
|
...output,
|
|
1102
1102
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1105,19 +1105,19 @@ const deserializeAws_json1_1UpdateSecretVersionStageCommandError = async (output
|
|
|
1105
1105
|
switch (errorCode) {
|
|
1106
1106
|
case "InternalServiceError":
|
|
1107
1107
|
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
1108
|
-
throw await
|
|
1108
|
+
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1109
1109
|
case "InvalidParameterException":
|
|
1110
1110
|
case "com.amazonaws.secretsmanager#InvalidParameterException":
|
|
1111
|
-
throw await
|
|
1111
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1112
1112
|
case "InvalidRequestException":
|
|
1113
1113
|
case "com.amazonaws.secretsmanager#InvalidRequestException":
|
|
1114
|
-
throw await
|
|
1114
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1115
1115
|
case "LimitExceededException":
|
|
1116
1116
|
case "com.amazonaws.secretsmanager#LimitExceededException":
|
|
1117
|
-
throw await
|
|
1117
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1118
1118
|
case "ResourceNotFoundException":
|
|
1119
1119
|
case "com.amazonaws.secretsmanager#ResourceNotFoundException":
|
|
1120
|
-
throw await
|
|
1120
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1121
1121
|
default:
|
|
1122
1122
|
const parsedBody = parsedOutput.body;
|
|
1123
1123
|
throwDefaultError({
|
|
@@ -1128,20 +1128,20 @@ const deserializeAws_json1_1UpdateSecretVersionStageCommandError = async (output
|
|
|
1128
1128
|
});
|
|
1129
1129
|
}
|
|
1130
1130
|
};
|
|
1131
|
-
export const
|
|
1131
|
+
export const de_ValidateResourcePolicyCommand = async (output, context) => {
|
|
1132
1132
|
if (output.statusCode >= 300) {
|
|
1133
|
-
return
|
|
1133
|
+
return de_ValidateResourcePolicyCommandError(output, context);
|
|
1134
1134
|
}
|
|
1135
1135
|
const data = await parseBody(output.body, context);
|
|
1136
1136
|
let contents = {};
|
|
1137
|
-
contents =
|
|
1137
|
+
contents = de_ValidateResourcePolicyResponse(data, context);
|
|
1138
1138
|
const response = {
|
|
1139
1139
|
$metadata: deserializeMetadata(output),
|
|
1140
1140
|
...contents,
|
|
1141
1141
|
};
|
|
1142
1142
|
return Promise.resolve(response);
|
|
1143
1143
|
};
|
|
1144
|
-
const
|
|
1144
|
+
const de_ValidateResourcePolicyCommandError = async (output, context) => {
|
|
1145
1145
|
const parsedOutput = {
|
|
1146
1146
|
...output,
|
|
1147
1147
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1150,19 +1150,19 @@ const deserializeAws_json1_1ValidateResourcePolicyCommandError = async (output,
|
|
|
1150
1150
|
switch (errorCode) {
|
|
1151
1151
|
case "InternalServiceError":
|
|
1152
1152
|
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
1153
|
-
throw await
|
|
1153
|
+
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1154
1154
|
case "InvalidParameterException":
|
|
1155
1155
|
case "com.amazonaws.secretsmanager#InvalidParameterException":
|
|
1156
|
-
throw await
|
|
1156
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1157
1157
|
case "InvalidRequestException":
|
|
1158
1158
|
case "com.amazonaws.secretsmanager#InvalidRequestException":
|
|
1159
|
-
throw await
|
|
1159
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1160
1160
|
case "MalformedPolicyDocumentException":
|
|
1161
1161
|
case "com.amazonaws.secretsmanager#MalformedPolicyDocumentException":
|
|
1162
|
-
throw await
|
|
1162
|
+
throw await de_MalformedPolicyDocumentExceptionRes(parsedOutput, context);
|
|
1163
1163
|
case "ResourceNotFoundException":
|
|
1164
1164
|
case "com.amazonaws.secretsmanager#ResourceNotFoundException":
|
|
1165
|
-
throw await
|
|
1165
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1166
1166
|
default:
|
|
1167
1167
|
const parsedBody = parsedOutput.body;
|
|
1168
1168
|
throwDefaultError({
|
|
@@ -1173,130 +1173,130 @@ const deserializeAws_json1_1ValidateResourcePolicyCommandError = async (output,
|
|
|
1173
1173
|
});
|
|
1174
1174
|
}
|
|
1175
1175
|
};
|
|
1176
|
-
const
|
|
1176
|
+
const de_DecryptionFailureRes = async (parsedOutput, context) => {
|
|
1177
1177
|
const body = parsedOutput.body;
|
|
1178
|
-
const deserialized =
|
|
1178
|
+
const deserialized = de_DecryptionFailure(body, context);
|
|
1179
1179
|
const exception = new DecryptionFailure({
|
|
1180
1180
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1181
1181
|
...deserialized,
|
|
1182
1182
|
});
|
|
1183
1183
|
return __decorateServiceException(exception, body);
|
|
1184
1184
|
};
|
|
1185
|
-
const
|
|
1185
|
+
const de_EncryptionFailureRes = async (parsedOutput, context) => {
|
|
1186
1186
|
const body = parsedOutput.body;
|
|
1187
|
-
const deserialized =
|
|
1187
|
+
const deserialized = de_EncryptionFailure(body, context);
|
|
1188
1188
|
const exception = new EncryptionFailure({
|
|
1189
1189
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1190
1190
|
...deserialized,
|
|
1191
1191
|
});
|
|
1192
1192
|
return __decorateServiceException(exception, body);
|
|
1193
1193
|
};
|
|
1194
|
-
const
|
|
1194
|
+
const de_InternalServiceErrorRes = async (parsedOutput, context) => {
|
|
1195
1195
|
const body = parsedOutput.body;
|
|
1196
|
-
const deserialized =
|
|
1196
|
+
const deserialized = de_InternalServiceError(body, context);
|
|
1197
1197
|
const exception = new InternalServiceError({
|
|
1198
1198
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1199
1199
|
...deserialized,
|
|
1200
1200
|
});
|
|
1201
1201
|
return __decorateServiceException(exception, body);
|
|
1202
1202
|
};
|
|
1203
|
-
const
|
|
1203
|
+
const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
|
|
1204
1204
|
const body = parsedOutput.body;
|
|
1205
|
-
const deserialized =
|
|
1205
|
+
const deserialized = de_InvalidNextTokenException(body, context);
|
|
1206
1206
|
const exception = new InvalidNextTokenException({
|
|
1207
1207
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1208
1208
|
...deserialized,
|
|
1209
1209
|
});
|
|
1210
1210
|
return __decorateServiceException(exception, body);
|
|
1211
1211
|
};
|
|
1212
|
-
const
|
|
1212
|
+
const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
1213
1213
|
const body = parsedOutput.body;
|
|
1214
|
-
const deserialized =
|
|
1214
|
+
const deserialized = de_InvalidParameterException(body, context);
|
|
1215
1215
|
const exception = new InvalidParameterException({
|
|
1216
1216
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1217
1217
|
...deserialized,
|
|
1218
1218
|
});
|
|
1219
1219
|
return __decorateServiceException(exception, body);
|
|
1220
1220
|
};
|
|
1221
|
-
const
|
|
1221
|
+
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
1222
1222
|
const body = parsedOutput.body;
|
|
1223
|
-
const deserialized =
|
|
1223
|
+
const deserialized = de_InvalidRequestException(body, context);
|
|
1224
1224
|
const exception = new InvalidRequestException({
|
|
1225
1225
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1226
1226
|
...deserialized,
|
|
1227
1227
|
});
|
|
1228
1228
|
return __decorateServiceException(exception, body);
|
|
1229
1229
|
};
|
|
1230
|
-
const
|
|
1230
|
+
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1231
1231
|
const body = parsedOutput.body;
|
|
1232
|
-
const deserialized =
|
|
1232
|
+
const deserialized = de_LimitExceededException(body, context);
|
|
1233
1233
|
const exception = new LimitExceededException({
|
|
1234
1234
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1235
1235
|
...deserialized,
|
|
1236
1236
|
});
|
|
1237
1237
|
return __decorateServiceException(exception, body);
|
|
1238
1238
|
};
|
|
1239
|
-
const
|
|
1239
|
+
const de_MalformedPolicyDocumentExceptionRes = async (parsedOutput, context) => {
|
|
1240
1240
|
const body = parsedOutput.body;
|
|
1241
|
-
const deserialized =
|
|
1241
|
+
const deserialized = de_MalformedPolicyDocumentException(body, context);
|
|
1242
1242
|
const exception = new MalformedPolicyDocumentException({
|
|
1243
1243
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1244
1244
|
...deserialized,
|
|
1245
1245
|
});
|
|
1246
1246
|
return __decorateServiceException(exception, body);
|
|
1247
1247
|
};
|
|
1248
|
-
const
|
|
1248
|
+
const de_PreconditionNotMetExceptionRes = async (parsedOutput, context) => {
|
|
1249
1249
|
const body = parsedOutput.body;
|
|
1250
|
-
const deserialized =
|
|
1250
|
+
const deserialized = de_PreconditionNotMetException(body, context);
|
|
1251
1251
|
const exception = new PreconditionNotMetException({
|
|
1252
1252
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1253
1253
|
...deserialized,
|
|
1254
1254
|
});
|
|
1255
1255
|
return __decorateServiceException(exception, body);
|
|
1256
1256
|
};
|
|
1257
|
-
const
|
|
1257
|
+
const de_PublicPolicyExceptionRes = async (parsedOutput, context) => {
|
|
1258
1258
|
const body = parsedOutput.body;
|
|
1259
|
-
const deserialized =
|
|
1259
|
+
const deserialized = de_PublicPolicyException(body, context);
|
|
1260
1260
|
const exception = new PublicPolicyException({
|
|
1261
1261
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1262
1262
|
...deserialized,
|
|
1263
1263
|
});
|
|
1264
1264
|
return __decorateServiceException(exception, body);
|
|
1265
1265
|
};
|
|
1266
|
-
const
|
|
1266
|
+
const de_ResourceExistsExceptionRes = async (parsedOutput, context) => {
|
|
1267
1267
|
const body = parsedOutput.body;
|
|
1268
|
-
const deserialized =
|
|
1268
|
+
const deserialized = de_ResourceExistsException(body, context);
|
|
1269
1269
|
const exception = new ResourceExistsException({
|
|
1270
1270
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1271
1271
|
...deserialized,
|
|
1272
1272
|
});
|
|
1273
1273
|
return __decorateServiceException(exception, body);
|
|
1274
1274
|
};
|
|
1275
|
-
const
|
|
1275
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1276
1276
|
const body = parsedOutput.body;
|
|
1277
|
-
const deserialized =
|
|
1277
|
+
const deserialized = de_ResourceNotFoundException(body, context);
|
|
1278
1278
|
const exception = new ResourceNotFoundException({
|
|
1279
1279
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1280
1280
|
...deserialized,
|
|
1281
1281
|
});
|
|
1282
1282
|
return __decorateServiceException(exception, body);
|
|
1283
1283
|
};
|
|
1284
|
-
const
|
|
1284
|
+
const se_AddReplicaRegionListType = (input, context) => {
|
|
1285
1285
|
return input
|
|
1286
1286
|
.filter((e) => e != null)
|
|
1287
1287
|
.map((entry) => {
|
|
1288
|
-
return
|
|
1288
|
+
return se_ReplicaRegionType(entry, context);
|
|
1289
1289
|
});
|
|
1290
1290
|
};
|
|
1291
|
-
const
|
|
1291
|
+
const se_CancelRotateSecretRequest = (input, context) => {
|
|
1292
1292
|
return {
|
|
1293
1293
|
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1294
1294
|
};
|
|
1295
1295
|
};
|
|
1296
|
-
const
|
|
1296
|
+
const se_CreateSecretRequest = (input, context) => {
|
|
1297
1297
|
return {
|
|
1298
1298
|
...(input.AddReplicaRegions != null && {
|
|
1299
|
-
AddReplicaRegions:
|
|
1299
|
+
AddReplicaRegions: se_AddReplicaRegionListType(input.AddReplicaRegions, context),
|
|
1300
1300
|
}),
|
|
1301
1301
|
ClientRequestToken: input.ClientRequestToken ?? generateIdempotencyToken(),
|
|
1302
1302
|
...(input.Description != null && { Description: input.Description }),
|
|
@@ -1307,47 +1307,47 @@ const serializeAws_json1_1CreateSecretRequest = (input, context) => {
|
|
|
1307
1307
|
...(input.Name != null && { Name: input.Name }),
|
|
1308
1308
|
...(input.SecretBinary != null && { SecretBinary: context.base64Encoder(input.SecretBinary) }),
|
|
1309
1309
|
...(input.SecretString != null && { SecretString: input.SecretString }),
|
|
1310
|
-
...(input.Tags != null && { Tags:
|
|
1310
|
+
...(input.Tags != null && { Tags: se_TagListType(input.Tags, context) }),
|
|
1311
1311
|
};
|
|
1312
1312
|
};
|
|
1313
|
-
const
|
|
1313
|
+
const se_DeleteResourcePolicyRequest = (input, context) => {
|
|
1314
1314
|
return {
|
|
1315
1315
|
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1316
1316
|
};
|
|
1317
1317
|
};
|
|
1318
|
-
const
|
|
1318
|
+
const se_DeleteSecretRequest = (input, context) => {
|
|
1319
1319
|
return {
|
|
1320
1320
|
...(input.ForceDeleteWithoutRecovery != null && { ForceDeleteWithoutRecovery: input.ForceDeleteWithoutRecovery }),
|
|
1321
1321
|
...(input.RecoveryWindowInDays != null && { RecoveryWindowInDays: input.RecoveryWindowInDays }),
|
|
1322
1322
|
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1323
1323
|
};
|
|
1324
1324
|
};
|
|
1325
|
-
const
|
|
1325
|
+
const se_DescribeSecretRequest = (input, context) => {
|
|
1326
1326
|
return {
|
|
1327
1327
|
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1328
1328
|
};
|
|
1329
1329
|
};
|
|
1330
|
-
const
|
|
1330
|
+
const se_Filter = (input, context) => {
|
|
1331
1331
|
return {
|
|
1332
1332
|
...(input.Key != null && { Key: input.Key }),
|
|
1333
|
-
...(input.Values != null && { Values:
|
|
1333
|
+
...(input.Values != null && { Values: se_FilterValuesStringList(input.Values, context) }),
|
|
1334
1334
|
};
|
|
1335
1335
|
};
|
|
1336
|
-
const
|
|
1336
|
+
const se_FiltersListType = (input, context) => {
|
|
1337
1337
|
return input
|
|
1338
1338
|
.filter((e) => e != null)
|
|
1339
1339
|
.map((entry) => {
|
|
1340
|
-
return
|
|
1340
|
+
return se_Filter(entry, context);
|
|
1341
1341
|
});
|
|
1342
1342
|
};
|
|
1343
|
-
const
|
|
1343
|
+
const se_FilterValuesStringList = (input, context) => {
|
|
1344
1344
|
return input
|
|
1345
1345
|
.filter((e) => e != null)
|
|
1346
1346
|
.map((entry) => {
|
|
1347
1347
|
return entry;
|
|
1348
1348
|
});
|
|
1349
1349
|
};
|
|
1350
|
-
const
|
|
1350
|
+
const se_GetRandomPasswordRequest = (input, context) => {
|
|
1351
1351
|
return {
|
|
1352
1352
|
...(input.ExcludeCharacters != null && { ExcludeCharacters: input.ExcludeCharacters }),
|
|
1353
1353
|
...(input.ExcludeLowercase != null && { ExcludeLowercase: input.ExcludeLowercase }),
|
|
@@ -1359,28 +1359,28 @@ const serializeAws_json1_1GetRandomPasswordRequest = (input, context) => {
|
|
|
1359
1359
|
...(input.RequireEachIncludedType != null && { RequireEachIncludedType: input.RequireEachIncludedType }),
|
|
1360
1360
|
};
|
|
1361
1361
|
};
|
|
1362
|
-
const
|
|
1362
|
+
const se_GetResourcePolicyRequest = (input, context) => {
|
|
1363
1363
|
return {
|
|
1364
1364
|
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1365
1365
|
};
|
|
1366
1366
|
};
|
|
1367
|
-
const
|
|
1367
|
+
const se_GetSecretValueRequest = (input, context) => {
|
|
1368
1368
|
return {
|
|
1369
1369
|
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1370
1370
|
...(input.VersionId != null && { VersionId: input.VersionId }),
|
|
1371
1371
|
...(input.VersionStage != null && { VersionStage: input.VersionStage }),
|
|
1372
1372
|
};
|
|
1373
1373
|
};
|
|
1374
|
-
const
|
|
1374
|
+
const se_ListSecretsRequest = (input, context) => {
|
|
1375
1375
|
return {
|
|
1376
|
-
...(input.Filters != null && { Filters:
|
|
1376
|
+
...(input.Filters != null && { Filters: se_FiltersListType(input.Filters, context) }),
|
|
1377
1377
|
...(input.IncludePlannedDeletion != null && { IncludePlannedDeletion: input.IncludePlannedDeletion }),
|
|
1378
1378
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1379
1379
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1380
1380
|
...(input.SortOrder != null && { SortOrder: input.SortOrder }),
|
|
1381
1381
|
};
|
|
1382
1382
|
};
|
|
1383
|
-
const
|
|
1383
|
+
const se_ListSecretVersionIdsRequest = (input, context) => {
|
|
1384
1384
|
return {
|
|
1385
1385
|
...(input.IncludeDeprecated != null && { IncludeDeprecated: input.IncludeDeprecated }),
|
|
1386
1386
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
@@ -1388,49 +1388,47 @@ const serializeAws_json1_1ListSecretVersionIdsRequest = (input, context) => {
|
|
|
1388
1388
|
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1389
1389
|
};
|
|
1390
1390
|
};
|
|
1391
|
-
const
|
|
1391
|
+
const se_PutResourcePolicyRequest = (input, context) => {
|
|
1392
1392
|
return {
|
|
1393
1393
|
...(input.BlockPublicPolicy != null && { BlockPublicPolicy: input.BlockPublicPolicy }),
|
|
1394
1394
|
...(input.ResourcePolicy != null && { ResourcePolicy: input.ResourcePolicy }),
|
|
1395
1395
|
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1396
1396
|
};
|
|
1397
1397
|
};
|
|
1398
|
-
const
|
|
1398
|
+
const se_PutSecretValueRequest = (input, context) => {
|
|
1399
1399
|
return {
|
|
1400
1400
|
ClientRequestToken: input.ClientRequestToken ?? generateIdempotencyToken(),
|
|
1401
1401
|
...(input.SecretBinary != null && { SecretBinary: context.base64Encoder(input.SecretBinary) }),
|
|
1402
1402
|
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1403
1403
|
...(input.SecretString != null && { SecretString: input.SecretString }),
|
|
1404
|
-
...(input.VersionStages != null && {
|
|
1405
|
-
VersionStages: serializeAws_json1_1SecretVersionStagesType(input.VersionStages, context),
|
|
1406
|
-
}),
|
|
1404
|
+
...(input.VersionStages != null && { VersionStages: se_SecretVersionStagesType(input.VersionStages, context) }),
|
|
1407
1405
|
};
|
|
1408
1406
|
};
|
|
1409
|
-
const
|
|
1407
|
+
const se_RemoveRegionsFromReplicationRequest = (input, context) => {
|
|
1410
1408
|
return {
|
|
1411
1409
|
...(input.RemoveReplicaRegions != null && {
|
|
1412
|
-
RemoveReplicaRegions:
|
|
1410
|
+
RemoveReplicaRegions: se_RemoveReplicaRegionListType(input.RemoveReplicaRegions, context),
|
|
1413
1411
|
}),
|
|
1414
1412
|
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1415
1413
|
};
|
|
1416
1414
|
};
|
|
1417
|
-
const
|
|
1415
|
+
const se_RemoveReplicaRegionListType = (input, context) => {
|
|
1418
1416
|
return input
|
|
1419
1417
|
.filter((e) => e != null)
|
|
1420
1418
|
.map((entry) => {
|
|
1421
1419
|
return entry;
|
|
1422
1420
|
});
|
|
1423
1421
|
};
|
|
1424
|
-
const
|
|
1422
|
+
const se_ReplicaRegionType = (input, context) => {
|
|
1425
1423
|
return {
|
|
1426
1424
|
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
1427
1425
|
...(input.Region != null && { Region: input.Region }),
|
|
1428
1426
|
};
|
|
1429
1427
|
};
|
|
1430
|
-
const
|
|
1428
|
+
const se_ReplicateSecretToRegionsRequest = (input, context) => {
|
|
1431
1429
|
return {
|
|
1432
1430
|
...(input.AddReplicaRegions != null && {
|
|
1433
|
-
AddReplicaRegions:
|
|
1431
|
+
AddReplicaRegions: se_AddReplicaRegionListType(input.AddReplicaRegions, context),
|
|
1434
1432
|
}),
|
|
1435
1433
|
...(input.ForceOverwriteReplicaSecret != null && {
|
|
1436
1434
|
ForceOverwriteReplicaSecret: input.ForceOverwriteReplicaSecret,
|
|
@@ -1438,74 +1436,72 @@ const serializeAws_json1_1ReplicateSecretToRegionsRequest = (input, context) =>
|
|
|
1438
1436
|
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1439
1437
|
};
|
|
1440
1438
|
};
|
|
1441
|
-
const
|
|
1439
|
+
const se_RestoreSecretRequest = (input, context) => {
|
|
1442
1440
|
return {
|
|
1443
1441
|
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1444
1442
|
};
|
|
1445
1443
|
};
|
|
1446
|
-
const
|
|
1444
|
+
const se_RotateSecretRequest = (input, context) => {
|
|
1447
1445
|
return {
|
|
1448
1446
|
ClientRequestToken: input.ClientRequestToken ?? generateIdempotencyToken(),
|
|
1449
1447
|
...(input.RotateImmediately != null && { RotateImmediately: input.RotateImmediately }),
|
|
1450
1448
|
...(input.RotationLambdaARN != null && { RotationLambdaARN: input.RotationLambdaARN }),
|
|
1451
|
-
...(input.RotationRules != null && {
|
|
1452
|
-
RotationRules: serializeAws_json1_1RotationRulesType(input.RotationRules, context),
|
|
1453
|
-
}),
|
|
1449
|
+
...(input.RotationRules != null && { RotationRules: se_RotationRulesType(input.RotationRules, context) }),
|
|
1454
1450
|
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1455
1451
|
};
|
|
1456
1452
|
};
|
|
1457
|
-
const
|
|
1453
|
+
const se_RotationRulesType = (input, context) => {
|
|
1458
1454
|
return {
|
|
1459
1455
|
...(input.AutomaticallyAfterDays != null && { AutomaticallyAfterDays: input.AutomaticallyAfterDays }),
|
|
1460
1456
|
...(input.Duration != null && { Duration: input.Duration }),
|
|
1461
1457
|
...(input.ScheduleExpression != null && { ScheduleExpression: input.ScheduleExpression }),
|
|
1462
1458
|
};
|
|
1463
1459
|
};
|
|
1464
|
-
const
|
|
1460
|
+
const se_SecretVersionStagesType = (input, context) => {
|
|
1465
1461
|
return input
|
|
1466
1462
|
.filter((e) => e != null)
|
|
1467
1463
|
.map((entry) => {
|
|
1468
1464
|
return entry;
|
|
1469
1465
|
});
|
|
1470
1466
|
};
|
|
1471
|
-
const
|
|
1467
|
+
const se_StopReplicationToReplicaRequest = (input, context) => {
|
|
1472
1468
|
return {
|
|
1473
1469
|
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1474
1470
|
};
|
|
1475
1471
|
};
|
|
1476
|
-
const
|
|
1472
|
+
const se_Tag = (input, context) => {
|
|
1477
1473
|
return {
|
|
1478
1474
|
...(input.Key != null && { Key: input.Key }),
|
|
1479
1475
|
...(input.Value != null && { Value: input.Value }),
|
|
1480
1476
|
};
|
|
1481
1477
|
};
|
|
1482
|
-
const
|
|
1478
|
+
const se_TagKeyListType = (input, context) => {
|
|
1483
1479
|
return input
|
|
1484
1480
|
.filter((e) => e != null)
|
|
1485
1481
|
.map((entry) => {
|
|
1486
1482
|
return entry;
|
|
1487
1483
|
});
|
|
1488
1484
|
};
|
|
1489
|
-
const
|
|
1485
|
+
const se_TagListType = (input, context) => {
|
|
1490
1486
|
return input
|
|
1491
1487
|
.filter((e) => e != null)
|
|
1492
1488
|
.map((entry) => {
|
|
1493
|
-
return
|
|
1489
|
+
return se_Tag(entry, context);
|
|
1494
1490
|
});
|
|
1495
1491
|
};
|
|
1496
|
-
const
|
|
1492
|
+
const se_TagResourceRequest = (input, context) => {
|
|
1497
1493
|
return {
|
|
1498
1494
|
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1499
|
-
...(input.Tags != null && { Tags:
|
|
1495
|
+
...(input.Tags != null && { Tags: se_TagListType(input.Tags, context) }),
|
|
1500
1496
|
};
|
|
1501
1497
|
};
|
|
1502
|
-
const
|
|
1498
|
+
const se_UntagResourceRequest = (input, context) => {
|
|
1503
1499
|
return {
|
|
1504
1500
|
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1505
|
-
...(input.TagKeys != null && { TagKeys:
|
|
1501
|
+
...(input.TagKeys != null && { TagKeys: se_TagKeyListType(input.TagKeys, context) }),
|
|
1506
1502
|
};
|
|
1507
1503
|
};
|
|
1508
|
-
const
|
|
1504
|
+
const se_UpdateSecretRequest = (input, context) => {
|
|
1509
1505
|
return {
|
|
1510
1506
|
ClientRequestToken: input.ClientRequestToken ?? generateIdempotencyToken(),
|
|
1511
1507
|
...(input.Description != null && { Description: input.Description }),
|
|
@@ -1515,7 +1511,7 @@ const serializeAws_json1_1UpdateSecretRequest = (input, context) => {
|
|
|
1515
1511
|
...(input.SecretString != null && { SecretString: input.SecretString }),
|
|
1516
1512
|
};
|
|
1517
1513
|
};
|
|
1518
|
-
const
|
|
1514
|
+
const se_UpdateSecretVersionStageRequest = (input, context) => {
|
|
1519
1515
|
return {
|
|
1520
1516
|
...(input.MoveToVersionId != null && { MoveToVersionId: input.MoveToVersionId }),
|
|
1521
1517
|
...(input.RemoveFromVersionId != null && { RemoveFromVersionId: input.RemoveFromVersionId }),
|
|
@@ -1523,41 +1519,39 @@ const serializeAws_json1_1UpdateSecretVersionStageRequest = (input, context) =>
|
|
|
1523
1519
|
...(input.VersionStage != null && { VersionStage: input.VersionStage }),
|
|
1524
1520
|
};
|
|
1525
1521
|
};
|
|
1526
|
-
const
|
|
1522
|
+
const se_ValidateResourcePolicyRequest = (input, context) => {
|
|
1527
1523
|
return {
|
|
1528
1524
|
...(input.ResourcePolicy != null && { ResourcePolicy: input.ResourcePolicy }),
|
|
1529
1525
|
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1530
1526
|
};
|
|
1531
1527
|
};
|
|
1532
|
-
const
|
|
1528
|
+
const de_CancelRotateSecretResponse = (output, context) => {
|
|
1533
1529
|
return {
|
|
1534
1530
|
ARN: __expectString(output.ARN),
|
|
1535
1531
|
Name: __expectString(output.Name),
|
|
1536
1532
|
VersionId: __expectString(output.VersionId),
|
|
1537
1533
|
};
|
|
1538
1534
|
};
|
|
1539
|
-
const
|
|
1535
|
+
const de_CreateSecretResponse = (output, context) => {
|
|
1540
1536
|
return {
|
|
1541
1537
|
ARN: __expectString(output.ARN),
|
|
1542
1538
|
Name: __expectString(output.Name),
|
|
1543
|
-
ReplicationStatus: output.ReplicationStatus != null
|
|
1544
|
-
? deserializeAws_json1_1ReplicationStatusListType(output.ReplicationStatus, context)
|
|
1545
|
-
: undefined,
|
|
1539
|
+
ReplicationStatus: output.ReplicationStatus != null ? de_ReplicationStatusListType(output.ReplicationStatus, context) : undefined,
|
|
1546
1540
|
VersionId: __expectString(output.VersionId),
|
|
1547
1541
|
};
|
|
1548
1542
|
};
|
|
1549
|
-
const
|
|
1543
|
+
const de_DecryptionFailure = (output, context) => {
|
|
1550
1544
|
return {
|
|
1551
1545
|
Message: __expectString(output.Message),
|
|
1552
1546
|
};
|
|
1553
1547
|
};
|
|
1554
|
-
const
|
|
1548
|
+
const de_DeleteResourcePolicyResponse = (output, context) => {
|
|
1555
1549
|
return {
|
|
1556
1550
|
ARN: __expectString(output.ARN),
|
|
1557
1551
|
Name: __expectString(output.Name),
|
|
1558
1552
|
};
|
|
1559
1553
|
};
|
|
1560
|
-
const
|
|
1554
|
+
const de_DeleteSecretResponse = (output, context) => {
|
|
1561
1555
|
return {
|
|
1562
1556
|
ARN: __expectString(output.ARN),
|
|
1563
1557
|
DeletionDate: output.DeletionDate != null
|
|
@@ -1566,7 +1560,7 @@ const deserializeAws_json1_1DeleteSecretResponse = (output, context) => {
|
|
|
1566
1560
|
Name: __expectString(output.Name),
|
|
1567
1561
|
};
|
|
1568
1562
|
};
|
|
1569
|
-
const
|
|
1563
|
+
const de_DescribeSecretResponse = (output, context) => {
|
|
1570
1564
|
return {
|
|
1571
1565
|
ARN: __expectString(output.ARN),
|
|
1572
1566
|
CreatedDate: output.CreatedDate != null
|
|
@@ -1592,36 +1586,34 @@ const deserializeAws_json1_1DescribeSecretResponse = (output, context) => {
|
|
|
1592
1586
|
: undefined,
|
|
1593
1587
|
OwningService: __expectString(output.OwningService),
|
|
1594
1588
|
PrimaryRegion: __expectString(output.PrimaryRegion),
|
|
1595
|
-
ReplicationStatus: output.ReplicationStatus != null
|
|
1596
|
-
? deserializeAws_json1_1ReplicationStatusListType(output.ReplicationStatus, context)
|
|
1597
|
-
: undefined,
|
|
1589
|
+
ReplicationStatus: output.ReplicationStatus != null ? de_ReplicationStatusListType(output.ReplicationStatus, context) : undefined,
|
|
1598
1590
|
RotationEnabled: __expectBoolean(output.RotationEnabled),
|
|
1599
1591
|
RotationLambdaARN: __expectString(output.RotationLambdaARN),
|
|
1600
|
-
RotationRules: output.RotationRules != null ?
|
|
1601
|
-
Tags: output.Tags != null ?
|
|
1592
|
+
RotationRules: output.RotationRules != null ? de_RotationRulesType(output.RotationRules, context) : undefined,
|
|
1593
|
+
Tags: output.Tags != null ? de_TagListType(output.Tags, context) : undefined,
|
|
1602
1594
|
VersionIdsToStages: output.VersionIdsToStages != null
|
|
1603
|
-
?
|
|
1595
|
+
? de_SecretVersionsToStagesMapType(output.VersionIdsToStages, context)
|
|
1604
1596
|
: undefined,
|
|
1605
1597
|
};
|
|
1606
1598
|
};
|
|
1607
|
-
const
|
|
1599
|
+
const de_EncryptionFailure = (output, context) => {
|
|
1608
1600
|
return {
|
|
1609
1601
|
Message: __expectString(output.Message),
|
|
1610
1602
|
};
|
|
1611
1603
|
};
|
|
1612
|
-
const
|
|
1604
|
+
const de_GetRandomPasswordResponse = (output, context) => {
|
|
1613
1605
|
return {
|
|
1614
1606
|
RandomPassword: __expectString(output.RandomPassword),
|
|
1615
1607
|
};
|
|
1616
1608
|
};
|
|
1617
|
-
const
|
|
1609
|
+
const de_GetResourcePolicyResponse = (output, context) => {
|
|
1618
1610
|
return {
|
|
1619
1611
|
ARN: __expectString(output.ARN),
|
|
1620
1612
|
Name: __expectString(output.Name),
|
|
1621
1613
|
ResourcePolicy: __expectString(output.ResourcePolicy),
|
|
1622
1614
|
};
|
|
1623
1615
|
};
|
|
1624
|
-
const
|
|
1616
|
+
const de_GetSecretValueResponse = (output, context) => {
|
|
1625
1617
|
return {
|
|
1626
1618
|
ARN: __expectString(output.ARN),
|
|
1627
1619
|
CreatedDate: output.CreatedDate != null
|
|
@@ -1631,32 +1623,30 @@ const deserializeAws_json1_1GetSecretValueResponse = (output, context) => {
|
|
|
1631
1623
|
SecretBinary: output.SecretBinary != null ? context.base64Decoder(output.SecretBinary) : undefined,
|
|
1632
1624
|
SecretString: __expectString(output.SecretString),
|
|
1633
1625
|
VersionId: __expectString(output.VersionId),
|
|
1634
|
-
VersionStages: output.VersionStages != null
|
|
1635
|
-
? deserializeAws_json1_1SecretVersionStagesType(output.VersionStages, context)
|
|
1636
|
-
: undefined,
|
|
1626
|
+
VersionStages: output.VersionStages != null ? de_SecretVersionStagesType(output.VersionStages, context) : undefined,
|
|
1637
1627
|
};
|
|
1638
1628
|
};
|
|
1639
|
-
const
|
|
1629
|
+
const de_InternalServiceError = (output, context) => {
|
|
1640
1630
|
return {
|
|
1641
1631
|
Message: __expectString(output.Message),
|
|
1642
1632
|
};
|
|
1643
1633
|
};
|
|
1644
|
-
const
|
|
1634
|
+
const de_InvalidNextTokenException = (output, context) => {
|
|
1645
1635
|
return {
|
|
1646
1636
|
Message: __expectString(output.Message),
|
|
1647
1637
|
};
|
|
1648
1638
|
};
|
|
1649
|
-
const
|
|
1639
|
+
const de_InvalidParameterException = (output, context) => {
|
|
1650
1640
|
return {
|
|
1651
1641
|
Message: __expectString(output.Message),
|
|
1652
1642
|
};
|
|
1653
1643
|
};
|
|
1654
|
-
const
|
|
1644
|
+
const de_InvalidRequestException = (output, context) => {
|
|
1655
1645
|
return {
|
|
1656
1646
|
Message: __expectString(output.Message),
|
|
1657
1647
|
};
|
|
1658
1648
|
};
|
|
1659
|
-
const
|
|
1649
|
+
const de_KmsKeyIdListType = (output, context) => {
|
|
1660
1650
|
const retVal = (output || [])
|
|
1661
1651
|
.filter((e) => e != null)
|
|
1662
1652
|
.map((entry) => {
|
|
@@ -1667,84 +1657,78 @@ const deserializeAws_json1_1KmsKeyIdListType = (output, context) => {
|
|
|
1667
1657
|
});
|
|
1668
1658
|
return retVal;
|
|
1669
1659
|
};
|
|
1670
|
-
const
|
|
1660
|
+
const de_LimitExceededException = (output, context) => {
|
|
1671
1661
|
return {
|
|
1672
1662
|
Message: __expectString(output.Message),
|
|
1673
1663
|
};
|
|
1674
1664
|
};
|
|
1675
|
-
const
|
|
1665
|
+
const de_ListSecretsResponse = (output, context) => {
|
|
1676
1666
|
return {
|
|
1677
1667
|
NextToken: __expectString(output.NextToken),
|
|
1678
|
-
SecretList: output.SecretList != null ?
|
|
1668
|
+
SecretList: output.SecretList != null ? de_SecretListType(output.SecretList, context) : undefined,
|
|
1679
1669
|
};
|
|
1680
1670
|
};
|
|
1681
|
-
const
|
|
1671
|
+
const de_ListSecretVersionIdsResponse = (output, context) => {
|
|
1682
1672
|
return {
|
|
1683
1673
|
ARN: __expectString(output.ARN),
|
|
1684
1674
|
Name: __expectString(output.Name),
|
|
1685
1675
|
NextToken: __expectString(output.NextToken),
|
|
1686
|
-
Versions: output.Versions != null ?
|
|
1676
|
+
Versions: output.Versions != null ? de_SecretVersionsListType(output.Versions, context) : undefined,
|
|
1687
1677
|
};
|
|
1688
1678
|
};
|
|
1689
|
-
const
|
|
1679
|
+
const de_MalformedPolicyDocumentException = (output, context) => {
|
|
1690
1680
|
return {
|
|
1691
1681
|
Message: __expectString(output.Message),
|
|
1692
1682
|
};
|
|
1693
1683
|
};
|
|
1694
|
-
const
|
|
1684
|
+
const de_PreconditionNotMetException = (output, context) => {
|
|
1695
1685
|
return {
|
|
1696
1686
|
Message: __expectString(output.Message),
|
|
1697
1687
|
};
|
|
1698
1688
|
};
|
|
1699
|
-
const
|
|
1689
|
+
const de_PublicPolicyException = (output, context) => {
|
|
1700
1690
|
return {
|
|
1701
1691
|
Message: __expectString(output.Message),
|
|
1702
1692
|
};
|
|
1703
1693
|
};
|
|
1704
|
-
const
|
|
1694
|
+
const de_PutResourcePolicyResponse = (output, context) => {
|
|
1705
1695
|
return {
|
|
1706
1696
|
ARN: __expectString(output.ARN),
|
|
1707
1697
|
Name: __expectString(output.Name),
|
|
1708
1698
|
};
|
|
1709
1699
|
};
|
|
1710
|
-
const
|
|
1700
|
+
const de_PutSecretValueResponse = (output, context) => {
|
|
1711
1701
|
return {
|
|
1712
1702
|
ARN: __expectString(output.ARN),
|
|
1713
1703
|
Name: __expectString(output.Name),
|
|
1714
1704
|
VersionId: __expectString(output.VersionId),
|
|
1715
|
-
VersionStages: output.VersionStages != null
|
|
1716
|
-
? deserializeAws_json1_1SecretVersionStagesType(output.VersionStages, context)
|
|
1717
|
-
: undefined,
|
|
1705
|
+
VersionStages: output.VersionStages != null ? de_SecretVersionStagesType(output.VersionStages, context) : undefined,
|
|
1718
1706
|
};
|
|
1719
1707
|
};
|
|
1720
|
-
const
|
|
1708
|
+
const de_RemoveRegionsFromReplicationResponse = (output, context) => {
|
|
1721
1709
|
return {
|
|
1722
1710
|
ARN: __expectString(output.ARN),
|
|
1723
|
-
ReplicationStatus: output.ReplicationStatus != null
|
|
1724
|
-
? deserializeAws_json1_1ReplicationStatusListType(output.ReplicationStatus, context)
|
|
1725
|
-
: undefined,
|
|
1711
|
+
ReplicationStatus: output.ReplicationStatus != null ? de_ReplicationStatusListType(output.ReplicationStatus, context) : undefined,
|
|
1726
1712
|
};
|
|
1727
1713
|
};
|
|
1728
|
-
const
|
|
1714
|
+
const de_ReplicateSecretToRegionsResponse = (output, context) => {
|
|
1729
1715
|
return {
|
|
1730
1716
|
ARN: __expectString(output.ARN),
|
|
1731
|
-
ReplicationStatus: output.ReplicationStatus != null
|
|
1732
|
-
? deserializeAws_json1_1ReplicationStatusListType(output.ReplicationStatus, context)
|
|
1733
|
-
: undefined,
|
|
1717
|
+
ReplicationStatus: output.ReplicationStatus != null ? de_ReplicationStatusListType(output.ReplicationStatus, context) : undefined,
|
|
1734
1718
|
};
|
|
1735
1719
|
};
|
|
1736
|
-
const
|
|
1720
|
+
const de_ReplicationStatusListType = (output, context) => {
|
|
1737
1721
|
const retVal = (output || [])
|
|
1738
1722
|
.filter((e) => e != null)
|
|
1739
1723
|
.map((entry) => {
|
|
1740
1724
|
if (entry === null) {
|
|
1741
1725
|
return null;
|
|
1742
1726
|
}
|
|
1743
|
-
return
|
|
1727
|
+
return de_ReplicationStatusType(entry, context);
|
|
1744
1728
|
});
|
|
1745
1729
|
return retVal;
|
|
1746
1730
|
};
|
|
1747
|
-
const
|
|
1731
|
+
const de_ReplicationStatusType = (output, context) => {
|
|
1748
1732
|
return {
|
|
1749
1733
|
KmsKeyId: __expectString(output.KmsKeyId),
|
|
1750
1734
|
LastAccessedDate: output.LastAccessedDate != null
|
|
@@ -1755,37 +1739,37 @@ const deserializeAws_json1_1ReplicationStatusType = (output, context) => {
|
|
|
1755
1739
|
StatusMessage: __expectString(output.StatusMessage),
|
|
1756
1740
|
};
|
|
1757
1741
|
};
|
|
1758
|
-
const
|
|
1742
|
+
const de_ResourceExistsException = (output, context) => {
|
|
1759
1743
|
return {
|
|
1760
1744
|
Message: __expectString(output.Message),
|
|
1761
1745
|
};
|
|
1762
1746
|
};
|
|
1763
|
-
const
|
|
1747
|
+
const de_ResourceNotFoundException = (output, context) => {
|
|
1764
1748
|
return {
|
|
1765
1749
|
Message: __expectString(output.Message),
|
|
1766
1750
|
};
|
|
1767
1751
|
};
|
|
1768
|
-
const
|
|
1752
|
+
const de_RestoreSecretResponse = (output, context) => {
|
|
1769
1753
|
return {
|
|
1770
1754
|
ARN: __expectString(output.ARN),
|
|
1771
1755
|
Name: __expectString(output.Name),
|
|
1772
1756
|
};
|
|
1773
1757
|
};
|
|
1774
|
-
const
|
|
1758
|
+
const de_RotateSecretResponse = (output, context) => {
|
|
1775
1759
|
return {
|
|
1776
1760
|
ARN: __expectString(output.ARN),
|
|
1777
1761
|
Name: __expectString(output.Name),
|
|
1778
1762
|
VersionId: __expectString(output.VersionId),
|
|
1779
1763
|
};
|
|
1780
1764
|
};
|
|
1781
|
-
const
|
|
1765
|
+
const de_RotationRulesType = (output, context) => {
|
|
1782
1766
|
return {
|
|
1783
1767
|
AutomaticallyAfterDays: __expectLong(output.AutomaticallyAfterDays),
|
|
1784
1768
|
Duration: __expectString(output.Duration),
|
|
1785
1769
|
ScheduleExpression: __expectString(output.ScheduleExpression),
|
|
1786
1770
|
};
|
|
1787
1771
|
};
|
|
1788
|
-
const
|
|
1772
|
+
const de_SecretListEntry = (output, context) => {
|
|
1789
1773
|
return {
|
|
1790
1774
|
ARN: __expectString(output.ARN),
|
|
1791
1775
|
CreatedDate: output.CreatedDate != null
|
|
@@ -1813,51 +1797,49 @@ const deserializeAws_json1_1SecretListEntry = (output, context) => {
|
|
|
1813
1797
|
PrimaryRegion: __expectString(output.PrimaryRegion),
|
|
1814
1798
|
RotationEnabled: __expectBoolean(output.RotationEnabled),
|
|
1815
1799
|
RotationLambdaARN: __expectString(output.RotationLambdaARN),
|
|
1816
|
-
RotationRules: output.RotationRules != null ?
|
|
1800
|
+
RotationRules: output.RotationRules != null ? de_RotationRulesType(output.RotationRules, context) : undefined,
|
|
1817
1801
|
SecretVersionsToStages: output.SecretVersionsToStages != null
|
|
1818
|
-
?
|
|
1802
|
+
? de_SecretVersionsToStagesMapType(output.SecretVersionsToStages, context)
|
|
1819
1803
|
: undefined,
|
|
1820
|
-
Tags: output.Tags != null ?
|
|
1804
|
+
Tags: output.Tags != null ? de_TagListType(output.Tags, context) : undefined,
|
|
1821
1805
|
};
|
|
1822
1806
|
};
|
|
1823
|
-
const
|
|
1807
|
+
const de_SecretListType = (output, context) => {
|
|
1824
1808
|
const retVal = (output || [])
|
|
1825
1809
|
.filter((e) => e != null)
|
|
1826
1810
|
.map((entry) => {
|
|
1827
1811
|
if (entry === null) {
|
|
1828
1812
|
return null;
|
|
1829
1813
|
}
|
|
1830
|
-
return
|
|
1814
|
+
return de_SecretListEntry(entry, context);
|
|
1831
1815
|
});
|
|
1832
1816
|
return retVal;
|
|
1833
1817
|
};
|
|
1834
|
-
const
|
|
1818
|
+
const de_SecretVersionsListEntry = (output, context) => {
|
|
1835
1819
|
return {
|
|
1836
1820
|
CreatedDate: output.CreatedDate != null
|
|
1837
1821
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedDate)))
|
|
1838
1822
|
: undefined,
|
|
1839
|
-
KmsKeyIds: output.KmsKeyIds != null ?
|
|
1823
|
+
KmsKeyIds: output.KmsKeyIds != null ? de_KmsKeyIdListType(output.KmsKeyIds, context) : undefined,
|
|
1840
1824
|
LastAccessedDate: output.LastAccessedDate != null
|
|
1841
1825
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastAccessedDate)))
|
|
1842
1826
|
: undefined,
|
|
1843
1827
|
VersionId: __expectString(output.VersionId),
|
|
1844
|
-
VersionStages: output.VersionStages != null
|
|
1845
|
-
? deserializeAws_json1_1SecretVersionStagesType(output.VersionStages, context)
|
|
1846
|
-
: undefined,
|
|
1828
|
+
VersionStages: output.VersionStages != null ? de_SecretVersionStagesType(output.VersionStages, context) : undefined,
|
|
1847
1829
|
};
|
|
1848
1830
|
};
|
|
1849
|
-
const
|
|
1831
|
+
const de_SecretVersionsListType = (output, context) => {
|
|
1850
1832
|
const retVal = (output || [])
|
|
1851
1833
|
.filter((e) => e != null)
|
|
1852
1834
|
.map((entry) => {
|
|
1853
1835
|
if (entry === null) {
|
|
1854
1836
|
return null;
|
|
1855
1837
|
}
|
|
1856
|
-
return
|
|
1838
|
+
return de_SecretVersionsListEntry(entry, context);
|
|
1857
1839
|
});
|
|
1858
1840
|
return retVal;
|
|
1859
1841
|
};
|
|
1860
|
-
const
|
|
1842
|
+
const de_SecretVersionStagesType = (output, context) => {
|
|
1861
1843
|
const retVal = (output || [])
|
|
1862
1844
|
.filter((e) => e != null)
|
|
1863
1845
|
.map((entry) => {
|
|
@@ -1868,72 +1850,70 @@ const deserializeAws_json1_1SecretVersionStagesType = (output, context) => {
|
|
|
1868
1850
|
});
|
|
1869
1851
|
return retVal;
|
|
1870
1852
|
};
|
|
1871
|
-
const
|
|
1853
|
+
const de_SecretVersionsToStagesMapType = (output, context) => {
|
|
1872
1854
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1873
1855
|
if (value === null) {
|
|
1874
1856
|
return acc;
|
|
1875
1857
|
}
|
|
1876
|
-
acc[key] =
|
|
1858
|
+
acc[key] = de_SecretVersionStagesType(value, context);
|
|
1877
1859
|
return acc;
|
|
1878
1860
|
}, {});
|
|
1879
1861
|
};
|
|
1880
|
-
const
|
|
1862
|
+
const de_StopReplicationToReplicaResponse = (output, context) => {
|
|
1881
1863
|
return {
|
|
1882
1864
|
ARN: __expectString(output.ARN),
|
|
1883
1865
|
};
|
|
1884
1866
|
};
|
|
1885
|
-
const
|
|
1867
|
+
const de_Tag = (output, context) => {
|
|
1886
1868
|
return {
|
|
1887
1869
|
Key: __expectString(output.Key),
|
|
1888
1870
|
Value: __expectString(output.Value),
|
|
1889
1871
|
};
|
|
1890
1872
|
};
|
|
1891
|
-
const
|
|
1873
|
+
const de_TagListType = (output, context) => {
|
|
1892
1874
|
const retVal = (output || [])
|
|
1893
1875
|
.filter((e) => e != null)
|
|
1894
1876
|
.map((entry) => {
|
|
1895
1877
|
if (entry === null) {
|
|
1896
1878
|
return null;
|
|
1897
1879
|
}
|
|
1898
|
-
return
|
|
1880
|
+
return de_Tag(entry, context);
|
|
1899
1881
|
});
|
|
1900
1882
|
return retVal;
|
|
1901
1883
|
};
|
|
1902
|
-
const
|
|
1884
|
+
const de_UpdateSecretResponse = (output, context) => {
|
|
1903
1885
|
return {
|
|
1904
1886
|
ARN: __expectString(output.ARN),
|
|
1905
1887
|
Name: __expectString(output.Name),
|
|
1906
1888
|
VersionId: __expectString(output.VersionId),
|
|
1907
1889
|
};
|
|
1908
1890
|
};
|
|
1909
|
-
const
|
|
1891
|
+
const de_UpdateSecretVersionStageResponse = (output, context) => {
|
|
1910
1892
|
return {
|
|
1911
1893
|
ARN: __expectString(output.ARN),
|
|
1912
1894
|
Name: __expectString(output.Name),
|
|
1913
1895
|
};
|
|
1914
1896
|
};
|
|
1915
|
-
const
|
|
1897
|
+
const de_ValidateResourcePolicyResponse = (output, context) => {
|
|
1916
1898
|
return {
|
|
1917
1899
|
PolicyValidationPassed: __expectBoolean(output.PolicyValidationPassed),
|
|
1918
|
-
ValidationErrors: output.ValidationErrors != null
|
|
1919
|
-
? deserializeAws_json1_1ValidationErrorsType(output.ValidationErrors, context)
|
|
1920
|
-
: undefined,
|
|
1900
|
+
ValidationErrors: output.ValidationErrors != null ? de_ValidationErrorsType(output.ValidationErrors, context) : undefined,
|
|
1921
1901
|
};
|
|
1922
1902
|
};
|
|
1923
|
-
const
|
|
1903
|
+
const de_ValidationErrorsEntry = (output, context) => {
|
|
1924
1904
|
return {
|
|
1925
1905
|
CheckName: __expectString(output.CheckName),
|
|
1926
1906
|
ErrorMessage: __expectString(output.ErrorMessage),
|
|
1927
1907
|
};
|
|
1928
1908
|
};
|
|
1929
|
-
const
|
|
1909
|
+
const de_ValidationErrorsType = (output, context) => {
|
|
1930
1910
|
const retVal = (output || [])
|
|
1931
1911
|
.filter((e) => e != null)
|
|
1932
1912
|
.map((entry) => {
|
|
1933
1913
|
if (entry === null) {
|
|
1934
1914
|
return null;
|
|
1935
1915
|
}
|
|
1936
|
-
return
|
|
1916
|
+
return de_ValidationErrorsEntry(entry, context);
|
|
1937
1917
|
});
|
|
1938
1918
|
return retVal;
|
|
1939
1919
|
};
|