@aws-sdk/client-kms 3.310.0 → 3.315.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/protocols/Aws_json1_1.js +516 -1584
- package/dist-es/protocols/Aws_json1_1.js +517 -1585
- package/package.json +6 -6
|
@@ -7,500 +7,350 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
7
7
|
const KMSServiceException_1 = require("../models/KMSServiceException");
|
|
8
8
|
const models_0_1 = require("../models/models_0");
|
|
9
9
|
const se_CancelKeyDeletionCommand = async (input, context) => {
|
|
10
|
-
const headers =
|
|
11
|
-
"content-type": "application/x-amz-json-1.1",
|
|
12
|
-
"x-amz-target": "TrentService.CancelKeyDeletion",
|
|
13
|
-
};
|
|
10
|
+
const headers = sharedHeaders("CancelKeyDeletion");
|
|
14
11
|
let body;
|
|
15
|
-
body = JSON.stringify(
|
|
12
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
16
13
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
17
14
|
};
|
|
18
15
|
exports.se_CancelKeyDeletionCommand = se_CancelKeyDeletionCommand;
|
|
19
16
|
const se_ConnectCustomKeyStoreCommand = async (input, context) => {
|
|
20
|
-
const headers =
|
|
21
|
-
"content-type": "application/x-amz-json-1.1",
|
|
22
|
-
"x-amz-target": "TrentService.ConnectCustomKeyStore",
|
|
23
|
-
};
|
|
17
|
+
const headers = sharedHeaders("ConnectCustomKeyStore");
|
|
24
18
|
let body;
|
|
25
|
-
body = JSON.stringify(
|
|
19
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
26
20
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
27
21
|
};
|
|
28
22
|
exports.se_ConnectCustomKeyStoreCommand = se_ConnectCustomKeyStoreCommand;
|
|
29
23
|
const se_CreateAliasCommand = async (input, context) => {
|
|
30
|
-
const headers =
|
|
31
|
-
"content-type": "application/x-amz-json-1.1",
|
|
32
|
-
"x-amz-target": "TrentService.CreateAlias",
|
|
33
|
-
};
|
|
24
|
+
const headers = sharedHeaders("CreateAlias");
|
|
34
25
|
let body;
|
|
35
|
-
body = JSON.stringify(
|
|
26
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
36
27
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
37
28
|
};
|
|
38
29
|
exports.se_CreateAliasCommand = se_CreateAliasCommand;
|
|
39
30
|
const se_CreateCustomKeyStoreCommand = async (input, context) => {
|
|
40
|
-
const headers =
|
|
41
|
-
"content-type": "application/x-amz-json-1.1",
|
|
42
|
-
"x-amz-target": "TrentService.CreateCustomKeyStore",
|
|
43
|
-
};
|
|
31
|
+
const headers = sharedHeaders("CreateCustomKeyStore");
|
|
44
32
|
let body;
|
|
45
|
-
body = JSON.stringify(
|
|
33
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
46
34
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
47
35
|
};
|
|
48
36
|
exports.se_CreateCustomKeyStoreCommand = se_CreateCustomKeyStoreCommand;
|
|
49
37
|
const se_CreateGrantCommand = async (input, context) => {
|
|
50
|
-
const headers =
|
|
51
|
-
"content-type": "application/x-amz-json-1.1",
|
|
52
|
-
"x-amz-target": "TrentService.CreateGrant",
|
|
53
|
-
};
|
|
38
|
+
const headers = sharedHeaders("CreateGrant");
|
|
54
39
|
let body;
|
|
55
|
-
body = JSON.stringify(
|
|
40
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
56
41
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
57
42
|
};
|
|
58
43
|
exports.se_CreateGrantCommand = se_CreateGrantCommand;
|
|
59
44
|
const se_CreateKeyCommand = async (input, context) => {
|
|
60
|
-
const headers =
|
|
61
|
-
"content-type": "application/x-amz-json-1.1",
|
|
62
|
-
"x-amz-target": "TrentService.CreateKey",
|
|
63
|
-
};
|
|
45
|
+
const headers = sharedHeaders("CreateKey");
|
|
64
46
|
let body;
|
|
65
|
-
body = JSON.stringify(
|
|
47
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
66
48
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
49
|
};
|
|
68
50
|
exports.se_CreateKeyCommand = se_CreateKeyCommand;
|
|
69
51
|
const se_DecryptCommand = async (input, context) => {
|
|
70
|
-
const headers =
|
|
71
|
-
"content-type": "application/x-amz-json-1.1",
|
|
72
|
-
"x-amz-target": "TrentService.Decrypt",
|
|
73
|
-
};
|
|
52
|
+
const headers = sharedHeaders("Decrypt");
|
|
74
53
|
let body;
|
|
75
54
|
body = JSON.stringify(se_DecryptRequest(input, context));
|
|
76
55
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
56
|
};
|
|
78
57
|
exports.se_DecryptCommand = se_DecryptCommand;
|
|
79
58
|
const se_DeleteAliasCommand = async (input, context) => {
|
|
80
|
-
const headers =
|
|
81
|
-
"content-type": "application/x-amz-json-1.1",
|
|
82
|
-
"x-amz-target": "TrentService.DeleteAlias",
|
|
83
|
-
};
|
|
59
|
+
const headers = sharedHeaders("DeleteAlias");
|
|
84
60
|
let body;
|
|
85
|
-
body = JSON.stringify(
|
|
61
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
86
62
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
87
63
|
};
|
|
88
64
|
exports.se_DeleteAliasCommand = se_DeleteAliasCommand;
|
|
89
65
|
const se_DeleteCustomKeyStoreCommand = async (input, context) => {
|
|
90
|
-
const headers =
|
|
91
|
-
"content-type": "application/x-amz-json-1.1",
|
|
92
|
-
"x-amz-target": "TrentService.DeleteCustomKeyStore",
|
|
93
|
-
};
|
|
66
|
+
const headers = sharedHeaders("DeleteCustomKeyStore");
|
|
94
67
|
let body;
|
|
95
|
-
body = JSON.stringify(
|
|
68
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
96
69
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
97
70
|
};
|
|
98
71
|
exports.se_DeleteCustomKeyStoreCommand = se_DeleteCustomKeyStoreCommand;
|
|
99
72
|
const se_DeleteImportedKeyMaterialCommand = async (input, context) => {
|
|
100
|
-
const headers =
|
|
101
|
-
"content-type": "application/x-amz-json-1.1",
|
|
102
|
-
"x-amz-target": "TrentService.DeleteImportedKeyMaterial",
|
|
103
|
-
};
|
|
73
|
+
const headers = sharedHeaders("DeleteImportedKeyMaterial");
|
|
104
74
|
let body;
|
|
105
|
-
body = JSON.stringify(
|
|
75
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
106
76
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
107
77
|
};
|
|
108
78
|
exports.se_DeleteImportedKeyMaterialCommand = se_DeleteImportedKeyMaterialCommand;
|
|
109
79
|
const se_DescribeCustomKeyStoresCommand = async (input, context) => {
|
|
110
|
-
const headers =
|
|
111
|
-
"content-type": "application/x-amz-json-1.1",
|
|
112
|
-
"x-amz-target": "TrentService.DescribeCustomKeyStores",
|
|
113
|
-
};
|
|
80
|
+
const headers = sharedHeaders("DescribeCustomKeyStores");
|
|
114
81
|
let body;
|
|
115
|
-
body = JSON.stringify(
|
|
82
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
116
83
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
117
84
|
};
|
|
118
85
|
exports.se_DescribeCustomKeyStoresCommand = se_DescribeCustomKeyStoresCommand;
|
|
119
86
|
const se_DescribeKeyCommand = async (input, context) => {
|
|
120
|
-
const headers =
|
|
121
|
-
"content-type": "application/x-amz-json-1.1",
|
|
122
|
-
"x-amz-target": "TrentService.DescribeKey",
|
|
123
|
-
};
|
|
87
|
+
const headers = sharedHeaders("DescribeKey");
|
|
124
88
|
let body;
|
|
125
|
-
body = JSON.stringify(
|
|
89
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
126
90
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
127
91
|
};
|
|
128
92
|
exports.se_DescribeKeyCommand = se_DescribeKeyCommand;
|
|
129
93
|
const se_DisableKeyCommand = async (input, context) => {
|
|
130
|
-
const headers =
|
|
131
|
-
"content-type": "application/x-amz-json-1.1",
|
|
132
|
-
"x-amz-target": "TrentService.DisableKey",
|
|
133
|
-
};
|
|
94
|
+
const headers = sharedHeaders("DisableKey");
|
|
134
95
|
let body;
|
|
135
|
-
body = JSON.stringify(
|
|
96
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
136
97
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
137
98
|
};
|
|
138
99
|
exports.se_DisableKeyCommand = se_DisableKeyCommand;
|
|
139
100
|
const se_DisableKeyRotationCommand = async (input, context) => {
|
|
140
|
-
const headers =
|
|
141
|
-
"content-type": "application/x-amz-json-1.1",
|
|
142
|
-
"x-amz-target": "TrentService.DisableKeyRotation",
|
|
143
|
-
};
|
|
101
|
+
const headers = sharedHeaders("DisableKeyRotation");
|
|
144
102
|
let body;
|
|
145
|
-
body = JSON.stringify(
|
|
103
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
146
104
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
147
105
|
};
|
|
148
106
|
exports.se_DisableKeyRotationCommand = se_DisableKeyRotationCommand;
|
|
149
107
|
const se_DisconnectCustomKeyStoreCommand = async (input, context) => {
|
|
150
|
-
const headers =
|
|
151
|
-
"content-type": "application/x-amz-json-1.1",
|
|
152
|
-
"x-amz-target": "TrentService.DisconnectCustomKeyStore",
|
|
153
|
-
};
|
|
108
|
+
const headers = sharedHeaders("DisconnectCustomKeyStore");
|
|
154
109
|
let body;
|
|
155
|
-
body = JSON.stringify(
|
|
110
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
156
111
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
157
112
|
};
|
|
158
113
|
exports.se_DisconnectCustomKeyStoreCommand = se_DisconnectCustomKeyStoreCommand;
|
|
159
114
|
const se_EnableKeyCommand = async (input, context) => {
|
|
160
|
-
const headers =
|
|
161
|
-
"content-type": "application/x-amz-json-1.1",
|
|
162
|
-
"x-amz-target": "TrentService.EnableKey",
|
|
163
|
-
};
|
|
115
|
+
const headers = sharedHeaders("EnableKey");
|
|
164
116
|
let body;
|
|
165
|
-
body = JSON.stringify(
|
|
117
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
166
118
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
167
119
|
};
|
|
168
120
|
exports.se_EnableKeyCommand = se_EnableKeyCommand;
|
|
169
121
|
const se_EnableKeyRotationCommand = async (input, context) => {
|
|
170
|
-
const headers =
|
|
171
|
-
"content-type": "application/x-amz-json-1.1",
|
|
172
|
-
"x-amz-target": "TrentService.EnableKeyRotation",
|
|
173
|
-
};
|
|
122
|
+
const headers = sharedHeaders("EnableKeyRotation");
|
|
174
123
|
let body;
|
|
175
|
-
body = JSON.stringify(
|
|
124
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
176
125
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
177
126
|
};
|
|
178
127
|
exports.se_EnableKeyRotationCommand = se_EnableKeyRotationCommand;
|
|
179
128
|
const se_EncryptCommand = async (input, context) => {
|
|
180
|
-
const headers =
|
|
181
|
-
"content-type": "application/x-amz-json-1.1",
|
|
182
|
-
"x-amz-target": "TrentService.Encrypt",
|
|
183
|
-
};
|
|
129
|
+
const headers = sharedHeaders("Encrypt");
|
|
184
130
|
let body;
|
|
185
131
|
body = JSON.stringify(se_EncryptRequest(input, context));
|
|
186
132
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
187
133
|
};
|
|
188
134
|
exports.se_EncryptCommand = se_EncryptCommand;
|
|
189
135
|
const se_GenerateDataKeyCommand = async (input, context) => {
|
|
190
|
-
const headers =
|
|
191
|
-
"content-type": "application/x-amz-json-1.1",
|
|
192
|
-
"x-amz-target": "TrentService.GenerateDataKey",
|
|
193
|
-
};
|
|
136
|
+
const headers = sharedHeaders("GenerateDataKey");
|
|
194
137
|
let body;
|
|
195
|
-
body = JSON.stringify(
|
|
138
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
196
139
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
197
140
|
};
|
|
198
141
|
exports.se_GenerateDataKeyCommand = se_GenerateDataKeyCommand;
|
|
199
142
|
const se_GenerateDataKeyPairCommand = async (input, context) => {
|
|
200
|
-
const headers =
|
|
201
|
-
"content-type": "application/x-amz-json-1.1",
|
|
202
|
-
"x-amz-target": "TrentService.GenerateDataKeyPair",
|
|
203
|
-
};
|
|
143
|
+
const headers = sharedHeaders("GenerateDataKeyPair");
|
|
204
144
|
let body;
|
|
205
|
-
body = JSON.stringify(
|
|
145
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
206
146
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
207
147
|
};
|
|
208
148
|
exports.se_GenerateDataKeyPairCommand = se_GenerateDataKeyPairCommand;
|
|
209
149
|
const se_GenerateDataKeyPairWithoutPlaintextCommand = async (input, context) => {
|
|
210
|
-
const headers =
|
|
211
|
-
"content-type": "application/x-amz-json-1.1",
|
|
212
|
-
"x-amz-target": "TrentService.GenerateDataKeyPairWithoutPlaintext",
|
|
213
|
-
};
|
|
150
|
+
const headers = sharedHeaders("GenerateDataKeyPairWithoutPlaintext");
|
|
214
151
|
let body;
|
|
215
|
-
body = JSON.stringify(
|
|
152
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
216
153
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
217
154
|
};
|
|
218
155
|
exports.se_GenerateDataKeyPairWithoutPlaintextCommand = se_GenerateDataKeyPairWithoutPlaintextCommand;
|
|
219
156
|
const se_GenerateDataKeyWithoutPlaintextCommand = async (input, context) => {
|
|
220
|
-
const headers =
|
|
221
|
-
"content-type": "application/x-amz-json-1.1",
|
|
222
|
-
"x-amz-target": "TrentService.GenerateDataKeyWithoutPlaintext",
|
|
223
|
-
};
|
|
157
|
+
const headers = sharedHeaders("GenerateDataKeyWithoutPlaintext");
|
|
224
158
|
let body;
|
|
225
|
-
body = JSON.stringify(
|
|
159
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
226
160
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
227
161
|
};
|
|
228
162
|
exports.se_GenerateDataKeyWithoutPlaintextCommand = se_GenerateDataKeyWithoutPlaintextCommand;
|
|
229
163
|
const se_GenerateMacCommand = async (input, context) => {
|
|
230
|
-
const headers =
|
|
231
|
-
"content-type": "application/x-amz-json-1.1",
|
|
232
|
-
"x-amz-target": "TrentService.GenerateMac",
|
|
233
|
-
};
|
|
164
|
+
const headers = sharedHeaders("GenerateMac");
|
|
234
165
|
let body;
|
|
235
166
|
body = JSON.stringify(se_GenerateMacRequest(input, context));
|
|
236
167
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
237
168
|
};
|
|
238
169
|
exports.se_GenerateMacCommand = se_GenerateMacCommand;
|
|
239
170
|
const se_GenerateRandomCommand = async (input, context) => {
|
|
240
|
-
const headers =
|
|
241
|
-
"content-type": "application/x-amz-json-1.1",
|
|
242
|
-
"x-amz-target": "TrentService.GenerateRandom",
|
|
243
|
-
};
|
|
171
|
+
const headers = sharedHeaders("GenerateRandom");
|
|
244
172
|
let body;
|
|
245
|
-
body = JSON.stringify(
|
|
173
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
246
174
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
247
175
|
};
|
|
248
176
|
exports.se_GenerateRandomCommand = se_GenerateRandomCommand;
|
|
249
177
|
const se_GetKeyPolicyCommand = async (input, context) => {
|
|
250
|
-
const headers =
|
|
251
|
-
"content-type": "application/x-amz-json-1.1",
|
|
252
|
-
"x-amz-target": "TrentService.GetKeyPolicy",
|
|
253
|
-
};
|
|
178
|
+
const headers = sharedHeaders("GetKeyPolicy");
|
|
254
179
|
let body;
|
|
255
|
-
body = JSON.stringify(
|
|
180
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
256
181
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
257
182
|
};
|
|
258
183
|
exports.se_GetKeyPolicyCommand = se_GetKeyPolicyCommand;
|
|
259
184
|
const se_GetKeyRotationStatusCommand = async (input, context) => {
|
|
260
|
-
const headers =
|
|
261
|
-
"content-type": "application/x-amz-json-1.1",
|
|
262
|
-
"x-amz-target": "TrentService.GetKeyRotationStatus",
|
|
263
|
-
};
|
|
185
|
+
const headers = sharedHeaders("GetKeyRotationStatus");
|
|
264
186
|
let body;
|
|
265
|
-
body = JSON.stringify(
|
|
187
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
266
188
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
267
189
|
};
|
|
268
190
|
exports.se_GetKeyRotationStatusCommand = se_GetKeyRotationStatusCommand;
|
|
269
191
|
const se_GetParametersForImportCommand = async (input, context) => {
|
|
270
|
-
const headers =
|
|
271
|
-
"content-type": "application/x-amz-json-1.1",
|
|
272
|
-
"x-amz-target": "TrentService.GetParametersForImport",
|
|
273
|
-
};
|
|
192
|
+
const headers = sharedHeaders("GetParametersForImport");
|
|
274
193
|
let body;
|
|
275
|
-
body = JSON.stringify(
|
|
194
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
276
195
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
277
196
|
};
|
|
278
197
|
exports.se_GetParametersForImportCommand = se_GetParametersForImportCommand;
|
|
279
198
|
const se_GetPublicKeyCommand = async (input, context) => {
|
|
280
|
-
const headers =
|
|
281
|
-
"content-type": "application/x-amz-json-1.1",
|
|
282
|
-
"x-amz-target": "TrentService.GetPublicKey",
|
|
283
|
-
};
|
|
199
|
+
const headers = sharedHeaders("GetPublicKey");
|
|
284
200
|
let body;
|
|
285
|
-
body = JSON.stringify(
|
|
201
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
286
202
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
287
203
|
};
|
|
288
204
|
exports.se_GetPublicKeyCommand = se_GetPublicKeyCommand;
|
|
289
205
|
const se_ImportKeyMaterialCommand = async (input, context) => {
|
|
290
|
-
const headers =
|
|
291
|
-
"content-type": "application/x-amz-json-1.1",
|
|
292
|
-
"x-amz-target": "TrentService.ImportKeyMaterial",
|
|
293
|
-
};
|
|
206
|
+
const headers = sharedHeaders("ImportKeyMaterial");
|
|
294
207
|
let body;
|
|
295
208
|
body = JSON.stringify(se_ImportKeyMaterialRequest(input, context));
|
|
296
209
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
297
210
|
};
|
|
298
211
|
exports.se_ImportKeyMaterialCommand = se_ImportKeyMaterialCommand;
|
|
299
212
|
const se_ListAliasesCommand = async (input, context) => {
|
|
300
|
-
const headers =
|
|
301
|
-
"content-type": "application/x-amz-json-1.1",
|
|
302
|
-
"x-amz-target": "TrentService.ListAliases",
|
|
303
|
-
};
|
|
213
|
+
const headers = sharedHeaders("ListAliases");
|
|
304
214
|
let body;
|
|
305
|
-
body = JSON.stringify(
|
|
215
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
306
216
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
307
217
|
};
|
|
308
218
|
exports.se_ListAliasesCommand = se_ListAliasesCommand;
|
|
309
219
|
const se_ListGrantsCommand = async (input, context) => {
|
|
310
|
-
const headers =
|
|
311
|
-
"content-type": "application/x-amz-json-1.1",
|
|
312
|
-
"x-amz-target": "TrentService.ListGrants",
|
|
313
|
-
};
|
|
220
|
+
const headers = sharedHeaders("ListGrants");
|
|
314
221
|
let body;
|
|
315
|
-
body = JSON.stringify(
|
|
222
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
316
223
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
317
224
|
};
|
|
318
225
|
exports.se_ListGrantsCommand = se_ListGrantsCommand;
|
|
319
226
|
const se_ListKeyPoliciesCommand = async (input, context) => {
|
|
320
|
-
const headers =
|
|
321
|
-
"content-type": "application/x-amz-json-1.1",
|
|
322
|
-
"x-amz-target": "TrentService.ListKeyPolicies",
|
|
323
|
-
};
|
|
227
|
+
const headers = sharedHeaders("ListKeyPolicies");
|
|
324
228
|
let body;
|
|
325
|
-
body = JSON.stringify(
|
|
229
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
326
230
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
327
231
|
};
|
|
328
232
|
exports.se_ListKeyPoliciesCommand = se_ListKeyPoliciesCommand;
|
|
329
233
|
const se_ListKeysCommand = async (input, context) => {
|
|
330
|
-
const headers =
|
|
331
|
-
"content-type": "application/x-amz-json-1.1",
|
|
332
|
-
"x-amz-target": "TrentService.ListKeys",
|
|
333
|
-
};
|
|
234
|
+
const headers = sharedHeaders("ListKeys");
|
|
334
235
|
let body;
|
|
335
|
-
body = JSON.stringify(
|
|
236
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
336
237
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
337
238
|
};
|
|
338
239
|
exports.se_ListKeysCommand = se_ListKeysCommand;
|
|
339
240
|
const se_ListResourceTagsCommand = async (input, context) => {
|
|
340
|
-
const headers =
|
|
341
|
-
"content-type": "application/x-amz-json-1.1",
|
|
342
|
-
"x-amz-target": "TrentService.ListResourceTags",
|
|
343
|
-
};
|
|
241
|
+
const headers = sharedHeaders("ListResourceTags");
|
|
344
242
|
let body;
|
|
345
|
-
body = JSON.stringify(
|
|
243
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
346
244
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
347
245
|
};
|
|
348
246
|
exports.se_ListResourceTagsCommand = se_ListResourceTagsCommand;
|
|
349
247
|
const se_ListRetirableGrantsCommand = async (input, context) => {
|
|
350
|
-
const headers =
|
|
351
|
-
"content-type": "application/x-amz-json-1.1",
|
|
352
|
-
"x-amz-target": "TrentService.ListRetirableGrants",
|
|
353
|
-
};
|
|
248
|
+
const headers = sharedHeaders("ListRetirableGrants");
|
|
354
249
|
let body;
|
|
355
|
-
body = JSON.stringify(
|
|
250
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
356
251
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
357
252
|
};
|
|
358
253
|
exports.se_ListRetirableGrantsCommand = se_ListRetirableGrantsCommand;
|
|
359
254
|
const se_PutKeyPolicyCommand = async (input, context) => {
|
|
360
|
-
const headers =
|
|
361
|
-
"content-type": "application/x-amz-json-1.1",
|
|
362
|
-
"x-amz-target": "TrentService.PutKeyPolicy",
|
|
363
|
-
};
|
|
255
|
+
const headers = sharedHeaders("PutKeyPolicy");
|
|
364
256
|
let body;
|
|
365
|
-
body = JSON.stringify(
|
|
257
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
366
258
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
367
259
|
};
|
|
368
260
|
exports.se_PutKeyPolicyCommand = se_PutKeyPolicyCommand;
|
|
369
261
|
const se_ReEncryptCommand = async (input, context) => {
|
|
370
|
-
const headers =
|
|
371
|
-
"content-type": "application/x-amz-json-1.1",
|
|
372
|
-
"x-amz-target": "TrentService.ReEncrypt",
|
|
373
|
-
};
|
|
262
|
+
const headers = sharedHeaders("ReEncrypt");
|
|
374
263
|
let body;
|
|
375
264
|
body = JSON.stringify(se_ReEncryptRequest(input, context));
|
|
376
265
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
377
266
|
};
|
|
378
267
|
exports.se_ReEncryptCommand = se_ReEncryptCommand;
|
|
379
268
|
const se_ReplicateKeyCommand = async (input, context) => {
|
|
380
|
-
const headers =
|
|
381
|
-
"content-type": "application/x-amz-json-1.1",
|
|
382
|
-
"x-amz-target": "TrentService.ReplicateKey",
|
|
383
|
-
};
|
|
269
|
+
const headers = sharedHeaders("ReplicateKey");
|
|
384
270
|
let body;
|
|
385
|
-
body = JSON.stringify(
|
|
271
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
386
272
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
387
273
|
};
|
|
388
274
|
exports.se_ReplicateKeyCommand = se_ReplicateKeyCommand;
|
|
389
275
|
const se_RetireGrantCommand = async (input, context) => {
|
|
390
|
-
const headers =
|
|
391
|
-
"content-type": "application/x-amz-json-1.1",
|
|
392
|
-
"x-amz-target": "TrentService.RetireGrant",
|
|
393
|
-
};
|
|
276
|
+
const headers = sharedHeaders("RetireGrant");
|
|
394
277
|
let body;
|
|
395
|
-
body = JSON.stringify(
|
|
278
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
396
279
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
397
280
|
};
|
|
398
281
|
exports.se_RetireGrantCommand = se_RetireGrantCommand;
|
|
399
282
|
const se_RevokeGrantCommand = async (input, context) => {
|
|
400
|
-
const headers =
|
|
401
|
-
"content-type": "application/x-amz-json-1.1",
|
|
402
|
-
"x-amz-target": "TrentService.RevokeGrant",
|
|
403
|
-
};
|
|
283
|
+
const headers = sharedHeaders("RevokeGrant");
|
|
404
284
|
let body;
|
|
405
|
-
body = JSON.stringify(
|
|
285
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
406
286
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
407
287
|
};
|
|
408
288
|
exports.se_RevokeGrantCommand = se_RevokeGrantCommand;
|
|
409
289
|
const se_ScheduleKeyDeletionCommand = async (input, context) => {
|
|
410
|
-
const headers =
|
|
411
|
-
"content-type": "application/x-amz-json-1.1",
|
|
412
|
-
"x-amz-target": "TrentService.ScheduleKeyDeletion",
|
|
413
|
-
};
|
|
290
|
+
const headers = sharedHeaders("ScheduleKeyDeletion");
|
|
414
291
|
let body;
|
|
415
|
-
body = JSON.stringify(
|
|
292
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
416
293
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
417
294
|
};
|
|
418
295
|
exports.se_ScheduleKeyDeletionCommand = se_ScheduleKeyDeletionCommand;
|
|
419
296
|
const se_SignCommand = async (input, context) => {
|
|
420
|
-
const headers =
|
|
421
|
-
"content-type": "application/x-amz-json-1.1",
|
|
422
|
-
"x-amz-target": "TrentService.Sign",
|
|
423
|
-
};
|
|
297
|
+
const headers = sharedHeaders("Sign");
|
|
424
298
|
let body;
|
|
425
299
|
body = JSON.stringify(se_SignRequest(input, context));
|
|
426
300
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
427
301
|
};
|
|
428
302
|
exports.se_SignCommand = se_SignCommand;
|
|
429
303
|
const se_TagResourceCommand = async (input, context) => {
|
|
430
|
-
const headers =
|
|
431
|
-
"content-type": "application/x-amz-json-1.1",
|
|
432
|
-
"x-amz-target": "TrentService.TagResource",
|
|
433
|
-
};
|
|
304
|
+
const headers = sharedHeaders("TagResource");
|
|
434
305
|
let body;
|
|
435
|
-
body = JSON.stringify(
|
|
306
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
436
307
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
437
308
|
};
|
|
438
309
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
439
310
|
const se_UntagResourceCommand = async (input, context) => {
|
|
440
|
-
const headers =
|
|
441
|
-
"content-type": "application/x-amz-json-1.1",
|
|
442
|
-
"x-amz-target": "TrentService.UntagResource",
|
|
443
|
-
};
|
|
311
|
+
const headers = sharedHeaders("UntagResource");
|
|
444
312
|
let body;
|
|
445
|
-
body = JSON.stringify(
|
|
313
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
446
314
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
447
315
|
};
|
|
448
316
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
449
317
|
const se_UpdateAliasCommand = async (input, context) => {
|
|
450
|
-
const headers =
|
|
451
|
-
"content-type": "application/x-amz-json-1.1",
|
|
452
|
-
"x-amz-target": "TrentService.UpdateAlias",
|
|
453
|
-
};
|
|
318
|
+
const headers = sharedHeaders("UpdateAlias");
|
|
454
319
|
let body;
|
|
455
|
-
body = JSON.stringify(
|
|
320
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
456
321
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
457
322
|
};
|
|
458
323
|
exports.se_UpdateAliasCommand = se_UpdateAliasCommand;
|
|
459
324
|
const se_UpdateCustomKeyStoreCommand = async (input, context) => {
|
|
460
|
-
const headers =
|
|
461
|
-
"content-type": "application/x-amz-json-1.1",
|
|
462
|
-
"x-amz-target": "TrentService.UpdateCustomKeyStore",
|
|
463
|
-
};
|
|
325
|
+
const headers = sharedHeaders("UpdateCustomKeyStore");
|
|
464
326
|
let body;
|
|
465
|
-
body = JSON.stringify(
|
|
327
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
466
328
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
467
329
|
};
|
|
468
330
|
exports.se_UpdateCustomKeyStoreCommand = se_UpdateCustomKeyStoreCommand;
|
|
469
331
|
const se_UpdateKeyDescriptionCommand = async (input, context) => {
|
|
470
|
-
const headers =
|
|
471
|
-
"content-type": "application/x-amz-json-1.1",
|
|
472
|
-
"x-amz-target": "TrentService.UpdateKeyDescription",
|
|
473
|
-
};
|
|
332
|
+
const headers = sharedHeaders("UpdateKeyDescription");
|
|
474
333
|
let body;
|
|
475
|
-
body = JSON.stringify(
|
|
334
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
476
335
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
477
336
|
};
|
|
478
337
|
exports.se_UpdateKeyDescriptionCommand = se_UpdateKeyDescriptionCommand;
|
|
479
338
|
const se_UpdatePrimaryRegionCommand = async (input, context) => {
|
|
480
|
-
const headers =
|
|
481
|
-
"content-type": "application/x-amz-json-1.1",
|
|
482
|
-
"x-amz-target": "TrentService.UpdatePrimaryRegion",
|
|
483
|
-
};
|
|
339
|
+
const headers = sharedHeaders("UpdatePrimaryRegion");
|
|
484
340
|
let body;
|
|
485
|
-
body = JSON.stringify(
|
|
341
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
486
342
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
487
343
|
};
|
|
488
344
|
exports.se_UpdatePrimaryRegionCommand = se_UpdatePrimaryRegionCommand;
|
|
489
345
|
const se_VerifyCommand = async (input, context) => {
|
|
490
|
-
const headers =
|
|
491
|
-
"content-type": "application/x-amz-json-1.1",
|
|
492
|
-
"x-amz-target": "TrentService.Verify",
|
|
493
|
-
};
|
|
346
|
+
const headers = sharedHeaders("Verify");
|
|
494
347
|
let body;
|
|
495
348
|
body = JSON.stringify(se_VerifyRequest(input, context));
|
|
496
349
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
497
350
|
};
|
|
498
351
|
exports.se_VerifyCommand = se_VerifyCommand;
|
|
499
352
|
const se_VerifyMacCommand = async (input, context) => {
|
|
500
|
-
const headers =
|
|
501
|
-
"content-type": "application/x-amz-json-1.1",
|
|
502
|
-
"x-amz-target": "TrentService.VerifyMac",
|
|
503
|
-
};
|
|
353
|
+
const headers = sharedHeaders("VerifyMac");
|
|
504
354
|
let body;
|
|
505
355
|
body = JSON.stringify(se_VerifyMacRequest(input, context));
|
|
506
356
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
@@ -512,12 +362,12 @@ const de_CancelKeyDeletionCommand = async (output, context) => {
|
|
|
512
362
|
}
|
|
513
363
|
const data = await parseBody(output.body, context);
|
|
514
364
|
let contents = {};
|
|
515
|
-
contents =
|
|
365
|
+
contents = (0, smithy_client_1._json)(data);
|
|
516
366
|
const response = {
|
|
517
367
|
$metadata: deserializeMetadata(output),
|
|
518
368
|
...contents,
|
|
519
369
|
};
|
|
520
|
-
return
|
|
370
|
+
return response;
|
|
521
371
|
};
|
|
522
372
|
exports.de_CancelKeyDeletionCommand = de_CancelKeyDeletionCommand;
|
|
523
373
|
const de_CancelKeyDeletionCommandError = async (output, context) => {
|
|
@@ -544,10 +394,9 @@ const de_CancelKeyDeletionCommandError = async (output, context) => {
|
|
|
544
394
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
545
395
|
default:
|
|
546
396
|
const parsedBody = parsedOutput.body;
|
|
547
|
-
|
|
397
|
+
return throwDefaultError({
|
|
548
398
|
output,
|
|
549
399
|
parsedBody,
|
|
550
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
551
400
|
errorCode,
|
|
552
401
|
});
|
|
553
402
|
}
|
|
@@ -558,12 +407,12 @@ const de_ConnectCustomKeyStoreCommand = async (output, context) => {
|
|
|
558
407
|
}
|
|
559
408
|
const data = await parseBody(output.body, context);
|
|
560
409
|
let contents = {};
|
|
561
|
-
contents =
|
|
410
|
+
contents = (0, smithy_client_1._json)(data);
|
|
562
411
|
const response = {
|
|
563
412
|
$metadata: deserializeMetadata(output),
|
|
564
413
|
...contents,
|
|
565
414
|
};
|
|
566
|
-
return
|
|
415
|
+
return response;
|
|
567
416
|
};
|
|
568
417
|
exports.de_ConnectCustomKeyStoreCommand = de_ConnectCustomKeyStoreCommand;
|
|
569
418
|
const de_ConnectCustomKeyStoreCommandError = async (output, context) => {
|
|
@@ -590,10 +439,9 @@ const de_ConnectCustomKeyStoreCommandError = async (output, context) => {
|
|
|
590
439
|
throw await de_KMSInternalExceptionRes(parsedOutput, context);
|
|
591
440
|
default:
|
|
592
441
|
const parsedBody = parsedOutput.body;
|
|
593
|
-
|
|
442
|
+
return throwDefaultError({
|
|
594
443
|
output,
|
|
595
444
|
parsedBody,
|
|
596
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
597
445
|
errorCode,
|
|
598
446
|
});
|
|
599
447
|
}
|
|
@@ -606,7 +454,7 @@ const de_CreateAliasCommand = async (output, context) => {
|
|
|
606
454
|
const response = {
|
|
607
455
|
$metadata: deserializeMetadata(output),
|
|
608
456
|
};
|
|
609
|
-
return
|
|
457
|
+
return response;
|
|
610
458
|
};
|
|
611
459
|
exports.de_CreateAliasCommand = de_CreateAliasCommand;
|
|
612
460
|
const de_CreateAliasCommandError = async (output, context) => {
|
|
@@ -639,10 +487,9 @@ const de_CreateAliasCommandError = async (output, context) => {
|
|
|
639
487
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
640
488
|
default:
|
|
641
489
|
const parsedBody = parsedOutput.body;
|
|
642
|
-
|
|
490
|
+
return throwDefaultError({
|
|
643
491
|
output,
|
|
644
492
|
parsedBody,
|
|
645
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
646
493
|
errorCode,
|
|
647
494
|
});
|
|
648
495
|
}
|
|
@@ -653,12 +500,12 @@ const de_CreateCustomKeyStoreCommand = async (output, context) => {
|
|
|
653
500
|
}
|
|
654
501
|
const data = await parseBody(output.body, context);
|
|
655
502
|
let contents = {};
|
|
656
|
-
contents =
|
|
503
|
+
contents = (0, smithy_client_1._json)(data);
|
|
657
504
|
const response = {
|
|
658
505
|
$metadata: deserializeMetadata(output),
|
|
659
506
|
...contents,
|
|
660
507
|
};
|
|
661
|
-
return
|
|
508
|
+
return response;
|
|
662
509
|
};
|
|
663
510
|
exports.de_CreateCustomKeyStoreCommand = de_CreateCustomKeyStoreCommand;
|
|
664
511
|
const de_CreateCustomKeyStoreCommandError = async (output, context) => {
|
|
@@ -721,10 +568,9 @@ const de_CreateCustomKeyStoreCommandError = async (output, context) => {
|
|
|
721
568
|
throw await de_XksProxyVpcEndpointServiceNotFoundExceptionRes(parsedOutput, context);
|
|
722
569
|
default:
|
|
723
570
|
const parsedBody = parsedOutput.body;
|
|
724
|
-
|
|
571
|
+
return throwDefaultError({
|
|
725
572
|
output,
|
|
726
573
|
parsedBody,
|
|
727
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
728
574
|
errorCode,
|
|
729
575
|
});
|
|
730
576
|
}
|
|
@@ -735,12 +581,12 @@ const de_CreateGrantCommand = async (output, context) => {
|
|
|
735
581
|
}
|
|
736
582
|
const data = await parseBody(output.body, context);
|
|
737
583
|
let contents = {};
|
|
738
|
-
contents =
|
|
584
|
+
contents = (0, smithy_client_1._json)(data);
|
|
739
585
|
const response = {
|
|
740
586
|
$metadata: deserializeMetadata(output),
|
|
741
587
|
...contents,
|
|
742
588
|
};
|
|
743
|
-
return
|
|
589
|
+
return response;
|
|
744
590
|
};
|
|
745
591
|
exports.de_CreateGrantCommand = de_CreateGrantCommand;
|
|
746
592
|
const de_CreateGrantCommandError = async (output, context) => {
|
|
@@ -776,10 +622,9 @@ const de_CreateGrantCommandError = async (output, context) => {
|
|
|
776
622
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
777
623
|
default:
|
|
778
624
|
const parsedBody = parsedOutput.body;
|
|
779
|
-
|
|
625
|
+
return throwDefaultError({
|
|
780
626
|
output,
|
|
781
627
|
parsedBody,
|
|
782
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
783
628
|
errorCode,
|
|
784
629
|
});
|
|
785
630
|
}
|
|
@@ -795,7 +640,7 @@ const de_CreateKeyCommand = async (output, context) => {
|
|
|
795
640
|
$metadata: deserializeMetadata(output),
|
|
796
641
|
...contents,
|
|
797
642
|
};
|
|
798
|
-
return
|
|
643
|
+
return response;
|
|
799
644
|
};
|
|
800
645
|
exports.de_CreateKeyCommand = de_CreateKeyCommand;
|
|
801
646
|
const de_CreateKeyCommandError = async (output, context) => {
|
|
@@ -846,10 +691,9 @@ const de_CreateKeyCommandError = async (output, context) => {
|
|
|
846
691
|
throw await de_XksKeyNotFoundExceptionRes(parsedOutput, context);
|
|
847
692
|
default:
|
|
848
693
|
const parsedBody = parsedOutput.body;
|
|
849
|
-
|
|
694
|
+
return throwDefaultError({
|
|
850
695
|
output,
|
|
851
696
|
parsedBody,
|
|
852
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
853
697
|
errorCode,
|
|
854
698
|
});
|
|
855
699
|
}
|
|
@@ -865,7 +709,7 @@ const de_DecryptCommand = async (output, context) => {
|
|
|
865
709
|
$metadata: deserializeMetadata(output),
|
|
866
710
|
...contents,
|
|
867
711
|
};
|
|
868
|
-
return
|
|
712
|
+
return response;
|
|
869
713
|
};
|
|
870
714
|
exports.de_DecryptCommand = de_DecryptCommand;
|
|
871
715
|
const de_DecryptCommandError = async (output, context) => {
|
|
@@ -907,10 +751,9 @@ const de_DecryptCommandError = async (output, context) => {
|
|
|
907
751
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
908
752
|
default:
|
|
909
753
|
const parsedBody = parsedOutput.body;
|
|
910
|
-
|
|
754
|
+
return throwDefaultError({
|
|
911
755
|
output,
|
|
912
756
|
parsedBody,
|
|
913
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
914
757
|
errorCode,
|
|
915
758
|
});
|
|
916
759
|
}
|
|
@@ -923,7 +766,7 @@ const de_DeleteAliasCommand = async (output, context) => {
|
|
|
923
766
|
const response = {
|
|
924
767
|
$metadata: deserializeMetadata(output),
|
|
925
768
|
};
|
|
926
|
-
return
|
|
769
|
+
return response;
|
|
927
770
|
};
|
|
928
771
|
exports.de_DeleteAliasCommand = de_DeleteAliasCommand;
|
|
929
772
|
const de_DeleteAliasCommandError = async (output, context) => {
|
|
@@ -947,10 +790,9 @@ const de_DeleteAliasCommandError = async (output, context) => {
|
|
|
947
790
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
948
791
|
default:
|
|
949
792
|
const parsedBody = parsedOutput.body;
|
|
950
|
-
|
|
793
|
+
return throwDefaultError({
|
|
951
794
|
output,
|
|
952
795
|
parsedBody,
|
|
953
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
954
796
|
errorCode,
|
|
955
797
|
});
|
|
956
798
|
}
|
|
@@ -961,12 +803,12 @@ const de_DeleteCustomKeyStoreCommand = async (output, context) => {
|
|
|
961
803
|
}
|
|
962
804
|
const data = await parseBody(output.body, context);
|
|
963
805
|
let contents = {};
|
|
964
|
-
contents =
|
|
806
|
+
contents = (0, smithy_client_1._json)(data);
|
|
965
807
|
const response = {
|
|
966
808
|
$metadata: deserializeMetadata(output),
|
|
967
809
|
...contents,
|
|
968
810
|
};
|
|
969
|
-
return
|
|
811
|
+
return response;
|
|
970
812
|
};
|
|
971
813
|
exports.de_DeleteCustomKeyStoreCommand = de_DeleteCustomKeyStoreCommand;
|
|
972
814
|
const de_DeleteCustomKeyStoreCommandError = async (output, context) => {
|
|
@@ -990,10 +832,9 @@ const de_DeleteCustomKeyStoreCommandError = async (output, context) => {
|
|
|
990
832
|
throw await de_KMSInternalExceptionRes(parsedOutput, context);
|
|
991
833
|
default:
|
|
992
834
|
const parsedBody = parsedOutput.body;
|
|
993
|
-
|
|
835
|
+
return throwDefaultError({
|
|
994
836
|
output,
|
|
995
837
|
parsedBody,
|
|
996
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
997
838
|
errorCode,
|
|
998
839
|
});
|
|
999
840
|
}
|
|
@@ -1006,7 +847,7 @@ const de_DeleteImportedKeyMaterialCommand = async (output, context) => {
|
|
|
1006
847
|
const response = {
|
|
1007
848
|
$metadata: deserializeMetadata(output),
|
|
1008
849
|
};
|
|
1009
|
-
return
|
|
850
|
+
return response;
|
|
1010
851
|
};
|
|
1011
852
|
exports.de_DeleteImportedKeyMaterialCommand = de_DeleteImportedKeyMaterialCommand;
|
|
1012
853
|
const de_DeleteImportedKeyMaterialCommandError = async (output, context) => {
|
|
@@ -1036,10 +877,9 @@ const de_DeleteImportedKeyMaterialCommandError = async (output, context) => {
|
|
|
1036
877
|
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1037
878
|
default:
|
|
1038
879
|
const parsedBody = parsedOutput.body;
|
|
1039
|
-
|
|
880
|
+
return throwDefaultError({
|
|
1040
881
|
output,
|
|
1041
882
|
parsedBody,
|
|
1042
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
1043
883
|
errorCode,
|
|
1044
884
|
});
|
|
1045
885
|
}
|
|
@@ -1055,7 +895,7 @@ const de_DescribeCustomKeyStoresCommand = async (output, context) => {
|
|
|
1055
895
|
$metadata: deserializeMetadata(output),
|
|
1056
896
|
...contents,
|
|
1057
897
|
};
|
|
1058
|
-
return
|
|
898
|
+
return response;
|
|
1059
899
|
};
|
|
1060
900
|
exports.de_DescribeCustomKeyStoresCommand = de_DescribeCustomKeyStoresCommand;
|
|
1061
901
|
const de_DescribeCustomKeyStoresCommandError = async (output, context) => {
|
|
@@ -1076,10 +916,9 @@ const de_DescribeCustomKeyStoresCommandError = async (output, context) => {
|
|
|
1076
916
|
throw await de_KMSInternalExceptionRes(parsedOutput, context);
|
|
1077
917
|
default:
|
|
1078
918
|
const parsedBody = parsedOutput.body;
|
|
1079
|
-
|
|
919
|
+
return throwDefaultError({
|
|
1080
920
|
output,
|
|
1081
921
|
parsedBody,
|
|
1082
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
1083
922
|
errorCode,
|
|
1084
923
|
});
|
|
1085
924
|
}
|
|
@@ -1095,7 +934,7 @@ const de_DescribeKeyCommand = async (output, context) => {
|
|
|
1095
934
|
$metadata: deserializeMetadata(output),
|
|
1096
935
|
...contents,
|
|
1097
936
|
};
|
|
1098
|
-
return
|
|
937
|
+
return response;
|
|
1099
938
|
};
|
|
1100
939
|
exports.de_DescribeKeyCommand = de_DescribeKeyCommand;
|
|
1101
940
|
const de_DescribeKeyCommandError = async (output, context) => {
|
|
@@ -1119,10 +958,9 @@ const de_DescribeKeyCommandError = async (output, context) => {
|
|
|
1119
958
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1120
959
|
default:
|
|
1121
960
|
const parsedBody = parsedOutput.body;
|
|
1122
|
-
|
|
961
|
+
return throwDefaultError({
|
|
1123
962
|
output,
|
|
1124
963
|
parsedBody,
|
|
1125
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
1126
964
|
errorCode,
|
|
1127
965
|
});
|
|
1128
966
|
}
|
|
@@ -1135,7 +973,7 @@ const de_DisableKeyCommand = async (output, context) => {
|
|
|
1135
973
|
const response = {
|
|
1136
974
|
$metadata: deserializeMetadata(output),
|
|
1137
975
|
};
|
|
1138
|
-
return
|
|
976
|
+
return response;
|
|
1139
977
|
};
|
|
1140
978
|
exports.de_DisableKeyCommand = de_DisableKeyCommand;
|
|
1141
979
|
const de_DisableKeyCommandError = async (output, context) => {
|
|
@@ -1162,10 +1000,9 @@ const de_DisableKeyCommandError = async (output, context) => {
|
|
|
1162
1000
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1163
1001
|
default:
|
|
1164
1002
|
const parsedBody = parsedOutput.body;
|
|
1165
|
-
|
|
1003
|
+
return throwDefaultError({
|
|
1166
1004
|
output,
|
|
1167
1005
|
parsedBody,
|
|
1168
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
1169
1006
|
errorCode,
|
|
1170
1007
|
});
|
|
1171
1008
|
}
|
|
@@ -1178,7 +1015,7 @@ const de_DisableKeyRotationCommand = async (output, context) => {
|
|
|
1178
1015
|
const response = {
|
|
1179
1016
|
$metadata: deserializeMetadata(output),
|
|
1180
1017
|
};
|
|
1181
|
-
return
|
|
1018
|
+
return response;
|
|
1182
1019
|
};
|
|
1183
1020
|
exports.de_DisableKeyRotationCommand = de_DisableKeyRotationCommand;
|
|
1184
1021
|
const de_DisableKeyRotationCommandError = async (output, context) => {
|
|
@@ -1211,10 +1048,9 @@ const de_DisableKeyRotationCommandError = async (output, context) => {
|
|
|
1211
1048
|
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1212
1049
|
default:
|
|
1213
1050
|
const parsedBody = parsedOutput.body;
|
|
1214
|
-
|
|
1051
|
+
return throwDefaultError({
|
|
1215
1052
|
output,
|
|
1216
1053
|
parsedBody,
|
|
1217
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
1218
1054
|
errorCode,
|
|
1219
1055
|
});
|
|
1220
1056
|
}
|
|
@@ -1225,12 +1061,12 @@ const de_DisconnectCustomKeyStoreCommand = async (output, context) => {
|
|
|
1225
1061
|
}
|
|
1226
1062
|
const data = await parseBody(output.body, context);
|
|
1227
1063
|
let contents = {};
|
|
1228
|
-
contents =
|
|
1064
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1229
1065
|
const response = {
|
|
1230
1066
|
$metadata: deserializeMetadata(output),
|
|
1231
1067
|
...contents,
|
|
1232
1068
|
};
|
|
1233
|
-
return
|
|
1069
|
+
return response;
|
|
1234
1070
|
};
|
|
1235
1071
|
exports.de_DisconnectCustomKeyStoreCommand = de_DisconnectCustomKeyStoreCommand;
|
|
1236
1072
|
const de_DisconnectCustomKeyStoreCommandError = async (output, context) => {
|
|
@@ -1251,10 +1087,9 @@ const de_DisconnectCustomKeyStoreCommandError = async (output, context) => {
|
|
|
1251
1087
|
throw await de_KMSInternalExceptionRes(parsedOutput, context);
|
|
1252
1088
|
default:
|
|
1253
1089
|
const parsedBody = parsedOutput.body;
|
|
1254
|
-
|
|
1090
|
+
return throwDefaultError({
|
|
1255
1091
|
output,
|
|
1256
1092
|
parsedBody,
|
|
1257
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
1258
1093
|
errorCode,
|
|
1259
1094
|
});
|
|
1260
1095
|
}
|
|
@@ -1267,7 +1102,7 @@ const de_EnableKeyCommand = async (output, context) => {
|
|
|
1267
1102
|
const response = {
|
|
1268
1103
|
$metadata: deserializeMetadata(output),
|
|
1269
1104
|
};
|
|
1270
|
-
return
|
|
1105
|
+
return response;
|
|
1271
1106
|
};
|
|
1272
1107
|
exports.de_EnableKeyCommand = de_EnableKeyCommand;
|
|
1273
1108
|
const de_EnableKeyCommandError = async (output, context) => {
|
|
@@ -1297,10 +1132,9 @@ const de_EnableKeyCommandError = async (output, context) => {
|
|
|
1297
1132
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1298
1133
|
default:
|
|
1299
1134
|
const parsedBody = parsedOutput.body;
|
|
1300
|
-
|
|
1135
|
+
return throwDefaultError({
|
|
1301
1136
|
output,
|
|
1302
1137
|
parsedBody,
|
|
1303
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
1304
1138
|
errorCode,
|
|
1305
1139
|
});
|
|
1306
1140
|
}
|
|
@@ -1313,7 +1147,7 @@ const de_EnableKeyRotationCommand = async (output, context) => {
|
|
|
1313
1147
|
const response = {
|
|
1314
1148
|
$metadata: deserializeMetadata(output),
|
|
1315
1149
|
};
|
|
1316
|
-
return
|
|
1150
|
+
return response;
|
|
1317
1151
|
};
|
|
1318
1152
|
exports.de_EnableKeyRotationCommand = de_EnableKeyRotationCommand;
|
|
1319
1153
|
const de_EnableKeyRotationCommandError = async (output, context) => {
|
|
@@ -1346,10 +1180,9 @@ const de_EnableKeyRotationCommandError = async (output, context) => {
|
|
|
1346
1180
|
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1347
1181
|
default:
|
|
1348
1182
|
const parsedBody = parsedOutput.body;
|
|
1349
|
-
|
|
1183
|
+
return throwDefaultError({
|
|
1350
1184
|
output,
|
|
1351
1185
|
parsedBody,
|
|
1352
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
1353
1186
|
errorCode,
|
|
1354
1187
|
});
|
|
1355
1188
|
}
|
|
@@ -1365,7 +1198,7 @@ const de_EncryptCommand = async (output, context) => {
|
|
|
1365
1198
|
$metadata: deserializeMetadata(output),
|
|
1366
1199
|
...contents,
|
|
1367
1200
|
};
|
|
1368
|
-
return
|
|
1201
|
+
return response;
|
|
1369
1202
|
};
|
|
1370
1203
|
exports.de_EncryptCommand = de_EncryptCommand;
|
|
1371
1204
|
const de_EncryptCommandError = async (output, context) => {
|
|
@@ -1401,10 +1234,9 @@ const de_EncryptCommandError = async (output, context) => {
|
|
|
1401
1234
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1402
1235
|
default:
|
|
1403
1236
|
const parsedBody = parsedOutput.body;
|
|
1404
|
-
|
|
1237
|
+
return throwDefaultError({
|
|
1405
1238
|
output,
|
|
1406
1239
|
parsedBody,
|
|
1407
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
1408
1240
|
errorCode,
|
|
1409
1241
|
});
|
|
1410
1242
|
}
|
|
@@ -1420,7 +1252,7 @@ const de_GenerateDataKeyCommand = async (output, context) => {
|
|
|
1420
1252
|
$metadata: deserializeMetadata(output),
|
|
1421
1253
|
...contents,
|
|
1422
1254
|
};
|
|
1423
|
-
return
|
|
1255
|
+
return response;
|
|
1424
1256
|
};
|
|
1425
1257
|
exports.de_GenerateDataKeyCommand = de_GenerateDataKeyCommand;
|
|
1426
1258
|
const de_GenerateDataKeyCommandError = async (output, context) => {
|
|
@@ -1456,10 +1288,9 @@ const de_GenerateDataKeyCommandError = async (output, context) => {
|
|
|
1456
1288
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1457
1289
|
default:
|
|
1458
1290
|
const parsedBody = parsedOutput.body;
|
|
1459
|
-
|
|
1291
|
+
return throwDefaultError({
|
|
1460
1292
|
output,
|
|
1461
1293
|
parsedBody,
|
|
1462
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
1463
1294
|
errorCode,
|
|
1464
1295
|
});
|
|
1465
1296
|
}
|
|
@@ -1475,7 +1306,7 @@ const de_GenerateDataKeyPairCommand = async (output, context) => {
|
|
|
1475
1306
|
$metadata: deserializeMetadata(output),
|
|
1476
1307
|
...contents,
|
|
1477
1308
|
};
|
|
1478
|
-
return
|
|
1309
|
+
return response;
|
|
1479
1310
|
};
|
|
1480
1311
|
exports.de_GenerateDataKeyPairCommand = de_GenerateDataKeyPairCommand;
|
|
1481
1312
|
const de_GenerateDataKeyPairCommandError = async (output, context) => {
|
|
@@ -1514,10 +1345,9 @@ const de_GenerateDataKeyPairCommandError = async (output, context) => {
|
|
|
1514
1345
|
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1515
1346
|
default:
|
|
1516
1347
|
const parsedBody = parsedOutput.body;
|
|
1517
|
-
|
|
1348
|
+
return throwDefaultError({
|
|
1518
1349
|
output,
|
|
1519
1350
|
parsedBody,
|
|
1520
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
1521
1351
|
errorCode,
|
|
1522
1352
|
});
|
|
1523
1353
|
}
|
|
@@ -1533,7 +1363,7 @@ const de_GenerateDataKeyPairWithoutPlaintextCommand = async (output, context) =>
|
|
|
1533
1363
|
$metadata: deserializeMetadata(output),
|
|
1534
1364
|
...contents,
|
|
1535
1365
|
};
|
|
1536
|
-
return
|
|
1366
|
+
return response;
|
|
1537
1367
|
};
|
|
1538
1368
|
exports.de_GenerateDataKeyPairWithoutPlaintextCommand = de_GenerateDataKeyPairWithoutPlaintextCommand;
|
|
1539
1369
|
const de_GenerateDataKeyPairWithoutPlaintextCommandError = async (output, context) => {
|
|
@@ -1572,10 +1402,9 @@ const de_GenerateDataKeyPairWithoutPlaintextCommandError = async (output, contex
|
|
|
1572
1402
|
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1573
1403
|
default:
|
|
1574
1404
|
const parsedBody = parsedOutput.body;
|
|
1575
|
-
|
|
1405
|
+
return throwDefaultError({
|
|
1576
1406
|
output,
|
|
1577
1407
|
parsedBody,
|
|
1578
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
1579
1408
|
errorCode,
|
|
1580
1409
|
});
|
|
1581
1410
|
}
|
|
@@ -1591,7 +1420,7 @@ const de_GenerateDataKeyWithoutPlaintextCommand = async (output, context) => {
|
|
|
1591
1420
|
$metadata: deserializeMetadata(output),
|
|
1592
1421
|
...contents,
|
|
1593
1422
|
};
|
|
1594
|
-
return
|
|
1423
|
+
return response;
|
|
1595
1424
|
};
|
|
1596
1425
|
exports.de_GenerateDataKeyWithoutPlaintextCommand = de_GenerateDataKeyWithoutPlaintextCommand;
|
|
1597
1426
|
const de_GenerateDataKeyWithoutPlaintextCommandError = async (output, context) => {
|
|
@@ -1627,10 +1456,9 @@ const de_GenerateDataKeyWithoutPlaintextCommandError = async (output, context) =
|
|
|
1627
1456
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1628
1457
|
default:
|
|
1629
1458
|
const parsedBody = parsedOutput.body;
|
|
1630
|
-
|
|
1459
|
+
return throwDefaultError({
|
|
1631
1460
|
output,
|
|
1632
1461
|
parsedBody,
|
|
1633
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
1634
1462
|
errorCode,
|
|
1635
1463
|
});
|
|
1636
1464
|
}
|
|
@@ -1646,7 +1474,7 @@ const de_GenerateMacCommand = async (output, context) => {
|
|
|
1646
1474
|
$metadata: deserializeMetadata(output),
|
|
1647
1475
|
...contents,
|
|
1648
1476
|
};
|
|
1649
|
-
return
|
|
1477
|
+
return response;
|
|
1650
1478
|
};
|
|
1651
1479
|
exports.de_GenerateMacCommand = de_GenerateMacCommand;
|
|
1652
1480
|
const de_GenerateMacCommandError = async (output, context) => {
|
|
@@ -1679,10 +1507,9 @@ const de_GenerateMacCommandError = async (output, context) => {
|
|
|
1679
1507
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1680
1508
|
default:
|
|
1681
1509
|
const parsedBody = parsedOutput.body;
|
|
1682
|
-
|
|
1510
|
+
return throwDefaultError({
|
|
1683
1511
|
output,
|
|
1684
1512
|
parsedBody,
|
|
1685
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
1686
1513
|
errorCode,
|
|
1687
1514
|
});
|
|
1688
1515
|
}
|
|
@@ -1698,7 +1525,7 @@ const de_GenerateRandomCommand = async (output, context) => {
|
|
|
1698
1525
|
$metadata: deserializeMetadata(output),
|
|
1699
1526
|
...contents,
|
|
1700
1527
|
};
|
|
1701
|
-
return
|
|
1528
|
+
return response;
|
|
1702
1529
|
};
|
|
1703
1530
|
exports.de_GenerateRandomCommand = de_GenerateRandomCommand;
|
|
1704
1531
|
const de_GenerateRandomCommandError = async (output, context) => {
|
|
@@ -1725,10 +1552,9 @@ const de_GenerateRandomCommandError = async (output, context) => {
|
|
|
1725
1552
|
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1726
1553
|
default:
|
|
1727
1554
|
const parsedBody = parsedOutput.body;
|
|
1728
|
-
|
|
1555
|
+
return throwDefaultError({
|
|
1729
1556
|
output,
|
|
1730
1557
|
parsedBody,
|
|
1731
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
1732
1558
|
errorCode,
|
|
1733
1559
|
});
|
|
1734
1560
|
}
|
|
@@ -1739,12 +1565,12 @@ const de_GetKeyPolicyCommand = async (output, context) => {
|
|
|
1739
1565
|
}
|
|
1740
1566
|
const data = await parseBody(output.body, context);
|
|
1741
1567
|
let contents = {};
|
|
1742
|
-
contents =
|
|
1568
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1743
1569
|
const response = {
|
|
1744
1570
|
$metadata: deserializeMetadata(output),
|
|
1745
1571
|
...contents,
|
|
1746
1572
|
};
|
|
1747
|
-
return
|
|
1573
|
+
return response;
|
|
1748
1574
|
};
|
|
1749
1575
|
exports.de_GetKeyPolicyCommand = de_GetKeyPolicyCommand;
|
|
1750
1576
|
const de_GetKeyPolicyCommandError = async (output, context) => {
|
|
@@ -1771,10 +1597,9 @@ const de_GetKeyPolicyCommandError = async (output, context) => {
|
|
|
1771
1597
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1772
1598
|
default:
|
|
1773
1599
|
const parsedBody = parsedOutput.body;
|
|
1774
|
-
|
|
1600
|
+
return throwDefaultError({
|
|
1775
1601
|
output,
|
|
1776
1602
|
parsedBody,
|
|
1777
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
1778
1603
|
errorCode,
|
|
1779
1604
|
});
|
|
1780
1605
|
}
|
|
@@ -1785,12 +1610,12 @@ const de_GetKeyRotationStatusCommand = async (output, context) => {
|
|
|
1785
1610
|
}
|
|
1786
1611
|
const data = await parseBody(output.body, context);
|
|
1787
1612
|
let contents = {};
|
|
1788
|
-
contents =
|
|
1613
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1789
1614
|
const response = {
|
|
1790
1615
|
$metadata: deserializeMetadata(output),
|
|
1791
1616
|
...contents,
|
|
1792
1617
|
};
|
|
1793
|
-
return
|
|
1618
|
+
return response;
|
|
1794
1619
|
};
|
|
1795
1620
|
exports.de_GetKeyRotationStatusCommand = de_GetKeyRotationStatusCommand;
|
|
1796
1621
|
const de_GetKeyRotationStatusCommandError = async (output, context) => {
|
|
@@ -1820,10 +1645,9 @@ const de_GetKeyRotationStatusCommandError = async (output, context) => {
|
|
|
1820
1645
|
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1821
1646
|
default:
|
|
1822
1647
|
const parsedBody = parsedOutput.body;
|
|
1823
|
-
|
|
1648
|
+
return throwDefaultError({
|
|
1824
1649
|
output,
|
|
1825
1650
|
parsedBody,
|
|
1826
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
1827
1651
|
errorCode,
|
|
1828
1652
|
});
|
|
1829
1653
|
}
|
|
@@ -1839,7 +1663,7 @@ const de_GetParametersForImportCommand = async (output, context) => {
|
|
|
1839
1663
|
$metadata: deserializeMetadata(output),
|
|
1840
1664
|
...contents,
|
|
1841
1665
|
};
|
|
1842
|
-
return
|
|
1666
|
+
return response;
|
|
1843
1667
|
};
|
|
1844
1668
|
exports.de_GetParametersForImportCommand = de_GetParametersForImportCommand;
|
|
1845
1669
|
const de_GetParametersForImportCommandError = async (output, context) => {
|
|
@@ -1869,10 +1693,9 @@ const de_GetParametersForImportCommandError = async (output, context) => {
|
|
|
1869
1693
|
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1870
1694
|
default:
|
|
1871
1695
|
const parsedBody = parsedOutput.body;
|
|
1872
|
-
|
|
1696
|
+
return throwDefaultError({
|
|
1873
1697
|
output,
|
|
1874
1698
|
parsedBody,
|
|
1875
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
1876
1699
|
errorCode,
|
|
1877
1700
|
});
|
|
1878
1701
|
}
|
|
@@ -1888,7 +1711,7 @@ const de_GetPublicKeyCommand = async (output, context) => {
|
|
|
1888
1711
|
$metadata: deserializeMetadata(output),
|
|
1889
1712
|
...contents,
|
|
1890
1713
|
};
|
|
1891
|
-
return
|
|
1714
|
+
return response;
|
|
1892
1715
|
};
|
|
1893
1716
|
exports.de_GetPublicKeyCommand = de_GetPublicKeyCommand;
|
|
1894
1717
|
const de_GetPublicKeyCommandError = async (output, context) => {
|
|
@@ -1930,10 +1753,9 @@ const de_GetPublicKeyCommandError = async (output, context) => {
|
|
|
1930
1753
|
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1931
1754
|
default:
|
|
1932
1755
|
const parsedBody = parsedOutput.body;
|
|
1933
|
-
|
|
1756
|
+
return throwDefaultError({
|
|
1934
1757
|
output,
|
|
1935
1758
|
parsedBody,
|
|
1936
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
1937
1759
|
errorCode,
|
|
1938
1760
|
});
|
|
1939
1761
|
}
|
|
@@ -1944,12 +1766,12 @@ const de_ImportKeyMaterialCommand = async (output, context) => {
|
|
|
1944
1766
|
}
|
|
1945
1767
|
const data = await parseBody(output.body, context);
|
|
1946
1768
|
let contents = {};
|
|
1947
|
-
contents =
|
|
1769
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1948
1770
|
const response = {
|
|
1949
1771
|
$metadata: deserializeMetadata(output),
|
|
1950
1772
|
...contents,
|
|
1951
1773
|
};
|
|
1952
|
-
return
|
|
1774
|
+
return response;
|
|
1953
1775
|
};
|
|
1954
1776
|
exports.de_ImportKeyMaterialCommand = de_ImportKeyMaterialCommand;
|
|
1955
1777
|
const de_ImportKeyMaterialCommandError = async (output, context) => {
|
|
@@ -1991,10 +1813,9 @@ const de_ImportKeyMaterialCommandError = async (output, context) => {
|
|
|
1991
1813
|
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1992
1814
|
default:
|
|
1993
1815
|
const parsedBody = parsedOutput.body;
|
|
1994
|
-
|
|
1816
|
+
return throwDefaultError({
|
|
1995
1817
|
output,
|
|
1996
1818
|
parsedBody,
|
|
1997
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
1998
1819
|
errorCode,
|
|
1999
1820
|
});
|
|
2000
1821
|
}
|
|
@@ -2010,7 +1831,7 @@ const de_ListAliasesCommand = async (output, context) => {
|
|
|
2010
1831
|
$metadata: deserializeMetadata(output),
|
|
2011
1832
|
...contents,
|
|
2012
1833
|
};
|
|
2013
|
-
return
|
|
1834
|
+
return response;
|
|
2014
1835
|
};
|
|
2015
1836
|
exports.de_ListAliasesCommand = de_ListAliasesCommand;
|
|
2016
1837
|
const de_ListAliasesCommandError = async (output, context) => {
|
|
@@ -2037,10 +1858,9 @@ const de_ListAliasesCommandError = async (output, context) => {
|
|
|
2037
1858
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2038
1859
|
default:
|
|
2039
1860
|
const parsedBody = parsedOutput.body;
|
|
2040
|
-
|
|
1861
|
+
return throwDefaultError({
|
|
2041
1862
|
output,
|
|
2042
1863
|
parsedBody,
|
|
2043
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
2044
1864
|
errorCode,
|
|
2045
1865
|
});
|
|
2046
1866
|
}
|
|
@@ -2056,7 +1876,7 @@ const de_ListGrantsCommand = async (output, context) => {
|
|
|
2056
1876
|
$metadata: deserializeMetadata(output),
|
|
2057
1877
|
...contents,
|
|
2058
1878
|
};
|
|
2059
|
-
return
|
|
1879
|
+
return response;
|
|
2060
1880
|
};
|
|
2061
1881
|
exports.de_ListGrantsCommand = de_ListGrantsCommand;
|
|
2062
1882
|
const de_ListGrantsCommandError = async (output, context) => {
|
|
@@ -2089,10 +1909,9 @@ const de_ListGrantsCommandError = async (output, context) => {
|
|
|
2089
1909
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2090
1910
|
default:
|
|
2091
1911
|
const parsedBody = parsedOutput.body;
|
|
2092
|
-
|
|
1912
|
+
return throwDefaultError({
|
|
2093
1913
|
output,
|
|
2094
1914
|
parsedBody,
|
|
2095
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
2096
1915
|
errorCode,
|
|
2097
1916
|
});
|
|
2098
1917
|
}
|
|
@@ -2103,12 +1922,12 @@ const de_ListKeyPoliciesCommand = async (output, context) => {
|
|
|
2103
1922
|
}
|
|
2104
1923
|
const data = await parseBody(output.body, context);
|
|
2105
1924
|
let contents = {};
|
|
2106
|
-
contents =
|
|
1925
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2107
1926
|
const response = {
|
|
2108
1927
|
$metadata: deserializeMetadata(output),
|
|
2109
1928
|
...contents,
|
|
2110
1929
|
};
|
|
2111
|
-
return
|
|
1930
|
+
return response;
|
|
2112
1931
|
};
|
|
2113
1932
|
exports.de_ListKeyPoliciesCommand = de_ListKeyPoliciesCommand;
|
|
2114
1933
|
const de_ListKeyPoliciesCommandError = async (output, context) => {
|
|
@@ -2135,10 +1954,9 @@ const de_ListKeyPoliciesCommandError = async (output, context) => {
|
|
|
2135
1954
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2136
1955
|
default:
|
|
2137
1956
|
const parsedBody = parsedOutput.body;
|
|
2138
|
-
|
|
1957
|
+
return throwDefaultError({
|
|
2139
1958
|
output,
|
|
2140
1959
|
parsedBody,
|
|
2141
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
2142
1960
|
errorCode,
|
|
2143
1961
|
});
|
|
2144
1962
|
}
|
|
@@ -2149,12 +1967,12 @@ const de_ListKeysCommand = async (output, context) => {
|
|
|
2149
1967
|
}
|
|
2150
1968
|
const data = await parseBody(output.body, context);
|
|
2151
1969
|
let contents = {};
|
|
2152
|
-
contents =
|
|
1970
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2153
1971
|
const response = {
|
|
2154
1972
|
$metadata: deserializeMetadata(output),
|
|
2155
1973
|
...contents,
|
|
2156
1974
|
};
|
|
2157
|
-
return
|
|
1975
|
+
return response;
|
|
2158
1976
|
};
|
|
2159
1977
|
exports.de_ListKeysCommand = de_ListKeysCommand;
|
|
2160
1978
|
const de_ListKeysCommandError = async (output, context) => {
|
|
@@ -2175,10 +1993,9 @@ const de_ListKeysCommandError = async (output, context) => {
|
|
|
2175
1993
|
throw await de_KMSInternalExceptionRes(parsedOutput, context);
|
|
2176
1994
|
default:
|
|
2177
1995
|
const parsedBody = parsedOutput.body;
|
|
2178
|
-
|
|
1996
|
+
return throwDefaultError({
|
|
2179
1997
|
output,
|
|
2180
1998
|
parsedBody,
|
|
2181
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
2182
1999
|
errorCode,
|
|
2183
2000
|
});
|
|
2184
2001
|
}
|
|
@@ -2189,12 +2006,12 @@ const de_ListResourceTagsCommand = async (output, context) => {
|
|
|
2189
2006
|
}
|
|
2190
2007
|
const data = await parseBody(output.body, context);
|
|
2191
2008
|
let contents = {};
|
|
2192
|
-
contents =
|
|
2009
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2193
2010
|
const response = {
|
|
2194
2011
|
$metadata: deserializeMetadata(output),
|
|
2195
2012
|
...contents,
|
|
2196
2013
|
};
|
|
2197
|
-
return
|
|
2014
|
+
return response;
|
|
2198
2015
|
};
|
|
2199
2016
|
exports.de_ListResourceTagsCommand = de_ListResourceTagsCommand;
|
|
2200
2017
|
const de_ListResourceTagsCommandError = async (output, context) => {
|
|
@@ -2218,10 +2035,9 @@ const de_ListResourceTagsCommandError = async (output, context) => {
|
|
|
2218
2035
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2219
2036
|
default:
|
|
2220
2037
|
const parsedBody = parsedOutput.body;
|
|
2221
|
-
|
|
2038
|
+
return throwDefaultError({
|
|
2222
2039
|
output,
|
|
2223
2040
|
parsedBody,
|
|
2224
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
2225
2041
|
errorCode,
|
|
2226
2042
|
});
|
|
2227
2043
|
}
|
|
@@ -2237,7 +2053,7 @@ const de_ListRetirableGrantsCommand = async (output, context) => {
|
|
|
2237
2053
|
$metadata: deserializeMetadata(output),
|
|
2238
2054
|
...contents,
|
|
2239
2055
|
};
|
|
2240
|
-
return
|
|
2056
|
+
return response;
|
|
2241
2057
|
};
|
|
2242
2058
|
exports.de_ListRetirableGrantsCommand = de_ListRetirableGrantsCommand;
|
|
2243
2059
|
const de_ListRetirableGrantsCommandError = async (output, context) => {
|
|
@@ -2264,10 +2080,9 @@ const de_ListRetirableGrantsCommandError = async (output, context) => {
|
|
|
2264
2080
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2265
2081
|
default:
|
|
2266
2082
|
const parsedBody = parsedOutput.body;
|
|
2267
|
-
|
|
2083
|
+
return throwDefaultError({
|
|
2268
2084
|
output,
|
|
2269
2085
|
parsedBody,
|
|
2270
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
2271
2086
|
errorCode,
|
|
2272
2087
|
});
|
|
2273
2088
|
}
|
|
@@ -2280,7 +2095,7 @@ const de_PutKeyPolicyCommand = async (output, context) => {
|
|
|
2280
2095
|
const response = {
|
|
2281
2096
|
$metadata: deserializeMetadata(output),
|
|
2282
2097
|
};
|
|
2283
|
-
return
|
|
2098
|
+
return response;
|
|
2284
2099
|
};
|
|
2285
2100
|
exports.de_PutKeyPolicyCommand = de_PutKeyPolicyCommand;
|
|
2286
2101
|
const de_PutKeyPolicyCommandError = async (output, context) => {
|
|
@@ -2316,10 +2131,9 @@ const de_PutKeyPolicyCommandError = async (output, context) => {
|
|
|
2316
2131
|
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2317
2132
|
default:
|
|
2318
2133
|
const parsedBody = parsedOutput.body;
|
|
2319
|
-
|
|
2134
|
+
return throwDefaultError({
|
|
2320
2135
|
output,
|
|
2321
2136
|
parsedBody,
|
|
2322
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
2323
2137
|
errorCode,
|
|
2324
2138
|
});
|
|
2325
2139
|
}
|
|
@@ -2335,7 +2149,7 @@ const de_ReEncryptCommand = async (output, context) => {
|
|
|
2335
2149
|
$metadata: deserializeMetadata(output),
|
|
2336
2150
|
...contents,
|
|
2337
2151
|
};
|
|
2338
|
-
return
|
|
2152
|
+
return response;
|
|
2339
2153
|
};
|
|
2340
2154
|
exports.de_ReEncryptCommand = de_ReEncryptCommand;
|
|
2341
2155
|
const de_ReEncryptCommandError = async (output, context) => {
|
|
@@ -2377,10 +2191,9 @@ const de_ReEncryptCommandError = async (output, context) => {
|
|
|
2377
2191
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2378
2192
|
default:
|
|
2379
2193
|
const parsedBody = parsedOutput.body;
|
|
2380
|
-
|
|
2194
|
+
return throwDefaultError({
|
|
2381
2195
|
output,
|
|
2382
2196
|
parsedBody,
|
|
2383
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
2384
2197
|
errorCode,
|
|
2385
2198
|
});
|
|
2386
2199
|
}
|
|
@@ -2396,7 +2209,7 @@ const de_ReplicateKeyCommand = async (output, context) => {
|
|
|
2396
2209
|
$metadata: deserializeMetadata(output),
|
|
2397
2210
|
...contents,
|
|
2398
2211
|
};
|
|
2399
|
-
return
|
|
2212
|
+
return response;
|
|
2400
2213
|
};
|
|
2401
2214
|
exports.de_ReplicateKeyCommand = de_ReplicateKeyCommand;
|
|
2402
2215
|
const de_ReplicateKeyCommandError = async (output, context) => {
|
|
@@ -2438,10 +2251,9 @@ const de_ReplicateKeyCommandError = async (output, context) => {
|
|
|
2438
2251
|
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2439
2252
|
default:
|
|
2440
2253
|
const parsedBody = parsedOutput.body;
|
|
2441
|
-
|
|
2254
|
+
return throwDefaultError({
|
|
2442
2255
|
output,
|
|
2443
2256
|
parsedBody,
|
|
2444
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
2445
2257
|
errorCode,
|
|
2446
2258
|
});
|
|
2447
2259
|
}
|
|
@@ -2454,7 +2266,7 @@ const de_RetireGrantCommand = async (output, context) => {
|
|
|
2454
2266
|
const response = {
|
|
2455
2267
|
$metadata: deserializeMetadata(output),
|
|
2456
2268
|
};
|
|
2457
|
-
return
|
|
2269
|
+
return response;
|
|
2458
2270
|
};
|
|
2459
2271
|
exports.de_RetireGrantCommand = de_RetireGrantCommand;
|
|
2460
2272
|
const de_RetireGrantCommandError = async (output, context) => {
|
|
@@ -2487,10 +2299,9 @@ const de_RetireGrantCommandError = async (output, context) => {
|
|
|
2487
2299
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2488
2300
|
default:
|
|
2489
2301
|
const parsedBody = parsedOutput.body;
|
|
2490
|
-
|
|
2302
|
+
return throwDefaultError({
|
|
2491
2303
|
output,
|
|
2492
2304
|
parsedBody,
|
|
2493
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
2494
2305
|
errorCode,
|
|
2495
2306
|
});
|
|
2496
2307
|
}
|
|
@@ -2503,7 +2314,7 @@ const de_RevokeGrantCommand = async (output, context) => {
|
|
|
2503
2314
|
const response = {
|
|
2504
2315
|
$metadata: deserializeMetadata(output),
|
|
2505
2316
|
};
|
|
2506
|
-
return
|
|
2317
|
+
return response;
|
|
2507
2318
|
};
|
|
2508
2319
|
exports.de_RevokeGrantCommand = de_RevokeGrantCommand;
|
|
2509
2320
|
const de_RevokeGrantCommandError = async (output, context) => {
|
|
@@ -2533,10 +2344,9 @@ const de_RevokeGrantCommandError = async (output, context) => {
|
|
|
2533
2344
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2534
2345
|
default:
|
|
2535
2346
|
const parsedBody = parsedOutput.body;
|
|
2536
|
-
|
|
2347
|
+
return throwDefaultError({
|
|
2537
2348
|
output,
|
|
2538
2349
|
parsedBody,
|
|
2539
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
2540
2350
|
errorCode,
|
|
2541
2351
|
});
|
|
2542
2352
|
}
|
|
@@ -2552,7 +2362,7 @@ const de_ScheduleKeyDeletionCommand = async (output, context) => {
|
|
|
2552
2362
|
$metadata: deserializeMetadata(output),
|
|
2553
2363
|
...contents,
|
|
2554
2364
|
};
|
|
2555
|
-
return
|
|
2365
|
+
return response;
|
|
2556
2366
|
};
|
|
2557
2367
|
exports.de_ScheduleKeyDeletionCommand = de_ScheduleKeyDeletionCommand;
|
|
2558
2368
|
const de_ScheduleKeyDeletionCommandError = async (output, context) => {
|
|
@@ -2579,10 +2389,9 @@ const de_ScheduleKeyDeletionCommandError = async (output, context) => {
|
|
|
2579
2389
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2580
2390
|
default:
|
|
2581
2391
|
const parsedBody = parsedOutput.body;
|
|
2582
|
-
|
|
2392
|
+
return throwDefaultError({
|
|
2583
2393
|
output,
|
|
2584
2394
|
parsedBody,
|
|
2585
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
2586
2395
|
errorCode,
|
|
2587
2396
|
});
|
|
2588
2397
|
}
|
|
@@ -2598,7 +2407,7 @@ const de_SignCommand = async (output, context) => {
|
|
|
2598
2407
|
$metadata: deserializeMetadata(output),
|
|
2599
2408
|
...contents,
|
|
2600
2409
|
};
|
|
2601
|
-
return
|
|
2410
|
+
return response;
|
|
2602
2411
|
};
|
|
2603
2412
|
exports.de_SignCommand = de_SignCommand;
|
|
2604
2413
|
const de_SignCommandError = async (output, context) => {
|
|
@@ -2634,10 +2443,9 @@ const de_SignCommandError = async (output, context) => {
|
|
|
2634
2443
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2635
2444
|
default:
|
|
2636
2445
|
const parsedBody = parsedOutput.body;
|
|
2637
|
-
|
|
2446
|
+
return throwDefaultError({
|
|
2638
2447
|
output,
|
|
2639
2448
|
parsedBody,
|
|
2640
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
2641
2449
|
errorCode,
|
|
2642
2450
|
});
|
|
2643
2451
|
}
|
|
@@ -2650,7 +2458,7 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
2650
2458
|
const response = {
|
|
2651
2459
|
$metadata: deserializeMetadata(output),
|
|
2652
2460
|
};
|
|
2653
|
-
return
|
|
2461
|
+
return response;
|
|
2654
2462
|
};
|
|
2655
2463
|
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
2656
2464
|
const de_TagResourceCommandError = async (output, context) => {
|
|
@@ -2680,10 +2488,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
2680
2488
|
throw await de_TagExceptionRes(parsedOutput, context);
|
|
2681
2489
|
default:
|
|
2682
2490
|
const parsedBody = parsedOutput.body;
|
|
2683
|
-
|
|
2491
|
+
return throwDefaultError({
|
|
2684
2492
|
output,
|
|
2685
2493
|
parsedBody,
|
|
2686
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
2687
2494
|
errorCode,
|
|
2688
2495
|
});
|
|
2689
2496
|
}
|
|
@@ -2696,7 +2503,7 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
2696
2503
|
const response = {
|
|
2697
2504
|
$metadata: deserializeMetadata(output),
|
|
2698
2505
|
};
|
|
2699
|
-
return
|
|
2506
|
+
return response;
|
|
2700
2507
|
};
|
|
2701
2508
|
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
2702
2509
|
const de_UntagResourceCommandError = async (output, context) => {
|
|
@@ -2723,10 +2530,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
2723
2530
|
throw await de_TagExceptionRes(parsedOutput, context);
|
|
2724
2531
|
default:
|
|
2725
2532
|
const parsedBody = parsedOutput.body;
|
|
2726
|
-
|
|
2533
|
+
return throwDefaultError({
|
|
2727
2534
|
output,
|
|
2728
2535
|
parsedBody,
|
|
2729
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
2730
2536
|
errorCode,
|
|
2731
2537
|
});
|
|
2732
2538
|
}
|
|
@@ -2739,7 +2545,7 @@ const de_UpdateAliasCommand = async (output, context) => {
|
|
|
2739
2545
|
const response = {
|
|
2740
2546
|
$metadata: deserializeMetadata(output),
|
|
2741
2547
|
};
|
|
2742
|
-
return
|
|
2548
|
+
return response;
|
|
2743
2549
|
};
|
|
2744
2550
|
exports.de_UpdateAliasCommand = de_UpdateAliasCommand;
|
|
2745
2551
|
const de_UpdateAliasCommandError = async (output, context) => {
|
|
@@ -2766,10 +2572,9 @@ const de_UpdateAliasCommandError = async (output, context) => {
|
|
|
2766
2572
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2767
2573
|
default:
|
|
2768
2574
|
const parsedBody = parsedOutput.body;
|
|
2769
|
-
|
|
2575
|
+
return throwDefaultError({
|
|
2770
2576
|
output,
|
|
2771
2577
|
parsedBody,
|
|
2772
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
2773
2578
|
errorCode,
|
|
2774
2579
|
});
|
|
2775
2580
|
}
|
|
@@ -2780,12 +2585,12 @@ const de_UpdateCustomKeyStoreCommand = async (output, context) => {
|
|
|
2780
2585
|
}
|
|
2781
2586
|
const data = await parseBody(output.body, context);
|
|
2782
2587
|
let contents = {};
|
|
2783
|
-
contents =
|
|
2588
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2784
2589
|
const response = {
|
|
2785
2590
|
$metadata: deserializeMetadata(output),
|
|
2786
2591
|
...contents,
|
|
2787
2592
|
};
|
|
2788
|
-
return
|
|
2593
|
+
return response;
|
|
2789
2594
|
};
|
|
2790
2595
|
exports.de_UpdateCustomKeyStoreCommand = de_UpdateCustomKeyStoreCommand;
|
|
2791
2596
|
const de_UpdateCustomKeyStoreCommandError = async (output, context) => {
|
|
@@ -2848,10 +2653,9 @@ const de_UpdateCustomKeyStoreCommandError = async (output, context) => {
|
|
|
2848
2653
|
throw await de_XksProxyVpcEndpointServiceNotFoundExceptionRes(parsedOutput, context);
|
|
2849
2654
|
default:
|
|
2850
2655
|
const parsedBody = parsedOutput.body;
|
|
2851
|
-
|
|
2656
|
+
return throwDefaultError({
|
|
2852
2657
|
output,
|
|
2853
2658
|
parsedBody,
|
|
2854
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
2855
2659
|
errorCode,
|
|
2856
2660
|
});
|
|
2857
2661
|
}
|
|
@@ -2864,7 +2668,7 @@ const de_UpdateKeyDescriptionCommand = async (output, context) => {
|
|
|
2864
2668
|
const response = {
|
|
2865
2669
|
$metadata: deserializeMetadata(output),
|
|
2866
2670
|
};
|
|
2867
|
-
return
|
|
2671
|
+
return response;
|
|
2868
2672
|
};
|
|
2869
2673
|
exports.de_UpdateKeyDescriptionCommand = de_UpdateKeyDescriptionCommand;
|
|
2870
2674
|
const de_UpdateKeyDescriptionCommandError = async (output, context) => {
|
|
@@ -2891,10 +2695,9 @@ const de_UpdateKeyDescriptionCommandError = async (output, context) => {
|
|
|
2891
2695
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2892
2696
|
default:
|
|
2893
2697
|
const parsedBody = parsedOutput.body;
|
|
2894
|
-
|
|
2698
|
+
return throwDefaultError({
|
|
2895
2699
|
output,
|
|
2896
2700
|
parsedBody,
|
|
2897
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
2898
2701
|
errorCode,
|
|
2899
2702
|
});
|
|
2900
2703
|
}
|
|
@@ -2907,7 +2710,7 @@ const de_UpdatePrimaryRegionCommand = async (output, context) => {
|
|
|
2907
2710
|
const response = {
|
|
2908
2711
|
$metadata: deserializeMetadata(output),
|
|
2909
2712
|
};
|
|
2910
|
-
return
|
|
2713
|
+
return response;
|
|
2911
2714
|
};
|
|
2912
2715
|
exports.de_UpdatePrimaryRegionCommand = de_UpdatePrimaryRegionCommand;
|
|
2913
2716
|
const de_UpdatePrimaryRegionCommandError = async (output, context) => {
|
|
@@ -2937,10 +2740,9 @@ const de_UpdatePrimaryRegionCommandError = async (output, context) => {
|
|
|
2937
2740
|
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2938
2741
|
default:
|
|
2939
2742
|
const parsedBody = parsedOutput.body;
|
|
2940
|
-
|
|
2743
|
+
return throwDefaultError({
|
|
2941
2744
|
output,
|
|
2942
2745
|
parsedBody,
|
|
2943
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
2944
2746
|
errorCode,
|
|
2945
2747
|
});
|
|
2946
2748
|
}
|
|
@@ -2951,12 +2753,12 @@ const de_VerifyCommand = async (output, context) => {
|
|
|
2951
2753
|
}
|
|
2952
2754
|
const data = await parseBody(output.body, context);
|
|
2953
2755
|
let contents = {};
|
|
2954
|
-
contents =
|
|
2756
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2955
2757
|
const response = {
|
|
2956
2758
|
$metadata: deserializeMetadata(output),
|
|
2957
2759
|
...contents,
|
|
2958
2760
|
};
|
|
2959
|
-
return
|
|
2761
|
+
return response;
|
|
2960
2762
|
};
|
|
2961
2763
|
exports.de_VerifyCommand = de_VerifyCommand;
|
|
2962
2764
|
const de_VerifyCommandError = async (output, context) => {
|
|
@@ -2995,10 +2797,9 @@ const de_VerifyCommandError = async (output, context) => {
|
|
|
2995
2797
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2996
2798
|
default:
|
|
2997
2799
|
const parsedBody = parsedOutput.body;
|
|
2998
|
-
|
|
2800
|
+
return throwDefaultError({
|
|
2999
2801
|
output,
|
|
3000
2802
|
parsedBody,
|
|
3001
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
3002
2803
|
errorCode,
|
|
3003
2804
|
});
|
|
3004
2805
|
}
|
|
@@ -3009,12 +2810,12 @@ const de_VerifyMacCommand = async (output, context) => {
|
|
|
3009
2810
|
}
|
|
3010
2811
|
const data = await parseBody(output.body, context);
|
|
3011
2812
|
let contents = {};
|
|
3012
|
-
contents =
|
|
2813
|
+
contents = (0, smithy_client_1._json)(data);
|
|
3013
2814
|
const response = {
|
|
3014
2815
|
$metadata: deserializeMetadata(output),
|
|
3015
2816
|
...contents,
|
|
3016
2817
|
};
|
|
3017
|
-
return
|
|
2818
|
+
return response;
|
|
3018
2819
|
};
|
|
3019
2820
|
exports.de_VerifyMacCommand = de_VerifyMacCommand;
|
|
3020
2821
|
const de_VerifyMacCommandError = async (output, context) => {
|
|
@@ -3050,17 +2851,16 @@ const de_VerifyMacCommandError = async (output, context) => {
|
|
|
3050
2851
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3051
2852
|
default:
|
|
3052
2853
|
const parsedBody = parsedOutput.body;
|
|
3053
|
-
|
|
2854
|
+
return throwDefaultError({
|
|
3054
2855
|
output,
|
|
3055
2856
|
parsedBody,
|
|
3056
|
-
exceptionCtor: KMSServiceException_1.KMSServiceException,
|
|
3057
2857
|
errorCode,
|
|
3058
2858
|
});
|
|
3059
2859
|
}
|
|
3060
2860
|
};
|
|
3061
2861
|
const de_AlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
3062
2862
|
const body = parsedOutput.body;
|
|
3063
|
-
const deserialized =
|
|
2863
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3064
2864
|
const exception = new models_0_1.AlreadyExistsException({
|
|
3065
2865
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3066
2866
|
...deserialized,
|
|
@@ -3069,7 +2869,7 @@ const de_AlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
|
3069
2869
|
};
|
|
3070
2870
|
const de_CloudHsmClusterInUseExceptionRes = async (parsedOutput, context) => {
|
|
3071
2871
|
const body = parsedOutput.body;
|
|
3072
|
-
const deserialized =
|
|
2872
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3073
2873
|
const exception = new models_0_1.CloudHsmClusterInUseException({
|
|
3074
2874
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3075
2875
|
...deserialized,
|
|
@@ -3078,7 +2878,7 @@ const de_CloudHsmClusterInUseExceptionRes = async (parsedOutput, context) => {
|
|
|
3078
2878
|
};
|
|
3079
2879
|
const de_CloudHsmClusterInvalidConfigurationExceptionRes = async (parsedOutput, context) => {
|
|
3080
2880
|
const body = parsedOutput.body;
|
|
3081
|
-
const deserialized =
|
|
2881
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3082
2882
|
const exception = new models_0_1.CloudHsmClusterInvalidConfigurationException({
|
|
3083
2883
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3084
2884
|
...deserialized,
|
|
@@ -3087,7 +2887,7 @@ const de_CloudHsmClusterInvalidConfigurationExceptionRes = async (parsedOutput,
|
|
|
3087
2887
|
};
|
|
3088
2888
|
const de_CloudHsmClusterNotActiveExceptionRes = async (parsedOutput, context) => {
|
|
3089
2889
|
const body = parsedOutput.body;
|
|
3090
|
-
const deserialized =
|
|
2890
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3091
2891
|
const exception = new models_0_1.CloudHsmClusterNotActiveException({
|
|
3092
2892
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3093
2893
|
...deserialized,
|
|
@@ -3096,7 +2896,7 @@ const de_CloudHsmClusterNotActiveExceptionRes = async (parsedOutput, context) =>
|
|
|
3096
2896
|
};
|
|
3097
2897
|
const de_CloudHsmClusterNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
3098
2898
|
const body = parsedOutput.body;
|
|
3099
|
-
const deserialized =
|
|
2899
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3100
2900
|
const exception = new models_0_1.CloudHsmClusterNotFoundException({
|
|
3101
2901
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3102
2902
|
...deserialized,
|
|
@@ -3105,7 +2905,7 @@ const de_CloudHsmClusterNotFoundExceptionRes = async (parsedOutput, context) =>
|
|
|
3105
2905
|
};
|
|
3106
2906
|
const de_CloudHsmClusterNotRelatedExceptionRes = async (parsedOutput, context) => {
|
|
3107
2907
|
const body = parsedOutput.body;
|
|
3108
|
-
const deserialized =
|
|
2908
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3109
2909
|
const exception = new models_0_1.CloudHsmClusterNotRelatedException({
|
|
3110
2910
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3111
2911
|
...deserialized,
|
|
@@ -3114,7 +2914,7 @@ const de_CloudHsmClusterNotRelatedExceptionRes = async (parsedOutput, context) =
|
|
|
3114
2914
|
};
|
|
3115
2915
|
const de_CustomKeyStoreHasCMKsExceptionRes = async (parsedOutput, context) => {
|
|
3116
2916
|
const body = parsedOutput.body;
|
|
3117
|
-
const deserialized =
|
|
2917
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3118
2918
|
const exception = new models_0_1.CustomKeyStoreHasCMKsException({
|
|
3119
2919
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3120
2920
|
...deserialized,
|
|
@@ -3123,7 +2923,7 @@ const de_CustomKeyStoreHasCMKsExceptionRes = async (parsedOutput, context) => {
|
|
|
3123
2923
|
};
|
|
3124
2924
|
const de_CustomKeyStoreInvalidStateExceptionRes = async (parsedOutput, context) => {
|
|
3125
2925
|
const body = parsedOutput.body;
|
|
3126
|
-
const deserialized =
|
|
2926
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3127
2927
|
const exception = new models_0_1.CustomKeyStoreInvalidStateException({
|
|
3128
2928
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3129
2929
|
...deserialized,
|
|
@@ -3132,7 +2932,7 @@ const de_CustomKeyStoreInvalidStateExceptionRes = async (parsedOutput, context)
|
|
|
3132
2932
|
};
|
|
3133
2933
|
const de_CustomKeyStoreNameInUseExceptionRes = async (parsedOutput, context) => {
|
|
3134
2934
|
const body = parsedOutput.body;
|
|
3135
|
-
const deserialized =
|
|
2935
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3136
2936
|
const exception = new models_0_1.CustomKeyStoreNameInUseException({
|
|
3137
2937
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3138
2938
|
...deserialized,
|
|
@@ -3141,7 +2941,7 @@ const de_CustomKeyStoreNameInUseExceptionRes = async (parsedOutput, context) =>
|
|
|
3141
2941
|
};
|
|
3142
2942
|
const de_CustomKeyStoreNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
3143
2943
|
const body = parsedOutput.body;
|
|
3144
|
-
const deserialized =
|
|
2944
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3145
2945
|
const exception = new models_0_1.CustomKeyStoreNotFoundException({
|
|
3146
2946
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3147
2947
|
...deserialized,
|
|
@@ -3150,7 +2950,7 @@ const de_CustomKeyStoreNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
3150
2950
|
};
|
|
3151
2951
|
const de_DependencyTimeoutExceptionRes = async (parsedOutput, context) => {
|
|
3152
2952
|
const body = parsedOutput.body;
|
|
3153
|
-
const deserialized =
|
|
2953
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3154
2954
|
const exception = new models_0_1.DependencyTimeoutException({
|
|
3155
2955
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3156
2956
|
...deserialized,
|
|
@@ -3159,7 +2959,7 @@ const de_DependencyTimeoutExceptionRes = async (parsedOutput, context) => {
|
|
|
3159
2959
|
};
|
|
3160
2960
|
const de_DisabledExceptionRes = async (parsedOutput, context) => {
|
|
3161
2961
|
const body = parsedOutput.body;
|
|
3162
|
-
const deserialized =
|
|
2962
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3163
2963
|
const exception = new models_0_1.DisabledException({
|
|
3164
2964
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3165
2965
|
...deserialized,
|
|
@@ -3168,7 +2968,7 @@ const de_DisabledExceptionRes = async (parsedOutput, context) => {
|
|
|
3168
2968
|
};
|
|
3169
2969
|
const de_ExpiredImportTokenExceptionRes = async (parsedOutput, context) => {
|
|
3170
2970
|
const body = parsedOutput.body;
|
|
3171
|
-
const deserialized =
|
|
2971
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3172
2972
|
const exception = new models_0_1.ExpiredImportTokenException({
|
|
3173
2973
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3174
2974
|
...deserialized,
|
|
@@ -3177,7 +2977,7 @@ const de_ExpiredImportTokenExceptionRes = async (parsedOutput, context) => {
|
|
|
3177
2977
|
};
|
|
3178
2978
|
const de_IncorrectKeyExceptionRes = async (parsedOutput, context) => {
|
|
3179
2979
|
const body = parsedOutput.body;
|
|
3180
|
-
const deserialized =
|
|
2980
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3181
2981
|
const exception = new models_0_1.IncorrectKeyException({
|
|
3182
2982
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3183
2983
|
...deserialized,
|
|
@@ -3186,7 +2986,7 @@ const de_IncorrectKeyExceptionRes = async (parsedOutput, context) => {
|
|
|
3186
2986
|
};
|
|
3187
2987
|
const de_IncorrectKeyMaterialExceptionRes = async (parsedOutput, context) => {
|
|
3188
2988
|
const body = parsedOutput.body;
|
|
3189
|
-
const deserialized =
|
|
2989
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3190
2990
|
const exception = new models_0_1.IncorrectKeyMaterialException({
|
|
3191
2991
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3192
2992
|
...deserialized,
|
|
@@ -3195,7 +2995,7 @@ const de_IncorrectKeyMaterialExceptionRes = async (parsedOutput, context) => {
|
|
|
3195
2995
|
};
|
|
3196
2996
|
const de_IncorrectTrustAnchorExceptionRes = async (parsedOutput, context) => {
|
|
3197
2997
|
const body = parsedOutput.body;
|
|
3198
|
-
const deserialized =
|
|
2998
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3199
2999
|
const exception = new models_0_1.IncorrectTrustAnchorException({
|
|
3200
3000
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3201
3001
|
...deserialized,
|
|
@@ -3204,7 +3004,7 @@ const de_IncorrectTrustAnchorExceptionRes = async (parsedOutput, context) => {
|
|
|
3204
3004
|
};
|
|
3205
3005
|
const de_InvalidAliasNameExceptionRes = async (parsedOutput, context) => {
|
|
3206
3006
|
const body = parsedOutput.body;
|
|
3207
|
-
const deserialized =
|
|
3007
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3208
3008
|
const exception = new models_0_1.InvalidAliasNameException({
|
|
3209
3009
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3210
3010
|
...deserialized,
|
|
@@ -3213,7 +3013,7 @@ const de_InvalidAliasNameExceptionRes = async (parsedOutput, context) => {
|
|
|
3213
3013
|
};
|
|
3214
3014
|
const de_InvalidArnExceptionRes = async (parsedOutput, context) => {
|
|
3215
3015
|
const body = parsedOutput.body;
|
|
3216
|
-
const deserialized =
|
|
3016
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3217
3017
|
const exception = new models_0_1.InvalidArnException({
|
|
3218
3018
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3219
3019
|
...deserialized,
|
|
@@ -3222,7 +3022,7 @@ const de_InvalidArnExceptionRes = async (parsedOutput, context) => {
|
|
|
3222
3022
|
};
|
|
3223
3023
|
const de_InvalidCiphertextExceptionRes = async (parsedOutput, context) => {
|
|
3224
3024
|
const body = parsedOutput.body;
|
|
3225
|
-
const deserialized =
|
|
3025
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3226
3026
|
const exception = new models_0_1.InvalidCiphertextException({
|
|
3227
3027
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3228
3028
|
...deserialized,
|
|
@@ -3231,7 +3031,7 @@ const de_InvalidCiphertextExceptionRes = async (parsedOutput, context) => {
|
|
|
3231
3031
|
};
|
|
3232
3032
|
const de_InvalidGrantIdExceptionRes = async (parsedOutput, context) => {
|
|
3233
3033
|
const body = parsedOutput.body;
|
|
3234
|
-
const deserialized =
|
|
3034
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3235
3035
|
const exception = new models_0_1.InvalidGrantIdException({
|
|
3236
3036
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3237
3037
|
...deserialized,
|
|
@@ -3240,7 +3040,7 @@ const de_InvalidGrantIdExceptionRes = async (parsedOutput, context) => {
|
|
|
3240
3040
|
};
|
|
3241
3041
|
const de_InvalidGrantTokenExceptionRes = async (parsedOutput, context) => {
|
|
3242
3042
|
const body = parsedOutput.body;
|
|
3243
|
-
const deserialized =
|
|
3043
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3244
3044
|
const exception = new models_0_1.InvalidGrantTokenException({
|
|
3245
3045
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3246
3046
|
...deserialized,
|
|
@@ -3249,7 +3049,7 @@ const de_InvalidGrantTokenExceptionRes = async (parsedOutput, context) => {
|
|
|
3249
3049
|
};
|
|
3250
3050
|
const de_InvalidImportTokenExceptionRes = async (parsedOutput, context) => {
|
|
3251
3051
|
const body = parsedOutput.body;
|
|
3252
|
-
const deserialized =
|
|
3052
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3253
3053
|
const exception = new models_0_1.InvalidImportTokenException({
|
|
3254
3054
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3255
3055
|
...deserialized,
|
|
@@ -3258,7 +3058,7 @@ const de_InvalidImportTokenExceptionRes = async (parsedOutput, context) => {
|
|
|
3258
3058
|
};
|
|
3259
3059
|
const de_InvalidKeyUsageExceptionRes = async (parsedOutput, context) => {
|
|
3260
3060
|
const body = parsedOutput.body;
|
|
3261
|
-
const deserialized =
|
|
3061
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3262
3062
|
const exception = new models_0_1.InvalidKeyUsageException({
|
|
3263
3063
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3264
3064
|
...deserialized,
|
|
@@ -3267,7 +3067,7 @@ const de_InvalidKeyUsageExceptionRes = async (parsedOutput, context) => {
|
|
|
3267
3067
|
};
|
|
3268
3068
|
const de_InvalidMarkerExceptionRes = async (parsedOutput, context) => {
|
|
3269
3069
|
const body = parsedOutput.body;
|
|
3270
|
-
const deserialized =
|
|
3070
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3271
3071
|
const exception = new models_0_1.InvalidMarkerException({
|
|
3272
3072
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3273
3073
|
...deserialized,
|
|
@@ -3276,7 +3076,7 @@ const de_InvalidMarkerExceptionRes = async (parsedOutput, context) => {
|
|
|
3276
3076
|
};
|
|
3277
3077
|
const de_KeyUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
3278
3078
|
const body = parsedOutput.body;
|
|
3279
|
-
const deserialized =
|
|
3079
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3280
3080
|
const exception = new models_0_1.KeyUnavailableException({
|
|
3281
3081
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3282
3082
|
...deserialized,
|
|
@@ -3285,7 +3085,7 @@ const de_KeyUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
|
3285
3085
|
};
|
|
3286
3086
|
const de_KMSInternalExceptionRes = async (parsedOutput, context) => {
|
|
3287
3087
|
const body = parsedOutput.body;
|
|
3288
|
-
const deserialized =
|
|
3088
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3289
3089
|
const exception = new models_0_1.KMSInternalException({
|
|
3290
3090
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3291
3091
|
...deserialized,
|
|
@@ -3294,7 +3094,7 @@ const de_KMSInternalExceptionRes = async (parsedOutput, context) => {
|
|
|
3294
3094
|
};
|
|
3295
3095
|
const de_KMSInvalidMacExceptionRes = async (parsedOutput, context) => {
|
|
3296
3096
|
const body = parsedOutput.body;
|
|
3297
|
-
const deserialized =
|
|
3097
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3298
3098
|
const exception = new models_0_1.KMSInvalidMacException({
|
|
3299
3099
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3300
3100
|
...deserialized,
|
|
@@ -3303,7 +3103,7 @@ const de_KMSInvalidMacExceptionRes = async (parsedOutput, context) => {
|
|
|
3303
3103
|
};
|
|
3304
3104
|
const de_KMSInvalidSignatureExceptionRes = async (parsedOutput, context) => {
|
|
3305
3105
|
const body = parsedOutput.body;
|
|
3306
|
-
const deserialized =
|
|
3106
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3307
3107
|
const exception = new models_0_1.KMSInvalidSignatureException({
|
|
3308
3108
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3309
3109
|
...deserialized,
|
|
@@ -3312,7 +3112,7 @@ const de_KMSInvalidSignatureExceptionRes = async (parsedOutput, context) => {
|
|
|
3312
3112
|
};
|
|
3313
3113
|
const de_KMSInvalidStateExceptionRes = async (parsedOutput, context) => {
|
|
3314
3114
|
const body = parsedOutput.body;
|
|
3315
|
-
const deserialized =
|
|
3115
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3316
3116
|
const exception = new models_0_1.KMSInvalidStateException({
|
|
3317
3117
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3318
3118
|
...deserialized,
|
|
@@ -3321,7 +3121,7 @@ const de_KMSInvalidStateExceptionRes = async (parsedOutput, context) => {
|
|
|
3321
3121
|
};
|
|
3322
3122
|
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
3323
3123
|
const body = parsedOutput.body;
|
|
3324
|
-
const deserialized =
|
|
3124
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3325
3125
|
const exception = new models_0_1.LimitExceededException({
|
|
3326
3126
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3327
3127
|
...deserialized,
|
|
@@ -3330,7 +3130,7 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
3330
3130
|
};
|
|
3331
3131
|
const de_MalformedPolicyDocumentExceptionRes = async (parsedOutput, context) => {
|
|
3332
3132
|
const body = parsedOutput.body;
|
|
3333
|
-
const deserialized =
|
|
3133
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3334
3134
|
const exception = new models_0_1.MalformedPolicyDocumentException({
|
|
3335
3135
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3336
3136
|
...deserialized,
|
|
@@ -3339,7 +3139,7 @@ const de_MalformedPolicyDocumentExceptionRes = async (parsedOutput, context) =>
|
|
|
3339
3139
|
};
|
|
3340
3140
|
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
3341
3141
|
const body = parsedOutput.body;
|
|
3342
|
-
const deserialized =
|
|
3142
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3343
3143
|
const exception = new models_0_1.NotFoundException({
|
|
3344
3144
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3345
3145
|
...deserialized,
|
|
@@ -3348,7 +3148,7 @@ const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
3348
3148
|
};
|
|
3349
3149
|
const de_TagExceptionRes = async (parsedOutput, context) => {
|
|
3350
3150
|
const body = parsedOutput.body;
|
|
3351
|
-
const deserialized =
|
|
3151
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3352
3152
|
const exception = new models_0_1.TagException({
|
|
3353
3153
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3354
3154
|
...deserialized,
|
|
@@ -3357,7 +3157,7 @@ const de_TagExceptionRes = async (parsedOutput, context) => {
|
|
|
3357
3157
|
};
|
|
3358
3158
|
const de_UnsupportedOperationExceptionRes = async (parsedOutput, context) => {
|
|
3359
3159
|
const body = parsedOutput.body;
|
|
3360
|
-
const deserialized =
|
|
3160
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3361
3161
|
const exception = new models_0_1.UnsupportedOperationException({
|
|
3362
3162
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3363
3163
|
...deserialized,
|
|
@@ -3366,7 +3166,7 @@ const de_UnsupportedOperationExceptionRes = async (parsedOutput, context) => {
|
|
|
3366
3166
|
};
|
|
3367
3167
|
const de_XksKeyAlreadyInUseExceptionRes = async (parsedOutput, context) => {
|
|
3368
3168
|
const body = parsedOutput.body;
|
|
3369
|
-
const deserialized =
|
|
3169
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3370
3170
|
const exception = new models_0_1.XksKeyAlreadyInUseException({
|
|
3371
3171
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3372
3172
|
...deserialized,
|
|
@@ -3375,7 +3175,7 @@ const de_XksKeyAlreadyInUseExceptionRes = async (parsedOutput, context) => {
|
|
|
3375
3175
|
};
|
|
3376
3176
|
const de_XksKeyInvalidConfigurationExceptionRes = async (parsedOutput, context) => {
|
|
3377
3177
|
const body = parsedOutput.body;
|
|
3378
|
-
const deserialized =
|
|
3178
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3379
3179
|
const exception = new models_0_1.XksKeyInvalidConfigurationException({
|
|
3380
3180
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3381
3181
|
...deserialized,
|
|
@@ -3384,7 +3184,7 @@ const de_XksKeyInvalidConfigurationExceptionRes = async (parsedOutput, context)
|
|
|
3384
3184
|
};
|
|
3385
3185
|
const de_XksKeyNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
3386
3186
|
const body = parsedOutput.body;
|
|
3387
|
-
const deserialized =
|
|
3187
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3388
3188
|
const exception = new models_0_1.XksKeyNotFoundException({
|
|
3389
3189
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3390
3190
|
...deserialized,
|
|
@@ -3393,7 +3193,7 @@ const de_XksKeyNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
3393
3193
|
};
|
|
3394
3194
|
const de_XksProxyIncorrectAuthenticationCredentialExceptionRes = async (parsedOutput, context) => {
|
|
3395
3195
|
const body = parsedOutput.body;
|
|
3396
|
-
const deserialized =
|
|
3196
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3397
3197
|
const exception = new models_0_1.XksProxyIncorrectAuthenticationCredentialException({
|
|
3398
3198
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3399
3199
|
...deserialized,
|
|
@@ -3402,7 +3202,7 @@ const de_XksProxyIncorrectAuthenticationCredentialExceptionRes = async (parsedOu
|
|
|
3402
3202
|
};
|
|
3403
3203
|
const de_XksProxyInvalidConfigurationExceptionRes = async (parsedOutput, context) => {
|
|
3404
3204
|
const body = parsedOutput.body;
|
|
3405
|
-
const deserialized =
|
|
3205
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3406
3206
|
const exception = new models_0_1.XksProxyInvalidConfigurationException({
|
|
3407
3207
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3408
3208
|
...deserialized,
|
|
@@ -3411,7 +3211,7 @@ const de_XksProxyInvalidConfigurationExceptionRes = async (parsedOutput, context
|
|
|
3411
3211
|
};
|
|
3412
3212
|
const de_XksProxyInvalidResponseExceptionRes = async (parsedOutput, context) => {
|
|
3413
3213
|
const body = parsedOutput.body;
|
|
3414
|
-
const deserialized =
|
|
3214
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3415
3215
|
const exception = new models_0_1.XksProxyInvalidResponseException({
|
|
3416
3216
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3417
3217
|
...deserialized,
|
|
@@ -3420,7 +3220,7 @@ const de_XksProxyInvalidResponseExceptionRes = async (parsedOutput, context) =>
|
|
|
3420
3220
|
};
|
|
3421
3221
|
const de_XksProxyUriEndpointInUseExceptionRes = async (parsedOutput, context) => {
|
|
3422
3222
|
const body = parsedOutput.body;
|
|
3423
|
-
const deserialized =
|
|
3223
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3424
3224
|
const exception = new models_0_1.XksProxyUriEndpointInUseException({
|
|
3425
3225
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3426
3226
|
...deserialized,
|
|
@@ -3429,7 +3229,7 @@ const de_XksProxyUriEndpointInUseExceptionRes = async (parsedOutput, context) =>
|
|
|
3429
3229
|
};
|
|
3430
3230
|
const de_XksProxyUriInUseExceptionRes = async (parsedOutput, context) => {
|
|
3431
3231
|
const body = parsedOutput.body;
|
|
3432
|
-
const deserialized =
|
|
3232
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3433
3233
|
const exception = new models_0_1.XksProxyUriInUseException({
|
|
3434
3234
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3435
3235
|
...deserialized,
|
|
@@ -3438,7 +3238,7 @@ const de_XksProxyUriInUseExceptionRes = async (parsedOutput, context) => {
|
|
|
3438
3238
|
};
|
|
3439
3239
|
const de_XksProxyUriUnreachableExceptionRes = async (parsedOutput, context) => {
|
|
3440
3240
|
const body = parsedOutput.body;
|
|
3441
|
-
const deserialized =
|
|
3241
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3442
3242
|
const exception = new models_0_1.XksProxyUriUnreachableException({
|
|
3443
3243
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3444
3244
|
...deserialized,
|
|
@@ -3447,7 +3247,7 @@ const de_XksProxyUriUnreachableExceptionRes = async (parsedOutput, context) => {
|
|
|
3447
3247
|
};
|
|
3448
3248
|
const de_XksProxyVpcEndpointServiceInUseExceptionRes = async (parsedOutput, context) => {
|
|
3449
3249
|
const body = parsedOutput.body;
|
|
3450
|
-
const deserialized =
|
|
3250
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3451
3251
|
const exception = new models_0_1.XksProxyVpcEndpointServiceInUseException({
|
|
3452
3252
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3453
3253
|
...deserialized,
|
|
@@ -3456,7 +3256,7 @@ const de_XksProxyVpcEndpointServiceInUseExceptionRes = async (parsedOutput, cont
|
|
|
3456
3256
|
};
|
|
3457
3257
|
const de_XksProxyVpcEndpointServiceInvalidConfigurationExceptionRes = async (parsedOutput, context) => {
|
|
3458
3258
|
const body = parsedOutput.body;
|
|
3459
|
-
const deserialized =
|
|
3259
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3460
3260
|
const exception = new models_0_1.XksProxyVpcEndpointServiceInvalidConfigurationException({
|
|
3461
3261
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3462
3262
|
...deserialized,
|
|
@@ -3465,1186 +3265,311 @@ const de_XksProxyVpcEndpointServiceInvalidConfigurationExceptionRes = async (par
|
|
|
3465
3265
|
};
|
|
3466
3266
|
const de_XksProxyVpcEndpointServiceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
3467
3267
|
const body = parsedOutput.body;
|
|
3468
|
-
const deserialized =
|
|
3268
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
3469
3269
|
const exception = new models_0_1.XksProxyVpcEndpointServiceNotFoundException({
|
|
3470
3270
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3471
3271
|
...deserialized,
|
|
3472
3272
|
});
|
|
3473
3273
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3474
3274
|
};
|
|
3475
|
-
const se_CancelKeyDeletionRequest = (input, context) => {
|
|
3476
|
-
return {
|
|
3477
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3478
|
-
};
|
|
3479
|
-
};
|
|
3480
|
-
const se_ConnectCustomKeyStoreRequest = (input, context) => {
|
|
3481
|
-
return {
|
|
3482
|
-
...(input.CustomKeyStoreId != null && { CustomKeyStoreId: input.CustomKeyStoreId }),
|
|
3483
|
-
};
|
|
3484
|
-
};
|
|
3485
|
-
const se_CreateAliasRequest = (input, context) => {
|
|
3486
|
-
return {
|
|
3487
|
-
...(input.AliasName != null && { AliasName: input.AliasName }),
|
|
3488
|
-
...(input.TargetKeyId != null && { TargetKeyId: input.TargetKeyId }),
|
|
3489
|
-
};
|
|
3490
|
-
};
|
|
3491
|
-
const se_CreateCustomKeyStoreRequest = (input, context) => {
|
|
3492
|
-
return {
|
|
3493
|
-
...(input.CloudHsmClusterId != null && { CloudHsmClusterId: input.CloudHsmClusterId }),
|
|
3494
|
-
...(input.CustomKeyStoreName != null && { CustomKeyStoreName: input.CustomKeyStoreName }),
|
|
3495
|
-
...(input.CustomKeyStoreType != null && { CustomKeyStoreType: input.CustomKeyStoreType }),
|
|
3496
|
-
...(input.KeyStorePassword != null && { KeyStorePassword: input.KeyStorePassword }),
|
|
3497
|
-
...(input.TrustAnchorCertificate != null && { TrustAnchorCertificate: input.TrustAnchorCertificate }),
|
|
3498
|
-
...(input.XksProxyAuthenticationCredential != null && {
|
|
3499
|
-
XksProxyAuthenticationCredential: se_XksProxyAuthenticationCredentialType(input.XksProxyAuthenticationCredential, context),
|
|
3500
|
-
}),
|
|
3501
|
-
...(input.XksProxyConnectivity != null && { XksProxyConnectivity: input.XksProxyConnectivity }),
|
|
3502
|
-
...(input.XksProxyUriEndpoint != null && { XksProxyUriEndpoint: input.XksProxyUriEndpoint }),
|
|
3503
|
-
...(input.XksProxyUriPath != null && { XksProxyUriPath: input.XksProxyUriPath }),
|
|
3504
|
-
...(input.XksProxyVpcEndpointServiceName != null && {
|
|
3505
|
-
XksProxyVpcEndpointServiceName: input.XksProxyVpcEndpointServiceName,
|
|
3506
|
-
}),
|
|
3507
|
-
};
|
|
3508
|
-
};
|
|
3509
|
-
const se_CreateGrantRequest = (input, context) => {
|
|
3510
|
-
return {
|
|
3511
|
-
...(input.Constraints != null && { Constraints: se_GrantConstraints(input.Constraints, context) }),
|
|
3512
|
-
...(input.GrantTokens != null && { GrantTokens: se_GrantTokenList(input.GrantTokens, context) }),
|
|
3513
|
-
...(input.GranteePrincipal != null && { GranteePrincipal: input.GranteePrincipal }),
|
|
3514
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3515
|
-
...(input.Name != null && { Name: input.Name }),
|
|
3516
|
-
...(input.Operations != null && { Operations: se_GrantOperationList(input.Operations, context) }),
|
|
3517
|
-
...(input.RetiringPrincipal != null && { RetiringPrincipal: input.RetiringPrincipal }),
|
|
3518
|
-
};
|
|
3519
|
-
};
|
|
3520
|
-
const se_CreateKeyRequest = (input, context) => {
|
|
3521
|
-
return {
|
|
3522
|
-
...(input.BypassPolicyLockoutSafetyCheck != null && {
|
|
3523
|
-
BypassPolicyLockoutSafetyCheck: input.BypassPolicyLockoutSafetyCheck,
|
|
3524
|
-
}),
|
|
3525
|
-
...(input.CustomKeyStoreId != null && { CustomKeyStoreId: input.CustomKeyStoreId }),
|
|
3526
|
-
...(input.CustomerMasterKeySpec != null && { CustomerMasterKeySpec: input.CustomerMasterKeySpec }),
|
|
3527
|
-
...(input.Description != null && { Description: input.Description }),
|
|
3528
|
-
...(input.KeySpec != null && { KeySpec: input.KeySpec }),
|
|
3529
|
-
...(input.KeyUsage != null && { KeyUsage: input.KeyUsage }),
|
|
3530
|
-
...(input.MultiRegion != null && { MultiRegion: input.MultiRegion }),
|
|
3531
|
-
...(input.Origin != null && { Origin: input.Origin }),
|
|
3532
|
-
...(input.Policy != null && { Policy: input.Policy }),
|
|
3533
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
3534
|
-
...(input.XksKeyId != null && { XksKeyId: input.XksKeyId }),
|
|
3535
|
-
};
|
|
3536
|
-
};
|
|
3537
3275
|
const se_DecryptRequest = (input, context) => {
|
|
3538
|
-
return {
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3546
|
-
};
|
|
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
|
+
});
|
|
3547
3283
|
};
|
|
3548
|
-
const
|
|
3549
|
-
return {
|
|
3550
|
-
|
|
3551
|
-
|
|
3284
|
+
const se_EncryptRequest = (input, context) => {
|
|
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,
|
|
3291
|
+
});
|
|
3552
3292
|
};
|
|
3553
|
-
const
|
|
3554
|
-
return {
|
|
3555
|
-
|
|
3556
|
-
|
|
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,
|
|
3299
|
+
});
|
|
3557
3300
|
};
|
|
3558
|
-
const
|
|
3559
|
-
return {
|
|
3560
|
-
|
|
3561
|
-
|
|
3301
|
+
const se_ImportKeyMaterialRequest = (input, context) => {
|
|
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
|
+
});
|
|
3562
3309
|
};
|
|
3563
|
-
const
|
|
3564
|
-
return {
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
|
|
3310
|
+
const se_ReEncryptRequest = (input, context) => {
|
|
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: [],
|
|
3320
|
+
});
|
|
3570
3321
|
};
|
|
3571
|
-
const
|
|
3572
|
-
return {
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
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: [],
|
|
3329
|
+
});
|
|
3576
3330
|
};
|
|
3577
|
-
const
|
|
3578
|
-
return {
|
|
3579
|
-
|
|
3580
|
-
|
|
3331
|
+
const se_VerifyMacRequest = (input, context) => {
|
|
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
|
+
});
|
|
3581
3339
|
};
|
|
3582
|
-
const
|
|
3583
|
-
return {
|
|
3584
|
-
|
|
3585
|
-
|
|
3340
|
+
const se_VerifyRequest = (input, context) => {
|
|
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
|
+
});
|
|
3586
3349
|
};
|
|
3587
|
-
const
|
|
3588
|
-
|
|
3589
|
-
|
|
3590
|
-
|
|
3350
|
+
const de_AliasList = (output, context) => {
|
|
3351
|
+
const retVal = (output || [])
|
|
3352
|
+
.filter((e) => e != null)
|
|
3353
|
+
.map((entry) => {
|
|
3354
|
+
return de_AliasListEntry(entry, context);
|
|
3355
|
+
});
|
|
3356
|
+
return retVal;
|
|
3591
3357
|
};
|
|
3592
|
-
const
|
|
3593
|
-
return {
|
|
3594
|
-
|
|
3595
|
-
|
|
3358
|
+
const de_AliasListEntry = (output, context) => {
|
|
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
|
+
});
|
|
3596
3366
|
};
|
|
3597
|
-
const
|
|
3598
|
-
return {
|
|
3599
|
-
|
|
3600
|
-
};
|
|
3367
|
+
const de_CreateKeyResponse = (output, context) => {
|
|
3368
|
+
return (0, smithy_client_1.take)(output, {
|
|
3369
|
+
KeyMetadata: (_) => de_KeyMetadata(_, context),
|
|
3370
|
+
});
|
|
3601
3371
|
};
|
|
3602
|
-
const
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
}, {});
|
|
3372
|
+
const de_CustomKeyStoresList = (output, context) => {
|
|
3373
|
+
const retVal = (output || [])
|
|
3374
|
+
.filter((e) => e != null)
|
|
3375
|
+
.map((entry) => {
|
|
3376
|
+
return de_CustomKeyStoresListEntry(entry, context);
|
|
3377
|
+
});
|
|
3378
|
+
return retVal;
|
|
3610
3379
|
};
|
|
3611
|
-
const
|
|
3612
|
-
return {
|
|
3613
|
-
|
|
3614
|
-
|
|
3615
|
-
|
|
3616
|
-
|
|
3617
|
-
|
|
3618
|
-
|
|
3619
|
-
|
|
3620
|
-
|
|
3380
|
+
const de_CustomKeyStoresListEntry = (output, context) => {
|
|
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
|
+
});
|
|
3621
3392
|
};
|
|
3622
|
-
const
|
|
3623
|
-
return {
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3629
|
-
...(input.KeyPairSpec != null && { KeyPairSpec: input.KeyPairSpec }),
|
|
3630
|
-
};
|
|
3393
|
+
const de_DecryptResponse = (output, context) => {
|
|
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
|
+
});
|
|
3631
3399
|
};
|
|
3632
|
-
const
|
|
3633
|
-
return {
|
|
3634
|
-
|
|
3635
|
-
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3639
|
-
...(input.KeyPairSpec != null && { KeyPairSpec: input.KeyPairSpec }),
|
|
3640
|
-
};
|
|
3400
|
+
const de_DescribeCustomKeyStoresResponse = (output, context) => {
|
|
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
|
+
});
|
|
3641
3406
|
};
|
|
3642
|
-
const
|
|
3643
|
-
return {
|
|
3644
|
-
|
|
3645
|
-
|
|
3646
|
-
}),
|
|
3647
|
-
...(input.GrantTokens != null && { GrantTokens: se_GrantTokenList(input.GrantTokens, context) }),
|
|
3648
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3649
|
-
...(input.KeySpec != null && { KeySpec: input.KeySpec }),
|
|
3650
|
-
...(input.NumberOfBytes != null && { NumberOfBytes: input.NumberOfBytes }),
|
|
3651
|
-
};
|
|
3407
|
+
const de_DescribeKeyResponse = (output, context) => {
|
|
3408
|
+
return (0, smithy_client_1.take)(output, {
|
|
3409
|
+
KeyMetadata: (_) => de_KeyMetadata(_, context),
|
|
3410
|
+
});
|
|
3652
3411
|
};
|
|
3653
|
-
const
|
|
3654
|
-
return {
|
|
3655
|
-
|
|
3656
|
-
|
|
3657
|
-
|
|
3658
|
-
|
|
3659
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3660
|
-
...(input.KeySpec != null && { KeySpec: input.KeySpec }),
|
|
3661
|
-
...(input.NumberOfBytes != null && { NumberOfBytes: input.NumberOfBytes }),
|
|
3662
|
-
};
|
|
3412
|
+
const de_EncryptResponse = (output, context) => {
|
|
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
|
+
});
|
|
3663
3418
|
};
|
|
3664
|
-
const
|
|
3665
|
-
return {
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3419
|
+
const de_GenerateDataKeyPairResponse = (output, context) => {
|
|
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
|
+
});
|
|
3671
3427
|
};
|
|
3672
|
-
const
|
|
3673
|
-
return {
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3428
|
+
const de_GenerateDataKeyPairWithoutPlaintextResponse = (output, context) => {
|
|
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
|
+
});
|
|
3677
3435
|
};
|
|
3678
|
-
const
|
|
3679
|
-
return {
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3436
|
+
const de_GenerateDataKeyResponse = (output, context) => {
|
|
3437
|
+
return (0, smithy_client_1.take)(output, {
|
|
3438
|
+
CiphertextBlob: context.base64Decoder,
|
|
3439
|
+
KeyId: smithy_client_1.expectString,
|
|
3440
|
+
Plaintext: context.base64Decoder,
|
|
3441
|
+
});
|
|
3683
3442
|
};
|
|
3684
|
-
const
|
|
3685
|
-
return {
|
|
3686
|
-
|
|
3687
|
-
|
|
3443
|
+
const de_GenerateDataKeyWithoutPlaintextResponse = (output, context) => {
|
|
3444
|
+
return (0, smithy_client_1.take)(output, {
|
|
3445
|
+
CiphertextBlob: context.base64Decoder,
|
|
3446
|
+
KeyId: smithy_client_1.expectString,
|
|
3447
|
+
});
|
|
3688
3448
|
};
|
|
3689
|
-
const
|
|
3690
|
-
return {
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
};
|
|
3449
|
+
const de_GenerateMacResponse = (output, context) => {
|
|
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
|
+
});
|
|
3695
3455
|
};
|
|
3696
|
-
const
|
|
3697
|
-
return {
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
};
|
|
3456
|
+
const de_GenerateRandomResponse = (output, context) => {
|
|
3457
|
+
return (0, smithy_client_1.take)(output, {
|
|
3458
|
+
Plaintext: context.base64Decoder,
|
|
3459
|
+
});
|
|
3701
3460
|
};
|
|
3702
|
-
const
|
|
3703
|
-
return {
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
}),
|
|
3710
|
-
};
|
|
3461
|
+
const de_GetParametersForImportResponse = (output, context) => {
|
|
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
|
+
});
|
|
3711
3468
|
};
|
|
3712
|
-
const
|
|
3713
|
-
return
|
|
3714
|
-
.
|
|
3715
|
-
.
|
|
3716
|
-
|
|
3469
|
+
const de_GetPublicKeyResponse = (output, context) => {
|
|
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,
|
|
3717
3478
|
});
|
|
3718
3479
|
};
|
|
3719
|
-
const
|
|
3720
|
-
|
|
3480
|
+
const de_GrantList = (output, context) => {
|
|
3481
|
+
const retVal = (output || [])
|
|
3721
3482
|
.filter((e) => e != null)
|
|
3722
3483
|
.map((entry) => {
|
|
3723
|
-
return entry;
|
|
3484
|
+
return de_GrantListEntry(entry, context);
|
|
3724
3485
|
});
|
|
3486
|
+
return retVal;
|
|
3725
3487
|
};
|
|
3726
|
-
const
|
|
3727
|
-
return {
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
|
|
3488
|
+
const de_GrantListEntry = (output, context) => {
|
|
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,
|
|
3499
|
+
});
|
|
3736
3500
|
};
|
|
3737
|
-
const
|
|
3738
|
-
return {
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
|
|
3501
|
+
const de_KeyMetadata = (output, context) => {
|
|
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,
|
|
3527
|
+
});
|
|
3743
3528
|
};
|
|
3744
|
-
const
|
|
3745
|
-
return {
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
...(input.Marker != null && { Marker: input.Marker }),
|
|
3751
|
-
};
|
|
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,
|
|
3534
|
+
});
|
|
3752
3535
|
};
|
|
3753
|
-
const
|
|
3754
|
-
return {
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
};
|
|
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,
|
|
3541
|
+
});
|
|
3759
3542
|
};
|
|
3760
|
-
const
|
|
3761
|
-
return {
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3543
|
+
const de_ReEncryptResponse = (output, context) => {
|
|
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
|
+
});
|
|
3765
3551
|
};
|
|
3766
|
-
const
|
|
3767
|
-
return {
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
};
|
|
3772
|
-
};
|
|
3773
|
-
const se_ListRetirableGrantsRequest = (input, context) => {
|
|
3774
|
-
return {
|
|
3775
|
-
...(input.Limit != null && { Limit: input.Limit }),
|
|
3776
|
-
...(input.Marker != null && { Marker: input.Marker }),
|
|
3777
|
-
...(input.RetiringPrincipal != null && { RetiringPrincipal: input.RetiringPrincipal }),
|
|
3778
|
-
};
|
|
3779
|
-
};
|
|
3780
|
-
const se_PutKeyPolicyRequest = (input, context) => {
|
|
3781
|
-
return {
|
|
3782
|
-
...(input.BypassPolicyLockoutSafetyCheck != null && {
|
|
3783
|
-
BypassPolicyLockoutSafetyCheck: input.BypassPolicyLockoutSafetyCheck,
|
|
3784
|
-
}),
|
|
3785
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3786
|
-
...(input.Policy != null && { Policy: input.Policy }),
|
|
3787
|
-
...(input.PolicyName != null && { PolicyName: input.PolicyName }),
|
|
3788
|
-
};
|
|
3789
|
-
};
|
|
3790
|
-
const se_ReEncryptRequest = (input, context) => {
|
|
3791
|
-
return {
|
|
3792
|
-
...(input.CiphertextBlob != null && { CiphertextBlob: context.base64Encoder(input.CiphertextBlob) }),
|
|
3793
|
-
...(input.DestinationEncryptionAlgorithm != null && {
|
|
3794
|
-
DestinationEncryptionAlgorithm: input.DestinationEncryptionAlgorithm,
|
|
3795
|
-
}),
|
|
3796
|
-
...(input.DestinationEncryptionContext != null && {
|
|
3797
|
-
DestinationEncryptionContext: se_EncryptionContextType(input.DestinationEncryptionContext, context),
|
|
3798
|
-
}),
|
|
3799
|
-
...(input.DestinationKeyId != null && { DestinationKeyId: input.DestinationKeyId }),
|
|
3800
|
-
...(input.GrantTokens != null && { GrantTokens: se_GrantTokenList(input.GrantTokens, context) }),
|
|
3801
|
-
...(input.SourceEncryptionAlgorithm != null && { SourceEncryptionAlgorithm: input.SourceEncryptionAlgorithm }),
|
|
3802
|
-
...(input.SourceEncryptionContext != null && {
|
|
3803
|
-
SourceEncryptionContext: se_EncryptionContextType(input.SourceEncryptionContext, context),
|
|
3804
|
-
}),
|
|
3805
|
-
...(input.SourceKeyId != null && { SourceKeyId: input.SourceKeyId }),
|
|
3806
|
-
};
|
|
3807
|
-
};
|
|
3808
|
-
const se_ReplicateKeyRequest = (input, context) => {
|
|
3809
|
-
return {
|
|
3810
|
-
...(input.BypassPolicyLockoutSafetyCheck != null && {
|
|
3811
|
-
BypassPolicyLockoutSafetyCheck: input.BypassPolicyLockoutSafetyCheck,
|
|
3812
|
-
}),
|
|
3813
|
-
...(input.Description != null && { Description: input.Description }),
|
|
3814
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3815
|
-
...(input.Policy != null && { Policy: input.Policy }),
|
|
3816
|
-
...(input.ReplicaRegion != null && { ReplicaRegion: input.ReplicaRegion }),
|
|
3817
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
3818
|
-
};
|
|
3819
|
-
};
|
|
3820
|
-
const se_RetireGrantRequest = (input, context) => {
|
|
3821
|
-
return {
|
|
3822
|
-
...(input.GrantId != null && { GrantId: input.GrantId }),
|
|
3823
|
-
...(input.GrantToken != null && { GrantToken: input.GrantToken }),
|
|
3824
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3825
|
-
};
|
|
3826
|
-
};
|
|
3827
|
-
const se_RevokeGrantRequest = (input, context) => {
|
|
3828
|
-
return {
|
|
3829
|
-
...(input.GrantId != null && { GrantId: input.GrantId }),
|
|
3830
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3831
|
-
};
|
|
3832
|
-
};
|
|
3833
|
-
const se_ScheduleKeyDeletionRequest = (input, context) => {
|
|
3834
|
-
return {
|
|
3835
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3836
|
-
...(input.PendingWindowInDays != null && { PendingWindowInDays: input.PendingWindowInDays }),
|
|
3837
|
-
};
|
|
3838
|
-
};
|
|
3839
|
-
const se_SignRequest = (input, context) => {
|
|
3840
|
-
return {
|
|
3841
|
-
...(input.GrantTokens != null && { GrantTokens: se_GrantTokenList(input.GrantTokens, context) }),
|
|
3842
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3843
|
-
...(input.Message != null && { Message: context.base64Encoder(input.Message) }),
|
|
3844
|
-
...(input.MessageType != null && { MessageType: input.MessageType }),
|
|
3845
|
-
...(input.SigningAlgorithm != null && { SigningAlgorithm: input.SigningAlgorithm }),
|
|
3846
|
-
};
|
|
3847
|
-
};
|
|
3848
|
-
const se_Tag = (input, context) => {
|
|
3849
|
-
return {
|
|
3850
|
-
...(input.TagKey != null && { TagKey: input.TagKey }),
|
|
3851
|
-
...(input.TagValue != null && { TagValue: input.TagValue }),
|
|
3852
|
-
};
|
|
3853
|
-
};
|
|
3854
|
-
const se_TagKeyList = (input, context) => {
|
|
3855
|
-
return input
|
|
3856
|
-
.filter((e) => e != null)
|
|
3857
|
-
.map((entry) => {
|
|
3858
|
-
return entry;
|
|
3859
|
-
});
|
|
3860
|
-
};
|
|
3861
|
-
const se_TagList = (input, context) => {
|
|
3862
|
-
return input
|
|
3863
|
-
.filter((e) => e != null)
|
|
3864
|
-
.map((entry) => {
|
|
3865
|
-
return se_Tag(entry, context);
|
|
3866
|
-
});
|
|
3867
|
-
};
|
|
3868
|
-
const se_TagResourceRequest = (input, context) => {
|
|
3869
|
-
return {
|
|
3870
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3871
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
3872
|
-
};
|
|
3873
|
-
};
|
|
3874
|
-
const se_UntagResourceRequest = (input, context) => {
|
|
3875
|
-
return {
|
|
3876
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3877
|
-
...(input.TagKeys != null && { TagKeys: se_TagKeyList(input.TagKeys, context) }),
|
|
3878
|
-
};
|
|
3879
|
-
};
|
|
3880
|
-
const se_UpdateAliasRequest = (input, context) => {
|
|
3881
|
-
return {
|
|
3882
|
-
...(input.AliasName != null && { AliasName: input.AliasName }),
|
|
3883
|
-
...(input.TargetKeyId != null && { TargetKeyId: input.TargetKeyId }),
|
|
3884
|
-
};
|
|
3885
|
-
};
|
|
3886
|
-
const se_UpdateCustomKeyStoreRequest = (input, context) => {
|
|
3887
|
-
return {
|
|
3888
|
-
...(input.CloudHsmClusterId != null && { CloudHsmClusterId: input.CloudHsmClusterId }),
|
|
3889
|
-
...(input.CustomKeyStoreId != null && { CustomKeyStoreId: input.CustomKeyStoreId }),
|
|
3890
|
-
...(input.KeyStorePassword != null && { KeyStorePassword: input.KeyStorePassword }),
|
|
3891
|
-
...(input.NewCustomKeyStoreName != null && { NewCustomKeyStoreName: input.NewCustomKeyStoreName }),
|
|
3892
|
-
...(input.XksProxyAuthenticationCredential != null && {
|
|
3893
|
-
XksProxyAuthenticationCredential: se_XksProxyAuthenticationCredentialType(input.XksProxyAuthenticationCredential, context),
|
|
3894
|
-
}),
|
|
3895
|
-
...(input.XksProxyConnectivity != null && { XksProxyConnectivity: input.XksProxyConnectivity }),
|
|
3896
|
-
...(input.XksProxyUriEndpoint != null && { XksProxyUriEndpoint: input.XksProxyUriEndpoint }),
|
|
3897
|
-
...(input.XksProxyUriPath != null && { XksProxyUriPath: input.XksProxyUriPath }),
|
|
3898
|
-
...(input.XksProxyVpcEndpointServiceName != null && {
|
|
3899
|
-
XksProxyVpcEndpointServiceName: input.XksProxyVpcEndpointServiceName,
|
|
3900
|
-
}),
|
|
3901
|
-
};
|
|
3902
|
-
};
|
|
3903
|
-
const se_UpdateKeyDescriptionRequest = (input, context) => {
|
|
3904
|
-
return {
|
|
3905
|
-
...(input.Description != null && { Description: input.Description }),
|
|
3906
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3907
|
-
};
|
|
3908
|
-
};
|
|
3909
|
-
const se_UpdatePrimaryRegionRequest = (input, context) => {
|
|
3910
|
-
return {
|
|
3911
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3912
|
-
...(input.PrimaryRegion != null && { PrimaryRegion: input.PrimaryRegion }),
|
|
3913
|
-
};
|
|
3914
|
-
};
|
|
3915
|
-
const se_VerifyMacRequest = (input, context) => {
|
|
3916
|
-
return {
|
|
3917
|
-
...(input.GrantTokens != null && { GrantTokens: se_GrantTokenList(input.GrantTokens, context) }),
|
|
3918
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3919
|
-
...(input.Mac != null && { Mac: context.base64Encoder(input.Mac) }),
|
|
3920
|
-
...(input.MacAlgorithm != null && { MacAlgorithm: input.MacAlgorithm }),
|
|
3921
|
-
...(input.Message != null && { Message: context.base64Encoder(input.Message) }),
|
|
3922
|
-
};
|
|
3923
|
-
};
|
|
3924
|
-
const se_VerifyRequest = (input, context) => {
|
|
3925
|
-
return {
|
|
3926
|
-
...(input.GrantTokens != null && { GrantTokens: se_GrantTokenList(input.GrantTokens, context) }),
|
|
3927
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3928
|
-
...(input.Message != null && { Message: context.base64Encoder(input.Message) }),
|
|
3929
|
-
...(input.MessageType != null && { MessageType: input.MessageType }),
|
|
3930
|
-
...(input.Signature != null && { Signature: context.base64Encoder(input.Signature) }),
|
|
3931
|
-
...(input.SigningAlgorithm != null && { SigningAlgorithm: input.SigningAlgorithm }),
|
|
3932
|
-
};
|
|
3933
|
-
};
|
|
3934
|
-
const se_XksProxyAuthenticationCredentialType = (input, context) => {
|
|
3935
|
-
return {
|
|
3936
|
-
...(input.AccessKeyId != null && { AccessKeyId: input.AccessKeyId }),
|
|
3937
|
-
...(input.RawSecretAccessKey != null && { RawSecretAccessKey: input.RawSecretAccessKey }),
|
|
3938
|
-
};
|
|
3939
|
-
};
|
|
3940
|
-
const de_AliasList = (output, context) => {
|
|
3941
|
-
const retVal = (output || [])
|
|
3942
|
-
.filter((e) => e != null)
|
|
3943
|
-
.map((entry) => {
|
|
3944
|
-
if (entry === null) {
|
|
3945
|
-
return null;
|
|
3946
|
-
}
|
|
3947
|
-
return de_AliasListEntry(entry, context);
|
|
3948
|
-
});
|
|
3949
|
-
return retVal;
|
|
3950
|
-
};
|
|
3951
|
-
const de_AliasListEntry = (output, context) => {
|
|
3952
|
-
return {
|
|
3953
|
-
AliasArn: (0, smithy_client_1.expectString)(output.AliasArn),
|
|
3954
|
-
AliasName: (0, smithy_client_1.expectString)(output.AliasName),
|
|
3955
|
-
CreationDate: output.CreationDate != null
|
|
3956
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationDate)))
|
|
3957
|
-
: undefined,
|
|
3958
|
-
LastUpdatedDate: output.LastUpdatedDate != null
|
|
3959
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedDate)))
|
|
3960
|
-
: undefined,
|
|
3961
|
-
TargetKeyId: (0, smithy_client_1.expectString)(output.TargetKeyId),
|
|
3962
|
-
};
|
|
3963
|
-
};
|
|
3964
|
-
const de_AlreadyExistsException = (output, context) => {
|
|
3965
|
-
return {
|
|
3966
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
3967
|
-
};
|
|
3968
|
-
};
|
|
3969
|
-
const de_CancelKeyDeletionResponse = (output, context) => {
|
|
3970
|
-
return {
|
|
3971
|
-
KeyId: (0, smithy_client_1.expectString)(output.KeyId),
|
|
3972
|
-
};
|
|
3973
|
-
};
|
|
3974
|
-
const de_CloudHsmClusterInUseException = (output, context) => {
|
|
3975
|
-
return {
|
|
3976
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
3977
|
-
};
|
|
3978
|
-
};
|
|
3979
|
-
const de_CloudHsmClusterInvalidConfigurationException = (output, context) => {
|
|
3980
|
-
return {
|
|
3981
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
3982
|
-
};
|
|
3983
|
-
};
|
|
3984
|
-
const de_CloudHsmClusterNotActiveException = (output, context) => {
|
|
3985
|
-
return {
|
|
3986
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
3987
|
-
};
|
|
3988
|
-
};
|
|
3989
|
-
const de_CloudHsmClusterNotFoundException = (output, context) => {
|
|
3990
|
-
return {
|
|
3991
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
3992
|
-
};
|
|
3993
|
-
};
|
|
3994
|
-
const de_CloudHsmClusterNotRelatedException = (output, context) => {
|
|
3995
|
-
return {
|
|
3996
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
3997
|
-
};
|
|
3998
|
-
};
|
|
3999
|
-
const de_ConnectCustomKeyStoreResponse = (output, context) => {
|
|
4000
|
-
return {};
|
|
4001
|
-
};
|
|
4002
|
-
const de_CreateCustomKeyStoreResponse = (output, context) => {
|
|
4003
|
-
return {
|
|
4004
|
-
CustomKeyStoreId: (0, smithy_client_1.expectString)(output.CustomKeyStoreId),
|
|
4005
|
-
};
|
|
4006
|
-
};
|
|
4007
|
-
const de_CreateGrantResponse = (output, context) => {
|
|
4008
|
-
return {
|
|
4009
|
-
GrantId: (0, smithy_client_1.expectString)(output.GrantId),
|
|
4010
|
-
GrantToken: (0, smithy_client_1.expectString)(output.GrantToken),
|
|
4011
|
-
};
|
|
4012
|
-
};
|
|
4013
|
-
const de_CreateKeyResponse = (output, context) => {
|
|
4014
|
-
return {
|
|
4015
|
-
KeyMetadata: output.KeyMetadata != null ? de_KeyMetadata(output.KeyMetadata, context) : undefined,
|
|
4016
|
-
};
|
|
4017
|
-
};
|
|
4018
|
-
const de_CustomKeyStoreHasCMKsException = (output, context) => {
|
|
4019
|
-
return {
|
|
4020
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4021
|
-
};
|
|
4022
|
-
};
|
|
4023
|
-
const de_CustomKeyStoreInvalidStateException = (output, context) => {
|
|
4024
|
-
return {
|
|
4025
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4026
|
-
};
|
|
4027
|
-
};
|
|
4028
|
-
const de_CustomKeyStoreNameInUseException = (output, context) => {
|
|
4029
|
-
return {
|
|
4030
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4031
|
-
};
|
|
4032
|
-
};
|
|
4033
|
-
const de_CustomKeyStoreNotFoundException = (output, context) => {
|
|
4034
|
-
return {
|
|
4035
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4036
|
-
};
|
|
4037
|
-
};
|
|
4038
|
-
const de_CustomKeyStoresList = (output, context) => {
|
|
4039
|
-
const retVal = (output || [])
|
|
4040
|
-
.filter((e) => e != null)
|
|
4041
|
-
.map((entry) => {
|
|
4042
|
-
if (entry === null) {
|
|
4043
|
-
return null;
|
|
4044
|
-
}
|
|
4045
|
-
return de_CustomKeyStoresListEntry(entry, context);
|
|
4046
|
-
});
|
|
4047
|
-
return retVal;
|
|
4048
|
-
};
|
|
4049
|
-
const de_CustomKeyStoresListEntry = (output, context) => {
|
|
4050
|
-
return {
|
|
4051
|
-
CloudHsmClusterId: (0, smithy_client_1.expectString)(output.CloudHsmClusterId),
|
|
4052
|
-
ConnectionErrorCode: (0, smithy_client_1.expectString)(output.ConnectionErrorCode),
|
|
4053
|
-
ConnectionState: (0, smithy_client_1.expectString)(output.ConnectionState),
|
|
4054
|
-
CreationDate: output.CreationDate != null
|
|
4055
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationDate)))
|
|
4056
|
-
: undefined,
|
|
4057
|
-
CustomKeyStoreId: (0, smithy_client_1.expectString)(output.CustomKeyStoreId),
|
|
4058
|
-
CustomKeyStoreName: (0, smithy_client_1.expectString)(output.CustomKeyStoreName),
|
|
4059
|
-
CustomKeyStoreType: (0, smithy_client_1.expectString)(output.CustomKeyStoreType),
|
|
4060
|
-
TrustAnchorCertificate: (0, smithy_client_1.expectString)(output.TrustAnchorCertificate),
|
|
4061
|
-
XksProxyConfiguration: output.XksProxyConfiguration != null
|
|
4062
|
-
? de_XksProxyConfigurationType(output.XksProxyConfiguration, context)
|
|
4063
|
-
: undefined,
|
|
4064
|
-
};
|
|
4065
|
-
};
|
|
4066
|
-
const de_DecryptResponse = (output, context) => {
|
|
4067
|
-
return {
|
|
4068
|
-
EncryptionAlgorithm: (0, smithy_client_1.expectString)(output.EncryptionAlgorithm),
|
|
4069
|
-
KeyId: (0, smithy_client_1.expectString)(output.KeyId),
|
|
4070
|
-
Plaintext: output.Plaintext != null ? context.base64Decoder(output.Plaintext) : undefined,
|
|
4071
|
-
};
|
|
4072
|
-
};
|
|
4073
|
-
const de_DeleteCustomKeyStoreResponse = (output, context) => {
|
|
4074
|
-
return {};
|
|
4075
|
-
};
|
|
4076
|
-
const de_DependencyTimeoutException = (output, context) => {
|
|
4077
|
-
return {
|
|
4078
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4079
|
-
};
|
|
4080
|
-
};
|
|
4081
|
-
const de_DescribeCustomKeyStoresResponse = (output, context) => {
|
|
4082
|
-
return {
|
|
4083
|
-
CustomKeyStores: output.CustomKeyStores != null ? de_CustomKeyStoresList(output.CustomKeyStores, context) : undefined,
|
|
4084
|
-
NextMarker: (0, smithy_client_1.expectString)(output.NextMarker),
|
|
4085
|
-
Truncated: (0, smithy_client_1.expectBoolean)(output.Truncated),
|
|
4086
|
-
};
|
|
4087
|
-
};
|
|
4088
|
-
const de_DescribeKeyResponse = (output, context) => {
|
|
4089
|
-
return {
|
|
4090
|
-
KeyMetadata: output.KeyMetadata != null ? de_KeyMetadata(output.KeyMetadata, context) : undefined,
|
|
4091
|
-
};
|
|
4092
|
-
};
|
|
4093
|
-
const de_DisabledException = (output, context) => {
|
|
4094
|
-
return {
|
|
4095
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4096
|
-
};
|
|
4097
|
-
};
|
|
4098
|
-
const de_DisconnectCustomKeyStoreResponse = (output, context) => {
|
|
4099
|
-
return {};
|
|
4100
|
-
};
|
|
4101
|
-
const de_EncryptionAlgorithmSpecList = (output, context) => {
|
|
4102
|
-
const retVal = (output || [])
|
|
4103
|
-
.filter((e) => e != null)
|
|
4104
|
-
.map((entry) => {
|
|
4105
|
-
if (entry === null) {
|
|
4106
|
-
return null;
|
|
4107
|
-
}
|
|
4108
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
4109
|
-
});
|
|
4110
|
-
return retVal;
|
|
4111
|
-
};
|
|
4112
|
-
const de_EncryptionContextType = (output, context) => {
|
|
4113
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
4114
|
-
if (value === null) {
|
|
4115
|
-
return acc;
|
|
4116
|
-
}
|
|
4117
|
-
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
4118
|
-
return acc;
|
|
4119
|
-
}, {});
|
|
4120
|
-
};
|
|
4121
|
-
const de_EncryptResponse = (output, context) => {
|
|
4122
|
-
return {
|
|
4123
|
-
CiphertextBlob: output.CiphertextBlob != null ? context.base64Decoder(output.CiphertextBlob) : undefined,
|
|
4124
|
-
EncryptionAlgorithm: (0, smithy_client_1.expectString)(output.EncryptionAlgorithm),
|
|
4125
|
-
KeyId: (0, smithy_client_1.expectString)(output.KeyId),
|
|
4126
|
-
};
|
|
4127
|
-
};
|
|
4128
|
-
const de_ExpiredImportTokenException = (output, context) => {
|
|
4129
|
-
return {
|
|
4130
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4131
|
-
};
|
|
4132
|
-
};
|
|
4133
|
-
const de_GenerateDataKeyPairResponse = (output, context) => {
|
|
4134
|
-
return {
|
|
4135
|
-
KeyId: (0, smithy_client_1.expectString)(output.KeyId),
|
|
4136
|
-
KeyPairSpec: (0, smithy_client_1.expectString)(output.KeyPairSpec),
|
|
4137
|
-
PrivateKeyCiphertextBlob: output.PrivateKeyCiphertextBlob != null ? context.base64Decoder(output.PrivateKeyCiphertextBlob) : undefined,
|
|
4138
|
-
PrivateKeyPlaintext: output.PrivateKeyPlaintext != null ? context.base64Decoder(output.PrivateKeyPlaintext) : undefined,
|
|
4139
|
-
PublicKey: output.PublicKey != null ? context.base64Decoder(output.PublicKey) : undefined,
|
|
4140
|
-
};
|
|
4141
|
-
};
|
|
4142
|
-
const de_GenerateDataKeyPairWithoutPlaintextResponse = (output, context) => {
|
|
4143
|
-
return {
|
|
4144
|
-
KeyId: (0, smithy_client_1.expectString)(output.KeyId),
|
|
4145
|
-
KeyPairSpec: (0, smithy_client_1.expectString)(output.KeyPairSpec),
|
|
4146
|
-
PrivateKeyCiphertextBlob: output.PrivateKeyCiphertextBlob != null ? context.base64Decoder(output.PrivateKeyCiphertextBlob) : undefined,
|
|
4147
|
-
PublicKey: output.PublicKey != null ? context.base64Decoder(output.PublicKey) : undefined,
|
|
4148
|
-
};
|
|
4149
|
-
};
|
|
4150
|
-
const de_GenerateDataKeyResponse = (output, context) => {
|
|
4151
|
-
return {
|
|
4152
|
-
CiphertextBlob: output.CiphertextBlob != null ? context.base64Decoder(output.CiphertextBlob) : undefined,
|
|
4153
|
-
KeyId: (0, smithy_client_1.expectString)(output.KeyId),
|
|
4154
|
-
Plaintext: output.Plaintext != null ? context.base64Decoder(output.Plaintext) : undefined,
|
|
4155
|
-
};
|
|
4156
|
-
};
|
|
4157
|
-
const de_GenerateDataKeyWithoutPlaintextResponse = (output, context) => {
|
|
4158
|
-
return {
|
|
4159
|
-
CiphertextBlob: output.CiphertextBlob != null ? context.base64Decoder(output.CiphertextBlob) : undefined,
|
|
4160
|
-
KeyId: (0, smithy_client_1.expectString)(output.KeyId),
|
|
4161
|
-
};
|
|
4162
|
-
};
|
|
4163
|
-
const de_GenerateMacResponse = (output, context) => {
|
|
4164
|
-
return {
|
|
4165
|
-
KeyId: (0, smithy_client_1.expectString)(output.KeyId),
|
|
4166
|
-
Mac: output.Mac != null ? context.base64Decoder(output.Mac) : undefined,
|
|
4167
|
-
MacAlgorithm: (0, smithy_client_1.expectString)(output.MacAlgorithm),
|
|
4168
|
-
};
|
|
4169
|
-
};
|
|
4170
|
-
const de_GenerateRandomResponse = (output, context) => {
|
|
4171
|
-
return {
|
|
4172
|
-
Plaintext: output.Plaintext != null ? context.base64Decoder(output.Plaintext) : undefined,
|
|
4173
|
-
};
|
|
4174
|
-
};
|
|
4175
|
-
const de_GetKeyPolicyResponse = (output, context) => {
|
|
4176
|
-
return {
|
|
4177
|
-
Policy: (0, smithy_client_1.expectString)(output.Policy),
|
|
4178
|
-
};
|
|
4179
|
-
};
|
|
4180
|
-
const de_GetKeyRotationStatusResponse = (output, context) => {
|
|
4181
|
-
return {
|
|
4182
|
-
KeyRotationEnabled: (0, smithy_client_1.expectBoolean)(output.KeyRotationEnabled),
|
|
4183
|
-
};
|
|
4184
|
-
};
|
|
4185
|
-
const de_GetParametersForImportResponse = (output, context) => {
|
|
4186
|
-
return {
|
|
4187
|
-
ImportToken: output.ImportToken != null ? context.base64Decoder(output.ImportToken) : undefined,
|
|
4188
|
-
KeyId: (0, smithy_client_1.expectString)(output.KeyId),
|
|
4189
|
-
ParametersValidTo: output.ParametersValidTo != null
|
|
4190
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ParametersValidTo)))
|
|
4191
|
-
: undefined,
|
|
4192
|
-
PublicKey: output.PublicKey != null ? context.base64Decoder(output.PublicKey) : undefined,
|
|
4193
|
-
};
|
|
4194
|
-
};
|
|
4195
|
-
const de_GetPublicKeyResponse = (output, context) => {
|
|
4196
|
-
return {
|
|
4197
|
-
CustomerMasterKeySpec: (0, smithy_client_1.expectString)(output.CustomerMasterKeySpec),
|
|
4198
|
-
EncryptionAlgorithms: output.EncryptionAlgorithms != null
|
|
4199
|
-
? de_EncryptionAlgorithmSpecList(output.EncryptionAlgorithms, context)
|
|
4200
|
-
: undefined,
|
|
4201
|
-
KeyId: (0, smithy_client_1.expectString)(output.KeyId),
|
|
4202
|
-
KeySpec: (0, smithy_client_1.expectString)(output.KeySpec),
|
|
4203
|
-
KeyUsage: (0, smithy_client_1.expectString)(output.KeyUsage),
|
|
4204
|
-
PublicKey: output.PublicKey != null ? context.base64Decoder(output.PublicKey) : undefined,
|
|
4205
|
-
SigningAlgorithms: output.SigningAlgorithms != null ? de_SigningAlgorithmSpecList(output.SigningAlgorithms, context) : undefined,
|
|
4206
|
-
};
|
|
4207
|
-
};
|
|
4208
|
-
const de_GrantConstraints = (output, context) => {
|
|
4209
|
-
return {
|
|
4210
|
-
EncryptionContextEquals: output.EncryptionContextEquals != null
|
|
4211
|
-
? de_EncryptionContextType(output.EncryptionContextEquals, context)
|
|
4212
|
-
: undefined,
|
|
4213
|
-
EncryptionContextSubset: output.EncryptionContextSubset != null
|
|
4214
|
-
? de_EncryptionContextType(output.EncryptionContextSubset, context)
|
|
4215
|
-
: undefined,
|
|
4216
|
-
};
|
|
4217
|
-
};
|
|
4218
|
-
const de_GrantList = (output, context) => {
|
|
4219
|
-
const retVal = (output || [])
|
|
4220
|
-
.filter((e) => e != null)
|
|
4221
|
-
.map((entry) => {
|
|
4222
|
-
if (entry === null) {
|
|
4223
|
-
return null;
|
|
4224
|
-
}
|
|
4225
|
-
return de_GrantListEntry(entry, context);
|
|
4226
|
-
});
|
|
4227
|
-
return retVal;
|
|
4228
|
-
};
|
|
4229
|
-
const de_GrantListEntry = (output, context) => {
|
|
4230
|
-
return {
|
|
4231
|
-
Constraints: output.Constraints != null ? de_GrantConstraints(output.Constraints, context) : undefined,
|
|
4232
|
-
CreationDate: output.CreationDate != null
|
|
4233
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationDate)))
|
|
4234
|
-
: undefined,
|
|
4235
|
-
GrantId: (0, smithy_client_1.expectString)(output.GrantId),
|
|
4236
|
-
GranteePrincipal: (0, smithy_client_1.expectString)(output.GranteePrincipal),
|
|
4237
|
-
IssuingAccount: (0, smithy_client_1.expectString)(output.IssuingAccount),
|
|
4238
|
-
KeyId: (0, smithy_client_1.expectString)(output.KeyId),
|
|
4239
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
4240
|
-
Operations: output.Operations != null ? de_GrantOperationList(output.Operations, context) : undefined,
|
|
4241
|
-
RetiringPrincipal: (0, smithy_client_1.expectString)(output.RetiringPrincipal),
|
|
4242
|
-
};
|
|
4243
|
-
};
|
|
4244
|
-
const de_GrantOperationList = (output, context) => {
|
|
4245
|
-
const retVal = (output || [])
|
|
4246
|
-
.filter((e) => e != null)
|
|
4247
|
-
.map((entry) => {
|
|
4248
|
-
if (entry === null) {
|
|
4249
|
-
return null;
|
|
4250
|
-
}
|
|
4251
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
4252
|
-
});
|
|
4253
|
-
return retVal;
|
|
4254
|
-
};
|
|
4255
|
-
const de_ImportKeyMaterialResponse = (output, context) => {
|
|
4256
|
-
return {};
|
|
4257
|
-
};
|
|
4258
|
-
const de_IncorrectKeyException = (output, context) => {
|
|
4259
|
-
return {
|
|
4260
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4261
|
-
};
|
|
4262
|
-
};
|
|
4263
|
-
const de_IncorrectKeyMaterialException = (output, context) => {
|
|
4264
|
-
return {
|
|
4265
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4266
|
-
};
|
|
4267
|
-
};
|
|
4268
|
-
const de_IncorrectTrustAnchorException = (output, context) => {
|
|
4269
|
-
return {
|
|
4270
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4271
|
-
};
|
|
4272
|
-
};
|
|
4273
|
-
const de_InvalidAliasNameException = (output, context) => {
|
|
4274
|
-
return {
|
|
4275
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4276
|
-
};
|
|
4277
|
-
};
|
|
4278
|
-
const de_InvalidArnException = (output, context) => {
|
|
4279
|
-
return {
|
|
4280
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4281
|
-
};
|
|
4282
|
-
};
|
|
4283
|
-
const de_InvalidCiphertextException = (output, context) => {
|
|
4284
|
-
return {
|
|
4285
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4286
|
-
};
|
|
4287
|
-
};
|
|
4288
|
-
const de_InvalidGrantIdException = (output, context) => {
|
|
4289
|
-
return {
|
|
4290
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4291
|
-
};
|
|
4292
|
-
};
|
|
4293
|
-
const de_InvalidGrantTokenException = (output, context) => {
|
|
4294
|
-
return {
|
|
4295
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4296
|
-
};
|
|
4297
|
-
};
|
|
4298
|
-
const de_InvalidImportTokenException = (output, context) => {
|
|
4299
|
-
return {
|
|
4300
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4301
|
-
};
|
|
4302
|
-
};
|
|
4303
|
-
const de_InvalidKeyUsageException = (output, context) => {
|
|
4304
|
-
return {
|
|
4305
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4306
|
-
};
|
|
4307
|
-
};
|
|
4308
|
-
const de_InvalidMarkerException = (output, context) => {
|
|
4309
|
-
return {
|
|
4310
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4311
|
-
};
|
|
4312
|
-
};
|
|
4313
|
-
const de_KeyList = (output, context) => {
|
|
4314
|
-
const retVal = (output || [])
|
|
4315
|
-
.filter((e) => e != null)
|
|
4316
|
-
.map((entry) => {
|
|
4317
|
-
if (entry === null) {
|
|
4318
|
-
return null;
|
|
4319
|
-
}
|
|
4320
|
-
return de_KeyListEntry(entry, context);
|
|
4321
|
-
});
|
|
4322
|
-
return retVal;
|
|
4323
|
-
};
|
|
4324
|
-
const de_KeyListEntry = (output, context) => {
|
|
4325
|
-
return {
|
|
4326
|
-
KeyArn: (0, smithy_client_1.expectString)(output.KeyArn),
|
|
4327
|
-
KeyId: (0, smithy_client_1.expectString)(output.KeyId),
|
|
4328
|
-
};
|
|
4329
|
-
};
|
|
4330
|
-
const de_KeyMetadata = (output, context) => {
|
|
4331
|
-
return {
|
|
4332
|
-
AWSAccountId: (0, smithy_client_1.expectString)(output.AWSAccountId),
|
|
4333
|
-
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
4334
|
-
CloudHsmClusterId: (0, smithy_client_1.expectString)(output.CloudHsmClusterId),
|
|
4335
|
-
CreationDate: output.CreationDate != null
|
|
4336
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationDate)))
|
|
4337
|
-
: undefined,
|
|
4338
|
-
CustomKeyStoreId: (0, smithy_client_1.expectString)(output.CustomKeyStoreId),
|
|
4339
|
-
CustomerMasterKeySpec: (0, smithy_client_1.expectString)(output.CustomerMasterKeySpec),
|
|
4340
|
-
DeletionDate: output.DeletionDate != null
|
|
4341
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DeletionDate)))
|
|
4342
|
-
: undefined,
|
|
4343
|
-
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
4344
|
-
Enabled: (0, smithy_client_1.expectBoolean)(output.Enabled),
|
|
4345
|
-
EncryptionAlgorithms: output.EncryptionAlgorithms != null
|
|
4346
|
-
? de_EncryptionAlgorithmSpecList(output.EncryptionAlgorithms, context)
|
|
4347
|
-
: undefined,
|
|
4348
|
-
ExpirationModel: (0, smithy_client_1.expectString)(output.ExpirationModel),
|
|
4349
|
-
KeyId: (0, smithy_client_1.expectString)(output.KeyId),
|
|
4350
|
-
KeyManager: (0, smithy_client_1.expectString)(output.KeyManager),
|
|
4351
|
-
KeySpec: (0, smithy_client_1.expectString)(output.KeySpec),
|
|
4352
|
-
KeyState: (0, smithy_client_1.expectString)(output.KeyState),
|
|
4353
|
-
KeyUsage: (0, smithy_client_1.expectString)(output.KeyUsage),
|
|
4354
|
-
MacAlgorithms: output.MacAlgorithms != null ? de_MacAlgorithmSpecList(output.MacAlgorithms, context) : undefined,
|
|
4355
|
-
MultiRegion: (0, smithy_client_1.expectBoolean)(output.MultiRegion),
|
|
4356
|
-
MultiRegionConfiguration: output.MultiRegionConfiguration != null
|
|
4357
|
-
? de_MultiRegionConfiguration(output.MultiRegionConfiguration, context)
|
|
4358
|
-
: undefined,
|
|
4359
|
-
Origin: (0, smithy_client_1.expectString)(output.Origin),
|
|
4360
|
-
PendingDeletionWindowInDays: (0, smithy_client_1.expectInt32)(output.PendingDeletionWindowInDays),
|
|
4361
|
-
SigningAlgorithms: output.SigningAlgorithms != null ? de_SigningAlgorithmSpecList(output.SigningAlgorithms, context) : undefined,
|
|
4362
|
-
ValidTo: output.ValidTo != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ValidTo))) : undefined,
|
|
4363
|
-
XksKeyConfiguration: output.XksKeyConfiguration != null ? de_XksKeyConfigurationType(output.XksKeyConfiguration, context) : undefined,
|
|
4364
|
-
};
|
|
4365
|
-
};
|
|
4366
|
-
const de_KeyUnavailableException = (output, context) => {
|
|
4367
|
-
return {
|
|
4368
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4369
|
-
};
|
|
4370
|
-
};
|
|
4371
|
-
const de_KMSInternalException = (output, context) => {
|
|
4372
|
-
return {
|
|
4373
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4374
|
-
};
|
|
4375
|
-
};
|
|
4376
|
-
const de_KMSInvalidMacException = (output, context) => {
|
|
4377
|
-
return {
|
|
4378
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4379
|
-
};
|
|
4380
|
-
};
|
|
4381
|
-
const de_KMSInvalidSignatureException = (output, context) => {
|
|
4382
|
-
return {
|
|
4383
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4384
|
-
};
|
|
4385
|
-
};
|
|
4386
|
-
const de_KMSInvalidStateException = (output, context) => {
|
|
4387
|
-
return {
|
|
4388
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4389
|
-
};
|
|
4390
|
-
};
|
|
4391
|
-
const de_LimitExceededException = (output, context) => {
|
|
4392
|
-
return {
|
|
4393
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4394
|
-
};
|
|
4395
|
-
};
|
|
4396
|
-
const de_ListAliasesResponse = (output, context) => {
|
|
4397
|
-
return {
|
|
4398
|
-
Aliases: output.Aliases != null ? de_AliasList(output.Aliases, context) : undefined,
|
|
4399
|
-
NextMarker: (0, smithy_client_1.expectString)(output.NextMarker),
|
|
4400
|
-
Truncated: (0, smithy_client_1.expectBoolean)(output.Truncated),
|
|
4401
|
-
};
|
|
4402
|
-
};
|
|
4403
|
-
const de_ListGrantsResponse = (output, context) => {
|
|
4404
|
-
return {
|
|
4405
|
-
Grants: output.Grants != null ? de_GrantList(output.Grants, context) : undefined,
|
|
4406
|
-
NextMarker: (0, smithy_client_1.expectString)(output.NextMarker),
|
|
4407
|
-
Truncated: (0, smithy_client_1.expectBoolean)(output.Truncated),
|
|
4408
|
-
};
|
|
4409
|
-
};
|
|
4410
|
-
const de_ListKeyPoliciesResponse = (output, context) => {
|
|
4411
|
-
return {
|
|
4412
|
-
NextMarker: (0, smithy_client_1.expectString)(output.NextMarker),
|
|
4413
|
-
PolicyNames: output.PolicyNames != null ? de_PolicyNameList(output.PolicyNames, context) : undefined,
|
|
4414
|
-
Truncated: (0, smithy_client_1.expectBoolean)(output.Truncated),
|
|
4415
|
-
};
|
|
4416
|
-
};
|
|
4417
|
-
const de_ListKeysResponse = (output, context) => {
|
|
4418
|
-
return {
|
|
4419
|
-
Keys: output.Keys != null ? de_KeyList(output.Keys, context) : undefined,
|
|
4420
|
-
NextMarker: (0, smithy_client_1.expectString)(output.NextMarker),
|
|
4421
|
-
Truncated: (0, smithy_client_1.expectBoolean)(output.Truncated),
|
|
4422
|
-
};
|
|
4423
|
-
};
|
|
4424
|
-
const de_ListResourceTagsResponse = (output, context) => {
|
|
4425
|
-
return {
|
|
4426
|
-
NextMarker: (0, smithy_client_1.expectString)(output.NextMarker),
|
|
4427
|
-
Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
|
|
4428
|
-
Truncated: (0, smithy_client_1.expectBoolean)(output.Truncated),
|
|
4429
|
-
};
|
|
4430
|
-
};
|
|
4431
|
-
const de_MacAlgorithmSpecList = (output, context) => {
|
|
4432
|
-
const retVal = (output || [])
|
|
4433
|
-
.filter((e) => e != null)
|
|
4434
|
-
.map((entry) => {
|
|
4435
|
-
if (entry === null) {
|
|
4436
|
-
return null;
|
|
4437
|
-
}
|
|
4438
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
4439
|
-
});
|
|
4440
|
-
return retVal;
|
|
4441
|
-
};
|
|
4442
|
-
const de_MalformedPolicyDocumentException = (output, context) => {
|
|
4443
|
-
return {
|
|
4444
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4445
|
-
};
|
|
4446
|
-
};
|
|
4447
|
-
const de_MultiRegionConfiguration = (output, context) => {
|
|
4448
|
-
return {
|
|
4449
|
-
MultiRegionKeyType: (0, smithy_client_1.expectString)(output.MultiRegionKeyType),
|
|
4450
|
-
PrimaryKey: output.PrimaryKey != null ? de_MultiRegionKey(output.PrimaryKey, context) : undefined,
|
|
4451
|
-
ReplicaKeys: output.ReplicaKeys != null ? de_MultiRegionKeyList(output.ReplicaKeys, context) : undefined,
|
|
4452
|
-
};
|
|
4453
|
-
};
|
|
4454
|
-
const de_MultiRegionKey = (output, context) => {
|
|
4455
|
-
return {
|
|
4456
|
-
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
4457
|
-
Region: (0, smithy_client_1.expectString)(output.Region),
|
|
4458
|
-
};
|
|
4459
|
-
};
|
|
4460
|
-
const de_MultiRegionKeyList = (output, context) => {
|
|
4461
|
-
const retVal = (output || [])
|
|
4462
|
-
.filter((e) => e != null)
|
|
4463
|
-
.map((entry) => {
|
|
4464
|
-
if (entry === null) {
|
|
4465
|
-
return null;
|
|
4466
|
-
}
|
|
4467
|
-
return de_MultiRegionKey(entry, context);
|
|
4468
|
-
});
|
|
4469
|
-
return retVal;
|
|
4470
|
-
};
|
|
4471
|
-
const de_NotFoundException = (output, context) => {
|
|
4472
|
-
return {
|
|
4473
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4474
|
-
};
|
|
4475
|
-
};
|
|
4476
|
-
const de_PolicyNameList = (output, context) => {
|
|
4477
|
-
const retVal = (output || [])
|
|
4478
|
-
.filter((e) => e != null)
|
|
4479
|
-
.map((entry) => {
|
|
4480
|
-
if (entry === null) {
|
|
4481
|
-
return null;
|
|
4482
|
-
}
|
|
4483
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
4484
|
-
});
|
|
4485
|
-
return retVal;
|
|
4486
|
-
};
|
|
4487
|
-
const de_ReEncryptResponse = (output, context) => {
|
|
4488
|
-
return {
|
|
4489
|
-
CiphertextBlob: output.CiphertextBlob != null ? context.base64Decoder(output.CiphertextBlob) : undefined,
|
|
4490
|
-
DestinationEncryptionAlgorithm: (0, smithy_client_1.expectString)(output.DestinationEncryptionAlgorithm),
|
|
4491
|
-
KeyId: (0, smithy_client_1.expectString)(output.KeyId),
|
|
4492
|
-
SourceEncryptionAlgorithm: (0, smithy_client_1.expectString)(output.SourceEncryptionAlgorithm),
|
|
4493
|
-
SourceKeyId: (0, smithy_client_1.expectString)(output.SourceKeyId),
|
|
4494
|
-
};
|
|
4495
|
-
};
|
|
4496
|
-
const de_ReplicateKeyResponse = (output, context) => {
|
|
4497
|
-
return {
|
|
4498
|
-
ReplicaKeyMetadata: output.ReplicaKeyMetadata != null ? de_KeyMetadata(output.ReplicaKeyMetadata, context) : undefined,
|
|
4499
|
-
ReplicaPolicy: (0, smithy_client_1.expectString)(output.ReplicaPolicy),
|
|
4500
|
-
ReplicaTags: output.ReplicaTags != null ? de_TagList(output.ReplicaTags, context) : undefined,
|
|
4501
|
-
};
|
|
3552
|
+
const de_ReplicateKeyResponse = (output, context) => {
|
|
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
|
+
});
|
|
4502
3558
|
};
|
|
4503
3559
|
const de_ScheduleKeyDeletionResponse = (output, context) => {
|
|
4504
|
-
return {
|
|
4505
|
-
DeletionDate:
|
|
4506
|
-
|
|
4507
|
-
|
|
4508
|
-
|
|
4509
|
-
KeyState: (0, smithy_client_1.expectString)(output.KeyState),
|
|
4510
|
-
PendingWindowInDays: (0, smithy_client_1.expectInt32)(output.PendingWindowInDays),
|
|
4511
|
-
};
|
|
4512
|
-
};
|
|
4513
|
-
const de_SigningAlgorithmSpecList = (output, context) => {
|
|
4514
|
-
const retVal = (output || [])
|
|
4515
|
-
.filter((e) => e != null)
|
|
4516
|
-
.map((entry) => {
|
|
4517
|
-
if (entry === null) {
|
|
4518
|
-
return null;
|
|
4519
|
-
}
|
|
4520
|
-
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,
|
|
4521
3565
|
});
|
|
4522
|
-
return retVal;
|
|
4523
3566
|
};
|
|
4524
3567
|
const de_SignResponse = (output, context) => {
|
|
4525
|
-
return {
|
|
4526
|
-
KeyId:
|
|
4527
|
-
Signature:
|
|
4528
|
-
SigningAlgorithm:
|
|
4529
|
-
};
|
|
4530
|
-
};
|
|
4531
|
-
const de_Tag = (output, context) => {
|
|
4532
|
-
return {
|
|
4533
|
-
TagKey: (0, smithy_client_1.expectString)(output.TagKey),
|
|
4534
|
-
TagValue: (0, smithy_client_1.expectString)(output.TagValue),
|
|
4535
|
-
};
|
|
4536
|
-
};
|
|
4537
|
-
const de_TagException = (output, context) => {
|
|
4538
|
-
return {
|
|
4539
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4540
|
-
};
|
|
4541
|
-
};
|
|
4542
|
-
const de_TagList = (output, context) => {
|
|
4543
|
-
const retVal = (output || [])
|
|
4544
|
-
.filter((e) => e != null)
|
|
4545
|
-
.map((entry) => {
|
|
4546
|
-
if (entry === null) {
|
|
4547
|
-
return null;
|
|
4548
|
-
}
|
|
4549
|
-
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,
|
|
4550
3572
|
});
|
|
4551
|
-
return retVal;
|
|
4552
|
-
};
|
|
4553
|
-
const de_UnsupportedOperationException = (output, context) => {
|
|
4554
|
-
return {
|
|
4555
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4556
|
-
};
|
|
4557
|
-
};
|
|
4558
|
-
const de_UpdateCustomKeyStoreResponse = (output, context) => {
|
|
4559
|
-
return {};
|
|
4560
|
-
};
|
|
4561
|
-
const de_VerifyMacResponse = (output, context) => {
|
|
4562
|
-
return {
|
|
4563
|
-
KeyId: (0, smithy_client_1.expectString)(output.KeyId),
|
|
4564
|
-
MacAlgorithm: (0, smithy_client_1.expectString)(output.MacAlgorithm),
|
|
4565
|
-
MacValid: (0, smithy_client_1.expectBoolean)(output.MacValid),
|
|
4566
|
-
};
|
|
4567
|
-
};
|
|
4568
|
-
const de_VerifyResponse = (output, context) => {
|
|
4569
|
-
return {
|
|
4570
|
-
KeyId: (0, smithy_client_1.expectString)(output.KeyId),
|
|
4571
|
-
SignatureValid: (0, smithy_client_1.expectBoolean)(output.SignatureValid),
|
|
4572
|
-
SigningAlgorithm: (0, smithy_client_1.expectString)(output.SigningAlgorithm),
|
|
4573
|
-
};
|
|
4574
|
-
};
|
|
4575
|
-
const de_XksKeyAlreadyInUseException = (output, context) => {
|
|
4576
|
-
return {
|
|
4577
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4578
|
-
};
|
|
4579
|
-
};
|
|
4580
|
-
const de_XksKeyConfigurationType = (output, context) => {
|
|
4581
|
-
return {
|
|
4582
|
-
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
4583
|
-
};
|
|
4584
|
-
};
|
|
4585
|
-
const de_XksKeyInvalidConfigurationException = (output, context) => {
|
|
4586
|
-
return {
|
|
4587
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4588
|
-
};
|
|
4589
|
-
};
|
|
4590
|
-
const de_XksKeyNotFoundException = (output, context) => {
|
|
4591
|
-
return {
|
|
4592
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4593
|
-
};
|
|
4594
|
-
};
|
|
4595
|
-
const de_XksProxyConfigurationType = (output, context) => {
|
|
4596
|
-
return {
|
|
4597
|
-
AccessKeyId: (0, smithy_client_1.expectString)(output.AccessKeyId),
|
|
4598
|
-
Connectivity: (0, smithy_client_1.expectString)(output.Connectivity),
|
|
4599
|
-
UriEndpoint: (0, smithy_client_1.expectString)(output.UriEndpoint),
|
|
4600
|
-
UriPath: (0, smithy_client_1.expectString)(output.UriPath),
|
|
4601
|
-
VpcEndpointServiceName: (0, smithy_client_1.expectString)(output.VpcEndpointServiceName),
|
|
4602
|
-
};
|
|
4603
|
-
};
|
|
4604
|
-
const de_XksProxyIncorrectAuthenticationCredentialException = (output, context) => {
|
|
4605
|
-
return {
|
|
4606
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4607
|
-
};
|
|
4608
|
-
};
|
|
4609
|
-
const de_XksProxyInvalidConfigurationException = (output, context) => {
|
|
4610
|
-
return {
|
|
4611
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4612
|
-
};
|
|
4613
|
-
};
|
|
4614
|
-
const de_XksProxyInvalidResponseException = (output, context) => {
|
|
4615
|
-
return {
|
|
4616
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4617
|
-
};
|
|
4618
|
-
};
|
|
4619
|
-
const de_XksProxyUriEndpointInUseException = (output, context) => {
|
|
4620
|
-
return {
|
|
4621
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4622
|
-
};
|
|
4623
|
-
};
|
|
4624
|
-
const de_XksProxyUriInUseException = (output, context) => {
|
|
4625
|
-
return {
|
|
4626
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4627
|
-
};
|
|
4628
|
-
};
|
|
4629
|
-
const de_XksProxyUriUnreachableException = (output, context) => {
|
|
4630
|
-
return {
|
|
4631
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4632
|
-
};
|
|
4633
|
-
};
|
|
4634
|
-
const de_XksProxyVpcEndpointServiceInUseException = (output, context) => {
|
|
4635
|
-
return {
|
|
4636
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4637
|
-
};
|
|
4638
|
-
};
|
|
4639
|
-
const de_XksProxyVpcEndpointServiceInvalidConfigurationException = (output, context) => {
|
|
4640
|
-
return {
|
|
4641
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4642
|
-
};
|
|
4643
|
-
};
|
|
4644
|
-
const de_XksProxyVpcEndpointServiceNotFoundException = (output, context) => {
|
|
4645
|
-
return {
|
|
4646
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4647
|
-
};
|
|
4648
3573
|
};
|
|
4649
3574
|
const deserializeMetadata = (output) => ({
|
|
4650
3575
|
httpStatusCode: output.statusCode,
|
|
@@ -4659,6 +3584,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
4659
3584
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
4660
3585
|
};
|
|
4661
3586
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
3587
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(KMSServiceException_1.KMSServiceException);
|
|
4662
3588
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
4663
3589
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
4664
3590
|
const contents = {
|
|
@@ -4677,6 +3603,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
4677
3603
|
}
|
|
4678
3604
|
return new protocol_http_1.HttpRequest(contents);
|
|
4679
3605
|
};
|
|
3606
|
+
function sharedHeaders(operation) {
|
|
3607
|
+
return {
|
|
3608
|
+
"content-type": "application/x-amz-json-1.1",
|
|
3609
|
+
"x-amz-target": `TrentService.${operation}`,
|
|
3610
|
+
};
|
|
3611
|
+
}
|
|
4680
3612
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
4681
3613
|
if (encoded.length) {
|
|
4682
3614
|
return JSON.parse(encoded);
|