@aws-sdk/client-kms 3.310.0 → 3.315.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/protocols/Aws_json1_1.js +516 -1584
- package/dist-es/protocols/Aws_json1_1.js +517 -1585
- package/package.json +6 -6
|
@@ -1,453 +1,303 @@
|
|
|
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
|
-
const headers =
|
|
7
|
-
"content-type": "application/x-amz-json-1.1",
|
|
8
|
-
"x-amz-target": "TrentService.CancelKeyDeletion",
|
|
9
|
-
};
|
|
6
|
+
const headers = sharedHeaders("CancelKeyDeletion");
|
|
10
7
|
let body;
|
|
11
|
-
body = JSON.stringify(
|
|
8
|
+
body = JSON.stringify(_json(input));
|
|
12
9
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
13
10
|
};
|
|
14
11
|
export const se_ConnectCustomKeyStoreCommand = async (input, context) => {
|
|
15
|
-
const headers =
|
|
16
|
-
"content-type": "application/x-amz-json-1.1",
|
|
17
|
-
"x-amz-target": "TrentService.ConnectCustomKeyStore",
|
|
18
|
-
};
|
|
12
|
+
const headers = sharedHeaders("ConnectCustomKeyStore");
|
|
19
13
|
let body;
|
|
20
|
-
body = JSON.stringify(
|
|
14
|
+
body = JSON.stringify(_json(input));
|
|
21
15
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
16
|
};
|
|
23
17
|
export const se_CreateAliasCommand = async (input, context) => {
|
|
24
|
-
const headers =
|
|
25
|
-
"content-type": "application/x-amz-json-1.1",
|
|
26
|
-
"x-amz-target": "TrentService.CreateAlias",
|
|
27
|
-
};
|
|
18
|
+
const headers = sharedHeaders("CreateAlias");
|
|
28
19
|
let body;
|
|
29
|
-
body = JSON.stringify(
|
|
20
|
+
body = JSON.stringify(_json(input));
|
|
30
21
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
31
22
|
};
|
|
32
23
|
export const se_CreateCustomKeyStoreCommand = async (input, context) => {
|
|
33
|
-
const headers =
|
|
34
|
-
"content-type": "application/x-amz-json-1.1",
|
|
35
|
-
"x-amz-target": "TrentService.CreateCustomKeyStore",
|
|
36
|
-
};
|
|
24
|
+
const headers = sharedHeaders("CreateCustomKeyStore");
|
|
37
25
|
let body;
|
|
38
|
-
body = JSON.stringify(
|
|
26
|
+
body = JSON.stringify(_json(input));
|
|
39
27
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
40
28
|
};
|
|
41
29
|
export const se_CreateGrantCommand = async (input, context) => {
|
|
42
|
-
const headers =
|
|
43
|
-
"content-type": "application/x-amz-json-1.1",
|
|
44
|
-
"x-amz-target": "TrentService.CreateGrant",
|
|
45
|
-
};
|
|
30
|
+
const headers = sharedHeaders("CreateGrant");
|
|
46
31
|
let body;
|
|
47
|
-
body = JSON.stringify(
|
|
32
|
+
body = JSON.stringify(_json(input));
|
|
48
33
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
49
34
|
};
|
|
50
35
|
export const se_CreateKeyCommand = async (input, context) => {
|
|
51
|
-
const headers =
|
|
52
|
-
"content-type": "application/x-amz-json-1.1",
|
|
53
|
-
"x-amz-target": "TrentService.CreateKey",
|
|
54
|
-
};
|
|
36
|
+
const headers = sharedHeaders("CreateKey");
|
|
55
37
|
let body;
|
|
56
|
-
body = JSON.stringify(
|
|
38
|
+
body = JSON.stringify(_json(input));
|
|
57
39
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
40
|
};
|
|
59
41
|
export const se_DecryptCommand = async (input, context) => {
|
|
60
|
-
const headers =
|
|
61
|
-
"content-type": "application/x-amz-json-1.1",
|
|
62
|
-
"x-amz-target": "TrentService.Decrypt",
|
|
63
|
-
};
|
|
42
|
+
const headers = sharedHeaders("Decrypt");
|
|
64
43
|
let body;
|
|
65
44
|
body = JSON.stringify(se_DecryptRequest(input, context));
|
|
66
45
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
46
|
};
|
|
68
47
|
export const se_DeleteAliasCommand = async (input, context) => {
|
|
69
|
-
const headers =
|
|
70
|
-
"content-type": "application/x-amz-json-1.1",
|
|
71
|
-
"x-amz-target": "TrentService.DeleteAlias",
|
|
72
|
-
};
|
|
48
|
+
const headers = sharedHeaders("DeleteAlias");
|
|
73
49
|
let body;
|
|
74
|
-
body = JSON.stringify(
|
|
50
|
+
body = JSON.stringify(_json(input));
|
|
75
51
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
52
|
};
|
|
77
53
|
export const se_DeleteCustomKeyStoreCommand = async (input, context) => {
|
|
78
|
-
const headers =
|
|
79
|
-
"content-type": "application/x-amz-json-1.1",
|
|
80
|
-
"x-amz-target": "TrentService.DeleteCustomKeyStore",
|
|
81
|
-
};
|
|
54
|
+
const headers = sharedHeaders("DeleteCustomKeyStore");
|
|
82
55
|
let body;
|
|
83
|
-
body = JSON.stringify(
|
|
56
|
+
body = JSON.stringify(_json(input));
|
|
84
57
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
85
58
|
};
|
|
86
59
|
export const se_DeleteImportedKeyMaterialCommand = async (input, context) => {
|
|
87
|
-
const headers =
|
|
88
|
-
"content-type": "application/x-amz-json-1.1",
|
|
89
|
-
"x-amz-target": "TrentService.DeleteImportedKeyMaterial",
|
|
90
|
-
};
|
|
60
|
+
const headers = sharedHeaders("DeleteImportedKeyMaterial");
|
|
91
61
|
let body;
|
|
92
|
-
body = JSON.stringify(
|
|
62
|
+
body = JSON.stringify(_json(input));
|
|
93
63
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
94
64
|
};
|
|
95
65
|
export const se_DescribeCustomKeyStoresCommand = async (input, context) => {
|
|
96
|
-
const headers =
|
|
97
|
-
"content-type": "application/x-amz-json-1.1",
|
|
98
|
-
"x-amz-target": "TrentService.DescribeCustomKeyStores",
|
|
99
|
-
};
|
|
66
|
+
const headers = sharedHeaders("DescribeCustomKeyStores");
|
|
100
67
|
let body;
|
|
101
|
-
body = JSON.stringify(
|
|
68
|
+
body = JSON.stringify(_json(input));
|
|
102
69
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
103
70
|
};
|
|
104
71
|
export const se_DescribeKeyCommand = async (input, context) => {
|
|
105
|
-
const headers =
|
|
106
|
-
"content-type": "application/x-amz-json-1.1",
|
|
107
|
-
"x-amz-target": "TrentService.DescribeKey",
|
|
108
|
-
};
|
|
72
|
+
const headers = sharedHeaders("DescribeKey");
|
|
109
73
|
let body;
|
|
110
|
-
body = JSON.stringify(
|
|
74
|
+
body = JSON.stringify(_json(input));
|
|
111
75
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
112
76
|
};
|
|
113
77
|
export const se_DisableKeyCommand = async (input, context) => {
|
|
114
|
-
const headers =
|
|
115
|
-
"content-type": "application/x-amz-json-1.1",
|
|
116
|
-
"x-amz-target": "TrentService.DisableKey",
|
|
117
|
-
};
|
|
78
|
+
const headers = sharedHeaders("DisableKey");
|
|
118
79
|
let body;
|
|
119
|
-
body = JSON.stringify(
|
|
80
|
+
body = JSON.stringify(_json(input));
|
|
120
81
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
121
82
|
};
|
|
122
83
|
export const se_DisableKeyRotationCommand = async (input, context) => {
|
|
123
|
-
const headers =
|
|
124
|
-
"content-type": "application/x-amz-json-1.1",
|
|
125
|
-
"x-amz-target": "TrentService.DisableKeyRotation",
|
|
126
|
-
};
|
|
84
|
+
const headers = sharedHeaders("DisableKeyRotation");
|
|
127
85
|
let body;
|
|
128
|
-
body = JSON.stringify(
|
|
86
|
+
body = JSON.stringify(_json(input));
|
|
129
87
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
130
88
|
};
|
|
131
89
|
export const se_DisconnectCustomKeyStoreCommand = async (input, context) => {
|
|
132
|
-
const headers =
|
|
133
|
-
"content-type": "application/x-amz-json-1.1",
|
|
134
|
-
"x-amz-target": "TrentService.DisconnectCustomKeyStore",
|
|
135
|
-
};
|
|
90
|
+
const headers = sharedHeaders("DisconnectCustomKeyStore");
|
|
136
91
|
let body;
|
|
137
|
-
body = JSON.stringify(
|
|
92
|
+
body = JSON.stringify(_json(input));
|
|
138
93
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
139
94
|
};
|
|
140
95
|
export const se_EnableKeyCommand = async (input, context) => {
|
|
141
|
-
const headers =
|
|
142
|
-
"content-type": "application/x-amz-json-1.1",
|
|
143
|
-
"x-amz-target": "TrentService.EnableKey",
|
|
144
|
-
};
|
|
96
|
+
const headers = sharedHeaders("EnableKey");
|
|
145
97
|
let body;
|
|
146
|
-
body = JSON.stringify(
|
|
98
|
+
body = JSON.stringify(_json(input));
|
|
147
99
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
148
100
|
};
|
|
149
101
|
export const se_EnableKeyRotationCommand = async (input, context) => {
|
|
150
|
-
const headers =
|
|
151
|
-
"content-type": "application/x-amz-json-1.1",
|
|
152
|
-
"x-amz-target": "TrentService.EnableKeyRotation",
|
|
153
|
-
};
|
|
102
|
+
const headers = sharedHeaders("EnableKeyRotation");
|
|
154
103
|
let body;
|
|
155
|
-
body = JSON.stringify(
|
|
104
|
+
body = JSON.stringify(_json(input));
|
|
156
105
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
157
106
|
};
|
|
158
107
|
export const se_EncryptCommand = async (input, context) => {
|
|
159
|
-
const headers =
|
|
160
|
-
"content-type": "application/x-amz-json-1.1",
|
|
161
|
-
"x-amz-target": "TrentService.Encrypt",
|
|
162
|
-
};
|
|
108
|
+
const headers = sharedHeaders("Encrypt");
|
|
163
109
|
let body;
|
|
164
110
|
body = JSON.stringify(se_EncryptRequest(input, context));
|
|
165
111
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
166
112
|
};
|
|
167
113
|
export const se_GenerateDataKeyCommand = async (input, context) => {
|
|
168
|
-
const headers =
|
|
169
|
-
"content-type": "application/x-amz-json-1.1",
|
|
170
|
-
"x-amz-target": "TrentService.GenerateDataKey",
|
|
171
|
-
};
|
|
114
|
+
const headers = sharedHeaders("GenerateDataKey");
|
|
172
115
|
let body;
|
|
173
|
-
body = JSON.stringify(
|
|
116
|
+
body = JSON.stringify(_json(input));
|
|
174
117
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
175
118
|
};
|
|
176
119
|
export const se_GenerateDataKeyPairCommand = async (input, context) => {
|
|
177
|
-
const headers =
|
|
178
|
-
"content-type": "application/x-amz-json-1.1",
|
|
179
|
-
"x-amz-target": "TrentService.GenerateDataKeyPair",
|
|
180
|
-
};
|
|
120
|
+
const headers = sharedHeaders("GenerateDataKeyPair");
|
|
181
121
|
let body;
|
|
182
|
-
body = JSON.stringify(
|
|
122
|
+
body = JSON.stringify(_json(input));
|
|
183
123
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
184
124
|
};
|
|
185
125
|
export const se_GenerateDataKeyPairWithoutPlaintextCommand = async (input, context) => {
|
|
186
|
-
const headers =
|
|
187
|
-
"content-type": "application/x-amz-json-1.1",
|
|
188
|
-
"x-amz-target": "TrentService.GenerateDataKeyPairWithoutPlaintext",
|
|
189
|
-
};
|
|
126
|
+
const headers = sharedHeaders("GenerateDataKeyPairWithoutPlaintext");
|
|
190
127
|
let body;
|
|
191
|
-
body = JSON.stringify(
|
|
128
|
+
body = JSON.stringify(_json(input));
|
|
192
129
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
193
130
|
};
|
|
194
131
|
export const se_GenerateDataKeyWithoutPlaintextCommand = async (input, context) => {
|
|
195
|
-
const headers =
|
|
196
|
-
"content-type": "application/x-amz-json-1.1",
|
|
197
|
-
"x-amz-target": "TrentService.GenerateDataKeyWithoutPlaintext",
|
|
198
|
-
};
|
|
132
|
+
const headers = sharedHeaders("GenerateDataKeyWithoutPlaintext");
|
|
199
133
|
let body;
|
|
200
|
-
body = JSON.stringify(
|
|
134
|
+
body = JSON.stringify(_json(input));
|
|
201
135
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
202
136
|
};
|
|
203
137
|
export const se_GenerateMacCommand = async (input, context) => {
|
|
204
|
-
const headers =
|
|
205
|
-
"content-type": "application/x-amz-json-1.1",
|
|
206
|
-
"x-amz-target": "TrentService.GenerateMac",
|
|
207
|
-
};
|
|
138
|
+
const headers = sharedHeaders("GenerateMac");
|
|
208
139
|
let body;
|
|
209
140
|
body = JSON.stringify(se_GenerateMacRequest(input, context));
|
|
210
141
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
211
142
|
};
|
|
212
143
|
export const se_GenerateRandomCommand = async (input, context) => {
|
|
213
|
-
const headers =
|
|
214
|
-
"content-type": "application/x-amz-json-1.1",
|
|
215
|
-
"x-amz-target": "TrentService.GenerateRandom",
|
|
216
|
-
};
|
|
144
|
+
const headers = sharedHeaders("GenerateRandom");
|
|
217
145
|
let body;
|
|
218
|
-
body = JSON.stringify(
|
|
146
|
+
body = JSON.stringify(_json(input));
|
|
219
147
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
220
148
|
};
|
|
221
149
|
export const se_GetKeyPolicyCommand = async (input, context) => {
|
|
222
|
-
const headers =
|
|
223
|
-
"content-type": "application/x-amz-json-1.1",
|
|
224
|
-
"x-amz-target": "TrentService.GetKeyPolicy",
|
|
225
|
-
};
|
|
150
|
+
const headers = sharedHeaders("GetKeyPolicy");
|
|
226
151
|
let body;
|
|
227
|
-
body = JSON.stringify(
|
|
152
|
+
body = JSON.stringify(_json(input));
|
|
228
153
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
229
154
|
};
|
|
230
155
|
export const se_GetKeyRotationStatusCommand = async (input, context) => {
|
|
231
|
-
const headers =
|
|
232
|
-
"content-type": "application/x-amz-json-1.1",
|
|
233
|
-
"x-amz-target": "TrentService.GetKeyRotationStatus",
|
|
234
|
-
};
|
|
156
|
+
const headers = sharedHeaders("GetKeyRotationStatus");
|
|
235
157
|
let body;
|
|
236
|
-
body = JSON.stringify(
|
|
158
|
+
body = JSON.stringify(_json(input));
|
|
237
159
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
238
160
|
};
|
|
239
161
|
export const se_GetParametersForImportCommand = async (input, context) => {
|
|
240
|
-
const headers =
|
|
241
|
-
"content-type": "application/x-amz-json-1.1",
|
|
242
|
-
"x-amz-target": "TrentService.GetParametersForImport",
|
|
243
|
-
};
|
|
162
|
+
const headers = sharedHeaders("GetParametersForImport");
|
|
244
163
|
let body;
|
|
245
|
-
body = JSON.stringify(
|
|
164
|
+
body = JSON.stringify(_json(input));
|
|
246
165
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
247
166
|
};
|
|
248
167
|
export const se_GetPublicKeyCommand = async (input, context) => {
|
|
249
|
-
const headers =
|
|
250
|
-
"content-type": "application/x-amz-json-1.1",
|
|
251
|
-
"x-amz-target": "TrentService.GetPublicKey",
|
|
252
|
-
};
|
|
168
|
+
const headers = sharedHeaders("GetPublicKey");
|
|
253
169
|
let body;
|
|
254
|
-
body = JSON.stringify(
|
|
170
|
+
body = JSON.stringify(_json(input));
|
|
255
171
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
256
172
|
};
|
|
257
173
|
export const se_ImportKeyMaterialCommand = async (input, context) => {
|
|
258
|
-
const headers =
|
|
259
|
-
"content-type": "application/x-amz-json-1.1",
|
|
260
|
-
"x-amz-target": "TrentService.ImportKeyMaterial",
|
|
261
|
-
};
|
|
174
|
+
const headers = sharedHeaders("ImportKeyMaterial");
|
|
262
175
|
let body;
|
|
263
176
|
body = JSON.stringify(se_ImportKeyMaterialRequest(input, context));
|
|
264
177
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
265
178
|
};
|
|
266
179
|
export const se_ListAliasesCommand = async (input, context) => {
|
|
267
|
-
const headers =
|
|
268
|
-
"content-type": "application/x-amz-json-1.1",
|
|
269
|
-
"x-amz-target": "TrentService.ListAliases",
|
|
270
|
-
};
|
|
180
|
+
const headers = sharedHeaders("ListAliases");
|
|
271
181
|
let body;
|
|
272
|
-
body = JSON.stringify(
|
|
182
|
+
body = JSON.stringify(_json(input));
|
|
273
183
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
274
184
|
};
|
|
275
185
|
export const se_ListGrantsCommand = async (input, context) => {
|
|
276
|
-
const headers =
|
|
277
|
-
"content-type": "application/x-amz-json-1.1",
|
|
278
|
-
"x-amz-target": "TrentService.ListGrants",
|
|
279
|
-
};
|
|
186
|
+
const headers = sharedHeaders("ListGrants");
|
|
280
187
|
let body;
|
|
281
|
-
body = JSON.stringify(
|
|
188
|
+
body = JSON.stringify(_json(input));
|
|
282
189
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
283
190
|
};
|
|
284
191
|
export const se_ListKeyPoliciesCommand = async (input, context) => {
|
|
285
|
-
const headers =
|
|
286
|
-
"content-type": "application/x-amz-json-1.1",
|
|
287
|
-
"x-amz-target": "TrentService.ListKeyPolicies",
|
|
288
|
-
};
|
|
192
|
+
const headers = sharedHeaders("ListKeyPolicies");
|
|
289
193
|
let body;
|
|
290
|
-
body = JSON.stringify(
|
|
194
|
+
body = JSON.stringify(_json(input));
|
|
291
195
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
292
196
|
};
|
|
293
197
|
export const se_ListKeysCommand = async (input, context) => {
|
|
294
|
-
const headers =
|
|
295
|
-
"content-type": "application/x-amz-json-1.1",
|
|
296
|
-
"x-amz-target": "TrentService.ListKeys",
|
|
297
|
-
};
|
|
198
|
+
const headers = sharedHeaders("ListKeys");
|
|
298
199
|
let body;
|
|
299
|
-
body = JSON.stringify(
|
|
200
|
+
body = JSON.stringify(_json(input));
|
|
300
201
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
301
202
|
};
|
|
302
203
|
export const se_ListResourceTagsCommand = async (input, context) => {
|
|
303
|
-
const headers =
|
|
304
|
-
"content-type": "application/x-amz-json-1.1",
|
|
305
|
-
"x-amz-target": "TrentService.ListResourceTags",
|
|
306
|
-
};
|
|
204
|
+
const headers = sharedHeaders("ListResourceTags");
|
|
307
205
|
let body;
|
|
308
|
-
body = JSON.stringify(
|
|
206
|
+
body = JSON.stringify(_json(input));
|
|
309
207
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
310
208
|
};
|
|
311
209
|
export const se_ListRetirableGrantsCommand = async (input, context) => {
|
|
312
|
-
const headers =
|
|
313
|
-
"content-type": "application/x-amz-json-1.1",
|
|
314
|
-
"x-amz-target": "TrentService.ListRetirableGrants",
|
|
315
|
-
};
|
|
210
|
+
const headers = sharedHeaders("ListRetirableGrants");
|
|
316
211
|
let body;
|
|
317
|
-
body = JSON.stringify(
|
|
212
|
+
body = JSON.stringify(_json(input));
|
|
318
213
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
319
214
|
};
|
|
320
215
|
export const se_PutKeyPolicyCommand = async (input, context) => {
|
|
321
|
-
const headers =
|
|
322
|
-
"content-type": "application/x-amz-json-1.1",
|
|
323
|
-
"x-amz-target": "TrentService.PutKeyPolicy",
|
|
324
|
-
};
|
|
216
|
+
const headers = sharedHeaders("PutKeyPolicy");
|
|
325
217
|
let body;
|
|
326
|
-
body = JSON.stringify(
|
|
218
|
+
body = JSON.stringify(_json(input));
|
|
327
219
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
328
220
|
};
|
|
329
221
|
export const se_ReEncryptCommand = async (input, context) => {
|
|
330
|
-
const headers =
|
|
331
|
-
"content-type": "application/x-amz-json-1.1",
|
|
332
|
-
"x-amz-target": "TrentService.ReEncrypt",
|
|
333
|
-
};
|
|
222
|
+
const headers = sharedHeaders("ReEncrypt");
|
|
334
223
|
let body;
|
|
335
224
|
body = JSON.stringify(se_ReEncryptRequest(input, context));
|
|
336
225
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
337
226
|
};
|
|
338
227
|
export const se_ReplicateKeyCommand = async (input, context) => {
|
|
339
|
-
const headers =
|
|
340
|
-
"content-type": "application/x-amz-json-1.1",
|
|
341
|
-
"x-amz-target": "TrentService.ReplicateKey",
|
|
342
|
-
};
|
|
228
|
+
const headers = sharedHeaders("ReplicateKey");
|
|
343
229
|
let body;
|
|
344
|
-
body = JSON.stringify(
|
|
230
|
+
body = JSON.stringify(_json(input));
|
|
345
231
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
346
232
|
};
|
|
347
233
|
export const se_RetireGrantCommand = async (input, context) => {
|
|
348
|
-
const headers =
|
|
349
|
-
"content-type": "application/x-amz-json-1.1",
|
|
350
|
-
"x-amz-target": "TrentService.RetireGrant",
|
|
351
|
-
};
|
|
234
|
+
const headers = sharedHeaders("RetireGrant");
|
|
352
235
|
let body;
|
|
353
|
-
body = JSON.stringify(
|
|
236
|
+
body = JSON.stringify(_json(input));
|
|
354
237
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
355
238
|
};
|
|
356
239
|
export const se_RevokeGrantCommand = async (input, context) => {
|
|
357
|
-
const headers =
|
|
358
|
-
"content-type": "application/x-amz-json-1.1",
|
|
359
|
-
"x-amz-target": "TrentService.RevokeGrant",
|
|
360
|
-
};
|
|
240
|
+
const headers = sharedHeaders("RevokeGrant");
|
|
361
241
|
let body;
|
|
362
|
-
body = JSON.stringify(
|
|
242
|
+
body = JSON.stringify(_json(input));
|
|
363
243
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
364
244
|
};
|
|
365
245
|
export const se_ScheduleKeyDeletionCommand = async (input, context) => {
|
|
366
|
-
const headers =
|
|
367
|
-
"content-type": "application/x-amz-json-1.1",
|
|
368
|
-
"x-amz-target": "TrentService.ScheduleKeyDeletion",
|
|
369
|
-
};
|
|
246
|
+
const headers = sharedHeaders("ScheduleKeyDeletion");
|
|
370
247
|
let body;
|
|
371
|
-
body = JSON.stringify(
|
|
248
|
+
body = JSON.stringify(_json(input));
|
|
372
249
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
373
250
|
};
|
|
374
251
|
export const se_SignCommand = async (input, context) => {
|
|
375
|
-
const headers =
|
|
376
|
-
"content-type": "application/x-amz-json-1.1",
|
|
377
|
-
"x-amz-target": "TrentService.Sign",
|
|
378
|
-
};
|
|
252
|
+
const headers = sharedHeaders("Sign");
|
|
379
253
|
let body;
|
|
380
254
|
body = JSON.stringify(se_SignRequest(input, context));
|
|
381
255
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
382
256
|
};
|
|
383
257
|
export const se_TagResourceCommand = async (input, context) => {
|
|
384
|
-
const headers =
|
|
385
|
-
"content-type": "application/x-amz-json-1.1",
|
|
386
|
-
"x-amz-target": "TrentService.TagResource",
|
|
387
|
-
};
|
|
258
|
+
const headers = sharedHeaders("TagResource");
|
|
388
259
|
let body;
|
|
389
|
-
body = JSON.stringify(
|
|
260
|
+
body = JSON.stringify(_json(input));
|
|
390
261
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
391
262
|
};
|
|
392
263
|
export const se_UntagResourceCommand = async (input, context) => {
|
|
393
|
-
const headers =
|
|
394
|
-
"content-type": "application/x-amz-json-1.1",
|
|
395
|
-
"x-amz-target": "TrentService.UntagResource",
|
|
396
|
-
};
|
|
264
|
+
const headers = sharedHeaders("UntagResource");
|
|
397
265
|
let body;
|
|
398
|
-
body = JSON.stringify(
|
|
266
|
+
body = JSON.stringify(_json(input));
|
|
399
267
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
400
268
|
};
|
|
401
269
|
export const se_UpdateAliasCommand = async (input, context) => {
|
|
402
|
-
const headers =
|
|
403
|
-
"content-type": "application/x-amz-json-1.1",
|
|
404
|
-
"x-amz-target": "TrentService.UpdateAlias",
|
|
405
|
-
};
|
|
270
|
+
const headers = sharedHeaders("UpdateAlias");
|
|
406
271
|
let body;
|
|
407
|
-
body = JSON.stringify(
|
|
272
|
+
body = JSON.stringify(_json(input));
|
|
408
273
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
409
274
|
};
|
|
410
275
|
export const se_UpdateCustomKeyStoreCommand = async (input, context) => {
|
|
411
|
-
const headers =
|
|
412
|
-
"content-type": "application/x-amz-json-1.1",
|
|
413
|
-
"x-amz-target": "TrentService.UpdateCustomKeyStore",
|
|
414
|
-
};
|
|
276
|
+
const headers = sharedHeaders("UpdateCustomKeyStore");
|
|
415
277
|
let body;
|
|
416
|
-
body = JSON.stringify(
|
|
278
|
+
body = JSON.stringify(_json(input));
|
|
417
279
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
418
280
|
};
|
|
419
281
|
export const se_UpdateKeyDescriptionCommand = async (input, context) => {
|
|
420
|
-
const headers =
|
|
421
|
-
"content-type": "application/x-amz-json-1.1",
|
|
422
|
-
"x-amz-target": "TrentService.UpdateKeyDescription",
|
|
423
|
-
};
|
|
282
|
+
const headers = sharedHeaders("UpdateKeyDescription");
|
|
424
283
|
let body;
|
|
425
|
-
body = JSON.stringify(
|
|
284
|
+
body = JSON.stringify(_json(input));
|
|
426
285
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
427
286
|
};
|
|
428
287
|
export const se_UpdatePrimaryRegionCommand = async (input, context) => {
|
|
429
|
-
const headers =
|
|
430
|
-
"content-type": "application/x-amz-json-1.1",
|
|
431
|
-
"x-amz-target": "TrentService.UpdatePrimaryRegion",
|
|
432
|
-
};
|
|
288
|
+
const headers = sharedHeaders("UpdatePrimaryRegion");
|
|
433
289
|
let body;
|
|
434
|
-
body = JSON.stringify(
|
|
290
|
+
body = JSON.stringify(_json(input));
|
|
435
291
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
436
292
|
};
|
|
437
293
|
export const se_VerifyCommand = async (input, context) => {
|
|
438
|
-
const headers =
|
|
439
|
-
"content-type": "application/x-amz-json-1.1",
|
|
440
|
-
"x-amz-target": "TrentService.Verify",
|
|
441
|
-
};
|
|
294
|
+
const headers = sharedHeaders("Verify");
|
|
442
295
|
let body;
|
|
443
296
|
body = JSON.stringify(se_VerifyRequest(input, context));
|
|
444
297
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
445
298
|
};
|
|
446
299
|
export const se_VerifyMacCommand = async (input, context) => {
|
|
447
|
-
const headers =
|
|
448
|
-
"content-type": "application/x-amz-json-1.1",
|
|
449
|
-
"x-amz-target": "TrentService.VerifyMac",
|
|
450
|
-
};
|
|
300
|
+
const headers = sharedHeaders("VerifyMac");
|
|
451
301
|
let body;
|
|
452
302
|
body = JSON.stringify(se_VerifyMacRequest(input, context));
|
|
453
303
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
@@ -458,12 +308,12 @@ export const de_CancelKeyDeletionCommand = async (output, context) => {
|
|
|
458
308
|
}
|
|
459
309
|
const data = await parseBody(output.body, context);
|
|
460
310
|
let contents = {};
|
|
461
|
-
contents =
|
|
311
|
+
contents = _json(data);
|
|
462
312
|
const response = {
|
|
463
313
|
$metadata: deserializeMetadata(output),
|
|
464
314
|
...contents,
|
|
465
315
|
};
|
|
466
|
-
return
|
|
316
|
+
return response;
|
|
467
317
|
};
|
|
468
318
|
const de_CancelKeyDeletionCommandError = async (output, context) => {
|
|
469
319
|
const parsedOutput = {
|
|
@@ -489,10 +339,9 @@ const de_CancelKeyDeletionCommandError = async (output, context) => {
|
|
|
489
339
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
490
340
|
default:
|
|
491
341
|
const parsedBody = parsedOutput.body;
|
|
492
|
-
throwDefaultError({
|
|
342
|
+
return throwDefaultError({
|
|
493
343
|
output,
|
|
494
344
|
parsedBody,
|
|
495
|
-
exceptionCtor: __BaseException,
|
|
496
345
|
errorCode,
|
|
497
346
|
});
|
|
498
347
|
}
|
|
@@ -503,12 +352,12 @@ export const de_ConnectCustomKeyStoreCommand = async (output, context) => {
|
|
|
503
352
|
}
|
|
504
353
|
const data = await parseBody(output.body, context);
|
|
505
354
|
let contents = {};
|
|
506
|
-
contents =
|
|
355
|
+
contents = _json(data);
|
|
507
356
|
const response = {
|
|
508
357
|
$metadata: deserializeMetadata(output),
|
|
509
358
|
...contents,
|
|
510
359
|
};
|
|
511
|
-
return
|
|
360
|
+
return response;
|
|
512
361
|
};
|
|
513
362
|
const de_ConnectCustomKeyStoreCommandError = async (output, context) => {
|
|
514
363
|
const parsedOutput = {
|
|
@@ -534,10 +383,9 @@ const de_ConnectCustomKeyStoreCommandError = async (output, context) => {
|
|
|
534
383
|
throw await de_KMSInternalExceptionRes(parsedOutput, context);
|
|
535
384
|
default:
|
|
536
385
|
const parsedBody = parsedOutput.body;
|
|
537
|
-
throwDefaultError({
|
|
386
|
+
return throwDefaultError({
|
|
538
387
|
output,
|
|
539
388
|
parsedBody,
|
|
540
|
-
exceptionCtor: __BaseException,
|
|
541
389
|
errorCode,
|
|
542
390
|
});
|
|
543
391
|
}
|
|
@@ -550,7 +398,7 @@ export const de_CreateAliasCommand = async (output, context) => {
|
|
|
550
398
|
const response = {
|
|
551
399
|
$metadata: deserializeMetadata(output),
|
|
552
400
|
};
|
|
553
|
-
return
|
|
401
|
+
return response;
|
|
554
402
|
};
|
|
555
403
|
const de_CreateAliasCommandError = async (output, context) => {
|
|
556
404
|
const parsedOutput = {
|
|
@@ -582,10 +430,9 @@ const de_CreateAliasCommandError = async (output, context) => {
|
|
|
582
430
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
583
431
|
default:
|
|
584
432
|
const parsedBody = parsedOutput.body;
|
|
585
|
-
throwDefaultError({
|
|
433
|
+
return throwDefaultError({
|
|
586
434
|
output,
|
|
587
435
|
parsedBody,
|
|
588
|
-
exceptionCtor: __BaseException,
|
|
589
436
|
errorCode,
|
|
590
437
|
});
|
|
591
438
|
}
|
|
@@ -596,12 +443,12 @@ export const de_CreateCustomKeyStoreCommand = async (output, context) => {
|
|
|
596
443
|
}
|
|
597
444
|
const data = await parseBody(output.body, context);
|
|
598
445
|
let contents = {};
|
|
599
|
-
contents =
|
|
446
|
+
contents = _json(data);
|
|
600
447
|
const response = {
|
|
601
448
|
$metadata: deserializeMetadata(output),
|
|
602
449
|
...contents,
|
|
603
450
|
};
|
|
604
|
-
return
|
|
451
|
+
return response;
|
|
605
452
|
};
|
|
606
453
|
const de_CreateCustomKeyStoreCommandError = async (output, context) => {
|
|
607
454
|
const parsedOutput = {
|
|
@@ -663,10 +510,9 @@ const de_CreateCustomKeyStoreCommandError = async (output, context) => {
|
|
|
663
510
|
throw await de_XksProxyVpcEndpointServiceNotFoundExceptionRes(parsedOutput, context);
|
|
664
511
|
default:
|
|
665
512
|
const parsedBody = parsedOutput.body;
|
|
666
|
-
throwDefaultError({
|
|
513
|
+
return throwDefaultError({
|
|
667
514
|
output,
|
|
668
515
|
parsedBody,
|
|
669
|
-
exceptionCtor: __BaseException,
|
|
670
516
|
errorCode,
|
|
671
517
|
});
|
|
672
518
|
}
|
|
@@ -677,12 +523,12 @@ export const de_CreateGrantCommand = async (output, context) => {
|
|
|
677
523
|
}
|
|
678
524
|
const data = await parseBody(output.body, context);
|
|
679
525
|
let contents = {};
|
|
680
|
-
contents =
|
|
526
|
+
contents = _json(data);
|
|
681
527
|
const response = {
|
|
682
528
|
$metadata: deserializeMetadata(output),
|
|
683
529
|
...contents,
|
|
684
530
|
};
|
|
685
|
-
return
|
|
531
|
+
return response;
|
|
686
532
|
};
|
|
687
533
|
const de_CreateGrantCommandError = async (output, context) => {
|
|
688
534
|
const parsedOutput = {
|
|
@@ -717,10 +563,9 @@ const de_CreateGrantCommandError = async (output, context) => {
|
|
|
717
563
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
718
564
|
default:
|
|
719
565
|
const parsedBody = parsedOutput.body;
|
|
720
|
-
throwDefaultError({
|
|
566
|
+
return throwDefaultError({
|
|
721
567
|
output,
|
|
722
568
|
parsedBody,
|
|
723
|
-
exceptionCtor: __BaseException,
|
|
724
569
|
errorCode,
|
|
725
570
|
});
|
|
726
571
|
}
|
|
@@ -736,7 +581,7 @@ export const de_CreateKeyCommand = async (output, context) => {
|
|
|
736
581
|
$metadata: deserializeMetadata(output),
|
|
737
582
|
...contents,
|
|
738
583
|
};
|
|
739
|
-
return
|
|
584
|
+
return response;
|
|
740
585
|
};
|
|
741
586
|
const de_CreateKeyCommandError = async (output, context) => {
|
|
742
587
|
const parsedOutput = {
|
|
@@ -786,10 +631,9 @@ const de_CreateKeyCommandError = async (output, context) => {
|
|
|
786
631
|
throw await de_XksKeyNotFoundExceptionRes(parsedOutput, context);
|
|
787
632
|
default:
|
|
788
633
|
const parsedBody = parsedOutput.body;
|
|
789
|
-
throwDefaultError({
|
|
634
|
+
return throwDefaultError({
|
|
790
635
|
output,
|
|
791
636
|
parsedBody,
|
|
792
|
-
exceptionCtor: __BaseException,
|
|
793
637
|
errorCode,
|
|
794
638
|
});
|
|
795
639
|
}
|
|
@@ -805,7 +649,7 @@ export const de_DecryptCommand = async (output, context) => {
|
|
|
805
649
|
$metadata: deserializeMetadata(output),
|
|
806
650
|
...contents,
|
|
807
651
|
};
|
|
808
|
-
return
|
|
652
|
+
return response;
|
|
809
653
|
};
|
|
810
654
|
const de_DecryptCommandError = async (output, context) => {
|
|
811
655
|
const parsedOutput = {
|
|
@@ -846,10 +690,9 @@ const de_DecryptCommandError = async (output, context) => {
|
|
|
846
690
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
847
691
|
default:
|
|
848
692
|
const parsedBody = parsedOutput.body;
|
|
849
|
-
throwDefaultError({
|
|
693
|
+
return throwDefaultError({
|
|
850
694
|
output,
|
|
851
695
|
parsedBody,
|
|
852
|
-
exceptionCtor: __BaseException,
|
|
853
696
|
errorCode,
|
|
854
697
|
});
|
|
855
698
|
}
|
|
@@ -862,7 +705,7 @@ export const de_DeleteAliasCommand = async (output, context) => {
|
|
|
862
705
|
const response = {
|
|
863
706
|
$metadata: deserializeMetadata(output),
|
|
864
707
|
};
|
|
865
|
-
return
|
|
708
|
+
return response;
|
|
866
709
|
};
|
|
867
710
|
const de_DeleteAliasCommandError = async (output, context) => {
|
|
868
711
|
const parsedOutput = {
|
|
@@ -885,10 +728,9 @@ const de_DeleteAliasCommandError = async (output, context) => {
|
|
|
885
728
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
886
729
|
default:
|
|
887
730
|
const parsedBody = parsedOutput.body;
|
|
888
|
-
throwDefaultError({
|
|
731
|
+
return throwDefaultError({
|
|
889
732
|
output,
|
|
890
733
|
parsedBody,
|
|
891
|
-
exceptionCtor: __BaseException,
|
|
892
734
|
errorCode,
|
|
893
735
|
});
|
|
894
736
|
}
|
|
@@ -899,12 +741,12 @@ export const de_DeleteCustomKeyStoreCommand = async (output, context) => {
|
|
|
899
741
|
}
|
|
900
742
|
const data = await parseBody(output.body, context);
|
|
901
743
|
let contents = {};
|
|
902
|
-
contents =
|
|
744
|
+
contents = _json(data);
|
|
903
745
|
const response = {
|
|
904
746
|
$metadata: deserializeMetadata(output),
|
|
905
747
|
...contents,
|
|
906
748
|
};
|
|
907
|
-
return
|
|
749
|
+
return response;
|
|
908
750
|
};
|
|
909
751
|
const de_DeleteCustomKeyStoreCommandError = async (output, context) => {
|
|
910
752
|
const parsedOutput = {
|
|
@@ -927,10 +769,9 @@ const de_DeleteCustomKeyStoreCommandError = async (output, context) => {
|
|
|
927
769
|
throw await de_KMSInternalExceptionRes(parsedOutput, context);
|
|
928
770
|
default:
|
|
929
771
|
const parsedBody = parsedOutput.body;
|
|
930
|
-
throwDefaultError({
|
|
772
|
+
return throwDefaultError({
|
|
931
773
|
output,
|
|
932
774
|
parsedBody,
|
|
933
|
-
exceptionCtor: __BaseException,
|
|
934
775
|
errorCode,
|
|
935
776
|
});
|
|
936
777
|
}
|
|
@@ -943,7 +784,7 @@ export const de_DeleteImportedKeyMaterialCommand = async (output, context) => {
|
|
|
943
784
|
const response = {
|
|
944
785
|
$metadata: deserializeMetadata(output),
|
|
945
786
|
};
|
|
946
|
-
return
|
|
787
|
+
return response;
|
|
947
788
|
};
|
|
948
789
|
const de_DeleteImportedKeyMaterialCommandError = async (output, context) => {
|
|
949
790
|
const parsedOutput = {
|
|
@@ -972,10 +813,9 @@ const de_DeleteImportedKeyMaterialCommandError = async (output, context) => {
|
|
|
972
813
|
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
973
814
|
default:
|
|
974
815
|
const parsedBody = parsedOutput.body;
|
|
975
|
-
throwDefaultError({
|
|
816
|
+
return throwDefaultError({
|
|
976
817
|
output,
|
|
977
818
|
parsedBody,
|
|
978
|
-
exceptionCtor: __BaseException,
|
|
979
819
|
errorCode,
|
|
980
820
|
});
|
|
981
821
|
}
|
|
@@ -991,7 +831,7 @@ export const de_DescribeCustomKeyStoresCommand = async (output, context) => {
|
|
|
991
831
|
$metadata: deserializeMetadata(output),
|
|
992
832
|
...contents,
|
|
993
833
|
};
|
|
994
|
-
return
|
|
834
|
+
return response;
|
|
995
835
|
};
|
|
996
836
|
const de_DescribeCustomKeyStoresCommandError = async (output, context) => {
|
|
997
837
|
const parsedOutput = {
|
|
@@ -1011,10 +851,9 @@ const de_DescribeCustomKeyStoresCommandError = async (output, context) => {
|
|
|
1011
851
|
throw await de_KMSInternalExceptionRes(parsedOutput, context);
|
|
1012
852
|
default:
|
|
1013
853
|
const parsedBody = parsedOutput.body;
|
|
1014
|
-
throwDefaultError({
|
|
854
|
+
return throwDefaultError({
|
|
1015
855
|
output,
|
|
1016
856
|
parsedBody,
|
|
1017
|
-
exceptionCtor: __BaseException,
|
|
1018
857
|
errorCode,
|
|
1019
858
|
});
|
|
1020
859
|
}
|
|
@@ -1030,7 +869,7 @@ export const de_DescribeKeyCommand = async (output, context) => {
|
|
|
1030
869
|
$metadata: deserializeMetadata(output),
|
|
1031
870
|
...contents,
|
|
1032
871
|
};
|
|
1033
|
-
return
|
|
872
|
+
return response;
|
|
1034
873
|
};
|
|
1035
874
|
const de_DescribeKeyCommandError = async (output, context) => {
|
|
1036
875
|
const parsedOutput = {
|
|
@@ -1053,10 +892,9 @@ const de_DescribeKeyCommandError = async (output, context) => {
|
|
|
1053
892
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1054
893
|
default:
|
|
1055
894
|
const parsedBody = parsedOutput.body;
|
|
1056
|
-
throwDefaultError({
|
|
895
|
+
return throwDefaultError({
|
|
1057
896
|
output,
|
|
1058
897
|
parsedBody,
|
|
1059
|
-
exceptionCtor: __BaseException,
|
|
1060
898
|
errorCode,
|
|
1061
899
|
});
|
|
1062
900
|
}
|
|
@@ -1069,7 +907,7 @@ export const de_DisableKeyCommand = async (output, context) => {
|
|
|
1069
907
|
const response = {
|
|
1070
908
|
$metadata: deserializeMetadata(output),
|
|
1071
909
|
};
|
|
1072
|
-
return
|
|
910
|
+
return response;
|
|
1073
911
|
};
|
|
1074
912
|
const de_DisableKeyCommandError = async (output, context) => {
|
|
1075
913
|
const parsedOutput = {
|
|
@@ -1095,10 +933,9 @@ const de_DisableKeyCommandError = async (output, context) => {
|
|
|
1095
933
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1096
934
|
default:
|
|
1097
935
|
const parsedBody = parsedOutput.body;
|
|
1098
|
-
throwDefaultError({
|
|
936
|
+
return throwDefaultError({
|
|
1099
937
|
output,
|
|
1100
938
|
parsedBody,
|
|
1101
|
-
exceptionCtor: __BaseException,
|
|
1102
939
|
errorCode,
|
|
1103
940
|
});
|
|
1104
941
|
}
|
|
@@ -1111,7 +948,7 @@ export const de_DisableKeyRotationCommand = async (output, context) => {
|
|
|
1111
948
|
const response = {
|
|
1112
949
|
$metadata: deserializeMetadata(output),
|
|
1113
950
|
};
|
|
1114
|
-
return
|
|
951
|
+
return response;
|
|
1115
952
|
};
|
|
1116
953
|
const de_DisableKeyRotationCommandError = async (output, context) => {
|
|
1117
954
|
const parsedOutput = {
|
|
@@ -1143,10 +980,9 @@ const de_DisableKeyRotationCommandError = async (output, context) => {
|
|
|
1143
980
|
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1144
981
|
default:
|
|
1145
982
|
const parsedBody = parsedOutput.body;
|
|
1146
|
-
throwDefaultError({
|
|
983
|
+
return throwDefaultError({
|
|
1147
984
|
output,
|
|
1148
985
|
parsedBody,
|
|
1149
|
-
exceptionCtor: __BaseException,
|
|
1150
986
|
errorCode,
|
|
1151
987
|
});
|
|
1152
988
|
}
|
|
@@ -1157,12 +993,12 @@ export const de_DisconnectCustomKeyStoreCommand = async (output, context) => {
|
|
|
1157
993
|
}
|
|
1158
994
|
const data = await parseBody(output.body, context);
|
|
1159
995
|
let contents = {};
|
|
1160
|
-
contents =
|
|
996
|
+
contents = _json(data);
|
|
1161
997
|
const response = {
|
|
1162
998
|
$metadata: deserializeMetadata(output),
|
|
1163
999
|
...contents,
|
|
1164
1000
|
};
|
|
1165
|
-
return
|
|
1001
|
+
return response;
|
|
1166
1002
|
};
|
|
1167
1003
|
const de_DisconnectCustomKeyStoreCommandError = async (output, context) => {
|
|
1168
1004
|
const parsedOutput = {
|
|
@@ -1182,10 +1018,9 @@ const de_DisconnectCustomKeyStoreCommandError = async (output, context) => {
|
|
|
1182
1018
|
throw await de_KMSInternalExceptionRes(parsedOutput, context);
|
|
1183
1019
|
default:
|
|
1184
1020
|
const parsedBody = parsedOutput.body;
|
|
1185
|
-
throwDefaultError({
|
|
1021
|
+
return throwDefaultError({
|
|
1186
1022
|
output,
|
|
1187
1023
|
parsedBody,
|
|
1188
|
-
exceptionCtor: __BaseException,
|
|
1189
1024
|
errorCode,
|
|
1190
1025
|
});
|
|
1191
1026
|
}
|
|
@@ -1198,7 +1033,7 @@ export const de_EnableKeyCommand = async (output, context) => {
|
|
|
1198
1033
|
const response = {
|
|
1199
1034
|
$metadata: deserializeMetadata(output),
|
|
1200
1035
|
};
|
|
1201
|
-
return
|
|
1036
|
+
return response;
|
|
1202
1037
|
};
|
|
1203
1038
|
const de_EnableKeyCommandError = async (output, context) => {
|
|
1204
1039
|
const parsedOutput = {
|
|
@@ -1227,10 +1062,9 @@ const de_EnableKeyCommandError = async (output, context) => {
|
|
|
1227
1062
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1228
1063
|
default:
|
|
1229
1064
|
const parsedBody = parsedOutput.body;
|
|
1230
|
-
throwDefaultError({
|
|
1065
|
+
return throwDefaultError({
|
|
1231
1066
|
output,
|
|
1232
1067
|
parsedBody,
|
|
1233
|
-
exceptionCtor: __BaseException,
|
|
1234
1068
|
errorCode,
|
|
1235
1069
|
});
|
|
1236
1070
|
}
|
|
@@ -1243,7 +1077,7 @@ export const de_EnableKeyRotationCommand = async (output, context) => {
|
|
|
1243
1077
|
const response = {
|
|
1244
1078
|
$metadata: deserializeMetadata(output),
|
|
1245
1079
|
};
|
|
1246
|
-
return
|
|
1080
|
+
return response;
|
|
1247
1081
|
};
|
|
1248
1082
|
const de_EnableKeyRotationCommandError = async (output, context) => {
|
|
1249
1083
|
const parsedOutput = {
|
|
@@ -1275,10 +1109,9 @@ const de_EnableKeyRotationCommandError = async (output, context) => {
|
|
|
1275
1109
|
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1276
1110
|
default:
|
|
1277
1111
|
const parsedBody = parsedOutput.body;
|
|
1278
|
-
throwDefaultError({
|
|
1112
|
+
return throwDefaultError({
|
|
1279
1113
|
output,
|
|
1280
1114
|
parsedBody,
|
|
1281
|
-
exceptionCtor: __BaseException,
|
|
1282
1115
|
errorCode,
|
|
1283
1116
|
});
|
|
1284
1117
|
}
|
|
@@ -1294,7 +1127,7 @@ export const de_EncryptCommand = async (output, context) => {
|
|
|
1294
1127
|
$metadata: deserializeMetadata(output),
|
|
1295
1128
|
...contents,
|
|
1296
1129
|
};
|
|
1297
|
-
return
|
|
1130
|
+
return response;
|
|
1298
1131
|
};
|
|
1299
1132
|
const de_EncryptCommandError = async (output, context) => {
|
|
1300
1133
|
const parsedOutput = {
|
|
@@ -1329,10 +1162,9 @@ const de_EncryptCommandError = async (output, context) => {
|
|
|
1329
1162
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1330
1163
|
default:
|
|
1331
1164
|
const parsedBody = parsedOutput.body;
|
|
1332
|
-
throwDefaultError({
|
|
1165
|
+
return throwDefaultError({
|
|
1333
1166
|
output,
|
|
1334
1167
|
parsedBody,
|
|
1335
|
-
exceptionCtor: __BaseException,
|
|
1336
1168
|
errorCode,
|
|
1337
1169
|
});
|
|
1338
1170
|
}
|
|
@@ -1348,7 +1180,7 @@ export const de_GenerateDataKeyCommand = async (output, context) => {
|
|
|
1348
1180
|
$metadata: deserializeMetadata(output),
|
|
1349
1181
|
...contents,
|
|
1350
1182
|
};
|
|
1351
|
-
return
|
|
1183
|
+
return response;
|
|
1352
1184
|
};
|
|
1353
1185
|
const de_GenerateDataKeyCommandError = async (output, context) => {
|
|
1354
1186
|
const parsedOutput = {
|
|
@@ -1383,10 +1215,9 @@ const de_GenerateDataKeyCommandError = async (output, context) => {
|
|
|
1383
1215
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1384
1216
|
default:
|
|
1385
1217
|
const parsedBody = parsedOutput.body;
|
|
1386
|
-
throwDefaultError({
|
|
1218
|
+
return throwDefaultError({
|
|
1387
1219
|
output,
|
|
1388
1220
|
parsedBody,
|
|
1389
|
-
exceptionCtor: __BaseException,
|
|
1390
1221
|
errorCode,
|
|
1391
1222
|
});
|
|
1392
1223
|
}
|
|
@@ -1402,7 +1233,7 @@ export const de_GenerateDataKeyPairCommand = async (output, context) => {
|
|
|
1402
1233
|
$metadata: deserializeMetadata(output),
|
|
1403
1234
|
...contents,
|
|
1404
1235
|
};
|
|
1405
|
-
return
|
|
1236
|
+
return response;
|
|
1406
1237
|
};
|
|
1407
1238
|
const de_GenerateDataKeyPairCommandError = async (output, context) => {
|
|
1408
1239
|
const parsedOutput = {
|
|
@@ -1440,10 +1271,9 @@ const de_GenerateDataKeyPairCommandError = async (output, context) => {
|
|
|
1440
1271
|
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1441
1272
|
default:
|
|
1442
1273
|
const parsedBody = parsedOutput.body;
|
|
1443
|
-
throwDefaultError({
|
|
1274
|
+
return throwDefaultError({
|
|
1444
1275
|
output,
|
|
1445
1276
|
parsedBody,
|
|
1446
|
-
exceptionCtor: __BaseException,
|
|
1447
1277
|
errorCode,
|
|
1448
1278
|
});
|
|
1449
1279
|
}
|
|
@@ -1459,7 +1289,7 @@ export const de_GenerateDataKeyPairWithoutPlaintextCommand = async (output, cont
|
|
|
1459
1289
|
$metadata: deserializeMetadata(output),
|
|
1460
1290
|
...contents,
|
|
1461
1291
|
};
|
|
1462
|
-
return
|
|
1292
|
+
return response;
|
|
1463
1293
|
};
|
|
1464
1294
|
const de_GenerateDataKeyPairWithoutPlaintextCommandError = async (output, context) => {
|
|
1465
1295
|
const parsedOutput = {
|
|
@@ -1497,10 +1327,9 @@ const de_GenerateDataKeyPairWithoutPlaintextCommandError = async (output, contex
|
|
|
1497
1327
|
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1498
1328
|
default:
|
|
1499
1329
|
const parsedBody = parsedOutput.body;
|
|
1500
|
-
throwDefaultError({
|
|
1330
|
+
return throwDefaultError({
|
|
1501
1331
|
output,
|
|
1502
1332
|
parsedBody,
|
|
1503
|
-
exceptionCtor: __BaseException,
|
|
1504
1333
|
errorCode,
|
|
1505
1334
|
});
|
|
1506
1335
|
}
|
|
@@ -1516,7 +1345,7 @@ export const de_GenerateDataKeyWithoutPlaintextCommand = async (output, context)
|
|
|
1516
1345
|
$metadata: deserializeMetadata(output),
|
|
1517
1346
|
...contents,
|
|
1518
1347
|
};
|
|
1519
|
-
return
|
|
1348
|
+
return response;
|
|
1520
1349
|
};
|
|
1521
1350
|
const de_GenerateDataKeyWithoutPlaintextCommandError = async (output, context) => {
|
|
1522
1351
|
const parsedOutput = {
|
|
@@ -1551,10 +1380,9 @@ const de_GenerateDataKeyWithoutPlaintextCommandError = async (output, context) =
|
|
|
1551
1380
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1552
1381
|
default:
|
|
1553
1382
|
const parsedBody = parsedOutput.body;
|
|
1554
|
-
throwDefaultError({
|
|
1383
|
+
return throwDefaultError({
|
|
1555
1384
|
output,
|
|
1556
1385
|
parsedBody,
|
|
1557
|
-
exceptionCtor: __BaseException,
|
|
1558
1386
|
errorCode,
|
|
1559
1387
|
});
|
|
1560
1388
|
}
|
|
@@ -1570,7 +1398,7 @@ export const de_GenerateMacCommand = async (output, context) => {
|
|
|
1570
1398
|
$metadata: deserializeMetadata(output),
|
|
1571
1399
|
...contents,
|
|
1572
1400
|
};
|
|
1573
|
-
return
|
|
1401
|
+
return response;
|
|
1574
1402
|
};
|
|
1575
1403
|
const de_GenerateMacCommandError = async (output, context) => {
|
|
1576
1404
|
const parsedOutput = {
|
|
@@ -1602,10 +1430,9 @@ const de_GenerateMacCommandError = async (output, context) => {
|
|
|
1602
1430
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1603
1431
|
default:
|
|
1604
1432
|
const parsedBody = parsedOutput.body;
|
|
1605
|
-
throwDefaultError({
|
|
1433
|
+
return throwDefaultError({
|
|
1606
1434
|
output,
|
|
1607
1435
|
parsedBody,
|
|
1608
|
-
exceptionCtor: __BaseException,
|
|
1609
1436
|
errorCode,
|
|
1610
1437
|
});
|
|
1611
1438
|
}
|
|
@@ -1621,7 +1448,7 @@ export const de_GenerateRandomCommand = async (output, context) => {
|
|
|
1621
1448
|
$metadata: deserializeMetadata(output),
|
|
1622
1449
|
...contents,
|
|
1623
1450
|
};
|
|
1624
|
-
return
|
|
1451
|
+
return response;
|
|
1625
1452
|
};
|
|
1626
1453
|
const de_GenerateRandomCommandError = async (output, context) => {
|
|
1627
1454
|
const parsedOutput = {
|
|
@@ -1647,10 +1474,9 @@ const de_GenerateRandomCommandError = async (output, context) => {
|
|
|
1647
1474
|
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1648
1475
|
default:
|
|
1649
1476
|
const parsedBody = parsedOutput.body;
|
|
1650
|
-
throwDefaultError({
|
|
1477
|
+
return throwDefaultError({
|
|
1651
1478
|
output,
|
|
1652
1479
|
parsedBody,
|
|
1653
|
-
exceptionCtor: __BaseException,
|
|
1654
1480
|
errorCode,
|
|
1655
1481
|
});
|
|
1656
1482
|
}
|
|
@@ -1661,12 +1487,12 @@ export const de_GetKeyPolicyCommand = async (output, context) => {
|
|
|
1661
1487
|
}
|
|
1662
1488
|
const data = await parseBody(output.body, context);
|
|
1663
1489
|
let contents = {};
|
|
1664
|
-
contents =
|
|
1490
|
+
contents = _json(data);
|
|
1665
1491
|
const response = {
|
|
1666
1492
|
$metadata: deserializeMetadata(output),
|
|
1667
1493
|
...contents,
|
|
1668
1494
|
};
|
|
1669
|
-
return
|
|
1495
|
+
return response;
|
|
1670
1496
|
};
|
|
1671
1497
|
const de_GetKeyPolicyCommandError = async (output, context) => {
|
|
1672
1498
|
const parsedOutput = {
|
|
@@ -1692,10 +1518,9 @@ const de_GetKeyPolicyCommandError = async (output, context) => {
|
|
|
1692
1518
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1693
1519
|
default:
|
|
1694
1520
|
const parsedBody = parsedOutput.body;
|
|
1695
|
-
throwDefaultError({
|
|
1521
|
+
return throwDefaultError({
|
|
1696
1522
|
output,
|
|
1697
1523
|
parsedBody,
|
|
1698
|
-
exceptionCtor: __BaseException,
|
|
1699
1524
|
errorCode,
|
|
1700
1525
|
});
|
|
1701
1526
|
}
|
|
@@ -1706,12 +1531,12 @@ export const de_GetKeyRotationStatusCommand = async (output, context) => {
|
|
|
1706
1531
|
}
|
|
1707
1532
|
const data = await parseBody(output.body, context);
|
|
1708
1533
|
let contents = {};
|
|
1709
|
-
contents =
|
|
1534
|
+
contents = _json(data);
|
|
1710
1535
|
const response = {
|
|
1711
1536
|
$metadata: deserializeMetadata(output),
|
|
1712
1537
|
...contents,
|
|
1713
1538
|
};
|
|
1714
|
-
return
|
|
1539
|
+
return response;
|
|
1715
1540
|
};
|
|
1716
1541
|
const de_GetKeyRotationStatusCommandError = async (output, context) => {
|
|
1717
1542
|
const parsedOutput = {
|
|
@@ -1740,10 +1565,9 @@ const de_GetKeyRotationStatusCommandError = async (output, context) => {
|
|
|
1740
1565
|
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1741
1566
|
default:
|
|
1742
1567
|
const parsedBody = parsedOutput.body;
|
|
1743
|
-
throwDefaultError({
|
|
1568
|
+
return throwDefaultError({
|
|
1744
1569
|
output,
|
|
1745
1570
|
parsedBody,
|
|
1746
|
-
exceptionCtor: __BaseException,
|
|
1747
1571
|
errorCode,
|
|
1748
1572
|
});
|
|
1749
1573
|
}
|
|
@@ -1759,7 +1583,7 @@ export const de_GetParametersForImportCommand = async (output, context) => {
|
|
|
1759
1583
|
$metadata: deserializeMetadata(output),
|
|
1760
1584
|
...contents,
|
|
1761
1585
|
};
|
|
1762
|
-
return
|
|
1586
|
+
return response;
|
|
1763
1587
|
};
|
|
1764
1588
|
const de_GetParametersForImportCommandError = async (output, context) => {
|
|
1765
1589
|
const parsedOutput = {
|
|
@@ -1788,10 +1612,9 @@ const de_GetParametersForImportCommandError = async (output, context) => {
|
|
|
1788
1612
|
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1789
1613
|
default:
|
|
1790
1614
|
const parsedBody = parsedOutput.body;
|
|
1791
|
-
throwDefaultError({
|
|
1615
|
+
return throwDefaultError({
|
|
1792
1616
|
output,
|
|
1793
1617
|
parsedBody,
|
|
1794
|
-
exceptionCtor: __BaseException,
|
|
1795
1618
|
errorCode,
|
|
1796
1619
|
});
|
|
1797
1620
|
}
|
|
@@ -1807,7 +1630,7 @@ export const de_GetPublicKeyCommand = async (output, context) => {
|
|
|
1807
1630
|
$metadata: deserializeMetadata(output),
|
|
1808
1631
|
...contents,
|
|
1809
1632
|
};
|
|
1810
|
-
return
|
|
1633
|
+
return response;
|
|
1811
1634
|
};
|
|
1812
1635
|
const de_GetPublicKeyCommandError = async (output, context) => {
|
|
1813
1636
|
const parsedOutput = {
|
|
@@ -1848,10 +1671,9 @@ const de_GetPublicKeyCommandError = async (output, context) => {
|
|
|
1848
1671
|
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1849
1672
|
default:
|
|
1850
1673
|
const parsedBody = parsedOutput.body;
|
|
1851
|
-
throwDefaultError({
|
|
1674
|
+
return throwDefaultError({
|
|
1852
1675
|
output,
|
|
1853
1676
|
parsedBody,
|
|
1854
|
-
exceptionCtor: __BaseException,
|
|
1855
1677
|
errorCode,
|
|
1856
1678
|
});
|
|
1857
1679
|
}
|
|
@@ -1862,12 +1684,12 @@ export const de_ImportKeyMaterialCommand = async (output, context) => {
|
|
|
1862
1684
|
}
|
|
1863
1685
|
const data = await parseBody(output.body, context);
|
|
1864
1686
|
let contents = {};
|
|
1865
|
-
contents =
|
|
1687
|
+
contents = _json(data);
|
|
1866
1688
|
const response = {
|
|
1867
1689
|
$metadata: deserializeMetadata(output),
|
|
1868
1690
|
...contents,
|
|
1869
1691
|
};
|
|
1870
|
-
return
|
|
1692
|
+
return response;
|
|
1871
1693
|
};
|
|
1872
1694
|
const de_ImportKeyMaterialCommandError = async (output, context) => {
|
|
1873
1695
|
const parsedOutput = {
|
|
@@ -1908,10 +1730,9 @@ const de_ImportKeyMaterialCommandError = async (output, context) => {
|
|
|
1908
1730
|
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1909
1731
|
default:
|
|
1910
1732
|
const parsedBody = parsedOutput.body;
|
|
1911
|
-
throwDefaultError({
|
|
1733
|
+
return throwDefaultError({
|
|
1912
1734
|
output,
|
|
1913
1735
|
parsedBody,
|
|
1914
|
-
exceptionCtor: __BaseException,
|
|
1915
1736
|
errorCode,
|
|
1916
1737
|
});
|
|
1917
1738
|
}
|
|
@@ -1927,7 +1748,7 @@ export const de_ListAliasesCommand = async (output, context) => {
|
|
|
1927
1748
|
$metadata: deserializeMetadata(output),
|
|
1928
1749
|
...contents,
|
|
1929
1750
|
};
|
|
1930
|
-
return
|
|
1751
|
+
return response;
|
|
1931
1752
|
};
|
|
1932
1753
|
const de_ListAliasesCommandError = async (output, context) => {
|
|
1933
1754
|
const parsedOutput = {
|
|
@@ -1953,10 +1774,9 @@ const de_ListAliasesCommandError = async (output, context) => {
|
|
|
1953
1774
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1954
1775
|
default:
|
|
1955
1776
|
const parsedBody = parsedOutput.body;
|
|
1956
|
-
throwDefaultError({
|
|
1777
|
+
return throwDefaultError({
|
|
1957
1778
|
output,
|
|
1958
1779
|
parsedBody,
|
|
1959
|
-
exceptionCtor: __BaseException,
|
|
1960
1780
|
errorCode,
|
|
1961
1781
|
});
|
|
1962
1782
|
}
|
|
@@ -1972,7 +1792,7 @@ export const de_ListGrantsCommand = async (output, context) => {
|
|
|
1972
1792
|
$metadata: deserializeMetadata(output),
|
|
1973
1793
|
...contents,
|
|
1974
1794
|
};
|
|
1975
|
-
return
|
|
1795
|
+
return response;
|
|
1976
1796
|
};
|
|
1977
1797
|
const de_ListGrantsCommandError = async (output, context) => {
|
|
1978
1798
|
const parsedOutput = {
|
|
@@ -2004,10 +1824,9 @@ const de_ListGrantsCommandError = async (output, context) => {
|
|
|
2004
1824
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2005
1825
|
default:
|
|
2006
1826
|
const parsedBody = parsedOutput.body;
|
|
2007
|
-
throwDefaultError({
|
|
1827
|
+
return throwDefaultError({
|
|
2008
1828
|
output,
|
|
2009
1829
|
parsedBody,
|
|
2010
|
-
exceptionCtor: __BaseException,
|
|
2011
1830
|
errorCode,
|
|
2012
1831
|
});
|
|
2013
1832
|
}
|
|
@@ -2018,12 +1837,12 @@ export const de_ListKeyPoliciesCommand = async (output, context) => {
|
|
|
2018
1837
|
}
|
|
2019
1838
|
const data = await parseBody(output.body, context);
|
|
2020
1839
|
let contents = {};
|
|
2021
|
-
contents =
|
|
1840
|
+
contents = _json(data);
|
|
2022
1841
|
const response = {
|
|
2023
1842
|
$metadata: deserializeMetadata(output),
|
|
2024
1843
|
...contents,
|
|
2025
1844
|
};
|
|
2026
|
-
return
|
|
1845
|
+
return response;
|
|
2027
1846
|
};
|
|
2028
1847
|
const de_ListKeyPoliciesCommandError = async (output, context) => {
|
|
2029
1848
|
const parsedOutput = {
|
|
@@ -2049,10 +1868,9 @@ const de_ListKeyPoliciesCommandError = async (output, context) => {
|
|
|
2049
1868
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2050
1869
|
default:
|
|
2051
1870
|
const parsedBody = parsedOutput.body;
|
|
2052
|
-
throwDefaultError({
|
|
1871
|
+
return throwDefaultError({
|
|
2053
1872
|
output,
|
|
2054
1873
|
parsedBody,
|
|
2055
|
-
exceptionCtor: __BaseException,
|
|
2056
1874
|
errorCode,
|
|
2057
1875
|
});
|
|
2058
1876
|
}
|
|
@@ -2063,12 +1881,12 @@ export const de_ListKeysCommand = async (output, context) => {
|
|
|
2063
1881
|
}
|
|
2064
1882
|
const data = await parseBody(output.body, context);
|
|
2065
1883
|
let contents = {};
|
|
2066
|
-
contents =
|
|
1884
|
+
contents = _json(data);
|
|
2067
1885
|
const response = {
|
|
2068
1886
|
$metadata: deserializeMetadata(output),
|
|
2069
1887
|
...contents,
|
|
2070
1888
|
};
|
|
2071
|
-
return
|
|
1889
|
+
return response;
|
|
2072
1890
|
};
|
|
2073
1891
|
const de_ListKeysCommandError = async (output, context) => {
|
|
2074
1892
|
const parsedOutput = {
|
|
@@ -2088,10 +1906,9 @@ const de_ListKeysCommandError = async (output, context) => {
|
|
|
2088
1906
|
throw await de_KMSInternalExceptionRes(parsedOutput, context);
|
|
2089
1907
|
default:
|
|
2090
1908
|
const parsedBody = parsedOutput.body;
|
|
2091
|
-
throwDefaultError({
|
|
1909
|
+
return throwDefaultError({
|
|
2092
1910
|
output,
|
|
2093
1911
|
parsedBody,
|
|
2094
|
-
exceptionCtor: __BaseException,
|
|
2095
1912
|
errorCode,
|
|
2096
1913
|
});
|
|
2097
1914
|
}
|
|
@@ -2102,12 +1919,12 @@ export const de_ListResourceTagsCommand = async (output, context) => {
|
|
|
2102
1919
|
}
|
|
2103
1920
|
const data = await parseBody(output.body, context);
|
|
2104
1921
|
let contents = {};
|
|
2105
|
-
contents =
|
|
1922
|
+
contents = _json(data);
|
|
2106
1923
|
const response = {
|
|
2107
1924
|
$metadata: deserializeMetadata(output),
|
|
2108
1925
|
...contents,
|
|
2109
1926
|
};
|
|
2110
|
-
return
|
|
1927
|
+
return response;
|
|
2111
1928
|
};
|
|
2112
1929
|
const de_ListResourceTagsCommandError = async (output, context) => {
|
|
2113
1930
|
const parsedOutput = {
|
|
@@ -2130,10 +1947,9 @@ const de_ListResourceTagsCommandError = async (output, context) => {
|
|
|
2130
1947
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2131
1948
|
default:
|
|
2132
1949
|
const parsedBody = parsedOutput.body;
|
|
2133
|
-
throwDefaultError({
|
|
1950
|
+
return throwDefaultError({
|
|
2134
1951
|
output,
|
|
2135
1952
|
parsedBody,
|
|
2136
|
-
exceptionCtor: __BaseException,
|
|
2137
1953
|
errorCode,
|
|
2138
1954
|
});
|
|
2139
1955
|
}
|
|
@@ -2149,7 +1965,7 @@ export const de_ListRetirableGrantsCommand = async (output, context) => {
|
|
|
2149
1965
|
$metadata: deserializeMetadata(output),
|
|
2150
1966
|
...contents,
|
|
2151
1967
|
};
|
|
2152
|
-
return
|
|
1968
|
+
return response;
|
|
2153
1969
|
};
|
|
2154
1970
|
const de_ListRetirableGrantsCommandError = async (output, context) => {
|
|
2155
1971
|
const parsedOutput = {
|
|
@@ -2175,10 +1991,9 @@ const de_ListRetirableGrantsCommandError = async (output, context) => {
|
|
|
2175
1991
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2176
1992
|
default:
|
|
2177
1993
|
const parsedBody = parsedOutput.body;
|
|
2178
|
-
throwDefaultError({
|
|
1994
|
+
return throwDefaultError({
|
|
2179
1995
|
output,
|
|
2180
1996
|
parsedBody,
|
|
2181
|
-
exceptionCtor: __BaseException,
|
|
2182
1997
|
errorCode,
|
|
2183
1998
|
});
|
|
2184
1999
|
}
|
|
@@ -2191,7 +2006,7 @@ export const de_PutKeyPolicyCommand = async (output, context) => {
|
|
|
2191
2006
|
const response = {
|
|
2192
2007
|
$metadata: deserializeMetadata(output),
|
|
2193
2008
|
};
|
|
2194
|
-
return
|
|
2009
|
+
return response;
|
|
2195
2010
|
};
|
|
2196
2011
|
const de_PutKeyPolicyCommandError = async (output, context) => {
|
|
2197
2012
|
const parsedOutput = {
|
|
@@ -2226,10 +2041,9 @@ const de_PutKeyPolicyCommandError = async (output, context) => {
|
|
|
2226
2041
|
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2227
2042
|
default:
|
|
2228
2043
|
const parsedBody = parsedOutput.body;
|
|
2229
|
-
throwDefaultError({
|
|
2044
|
+
return throwDefaultError({
|
|
2230
2045
|
output,
|
|
2231
2046
|
parsedBody,
|
|
2232
|
-
exceptionCtor: __BaseException,
|
|
2233
2047
|
errorCode,
|
|
2234
2048
|
});
|
|
2235
2049
|
}
|
|
@@ -2245,7 +2059,7 @@ export const de_ReEncryptCommand = async (output, context) => {
|
|
|
2245
2059
|
$metadata: deserializeMetadata(output),
|
|
2246
2060
|
...contents,
|
|
2247
2061
|
};
|
|
2248
|
-
return
|
|
2062
|
+
return response;
|
|
2249
2063
|
};
|
|
2250
2064
|
const de_ReEncryptCommandError = async (output, context) => {
|
|
2251
2065
|
const parsedOutput = {
|
|
@@ -2286,10 +2100,9 @@ const de_ReEncryptCommandError = async (output, context) => {
|
|
|
2286
2100
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2287
2101
|
default:
|
|
2288
2102
|
const parsedBody = parsedOutput.body;
|
|
2289
|
-
throwDefaultError({
|
|
2103
|
+
return throwDefaultError({
|
|
2290
2104
|
output,
|
|
2291
2105
|
parsedBody,
|
|
2292
|
-
exceptionCtor: __BaseException,
|
|
2293
2106
|
errorCode,
|
|
2294
2107
|
});
|
|
2295
2108
|
}
|
|
@@ -2305,7 +2118,7 @@ export const de_ReplicateKeyCommand = async (output, context) => {
|
|
|
2305
2118
|
$metadata: deserializeMetadata(output),
|
|
2306
2119
|
...contents,
|
|
2307
2120
|
};
|
|
2308
|
-
return
|
|
2121
|
+
return response;
|
|
2309
2122
|
};
|
|
2310
2123
|
const de_ReplicateKeyCommandError = async (output, context) => {
|
|
2311
2124
|
const parsedOutput = {
|
|
@@ -2346,10 +2159,9 @@ const de_ReplicateKeyCommandError = async (output, context) => {
|
|
|
2346
2159
|
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2347
2160
|
default:
|
|
2348
2161
|
const parsedBody = parsedOutput.body;
|
|
2349
|
-
throwDefaultError({
|
|
2162
|
+
return throwDefaultError({
|
|
2350
2163
|
output,
|
|
2351
2164
|
parsedBody,
|
|
2352
|
-
exceptionCtor: __BaseException,
|
|
2353
2165
|
errorCode,
|
|
2354
2166
|
});
|
|
2355
2167
|
}
|
|
@@ -2362,7 +2174,7 @@ export const de_RetireGrantCommand = async (output, context) => {
|
|
|
2362
2174
|
const response = {
|
|
2363
2175
|
$metadata: deserializeMetadata(output),
|
|
2364
2176
|
};
|
|
2365
|
-
return
|
|
2177
|
+
return response;
|
|
2366
2178
|
};
|
|
2367
2179
|
const de_RetireGrantCommandError = async (output, context) => {
|
|
2368
2180
|
const parsedOutput = {
|
|
@@ -2394,10 +2206,9 @@ const de_RetireGrantCommandError = async (output, context) => {
|
|
|
2394
2206
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2395
2207
|
default:
|
|
2396
2208
|
const parsedBody = parsedOutput.body;
|
|
2397
|
-
throwDefaultError({
|
|
2209
|
+
return throwDefaultError({
|
|
2398
2210
|
output,
|
|
2399
2211
|
parsedBody,
|
|
2400
|
-
exceptionCtor: __BaseException,
|
|
2401
2212
|
errorCode,
|
|
2402
2213
|
});
|
|
2403
2214
|
}
|
|
@@ -2410,7 +2221,7 @@ export const de_RevokeGrantCommand = async (output, context) => {
|
|
|
2410
2221
|
const response = {
|
|
2411
2222
|
$metadata: deserializeMetadata(output),
|
|
2412
2223
|
};
|
|
2413
|
-
return
|
|
2224
|
+
return response;
|
|
2414
2225
|
};
|
|
2415
2226
|
const de_RevokeGrantCommandError = async (output, context) => {
|
|
2416
2227
|
const parsedOutput = {
|
|
@@ -2439,10 +2250,9 @@ const de_RevokeGrantCommandError = async (output, context) => {
|
|
|
2439
2250
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2440
2251
|
default:
|
|
2441
2252
|
const parsedBody = parsedOutput.body;
|
|
2442
|
-
throwDefaultError({
|
|
2253
|
+
return throwDefaultError({
|
|
2443
2254
|
output,
|
|
2444
2255
|
parsedBody,
|
|
2445
|
-
exceptionCtor: __BaseException,
|
|
2446
2256
|
errorCode,
|
|
2447
2257
|
});
|
|
2448
2258
|
}
|
|
@@ -2458,7 +2268,7 @@ export const de_ScheduleKeyDeletionCommand = async (output, context) => {
|
|
|
2458
2268
|
$metadata: deserializeMetadata(output),
|
|
2459
2269
|
...contents,
|
|
2460
2270
|
};
|
|
2461
|
-
return
|
|
2271
|
+
return response;
|
|
2462
2272
|
};
|
|
2463
2273
|
const de_ScheduleKeyDeletionCommandError = async (output, context) => {
|
|
2464
2274
|
const parsedOutput = {
|
|
@@ -2484,10 +2294,9 @@ const de_ScheduleKeyDeletionCommandError = async (output, context) => {
|
|
|
2484
2294
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2485
2295
|
default:
|
|
2486
2296
|
const parsedBody = parsedOutput.body;
|
|
2487
|
-
throwDefaultError({
|
|
2297
|
+
return throwDefaultError({
|
|
2488
2298
|
output,
|
|
2489
2299
|
parsedBody,
|
|
2490
|
-
exceptionCtor: __BaseException,
|
|
2491
2300
|
errorCode,
|
|
2492
2301
|
});
|
|
2493
2302
|
}
|
|
@@ -2503,7 +2312,7 @@ export const de_SignCommand = async (output, context) => {
|
|
|
2503
2312
|
$metadata: deserializeMetadata(output),
|
|
2504
2313
|
...contents,
|
|
2505
2314
|
};
|
|
2506
|
-
return
|
|
2315
|
+
return response;
|
|
2507
2316
|
};
|
|
2508
2317
|
const de_SignCommandError = async (output, context) => {
|
|
2509
2318
|
const parsedOutput = {
|
|
@@ -2538,10 +2347,9 @@ const de_SignCommandError = async (output, context) => {
|
|
|
2538
2347
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2539
2348
|
default:
|
|
2540
2349
|
const parsedBody = parsedOutput.body;
|
|
2541
|
-
throwDefaultError({
|
|
2350
|
+
return throwDefaultError({
|
|
2542
2351
|
output,
|
|
2543
2352
|
parsedBody,
|
|
2544
|
-
exceptionCtor: __BaseException,
|
|
2545
2353
|
errorCode,
|
|
2546
2354
|
});
|
|
2547
2355
|
}
|
|
@@ -2554,7 +2362,7 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
2554
2362
|
const response = {
|
|
2555
2363
|
$metadata: deserializeMetadata(output),
|
|
2556
2364
|
};
|
|
2557
|
-
return
|
|
2365
|
+
return response;
|
|
2558
2366
|
};
|
|
2559
2367
|
const de_TagResourceCommandError = async (output, context) => {
|
|
2560
2368
|
const parsedOutput = {
|
|
@@ -2583,10 +2391,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
2583
2391
|
throw await de_TagExceptionRes(parsedOutput, context);
|
|
2584
2392
|
default:
|
|
2585
2393
|
const parsedBody = parsedOutput.body;
|
|
2586
|
-
throwDefaultError({
|
|
2394
|
+
return throwDefaultError({
|
|
2587
2395
|
output,
|
|
2588
2396
|
parsedBody,
|
|
2589
|
-
exceptionCtor: __BaseException,
|
|
2590
2397
|
errorCode,
|
|
2591
2398
|
});
|
|
2592
2399
|
}
|
|
@@ -2599,7 +2406,7 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
2599
2406
|
const response = {
|
|
2600
2407
|
$metadata: deserializeMetadata(output),
|
|
2601
2408
|
};
|
|
2602
|
-
return
|
|
2409
|
+
return response;
|
|
2603
2410
|
};
|
|
2604
2411
|
const de_UntagResourceCommandError = async (output, context) => {
|
|
2605
2412
|
const parsedOutput = {
|
|
@@ -2625,10 +2432,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
2625
2432
|
throw await de_TagExceptionRes(parsedOutput, context);
|
|
2626
2433
|
default:
|
|
2627
2434
|
const parsedBody = parsedOutput.body;
|
|
2628
|
-
throwDefaultError({
|
|
2435
|
+
return throwDefaultError({
|
|
2629
2436
|
output,
|
|
2630
2437
|
parsedBody,
|
|
2631
|
-
exceptionCtor: __BaseException,
|
|
2632
2438
|
errorCode,
|
|
2633
2439
|
});
|
|
2634
2440
|
}
|
|
@@ -2641,7 +2447,7 @@ export const de_UpdateAliasCommand = async (output, context) => {
|
|
|
2641
2447
|
const response = {
|
|
2642
2448
|
$metadata: deserializeMetadata(output),
|
|
2643
2449
|
};
|
|
2644
|
-
return
|
|
2450
|
+
return response;
|
|
2645
2451
|
};
|
|
2646
2452
|
const de_UpdateAliasCommandError = async (output, context) => {
|
|
2647
2453
|
const parsedOutput = {
|
|
@@ -2667,10 +2473,9 @@ const de_UpdateAliasCommandError = async (output, context) => {
|
|
|
2667
2473
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2668
2474
|
default:
|
|
2669
2475
|
const parsedBody = parsedOutput.body;
|
|
2670
|
-
throwDefaultError({
|
|
2476
|
+
return throwDefaultError({
|
|
2671
2477
|
output,
|
|
2672
2478
|
parsedBody,
|
|
2673
|
-
exceptionCtor: __BaseException,
|
|
2674
2479
|
errorCode,
|
|
2675
2480
|
});
|
|
2676
2481
|
}
|
|
@@ -2681,12 +2486,12 @@ export const de_UpdateCustomKeyStoreCommand = async (output, context) => {
|
|
|
2681
2486
|
}
|
|
2682
2487
|
const data = await parseBody(output.body, context);
|
|
2683
2488
|
let contents = {};
|
|
2684
|
-
contents =
|
|
2489
|
+
contents = _json(data);
|
|
2685
2490
|
const response = {
|
|
2686
2491
|
$metadata: deserializeMetadata(output),
|
|
2687
2492
|
...contents,
|
|
2688
2493
|
};
|
|
2689
|
-
return
|
|
2494
|
+
return response;
|
|
2690
2495
|
};
|
|
2691
2496
|
const de_UpdateCustomKeyStoreCommandError = async (output, context) => {
|
|
2692
2497
|
const parsedOutput = {
|
|
@@ -2748,10 +2553,9 @@ const de_UpdateCustomKeyStoreCommandError = async (output, context) => {
|
|
|
2748
2553
|
throw await de_XksProxyVpcEndpointServiceNotFoundExceptionRes(parsedOutput, context);
|
|
2749
2554
|
default:
|
|
2750
2555
|
const parsedBody = parsedOutput.body;
|
|
2751
|
-
throwDefaultError({
|
|
2556
|
+
return throwDefaultError({
|
|
2752
2557
|
output,
|
|
2753
2558
|
parsedBody,
|
|
2754
|
-
exceptionCtor: __BaseException,
|
|
2755
2559
|
errorCode,
|
|
2756
2560
|
});
|
|
2757
2561
|
}
|
|
@@ -2764,7 +2568,7 @@ export const de_UpdateKeyDescriptionCommand = async (output, context) => {
|
|
|
2764
2568
|
const response = {
|
|
2765
2569
|
$metadata: deserializeMetadata(output),
|
|
2766
2570
|
};
|
|
2767
|
-
return
|
|
2571
|
+
return response;
|
|
2768
2572
|
};
|
|
2769
2573
|
const de_UpdateKeyDescriptionCommandError = async (output, context) => {
|
|
2770
2574
|
const parsedOutput = {
|
|
@@ -2790,10 +2594,9 @@ const de_UpdateKeyDescriptionCommandError = async (output, context) => {
|
|
|
2790
2594
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2791
2595
|
default:
|
|
2792
2596
|
const parsedBody = parsedOutput.body;
|
|
2793
|
-
throwDefaultError({
|
|
2597
|
+
return throwDefaultError({
|
|
2794
2598
|
output,
|
|
2795
2599
|
parsedBody,
|
|
2796
|
-
exceptionCtor: __BaseException,
|
|
2797
2600
|
errorCode,
|
|
2798
2601
|
});
|
|
2799
2602
|
}
|
|
@@ -2806,7 +2609,7 @@ export const de_UpdatePrimaryRegionCommand = async (output, context) => {
|
|
|
2806
2609
|
const response = {
|
|
2807
2610
|
$metadata: deserializeMetadata(output),
|
|
2808
2611
|
};
|
|
2809
|
-
return
|
|
2612
|
+
return response;
|
|
2810
2613
|
};
|
|
2811
2614
|
const de_UpdatePrimaryRegionCommandError = async (output, context) => {
|
|
2812
2615
|
const parsedOutput = {
|
|
@@ -2835,10 +2638,9 @@ const de_UpdatePrimaryRegionCommandError = async (output, context) => {
|
|
|
2835
2638
|
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2836
2639
|
default:
|
|
2837
2640
|
const parsedBody = parsedOutput.body;
|
|
2838
|
-
throwDefaultError({
|
|
2641
|
+
return throwDefaultError({
|
|
2839
2642
|
output,
|
|
2840
2643
|
parsedBody,
|
|
2841
|
-
exceptionCtor: __BaseException,
|
|
2842
2644
|
errorCode,
|
|
2843
2645
|
});
|
|
2844
2646
|
}
|
|
@@ -2849,12 +2651,12 @@ export const de_VerifyCommand = async (output, context) => {
|
|
|
2849
2651
|
}
|
|
2850
2652
|
const data = await parseBody(output.body, context);
|
|
2851
2653
|
let contents = {};
|
|
2852
|
-
contents =
|
|
2654
|
+
contents = _json(data);
|
|
2853
2655
|
const response = {
|
|
2854
2656
|
$metadata: deserializeMetadata(output),
|
|
2855
2657
|
...contents,
|
|
2856
2658
|
};
|
|
2857
|
-
return
|
|
2659
|
+
return response;
|
|
2858
2660
|
};
|
|
2859
2661
|
const de_VerifyCommandError = async (output, context) => {
|
|
2860
2662
|
const parsedOutput = {
|
|
@@ -2892,10 +2694,9 @@ const de_VerifyCommandError = async (output, context) => {
|
|
|
2892
2694
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2893
2695
|
default:
|
|
2894
2696
|
const parsedBody = parsedOutput.body;
|
|
2895
|
-
throwDefaultError({
|
|
2697
|
+
return throwDefaultError({
|
|
2896
2698
|
output,
|
|
2897
2699
|
parsedBody,
|
|
2898
|
-
exceptionCtor: __BaseException,
|
|
2899
2700
|
errorCode,
|
|
2900
2701
|
});
|
|
2901
2702
|
}
|
|
@@ -2906,12 +2707,12 @@ export const de_VerifyMacCommand = async (output, context) => {
|
|
|
2906
2707
|
}
|
|
2907
2708
|
const data = await parseBody(output.body, context);
|
|
2908
2709
|
let contents = {};
|
|
2909
|
-
contents =
|
|
2710
|
+
contents = _json(data);
|
|
2910
2711
|
const response = {
|
|
2911
2712
|
$metadata: deserializeMetadata(output),
|
|
2912
2713
|
...contents,
|
|
2913
2714
|
};
|
|
2914
|
-
return
|
|
2715
|
+
return response;
|
|
2915
2716
|
};
|
|
2916
2717
|
const de_VerifyMacCommandError = async (output, context) => {
|
|
2917
2718
|
const parsedOutput = {
|
|
@@ -2946,17 +2747,16 @@ const de_VerifyMacCommandError = async (output, context) => {
|
|
|
2946
2747
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2947
2748
|
default:
|
|
2948
2749
|
const parsedBody = parsedOutput.body;
|
|
2949
|
-
throwDefaultError({
|
|
2750
|
+
return throwDefaultError({
|
|
2950
2751
|
output,
|
|
2951
2752
|
parsedBody,
|
|
2952
|
-
exceptionCtor: __BaseException,
|
|
2953
2753
|
errorCode,
|
|
2954
2754
|
});
|
|
2955
2755
|
}
|
|
2956
2756
|
};
|
|
2957
2757
|
const de_AlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
2958
2758
|
const body = parsedOutput.body;
|
|
2959
|
-
const deserialized =
|
|
2759
|
+
const deserialized = _json(body);
|
|
2960
2760
|
const exception = new AlreadyExistsException({
|
|
2961
2761
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2962
2762
|
...deserialized,
|
|
@@ -2965,7 +2765,7 @@ const de_AlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
|
2965
2765
|
};
|
|
2966
2766
|
const de_CloudHsmClusterInUseExceptionRes = async (parsedOutput, context) => {
|
|
2967
2767
|
const body = parsedOutput.body;
|
|
2968
|
-
const deserialized =
|
|
2768
|
+
const deserialized = _json(body);
|
|
2969
2769
|
const exception = new CloudHsmClusterInUseException({
|
|
2970
2770
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2971
2771
|
...deserialized,
|
|
@@ -2974,7 +2774,7 @@ const de_CloudHsmClusterInUseExceptionRes = async (parsedOutput, context) => {
|
|
|
2974
2774
|
};
|
|
2975
2775
|
const de_CloudHsmClusterInvalidConfigurationExceptionRes = async (parsedOutput, context) => {
|
|
2976
2776
|
const body = parsedOutput.body;
|
|
2977
|
-
const deserialized =
|
|
2777
|
+
const deserialized = _json(body);
|
|
2978
2778
|
const exception = new CloudHsmClusterInvalidConfigurationException({
|
|
2979
2779
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2980
2780
|
...deserialized,
|
|
@@ -2983,7 +2783,7 @@ const de_CloudHsmClusterInvalidConfigurationExceptionRes = async (parsedOutput,
|
|
|
2983
2783
|
};
|
|
2984
2784
|
const de_CloudHsmClusterNotActiveExceptionRes = async (parsedOutput, context) => {
|
|
2985
2785
|
const body = parsedOutput.body;
|
|
2986
|
-
const deserialized =
|
|
2786
|
+
const deserialized = _json(body);
|
|
2987
2787
|
const exception = new CloudHsmClusterNotActiveException({
|
|
2988
2788
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2989
2789
|
...deserialized,
|
|
@@ -2992,7 +2792,7 @@ const de_CloudHsmClusterNotActiveExceptionRes = async (parsedOutput, context) =>
|
|
|
2992
2792
|
};
|
|
2993
2793
|
const de_CloudHsmClusterNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2994
2794
|
const body = parsedOutput.body;
|
|
2995
|
-
const deserialized =
|
|
2795
|
+
const deserialized = _json(body);
|
|
2996
2796
|
const exception = new CloudHsmClusterNotFoundException({
|
|
2997
2797
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2998
2798
|
...deserialized,
|
|
@@ -3001,7 +2801,7 @@ const de_CloudHsmClusterNotFoundExceptionRes = async (parsedOutput, context) =>
|
|
|
3001
2801
|
};
|
|
3002
2802
|
const de_CloudHsmClusterNotRelatedExceptionRes = async (parsedOutput, context) => {
|
|
3003
2803
|
const body = parsedOutput.body;
|
|
3004
|
-
const deserialized =
|
|
2804
|
+
const deserialized = _json(body);
|
|
3005
2805
|
const exception = new CloudHsmClusterNotRelatedException({
|
|
3006
2806
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3007
2807
|
...deserialized,
|
|
@@ -3010,7 +2810,7 @@ const de_CloudHsmClusterNotRelatedExceptionRes = async (parsedOutput, context) =
|
|
|
3010
2810
|
};
|
|
3011
2811
|
const de_CustomKeyStoreHasCMKsExceptionRes = async (parsedOutput, context) => {
|
|
3012
2812
|
const body = parsedOutput.body;
|
|
3013
|
-
const deserialized =
|
|
2813
|
+
const deserialized = _json(body);
|
|
3014
2814
|
const exception = new CustomKeyStoreHasCMKsException({
|
|
3015
2815
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3016
2816
|
...deserialized,
|
|
@@ -3019,7 +2819,7 @@ const de_CustomKeyStoreHasCMKsExceptionRes = async (parsedOutput, context) => {
|
|
|
3019
2819
|
};
|
|
3020
2820
|
const de_CustomKeyStoreInvalidStateExceptionRes = async (parsedOutput, context) => {
|
|
3021
2821
|
const body = parsedOutput.body;
|
|
3022
|
-
const deserialized =
|
|
2822
|
+
const deserialized = _json(body);
|
|
3023
2823
|
const exception = new CustomKeyStoreInvalidStateException({
|
|
3024
2824
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3025
2825
|
...deserialized,
|
|
@@ -3028,7 +2828,7 @@ const de_CustomKeyStoreInvalidStateExceptionRes = async (parsedOutput, context)
|
|
|
3028
2828
|
};
|
|
3029
2829
|
const de_CustomKeyStoreNameInUseExceptionRes = async (parsedOutput, context) => {
|
|
3030
2830
|
const body = parsedOutput.body;
|
|
3031
|
-
const deserialized =
|
|
2831
|
+
const deserialized = _json(body);
|
|
3032
2832
|
const exception = new CustomKeyStoreNameInUseException({
|
|
3033
2833
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3034
2834
|
...deserialized,
|
|
@@ -3037,7 +2837,7 @@ const de_CustomKeyStoreNameInUseExceptionRes = async (parsedOutput, context) =>
|
|
|
3037
2837
|
};
|
|
3038
2838
|
const de_CustomKeyStoreNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
3039
2839
|
const body = parsedOutput.body;
|
|
3040
|
-
const deserialized =
|
|
2840
|
+
const deserialized = _json(body);
|
|
3041
2841
|
const exception = new CustomKeyStoreNotFoundException({
|
|
3042
2842
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3043
2843
|
...deserialized,
|
|
@@ -3046,7 +2846,7 @@ const de_CustomKeyStoreNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
3046
2846
|
};
|
|
3047
2847
|
const de_DependencyTimeoutExceptionRes = async (parsedOutput, context) => {
|
|
3048
2848
|
const body = parsedOutput.body;
|
|
3049
|
-
const deserialized =
|
|
2849
|
+
const deserialized = _json(body);
|
|
3050
2850
|
const exception = new DependencyTimeoutException({
|
|
3051
2851
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3052
2852
|
...deserialized,
|
|
@@ -3055,7 +2855,7 @@ const de_DependencyTimeoutExceptionRes = async (parsedOutput, context) => {
|
|
|
3055
2855
|
};
|
|
3056
2856
|
const de_DisabledExceptionRes = async (parsedOutput, context) => {
|
|
3057
2857
|
const body = parsedOutput.body;
|
|
3058
|
-
const deserialized =
|
|
2858
|
+
const deserialized = _json(body);
|
|
3059
2859
|
const exception = new DisabledException({
|
|
3060
2860
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3061
2861
|
...deserialized,
|
|
@@ -3064,7 +2864,7 @@ const de_DisabledExceptionRes = async (parsedOutput, context) => {
|
|
|
3064
2864
|
};
|
|
3065
2865
|
const de_ExpiredImportTokenExceptionRes = async (parsedOutput, context) => {
|
|
3066
2866
|
const body = parsedOutput.body;
|
|
3067
|
-
const deserialized =
|
|
2867
|
+
const deserialized = _json(body);
|
|
3068
2868
|
const exception = new ExpiredImportTokenException({
|
|
3069
2869
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3070
2870
|
...deserialized,
|
|
@@ -3073,7 +2873,7 @@ const de_ExpiredImportTokenExceptionRes = async (parsedOutput, context) => {
|
|
|
3073
2873
|
};
|
|
3074
2874
|
const de_IncorrectKeyExceptionRes = async (parsedOutput, context) => {
|
|
3075
2875
|
const body = parsedOutput.body;
|
|
3076
|
-
const deserialized =
|
|
2876
|
+
const deserialized = _json(body);
|
|
3077
2877
|
const exception = new IncorrectKeyException({
|
|
3078
2878
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3079
2879
|
...deserialized,
|
|
@@ -3082,7 +2882,7 @@ const de_IncorrectKeyExceptionRes = async (parsedOutput, context) => {
|
|
|
3082
2882
|
};
|
|
3083
2883
|
const de_IncorrectKeyMaterialExceptionRes = async (parsedOutput, context) => {
|
|
3084
2884
|
const body = parsedOutput.body;
|
|
3085
|
-
const deserialized =
|
|
2885
|
+
const deserialized = _json(body);
|
|
3086
2886
|
const exception = new IncorrectKeyMaterialException({
|
|
3087
2887
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3088
2888
|
...deserialized,
|
|
@@ -3091,7 +2891,7 @@ const de_IncorrectKeyMaterialExceptionRes = async (parsedOutput, context) => {
|
|
|
3091
2891
|
};
|
|
3092
2892
|
const de_IncorrectTrustAnchorExceptionRes = async (parsedOutput, context) => {
|
|
3093
2893
|
const body = parsedOutput.body;
|
|
3094
|
-
const deserialized =
|
|
2894
|
+
const deserialized = _json(body);
|
|
3095
2895
|
const exception = new IncorrectTrustAnchorException({
|
|
3096
2896
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3097
2897
|
...deserialized,
|
|
@@ -3100,7 +2900,7 @@ const de_IncorrectTrustAnchorExceptionRes = async (parsedOutput, context) => {
|
|
|
3100
2900
|
};
|
|
3101
2901
|
const de_InvalidAliasNameExceptionRes = async (parsedOutput, context) => {
|
|
3102
2902
|
const body = parsedOutput.body;
|
|
3103
|
-
const deserialized =
|
|
2903
|
+
const deserialized = _json(body);
|
|
3104
2904
|
const exception = new InvalidAliasNameException({
|
|
3105
2905
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3106
2906
|
...deserialized,
|
|
@@ -3109,7 +2909,7 @@ const de_InvalidAliasNameExceptionRes = async (parsedOutput, context) => {
|
|
|
3109
2909
|
};
|
|
3110
2910
|
const de_InvalidArnExceptionRes = async (parsedOutput, context) => {
|
|
3111
2911
|
const body = parsedOutput.body;
|
|
3112
|
-
const deserialized =
|
|
2912
|
+
const deserialized = _json(body);
|
|
3113
2913
|
const exception = new InvalidArnException({
|
|
3114
2914
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3115
2915
|
...deserialized,
|
|
@@ -3118,7 +2918,7 @@ const de_InvalidArnExceptionRes = async (parsedOutput, context) => {
|
|
|
3118
2918
|
};
|
|
3119
2919
|
const de_InvalidCiphertextExceptionRes = async (parsedOutput, context) => {
|
|
3120
2920
|
const body = parsedOutput.body;
|
|
3121
|
-
const deserialized =
|
|
2921
|
+
const deserialized = _json(body);
|
|
3122
2922
|
const exception = new InvalidCiphertextException({
|
|
3123
2923
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3124
2924
|
...deserialized,
|
|
@@ -3127,7 +2927,7 @@ const de_InvalidCiphertextExceptionRes = async (parsedOutput, context) => {
|
|
|
3127
2927
|
};
|
|
3128
2928
|
const de_InvalidGrantIdExceptionRes = async (parsedOutput, context) => {
|
|
3129
2929
|
const body = parsedOutput.body;
|
|
3130
|
-
const deserialized =
|
|
2930
|
+
const deserialized = _json(body);
|
|
3131
2931
|
const exception = new InvalidGrantIdException({
|
|
3132
2932
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3133
2933
|
...deserialized,
|
|
@@ -3136,7 +2936,7 @@ const de_InvalidGrantIdExceptionRes = async (parsedOutput, context) => {
|
|
|
3136
2936
|
};
|
|
3137
2937
|
const de_InvalidGrantTokenExceptionRes = async (parsedOutput, context) => {
|
|
3138
2938
|
const body = parsedOutput.body;
|
|
3139
|
-
const deserialized =
|
|
2939
|
+
const deserialized = _json(body);
|
|
3140
2940
|
const exception = new InvalidGrantTokenException({
|
|
3141
2941
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3142
2942
|
...deserialized,
|
|
@@ -3145,7 +2945,7 @@ const de_InvalidGrantTokenExceptionRes = async (parsedOutput, context) => {
|
|
|
3145
2945
|
};
|
|
3146
2946
|
const de_InvalidImportTokenExceptionRes = async (parsedOutput, context) => {
|
|
3147
2947
|
const body = parsedOutput.body;
|
|
3148
|
-
const deserialized =
|
|
2948
|
+
const deserialized = _json(body);
|
|
3149
2949
|
const exception = new InvalidImportTokenException({
|
|
3150
2950
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3151
2951
|
...deserialized,
|
|
@@ -3154,7 +2954,7 @@ const de_InvalidImportTokenExceptionRes = async (parsedOutput, context) => {
|
|
|
3154
2954
|
};
|
|
3155
2955
|
const de_InvalidKeyUsageExceptionRes = async (parsedOutput, context) => {
|
|
3156
2956
|
const body = parsedOutput.body;
|
|
3157
|
-
const deserialized =
|
|
2957
|
+
const deserialized = _json(body);
|
|
3158
2958
|
const exception = new InvalidKeyUsageException({
|
|
3159
2959
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3160
2960
|
...deserialized,
|
|
@@ -3163,7 +2963,7 @@ const de_InvalidKeyUsageExceptionRes = async (parsedOutput, context) => {
|
|
|
3163
2963
|
};
|
|
3164
2964
|
const de_InvalidMarkerExceptionRes = async (parsedOutput, context) => {
|
|
3165
2965
|
const body = parsedOutput.body;
|
|
3166
|
-
const deserialized =
|
|
2966
|
+
const deserialized = _json(body);
|
|
3167
2967
|
const exception = new InvalidMarkerException({
|
|
3168
2968
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3169
2969
|
...deserialized,
|
|
@@ -3172,7 +2972,7 @@ const de_InvalidMarkerExceptionRes = async (parsedOutput, context) => {
|
|
|
3172
2972
|
};
|
|
3173
2973
|
const de_KeyUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
3174
2974
|
const body = parsedOutput.body;
|
|
3175
|
-
const deserialized =
|
|
2975
|
+
const deserialized = _json(body);
|
|
3176
2976
|
const exception = new KeyUnavailableException({
|
|
3177
2977
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3178
2978
|
...deserialized,
|
|
@@ -3181,7 +2981,7 @@ const de_KeyUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
|
3181
2981
|
};
|
|
3182
2982
|
const de_KMSInternalExceptionRes = async (parsedOutput, context) => {
|
|
3183
2983
|
const body = parsedOutput.body;
|
|
3184
|
-
const deserialized =
|
|
2984
|
+
const deserialized = _json(body);
|
|
3185
2985
|
const exception = new KMSInternalException({
|
|
3186
2986
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3187
2987
|
...deserialized,
|
|
@@ -3190,7 +2990,7 @@ const de_KMSInternalExceptionRes = async (parsedOutput, context) => {
|
|
|
3190
2990
|
};
|
|
3191
2991
|
const de_KMSInvalidMacExceptionRes = async (parsedOutput, context) => {
|
|
3192
2992
|
const body = parsedOutput.body;
|
|
3193
|
-
const deserialized =
|
|
2993
|
+
const deserialized = _json(body);
|
|
3194
2994
|
const exception = new KMSInvalidMacException({
|
|
3195
2995
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3196
2996
|
...deserialized,
|
|
@@ -3199,7 +2999,7 @@ const de_KMSInvalidMacExceptionRes = async (parsedOutput, context) => {
|
|
|
3199
2999
|
};
|
|
3200
3000
|
const de_KMSInvalidSignatureExceptionRes = async (parsedOutput, context) => {
|
|
3201
3001
|
const body = parsedOutput.body;
|
|
3202
|
-
const deserialized =
|
|
3002
|
+
const deserialized = _json(body);
|
|
3203
3003
|
const exception = new KMSInvalidSignatureException({
|
|
3204
3004
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3205
3005
|
...deserialized,
|
|
@@ -3208,7 +3008,7 @@ const de_KMSInvalidSignatureExceptionRes = async (parsedOutput, context) => {
|
|
|
3208
3008
|
};
|
|
3209
3009
|
const de_KMSInvalidStateExceptionRes = async (parsedOutput, context) => {
|
|
3210
3010
|
const body = parsedOutput.body;
|
|
3211
|
-
const deserialized =
|
|
3011
|
+
const deserialized = _json(body);
|
|
3212
3012
|
const exception = new KMSInvalidStateException({
|
|
3213
3013
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3214
3014
|
...deserialized,
|
|
@@ -3217,7 +3017,7 @@ const de_KMSInvalidStateExceptionRes = async (parsedOutput, context) => {
|
|
|
3217
3017
|
};
|
|
3218
3018
|
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
3219
3019
|
const body = parsedOutput.body;
|
|
3220
|
-
const deserialized =
|
|
3020
|
+
const deserialized = _json(body);
|
|
3221
3021
|
const exception = new LimitExceededException({
|
|
3222
3022
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3223
3023
|
...deserialized,
|
|
@@ -3226,7 +3026,7 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
3226
3026
|
};
|
|
3227
3027
|
const de_MalformedPolicyDocumentExceptionRes = async (parsedOutput, context) => {
|
|
3228
3028
|
const body = parsedOutput.body;
|
|
3229
|
-
const deserialized =
|
|
3029
|
+
const deserialized = _json(body);
|
|
3230
3030
|
const exception = new MalformedPolicyDocumentException({
|
|
3231
3031
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3232
3032
|
...deserialized,
|
|
@@ -3235,7 +3035,7 @@ const de_MalformedPolicyDocumentExceptionRes = async (parsedOutput, context) =>
|
|
|
3235
3035
|
};
|
|
3236
3036
|
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
3237
3037
|
const body = parsedOutput.body;
|
|
3238
|
-
const deserialized =
|
|
3038
|
+
const deserialized = _json(body);
|
|
3239
3039
|
const exception = new NotFoundException({
|
|
3240
3040
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3241
3041
|
...deserialized,
|
|
@@ -3244,7 +3044,7 @@ const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
3244
3044
|
};
|
|
3245
3045
|
const de_TagExceptionRes = async (parsedOutput, context) => {
|
|
3246
3046
|
const body = parsedOutput.body;
|
|
3247
|
-
const deserialized =
|
|
3047
|
+
const deserialized = _json(body);
|
|
3248
3048
|
const exception = new TagException({
|
|
3249
3049
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3250
3050
|
...deserialized,
|
|
@@ -3253,7 +3053,7 @@ const de_TagExceptionRes = async (parsedOutput, context) => {
|
|
|
3253
3053
|
};
|
|
3254
3054
|
const de_UnsupportedOperationExceptionRes = async (parsedOutput, context) => {
|
|
3255
3055
|
const body = parsedOutput.body;
|
|
3256
|
-
const deserialized =
|
|
3056
|
+
const deserialized = _json(body);
|
|
3257
3057
|
const exception = new UnsupportedOperationException({
|
|
3258
3058
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3259
3059
|
...deserialized,
|
|
@@ -3262,7 +3062,7 @@ const de_UnsupportedOperationExceptionRes = async (parsedOutput, context) => {
|
|
|
3262
3062
|
};
|
|
3263
3063
|
const de_XksKeyAlreadyInUseExceptionRes = async (parsedOutput, context) => {
|
|
3264
3064
|
const body = parsedOutput.body;
|
|
3265
|
-
const deserialized =
|
|
3065
|
+
const deserialized = _json(body);
|
|
3266
3066
|
const exception = new XksKeyAlreadyInUseException({
|
|
3267
3067
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3268
3068
|
...deserialized,
|
|
@@ -3271,7 +3071,7 @@ const de_XksKeyAlreadyInUseExceptionRes = async (parsedOutput, context) => {
|
|
|
3271
3071
|
};
|
|
3272
3072
|
const de_XksKeyInvalidConfigurationExceptionRes = async (parsedOutput, context) => {
|
|
3273
3073
|
const body = parsedOutput.body;
|
|
3274
|
-
const deserialized =
|
|
3074
|
+
const deserialized = _json(body);
|
|
3275
3075
|
const exception = new XksKeyInvalidConfigurationException({
|
|
3276
3076
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3277
3077
|
...deserialized,
|
|
@@ -3280,7 +3080,7 @@ const de_XksKeyInvalidConfigurationExceptionRes = async (parsedOutput, context)
|
|
|
3280
3080
|
};
|
|
3281
3081
|
const de_XksKeyNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
3282
3082
|
const body = parsedOutput.body;
|
|
3283
|
-
const deserialized =
|
|
3083
|
+
const deserialized = _json(body);
|
|
3284
3084
|
const exception = new XksKeyNotFoundException({
|
|
3285
3085
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3286
3086
|
...deserialized,
|
|
@@ -3289,7 +3089,7 @@ const de_XksKeyNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
3289
3089
|
};
|
|
3290
3090
|
const de_XksProxyIncorrectAuthenticationCredentialExceptionRes = async (parsedOutput, context) => {
|
|
3291
3091
|
const body = parsedOutput.body;
|
|
3292
|
-
const deserialized =
|
|
3092
|
+
const deserialized = _json(body);
|
|
3293
3093
|
const exception = new XksProxyIncorrectAuthenticationCredentialException({
|
|
3294
3094
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3295
3095
|
...deserialized,
|
|
@@ -3298,7 +3098,7 @@ const de_XksProxyIncorrectAuthenticationCredentialExceptionRes = async (parsedOu
|
|
|
3298
3098
|
};
|
|
3299
3099
|
const de_XksProxyInvalidConfigurationExceptionRes = async (parsedOutput, context) => {
|
|
3300
3100
|
const body = parsedOutput.body;
|
|
3301
|
-
const deserialized =
|
|
3101
|
+
const deserialized = _json(body);
|
|
3302
3102
|
const exception = new XksProxyInvalidConfigurationException({
|
|
3303
3103
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3304
3104
|
...deserialized,
|
|
@@ -3307,7 +3107,7 @@ const de_XksProxyInvalidConfigurationExceptionRes = async (parsedOutput, context
|
|
|
3307
3107
|
};
|
|
3308
3108
|
const de_XksProxyInvalidResponseExceptionRes = async (parsedOutput, context) => {
|
|
3309
3109
|
const body = parsedOutput.body;
|
|
3310
|
-
const deserialized =
|
|
3110
|
+
const deserialized = _json(body);
|
|
3311
3111
|
const exception = new XksProxyInvalidResponseException({
|
|
3312
3112
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3313
3113
|
...deserialized,
|
|
@@ -3316,7 +3116,7 @@ const de_XksProxyInvalidResponseExceptionRes = async (parsedOutput, context) =>
|
|
|
3316
3116
|
};
|
|
3317
3117
|
const de_XksProxyUriEndpointInUseExceptionRes = async (parsedOutput, context) => {
|
|
3318
3118
|
const body = parsedOutput.body;
|
|
3319
|
-
const deserialized =
|
|
3119
|
+
const deserialized = _json(body);
|
|
3320
3120
|
const exception = new XksProxyUriEndpointInUseException({
|
|
3321
3121
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3322
3122
|
...deserialized,
|
|
@@ -3325,7 +3125,7 @@ const de_XksProxyUriEndpointInUseExceptionRes = async (parsedOutput, context) =>
|
|
|
3325
3125
|
};
|
|
3326
3126
|
const de_XksProxyUriInUseExceptionRes = async (parsedOutput, context) => {
|
|
3327
3127
|
const body = parsedOutput.body;
|
|
3328
|
-
const deserialized =
|
|
3128
|
+
const deserialized = _json(body);
|
|
3329
3129
|
const exception = new XksProxyUriInUseException({
|
|
3330
3130
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3331
3131
|
...deserialized,
|
|
@@ -3334,7 +3134,7 @@ const de_XksProxyUriInUseExceptionRes = async (parsedOutput, context) => {
|
|
|
3334
3134
|
};
|
|
3335
3135
|
const de_XksProxyUriUnreachableExceptionRes = async (parsedOutput, context) => {
|
|
3336
3136
|
const body = parsedOutput.body;
|
|
3337
|
-
const deserialized =
|
|
3137
|
+
const deserialized = _json(body);
|
|
3338
3138
|
const exception = new XksProxyUriUnreachableException({
|
|
3339
3139
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3340
3140
|
...deserialized,
|
|
@@ -3343,7 +3143,7 @@ const de_XksProxyUriUnreachableExceptionRes = async (parsedOutput, context) => {
|
|
|
3343
3143
|
};
|
|
3344
3144
|
const de_XksProxyVpcEndpointServiceInUseExceptionRes = async (parsedOutput, context) => {
|
|
3345
3145
|
const body = parsedOutput.body;
|
|
3346
|
-
const deserialized =
|
|
3146
|
+
const deserialized = _json(body);
|
|
3347
3147
|
const exception = new XksProxyVpcEndpointServiceInUseException({
|
|
3348
3148
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3349
3149
|
...deserialized,
|
|
@@ -3352,7 +3152,7 @@ const de_XksProxyVpcEndpointServiceInUseExceptionRes = async (parsedOutput, cont
|
|
|
3352
3152
|
};
|
|
3353
3153
|
const de_XksProxyVpcEndpointServiceInvalidConfigurationExceptionRes = async (parsedOutput, context) => {
|
|
3354
3154
|
const body = parsedOutput.body;
|
|
3355
|
-
const deserialized =
|
|
3155
|
+
const deserialized = _json(body);
|
|
3356
3156
|
const exception = new XksProxyVpcEndpointServiceInvalidConfigurationException({
|
|
3357
3157
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3358
3158
|
...deserialized,
|
|
@@ -3361,1186 +3161,311 @@ const de_XksProxyVpcEndpointServiceInvalidConfigurationExceptionRes = async (par
|
|
|
3361
3161
|
};
|
|
3362
3162
|
const de_XksProxyVpcEndpointServiceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
3363
3163
|
const body = parsedOutput.body;
|
|
3364
|
-
const deserialized =
|
|
3164
|
+
const deserialized = _json(body);
|
|
3365
3165
|
const exception = new XksProxyVpcEndpointServiceNotFoundException({
|
|
3366
3166
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3367
3167
|
...deserialized,
|
|
3368
3168
|
});
|
|
3369
3169
|
return __decorateServiceException(exception, body);
|
|
3370
3170
|
};
|
|
3371
|
-
const se_CancelKeyDeletionRequest = (input, context) => {
|
|
3372
|
-
return {
|
|
3373
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3374
|
-
};
|
|
3375
|
-
};
|
|
3376
|
-
const se_ConnectCustomKeyStoreRequest = (input, context) => {
|
|
3377
|
-
return {
|
|
3378
|
-
...(input.CustomKeyStoreId != null && { CustomKeyStoreId: input.CustomKeyStoreId }),
|
|
3379
|
-
};
|
|
3380
|
-
};
|
|
3381
|
-
const se_CreateAliasRequest = (input, context) => {
|
|
3382
|
-
return {
|
|
3383
|
-
...(input.AliasName != null && { AliasName: input.AliasName }),
|
|
3384
|
-
...(input.TargetKeyId != null && { TargetKeyId: input.TargetKeyId }),
|
|
3385
|
-
};
|
|
3386
|
-
};
|
|
3387
|
-
const se_CreateCustomKeyStoreRequest = (input, context) => {
|
|
3388
|
-
return {
|
|
3389
|
-
...(input.CloudHsmClusterId != null && { CloudHsmClusterId: input.CloudHsmClusterId }),
|
|
3390
|
-
...(input.CustomKeyStoreName != null && { CustomKeyStoreName: input.CustomKeyStoreName }),
|
|
3391
|
-
...(input.CustomKeyStoreType != null && { CustomKeyStoreType: input.CustomKeyStoreType }),
|
|
3392
|
-
...(input.KeyStorePassword != null && { KeyStorePassword: input.KeyStorePassword }),
|
|
3393
|
-
...(input.TrustAnchorCertificate != null && { TrustAnchorCertificate: input.TrustAnchorCertificate }),
|
|
3394
|
-
...(input.XksProxyAuthenticationCredential != null && {
|
|
3395
|
-
XksProxyAuthenticationCredential: se_XksProxyAuthenticationCredentialType(input.XksProxyAuthenticationCredential, context),
|
|
3396
|
-
}),
|
|
3397
|
-
...(input.XksProxyConnectivity != null && { XksProxyConnectivity: input.XksProxyConnectivity }),
|
|
3398
|
-
...(input.XksProxyUriEndpoint != null && { XksProxyUriEndpoint: input.XksProxyUriEndpoint }),
|
|
3399
|
-
...(input.XksProxyUriPath != null && { XksProxyUriPath: input.XksProxyUriPath }),
|
|
3400
|
-
...(input.XksProxyVpcEndpointServiceName != null && {
|
|
3401
|
-
XksProxyVpcEndpointServiceName: input.XksProxyVpcEndpointServiceName,
|
|
3402
|
-
}),
|
|
3403
|
-
};
|
|
3404
|
-
};
|
|
3405
|
-
const se_CreateGrantRequest = (input, context) => {
|
|
3406
|
-
return {
|
|
3407
|
-
...(input.Constraints != null && { Constraints: se_GrantConstraints(input.Constraints, context) }),
|
|
3408
|
-
...(input.GrantTokens != null && { GrantTokens: se_GrantTokenList(input.GrantTokens, context) }),
|
|
3409
|
-
...(input.GranteePrincipal != null && { GranteePrincipal: input.GranteePrincipal }),
|
|
3410
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3411
|
-
...(input.Name != null && { Name: input.Name }),
|
|
3412
|
-
...(input.Operations != null && { Operations: se_GrantOperationList(input.Operations, context) }),
|
|
3413
|
-
...(input.RetiringPrincipal != null && { RetiringPrincipal: input.RetiringPrincipal }),
|
|
3414
|
-
};
|
|
3415
|
-
};
|
|
3416
|
-
const se_CreateKeyRequest = (input, context) => {
|
|
3417
|
-
return {
|
|
3418
|
-
...(input.BypassPolicyLockoutSafetyCheck != null && {
|
|
3419
|
-
BypassPolicyLockoutSafetyCheck: input.BypassPolicyLockoutSafetyCheck,
|
|
3420
|
-
}),
|
|
3421
|
-
...(input.CustomKeyStoreId != null && { CustomKeyStoreId: input.CustomKeyStoreId }),
|
|
3422
|
-
...(input.CustomerMasterKeySpec != null && { CustomerMasterKeySpec: input.CustomerMasterKeySpec }),
|
|
3423
|
-
...(input.Description != null && { Description: input.Description }),
|
|
3424
|
-
...(input.KeySpec != null && { KeySpec: input.KeySpec }),
|
|
3425
|
-
...(input.KeyUsage != null && { KeyUsage: input.KeyUsage }),
|
|
3426
|
-
...(input.MultiRegion != null && { MultiRegion: input.MultiRegion }),
|
|
3427
|
-
...(input.Origin != null && { Origin: input.Origin }),
|
|
3428
|
-
...(input.Policy != null && { Policy: input.Policy }),
|
|
3429
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
3430
|
-
...(input.XksKeyId != null && { XksKeyId: input.XksKeyId }),
|
|
3431
|
-
};
|
|
3432
|
-
};
|
|
3433
3171
|
const se_DecryptRequest = (input, context) => {
|
|
3434
|
-
return {
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3442
|
-
};
|
|
3172
|
+
return take(input, {
|
|
3173
|
+
CiphertextBlob: context.base64Encoder,
|
|
3174
|
+
EncryptionAlgorithm: [],
|
|
3175
|
+
EncryptionContext: _json,
|
|
3176
|
+
GrantTokens: _json,
|
|
3177
|
+
KeyId: [],
|
|
3178
|
+
});
|
|
3443
3179
|
};
|
|
3444
|
-
const
|
|
3445
|
-
return {
|
|
3446
|
-
|
|
3447
|
-
|
|
3180
|
+
const se_EncryptRequest = (input, context) => {
|
|
3181
|
+
return take(input, {
|
|
3182
|
+
EncryptionAlgorithm: [],
|
|
3183
|
+
EncryptionContext: _json,
|
|
3184
|
+
GrantTokens: _json,
|
|
3185
|
+
KeyId: [],
|
|
3186
|
+
Plaintext: context.base64Encoder,
|
|
3187
|
+
});
|
|
3448
3188
|
};
|
|
3449
|
-
const
|
|
3450
|
-
return {
|
|
3451
|
-
|
|
3452
|
-
|
|
3189
|
+
const se_GenerateMacRequest = (input, context) => {
|
|
3190
|
+
return take(input, {
|
|
3191
|
+
GrantTokens: _json,
|
|
3192
|
+
KeyId: [],
|
|
3193
|
+
MacAlgorithm: [],
|
|
3194
|
+
Message: context.base64Encoder,
|
|
3195
|
+
});
|
|
3453
3196
|
};
|
|
3454
|
-
const
|
|
3455
|
-
return {
|
|
3456
|
-
|
|
3457
|
-
|
|
3197
|
+
const se_ImportKeyMaterialRequest = (input, context) => {
|
|
3198
|
+
return take(input, {
|
|
3199
|
+
EncryptedKeyMaterial: context.base64Encoder,
|
|
3200
|
+
ExpirationModel: [],
|
|
3201
|
+
ImportToken: context.base64Encoder,
|
|
3202
|
+
KeyId: [],
|
|
3203
|
+
ValidTo: (_) => Math.round(_.getTime() / 1000),
|
|
3204
|
+
});
|
|
3458
3205
|
};
|
|
3459
|
-
const
|
|
3460
|
-
return {
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
|
|
3206
|
+
const se_ReEncryptRequest = (input, context) => {
|
|
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: [],
|
|
3216
|
+
});
|
|
3466
3217
|
};
|
|
3467
|
-
const
|
|
3468
|
-
return {
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3218
|
+
const se_SignRequest = (input, context) => {
|
|
3219
|
+
return take(input, {
|
|
3220
|
+
GrantTokens: _json,
|
|
3221
|
+
KeyId: [],
|
|
3222
|
+
Message: context.base64Encoder,
|
|
3223
|
+
MessageType: [],
|
|
3224
|
+
SigningAlgorithm: [],
|
|
3225
|
+
});
|
|
3472
3226
|
};
|
|
3473
|
-
const
|
|
3474
|
-
return {
|
|
3475
|
-
|
|
3476
|
-
|
|
3227
|
+
const se_VerifyMacRequest = (input, context) => {
|
|
3228
|
+
return take(input, {
|
|
3229
|
+
GrantTokens: _json,
|
|
3230
|
+
KeyId: [],
|
|
3231
|
+
Mac: context.base64Encoder,
|
|
3232
|
+
MacAlgorithm: [],
|
|
3233
|
+
Message: context.base64Encoder,
|
|
3234
|
+
});
|
|
3477
3235
|
};
|
|
3478
|
-
const
|
|
3479
|
-
return {
|
|
3480
|
-
|
|
3481
|
-
|
|
3236
|
+
const se_VerifyRequest = (input, context) => {
|
|
3237
|
+
return take(input, {
|
|
3238
|
+
GrantTokens: _json,
|
|
3239
|
+
KeyId: [],
|
|
3240
|
+
Message: context.base64Encoder,
|
|
3241
|
+
MessageType: [],
|
|
3242
|
+
Signature: context.base64Encoder,
|
|
3243
|
+
SigningAlgorithm: [],
|
|
3244
|
+
});
|
|
3482
3245
|
};
|
|
3483
|
-
const
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3246
|
+
const de_AliasList = (output, context) => {
|
|
3247
|
+
const retVal = (output || [])
|
|
3248
|
+
.filter((e) => e != null)
|
|
3249
|
+
.map((entry) => {
|
|
3250
|
+
return de_AliasListEntry(entry, context);
|
|
3251
|
+
});
|
|
3252
|
+
return retVal;
|
|
3487
3253
|
};
|
|
3488
|
-
const
|
|
3489
|
-
return {
|
|
3490
|
-
|
|
3491
|
-
|
|
3254
|
+
const de_AliasListEntry = (output, context) => {
|
|
3255
|
+
return take(output, {
|
|
3256
|
+
AliasArn: __expectString,
|
|
3257
|
+
AliasName: __expectString,
|
|
3258
|
+
CreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3259
|
+
LastUpdatedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3260
|
+
TargetKeyId: __expectString,
|
|
3261
|
+
});
|
|
3492
3262
|
};
|
|
3493
|
-
const
|
|
3494
|
-
return {
|
|
3495
|
-
|
|
3496
|
-
};
|
|
3263
|
+
const de_CreateKeyResponse = (output, context) => {
|
|
3264
|
+
return take(output, {
|
|
3265
|
+
KeyMetadata: (_) => de_KeyMetadata(_, context),
|
|
3266
|
+
});
|
|
3497
3267
|
};
|
|
3498
|
-
const
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
}, {});
|
|
3268
|
+
const de_CustomKeyStoresList = (output, context) => {
|
|
3269
|
+
const retVal = (output || [])
|
|
3270
|
+
.filter((e) => e != null)
|
|
3271
|
+
.map((entry) => {
|
|
3272
|
+
return de_CustomKeyStoresListEntry(entry, context);
|
|
3273
|
+
});
|
|
3274
|
+
return retVal;
|
|
3506
3275
|
};
|
|
3507
|
-
const
|
|
3508
|
-
return {
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3276
|
+
const de_CustomKeyStoresListEntry = (output, context) => {
|
|
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
|
+
});
|
|
3517
3288
|
};
|
|
3518
|
-
const
|
|
3519
|
-
return {
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3525
|
-
...(input.KeyPairSpec != null && { KeyPairSpec: input.KeyPairSpec }),
|
|
3526
|
-
};
|
|
3289
|
+
const de_DecryptResponse = (output, context) => {
|
|
3290
|
+
return take(output, {
|
|
3291
|
+
EncryptionAlgorithm: __expectString,
|
|
3292
|
+
KeyId: __expectString,
|
|
3293
|
+
Plaintext: context.base64Decoder,
|
|
3294
|
+
});
|
|
3527
3295
|
};
|
|
3528
|
-
const
|
|
3529
|
-
return {
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3535
|
-
...(input.KeyPairSpec != null && { KeyPairSpec: input.KeyPairSpec }),
|
|
3536
|
-
};
|
|
3296
|
+
const de_DescribeCustomKeyStoresResponse = (output, context) => {
|
|
3297
|
+
return take(output, {
|
|
3298
|
+
CustomKeyStores: (_) => de_CustomKeyStoresList(_, context),
|
|
3299
|
+
NextMarker: __expectString,
|
|
3300
|
+
Truncated: __expectBoolean,
|
|
3301
|
+
});
|
|
3537
3302
|
};
|
|
3538
|
-
const
|
|
3539
|
-
return {
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
}),
|
|
3543
|
-
...(input.GrantTokens != null && { GrantTokens: se_GrantTokenList(input.GrantTokens, context) }),
|
|
3544
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3545
|
-
...(input.KeySpec != null && { KeySpec: input.KeySpec }),
|
|
3546
|
-
...(input.NumberOfBytes != null && { NumberOfBytes: input.NumberOfBytes }),
|
|
3547
|
-
};
|
|
3303
|
+
const de_DescribeKeyResponse = (output, context) => {
|
|
3304
|
+
return take(output, {
|
|
3305
|
+
KeyMetadata: (_) => de_KeyMetadata(_, context),
|
|
3306
|
+
});
|
|
3548
3307
|
};
|
|
3549
|
-
const
|
|
3550
|
-
return {
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3556
|
-
...(input.KeySpec != null && { KeySpec: input.KeySpec }),
|
|
3557
|
-
...(input.NumberOfBytes != null && { NumberOfBytes: input.NumberOfBytes }),
|
|
3558
|
-
};
|
|
3308
|
+
const de_EncryptResponse = (output, context) => {
|
|
3309
|
+
return take(output, {
|
|
3310
|
+
CiphertextBlob: context.base64Decoder,
|
|
3311
|
+
EncryptionAlgorithm: __expectString,
|
|
3312
|
+
KeyId: __expectString,
|
|
3313
|
+
});
|
|
3559
3314
|
};
|
|
3560
|
-
const
|
|
3561
|
-
return {
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3315
|
+
const de_GenerateDataKeyPairResponse = (output, context) => {
|
|
3316
|
+
return take(output, {
|
|
3317
|
+
KeyId: __expectString,
|
|
3318
|
+
KeyPairSpec: __expectString,
|
|
3319
|
+
PrivateKeyCiphertextBlob: context.base64Decoder,
|
|
3320
|
+
PrivateKeyPlaintext: context.base64Decoder,
|
|
3321
|
+
PublicKey: context.base64Decoder,
|
|
3322
|
+
});
|
|
3567
3323
|
};
|
|
3568
|
-
const
|
|
3569
|
-
return {
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
|
|
3324
|
+
const de_GenerateDataKeyPairWithoutPlaintextResponse = (output, context) => {
|
|
3325
|
+
return take(output, {
|
|
3326
|
+
KeyId: __expectString,
|
|
3327
|
+
KeyPairSpec: __expectString,
|
|
3328
|
+
PrivateKeyCiphertextBlob: context.base64Decoder,
|
|
3329
|
+
PublicKey: context.base64Decoder,
|
|
3330
|
+
});
|
|
3573
3331
|
};
|
|
3574
|
-
const
|
|
3575
|
-
return {
|
|
3576
|
-
|
|
3577
|
-
|
|
3578
|
-
|
|
3332
|
+
const de_GenerateDataKeyResponse = (output, context) => {
|
|
3333
|
+
return take(output, {
|
|
3334
|
+
CiphertextBlob: context.base64Decoder,
|
|
3335
|
+
KeyId: __expectString,
|
|
3336
|
+
Plaintext: context.base64Decoder,
|
|
3337
|
+
});
|
|
3579
3338
|
};
|
|
3580
|
-
const
|
|
3581
|
-
return {
|
|
3582
|
-
|
|
3583
|
-
|
|
3339
|
+
const de_GenerateDataKeyWithoutPlaintextResponse = (output, context) => {
|
|
3340
|
+
return take(output, {
|
|
3341
|
+
CiphertextBlob: context.base64Decoder,
|
|
3342
|
+
KeyId: __expectString,
|
|
3343
|
+
});
|
|
3584
3344
|
};
|
|
3585
|
-
const
|
|
3586
|
-
return {
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
|
|
3590
|
-
};
|
|
3345
|
+
const de_GenerateMacResponse = (output, context) => {
|
|
3346
|
+
return take(output, {
|
|
3347
|
+
KeyId: __expectString,
|
|
3348
|
+
Mac: context.base64Decoder,
|
|
3349
|
+
MacAlgorithm: __expectString,
|
|
3350
|
+
});
|
|
3591
3351
|
};
|
|
3592
|
-
const
|
|
3593
|
-
return {
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
};
|
|
3352
|
+
const de_GenerateRandomResponse = (output, context) => {
|
|
3353
|
+
return take(output, {
|
|
3354
|
+
Plaintext: context.base64Decoder,
|
|
3355
|
+
});
|
|
3597
3356
|
};
|
|
3598
|
-
const
|
|
3599
|
-
return {
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
}),
|
|
3606
|
-
};
|
|
3357
|
+
const de_GetParametersForImportResponse = (output, context) => {
|
|
3358
|
+
return take(output, {
|
|
3359
|
+
ImportToken: context.base64Decoder,
|
|
3360
|
+
KeyId: __expectString,
|
|
3361
|
+
ParametersValidTo: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3362
|
+
PublicKey: context.base64Decoder,
|
|
3363
|
+
});
|
|
3607
3364
|
};
|
|
3608
|
-
const
|
|
3609
|
-
return
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
|
-
|
|
3365
|
+
const de_GetPublicKeyResponse = (output, context) => {
|
|
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,
|
|
3613
3374
|
});
|
|
3614
3375
|
};
|
|
3615
|
-
const
|
|
3616
|
-
|
|
3376
|
+
const de_GrantList = (output, context) => {
|
|
3377
|
+
const retVal = (output || [])
|
|
3617
3378
|
.filter((e) => e != null)
|
|
3618
3379
|
.map((entry) => {
|
|
3619
|
-
return entry;
|
|
3380
|
+
return de_GrantListEntry(entry, context);
|
|
3620
3381
|
});
|
|
3382
|
+
return retVal;
|
|
3621
3383
|
};
|
|
3622
|
-
const
|
|
3623
|
-
return {
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
|
|
3629
|
-
|
|
3630
|
-
|
|
3631
|
-
|
|
3384
|
+
const de_GrantListEntry = (output, context) => {
|
|
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,
|
|
3395
|
+
});
|
|
3632
3396
|
};
|
|
3633
|
-
const
|
|
3634
|
-
return {
|
|
3635
|
-
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
|
|
3397
|
+
const de_KeyMetadata = (output, context) => {
|
|
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,
|
|
3423
|
+
});
|
|
3639
3424
|
};
|
|
3640
|
-
const
|
|
3641
|
-
return {
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
|
|
3646
|
-
...(input.Marker != null && { Marker: input.Marker }),
|
|
3647
|
-
};
|
|
3425
|
+
const de_ListAliasesResponse = (output, context) => {
|
|
3426
|
+
return take(output, {
|
|
3427
|
+
Aliases: (_) => de_AliasList(_, context),
|
|
3428
|
+
NextMarker: __expectString,
|
|
3429
|
+
Truncated: __expectBoolean,
|
|
3430
|
+
});
|
|
3648
3431
|
};
|
|
3649
|
-
const
|
|
3650
|
-
return {
|
|
3651
|
-
|
|
3652
|
-
|
|
3653
|
-
|
|
3654
|
-
};
|
|
3432
|
+
const de_ListGrantsResponse = (output, context) => {
|
|
3433
|
+
return take(output, {
|
|
3434
|
+
Grants: (_) => de_GrantList(_, context),
|
|
3435
|
+
NextMarker: __expectString,
|
|
3436
|
+
Truncated: __expectBoolean,
|
|
3437
|
+
});
|
|
3655
3438
|
};
|
|
3656
|
-
const
|
|
3657
|
-
return {
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
|
|
3439
|
+
const de_ReEncryptResponse = (output, context) => {
|
|
3440
|
+
return take(output, {
|
|
3441
|
+
CiphertextBlob: context.base64Decoder,
|
|
3442
|
+
DestinationEncryptionAlgorithm: __expectString,
|
|
3443
|
+
KeyId: __expectString,
|
|
3444
|
+
SourceEncryptionAlgorithm: __expectString,
|
|
3445
|
+
SourceKeyId: __expectString,
|
|
3446
|
+
});
|
|
3661
3447
|
};
|
|
3662
|
-
const
|
|
3663
|
-
return {
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
};
|
|
3668
|
-
};
|
|
3669
|
-
const se_ListRetirableGrantsRequest = (input, context) => {
|
|
3670
|
-
return {
|
|
3671
|
-
...(input.Limit != null && { Limit: input.Limit }),
|
|
3672
|
-
...(input.Marker != null && { Marker: input.Marker }),
|
|
3673
|
-
...(input.RetiringPrincipal != null && { RetiringPrincipal: input.RetiringPrincipal }),
|
|
3674
|
-
};
|
|
3675
|
-
};
|
|
3676
|
-
const se_PutKeyPolicyRequest = (input, context) => {
|
|
3677
|
-
return {
|
|
3678
|
-
...(input.BypassPolicyLockoutSafetyCheck != null && {
|
|
3679
|
-
BypassPolicyLockoutSafetyCheck: input.BypassPolicyLockoutSafetyCheck,
|
|
3680
|
-
}),
|
|
3681
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3682
|
-
...(input.Policy != null && { Policy: input.Policy }),
|
|
3683
|
-
...(input.PolicyName != null && { PolicyName: input.PolicyName }),
|
|
3684
|
-
};
|
|
3685
|
-
};
|
|
3686
|
-
const se_ReEncryptRequest = (input, context) => {
|
|
3687
|
-
return {
|
|
3688
|
-
...(input.CiphertextBlob != null && { CiphertextBlob: context.base64Encoder(input.CiphertextBlob) }),
|
|
3689
|
-
...(input.DestinationEncryptionAlgorithm != null && {
|
|
3690
|
-
DestinationEncryptionAlgorithm: input.DestinationEncryptionAlgorithm,
|
|
3691
|
-
}),
|
|
3692
|
-
...(input.DestinationEncryptionContext != null && {
|
|
3693
|
-
DestinationEncryptionContext: se_EncryptionContextType(input.DestinationEncryptionContext, context),
|
|
3694
|
-
}),
|
|
3695
|
-
...(input.DestinationKeyId != null && { DestinationKeyId: input.DestinationKeyId }),
|
|
3696
|
-
...(input.GrantTokens != null && { GrantTokens: se_GrantTokenList(input.GrantTokens, context) }),
|
|
3697
|
-
...(input.SourceEncryptionAlgorithm != null && { SourceEncryptionAlgorithm: input.SourceEncryptionAlgorithm }),
|
|
3698
|
-
...(input.SourceEncryptionContext != null && {
|
|
3699
|
-
SourceEncryptionContext: se_EncryptionContextType(input.SourceEncryptionContext, context),
|
|
3700
|
-
}),
|
|
3701
|
-
...(input.SourceKeyId != null && { SourceKeyId: input.SourceKeyId }),
|
|
3702
|
-
};
|
|
3703
|
-
};
|
|
3704
|
-
const se_ReplicateKeyRequest = (input, context) => {
|
|
3705
|
-
return {
|
|
3706
|
-
...(input.BypassPolicyLockoutSafetyCheck != null && {
|
|
3707
|
-
BypassPolicyLockoutSafetyCheck: input.BypassPolicyLockoutSafetyCheck,
|
|
3708
|
-
}),
|
|
3709
|
-
...(input.Description != null && { Description: input.Description }),
|
|
3710
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3711
|
-
...(input.Policy != null && { Policy: input.Policy }),
|
|
3712
|
-
...(input.ReplicaRegion != null && { ReplicaRegion: input.ReplicaRegion }),
|
|
3713
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
3714
|
-
};
|
|
3715
|
-
};
|
|
3716
|
-
const se_RetireGrantRequest = (input, context) => {
|
|
3717
|
-
return {
|
|
3718
|
-
...(input.GrantId != null && { GrantId: input.GrantId }),
|
|
3719
|
-
...(input.GrantToken != null && { GrantToken: input.GrantToken }),
|
|
3720
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3721
|
-
};
|
|
3722
|
-
};
|
|
3723
|
-
const se_RevokeGrantRequest = (input, context) => {
|
|
3724
|
-
return {
|
|
3725
|
-
...(input.GrantId != null && { GrantId: input.GrantId }),
|
|
3726
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3727
|
-
};
|
|
3728
|
-
};
|
|
3729
|
-
const se_ScheduleKeyDeletionRequest = (input, context) => {
|
|
3730
|
-
return {
|
|
3731
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3732
|
-
...(input.PendingWindowInDays != null && { PendingWindowInDays: input.PendingWindowInDays }),
|
|
3733
|
-
};
|
|
3734
|
-
};
|
|
3735
|
-
const se_SignRequest = (input, context) => {
|
|
3736
|
-
return {
|
|
3737
|
-
...(input.GrantTokens != null && { GrantTokens: se_GrantTokenList(input.GrantTokens, context) }),
|
|
3738
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3739
|
-
...(input.Message != null && { Message: context.base64Encoder(input.Message) }),
|
|
3740
|
-
...(input.MessageType != null && { MessageType: input.MessageType }),
|
|
3741
|
-
...(input.SigningAlgorithm != null && { SigningAlgorithm: input.SigningAlgorithm }),
|
|
3742
|
-
};
|
|
3743
|
-
};
|
|
3744
|
-
const se_Tag = (input, context) => {
|
|
3745
|
-
return {
|
|
3746
|
-
...(input.TagKey != null && { TagKey: input.TagKey }),
|
|
3747
|
-
...(input.TagValue != null && { TagValue: input.TagValue }),
|
|
3748
|
-
};
|
|
3749
|
-
};
|
|
3750
|
-
const se_TagKeyList = (input, context) => {
|
|
3751
|
-
return input
|
|
3752
|
-
.filter((e) => e != null)
|
|
3753
|
-
.map((entry) => {
|
|
3754
|
-
return entry;
|
|
3755
|
-
});
|
|
3756
|
-
};
|
|
3757
|
-
const se_TagList = (input, context) => {
|
|
3758
|
-
return input
|
|
3759
|
-
.filter((e) => e != null)
|
|
3760
|
-
.map((entry) => {
|
|
3761
|
-
return se_Tag(entry, context);
|
|
3762
|
-
});
|
|
3763
|
-
};
|
|
3764
|
-
const se_TagResourceRequest = (input, context) => {
|
|
3765
|
-
return {
|
|
3766
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3767
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
3768
|
-
};
|
|
3769
|
-
};
|
|
3770
|
-
const se_UntagResourceRequest = (input, context) => {
|
|
3771
|
-
return {
|
|
3772
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3773
|
-
...(input.TagKeys != null && { TagKeys: se_TagKeyList(input.TagKeys, context) }),
|
|
3774
|
-
};
|
|
3775
|
-
};
|
|
3776
|
-
const se_UpdateAliasRequest = (input, context) => {
|
|
3777
|
-
return {
|
|
3778
|
-
...(input.AliasName != null && { AliasName: input.AliasName }),
|
|
3779
|
-
...(input.TargetKeyId != null && { TargetKeyId: input.TargetKeyId }),
|
|
3780
|
-
};
|
|
3781
|
-
};
|
|
3782
|
-
const se_UpdateCustomKeyStoreRequest = (input, context) => {
|
|
3783
|
-
return {
|
|
3784
|
-
...(input.CloudHsmClusterId != null && { CloudHsmClusterId: input.CloudHsmClusterId }),
|
|
3785
|
-
...(input.CustomKeyStoreId != null && { CustomKeyStoreId: input.CustomKeyStoreId }),
|
|
3786
|
-
...(input.KeyStorePassword != null && { KeyStorePassword: input.KeyStorePassword }),
|
|
3787
|
-
...(input.NewCustomKeyStoreName != null && { NewCustomKeyStoreName: input.NewCustomKeyStoreName }),
|
|
3788
|
-
...(input.XksProxyAuthenticationCredential != null && {
|
|
3789
|
-
XksProxyAuthenticationCredential: se_XksProxyAuthenticationCredentialType(input.XksProxyAuthenticationCredential, context),
|
|
3790
|
-
}),
|
|
3791
|
-
...(input.XksProxyConnectivity != null && { XksProxyConnectivity: input.XksProxyConnectivity }),
|
|
3792
|
-
...(input.XksProxyUriEndpoint != null && { XksProxyUriEndpoint: input.XksProxyUriEndpoint }),
|
|
3793
|
-
...(input.XksProxyUriPath != null && { XksProxyUriPath: input.XksProxyUriPath }),
|
|
3794
|
-
...(input.XksProxyVpcEndpointServiceName != null && {
|
|
3795
|
-
XksProxyVpcEndpointServiceName: input.XksProxyVpcEndpointServiceName,
|
|
3796
|
-
}),
|
|
3797
|
-
};
|
|
3798
|
-
};
|
|
3799
|
-
const se_UpdateKeyDescriptionRequest = (input, context) => {
|
|
3800
|
-
return {
|
|
3801
|
-
...(input.Description != null && { Description: input.Description }),
|
|
3802
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3803
|
-
};
|
|
3804
|
-
};
|
|
3805
|
-
const se_UpdatePrimaryRegionRequest = (input, context) => {
|
|
3806
|
-
return {
|
|
3807
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3808
|
-
...(input.PrimaryRegion != null && { PrimaryRegion: input.PrimaryRegion }),
|
|
3809
|
-
};
|
|
3810
|
-
};
|
|
3811
|
-
const se_VerifyMacRequest = (input, context) => {
|
|
3812
|
-
return {
|
|
3813
|
-
...(input.GrantTokens != null && { GrantTokens: se_GrantTokenList(input.GrantTokens, context) }),
|
|
3814
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3815
|
-
...(input.Mac != null && { Mac: context.base64Encoder(input.Mac) }),
|
|
3816
|
-
...(input.MacAlgorithm != null && { MacAlgorithm: input.MacAlgorithm }),
|
|
3817
|
-
...(input.Message != null && { Message: context.base64Encoder(input.Message) }),
|
|
3818
|
-
};
|
|
3819
|
-
};
|
|
3820
|
-
const se_VerifyRequest = (input, context) => {
|
|
3821
|
-
return {
|
|
3822
|
-
...(input.GrantTokens != null && { GrantTokens: se_GrantTokenList(input.GrantTokens, context) }),
|
|
3823
|
-
...(input.KeyId != null && { KeyId: input.KeyId }),
|
|
3824
|
-
...(input.Message != null && { Message: context.base64Encoder(input.Message) }),
|
|
3825
|
-
...(input.MessageType != null && { MessageType: input.MessageType }),
|
|
3826
|
-
...(input.Signature != null && { Signature: context.base64Encoder(input.Signature) }),
|
|
3827
|
-
...(input.SigningAlgorithm != null && { SigningAlgorithm: input.SigningAlgorithm }),
|
|
3828
|
-
};
|
|
3829
|
-
};
|
|
3830
|
-
const se_XksProxyAuthenticationCredentialType = (input, context) => {
|
|
3831
|
-
return {
|
|
3832
|
-
...(input.AccessKeyId != null && { AccessKeyId: input.AccessKeyId }),
|
|
3833
|
-
...(input.RawSecretAccessKey != null && { RawSecretAccessKey: input.RawSecretAccessKey }),
|
|
3834
|
-
};
|
|
3835
|
-
};
|
|
3836
|
-
const de_AliasList = (output, context) => {
|
|
3837
|
-
const retVal = (output || [])
|
|
3838
|
-
.filter((e) => e != null)
|
|
3839
|
-
.map((entry) => {
|
|
3840
|
-
if (entry === null) {
|
|
3841
|
-
return null;
|
|
3842
|
-
}
|
|
3843
|
-
return de_AliasListEntry(entry, context);
|
|
3844
|
-
});
|
|
3845
|
-
return retVal;
|
|
3846
|
-
};
|
|
3847
|
-
const de_AliasListEntry = (output, context) => {
|
|
3848
|
-
return {
|
|
3849
|
-
AliasArn: __expectString(output.AliasArn),
|
|
3850
|
-
AliasName: __expectString(output.AliasName),
|
|
3851
|
-
CreationDate: output.CreationDate != null
|
|
3852
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationDate)))
|
|
3853
|
-
: undefined,
|
|
3854
|
-
LastUpdatedDate: output.LastUpdatedDate != null
|
|
3855
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedDate)))
|
|
3856
|
-
: undefined,
|
|
3857
|
-
TargetKeyId: __expectString(output.TargetKeyId),
|
|
3858
|
-
};
|
|
3859
|
-
};
|
|
3860
|
-
const de_AlreadyExistsException = (output, context) => {
|
|
3861
|
-
return {
|
|
3862
|
-
message: __expectString(output.message),
|
|
3863
|
-
};
|
|
3864
|
-
};
|
|
3865
|
-
const de_CancelKeyDeletionResponse = (output, context) => {
|
|
3866
|
-
return {
|
|
3867
|
-
KeyId: __expectString(output.KeyId),
|
|
3868
|
-
};
|
|
3869
|
-
};
|
|
3870
|
-
const de_CloudHsmClusterInUseException = (output, context) => {
|
|
3871
|
-
return {
|
|
3872
|
-
message: __expectString(output.message),
|
|
3873
|
-
};
|
|
3874
|
-
};
|
|
3875
|
-
const de_CloudHsmClusterInvalidConfigurationException = (output, context) => {
|
|
3876
|
-
return {
|
|
3877
|
-
message: __expectString(output.message),
|
|
3878
|
-
};
|
|
3879
|
-
};
|
|
3880
|
-
const de_CloudHsmClusterNotActiveException = (output, context) => {
|
|
3881
|
-
return {
|
|
3882
|
-
message: __expectString(output.message),
|
|
3883
|
-
};
|
|
3884
|
-
};
|
|
3885
|
-
const de_CloudHsmClusterNotFoundException = (output, context) => {
|
|
3886
|
-
return {
|
|
3887
|
-
message: __expectString(output.message),
|
|
3888
|
-
};
|
|
3889
|
-
};
|
|
3890
|
-
const de_CloudHsmClusterNotRelatedException = (output, context) => {
|
|
3891
|
-
return {
|
|
3892
|
-
message: __expectString(output.message),
|
|
3893
|
-
};
|
|
3894
|
-
};
|
|
3895
|
-
const de_ConnectCustomKeyStoreResponse = (output, context) => {
|
|
3896
|
-
return {};
|
|
3897
|
-
};
|
|
3898
|
-
const de_CreateCustomKeyStoreResponse = (output, context) => {
|
|
3899
|
-
return {
|
|
3900
|
-
CustomKeyStoreId: __expectString(output.CustomKeyStoreId),
|
|
3901
|
-
};
|
|
3902
|
-
};
|
|
3903
|
-
const de_CreateGrantResponse = (output, context) => {
|
|
3904
|
-
return {
|
|
3905
|
-
GrantId: __expectString(output.GrantId),
|
|
3906
|
-
GrantToken: __expectString(output.GrantToken),
|
|
3907
|
-
};
|
|
3908
|
-
};
|
|
3909
|
-
const de_CreateKeyResponse = (output, context) => {
|
|
3910
|
-
return {
|
|
3911
|
-
KeyMetadata: output.KeyMetadata != null ? de_KeyMetadata(output.KeyMetadata, context) : undefined,
|
|
3912
|
-
};
|
|
3913
|
-
};
|
|
3914
|
-
const de_CustomKeyStoreHasCMKsException = (output, context) => {
|
|
3915
|
-
return {
|
|
3916
|
-
message: __expectString(output.message),
|
|
3917
|
-
};
|
|
3918
|
-
};
|
|
3919
|
-
const de_CustomKeyStoreInvalidStateException = (output, context) => {
|
|
3920
|
-
return {
|
|
3921
|
-
message: __expectString(output.message),
|
|
3922
|
-
};
|
|
3923
|
-
};
|
|
3924
|
-
const de_CustomKeyStoreNameInUseException = (output, context) => {
|
|
3925
|
-
return {
|
|
3926
|
-
message: __expectString(output.message),
|
|
3927
|
-
};
|
|
3928
|
-
};
|
|
3929
|
-
const de_CustomKeyStoreNotFoundException = (output, context) => {
|
|
3930
|
-
return {
|
|
3931
|
-
message: __expectString(output.message),
|
|
3932
|
-
};
|
|
3933
|
-
};
|
|
3934
|
-
const de_CustomKeyStoresList = (output, context) => {
|
|
3935
|
-
const retVal = (output || [])
|
|
3936
|
-
.filter((e) => e != null)
|
|
3937
|
-
.map((entry) => {
|
|
3938
|
-
if (entry === null) {
|
|
3939
|
-
return null;
|
|
3940
|
-
}
|
|
3941
|
-
return de_CustomKeyStoresListEntry(entry, context);
|
|
3942
|
-
});
|
|
3943
|
-
return retVal;
|
|
3944
|
-
};
|
|
3945
|
-
const de_CustomKeyStoresListEntry = (output, context) => {
|
|
3946
|
-
return {
|
|
3947
|
-
CloudHsmClusterId: __expectString(output.CloudHsmClusterId),
|
|
3948
|
-
ConnectionErrorCode: __expectString(output.ConnectionErrorCode),
|
|
3949
|
-
ConnectionState: __expectString(output.ConnectionState),
|
|
3950
|
-
CreationDate: output.CreationDate != null
|
|
3951
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationDate)))
|
|
3952
|
-
: undefined,
|
|
3953
|
-
CustomKeyStoreId: __expectString(output.CustomKeyStoreId),
|
|
3954
|
-
CustomKeyStoreName: __expectString(output.CustomKeyStoreName),
|
|
3955
|
-
CustomKeyStoreType: __expectString(output.CustomKeyStoreType),
|
|
3956
|
-
TrustAnchorCertificate: __expectString(output.TrustAnchorCertificate),
|
|
3957
|
-
XksProxyConfiguration: output.XksProxyConfiguration != null
|
|
3958
|
-
? de_XksProxyConfigurationType(output.XksProxyConfiguration, context)
|
|
3959
|
-
: undefined,
|
|
3960
|
-
};
|
|
3961
|
-
};
|
|
3962
|
-
const de_DecryptResponse = (output, context) => {
|
|
3963
|
-
return {
|
|
3964
|
-
EncryptionAlgorithm: __expectString(output.EncryptionAlgorithm),
|
|
3965
|
-
KeyId: __expectString(output.KeyId),
|
|
3966
|
-
Plaintext: output.Plaintext != null ? context.base64Decoder(output.Plaintext) : undefined,
|
|
3967
|
-
};
|
|
3968
|
-
};
|
|
3969
|
-
const de_DeleteCustomKeyStoreResponse = (output, context) => {
|
|
3970
|
-
return {};
|
|
3971
|
-
};
|
|
3972
|
-
const de_DependencyTimeoutException = (output, context) => {
|
|
3973
|
-
return {
|
|
3974
|
-
message: __expectString(output.message),
|
|
3975
|
-
};
|
|
3976
|
-
};
|
|
3977
|
-
const de_DescribeCustomKeyStoresResponse = (output, context) => {
|
|
3978
|
-
return {
|
|
3979
|
-
CustomKeyStores: output.CustomKeyStores != null ? de_CustomKeyStoresList(output.CustomKeyStores, context) : undefined,
|
|
3980
|
-
NextMarker: __expectString(output.NextMarker),
|
|
3981
|
-
Truncated: __expectBoolean(output.Truncated),
|
|
3982
|
-
};
|
|
3983
|
-
};
|
|
3984
|
-
const de_DescribeKeyResponse = (output, context) => {
|
|
3985
|
-
return {
|
|
3986
|
-
KeyMetadata: output.KeyMetadata != null ? de_KeyMetadata(output.KeyMetadata, context) : undefined,
|
|
3987
|
-
};
|
|
3988
|
-
};
|
|
3989
|
-
const de_DisabledException = (output, context) => {
|
|
3990
|
-
return {
|
|
3991
|
-
message: __expectString(output.message),
|
|
3992
|
-
};
|
|
3993
|
-
};
|
|
3994
|
-
const de_DisconnectCustomKeyStoreResponse = (output, context) => {
|
|
3995
|
-
return {};
|
|
3996
|
-
};
|
|
3997
|
-
const de_EncryptionAlgorithmSpecList = (output, context) => {
|
|
3998
|
-
const retVal = (output || [])
|
|
3999
|
-
.filter((e) => e != null)
|
|
4000
|
-
.map((entry) => {
|
|
4001
|
-
if (entry === null) {
|
|
4002
|
-
return null;
|
|
4003
|
-
}
|
|
4004
|
-
return __expectString(entry);
|
|
4005
|
-
});
|
|
4006
|
-
return retVal;
|
|
4007
|
-
};
|
|
4008
|
-
const de_EncryptionContextType = (output, context) => {
|
|
4009
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
4010
|
-
if (value === null) {
|
|
4011
|
-
return acc;
|
|
4012
|
-
}
|
|
4013
|
-
acc[key] = __expectString(value);
|
|
4014
|
-
return acc;
|
|
4015
|
-
}, {});
|
|
4016
|
-
};
|
|
4017
|
-
const de_EncryptResponse = (output, context) => {
|
|
4018
|
-
return {
|
|
4019
|
-
CiphertextBlob: output.CiphertextBlob != null ? context.base64Decoder(output.CiphertextBlob) : undefined,
|
|
4020
|
-
EncryptionAlgorithm: __expectString(output.EncryptionAlgorithm),
|
|
4021
|
-
KeyId: __expectString(output.KeyId),
|
|
4022
|
-
};
|
|
4023
|
-
};
|
|
4024
|
-
const de_ExpiredImportTokenException = (output, context) => {
|
|
4025
|
-
return {
|
|
4026
|
-
message: __expectString(output.message),
|
|
4027
|
-
};
|
|
4028
|
-
};
|
|
4029
|
-
const de_GenerateDataKeyPairResponse = (output, context) => {
|
|
4030
|
-
return {
|
|
4031
|
-
KeyId: __expectString(output.KeyId),
|
|
4032
|
-
KeyPairSpec: __expectString(output.KeyPairSpec),
|
|
4033
|
-
PrivateKeyCiphertextBlob: output.PrivateKeyCiphertextBlob != null ? context.base64Decoder(output.PrivateKeyCiphertextBlob) : undefined,
|
|
4034
|
-
PrivateKeyPlaintext: output.PrivateKeyPlaintext != null ? context.base64Decoder(output.PrivateKeyPlaintext) : undefined,
|
|
4035
|
-
PublicKey: output.PublicKey != null ? context.base64Decoder(output.PublicKey) : undefined,
|
|
4036
|
-
};
|
|
4037
|
-
};
|
|
4038
|
-
const de_GenerateDataKeyPairWithoutPlaintextResponse = (output, context) => {
|
|
4039
|
-
return {
|
|
4040
|
-
KeyId: __expectString(output.KeyId),
|
|
4041
|
-
KeyPairSpec: __expectString(output.KeyPairSpec),
|
|
4042
|
-
PrivateKeyCiphertextBlob: output.PrivateKeyCiphertextBlob != null ? context.base64Decoder(output.PrivateKeyCiphertextBlob) : undefined,
|
|
4043
|
-
PublicKey: output.PublicKey != null ? context.base64Decoder(output.PublicKey) : undefined,
|
|
4044
|
-
};
|
|
4045
|
-
};
|
|
4046
|
-
const de_GenerateDataKeyResponse = (output, context) => {
|
|
4047
|
-
return {
|
|
4048
|
-
CiphertextBlob: output.CiphertextBlob != null ? context.base64Decoder(output.CiphertextBlob) : undefined,
|
|
4049
|
-
KeyId: __expectString(output.KeyId),
|
|
4050
|
-
Plaintext: output.Plaintext != null ? context.base64Decoder(output.Plaintext) : undefined,
|
|
4051
|
-
};
|
|
4052
|
-
};
|
|
4053
|
-
const de_GenerateDataKeyWithoutPlaintextResponse = (output, context) => {
|
|
4054
|
-
return {
|
|
4055
|
-
CiphertextBlob: output.CiphertextBlob != null ? context.base64Decoder(output.CiphertextBlob) : undefined,
|
|
4056
|
-
KeyId: __expectString(output.KeyId),
|
|
4057
|
-
};
|
|
4058
|
-
};
|
|
4059
|
-
const de_GenerateMacResponse = (output, context) => {
|
|
4060
|
-
return {
|
|
4061
|
-
KeyId: __expectString(output.KeyId),
|
|
4062
|
-
Mac: output.Mac != null ? context.base64Decoder(output.Mac) : undefined,
|
|
4063
|
-
MacAlgorithm: __expectString(output.MacAlgorithm),
|
|
4064
|
-
};
|
|
4065
|
-
};
|
|
4066
|
-
const de_GenerateRandomResponse = (output, context) => {
|
|
4067
|
-
return {
|
|
4068
|
-
Plaintext: output.Plaintext != null ? context.base64Decoder(output.Plaintext) : undefined,
|
|
4069
|
-
};
|
|
4070
|
-
};
|
|
4071
|
-
const de_GetKeyPolicyResponse = (output, context) => {
|
|
4072
|
-
return {
|
|
4073
|
-
Policy: __expectString(output.Policy),
|
|
4074
|
-
};
|
|
4075
|
-
};
|
|
4076
|
-
const de_GetKeyRotationStatusResponse = (output, context) => {
|
|
4077
|
-
return {
|
|
4078
|
-
KeyRotationEnabled: __expectBoolean(output.KeyRotationEnabled),
|
|
4079
|
-
};
|
|
4080
|
-
};
|
|
4081
|
-
const de_GetParametersForImportResponse = (output, context) => {
|
|
4082
|
-
return {
|
|
4083
|
-
ImportToken: output.ImportToken != null ? context.base64Decoder(output.ImportToken) : undefined,
|
|
4084
|
-
KeyId: __expectString(output.KeyId),
|
|
4085
|
-
ParametersValidTo: output.ParametersValidTo != null
|
|
4086
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ParametersValidTo)))
|
|
4087
|
-
: undefined,
|
|
4088
|
-
PublicKey: output.PublicKey != null ? context.base64Decoder(output.PublicKey) : undefined,
|
|
4089
|
-
};
|
|
4090
|
-
};
|
|
4091
|
-
const de_GetPublicKeyResponse = (output, context) => {
|
|
4092
|
-
return {
|
|
4093
|
-
CustomerMasterKeySpec: __expectString(output.CustomerMasterKeySpec),
|
|
4094
|
-
EncryptionAlgorithms: output.EncryptionAlgorithms != null
|
|
4095
|
-
? de_EncryptionAlgorithmSpecList(output.EncryptionAlgorithms, context)
|
|
4096
|
-
: undefined,
|
|
4097
|
-
KeyId: __expectString(output.KeyId),
|
|
4098
|
-
KeySpec: __expectString(output.KeySpec),
|
|
4099
|
-
KeyUsage: __expectString(output.KeyUsage),
|
|
4100
|
-
PublicKey: output.PublicKey != null ? context.base64Decoder(output.PublicKey) : undefined,
|
|
4101
|
-
SigningAlgorithms: output.SigningAlgorithms != null ? de_SigningAlgorithmSpecList(output.SigningAlgorithms, context) : undefined,
|
|
4102
|
-
};
|
|
4103
|
-
};
|
|
4104
|
-
const de_GrantConstraints = (output, context) => {
|
|
4105
|
-
return {
|
|
4106
|
-
EncryptionContextEquals: output.EncryptionContextEquals != null
|
|
4107
|
-
? de_EncryptionContextType(output.EncryptionContextEquals, context)
|
|
4108
|
-
: undefined,
|
|
4109
|
-
EncryptionContextSubset: output.EncryptionContextSubset != null
|
|
4110
|
-
? de_EncryptionContextType(output.EncryptionContextSubset, context)
|
|
4111
|
-
: undefined,
|
|
4112
|
-
};
|
|
4113
|
-
};
|
|
4114
|
-
const de_GrantList = (output, context) => {
|
|
4115
|
-
const retVal = (output || [])
|
|
4116
|
-
.filter((e) => e != null)
|
|
4117
|
-
.map((entry) => {
|
|
4118
|
-
if (entry === null) {
|
|
4119
|
-
return null;
|
|
4120
|
-
}
|
|
4121
|
-
return de_GrantListEntry(entry, context);
|
|
4122
|
-
});
|
|
4123
|
-
return retVal;
|
|
4124
|
-
};
|
|
4125
|
-
const de_GrantListEntry = (output, context) => {
|
|
4126
|
-
return {
|
|
4127
|
-
Constraints: output.Constraints != null ? de_GrantConstraints(output.Constraints, context) : undefined,
|
|
4128
|
-
CreationDate: output.CreationDate != null
|
|
4129
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationDate)))
|
|
4130
|
-
: undefined,
|
|
4131
|
-
GrantId: __expectString(output.GrantId),
|
|
4132
|
-
GranteePrincipal: __expectString(output.GranteePrincipal),
|
|
4133
|
-
IssuingAccount: __expectString(output.IssuingAccount),
|
|
4134
|
-
KeyId: __expectString(output.KeyId),
|
|
4135
|
-
Name: __expectString(output.Name),
|
|
4136
|
-
Operations: output.Operations != null ? de_GrantOperationList(output.Operations, context) : undefined,
|
|
4137
|
-
RetiringPrincipal: __expectString(output.RetiringPrincipal),
|
|
4138
|
-
};
|
|
4139
|
-
};
|
|
4140
|
-
const de_GrantOperationList = (output, context) => {
|
|
4141
|
-
const retVal = (output || [])
|
|
4142
|
-
.filter((e) => e != null)
|
|
4143
|
-
.map((entry) => {
|
|
4144
|
-
if (entry === null) {
|
|
4145
|
-
return null;
|
|
4146
|
-
}
|
|
4147
|
-
return __expectString(entry);
|
|
4148
|
-
});
|
|
4149
|
-
return retVal;
|
|
4150
|
-
};
|
|
4151
|
-
const de_ImportKeyMaterialResponse = (output, context) => {
|
|
4152
|
-
return {};
|
|
4153
|
-
};
|
|
4154
|
-
const de_IncorrectKeyException = (output, context) => {
|
|
4155
|
-
return {
|
|
4156
|
-
message: __expectString(output.message),
|
|
4157
|
-
};
|
|
4158
|
-
};
|
|
4159
|
-
const de_IncorrectKeyMaterialException = (output, context) => {
|
|
4160
|
-
return {
|
|
4161
|
-
message: __expectString(output.message),
|
|
4162
|
-
};
|
|
4163
|
-
};
|
|
4164
|
-
const de_IncorrectTrustAnchorException = (output, context) => {
|
|
4165
|
-
return {
|
|
4166
|
-
message: __expectString(output.message),
|
|
4167
|
-
};
|
|
4168
|
-
};
|
|
4169
|
-
const de_InvalidAliasNameException = (output, context) => {
|
|
4170
|
-
return {
|
|
4171
|
-
message: __expectString(output.message),
|
|
4172
|
-
};
|
|
4173
|
-
};
|
|
4174
|
-
const de_InvalidArnException = (output, context) => {
|
|
4175
|
-
return {
|
|
4176
|
-
message: __expectString(output.message),
|
|
4177
|
-
};
|
|
4178
|
-
};
|
|
4179
|
-
const de_InvalidCiphertextException = (output, context) => {
|
|
4180
|
-
return {
|
|
4181
|
-
message: __expectString(output.message),
|
|
4182
|
-
};
|
|
4183
|
-
};
|
|
4184
|
-
const de_InvalidGrantIdException = (output, context) => {
|
|
4185
|
-
return {
|
|
4186
|
-
message: __expectString(output.message),
|
|
4187
|
-
};
|
|
4188
|
-
};
|
|
4189
|
-
const de_InvalidGrantTokenException = (output, context) => {
|
|
4190
|
-
return {
|
|
4191
|
-
message: __expectString(output.message),
|
|
4192
|
-
};
|
|
4193
|
-
};
|
|
4194
|
-
const de_InvalidImportTokenException = (output, context) => {
|
|
4195
|
-
return {
|
|
4196
|
-
message: __expectString(output.message),
|
|
4197
|
-
};
|
|
4198
|
-
};
|
|
4199
|
-
const de_InvalidKeyUsageException = (output, context) => {
|
|
4200
|
-
return {
|
|
4201
|
-
message: __expectString(output.message),
|
|
4202
|
-
};
|
|
4203
|
-
};
|
|
4204
|
-
const de_InvalidMarkerException = (output, context) => {
|
|
4205
|
-
return {
|
|
4206
|
-
message: __expectString(output.message),
|
|
4207
|
-
};
|
|
4208
|
-
};
|
|
4209
|
-
const de_KeyList = (output, context) => {
|
|
4210
|
-
const retVal = (output || [])
|
|
4211
|
-
.filter((e) => e != null)
|
|
4212
|
-
.map((entry) => {
|
|
4213
|
-
if (entry === null) {
|
|
4214
|
-
return null;
|
|
4215
|
-
}
|
|
4216
|
-
return de_KeyListEntry(entry, context);
|
|
4217
|
-
});
|
|
4218
|
-
return retVal;
|
|
4219
|
-
};
|
|
4220
|
-
const de_KeyListEntry = (output, context) => {
|
|
4221
|
-
return {
|
|
4222
|
-
KeyArn: __expectString(output.KeyArn),
|
|
4223
|
-
KeyId: __expectString(output.KeyId),
|
|
4224
|
-
};
|
|
4225
|
-
};
|
|
4226
|
-
const de_KeyMetadata = (output, context) => {
|
|
4227
|
-
return {
|
|
4228
|
-
AWSAccountId: __expectString(output.AWSAccountId),
|
|
4229
|
-
Arn: __expectString(output.Arn),
|
|
4230
|
-
CloudHsmClusterId: __expectString(output.CloudHsmClusterId),
|
|
4231
|
-
CreationDate: output.CreationDate != null
|
|
4232
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationDate)))
|
|
4233
|
-
: undefined,
|
|
4234
|
-
CustomKeyStoreId: __expectString(output.CustomKeyStoreId),
|
|
4235
|
-
CustomerMasterKeySpec: __expectString(output.CustomerMasterKeySpec),
|
|
4236
|
-
DeletionDate: output.DeletionDate != null
|
|
4237
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.DeletionDate)))
|
|
4238
|
-
: undefined,
|
|
4239
|
-
Description: __expectString(output.Description),
|
|
4240
|
-
Enabled: __expectBoolean(output.Enabled),
|
|
4241
|
-
EncryptionAlgorithms: output.EncryptionAlgorithms != null
|
|
4242
|
-
? de_EncryptionAlgorithmSpecList(output.EncryptionAlgorithms, context)
|
|
4243
|
-
: undefined,
|
|
4244
|
-
ExpirationModel: __expectString(output.ExpirationModel),
|
|
4245
|
-
KeyId: __expectString(output.KeyId),
|
|
4246
|
-
KeyManager: __expectString(output.KeyManager),
|
|
4247
|
-
KeySpec: __expectString(output.KeySpec),
|
|
4248
|
-
KeyState: __expectString(output.KeyState),
|
|
4249
|
-
KeyUsage: __expectString(output.KeyUsage),
|
|
4250
|
-
MacAlgorithms: output.MacAlgorithms != null ? de_MacAlgorithmSpecList(output.MacAlgorithms, context) : undefined,
|
|
4251
|
-
MultiRegion: __expectBoolean(output.MultiRegion),
|
|
4252
|
-
MultiRegionConfiguration: output.MultiRegionConfiguration != null
|
|
4253
|
-
? de_MultiRegionConfiguration(output.MultiRegionConfiguration, context)
|
|
4254
|
-
: undefined,
|
|
4255
|
-
Origin: __expectString(output.Origin),
|
|
4256
|
-
PendingDeletionWindowInDays: __expectInt32(output.PendingDeletionWindowInDays),
|
|
4257
|
-
SigningAlgorithms: output.SigningAlgorithms != null ? de_SigningAlgorithmSpecList(output.SigningAlgorithms, context) : undefined,
|
|
4258
|
-
ValidTo: output.ValidTo != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ValidTo))) : undefined,
|
|
4259
|
-
XksKeyConfiguration: output.XksKeyConfiguration != null ? de_XksKeyConfigurationType(output.XksKeyConfiguration, context) : undefined,
|
|
4260
|
-
};
|
|
4261
|
-
};
|
|
4262
|
-
const de_KeyUnavailableException = (output, context) => {
|
|
4263
|
-
return {
|
|
4264
|
-
message: __expectString(output.message),
|
|
4265
|
-
};
|
|
4266
|
-
};
|
|
4267
|
-
const de_KMSInternalException = (output, context) => {
|
|
4268
|
-
return {
|
|
4269
|
-
message: __expectString(output.message),
|
|
4270
|
-
};
|
|
4271
|
-
};
|
|
4272
|
-
const de_KMSInvalidMacException = (output, context) => {
|
|
4273
|
-
return {
|
|
4274
|
-
message: __expectString(output.message),
|
|
4275
|
-
};
|
|
4276
|
-
};
|
|
4277
|
-
const de_KMSInvalidSignatureException = (output, context) => {
|
|
4278
|
-
return {
|
|
4279
|
-
message: __expectString(output.message),
|
|
4280
|
-
};
|
|
4281
|
-
};
|
|
4282
|
-
const de_KMSInvalidStateException = (output, context) => {
|
|
4283
|
-
return {
|
|
4284
|
-
message: __expectString(output.message),
|
|
4285
|
-
};
|
|
4286
|
-
};
|
|
4287
|
-
const de_LimitExceededException = (output, context) => {
|
|
4288
|
-
return {
|
|
4289
|
-
message: __expectString(output.message),
|
|
4290
|
-
};
|
|
4291
|
-
};
|
|
4292
|
-
const de_ListAliasesResponse = (output, context) => {
|
|
4293
|
-
return {
|
|
4294
|
-
Aliases: output.Aliases != null ? de_AliasList(output.Aliases, context) : undefined,
|
|
4295
|
-
NextMarker: __expectString(output.NextMarker),
|
|
4296
|
-
Truncated: __expectBoolean(output.Truncated),
|
|
4297
|
-
};
|
|
4298
|
-
};
|
|
4299
|
-
const de_ListGrantsResponse = (output, context) => {
|
|
4300
|
-
return {
|
|
4301
|
-
Grants: output.Grants != null ? de_GrantList(output.Grants, context) : undefined,
|
|
4302
|
-
NextMarker: __expectString(output.NextMarker),
|
|
4303
|
-
Truncated: __expectBoolean(output.Truncated),
|
|
4304
|
-
};
|
|
4305
|
-
};
|
|
4306
|
-
const de_ListKeyPoliciesResponse = (output, context) => {
|
|
4307
|
-
return {
|
|
4308
|
-
NextMarker: __expectString(output.NextMarker),
|
|
4309
|
-
PolicyNames: output.PolicyNames != null ? de_PolicyNameList(output.PolicyNames, context) : undefined,
|
|
4310
|
-
Truncated: __expectBoolean(output.Truncated),
|
|
4311
|
-
};
|
|
4312
|
-
};
|
|
4313
|
-
const de_ListKeysResponse = (output, context) => {
|
|
4314
|
-
return {
|
|
4315
|
-
Keys: output.Keys != null ? de_KeyList(output.Keys, context) : undefined,
|
|
4316
|
-
NextMarker: __expectString(output.NextMarker),
|
|
4317
|
-
Truncated: __expectBoolean(output.Truncated),
|
|
4318
|
-
};
|
|
4319
|
-
};
|
|
4320
|
-
const de_ListResourceTagsResponse = (output, context) => {
|
|
4321
|
-
return {
|
|
4322
|
-
NextMarker: __expectString(output.NextMarker),
|
|
4323
|
-
Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
|
|
4324
|
-
Truncated: __expectBoolean(output.Truncated),
|
|
4325
|
-
};
|
|
4326
|
-
};
|
|
4327
|
-
const de_MacAlgorithmSpecList = (output, context) => {
|
|
4328
|
-
const retVal = (output || [])
|
|
4329
|
-
.filter((e) => e != null)
|
|
4330
|
-
.map((entry) => {
|
|
4331
|
-
if (entry === null) {
|
|
4332
|
-
return null;
|
|
4333
|
-
}
|
|
4334
|
-
return __expectString(entry);
|
|
4335
|
-
});
|
|
4336
|
-
return retVal;
|
|
4337
|
-
};
|
|
4338
|
-
const de_MalformedPolicyDocumentException = (output, context) => {
|
|
4339
|
-
return {
|
|
4340
|
-
message: __expectString(output.message),
|
|
4341
|
-
};
|
|
4342
|
-
};
|
|
4343
|
-
const de_MultiRegionConfiguration = (output, context) => {
|
|
4344
|
-
return {
|
|
4345
|
-
MultiRegionKeyType: __expectString(output.MultiRegionKeyType),
|
|
4346
|
-
PrimaryKey: output.PrimaryKey != null ? de_MultiRegionKey(output.PrimaryKey, context) : undefined,
|
|
4347
|
-
ReplicaKeys: output.ReplicaKeys != null ? de_MultiRegionKeyList(output.ReplicaKeys, context) : undefined,
|
|
4348
|
-
};
|
|
4349
|
-
};
|
|
4350
|
-
const de_MultiRegionKey = (output, context) => {
|
|
4351
|
-
return {
|
|
4352
|
-
Arn: __expectString(output.Arn),
|
|
4353
|
-
Region: __expectString(output.Region),
|
|
4354
|
-
};
|
|
4355
|
-
};
|
|
4356
|
-
const de_MultiRegionKeyList = (output, context) => {
|
|
4357
|
-
const retVal = (output || [])
|
|
4358
|
-
.filter((e) => e != null)
|
|
4359
|
-
.map((entry) => {
|
|
4360
|
-
if (entry === null) {
|
|
4361
|
-
return null;
|
|
4362
|
-
}
|
|
4363
|
-
return de_MultiRegionKey(entry, context);
|
|
4364
|
-
});
|
|
4365
|
-
return retVal;
|
|
4366
|
-
};
|
|
4367
|
-
const de_NotFoundException = (output, context) => {
|
|
4368
|
-
return {
|
|
4369
|
-
message: __expectString(output.message),
|
|
4370
|
-
};
|
|
4371
|
-
};
|
|
4372
|
-
const de_PolicyNameList = (output, context) => {
|
|
4373
|
-
const retVal = (output || [])
|
|
4374
|
-
.filter((e) => e != null)
|
|
4375
|
-
.map((entry) => {
|
|
4376
|
-
if (entry === null) {
|
|
4377
|
-
return null;
|
|
4378
|
-
}
|
|
4379
|
-
return __expectString(entry);
|
|
4380
|
-
});
|
|
4381
|
-
return retVal;
|
|
4382
|
-
};
|
|
4383
|
-
const de_ReEncryptResponse = (output, context) => {
|
|
4384
|
-
return {
|
|
4385
|
-
CiphertextBlob: output.CiphertextBlob != null ? context.base64Decoder(output.CiphertextBlob) : undefined,
|
|
4386
|
-
DestinationEncryptionAlgorithm: __expectString(output.DestinationEncryptionAlgorithm),
|
|
4387
|
-
KeyId: __expectString(output.KeyId),
|
|
4388
|
-
SourceEncryptionAlgorithm: __expectString(output.SourceEncryptionAlgorithm),
|
|
4389
|
-
SourceKeyId: __expectString(output.SourceKeyId),
|
|
4390
|
-
};
|
|
4391
|
-
};
|
|
4392
|
-
const de_ReplicateKeyResponse = (output, context) => {
|
|
4393
|
-
return {
|
|
4394
|
-
ReplicaKeyMetadata: output.ReplicaKeyMetadata != null ? de_KeyMetadata(output.ReplicaKeyMetadata, context) : undefined,
|
|
4395
|
-
ReplicaPolicy: __expectString(output.ReplicaPolicy),
|
|
4396
|
-
ReplicaTags: output.ReplicaTags != null ? de_TagList(output.ReplicaTags, context) : undefined,
|
|
4397
|
-
};
|
|
3448
|
+
const de_ReplicateKeyResponse = (output, context) => {
|
|
3449
|
+
return take(output, {
|
|
3450
|
+
ReplicaKeyMetadata: (_) => de_KeyMetadata(_, context),
|
|
3451
|
+
ReplicaPolicy: __expectString,
|
|
3452
|
+
ReplicaTags: _json,
|
|
3453
|
+
});
|
|
4398
3454
|
};
|
|
4399
3455
|
const de_ScheduleKeyDeletionResponse = (output, context) => {
|
|
4400
|
-
return {
|
|
4401
|
-
DeletionDate:
|
|
4402
|
-
|
|
4403
|
-
|
|
4404
|
-
|
|
4405
|
-
KeyState: __expectString(output.KeyState),
|
|
4406
|
-
PendingWindowInDays: __expectInt32(output.PendingWindowInDays),
|
|
4407
|
-
};
|
|
4408
|
-
};
|
|
4409
|
-
const de_SigningAlgorithmSpecList = (output, context) => {
|
|
4410
|
-
const retVal = (output || [])
|
|
4411
|
-
.filter((e) => e != null)
|
|
4412
|
-
.map((entry) => {
|
|
4413
|
-
if (entry === null) {
|
|
4414
|
-
return null;
|
|
4415
|
-
}
|
|
4416
|
-
return __expectString(entry);
|
|
3456
|
+
return take(output, {
|
|
3457
|
+
DeletionDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3458
|
+
KeyId: __expectString,
|
|
3459
|
+
KeyState: __expectString,
|
|
3460
|
+
PendingWindowInDays: __expectInt32,
|
|
4417
3461
|
});
|
|
4418
|
-
return retVal;
|
|
4419
3462
|
};
|
|
4420
3463
|
const de_SignResponse = (output, context) => {
|
|
4421
|
-
return {
|
|
4422
|
-
KeyId: __expectString
|
|
4423
|
-
Signature:
|
|
4424
|
-
SigningAlgorithm: __expectString
|
|
4425
|
-
};
|
|
4426
|
-
};
|
|
4427
|
-
const de_Tag = (output, context) => {
|
|
4428
|
-
return {
|
|
4429
|
-
TagKey: __expectString(output.TagKey),
|
|
4430
|
-
TagValue: __expectString(output.TagValue),
|
|
4431
|
-
};
|
|
4432
|
-
};
|
|
4433
|
-
const de_TagException = (output, context) => {
|
|
4434
|
-
return {
|
|
4435
|
-
message: __expectString(output.message),
|
|
4436
|
-
};
|
|
4437
|
-
};
|
|
4438
|
-
const de_TagList = (output, context) => {
|
|
4439
|
-
const retVal = (output || [])
|
|
4440
|
-
.filter((e) => e != null)
|
|
4441
|
-
.map((entry) => {
|
|
4442
|
-
if (entry === null) {
|
|
4443
|
-
return null;
|
|
4444
|
-
}
|
|
4445
|
-
return de_Tag(entry, context);
|
|
3464
|
+
return take(output, {
|
|
3465
|
+
KeyId: __expectString,
|
|
3466
|
+
Signature: context.base64Decoder,
|
|
3467
|
+
SigningAlgorithm: __expectString,
|
|
4446
3468
|
});
|
|
4447
|
-
return retVal;
|
|
4448
|
-
};
|
|
4449
|
-
const de_UnsupportedOperationException = (output, context) => {
|
|
4450
|
-
return {
|
|
4451
|
-
message: __expectString(output.message),
|
|
4452
|
-
};
|
|
4453
|
-
};
|
|
4454
|
-
const de_UpdateCustomKeyStoreResponse = (output, context) => {
|
|
4455
|
-
return {};
|
|
4456
|
-
};
|
|
4457
|
-
const de_VerifyMacResponse = (output, context) => {
|
|
4458
|
-
return {
|
|
4459
|
-
KeyId: __expectString(output.KeyId),
|
|
4460
|
-
MacAlgorithm: __expectString(output.MacAlgorithm),
|
|
4461
|
-
MacValid: __expectBoolean(output.MacValid),
|
|
4462
|
-
};
|
|
4463
|
-
};
|
|
4464
|
-
const de_VerifyResponse = (output, context) => {
|
|
4465
|
-
return {
|
|
4466
|
-
KeyId: __expectString(output.KeyId),
|
|
4467
|
-
SignatureValid: __expectBoolean(output.SignatureValid),
|
|
4468
|
-
SigningAlgorithm: __expectString(output.SigningAlgorithm),
|
|
4469
|
-
};
|
|
4470
|
-
};
|
|
4471
|
-
const de_XksKeyAlreadyInUseException = (output, context) => {
|
|
4472
|
-
return {
|
|
4473
|
-
message: __expectString(output.message),
|
|
4474
|
-
};
|
|
4475
|
-
};
|
|
4476
|
-
const de_XksKeyConfigurationType = (output, context) => {
|
|
4477
|
-
return {
|
|
4478
|
-
Id: __expectString(output.Id),
|
|
4479
|
-
};
|
|
4480
|
-
};
|
|
4481
|
-
const de_XksKeyInvalidConfigurationException = (output, context) => {
|
|
4482
|
-
return {
|
|
4483
|
-
message: __expectString(output.message),
|
|
4484
|
-
};
|
|
4485
|
-
};
|
|
4486
|
-
const de_XksKeyNotFoundException = (output, context) => {
|
|
4487
|
-
return {
|
|
4488
|
-
message: __expectString(output.message),
|
|
4489
|
-
};
|
|
4490
|
-
};
|
|
4491
|
-
const de_XksProxyConfigurationType = (output, context) => {
|
|
4492
|
-
return {
|
|
4493
|
-
AccessKeyId: __expectString(output.AccessKeyId),
|
|
4494
|
-
Connectivity: __expectString(output.Connectivity),
|
|
4495
|
-
UriEndpoint: __expectString(output.UriEndpoint),
|
|
4496
|
-
UriPath: __expectString(output.UriPath),
|
|
4497
|
-
VpcEndpointServiceName: __expectString(output.VpcEndpointServiceName),
|
|
4498
|
-
};
|
|
4499
|
-
};
|
|
4500
|
-
const de_XksProxyIncorrectAuthenticationCredentialException = (output, context) => {
|
|
4501
|
-
return {
|
|
4502
|
-
message: __expectString(output.message),
|
|
4503
|
-
};
|
|
4504
|
-
};
|
|
4505
|
-
const de_XksProxyInvalidConfigurationException = (output, context) => {
|
|
4506
|
-
return {
|
|
4507
|
-
message: __expectString(output.message),
|
|
4508
|
-
};
|
|
4509
|
-
};
|
|
4510
|
-
const de_XksProxyInvalidResponseException = (output, context) => {
|
|
4511
|
-
return {
|
|
4512
|
-
message: __expectString(output.message),
|
|
4513
|
-
};
|
|
4514
|
-
};
|
|
4515
|
-
const de_XksProxyUriEndpointInUseException = (output, context) => {
|
|
4516
|
-
return {
|
|
4517
|
-
message: __expectString(output.message),
|
|
4518
|
-
};
|
|
4519
|
-
};
|
|
4520
|
-
const de_XksProxyUriInUseException = (output, context) => {
|
|
4521
|
-
return {
|
|
4522
|
-
message: __expectString(output.message),
|
|
4523
|
-
};
|
|
4524
|
-
};
|
|
4525
|
-
const de_XksProxyUriUnreachableException = (output, context) => {
|
|
4526
|
-
return {
|
|
4527
|
-
message: __expectString(output.message),
|
|
4528
|
-
};
|
|
4529
|
-
};
|
|
4530
|
-
const de_XksProxyVpcEndpointServiceInUseException = (output, context) => {
|
|
4531
|
-
return {
|
|
4532
|
-
message: __expectString(output.message),
|
|
4533
|
-
};
|
|
4534
|
-
};
|
|
4535
|
-
const de_XksProxyVpcEndpointServiceInvalidConfigurationException = (output, context) => {
|
|
4536
|
-
return {
|
|
4537
|
-
message: __expectString(output.message),
|
|
4538
|
-
};
|
|
4539
|
-
};
|
|
4540
|
-
const de_XksProxyVpcEndpointServiceNotFoundException = (output, context) => {
|
|
4541
|
-
return {
|
|
4542
|
-
message: __expectString(output.message),
|
|
4543
|
-
};
|
|
4544
3469
|
};
|
|
4545
3470
|
const deserializeMetadata = (output) => ({
|
|
4546
3471
|
httpStatusCode: output.statusCode,
|
|
@@ -4555,6 +3480,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
4555
3480
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
4556
3481
|
};
|
|
4557
3482
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
3483
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
4558
3484
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
4559
3485
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
4560
3486
|
const contents = {
|
|
@@ -4573,6 +3499,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
4573
3499
|
}
|
|
4574
3500
|
return new __HttpRequest(contents);
|
|
4575
3501
|
};
|
|
3502
|
+
function sharedHeaders(operation) {
|
|
3503
|
+
return {
|
|
3504
|
+
"content-type": "application/x-amz-json-1.1",
|
|
3505
|
+
"x-amz-target": `TrentService.${operation}`,
|
|
3506
|
+
};
|
|
3507
|
+
}
|
|
4576
3508
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
4577
3509
|
if (encoded.length) {
|
|
4578
3510
|
return JSON.parse(encoded);
|