@aws-sdk/client-kms 3.312.0 → 3.316.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/KMS.js +54 -700
- package/dist-cjs/protocols/Aws_json1_1.js +410 -1334
- package/dist-es/KMS.js +54 -700
- package/dist-es/protocols/Aws_json1_1.js +411 -1335
- package/dist-types/KMS.d.ts +151 -2795
- package/dist-types/ts3.4/KMS.d.ts +2 -1
- package/package.json +6 -6
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp,
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { KMSServiceException as __BaseException } from "../models/KMSServiceException";
|
|
4
4
|
import { AlreadyExistsException, CloudHsmClusterInUseException, CloudHsmClusterInvalidConfigurationException, CloudHsmClusterNotActiveException, CloudHsmClusterNotFoundException, CloudHsmClusterNotRelatedException, CustomKeyStoreHasCMKsException, CustomKeyStoreInvalidStateException, CustomKeyStoreNameInUseException, CustomKeyStoreNotFoundException, DependencyTimeoutException, DisabledException, ExpiredImportTokenException, IncorrectKeyException, IncorrectKeyMaterialException, IncorrectTrustAnchorException, InvalidAliasNameException, InvalidArnException, InvalidCiphertextException, InvalidGrantIdException, InvalidGrantTokenException, InvalidImportTokenException, InvalidKeyUsageException, InvalidMarkerException, KeyUnavailableException, KMSInternalException, KMSInvalidMacException, KMSInvalidSignatureException, KMSInvalidStateException, LimitExceededException, MalformedPolicyDocumentException, NotFoundException, TagException, UnsupportedOperationException, XksKeyAlreadyInUseException, XksKeyInvalidConfigurationException, XksKeyNotFoundException, XksProxyIncorrectAuthenticationCredentialException, XksProxyInvalidConfigurationException, XksProxyInvalidResponseException, XksProxyUriEndpointInUseException, XksProxyUriInUseException, XksProxyUriUnreachableException, XksProxyVpcEndpointServiceInUseException, XksProxyVpcEndpointServiceInvalidConfigurationException, XksProxyVpcEndpointServiceNotFoundException, } from "../models/models_0";
|
|
5
5
|
export const se_CancelKeyDeletionCommand = async (input, context) => {
|
|
6
6
|
const headers = sharedHeaders("CancelKeyDeletion");
|
|
7
7
|
let body;
|
|
8
|
-
body = JSON.stringify(
|
|
8
|
+
body = JSON.stringify(_json(input));
|
|
9
9
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
10
10
|
};
|
|
11
11
|
export const se_ConnectCustomKeyStoreCommand = async (input, context) => {
|
|
12
12
|
const headers = sharedHeaders("ConnectCustomKeyStore");
|
|
13
13
|
let body;
|
|
14
|
-
body = JSON.stringify(
|
|
14
|
+
body = JSON.stringify(_json(input));
|
|
15
15
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
16
16
|
};
|
|
17
17
|
export const se_CreateAliasCommand = async (input, context) => {
|
|
18
18
|
const headers = sharedHeaders("CreateAlias");
|
|
19
19
|
let body;
|
|
20
|
-
body = JSON.stringify(
|
|
20
|
+
body = JSON.stringify(_json(input));
|
|
21
21
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
22
|
};
|
|
23
23
|
export const se_CreateCustomKeyStoreCommand = async (input, context) => {
|
|
24
24
|
const headers = sharedHeaders("CreateCustomKeyStore");
|
|
25
25
|
let body;
|
|
26
|
-
body = JSON.stringify(
|
|
26
|
+
body = JSON.stringify(_json(input));
|
|
27
27
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
28
28
|
};
|
|
29
29
|
export const se_CreateGrantCommand = async (input, context) => {
|
|
30
30
|
const headers = sharedHeaders("CreateGrant");
|
|
31
31
|
let body;
|
|
32
|
-
body = JSON.stringify(
|
|
32
|
+
body = JSON.stringify(_json(input));
|
|
33
33
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
34
34
|
};
|
|
35
35
|
export const se_CreateKeyCommand = async (input, context) => {
|
|
36
36
|
const headers = sharedHeaders("CreateKey");
|
|
37
37
|
let body;
|
|
38
|
-
body = JSON.stringify(
|
|
38
|
+
body = JSON.stringify(_json(input));
|
|
39
39
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
40
40
|
};
|
|
41
41
|
export const se_DecryptCommand = async (input, context) => {
|
|
@@ -47,61 +47,61 @@ export const se_DecryptCommand = async (input, context) => {
|
|
|
47
47
|
export const se_DeleteAliasCommand = async (input, context) => {
|
|
48
48
|
const headers = sharedHeaders("DeleteAlias");
|
|
49
49
|
let body;
|
|
50
|
-
body = JSON.stringify(
|
|
50
|
+
body = JSON.stringify(_json(input));
|
|
51
51
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
52
52
|
};
|
|
53
53
|
export const se_DeleteCustomKeyStoreCommand = async (input, context) => {
|
|
54
54
|
const headers = sharedHeaders("DeleteCustomKeyStore");
|
|
55
55
|
let body;
|
|
56
|
-
body = JSON.stringify(
|
|
56
|
+
body = JSON.stringify(_json(input));
|
|
57
57
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
58
|
};
|
|
59
59
|
export const se_DeleteImportedKeyMaterialCommand = async (input, context) => {
|
|
60
60
|
const headers = sharedHeaders("DeleteImportedKeyMaterial");
|
|
61
61
|
let body;
|
|
62
|
-
body = JSON.stringify(
|
|
62
|
+
body = JSON.stringify(_json(input));
|
|
63
63
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
64
64
|
};
|
|
65
65
|
export const se_DescribeCustomKeyStoresCommand = async (input, context) => {
|
|
66
66
|
const headers = sharedHeaders("DescribeCustomKeyStores");
|
|
67
67
|
let body;
|
|
68
|
-
body = JSON.stringify(
|
|
68
|
+
body = JSON.stringify(_json(input));
|
|
69
69
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
70
70
|
};
|
|
71
71
|
export const se_DescribeKeyCommand = async (input, context) => {
|
|
72
72
|
const headers = sharedHeaders("DescribeKey");
|
|
73
73
|
let body;
|
|
74
|
-
body = JSON.stringify(
|
|
74
|
+
body = JSON.stringify(_json(input));
|
|
75
75
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
76
|
};
|
|
77
77
|
export const se_DisableKeyCommand = async (input, context) => {
|
|
78
78
|
const headers = sharedHeaders("DisableKey");
|
|
79
79
|
let body;
|
|
80
|
-
body = JSON.stringify(
|
|
80
|
+
body = JSON.stringify(_json(input));
|
|
81
81
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
82
82
|
};
|
|
83
83
|
export const se_DisableKeyRotationCommand = async (input, context) => {
|
|
84
84
|
const headers = sharedHeaders("DisableKeyRotation");
|
|
85
85
|
let body;
|
|
86
|
-
body = JSON.stringify(
|
|
86
|
+
body = JSON.stringify(_json(input));
|
|
87
87
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
88
88
|
};
|
|
89
89
|
export const se_DisconnectCustomKeyStoreCommand = async (input, context) => {
|
|
90
90
|
const headers = sharedHeaders("DisconnectCustomKeyStore");
|
|
91
91
|
let body;
|
|
92
|
-
body = JSON.stringify(
|
|
92
|
+
body = JSON.stringify(_json(input));
|
|
93
93
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
94
94
|
};
|
|
95
95
|
export const se_EnableKeyCommand = async (input, context) => {
|
|
96
96
|
const headers = sharedHeaders("EnableKey");
|
|
97
97
|
let body;
|
|
98
|
-
body = JSON.stringify(
|
|
98
|
+
body = JSON.stringify(_json(input));
|
|
99
99
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
100
100
|
};
|
|
101
101
|
export const se_EnableKeyRotationCommand = async (input, context) => {
|
|
102
102
|
const headers = sharedHeaders("EnableKeyRotation");
|
|
103
103
|
let body;
|
|
104
|
-
body = JSON.stringify(
|
|
104
|
+
body = JSON.stringify(_json(input));
|
|
105
105
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
106
106
|
};
|
|
107
107
|
export const se_EncryptCommand = async (input, context) => {
|
|
@@ -113,25 +113,25 @@ export const se_EncryptCommand = async (input, context) => {
|
|
|
113
113
|
export const se_GenerateDataKeyCommand = async (input, context) => {
|
|
114
114
|
const headers = sharedHeaders("GenerateDataKey");
|
|
115
115
|
let body;
|
|
116
|
-
body = JSON.stringify(
|
|
116
|
+
body = JSON.stringify(_json(input));
|
|
117
117
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
118
118
|
};
|
|
119
119
|
export const se_GenerateDataKeyPairCommand = async (input, context) => {
|
|
120
120
|
const headers = sharedHeaders("GenerateDataKeyPair");
|
|
121
121
|
let body;
|
|
122
|
-
body = JSON.stringify(
|
|
122
|
+
body = JSON.stringify(_json(input));
|
|
123
123
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
124
124
|
};
|
|
125
125
|
export const se_GenerateDataKeyPairWithoutPlaintextCommand = async (input, context) => {
|
|
126
126
|
const headers = sharedHeaders("GenerateDataKeyPairWithoutPlaintext");
|
|
127
127
|
let body;
|
|
128
|
-
body = JSON.stringify(
|
|
128
|
+
body = JSON.stringify(_json(input));
|
|
129
129
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
130
130
|
};
|
|
131
131
|
export const se_GenerateDataKeyWithoutPlaintextCommand = async (input, context) => {
|
|
132
132
|
const headers = sharedHeaders("GenerateDataKeyWithoutPlaintext");
|
|
133
133
|
let body;
|
|
134
|
-
body = JSON.stringify(
|
|
134
|
+
body = JSON.stringify(_json(input));
|
|
135
135
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
136
136
|
};
|
|
137
137
|
export const se_GenerateMacCommand = async (input, context) => {
|
|
@@ -143,31 +143,31 @@ export const se_GenerateMacCommand = async (input, context) => {
|
|
|
143
143
|
export const se_GenerateRandomCommand = async (input, context) => {
|
|
144
144
|
const headers = sharedHeaders("GenerateRandom");
|
|
145
145
|
let body;
|
|
146
|
-
body = JSON.stringify(
|
|
146
|
+
body = JSON.stringify(_json(input));
|
|
147
147
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
148
148
|
};
|
|
149
149
|
export const se_GetKeyPolicyCommand = async (input, context) => {
|
|
150
150
|
const headers = sharedHeaders("GetKeyPolicy");
|
|
151
151
|
let body;
|
|
152
|
-
body = JSON.stringify(
|
|
152
|
+
body = JSON.stringify(_json(input));
|
|
153
153
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
154
154
|
};
|
|
155
155
|
export const se_GetKeyRotationStatusCommand = async (input, context) => {
|
|
156
156
|
const headers = sharedHeaders("GetKeyRotationStatus");
|
|
157
157
|
let body;
|
|
158
|
-
body = JSON.stringify(
|
|
158
|
+
body = JSON.stringify(_json(input));
|
|
159
159
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
160
160
|
};
|
|
161
161
|
export const se_GetParametersForImportCommand = async (input, context) => {
|
|
162
162
|
const headers = sharedHeaders("GetParametersForImport");
|
|
163
163
|
let body;
|
|
164
|
-
body = JSON.stringify(
|
|
164
|
+
body = JSON.stringify(_json(input));
|
|
165
165
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
166
166
|
};
|
|
167
167
|
export const se_GetPublicKeyCommand = async (input, context) => {
|
|
168
168
|
const headers = sharedHeaders("GetPublicKey");
|
|
169
169
|
let body;
|
|
170
|
-
body = JSON.stringify(
|
|
170
|
+
body = JSON.stringify(_json(input));
|
|
171
171
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
172
172
|
};
|
|
173
173
|
export const se_ImportKeyMaterialCommand = async (input, context) => {
|
|
@@ -179,43 +179,43 @@ export const se_ImportKeyMaterialCommand = async (input, context) => {
|
|
|
179
179
|
export const se_ListAliasesCommand = async (input, context) => {
|
|
180
180
|
const headers = sharedHeaders("ListAliases");
|
|
181
181
|
let body;
|
|
182
|
-
body = JSON.stringify(
|
|
182
|
+
body = JSON.stringify(_json(input));
|
|
183
183
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
184
184
|
};
|
|
185
185
|
export const se_ListGrantsCommand = async (input, context) => {
|
|
186
186
|
const headers = sharedHeaders("ListGrants");
|
|
187
187
|
let body;
|
|
188
|
-
body = JSON.stringify(
|
|
188
|
+
body = JSON.stringify(_json(input));
|
|
189
189
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
190
190
|
};
|
|
191
191
|
export const se_ListKeyPoliciesCommand = async (input, context) => {
|
|
192
192
|
const headers = sharedHeaders("ListKeyPolicies");
|
|
193
193
|
let body;
|
|
194
|
-
body = JSON.stringify(
|
|
194
|
+
body = JSON.stringify(_json(input));
|
|
195
195
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
196
196
|
};
|
|
197
197
|
export const se_ListKeysCommand = async (input, context) => {
|
|
198
198
|
const headers = sharedHeaders("ListKeys");
|
|
199
199
|
let body;
|
|
200
|
-
body = JSON.stringify(
|
|
200
|
+
body = JSON.stringify(_json(input));
|
|
201
201
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
202
202
|
};
|
|
203
203
|
export const se_ListResourceTagsCommand = async (input, context) => {
|
|
204
204
|
const headers = sharedHeaders("ListResourceTags");
|
|
205
205
|
let body;
|
|
206
|
-
body = JSON.stringify(
|
|
206
|
+
body = JSON.stringify(_json(input));
|
|
207
207
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
208
208
|
};
|
|
209
209
|
export const se_ListRetirableGrantsCommand = async (input, context) => {
|
|
210
210
|
const headers = sharedHeaders("ListRetirableGrants");
|
|
211
211
|
let body;
|
|
212
|
-
body = JSON.stringify(
|
|
212
|
+
body = JSON.stringify(_json(input));
|
|
213
213
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
214
214
|
};
|
|
215
215
|
export const se_PutKeyPolicyCommand = async (input, context) => {
|
|
216
216
|
const headers = sharedHeaders("PutKeyPolicy");
|
|
217
217
|
let body;
|
|
218
|
-
body = JSON.stringify(
|
|
218
|
+
body = JSON.stringify(_json(input));
|
|
219
219
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
220
220
|
};
|
|
221
221
|
export const se_ReEncryptCommand = async (input, context) => {
|
|
@@ -227,25 +227,25 @@ export const se_ReEncryptCommand = async (input, context) => {
|
|
|
227
227
|
export const se_ReplicateKeyCommand = async (input, context) => {
|
|
228
228
|
const headers = sharedHeaders("ReplicateKey");
|
|
229
229
|
let body;
|
|
230
|
-
body = JSON.stringify(
|
|
230
|
+
body = JSON.stringify(_json(input));
|
|
231
231
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
232
232
|
};
|
|
233
233
|
export const se_RetireGrantCommand = async (input, context) => {
|
|
234
234
|
const headers = sharedHeaders("RetireGrant");
|
|
235
235
|
let body;
|
|
236
|
-
body = JSON.stringify(
|
|
236
|
+
body = JSON.stringify(_json(input));
|
|
237
237
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
238
238
|
};
|
|
239
239
|
export const se_RevokeGrantCommand = async (input, context) => {
|
|
240
240
|
const headers = sharedHeaders("RevokeGrant");
|
|
241
241
|
let body;
|
|
242
|
-
body = JSON.stringify(
|
|
242
|
+
body = JSON.stringify(_json(input));
|
|
243
243
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
244
244
|
};
|
|
245
245
|
export const se_ScheduleKeyDeletionCommand = async (input, context) => {
|
|
246
246
|
const headers = sharedHeaders("ScheduleKeyDeletion");
|
|
247
247
|
let body;
|
|
248
|
-
body = JSON.stringify(
|
|
248
|
+
body = JSON.stringify(_json(input));
|
|
249
249
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
250
250
|
};
|
|
251
251
|
export const se_SignCommand = async (input, context) => {
|
|
@@ -257,37 +257,37 @@ export const se_SignCommand = async (input, context) => {
|
|
|
257
257
|
export const se_TagResourceCommand = async (input, context) => {
|
|
258
258
|
const headers = sharedHeaders("TagResource");
|
|
259
259
|
let body;
|
|
260
|
-
body = JSON.stringify(
|
|
260
|
+
body = JSON.stringify(_json(input));
|
|
261
261
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
262
262
|
};
|
|
263
263
|
export const se_UntagResourceCommand = async (input, context) => {
|
|
264
264
|
const headers = sharedHeaders("UntagResource");
|
|
265
265
|
let body;
|
|
266
|
-
body = JSON.stringify(
|
|
266
|
+
body = JSON.stringify(_json(input));
|
|
267
267
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
268
268
|
};
|
|
269
269
|
export const se_UpdateAliasCommand = async (input, context) => {
|
|
270
270
|
const headers = sharedHeaders("UpdateAlias");
|
|
271
271
|
let body;
|
|
272
|
-
body = JSON.stringify(
|
|
272
|
+
body = JSON.stringify(_json(input));
|
|
273
273
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
274
274
|
};
|
|
275
275
|
export const se_UpdateCustomKeyStoreCommand = async (input, context) => {
|
|
276
276
|
const headers = sharedHeaders("UpdateCustomKeyStore");
|
|
277
277
|
let body;
|
|
278
|
-
body = JSON.stringify(
|
|
278
|
+
body = JSON.stringify(_json(input));
|
|
279
279
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
280
280
|
};
|
|
281
281
|
export const se_UpdateKeyDescriptionCommand = async (input, context) => {
|
|
282
282
|
const headers = sharedHeaders("UpdateKeyDescription");
|
|
283
283
|
let body;
|
|
284
|
-
body = JSON.stringify(
|
|
284
|
+
body = JSON.stringify(_json(input));
|
|
285
285
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
286
286
|
};
|
|
287
287
|
export const se_UpdatePrimaryRegionCommand = async (input, context) => {
|
|
288
288
|
const headers = sharedHeaders("UpdatePrimaryRegion");
|
|
289
289
|
let body;
|
|
290
|
-
body = JSON.stringify(
|
|
290
|
+
body = JSON.stringify(_json(input));
|
|
291
291
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
292
292
|
};
|
|
293
293
|
export const se_VerifyCommand = async (input, context) => {
|
|
@@ -308,12 +308,12 @@ export const de_CancelKeyDeletionCommand = async (output, context) => {
|
|
|
308
308
|
}
|
|
309
309
|
const data = await parseBody(output.body, context);
|
|
310
310
|
let contents = {};
|
|
311
|
-
contents =
|
|
311
|
+
contents = _json(data);
|
|
312
312
|
const response = {
|
|
313
313
|
$metadata: deserializeMetadata(output),
|
|
314
314
|
...contents,
|
|
315
315
|
};
|
|
316
|
-
return
|
|
316
|
+
return response;
|
|
317
317
|
};
|
|
318
318
|
const de_CancelKeyDeletionCommandError = async (output, context) => {
|
|
319
319
|
const parsedOutput = {
|
|
@@ -339,10 +339,9 @@ const de_CancelKeyDeletionCommandError = async (output, context) => {
|
|
|
339
339
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
340
340
|
default:
|
|
341
341
|
const parsedBody = parsedOutput.body;
|
|
342
|
-
throwDefaultError({
|
|
342
|
+
return throwDefaultError({
|
|
343
343
|
output,
|
|
344
344
|
parsedBody,
|
|
345
|
-
exceptionCtor: __BaseException,
|
|
346
345
|
errorCode,
|
|
347
346
|
});
|
|
348
347
|
}
|
|
@@ -353,12 +352,12 @@ export const de_ConnectCustomKeyStoreCommand = async (output, context) => {
|
|
|
353
352
|
}
|
|
354
353
|
const data = await parseBody(output.body, context);
|
|
355
354
|
let contents = {};
|
|
356
|
-
contents =
|
|
355
|
+
contents = _json(data);
|
|
357
356
|
const response = {
|
|
358
357
|
$metadata: deserializeMetadata(output),
|
|
359
358
|
...contents,
|
|
360
359
|
};
|
|
361
|
-
return
|
|
360
|
+
return response;
|
|
362
361
|
};
|
|
363
362
|
const de_ConnectCustomKeyStoreCommandError = async (output, context) => {
|
|
364
363
|
const parsedOutput = {
|
|
@@ -384,10 +383,9 @@ const de_ConnectCustomKeyStoreCommandError = async (output, context) => {
|
|
|
384
383
|
throw await de_KMSInternalExceptionRes(parsedOutput, context);
|
|
385
384
|
default:
|
|
386
385
|
const parsedBody = parsedOutput.body;
|
|
387
|
-
throwDefaultError({
|
|
386
|
+
return throwDefaultError({
|
|
388
387
|
output,
|
|
389
388
|
parsedBody,
|
|
390
|
-
exceptionCtor: __BaseException,
|
|
391
389
|
errorCode,
|
|
392
390
|
});
|
|
393
391
|
}
|
|
@@ -400,7 +398,7 @@ export const de_CreateAliasCommand = async (output, context) => {
|
|
|
400
398
|
const response = {
|
|
401
399
|
$metadata: deserializeMetadata(output),
|
|
402
400
|
};
|
|
403
|
-
return
|
|
401
|
+
return response;
|
|
404
402
|
};
|
|
405
403
|
const de_CreateAliasCommandError = async (output, context) => {
|
|
406
404
|
const parsedOutput = {
|
|
@@ -432,10 +430,9 @@ const de_CreateAliasCommandError = async (output, context) => {
|
|
|
432
430
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
433
431
|
default:
|
|
434
432
|
const parsedBody = parsedOutput.body;
|
|
435
|
-
throwDefaultError({
|
|
433
|
+
return throwDefaultError({
|
|
436
434
|
output,
|
|
437
435
|
parsedBody,
|
|
438
|
-
exceptionCtor: __BaseException,
|
|
439
436
|
errorCode,
|
|
440
437
|
});
|
|
441
438
|
}
|
|
@@ -446,12 +443,12 @@ export const de_CreateCustomKeyStoreCommand = async (output, context) => {
|
|
|
446
443
|
}
|
|
447
444
|
const data = await parseBody(output.body, context);
|
|
448
445
|
let contents = {};
|
|
449
|
-
contents =
|
|
446
|
+
contents = _json(data);
|
|
450
447
|
const response = {
|
|
451
448
|
$metadata: deserializeMetadata(output),
|
|
452
449
|
...contents,
|
|
453
450
|
};
|
|
454
|
-
return
|
|
451
|
+
return response;
|
|
455
452
|
};
|
|
456
453
|
const de_CreateCustomKeyStoreCommandError = async (output, context) => {
|
|
457
454
|
const parsedOutput = {
|
|
@@ -513,10 +510,9 @@ const de_CreateCustomKeyStoreCommandError = async (output, context) => {
|
|
|
513
510
|
throw await de_XksProxyVpcEndpointServiceNotFoundExceptionRes(parsedOutput, context);
|
|
514
511
|
default:
|
|
515
512
|
const parsedBody = parsedOutput.body;
|
|
516
|
-
throwDefaultError({
|
|
513
|
+
return throwDefaultError({
|
|
517
514
|
output,
|
|
518
515
|
parsedBody,
|
|
519
|
-
exceptionCtor: __BaseException,
|
|
520
516
|
errorCode,
|
|
521
517
|
});
|
|
522
518
|
}
|
|
@@ -527,12 +523,12 @@ export const de_CreateGrantCommand = async (output, context) => {
|
|
|
527
523
|
}
|
|
528
524
|
const data = await parseBody(output.body, context);
|
|
529
525
|
let contents = {};
|
|
530
|
-
contents =
|
|
526
|
+
contents = _json(data);
|
|
531
527
|
const response = {
|
|
532
528
|
$metadata: deserializeMetadata(output),
|
|
533
529
|
...contents,
|
|
534
530
|
};
|
|
535
|
-
return
|
|
531
|
+
return response;
|
|
536
532
|
};
|
|
537
533
|
const de_CreateGrantCommandError = async (output, context) => {
|
|
538
534
|
const parsedOutput = {
|
|
@@ -567,10 +563,9 @@ const de_CreateGrantCommandError = async (output, context) => {
|
|
|
567
563
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
568
564
|
default:
|
|
569
565
|
const parsedBody = parsedOutput.body;
|
|
570
|
-
throwDefaultError({
|
|
566
|
+
return throwDefaultError({
|
|
571
567
|
output,
|
|
572
568
|
parsedBody,
|
|
573
|
-
exceptionCtor: __BaseException,
|
|
574
569
|
errorCode,
|
|
575
570
|
});
|
|
576
571
|
}
|
|
@@ -586,7 +581,7 @@ export const de_CreateKeyCommand = async (output, context) => {
|
|
|
586
581
|
$metadata: deserializeMetadata(output),
|
|
587
582
|
...contents,
|
|
588
583
|
};
|
|
589
|
-
return
|
|
584
|
+
return response;
|
|
590
585
|
};
|
|
591
586
|
const de_CreateKeyCommandError = async (output, context) => {
|
|
592
587
|
const parsedOutput = {
|
|
@@ -636,10 +631,9 @@ const de_CreateKeyCommandError = async (output, context) => {
|
|
|
636
631
|
throw await de_XksKeyNotFoundExceptionRes(parsedOutput, context);
|
|
637
632
|
default:
|
|
638
633
|
const parsedBody = parsedOutput.body;
|
|
639
|
-
throwDefaultError({
|
|
634
|
+
return throwDefaultError({
|
|
640
635
|
output,
|
|
641
636
|
parsedBody,
|
|
642
|
-
exceptionCtor: __BaseException,
|
|
643
637
|
errorCode,
|
|
644
638
|
});
|
|
645
639
|
}
|
|
@@ -655,7 +649,7 @@ export const de_DecryptCommand = async (output, context) => {
|
|
|
655
649
|
$metadata: deserializeMetadata(output),
|
|
656
650
|
...contents,
|
|
657
651
|
};
|
|
658
|
-
return
|
|
652
|
+
return response;
|
|
659
653
|
};
|
|
660
654
|
const de_DecryptCommandError = async (output, context) => {
|
|
661
655
|
const parsedOutput = {
|
|
@@ -696,10 +690,9 @@ const de_DecryptCommandError = async (output, context) => {
|
|
|
696
690
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
697
691
|
default:
|
|
698
692
|
const parsedBody = parsedOutput.body;
|
|
699
|
-
throwDefaultError({
|
|
693
|
+
return throwDefaultError({
|
|
700
694
|
output,
|
|
701
695
|
parsedBody,
|
|
702
|
-
exceptionCtor: __BaseException,
|
|
703
696
|
errorCode,
|
|
704
697
|
});
|
|
705
698
|
}
|
|
@@ -712,7 +705,7 @@ export const de_DeleteAliasCommand = async (output, context) => {
|
|
|
712
705
|
const response = {
|
|
713
706
|
$metadata: deserializeMetadata(output),
|
|
714
707
|
};
|
|
715
|
-
return
|
|
708
|
+
return response;
|
|
716
709
|
};
|
|
717
710
|
const de_DeleteAliasCommandError = async (output, context) => {
|
|
718
711
|
const parsedOutput = {
|
|
@@ -735,10 +728,9 @@ const de_DeleteAliasCommandError = async (output, context) => {
|
|
|
735
728
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
736
729
|
default:
|
|
737
730
|
const parsedBody = parsedOutput.body;
|
|
738
|
-
throwDefaultError({
|
|
731
|
+
return throwDefaultError({
|
|
739
732
|
output,
|
|
740
733
|
parsedBody,
|
|
741
|
-
exceptionCtor: __BaseException,
|
|
742
734
|
errorCode,
|
|
743
735
|
});
|
|
744
736
|
}
|
|
@@ -749,12 +741,12 @@ export const de_DeleteCustomKeyStoreCommand = async (output, context) => {
|
|
|
749
741
|
}
|
|
750
742
|
const data = await parseBody(output.body, context);
|
|
751
743
|
let contents = {};
|
|
752
|
-
contents =
|
|
744
|
+
contents = _json(data);
|
|
753
745
|
const response = {
|
|
754
746
|
$metadata: deserializeMetadata(output),
|
|
755
747
|
...contents,
|
|
756
748
|
};
|
|
757
|
-
return
|
|
749
|
+
return response;
|
|
758
750
|
};
|
|
759
751
|
const de_DeleteCustomKeyStoreCommandError = async (output, context) => {
|
|
760
752
|
const parsedOutput = {
|
|
@@ -777,10 +769,9 @@ const de_DeleteCustomKeyStoreCommandError = async (output, context) => {
|
|
|
777
769
|
throw await de_KMSInternalExceptionRes(parsedOutput, context);
|
|
778
770
|
default:
|
|
779
771
|
const parsedBody = parsedOutput.body;
|
|
780
|
-
throwDefaultError({
|
|
772
|
+
return throwDefaultError({
|
|
781
773
|
output,
|
|
782
774
|
parsedBody,
|
|
783
|
-
exceptionCtor: __BaseException,
|
|
784
775
|
errorCode,
|
|
785
776
|
});
|
|
786
777
|
}
|
|
@@ -793,7 +784,7 @@ export const de_DeleteImportedKeyMaterialCommand = async (output, context) => {
|
|
|
793
784
|
const response = {
|
|
794
785
|
$metadata: deserializeMetadata(output),
|
|
795
786
|
};
|
|
796
|
-
return
|
|
787
|
+
return response;
|
|
797
788
|
};
|
|
798
789
|
const de_DeleteImportedKeyMaterialCommandError = async (output, context) => {
|
|
799
790
|
const parsedOutput = {
|
|
@@ -822,10 +813,9 @@ const de_DeleteImportedKeyMaterialCommandError = async (output, context) => {
|
|
|
822
813
|
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
823
814
|
default:
|
|
824
815
|
const parsedBody = parsedOutput.body;
|
|
825
|
-
throwDefaultError({
|
|
816
|
+
return throwDefaultError({
|
|
826
817
|
output,
|
|
827
818
|
parsedBody,
|
|
828
|
-
exceptionCtor: __BaseException,
|
|
829
819
|
errorCode,
|
|
830
820
|
});
|
|
831
821
|
}
|
|
@@ -841,7 +831,7 @@ export const de_DescribeCustomKeyStoresCommand = async (output, context) => {
|
|
|
841
831
|
$metadata: deserializeMetadata(output),
|
|
842
832
|
...contents,
|
|
843
833
|
};
|
|
844
|
-
return
|
|
834
|
+
return response;
|
|
845
835
|
};
|
|
846
836
|
const de_DescribeCustomKeyStoresCommandError = async (output, context) => {
|
|
847
837
|
const parsedOutput = {
|
|
@@ -861,10 +851,9 @@ const de_DescribeCustomKeyStoresCommandError = async (output, context) => {
|
|
|
861
851
|
throw await de_KMSInternalExceptionRes(parsedOutput, context);
|
|
862
852
|
default:
|
|
863
853
|
const parsedBody = parsedOutput.body;
|
|
864
|
-
throwDefaultError({
|
|
854
|
+
return throwDefaultError({
|
|
865
855
|
output,
|
|
866
856
|
parsedBody,
|
|
867
|
-
exceptionCtor: __BaseException,
|
|
868
857
|
errorCode,
|
|
869
858
|
});
|
|
870
859
|
}
|
|
@@ -880,7 +869,7 @@ export const de_DescribeKeyCommand = async (output, context) => {
|
|
|
880
869
|
$metadata: deserializeMetadata(output),
|
|
881
870
|
...contents,
|
|
882
871
|
};
|
|
883
|
-
return
|
|
872
|
+
return response;
|
|
884
873
|
};
|
|
885
874
|
const de_DescribeKeyCommandError = async (output, context) => {
|
|
886
875
|
const parsedOutput = {
|
|
@@ -903,10 +892,9 @@ const de_DescribeKeyCommandError = async (output, context) => {
|
|
|
903
892
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
904
893
|
default:
|
|
905
894
|
const parsedBody = parsedOutput.body;
|
|
906
|
-
throwDefaultError({
|
|
895
|
+
return throwDefaultError({
|
|
907
896
|
output,
|
|
908
897
|
parsedBody,
|
|
909
|
-
exceptionCtor: __BaseException,
|
|
910
898
|
errorCode,
|
|
911
899
|
});
|
|
912
900
|
}
|
|
@@ -919,7 +907,7 @@ export const de_DisableKeyCommand = async (output, context) => {
|
|
|
919
907
|
const response = {
|
|
920
908
|
$metadata: deserializeMetadata(output),
|
|
921
909
|
};
|
|
922
|
-
return
|
|
910
|
+
return response;
|
|
923
911
|
};
|
|
924
912
|
const de_DisableKeyCommandError = async (output, context) => {
|
|
925
913
|
const parsedOutput = {
|
|
@@ -945,10 +933,9 @@ const de_DisableKeyCommandError = async (output, context) => {
|
|
|
945
933
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
946
934
|
default:
|
|
947
935
|
const parsedBody = parsedOutput.body;
|
|
948
|
-
throwDefaultError({
|
|
936
|
+
return throwDefaultError({
|
|
949
937
|
output,
|
|
950
938
|
parsedBody,
|
|
951
|
-
exceptionCtor: __BaseException,
|
|
952
939
|
errorCode,
|
|
953
940
|
});
|
|
954
941
|
}
|
|
@@ -961,7 +948,7 @@ export const de_DisableKeyRotationCommand = async (output, context) => {
|
|
|
961
948
|
const response = {
|
|
962
949
|
$metadata: deserializeMetadata(output),
|
|
963
950
|
};
|
|
964
|
-
return
|
|
951
|
+
return response;
|
|
965
952
|
};
|
|
966
953
|
const de_DisableKeyRotationCommandError = async (output, context) => {
|
|
967
954
|
const parsedOutput = {
|
|
@@ -993,10 +980,9 @@ const de_DisableKeyRotationCommandError = async (output, context) => {
|
|
|
993
980
|
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
994
981
|
default:
|
|
995
982
|
const parsedBody = parsedOutput.body;
|
|
996
|
-
throwDefaultError({
|
|
983
|
+
return throwDefaultError({
|
|
997
984
|
output,
|
|
998
985
|
parsedBody,
|
|
999
|
-
exceptionCtor: __BaseException,
|
|
1000
986
|
errorCode,
|
|
1001
987
|
});
|
|
1002
988
|
}
|
|
@@ -1007,12 +993,12 @@ export const de_DisconnectCustomKeyStoreCommand = async (output, context) => {
|
|
|
1007
993
|
}
|
|
1008
994
|
const data = await parseBody(output.body, context);
|
|
1009
995
|
let contents = {};
|
|
1010
|
-
contents =
|
|
996
|
+
contents = _json(data);
|
|
1011
997
|
const response = {
|
|
1012
998
|
$metadata: deserializeMetadata(output),
|
|
1013
999
|
...contents,
|
|
1014
1000
|
};
|
|
1015
|
-
return
|
|
1001
|
+
return response;
|
|
1016
1002
|
};
|
|
1017
1003
|
const de_DisconnectCustomKeyStoreCommandError = async (output, context) => {
|
|
1018
1004
|
const parsedOutput = {
|
|
@@ -1032,10 +1018,9 @@ const de_DisconnectCustomKeyStoreCommandError = async (output, context) => {
|
|
|
1032
1018
|
throw await de_KMSInternalExceptionRes(parsedOutput, context);
|
|
1033
1019
|
default:
|
|
1034
1020
|
const parsedBody = parsedOutput.body;
|
|
1035
|
-
throwDefaultError({
|
|
1021
|
+
return throwDefaultError({
|
|
1036
1022
|
output,
|
|
1037
1023
|
parsedBody,
|
|
1038
|
-
exceptionCtor: __BaseException,
|
|
1039
1024
|
errorCode,
|
|
1040
1025
|
});
|
|
1041
1026
|
}
|
|
@@ -1048,7 +1033,7 @@ export const de_EnableKeyCommand = async (output, context) => {
|
|
|
1048
1033
|
const response = {
|
|
1049
1034
|
$metadata: deserializeMetadata(output),
|
|
1050
1035
|
};
|
|
1051
|
-
return
|
|
1036
|
+
return response;
|
|
1052
1037
|
};
|
|
1053
1038
|
const de_EnableKeyCommandError = async (output, context) => {
|
|
1054
1039
|
const parsedOutput = {
|
|
@@ -1077,10 +1062,9 @@ const de_EnableKeyCommandError = async (output, context) => {
|
|
|
1077
1062
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1078
1063
|
default:
|
|
1079
1064
|
const parsedBody = parsedOutput.body;
|
|
1080
|
-
throwDefaultError({
|
|
1065
|
+
return throwDefaultError({
|
|
1081
1066
|
output,
|
|
1082
1067
|
parsedBody,
|
|
1083
|
-
exceptionCtor: __BaseException,
|
|
1084
1068
|
errorCode,
|
|
1085
1069
|
});
|
|
1086
1070
|
}
|
|
@@ -1093,7 +1077,7 @@ export const de_EnableKeyRotationCommand = async (output, context) => {
|
|
|
1093
1077
|
const response = {
|
|
1094
1078
|
$metadata: deserializeMetadata(output),
|
|
1095
1079
|
};
|
|
1096
|
-
return
|
|
1080
|
+
return response;
|
|
1097
1081
|
};
|
|
1098
1082
|
const de_EnableKeyRotationCommandError = async (output, context) => {
|
|
1099
1083
|
const parsedOutput = {
|
|
@@ -1125,10 +1109,9 @@ const de_EnableKeyRotationCommandError = async (output, context) => {
|
|
|
1125
1109
|
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1126
1110
|
default:
|
|
1127
1111
|
const parsedBody = parsedOutput.body;
|
|
1128
|
-
throwDefaultError({
|
|
1112
|
+
return throwDefaultError({
|
|
1129
1113
|
output,
|
|
1130
1114
|
parsedBody,
|
|
1131
|
-
exceptionCtor: __BaseException,
|
|
1132
1115
|
errorCode,
|
|
1133
1116
|
});
|
|
1134
1117
|
}
|
|
@@ -1144,7 +1127,7 @@ export const de_EncryptCommand = async (output, context) => {
|
|
|
1144
1127
|
$metadata: deserializeMetadata(output),
|
|
1145
1128
|
...contents,
|
|
1146
1129
|
};
|
|
1147
|
-
return
|
|
1130
|
+
return response;
|
|
1148
1131
|
};
|
|
1149
1132
|
const de_EncryptCommandError = async (output, context) => {
|
|
1150
1133
|
const parsedOutput = {
|
|
@@ -1179,10 +1162,9 @@ const de_EncryptCommandError = async (output, context) => {
|
|
|
1179
1162
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1180
1163
|
default:
|
|
1181
1164
|
const parsedBody = parsedOutput.body;
|
|
1182
|
-
throwDefaultError({
|
|
1165
|
+
return throwDefaultError({
|
|
1183
1166
|
output,
|
|
1184
1167
|
parsedBody,
|
|
1185
|
-
exceptionCtor: __BaseException,
|
|
1186
1168
|
errorCode,
|
|
1187
1169
|
});
|
|
1188
1170
|
}
|
|
@@ -1198,7 +1180,7 @@ export const de_GenerateDataKeyCommand = async (output, context) => {
|
|
|
1198
1180
|
$metadata: deserializeMetadata(output),
|
|
1199
1181
|
...contents,
|
|
1200
1182
|
};
|
|
1201
|
-
return
|
|
1183
|
+
return response;
|
|
1202
1184
|
};
|
|
1203
1185
|
const de_GenerateDataKeyCommandError = async (output, context) => {
|
|
1204
1186
|
const parsedOutput = {
|
|
@@ -1233,10 +1215,9 @@ const de_GenerateDataKeyCommandError = async (output, context) => {
|
|
|
1233
1215
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1234
1216
|
default:
|
|
1235
1217
|
const parsedBody = parsedOutput.body;
|
|
1236
|
-
throwDefaultError({
|
|
1218
|
+
return throwDefaultError({
|
|
1237
1219
|
output,
|
|
1238
1220
|
parsedBody,
|
|
1239
|
-
exceptionCtor: __BaseException,
|
|
1240
1221
|
errorCode,
|
|
1241
1222
|
});
|
|
1242
1223
|
}
|
|
@@ -1252,7 +1233,7 @@ export const de_GenerateDataKeyPairCommand = async (output, context) => {
|
|
|
1252
1233
|
$metadata: deserializeMetadata(output),
|
|
1253
1234
|
...contents,
|
|
1254
1235
|
};
|
|
1255
|
-
return
|
|
1236
|
+
return response;
|
|
1256
1237
|
};
|
|
1257
1238
|
const de_GenerateDataKeyPairCommandError = async (output, context) => {
|
|
1258
1239
|
const parsedOutput = {
|
|
@@ -1290,10 +1271,9 @@ const de_GenerateDataKeyPairCommandError = async (output, context) => {
|
|
|
1290
1271
|
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1291
1272
|
default:
|
|
1292
1273
|
const parsedBody = parsedOutput.body;
|
|
1293
|
-
throwDefaultError({
|
|
1274
|
+
return throwDefaultError({
|
|
1294
1275
|
output,
|
|
1295
1276
|
parsedBody,
|
|
1296
|
-
exceptionCtor: __BaseException,
|
|
1297
1277
|
errorCode,
|
|
1298
1278
|
});
|
|
1299
1279
|
}
|
|
@@ -1309,7 +1289,7 @@ export const de_GenerateDataKeyPairWithoutPlaintextCommand = async (output, cont
|
|
|
1309
1289
|
$metadata: deserializeMetadata(output),
|
|
1310
1290
|
...contents,
|
|
1311
1291
|
};
|
|
1312
|
-
return
|
|
1292
|
+
return response;
|
|
1313
1293
|
};
|
|
1314
1294
|
const de_GenerateDataKeyPairWithoutPlaintextCommandError = async (output, context) => {
|
|
1315
1295
|
const parsedOutput = {
|
|
@@ -1347,10 +1327,9 @@ const de_GenerateDataKeyPairWithoutPlaintextCommandError = async (output, contex
|
|
|
1347
1327
|
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1348
1328
|
default:
|
|
1349
1329
|
const parsedBody = parsedOutput.body;
|
|
1350
|
-
throwDefaultError({
|
|
1330
|
+
return throwDefaultError({
|
|
1351
1331
|
output,
|
|
1352
1332
|
parsedBody,
|
|
1353
|
-
exceptionCtor: __BaseException,
|
|
1354
1333
|
errorCode,
|
|
1355
1334
|
});
|
|
1356
1335
|
}
|
|
@@ -1366,7 +1345,7 @@ export const de_GenerateDataKeyWithoutPlaintextCommand = async (output, context)
|
|
|
1366
1345
|
$metadata: deserializeMetadata(output),
|
|
1367
1346
|
...contents,
|
|
1368
1347
|
};
|
|
1369
|
-
return
|
|
1348
|
+
return response;
|
|
1370
1349
|
};
|
|
1371
1350
|
const de_GenerateDataKeyWithoutPlaintextCommandError = async (output, context) => {
|
|
1372
1351
|
const parsedOutput = {
|
|
@@ -1401,10 +1380,9 @@ const de_GenerateDataKeyWithoutPlaintextCommandError = async (output, context) =
|
|
|
1401
1380
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1402
1381
|
default:
|
|
1403
1382
|
const parsedBody = parsedOutput.body;
|
|
1404
|
-
throwDefaultError({
|
|
1383
|
+
return throwDefaultError({
|
|
1405
1384
|
output,
|
|
1406
1385
|
parsedBody,
|
|
1407
|
-
exceptionCtor: __BaseException,
|
|
1408
1386
|
errorCode,
|
|
1409
1387
|
});
|
|
1410
1388
|
}
|
|
@@ -1420,7 +1398,7 @@ export const de_GenerateMacCommand = async (output, context) => {
|
|
|
1420
1398
|
$metadata: deserializeMetadata(output),
|
|
1421
1399
|
...contents,
|
|
1422
1400
|
};
|
|
1423
|
-
return
|
|
1401
|
+
return response;
|
|
1424
1402
|
};
|
|
1425
1403
|
const de_GenerateMacCommandError = async (output, context) => {
|
|
1426
1404
|
const parsedOutput = {
|
|
@@ -1452,10 +1430,9 @@ const de_GenerateMacCommandError = async (output, context) => {
|
|
|
1452
1430
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1453
1431
|
default:
|
|
1454
1432
|
const parsedBody = parsedOutput.body;
|
|
1455
|
-
throwDefaultError({
|
|
1433
|
+
return throwDefaultError({
|
|
1456
1434
|
output,
|
|
1457
1435
|
parsedBody,
|
|
1458
|
-
exceptionCtor: __BaseException,
|
|
1459
1436
|
errorCode,
|
|
1460
1437
|
});
|
|
1461
1438
|
}
|
|
@@ -1471,7 +1448,7 @@ export const de_GenerateRandomCommand = async (output, context) => {
|
|
|
1471
1448
|
$metadata: deserializeMetadata(output),
|
|
1472
1449
|
...contents,
|
|
1473
1450
|
};
|
|
1474
|
-
return
|
|
1451
|
+
return response;
|
|
1475
1452
|
};
|
|
1476
1453
|
const de_GenerateRandomCommandError = async (output, context) => {
|
|
1477
1454
|
const parsedOutput = {
|
|
@@ -1497,10 +1474,9 @@ const de_GenerateRandomCommandError = async (output, context) => {
|
|
|
1497
1474
|
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1498
1475
|
default:
|
|
1499
1476
|
const parsedBody = parsedOutput.body;
|
|
1500
|
-
throwDefaultError({
|
|
1477
|
+
return throwDefaultError({
|
|
1501
1478
|
output,
|
|
1502
1479
|
parsedBody,
|
|
1503
|
-
exceptionCtor: __BaseException,
|
|
1504
1480
|
errorCode,
|
|
1505
1481
|
});
|
|
1506
1482
|
}
|
|
@@ -1511,12 +1487,12 @@ export const de_GetKeyPolicyCommand = async (output, context) => {
|
|
|
1511
1487
|
}
|
|
1512
1488
|
const data = await parseBody(output.body, context);
|
|
1513
1489
|
let contents = {};
|
|
1514
|
-
contents =
|
|
1490
|
+
contents = _json(data);
|
|
1515
1491
|
const response = {
|
|
1516
1492
|
$metadata: deserializeMetadata(output),
|
|
1517
1493
|
...contents,
|
|
1518
1494
|
};
|
|
1519
|
-
return
|
|
1495
|
+
return response;
|
|
1520
1496
|
};
|
|
1521
1497
|
const de_GetKeyPolicyCommandError = async (output, context) => {
|
|
1522
1498
|
const parsedOutput = {
|
|
@@ -1542,10 +1518,9 @@ const de_GetKeyPolicyCommandError = async (output, context) => {
|
|
|
1542
1518
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1543
1519
|
default:
|
|
1544
1520
|
const parsedBody = parsedOutput.body;
|
|
1545
|
-
throwDefaultError({
|
|
1521
|
+
return throwDefaultError({
|
|
1546
1522
|
output,
|
|
1547
1523
|
parsedBody,
|
|
1548
|
-
exceptionCtor: __BaseException,
|
|
1549
1524
|
errorCode,
|
|
1550
1525
|
});
|
|
1551
1526
|
}
|
|
@@ -1556,12 +1531,12 @@ export const de_GetKeyRotationStatusCommand = async (output, context) => {
|
|
|
1556
1531
|
}
|
|
1557
1532
|
const data = await parseBody(output.body, context);
|
|
1558
1533
|
let contents = {};
|
|
1559
|
-
contents =
|
|
1534
|
+
contents = _json(data);
|
|
1560
1535
|
const response = {
|
|
1561
1536
|
$metadata: deserializeMetadata(output),
|
|
1562
1537
|
...contents,
|
|
1563
1538
|
};
|
|
1564
|
-
return
|
|
1539
|
+
return response;
|
|
1565
1540
|
};
|
|
1566
1541
|
const de_GetKeyRotationStatusCommandError = async (output, context) => {
|
|
1567
1542
|
const parsedOutput = {
|
|
@@ -1590,10 +1565,9 @@ const de_GetKeyRotationStatusCommandError = async (output, context) => {
|
|
|
1590
1565
|
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1591
1566
|
default:
|
|
1592
1567
|
const parsedBody = parsedOutput.body;
|
|
1593
|
-
throwDefaultError({
|
|
1568
|
+
return throwDefaultError({
|
|
1594
1569
|
output,
|
|
1595
1570
|
parsedBody,
|
|
1596
|
-
exceptionCtor: __BaseException,
|
|
1597
1571
|
errorCode,
|
|
1598
1572
|
});
|
|
1599
1573
|
}
|
|
@@ -1609,7 +1583,7 @@ export const de_GetParametersForImportCommand = async (output, context) => {
|
|
|
1609
1583
|
$metadata: deserializeMetadata(output),
|
|
1610
1584
|
...contents,
|
|
1611
1585
|
};
|
|
1612
|
-
return
|
|
1586
|
+
return response;
|
|
1613
1587
|
};
|
|
1614
1588
|
const de_GetParametersForImportCommandError = async (output, context) => {
|
|
1615
1589
|
const parsedOutput = {
|
|
@@ -1638,10 +1612,9 @@ const de_GetParametersForImportCommandError = async (output, context) => {
|
|
|
1638
1612
|
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1639
1613
|
default:
|
|
1640
1614
|
const parsedBody = parsedOutput.body;
|
|
1641
|
-
throwDefaultError({
|
|
1615
|
+
return throwDefaultError({
|
|
1642
1616
|
output,
|
|
1643
1617
|
parsedBody,
|
|
1644
|
-
exceptionCtor: __BaseException,
|
|
1645
1618
|
errorCode,
|
|
1646
1619
|
});
|
|
1647
1620
|
}
|
|
@@ -1657,7 +1630,7 @@ export const de_GetPublicKeyCommand = async (output, context) => {
|
|
|
1657
1630
|
$metadata: deserializeMetadata(output),
|
|
1658
1631
|
...contents,
|
|
1659
1632
|
};
|
|
1660
|
-
return
|
|
1633
|
+
return response;
|
|
1661
1634
|
};
|
|
1662
1635
|
const de_GetPublicKeyCommandError = async (output, context) => {
|
|
1663
1636
|
const parsedOutput = {
|
|
@@ -1698,10 +1671,9 @@ const de_GetPublicKeyCommandError = async (output, context) => {
|
|
|
1698
1671
|
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1699
1672
|
default:
|
|
1700
1673
|
const parsedBody = parsedOutput.body;
|
|
1701
|
-
throwDefaultError({
|
|
1674
|
+
return throwDefaultError({
|
|
1702
1675
|
output,
|
|
1703
1676
|
parsedBody,
|
|
1704
|
-
exceptionCtor: __BaseException,
|
|
1705
1677
|
errorCode,
|
|
1706
1678
|
});
|
|
1707
1679
|
}
|
|
@@ -1712,12 +1684,12 @@ export const de_ImportKeyMaterialCommand = async (output, context) => {
|
|
|
1712
1684
|
}
|
|
1713
1685
|
const data = await parseBody(output.body, context);
|
|
1714
1686
|
let contents = {};
|
|
1715
|
-
contents =
|
|
1687
|
+
contents = _json(data);
|
|
1716
1688
|
const response = {
|
|
1717
1689
|
$metadata: deserializeMetadata(output),
|
|
1718
1690
|
...contents,
|
|
1719
1691
|
};
|
|
1720
|
-
return
|
|
1692
|
+
return response;
|
|
1721
1693
|
};
|
|
1722
1694
|
const de_ImportKeyMaterialCommandError = async (output, context) => {
|
|
1723
1695
|
const parsedOutput = {
|
|
@@ -1758,10 +1730,9 @@ const de_ImportKeyMaterialCommandError = async (output, context) => {
|
|
|
1758
1730
|
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1759
1731
|
default:
|
|
1760
1732
|
const parsedBody = parsedOutput.body;
|
|
1761
|
-
throwDefaultError({
|
|
1733
|
+
return throwDefaultError({
|
|
1762
1734
|
output,
|
|
1763
1735
|
parsedBody,
|
|
1764
|
-
exceptionCtor: __BaseException,
|
|
1765
1736
|
errorCode,
|
|
1766
1737
|
});
|
|
1767
1738
|
}
|
|
@@ -1777,7 +1748,7 @@ export const de_ListAliasesCommand = async (output, context) => {
|
|
|
1777
1748
|
$metadata: deserializeMetadata(output),
|
|
1778
1749
|
...contents,
|
|
1779
1750
|
};
|
|
1780
|
-
return
|
|
1751
|
+
return response;
|
|
1781
1752
|
};
|
|
1782
1753
|
const de_ListAliasesCommandError = async (output, context) => {
|
|
1783
1754
|
const parsedOutput = {
|
|
@@ -1803,10 +1774,9 @@ const de_ListAliasesCommandError = async (output, context) => {
|
|
|
1803
1774
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1804
1775
|
default:
|
|
1805
1776
|
const parsedBody = parsedOutput.body;
|
|
1806
|
-
throwDefaultError({
|
|
1777
|
+
return throwDefaultError({
|
|
1807
1778
|
output,
|
|
1808
1779
|
parsedBody,
|
|
1809
|
-
exceptionCtor: __BaseException,
|
|
1810
1780
|
errorCode,
|
|
1811
1781
|
});
|
|
1812
1782
|
}
|
|
@@ -1822,7 +1792,7 @@ export const de_ListGrantsCommand = async (output, context) => {
|
|
|
1822
1792
|
$metadata: deserializeMetadata(output),
|
|
1823
1793
|
...contents,
|
|
1824
1794
|
};
|
|
1825
|
-
return
|
|
1795
|
+
return response;
|
|
1826
1796
|
};
|
|
1827
1797
|
const de_ListGrantsCommandError = async (output, context) => {
|
|
1828
1798
|
const parsedOutput = {
|
|
@@ -1854,10 +1824,9 @@ const de_ListGrantsCommandError = async (output, context) => {
|
|
|
1854
1824
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1855
1825
|
default:
|
|
1856
1826
|
const parsedBody = parsedOutput.body;
|
|
1857
|
-
throwDefaultError({
|
|
1827
|
+
return throwDefaultError({
|
|
1858
1828
|
output,
|
|
1859
1829
|
parsedBody,
|
|
1860
|
-
exceptionCtor: __BaseException,
|
|
1861
1830
|
errorCode,
|
|
1862
1831
|
});
|
|
1863
1832
|
}
|
|
@@ -1868,12 +1837,12 @@ export const de_ListKeyPoliciesCommand = async (output, context) => {
|
|
|
1868
1837
|
}
|
|
1869
1838
|
const data = await parseBody(output.body, context);
|
|
1870
1839
|
let contents = {};
|
|
1871
|
-
contents =
|
|
1840
|
+
contents = _json(data);
|
|
1872
1841
|
const response = {
|
|
1873
1842
|
$metadata: deserializeMetadata(output),
|
|
1874
1843
|
...contents,
|
|
1875
1844
|
};
|
|
1876
|
-
return
|
|
1845
|
+
return response;
|
|
1877
1846
|
};
|
|
1878
1847
|
const de_ListKeyPoliciesCommandError = async (output, context) => {
|
|
1879
1848
|
const parsedOutput = {
|
|
@@ -1899,10 +1868,9 @@ const de_ListKeyPoliciesCommandError = async (output, context) => {
|
|
|
1899
1868
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1900
1869
|
default:
|
|
1901
1870
|
const parsedBody = parsedOutput.body;
|
|
1902
|
-
throwDefaultError({
|
|
1871
|
+
return throwDefaultError({
|
|
1903
1872
|
output,
|
|
1904
1873
|
parsedBody,
|
|
1905
|
-
exceptionCtor: __BaseException,
|
|
1906
1874
|
errorCode,
|
|
1907
1875
|
});
|
|
1908
1876
|
}
|
|
@@ -1913,12 +1881,12 @@ export const de_ListKeysCommand = async (output, context) => {
|
|
|
1913
1881
|
}
|
|
1914
1882
|
const data = await parseBody(output.body, context);
|
|
1915
1883
|
let contents = {};
|
|
1916
|
-
contents =
|
|
1884
|
+
contents = _json(data);
|
|
1917
1885
|
const response = {
|
|
1918
1886
|
$metadata: deserializeMetadata(output),
|
|
1919
1887
|
...contents,
|
|
1920
1888
|
};
|
|
1921
|
-
return
|
|
1889
|
+
return response;
|
|
1922
1890
|
};
|
|
1923
1891
|
const de_ListKeysCommandError = async (output, context) => {
|
|
1924
1892
|
const parsedOutput = {
|
|
@@ -1938,10 +1906,9 @@ const de_ListKeysCommandError = async (output, context) => {
|
|
|
1938
1906
|
throw await de_KMSInternalExceptionRes(parsedOutput, context);
|
|
1939
1907
|
default:
|
|
1940
1908
|
const parsedBody = parsedOutput.body;
|
|
1941
|
-
throwDefaultError({
|
|
1909
|
+
return throwDefaultError({
|
|
1942
1910
|
output,
|
|
1943
1911
|
parsedBody,
|
|
1944
|
-
exceptionCtor: __BaseException,
|
|
1945
1912
|
errorCode,
|
|
1946
1913
|
});
|
|
1947
1914
|
}
|
|
@@ -1952,12 +1919,12 @@ export const de_ListResourceTagsCommand = async (output, context) => {
|
|
|
1952
1919
|
}
|
|
1953
1920
|
const data = await parseBody(output.body, context);
|
|
1954
1921
|
let contents = {};
|
|
1955
|
-
contents =
|
|
1922
|
+
contents = _json(data);
|
|
1956
1923
|
const response = {
|
|
1957
1924
|
$metadata: deserializeMetadata(output),
|
|
1958
1925
|
...contents,
|
|
1959
1926
|
};
|
|
1960
|
-
return
|
|
1927
|
+
return response;
|
|
1961
1928
|
};
|
|
1962
1929
|
const de_ListResourceTagsCommandError = async (output, context) => {
|
|
1963
1930
|
const parsedOutput = {
|
|
@@ -1980,10 +1947,9 @@ const de_ListResourceTagsCommandError = async (output, context) => {
|
|
|
1980
1947
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1981
1948
|
default:
|
|
1982
1949
|
const parsedBody = parsedOutput.body;
|
|
1983
|
-
throwDefaultError({
|
|
1950
|
+
return throwDefaultError({
|
|
1984
1951
|
output,
|
|
1985
1952
|
parsedBody,
|
|
1986
|
-
exceptionCtor: __BaseException,
|
|
1987
1953
|
errorCode,
|
|
1988
1954
|
});
|
|
1989
1955
|
}
|
|
@@ -1999,7 +1965,7 @@ export const de_ListRetirableGrantsCommand = async (output, context) => {
|
|
|
1999
1965
|
$metadata: deserializeMetadata(output),
|
|
2000
1966
|
...contents,
|
|
2001
1967
|
};
|
|
2002
|
-
return
|
|
1968
|
+
return response;
|
|
2003
1969
|
};
|
|
2004
1970
|
const de_ListRetirableGrantsCommandError = async (output, context) => {
|
|
2005
1971
|
const parsedOutput = {
|
|
@@ -2025,10 +1991,9 @@ const de_ListRetirableGrantsCommandError = async (output, context) => {
|
|
|
2025
1991
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2026
1992
|
default:
|
|
2027
1993
|
const parsedBody = parsedOutput.body;
|
|
2028
|
-
throwDefaultError({
|
|
1994
|
+
return throwDefaultError({
|
|
2029
1995
|
output,
|
|
2030
1996
|
parsedBody,
|
|
2031
|
-
exceptionCtor: __BaseException,
|
|
2032
1997
|
errorCode,
|
|
2033
1998
|
});
|
|
2034
1999
|
}
|
|
@@ -2041,7 +2006,7 @@ export const de_PutKeyPolicyCommand = async (output, context) => {
|
|
|
2041
2006
|
const response = {
|
|
2042
2007
|
$metadata: deserializeMetadata(output),
|
|
2043
2008
|
};
|
|
2044
|
-
return
|
|
2009
|
+
return response;
|
|
2045
2010
|
};
|
|
2046
2011
|
const de_PutKeyPolicyCommandError = async (output, context) => {
|
|
2047
2012
|
const parsedOutput = {
|
|
@@ -2076,10 +2041,9 @@ const de_PutKeyPolicyCommandError = async (output, context) => {
|
|
|
2076
2041
|
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2077
2042
|
default:
|
|
2078
2043
|
const parsedBody = parsedOutput.body;
|
|
2079
|
-
throwDefaultError({
|
|
2044
|
+
return throwDefaultError({
|
|
2080
2045
|
output,
|
|
2081
2046
|
parsedBody,
|
|
2082
|
-
exceptionCtor: __BaseException,
|
|
2083
2047
|
errorCode,
|
|
2084
2048
|
});
|
|
2085
2049
|
}
|
|
@@ -2095,7 +2059,7 @@ export const de_ReEncryptCommand = async (output, context) => {
|
|
|
2095
2059
|
$metadata: deserializeMetadata(output),
|
|
2096
2060
|
...contents,
|
|
2097
2061
|
};
|
|
2098
|
-
return
|
|
2062
|
+
return response;
|
|
2099
2063
|
};
|
|
2100
2064
|
const de_ReEncryptCommandError = async (output, context) => {
|
|
2101
2065
|
const parsedOutput = {
|
|
@@ -2136,10 +2100,9 @@ const de_ReEncryptCommandError = async (output, context) => {
|
|
|
2136
2100
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2137
2101
|
default:
|
|
2138
2102
|
const parsedBody = parsedOutput.body;
|
|
2139
|
-
throwDefaultError({
|
|
2103
|
+
return throwDefaultError({
|
|
2140
2104
|
output,
|
|
2141
2105
|
parsedBody,
|
|
2142
|
-
exceptionCtor: __BaseException,
|
|
2143
2106
|
errorCode,
|
|
2144
2107
|
});
|
|
2145
2108
|
}
|
|
@@ -2155,7 +2118,7 @@ export const de_ReplicateKeyCommand = async (output, context) => {
|
|
|
2155
2118
|
$metadata: deserializeMetadata(output),
|
|
2156
2119
|
...contents,
|
|
2157
2120
|
};
|
|
2158
|
-
return
|
|
2121
|
+
return response;
|
|
2159
2122
|
};
|
|
2160
2123
|
const de_ReplicateKeyCommandError = async (output, context) => {
|
|
2161
2124
|
const parsedOutput = {
|
|
@@ -2196,10 +2159,9 @@ const de_ReplicateKeyCommandError = async (output, context) => {
|
|
|
2196
2159
|
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2197
2160
|
default:
|
|
2198
2161
|
const parsedBody = parsedOutput.body;
|
|
2199
|
-
throwDefaultError({
|
|
2162
|
+
return throwDefaultError({
|
|
2200
2163
|
output,
|
|
2201
2164
|
parsedBody,
|
|
2202
|
-
exceptionCtor: __BaseException,
|
|
2203
2165
|
errorCode,
|
|
2204
2166
|
});
|
|
2205
2167
|
}
|
|
@@ -2212,7 +2174,7 @@ export const de_RetireGrantCommand = async (output, context) => {
|
|
|
2212
2174
|
const response = {
|
|
2213
2175
|
$metadata: deserializeMetadata(output),
|
|
2214
2176
|
};
|
|
2215
|
-
return
|
|
2177
|
+
return response;
|
|
2216
2178
|
};
|
|
2217
2179
|
const de_RetireGrantCommandError = async (output, context) => {
|
|
2218
2180
|
const parsedOutput = {
|
|
@@ -2244,10 +2206,9 @@ const de_RetireGrantCommandError = async (output, context) => {
|
|
|
2244
2206
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2245
2207
|
default:
|
|
2246
2208
|
const parsedBody = parsedOutput.body;
|
|
2247
|
-
throwDefaultError({
|
|
2209
|
+
return throwDefaultError({
|
|
2248
2210
|
output,
|
|
2249
2211
|
parsedBody,
|
|
2250
|
-
exceptionCtor: __BaseException,
|
|
2251
2212
|
errorCode,
|
|
2252
2213
|
});
|
|
2253
2214
|
}
|
|
@@ -2260,7 +2221,7 @@ export const de_RevokeGrantCommand = async (output, context) => {
|
|
|
2260
2221
|
const response = {
|
|
2261
2222
|
$metadata: deserializeMetadata(output),
|
|
2262
2223
|
};
|
|
2263
|
-
return
|
|
2224
|
+
return response;
|
|
2264
2225
|
};
|
|
2265
2226
|
const de_RevokeGrantCommandError = async (output, context) => {
|
|
2266
2227
|
const parsedOutput = {
|
|
@@ -2289,10 +2250,9 @@ const de_RevokeGrantCommandError = async (output, context) => {
|
|
|
2289
2250
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2290
2251
|
default:
|
|
2291
2252
|
const parsedBody = parsedOutput.body;
|
|
2292
|
-
throwDefaultError({
|
|
2253
|
+
return throwDefaultError({
|
|
2293
2254
|
output,
|
|
2294
2255
|
parsedBody,
|
|
2295
|
-
exceptionCtor: __BaseException,
|
|
2296
2256
|
errorCode,
|
|
2297
2257
|
});
|
|
2298
2258
|
}
|
|
@@ -2308,7 +2268,7 @@ export const de_ScheduleKeyDeletionCommand = async (output, context) => {
|
|
|
2308
2268
|
$metadata: deserializeMetadata(output),
|
|
2309
2269
|
...contents,
|
|
2310
2270
|
};
|
|
2311
|
-
return
|
|
2271
|
+
return response;
|
|
2312
2272
|
};
|
|
2313
2273
|
const de_ScheduleKeyDeletionCommandError = async (output, context) => {
|
|
2314
2274
|
const parsedOutput = {
|
|
@@ -2334,10 +2294,9 @@ const de_ScheduleKeyDeletionCommandError = async (output, context) => {
|
|
|
2334
2294
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2335
2295
|
default:
|
|
2336
2296
|
const parsedBody = parsedOutput.body;
|
|
2337
|
-
throwDefaultError({
|
|
2297
|
+
return throwDefaultError({
|
|
2338
2298
|
output,
|
|
2339
2299
|
parsedBody,
|
|
2340
|
-
exceptionCtor: __BaseException,
|
|
2341
2300
|
errorCode,
|
|
2342
2301
|
});
|
|
2343
2302
|
}
|
|
@@ -2353,7 +2312,7 @@ export const de_SignCommand = async (output, context) => {
|
|
|
2353
2312
|
$metadata: deserializeMetadata(output),
|
|
2354
2313
|
...contents,
|
|
2355
2314
|
};
|
|
2356
|
-
return
|
|
2315
|
+
return response;
|
|
2357
2316
|
};
|
|
2358
2317
|
const de_SignCommandError = async (output, context) => {
|
|
2359
2318
|
const parsedOutput = {
|
|
@@ -2388,10 +2347,9 @@ const de_SignCommandError = async (output, context) => {
|
|
|
2388
2347
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2389
2348
|
default:
|
|
2390
2349
|
const parsedBody = parsedOutput.body;
|
|
2391
|
-
throwDefaultError({
|
|
2350
|
+
return throwDefaultError({
|
|
2392
2351
|
output,
|
|
2393
2352
|
parsedBody,
|
|
2394
|
-
exceptionCtor: __BaseException,
|
|
2395
2353
|
errorCode,
|
|
2396
2354
|
});
|
|
2397
2355
|
}
|
|
@@ -2404,7 +2362,7 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
2404
2362
|
const response = {
|
|
2405
2363
|
$metadata: deserializeMetadata(output),
|
|
2406
2364
|
};
|
|
2407
|
-
return
|
|
2365
|
+
return response;
|
|
2408
2366
|
};
|
|
2409
2367
|
const de_TagResourceCommandError = async (output, context) => {
|
|
2410
2368
|
const parsedOutput = {
|
|
@@ -2433,10 +2391,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
2433
2391
|
throw await de_TagExceptionRes(parsedOutput, context);
|
|
2434
2392
|
default:
|
|
2435
2393
|
const parsedBody = parsedOutput.body;
|
|
2436
|
-
throwDefaultError({
|
|
2394
|
+
return throwDefaultError({
|
|
2437
2395
|
output,
|
|
2438
2396
|
parsedBody,
|
|
2439
|
-
exceptionCtor: __BaseException,
|
|
2440
2397
|
errorCode,
|
|
2441
2398
|
});
|
|
2442
2399
|
}
|
|
@@ -2449,7 +2406,7 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
2449
2406
|
const response = {
|
|
2450
2407
|
$metadata: deserializeMetadata(output),
|
|
2451
2408
|
};
|
|
2452
|
-
return
|
|
2409
|
+
return response;
|
|
2453
2410
|
};
|
|
2454
2411
|
const de_UntagResourceCommandError = async (output, context) => {
|
|
2455
2412
|
const parsedOutput = {
|
|
@@ -2475,10 +2432,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
2475
2432
|
throw await de_TagExceptionRes(parsedOutput, context);
|
|
2476
2433
|
default:
|
|
2477
2434
|
const parsedBody = parsedOutput.body;
|
|
2478
|
-
throwDefaultError({
|
|
2435
|
+
return throwDefaultError({
|
|
2479
2436
|
output,
|
|
2480
2437
|
parsedBody,
|
|
2481
|
-
exceptionCtor: __BaseException,
|
|
2482
2438
|
errorCode,
|
|
2483
2439
|
});
|
|
2484
2440
|
}
|
|
@@ -2491,7 +2447,7 @@ export const de_UpdateAliasCommand = async (output, context) => {
|
|
|
2491
2447
|
const response = {
|
|
2492
2448
|
$metadata: deserializeMetadata(output),
|
|
2493
2449
|
};
|
|
2494
|
-
return
|
|
2450
|
+
return response;
|
|
2495
2451
|
};
|
|
2496
2452
|
const de_UpdateAliasCommandError = async (output, context) => {
|
|
2497
2453
|
const parsedOutput = {
|
|
@@ -2517,10 +2473,9 @@ const de_UpdateAliasCommandError = async (output, context) => {
|
|
|
2517
2473
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2518
2474
|
default:
|
|
2519
2475
|
const parsedBody = parsedOutput.body;
|
|
2520
|
-
throwDefaultError({
|
|
2476
|
+
return throwDefaultError({
|
|
2521
2477
|
output,
|
|
2522
2478
|
parsedBody,
|
|
2523
|
-
exceptionCtor: __BaseException,
|
|
2524
2479
|
errorCode,
|
|
2525
2480
|
});
|
|
2526
2481
|
}
|
|
@@ -2531,12 +2486,12 @@ export const de_UpdateCustomKeyStoreCommand = async (output, context) => {
|
|
|
2531
2486
|
}
|
|
2532
2487
|
const data = await parseBody(output.body, context);
|
|
2533
2488
|
let contents = {};
|
|
2534
|
-
contents =
|
|
2489
|
+
contents = _json(data);
|
|
2535
2490
|
const response = {
|
|
2536
2491
|
$metadata: deserializeMetadata(output),
|
|
2537
2492
|
...contents,
|
|
2538
2493
|
};
|
|
2539
|
-
return
|
|
2494
|
+
return response;
|
|
2540
2495
|
};
|
|
2541
2496
|
const de_UpdateCustomKeyStoreCommandError = async (output, context) => {
|
|
2542
2497
|
const parsedOutput = {
|
|
@@ -2598,10 +2553,9 @@ const de_UpdateCustomKeyStoreCommandError = async (output, context) => {
|
|
|
2598
2553
|
throw await de_XksProxyVpcEndpointServiceNotFoundExceptionRes(parsedOutput, context);
|
|
2599
2554
|
default:
|
|
2600
2555
|
const parsedBody = parsedOutput.body;
|
|
2601
|
-
throwDefaultError({
|
|
2556
|
+
return throwDefaultError({
|
|
2602
2557
|
output,
|
|
2603
2558
|
parsedBody,
|
|
2604
|
-
exceptionCtor: __BaseException,
|
|
2605
2559
|
errorCode,
|
|
2606
2560
|
});
|
|
2607
2561
|
}
|
|
@@ -2614,7 +2568,7 @@ export const de_UpdateKeyDescriptionCommand = async (output, context) => {
|
|
|
2614
2568
|
const response = {
|
|
2615
2569
|
$metadata: deserializeMetadata(output),
|
|
2616
2570
|
};
|
|
2617
|
-
return
|
|
2571
|
+
return response;
|
|
2618
2572
|
};
|
|
2619
2573
|
const de_UpdateKeyDescriptionCommandError = async (output, context) => {
|
|
2620
2574
|
const parsedOutput = {
|
|
@@ -2640,10 +2594,9 @@ const de_UpdateKeyDescriptionCommandError = async (output, context) => {
|
|
|
2640
2594
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2641
2595
|
default:
|
|
2642
2596
|
const parsedBody = parsedOutput.body;
|
|
2643
|
-
throwDefaultError({
|
|
2597
|
+
return throwDefaultError({
|
|
2644
2598
|
output,
|
|
2645
2599
|
parsedBody,
|
|
2646
|
-
exceptionCtor: __BaseException,
|
|
2647
2600
|
errorCode,
|
|
2648
2601
|
});
|
|
2649
2602
|
}
|
|
@@ -2656,7 +2609,7 @@ export const de_UpdatePrimaryRegionCommand = async (output, context) => {
|
|
|
2656
2609
|
const response = {
|
|
2657
2610
|
$metadata: deserializeMetadata(output),
|
|
2658
2611
|
};
|
|
2659
|
-
return
|
|
2612
|
+
return response;
|
|
2660
2613
|
};
|
|
2661
2614
|
const de_UpdatePrimaryRegionCommandError = async (output, context) => {
|
|
2662
2615
|
const parsedOutput = {
|
|
@@ -2685,10 +2638,9 @@ const de_UpdatePrimaryRegionCommandError = async (output, context) => {
|
|
|
2685
2638
|
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2686
2639
|
default:
|
|
2687
2640
|
const parsedBody = parsedOutput.body;
|
|
2688
|
-
throwDefaultError({
|
|
2641
|
+
return throwDefaultError({
|
|
2689
2642
|
output,
|
|
2690
2643
|
parsedBody,
|
|
2691
|
-
exceptionCtor: __BaseException,
|
|
2692
2644
|
errorCode,
|
|
2693
2645
|
});
|
|
2694
2646
|
}
|
|
@@ -2699,12 +2651,12 @@ export const de_VerifyCommand = async (output, context) => {
|
|
|
2699
2651
|
}
|
|
2700
2652
|
const data = await parseBody(output.body, context);
|
|
2701
2653
|
let contents = {};
|
|
2702
|
-
contents =
|
|
2654
|
+
contents = _json(data);
|
|
2703
2655
|
const response = {
|
|
2704
2656
|
$metadata: deserializeMetadata(output),
|
|
2705
2657
|
...contents,
|
|
2706
2658
|
};
|
|
2707
|
-
return
|
|
2659
|
+
return response;
|
|
2708
2660
|
};
|
|
2709
2661
|
const de_VerifyCommandError = async (output, context) => {
|
|
2710
2662
|
const parsedOutput = {
|
|
@@ -2742,10 +2694,9 @@ const de_VerifyCommandError = async (output, context) => {
|
|
|
2742
2694
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2743
2695
|
default:
|
|
2744
2696
|
const parsedBody = parsedOutput.body;
|
|
2745
|
-
throwDefaultError({
|
|
2697
|
+
return throwDefaultError({
|
|
2746
2698
|
output,
|
|
2747
2699
|
parsedBody,
|
|
2748
|
-
exceptionCtor: __BaseException,
|
|
2749
2700
|
errorCode,
|
|
2750
2701
|
});
|
|
2751
2702
|
}
|
|
@@ -2756,12 +2707,12 @@ export const de_VerifyMacCommand = async (output, context) => {
|
|
|
2756
2707
|
}
|
|
2757
2708
|
const data = await parseBody(output.body, context);
|
|
2758
2709
|
let contents = {};
|
|
2759
|
-
contents =
|
|
2710
|
+
contents = _json(data);
|
|
2760
2711
|
const response = {
|
|
2761
2712
|
$metadata: deserializeMetadata(output),
|
|
2762
2713
|
...contents,
|
|
2763
2714
|
};
|
|
2764
|
-
return
|
|
2715
|
+
return response;
|
|
2765
2716
|
};
|
|
2766
2717
|
const de_VerifyMacCommandError = async (output, context) => {
|
|
2767
2718
|
const parsedOutput = {
|
|
@@ -2796,17 +2747,16 @@ const de_VerifyMacCommandError = async (output, context) => {
|
|
|
2796
2747
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2797
2748
|
default:
|
|
2798
2749
|
const parsedBody = parsedOutput.body;
|
|
2799
|
-
throwDefaultError({
|
|
2750
|
+
return throwDefaultError({
|
|
2800
2751
|
output,
|
|
2801
2752
|
parsedBody,
|
|
2802
|
-
exceptionCtor: __BaseException,
|
|
2803
2753
|
errorCode,
|
|
2804
2754
|
});
|
|
2805
2755
|
}
|
|
2806
2756
|
};
|
|
2807
2757
|
const de_AlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
2808
2758
|
const body = parsedOutput.body;
|
|
2809
|
-
const deserialized =
|
|
2759
|
+
const deserialized = _json(body);
|
|
2810
2760
|
const exception = new AlreadyExistsException({
|
|
2811
2761
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2812
2762
|
...deserialized,
|
|
@@ -2815,7 +2765,7 @@ const de_AlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
|
2815
2765
|
};
|
|
2816
2766
|
const de_CloudHsmClusterInUseExceptionRes = async (parsedOutput, context) => {
|
|
2817
2767
|
const body = parsedOutput.body;
|
|
2818
|
-
const deserialized =
|
|
2768
|
+
const deserialized = _json(body);
|
|
2819
2769
|
const exception = new CloudHsmClusterInUseException({
|
|
2820
2770
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2821
2771
|
...deserialized,
|
|
@@ -2824,7 +2774,7 @@ const de_CloudHsmClusterInUseExceptionRes = async (parsedOutput, context) => {
|
|
|
2824
2774
|
};
|
|
2825
2775
|
const de_CloudHsmClusterInvalidConfigurationExceptionRes = async (parsedOutput, context) => {
|
|
2826
2776
|
const body = parsedOutput.body;
|
|
2827
|
-
const deserialized =
|
|
2777
|
+
const deserialized = _json(body);
|
|
2828
2778
|
const exception = new CloudHsmClusterInvalidConfigurationException({
|
|
2829
2779
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2830
2780
|
...deserialized,
|
|
@@ -2833,7 +2783,7 @@ const de_CloudHsmClusterInvalidConfigurationExceptionRes = async (parsedOutput,
|
|
|
2833
2783
|
};
|
|
2834
2784
|
const de_CloudHsmClusterNotActiveExceptionRes = async (parsedOutput, context) => {
|
|
2835
2785
|
const body = parsedOutput.body;
|
|
2836
|
-
const deserialized =
|
|
2786
|
+
const deserialized = _json(body);
|
|
2837
2787
|
const exception = new CloudHsmClusterNotActiveException({
|
|
2838
2788
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2839
2789
|
...deserialized,
|
|
@@ -2842,7 +2792,7 @@ const de_CloudHsmClusterNotActiveExceptionRes = async (parsedOutput, context) =>
|
|
|
2842
2792
|
};
|
|
2843
2793
|
const de_CloudHsmClusterNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2844
2794
|
const body = parsedOutput.body;
|
|
2845
|
-
const deserialized =
|
|
2795
|
+
const deserialized = _json(body);
|
|
2846
2796
|
const exception = new CloudHsmClusterNotFoundException({
|
|
2847
2797
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2848
2798
|
...deserialized,
|
|
@@ -2851,7 +2801,7 @@ const de_CloudHsmClusterNotFoundExceptionRes = async (parsedOutput, context) =>
|
|
|
2851
2801
|
};
|
|
2852
2802
|
const de_CloudHsmClusterNotRelatedExceptionRes = async (parsedOutput, context) => {
|
|
2853
2803
|
const body = parsedOutput.body;
|
|
2854
|
-
const deserialized =
|
|
2804
|
+
const deserialized = _json(body);
|
|
2855
2805
|
const exception = new CloudHsmClusterNotRelatedException({
|
|
2856
2806
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2857
2807
|
...deserialized,
|
|
@@ -2860,7 +2810,7 @@ const de_CloudHsmClusterNotRelatedExceptionRes = async (parsedOutput, context) =
|
|
|
2860
2810
|
};
|
|
2861
2811
|
const de_CustomKeyStoreHasCMKsExceptionRes = async (parsedOutput, context) => {
|
|
2862
2812
|
const body = parsedOutput.body;
|
|
2863
|
-
const deserialized =
|
|
2813
|
+
const deserialized = _json(body);
|
|
2864
2814
|
const exception = new CustomKeyStoreHasCMKsException({
|
|
2865
2815
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2866
2816
|
...deserialized,
|
|
@@ -2869,7 +2819,7 @@ const de_CustomKeyStoreHasCMKsExceptionRes = async (parsedOutput, context) => {
|
|
|
2869
2819
|
};
|
|
2870
2820
|
const de_CustomKeyStoreInvalidStateExceptionRes = async (parsedOutput, context) => {
|
|
2871
2821
|
const body = parsedOutput.body;
|
|
2872
|
-
const deserialized =
|
|
2822
|
+
const deserialized = _json(body);
|
|
2873
2823
|
const exception = new CustomKeyStoreInvalidStateException({
|
|
2874
2824
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2875
2825
|
...deserialized,
|
|
@@ -2878,7 +2828,7 @@ const de_CustomKeyStoreInvalidStateExceptionRes = async (parsedOutput, context)
|
|
|
2878
2828
|
};
|
|
2879
2829
|
const de_CustomKeyStoreNameInUseExceptionRes = async (parsedOutput, context) => {
|
|
2880
2830
|
const body = parsedOutput.body;
|
|
2881
|
-
const deserialized =
|
|
2831
|
+
const deserialized = _json(body);
|
|
2882
2832
|
const exception = new CustomKeyStoreNameInUseException({
|
|
2883
2833
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2884
2834
|
...deserialized,
|
|
@@ -2887,7 +2837,7 @@ const de_CustomKeyStoreNameInUseExceptionRes = async (parsedOutput, context) =>
|
|
|
2887
2837
|
};
|
|
2888
2838
|
const de_CustomKeyStoreNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2889
2839
|
const body = parsedOutput.body;
|
|
2890
|
-
const deserialized =
|
|
2840
|
+
const deserialized = _json(body);
|
|
2891
2841
|
const exception = new CustomKeyStoreNotFoundException({
|
|
2892
2842
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2893
2843
|
...deserialized,
|
|
@@ -2896,7 +2846,7 @@ const de_CustomKeyStoreNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
2896
2846
|
};
|
|
2897
2847
|
const de_DependencyTimeoutExceptionRes = async (parsedOutput, context) => {
|
|
2898
2848
|
const body = parsedOutput.body;
|
|
2899
|
-
const deserialized =
|
|
2849
|
+
const deserialized = _json(body);
|
|
2900
2850
|
const exception = new DependencyTimeoutException({
|
|
2901
2851
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2902
2852
|
...deserialized,
|
|
@@ -2905,7 +2855,7 @@ const de_DependencyTimeoutExceptionRes = async (parsedOutput, context) => {
|
|
|
2905
2855
|
};
|
|
2906
2856
|
const de_DisabledExceptionRes = async (parsedOutput, context) => {
|
|
2907
2857
|
const body = parsedOutput.body;
|
|
2908
|
-
const deserialized =
|
|
2858
|
+
const deserialized = _json(body);
|
|
2909
2859
|
const exception = new DisabledException({
|
|
2910
2860
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2911
2861
|
...deserialized,
|
|
@@ -2914,7 +2864,7 @@ const de_DisabledExceptionRes = async (parsedOutput, context) => {
|
|
|
2914
2864
|
};
|
|
2915
2865
|
const de_ExpiredImportTokenExceptionRes = async (parsedOutput, context) => {
|
|
2916
2866
|
const body = parsedOutput.body;
|
|
2917
|
-
const deserialized =
|
|
2867
|
+
const deserialized = _json(body);
|
|
2918
2868
|
const exception = new ExpiredImportTokenException({
|
|
2919
2869
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2920
2870
|
...deserialized,
|
|
@@ -2923,7 +2873,7 @@ const de_ExpiredImportTokenExceptionRes = async (parsedOutput, context) => {
|
|
|
2923
2873
|
};
|
|
2924
2874
|
const de_IncorrectKeyExceptionRes = async (parsedOutput, context) => {
|
|
2925
2875
|
const body = parsedOutput.body;
|
|
2926
|
-
const deserialized =
|
|
2876
|
+
const deserialized = _json(body);
|
|
2927
2877
|
const exception = new IncorrectKeyException({
|
|
2928
2878
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2929
2879
|
...deserialized,
|
|
@@ -2932,7 +2882,7 @@ const de_IncorrectKeyExceptionRes = async (parsedOutput, context) => {
|
|
|
2932
2882
|
};
|
|
2933
2883
|
const de_IncorrectKeyMaterialExceptionRes = async (parsedOutput, context) => {
|
|
2934
2884
|
const body = parsedOutput.body;
|
|
2935
|
-
const deserialized =
|
|
2885
|
+
const deserialized = _json(body);
|
|
2936
2886
|
const exception = new IncorrectKeyMaterialException({
|
|
2937
2887
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2938
2888
|
...deserialized,
|
|
@@ -2941,7 +2891,7 @@ const de_IncorrectKeyMaterialExceptionRes = async (parsedOutput, context) => {
|
|
|
2941
2891
|
};
|
|
2942
2892
|
const de_IncorrectTrustAnchorExceptionRes = async (parsedOutput, context) => {
|
|
2943
2893
|
const body = parsedOutput.body;
|
|
2944
|
-
const deserialized =
|
|
2894
|
+
const deserialized = _json(body);
|
|
2945
2895
|
const exception = new IncorrectTrustAnchorException({
|
|
2946
2896
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2947
2897
|
...deserialized,
|
|
@@ -2950,7 +2900,7 @@ const de_IncorrectTrustAnchorExceptionRes = async (parsedOutput, context) => {
|
|
|
2950
2900
|
};
|
|
2951
2901
|
const de_InvalidAliasNameExceptionRes = async (parsedOutput, context) => {
|
|
2952
2902
|
const body = parsedOutput.body;
|
|
2953
|
-
const deserialized =
|
|
2903
|
+
const deserialized = _json(body);
|
|
2954
2904
|
const exception = new InvalidAliasNameException({
|
|
2955
2905
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2956
2906
|
...deserialized,
|
|
@@ -2959,7 +2909,7 @@ const de_InvalidAliasNameExceptionRes = async (parsedOutput, context) => {
|
|
|
2959
2909
|
};
|
|
2960
2910
|
const de_InvalidArnExceptionRes = async (parsedOutput, context) => {
|
|
2961
2911
|
const body = parsedOutput.body;
|
|
2962
|
-
const deserialized =
|
|
2912
|
+
const deserialized = _json(body);
|
|
2963
2913
|
const exception = new InvalidArnException({
|
|
2964
2914
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2965
2915
|
...deserialized,
|
|
@@ -2968,7 +2918,7 @@ const de_InvalidArnExceptionRes = async (parsedOutput, context) => {
|
|
|
2968
2918
|
};
|
|
2969
2919
|
const de_InvalidCiphertextExceptionRes = async (parsedOutput, context) => {
|
|
2970
2920
|
const body = parsedOutput.body;
|
|
2971
|
-
const deserialized =
|
|
2921
|
+
const deserialized = _json(body);
|
|
2972
2922
|
const exception = new InvalidCiphertextException({
|
|
2973
2923
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2974
2924
|
...deserialized,
|
|
@@ -2977,7 +2927,7 @@ const de_InvalidCiphertextExceptionRes = async (parsedOutput, context) => {
|
|
|
2977
2927
|
};
|
|
2978
2928
|
const de_InvalidGrantIdExceptionRes = async (parsedOutput, context) => {
|
|
2979
2929
|
const body = parsedOutput.body;
|
|
2980
|
-
const deserialized =
|
|
2930
|
+
const deserialized = _json(body);
|
|
2981
2931
|
const exception = new InvalidGrantIdException({
|
|
2982
2932
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2983
2933
|
...deserialized,
|
|
@@ -2986,7 +2936,7 @@ const de_InvalidGrantIdExceptionRes = async (parsedOutput, context) => {
|
|
|
2986
2936
|
};
|
|
2987
2937
|
const de_InvalidGrantTokenExceptionRes = async (parsedOutput, context) => {
|
|
2988
2938
|
const body = parsedOutput.body;
|
|
2989
|
-
const deserialized =
|
|
2939
|
+
const deserialized = _json(body);
|
|
2990
2940
|
const exception = new InvalidGrantTokenException({
|
|
2991
2941
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2992
2942
|
...deserialized,
|
|
@@ -2995,7 +2945,7 @@ const de_InvalidGrantTokenExceptionRes = async (parsedOutput, context) => {
|
|
|
2995
2945
|
};
|
|
2996
2946
|
const de_InvalidImportTokenExceptionRes = async (parsedOutput, context) => {
|
|
2997
2947
|
const body = parsedOutput.body;
|
|
2998
|
-
const deserialized =
|
|
2948
|
+
const deserialized = _json(body);
|
|
2999
2949
|
const exception = new InvalidImportTokenException({
|
|
3000
2950
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3001
2951
|
...deserialized,
|
|
@@ -3004,7 +2954,7 @@ const de_InvalidImportTokenExceptionRes = async (parsedOutput, context) => {
|
|
|
3004
2954
|
};
|
|
3005
2955
|
const de_InvalidKeyUsageExceptionRes = async (parsedOutput, context) => {
|
|
3006
2956
|
const body = parsedOutput.body;
|
|
3007
|
-
const deserialized =
|
|
2957
|
+
const deserialized = _json(body);
|
|
3008
2958
|
const exception = new InvalidKeyUsageException({
|
|
3009
2959
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3010
2960
|
...deserialized,
|
|
@@ -3013,7 +2963,7 @@ const de_InvalidKeyUsageExceptionRes = async (parsedOutput, context) => {
|
|
|
3013
2963
|
};
|
|
3014
2964
|
const de_InvalidMarkerExceptionRes = async (parsedOutput, context) => {
|
|
3015
2965
|
const body = parsedOutput.body;
|
|
3016
|
-
const deserialized =
|
|
2966
|
+
const deserialized = _json(body);
|
|
3017
2967
|
const exception = new InvalidMarkerException({
|
|
3018
2968
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3019
2969
|
...deserialized,
|
|
@@ -3022,7 +2972,7 @@ const de_InvalidMarkerExceptionRes = async (parsedOutput, context) => {
|
|
|
3022
2972
|
};
|
|
3023
2973
|
const de_KeyUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
3024
2974
|
const body = parsedOutput.body;
|
|
3025
|
-
const deserialized =
|
|
2975
|
+
const deserialized = _json(body);
|
|
3026
2976
|
const exception = new KeyUnavailableException({
|
|
3027
2977
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3028
2978
|
...deserialized,
|
|
@@ -3031,7 +2981,7 @@ const de_KeyUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
|
3031
2981
|
};
|
|
3032
2982
|
const de_KMSInternalExceptionRes = async (parsedOutput, context) => {
|
|
3033
2983
|
const body = parsedOutput.body;
|
|
3034
|
-
const deserialized =
|
|
2984
|
+
const deserialized = _json(body);
|
|
3035
2985
|
const exception = new KMSInternalException({
|
|
3036
2986
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3037
2987
|
...deserialized,
|
|
@@ -3040,7 +2990,7 @@ const de_KMSInternalExceptionRes = async (parsedOutput, context) => {
|
|
|
3040
2990
|
};
|
|
3041
2991
|
const de_KMSInvalidMacExceptionRes = async (parsedOutput, context) => {
|
|
3042
2992
|
const body = parsedOutput.body;
|
|
3043
|
-
const deserialized =
|
|
2993
|
+
const deserialized = _json(body);
|
|
3044
2994
|
const exception = new KMSInvalidMacException({
|
|
3045
2995
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3046
2996
|
...deserialized,
|
|
@@ -3049,7 +2999,7 @@ const de_KMSInvalidMacExceptionRes = async (parsedOutput, context) => {
|
|
|
3049
2999
|
};
|
|
3050
3000
|
const de_KMSInvalidSignatureExceptionRes = async (parsedOutput, context) => {
|
|
3051
3001
|
const body = parsedOutput.body;
|
|
3052
|
-
const deserialized =
|
|
3002
|
+
const deserialized = _json(body);
|
|
3053
3003
|
const exception = new KMSInvalidSignatureException({
|
|
3054
3004
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3055
3005
|
...deserialized,
|
|
@@ -3058,7 +3008,7 @@ const de_KMSInvalidSignatureExceptionRes = async (parsedOutput, context) => {
|
|
|
3058
3008
|
};
|
|
3059
3009
|
const de_KMSInvalidStateExceptionRes = async (parsedOutput, context) => {
|
|
3060
3010
|
const body = parsedOutput.body;
|
|
3061
|
-
const deserialized =
|
|
3011
|
+
const deserialized = _json(body);
|
|
3062
3012
|
const exception = new KMSInvalidStateException({
|
|
3063
3013
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3064
3014
|
...deserialized,
|
|
@@ -3067,7 +3017,7 @@ const de_KMSInvalidStateExceptionRes = async (parsedOutput, context) => {
|
|
|
3067
3017
|
};
|
|
3068
3018
|
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
3069
3019
|
const body = parsedOutput.body;
|
|
3070
|
-
const deserialized =
|
|
3020
|
+
const deserialized = _json(body);
|
|
3071
3021
|
const exception = new LimitExceededException({
|
|
3072
3022
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3073
3023
|
...deserialized,
|
|
@@ -3076,7 +3026,7 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
3076
3026
|
};
|
|
3077
3027
|
const de_MalformedPolicyDocumentExceptionRes = async (parsedOutput, context) => {
|
|
3078
3028
|
const body = parsedOutput.body;
|
|
3079
|
-
const deserialized =
|
|
3029
|
+
const deserialized = _json(body);
|
|
3080
3030
|
const exception = new MalformedPolicyDocumentException({
|
|
3081
3031
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3082
3032
|
...deserialized,
|
|
@@ -3085,7 +3035,7 @@ const de_MalformedPolicyDocumentExceptionRes = async (parsedOutput, context) =>
|
|
|
3085
3035
|
};
|
|
3086
3036
|
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
3087
3037
|
const body = parsedOutput.body;
|
|
3088
|
-
const deserialized =
|
|
3038
|
+
const deserialized = _json(body);
|
|
3089
3039
|
const exception = new NotFoundException({
|
|
3090
3040
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3091
3041
|
...deserialized,
|
|
@@ -3094,7 +3044,7 @@ const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
3094
3044
|
};
|
|
3095
3045
|
const de_TagExceptionRes = async (parsedOutput, context) => {
|
|
3096
3046
|
const body = parsedOutput.body;
|
|
3097
|
-
const deserialized =
|
|
3047
|
+
const deserialized = _json(body);
|
|
3098
3048
|
const exception = new TagException({
|
|
3099
3049
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3100
3050
|
...deserialized,
|
|
@@ -3103,7 +3053,7 @@ const de_TagExceptionRes = async (parsedOutput, context) => {
|
|
|
3103
3053
|
};
|
|
3104
3054
|
const de_UnsupportedOperationExceptionRes = async (parsedOutput, context) => {
|
|
3105
3055
|
const body = parsedOutput.body;
|
|
3106
|
-
const deserialized =
|
|
3056
|
+
const deserialized = _json(body);
|
|
3107
3057
|
const exception = new UnsupportedOperationException({
|
|
3108
3058
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3109
3059
|
...deserialized,
|
|
@@ -3112,7 +3062,7 @@ const de_UnsupportedOperationExceptionRes = async (parsedOutput, context) => {
|
|
|
3112
3062
|
};
|
|
3113
3063
|
const de_XksKeyAlreadyInUseExceptionRes = async (parsedOutput, context) => {
|
|
3114
3064
|
const body = parsedOutput.body;
|
|
3115
|
-
const deserialized =
|
|
3065
|
+
const deserialized = _json(body);
|
|
3116
3066
|
const exception = new XksKeyAlreadyInUseException({
|
|
3117
3067
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3118
3068
|
...deserialized,
|
|
@@ -3121,7 +3071,7 @@ const de_XksKeyAlreadyInUseExceptionRes = async (parsedOutput, context) => {
|
|
|
3121
3071
|
};
|
|
3122
3072
|
const de_XksKeyInvalidConfigurationExceptionRes = async (parsedOutput, context) => {
|
|
3123
3073
|
const body = parsedOutput.body;
|
|
3124
|
-
const deserialized =
|
|
3074
|
+
const deserialized = _json(body);
|
|
3125
3075
|
const exception = new XksKeyInvalidConfigurationException({
|
|
3126
3076
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3127
3077
|
...deserialized,
|
|
@@ -3130,7 +3080,7 @@ const de_XksKeyInvalidConfigurationExceptionRes = async (parsedOutput, context)
|
|
|
3130
3080
|
};
|
|
3131
3081
|
const de_XksKeyNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
3132
3082
|
const body = parsedOutput.body;
|
|
3133
|
-
const deserialized =
|
|
3083
|
+
const deserialized = _json(body);
|
|
3134
3084
|
const exception = new XksKeyNotFoundException({
|
|
3135
3085
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3136
3086
|
...deserialized,
|
|
@@ -3139,7 +3089,7 @@ const de_XksKeyNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
3139
3089
|
};
|
|
3140
3090
|
const de_XksProxyIncorrectAuthenticationCredentialExceptionRes = async (parsedOutput, context) => {
|
|
3141
3091
|
const body = parsedOutput.body;
|
|
3142
|
-
const deserialized =
|
|
3092
|
+
const deserialized = _json(body);
|
|
3143
3093
|
const exception = new XksProxyIncorrectAuthenticationCredentialException({
|
|
3144
3094
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3145
3095
|
...deserialized,
|
|
@@ -3148,7 +3098,7 @@ const de_XksProxyIncorrectAuthenticationCredentialExceptionRes = async (parsedOu
|
|
|
3148
3098
|
};
|
|
3149
3099
|
const de_XksProxyInvalidConfigurationExceptionRes = async (parsedOutput, context) => {
|
|
3150
3100
|
const body = parsedOutput.body;
|
|
3151
|
-
const deserialized =
|
|
3101
|
+
const deserialized = _json(body);
|
|
3152
3102
|
const exception = new XksProxyInvalidConfigurationException({
|
|
3153
3103
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3154
3104
|
...deserialized,
|
|
@@ -3157,7 +3107,7 @@ const de_XksProxyInvalidConfigurationExceptionRes = async (parsedOutput, context
|
|
|
3157
3107
|
};
|
|
3158
3108
|
const de_XksProxyInvalidResponseExceptionRes = async (parsedOutput, context) => {
|
|
3159
3109
|
const body = parsedOutput.body;
|
|
3160
|
-
const deserialized =
|
|
3110
|
+
const deserialized = _json(body);
|
|
3161
3111
|
const exception = new XksProxyInvalidResponseException({
|
|
3162
3112
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3163
3113
|
...deserialized,
|
|
@@ -3166,7 +3116,7 @@ const de_XksProxyInvalidResponseExceptionRes = async (parsedOutput, context) =>
|
|
|
3166
3116
|
};
|
|
3167
3117
|
const de_XksProxyUriEndpointInUseExceptionRes = async (parsedOutput, context) => {
|
|
3168
3118
|
const body = parsedOutput.body;
|
|
3169
|
-
const deserialized =
|
|
3119
|
+
const deserialized = _json(body);
|
|
3170
3120
|
const exception = new XksProxyUriEndpointInUseException({
|
|
3171
3121
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3172
3122
|
...deserialized,
|
|
@@ -3175,7 +3125,7 @@ const de_XksProxyUriEndpointInUseExceptionRes = async (parsedOutput, context) =>
|
|
|
3175
3125
|
};
|
|
3176
3126
|
const de_XksProxyUriInUseExceptionRes = async (parsedOutput, context) => {
|
|
3177
3127
|
const body = parsedOutput.body;
|
|
3178
|
-
const deserialized =
|
|
3128
|
+
const deserialized = _json(body);
|
|
3179
3129
|
const exception = new XksProxyUriInUseException({
|
|
3180
3130
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3181
3131
|
...deserialized,
|
|
@@ -3184,7 +3134,7 @@ const de_XksProxyUriInUseExceptionRes = async (parsedOutput, context) => {
|
|
|
3184
3134
|
};
|
|
3185
3135
|
const de_XksProxyUriUnreachableExceptionRes = async (parsedOutput, context) => {
|
|
3186
3136
|
const body = parsedOutput.body;
|
|
3187
|
-
const deserialized =
|
|
3137
|
+
const deserialized = _json(body);
|
|
3188
3138
|
const exception = new XksProxyUriUnreachableException({
|
|
3189
3139
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3190
3140
|
...deserialized,
|
|
@@ -3193,7 +3143,7 @@ const de_XksProxyUriUnreachableExceptionRes = async (parsedOutput, context) => {
|
|
|
3193
3143
|
};
|
|
3194
3144
|
const de_XksProxyVpcEndpointServiceInUseExceptionRes = async (parsedOutput, context) => {
|
|
3195
3145
|
const body = parsedOutput.body;
|
|
3196
|
-
const deserialized =
|
|
3146
|
+
const deserialized = _json(body);
|
|
3197
3147
|
const exception = new XksProxyVpcEndpointServiceInUseException({
|
|
3198
3148
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3199
3149
|
...deserialized,
|
|
@@ -3202,7 +3152,7 @@ const de_XksProxyVpcEndpointServiceInUseExceptionRes = async (parsedOutput, cont
|
|
|
3202
3152
|
};
|
|
3203
3153
|
const de_XksProxyVpcEndpointServiceInvalidConfigurationExceptionRes = async (parsedOutput, context) => {
|
|
3204
3154
|
const body = parsedOutput.body;
|
|
3205
|
-
const deserialized =
|
|
3155
|
+
const deserialized = _json(body);
|
|
3206
3156
|
const exception = new XksProxyVpcEndpointServiceInvalidConfigurationException({
|
|
3207
3157
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3208
3158
|
...deserialized,
|
|
@@ -3211,1186 +3161,311 @@ const de_XksProxyVpcEndpointServiceInvalidConfigurationExceptionRes = async (par
|
|
|
3211
3161
|
};
|
|
3212
3162
|
const de_XksProxyVpcEndpointServiceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
3213
3163
|
const body = parsedOutput.body;
|
|
3214
|
-
const deserialized =
|
|
3164
|
+
const deserialized = _json(body);
|
|
3215
3165
|
const exception = new XksProxyVpcEndpointServiceNotFoundException({
|
|
3216
3166
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3217
3167
|
...deserialized,
|
|
3218
3168
|
});
|
|
3219
3169
|
return __decorateServiceException(exception, body);
|
|
3220
3170
|
};
|
|
3221
|
-
const se_CancelKeyDeletionRequest = (input, context) => {
|
|
3222
|
-
return {
|
|
3223
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3224
|
-
};
|
|
3225
|
-
};
|
|
3226
|
-
const se_ConnectCustomKeyStoreRequest = (input, context) => {
|
|
3227
|
-
return {
|
|
3228
|
-
...(input.CustomKeyStoreId != null && { CustomKeyStoreId: input.CustomKeyStoreId }),
|
|
3229
|
-
};
|
|
3230
|
-
};
|
|
3231
|
-
const se_CreateAliasRequest = (input, context) => {
|
|
3232
|
-
return {
|
|
3233
|
-
...(input.AliasName != null && { AliasName: input.AliasName }),
|
|
3234
|
-
...(input.TargetKeyId != null && { TargetKeyId: input.TargetKeyId }),
|
|
3235
|
-
};
|
|
3236
|
-
};
|
|
3237
|
-
const se_CreateCustomKeyStoreRequest = (input, context) => {
|
|
3238
|
-
return {
|
|
3239
|
-
...(input.CloudHsmClusterId != null && { CloudHsmClusterId: input.CloudHsmClusterId }),
|
|
3240
|
-
...(input.CustomKeyStoreName != null && { CustomKeyStoreName: input.CustomKeyStoreName }),
|
|
3241
|
-
...(input.CustomKeyStoreType != null && { CustomKeyStoreType: input.CustomKeyStoreType }),
|
|
3242
|
-
...(input.KeyStorePassword != null && { KeyStorePassword: input.KeyStorePassword }),
|
|
3243
|
-
...(input.TrustAnchorCertificate != null && { TrustAnchorCertificate: input.TrustAnchorCertificate }),
|
|
3244
|
-
...(input.XksProxyAuthenticationCredential != null && {
|
|
3245
|
-
XksProxyAuthenticationCredential: se_XksProxyAuthenticationCredentialType(input.XksProxyAuthenticationCredential, context),
|
|
3246
|
-
}),
|
|
3247
|
-
...(input.XksProxyConnectivity != null && { XksProxyConnectivity: input.XksProxyConnectivity }),
|
|
3248
|
-
...(input.XksProxyUriEndpoint != null && { XksProxyUriEndpoint: input.XksProxyUriEndpoint }),
|
|
3249
|
-
...(input.XksProxyUriPath != null && { XksProxyUriPath: input.XksProxyUriPath }),
|
|
3250
|
-
...(input.XksProxyVpcEndpointServiceName != null && {
|
|
3251
|
-
XksProxyVpcEndpointServiceName: input.XksProxyVpcEndpointServiceName,
|
|
3252
|
-
}),
|
|
3253
|
-
};
|
|
3254
|
-
};
|
|
3255
|
-
const se_CreateGrantRequest = (input, context) => {
|
|
3256
|
-
return {
|
|
3257
|
-
...(input.Constraints != null && { Constraints: se_GrantConstraints(input.Constraints, context) }),
|
|
3258
|
-
...(input.GrantTokens != null && { GrantTokens: se_GrantTokenList(input.GrantTokens, context) }),
|
|
3259
|
-
...(input.GranteePrincipal != null && { GranteePrincipal: input.GranteePrincipal }),
|
|
3260
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3261
|
-
...(input.Name != null && { Name: input.Name }),
|
|
3262
|
-
...(input.Operations != null && { Operations: se_GrantOperationList(input.Operations, context) }),
|
|
3263
|
-
...(input.RetiringPrincipal != null && { RetiringPrincipal: input.RetiringPrincipal }),
|
|
3264
|
-
};
|
|
3265
|
-
};
|
|
3266
|
-
const se_CreateKeyRequest = (input, context) => {
|
|
3267
|
-
return {
|
|
3268
|
-
...(input.BypassPolicyLockoutSafetyCheck != null && {
|
|
3269
|
-
BypassPolicyLockoutSafetyCheck: input.BypassPolicyLockoutSafetyCheck,
|
|
3270
|
-
}),
|
|
3271
|
-
...(input.CustomKeyStoreId != null && { CustomKeyStoreId: input.CustomKeyStoreId }),
|
|
3272
|
-
...(input.CustomerMasterKeySpec != null && { CustomerMasterKeySpec: input.CustomerMasterKeySpec }),
|
|
3273
|
-
...(input.Description != null && { Description: input.Description }),
|
|
3274
|
-
...(input.KeySpec != null && { KeySpec: input.KeySpec }),
|
|
3275
|
-
...(input.KeyUsage != null && { KeyUsage: input.KeyUsage }),
|
|
3276
|
-
...(input.MultiRegion != null && { MultiRegion: input.MultiRegion }),
|
|
3277
|
-
...(input.Origin != null && { Origin: input.Origin }),
|
|
3278
|
-
...(input.Policy != null && { Policy: input.Policy }),
|
|
3279
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
3280
|
-
...(input.XksKeyId != null && { XksKeyId: input.XksKeyId }),
|
|
3281
|
-
};
|
|
3282
|
-
};
|
|
3283
3171
|
const se_DecryptRequest = (input, context) => {
|
|
3284
|
-
return {
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3292
|
-
};
|
|
3293
|
-
};
|
|
3294
|
-
const se_DeleteAliasRequest = (input, context) => {
|
|
3295
|
-
return {
|
|
3296
|
-
...(input.AliasName != null && { AliasName: input.AliasName }),
|
|
3297
|
-
};
|
|
3298
|
-
};
|
|
3299
|
-
const se_DeleteCustomKeyStoreRequest = (input, context) => {
|
|
3300
|
-
return {
|
|
3301
|
-
...(input.CustomKeyStoreId != null && { CustomKeyStoreId: input.CustomKeyStoreId }),
|
|
3302
|
-
};
|
|
3303
|
-
};
|
|
3304
|
-
const se_DeleteImportedKeyMaterialRequest = (input, context) => {
|
|
3305
|
-
return {
|
|
3306
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3307
|
-
};
|
|
3308
|
-
};
|
|
3309
|
-
const se_DescribeCustomKeyStoresRequest = (input, context) => {
|
|
3310
|
-
return {
|
|
3311
|
-
...(input.CustomKeyStoreId != null && { CustomKeyStoreId: input.CustomKeyStoreId }),
|
|
3312
|
-
...(input.CustomKeyStoreName != null && { CustomKeyStoreName: input.CustomKeyStoreName }),
|
|
3313
|
-
...(input.Limit != null && { Limit: input.Limit }),
|
|
3314
|
-
...(input.Marker != null && { Marker: input.Marker }),
|
|
3315
|
-
};
|
|
3316
|
-
};
|
|
3317
|
-
const se_DescribeKeyRequest = (input, context) => {
|
|
3318
|
-
return {
|
|
3319
|
-
...(input.GrantTokens != null && { GrantTokens: se_GrantTokenList(input.GrantTokens, context) }),
|
|
3320
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3321
|
-
};
|
|
3322
|
-
};
|
|
3323
|
-
const se_DisableKeyRequest = (input, context) => {
|
|
3324
|
-
return {
|
|
3325
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3326
|
-
};
|
|
3327
|
-
};
|
|
3328
|
-
const se_DisableKeyRotationRequest = (input, context) => {
|
|
3329
|
-
return {
|
|
3330
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3331
|
-
};
|
|
3332
|
-
};
|
|
3333
|
-
const se_DisconnectCustomKeyStoreRequest = (input, context) => {
|
|
3334
|
-
return {
|
|
3335
|
-
...(input.CustomKeyStoreId != null && { CustomKeyStoreId: input.CustomKeyStoreId }),
|
|
3336
|
-
};
|
|
3337
|
-
};
|
|
3338
|
-
const se_EnableKeyRequest = (input, context) => {
|
|
3339
|
-
return {
|
|
3340
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3341
|
-
};
|
|
3342
|
-
};
|
|
3343
|
-
const se_EnableKeyRotationRequest = (input, context) => {
|
|
3344
|
-
return {
|
|
3345
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3346
|
-
};
|
|
3347
|
-
};
|
|
3348
|
-
const se_EncryptionContextType = (input, context) => {
|
|
3349
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
3350
|
-
if (value === null) {
|
|
3351
|
-
return acc;
|
|
3352
|
-
}
|
|
3353
|
-
acc[key] = value;
|
|
3354
|
-
return acc;
|
|
3355
|
-
}, {});
|
|
3172
|
+
return take(input, {
|
|
3173
|
+
CiphertextBlob: context.base64Encoder,
|
|
3174
|
+
EncryptionAlgorithm: [],
|
|
3175
|
+
EncryptionContext: _json,
|
|
3176
|
+
GrantTokens: _json,
|
|
3177
|
+
KeyId: [],
|
|
3178
|
+
});
|
|
3356
3179
|
};
|
|
3357
3180
|
const se_EncryptRequest = (input, context) => {
|
|
3358
|
-
return {
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3365
|
-
...(input.Plaintext != null && { Plaintext: context.base64Encoder(input.Plaintext) }),
|
|
3366
|
-
};
|
|
3367
|
-
};
|
|
3368
|
-
const se_GenerateDataKeyPairRequest = (input, context) => {
|
|
3369
|
-
return {
|
|
3370
|
-
...(input.EncryptionContext != null && {
|
|
3371
|
-
EncryptionContext: se_EncryptionContextType(input.EncryptionContext, context),
|
|
3372
|
-
}),
|
|
3373
|
-
...(input.GrantTokens != null && { GrantTokens: se_GrantTokenList(input.GrantTokens, context) }),
|
|
3374
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3375
|
-
...(input.KeyPairSpec != null && { KeyPairSpec: input.KeyPairSpec }),
|
|
3376
|
-
};
|
|
3377
|
-
};
|
|
3378
|
-
const se_GenerateDataKeyPairWithoutPlaintextRequest = (input, context) => {
|
|
3379
|
-
return {
|
|
3380
|
-
...(input.EncryptionContext != null && {
|
|
3381
|
-
EncryptionContext: se_EncryptionContextType(input.EncryptionContext, context),
|
|
3382
|
-
}),
|
|
3383
|
-
...(input.GrantTokens != null && { GrantTokens: se_GrantTokenList(input.GrantTokens, context) }),
|
|
3384
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3385
|
-
...(input.KeyPairSpec != null && { KeyPairSpec: input.KeyPairSpec }),
|
|
3386
|
-
};
|
|
3387
|
-
};
|
|
3388
|
-
const se_GenerateDataKeyRequest = (input, context) => {
|
|
3389
|
-
return {
|
|
3390
|
-
...(input.EncryptionContext != null && {
|
|
3391
|
-
EncryptionContext: se_EncryptionContextType(input.EncryptionContext, context),
|
|
3392
|
-
}),
|
|
3393
|
-
...(input.GrantTokens != null && { GrantTokens: se_GrantTokenList(input.GrantTokens, context) }),
|
|
3394
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3395
|
-
...(input.KeySpec != null && { KeySpec: input.KeySpec }),
|
|
3396
|
-
...(input.NumberOfBytes != null && { NumberOfBytes: input.NumberOfBytes }),
|
|
3397
|
-
};
|
|
3398
|
-
};
|
|
3399
|
-
const se_GenerateDataKeyWithoutPlaintextRequest = (input, context) => {
|
|
3400
|
-
return {
|
|
3401
|
-
...(input.EncryptionContext != null && {
|
|
3402
|
-
EncryptionContext: se_EncryptionContextType(input.EncryptionContext, context),
|
|
3403
|
-
}),
|
|
3404
|
-
...(input.GrantTokens != null && { GrantTokens: se_GrantTokenList(input.GrantTokens, context) }),
|
|
3405
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3406
|
-
...(input.KeySpec != null && { KeySpec: input.KeySpec }),
|
|
3407
|
-
...(input.NumberOfBytes != null && { NumberOfBytes: input.NumberOfBytes }),
|
|
3408
|
-
};
|
|
3409
|
-
};
|
|
3410
|
-
const se_GenerateMacRequest = (input, context) => {
|
|
3411
|
-
return {
|
|
3412
|
-
...(input.GrantTokens != null && { GrantTokens: se_GrantTokenList(input.GrantTokens, context) }),
|
|
3413
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3414
|
-
...(input.MacAlgorithm != null && { MacAlgorithm: input.MacAlgorithm }),
|
|
3415
|
-
...(input.Message != null && { Message: context.base64Encoder(input.Message) }),
|
|
3416
|
-
};
|
|
3417
|
-
};
|
|
3418
|
-
const se_GenerateRandomRequest = (input, context) => {
|
|
3419
|
-
return {
|
|
3420
|
-
...(input.CustomKeyStoreId != null && { CustomKeyStoreId: input.CustomKeyStoreId }),
|
|
3421
|
-
...(input.NumberOfBytes != null && { NumberOfBytes: input.NumberOfBytes }),
|
|
3422
|
-
};
|
|
3423
|
-
};
|
|
3424
|
-
const se_GetKeyPolicyRequest = (input, context) => {
|
|
3425
|
-
return {
|
|
3426
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3427
|
-
...(input.PolicyName != null && { PolicyName: input.PolicyName }),
|
|
3428
|
-
};
|
|
3429
|
-
};
|
|
3430
|
-
const se_GetKeyRotationStatusRequest = (input, context) => {
|
|
3431
|
-
return {
|
|
3432
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3433
|
-
};
|
|
3434
|
-
};
|
|
3435
|
-
const se_GetParametersForImportRequest = (input, context) => {
|
|
3436
|
-
return {
|
|
3437
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3438
|
-
...(input.WrappingAlgorithm != null && { WrappingAlgorithm: input.WrappingAlgorithm }),
|
|
3439
|
-
...(input.WrappingKeySpec != null && { WrappingKeySpec: input.WrappingKeySpec }),
|
|
3440
|
-
};
|
|
3441
|
-
};
|
|
3442
|
-
const se_GetPublicKeyRequest = (input, context) => {
|
|
3443
|
-
return {
|
|
3444
|
-
...(input.GrantTokens != null && { GrantTokens: se_GrantTokenList(input.GrantTokens, context) }),
|
|
3445
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3446
|
-
};
|
|
3447
|
-
};
|
|
3448
|
-
const se_GrantConstraints = (input, context) => {
|
|
3449
|
-
return {
|
|
3450
|
-
...(input.EncryptionContextEquals != null && {
|
|
3451
|
-
EncryptionContextEquals: se_EncryptionContextType(input.EncryptionContextEquals, context),
|
|
3452
|
-
}),
|
|
3453
|
-
...(input.EncryptionContextSubset != null && {
|
|
3454
|
-
EncryptionContextSubset: se_EncryptionContextType(input.EncryptionContextSubset, context),
|
|
3455
|
-
}),
|
|
3456
|
-
};
|
|
3457
|
-
};
|
|
3458
|
-
const se_GrantOperationList = (input, context) => {
|
|
3459
|
-
return input
|
|
3460
|
-
.filter((e) => e != null)
|
|
3461
|
-
.map((entry) => {
|
|
3462
|
-
return entry;
|
|
3181
|
+
return take(input, {
|
|
3182
|
+
EncryptionAlgorithm: [],
|
|
3183
|
+
EncryptionContext: _json,
|
|
3184
|
+
GrantTokens: _json,
|
|
3185
|
+
KeyId: [],
|
|
3186
|
+
Plaintext: context.base64Encoder,
|
|
3463
3187
|
});
|
|
3464
3188
|
};
|
|
3465
|
-
const
|
|
3466
|
-
return input
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3189
|
+
const se_GenerateMacRequest = (input, context) => {
|
|
3190
|
+
return take(input, {
|
|
3191
|
+
GrantTokens: _json,
|
|
3192
|
+
KeyId: [],
|
|
3193
|
+
MacAlgorithm: [],
|
|
3194
|
+
Message: context.base64Encoder,
|
|
3470
3195
|
});
|
|
3471
3196
|
};
|
|
3472
3197
|
const se_ImportKeyMaterialRequest = (input, context) => {
|
|
3473
|
-
return {
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
...(input.ValidTo != null && { ValidTo: Math.round(input.ValidTo.getTime() / 1000) }),
|
|
3481
|
-
};
|
|
3482
|
-
};
|
|
3483
|
-
const se_ListAliasesRequest = (input, context) => {
|
|
3484
|
-
return {
|
|
3485
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3486
|
-
...(input.Limit != null && { Limit: input.Limit }),
|
|
3487
|
-
...(input.Marker != null && { Marker: input.Marker }),
|
|
3488
|
-
};
|
|
3489
|
-
};
|
|
3490
|
-
const se_ListGrantsRequest = (input, context) => {
|
|
3491
|
-
return {
|
|
3492
|
-
...(input.GrantId != null && { GrantId: input.GrantId }),
|
|
3493
|
-
...(input.GranteePrincipal != null && { GranteePrincipal: input.GranteePrincipal }),
|
|
3494
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3495
|
-
...(input.Limit != null && { Limit: input.Limit }),
|
|
3496
|
-
...(input.Marker != null && { Marker: input.Marker }),
|
|
3497
|
-
};
|
|
3498
|
-
};
|
|
3499
|
-
const se_ListKeyPoliciesRequest = (input, context) => {
|
|
3500
|
-
return {
|
|
3501
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3502
|
-
...(input.Limit != null && { Limit: input.Limit }),
|
|
3503
|
-
...(input.Marker != null && { Marker: input.Marker }),
|
|
3504
|
-
};
|
|
3505
|
-
};
|
|
3506
|
-
const se_ListKeysRequest = (input, context) => {
|
|
3507
|
-
return {
|
|
3508
|
-
...(input.Limit != null && { Limit: input.Limit }),
|
|
3509
|
-
...(input.Marker != null && { Marker: input.Marker }),
|
|
3510
|
-
};
|
|
3511
|
-
};
|
|
3512
|
-
const se_ListResourceTagsRequest = (input, context) => {
|
|
3513
|
-
return {
|
|
3514
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3515
|
-
...(input.Limit != null && { Limit: input.Limit }),
|
|
3516
|
-
...(input.Marker != null && { Marker: input.Marker }),
|
|
3517
|
-
};
|
|
3518
|
-
};
|
|
3519
|
-
const se_ListRetirableGrantsRequest = (input, context) => {
|
|
3520
|
-
return {
|
|
3521
|
-
...(input.Limit != null && { Limit: input.Limit }),
|
|
3522
|
-
...(input.Marker != null && { Marker: input.Marker }),
|
|
3523
|
-
...(input.RetiringPrincipal != null && { RetiringPrincipal: input.RetiringPrincipal }),
|
|
3524
|
-
};
|
|
3525
|
-
};
|
|
3526
|
-
const se_PutKeyPolicyRequest = (input, context) => {
|
|
3527
|
-
return {
|
|
3528
|
-
...(input.BypassPolicyLockoutSafetyCheck != null && {
|
|
3529
|
-
BypassPolicyLockoutSafetyCheck: input.BypassPolicyLockoutSafetyCheck,
|
|
3530
|
-
}),
|
|
3531
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3532
|
-
...(input.Policy != null && { Policy: input.Policy }),
|
|
3533
|
-
...(input.PolicyName != null && { PolicyName: input.PolicyName }),
|
|
3534
|
-
};
|
|
3198
|
+
return take(input, {
|
|
3199
|
+
EncryptedKeyMaterial: context.base64Encoder,
|
|
3200
|
+
ExpirationModel: [],
|
|
3201
|
+
ImportToken: context.base64Encoder,
|
|
3202
|
+
KeyId: [],
|
|
3203
|
+
ValidTo: (_) => Math.round(_.getTime() / 1000),
|
|
3204
|
+
});
|
|
3535
3205
|
};
|
|
3536
3206
|
const se_ReEncryptRequest = (input, context) => {
|
|
3537
|
-
return {
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
...(input.GrantTokens != null && { GrantTokens: se_GrantTokenList(input.GrantTokens, context) }),
|
|
3547
|
-
...(input.SourceEncryptionAlgorithm != null && { SourceEncryptionAlgorithm: input.SourceEncryptionAlgorithm }),
|
|
3548
|
-
...(input.SourceEncryptionContext != null && {
|
|
3549
|
-
SourceEncryptionContext: se_EncryptionContextType(input.SourceEncryptionContext, context),
|
|
3550
|
-
}),
|
|
3551
|
-
...(input.SourceKeyId != null && { SourceKeyId: input.SourceKeyId }),
|
|
3552
|
-
};
|
|
3553
|
-
};
|
|
3554
|
-
const se_ReplicateKeyRequest = (input, context) => {
|
|
3555
|
-
return {
|
|
3556
|
-
...(input.BypassPolicyLockoutSafetyCheck != null && {
|
|
3557
|
-
BypassPolicyLockoutSafetyCheck: input.BypassPolicyLockoutSafetyCheck,
|
|
3558
|
-
}),
|
|
3559
|
-
...(input.Description != null && { Description: input.Description }),
|
|
3560
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3561
|
-
...(input.Policy != null && { Policy: input.Policy }),
|
|
3562
|
-
...(input.ReplicaRegion != null && { ReplicaRegion: input.ReplicaRegion }),
|
|
3563
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
3564
|
-
};
|
|
3565
|
-
};
|
|
3566
|
-
const se_RetireGrantRequest = (input, context) => {
|
|
3567
|
-
return {
|
|
3568
|
-
...(input.GrantId != null && { GrantId: input.GrantId }),
|
|
3569
|
-
...(input.GrantToken != null && { GrantToken: input.GrantToken }),
|
|
3570
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3571
|
-
};
|
|
3572
|
-
};
|
|
3573
|
-
const se_RevokeGrantRequest = (input, context) => {
|
|
3574
|
-
return {
|
|
3575
|
-
...(input.GrantId != null && { GrantId: input.GrantId }),
|
|
3576
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3577
|
-
};
|
|
3578
|
-
};
|
|
3579
|
-
const se_ScheduleKeyDeletionRequest = (input, context) => {
|
|
3580
|
-
return {
|
|
3581
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3582
|
-
...(input.PendingWindowInDays != null && { PendingWindowInDays: input.PendingWindowInDays }),
|
|
3583
|
-
};
|
|
3584
|
-
};
|
|
3585
|
-
const se_SignRequest = (input, context) => {
|
|
3586
|
-
return {
|
|
3587
|
-
...(input.GrantTokens != null && { GrantTokens: se_GrantTokenList(input.GrantTokens, context) }),
|
|
3588
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3589
|
-
...(input.Message != null && { Message: context.base64Encoder(input.Message) }),
|
|
3590
|
-
...(input.MessageType != null && { MessageType: input.MessageType }),
|
|
3591
|
-
...(input.SigningAlgorithm != null && { SigningAlgorithm: input.SigningAlgorithm }),
|
|
3592
|
-
};
|
|
3593
|
-
};
|
|
3594
|
-
const se_Tag = (input, context) => {
|
|
3595
|
-
return {
|
|
3596
|
-
...(input.TagKey != null && { TagKey: input.TagKey }),
|
|
3597
|
-
...(input.TagValue != null && { TagValue: input.TagValue }),
|
|
3598
|
-
};
|
|
3599
|
-
};
|
|
3600
|
-
const se_TagKeyList = (input, context) => {
|
|
3601
|
-
return input
|
|
3602
|
-
.filter((e) => e != null)
|
|
3603
|
-
.map((entry) => {
|
|
3604
|
-
return entry;
|
|
3207
|
+
return take(input, {
|
|
3208
|
+
CiphertextBlob: context.base64Encoder,
|
|
3209
|
+
DestinationEncryptionAlgorithm: [],
|
|
3210
|
+
DestinationEncryptionContext: _json,
|
|
3211
|
+
DestinationKeyId: [],
|
|
3212
|
+
GrantTokens: _json,
|
|
3213
|
+
SourceEncryptionAlgorithm: [],
|
|
3214
|
+
SourceEncryptionContext: _json,
|
|
3215
|
+
SourceKeyId: [],
|
|
3605
3216
|
});
|
|
3606
3217
|
};
|
|
3607
|
-
const
|
|
3608
|
-
return input
|
|
3609
|
-
|
|
3610
|
-
|
|
3611
|
-
|
|
3218
|
+
const se_SignRequest = (input, context) => {
|
|
3219
|
+
return take(input, {
|
|
3220
|
+
GrantTokens: _json,
|
|
3221
|
+
KeyId: [],
|
|
3222
|
+
Message: context.base64Encoder,
|
|
3223
|
+
MessageType: [],
|
|
3224
|
+
SigningAlgorithm: [],
|
|
3612
3225
|
});
|
|
3613
3226
|
};
|
|
3614
|
-
const se_TagResourceRequest = (input, context) => {
|
|
3615
|
-
return {
|
|
3616
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3617
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
3618
|
-
};
|
|
3619
|
-
};
|
|
3620
|
-
const se_UntagResourceRequest = (input, context) => {
|
|
3621
|
-
return {
|
|
3622
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3623
|
-
...(input.TagKeys != null && { TagKeys: se_TagKeyList(input.TagKeys, context) }),
|
|
3624
|
-
};
|
|
3625
|
-
};
|
|
3626
|
-
const se_UpdateAliasRequest = (input, context) => {
|
|
3627
|
-
return {
|
|
3628
|
-
...(input.AliasName != null && { AliasName: input.AliasName }),
|
|
3629
|
-
...(input.TargetKeyId != null && { TargetKeyId: input.TargetKeyId }),
|
|
3630
|
-
};
|
|
3631
|
-
};
|
|
3632
|
-
const se_UpdateCustomKeyStoreRequest = (input, context) => {
|
|
3633
|
-
return {
|
|
3634
|
-
...(input.CloudHsmClusterId != null && { CloudHsmClusterId: input.CloudHsmClusterId }),
|
|
3635
|
-
...(input.CustomKeyStoreId != null && { CustomKeyStoreId: input.CustomKeyStoreId }),
|
|
3636
|
-
...(input.KeyStorePassword != null && { KeyStorePassword: input.KeyStorePassword }),
|
|
3637
|
-
...(input.NewCustomKeyStoreName != null && { NewCustomKeyStoreName: input.NewCustomKeyStoreName }),
|
|
3638
|
-
...(input.XksProxyAuthenticationCredential != null && {
|
|
3639
|
-
XksProxyAuthenticationCredential: se_XksProxyAuthenticationCredentialType(input.XksProxyAuthenticationCredential, context),
|
|
3640
|
-
}),
|
|
3641
|
-
...(input.XksProxyConnectivity != null && { XksProxyConnectivity: input.XksProxyConnectivity }),
|
|
3642
|
-
...(input.XksProxyUriEndpoint != null && { XksProxyUriEndpoint: input.XksProxyUriEndpoint }),
|
|
3643
|
-
...(input.XksProxyUriPath != null && { XksProxyUriPath: input.XksProxyUriPath }),
|
|
3644
|
-
...(input.XksProxyVpcEndpointServiceName != null && {
|
|
3645
|
-
XksProxyVpcEndpointServiceName: input.XksProxyVpcEndpointServiceName,
|
|
3646
|
-
}),
|
|
3647
|
-
};
|
|
3648
|
-
};
|
|
3649
|
-
const se_UpdateKeyDescriptionRequest = (input, context) => {
|
|
3650
|
-
return {
|
|
3651
|
-
...(input.Description != null && { Description: input.Description }),
|
|
3652
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3653
|
-
};
|
|
3654
|
-
};
|
|
3655
|
-
const se_UpdatePrimaryRegionRequest = (input, context) => {
|
|
3656
|
-
return {
|
|
3657
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3658
|
-
...(input.PrimaryRegion != null && { PrimaryRegion: input.PrimaryRegion }),
|
|
3659
|
-
};
|
|
3660
|
-
};
|
|
3661
3227
|
const se_VerifyMacRequest = (input, context) => {
|
|
3662
|
-
return {
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
};
|
|
3228
|
+
return take(input, {
|
|
3229
|
+
GrantTokens: _json,
|
|
3230
|
+
KeyId: [],
|
|
3231
|
+
Mac: context.base64Encoder,
|
|
3232
|
+
MacAlgorithm: [],
|
|
3233
|
+
Message: context.base64Encoder,
|
|
3234
|
+
});
|
|
3669
3235
|
};
|
|
3670
3236
|
const se_VerifyRequest = (input, context) => {
|
|
3671
|
-
return {
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
};
|
|
3679
|
-
};
|
|
3680
|
-
const se_XksProxyAuthenticationCredentialType = (input, context) => {
|
|
3681
|
-
return {
|
|
3682
|
-
...(input.AccessKeyId != null && { AccessKeyId: input.AccessKeyId }),
|
|
3683
|
-
...(input.RawSecretAccessKey != null && { RawSecretAccessKey: input.RawSecretAccessKey }),
|
|
3684
|
-
};
|
|
3237
|
+
return take(input, {
|
|
3238
|
+
GrantTokens: _json,
|
|
3239
|
+
KeyId: [],
|
|
3240
|
+
Message: context.base64Encoder,
|
|
3241
|
+
MessageType: [],
|
|
3242
|
+
Signature: context.base64Encoder,
|
|
3243
|
+
SigningAlgorithm: [],
|
|
3244
|
+
});
|
|
3685
3245
|
};
|
|
3686
3246
|
const de_AliasList = (output, context) => {
|
|
3687
3247
|
const retVal = (output || [])
|
|
3688
3248
|
.filter((e) => e != null)
|
|
3689
3249
|
.map((entry) => {
|
|
3690
|
-
if (entry === null) {
|
|
3691
|
-
return null;
|
|
3692
|
-
}
|
|
3693
3250
|
return de_AliasListEntry(entry, context);
|
|
3694
3251
|
});
|
|
3695
3252
|
return retVal;
|
|
3696
3253
|
};
|
|
3697
3254
|
const de_AliasListEntry = (output, context) => {
|
|
3698
|
-
return {
|
|
3699
|
-
AliasArn: __expectString
|
|
3700
|
-
AliasName: __expectString
|
|
3701
|
-
CreationDate:
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedDate)))
|
|
3706
|
-
: undefined,
|
|
3707
|
-
TargetKeyId: __expectString(output.TargetKeyId),
|
|
3708
|
-
};
|
|
3709
|
-
};
|
|
3710
|
-
const de_AlreadyExistsException = (output, context) => {
|
|
3711
|
-
return {
|
|
3712
|
-
message: __expectString(output.message),
|
|
3713
|
-
};
|
|
3714
|
-
};
|
|
3715
|
-
const de_CancelKeyDeletionResponse = (output, context) => {
|
|
3716
|
-
return {
|
|
3717
|
-
KeyId: __expectString(output.KeyId),
|
|
3718
|
-
};
|
|
3719
|
-
};
|
|
3720
|
-
const de_CloudHsmClusterInUseException = (output, context) => {
|
|
3721
|
-
return {
|
|
3722
|
-
message: __expectString(output.message),
|
|
3723
|
-
};
|
|
3724
|
-
};
|
|
3725
|
-
const de_CloudHsmClusterInvalidConfigurationException = (output, context) => {
|
|
3726
|
-
return {
|
|
3727
|
-
message: __expectString(output.message),
|
|
3728
|
-
};
|
|
3729
|
-
};
|
|
3730
|
-
const de_CloudHsmClusterNotActiveException = (output, context) => {
|
|
3731
|
-
return {
|
|
3732
|
-
message: __expectString(output.message),
|
|
3733
|
-
};
|
|
3734
|
-
};
|
|
3735
|
-
const de_CloudHsmClusterNotFoundException = (output, context) => {
|
|
3736
|
-
return {
|
|
3737
|
-
message: __expectString(output.message),
|
|
3738
|
-
};
|
|
3739
|
-
};
|
|
3740
|
-
const de_CloudHsmClusterNotRelatedException = (output, context) => {
|
|
3741
|
-
return {
|
|
3742
|
-
message: __expectString(output.message),
|
|
3743
|
-
};
|
|
3744
|
-
};
|
|
3745
|
-
const de_ConnectCustomKeyStoreResponse = (output, context) => {
|
|
3746
|
-
return {};
|
|
3747
|
-
};
|
|
3748
|
-
const de_CreateCustomKeyStoreResponse = (output, context) => {
|
|
3749
|
-
return {
|
|
3750
|
-
CustomKeyStoreId: __expectString(output.CustomKeyStoreId),
|
|
3751
|
-
};
|
|
3752
|
-
};
|
|
3753
|
-
const de_CreateGrantResponse = (output, context) => {
|
|
3754
|
-
return {
|
|
3755
|
-
GrantId: __expectString(output.GrantId),
|
|
3756
|
-
GrantToken: __expectString(output.GrantToken),
|
|
3757
|
-
};
|
|
3255
|
+
return take(output, {
|
|
3256
|
+
AliasArn: __expectString,
|
|
3257
|
+
AliasName: __expectString,
|
|
3258
|
+
CreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3259
|
+
LastUpdatedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3260
|
+
TargetKeyId: __expectString,
|
|
3261
|
+
});
|
|
3758
3262
|
};
|
|
3759
3263
|
const de_CreateKeyResponse = (output, context) => {
|
|
3760
|
-
return {
|
|
3761
|
-
KeyMetadata:
|
|
3762
|
-
};
|
|
3763
|
-
};
|
|
3764
|
-
const de_CustomKeyStoreHasCMKsException = (output, context) => {
|
|
3765
|
-
return {
|
|
3766
|
-
message: __expectString(output.message),
|
|
3767
|
-
};
|
|
3768
|
-
};
|
|
3769
|
-
const de_CustomKeyStoreInvalidStateException = (output, context) => {
|
|
3770
|
-
return {
|
|
3771
|
-
message: __expectString(output.message),
|
|
3772
|
-
};
|
|
3773
|
-
};
|
|
3774
|
-
const de_CustomKeyStoreNameInUseException = (output, context) => {
|
|
3775
|
-
return {
|
|
3776
|
-
message: __expectString(output.message),
|
|
3777
|
-
};
|
|
3778
|
-
};
|
|
3779
|
-
const de_CustomKeyStoreNotFoundException = (output, context) => {
|
|
3780
|
-
return {
|
|
3781
|
-
message: __expectString(output.message),
|
|
3782
|
-
};
|
|
3264
|
+
return take(output, {
|
|
3265
|
+
KeyMetadata: (_) => de_KeyMetadata(_, context),
|
|
3266
|
+
});
|
|
3783
3267
|
};
|
|
3784
3268
|
const de_CustomKeyStoresList = (output, context) => {
|
|
3785
3269
|
const retVal = (output || [])
|
|
3786
3270
|
.filter((e) => e != null)
|
|
3787
3271
|
.map((entry) => {
|
|
3788
|
-
if (entry === null) {
|
|
3789
|
-
return null;
|
|
3790
|
-
}
|
|
3791
3272
|
return de_CustomKeyStoresListEntry(entry, context);
|
|
3792
3273
|
});
|
|
3793
3274
|
return retVal;
|
|
3794
3275
|
};
|
|
3795
3276
|
const de_CustomKeyStoresListEntry = (output, context) => {
|
|
3796
|
-
return {
|
|
3797
|
-
CloudHsmClusterId: __expectString
|
|
3798
|
-
ConnectionErrorCode: __expectString
|
|
3799
|
-
ConnectionState: __expectString
|
|
3800
|
-
CreationDate:
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
XksProxyConfiguration: output.XksProxyConfiguration != null
|
|
3808
|
-
? de_XksProxyConfigurationType(output.XksProxyConfiguration, context)
|
|
3809
|
-
: undefined,
|
|
3810
|
-
};
|
|
3277
|
+
return take(output, {
|
|
3278
|
+
CloudHsmClusterId: __expectString,
|
|
3279
|
+
ConnectionErrorCode: __expectString,
|
|
3280
|
+
ConnectionState: __expectString,
|
|
3281
|
+
CreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3282
|
+
CustomKeyStoreId: __expectString,
|
|
3283
|
+
CustomKeyStoreName: __expectString,
|
|
3284
|
+
CustomKeyStoreType: __expectString,
|
|
3285
|
+
TrustAnchorCertificate: __expectString,
|
|
3286
|
+
XksProxyConfiguration: _json,
|
|
3287
|
+
});
|
|
3811
3288
|
};
|
|
3812
3289
|
const de_DecryptResponse = (output, context) => {
|
|
3813
|
-
return {
|
|
3814
|
-
EncryptionAlgorithm: __expectString
|
|
3815
|
-
KeyId: __expectString
|
|
3816
|
-
Plaintext:
|
|
3817
|
-
};
|
|
3818
|
-
};
|
|
3819
|
-
const de_DeleteCustomKeyStoreResponse = (output, context) => {
|
|
3820
|
-
return {};
|
|
3821
|
-
};
|
|
3822
|
-
const de_DependencyTimeoutException = (output, context) => {
|
|
3823
|
-
return {
|
|
3824
|
-
message: __expectString(output.message),
|
|
3825
|
-
};
|
|
3290
|
+
return take(output, {
|
|
3291
|
+
EncryptionAlgorithm: __expectString,
|
|
3292
|
+
KeyId: __expectString,
|
|
3293
|
+
Plaintext: context.base64Decoder,
|
|
3294
|
+
});
|
|
3826
3295
|
};
|
|
3827
3296
|
const de_DescribeCustomKeyStoresResponse = (output, context) => {
|
|
3828
|
-
return {
|
|
3829
|
-
CustomKeyStores:
|
|
3830
|
-
NextMarker: __expectString
|
|
3831
|
-
Truncated: __expectBoolean
|
|
3832
|
-
};
|
|
3297
|
+
return take(output, {
|
|
3298
|
+
CustomKeyStores: (_) => de_CustomKeyStoresList(_, context),
|
|
3299
|
+
NextMarker: __expectString,
|
|
3300
|
+
Truncated: __expectBoolean,
|
|
3301
|
+
});
|
|
3833
3302
|
};
|
|
3834
3303
|
const de_DescribeKeyResponse = (output, context) => {
|
|
3835
|
-
return {
|
|
3836
|
-
KeyMetadata:
|
|
3837
|
-
};
|
|
3838
|
-
};
|
|
3839
|
-
const de_DisabledException = (output, context) => {
|
|
3840
|
-
return {
|
|
3841
|
-
message: __expectString(output.message),
|
|
3842
|
-
};
|
|
3843
|
-
};
|
|
3844
|
-
const de_DisconnectCustomKeyStoreResponse = (output, context) => {
|
|
3845
|
-
return {};
|
|
3846
|
-
};
|
|
3847
|
-
const de_EncryptionAlgorithmSpecList = (output, context) => {
|
|
3848
|
-
const retVal = (output || [])
|
|
3849
|
-
.filter((e) => e != null)
|
|
3850
|
-
.map((entry) => {
|
|
3851
|
-
if (entry === null) {
|
|
3852
|
-
return null;
|
|
3853
|
-
}
|
|
3854
|
-
return __expectString(entry);
|
|
3304
|
+
return take(output, {
|
|
3305
|
+
KeyMetadata: (_) => de_KeyMetadata(_, context),
|
|
3855
3306
|
});
|
|
3856
|
-
return retVal;
|
|
3857
|
-
};
|
|
3858
|
-
const de_EncryptionContextType = (output, context) => {
|
|
3859
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3860
|
-
if (value === null) {
|
|
3861
|
-
return acc;
|
|
3862
|
-
}
|
|
3863
|
-
acc[key] = __expectString(value);
|
|
3864
|
-
return acc;
|
|
3865
|
-
}, {});
|
|
3866
3307
|
};
|
|
3867
3308
|
const de_EncryptResponse = (output, context) => {
|
|
3868
|
-
return {
|
|
3869
|
-
CiphertextBlob:
|
|
3870
|
-
EncryptionAlgorithm: __expectString
|
|
3871
|
-
KeyId: __expectString
|
|
3872
|
-
};
|
|
3873
|
-
};
|
|
3874
|
-
const de_ExpiredImportTokenException = (output, context) => {
|
|
3875
|
-
return {
|
|
3876
|
-
message: __expectString(output.message),
|
|
3877
|
-
};
|
|
3309
|
+
return take(output, {
|
|
3310
|
+
CiphertextBlob: context.base64Decoder,
|
|
3311
|
+
EncryptionAlgorithm: __expectString,
|
|
3312
|
+
KeyId: __expectString,
|
|
3313
|
+
});
|
|
3878
3314
|
};
|
|
3879
3315
|
const de_GenerateDataKeyPairResponse = (output, context) => {
|
|
3880
|
-
return {
|
|
3881
|
-
KeyId: __expectString
|
|
3882
|
-
KeyPairSpec: __expectString
|
|
3883
|
-
PrivateKeyCiphertextBlob:
|
|
3884
|
-
PrivateKeyPlaintext:
|
|
3885
|
-
PublicKey:
|
|
3886
|
-
};
|
|
3316
|
+
return take(output, {
|
|
3317
|
+
KeyId: __expectString,
|
|
3318
|
+
KeyPairSpec: __expectString,
|
|
3319
|
+
PrivateKeyCiphertextBlob: context.base64Decoder,
|
|
3320
|
+
PrivateKeyPlaintext: context.base64Decoder,
|
|
3321
|
+
PublicKey: context.base64Decoder,
|
|
3322
|
+
});
|
|
3887
3323
|
};
|
|
3888
3324
|
const de_GenerateDataKeyPairWithoutPlaintextResponse = (output, context) => {
|
|
3889
|
-
return {
|
|
3890
|
-
KeyId: __expectString
|
|
3891
|
-
KeyPairSpec: __expectString
|
|
3892
|
-
PrivateKeyCiphertextBlob:
|
|
3893
|
-
PublicKey:
|
|
3894
|
-
};
|
|
3325
|
+
return take(output, {
|
|
3326
|
+
KeyId: __expectString,
|
|
3327
|
+
KeyPairSpec: __expectString,
|
|
3328
|
+
PrivateKeyCiphertextBlob: context.base64Decoder,
|
|
3329
|
+
PublicKey: context.base64Decoder,
|
|
3330
|
+
});
|
|
3895
3331
|
};
|
|
3896
3332
|
const de_GenerateDataKeyResponse = (output, context) => {
|
|
3897
|
-
return {
|
|
3898
|
-
CiphertextBlob:
|
|
3899
|
-
KeyId: __expectString
|
|
3900
|
-
Plaintext:
|
|
3901
|
-
};
|
|
3333
|
+
return take(output, {
|
|
3334
|
+
CiphertextBlob: context.base64Decoder,
|
|
3335
|
+
KeyId: __expectString,
|
|
3336
|
+
Plaintext: context.base64Decoder,
|
|
3337
|
+
});
|
|
3902
3338
|
};
|
|
3903
3339
|
const de_GenerateDataKeyWithoutPlaintextResponse = (output, context) => {
|
|
3904
|
-
return {
|
|
3905
|
-
CiphertextBlob:
|
|
3906
|
-
KeyId: __expectString
|
|
3907
|
-
};
|
|
3340
|
+
return take(output, {
|
|
3341
|
+
CiphertextBlob: context.base64Decoder,
|
|
3342
|
+
KeyId: __expectString,
|
|
3343
|
+
});
|
|
3908
3344
|
};
|
|
3909
3345
|
const de_GenerateMacResponse = (output, context) => {
|
|
3910
|
-
return {
|
|
3911
|
-
KeyId: __expectString
|
|
3912
|
-
Mac:
|
|
3913
|
-
MacAlgorithm: __expectString
|
|
3914
|
-
};
|
|
3346
|
+
return take(output, {
|
|
3347
|
+
KeyId: __expectString,
|
|
3348
|
+
Mac: context.base64Decoder,
|
|
3349
|
+
MacAlgorithm: __expectString,
|
|
3350
|
+
});
|
|
3915
3351
|
};
|
|
3916
3352
|
const de_GenerateRandomResponse = (output, context) => {
|
|
3917
|
-
return {
|
|
3918
|
-
Plaintext:
|
|
3919
|
-
};
|
|
3920
|
-
};
|
|
3921
|
-
const de_GetKeyPolicyResponse = (output, context) => {
|
|
3922
|
-
return {
|
|
3923
|
-
Policy: __expectString(output.Policy),
|
|
3924
|
-
};
|
|
3925
|
-
};
|
|
3926
|
-
const de_GetKeyRotationStatusResponse = (output, context) => {
|
|
3927
|
-
return {
|
|
3928
|
-
KeyRotationEnabled: __expectBoolean(output.KeyRotationEnabled),
|
|
3929
|
-
};
|
|
3353
|
+
return take(output, {
|
|
3354
|
+
Plaintext: context.base64Decoder,
|
|
3355
|
+
});
|
|
3930
3356
|
};
|
|
3931
3357
|
const de_GetParametersForImportResponse = (output, context) => {
|
|
3932
|
-
return {
|
|
3933
|
-
ImportToken:
|
|
3934
|
-
KeyId: __expectString
|
|
3935
|
-
ParametersValidTo:
|
|
3936
|
-
|
|
3937
|
-
|
|
3938
|
-
PublicKey: output.PublicKey != null ? context.base64Decoder(output.PublicKey) : undefined,
|
|
3939
|
-
};
|
|
3358
|
+
return take(output, {
|
|
3359
|
+
ImportToken: context.base64Decoder,
|
|
3360
|
+
KeyId: __expectString,
|
|
3361
|
+
ParametersValidTo: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3362
|
+
PublicKey: context.base64Decoder,
|
|
3363
|
+
});
|
|
3940
3364
|
};
|
|
3941
3365
|
const de_GetPublicKeyResponse = (output, context) => {
|
|
3942
|
-
return {
|
|
3943
|
-
CustomerMasterKeySpec: __expectString
|
|
3944
|
-
EncryptionAlgorithms:
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
|
|
3949
|
-
|
|
3950
|
-
|
|
3951
|
-
SigningAlgorithms: output.SigningAlgorithms != null ? de_SigningAlgorithmSpecList(output.SigningAlgorithms, context) : undefined,
|
|
3952
|
-
};
|
|
3953
|
-
};
|
|
3954
|
-
const de_GrantConstraints = (output, context) => {
|
|
3955
|
-
return {
|
|
3956
|
-
EncryptionContextEquals: output.EncryptionContextEquals != null
|
|
3957
|
-
? de_EncryptionContextType(output.EncryptionContextEquals, context)
|
|
3958
|
-
: undefined,
|
|
3959
|
-
EncryptionContextSubset: output.EncryptionContextSubset != null
|
|
3960
|
-
? de_EncryptionContextType(output.EncryptionContextSubset, context)
|
|
3961
|
-
: undefined,
|
|
3962
|
-
};
|
|
3366
|
+
return take(output, {
|
|
3367
|
+
CustomerMasterKeySpec: __expectString,
|
|
3368
|
+
EncryptionAlgorithms: _json,
|
|
3369
|
+
KeyId: __expectString,
|
|
3370
|
+
KeySpec: __expectString,
|
|
3371
|
+
KeyUsage: __expectString,
|
|
3372
|
+
PublicKey: context.base64Decoder,
|
|
3373
|
+
SigningAlgorithms: _json,
|
|
3374
|
+
});
|
|
3963
3375
|
};
|
|
3964
3376
|
const de_GrantList = (output, context) => {
|
|
3965
3377
|
const retVal = (output || [])
|
|
3966
3378
|
.filter((e) => e != null)
|
|
3967
3379
|
.map((entry) => {
|
|
3968
|
-
if (entry === null) {
|
|
3969
|
-
return null;
|
|
3970
|
-
}
|
|
3971
3380
|
return de_GrantListEntry(entry, context);
|
|
3972
3381
|
});
|
|
3973
3382
|
return retVal;
|
|
3974
3383
|
};
|
|
3975
3384
|
const de_GrantListEntry = (output, context) => {
|
|
3976
|
-
return {
|
|
3977
|
-
Constraints:
|
|
3978
|
-
CreationDate:
|
|
3979
|
-
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
Operations: output.Operations != null ? de_GrantOperationList(output.Operations, context) : undefined,
|
|
3987
|
-
RetiringPrincipal: __expectString(output.RetiringPrincipal),
|
|
3988
|
-
};
|
|
3989
|
-
};
|
|
3990
|
-
const de_GrantOperationList = (output, context) => {
|
|
3991
|
-
const retVal = (output || [])
|
|
3992
|
-
.filter((e) => e != null)
|
|
3993
|
-
.map((entry) => {
|
|
3994
|
-
if (entry === null) {
|
|
3995
|
-
return null;
|
|
3996
|
-
}
|
|
3997
|
-
return __expectString(entry);
|
|
3385
|
+
return take(output, {
|
|
3386
|
+
Constraints: _json,
|
|
3387
|
+
CreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3388
|
+
GrantId: __expectString,
|
|
3389
|
+
GranteePrincipal: __expectString,
|
|
3390
|
+
IssuingAccount: __expectString,
|
|
3391
|
+
KeyId: __expectString,
|
|
3392
|
+
Name: __expectString,
|
|
3393
|
+
Operations: _json,
|
|
3394
|
+
RetiringPrincipal: __expectString,
|
|
3998
3395
|
});
|
|
3999
|
-
return retVal;
|
|
4000
|
-
};
|
|
4001
|
-
const de_ImportKeyMaterialResponse = (output, context) => {
|
|
4002
|
-
return {};
|
|
4003
|
-
};
|
|
4004
|
-
const de_IncorrectKeyException = (output, context) => {
|
|
4005
|
-
return {
|
|
4006
|
-
message: __expectString(output.message),
|
|
4007
|
-
};
|
|
4008
|
-
};
|
|
4009
|
-
const de_IncorrectKeyMaterialException = (output, context) => {
|
|
4010
|
-
return {
|
|
4011
|
-
message: __expectString(output.message),
|
|
4012
|
-
};
|
|
4013
|
-
};
|
|
4014
|
-
const de_IncorrectTrustAnchorException = (output, context) => {
|
|
4015
|
-
return {
|
|
4016
|
-
message: __expectString(output.message),
|
|
4017
|
-
};
|
|
4018
|
-
};
|
|
4019
|
-
const de_InvalidAliasNameException = (output, context) => {
|
|
4020
|
-
return {
|
|
4021
|
-
message: __expectString(output.message),
|
|
4022
|
-
};
|
|
4023
|
-
};
|
|
4024
|
-
const de_InvalidArnException = (output, context) => {
|
|
4025
|
-
return {
|
|
4026
|
-
message: __expectString(output.message),
|
|
4027
|
-
};
|
|
4028
|
-
};
|
|
4029
|
-
const de_InvalidCiphertextException = (output, context) => {
|
|
4030
|
-
return {
|
|
4031
|
-
message: __expectString(output.message),
|
|
4032
|
-
};
|
|
4033
|
-
};
|
|
4034
|
-
const de_InvalidGrantIdException = (output, context) => {
|
|
4035
|
-
return {
|
|
4036
|
-
message: __expectString(output.message),
|
|
4037
|
-
};
|
|
4038
|
-
};
|
|
4039
|
-
const de_InvalidGrantTokenException = (output, context) => {
|
|
4040
|
-
return {
|
|
4041
|
-
message: __expectString(output.message),
|
|
4042
|
-
};
|
|
4043
|
-
};
|
|
4044
|
-
const de_InvalidImportTokenException = (output, context) => {
|
|
4045
|
-
return {
|
|
4046
|
-
message: __expectString(output.message),
|
|
4047
|
-
};
|
|
4048
|
-
};
|
|
4049
|
-
const de_InvalidKeyUsageException = (output, context) => {
|
|
4050
|
-
return {
|
|
4051
|
-
message: __expectString(output.message),
|
|
4052
|
-
};
|
|
4053
|
-
};
|
|
4054
|
-
const de_InvalidMarkerException = (output, context) => {
|
|
4055
|
-
return {
|
|
4056
|
-
message: __expectString(output.message),
|
|
4057
|
-
};
|
|
4058
|
-
};
|
|
4059
|
-
const de_KeyList = (output, context) => {
|
|
4060
|
-
const retVal = (output || [])
|
|
4061
|
-
.filter((e) => e != null)
|
|
4062
|
-
.map((entry) => {
|
|
4063
|
-
if (entry === null) {
|
|
4064
|
-
return null;
|
|
4065
|
-
}
|
|
4066
|
-
return de_KeyListEntry(entry, context);
|
|
4067
|
-
});
|
|
4068
|
-
return retVal;
|
|
4069
|
-
};
|
|
4070
|
-
const de_KeyListEntry = (output, context) => {
|
|
4071
|
-
return {
|
|
4072
|
-
KeyArn: __expectString(output.KeyArn),
|
|
4073
|
-
KeyId: __expectString(output.KeyId),
|
|
4074
|
-
};
|
|
4075
3396
|
};
|
|
4076
3397
|
const de_KeyMetadata = (output, context) => {
|
|
4077
|
-
return {
|
|
4078
|
-
AWSAccountId: __expectString
|
|
4079
|
-
Arn: __expectString
|
|
4080
|
-
CloudHsmClusterId: __expectString
|
|
4081
|
-
CreationDate:
|
|
4082
|
-
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
-
|
|
4088
|
-
|
|
4089
|
-
|
|
4090
|
-
|
|
4091
|
-
|
|
4092
|
-
|
|
4093
|
-
|
|
4094
|
-
|
|
4095
|
-
|
|
4096
|
-
|
|
4097
|
-
|
|
4098
|
-
|
|
4099
|
-
|
|
4100
|
-
|
|
4101
|
-
|
|
4102
|
-
MultiRegionConfiguration: output.MultiRegionConfiguration != null
|
|
4103
|
-
? de_MultiRegionConfiguration(output.MultiRegionConfiguration, context)
|
|
4104
|
-
: undefined,
|
|
4105
|
-
Origin: __expectString(output.Origin),
|
|
4106
|
-
PendingDeletionWindowInDays: __expectInt32(output.PendingDeletionWindowInDays),
|
|
4107
|
-
SigningAlgorithms: output.SigningAlgorithms != null ? de_SigningAlgorithmSpecList(output.SigningAlgorithms, context) : undefined,
|
|
4108
|
-
ValidTo: output.ValidTo != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ValidTo))) : undefined,
|
|
4109
|
-
XksKeyConfiguration: output.XksKeyConfiguration != null ? de_XksKeyConfigurationType(output.XksKeyConfiguration, context) : undefined,
|
|
4110
|
-
};
|
|
4111
|
-
};
|
|
4112
|
-
const de_KeyUnavailableException = (output, context) => {
|
|
4113
|
-
return {
|
|
4114
|
-
message: __expectString(output.message),
|
|
4115
|
-
};
|
|
4116
|
-
};
|
|
4117
|
-
const de_KMSInternalException = (output, context) => {
|
|
4118
|
-
return {
|
|
4119
|
-
message: __expectString(output.message),
|
|
4120
|
-
};
|
|
4121
|
-
};
|
|
4122
|
-
const de_KMSInvalidMacException = (output, context) => {
|
|
4123
|
-
return {
|
|
4124
|
-
message: __expectString(output.message),
|
|
4125
|
-
};
|
|
4126
|
-
};
|
|
4127
|
-
const de_KMSInvalidSignatureException = (output, context) => {
|
|
4128
|
-
return {
|
|
4129
|
-
message: __expectString(output.message),
|
|
4130
|
-
};
|
|
4131
|
-
};
|
|
4132
|
-
const de_KMSInvalidStateException = (output, context) => {
|
|
4133
|
-
return {
|
|
4134
|
-
message: __expectString(output.message),
|
|
4135
|
-
};
|
|
4136
|
-
};
|
|
4137
|
-
const de_LimitExceededException = (output, context) => {
|
|
4138
|
-
return {
|
|
4139
|
-
message: __expectString(output.message),
|
|
4140
|
-
};
|
|
4141
|
-
};
|
|
4142
|
-
const de_ListAliasesResponse = (output, context) => {
|
|
4143
|
-
return {
|
|
4144
|
-
Aliases: output.Aliases != null ? de_AliasList(output.Aliases, context) : undefined,
|
|
4145
|
-
NextMarker: __expectString(output.NextMarker),
|
|
4146
|
-
Truncated: __expectBoolean(output.Truncated),
|
|
4147
|
-
};
|
|
4148
|
-
};
|
|
4149
|
-
const de_ListGrantsResponse = (output, context) => {
|
|
4150
|
-
return {
|
|
4151
|
-
Grants: output.Grants != null ? de_GrantList(output.Grants, context) : undefined,
|
|
4152
|
-
NextMarker: __expectString(output.NextMarker),
|
|
4153
|
-
Truncated: __expectBoolean(output.Truncated),
|
|
4154
|
-
};
|
|
4155
|
-
};
|
|
4156
|
-
const de_ListKeyPoliciesResponse = (output, context) => {
|
|
4157
|
-
return {
|
|
4158
|
-
NextMarker: __expectString(output.NextMarker),
|
|
4159
|
-
PolicyNames: output.PolicyNames != null ? de_PolicyNameList(output.PolicyNames, context) : undefined,
|
|
4160
|
-
Truncated: __expectBoolean(output.Truncated),
|
|
4161
|
-
};
|
|
4162
|
-
};
|
|
4163
|
-
const de_ListKeysResponse = (output, context) => {
|
|
4164
|
-
return {
|
|
4165
|
-
Keys: output.Keys != null ? de_KeyList(output.Keys, context) : undefined,
|
|
4166
|
-
NextMarker: __expectString(output.NextMarker),
|
|
4167
|
-
Truncated: __expectBoolean(output.Truncated),
|
|
4168
|
-
};
|
|
4169
|
-
};
|
|
4170
|
-
const de_ListResourceTagsResponse = (output, context) => {
|
|
4171
|
-
return {
|
|
4172
|
-
NextMarker: __expectString(output.NextMarker),
|
|
4173
|
-
Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
|
|
4174
|
-
Truncated: __expectBoolean(output.Truncated),
|
|
4175
|
-
};
|
|
4176
|
-
};
|
|
4177
|
-
const de_MacAlgorithmSpecList = (output, context) => {
|
|
4178
|
-
const retVal = (output || [])
|
|
4179
|
-
.filter((e) => e != null)
|
|
4180
|
-
.map((entry) => {
|
|
4181
|
-
if (entry === null) {
|
|
4182
|
-
return null;
|
|
4183
|
-
}
|
|
4184
|
-
return __expectString(entry);
|
|
3398
|
+
return take(output, {
|
|
3399
|
+
AWSAccountId: __expectString,
|
|
3400
|
+
Arn: __expectString,
|
|
3401
|
+
CloudHsmClusterId: __expectString,
|
|
3402
|
+
CreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3403
|
+
CustomKeyStoreId: __expectString,
|
|
3404
|
+
CustomerMasterKeySpec: __expectString,
|
|
3405
|
+
DeletionDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3406
|
+
Description: __expectString,
|
|
3407
|
+
Enabled: __expectBoolean,
|
|
3408
|
+
EncryptionAlgorithms: _json,
|
|
3409
|
+
ExpirationModel: __expectString,
|
|
3410
|
+
KeyId: __expectString,
|
|
3411
|
+
KeyManager: __expectString,
|
|
3412
|
+
KeySpec: __expectString,
|
|
3413
|
+
KeyState: __expectString,
|
|
3414
|
+
KeyUsage: __expectString,
|
|
3415
|
+
MacAlgorithms: _json,
|
|
3416
|
+
MultiRegion: __expectBoolean,
|
|
3417
|
+
MultiRegionConfiguration: _json,
|
|
3418
|
+
Origin: __expectString,
|
|
3419
|
+
PendingDeletionWindowInDays: __expectInt32,
|
|
3420
|
+
SigningAlgorithms: _json,
|
|
3421
|
+
ValidTo: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3422
|
+
XksKeyConfiguration: _json,
|
|
4185
3423
|
});
|
|
4186
|
-
return retVal;
|
|
4187
|
-
};
|
|
4188
|
-
const de_MalformedPolicyDocumentException = (output, context) => {
|
|
4189
|
-
return {
|
|
4190
|
-
message: __expectString(output.message),
|
|
4191
|
-
};
|
|
4192
|
-
};
|
|
4193
|
-
const de_MultiRegionConfiguration = (output, context) => {
|
|
4194
|
-
return {
|
|
4195
|
-
MultiRegionKeyType: __expectString(output.MultiRegionKeyType),
|
|
4196
|
-
PrimaryKey: output.PrimaryKey != null ? de_MultiRegionKey(output.PrimaryKey, context) : undefined,
|
|
4197
|
-
ReplicaKeys: output.ReplicaKeys != null ? de_MultiRegionKeyList(output.ReplicaKeys, context) : undefined,
|
|
4198
|
-
};
|
|
4199
3424
|
};
|
|
4200
|
-
const
|
|
4201
|
-
return {
|
|
4202
|
-
|
|
4203
|
-
|
|
4204
|
-
|
|
4205
|
-
};
|
|
4206
|
-
const de_MultiRegionKeyList = (output, context) => {
|
|
4207
|
-
const retVal = (output || [])
|
|
4208
|
-
.filter((e) => e != null)
|
|
4209
|
-
.map((entry) => {
|
|
4210
|
-
if (entry === null) {
|
|
4211
|
-
return null;
|
|
4212
|
-
}
|
|
4213
|
-
return de_MultiRegionKey(entry, context);
|
|
3425
|
+
const de_ListAliasesResponse = (output, context) => {
|
|
3426
|
+
return take(output, {
|
|
3427
|
+
Aliases: (_) => de_AliasList(_, context),
|
|
3428
|
+
NextMarker: __expectString,
|
|
3429
|
+
Truncated: __expectBoolean,
|
|
4214
3430
|
});
|
|
4215
|
-
return retVal;
|
|
4216
|
-
};
|
|
4217
|
-
const de_NotFoundException = (output, context) => {
|
|
4218
|
-
return {
|
|
4219
|
-
message: __expectString(output.message),
|
|
4220
|
-
};
|
|
4221
3431
|
};
|
|
4222
|
-
const
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
return null;
|
|
4228
|
-
}
|
|
4229
|
-
return __expectString(entry);
|
|
3432
|
+
const de_ListGrantsResponse = (output, context) => {
|
|
3433
|
+
return take(output, {
|
|
3434
|
+
Grants: (_) => de_GrantList(_, context),
|
|
3435
|
+
NextMarker: __expectString,
|
|
3436
|
+
Truncated: __expectBoolean,
|
|
4230
3437
|
});
|
|
4231
|
-
return retVal;
|
|
4232
3438
|
};
|
|
4233
3439
|
const de_ReEncryptResponse = (output, context) => {
|
|
4234
|
-
return {
|
|
4235
|
-
CiphertextBlob:
|
|
4236
|
-
DestinationEncryptionAlgorithm: __expectString
|
|
4237
|
-
KeyId: __expectString
|
|
4238
|
-
SourceEncryptionAlgorithm: __expectString
|
|
4239
|
-
SourceKeyId: __expectString
|
|
4240
|
-
};
|
|
3440
|
+
return take(output, {
|
|
3441
|
+
CiphertextBlob: context.base64Decoder,
|
|
3442
|
+
DestinationEncryptionAlgorithm: __expectString,
|
|
3443
|
+
KeyId: __expectString,
|
|
3444
|
+
SourceEncryptionAlgorithm: __expectString,
|
|
3445
|
+
SourceKeyId: __expectString,
|
|
3446
|
+
});
|
|
4241
3447
|
};
|
|
4242
3448
|
const de_ReplicateKeyResponse = (output, context) => {
|
|
4243
|
-
return {
|
|
4244
|
-
ReplicaKeyMetadata:
|
|
4245
|
-
ReplicaPolicy: __expectString
|
|
4246
|
-
ReplicaTags:
|
|
4247
|
-
};
|
|
3449
|
+
return take(output, {
|
|
3450
|
+
ReplicaKeyMetadata: (_) => de_KeyMetadata(_, context),
|
|
3451
|
+
ReplicaPolicy: __expectString,
|
|
3452
|
+
ReplicaTags: _json,
|
|
3453
|
+
});
|
|
4248
3454
|
};
|
|
4249
3455
|
const de_ScheduleKeyDeletionResponse = (output, context) => {
|
|
4250
|
-
return {
|
|
4251
|
-
DeletionDate:
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
|
|
4255
|
-
KeyState: __expectString(output.KeyState),
|
|
4256
|
-
PendingWindowInDays: __expectInt32(output.PendingWindowInDays),
|
|
4257
|
-
};
|
|
4258
|
-
};
|
|
4259
|
-
const de_SigningAlgorithmSpecList = (output, context) => {
|
|
4260
|
-
const retVal = (output || [])
|
|
4261
|
-
.filter((e) => e != null)
|
|
4262
|
-
.map((entry) => {
|
|
4263
|
-
if (entry === null) {
|
|
4264
|
-
return null;
|
|
4265
|
-
}
|
|
4266
|
-
return __expectString(entry);
|
|
3456
|
+
return take(output, {
|
|
3457
|
+
DeletionDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3458
|
+
KeyId: __expectString,
|
|
3459
|
+
KeyState: __expectString,
|
|
3460
|
+
PendingWindowInDays: __expectInt32,
|
|
4267
3461
|
});
|
|
4268
|
-
return retVal;
|
|
4269
3462
|
};
|
|
4270
3463
|
const de_SignResponse = (output, context) => {
|
|
4271
|
-
return {
|
|
4272
|
-
KeyId: __expectString
|
|
4273
|
-
Signature:
|
|
4274
|
-
SigningAlgorithm: __expectString
|
|
4275
|
-
};
|
|
4276
|
-
};
|
|
4277
|
-
const de_Tag = (output, context) => {
|
|
4278
|
-
return {
|
|
4279
|
-
TagKey: __expectString(output.TagKey),
|
|
4280
|
-
TagValue: __expectString(output.TagValue),
|
|
4281
|
-
};
|
|
4282
|
-
};
|
|
4283
|
-
const de_TagException = (output, context) => {
|
|
4284
|
-
return {
|
|
4285
|
-
message: __expectString(output.message),
|
|
4286
|
-
};
|
|
4287
|
-
};
|
|
4288
|
-
const de_TagList = (output, context) => {
|
|
4289
|
-
const retVal = (output || [])
|
|
4290
|
-
.filter((e) => e != null)
|
|
4291
|
-
.map((entry) => {
|
|
4292
|
-
if (entry === null) {
|
|
4293
|
-
return null;
|
|
4294
|
-
}
|
|
4295
|
-
return de_Tag(entry, context);
|
|
3464
|
+
return take(output, {
|
|
3465
|
+
KeyId: __expectString,
|
|
3466
|
+
Signature: context.base64Decoder,
|
|
3467
|
+
SigningAlgorithm: __expectString,
|
|
4296
3468
|
});
|
|
4297
|
-
return retVal;
|
|
4298
|
-
};
|
|
4299
|
-
const de_UnsupportedOperationException = (output, context) => {
|
|
4300
|
-
return {
|
|
4301
|
-
message: __expectString(output.message),
|
|
4302
|
-
};
|
|
4303
|
-
};
|
|
4304
|
-
const de_UpdateCustomKeyStoreResponse = (output, context) => {
|
|
4305
|
-
return {};
|
|
4306
|
-
};
|
|
4307
|
-
const de_VerifyMacResponse = (output, context) => {
|
|
4308
|
-
return {
|
|
4309
|
-
KeyId: __expectString(output.KeyId),
|
|
4310
|
-
MacAlgorithm: __expectString(output.MacAlgorithm),
|
|
4311
|
-
MacValid: __expectBoolean(output.MacValid),
|
|
4312
|
-
};
|
|
4313
|
-
};
|
|
4314
|
-
const de_VerifyResponse = (output, context) => {
|
|
4315
|
-
return {
|
|
4316
|
-
KeyId: __expectString(output.KeyId),
|
|
4317
|
-
SignatureValid: __expectBoolean(output.SignatureValid),
|
|
4318
|
-
SigningAlgorithm: __expectString(output.SigningAlgorithm),
|
|
4319
|
-
};
|
|
4320
|
-
};
|
|
4321
|
-
const de_XksKeyAlreadyInUseException = (output, context) => {
|
|
4322
|
-
return {
|
|
4323
|
-
message: __expectString(output.message),
|
|
4324
|
-
};
|
|
4325
|
-
};
|
|
4326
|
-
const de_XksKeyConfigurationType = (output, context) => {
|
|
4327
|
-
return {
|
|
4328
|
-
Id: __expectString(output.Id),
|
|
4329
|
-
};
|
|
4330
|
-
};
|
|
4331
|
-
const de_XksKeyInvalidConfigurationException = (output, context) => {
|
|
4332
|
-
return {
|
|
4333
|
-
message: __expectString(output.message),
|
|
4334
|
-
};
|
|
4335
|
-
};
|
|
4336
|
-
const de_XksKeyNotFoundException = (output, context) => {
|
|
4337
|
-
return {
|
|
4338
|
-
message: __expectString(output.message),
|
|
4339
|
-
};
|
|
4340
|
-
};
|
|
4341
|
-
const de_XksProxyConfigurationType = (output, context) => {
|
|
4342
|
-
return {
|
|
4343
|
-
AccessKeyId: __expectString(output.AccessKeyId),
|
|
4344
|
-
Connectivity: __expectString(output.Connectivity),
|
|
4345
|
-
UriEndpoint: __expectString(output.UriEndpoint),
|
|
4346
|
-
UriPath: __expectString(output.UriPath),
|
|
4347
|
-
VpcEndpointServiceName: __expectString(output.VpcEndpointServiceName),
|
|
4348
|
-
};
|
|
4349
|
-
};
|
|
4350
|
-
const de_XksProxyIncorrectAuthenticationCredentialException = (output, context) => {
|
|
4351
|
-
return {
|
|
4352
|
-
message: __expectString(output.message),
|
|
4353
|
-
};
|
|
4354
|
-
};
|
|
4355
|
-
const de_XksProxyInvalidConfigurationException = (output, context) => {
|
|
4356
|
-
return {
|
|
4357
|
-
message: __expectString(output.message),
|
|
4358
|
-
};
|
|
4359
|
-
};
|
|
4360
|
-
const de_XksProxyInvalidResponseException = (output, context) => {
|
|
4361
|
-
return {
|
|
4362
|
-
message: __expectString(output.message),
|
|
4363
|
-
};
|
|
4364
|
-
};
|
|
4365
|
-
const de_XksProxyUriEndpointInUseException = (output, context) => {
|
|
4366
|
-
return {
|
|
4367
|
-
message: __expectString(output.message),
|
|
4368
|
-
};
|
|
4369
|
-
};
|
|
4370
|
-
const de_XksProxyUriInUseException = (output, context) => {
|
|
4371
|
-
return {
|
|
4372
|
-
message: __expectString(output.message),
|
|
4373
|
-
};
|
|
4374
|
-
};
|
|
4375
|
-
const de_XksProxyUriUnreachableException = (output, context) => {
|
|
4376
|
-
return {
|
|
4377
|
-
message: __expectString(output.message),
|
|
4378
|
-
};
|
|
4379
|
-
};
|
|
4380
|
-
const de_XksProxyVpcEndpointServiceInUseException = (output, context) => {
|
|
4381
|
-
return {
|
|
4382
|
-
message: __expectString(output.message),
|
|
4383
|
-
};
|
|
4384
|
-
};
|
|
4385
|
-
const de_XksProxyVpcEndpointServiceInvalidConfigurationException = (output, context) => {
|
|
4386
|
-
return {
|
|
4387
|
-
message: __expectString(output.message),
|
|
4388
|
-
};
|
|
4389
|
-
};
|
|
4390
|
-
const de_XksProxyVpcEndpointServiceNotFoundException = (output, context) => {
|
|
4391
|
-
return {
|
|
4392
|
-
message: __expectString(output.message),
|
|
4393
|
-
};
|
|
4394
3469
|
};
|
|
4395
3470
|
const deserializeMetadata = (output) => ({
|
|
4396
3471
|
httpStatusCode: output.statusCode,
|
|
@@ -4405,6 +3480,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
4405
3480
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
4406
3481
|
};
|
|
4407
3482
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
3483
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
4408
3484
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
4409
3485
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
4410
3486
|
const contents = {
|