@aws-sdk/client-kms 3.312.0 → 3.315.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/protocols/Aws_json1_1.js +410 -1334
- package/dist-es/protocols/Aws_json1_1.js +411 -1335
- package/package.json +6 -6
|
@@ -9,42 +9,42 @@ const models_0_1 = require("../models/models_0");
|
|
|
9
9
|
const se_CancelKeyDeletionCommand = async (input, context) => {
|
|
10
10
|
const headers = sharedHeaders("CancelKeyDeletion");
|
|
11
11
|
let body;
|
|
12
|
-
body = JSON.stringify(
|
|
12
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
13
13
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
14
14
|
};
|
|
15
15
|
exports.se_CancelKeyDeletionCommand = se_CancelKeyDeletionCommand;
|
|
16
16
|
const se_ConnectCustomKeyStoreCommand = async (input, context) => {
|
|
17
17
|
const headers = sharedHeaders("ConnectCustomKeyStore");
|
|
18
18
|
let body;
|
|
19
|
-
body = JSON.stringify(
|
|
19
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
20
20
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
21
21
|
};
|
|
22
22
|
exports.se_ConnectCustomKeyStoreCommand = se_ConnectCustomKeyStoreCommand;
|
|
23
23
|
const se_CreateAliasCommand = async (input, context) => {
|
|
24
24
|
const headers = sharedHeaders("CreateAlias");
|
|
25
25
|
let body;
|
|
26
|
-
body = JSON.stringify(
|
|
26
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
27
27
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
28
28
|
};
|
|
29
29
|
exports.se_CreateAliasCommand = se_CreateAliasCommand;
|
|
30
30
|
const se_CreateCustomKeyStoreCommand = async (input, context) => {
|
|
31
31
|
const headers = sharedHeaders("CreateCustomKeyStore");
|
|
32
32
|
let body;
|
|
33
|
-
body = JSON.stringify(
|
|
33
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
34
34
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
35
35
|
};
|
|
36
36
|
exports.se_CreateCustomKeyStoreCommand = se_CreateCustomKeyStoreCommand;
|
|
37
37
|
const se_CreateGrantCommand = async (input, context) => {
|
|
38
38
|
const headers = sharedHeaders("CreateGrant");
|
|
39
39
|
let body;
|
|
40
|
-
body = JSON.stringify(
|
|
40
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
41
41
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
42
42
|
};
|
|
43
43
|
exports.se_CreateGrantCommand = se_CreateGrantCommand;
|
|
44
44
|
const se_CreateKeyCommand = async (input, context) => {
|
|
45
45
|
const headers = sharedHeaders("CreateKey");
|
|
46
46
|
let body;
|
|
47
|
-
body = JSON.stringify(
|
|
47
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
48
48
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
49
49
|
};
|
|
50
50
|
exports.se_CreateKeyCommand = se_CreateKeyCommand;
|
|
@@ -58,70 +58,70 @@ exports.se_DecryptCommand = se_DecryptCommand;
|
|
|
58
58
|
const se_DeleteAliasCommand = async (input, context) => {
|
|
59
59
|
const headers = sharedHeaders("DeleteAlias");
|
|
60
60
|
let body;
|
|
61
|
-
body = JSON.stringify(
|
|
61
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
62
62
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
63
63
|
};
|
|
64
64
|
exports.se_DeleteAliasCommand = se_DeleteAliasCommand;
|
|
65
65
|
const se_DeleteCustomKeyStoreCommand = async (input, context) => {
|
|
66
66
|
const headers = sharedHeaders("DeleteCustomKeyStore");
|
|
67
67
|
let body;
|
|
68
|
-
body = JSON.stringify(
|
|
68
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
69
69
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
70
70
|
};
|
|
71
71
|
exports.se_DeleteCustomKeyStoreCommand = se_DeleteCustomKeyStoreCommand;
|
|
72
72
|
const se_DeleteImportedKeyMaterialCommand = async (input, context) => {
|
|
73
73
|
const headers = sharedHeaders("DeleteImportedKeyMaterial");
|
|
74
74
|
let body;
|
|
75
|
-
body = JSON.stringify(
|
|
75
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
76
76
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
77
|
};
|
|
78
78
|
exports.se_DeleteImportedKeyMaterialCommand = se_DeleteImportedKeyMaterialCommand;
|
|
79
79
|
const se_DescribeCustomKeyStoresCommand = async (input, context) => {
|
|
80
80
|
const headers = sharedHeaders("DescribeCustomKeyStores");
|
|
81
81
|
let body;
|
|
82
|
-
body = JSON.stringify(
|
|
82
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
83
83
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
84
84
|
};
|
|
85
85
|
exports.se_DescribeCustomKeyStoresCommand = se_DescribeCustomKeyStoresCommand;
|
|
86
86
|
const se_DescribeKeyCommand = async (input, context) => {
|
|
87
87
|
const headers = sharedHeaders("DescribeKey");
|
|
88
88
|
let body;
|
|
89
|
-
body = JSON.stringify(
|
|
89
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
90
90
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
91
91
|
};
|
|
92
92
|
exports.se_DescribeKeyCommand = se_DescribeKeyCommand;
|
|
93
93
|
const se_DisableKeyCommand = async (input, context) => {
|
|
94
94
|
const headers = sharedHeaders("DisableKey");
|
|
95
95
|
let body;
|
|
96
|
-
body = JSON.stringify(
|
|
96
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
97
97
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
98
98
|
};
|
|
99
99
|
exports.se_DisableKeyCommand = se_DisableKeyCommand;
|
|
100
100
|
const se_DisableKeyRotationCommand = async (input, context) => {
|
|
101
101
|
const headers = sharedHeaders("DisableKeyRotation");
|
|
102
102
|
let body;
|
|
103
|
-
body = JSON.stringify(
|
|
103
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
104
104
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
105
105
|
};
|
|
106
106
|
exports.se_DisableKeyRotationCommand = se_DisableKeyRotationCommand;
|
|
107
107
|
const se_DisconnectCustomKeyStoreCommand = async (input, context) => {
|
|
108
108
|
const headers = sharedHeaders("DisconnectCustomKeyStore");
|
|
109
109
|
let body;
|
|
110
|
-
body = JSON.stringify(
|
|
110
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
111
111
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
112
112
|
};
|
|
113
113
|
exports.se_DisconnectCustomKeyStoreCommand = se_DisconnectCustomKeyStoreCommand;
|
|
114
114
|
const se_EnableKeyCommand = async (input, context) => {
|
|
115
115
|
const headers = sharedHeaders("EnableKey");
|
|
116
116
|
let body;
|
|
117
|
-
body = JSON.stringify(
|
|
117
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
118
118
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
119
119
|
};
|
|
120
120
|
exports.se_EnableKeyCommand = se_EnableKeyCommand;
|
|
121
121
|
const se_EnableKeyRotationCommand = async (input, context) => {
|
|
122
122
|
const headers = sharedHeaders("EnableKeyRotation");
|
|
123
123
|
let body;
|
|
124
|
-
body = JSON.stringify(
|
|
124
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
125
125
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
126
126
|
};
|
|
127
127
|
exports.se_EnableKeyRotationCommand = se_EnableKeyRotationCommand;
|
|
@@ -135,28 +135,28 @@ exports.se_EncryptCommand = se_EncryptCommand;
|
|
|
135
135
|
const se_GenerateDataKeyCommand = async (input, context) => {
|
|
136
136
|
const headers = sharedHeaders("GenerateDataKey");
|
|
137
137
|
let body;
|
|
138
|
-
body = JSON.stringify(
|
|
138
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
139
139
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
140
140
|
};
|
|
141
141
|
exports.se_GenerateDataKeyCommand = se_GenerateDataKeyCommand;
|
|
142
142
|
const se_GenerateDataKeyPairCommand = async (input, context) => {
|
|
143
143
|
const headers = sharedHeaders("GenerateDataKeyPair");
|
|
144
144
|
let body;
|
|
145
|
-
body = JSON.stringify(
|
|
145
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
146
146
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
147
147
|
};
|
|
148
148
|
exports.se_GenerateDataKeyPairCommand = se_GenerateDataKeyPairCommand;
|
|
149
149
|
const se_GenerateDataKeyPairWithoutPlaintextCommand = async (input, context) => {
|
|
150
150
|
const headers = sharedHeaders("GenerateDataKeyPairWithoutPlaintext");
|
|
151
151
|
let body;
|
|
152
|
-
body = JSON.stringify(
|
|
152
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
153
153
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
154
154
|
};
|
|
155
155
|
exports.se_GenerateDataKeyPairWithoutPlaintextCommand = se_GenerateDataKeyPairWithoutPlaintextCommand;
|
|
156
156
|
const se_GenerateDataKeyWithoutPlaintextCommand = async (input, context) => {
|
|
157
157
|
const headers = sharedHeaders("GenerateDataKeyWithoutPlaintext");
|
|
158
158
|
let body;
|
|
159
|
-
body = JSON.stringify(
|
|
159
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
160
160
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
161
161
|
};
|
|
162
162
|
exports.se_GenerateDataKeyWithoutPlaintextCommand = se_GenerateDataKeyWithoutPlaintextCommand;
|
|
@@ -170,35 +170,35 @@ exports.se_GenerateMacCommand = se_GenerateMacCommand;
|
|
|
170
170
|
const se_GenerateRandomCommand = async (input, context) => {
|
|
171
171
|
const headers = sharedHeaders("GenerateRandom");
|
|
172
172
|
let body;
|
|
173
|
-
body = JSON.stringify(
|
|
173
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
174
174
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
175
175
|
};
|
|
176
176
|
exports.se_GenerateRandomCommand = se_GenerateRandomCommand;
|
|
177
177
|
const se_GetKeyPolicyCommand = async (input, context) => {
|
|
178
178
|
const headers = sharedHeaders("GetKeyPolicy");
|
|
179
179
|
let body;
|
|
180
|
-
body = JSON.stringify(
|
|
180
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
181
181
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
182
182
|
};
|
|
183
183
|
exports.se_GetKeyPolicyCommand = se_GetKeyPolicyCommand;
|
|
184
184
|
const se_GetKeyRotationStatusCommand = async (input, context) => {
|
|
185
185
|
const headers = sharedHeaders("GetKeyRotationStatus");
|
|
186
186
|
let body;
|
|
187
|
-
body = JSON.stringify(
|
|
187
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
188
188
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
189
189
|
};
|
|
190
190
|
exports.se_GetKeyRotationStatusCommand = se_GetKeyRotationStatusCommand;
|
|
191
191
|
const se_GetParametersForImportCommand = async (input, context) => {
|
|
192
192
|
const headers = sharedHeaders("GetParametersForImport");
|
|
193
193
|
let body;
|
|
194
|
-
body = JSON.stringify(
|
|
194
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
195
195
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
196
196
|
};
|
|
197
197
|
exports.se_GetParametersForImportCommand = se_GetParametersForImportCommand;
|
|
198
198
|
const se_GetPublicKeyCommand = async (input, context) => {
|
|
199
199
|
const headers = sharedHeaders("GetPublicKey");
|
|
200
200
|
let body;
|
|
201
|
-
body = JSON.stringify(
|
|
201
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
202
202
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
203
203
|
};
|
|
204
204
|
exports.se_GetPublicKeyCommand = se_GetPublicKeyCommand;
|
|
@@ -212,49 +212,49 @@ exports.se_ImportKeyMaterialCommand = se_ImportKeyMaterialCommand;
|
|
|
212
212
|
const se_ListAliasesCommand = async (input, context) => {
|
|
213
213
|
const headers = sharedHeaders("ListAliases");
|
|
214
214
|
let body;
|
|
215
|
-
body = JSON.stringify(
|
|
215
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
216
216
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
217
217
|
};
|
|
218
218
|
exports.se_ListAliasesCommand = se_ListAliasesCommand;
|
|
219
219
|
const se_ListGrantsCommand = async (input, context) => {
|
|
220
220
|
const headers = sharedHeaders("ListGrants");
|
|
221
221
|
let body;
|
|
222
|
-
body = JSON.stringify(
|
|
222
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
223
223
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
224
224
|
};
|
|
225
225
|
exports.se_ListGrantsCommand = se_ListGrantsCommand;
|
|
226
226
|
const se_ListKeyPoliciesCommand = async (input, context) => {
|
|
227
227
|
const headers = sharedHeaders("ListKeyPolicies");
|
|
228
228
|
let body;
|
|
229
|
-
body = JSON.stringify(
|
|
229
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
230
230
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
231
231
|
};
|
|
232
232
|
exports.se_ListKeyPoliciesCommand = se_ListKeyPoliciesCommand;
|
|
233
233
|
const se_ListKeysCommand = async (input, context) => {
|
|
234
234
|
const headers = sharedHeaders("ListKeys");
|
|
235
235
|
let body;
|
|
236
|
-
body = JSON.stringify(
|
|
236
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
237
237
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
238
238
|
};
|
|
239
239
|
exports.se_ListKeysCommand = se_ListKeysCommand;
|
|
240
240
|
const se_ListResourceTagsCommand = async (input, context) => {
|
|
241
241
|
const headers = sharedHeaders("ListResourceTags");
|
|
242
242
|
let body;
|
|
243
|
-
body = JSON.stringify(
|
|
243
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
244
244
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
245
245
|
};
|
|
246
246
|
exports.se_ListResourceTagsCommand = se_ListResourceTagsCommand;
|
|
247
247
|
const se_ListRetirableGrantsCommand = async (input, context) => {
|
|
248
248
|
const headers = sharedHeaders("ListRetirableGrants");
|
|
249
249
|
let body;
|
|
250
|
-
body = JSON.stringify(
|
|
250
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
251
251
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
252
252
|
};
|
|
253
253
|
exports.se_ListRetirableGrantsCommand = se_ListRetirableGrantsCommand;
|
|
254
254
|
const se_PutKeyPolicyCommand = async (input, context) => {
|
|
255
255
|
const headers = sharedHeaders("PutKeyPolicy");
|
|
256
256
|
let body;
|
|
257
|
-
body = JSON.stringify(
|
|
257
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
258
258
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
259
259
|
};
|
|
260
260
|
exports.se_PutKeyPolicyCommand = se_PutKeyPolicyCommand;
|
|
@@ -268,28 +268,28 @@ exports.se_ReEncryptCommand = se_ReEncryptCommand;
|
|
|
268
268
|
const se_ReplicateKeyCommand = async (input, context) => {
|
|
269
269
|
const headers = sharedHeaders("ReplicateKey");
|
|
270
270
|
let body;
|
|
271
|
-
body = JSON.stringify(
|
|
271
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
272
272
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
273
273
|
};
|
|
274
274
|
exports.se_ReplicateKeyCommand = se_ReplicateKeyCommand;
|
|
275
275
|
const se_RetireGrantCommand = async (input, context) => {
|
|
276
276
|
const headers = sharedHeaders("RetireGrant");
|
|
277
277
|
let body;
|
|
278
|
-
body = JSON.stringify(
|
|
278
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
279
279
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
280
280
|
};
|
|
281
281
|
exports.se_RetireGrantCommand = se_RetireGrantCommand;
|
|
282
282
|
const se_RevokeGrantCommand = async (input, context) => {
|
|
283
283
|
const headers = sharedHeaders("RevokeGrant");
|
|
284
284
|
let body;
|
|
285
|
-
body = JSON.stringify(
|
|
285
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
286
286
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
287
287
|
};
|
|
288
288
|
exports.se_RevokeGrantCommand = se_RevokeGrantCommand;
|
|
289
289
|
const se_ScheduleKeyDeletionCommand = async (input, context) => {
|
|
290
290
|
const headers = sharedHeaders("ScheduleKeyDeletion");
|
|
291
291
|
let body;
|
|
292
|
-
body = JSON.stringify(
|
|
292
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
293
293
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
294
294
|
};
|
|
295
295
|
exports.se_ScheduleKeyDeletionCommand = se_ScheduleKeyDeletionCommand;
|
|
@@ -303,42 +303,42 @@ exports.se_SignCommand = se_SignCommand;
|
|
|
303
303
|
const se_TagResourceCommand = async (input, context) => {
|
|
304
304
|
const headers = sharedHeaders("TagResource");
|
|
305
305
|
let body;
|
|
306
|
-
body = JSON.stringify(
|
|
306
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
307
307
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
308
308
|
};
|
|
309
309
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
310
310
|
const se_UntagResourceCommand = async (input, context) => {
|
|
311
311
|
const headers = sharedHeaders("UntagResource");
|
|
312
312
|
let body;
|
|
313
|
-
body = JSON.stringify(
|
|
313
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
314
314
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
315
315
|
};
|
|
316
316
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
317
317
|
const se_UpdateAliasCommand = async (input, context) => {
|
|
318
318
|
const headers = sharedHeaders("UpdateAlias");
|
|
319
319
|
let body;
|
|
320
|
-
body = JSON.stringify(
|
|
320
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
321
321
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
322
322
|
};
|
|
323
323
|
exports.se_UpdateAliasCommand = se_UpdateAliasCommand;
|
|
324
324
|
const se_UpdateCustomKeyStoreCommand = async (input, context) => {
|
|
325
325
|
const headers = sharedHeaders("UpdateCustomKeyStore");
|
|
326
326
|
let body;
|
|
327
|
-
body = JSON.stringify(
|
|
327
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
328
328
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
329
329
|
};
|
|
330
330
|
exports.se_UpdateCustomKeyStoreCommand = se_UpdateCustomKeyStoreCommand;
|
|
331
331
|
const se_UpdateKeyDescriptionCommand = async (input, context) => {
|
|
332
332
|
const headers = sharedHeaders("UpdateKeyDescription");
|
|
333
333
|
let body;
|
|
334
|
-
body = JSON.stringify(
|
|
334
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
335
335
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
336
336
|
};
|
|
337
337
|
exports.se_UpdateKeyDescriptionCommand = se_UpdateKeyDescriptionCommand;
|
|
338
338
|
const se_UpdatePrimaryRegionCommand = async (input, context) => {
|
|
339
339
|
const headers = sharedHeaders("UpdatePrimaryRegion");
|
|
340
340
|
let body;
|
|
341
|
-
body = JSON.stringify(
|
|
341
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
342
342
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
343
343
|
};
|
|
344
344
|
exports.se_UpdatePrimaryRegionCommand = se_UpdatePrimaryRegionCommand;
|
|
@@ -362,12 +362,12 @@ const de_CancelKeyDeletionCommand = async (output, context) => {
|
|
|
362
362
|
}
|
|
363
363
|
const data = await parseBody(output.body, context);
|
|
364
364
|
let contents = {};
|
|
365
|
-
contents =
|
|
365
|
+
contents = (0, smithy_client_1._json)(data);
|
|
366
366
|
const response = {
|
|
367
367
|
$metadata: deserializeMetadata(output),
|
|
368
368
|
...contents,
|
|
369
369
|
};
|
|
370
|
-
return
|
|
370
|
+
return response;
|
|
371
371
|
};
|
|
372
372
|
exports.de_CancelKeyDeletionCommand = de_CancelKeyDeletionCommand;
|
|
373
373
|
const de_CancelKeyDeletionCommandError = async (output, context) => {
|
|
@@ -394,10 +394,9 @@ const de_CancelKeyDeletionCommandError = async (output, context) => {
|
|
|
394
394
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
395
395
|
default:
|
|
396
396
|
const parsedBody = parsedOutput.body;
|
|
397
|
-
|
|
397
|
+
return throwDefaultError({
|
|
398
398
|
output,
|
|
399
399
|
parsedBody,
|
|
400
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
401
400
|
errorCode,
|
|
402
401
|
});
|
|
403
402
|
}
|
|
@@ -408,12 +407,12 @@ const de_ConnectCustomKeyStoreCommand = async (output, context) => {
|
|
|
408
407
|
}
|
|
409
408
|
const data = await parseBody(output.body, context);
|
|
410
409
|
let contents = {};
|
|
411
|
-
contents =
|
|
410
|
+
contents = (0, smithy_client_1._json)(data);
|
|
412
411
|
const response = {
|
|
413
412
|
$metadata: deserializeMetadata(output),
|
|
414
413
|
...contents,
|
|
415
414
|
};
|
|
416
|
-
return
|
|
415
|
+
return response;
|
|
417
416
|
};
|
|
418
417
|
exports.de_ConnectCustomKeyStoreCommand = de_ConnectCustomKeyStoreCommand;
|
|
419
418
|
const de_ConnectCustomKeyStoreCommandError = async (output, context) => {
|
|
@@ -440,10 +439,9 @@ const de_ConnectCustomKeyStoreCommandError = async (output, context) => {
|
|
|
440
439
|
throw await de_KMSInternalExceptionRes(parsedOutput, context);
|
|
441
440
|
default:
|
|
442
441
|
const parsedBody = parsedOutput.body;
|
|
443
|
-
|
|
442
|
+
return throwDefaultError({
|
|
444
443
|
output,
|
|
445
444
|
parsedBody,
|
|
446
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
447
445
|
errorCode,
|
|
448
446
|
});
|
|
449
447
|
}
|
|
@@ -456,7 +454,7 @@ const de_CreateAliasCommand = async (output, context) => {
|
|
|
456
454
|
const response = {
|
|
457
455
|
$metadata: deserializeMetadata(output),
|
|
458
456
|
};
|
|
459
|
-
return
|
|
457
|
+
return response;
|
|
460
458
|
};
|
|
461
459
|
exports.de_CreateAliasCommand = de_CreateAliasCommand;
|
|
462
460
|
const de_CreateAliasCommandError = async (output, context) => {
|
|
@@ -489,10 +487,9 @@ const de_CreateAliasCommandError = async (output, context) => {
|
|
|
489
487
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
490
488
|
default:
|
|
491
489
|
const parsedBody = parsedOutput.body;
|
|
492
|
-
|
|
490
|
+
return throwDefaultError({
|
|
493
491
|
output,
|
|
494
492
|
parsedBody,
|
|
495
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
496
493
|
errorCode,
|
|
497
494
|
});
|
|
498
495
|
}
|
|
@@ -503,12 +500,12 @@ const de_CreateCustomKeyStoreCommand = async (output, context) => {
|
|
|
503
500
|
}
|
|
504
501
|
const data = await parseBody(output.body, context);
|
|
505
502
|
let contents = {};
|
|
506
|
-
contents =
|
|
503
|
+
contents = (0, smithy_client_1._json)(data);
|
|
507
504
|
const response = {
|
|
508
505
|
$metadata: deserializeMetadata(output),
|
|
509
506
|
...contents,
|
|
510
507
|
};
|
|
511
|
-
return
|
|
508
|
+
return response;
|
|
512
509
|
};
|
|
513
510
|
exports.de_CreateCustomKeyStoreCommand = de_CreateCustomKeyStoreCommand;
|
|
514
511
|
const de_CreateCustomKeyStoreCommandError = async (output, context) => {
|
|
@@ -571,10 +568,9 @@ const de_CreateCustomKeyStoreCommandError = async (output, context) => {
|
|
|
571
568
|
throw await de_XksProxyVpcEndpointServiceNotFoundExceptionRes(parsedOutput, context);
|
|
572
569
|
default:
|
|
573
570
|
const parsedBody = parsedOutput.body;
|
|
574
|
-
|
|
571
|
+
return throwDefaultError({
|
|
575
572
|
output,
|
|
576
573
|
parsedBody,
|
|
577
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
578
574
|
errorCode,
|
|
579
575
|
});
|
|
580
576
|
}
|
|
@@ -585,12 +581,12 @@ const de_CreateGrantCommand = async (output, context) => {
|
|
|
585
581
|
}
|
|
586
582
|
const data = await parseBody(output.body, context);
|
|
587
583
|
let contents = {};
|
|
588
|
-
contents =
|
|
584
|
+
contents = (0, smithy_client_1._json)(data);
|
|
589
585
|
const response = {
|
|
590
586
|
$metadata: deserializeMetadata(output),
|
|
591
587
|
...contents,
|
|
592
588
|
};
|
|
593
|
-
return
|
|
589
|
+
return response;
|
|
594
590
|
};
|
|
595
591
|
exports.de_CreateGrantCommand = de_CreateGrantCommand;
|
|
596
592
|
const de_CreateGrantCommandError = async (output, context) => {
|
|
@@ -626,10 +622,9 @@ const de_CreateGrantCommandError = async (output, context) => {
|
|
|
626
622
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
627
623
|
default:
|
|
628
624
|
const parsedBody = parsedOutput.body;
|
|
629
|
-
|
|
625
|
+
return throwDefaultError({
|
|
630
626
|
output,
|
|
631
627
|
parsedBody,
|
|
632
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
633
628
|
errorCode,
|
|
634
629
|
});
|
|
635
630
|
}
|
|
@@ -645,7 +640,7 @@ const de_CreateKeyCommand = async (output, context) => {
|
|
|
645
640
|
$metadata: deserializeMetadata(output),
|
|
646
641
|
...contents,
|
|
647
642
|
};
|
|
648
|
-
return
|
|
643
|
+
return response;
|
|
649
644
|
};
|
|
650
645
|
exports.de_CreateKeyCommand = de_CreateKeyCommand;
|
|
651
646
|
const de_CreateKeyCommandError = async (output, context) => {
|
|
@@ -696,10 +691,9 @@ const de_CreateKeyCommandError = async (output, context) => {
|
|
|
696
691
|
throw await de_XksKeyNotFoundExceptionRes(parsedOutput, context);
|
|
697
692
|
default:
|
|
698
693
|
const parsedBody = parsedOutput.body;
|
|
699
|
-
|
|
694
|
+
return throwDefaultError({
|
|
700
695
|
output,
|
|
701
696
|
parsedBody,
|
|
702
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
703
697
|
errorCode,
|
|
704
698
|
});
|
|
705
699
|
}
|
|
@@ -715,7 +709,7 @@ const de_DecryptCommand = async (output, context) => {
|
|
|
715
709
|
$metadata: deserializeMetadata(output),
|
|
716
710
|
...contents,
|
|
717
711
|
};
|
|
718
|
-
return
|
|
712
|
+
return response;
|
|
719
713
|
};
|
|
720
714
|
exports.de_DecryptCommand = de_DecryptCommand;
|
|
721
715
|
const de_DecryptCommandError = async (output, context) => {
|
|
@@ -757,10 +751,9 @@ const de_DecryptCommandError = async (output, context) => {
|
|
|
757
751
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
758
752
|
default:
|
|
759
753
|
const parsedBody = parsedOutput.body;
|
|
760
|
-
|
|
754
|
+
return throwDefaultError({
|
|
761
755
|
output,
|
|
762
756
|
parsedBody,
|
|
763
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
764
757
|
errorCode,
|
|
765
758
|
});
|
|
766
759
|
}
|
|
@@ -773,7 +766,7 @@ const de_DeleteAliasCommand = async (output, context) => {
|
|
|
773
766
|
const response = {
|
|
774
767
|
$metadata: deserializeMetadata(output),
|
|
775
768
|
};
|
|
776
|
-
return
|
|
769
|
+
return response;
|
|
777
770
|
};
|
|
778
771
|
exports.de_DeleteAliasCommand = de_DeleteAliasCommand;
|
|
779
772
|
const de_DeleteAliasCommandError = async (output, context) => {
|
|
@@ -797,10 +790,9 @@ const de_DeleteAliasCommandError = async (output, context) => {
|
|
|
797
790
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
798
791
|
default:
|
|
799
792
|
const parsedBody = parsedOutput.body;
|
|
800
|
-
|
|
793
|
+
return throwDefaultError({
|
|
801
794
|
output,
|
|
802
795
|
parsedBody,
|
|
803
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
804
796
|
errorCode,
|
|
805
797
|
});
|
|
806
798
|
}
|
|
@@ -811,12 +803,12 @@ const de_DeleteCustomKeyStoreCommand = async (output, context) => {
|
|
|
811
803
|
}
|
|
812
804
|
const data = await parseBody(output.body, context);
|
|
813
805
|
let contents = {};
|
|
814
|
-
contents =
|
|
806
|
+
contents = (0, smithy_client_1._json)(data);
|
|
815
807
|
const response = {
|
|
816
808
|
$metadata: deserializeMetadata(output),
|
|
817
809
|
...contents,
|
|
818
810
|
};
|
|
819
|
-
return
|
|
811
|
+
return response;
|
|
820
812
|
};
|
|
821
813
|
exports.de_DeleteCustomKeyStoreCommand = de_DeleteCustomKeyStoreCommand;
|
|
822
814
|
const de_DeleteCustomKeyStoreCommandError = async (output, context) => {
|
|
@@ -840,10 +832,9 @@ const de_DeleteCustomKeyStoreCommandError = async (output, context) => {
|
|
|
840
832
|
throw await de_KMSInternalExceptionRes(parsedOutput, context);
|
|
841
833
|
default:
|
|
842
834
|
const parsedBody = parsedOutput.body;
|
|
843
|
-
|
|
835
|
+
return throwDefaultError({
|
|
844
836
|
output,
|
|
845
837
|
parsedBody,
|
|
846
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
847
838
|
errorCode,
|
|
848
839
|
});
|
|
849
840
|
}
|
|
@@ -856,7 +847,7 @@ const de_DeleteImportedKeyMaterialCommand = async (output, context) => {
|
|
|
856
847
|
const response = {
|
|
857
848
|
$metadata: deserializeMetadata(output),
|
|
858
849
|
};
|
|
859
|
-
return
|
|
850
|
+
return response;
|
|
860
851
|
};
|
|
861
852
|
exports.de_DeleteImportedKeyMaterialCommand = de_DeleteImportedKeyMaterialCommand;
|
|
862
853
|
const de_DeleteImportedKeyMaterialCommandError = async (output, context) => {
|
|
@@ -886,10 +877,9 @@ const de_DeleteImportedKeyMaterialCommandError = async (output, context) => {
|
|
|
886
877
|
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
887
878
|
default:
|
|
888
879
|
const parsedBody = parsedOutput.body;
|
|
889
|
-
|
|
880
|
+
return throwDefaultError({
|
|
890
881
|
output,
|
|
891
882
|
parsedBody,
|
|
892
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
893
883
|
errorCode,
|
|
894
884
|
});
|
|
895
885
|
}
|
|
@@ -905,7 +895,7 @@ const de_DescribeCustomKeyStoresCommand = async (output, context) => {
|
|
|
905
895
|
$metadata: deserializeMetadata(output),
|
|
906
896
|
...contents,
|
|
907
897
|
};
|
|
908
|
-
return
|
|
898
|
+
return response;
|
|
909
899
|
};
|
|
910
900
|
exports.de_DescribeCustomKeyStoresCommand = de_DescribeCustomKeyStoresCommand;
|
|
911
901
|
const de_DescribeCustomKeyStoresCommandError = async (output, context) => {
|
|
@@ -926,10 +916,9 @@ const de_DescribeCustomKeyStoresCommandError = async (output, context) => {
|
|
|
926
916
|
throw await de_KMSInternalExceptionRes(parsedOutput, context);
|
|
927
917
|
default:
|
|
928
918
|
const parsedBody = parsedOutput.body;
|
|
929
|
-
|
|
919
|
+
return throwDefaultError({
|
|
930
920
|
output,
|
|
931
921
|
parsedBody,
|
|
932
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
933
922
|
errorCode,
|
|
934
923
|
});
|
|
935
924
|
}
|
|
@@ -945,7 +934,7 @@ const de_DescribeKeyCommand = async (output, context) => {
|
|
|
945
934
|
$metadata: deserializeMetadata(output),
|
|
946
935
|
...contents,
|
|
947
936
|
};
|
|
948
|
-
return
|
|
937
|
+
return response;
|
|
949
938
|
};
|
|
950
939
|
exports.de_DescribeKeyCommand = de_DescribeKeyCommand;
|
|
951
940
|
const de_DescribeKeyCommandError = async (output, context) => {
|
|
@@ -969,10 +958,9 @@ const de_DescribeKeyCommandError = async (output, context) => {
|
|
|
969
958
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
970
959
|
default:
|
|
971
960
|
const parsedBody = parsedOutput.body;
|
|
972
|
-
|
|
961
|
+
return throwDefaultError({
|
|
973
962
|
output,
|
|
974
963
|
parsedBody,
|
|
975
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
976
964
|
errorCode,
|
|
977
965
|
});
|
|
978
966
|
}
|
|
@@ -985,7 +973,7 @@ const de_DisableKeyCommand = async (output, context) => {
|
|
|
985
973
|
const response = {
|
|
986
974
|
$metadata: deserializeMetadata(output),
|
|
987
975
|
};
|
|
988
|
-
return
|
|
976
|
+
return response;
|
|
989
977
|
};
|
|
990
978
|
exports.de_DisableKeyCommand = de_DisableKeyCommand;
|
|
991
979
|
const de_DisableKeyCommandError = async (output, context) => {
|
|
@@ -1012,10 +1000,9 @@ const de_DisableKeyCommandError = async (output, context) => {
|
|
|
1012
1000
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1013
1001
|
default:
|
|
1014
1002
|
const parsedBody = parsedOutput.body;
|
|
1015
|
-
|
|
1003
|
+
return throwDefaultError({
|
|
1016
1004
|
output,
|
|
1017
1005
|
parsedBody,
|
|
1018
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
1019
1006
|
errorCode,
|
|
1020
1007
|
});
|
|
1021
1008
|
}
|
|
@@ -1028,7 +1015,7 @@ const de_DisableKeyRotationCommand = async (output, context) => {
|
|
|
1028
1015
|
const response = {
|
|
1029
1016
|
$metadata: deserializeMetadata(output),
|
|
1030
1017
|
};
|
|
1031
|
-
return
|
|
1018
|
+
return response;
|
|
1032
1019
|
};
|
|
1033
1020
|
exports.de_DisableKeyRotationCommand = de_DisableKeyRotationCommand;
|
|
1034
1021
|
const de_DisableKeyRotationCommandError = async (output, context) => {
|
|
@@ -1061,10 +1048,9 @@ const de_DisableKeyRotationCommandError = async (output, context) => {
|
|
|
1061
1048
|
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1062
1049
|
default:
|
|
1063
1050
|
const parsedBody = parsedOutput.body;
|
|
1064
|
-
|
|
1051
|
+
return throwDefaultError({
|
|
1065
1052
|
output,
|
|
1066
1053
|
parsedBody,
|
|
1067
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
1068
1054
|
errorCode,
|
|
1069
1055
|
});
|
|
1070
1056
|
}
|
|
@@ -1075,12 +1061,12 @@ const de_DisconnectCustomKeyStoreCommand = async (output, context) => {
|
|
|
1075
1061
|
}
|
|
1076
1062
|
const data = await parseBody(output.body, context);
|
|
1077
1063
|
let contents = {};
|
|
1078
|
-
contents =
|
|
1064
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1079
1065
|
const response = {
|
|
1080
1066
|
$metadata: deserializeMetadata(output),
|
|
1081
1067
|
...contents,
|
|
1082
1068
|
};
|
|
1083
|
-
return
|
|
1069
|
+
return response;
|
|
1084
1070
|
};
|
|
1085
1071
|
exports.de_DisconnectCustomKeyStoreCommand = de_DisconnectCustomKeyStoreCommand;
|
|
1086
1072
|
const de_DisconnectCustomKeyStoreCommandError = async (output, context) => {
|
|
@@ -1101,10 +1087,9 @@ const de_DisconnectCustomKeyStoreCommandError = async (output, context) => {
|
|
|
1101
1087
|
throw await de_KMSInternalExceptionRes(parsedOutput, context);
|
|
1102
1088
|
default:
|
|
1103
1089
|
const parsedBody = parsedOutput.body;
|
|
1104
|
-
|
|
1090
|
+
return throwDefaultError({
|
|
1105
1091
|
output,
|
|
1106
1092
|
parsedBody,
|
|
1107
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
1108
1093
|
errorCode,
|
|
1109
1094
|
});
|
|
1110
1095
|
}
|
|
@@ -1117,7 +1102,7 @@ const de_EnableKeyCommand = async (output, context) => {
|
|
|
1117
1102
|
const response = {
|
|
1118
1103
|
$metadata: deserializeMetadata(output),
|
|
1119
1104
|
};
|
|
1120
|
-
return
|
|
1105
|
+
return response;
|
|
1121
1106
|
};
|
|
1122
1107
|
exports.de_EnableKeyCommand = de_EnableKeyCommand;
|
|
1123
1108
|
const de_EnableKeyCommandError = async (output, context) => {
|
|
@@ -1147,10 +1132,9 @@ const de_EnableKeyCommandError = async (output, context) => {
|
|
|
1147
1132
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1148
1133
|
default:
|
|
1149
1134
|
const parsedBody = parsedOutput.body;
|
|
1150
|
-
|
|
1135
|
+
return throwDefaultError({
|
|
1151
1136
|
output,
|
|
1152
1137
|
parsedBody,
|
|
1153
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
1154
1138
|
errorCode,
|
|
1155
1139
|
});
|
|
1156
1140
|
}
|
|
@@ -1163,7 +1147,7 @@ const de_EnableKeyRotationCommand = async (output, context) => {
|
|
|
1163
1147
|
const response = {
|
|
1164
1148
|
$metadata: deserializeMetadata(output),
|
|
1165
1149
|
};
|
|
1166
|
-
return
|
|
1150
|
+
return response;
|
|
1167
1151
|
};
|
|
1168
1152
|
exports.de_EnableKeyRotationCommand = de_EnableKeyRotationCommand;
|
|
1169
1153
|
const de_EnableKeyRotationCommandError = async (output, context) => {
|
|
@@ -1196,10 +1180,9 @@ const de_EnableKeyRotationCommandError = async (output, context) => {
|
|
|
1196
1180
|
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1197
1181
|
default:
|
|
1198
1182
|
const parsedBody = parsedOutput.body;
|
|
1199
|
-
|
|
1183
|
+
return throwDefaultError({
|
|
1200
1184
|
output,
|
|
1201
1185
|
parsedBody,
|
|
1202
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
1203
1186
|
errorCode,
|
|
1204
1187
|
});
|
|
1205
1188
|
}
|
|
@@ -1215,7 +1198,7 @@ const de_EncryptCommand = async (output, context) => {
|
|
|
1215
1198
|
$metadata: deserializeMetadata(output),
|
|
1216
1199
|
...contents,
|
|
1217
1200
|
};
|
|
1218
|
-
return
|
|
1201
|
+
return response;
|
|
1219
1202
|
};
|
|
1220
1203
|
exports.de_EncryptCommand = de_EncryptCommand;
|
|
1221
1204
|
const de_EncryptCommandError = async (output, context) => {
|
|
@@ -1251,10 +1234,9 @@ const de_EncryptCommandError = async (output, context) => {
|
|
|
1251
1234
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1252
1235
|
default:
|
|
1253
1236
|
const parsedBody = parsedOutput.body;
|
|
1254
|
-
|
|
1237
|
+
return throwDefaultError({
|
|
1255
1238
|
output,
|
|
1256
1239
|
parsedBody,
|
|
1257
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
1258
1240
|
errorCode,
|
|
1259
1241
|
});
|
|
1260
1242
|
}
|
|
@@ -1270,7 +1252,7 @@ const de_GenerateDataKeyCommand = async (output, context) => {
|
|
|
1270
1252
|
$metadata: deserializeMetadata(output),
|
|
1271
1253
|
...contents,
|
|
1272
1254
|
};
|
|
1273
|
-
return
|
|
1255
|
+
return response;
|
|
1274
1256
|
};
|
|
1275
1257
|
exports.de_GenerateDataKeyCommand = de_GenerateDataKeyCommand;
|
|
1276
1258
|
const de_GenerateDataKeyCommandError = async (output, context) => {
|
|
@@ -1306,10 +1288,9 @@ const de_GenerateDataKeyCommandError = async (output, context) => {
|
|
|
1306
1288
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1307
1289
|
default:
|
|
1308
1290
|
const parsedBody = parsedOutput.body;
|
|
1309
|
-
|
|
1291
|
+
return throwDefaultError({
|
|
1310
1292
|
output,
|
|
1311
1293
|
parsedBody,
|
|
1312
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
1313
1294
|
errorCode,
|
|
1314
1295
|
});
|
|
1315
1296
|
}
|
|
@@ -1325,7 +1306,7 @@ const de_GenerateDataKeyPairCommand = async (output, context) => {
|
|
|
1325
1306
|
$metadata: deserializeMetadata(output),
|
|
1326
1307
|
...contents,
|
|
1327
1308
|
};
|
|
1328
|
-
return
|
|
1309
|
+
return response;
|
|
1329
1310
|
};
|
|
1330
1311
|
exports.de_GenerateDataKeyPairCommand = de_GenerateDataKeyPairCommand;
|
|
1331
1312
|
const de_GenerateDataKeyPairCommandError = async (output, context) => {
|
|
@@ -1364,10 +1345,9 @@ const de_GenerateDataKeyPairCommandError = async (output, context) => {
|
|
|
1364
1345
|
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1365
1346
|
default:
|
|
1366
1347
|
const parsedBody = parsedOutput.body;
|
|
1367
|
-
|
|
1348
|
+
return throwDefaultError({
|
|
1368
1349
|
output,
|
|
1369
1350
|
parsedBody,
|
|
1370
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
1371
1351
|
errorCode,
|
|
1372
1352
|
});
|
|
1373
1353
|
}
|
|
@@ -1383,7 +1363,7 @@ const de_GenerateDataKeyPairWithoutPlaintextCommand = async (output, context) =>
|
|
|
1383
1363
|
$metadata: deserializeMetadata(output),
|
|
1384
1364
|
...contents,
|
|
1385
1365
|
};
|
|
1386
|
-
return
|
|
1366
|
+
return response;
|
|
1387
1367
|
};
|
|
1388
1368
|
exports.de_GenerateDataKeyPairWithoutPlaintextCommand = de_GenerateDataKeyPairWithoutPlaintextCommand;
|
|
1389
1369
|
const de_GenerateDataKeyPairWithoutPlaintextCommandError = async (output, context) => {
|
|
@@ -1422,10 +1402,9 @@ const de_GenerateDataKeyPairWithoutPlaintextCommandError = async (output, contex
|
|
|
1422
1402
|
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1423
1403
|
default:
|
|
1424
1404
|
const parsedBody = parsedOutput.body;
|
|
1425
|
-
|
|
1405
|
+
return throwDefaultError({
|
|
1426
1406
|
output,
|
|
1427
1407
|
parsedBody,
|
|
1428
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
1429
1408
|
errorCode,
|
|
1430
1409
|
});
|
|
1431
1410
|
}
|
|
@@ -1441,7 +1420,7 @@ const de_GenerateDataKeyWithoutPlaintextCommand = async (output, context) => {
|
|
|
1441
1420
|
$metadata: deserializeMetadata(output),
|
|
1442
1421
|
...contents,
|
|
1443
1422
|
};
|
|
1444
|
-
return
|
|
1423
|
+
return response;
|
|
1445
1424
|
};
|
|
1446
1425
|
exports.de_GenerateDataKeyWithoutPlaintextCommand = de_GenerateDataKeyWithoutPlaintextCommand;
|
|
1447
1426
|
const de_GenerateDataKeyWithoutPlaintextCommandError = async (output, context) => {
|
|
@@ -1477,10 +1456,9 @@ const de_GenerateDataKeyWithoutPlaintextCommandError = async (output, context) =
|
|
|
1477
1456
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1478
1457
|
default:
|
|
1479
1458
|
const parsedBody = parsedOutput.body;
|
|
1480
|
-
|
|
1459
|
+
return throwDefaultError({
|
|
1481
1460
|
output,
|
|
1482
1461
|
parsedBody,
|
|
1483
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
1484
1462
|
errorCode,
|
|
1485
1463
|
});
|
|
1486
1464
|
}
|
|
@@ -1496,7 +1474,7 @@ const de_GenerateMacCommand = async (output, context) => {
|
|
|
1496
1474
|
$metadata: deserializeMetadata(output),
|
|
1497
1475
|
...contents,
|
|
1498
1476
|
};
|
|
1499
|
-
return
|
|
1477
|
+
return response;
|
|
1500
1478
|
};
|
|
1501
1479
|
exports.de_GenerateMacCommand = de_GenerateMacCommand;
|
|
1502
1480
|
const de_GenerateMacCommandError = async (output, context) => {
|
|
@@ -1529,10 +1507,9 @@ const de_GenerateMacCommandError = async (output, context) => {
|
|
|
1529
1507
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1530
1508
|
default:
|
|
1531
1509
|
const parsedBody = parsedOutput.body;
|
|
1532
|
-
|
|
1510
|
+
return throwDefaultError({
|
|
1533
1511
|
output,
|
|
1534
1512
|
parsedBody,
|
|
1535
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
1536
1513
|
errorCode,
|
|
1537
1514
|
});
|
|
1538
1515
|
}
|
|
@@ -1548,7 +1525,7 @@ const de_GenerateRandomCommand = async (output, context) => {
|
|
|
1548
1525
|
$metadata: deserializeMetadata(output),
|
|
1549
1526
|
...contents,
|
|
1550
1527
|
};
|
|
1551
|
-
return
|
|
1528
|
+
return response;
|
|
1552
1529
|
};
|
|
1553
1530
|
exports.de_GenerateRandomCommand = de_GenerateRandomCommand;
|
|
1554
1531
|
const de_GenerateRandomCommandError = async (output, context) => {
|
|
@@ -1575,10 +1552,9 @@ const de_GenerateRandomCommandError = async (output, context) => {
|
|
|
1575
1552
|
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1576
1553
|
default:
|
|
1577
1554
|
const parsedBody = parsedOutput.body;
|
|
1578
|
-
|
|
1555
|
+
return throwDefaultError({
|
|
1579
1556
|
output,
|
|
1580
1557
|
parsedBody,
|
|
1581
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
1582
1558
|
errorCode,
|
|
1583
1559
|
});
|
|
1584
1560
|
}
|
|
@@ -1589,12 +1565,12 @@ const de_GetKeyPolicyCommand = async (output, context) => {
|
|
|
1589
1565
|
}
|
|
1590
1566
|
const data = await parseBody(output.body, context);
|
|
1591
1567
|
let contents = {};
|
|
1592
|
-
contents =
|
|
1568
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1593
1569
|
const response = {
|
|
1594
1570
|
$metadata: deserializeMetadata(output),
|
|
1595
1571
|
...contents,
|
|
1596
1572
|
};
|
|
1597
|
-
return
|
|
1573
|
+
return response;
|
|
1598
1574
|
};
|
|
1599
1575
|
exports.de_GetKeyPolicyCommand = de_GetKeyPolicyCommand;
|
|
1600
1576
|
const de_GetKeyPolicyCommandError = async (output, context) => {
|
|
@@ -1621,10 +1597,9 @@ const de_GetKeyPolicyCommandError = async (output, context) => {
|
|
|
1621
1597
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1622
1598
|
default:
|
|
1623
1599
|
const parsedBody = parsedOutput.body;
|
|
1624
|
-
|
|
1600
|
+
return throwDefaultError({
|
|
1625
1601
|
output,
|
|
1626
1602
|
parsedBody,
|
|
1627
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
1628
1603
|
errorCode,
|
|
1629
1604
|
});
|
|
1630
1605
|
}
|
|
@@ -1635,12 +1610,12 @@ const de_GetKeyRotationStatusCommand = async (output, context) => {
|
|
|
1635
1610
|
}
|
|
1636
1611
|
const data = await parseBody(output.body, context);
|
|
1637
1612
|
let contents = {};
|
|
1638
|
-
contents =
|
|
1613
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1639
1614
|
const response = {
|
|
1640
1615
|
$metadata: deserializeMetadata(output),
|
|
1641
1616
|
...contents,
|
|
1642
1617
|
};
|
|
1643
|
-
return
|
|
1618
|
+
return response;
|
|
1644
1619
|
};
|
|
1645
1620
|
exports.de_GetKeyRotationStatusCommand = de_GetKeyRotationStatusCommand;
|
|
1646
1621
|
const de_GetKeyRotationStatusCommandError = async (output, context) => {
|
|
@@ -1670,10 +1645,9 @@ const de_GetKeyRotationStatusCommandError = async (output, context) => {
|
|
|
1670
1645
|
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1671
1646
|
default:
|
|
1672
1647
|
const parsedBody = parsedOutput.body;
|
|
1673
|
-
|
|
1648
|
+
return throwDefaultError({
|
|
1674
1649
|
output,
|
|
1675
1650
|
parsedBody,
|
|
1676
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
1677
1651
|
errorCode,
|
|
1678
1652
|
});
|
|
1679
1653
|
}
|
|
@@ -1689,7 +1663,7 @@ const de_GetParametersForImportCommand = async (output, context) => {
|
|
|
1689
1663
|
$metadata: deserializeMetadata(output),
|
|
1690
1664
|
...contents,
|
|
1691
1665
|
};
|
|
1692
|
-
return
|
|
1666
|
+
return response;
|
|
1693
1667
|
};
|
|
1694
1668
|
exports.de_GetParametersForImportCommand = de_GetParametersForImportCommand;
|
|
1695
1669
|
const de_GetParametersForImportCommandError = async (output, context) => {
|
|
@@ -1719,10 +1693,9 @@ const de_GetParametersForImportCommandError = async (output, context) => {
|
|
|
1719
1693
|
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1720
1694
|
default:
|
|
1721
1695
|
const parsedBody = parsedOutput.body;
|
|
1722
|
-
|
|
1696
|
+
return throwDefaultError({
|
|
1723
1697
|
output,
|
|
1724
1698
|
parsedBody,
|
|
1725
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
1726
1699
|
errorCode,
|
|
1727
1700
|
});
|
|
1728
1701
|
}
|
|
@@ -1738,7 +1711,7 @@ const de_GetPublicKeyCommand = async (output, context) => {
|
|
|
1738
1711
|
$metadata: deserializeMetadata(output),
|
|
1739
1712
|
...contents,
|
|
1740
1713
|
};
|
|
1741
|
-
return
|
|
1714
|
+
return response;
|
|
1742
1715
|
};
|
|
1743
1716
|
exports.de_GetPublicKeyCommand = de_GetPublicKeyCommand;
|
|
1744
1717
|
const de_GetPublicKeyCommandError = async (output, context) => {
|
|
@@ -1780,10 +1753,9 @@ const de_GetPublicKeyCommandError = async (output, context) => {
|
|
|
1780
1753
|
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1781
1754
|
default:
|
|
1782
1755
|
const parsedBody = parsedOutput.body;
|
|
1783
|
-
|
|
1756
|
+
return throwDefaultError({
|
|
1784
1757
|
output,
|
|
1785
1758
|
parsedBody,
|
|
1786
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
1787
1759
|
errorCode,
|
|
1788
1760
|
});
|
|
1789
1761
|
}
|
|
@@ -1794,12 +1766,12 @@ const de_ImportKeyMaterialCommand = async (output, context) => {
|
|
|
1794
1766
|
}
|
|
1795
1767
|
const data = await parseBody(output.body, context);
|
|
1796
1768
|
let contents = {};
|
|
1797
|
-
contents =
|
|
1769
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1798
1770
|
const response = {
|
|
1799
1771
|
$metadata: deserializeMetadata(output),
|
|
1800
1772
|
...contents,
|
|
1801
1773
|
};
|
|
1802
|
-
return
|
|
1774
|
+
return response;
|
|
1803
1775
|
};
|
|
1804
1776
|
exports.de_ImportKeyMaterialCommand = de_ImportKeyMaterialCommand;
|
|
1805
1777
|
const de_ImportKeyMaterialCommandError = async (output, context) => {
|
|
@@ -1841,10 +1813,9 @@ const de_ImportKeyMaterialCommandError = async (output, context) => {
|
|
|
1841
1813
|
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1842
1814
|
default:
|
|
1843
1815
|
const parsedBody = parsedOutput.body;
|
|
1844
|
-
|
|
1816
|
+
return throwDefaultError({
|
|
1845
1817
|
output,
|
|
1846
1818
|
parsedBody,
|
|
1847
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
1848
1819
|
errorCode,
|
|
1849
1820
|
});
|
|
1850
1821
|
}
|
|
@@ -1860,7 +1831,7 @@ const de_ListAliasesCommand = async (output, context) => {
|
|
|
1860
1831
|
$metadata: deserializeMetadata(output),
|
|
1861
1832
|
...contents,
|
|
1862
1833
|
};
|
|
1863
|
-
return
|
|
1834
|
+
return response;
|
|
1864
1835
|
};
|
|
1865
1836
|
exports.de_ListAliasesCommand = de_ListAliasesCommand;
|
|
1866
1837
|
const de_ListAliasesCommandError = async (output, context) => {
|
|
@@ -1887,10 +1858,9 @@ const de_ListAliasesCommandError = async (output, context) => {
|
|
|
1887
1858
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1888
1859
|
default:
|
|
1889
1860
|
const parsedBody = parsedOutput.body;
|
|
1890
|
-
|
|
1861
|
+
return throwDefaultError({
|
|
1891
1862
|
output,
|
|
1892
1863
|
parsedBody,
|
|
1893
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
1894
1864
|
errorCode,
|
|
1895
1865
|
});
|
|
1896
1866
|
}
|
|
@@ -1906,7 +1876,7 @@ const de_ListGrantsCommand = async (output, context) => {
|
|
|
1906
1876
|
$metadata: deserializeMetadata(output),
|
|
1907
1877
|
...contents,
|
|
1908
1878
|
};
|
|
1909
|
-
return
|
|
1879
|
+
return response;
|
|
1910
1880
|
};
|
|
1911
1881
|
exports.de_ListGrantsCommand = de_ListGrantsCommand;
|
|
1912
1882
|
const de_ListGrantsCommandError = async (output, context) => {
|
|
@@ -1939,10 +1909,9 @@ const de_ListGrantsCommandError = async (output, context) => {
|
|
|
1939
1909
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1940
1910
|
default:
|
|
1941
1911
|
const parsedBody = parsedOutput.body;
|
|
1942
|
-
|
|
1912
|
+
return throwDefaultError({
|
|
1943
1913
|
output,
|
|
1944
1914
|
parsedBody,
|
|
1945
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
1946
1915
|
errorCode,
|
|
1947
1916
|
});
|
|
1948
1917
|
}
|
|
@@ -1953,12 +1922,12 @@ const de_ListKeyPoliciesCommand = async (output, context) => {
|
|
|
1953
1922
|
}
|
|
1954
1923
|
const data = await parseBody(output.body, context);
|
|
1955
1924
|
let contents = {};
|
|
1956
|
-
contents =
|
|
1925
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1957
1926
|
const response = {
|
|
1958
1927
|
$metadata: deserializeMetadata(output),
|
|
1959
1928
|
...contents,
|
|
1960
1929
|
};
|
|
1961
|
-
return
|
|
1930
|
+
return response;
|
|
1962
1931
|
};
|
|
1963
1932
|
exports.de_ListKeyPoliciesCommand = de_ListKeyPoliciesCommand;
|
|
1964
1933
|
const de_ListKeyPoliciesCommandError = async (output, context) => {
|
|
@@ -1985,10 +1954,9 @@ const de_ListKeyPoliciesCommandError = async (output, context) => {
|
|
|
1985
1954
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1986
1955
|
default:
|
|
1987
1956
|
const parsedBody = parsedOutput.body;
|
|
1988
|
-
|
|
1957
|
+
return throwDefaultError({
|
|
1989
1958
|
output,
|
|
1990
1959
|
parsedBody,
|
|
1991
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
1992
1960
|
errorCode,
|
|
1993
1961
|
});
|
|
1994
1962
|
}
|
|
@@ -1999,12 +1967,12 @@ const de_ListKeysCommand = async (output, context) => {
|
|
|
1999
1967
|
}
|
|
2000
1968
|
const data = await parseBody(output.body, context);
|
|
2001
1969
|
let contents = {};
|
|
2002
|
-
contents =
|
|
1970
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2003
1971
|
const response = {
|
|
2004
1972
|
$metadata: deserializeMetadata(output),
|
|
2005
1973
|
...contents,
|
|
2006
1974
|
};
|
|
2007
|
-
return
|
|
1975
|
+
return response;
|
|
2008
1976
|
};
|
|
2009
1977
|
exports.de_ListKeysCommand = de_ListKeysCommand;
|
|
2010
1978
|
const de_ListKeysCommandError = async (output, context) => {
|
|
@@ -2025,10 +1993,9 @@ const de_ListKeysCommandError = async (output, context) => {
|
|
|
2025
1993
|
throw await de_KMSInternalExceptionRes(parsedOutput, context);
|
|
2026
1994
|
default:
|
|
2027
1995
|
const parsedBody = parsedOutput.body;
|
|
2028
|
-
|
|
1996
|
+
return throwDefaultError({
|
|
2029
1997
|
output,
|
|
2030
1998
|
parsedBody,
|
|
2031
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
2032
1999
|
errorCode,
|
|
2033
2000
|
});
|
|
2034
2001
|
}
|
|
@@ -2039,12 +2006,12 @@ const de_ListResourceTagsCommand = async (output, context) => {
|
|
|
2039
2006
|
}
|
|
2040
2007
|
const data = await parseBody(output.body, context);
|
|
2041
2008
|
let contents = {};
|
|
2042
|
-
contents =
|
|
2009
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2043
2010
|
const response = {
|
|
2044
2011
|
$metadata: deserializeMetadata(output),
|
|
2045
2012
|
...contents,
|
|
2046
2013
|
};
|
|
2047
|
-
return
|
|
2014
|
+
return response;
|
|
2048
2015
|
};
|
|
2049
2016
|
exports.de_ListResourceTagsCommand = de_ListResourceTagsCommand;
|
|
2050
2017
|
const de_ListResourceTagsCommandError = async (output, context) => {
|
|
@@ -2068,10 +2035,9 @@ const de_ListResourceTagsCommandError = async (output, context) => {
|
|
|
2068
2035
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2069
2036
|
default:
|
|
2070
2037
|
const parsedBody = parsedOutput.body;
|
|
2071
|
-
|
|
2038
|
+
return throwDefaultError({
|
|
2072
2039
|
output,
|
|
2073
2040
|
parsedBody,
|
|
2074
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
2075
2041
|
errorCode,
|
|
2076
2042
|
});
|
|
2077
2043
|
}
|
|
@@ -2087,7 +2053,7 @@ const de_ListRetirableGrantsCommand = async (output, context) => {
|
|
|
2087
2053
|
$metadata: deserializeMetadata(output),
|
|
2088
2054
|
...contents,
|
|
2089
2055
|
};
|
|
2090
|
-
return
|
|
2056
|
+
return response;
|
|
2091
2057
|
};
|
|
2092
2058
|
exports.de_ListRetirableGrantsCommand = de_ListRetirableGrantsCommand;
|
|
2093
2059
|
const de_ListRetirableGrantsCommandError = async (output, context) => {
|
|
@@ -2114,10 +2080,9 @@ const de_ListRetirableGrantsCommandError = async (output, context) => {
|
|
|
2114
2080
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2115
2081
|
default:
|
|
2116
2082
|
const parsedBody = parsedOutput.body;
|
|
2117
|
-
|
|
2083
|
+
return throwDefaultError({
|
|
2118
2084
|
output,
|
|
2119
2085
|
parsedBody,
|
|
2120
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
2121
2086
|
errorCode,
|
|
2122
2087
|
});
|
|
2123
2088
|
}
|
|
@@ -2130,7 +2095,7 @@ const de_PutKeyPolicyCommand = async (output, context) => {
|
|
|
2130
2095
|
const response = {
|
|
2131
2096
|
$metadata: deserializeMetadata(output),
|
|
2132
2097
|
};
|
|
2133
|
-
return
|
|
2098
|
+
return response;
|
|
2134
2099
|
};
|
|
2135
2100
|
exports.de_PutKeyPolicyCommand = de_PutKeyPolicyCommand;
|
|
2136
2101
|
const de_PutKeyPolicyCommandError = async (output, context) => {
|
|
@@ -2166,10 +2131,9 @@ const de_PutKeyPolicyCommandError = async (output, context) => {
|
|
|
2166
2131
|
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2167
2132
|
default:
|
|
2168
2133
|
const parsedBody = parsedOutput.body;
|
|
2169
|
-
|
|
2134
|
+
return throwDefaultError({
|
|
2170
2135
|
output,
|
|
2171
2136
|
parsedBody,
|
|
2172
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
2173
2137
|
errorCode,
|
|
2174
2138
|
});
|
|
2175
2139
|
}
|
|
@@ -2185,7 +2149,7 @@ const de_ReEncryptCommand = async (output, context) => {
|
|
|
2185
2149
|
$metadata: deserializeMetadata(output),
|
|
2186
2150
|
...contents,
|
|
2187
2151
|
};
|
|
2188
|
-
return
|
|
2152
|
+
return response;
|
|
2189
2153
|
};
|
|
2190
2154
|
exports.de_ReEncryptCommand = de_ReEncryptCommand;
|
|
2191
2155
|
const de_ReEncryptCommandError = async (output, context) => {
|
|
@@ -2227,10 +2191,9 @@ const de_ReEncryptCommandError = async (output, context) => {
|
|
|
2227
2191
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2228
2192
|
default:
|
|
2229
2193
|
const parsedBody = parsedOutput.body;
|
|
2230
|
-
|
|
2194
|
+
return throwDefaultError({
|
|
2231
2195
|
output,
|
|
2232
2196
|
parsedBody,
|
|
2233
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
2234
2197
|
errorCode,
|
|
2235
2198
|
});
|
|
2236
2199
|
}
|
|
@@ -2246,7 +2209,7 @@ const de_ReplicateKeyCommand = async (output, context) => {
|
|
|
2246
2209
|
$metadata: deserializeMetadata(output),
|
|
2247
2210
|
...contents,
|
|
2248
2211
|
};
|
|
2249
|
-
return
|
|
2212
|
+
return response;
|
|
2250
2213
|
};
|
|
2251
2214
|
exports.de_ReplicateKeyCommand = de_ReplicateKeyCommand;
|
|
2252
2215
|
const de_ReplicateKeyCommandError = async (output, context) => {
|
|
@@ -2288,10 +2251,9 @@ const de_ReplicateKeyCommandError = async (output, context) => {
|
|
|
2288
2251
|
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2289
2252
|
default:
|
|
2290
2253
|
const parsedBody = parsedOutput.body;
|
|
2291
|
-
|
|
2254
|
+
return throwDefaultError({
|
|
2292
2255
|
output,
|
|
2293
2256
|
parsedBody,
|
|
2294
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
2295
2257
|
errorCode,
|
|
2296
2258
|
});
|
|
2297
2259
|
}
|
|
@@ -2304,7 +2266,7 @@ const de_RetireGrantCommand = async (output, context) => {
|
|
|
2304
2266
|
const response = {
|
|
2305
2267
|
$metadata: deserializeMetadata(output),
|
|
2306
2268
|
};
|
|
2307
|
-
return
|
|
2269
|
+
return response;
|
|
2308
2270
|
};
|
|
2309
2271
|
exports.de_RetireGrantCommand = de_RetireGrantCommand;
|
|
2310
2272
|
const de_RetireGrantCommandError = async (output, context) => {
|
|
@@ -2337,10 +2299,9 @@ const de_RetireGrantCommandError = async (output, context) => {
|
|
|
2337
2299
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2338
2300
|
default:
|
|
2339
2301
|
const parsedBody = parsedOutput.body;
|
|
2340
|
-
|
|
2302
|
+
return throwDefaultError({
|
|
2341
2303
|
output,
|
|
2342
2304
|
parsedBody,
|
|
2343
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
2344
2305
|
errorCode,
|
|
2345
2306
|
});
|
|
2346
2307
|
}
|
|
@@ -2353,7 +2314,7 @@ const de_RevokeGrantCommand = async (output, context) => {
|
|
|
2353
2314
|
const response = {
|
|
2354
2315
|
$metadata: deserializeMetadata(output),
|
|
2355
2316
|
};
|
|
2356
|
-
return
|
|
2317
|
+
return response;
|
|
2357
2318
|
};
|
|
2358
2319
|
exports.de_RevokeGrantCommand = de_RevokeGrantCommand;
|
|
2359
2320
|
const de_RevokeGrantCommandError = async (output, context) => {
|
|
@@ -2383,10 +2344,9 @@ const de_RevokeGrantCommandError = async (output, context) => {
|
|
|
2383
2344
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2384
2345
|
default:
|
|
2385
2346
|
const parsedBody = parsedOutput.body;
|
|
2386
|
-
|
|
2347
|
+
return throwDefaultError({
|
|
2387
2348
|
output,
|
|
2388
2349
|
parsedBody,
|
|
2389
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
2390
2350
|
errorCode,
|
|
2391
2351
|
});
|
|
2392
2352
|
}
|
|
@@ -2402,7 +2362,7 @@ const de_ScheduleKeyDeletionCommand = async (output, context) => {
|
|
|
2402
2362
|
$metadata: deserializeMetadata(output),
|
|
2403
2363
|
...contents,
|
|
2404
2364
|
};
|
|
2405
|
-
return
|
|
2365
|
+
return response;
|
|
2406
2366
|
};
|
|
2407
2367
|
exports.de_ScheduleKeyDeletionCommand = de_ScheduleKeyDeletionCommand;
|
|
2408
2368
|
const de_ScheduleKeyDeletionCommandError = async (output, context) => {
|
|
@@ -2429,10 +2389,9 @@ const de_ScheduleKeyDeletionCommandError = async (output, context) => {
|
|
|
2429
2389
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2430
2390
|
default:
|
|
2431
2391
|
const parsedBody = parsedOutput.body;
|
|
2432
|
-
|
|
2392
|
+
return throwDefaultError({
|
|
2433
2393
|
output,
|
|
2434
2394
|
parsedBody,
|
|
2435
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
2436
2395
|
errorCode,
|
|
2437
2396
|
});
|
|
2438
2397
|
}
|
|
@@ -2448,7 +2407,7 @@ const de_SignCommand = async (output, context) => {
|
|
|
2448
2407
|
$metadata: deserializeMetadata(output),
|
|
2449
2408
|
...contents,
|
|
2450
2409
|
};
|
|
2451
|
-
return
|
|
2410
|
+
return response;
|
|
2452
2411
|
};
|
|
2453
2412
|
exports.de_SignCommand = de_SignCommand;
|
|
2454
2413
|
const de_SignCommandError = async (output, context) => {
|
|
@@ -2484,10 +2443,9 @@ const de_SignCommandError = async (output, context) => {
|
|
|
2484
2443
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2485
2444
|
default:
|
|
2486
2445
|
const parsedBody = parsedOutput.body;
|
|
2487
|
-
|
|
2446
|
+
return throwDefaultError({
|
|
2488
2447
|
output,
|
|
2489
2448
|
parsedBody,
|
|
2490
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
2491
2449
|
errorCode,
|
|
2492
2450
|
});
|
|
2493
2451
|
}
|
|
@@ -2500,7 +2458,7 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
2500
2458
|
const response = {
|
|
2501
2459
|
$metadata: deserializeMetadata(output),
|
|
2502
2460
|
};
|
|
2503
|
-
return
|
|
2461
|
+
return response;
|
|
2504
2462
|
};
|
|
2505
2463
|
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
2506
2464
|
const de_TagResourceCommandError = async (output, context) => {
|
|
@@ -2530,10 +2488,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
2530
2488
|
throw await de_TagExceptionRes(parsedOutput, context);
|
|
2531
2489
|
default:
|
|
2532
2490
|
const parsedBody = parsedOutput.body;
|
|
2533
|
-
|
|
2491
|
+
return throwDefaultError({
|
|
2534
2492
|
output,
|
|
2535
2493
|
parsedBody,
|
|
2536
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
2537
2494
|
errorCode,
|
|
2538
2495
|
});
|
|
2539
2496
|
}
|
|
@@ -2546,7 +2503,7 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
2546
2503
|
const response = {
|
|
2547
2504
|
$metadata: deserializeMetadata(output),
|
|
2548
2505
|
};
|
|
2549
|
-
return
|
|
2506
|
+
return response;
|
|
2550
2507
|
};
|
|
2551
2508
|
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
2552
2509
|
const de_UntagResourceCommandError = async (output, context) => {
|
|
@@ -2573,10 +2530,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
2573
2530
|
throw await de_TagExceptionRes(parsedOutput, context);
|
|
2574
2531
|
default:
|
|
2575
2532
|
const parsedBody = parsedOutput.body;
|
|
2576
|
-
|
|
2533
|
+
return throwDefaultError({
|
|
2577
2534
|
output,
|
|
2578
2535
|
parsedBody,
|
|
2579
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
2580
2536
|
errorCode,
|
|
2581
2537
|
});
|
|
2582
2538
|
}
|
|
@@ -2589,7 +2545,7 @@ const de_UpdateAliasCommand = async (output, context) => {
|
|
|
2589
2545
|
const response = {
|
|
2590
2546
|
$metadata: deserializeMetadata(output),
|
|
2591
2547
|
};
|
|
2592
|
-
return
|
|
2548
|
+
return response;
|
|
2593
2549
|
};
|
|
2594
2550
|
exports.de_UpdateAliasCommand = de_UpdateAliasCommand;
|
|
2595
2551
|
const de_UpdateAliasCommandError = async (output, context) => {
|
|
@@ -2616,10 +2572,9 @@ const de_UpdateAliasCommandError = async (output, context) => {
|
|
|
2616
2572
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2617
2573
|
default:
|
|
2618
2574
|
const parsedBody = parsedOutput.body;
|
|
2619
|
-
|
|
2575
|
+
return throwDefaultError({
|
|
2620
2576
|
output,
|
|
2621
2577
|
parsedBody,
|
|
2622
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
2623
2578
|
errorCode,
|
|
2624
2579
|
});
|
|
2625
2580
|
}
|
|
@@ -2630,12 +2585,12 @@ const de_UpdateCustomKeyStoreCommand = async (output, context) => {
|
|
|
2630
2585
|
}
|
|
2631
2586
|
const data = await parseBody(output.body, context);
|
|
2632
2587
|
let contents = {};
|
|
2633
|
-
contents =
|
|
2588
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2634
2589
|
const response = {
|
|
2635
2590
|
$metadata: deserializeMetadata(output),
|
|
2636
2591
|
...contents,
|
|
2637
2592
|
};
|
|
2638
|
-
return
|
|
2593
|
+
return response;
|
|
2639
2594
|
};
|
|
2640
2595
|
exports.de_UpdateCustomKeyStoreCommand = de_UpdateCustomKeyStoreCommand;
|
|
2641
2596
|
const de_UpdateCustomKeyStoreCommandError = async (output, context) => {
|
|
@@ -2698,10 +2653,9 @@ const de_UpdateCustomKeyStoreCommandError = async (output, context) => {
|
|
|
2698
2653
|
throw await de_XksProxyVpcEndpointServiceNotFoundExceptionRes(parsedOutput, context);
|
|
2699
2654
|
default:
|
|
2700
2655
|
const parsedBody = parsedOutput.body;
|
|
2701
|
-
|
|
2656
|
+
return throwDefaultError({
|
|
2702
2657
|
output,
|
|
2703
2658
|
parsedBody,
|
|
2704
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
2705
2659
|
errorCode,
|
|
2706
2660
|
});
|
|
2707
2661
|
}
|
|
@@ -2714,7 +2668,7 @@ const de_UpdateKeyDescriptionCommand = async (output, context) => {
|
|
|
2714
2668
|
const response = {
|
|
2715
2669
|
$metadata: deserializeMetadata(output),
|
|
2716
2670
|
};
|
|
2717
|
-
return
|
|
2671
|
+
return response;
|
|
2718
2672
|
};
|
|
2719
2673
|
exports.de_UpdateKeyDescriptionCommand = de_UpdateKeyDescriptionCommand;
|
|
2720
2674
|
const de_UpdateKeyDescriptionCommandError = async (output, context) => {
|
|
@@ -2741,10 +2695,9 @@ const de_UpdateKeyDescriptionCommandError = async (output, context) => {
|
|
|
2741
2695
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2742
2696
|
default:
|
|
2743
2697
|
const parsedBody = parsedOutput.body;
|
|
2744
|
-
|
|
2698
|
+
return throwDefaultError({
|
|
2745
2699
|
output,
|
|
2746
2700
|
parsedBody,
|
|
2747
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
2748
2701
|
errorCode,
|
|
2749
2702
|
});
|
|
2750
2703
|
}
|
|
@@ -2757,7 +2710,7 @@ const de_UpdatePrimaryRegionCommand = async (output, context) => {
|
|
|
2757
2710
|
const response = {
|
|
2758
2711
|
$metadata: deserializeMetadata(output),
|
|
2759
2712
|
};
|
|
2760
|
-
return
|
|
2713
|
+
return response;
|
|
2761
2714
|
};
|
|
2762
2715
|
exports.de_UpdatePrimaryRegionCommand = de_UpdatePrimaryRegionCommand;
|
|
2763
2716
|
const de_UpdatePrimaryRegionCommandError = async (output, context) => {
|
|
@@ -2787,10 +2740,9 @@ const de_UpdatePrimaryRegionCommandError = async (output, context) => {
|
|
|
2787
2740
|
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2788
2741
|
default:
|
|
2789
2742
|
const parsedBody = parsedOutput.body;
|
|
2790
|
-
|
|
2743
|
+
return throwDefaultError({
|
|
2791
2744
|
output,
|
|
2792
2745
|
parsedBody,
|
|
2793
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
2794
2746
|
errorCode,
|
|
2795
2747
|
});
|
|
2796
2748
|
}
|
|
@@ -2801,12 +2753,12 @@ const de_VerifyCommand = async (output, context) => {
|
|
|
2801
2753
|
}
|
|
2802
2754
|
const data = await parseBody(output.body, context);
|
|
2803
2755
|
let contents = {};
|
|
2804
|
-
contents =
|
|
2756
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2805
2757
|
const response = {
|
|
2806
2758
|
$metadata: deserializeMetadata(output),
|
|
2807
2759
|
...contents,
|
|
2808
2760
|
};
|
|
2809
|
-
return
|
|
2761
|
+
return response;
|
|
2810
2762
|
};
|
|
2811
2763
|
exports.de_VerifyCommand = de_VerifyCommand;
|
|
2812
2764
|
const de_VerifyCommandError = async (output, context) => {
|
|
@@ -2845,10 +2797,9 @@ const de_VerifyCommandError = async (output, context) => {
|
|
|
2845
2797
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2846
2798
|
default:
|
|
2847
2799
|
const parsedBody = parsedOutput.body;
|
|
2848
|
-
|
|
2800
|
+
return throwDefaultError({
|
|
2849
2801
|
output,
|
|
2850
2802
|
parsedBody,
|
|
2851
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
2852
2803
|
errorCode,
|
|
2853
2804
|
});
|
|
2854
2805
|
}
|
|
@@ -2859,12 +2810,12 @@ const de_VerifyMacCommand = async (output, context) => {
|
|
|
2859
2810
|
}
|
|
2860
2811
|
const data = await parseBody(output.body, context);
|
|
2861
2812
|
let contents = {};
|
|
2862
|
-
contents =
|
|
2813
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2863
2814
|
const response = {
|
|
2864
2815
|
$metadata: deserializeMetadata(output),
|
|
2865
2816
|
...contents,
|
|
2866
2817
|
};
|
|
2867
|
-
return
|
|
2818
|
+
return response;
|
|
2868
2819
|
};
|
|
2869
2820
|
exports.de_VerifyMacCommand = de_VerifyMacCommand;
|
|
2870
2821
|
const de_VerifyMacCommandError = async (output, context) => {
|
|
@@ -2900,17 +2851,16 @@ const de_VerifyMacCommandError = async (output, context) => {
|
|
|
2900
2851
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2901
2852
|
default:
|
|
2902
2853
|
const parsedBody = parsedOutput.body;
|
|
2903
|
-
|
|
2854
|
+
return throwDefaultError({
|
|
2904
2855
|
output,
|
|
2905
2856
|
parsedBody,
|
|
2906
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
2907
2857
|
errorCode,
|
|
2908
2858
|
});
|
|
2909
2859
|
}
|
|
2910
2860
|
};
|
|
2911
2861
|
const de_AlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
2912
2862
|
const body = parsedOutput.body;
|
|
2913
|
-
const deserialized =
|
|
2863
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
2914
2864
|
const exception = new models_0_1.AlreadyExistsException({
|
|
2915
2865
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2916
2866
|
...deserialized,
|
|
@@ -2919,7 +2869,7 @@ const de_AlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
|
2919
2869
|
};
|
|
2920
2870
|
const de_CloudHsmClusterInUseExceptionRes = async (parsedOutput, context) => {
|
|
2921
2871
|
const body = parsedOutput.body;
|
|
2922
|
-
const deserialized =
|
|
2872
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
2923
2873
|
const exception = new models_0_1.CloudHsmClusterInUseException({
|
|
2924
2874
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2925
2875
|
...deserialized,
|
|
@@ -2928,7 +2878,7 @@ const de_CloudHsmClusterInUseExceptionRes = async (parsedOutput, context) => {
|
|
|
2928
2878
|
};
|
|
2929
2879
|
const de_CloudHsmClusterInvalidConfigurationExceptionRes = async (parsedOutput, context) => {
|
|
2930
2880
|
const body = parsedOutput.body;
|
|
2931
|
-
const deserialized =
|
|
2881
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
2932
2882
|
const exception = new models_0_1.CloudHsmClusterInvalidConfigurationException({
|
|
2933
2883
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2934
2884
|
...deserialized,
|
|
@@ -2937,7 +2887,7 @@ const de_CloudHsmClusterInvalidConfigurationExceptionRes = async (parsedOutput,
|
|
|
2937
2887
|
};
|
|
2938
2888
|
const de_CloudHsmClusterNotActiveExceptionRes = async (parsedOutput, context) => {
|
|
2939
2889
|
const body = parsedOutput.body;
|
|
2940
|
-
const deserialized =
|
|
2890
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
2941
2891
|
const exception = new models_0_1.CloudHsmClusterNotActiveException({
|
|
2942
2892
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2943
2893
|
...deserialized,
|
|
@@ -2946,7 +2896,7 @@ const de_CloudHsmClusterNotActiveExceptionRes = async (parsedOutput, context) =>
|
|
|
2946
2896
|
};
|
|
2947
2897
|
const de_CloudHsmClusterNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2948
2898
|
const body = parsedOutput.body;
|
|
2949
|
-
const deserialized =
|
|
2899
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
2950
2900
|
const exception = new models_0_1.CloudHsmClusterNotFoundException({
|
|
2951
2901
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2952
2902
|
...deserialized,
|
|
@@ -2955,7 +2905,7 @@ const de_CloudHsmClusterNotFoundExceptionRes = async (parsedOutput, context) =>
|
|
|
2955
2905
|
};
|
|
2956
2906
|
const de_CloudHsmClusterNotRelatedExceptionRes = async (parsedOutput, context) => {
|
|
2957
2907
|
const body = parsedOutput.body;
|
|
2958
|
-
const deserialized =
|
|
2908
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
2959
2909
|
const exception = new models_0_1.CloudHsmClusterNotRelatedException({
|
|
2960
2910
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2961
2911
|
...deserialized,
|
|
@@ -2964,7 +2914,7 @@ const de_CloudHsmClusterNotRelatedExceptionRes = async (parsedOutput, context) =
|
|
|
2964
2914
|
};
|
|
2965
2915
|
const de_CustomKeyStoreHasCMKsExceptionRes = async (parsedOutput, context) => {
|
|
2966
2916
|
const body = parsedOutput.body;
|
|
2967
|
-
const deserialized =
|
|
2917
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
2968
2918
|
const exception = new models_0_1.CustomKeyStoreHasCMKsException({
|
|
2969
2919
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2970
2920
|
...deserialized,
|
|
@@ -2973,7 +2923,7 @@ const de_CustomKeyStoreHasCMKsExceptionRes = async (parsedOutput, context) => {
|
|
|
2973
2923
|
};
|
|
2974
2924
|
const de_CustomKeyStoreInvalidStateExceptionRes = async (parsedOutput, context) => {
|
|
2975
2925
|
const body = parsedOutput.body;
|
|
2976
|
-
const deserialized =
|
|
2926
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
2977
2927
|
const exception = new models_0_1.CustomKeyStoreInvalidStateException({
|
|
2978
2928
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2979
2929
|
...deserialized,
|
|
@@ -2982,7 +2932,7 @@ const de_CustomKeyStoreInvalidStateExceptionRes = async (parsedOutput, context)
|
|
|
2982
2932
|
};
|
|
2983
2933
|
const de_CustomKeyStoreNameInUseExceptionRes = async (parsedOutput, context) => {
|
|
2984
2934
|
const body = parsedOutput.body;
|
|
2985
|
-
const deserialized =
|
|
2935
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
2986
2936
|
const exception = new models_0_1.CustomKeyStoreNameInUseException({
|
|
2987
2937
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2988
2938
|
...deserialized,
|
|
@@ -2991,7 +2941,7 @@ const de_CustomKeyStoreNameInUseExceptionRes = async (parsedOutput, context) =>
|
|
|
2991
2941
|
};
|
|
2992
2942
|
const de_CustomKeyStoreNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2993
2943
|
const body = parsedOutput.body;
|
|
2994
|
-
const deserialized =
|
|
2944
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
2995
2945
|
const exception = new models_0_1.CustomKeyStoreNotFoundException({
|
|
2996
2946
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2997
2947
|
...deserialized,
|
|
@@ -3000,7 +2950,7 @@ const de_CustomKeyStoreNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
3000
2950
|
};
|
|
3001
2951
|
const de_DependencyTimeoutExceptionRes = async (parsedOutput, context) => {
|
|
3002
2952
|
const body = parsedOutput.body;
|
|
3003
|
-
const deserialized =
|
|
2953
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3004
2954
|
const exception = new models_0_1.DependencyTimeoutException({
|
|
3005
2955
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3006
2956
|
...deserialized,
|
|
@@ -3009,7 +2959,7 @@ const de_DependencyTimeoutExceptionRes = async (parsedOutput, context) => {
|
|
|
3009
2959
|
};
|
|
3010
2960
|
const de_DisabledExceptionRes = async (parsedOutput, context) => {
|
|
3011
2961
|
const body = parsedOutput.body;
|
|
3012
|
-
const deserialized =
|
|
2962
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3013
2963
|
const exception = new models_0_1.DisabledException({
|
|
3014
2964
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3015
2965
|
...deserialized,
|
|
@@ -3018,7 +2968,7 @@ const de_DisabledExceptionRes = async (parsedOutput, context) => {
|
|
|
3018
2968
|
};
|
|
3019
2969
|
const de_ExpiredImportTokenExceptionRes = async (parsedOutput, context) => {
|
|
3020
2970
|
const body = parsedOutput.body;
|
|
3021
|
-
const deserialized =
|
|
2971
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3022
2972
|
const exception = new models_0_1.ExpiredImportTokenException({
|
|
3023
2973
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3024
2974
|
...deserialized,
|
|
@@ -3027,7 +2977,7 @@ const de_ExpiredImportTokenExceptionRes = async (parsedOutput, context) => {
|
|
|
3027
2977
|
};
|
|
3028
2978
|
const de_IncorrectKeyExceptionRes = async (parsedOutput, context) => {
|
|
3029
2979
|
const body = parsedOutput.body;
|
|
3030
|
-
const deserialized =
|
|
2980
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3031
2981
|
const exception = new models_0_1.IncorrectKeyException({
|
|
3032
2982
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3033
2983
|
...deserialized,
|
|
@@ -3036,7 +2986,7 @@ const de_IncorrectKeyExceptionRes = async (parsedOutput, context) => {
|
|
|
3036
2986
|
};
|
|
3037
2987
|
const de_IncorrectKeyMaterialExceptionRes = async (parsedOutput, context) => {
|
|
3038
2988
|
const body = parsedOutput.body;
|
|
3039
|
-
const deserialized =
|
|
2989
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3040
2990
|
const exception = new models_0_1.IncorrectKeyMaterialException({
|
|
3041
2991
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3042
2992
|
...deserialized,
|
|
@@ -3045,7 +2995,7 @@ const de_IncorrectKeyMaterialExceptionRes = async (parsedOutput, context) => {
|
|
|
3045
2995
|
};
|
|
3046
2996
|
const de_IncorrectTrustAnchorExceptionRes = async (parsedOutput, context) => {
|
|
3047
2997
|
const body = parsedOutput.body;
|
|
3048
|
-
const deserialized =
|
|
2998
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3049
2999
|
const exception = new models_0_1.IncorrectTrustAnchorException({
|
|
3050
3000
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3051
3001
|
...deserialized,
|
|
@@ -3054,7 +3004,7 @@ const de_IncorrectTrustAnchorExceptionRes = async (parsedOutput, context) => {
|
|
|
3054
3004
|
};
|
|
3055
3005
|
const de_InvalidAliasNameExceptionRes = async (parsedOutput, context) => {
|
|
3056
3006
|
const body = parsedOutput.body;
|
|
3057
|
-
const deserialized =
|
|
3007
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3058
3008
|
const exception = new models_0_1.InvalidAliasNameException({
|
|
3059
3009
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3060
3010
|
...deserialized,
|
|
@@ -3063,7 +3013,7 @@ const de_InvalidAliasNameExceptionRes = async (parsedOutput, context) => {
|
|
|
3063
3013
|
};
|
|
3064
3014
|
const de_InvalidArnExceptionRes = async (parsedOutput, context) => {
|
|
3065
3015
|
const body = parsedOutput.body;
|
|
3066
|
-
const deserialized =
|
|
3016
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3067
3017
|
const exception = new models_0_1.InvalidArnException({
|
|
3068
3018
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3069
3019
|
...deserialized,
|
|
@@ -3072,7 +3022,7 @@ const de_InvalidArnExceptionRes = async (parsedOutput, context) => {
|
|
|
3072
3022
|
};
|
|
3073
3023
|
const de_InvalidCiphertextExceptionRes = async (parsedOutput, context) => {
|
|
3074
3024
|
const body = parsedOutput.body;
|
|
3075
|
-
const deserialized =
|
|
3025
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3076
3026
|
const exception = new models_0_1.InvalidCiphertextException({
|
|
3077
3027
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3078
3028
|
...deserialized,
|
|
@@ -3081,7 +3031,7 @@ const de_InvalidCiphertextExceptionRes = async (parsedOutput, context) => {
|
|
|
3081
3031
|
};
|
|
3082
3032
|
const de_InvalidGrantIdExceptionRes = async (parsedOutput, context) => {
|
|
3083
3033
|
const body = parsedOutput.body;
|
|
3084
|
-
const deserialized =
|
|
3034
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3085
3035
|
const exception = new models_0_1.InvalidGrantIdException({
|
|
3086
3036
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3087
3037
|
...deserialized,
|
|
@@ -3090,7 +3040,7 @@ const de_InvalidGrantIdExceptionRes = async (parsedOutput, context) => {
|
|
|
3090
3040
|
};
|
|
3091
3041
|
const de_InvalidGrantTokenExceptionRes = async (parsedOutput, context) => {
|
|
3092
3042
|
const body = parsedOutput.body;
|
|
3093
|
-
const deserialized =
|
|
3043
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3094
3044
|
const exception = new models_0_1.InvalidGrantTokenException({
|
|
3095
3045
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3096
3046
|
...deserialized,
|
|
@@ -3099,7 +3049,7 @@ const de_InvalidGrantTokenExceptionRes = async (parsedOutput, context) => {
|
|
|
3099
3049
|
};
|
|
3100
3050
|
const de_InvalidImportTokenExceptionRes = async (parsedOutput, context) => {
|
|
3101
3051
|
const body = parsedOutput.body;
|
|
3102
|
-
const deserialized =
|
|
3052
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3103
3053
|
const exception = new models_0_1.InvalidImportTokenException({
|
|
3104
3054
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3105
3055
|
...deserialized,
|
|
@@ -3108,7 +3058,7 @@ const de_InvalidImportTokenExceptionRes = async (parsedOutput, context) => {
|
|
|
3108
3058
|
};
|
|
3109
3059
|
const de_InvalidKeyUsageExceptionRes = async (parsedOutput, context) => {
|
|
3110
3060
|
const body = parsedOutput.body;
|
|
3111
|
-
const deserialized =
|
|
3061
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3112
3062
|
const exception = new models_0_1.InvalidKeyUsageException({
|
|
3113
3063
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3114
3064
|
...deserialized,
|
|
@@ -3117,7 +3067,7 @@ const de_InvalidKeyUsageExceptionRes = async (parsedOutput, context) => {
|
|
|
3117
3067
|
};
|
|
3118
3068
|
const de_InvalidMarkerExceptionRes = async (parsedOutput, context) => {
|
|
3119
3069
|
const body = parsedOutput.body;
|
|
3120
|
-
const deserialized =
|
|
3070
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3121
3071
|
const exception = new models_0_1.InvalidMarkerException({
|
|
3122
3072
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3123
3073
|
...deserialized,
|
|
@@ -3126,7 +3076,7 @@ const de_InvalidMarkerExceptionRes = async (parsedOutput, context) => {
|
|
|
3126
3076
|
};
|
|
3127
3077
|
const de_KeyUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
3128
3078
|
const body = parsedOutput.body;
|
|
3129
|
-
const deserialized =
|
|
3079
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3130
3080
|
const exception = new models_0_1.KeyUnavailableException({
|
|
3131
3081
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3132
3082
|
...deserialized,
|
|
@@ -3135,7 +3085,7 @@ const de_KeyUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
|
3135
3085
|
};
|
|
3136
3086
|
const de_KMSInternalExceptionRes = async (parsedOutput, context) => {
|
|
3137
3087
|
const body = parsedOutput.body;
|
|
3138
|
-
const deserialized =
|
|
3088
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3139
3089
|
const exception = new models_0_1.KMSInternalException({
|
|
3140
3090
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3141
3091
|
...deserialized,
|
|
@@ -3144,7 +3094,7 @@ const de_KMSInternalExceptionRes = async (parsedOutput, context) => {
|
|
|
3144
3094
|
};
|
|
3145
3095
|
const de_KMSInvalidMacExceptionRes = async (parsedOutput, context) => {
|
|
3146
3096
|
const body = parsedOutput.body;
|
|
3147
|
-
const deserialized =
|
|
3097
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3148
3098
|
const exception = new models_0_1.KMSInvalidMacException({
|
|
3149
3099
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3150
3100
|
...deserialized,
|
|
@@ -3153,7 +3103,7 @@ const de_KMSInvalidMacExceptionRes = async (parsedOutput, context) => {
|
|
|
3153
3103
|
};
|
|
3154
3104
|
const de_KMSInvalidSignatureExceptionRes = async (parsedOutput, context) => {
|
|
3155
3105
|
const body = parsedOutput.body;
|
|
3156
|
-
const deserialized =
|
|
3106
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3157
3107
|
const exception = new models_0_1.KMSInvalidSignatureException({
|
|
3158
3108
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3159
3109
|
...deserialized,
|
|
@@ -3162,7 +3112,7 @@ const de_KMSInvalidSignatureExceptionRes = async (parsedOutput, context) => {
|
|
|
3162
3112
|
};
|
|
3163
3113
|
const de_KMSInvalidStateExceptionRes = async (parsedOutput, context) => {
|
|
3164
3114
|
const body = parsedOutput.body;
|
|
3165
|
-
const deserialized =
|
|
3115
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3166
3116
|
const exception = new models_0_1.KMSInvalidStateException({
|
|
3167
3117
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3168
3118
|
...deserialized,
|
|
@@ -3171,7 +3121,7 @@ const de_KMSInvalidStateExceptionRes = async (parsedOutput, context) => {
|
|
|
3171
3121
|
};
|
|
3172
3122
|
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
3173
3123
|
const body = parsedOutput.body;
|
|
3174
|
-
const deserialized =
|
|
3124
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3175
3125
|
const exception = new models_0_1.LimitExceededException({
|
|
3176
3126
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3177
3127
|
...deserialized,
|
|
@@ -3180,7 +3130,7 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
3180
3130
|
};
|
|
3181
3131
|
const de_MalformedPolicyDocumentExceptionRes = async (parsedOutput, context) => {
|
|
3182
3132
|
const body = parsedOutput.body;
|
|
3183
|
-
const deserialized =
|
|
3133
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3184
3134
|
const exception = new models_0_1.MalformedPolicyDocumentException({
|
|
3185
3135
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3186
3136
|
...deserialized,
|
|
@@ -3189,7 +3139,7 @@ const de_MalformedPolicyDocumentExceptionRes = async (parsedOutput, context) =>
|
|
|
3189
3139
|
};
|
|
3190
3140
|
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
3191
3141
|
const body = parsedOutput.body;
|
|
3192
|
-
const deserialized =
|
|
3142
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3193
3143
|
const exception = new models_0_1.NotFoundException({
|
|
3194
3144
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3195
3145
|
...deserialized,
|
|
@@ -3198,7 +3148,7 @@ const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
3198
3148
|
};
|
|
3199
3149
|
const de_TagExceptionRes = async (parsedOutput, context) => {
|
|
3200
3150
|
const body = parsedOutput.body;
|
|
3201
|
-
const deserialized =
|
|
3151
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3202
3152
|
const exception = new models_0_1.TagException({
|
|
3203
3153
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3204
3154
|
...deserialized,
|
|
@@ -3207,7 +3157,7 @@ const de_TagExceptionRes = async (parsedOutput, context) => {
|
|
|
3207
3157
|
};
|
|
3208
3158
|
const de_UnsupportedOperationExceptionRes = async (parsedOutput, context) => {
|
|
3209
3159
|
const body = parsedOutput.body;
|
|
3210
|
-
const deserialized =
|
|
3160
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3211
3161
|
const exception = new models_0_1.UnsupportedOperationException({
|
|
3212
3162
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3213
3163
|
...deserialized,
|
|
@@ -3216,7 +3166,7 @@ const de_UnsupportedOperationExceptionRes = async (parsedOutput, context) => {
|
|
|
3216
3166
|
};
|
|
3217
3167
|
const de_XksKeyAlreadyInUseExceptionRes = async (parsedOutput, context) => {
|
|
3218
3168
|
const body = parsedOutput.body;
|
|
3219
|
-
const deserialized =
|
|
3169
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3220
3170
|
const exception = new models_0_1.XksKeyAlreadyInUseException({
|
|
3221
3171
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3222
3172
|
...deserialized,
|
|
@@ -3225,7 +3175,7 @@ const de_XksKeyAlreadyInUseExceptionRes = async (parsedOutput, context) => {
|
|
|
3225
3175
|
};
|
|
3226
3176
|
const de_XksKeyInvalidConfigurationExceptionRes = async (parsedOutput, context) => {
|
|
3227
3177
|
const body = parsedOutput.body;
|
|
3228
|
-
const deserialized =
|
|
3178
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3229
3179
|
const exception = new models_0_1.XksKeyInvalidConfigurationException({
|
|
3230
3180
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3231
3181
|
...deserialized,
|
|
@@ -3234,7 +3184,7 @@ const de_XksKeyInvalidConfigurationExceptionRes = async (parsedOutput, context)
|
|
|
3234
3184
|
};
|
|
3235
3185
|
const de_XksKeyNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
3236
3186
|
const body = parsedOutput.body;
|
|
3237
|
-
const deserialized =
|
|
3187
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3238
3188
|
const exception = new models_0_1.XksKeyNotFoundException({
|
|
3239
3189
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3240
3190
|
...deserialized,
|
|
@@ -3243,7 +3193,7 @@ const de_XksKeyNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
3243
3193
|
};
|
|
3244
3194
|
const de_XksProxyIncorrectAuthenticationCredentialExceptionRes = async (parsedOutput, context) => {
|
|
3245
3195
|
const body = parsedOutput.body;
|
|
3246
|
-
const deserialized =
|
|
3196
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3247
3197
|
const exception = new models_0_1.XksProxyIncorrectAuthenticationCredentialException({
|
|
3248
3198
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3249
3199
|
...deserialized,
|
|
@@ -3252,7 +3202,7 @@ const de_XksProxyIncorrectAuthenticationCredentialExceptionRes = async (parsedOu
|
|
|
3252
3202
|
};
|
|
3253
3203
|
const de_XksProxyInvalidConfigurationExceptionRes = async (parsedOutput, context) => {
|
|
3254
3204
|
const body = parsedOutput.body;
|
|
3255
|
-
const deserialized =
|
|
3205
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3256
3206
|
const exception = new models_0_1.XksProxyInvalidConfigurationException({
|
|
3257
3207
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3258
3208
|
...deserialized,
|
|
@@ -3261,7 +3211,7 @@ const de_XksProxyInvalidConfigurationExceptionRes = async (parsedOutput, context
|
|
|
3261
3211
|
};
|
|
3262
3212
|
const de_XksProxyInvalidResponseExceptionRes = async (parsedOutput, context) => {
|
|
3263
3213
|
const body = parsedOutput.body;
|
|
3264
|
-
const deserialized =
|
|
3214
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3265
3215
|
const exception = new models_0_1.XksProxyInvalidResponseException({
|
|
3266
3216
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3267
3217
|
...deserialized,
|
|
@@ -3270,7 +3220,7 @@ const de_XksProxyInvalidResponseExceptionRes = async (parsedOutput, context) =>
|
|
|
3270
3220
|
};
|
|
3271
3221
|
const de_XksProxyUriEndpointInUseExceptionRes = async (parsedOutput, context) => {
|
|
3272
3222
|
const body = parsedOutput.body;
|
|
3273
|
-
const deserialized =
|
|
3223
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3274
3224
|
const exception = new models_0_1.XksProxyUriEndpointInUseException({
|
|
3275
3225
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3276
3226
|
...deserialized,
|
|
@@ -3279,7 +3229,7 @@ const de_XksProxyUriEndpointInUseExceptionRes = async (parsedOutput, context) =>
|
|
|
3279
3229
|
};
|
|
3280
3230
|
const de_XksProxyUriInUseExceptionRes = async (parsedOutput, context) => {
|
|
3281
3231
|
const body = parsedOutput.body;
|
|
3282
|
-
const deserialized =
|
|
3232
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3283
3233
|
const exception = new models_0_1.XksProxyUriInUseException({
|
|
3284
3234
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3285
3235
|
...deserialized,
|
|
@@ -3288,7 +3238,7 @@ const de_XksProxyUriInUseExceptionRes = async (parsedOutput, context) => {
|
|
|
3288
3238
|
};
|
|
3289
3239
|
const de_XksProxyUriUnreachableExceptionRes = async (parsedOutput, context) => {
|
|
3290
3240
|
const body = parsedOutput.body;
|
|
3291
|
-
const deserialized =
|
|
3241
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3292
3242
|
const exception = new models_0_1.XksProxyUriUnreachableException({
|
|
3293
3243
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3294
3244
|
...deserialized,
|
|
@@ -3297,7 +3247,7 @@ const de_XksProxyUriUnreachableExceptionRes = async (parsedOutput, context) => {
|
|
|
3297
3247
|
};
|
|
3298
3248
|
const de_XksProxyVpcEndpointServiceInUseExceptionRes = async (parsedOutput, context) => {
|
|
3299
3249
|
const body = parsedOutput.body;
|
|
3300
|
-
const deserialized =
|
|
3250
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3301
3251
|
const exception = new models_0_1.XksProxyVpcEndpointServiceInUseException({
|
|
3302
3252
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3303
3253
|
...deserialized,
|
|
@@ -3306,7 +3256,7 @@ const de_XksProxyVpcEndpointServiceInUseExceptionRes = async (parsedOutput, cont
|
|
|
3306
3256
|
};
|
|
3307
3257
|
const de_XksProxyVpcEndpointServiceInvalidConfigurationExceptionRes = async (parsedOutput, context) => {
|
|
3308
3258
|
const body = parsedOutput.body;
|
|
3309
|
-
const deserialized =
|
|
3259
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3310
3260
|
const exception = new models_0_1.XksProxyVpcEndpointServiceInvalidConfigurationException({
|
|
3311
3261
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3312
3262
|
...deserialized,
|
|
@@ -3315,1186 +3265,311 @@ const de_XksProxyVpcEndpointServiceInvalidConfigurationExceptionRes = async (par
|
|
|
3315
3265
|
};
|
|
3316
3266
|
const de_XksProxyVpcEndpointServiceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
3317
3267
|
const body = parsedOutput.body;
|
|
3318
|
-
const deserialized =
|
|
3268
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3319
3269
|
const exception = new models_0_1.XksProxyVpcEndpointServiceNotFoundException({
|
|
3320
3270
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3321
3271
|
...deserialized,
|
|
3322
3272
|
});
|
|
3323
3273
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3324
3274
|
};
|
|
3325
|
-
const se_CancelKeyDeletionRequest = (input, context) => {
|
|
3326
|
-
return {
|
|
3327
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3328
|
-
};
|
|
3329
|
-
};
|
|
3330
|
-
const se_ConnectCustomKeyStoreRequest = (input, context) => {
|
|
3331
|
-
return {
|
|
3332
|
-
...(input.CustomKeyStoreId != null && { CustomKeyStoreId: input.CustomKeyStoreId }),
|
|
3333
|
-
};
|
|
3334
|
-
};
|
|
3335
|
-
const se_CreateAliasRequest = (input, context) => {
|
|
3336
|
-
return {
|
|
3337
|
-
...(input.AliasName != null && { AliasName: input.AliasName }),
|
|
3338
|
-
...(input.TargetKeyId != null && { TargetKeyId: input.TargetKeyId }),
|
|
3339
|
-
};
|
|
3340
|
-
};
|
|
3341
|
-
const se_CreateCustomKeyStoreRequest = (input, context) => {
|
|
3342
|
-
return {
|
|
3343
|
-
...(input.CloudHsmClusterId != null && { CloudHsmClusterId: input.CloudHsmClusterId }),
|
|
3344
|
-
...(input.CustomKeyStoreName != null && { CustomKeyStoreName: input.CustomKeyStoreName }),
|
|
3345
|
-
...(input.CustomKeyStoreType != null && { CustomKeyStoreType: input.CustomKeyStoreType }),
|
|
3346
|
-
...(input.KeyStorePassword != null && { KeyStorePassword: input.KeyStorePassword }),
|
|
3347
|
-
...(input.TrustAnchorCertificate != null && { TrustAnchorCertificate: input.TrustAnchorCertificate }),
|
|
3348
|
-
...(input.XksProxyAuthenticationCredential != null && {
|
|
3349
|
-
XksProxyAuthenticationCredential: se_XksProxyAuthenticationCredentialType(input.XksProxyAuthenticationCredential, context),
|
|
3350
|
-
}),
|
|
3351
|
-
...(input.XksProxyConnectivity != null && { XksProxyConnectivity: input.XksProxyConnectivity }),
|
|
3352
|
-
...(input.XksProxyUriEndpoint != null && { XksProxyUriEndpoint: input.XksProxyUriEndpoint }),
|
|
3353
|
-
...(input.XksProxyUriPath != null && { XksProxyUriPath: input.XksProxyUriPath }),
|
|
3354
|
-
...(input.XksProxyVpcEndpointServiceName != null && {
|
|
3355
|
-
XksProxyVpcEndpointServiceName: input.XksProxyVpcEndpointServiceName,
|
|
3356
|
-
}),
|
|
3357
|
-
};
|
|
3358
|
-
};
|
|
3359
|
-
const se_CreateGrantRequest = (input, context) => {
|
|
3360
|
-
return {
|
|
3361
|
-
...(input.Constraints != null && { Constraints: se_GrantConstraints(input.Constraints, context) }),
|
|
3362
|
-
...(input.GrantTokens != null && { GrantTokens: se_GrantTokenList(input.GrantTokens, context) }),
|
|
3363
|
-
...(input.GranteePrincipal != null && { GranteePrincipal: input.GranteePrincipal }),
|
|
3364
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3365
|
-
...(input.Name != null && { Name: input.Name }),
|
|
3366
|
-
...(input.Operations != null && { Operations: se_GrantOperationList(input.Operations, context) }),
|
|
3367
|
-
...(input.RetiringPrincipal != null && { RetiringPrincipal: input.RetiringPrincipal }),
|
|
3368
|
-
};
|
|
3369
|
-
};
|
|
3370
|
-
const se_CreateKeyRequest = (input, context) => {
|
|
3371
|
-
return {
|
|
3372
|
-
...(input.BypassPolicyLockoutSafetyCheck != null && {
|
|
3373
|
-
BypassPolicyLockoutSafetyCheck: input.BypassPolicyLockoutSafetyCheck,
|
|
3374
|
-
}),
|
|
3375
|
-
...(input.CustomKeyStoreId != null && { CustomKeyStoreId: input.CustomKeyStoreId }),
|
|
3376
|
-
...(input.CustomerMasterKeySpec != null && { CustomerMasterKeySpec: input.CustomerMasterKeySpec }),
|
|
3377
|
-
...(input.Description != null && { Description: input.Description }),
|
|
3378
|
-
...(input.KeySpec != null && { KeySpec: input.KeySpec }),
|
|
3379
|
-
...(input.KeyUsage != null && { KeyUsage: input.KeyUsage }),
|
|
3380
|
-
...(input.MultiRegion != null && { MultiRegion: input.MultiRegion }),
|
|
3381
|
-
...(input.Origin != null && { Origin: input.Origin }),
|
|
3382
|
-
...(input.Policy != null && { Policy: input.Policy }),
|
|
3383
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
3384
|
-
...(input.XksKeyId != null && { XksKeyId: input.XksKeyId }),
|
|
3385
|
-
};
|
|
3386
|
-
};
|
|
3387
3275
|
const se_DecryptRequest = (input, context) => {
|
|
3388
|
-
return {
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3396
|
-
};
|
|
3397
|
-
};
|
|
3398
|
-
const se_DeleteAliasRequest = (input, context) => {
|
|
3399
|
-
return {
|
|
3400
|
-
...(input.AliasName != null && { AliasName: input.AliasName }),
|
|
3401
|
-
};
|
|
3402
|
-
};
|
|
3403
|
-
const se_DeleteCustomKeyStoreRequest = (input, context) => {
|
|
3404
|
-
return {
|
|
3405
|
-
...(input.CustomKeyStoreId != null && { CustomKeyStoreId: input.CustomKeyStoreId }),
|
|
3406
|
-
};
|
|
3407
|
-
};
|
|
3408
|
-
const se_DeleteImportedKeyMaterialRequest = (input, context) => {
|
|
3409
|
-
return {
|
|
3410
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3411
|
-
};
|
|
3412
|
-
};
|
|
3413
|
-
const se_DescribeCustomKeyStoresRequest = (input, context) => {
|
|
3414
|
-
return {
|
|
3415
|
-
...(input.CustomKeyStoreId != null && { CustomKeyStoreId: input.CustomKeyStoreId }),
|
|
3416
|
-
...(input.CustomKeyStoreName != null && { CustomKeyStoreName: input.CustomKeyStoreName }),
|
|
3417
|
-
...(input.Limit != null && { Limit: input.Limit }),
|
|
3418
|
-
...(input.Marker != null && { Marker: input.Marker }),
|
|
3419
|
-
};
|
|
3420
|
-
};
|
|
3421
|
-
const se_DescribeKeyRequest = (input, context) => {
|
|
3422
|
-
return {
|
|
3423
|
-
...(input.GrantTokens != null && { GrantTokens: se_GrantTokenList(input.GrantTokens, context) }),
|
|
3424
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3425
|
-
};
|
|
3426
|
-
};
|
|
3427
|
-
const se_DisableKeyRequest = (input, context) => {
|
|
3428
|
-
return {
|
|
3429
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3430
|
-
};
|
|
3431
|
-
};
|
|
3432
|
-
const se_DisableKeyRotationRequest = (input, context) => {
|
|
3433
|
-
return {
|
|
3434
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3435
|
-
};
|
|
3436
|
-
};
|
|
3437
|
-
const se_DisconnectCustomKeyStoreRequest = (input, context) => {
|
|
3438
|
-
return {
|
|
3439
|
-
...(input.CustomKeyStoreId != null && { CustomKeyStoreId: input.CustomKeyStoreId }),
|
|
3440
|
-
};
|
|
3441
|
-
};
|
|
3442
|
-
const se_EnableKeyRequest = (input, context) => {
|
|
3443
|
-
return {
|
|
3444
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3445
|
-
};
|
|
3446
|
-
};
|
|
3447
|
-
const se_EnableKeyRotationRequest = (input, context) => {
|
|
3448
|
-
return {
|
|
3449
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3450
|
-
};
|
|
3451
|
-
};
|
|
3452
|
-
const se_EncryptionContextType = (input, context) => {
|
|
3453
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
3454
|
-
if (value === null) {
|
|
3455
|
-
return acc;
|
|
3456
|
-
}
|
|
3457
|
-
acc[key] = value;
|
|
3458
|
-
return acc;
|
|
3459
|
-
}, {});
|
|
3276
|
+
return (0, smithy_client_1.take)(input, {
|
|
3277
|
+
CiphertextBlob: context.base64Encoder,
|
|
3278
|
+
EncryptionAlgorithm: [],
|
|
3279
|
+
EncryptionContext: smithy_client_1._json,
|
|
3280
|
+
GrantTokens: smithy_client_1._json,
|
|
3281
|
+
KeyId: [],
|
|
3282
|
+
});
|
|
3460
3283
|
};
|
|
3461
3284
|
const se_EncryptRequest = (input, context) => {
|
|
3462
|
-
return {
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3469
|
-
...(input.Plaintext != null && { Plaintext: context.base64Encoder(input.Plaintext) }),
|
|
3470
|
-
};
|
|
3471
|
-
};
|
|
3472
|
-
const se_GenerateDataKeyPairRequest = (input, context) => {
|
|
3473
|
-
return {
|
|
3474
|
-
...(input.EncryptionContext != null && {
|
|
3475
|
-
EncryptionContext: se_EncryptionContextType(input.EncryptionContext, context),
|
|
3476
|
-
}),
|
|
3477
|
-
...(input.GrantTokens != null && { GrantTokens: se_GrantTokenList(input.GrantTokens, context) }),
|
|
3478
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3479
|
-
...(input.KeyPairSpec != null && { KeyPairSpec: input.KeyPairSpec }),
|
|
3480
|
-
};
|
|
3481
|
-
};
|
|
3482
|
-
const se_GenerateDataKeyPairWithoutPlaintextRequest = (input, context) => {
|
|
3483
|
-
return {
|
|
3484
|
-
...(input.EncryptionContext != null && {
|
|
3485
|
-
EncryptionContext: se_EncryptionContextType(input.EncryptionContext, context),
|
|
3486
|
-
}),
|
|
3487
|
-
...(input.GrantTokens != null && { GrantTokens: se_GrantTokenList(input.GrantTokens, context) }),
|
|
3488
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3489
|
-
...(input.KeyPairSpec != null && { KeyPairSpec: input.KeyPairSpec }),
|
|
3490
|
-
};
|
|
3491
|
-
};
|
|
3492
|
-
const se_GenerateDataKeyRequest = (input, context) => {
|
|
3493
|
-
return {
|
|
3494
|
-
...(input.EncryptionContext != null && {
|
|
3495
|
-
EncryptionContext: se_EncryptionContextType(input.EncryptionContext, context),
|
|
3496
|
-
}),
|
|
3497
|
-
...(input.GrantTokens != null && { GrantTokens: se_GrantTokenList(input.GrantTokens, context) }),
|
|
3498
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3499
|
-
...(input.KeySpec != null && { KeySpec: input.KeySpec }),
|
|
3500
|
-
...(input.NumberOfBytes != null && { NumberOfBytes: input.NumberOfBytes }),
|
|
3501
|
-
};
|
|
3502
|
-
};
|
|
3503
|
-
const se_GenerateDataKeyWithoutPlaintextRequest = (input, context) => {
|
|
3504
|
-
return {
|
|
3505
|
-
...(input.EncryptionContext != null && {
|
|
3506
|
-
EncryptionContext: se_EncryptionContextType(input.EncryptionContext, context),
|
|
3507
|
-
}),
|
|
3508
|
-
...(input.GrantTokens != null && { GrantTokens: se_GrantTokenList(input.GrantTokens, context) }),
|
|
3509
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3510
|
-
...(input.KeySpec != null && { KeySpec: input.KeySpec }),
|
|
3511
|
-
...(input.NumberOfBytes != null && { NumberOfBytes: input.NumberOfBytes }),
|
|
3512
|
-
};
|
|
3513
|
-
};
|
|
3514
|
-
const se_GenerateMacRequest = (input, context) => {
|
|
3515
|
-
return {
|
|
3516
|
-
...(input.GrantTokens != null && { GrantTokens: se_GrantTokenList(input.GrantTokens, context) }),
|
|
3517
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3518
|
-
...(input.MacAlgorithm != null && { MacAlgorithm: input.MacAlgorithm }),
|
|
3519
|
-
...(input.Message != null && { Message: context.base64Encoder(input.Message) }),
|
|
3520
|
-
};
|
|
3521
|
-
};
|
|
3522
|
-
const se_GenerateRandomRequest = (input, context) => {
|
|
3523
|
-
return {
|
|
3524
|
-
...(input.CustomKeyStoreId != null && { CustomKeyStoreId: input.CustomKeyStoreId }),
|
|
3525
|
-
...(input.NumberOfBytes != null && { NumberOfBytes: input.NumberOfBytes }),
|
|
3526
|
-
};
|
|
3527
|
-
};
|
|
3528
|
-
const se_GetKeyPolicyRequest = (input, context) => {
|
|
3529
|
-
return {
|
|
3530
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3531
|
-
...(input.PolicyName != null && { PolicyName: input.PolicyName }),
|
|
3532
|
-
};
|
|
3533
|
-
};
|
|
3534
|
-
const se_GetKeyRotationStatusRequest = (input, context) => {
|
|
3535
|
-
return {
|
|
3536
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3537
|
-
};
|
|
3538
|
-
};
|
|
3539
|
-
const se_GetParametersForImportRequest = (input, context) => {
|
|
3540
|
-
return {
|
|
3541
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3542
|
-
...(input.WrappingAlgorithm != null && { WrappingAlgorithm: input.WrappingAlgorithm }),
|
|
3543
|
-
...(input.WrappingKeySpec != null && { WrappingKeySpec: input.WrappingKeySpec }),
|
|
3544
|
-
};
|
|
3545
|
-
};
|
|
3546
|
-
const se_GetPublicKeyRequest = (input, context) => {
|
|
3547
|
-
return {
|
|
3548
|
-
...(input.GrantTokens != null && { GrantTokens: se_GrantTokenList(input.GrantTokens, context) }),
|
|
3549
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3550
|
-
};
|
|
3551
|
-
};
|
|
3552
|
-
const se_GrantConstraints = (input, context) => {
|
|
3553
|
-
return {
|
|
3554
|
-
...(input.EncryptionContextEquals != null && {
|
|
3555
|
-
EncryptionContextEquals: se_EncryptionContextType(input.EncryptionContextEquals, context),
|
|
3556
|
-
}),
|
|
3557
|
-
...(input.EncryptionContextSubset != null && {
|
|
3558
|
-
EncryptionContextSubset: se_EncryptionContextType(input.EncryptionContextSubset, context),
|
|
3559
|
-
}),
|
|
3560
|
-
};
|
|
3561
|
-
};
|
|
3562
|
-
const se_GrantOperationList = (input, context) => {
|
|
3563
|
-
return input
|
|
3564
|
-
.filter((e) => e != null)
|
|
3565
|
-
.map((entry) => {
|
|
3566
|
-
return entry;
|
|
3285
|
+
return (0, smithy_client_1.take)(input, {
|
|
3286
|
+
EncryptionAlgorithm: [],
|
|
3287
|
+
EncryptionContext: smithy_client_1._json,
|
|
3288
|
+
GrantTokens: smithy_client_1._json,
|
|
3289
|
+
KeyId: [],
|
|
3290
|
+
Plaintext: context.base64Encoder,
|
|
3567
3291
|
});
|
|
3568
3292
|
};
|
|
3569
|
-
const
|
|
3570
|
-
return input
|
|
3571
|
-
.
|
|
3572
|
-
|
|
3573
|
-
|
|
3293
|
+
const se_GenerateMacRequest = (input, context) => {
|
|
3294
|
+
return (0, smithy_client_1.take)(input, {
|
|
3295
|
+
GrantTokens: smithy_client_1._json,
|
|
3296
|
+
KeyId: [],
|
|
3297
|
+
MacAlgorithm: [],
|
|
3298
|
+
Message: context.base64Encoder,
|
|
3574
3299
|
});
|
|
3575
3300
|
};
|
|
3576
3301
|
const se_ImportKeyMaterialRequest = (input, context) => {
|
|
3577
|
-
return {
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
...(input.ValidTo != null && { ValidTo: Math.round(input.ValidTo.getTime() / 1000) }),
|
|
3585
|
-
};
|
|
3586
|
-
};
|
|
3587
|
-
const se_ListAliasesRequest = (input, context) => {
|
|
3588
|
-
return {
|
|
3589
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3590
|
-
...(input.Limit != null && { Limit: input.Limit }),
|
|
3591
|
-
...(input.Marker != null && { Marker: input.Marker }),
|
|
3592
|
-
};
|
|
3593
|
-
};
|
|
3594
|
-
const se_ListGrantsRequest = (input, context) => {
|
|
3595
|
-
return {
|
|
3596
|
-
...(input.GrantId != null && { GrantId: input.GrantId }),
|
|
3597
|
-
...(input.GranteePrincipal != null && { GranteePrincipal: input.GranteePrincipal }),
|
|
3598
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3599
|
-
...(input.Limit != null && { Limit: input.Limit }),
|
|
3600
|
-
...(input.Marker != null && { Marker: input.Marker }),
|
|
3601
|
-
};
|
|
3602
|
-
};
|
|
3603
|
-
const se_ListKeyPoliciesRequest = (input, context) => {
|
|
3604
|
-
return {
|
|
3605
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3606
|
-
...(input.Limit != null && { Limit: input.Limit }),
|
|
3607
|
-
...(input.Marker != null && { Marker: input.Marker }),
|
|
3608
|
-
};
|
|
3609
|
-
};
|
|
3610
|
-
const se_ListKeysRequest = (input, context) => {
|
|
3611
|
-
return {
|
|
3612
|
-
...(input.Limit != null && { Limit: input.Limit }),
|
|
3613
|
-
...(input.Marker != null && { Marker: input.Marker }),
|
|
3614
|
-
};
|
|
3615
|
-
};
|
|
3616
|
-
const se_ListResourceTagsRequest = (input, context) => {
|
|
3617
|
-
return {
|
|
3618
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3619
|
-
...(input.Limit != null && { Limit: input.Limit }),
|
|
3620
|
-
...(input.Marker != null && { Marker: input.Marker }),
|
|
3621
|
-
};
|
|
3622
|
-
};
|
|
3623
|
-
const se_ListRetirableGrantsRequest = (input, context) => {
|
|
3624
|
-
return {
|
|
3625
|
-
...(input.Limit != null && { Limit: input.Limit }),
|
|
3626
|
-
...(input.Marker != null && { Marker: input.Marker }),
|
|
3627
|
-
...(input.RetiringPrincipal != null && { RetiringPrincipal: input.RetiringPrincipal }),
|
|
3628
|
-
};
|
|
3629
|
-
};
|
|
3630
|
-
const se_PutKeyPolicyRequest = (input, context) => {
|
|
3631
|
-
return {
|
|
3632
|
-
...(input.BypassPolicyLockoutSafetyCheck != null && {
|
|
3633
|
-
BypassPolicyLockoutSafetyCheck: input.BypassPolicyLockoutSafetyCheck,
|
|
3634
|
-
}),
|
|
3635
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3636
|
-
...(input.Policy != null && { Policy: input.Policy }),
|
|
3637
|
-
...(input.PolicyName != null && { PolicyName: input.PolicyName }),
|
|
3638
|
-
};
|
|
3302
|
+
return (0, smithy_client_1.take)(input, {
|
|
3303
|
+
EncryptedKeyMaterial: context.base64Encoder,
|
|
3304
|
+
ExpirationModel: [],
|
|
3305
|
+
ImportToken: context.base64Encoder,
|
|
3306
|
+
KeyId: [],
|
|
3307
|
+
ValidTo: (_) => Math.round(_.getTime() / 1000),
|
|
3308
|
+
});
|
|
3639
3309
|
};
|
|
3640
3310
|
const se_ReEncryptRequest = (input, context) => {
|
|
3641
|
-
return {
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
|
|
3649
|
-
|
|
3650
|
-
...(input.GrantTokens != null && { GrantTokens: se_GrantTokenList(input.GrantTokens, context) }),
|
|
3651
|
-
...(input.SourceEncryptionAlgorithm != null && { SourceEncryptionAlgorithm: input.SourceEncryptionAlgorithm }),
|
|
3652
|
-
...(input.SourceEncryptionContext != null && {
|
|
3653
|
-
SourceEncryptionContext: se_EncryptionContextType(input.SourceEncryptionContext, context),
|
|
3654
|
-
}),
|
|
3655
|
-
...(input.SourceKeyId != null && { SourceKeyId: input.SourceKeyId }),
|
|
3656
|
-
};
|
|
3657
|
-
};
|
|
3658
|
-
const se_ReplicateKeyRequest = (input, context) => {
|
|
3659
|
-
return {
|
|
3660
|
-
...(input.BypassPolicyLockoutSafetyCheck != null && {
|
|
3661
|
-
BypassPolicyLockoutSafetyCheck: input.BypassPolicyLockoutSafetyCheck,
|
|
3662
|
-
}),
|
|
3663
|
-
...(input.Description != null && { Description: input.Description }),
|
|
3664
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3665
|
-
...(input.Policy != null && { Policy: input.Policy }),
|
|
3666
|
-
...(input.ReplicaRegion != null && { ReplicaRegion: input.ReplicaRegion }),
|
|
3667
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
3668
|
-
};
|
|
3669
|
-
};
|
|
3670
|
-
const se_RetireGrantRequest = (input, context) => {
|
|
3671
|
-
return {
|
|
3672
|
-
...(input.GrantId != null && { GrantId: input.GrantId }),
|
|
3673
|
-
...(input.GrantToken != null && { GrantToken: input.GrantToken }),
|
|
3674
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3675
|
-
};
|
|
3676
|
-
};
|
|
3677
|
-
const se_RevokeGrantRequest = (input, context) => {
|
|
3678
|
-
return {
|
|
3679
|
-
...(input.GrantId != null && { GrantId: input.GrantId }),
|
|
3680
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3681
|
-
};
|
|
3682
|
-
};
|
|
3683
|
-
const se_ScheduleKeyDeletionRequest = (input, context) => {
|
|
3684
|
-
return {
|
|
3685
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3686
|
-
...(input.PendingWindowInDays != null && { PendingWindowInDays: input.PendingWindowInDays }),
|
|
3687
|
-
};
|
|
3688
|
-
};
|
|
3689
|
-
const se_SignRequest = (input, context) => {
|
|
3690
|
-
return {
|
|
3691
|
-
...(input.GrantTokens != null && { GrantTokens: se_GrantTokenList(input.GrantTokens, context) }),
|
|
3692
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3693
|
-
...(input.Message != null && { Message: context.base64Encoder(input.Message) }),
|
|
3694
|
-
...(input.MessageType != null && { MessageType: input.MessageType }),
|
|
3695
|
-
...(input.SigningAlgorithm != null && { SigningAlgorithm: input.SigningAlgorithm }),
|
|
3696
|
-
};
|
|
3697
|
-
};
|
|
3698
|
-
const se_Tag = (input, context) => {
|
|
3699
|
-
return {
|
|
3700
|
-
...(input.TagKey != null && { TagKey: input.TagKey }),
|
|
3701
|
-
...(input.TagValue != null && { TagValue: input.TagValue }),
|
|
3702
|
-
};
|
|
3703
|
-
};
|
|
3704
|
-
const se_TagKeyList = (input, context) => {
|
|
3705
|
-
return input
|
|
3706
|
-
.filter((e) => e != null)
|
|
3707
|
-
.map((entry) => {
|
|
3708
|
-
return entry;
|
|
3311
|
+
return (0, smithy_client_1.take)(input, {
|
|
3312
|
+
CiphertextBlob: context.base64Encoder,
|
|
3313
|
+
DestinationEncryptionAlgorithm: [],
|
|
3314
|
+
DestinationEncryptionContext: smithy_client_1._json,
|
|
3315
|
+
DestinationKeyId: [],
|
|
3316
|
+
GrantTokens: smithy_client_1._json,
|
|
3317
|
+
SourceEncryptionAlgorithm: [],
|
|
3318
|
+
SourceEncryptionContext: smithy_client_1._json,
|
|
3319
|
+
SourceKeyId: [],
|
|
3709
3320
|
});
|
|
3710
3321
|
};
|
|
3711
|
-
const
|
|
3712
|
-
return input
|
|
3713
|
-
.
|
|
3714
|
-
|
|
3715
|
-
|
|
3322
|
+
const se_SignRequest = (input, context) => {
|
|
3323
|
+
return (0, smithy_client_1.take)(input, {
|
|
3324
|
+
GrantTokens: smithy_client_1._json,
|
|
3325
|
+
KeyId: [],
|
|
3326
|
+
Message: context.base64Encoder,
|
|
3327
|
+
MessageType: [],
|
|
3328
|
+
SigningAlgorithm: [],
|
|
3716
3329
|
});
|
|
3717
3330
|
};
|
|
3718
|
-
const se_TagResourceRequest = (input, context) => {
|
|
3719
|
-
return {
|
|
3720
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3721
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
3722
|
-
};
|
|
3723
|
-
};
|
|
3724
|
-
const se_UntagResourceRequest = (input, context) => {
|
|
3725
|
-
return {
|
|
3726
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3727
|
-
...(input.TagKeys != null && { TagKeys: se_TagKeyList(input.TagKeys, context) }),
|
|
3728
|
-
};
|
|
3729
|
-
};
|
|
3730
|
-
const se_UpdateAliasRequest = (input, context) => {
|
|
3731
|
-
return {
|
|
3732
|
-
...(input.AliasName != null && { AliasName: input.AliasName }),
|
|
3733
|
-
...(input.TargetKeyId != null && { TargetKeyId: input.TargetKeyId }),
|
|
3734
|
-
};
|
|
3735
|
-
};
|
|
3736
|
-
const se_UpdateCustomKeyStoreRequest = (input, context) => {
|
|
3737
|
-
return {
|
|
3738
|
-
...(input.CloudHsmClusterId != null && { CloudHsmClusterId: input.CloudHsmClusterId }),
|
|
3739
|
-
...(input.CustomKeyStoreId != null && { CustomKeyStoreId: input.CustomKeyStoreId }),
|
|
3740
|
-
...(input.KeyStorePassword != null && { KeyStorePassword: input.KeyStorePassword }),
|
|
3741
|
-
...(input.NewCustomKeyStoreName != null && { NewCustomKeyStoreName: input.NewCustomKeyStoreName }),
|
|
3742
|
-
...(input.XksProxyAuthenticationCredential != null && {
|
|
3743
|
-
XksProxyAuthenticationCredential: se_XksProxyAuthenticationCredentialType(input.XksProxyAuthenticationCredential, context),
|
|
3744
|
-
}),
|
|
3745
|
-
...(input.XksProxyConnectivity != null && { XksProxyConnectivity: input.XksProxyConnectivity }),
|
|
3746
|
-
...(input.XksProxyUriEndpoint != null && { XksProxyUriEndpoint: input.XksProxyUriEndpoint }),
|
|
3747
|
-
...(input.XksProxyUriPath != null && { XksProxyUriPath: input.XksProxyUriPath }),
|
|
3748
|
-
...(input.XksProxyVpcEndpointServiceName != null && {
|
|
3749
|
-
XksProxyVpcEndpointServiceName: input.XksProxyVpcEndpointServiceName,
|
|
3750
|
-
}),
|
|
3751
|
-
};
|
|
3752
|
-
};
|
|
3753
|
-
const se_UpdateKeyDescriptionRequest = (input, context) => {
|
|
3754
|
-
return {
|
|
3755
|
-
...(input.Description != null && { Description: input.Description }),
|
|
3756
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3757
|
-
};
|
|
3758
|
-
};
|
|
3759
|
-
const se_UpdatePrimaryRegionRequest = (input, context) => {
|
|
3760
|
-
return {
|
|
3761
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3762
|
-
...(input.PrimaryRegion != null && { PrimaryRegion: input.PrimaryRegion }),
|
|
3763
|
-
};
|
|
3764
|
-
};
|
|
3765
3331
|
const se_VerifyMacRequest = (input, context) => {
|
|
3766
|
-
return {
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
};
|
|
3332
|
+
return (0, smithy_client_1.take)(input, {
|
|
3333
|
+
GrantTokens: smithy_client_1._json,
|
|
3334
|
+
KeyId: [],
|
|
3335
|
+
Mac: context.base64Encoder,
|
|
3336
|
+
MacAlgorithm: [],
|
|
3337
|
+
Message: context.base64Encoder,
|
|
3338
|
+
});
|
|
3773
3339
|
};
|
|
3774
3340
|
const se_VerifyRequest = (input, context) => {
|
|
3775
|
-
return {
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
};
|
|
3783
|
-
};
|
|
3784
|
-
const se_XksProxyAuthenticationCredentialType = (input, context) => {
|
|
3785
|
-
return {
|
|
3786
|
-
...(input.AccessKeyId != null && { AccessKeyId: input.AccessKeyId }),
|
|
3787
|
-
...(input.RawSecretAccessKey != null && { RawSecretAccessKey: input.RawSecretAccessKey }),
|
|
3788
|
-
};
|
|
3341
|
+
return (0, smithy_client_1.take)(input, {
|
|
3342
|
+
GrantTokens: smithy_client_1._json,
|
|
3343
|
+
KeyId: [],
|
|
3344
|
+
Message: context.base64Encoder,
|
|
3345
|
+
MessageType: [],
|
|
3346
|
+
Signature: context.base64Encoder,
|
|
3347
|
+
SigningAlgorithm: [],
|
|
3348
|
+
});
|
|
3789
3349
|
};
|
|
3790
3350
|
const de_AliasList = (output, context) => {
|
|
3791
3351
|
const retVal = (output || [])
|
|
3792
3352
|
.filter((e) => e != null)
|
|
3793
3353
|
.map((entry) => {
|
|
3794
|
-
if (entry === null) {
|
|
3795
|
-
return null;
|
|
3796
|
-
}
|
|
3797
3354
|
return de_AliasListEntry(entry, context);
|
|
3798
3355
|
});
|
|
3799
3356
|
return retVal;
|
|
3800
3357
|
};
|
|
3801
3358
|
const de_AliasListEntry = (output, context) => {
|
|
3802
|
-
return {
|
|
3803
|
-
AliasArn:
|
|
3804
|
-
AliasName:
|
|
3805
|
-
CreationDate:
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedDate)))
|
|
3810
|
-
: undefined,
|
|
3811
|
-
TargetKeyId: (0, smithy_client_1.expectString)(output.TargetKeyId),
|
|
3812
|
-
};
|
|
3813
|
-
};
|
|
3814
|
-
const de_AlreadyExistsException = (output, context) => {
|
|
3815
|
-
return {
|
|
3816
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
3817
|
-
};
|
|
3818
|
-
};
|
|
3819
|
-
const de_CancelKeyDeletionResponse = (output, context) => {
|
|
3820
|
-
return {
|
|
3821
|
-
KeyId: (0, smithy_client_1.expectString)(output.KeyId),
|
|
3822
|
-
};
|
|
3823
|
-
};
|
|
3824
|
-
const de_CloudHsmClusterInUseException = (output, context) => {
|
|
3825
|
-
return {
|
|
3826
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
3827
|
-
};
|
|
3828
|
-
};
|
|
3829
|
-
const de_CloudHsmClusterInvalidConfigurationException = (output, context) => {
|
|
3830
|
-
return {
|
|
3831
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
3832
|
-
};
|
|
3833
|
-
};
|
|
3834
|
-
const de_CloudHsmClusterNotActiveException = (output, context) => {
|
|
3835
|
-
return {
|
|
3836
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
3837
|
-
};
|
|
3838
|
-
};
|
|
3839
|
-
const de_CloudHsmClusterNotFoundException = (output, context) => {
|
|
3840
|
-
return {
|
|
3841
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
3842
|
-
};
|
|
3843
|
-
};
|
|
3844
|
-
const de_CloudHsmClusterNotRelatedException = (output, context) => {
|
|
3845
|
-
return {
|
|
3846
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
3847
|
-
};
|
|
3848
|
-
};
|
|
3849
|
-
const de_ConnectCustomKeyStoreResponse = (output, context) => {
|
|
3850
|
-
return {};
|
|
3851
|
-
};
|
|
3852
|
-
const de_CreateCustomKeyStoreResponse = (output, context) => {
|
|
3853
|
-
return {
|
|
3854
|
-
CustomKeyStoreId: (0, smithy_client_1.expectString)(output.CustomKeyStoreId),
|
|
3855
|
-
};
|
|
3856
|
-
};
|
|
3857
|
-
const de_CreateGrantResponse = (output, context) => {
|
|
3858
|
-
return {
|
|
3859
|
-
GrantId: (0, smithy_client_1.expectString)(output.GrantId),
|
|
3860
|
-
GrantToken: (0, smithy_client_1.expectString)(output.GrantToken),
|
|
3861
|
-
};
|
|
3359
|
+
return (0, smithy_client_1.take)(output, {
|
|
3360
|
+
AliasArn: smithy_client_1.expectString,
|
|
3361
|
+
AliasName: smithy_client_1.expectString,
|
|
3362
|
+
CreationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3363
|
+
LastUpdatedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3364
|
+
TargetKeyId: smithy_client_1.expectString,
|
|
3365
|
+
});
|
|
3862
3366
|
};
|
|
3863
3367
|
const de_CreateKeyResponse = (output, context) => {
|
|
3864
|
-
return {
|
|
3865
|
-
KeyMetadata:
|
|
3866
|
-
};
|
|
3867
|
-
};
|
|
3868
|
-
const de_CustomKeyStoreHasCMKsException = (output, context) => {
|
|
3869
|
-
return {
|
|
3870
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
3871
|
-
};
|
|
3872
|
-
};
|
|
3873
|
-
const de_CustomKeyStoreInvalidStateException = (output, context) => {
|
|
3874
|
-
return {
|
|
3875
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
3876
|
-
};
|
|
3877
|
-
};
|
|
3878
|
-
const de_CustomKeyStoreNameInUseException = (output, context) => {
|
|
3879
|
-
return {
|
|
3880
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
3881
|
-
};
|
|
3882
|
-
};
|
|
3883
|
-
const de_CustomKeyStoreNotFoundException = (output, context) => {
|
|
3884
|
-
return {
|
|
3885
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
3886
|
-
};
|
|
3368
|
+
return (0, smithy_client_1.take)(output, {
|
|
3369
|
+
KeyMetadata: (_) => de_KeyMetadata(_, context),
|
|
3370
|
+
});
|
|
3887
3371
|
};
|
|
3888
3372
|
const de_CustomKeyStoresList = (output, context) => {
|
|
3889
3373
|
const retVal = (output || [])
|
|
3890
3374
|
.filter((e) => e != null)
|
|
3891
3375
|
.map((entry) => {
|
|
3892
|
-
if (entry === null) {
|
|
3893
|
-
return null;
|
|
3894
|
-
}
|
|
3895
3376
|
return de_CustomKeyStoresListEntry(entry, context);
|
|
3896
3377
|
});
|
|
3897
3378
|
return retVal;
|
|
3898
3379
|
};
|
|
3899
3380
|
const de_CustomKeyStoresListEntry = (output, context) => {
|
|
3900
|
-
return {
|
|
3901
|
-
CloudHsmClusterId:
|
|
3902
|
-
ConnectionErrorCode:
|
|
3903
|
-
ConnectionState:
|
|
3904
|
-
CreationDate:
|
|
3905
|
-
|
|
3906
|
-
|
|
3907
|
-
|
|
3908
|
-
|
|
3909
|
-
|
|
3910
|
-
|
|
3911
|
-
XksProxyConfiguration: output.XksProxyConfiguration != null
|
|
3912
|
-
? de_XksProxyConfigurationType(output.XksProxyConfiguration, context)
|
|
3913
|
-
: undefined,
|
|
3914
|
-
};
|
|
3381
|
+
return (0, smithy_client_1.take)(output, {
|
|
3382
|
+
CloudHsmClusterId: smithy_client_1.expectString,
|
|
3383
|
+
ConnectionErrorCode: smithy_client_1.expectString,
|
|
3384
|
+
ConnectionState: smithy_client_1.expectString,
|
|
3385
|
+
CreationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3386
|
+
CustomKeyStoreId: smithy_client_1.expectString,
|
|
3387
|
+
CustomKeyStoreName: smithy_client_1.expectString,
|
|
3388
|
+
CustomKeyStoreType: smithy_client_1.expectString,
|
|
3389
|
+
TrustAnchorCertificate: smithy_client_1.expectString,
|
|
3390
|
+
XksProxyConfiguration: smithy_client_1._json,
|
|
3391
|
+
});
|
|
3915
3392
|
};
|
|
3916
3393
|
const de_DecryptResponse = (output, context) => {
|
|
3917
|
-
return {
|
|
3918
|
-
EncryptionAlgorithm:
|
|
3919
|
-
KeyId:
|
|
3920
|
-
Plaintext:
|
|
3921
|
-
};
|
|
3922
|
-
};
|
|
3923
|
-
const de_DeleteCustomKeyStoreResponse = (output, context) => {
|
|
3924
|
-
return {};
|
|
3925
|
-
};
|
|
3926
|
-
const de_DependencyTimeoutException = (output, context) => {
|
|
3927
|
-
return {
|
|
3928
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
3929
|
-
};
|
|
3394
|
+
return (0, smithy_client_1.take)(output, {
|
|
3395
|
+
EncryptionAlgorithm: smithy_client_1.expectString,
|
|
3396
|
+
KeyId: smithy_client_1.expectString,
|
|
3397
|
+
Plaintext: context.base64Decoder,
|
|
3398
|
+
});
|
|
3930
3399
|
};
|
|
3931
3400
|
const de_DescribeCustomKeyStoresResponse = (output, context) => {
|
|
3932
|
-
return {
|
|
3933
|
-
CustomKeyStores:
|
|
3934
|
-
NextMarker:
|
|
3935
|
-
Truncated:
|
|
3936
|
-
};
|
|
3401
|
+
return (0, smithy_client_1.take)(output, {
|
|
3402
|
+
CustomKeyStores: (_) => de_CustomKeyStoresList(_, context),
|
|
3403
|
+
NextMarker: smithy_client_1.expectString,
|
|
3404
|
+
Truncated: smithy_client_1.expectBoolean,
|
|
3405
|
+
});
|
|
3937
3406
|
};
|
|
3938
3407
|
const de_DescribeKeyResponse = (output, context) => {
|
|
3939
|
-
return {
|
|
3940
|
-
KeyMetadata:
|
|
3941
|
-
};
|
|
3942
|
-
};
|
|
3943
|
-
const de_DisabledException = (output, context) => {
|
|
3944
|
-
return {
|
|
3945
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
3946
|
-
};
|
|
3947
|
-
};
|
|
3948
|
-
const de_DisconnectCustomKeyStoreResponse = (output, context) => {
|
|
3949
|
-
return {};
|
|
3950
|
-
};
|
|
3951
|
-
const de_EncryptionAlgorithmSpecList = (output, context) => {
|
|
3952
|
-
const retVal = (output || [])
|
|
3953
|
-
.filter((e) => e != null)
|
|
3954
|
-
.map((entry) => {
|
|
3955
|
-
if (entry === null) {
|
|
3956
|
-
return null;
|
|
3957
|
-
}
|
|
3958
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
3408
|
+
return (0, smithy_client_1.take)(output, {
|
|
3409
|
+
KeyMetadata: (_) => de_KeyMetadata(_, context),
|
|
3959
3410
|
});
|
|
3960
|
-
return retVal;
|
|
3961
|
-
};
|
|
3962
|
-
const de_EncryptionContextType = (output, context) => {
|
|
3963
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3964
|
-
if (value === null) {
|
|
3965
|
-
return acc;
|
|
3966
|
-
}
|
|
3967
|
-
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
3968
|
-
return acc;
|
|
3969
|
-
}, {});
|
|
3970
3411
|
};
|
|
3971
3412
|
const de_EncryptResponse = (output, context) => {
|
|
3972
|
-
return {
|
|
3973
|
-
CiphertextBlob:
|
|
3974
|
-
EncryptionAlgorithm:
|
|
3975
|
-
KeyId:
|
|
3976
|
-
};
|
|
3977
|
-
};
|
|
3978
|
-
const de_ExpiredImportTokenException = (output, context) => {
|
|
3979
|
-
return {
|
|
3980
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
3981
|
-
};
|
|
3413
|
+
return (0, smithy_client_1.take)(output, {
|
|
3414
|
+
CiphertextBlob: context.base64Decoder,
|
|
3415
|
+
EncryptionAlgorithm: smithy_client_1.expectString,
|
|
3416
|
+
KeyId: smithy_client_1.expectString,
|
|
3417
|
+
});
|
|
3982
3418
|
};
|
|
3983
3419
|
const de_GenerateDataKeyPairResponse = (output, context) => {
|
|
3984
|
-
return {
|
|
3985
|
-
KeyId:
|
|
3986
|
-
KeyPairSpec:
|
|
3987
|
-
PrivateKeyCiphertextBlob:
|
|
3988
|
-
PrivateKeyPlaintext:
|
|
3989
|
-
PublicKey:
|
|
3990
|
-
};
|
|
3420
|
+
return (0, smithy_client_1.take)(output, {
|
|
3421
|
+
KeyId: smithy_client_1.expectString,
|
|
3422
|
+
KeyPairSpec: smithy_client_1.expectString,
|
|
3423
|
+
PrivateKeyCiphertextBlob: context.base64Decoder,
|
|
3424
|
+
PrivateKeyPlaintext: context.base64Decoder,
|
|
3425
|
+
PublicKey: context.base64Decoder,
|
|
3426
|
+
});
|
|
3991
3427
|
};
|
|
3992
3428
|
const de_GenerateDataKeyPairWithoutPlaintextResponse = (output, context) => {
|
|
3993
|
-
return {
|
|
3994
|
-
KeyId:
|
|
3995
|
-
KeyPairSpec:
|
|
3996
|
-
PrivateKeyCiphertextBlob:
|
|
3997
|
-
PublicKey:
|
|
3998
|
-
};
|
|
3429
|
+
return (0, smithy_client_1.take)(output, {
|
|
3430
|
+
KeyId: smithy_client_1.expectString,
|
|
3431
|
+
KeyPairSpec: smithy_client_1.expectString,
|
|
3432
|
+
PrivateKeyCiphertextBlob: context.base64Decoder,
|
|
3433
|
+
PublicKey: context.base64Decoder,
|
|
3434
|
+
});
|
|
3999
3435
|
};
|
|
4000
3436
|
const de_GenerateDataKeyResponse = (output, context) => {
|
|
4001
|
-
return {
|
|
4002
|
-
CiphertextBlob:
|
|
4003
|
-
KeyId:
|
|
4004
|
-
Plaintext:
|
|
4005
|
-
};
|
|
3437
|
+
return (0, smithy_client_1.take)(output, {
|
|
3438
|
+
CiphertextBlob: context.base64Decoder,
|
|
3439
|
+
KeyId: smithy_client_1.expectString,
|
|
3440
|
+
Plaintext: context.base64Decoder,
|
|
3441
|
+
});
|
|
4006
3442
|
};
|
|
4007
3443
|
const de_GenerateDataKeyWithoutPlaintextResponse = (output, context) => {
|
|
4008
|
-
return {
|
|
4009
|
-
CiphertextBlob:
|
|
4010
|
-
KeyId:
|
|
4011
|
-
};
|
|
3444
|
+
return (0, smithy_client_1.take)(output, {
|
|
3445
|
+
CiphertextBlob: context.base64Decoder,
|
|
3446
|
+
KeyId: smithy_client_1.expectString,
|
|
3447
|
+
});
|
|
4012
3448
|
};
|
|
4013
3449
|
const de_GenerateMacResponse = (output, context) => {
|
|
4014
|
-
return {
|
|
4015
|
-
KeyId:
|
|
4016
|
-
Mac:
|
|
4017
|
-
MacAlgorithm:
|
|
4018
|
-
};
|
|
3450
|
+
return (0, smithy_client_1.take)(output, {
|
|
3451
|
+
KeyId: smithy_client_1.expectString,
|
|
3452
|
+
Mac: context.base64Decoder,
|
|
3453
|
+
MacAlgorithm: smithy_client_1.expectString,
|
|
3454
|
+
});
|
|
4019
3455
|
};
|
|
4020
3456
|
const de_GenerateRandomResponse = (output, context) => {
|
|
4021
|
-
return {
|
|
4022
|
-
Plaintext:
|
|
4023
|
-
};
|
|
4024
|
-
};
|
|
4025
|
-
const de_GetKeyPolicyResponse = (output, context) => {
|
|
4026
|
-
return {
|
|
4027
|
-
Policy: (0, smithy_client_1.expectString)(output.Policy),
|
|
4028
|
-
};
|
|
4029
|
-
};
|
|
4030
|
-
const de_GetKeyRotationStatusResponse = (output, context) => {
|
|
4031
|
-
return {
|
|
4032
|
-
KeyRotationEnabled: (0, smithy_client_1.expectBoolean)(output.KeyRotationEnabled),
|
|
4033
|
-
};
|
|
3457
|
+
return (0, smithy_client_1.take)(output, {
|
|
3458
|
+
Plaintext: context.base64Decoder,
|
|
3459
|
+
});
|
|
4034
3460
|
};
|
|
4035
3461
|
const de_GetParametersForImportResponse = (output, context) => {
|
|
4036
|
-
return {
|
|
4037
|
-
ImportToken:
|
|
4038
|
-
KeyId:
|
|
4039
|
-
ParametersValidTo:
|
|
4040
|
-
|
|
4041
|
-
|
|
4042
|
-
PublicKey: output.PublicKey != null ? context.base64Decoder(output.PublicKey) : undefined,
|
|
4043
|
-
};
|
|
3462
|
+
return (0, smithy_client_1.take)(output, {
|
|
3463
|
+
ImportToken: context.base64Decoder,
|
|
3464
|
+
KeyId: smithy_client_1.expectString,
|
|
3465
|
+
ParametersValidTo: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3466
|
+
PublicKey: context.base64Decoder,
|
|
3467
|
+
});
|
|
4044
3468
|
};
|
|
4045
3469
|
const de_GetPublicKeyResponse = (output, context) => {
|
|
4046
|
-
return {
|
|
4047
|
-
CustomerMasterKeySpec:
|
|
4048
|
-
EncryptionAlgorithms:
|
|
4049
|
-
|
|
4050
|
-
|
|
4051
|
-
|
|
4052
|
-
|
|
4053
|
-
|
|
4054
|
-
|
|
4055
|
-
SigningAlgorithms: output.SigningAlgorithms != null ? de_SigningAlgorithmSpecList(output.SigningAlgorithms, context) : undefined,
|
|
4056
|
-
};
|
|
4057
|
-
};
|
|
4058
|
-
const de_GrantConstraints = (output, context) => {
|
|
4059
|
-
return {
|
|
4060
|
-
EncryptionContextEquals: output.EncryptionContextEquals != null
|
|
4061
|
-
? de_EncryptionContextType(output.EncryptionContextEquals, context)
|
|
4062
|
-
: undefined,
|
|
4063
|
-
EncryptionContextSubset: output.EncryptionContextSubset != null
|
|
4064
|
-
? de_EncryptionContextType(output.EncryptionContextSubset, context)
|
|
4065
|
-
: undefined,
|
|
4066
|
-
};
|
|
3470
|
+
return (0, smithy_client_1.take)(output, {
|
|
3471
|
+
CustomerMasterKeySpec: smithy_client_1.expectString,
|
|
3472
|
+
EncryptionAlgorithms: smithy_client_1._json,
|
|
3473
|
+
KeyId: smithy_client_1.expectString,
|
|
3474
|
+
KeySpec: smithy_client_1.expectString,
|
|
3475
|
+
KeyUsage: smithy_client_1.expectString,
|
|
3476
|
+
PublicKey: context.base64Decoder,
|
|
3477
|
+
SigningAlgorithms: smithy_client_1._json,
|
|
3478
|
+
});
|
|
4067
3479
|
};
|
|
4068
3480
|
const de_GrantList = (output, context) => {
|
|
4069
3481
|
const retVal = (output || [])
|
|
4070
3482
|
.filter((e) => e != null)
|
|
4071
3483
|
.map((entry) => {
|
|
4072
|
-
if (entry === null) {
|
|
4073
|
-
return null;
|
|
4074
|
-
}
|
|
4075
3484
|
return de_GrantListEntry(entry, context);
|
|
4076
3485
|
});
|
|
4077
3486
|
return retVal;
|
|
4078
3487
|
};
|
|
4079
3488
|
const de_GrantListEntry = (output, context) => {
|
|
4080
|
-
return {
|
|
4081
|
-
Constraints:
|
|
4082
|
-
CreationDate:
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
-
|
|
4088
|
-
|
|
4089
|
-
|
|
4090
|
-
Operations: output.Operations != null ? de_GrantOperationList(output.Operations, context) : undefined,
|
|
4091
|
-
RetiringPrincipal: (0, smithy_client_1.expectString)(output.RetiringPrincipal),
|
|
4092
|
-
};
|
|
4093
|
-
};
|
|
4094
|
-
const de_GrantOperationList = (output, context) => {
|
|
4095
|
-
const retVal = (output || [])
|
|
4096
|
-
.filter((e) => e != null)
|
|
4097
|
-
.map((entry) => {
|
|
4098
|
-
if (entry === null) {
|
|
4099
|
-
return null;
|
|
4100
|
-
}
|
|
4101
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
3489
|
+
return (0, smithy_client_1.take)(output, {
|
|
3490
|
+
Constraints: smithy_client_1._json,
|
|
3491
|
+
CreationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3492
|
+
GrantId: smithy_client_1.expectString,
|
|
3493
|
+
GranteePrincipal: smithy_client_1.expectString,
|
|
3494
|
+
IssuingAccount: smithy_client_1.expectString,
|
|
3495
|
+
KeyId: smithy_client_1.expectString,
|
|
3496
|
+
Name: smithy_client_1.expectString,
|
|
3497
|
+
Operations: smithy_client_1._json,
|
|
3498
|
+
RetiringPrincipal: smithy_client_1.expectString,
|
|
4102
3499
|
});
|
|
4103
|
-
return retVal;
|
|
4104
|
-
};
|
|
4105
|
-
const de_ImportKeyMaterialResponse = (output, context) => {
|
|
4106
|
-
return {};
|
|
4107
|
-
};
|
|
4108
|
-
const de_IncorrectKeyException = (output, context) => {
|
|
4109
|
-
return {
|
|
4110
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4111
|
-
};
|
|
4112
|
-
};
|
|
4113
|
-
const de_IncorrectKeyMaterialException = (output, context) => {
|
|
4114
|
-
return {
|
|
4115
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4116
|
-
};
|
|
4117
|
-
};
|
|
4118
|
-
const de_IncorrectTrustAnchorException = (output, context) => {
|
|
4119
|
-
return {
|
|
4120
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4121
|
-
};
|
|
4122
|
-
};
|
|
4123
|
-
const de_InvalidAliasNameException = (output, context) => {
|
|
4124
|
-
return {
|
|
4125
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4126
|
-
};
|
|
4127
|
-
};
|
|
4128
|
-
const de_InvalidArnException = (output, context) => {
|
|
4129
|
-
return {
|
|
4130
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4131
|
-
};
|
|
4132
|
-
};
|
|
4133
|
-
const de_InvalidCiphertextException = (output, context) => {
|
|
4134
|
-
return {
|
|
4135
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4136
|
-
};
|
|
4137
|
-
};
|
|
4138
|
-
const de_InvalidGrantIdException = (output, context) => {
|
|
4139
|
-
return {
|
|
4140
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4141
|
-
};
|
|
4142
|
-
};
|
|
4143
|
-
const de_InvalidGrantTokenException = (output, context) => {
|
|
4144
|
-
return {
|
|
4145
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4146
|
-
};
|
|
4147
|
-
};
|
|
4148
|
-
const de_InvalidImportTokenException = (output, context) => {
|
|
4149
|
-
return {
|
|
4150
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4151
|
-
};
|
|
4152
|
-
};
|
|
4153
|
-
const de_InvalidKeyUsageException = (output, context) => {
|
|
4154
|
-
return {
|
|
4155
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4156
|
-
};
|
|
4157
|
-
};
|
|
4158
|
-
const de_InvalidMarkerException = (output, context) => {
|
|
4159
|
-
return {
|
|
4160
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4161
|
-
};
|
|
4162
|
-
};
|
|
4163
|
-
const de_KeyList = (output, context) => {
|
|
4164
|
-
const retVal = (output || [])
|
|
4165
|
-
.filter((e) => e != null)
|
|
4166
|
-
.map((entry) => {
|
|
4167
|
-
if (entry === null) {
|
|
4168
|
-
return null;
|
|
4169
|
-
}
|
|
4170
|
-
return de_KeyListEntry(entry, context);
|
|
4171
|
-
});
|
|
4172
|
-
return retVal;
|
|
4173
|
-
};
|
|
4174
|
-
const de_KeyListEntry = (output, context) => {
|
|
4175
|
-
return {
|
|
4176
|
-
KeyArn: (0, smithy_client_1.expectString)(output.KeyArn),
|
|
4177
|
-
KeyId: (0, smithy_client_1.expectString)(output.KeyId),
|
|
4178
|
-
};
|
|
4179
3500
|
};
|
|
4180
3501
|
const de_KeyMetadata = (output, context) => {
|
|
4181
|
-
return {
|
|
4182
|
-
AWSAccountId:
|
|
4183
|
-
Arn:
|
|
4184
|
-
CloudHsmClusterId:
|
|
4185
|
-
CreationDate:
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
|
|
4192
|
-
|
|
4193
|
-
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
|
|
4198
|
-
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
|
-
|
|
4202
|
-
|
|
4203
|
-
|
|
4204
|
-
|
|
4205
|
-
|
|
4206
|
-
MultiRegionConfiguration: output.MultiRegionConfiguration != null
|
|
4207
|
-
? de_MultiRegionConfiguration(output.MultiRegionConfiguration, context)
|
|
4208
|
-
: undefined,
|
|
4209
|
-
Origin: (0, smithy_client_1.expectString)(output.Origin),
|
|
4210
|
-
PendingDeletionWindowInDays: (0, smithy_client_1.expectInt32)(output.PendingDeletionWindowInDays),
|
|
4211
|
-
SigningAlgorithms: output.SigningAlgorithms != null ? de_SigningAlgorithmSpecList(output.SigningAlgorithms, context) : undefined,
|
|
4212
|
-
ValidTo: output.ValidTo != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ValidTo))) : undefined,
|
|
4213
|
-
XksKeyConfiguration: output.XksKeyConfiguration != null ? de_XksKeyConfigurationType(output.XksKeyConfiguration, context) : undefined,
|
|
4214
|
-
};
|
|
4215
|
-
};
|
|
4216
|
-
const de_KeyUnavailableException = (output, context) => {
|
|
4217
|
-
return {
|
|
4218
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4219
|
-
};
|
|
4220
|
-
};
|
|
4221
|
-
const de_KMSInternalException = (output, context) => {
|
|
4222
|
-
return {
|
|
4223
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4224
|
-
};
|
|
4225
|
-
};
|
|
4226
|
-
const de_KMSInvalidMacException = (output, context) => {
|
|
4227
|
-
return {
|
|
4228
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4229
|
-
};
|
|
4230
|
-
};
|
|
4231
|
-
const de_KMSInvalidSignatureException = (output, context) => {
|
|
4232
|
-
return {
|
|
4233
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4234
|
-
};
|
|
4235
|
-
};
|
|
4236
|
-
const de_KMSInvalidStateException = (output, context) => {
|
|
4237
|
-
return {
|
|
4238
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4239
|
-
};
|
|
4240
|
-
};
|
|
4241
|
-
const de_LimitExceededException = (output, context) => {
|
|
4242
|
-
return {
|
|
4243
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4244
|
-
};
|
|
4245
|
-
};
|
|
4246
|
-
const de_ListAliasesResponse = (output, context) => {
|
|
4247
|
-
return {
|
|
4248
|
-
Aliases: output.Aliases != null ? de_AliasList(output.Aliases, context) : undefined,
|
|
4249
|
-
NextMarker: (0, smithy_client_1.expectString)(output.NextMarker),
|
|
4250
|
-
Truncated: (0, smithy_client_1.expectBoolean)(output.Truncated),
|
|
4251
|
-
};
|
|
4252
|
-
};
|
|
4253
|
-
const de_ListGrantsResponse = (output, context) => {
|
|
4254
|
-
return {
|
|
4255
|
-
Grants: output.Grants != null ? de_GrantList(output.Grants, context) : undefined,
|
|
4256
|
-
NextMarker: (0, smithy_client_1.expectString)(output.NextMarker),
|
|
4257
|
-
Truncated: (0, smithy_client_1.expectBoolean)(output.Truncated),
|
|
4258
|
-
};
|
|
4259
|
-
};
|
|
4260
|
-
const de_ListKeyPoliciesResponse = (output, context) => {
|
|
4261
|
-
return {
|
|
4262
|
-
NextMarker: (0, smithy_client_1.expectString)(output.NextMarker),
|
|
4263
|
-
PolicyNames: output.PolicyNames != null ? de_PolicyNameList(output.PolicyNames, context) : undefined,
|
|
4264
|
-
Truncated: (0, smithy_client_1.expectBoolean)(output.Truncated),
|
|
4265
|
-
};
|
|
4266
|
-
};
|
|
4267
|
-
const de_ListKeysResponse = (output, context) => {
|
|
4268
|
-
return {
|
|
4269
|
-
Keys: output.Keys != null ? de_KeyList(output.Keys, context) : undefined,
|
|
4270
|
-
NextMarker: (0, smithy_client_1.expectString)(output.NextMarker),
|
|
4271
|
-
Truncated: (0, smithy_client_1.expectBoolean)(output.Truncated),
|
|
4272
|
-
};
|
|
4273
|
-
};
|
|
4274
|
-
const de_ListResourceTagsResponse = (output, context) => {
|
|
4275
|
-
return {
|
|
4276
|
-
NextMarker: (0, smithy_client_1.expectString)(output.NextMarker),
|
|
4277
|
-
Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
|
|
4278
|
-
Truncated: (0, smithy_client_1.expectBoolean)(output.Truncated),
|
|
4279
|
-
};
|
|
4280
|
-
};
|
|
4281
|
-
const de_MacAlgorithmSpecList = (output, context) => {
|
|
4282
|
-
const retVal = (output || [])
|
|
4283
|
-
.filter((e) => e != null)
|
|
4284
|
-
.map((entry) => {
|
|
4285
|
-
if (entry === null) {
|
|
4286
|
-
return null;
|
|
4287
|
-
}
|
|
4288
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
3502
|
+
return (0, smithy_client_1.take)(output, {
|
|
3503
|
+
AWSAccountId: smithy_client_1.expectString,
|
|
3504
|
+
Arn: smithy_client_1.expectString,
|
|
3505
|
+
CloudHsmClusterId: smithy_client_1.expectString,
|
|
3506
|
+
CreationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3507
|
+
CustomKeyStoreId: smithy_client_1.expectString,
|
|
3508
|
+
CustomerMasterKeySpec: smithy_client_1.expectString,
|
|
3509
|
+
DeletionDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3510
|
+
Description: smithy_client_1.expectString,
|
|
3511
|
+
Enabled: smithy_client_1.expectBoolean,
|
|
3512
|
+
EncryptionAlgorithms: smithy_client_1._json,
|
|
3513
|
+
ExpirationModel: smithy_client_1.expectString,
|
|
3514
|
+
KeyId: smithy_client_1.expectString,
|
|
3515
|
+
KeyManager: smithy_client_1.expectString,
|
|
3516
|
+
KeySpec: smithy_client_1.expectString,
|
|
3517
|
+
KeyState: smithy_client_1.expectString,
|
|
3518
|
+
KeyUsage: smithy_client_1.expectString,
|
|
3519
|
+
MacAlgorithms: smithy_client_1._json,
|
|
3520
|
+
MultiRegion: smithy_client_1.expectBoolean,
|
|
3521
|
+
MultiRegionConfiguration: smithy_client_1._json,
|
|
3522
|
+
Origin: smithy_client_1.expectString,
|
|
3523
|
+
PendingDeletionWindowInDays: smithy_client_1.expectInt32,
|
|
3524
|
+
SigningAlgorithms: smithy_client_1._json,
|
|
3525
|
+
ValidTo: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3526
|
+
XksKeyConfiguration: smithy_client_1._json,
|
|
4289
3527
|
});
|
|
4290
|
-
return retVal;
|
|
4291
|
-
};
|
|
4292
|
-
const de_MalformedPolicyDocumentException = (output, context) => {
|
|
4293
|
-
return {
|
|
4294
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4295
|
-
};
|
|
4296
|
-
};
|
|
4297
|
-
const de_MultiRegionConfiguration = (output, context) => {
|
|
4298
|
-
return {
|
|
4299
|
-
MultiRegionKeyType: (0, smithy_client_1.expectString)(output.MultiRegionKeyType),
|
|
4300
|
-
PrimaryKey: output.PrimaryKey != null ? de_MultiRegionKey(output.PrimaryKey, context) : undefined,
|
|
4301
|
-
ReplicaKeys: output.ReplicaKeys != null ? de_MultiRegionKeyList(output.ReplicaKeys, context) : undefined,
|
|
4302
|
-
};
|
|
4303
3528
|
};
|
|
4304
|
-
const
|
|
4305
|
-
return {
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
|
|
4309
|
-
};
|
|
4310
|
-
const de_MultiRegionKeyList = (output, context) => {
|
|
4311
|
-
const retVal = (output || [])
|
|
4312
|
-
.filter((e) => e != null)
|
|
4313
|
-
.map((entry) => {
|
|
4314
|
-
if (entry === null) {
|
|
4315
|
-
return null;
|
|
4316
|
-
}
|
|
4317
|
-
return de_MultiRegionKey(entry, context);
|
|
3529
|
+
const de_ListAliasesResponse = (output, context) => {
|
|
3530
|
+
return (0, smithy_client_1.take)(output, {
|
|
3531
|
+
Aliases: (_) => de_AliasList(_, context),
|
|
3532
|
+
NextMarker: smithy_client_1.expectString,
|
|
3533
|
+
Truncated: smithy_client_1.expectBoolean,
|
|
4318
3534
|
});
|
|
4319
|
-
return retVal;
|
|
4320
|
-
};
|
|
4321
|
-
const de_NotFoundException = (output, context) => {
|
|
4322
|
-
return {
|
|
4323
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4324
|
-
};
|
|
4325
3535
|
};
|
|
4326
|
-
const
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
.
|
|
4330
|
-
|
|
4331
|
-
return null;
|
|
4332
|
-
}
|
|
4333
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
3536
|
+
const de_ListGrantsResponse = (output, context) => {
|
|
3537
|
+
return (0, smithy_client_1.take)(output, {
|
|
3538
|
+
Grants: (_) => de_GrantList(_, context),
|
|
3539
|
+
NextMarker: smithy_client_1.expectString,
|
|
3540
|
+
Truncated: smithy_client_1.expectBoolean,
|
|
4334
3541
|
});
|
|
4335
|
-
return retVal;
|
|
4336
3542
|
};
|
|
4337
3543
|
const de_ReEncryptResponse = (output, context) => {
|
|
4338
|
-
return {
|
|
4339
|
-
CiphertextBlob:
|
|
4340
|
-
DestinationEncryptionAlgorithm:
|
|
4341
|
-
KeyId:
|
|
4342
|
-
SourceEncryptionAlgorithm:
|
|
4343
|
-
SourceKeyId:
|
|
4344
|
-
};
|
|
3544
|
+
return (0, smithy_client_1.take)(output, {
|
|
3545
|
+
CiphertextBlob: context.base64Decoder,
|
|
3546
|
+
DestinationEncryptionAlgorithm: smithy_client_1.expectString,
|
|
3547
|
+
KeyId: smithy_client_1.expectString,
|
|
3548
|
+
SourceEncryptionAlgorithm: smithy_client_1.expectString,
|
|
3549
|
+
SourceKeyId: smithy_client_1.expectString,
|
|
3550
|
+
});
|
|
4345
3551
|
};
|
|
4346
3552
|
const de_ReplicateKeyResponse = (output, context) => {
|
|
4347
|
-
return {
|
|
4348
|
-
ReplicaKeyMetadata:
|
|
4349
|
-
ReplicaPolicy:
|
|
4350
|
-
ReplicaTags:
|
|
4351
|
-
};
|
|
3553
|
+
return (0, smithy_client_1.take)(output, {
|
|
3554
|
+
ReplicaKeyMetadata: (_) => de_KeyMetadata(_, context),
|
|
3555
|
+
ReplicaPolicy: smithy_client_1.expectString,
|
|
3556
|
+
ReplicaTags: smithy_client_1._json,
|
|
3557
|
+
});
|
|
4352
3558
|
};
|
|
4353
3559
|
const de_ScheduleKeyDeletionResponse = (output, context) => {
|
|
4354
|
-
return {
|
|
4355
|
-
DeletionDate:
|
|
4356
|
-
|
|
4357
|
-
|
|
4358
|
-
|
|
4359
|
-
KeyState: (0, smithy_client_1.expectString)(output.KeyState),
|
|
4360
|
-
PendingWindowInDays: (0, smithy_client_1.expectInt32)(output.PendingWindowInDays),
|
|
4361
|
-
};
|
|
4362
|
-
};
|
|
4363
|
-
const de_SigningAlgorithmSpecList = (output, context) => {
|
|
4364
|
-
const retVal = (output || [])
|
|
4365
|
-
.filter((e) => e != null)
|
|
4366
|
-
.map((entry) => {
|
|
4367
|
-
if (entry === null) {
|
|
4368
|
-
return null;
|
|
4369
|
-
}
|
|
4370
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
3560
|
+
return (0, smithy_client_1.take)(output, {
|
|
3561
|
+
DeletionDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3562
|
+
KeyId: smithy_client_1.expectString,
|
|
3563
|
+
KeyState: smithy_client_1.expectString,
|
|
3564
|
+
PendingWindowInDays: smithy_client_1.expectInt32,
|
|
4371
3565
|
});
|
|
4372
|
-
return retVal;
|
|
4373
3566
|
};
|
|
4374
3567
|
const de_SignResponse = (output, context) => {
|
|
4375
|
-
return {
|
|
4376
|
-
KeyId:
|
|
4377
|
-
Signature:
|
|
4378
|
-
SigningAlgorithm:
|
|
4379
|
-
};
|
|
4380
|
-
};
|
|
4381
|
-
const de_Tag = (output, context) => {
|
|
4382
|
-
return {
|
|
4383
|
-
TagKey: (0, smithy_client_1.expectString)(output.TagKey),
|
|
4384
|
-
TagValue: (0, smithy_client_1.expectString)(output.TagValue),
|
|
4385
|
-
};
|
|
4386
|
-
};
|
|
4387
|
-
const de_TagException = (output, context) => {
|
|
4388
|
-
return {
|
|
4389
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4390
|
-
};
|
|
4391
|
-
};
|
|
4392
|
-
const de_TagList = (output, context) => {
|
|
4393
|
-
const retVal = (output || [])
|
|
4394
|
-
.filter((e) => e != null)
|
|
4395
|
-
.map((entry) => {
|
|
4396
|
-
if (entry === null) {
|
|
4397
|
-
return null;
|
|
4398
|
-
}
|
|
4399
|
-
return de_Tag(entry, context);
|
|
3568
|
+
return (0, smithy_client_1.take)(output, {
|
|
3569
|
+
KeyId: smithy_client_1.expectString,
|
|
3570
|
+
Signature: context.base64Decoder,
|
|
3571
|
+
SigningAlgorithm: smithy_client_1.expectString,
|
|
4400
3572
|
});
|
|
4401
|
-
return retVal;
|
|
4402
|
-
};
|
|
4403
|
-
const de_UnsupportedOperationException = (output, context) => {
|
|
4404
|
-
return {
|
|
4405
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4406
|
-
};
|
|
4407
|
-
};
|
|
4408
|
-
const de_UpdateCustomKeyStoreResponse = (output, context) => {
|
|
4409
|
-
return {};
|
|
4410
|
-
};
|
|
4411
|
-
const de_VerifyMacResponse = (output, context) => {
|
|
4412
|
-
return {
|
|
4413
|
-
KeyId: (0, smithy_client_1.expectString)(output.KeyId),
|
|
4414
|
-
MacAlgorithm: (0, smithy_client_1.expectString)(output.MacAlgorithm),
|
|
4415
|
-
MacValid: (0, smithy_client_1.expectBoolean)(output.MacValid),
|
|
4416
|
-
};
|
|
4417
|
-
};
|
|
4418
|
-
const de_VerifyResponse = (output, context) => {
|
|
4419
|
-
return {
|
|
4420
|
-
KeyId: (0, smithy_client_1.expectString)(output.KeyId),
|
|
4421
|
-
SignatureValid: (0, smithy_client_1.expectBoolean)(output.SignatureValid),
|
|
4422
|
-
SigningAlgorithm: (0, smithy_client_1.expectString)(output.SigningAlgorithm),
|
|
4423
|
-
};
|
|
4424
|
-
};
|
|
4425
|
-
const de_XksKeyAlreadyInUseException = (output, context) => {
|
|
4426
|
-
return {
|
|
4427
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4428
|
-
};
|
|
4429
|
-
};
|
|
4430
|
-
const de_XksKeyConfigurationType = (output, context) => {
|
|
4431
|
-
return {
|
|
4432
|
-
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
4433
|
-
};
|
|
4434
|
-
};
|
|
4435
|
-
const de_XksKeyInvalidConfigurationException = (output, context) => {
|
|
4436
|
-
return {
|
|
4437
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4438
|
-
};
|
|
4439
|
-
};
|
|
4440
|
-
const de_XksKeyNotFoundException = (output, context) => {
|
|
4441
|
-
return {
|
|
4442
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4443
|
-
};
|
|
4444
|
-
};
|
|
4445
|
-
const de_XksProxyConfigurationType = (output, context) => {
|
|
4446
|
-
return {
|
|
4447
|
-
AccessKeyId: (0, smithy_client_1.expectString)(output.AccessKeyId),
|
|
4448
|
-
Connectivity: (0, smithy_client_1.expectString)(output.Connectivity),
|
|
4449
|
-
UriEndpoint: (0, smithy_client_1.expectString)(output.UriEndpoint),
|
|
4450
|
-
UriPath: (0, smithy_client_1.expectString)(output.UriPath),
|
|
4451
|
-
VpcEndpointServiceName: (0, smithy_client_1.expectString)(output.VpcEndpointServiceName),
|
|
4452
|
-
};
|
|
4453
|
-
};
|
|
4454
|
-
const de_XksProxyIncorrectAuthenticationCredentialException = (output, context) => {
|
|
4455
|
-
return {
|
|
4456
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4457
|
-
};
|
|
4458
|
-
};
|
|
4459
|
-
const de_XksProxyInvalidConfigurationException = (output, context) => {
|
|
4460
|
-
return {
|
|
4461
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4462
|
-
};
|
|
4463
|
-
};
|
|
4464
|
-
const de_XksProxyInvalidResponseException = (output, context) => {
|
|
4465
|
-
return {
|
|
4466
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4467
|
-
};
|
|
4468
|
-
};
|
|
4469
|
-
const de_XksProxyUriEndpointInUseException = (output, context) => {
|
|
4470
|
-
return {
|
|
4471
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4472
|
-
};
|
|
4473
|
-
};
|
|
4474
|
-
const de_XksProxyUriInUseException = (output, context) => {
|
|
4475
|
-
return {
|
|
4476
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4477
|
-
};
|
|
4478
|
-
};
|
|
4479
|
-
const de_XksProxyUriUnreachableException = (output, context) => {
|
|
4480
|
-
return {
|
|
4481
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4482
|
-
};
|
|
4483
|
-
};
|
|
4484
|
-
const de_XksProxyVpcEndpointServiceInUseException = (output, context) => {
|
|
4485
|
-
return {
|
|
4486
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4487
|
-
};
|
|
4488
|
-
};
|
|
4489
|
-
const de_XksProxyVpcEndpointServiceInvalidConfigurationException = (output, context) => {
|
|
4490
|
-
return {
|
|
4491
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4492
|
-
};
|
|
4493
|
-
};
|
|
4494
|
-
const de_XksProxyVpcEndpointServiceNotFoundException = (output, context) => {
|
|
4495
|
-
return {
|
|
4496
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4497
|
-
};
|
|
4498
3573
|
};
|
|
4499
3574
|
const deserializeMetadata = (output) => ({
|
|
4500
3575
|
httpStatusCode: output.statusCode,
|
|
@@ -4509,6 +3584,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
4509
3584
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
4510
3585
|
};
|
|
4511
3586
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
3587
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(KMSServiceException_1.KMSServiceException);
|
|
4512
3588
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
4513
3589
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
4514
3590
|
const contents = {
|