@aws-sdk/client-cloudhsm 3.312.0 → 3.315.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/protocols/Aws_json1_1.js +84 -497
- package/dist-es/protocols/Aws_json1_1.js +85 -498
- package/package.json +6 -6
|
@@ -8,140 +8,140 @@ const models_0_1 = require("../models/models_0");
|
|
|
8
8
|
const se_AddTagsToResourceCommand = async (input, context) => {
|
|
9
9
|
const headers = sharedHeaders("AddTagsToResource");
|
|
10
10
|
let body;
|
|
11
|
-
body = JSON.stringify(
|
|
11
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
12
12
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
13
13
|
};
|
|
14
14
|
exports.se_AddTagsToResourceCommand = se_AddTagsToResourceCommand;
|
|
15
15
|
const se_CreateHapgCommand = async (input, context) => {
|
|
16
16
|
const headers = sharedHeaders("CreateHapg");
|
|
17
17
|
let body;
|
|
18
|
-
body = JSON.stringify(
|
|
18
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
19
19
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
20
20
|
};
|
|
21
21
|
exports.se_CreateHapgCommand = se_CreateHapgCommand;
|
|
22
22
|
const se_CreateHsmCommand = async (input, context) => {
|
|
23
23
|
const headers = sharedHeaders("CreateHsm");
|
|
24
24
|
let body;
|
|
25
|
-
body = JSON.stringify(
|
|
25
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
26
26
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
27
27
|
};
|
|
28
28
|
exports.se_CreateHsmCommand = se_CreateHsmCommand;
|
|
29
29
|
const se_CreateLunaClientCommand = async (input, context) => {
|
|
30
30
|
const headers = sharedHeaders("CreateLunaClient");
|
|
31
31
|
let body;
|
|
32
|
-
body = JSON.stringify(
|
|
32
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
33
33
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
34
34
|
};
|
|
35
35
|
exports.se_CreateLunaClientCommand = se_CreateLunaClientCommand;
|
|
36
36
|
const se_DeleteHapgCommand = async (input, context) => {
|
|
37
37
|
const headers = sharedHeaders("DeleteHapg");
|
|
38
38
|
let body;
|
|
39
|
-
body = JSON.stringify(
|
|
39
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
40
40
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
41
|
};
|
|
42
42
|
exports.se_DeleteHapgCommand = se_DeleteHapgCommand;
|
|
43
43
|
const se_DeleteHsmCommand = async (input, context) => {
|
|
44
44
|
const headers = sharedHeaders("DeleteHsm");
|
|
45
45
|
let body;
|
|
46
|
-
body = JSON.stringify(
|
|
46
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
47
47
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
48
48
|
};
|
|
49
49
|
exports.se_DeleteHsmCommand = se_DeleteHsmCommand;
|
|
50
50
|
const se_DeleteLunaClientCommand = async (input, context) => {
|
|
51
51
|
const headers = sharedHeaders("DeleteLunaClient");
|
|
52
52
|
let body;
|
|
53
|
-
body = JSON.stringify(
|
|
53
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
54
54
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
55
55
|
};
|
|
56
56
|
exports.se_DeleteLunaClientCommand = se_DeleteLunaClientCommand;
|
|
57
57
|
const se_DescribeHapgCommand = async (input, context) => {
|
|
58
58
|
const headers = sharedHeaders("DescribeHapg");
|
|
59
59
|
let body;
|
|
60
|
-
body = JSON.stringify(
|
|
60
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
61
61
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
62
62
|
};
|
|
63
63
|
exports.se_DescribeHapgCommand = se_DescribeHapgCommand;
|
|
64
64
|
const se_DescribeHsmCommand = async (input, context) => {
|
|
65
65
|
const headers = sharedHeaders("DescribeHsm");
|
|
66
66
|
let body;
|
|
67
|
-
body = JSON.stringify(
|
|
67
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
68
68
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
69
69
|
};
|
|
70
70
|
exports.se_DescribeHsmCommand = se_DescribeHsmCommand;
|
|
71
71
|
const se_DescribeLunaClientCommand = async (input, context) => {
|
|
72
72
|
const headers = sharedHeaders("DescribeLunaClient");
|
|
73
73
|
let body;
|
|
74
|
-
body = JSON.stringify(
|
|
74
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
75
75
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
76
|
};
|
|
77
77
|
exports.se_DescribeLunaClientCommand = se_DescribeLunaClientCommand;
|
|
78
78
|
const se_GetConfigCommand = async (input, context) => {
|
|
79
79
|
const headers = sharedHeaders("GetConfig");
|
|
80
80
|
let body;
|
|
81
|
-
body = JSON.stringify(
|
|
81
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
82
82
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
83
83
|
};
|
|
84
84
|
exports.se_GetConfigCommand = se_GetConfigCommand;
|
|
85
85
|
const se_ListAvailableZonesCommand = async (input, context) => {
|
|
86
86
|
const headers = sharedHeaders("ListAvailableZones");
|
|
87
87
|
let body;
|
|
88
|
-
body = JSON.stringify(
|
|
88
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
89
89
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
90
90
|
};
|
|
91
91
|
exports.se_ListAvailableZonesCommand = se_ListAvailableZonesCommand;
|
|
92
92
|
const se_ListHapgsCommand = async (input, context) => {
|
|
93
93
|
const headers = sharedHeaders("ListHapgs");
|
|
94
94
|
let body;
|
|
95
|
-
body = JSON.stringify(
|
|
95
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
96
96
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
97
97
|
};
|
|
98
98
|
exports.se_ListHapgsCommand = se_ListHapgsCommand;
|
|
99
99
|
const se_ListHsmsCommand = async (input, context) => {
|
|
100
100
|
const headers = sharedHeaders("ListHsms");
|
|
101
101
|
let body;
|
|
102
|
-
body = JSON.stringify(
|
|
102
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
103
103
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
104
104
|
};
|
|
105
105
|
exports.se_ListHsmsCommand = se_ListHsmsCommand;
|
|
106
106
|
const se_ListLunaClientsCommand = async (input, context) => {
|
|
107
107
|
const headers = sharedHeaders("ListLunaClients");
|
|
108
108
|
let body;
|
|
109
|
-
body = JSON.stringify(
|
|
109
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
110
110
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
111
111
|
};
|
|
112
112
|
exports.se_ListLunaClientsCommand = se_ListLunaClientsCommand;
|
|
113
113
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
114
114
|
const headers = sharedHeaders("ListTagsForResource");
|
|
115
115
|
let body;
|
|
116
|
-
body = JSON.stringify(
|
|
116
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
117
117
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
118
118
|
};
|
|
119
119
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
120
120
|
const se_ModifyHapgCommand = async (input, context) => {
|
|
121
121
|
const headers = sharedHeaders("ModifyHapg");
|
|
122
122
|
let body;
|
|
123
|
-
body = JSON.stringify(
|
|
123
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
124
124
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
125
125
|
};
|
|
126
126
|
exports.se_ModifyHapgCommand = se_ModifyHapgCommand;
|
|
127
127
|
const se_ModifyHsmCommand = async (input, context) => {
|
|
128
128
|
const headers = sharedHeaders("ModifyHsm");
|
|
129
129
|
let body;
|
|
130
|
-
body = JSON.stringify(
|
|
130
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
131
131
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
132
132
|
};
|
|
133
133
|
exports.se_ModifyHsmCommand = se_ModifyHsmCommand;
|
|
134
134
|
const se_ModifyLunaClientCommand = async (input, context) => {
|
|
135
135
|
const headers = sharedHeaders("ModifyLunaClient");
|
|
136
136
|
let body;
|
|
137
|
-
body = JSON.stringify(
|
|
137
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
138
138
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
139
139
|
};
|
|
140
140
|
exports.se_ModifyLunaClientCommand = se_ModifyLunaClientCommand;
|
|
141
141
|
const se_RemoveTagsFromResourceCommand = async (input, context) => {
|
|
142
142
|
const headers = sharedHeaders("RemoveTagsFromResource");
|
|
143
143
|
let body;
|
|
144
|
-
body = JSON.stringify(
|
|
144
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
145
145
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
146
146
|
};
|
|
147
147
|
exports.se_RemoveTagsFromResourceCommand = se_RemoveTagsFromResourceCommand;
|
|
@@ -151,12 +151,12 @@ const de_AddTagsToResourceCommand = async (output, context) => {
|
|
|
151
151
|
}
|
|
152
152
|
const data = await parseBody(output.body, context);
|
|
153
153
|
let contents = {};
|
|
154
|
-
contents =
|
|
154
|
+
contents = (0, smithy_client_1._json)(data);
|
|
155
155
|
const response = {
|
|
156
156
|
$metadata: deserializeMetadata(output),
|
|
157
157
|
...contents,
|
|
158
158
|
};
|
|
159
|
-
return
|
|
159
|
+
return response;
|
|
160
160
|
};
|
|
161
161
|
exports.de_AddTagsToResourceCommand = de_AddTagsToResourceCommand;
|
|
162
162
|
const de_AddTagsToResourceCommandError = async (output, context) => {
|
|
@@ -177,10 +177,9 @@ const de_AddTagsToResourceCommandError = async (output, context) => {
|
|
|
177
177
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
178
178
|
default:
|
|
179
179
|
const parsedBody = parsedOutput.body;
|
|
180
|
-
|
|
180
|
+
return throwDefaultError({
|
|
181
181
|
output,
|
|
182
182
|
parsedBody,
|
|
183
|
-
exceptionCtor: CloudHSMServiceException_1.CloudHSMServiceException,
|
|
184
183
|
errorCode,
|
|
185
184
|
});
|
|
186
185
|
}
|
|
@@ -191,12 +190,12 @@ const de_CreateHapgCommand = async (output, context) => {
|
|
|
191
190
|
}
|
|
192
191
|
const data = await parseBody(output.body, context);
|
|
193
192
|
let contents = {};
|
|
194
|
-
contents =
|
|
193
|
+
contents = (0, smithy_client_1._json)(data);
|
|
195
194
|
const response = {
|
|
196
195
|
$metadata: deserializeMetadata(output),
|
|
197
196
|
...contents,
|
|
198
197
|
};
|
|
199
|
-
return
|
|
198
|
+
return response;
|
|
200
199
|
};
|
|
201
200
|
exports.de_CreateHapgCommand = de_CreateHapgCommand;
|
|
202
201
|
const de_CreateHapgCommandError = async (output, context) => {
|
|
@@ -217,10 +216,9 @@ const de_CreateHapgCommandError = async (output, context) => {
|
|
|
217
216
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
218
217
|
default:
|
|
219
218
|
const parsedBody = parsedOutput.body;
|
|
220
|
-
|
|
219
|
+
return throwDefaultError({
|
|
221
220
|
output,
|
|
222
221
|
parsedBody,
|
|
223
|
-
exceptionCtor: CloudHSMServiceException_1.CloudHSMServiceException,
|
|
224
222
|
errorCode,
|
|
225
223
|
});
|
|
226
224
|
}
|
|
@@ -231,12 +229,12 @@ const de_CreateHsmCommand = async (output, context) => {
|
|
|
231
229
|
}
|
|
232
230
|
const data = await parseBody(output.body, context);
|
|
233
231
|
let contents = {};
|
|
234
|
-
contents =
|
|
232
|
+
contents = (0, smithy_client_1._json)(data);
|
|
235
233
|
const response = {
|
|
236
234
|
$metadata: deserializeMetadata(output),
|
|
237
235
|
...contents,
|
|
238
236
|
};
|
|
239
|
-
return
|
|
237
|
+
return response;
|
|
240
238
|
};
|
|
241
239
|
exports.de_CreateHsmCommand = de_CreateHsmCommand;
|
|
242
240
|
const de_CreateHsmCommandError = async (output, context) => {
|
|
@@ -257,10 +255,9 @@ const de_CreateHsmCommandError = async (output, context) => {
|
|
|
257
255
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
258
256
|
default:
|
|
259
257
|
const parsedBody = parsedOutput.body;
|
|
260
|
-
|
|
258
|
+
return throwDefaultError({
|
|
261
259
|
output,
|
|
262
260
|
parsedBody,
|
|
263
|
-
exceptionCtor: CloudHSMServiceException_1.CloudHSMServiceException,
|
|
264
261
|
errorCode,
|
|
265
262
|
});
|
|
266
263
|
}
|
|
@@ -271,12 +268,12 @@ const de_CreateLunaClientCommand = async (output, context) => {
|
|
|
271
268
|
}
|
|
272
269
|
const data = await parseBody(output.body, context);
|
|
273
270
|
let contents = {};
|
|
274
|
-
contents =
|
|
271
|
+
contents = (0, smithy_client_1._json)(data);
|
|
275
272
|
const response = {
|
|
276
273
|
$metadata: deserializeMetadata(output),
|
|
277
274
|
...contents,
|
|
278
275
|
};
|
|
279
|
-
return
|
|
276
|
+
return response;
|
|
280
277
|
};
|
|
281
278
|
exports.de_CreateLunaClientCommand = de_CreateLunaClientCommand;
|
|
282
279
|
const de_CreateLunaClientCommandError = async (output, context) => {
|
|
@@ -297,10 +294,9 @@ const de_CreateLunaClientCommandError = async (output, context) => {
|
|
|
297
294
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
298
295
|
default:
|
|
299
296
|
const parsedBody = parsedOutput.body;
|
|
300
|
-
|
|
297
|
+
return throwDefaultError({
|
|
301
298
|
output,
|
|
302
299
|
parsedBody,
|
|
303
|
-
exceptionCtor: CloudHSMServiceException_1.CloudHSMServiceException,
|
|
304
300
|
errorCode,
|
|
305
301
|
});
|
|
306
302
|
}
|
|
@@ -311,12 +307,12 @@ const de_DeleteHapgCommand = async (output, context) => {
|
|
|
311
307
|
}
|
|
312
308
|
const data = await parseBody(output.body, context);
|
|
313
309
|
let contents = {};
|
|
314
|
-
contents =
|
|
310
|
+
contents = (0, smithy_client_1._json)(data);
|
|
315
311
|
const response = {
|
|
316
312
|
$metadata: deserializeMetadata(output),
|
|
317
313
|
...contents,
|
|
318
314
|
};
|
|
319
|
-
return
|
|
315
|
+
return response;
|
|
320
316
|
};
|
|
321
317
|
exports.de_DeleteHapgCommand = de_DeleteHapgCommand;
|
|
322
318
|
const de_DeleteHapgCommandError = async (output, context) => {
|
|
@@ -337,10 +333,9 @@ const de_DeleteHapgCommandError = async (output, context) => {
|
|
|
337
333
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
338
334
|
default:
|
|
339
335
|
const parsedBody = parsedOutput.body;
|
|
340
|
-
|
|
336
|
+
return throwDefaultError({
|
|
341
337
|
output,
|
|
342
338
|
parsedBody,
|
|
343
|
-
exceptionCtor: CloudHSMServiceException_1.CloudHSMServiceException,
|
|
344
339
|
errorCode,
|
|
345
340
|
});
|
|
346
341
|
}
|
|
@@ -351,12 +346,12 @@ const de_DeleteHsmCommand = async (output, context) => {
|
|
|
351
346
|
}
|
|
352
347
|
const data = await parseBody(output.body, context);
|
|
353
348
|
let contents = {};
|
|
354
|
-
contents =
|
|
349
|
+
contents = (0, smithy_client_1._json)(data);
|
|
355
350
|
const response = {
|
|
356
351
|
$metadata: deserializeMetadata(output),
|
|
357
352
|
...contents,
|
|
358
353
|
};
|
|
359
|
-
return
|
|
354
|
+
return response;
|
|
360
355
|
};
|
|
361
356
|
exports.de_DeleteHsmCommand = de_DeleteHsmCommand;
|
|
362
357
|
const de_DeleteHsmCommandError = async (output, context) => {
|
|
@@ -377,10 +372,9 @@ const de_DeleteHsmCommandError = async (output, context) => {
|
|
|
377
372
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
378
373
|
default:
|
|
379
374
|
const parsedBody = parsedOutput.body;
|
|
380
|
-
|
|
375
|
+
return throwDefaultError({
|
|
381
376
|
output,
|
|
382
377
|
parsedBody,
|
|
383
|
-
exceptionCtor: CloudHSMServiceException_1.CloudHSMServiceException,
|
|
384
378
|
errorCode,
|
|
385
379
|
});
|
|
386
380
|
}
|
|
@@ -391,12 +385,12 @@ const de_DeleteLunaClientCommand = async (output, context) => {
|
|
|
391
385
|
}
|
|
392
386
|
const data = await parseBody(output.body, context);
|
|
393
387
|
let contents = {};
|
|
394
|
-
contents =
|
|
388
|
+
contents = (0, smithy_client_1._json)(data);
|
|
395
389
|
const response = {
|
|
396
390
|
$metadata: deserializeMetadata(output),
|
|
397
391
|
...contents,
|
|
398
392
|
};
|
|
399
|
-
return
|
|
393
|
+
return response;
|
|
400
394
|
};
|
|
401
395
|
exports.de_DeleteLunaClientCommand = de_DeleteLunaClientCommand;
|
|
402
396
|
const de_DeleteLunaClientCommandError = async (output, context) => {
|
|
@@ -417,10 +411,9 @@ const de_DeleteLunaClientCommandError = async (output, context) => {
|
|
|
417
411
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
418
412
|
default:
|
|
419
413
|
const parsedBody = parsedOutput.body;
|
|
420
|
-
|
|
414
|
+
return throwDefaultError({
|
|
421
415
|
output,
|
|
422
416
|
parsedBody,
|
|
423
|
-
exceptionCtor: CloudHSMServiceException_1.CloudHSMServiceException,
|
|
424
417
|
errorCode,
|
|
425
418
|
});
|
|
426
419
|
}
|
|
@@ -431,12 +424,12 @@ const de_DescribeHapgCommand = async (output, context) => {
|
|
|
431
424
|
}
|
|
432
425
|
const data = await parseBody(output.body, context);
|
|
433
426
|
let contents = {};
|
|
434
|
-
contents =
|
|
427
|
+
contents = (0, smithy_client_1._json)(data);
|
|
435
428
|
const response = {
|
|
436
429
|
$metadata: deserializeMetadata(output),
|
|
437
430
|
...contents,
|
|
438
431
|
};
|
|
439
|
-
return
|
|
432
|
+
return response;
|
|
440
433
|
};
|
|
441
434
|
exports.de_DescribeHapgCommand = de_DescribeHapgCommand;
|
|
442
435
|
const de_DescribeHapgCommandError = async (output, context) => {
|
|
@@ -457,10 +450,9 @@ const de_DescribeHapgCommandError = async (output, context) => {
|
|
|
457
450
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
458
451
|
default:
|
|
459
452
|
const parsedBody = parsedOutput.body;
|
|
460
|
-
|
|
453
|
+
return throwDefaultError({
|
|
461
454
|
output,
|
|
462
455
|
parsedBody,
|
|
463
|
-
exceptionCtor: CloudHSMServiceException_1.CloudHSMServiceException,
|
|
464
456
|
errorCode,
|
|
465
457
|
});
|
|
466
458
|
}
|
|
@@ -471,12 +463,12 @@ const de_DescribeHsmCommand = async (output, context) => {
|
|
|
471
463
|
}
|
|
472
464
|
const data = await parseBody(output.body, context);
|
|
473
465
|
let contents = {};
|
|
474
|
-
contents =
|
|
466
|
+
contents = (0, smithy_client_1._json)(data);
|
|
475
467
|
const response = {
|
|
476
468
|
$metadata: deserializeMetadata(output),
|
|
477
469
|
...contents,
|
|
478
470
|
};
|
|
479
|
-
return
|
|
471
|
+
return response;
|
|
480
472
|
};
|
|
481
473
|
exports.de_DescribeHsmCommand = de_DescribeHsmCommand;
|
|
482
474
|
const de_DescribeHsmCommandError = async (output, context) => {
|
|
@@ -497,10 +489,9 @@ const de_DescribeHsmCommandError = async (output, context) => {
|
|
|
497
489
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
498
490
|
default:
|
|
499
491
|
const parsedBody = parsedOutput.body;
|
|
500
|
-
|
|
492
|
+
return throwDefaultError({
|
|
501
493
|
output,
|
|
502
494
|
parsedBody,
|
|
503
|
-
exceptionCtor: CloudHSMServiceException_1.CloudHSMServiceException,
|
|
504
495
|
errorCode,
|
|
505
496
|
});
|
|
506
497
|
}
|
|
@@ -511,12 +502,12 @@ const de_DescribeLunaClientCommand = async (output, context) => {
|
|
|
511
502
|
}
|
|
512
503
|
const data = await parseBody(output.body, context);
|
|
513
504
|
let contents = {};
|
|
514
|
-
contents =
|
|
505
|
+
contents = (0, smithy_client_1._json)(data);
|
|
515
506
|
const response = {
|
|
516
507
|
$metadata: deserializeMetadata(output),
|
|
517
508
|
...contents,
|
|
518
509
|
};
|
|
519
|
-
return
|
|
510
|
+
return response;
|
|
520
511
|
};
|
|
521
512
|
exports.de_DescribeLunaClientCommand = de_DescribeLunaClientCommand;
|
|
522
513
|
const de_DescribeLunaClientCommandError = async (output, context) => {
|
|
@@ -537,10 +528,9 @@ const de_DescribeLunaClientCommandError = async (output, context) => {
|
|
|
537
528
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
538
529
|
default:
|
|
539
530
|
const parsedBody = parsedOutput.body;
|
|
540
|
-
|
|
531
|
+
return throwDefaultError({
|
|
541
532
|
output,
|
|
542
533
|
parsedBody,
|
|
543
|
-
exceptionCtor: CloudHSMServiceException_1.CloudHSMServiceException,
|
|
544
534
|
errorCode,
|
|
545
535
|
});
|
|
546
536
|
}
|
|
@@ -551,12 +541,12 @@ const de_GetConfigCommand = async (output, context) => {
|
|
|
551
541
|
}
|
|
552
542
|
const data = await parseBody(output.body, context);
|
|
553
543
|
let contents = {};
|
|
554
|
-
contents =
|
|
544
|
+
contents = (0, smithy_client_1._json)(data);
|
|
555
545
|
const response = {
|
|
556
546
|
$metadata: deserializeMetadata(output),
|
|
557
547
|
...contents,
|
|
558
548
|
};
|
|
559
|
-
return
|
|
549
|
+
return response;
|
|
560
550
|
};
|
|
561
551
|
exports.de_GetConfigCommand = de_GetConfigCommand;
|
|
562
552
|
const de_GetConfigCommandError = async (output, context) => {
|
|
@@ -577,10 +567,9 @@ const de_GetConfigCommandError = async (output, context) => {
|
|
|
577
567
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
578
568
|
default:
|
|
579
569
|
const parsedBody = parsedOutput.body;
|
|
580
|
-
|
|
570
|
+
return throwDefaultError({
|
|
581
571
|
output,
|
|
582
572
|
parsedBody,
|
|
583
|
-
exceptionCtor: CloudHSMServiceException_1.CloudHSMServiceException,
|
|
584
573
|
errorCode,
|
|
585
574
|
});
|
|
586
575
|
}
|
|
@@ -591,12 +580,12 @@ const de_ListAvailableZonesCommand = async (output, context) => {
|
|
|
591
580
|
}
|
|
592
581
|
const data = await parseBody(output.body, context);
|
|
593
582
|
let contents = {};
|
|
594
|
-
contents =
|
|
583
|
+
contents = (0, smithy_client_1._json)(data);
|
|
595
584
|
const response = {
|
|
596
585
|
$metadata: deserializeMetadata(output),
|
|
597
586
|
...contents,
|
|
598
587
|
};
|
|
599
|
-
return
|
|
588
|
+
return response;
|
|
600
589
|
};
|
|
601
590
|
exports.de_ListAvailableZonesCommand = de_ListAvailableZonesCommand;
|
|
602
591
|
const de_ListAvailableZonesCommandError = async (output, context) => {
|
|
@@ -617,10 +606,9 @@ const de_ListAvailableZonesCommandError = async (output, context) => {
|
|
|
617
606
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
618
607
|
default:
|
|
619
608
|
const parsedBody = parsedOutput.body;
|
|
620
|
-
|
|
609
|
+
return throwDefaultError({
|
|
621
610
|
output,
|
|
622
611
|
parsedBody,
|
|
623
|
-
exceptionCtor: CloudHSMServiceException_1.CloudHSMServiceException,
|
|
624
612
|
errorCode,
|
|
625
613
|
});
|
|
626
614
|
}
|
|
@@ -631,12 +619,12 @@ const de_ListHapgsCommand = async (output, context) => {
|
|
|
631
619
|
}
|
|
632
620
|
const data = await parseBody(output.body, context);
|
|
633
621
|
let contents = {};
|
|
634
|
-
contents =
|
|
622
|
+
contents = (0, smithy_client_1._json)(data);
|
|
635
623
|
const response = {
|
|
636
624
|
$metadata: deserializeMetadata(output),
|
|
637
625
|
...contents,
|
|
638
626
|
};
|
|
639
|
-
return
|
|
627
|
+
return response;
|
|
640
628
|
};
|
|
641
629
|
exports.de_ListHapgsCommand = de_ListHapgsCommand;
|
|
642
630
|
const de_ListHapgsCommandError = async (output, context) => {
|
|
@@ -657,10 +645,9 @@ const de_ListHapgsCommandError = async (output, context) => {
|
|
|
657
645
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
658
646
|
default:
|
|
659
647
|
const parsedBody = parsedOutput.body;
|
|
660
|
-
|
|
648
|
+
return throwDefaultError({
|
|
661
649
|
output,
|
|
662
650
|
parsedBody,
|
|
663
|
-
exceptionCtor: CloudHSMServiceException_1.CloudHSMServiceException,
|
|
664
651
|
errorCode,
|
|
665
652
|
});
|
|
666
653
|
}
|
|
@@ -671,12 +658,12 @@ const de_ListHsmsCommand = async (output, context) => {
|
|
|
671
658
|
}
|
|
672
659
|
const data = await parseBody(output.body, context);
|
|
673
660
|
let contents = {};
|
|
674
|
-
contents =
|
|
661
|
+
contents = (0, smithy_client_1._json)(data);
|
|
675
662
|
const response = {
|
|
676
663
|
$metadata: deserializeMetadata(output),
|
|
677
664
|
...contents,
|
|
678
665
|
};
|
|
679
|
-
return
|
|
666
|
+
return response;
|
|
680
667
|
};
|
|
681
668
|
exports.de_ListHsmsCommand = de_ListHsmsCommand;
|
|
682
669
|
const de_ListHsmsCommandError = async (output, context) => {
|
|
@@ -697,10 +684,9 @@ const de_ListHsmsCommandError = async (output, context) => {
|
|
|
697
684
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
698
685
|
default:
|
|
699
686
|
const parsedBody = parsedOutput.body;
|
|
700
|
-
|
|
687
|
+
return throwDefaultError({
|
|
701
688
|
output,
|
|
702
689
|
parsedBody,
|
|
703
|
-
exceptionCtor: CloudHSMServiceException_1.CloudHSMServiceException,
|
|
704
690
|
errorCode,
|
|
705
691
|
});
|
|
706
692
|
}
|
|
@@ -711,12 +697,12 @@ const de_ListLunaClientsCommand = async (output, context) => {
|
|
|
711
697
|
}
|
|
712
698
|
const data = await parseBody(output.body, context);
|
|
713
699
|
let contents = {};
|
|
714
|
-
contents =
|
|
700
|
+
contents = (0, smithy_client_1._json)(data);
|
|
715
701
|
const response = {
|
|
716
702
|
$metadata: deserializeMetadata(output),
|
|
717
703
|
...contents,
|
|
718
704
|
};
|
|
719
|
-
return
|
|
705
|
+
return response;
|
|
720
706
|
};
|
|
721
707
|
exports.de_ListLunaClientsCommand = de_ListLunaClientsCommand;
|
|
722
708
|
const de_ListLunaClientsCommandError = async (output, context) => {
|
|
@@ -737,10 +723,9 @@ const de_ListLunaClientsCommandError = async (output, context) => {
|
|
|
737
723
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
738
724
|
default:
|
|
739
725
|
const parsedBody = parsedOutput.body;
|
|
740
|
-
|
|
726
|
+
return throwDefaultError({
|
|
741
727
|
output,
|
|
742
728
|
parsedBody,
|
|
743
|
-
exceptionCtor: CloudHSMServiceException_1.CloudHSMServiceException,
|
|
744
729
|
errorCode,
|
|
745
730
|
});
|
|
746
731
|
}
|
|
@@ -751,12 +736,12 @@ const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
751
736
|
}
|
|
752
737
|
const data = await parseBody(output.body, context);
|
|
753
738
|
let contents = {};
|
|
754
|
-
contents =
|
|
739
|
+
contents = (0, smithy_client_1._json)(data);
|
|
755
740
|
const response = {
|
|
756
741
|
$metadata: deserializeMetadata(output),
|
|
757
742
|
...contents,
|
|
758
743
|
};
|
|
759
|
-
return
|
|
744
|
+
return response;
|
|
760
745
|
};
|
|
761
746
|
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
762
747
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -777,10 +762,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
777
762
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
778
763
|
default:
|
|
779
764
|
const parsedBody = parsedOutput.body;
|
|
780
|
-
|
|
765
|
+
return throwDefaultError({
|
|
781
766
|
output,
|
|
782
767
|
parsedBody,
|
|
783
|
-
exceptionCtor: CloudHSMServiceException_1.CloudHSMServiceException,
|
|
784
768
|
errorCode,
|
|
785
769
|
});
|
|
786
770
|
}
|
|
@@ -791,12 +775,12 @@ const de_ModifyHapgCommand = async (output, context) => {
|
|
|
791
775
|
}
|
|
792
776
|
const data = await parseBody(output.body, context);
|
|
793
777
|
let contents = {};
|
|
794
|
-
contents =
|
|
778
|
+
contents = (0, smithy_client_1._json)(data);
|
|
795
779
|
const response = {
|
|
796
780
|
$metadata: deserializeMetadata(output),
|
|
797
781
|
...contents,
|
|
798
782
|
};
|
|
799
|
-
return
|
|
783
|
+
return response;
|
|
800
784
|
};
|
|
801
785
|
exports.de_ModifyHapgCommand = de_ModifyHapgCommand;
|
|
802
786
|
const de_ModifyHapgCommandError = async (output, context) => {
|
|
@@ -817,10 +801,9 @@ const de_ModifyHapgCommandError = async (output, context) => {
|
|
|
817
801
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
818
802
|
default:
|
|
819
803
|
const parsedBody = parsedOutput.body;
|
|
820
|
-
|
|
804
|
+
return throwDefaultError({
|
|
821
805
|
output,
|
|
822
806
|
parsedBody,
|
|
823
|
-
exceptionCtor: CloudHSMServiceException_1.CloudHSMServiceException,
|
|
824
807
|
errorCode,
|
|
825
808
|
});
|
|
826
809
|
}
|
|
@@ -831,12 +814,12 @@ const de_ModifyHsmCommand = async (output, context) => {
|
|
|
831
814
|
}
|
|
832
815
|
const data = await parseBody(output.body, context);
|
|
833
816
|
let contents = {};
|
|
834
|
-
contents =
|
|
817
|
+
contents = (0, smithy_client_1._json)(data);
|
|
835
818
|
const response = {
|
|
836
819
|
$metadata: deserializeMetadata(output),
|
|
837
820
|
...contents,
|
|
838
821
|
};
|
|
839
|
-
return
|
|
822
|
+
return response;
|
|
840
823
|
};
|
|
841
824
|
exports.de_ModifyHsmCommand = de_ModifyHsmCommand;
|
|
842
825
|
const de_ModifyHsmCommandError = async (output, context) => {
|
|
@@ -857,10 +840,9 @@ const de_ModifyHsmCommandError = async (output, context) => {
|
|
|
857
840
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
858
841
|
default:
|
|
859
842
|
const parsedBody = parsedOutput.body;
|
|
860
|
-
|
|
843
|
+
return throwDefaultError({
|
|
861
844
|
output,
|
|
862
845
|
parsedBody,
|
|
863
|
-
exceptionCtor: CloudHSMServiceException_1.CloudHSMServiceException,
|
|
864
846
|
errorCode,
|
|
865
847
|
});
|
|
866
848
|
}
|
|
@@ -871,12 +853,12 @@ const de_ModifyLunaClientCommand = async (output, context) => {
|
|
|
871
853
|
}
|
|
872
854
|
const data = await parseBody(output.body, context);
|
|
873
855
|
let contents = {};
|
|
874
|
-
contents =
|
|
856
|
+
contents = (0, smithy_client_1._json)(data);
|
|
875
857
|
const response = {
|
|
876
858
|
$metadata: deserializeMetadata(output),
|
|
877
859
|
...contents,
|
|
878
860
|
};
|
|
879
|
-
return
|
|
861
|
+
return response;
|
|
880
862
|
};
|
|
881
863
|
exports.de_ModifyLunaClientCommand = de_ModifyLunaClientCommand;
|
|
882
864
|
const de_ModifyLunaClientCommandError = async (output, context) => {
|
|
@@ -891,10 +873,9 @@ const de_ModifyLunaClientCommandError = async (output, context) => {
|
|
|
891
873
|
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
892
874
|
default:
|
|
893
875
|
const parsedBody = parsedOutput.body;
|
|
894
|
-
|
|
876
|
+
return throwDefaultError({
|
|
895
877
|
output,
|
|
896
878
|
parsedBody,
|
|
897
|
-
exceptionCtor: CloudHSMServiceException_1.CloudHSMServiceException,
|
|
898
879
|
errorCode,
|
|
899
880
|
});
|
|
900
881
|
}
|
|
@@ -905,12 +886,12 @@ const de_RemoveTagsFromResourceCommand = async (output, context) => {
|
|
|
905
886
|
}
|
|
906
887
|
const data = await parseBody(output.body, context);
|
|
907
888
|
let contents = {};
|
|
908
|
-
contents =
|
|
889
|
+
contents = (0, smithy_client_1._json)(data);
|
|
909
890
|
const response = {
|
|
910
891
|
$metadata: deserializeMetadata(output),
|
|
911
892
|
...contents,
|
|
912
893
|
};
|
|
913
|
-
return
|
|
894
|
+
return response;
|
|
914
895
|
};
|
|
915
896
|
exports.de_RemoveTagsFromResourceCommand = de_RemoveTagsFromResourceCommand;
|
|
916
897
|
const de_RemoveTagsFromResourceCommandError = async (output, context) => {
|
|
@@ -931,17 +912,16 @@ const de_RemoveTagsFromResourceCommandError = async (output, context) => {
|
|
|
931
912
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
932
913
|
default:
|
|
933
914
|
const parsedBody = parsedOutput.body;
|
|
934
|
-
|
|
915
|
+
return throwDefaultError({
|
|
935
916
|
output,
|
|
936
917
|
parsedBody,
|
|
937
|
-
exceptionCtor: CloudHSMServiceException_1.CloudHSMServiceException,
|
|
938
918
|
errorCode,
|
|
939
919
|
});
|
|
940
920
|
}
|
|
941
921
|
};
|
|
942
922
|
const de_CloudHsmInternalExceptionRes = async (parsedOutput, context) => {
|
|
943
923
|
const body = parsedOutput.body;
|
|
944
|
-
const deserialized =
|
|
924
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
945
925
|
const exception = new models_0_1.CloudHsmInternalException({
|
|
946
926
|
$metadata: deserializeMetadata(parsedOutput),
|
|
947
927
|
...deserialized,
|
|
@@ -950,7 +930,7 @@ const de_CloudHsmInternalExceptionRes = async (parsedOutput, context) => {
|
|
|
950
930
|
};
|
|
951
931
|
const de_CloudHsmServiceExceptionRes = async (parsedOutput, context) => {
|
|
952
932
|
const body = parsedOutput.body;
|
|
953
|
-
const deserialized =
|
|
933
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
954
934
|
const exception = new models_0_1.CloudHsmServiceException({
|
|
955
935
|
$metadata: deserializeMetadata(parsedOutput),
|
|
956
936
|
...deserialized,
|
|
@@ -959,407 +939,13 @@ const de_CloudHsmServiceExceptionRes = async (parsedOutput, context) => {
|
|
|
959
939
|
};
|
|
960
940
|
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
961
941
|
const body = parsedOutput.body;
|
|
962
|
-
const deserialized =
|
|
942
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
963
943
|
const exception = new models_0_1.InvalidRequestException({
|
|
964
944
|
$metadata: deserializeMetadata(parsedOutput),
|
|
965
945
|
...deserialized,
|
|
966
946
|
});
|
|
967
947
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
968
948
|
};
|
|
969
|
-
const se_AddTagsToResourceRequest = (input, context) => {
|
|
970
|
-
return {
|
|
971
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
972
|
-
...(input.TagList != null && { TagList: se_TagList(input.TagList, context) }),
|
|
973
|
-
};
|
|
974
|
-
};
|
|
975
|
-
const se_CreateHapgRequest = (input, context) => {
|
|
976
|
-
return {
|
|
977
|
-
...(input.Label != null && { Label: input.Label }),
|
|
978
|
-
};
|
|
979
|
-
};
|
|
980
|
-
const se_CreateHsmRequest = (input, context) => {
|
|
981
|
-
return {
|
|
982
|
-
...(input.ClientToken != null && { ClientToken: input.ClientToken }),
|
|
983
|
-
...(input.EniIp != null && { EniIp: input.EniIp }),
|
|
984
|
-
...(input.ExternalId != null && { ExternalId: input.ExternalId }),
|
|
985
|
-
...(input.IamRoleArn != null && { IamRoleArn: input.IamRoleArn }),
|
|
986
|
-
...(input.SshKey != null && { SshKey: input.SshKey }),
|
|
987
|
-
...(input.SubnetId != null && { SubnetId: input.SubnetId }),
|
|
988
|
-
...(input.SubscriptionType != null && { SubscriptionType: input.SubscriptionType }),
|
|
989
|
-
...(input.SyslogIp != null && { SyslogIp: input.SyslogIp }),
|
|
990
|
-
};
|
|
991
|
-
};
|
|
992
|
-
const se_CreateLunaClientRequest = (input, context) => {
|
|
993
|
-
return {
|
|
994
|
-
...(input.Certificate != null && { Certificate: input.Certificate }),
|
|
995
|
-
...(input.Label != null && { Label: input.Label }),
|
|
996
|
-
};
|
|
997
|
-
};
|
|
998
|
-
const se_DeleteHapgRequest = (input, context) => {
|
|
999
|
-
return {
|
|
1000
|
-
...(input.HapgArn != null && { HapgArn: input.HapgArn }),
|
|
1001
|
-
};
|
|
1002
|
-
};
|
|
1003
|
-
const se_DeleteHsmRequest = (input, context) => {
|
|
1004
|
-
return {
|
|
1005
|
-
...(input.HsmArn != null && { HsmArn: input.HsmArn }),
|
|
1006
|
-
};
|
|
1007
|
-
};
|
|
1008
|
-
const se_DeleteLunaClientRequest = (input, context) => {
|
|
1009
|
-
return {
|
|
1010
|
-
...(input.ClientArn != null && { ClientArn: input.ClientArn }),
|
|
1011
|
-
};
|
|
1012
|
-
};
|
|
1013
|
-
const se_DescribeHapgRequest = (input, context) => {
|
|
1014
|
-
return {
|
|
1015
|
-
...(input.HapgArn != null && { HapgArn: input.HapgArn }),
|
|
1016
|
-
};
|
|
1017
|
-
};
|
|
1018
|
-
const se_DescribeHsmRequest = (input, context) => {
|
|
1019
|
-
return {
|
|
1020
|
-
...(input.HsmArn != null && { HsmArn: input.HsmArn }),
|
|
1021
|
-
...(input.HsmSerialNumber != null && { HsmSerialNumber: input.HsmSerialNumber }),
|
|
1022
|
-
};
|
|
1023
|
-
};
|
|
1024
|
-
const se_DescribeLunaClientRequest = (input, context) => {
|
|
1025
|
-
return {
|
|
1026
|
-
...(input.CertificateFingerprint != null && { CertificateFingerprint: input.CertificateFingerprint }),
|
|
1027
|
-
...(input.ClientArn != null && { ClientArn: input.ClientArn }),
|
|
1028
|
-
};
|
|
1029
|
-
};
|
|
1030
|
-
const se_GetConfigRequest = (input, context) => {
|
|
1031
|
-
return {
|
|
1032
|
-
...(input.ClientArn != null && { ClientArn: input.ClientArn }),
|
|
1033
|
-
...(input.ClientVersion != null && { ClientVersion: input.ClientVersion }),
|
|
1034
|
-
...(input.HapgList != null && { HapgList: se_HapgList(input.HapgList, context) }),
|
|
1035
|
-
};
|
|
1036
|
-
};
|
|
1037
|
-
const se_HapgList = (input, context) => {
|
|
1038
|
-
return input
|
|
1039
|
-
.filter((e) => e != null)
|
|
1040
|
-
.map((entry) => {
|
|
1041
|
-
return entry;
|
|
1042
|
-
});
|
|
1043
|
-
};
|
|
1044
|
-
const se_ListAvailableZonesRequest = (input, context) => {
|
|
1045
|
-
return {};
|
|
1046
|
-
};
|
|
1047
|
-
const se_ListHapgsRequest = (input, context) => {
|
|
1048
|
-
return {
|
|
1049
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1050
|
-
};
|
|
1051
|
-
};
|
|
1052
|
-
const se_ListHsmsRequest = (input, context) => {
|
|
1053
|
-
return {
|
|
1054
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1055
|
-
};
|
|
1056
|
-
};
|
|
1057
|
-
const se_ListLunaClientsRequest = (input, context) => {
|
|
1058
|
-
return {
|
|
1059
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1060
|
-
};
|
|
1061
|
-
};
|
|
1062
|
-
const se_ListTagsForResourceRequest = (input, context) => {
|
|
1063
|
-
return {
|
|
1064
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
1065
|
-
};
|
|
1066
|
-
};
|
|
1067
|
-
const se_ModifyHapgRequest = (input, context) => {
|
|
1068
|
-
return {
|
|
1069
|
-
...(input.HapgArn != null && { HapgArn: input.HapgArn }),
|
|
1070
|
-
...(input.Label != null && { Label: input.Label }),
|
|
1071
|
-
...(input.PartitionSerialList != null && {
|
|
1072
|
-
PartitionSerialList: se_PartitionSerialList(input.PartitionSerialList, context),
|
|
1073
|
-
}),
|
|
1074
|
-
};
|
|
1075
|
-
};
|
|
1076
|
-
const se_ModifyHsmRequest = (input, context) => {
|
|
1077
|
-
return {
|
|
1078
|
-
...(input.EniIp != null && { EniIp: input.EniIp }),
|
|
1079
|
-
...(input.ExternalId != null && { ExternalId: input.ExternalId }),
|
|
1080
|
-
...(input.HsmArn != null && { HsmArn: input.HsmArn }),
|
|
1081
|
-
...(input.IamRoleArn != null && { IamRoleArn: input.IamRoleArn }),
|
|
1082
|
-
...(input.SubnetId != null && { SubnetId: input.SubnetId }),
|
|
1083
|
-
...(input.SyslogIp != null && { SyslogIp: input.SyslogIp }),
|
|
1084
|
-
};
|
|
1085
|
-
};
|
|
1086
|
-
const se_ModifyLunaClientRequest = (input, context) => {
|
|
1087
|
-
return {
|
|
1088
|
-
...(input.Certificate != null && { Certificate: input.Certificate }),
|
|
1089
|
-
...(input.ClientArn != null && { ClientArn: input.ClientArn }),
|
|
1090
|
-
};
|
|
1091
|
-
};
|
|
1092
|
-
const se_PartitionSerialList = (input, context) => {
|
|
1093
|
-
return input
|
|
1094
|
-
.filter((e) => e != null)
|
|
1095
|
-
.map((entry) => {
|
|
1096
|
-
return entry;
|
|
1097
|
-
});
|
|
1098
|
-
};
|
|
1099
|
-
const se_RemoveTagsFromResourceRequest = (input, context) => {
|
|
1100
|
-
return {
|
|
1101
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
1102
|
-
...(input.TagKeyList != null && { TagKeyList: se_TagKeyList(input.TagKeyList, context) }),
|
|
1103
|
-
};
|
|
1104
|
-
};
|
|
1105
|
-
const se_Tag = (input, context) => {
|
|
1106
|
-
return {
|
|
1107
|
-
...(input.Key != null && { Key: input.Key }),
|
|
1108
|
-
...(input.Value != null && { Value: input.Value }),
|
|
1109
|
-
};
|
|
1110
|
-
};
|
|
1111
|
-
const se_TagKeyList = (input, context) => {
|
|
1112
|
-
return input
|
|
1113
|
-
.filter((e) => e != null)
|
|
1114
|
-
.map((entry) => {
|
|
1115
|
-
return entry;
|
|
1116
|
-
});
|
|
1117
|
-
};
|
|
1118
|
-
const se_TagList = (input, context) => {
|
|
1119
|
-
return input
|
|
1120
|
-
.filter((e) => e != null)
|
|
1121
|
-
.map((entry) => {
|
|
1122
|
-
return se_Tag(entry, context);
|
|
1123
|
-
});
|
|
1124
|
-
};
|
|
1125
|
-
const de_AddTagsToResourceResponse = (output, context) => {
|
|
1126
|
-
return {
|
|
1127
|
-
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
1128
|
-
};
|
|
1129
|
-
};
|
|
1130
|
-
const de_AZList = (output, context) => {
|
|
1131
|
-
const retVal = (output || [])
|
|
1132
|
-
.filter((e) => e != null)
|
|
1133
|
-
.map((entry) => {
|
|
1134
|
-
if (entry === null) {
|
|
1135
|
-
return null;
|
|
1136
|
-
}
|
|
1137
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1138
|
-
});
|
|
1139
|
-
return retVal;
|
|
1140
|
-
};
|
|
1141
|
-
const de_ClientList = (output, context) => {
|
|
1142
|
-
const retVal = (output || [])
|
|
1143
|
-
.filter((e) => e != null)
|
|
1144
|
-
.map((entry) => {
|
|
1145
|
-
if (entry === null) {
|
|
1146
|
-
return null;
|
|
1147
|
-
}
|
|
1148
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1149
|
-
});
|
|
1150
|
-
return retVal;
|
|
1151
|
-
};
|
|
1152
|
-
const de_CloudHsmInternalException = (output, context) => {
|
|
1153
|
-
return {
|
|
1154
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
1155
|
-
retryable: (0, smithy_client_1.expectBoolean)(output.retryable),
|
|
1156
|
-
};
|
|
1157
|
-
};
|
|
1158
|
-
const de_CloudHsmServiceException = (output, context) => {
|
|
1159
|
-
return {
|
|
1160
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
1161
|
-
retryable: (0, smithy_client_1.expectBoolean)(output.retryable),
|
|
1162
|
-
};
|
|
1163
|
-
};
|
|
1164
|
-
const de_CreateHapgResponse = (output, context) => {
|
|
1165
|
-
return {
|
|
1166
|
-
HapgArn: (0, smithy_client_1.expectString)(output.HapgArn),
|
|
1167
|
-
};
|
|
1168
|
-
};
|
|
1169
|
-
const de_CreateHsmResponse = (output, context) => {
|
|
1170
|
-
return {
|
|
1171
|
-
HsmArn: (0, smithy_client_1.expectString)(output.HsmArn),
|
|
1172
|
-
};
|
|
1173
|
-
};
|
|
1174
|
-
const de_CreateLunaClientResponse = (output, context) => {
|
|
1175
|
-
return {
|
|
1176
|
-
ClientArn: (0, smithy_client_1.expectString)(output.ClientArn),
|
|
1177
|
-
};
|
|
1178
|
-
};
|
|
1179
|
-
const de_DeleteHapgResponse = (output, context) => {
|
|
1180
|
-
return {
|
|
1181
|
-
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
1182
|
-
};
|
|
1183
|
-
};
|
|
1184
|
-
const de_DeleteHsmResponse = (output, context) => {
|
|
1185
|
-
return {
|
|
1186
|
-
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
1187
|
-
};
|
|
1188
|
-
};
|
|
1189
|
-
const de_DeleteLunaClientResponse = (output, context) => {
|
|
1190
|
-
return {
|
|
1191
|
-
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
1192
|
-
};
|
|
1193
|
-
};
|
|
1194
|
-
const de_DescribeHapgResponse = (output, context) => {
|
|
1195
|
-
return {
|
|
1196
|
-
HapgArn: (0, smithy_client_1.expectString)(output.HapgArn),
|
|
1197
|
-
HapgSerial: (0, smithy_client_1.expectString)(output.HapgSerial),
|
|
1198
|
-
HsmsLastActionFailed: output.HsmsLastActionFailed != null ? de_HsmList(output.HsmsLastActionFailed, context) : undefined,
|
|
1199
|
-
HsmsPendingDeletion: output.HsmsPendingDeletion != null ? de_HsmList(output.HsmsPendingDeletion, context) : undefined,
|
|
1200
|
-
HsmsPendingRegistration: output.HsmsPendingRegistration != null ? de_HsmList(output.HsmsPendingRegistration, context) : undefined,
|
|
1201
|
-
Label: (0, smithy_client_1.expectString)(output.Label),
|
|
1202
|
-
LastModifiedTimestamp: (0, smithy_client_1.expectString)(output.LastModifiedTimestamp),
|
|
1203
|
-
PartitionSerialList: output.PartitionSerialList != null ? de_PartitionSerialList(output.PartitionSerialList, context) : undefined,
|
|
1204
|
-
State: (0, smithy_client_1.expectString)(output.State),
|
|
1205
|
-
};
|
|
1206
|
-
};
|
|
1207
|
-
const de_DescribeHsmResponse = (output, context) => {
|
|
1208
|
-
return {
|
|
1209
|
-
AvailabilityZone: (0, smithy_client_1.expectString)(output.AvailabilityZone),
|
|
1210
|
-
EniId: (0, smithy_client_1.expectString)(output.EniId),
|
|
1211
|
-
EniIp: (0, smithy_client_1.expectString)(output.EniIp),
|
|
1212
|
-
HsmArn: (0, smithy_client_1.expectString)(output.HsmArn),
|
|
1213
|
-
HsmType: (0, smithy_client_1.expectString)(output.HsmType),
|
|
1214
|
-
IamRoleArn: (0, smithy_client_1.expectString)(output.IamRoleArn),
|
|
1215
|
-
Partitions: output.Partitions != null ? de_PartitionList(output.Partitions, context) : undefined,
|
|
1216
|
-
SerialNumber: (0, smithy_client_1.expectString)(output.SerialNumber),
|
|
1217
|
-
ServerCertLastUpdated: (0, smithy_client_1.expectString)(output.ServerCertLastUpdated),
|
|
1218
|
-
ServerCertUri: (0, smithy_client_1.expectString)(output.ServerCertUri),
|
|
1219
|
-
SoftwareVersion: (0, smithy_client_1.expectString)(output.SoftwareVersion),
|
|
1220
|
-
SshKeyLastUpdated: (0, smithy_client_1.expectString)(output.SshKeyLastUpdated),
|
|
1221
|
-
SshPublicKey: (0, smithy_client_1.expectString)(output.SshPublicKey),
|
|
1222
|
-
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
1223
|
-
StatusDetails: (0, smithy_client_1.expectString)(output.StatusDetails),
|
|
1224
|
-
SubnetId: (0, smithy_client_1.expectString)(output.SubnetId),
|
|
1225
|
-
SubscriptionEndDate: (0, smithy_client_1.expectString)(output.SubscriptionEndDate),
|
|
1226
|
-
SubscriptionStartDate: (0, smithy_client_1.expectString)(output.SubscriptionStartDate),
|
|
1227
|
-
SubscriptionType: (0, smithy_client_1.expectString)(output.SubscriptionType),
|
|
1228
|
-
VendorName: (0, smithy_client_1.expectString)(output.VendorName),
|
|
1229
|
-
VpcId: (0, smithy_client_1.expectString)(output.VpcId),
|
|
1230
|
-
};
|
|
1231
|
-
};
|
|
1232
|
-
const de_DescribeLunaClientResponse = (output, context) => {
|
|
1233
|
-
return {
|
|
1234
|
-
Certificate: (0, smithy_client_1.expectString)(output.Certificate),
|
|
1235
|
-
CertificateFingerprint: (0, smithy_client_1.expectString)(output.CertificateFingerprint),
|
|
1236
|
-
ClientArn: (0, smithy_client_1.expectString)(output.ClientArn),
|
|
1237
|
-
Label: (0, smithy_client_1.expectString)(output.Label),
|
|
1238
|
-
LastModifiedTimestamp: (0, smithy_client_1.expectString)(output.LastModifiedTimestamp),
|
|
1239
|
-
};
|
|
1240
|
-
};
|
|
1241
|
-
const de_GetConfigResponse = (output, context) => {
|
|
1242
|
-
return {
|
|
1243
|
-
ConfigCred: (0, smithy_client_1.expectString)(output.ConfigCred),
|
|
1244
|
-
ConfigFile: (0, smithy_client_1.expectString)(output.ConfigFile),
|
|
1245
|
-
ConfigType: (0, smithy_client_1.expectString)(output.ConfigType),
|
|
1246
|
-
};
|
|
1247
|
-
};
|
|
1248
|
-
const de_HapgList = (output, context) => {
|
|
1249
|
-
const retVal = (output || [])
|
|
1250
|
-
.filter((e) => e != null)
|
|
1251
|
-
.map((entry) => {
|
|
1252
|
-
if (entry === null) {
|
|
1253
|
-
return null;
|
|
1254
|
-
}
|
|
1255
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1256
|
-
});
|
|
1257
|
-
return retVal;
|
|
1258
|
-
};
|
|
1259
|
-
const de_HsmList = (output, context) => {
|
|
1260
|
-
const retVal = (output || [])
|
|
1261
|
-
.filter((e) => e != null)
|
|
1262
|
-
.map((entry) => {
|
|
1263
|
-
if (entry === null) {
|
|
1264
|
-
return null;
|
|
1265
|
-
}
|
|
1266
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1267
|
-
});
|
|
1268
|
-
return retVal;
|
|
1269
|
-
};
|
|
1270
|
-
const de_InvalidRequestException = (output, context) => {
|
|
1271
|
-
return {
|
|
1272
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
1273
|
-
retryable: (0, smithy_client_1.expectBoolean)(output.retryable),
|
|
1274
|
-
};
|
|
1275
|
-
};
|
|
1276
|
-
const de_ListAvailableZonesResponse = (output, context) => {
|
|
1277
|
-
return {
|
|
1278
|
-
AZList: output.AZList != null ? de_AZList(output.AZList, context) : undefined,
|
|
1279
|
-
};
|
|
1280
|
-
};
|
|
1281
|
-
const de_ListHapgsResponse = (output, context) => {
|
|
1282
|
-
return {
|
|
1283
|
-
HapgList: output.HapgList != null ? de_HapgList(output.HapgList, context) : undefined,
|
|
1284
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1285
|
-
};
|
|
1286
|
-
};
|
|
1287
|
-
const de_ListHsmsResponse = (output, context) => {
|
|
1288
|
-
return {
|
|
1289
|
-
HsmList: output.HsmList != null ? de_HsmList(output.HsmList, context) : undefined,
|
|
1290
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1291
|
-
};
|
|
1292
|
-
};
|
|
1293
|
-
const de_ListLunaClientsResponse = (output, context) => {
|
|
1294
|
-
return {
|
|
1295
|
-
ClientList: output.ClientList != null ? de_ClientList(output.ClientList, context) : undefined,
|
|
1296
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1297
|
-
};
|
|
1298
|
-
};
|
|
1299
|
-
const de_ListTagsForResourceResponse = (output, context) => {
|
|
1300
|
-
return {
|
|
1301
|
-
TagList: output.TagList != null ? de_TagList(output.TagList, context) : undefined,
|
|
1302
|
-
};
|
|
1303
|
-
};
|
|
1304
|
-
const de_ModifyHapgResponse = (output, context) => {
|
|
1305
|
-
return {
|
|
1306
|
-
HapgArn: (0, smithy_client_1.expectString)(output.HapgArn),
|
|
1307
|
-
};
|
|
1308
|
-
};
|
|
1309
|
-
const de_ModifyHsmResponse = (output, context) => {
|
|
1310
|
-
return {
|
|
1311
|
-
HsmArn: (0, smithy_client_1.expectString)(output.HsmArn),
|
|
1312
|
-
};
|
|
1313
|
-
};
|
|
1314
|
-
const de_ModifyLunaClientResponse = (output, context) => {
|
|
1315
|
-
return {
|
|
1316
|
-
ClientArn: (0, smithy_client_1.expectString)(output.ClientArn),
|
|
1317
|
-
};
|
|
1318
|
-
};
|
|
1319
|
-
const de_PartitionList = (output, context) => {
|
|
1320
|
-
const retVal = (output || [])
|
|
1321
|
-
.filter((e) => e != null)
|
|
1322
|
-
.map((entry) => {
|
|
1323
|
-
if (entry === null) {
|
|
1324
|
-
return null;
|
|
1325
|
-
}
|
|
1326
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1327
|
-
});
|
|
1328
|
-
return retVal;
|
|
1329
|
-
};
|
|
1330
|
-
const de_PartitionSerialList = (output, context) => {
|
|
1331
|
-
const retVal = (output || [])
|
|
1332
|
-
.filter((e) => e != null)
|
|
1333
|
-
.map((entry) => {
|
|
1334
|
-
if (entry === null) {
|
|
1335
|
-
return null;
|
|
1336
|
-
}
|
|
1337
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1338
|
-
});
|
|
1339
|
-
return retVal;
|
|
1340
|
-
};
|
|
1341
|
-
const de_RemoveTagsFromResourceResponse = (output, context) => {
|
|
1342
|
-
return {
|
|
1343
|
-
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
1344
|
-
};
|
|
1345
|
-
};
|
|
1346
|
-
const de_Tag = (output, context) => {
|
|
1347
|
-
return {
|
|
1348
|
-
Key: (0, smithy_client_1.expectString)(output.Key),
|
|
1349
|
-
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
1350
|
-
};
|
|
1351
|
-
};
|
|
1352
|
-
const de_TagList = (output, context) => {
|
|
1353
|
-
const retVal = (output || [])
|
|
1354
|
-
.filter((e) => e != null)
|
|
1355
|
-
.map((entry) => {
|
|
1356
|
-
if (entry === null) {
|
|
1357
|
-
return null;
|
|
1358
|
-
}
|
|
1359
|
-
return de_Tag(entry, context);
|
|
1360
|
-
});
|
|
1361
|
-
return retVal;
|
|
1362
|
-
};
|
|
1363
949
|
const deserializeMetadata = (output) => ({
|
|
1364
950
|
httpStatusCode: output.statusCode,
|
|
1365
951
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
@@ -1373,6 +959,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
1373
959
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
1374
960
|
};
|
|
1375
961
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
962
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(CloudHSMServiceException_1.CloudHSMServiceException);
|
|
1376
963
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
1377
964
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1378
965
|
const contents = {
|