@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
|
@@ -1,125 +1,125 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException,
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { CloudHSMServiceException as __BaseException } from "../models/CloudHSMServiceException";
|
|
4
4
|
import { CloudHsmInternalException, CloudHsmServiceException, InvalidRequestException, } from "../models/models_0";
|
|
5
5
|
export const se_AddTagsToResourceCommand = async (input, context) => {
|
|
6
6
|
const headers = sharedHeaders("AddTagsToResource");
|
|
7
7
|
let body;
|
|
8
|
-
body = JSON.stringify(
|
|
8
|
+
body = JSON.stringify(_json(input));
|
|
9
9
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
10
10
|
};
|
|
11
11
|
export const se_CreateHapgCommand = async (input, context) => {
|
|
12
12
|
const headers = sharedHeaders("CreateHapg");
|
|
13
13
|
let body;
|
|
14
|
-
body = JSON.stringify(
|
|
14
|
+
body = JSON.stringify(_json(input));
|
|
15
15
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
16
16
|
};
|
|
17
17
|
export const se_CreateHsmCommand = async (input, context) => {
|
|
18
18
|
const headers = sharedHeaders("CreateHsm");
|
|
19
19
|
let body;
|
|
20
|
-
body = JSON.stringify(
|
|
20
|
+
body = JSON.stringify(_json(input));
|
|
21
21
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
22
|
};
|
|
23
23
|
export const se_CreateLunaClientCommand = async (input, context) => {
|
|
24
24
|
const headers = sharedHeaders("CreateLunaClient");
|
|
25
25
|
let body;
|
|
26
|
-
body = JSON.stringify(
|
|
26
|
+
body = JSON.stringify(_json(input));
|
|
27
27
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
28
28
|
};
|
|
29
29
|
export const se_DeleteHapgCommand = async (input, context) => {
|
|
30
30
|
const headers = sharedHeaders("DeleteHapg");
|
|
31
31
|
let body;
|
|
32
|
-
body = JSON.stringify(
|
|
32
|
+
body = JSON.stringify(_json(input));
|
|
33
33
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
34
34
|
};
|
|
35
35
|
export const se_DeleteHsmCommand = async (input, context) => {
|
|
36
36
|
const headers = sharedHeaders("DeleteHsm");
|
|
37
37
|
let body;
|
|
38
|
-
body = JSON.stringify(
|
|
38
|
+
body = JSON.stringify(_json(input));
|
|
39
39
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
40
40
|
};
|
|
41
41
|
export const se_DeleteLunaClientCommand = async (input, context) => {
|
|
42
42
|
const headers = sharedHeaders("DeleteLunaClient");
|
|
43
43
|
let body;
|
|
44
|
-
body = JSON.stringify(
|
|
44
|
+
body = JSON.stringify(_json(input));
|
|
45
45
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
46
46
|
};
|
|
47
47
|
export const se_DescribeHapgCommand = async (input, context) => {
|
|
48
48
|
const headers = sharedHeaders("DescribeHapg");
|
|
49
49
|
let body;
|
|
50
|
-
body = JSON.stringify(
|
|
50
|
+
body = JSON.stringify(_json(input));
|
|
51
51
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
52
52
|
};
|
|
53
53
|
export const se_DescribeHsmCommand = async (input, context) => {
|
|
54
54
|
const headers = sharedHeaders("DescribeHsm");
|
|
55
55
|
let body;
|
|
56
|
-
body = JSON.stringify(
|
|
56
|
+
body = JSON.stringify(_json(input));
|
|
57
57
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
58
|
};
|
|
59
59
|
export const se_DescribeLunaClientCommand = async (input, context) => {
|
|
60
60
|
const headers = sharedHeaders("DescribeLunaClient");
|
|
61
61
|
let body;
|
|
62
|
-
body = JSON.stringify(
|
|
62
|
+
body = JSON.stringify(_json(input));
|
|
63
63
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
64
64
|
};
|
|
65
65
|
export const se_GetConfigCommand = async (input, context) => {
|
|
66
66
|
const headers = sharedHeaders("GetConfig");
|
|
67
67
|
let body;
|
|
68
|
-
body = JSON.stringify(
|
|
68
|
+
body = JSON.stringify(_json(input));
|
|
69
69
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
70
70
|
};
|
|
71
71
|
export const se_ListAvailableZonesCommand = async (input, context) => {
|
|
72
72
|
const headers = sharedHeaders("ListAvailableZones");
|
|
73
73
|
let body;
|
|
74
|
-
body = JSON.stringify(
|
|
74
|
+
body = JSON.stringify(_json(input));
|
|
75
75
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
76
|
};
|
|
77
77
|
export const se_ListHapgsCommand = async (input, context) => {
|
|
78
78
|
const headers = sharedHeaders("ListHapgs");
|
|
79
79
|
let body;
|
|
80
|
-
body = JSON.stringify(
|
|
80
|
+
body = JSON.stringify(_json(input));
|
|
81
81
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
82
82
|
};
|
|
83
83
|
export const se_ListHsmsCommand = async (input, context) => {
|
|
84
84
|
const headers = sharedHeaders("ListHsms");
|
|
85
85
|
let body;
|
|
86
|
-
body = JSON.stringify(
|
|
86
|
+
body = JSON.stringify(_json(input));
|
|
87
87
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
88
88
|
};
|
|
89
89
|
export const se_ListLunaClientsCommand = async (input, context) => {
|
|
90
90
|
const headers = sharedHeaders("ListLunaClients");
|
|
91
91
|
let body;
|
|
92
|
-
body = JSON.stringify(
|
|
92
|
+
body = JSON.stringify(_json(input));
|
|
93
93
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
94
94
|
};
|
|
95
95
|
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
96
96
|
const headers = sharedHeaders("ListTagsForResource");
|
|
97
97
|
let body;
|
|
98
|
-
body = JSON.stringify(
|
|
98
|
+
body = JSON.stringify(_json(input));
|
|
99
99
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
100
100
|
};
|
|
101
101
|
export const se_ModifyHapgCommand = async (input, context) => {
|
|
102
102
|
const headers = sharedHeaders("ModifyHapg");
|
|
103
103
|
let body;
|
|
104
|
-
body = JSON.stringify(
|
|
104
|
+
body = JSON.stringify(_json(input));
|
|
105
105
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
106
106
|
};
|
|
107
107
|
export const se_ModifyHsmCommand = async (input, context) => {
|
|
108
108
|
const headers = sharedHeaders("ModifyHsm");
|
|
109
109
|
let body;
|
|
110
|
-
body = JSON.stringify(
|
|
110
|
+
body = JSON.stringify(_json(input));
|
|
111
111
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
112
112
|
};
|
|
113
113
|
export const se_ModifyLunaClientCommand = async (input, context) => {
|
|
114
114
|
const headers = sharedHeaders("ModifyLunaClient");
|
|
115
115
|
let body;
|
|
116
|
-
body = JSON.stringify(
|
|
116
|
+
body = JSON.stringify(_json(input));
|
|
117
117
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
118
118
|
};
|
|
119
119
|
export const se_RemoveTagsFromResourceCommand = async (input, context) => {
|
|
120
120
|
const headers = sharedHeaders("RemoveTagsFromResource");
|
|
121
121
|
let body;
|
|
122
|
-
body = JSON.stringify(
|
|
122
|
+
body = JSON.stringify(_json(input));
|
|
123
123
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
124
124
|
};
|
|
125
125
|
export const de_AddTagsToResourceCommand = async (output, context) => {
|
|
@@ -128,12 +128,12 @@ export const de_AddTagsToResourceCommand = async (output, context) => {
|
|
|
128
128
|
}
|
|
129
129
|
const data = await parseBody(output.body, context);
|
|
130
130
|
let contents = {};
|
|
131
|
-
contents =
|
|
131
|
+
contents = _json(data);
|
|
132
132
|
const response = {
|
|
133
133
|
$metadata: deserializeMetadata(output),
|
|
134
134
|
...contents,
|
|
135
135
|
};
|
|
136
|
-
return
|
|
136
|
+
return response;
|
|
137
137
|
};
|
|
138
138
|
const de_AddTagsToResourceCommandError = async (output, context) => {
|
|
139
139
|
const parsedOutput = {
|
|
@@ -153,10 +153,9 @@ const de_AddTagsToResourceCommandError = async (output, context) => {
|
|
|
153
153
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
154
154
|
default:
|
|
155
155
|
const parsedBody = parsedOutput.body;
|
|
156
|
-
throwDefaultError({
|
|
156
|
+
return throwDefaultError({
|
|
157
157
|
output,
|
|
158
158
|
parsedBody,
|
|
159
|
-
exceptionCtor: __BaseException,
|
|
160
159
|
errorCode,
|
|
161
160
|
});
|
|
162
161
|
}
|
|
@@ -167,12 +166,12 @@ export const de_CreateHapgCommand = async (output, context) => {
|
|
|
167
166
|
}
|
|
168
167
|
const data = await parseBody(output.body, context);
|
|
169
168
|
let contents = {};
|
|
170
|
-
contents =
|
|
169
|
+
contents = _json(data);
|
|
171
170
|
const response = {
|
|
172
171
|
$metadata: deserializeMetadata(output),
|
|
173
172
|
...contents,
|
|
174
173
|
};
|
|
175
|
-
return
|
|
174
|
+
return response;
|
|
176
175
|
};
|
|
177
176
|
const de_CreateHapgCommandError = async (output, context) => {
|
|
178
177
|
const parsedOutput = {
|
|
@@ -192,10 +191,9 @@ const de_CreateHapgCommandError = async (output, context) => {
|
|
|
192
191
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
193
192
|
default:
|
|
194
193
|
const parsedBody = parsedOutput.body;
|
|
195
|
-
throwDefaultError({
|
|
194
|
+
return throwDefaultError({
|
|
196
195
|
output,
|
|
197
196
|
parsedBody,
|
|
198
|
-
exceptionCtor: __BaseException,
|
|
199
197
|
errorCode,
|
|
200
198
|
});
|
|
201
199
|
}
|
|
@@ -206,12 +204,12 @@ export const de_CreateHsmCommand = async (output, context) => {
|
|
|
206
204
|
}
|
|
207
205
|
const data = await parseBody(output.body, context);
|
|
208
206
|
let contents = {};
|
|
209
|
-
contents =
|
|
207
|
+
contents = _json(data);
|
|
210
208
|
const response = {
|
|
211
209
|
$metadata: deserializeMetadata(output),
|
|
212
210
|
...contents,
|
|
213
211
|
};
|
|
214
|
-
return
|
|
212
|
+
return response;
|
|
215
213
|
};
|
|
216
214
|
const de_CreateHsmCommandError = async (output, context) => {
|
|
217
215
|
const parsedOutput = {
|
|
@@ -231,10 +229,9 @@ const de_CreateHsmCommandError = async (output, context) => {
|
|
|
231
229
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
232
230
|
default:
|
|
233
231
|
const parsedBody = parsedOutput.body;
|
|
234
|
-
throwDefaultError({
|
|
232
|
+
return throwDefaultError({
|
|
235
233
|
output,
|
|
236
234
|
parsedBody,
|
|
237
|
-
exceptionCtor: __BaseException,
|
|
238
235
|
errorCode,
|
|
239
236
|
});
|
|
240
237
|
}
|
|
@@ -245,12 +242,12 @@ export const de_CreateLunaClientCommand = async (output, context) => {
|
|
|
245
242
|
}
|
|
246
243
|
const data = await parseBody(output.body, context);
|
|
247
244
|
let contents = {};
|
|
248
|
-
contents =
|
|
245
|
+
contents = _json(data);
|
|
249
246
|
const response = {
|
|
250
247
|
$metadata: deserializeMetadata(output),
|
|
251
248
|
...contents,
|
|
252
249
|
};
|
|
253
|
-
return
|
|
250
|
+
return response;
|
|
254
251
|
};
|
|
255
252
|
const de_CreateLunaClientCommandError = async (output, context) => {
|
|
256
253
|
const parsedOutput = {
|
|
@@ -270,10 +267,9 @@ const de_CreateLunaClientCommandError = async (output, context) => {
|
|
|
270
267
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
271
268
|
default:
|
|
272
269
|
const parsedBody = parsedOutput.body;
|
|
273
|
-
throwDefaultError({
|
|
270
|
+
return throwDefaultError({
|
|
274
271
|
output,
|
|
275
272
|
parsedBody,
|
|
276
|
-
exceptionCtor: __BaseException,
|
|
277
273
|
errorCode,
|
|
278
274
|
});
|
|
279
275
|
}
|
|
@@ -284,12 +280,12 @@ export const de_DeleteHapgCommand = async (output, context) => {
|
|
|
284
280
|
}
|
|
285
281
|
const data = await parseBody(output.body, context);
|
|
286
282
|
let contents = {};
|
|
287
|
-
contents =
|
|
283
|
+
contents = _json(data);
|
|
288
284
|
const response = {
|
|
289
285
|
$metadata: deserializeMetadata(output),
|
|
290
286
|
...contents,
|
|
291
287
|
};
|
|
292
|
-
return
|
|
288
|
+
return response;
|
|
293
289
|
};
|
|
294
290
|
const de_DeleteHapgCommandError = async (output, context) => {
|
|
295
291
|
const parsedOutput = {
|
|
@@ -309,10 +305,9 @@ const de_DeleteHapgCommandError = async (output, context) => {
|
|
|
309
305
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
310
306
|
default:
|
|
311
307
|
const parsedBody = parsedOutput.body;
|
|
312
|
-
throwDefaultError({
|
|
308
|
+
return throwDefaultError({
|
|
313
309
|
output,
|
|
314
310
|
parsedBody,
|
|
315
|
-
exceptionCtor: __BaseException,
|
|
316
311
|
errorCode,
|
|
317
312
|
});
|
|
318
313
|
}
|
|
@@ -323,12 +318,12 @@ export const de_DeleteHsmCommand = async (output, context) => {
|
|
|
323
318
|
}
|
|
324
319
|
const data = await parseBody(output.body, context);
|
|
325
320
|
let contents = {};
|
|
326
|
-
contents =
|
|
321
|
+
contents = _json(data);
|
|
327
322
|
const response = {
|
|
328
323
|
$metadata: deserializeMetadata(output),
|
|
329
324
|
...contents,
|
|
330
325
|
};
|
|
331
|
-
return
|
|
326
|
+
return response;
|
|
332
327
|
};
|
|
333
328
|
const de_DeleteHsmCommandError = async (output, context) => {
|
|
334
329
|
const parsedOutput = {
|
|
@@ -348,10 +343,9 @@ const de_DeleteHsmCommandError = async (output, context) => {
|
|
|
348
343
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
349
344
|
default:
|
|
350
345
|
const parsedBody = parsedOutput.body;
|
|
351
|
-
throwDefaultError({
|
|
346
|
+
return throwDefaultError({
|
|
352
347
|
output,
|
|
353
348
|
parsedBody,
|
|
354
|
-
exceptionCtor: __BaseException,
|
|
355
349
|
errorCode,
|
|
356
350
|
});
|
|
357
351
|
}
|
|
@@ -362,12 +356,12 @@ export const de_DeleteLunaClientCommand = async (output, context) => {
|
|
|
362
356
|
}
|
|
363
357
|
const data = await parseBody(output.body, context);
|
|
364
358
|
let contents = {};
|
|
365
|
-
contents =
|
|
359
|
+
contents = _json(data);
|
|
366
360
|
const response = {
|
|
367
361
|
$metadata: deserializeMetadata(output),
|
|
368
362
|
...contents,
|
|
369
363
|
};
|
|
370
|
-
return
|
|
364
|
+
return response;
|
|
371
365
|
};
|
|
372
366
|
const de_DeleteLunaClientCommandError = async (output, context) => {
|
|
373
367
|
const parsedOutput = {
|
|
@@ -387,10 +381,9 @@ const de_DeleteLunaClientCommandError = async (output, context) => {
|
|
|
387
381
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
388
382
|
default:
|
|
389
383
|
const parsedBody = parsedOutput.body;
|
|
390
|
-
throwDefaultError({
|
|
384
|
+
return throwDefaultError({
|
|
391
385
|
output,
|
|
392
386
|
parsedBody,
|
|
393
|
-
exceptionCtor: __BaseException,
|
|
394
387
|
errorCode,
|
|
395
388
|
});
|
|
396
389
|
}
|
|
@@ -401,12 +394,12 @@ export const de_DescribeHapgCommand = async (output, context) => {
|
|
|
401
394
|
}
|
|
402
395
|
const data = await parseBody(output.body, context);
|
|
403
396
|
let contents = {};
|
|
404
|
-
contents =
|
|
397
|
+
contents = _json(data);
|
|
405
398
|
const response = {
|
|
406
399
|
$metadata: deserializeMetadata(output),
|
|
407
400
|
...contents,
|
|
408
401
|
};
|
|
409
|
-
return
|
|
402
|
+
return response;
|
|
410
403
|
};
|
|
411
404
|
const de_DescribeHapgCommandError = async (output, context) => {
|
|
412
405
|
const parsedOutput = {
|
|
@@ -426,10 +419,9 @@ const de_DescribeHapgCommandError = async (output, context) => {
|
|
|
426
419
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
427
420
|
default:
|
|
428
421
|
const parsedBody = parsedOutput.body;
|
|
429
|
-
throwDefaultError({
|
|
422
|
+
return throwDefaultError({
|
|
430
423
|
output,
|
|
431
424
|
parsedBody,
|
|
432
|
-
exceptionCtor: __BaseException,
|
|
433
425
|
errorCode,
|
|
434
426
|
});
|
|
435
427
|
}
|
|
@@ -440,12 +432,12 @@ export const de_DescribeHsmCommand = async (output, context) => {
|
|
|
440
432
|
}
|
|
441
433
|
const data = await parseBody(output.body, context);
|
|
442
434
|
let contents = {};
|
|
443
|
-
contents =
|
|
435
|
+
contents = _json(data);
|
|
444
436
|
const response = {
|
|
445
437
|
$metadata: deserializeMetadata(output),
|
|
446
438
|
...contents,
|
|
447
439
|
};
|
|
448
|
-
return
|
|
440
|
+
return response;
|
|
449
441
|
};
|
|
450
442
|
const de_DescribeHsmCommandError = async (output, context) => {
|
|
451
443
|
const parsedOutput = {
|
|
@@ -465,10 +457,9 @@ const de_DescribeHsmCommandError = async (output, context) => {
|
|
|
465
457
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
466
458
|
default:
|
|
467
459
|
const parsedBody = parsedOutput.body;
|
|
468
|
-
throwDefaultError({
|
|
460
|
+
return throwDefaultError({
|
|
469
461
|
output,
|
|
470
462
|
parsedBody,
|
|
471
|
-
exceptionCtor: __BaseException,
|
|
472
463
|
errorCode,
|
|
473
464
|
});
|
|
474
465
|
}
|
|
@@ -479,12 +470,12 @@ export const de_DescribeLunaClientCommand = async (output, context) => {
|
|
|
479
470
|
}
|
|
480
471
|
const data = await parseBody(output.body, context);
|
|
481
472
|
let contents = {};
|
|
482
|
-
contents =
|
|
473
|
+
contents = _json(data);
|
|
483
474
|
const response = {
|
|
484
475
|
$metadata: deserializeMetadata(output),
|
|
485
476
|
...contents,
|
|
486
477
|
};
|
|
487
|
-
return
|
|
478
|
+
return response;
|
|
488
479
|
};
|
|
489
480
|
const de_DescribeLunaClientCommandError = async (output, context) => {
|
|
490
481
|
const parsedOutput = {
|
|
@@ -504,10 +495,9 @@ const de_DescribeLunaClientCommandError = async (output, context) => {
|
|
|
504
495
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
505
496
|
default:
|
|
506
497
|
const parsedBody = parsedOutput.body;
|
|
507
|
-
throwDefaultError({
|
|
498
|
+
return throwDefaultError({
|
|
508
499
|
output,
|
|
509
500
|
parsedBody,
|
|
510
|
-
exceptionCtor: __BaseException,
|
|
511
501
|
errorCode,
|
|
512
502
|
});
|
|
513
503
|
}
|
|
@@ -518,12 +508,12 @@ export const de_GetConfigCommand = async (output, context) => {
|
|
|
518
508
|
}
|
|
519
509
|
const data = await parseBody(output.body, context);
|
|
520
510
|
let contents = {};
|
|
521
|
-
contents =
|
|
511
|
+
contents = _json(data);
|
|
522
512
|
const response = {
|
|
523
513
|
$metadata: deserializeMetadata(output),
|
|
524
514
|
...contents,
|
|
525
515
|
};
|
|
526
|
-
return
|
|
516
|
+
return response;
|
|
527
517
|
};
|
|
528
518
|
const de_GetConfigCommandError = async (output, context) => {
|
|
529
519
|
const parsedOutput = {
|
|
@@ -543,10 +533,9 @@ const de_GetConfigCommandError = async (output, context) => {
|
|
|
543
533
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
544
534
|
default:
|
|
545
535
|
const parsedBody = parsedOutput.body;
|
|
546
|
-
throwDefaultError({
|
|
536
|
+
return throwDefaultError({
|
|
547
537
|
output,
|
|
548
538
|
parsedBody,
|
|
549
|
-
exceptionCtor: __BaseException,
|
|
550
539
|
errorCode,
|
|
551
540
|
});
|
|
552
541
|
}
|
|
@@ -557,12 +546,12 @@ export const de_ListAvailableZonesCommand = async (output, context) => {
|
|
|
557
546
|
}
|
|
558
547
|
const data = await parseBody(output.body, context);
|
|
559
548
|
let contents = {};
|
|
560
|
-
contents =
|
|
549
|
+
contents = _json(data);
|
|
561
550
|
const response = {
|
|
562
551
|
$metadata: deserializeMetadata(output),
|
|
563
552
|
...contents,
|
|
564
553
|
};
|
|
565
|
-
return
|
|
554
|
+
return response;
|
|
566
555
|
};
|
|
567
556
|
const de_ListAvailableZonesCommandError = async (output, context) => {
|
|
568
557
|
const parsedOutput = {
|
|
@@ -582,10 +571,9 @@ const de_ListAvailableZonesCommandError = async (output, context) => {
|
|
|
582
571
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
583
572
|
default:
|
|
584
573
|
const parsedBody = parsedOutput.body;
|
|
585
|
-
throwDefaultError({
|
|
574
|
+
return throwDefaultError({
|
|
586
575
|
output,
|
|
587
576
|
parsedBody,
|
|
588
|
-
exceptionCtor: __BaseException,
|
|
589
577
|
errorCode,
|
|
590
578
|
});
|
|
591
579
|
}
|
|
@@ -596,12 +584,12 @@ export const de_ListHapgsCommand = async (output, context) => {
|
|
|
596
584
|
}
|
|
597
585
|
const data = await parseBody(output.body, context);
|
|
598
586
|
let contents = {};
|
|
599
|
-
contents =
|
|
587
|
+
contents = _json(data);
|
|
600
588
|
const response = {
|
|
601
589
|
$metadata: deserializeMetadata(output),
|
|
602
590
|
...contents,
|
|
603
591
|
};
|
|
604
|
-
return
|
|
592
|
+
return response;
|
|
605
593
|
};
|
|
606
594
|
const de_ListHapgsCommandError = async (output, context) => {
|
|
607
595
|
const parsedOutput = {
|
|
@@ -621,10 +609,9 @@ const de_ListHapgsCommandError = async (output, context) => {
|
|
|
621
609
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
622
610
|
default:
|
|
623
611
|
const parsedBody = parsedOutput.body;
|
|
624
|
-
throwDefaultError({
|
|
612
|
+
return throwDefaultError({
|
|
625
613
|
output,
|
|
626
614
|
parsedBody,
|
|
627
|
-
exceptionCtor: __BaseException,
|
|
628
615
|
errorCode,
|
|
629
616
|
});
|
|
630
617
|
}
|
|
@@ -635,12 +622,12 @@ export const de_ListHsmsCommand = async (output, context) => {
|
|
|
635
622
|
}
|
|
636
623
|
const data = await parseBody(output.body, context);
|
|
637
624
|
let contents = {};
|
|
638
|
-
contents =
|
|
625
|
+
contents = _json(data);
|
|
639
626
|
const response = {
|
|
640
627
|
$metadata: deserializeMetadata(output),
|
|
641
628
|
...contents,
|
|
642
629
|
};
|
|
643
|
-
return
|
|
630
|
+
return response;
|
|
644
631
|
};
|
|
645
632
|
const de_ListHsmsCommandError = async (output, context) => {
|
|
646
633
|
const parsedOutput = {
|
|
@@ -660,10 +647,9 @@ const de_ListHsmsCommandError = async (output, context) => {
|
|
|
660
647
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
661
648
|
default:
|
|
662
649
|
const parsedBody = parsedOutput.body;
|
|
663
|
-
throwDefaultError({
|
|
650
|
+
return throwDefaultError({
|
|
664
651
|
output,
|
|
665
652
|
parsedBody,
|
|
666
|
-
exceptionCtor: __BaseException,
|
|
667
653
|
errorCode,
|
|
668
654
|
});
|
|
669
655
|
}
|
|
@@ -674,12 +660,12 @@ export const de_ListLunaClientsCommand = async (output, context) => {
|
|
|
674
660
|
}
|
|
675
661
|
const data = await parseBody(output.body, context);
|
|
676
662
|
let contents = {};
|
|
677
|
-
contents =
|
|
663
|
+
contents = _json(data);
|
|
678
664
|
const response = {
|
|
679
665
|
$metadata: deserializeMetadata(output),
|
|
680
666
|
...contents,
|
|
681
667
|
};
|
|
682
|
-
return
|
|
668
|
+
return response;
|
|
683
669
|
};
|
|
684
670
|
const de_ListLunaClientsCommandError = async (output, context) => {
|
|
685
671
|
const parsedOutput = {
|
|
@@ -699,10 +685,9 @@ const de_ListLunaClientsCommandError = async (output, context) => {
|
|
|
699
685
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
700
686
|
default:
|
|
701
687
|
const parsedBody = parsedOutput.body;
|
|
702
|
-
throwDefaultError({
|
|
688
|
+
return throwDefaultError({
|
|
703
689
|
output,
|
|
704
690
|
parsedBody,
|
|
705
|
-
exceptionCtor: __BaseException,
|
|
706
691
|
errorCode,
|
|
707
692
|
});
|
|
708
693
|
}
|
|
@@ -713,12 +698,12 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
713
698
|
}
|
|
714
699
|
const data = await parseBody(output.body, context);
|
|
715
700
|
let contents = {};
|
|
716
|
-
contents =
|
|
701
|
+
contents = _json(data);
|
|
717
702
|
const response = {
|
|
718
703
|
$metadata: deserializeMetadata(output),
|
|
719
704
|
...contents,
|
|
720
705
|
};
|
|
721
|
-
return
|
|
706
|
+
return response;
|
|
722
707
|
};
|
|
723
708
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
724
709
|
const parsedOutput = {
|
|
@@ -738,10 +723,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
738
723
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
739
724
|
default:
|
|
740
725
|
const parsedBody = parsedOutput.body;
|
|
741
|
-
throwDefaultError({
|
|
726
|
+
return throwDefaultError({
|
|
742
727
|
output,
|
|
743
728
|
parsedBody,
|
|
744
|
-
exceptionCtor: __BaseException,
|
|
745
729
|
errorCode,
|
|
746
730
|
});
|
|
747
731
|
}
|
|
@@ -752,12 +736,12 @@ export const de_ModifyHapgCommand = async (output, context) => {
|
|
|
752
736
|
}
|
|
753
737
|
const data = await parseBody(output.body, context);
|
|
754
738
|
let contents = {};
|
|
755
|
-
contents =
|
|
739
|
+
contents = _json(data);
|
|
756
740
|
const response = {
|
|
757
741
|
$metadata: deserializeMetadata(output),
|
|
758
742
|
...contents,
|
|
759
743
|
};
|
|
760
|
-
return
|
|
744
|
+
return response;
|
|
761
745
|
};
|
|
762
746
|
const de_ModifyHapgCommandError = async (output, context) => {
|
|
763
747
|
const parsedOutput = {
|
|
@@ -777,10 +761,9 @@ const de_ModifyHapgCommandError = async (output, context) => {
|
|
|
777
761
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
778
762
|
default:
|
|
779
763
|
const parsedBody = parsedOutput.body;
|
|
780
|
-
throwDefaultError({
|
|
764
|
+
return throwDefaultError({
|
|
781
765
|
output,
|
|
782
766
|
parsedBody,
|
|
783
|
-
exceptionCtor: __BaseException,
|
|
784
767
|
errorCode,
|
|
785
768
|
});
|
|
786
769
|
}
|
|
@@ -791,12 +774,12 @@ export const de_ModifyHsmCommand = async (output, context) => {
|
|
|
791
774
|
}
|
|
792
775
|
const data = await parseBody(output.body, context);
|
|
793
776
|
let contents = {};
|
|
794
|
-
contents =
|
|
777
|
+
contents = _json(data);
|
|
795
778
|
const response = {
|
|
796
779
|
$metadata: deserializeMetadata(output),
|
|
797
780
|
...contents,
|
|
798
781
|
};
|
|
799
|
-
return
|
|
782
|
+
return response;
|
|
800
783
|
};
|
|
801
784
|
const de_ModifyHsmCommandError = async (output, context) => {
|
|
802
785
|
const parsedOutput = {
|
|
@@ -816,10 +799,9 @@ const de_ModifyHsmCommandError = async (output, context) => {
|
|
|
816
799
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
817
800
|
default:
|
|
818
801
|
const parsedBody = parsedOutput.body;
|
|
819
|
-
throwDefaultError({
|
|
802
|
+
return throwDefaultError({
|
|
820
803
|
output,
|
|
821
804
|
parsedBody,
|
|
822
|
-
exceptionCtor: __BaseException,
|
|
823
805
|
errorCode,
|
|
824
806
|
});
|
|
825
807
|
}
|
|
@@ -830,12 +812,12 @@ export const de_ModifyLunaClientCommand = async (output, context) => {
|
|
|
830
812
|
}
|
|
831
813
|
const data = await parseBody(output.body, context);
|
|
832
814
|
let contents = {};
|
|
833
|
-
contents =
|
|
815
|
+
contents = _json(data);
|
|
834
816
|
const response = {
|
|
835
817
|
$metadata: deserializeMetadata(output),
|
|
836
818
|
...contents,
|
|
837
819
|
};
|
|
838
|
-
return
|
|
820
|
+
return response;
|
|
839
821
|
};
|
|
840
822
|
const de_ModifyLunaClientCommandError = async (output, context) => {
|
|
841
823
|
const parsedOutput = {
|
|
@@ -849,10 +831,9 @@ const de_ModifyLunaClientCommandError = async (output, context) => {
|
|
|
849
831
|
throw await de_CloudHsmServiceExceptionRes(parsedOutput, context);
|
|
850
832
|
default:
|
|
851
833
|
const parsedBody = parsedOutput.body;
|
|
852
|
-
throwDefaultError({
|
|
834
|
+
return throwDefaultError({
|
|
853
835
|
output,
|
|
854
836
|
parsedBody,
|
|
855
|
-
exceptionCtor: __BaseException,
|
|
856
837
|
errorCode,
|
|
857
838
|
});
|
|
858
839
|
}
|
|
@@ -863,12 +844,12 @@ export const de_RemoveTagsFromResourceCommand = async (output, context) => {
|
|
|
863
844
|
}
|
|
864
845
|
const data = await parseBody(output.body, context);
|
|
865
846
|
let contents = {};
|
|
866
|
-
contents =
|
|
847
|
+
contents = _json(data);
|
|
867
848
|
const response = {
|
|
868
849
|
$metadata: deserializeMetadata(output),
|
|
869
850
|
...contents,
|
|
870
851
|
};
|
|
871
|
-
return
|
|
852
|
+
return response;
|
|
872
853
|
};
|
|
873
854
|
const de_RemoveTagsFromResourceCommandError = async (output, context) => {
|
|
874
855
|
const parsedOutput = {
|
|
@@ -888,17 +869,16 @@ const de_RemoveTagsFromResourceCommandError = async (output, context) => {
|
|
|
888
869
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
889
870
|
default:
|
|
890
871
|
const parsedBody = parsedOutput.body;
|
|
891
|
-
throwDefaultError({
|
|
872
|
+
return throwDefaultError({
|
|
892
873
|
output,
|
|
893
874
|
parsedBody,
|
|
894
|
-
exceptionCtor: __BaseException,
|
|
895
875
|
errorCode,
|
|
896
876
|
});
|
|
897
877
|
}
|
|
898
878
|
};
|
|
899
879
|
const de_CloudHsmInternalExceptionRes = async (parsedOutput, context) => {
|
|
900
880
|
const body = parsedOutput.body;
|
|
901
|
-
const deserialized =
|
|
881
|
+
const deserialized = _json(body);
|
|
902
882
|
const exception = new CloudHsmInternalException({
|
|
903
883
|
$metadata: deserializeMetadata(parsedOutput),
|
|
904
884
|
...deserialized,
|
|
@@ -907,7 +887,7 @@ const de_CloudHsmInternalExceptionRes = async (parsedOutput, context) => {
|
|
|
907
887
|
};
|
|
908
888
|
const de_CloudHsmServiceExceptionRes = async (parsedOutput, context) => {
|
|
909
889
|
const body = parsedOutput.body;
|
|
910
|
-
const deserialized =
|
|
890
|
+
const deserialized = _json(body);
|
|
911
891
|
const exception = new CloudHsmServiceException({
|
|
912
892
|
$metadata: deserializeMetadata(parsedOutput),
|
|
913
893
|
...deserialized,
|
|
@@ -916,407 +896,13 @@ const de_CloudHsmServiceExceptionRes = async (parsedOutput, context) => {
|
|
|
916
896
|
};
|
|
917
897
|
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
918
898
|
const body = parsedOutput.body;
|
|
919
|
-
const deserialized =
|
|
899
|
+
const deserialized = _json(body);
|
|
920
900
|
const exception = new InvalidRequestException({
|
|
921
901
|
$metadata: deserializeMetadata(parsedOutput),
|
|
922
902
|
...deserialized,
|
|
923
903
|
});
|
|
924
904
|
return __decorateServiceException(exception, body);
|
|
925
905
|
};
|
|
926
|
-
const se_AddTagsToResourceRequest = (input, context) => {
|
|
927
|
-
return {
|
|
928
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
929
|
-
...(input.TagList != null && { TagList: se_TagList(input.TagList, context) }),
|
|
930
|
-
};
|
|
931
|
-
};
|
|
932
|
-
const se_CreateHapgRequest = (input, context) => {
|
|
933
|
-
return {
|
|
934
|
-
...(input.Label != null && { Label: input.Label }),
|
|
935
|
-
};
|
|
936
|
-
};
|
|
937
|
-
const se_CreateHsmRequest = (input, context) => {
|
|
938
|
-
return {
|
|
939
|
-
...(input.ClientToken != null && { ClientToken: input.ClientToken }),
|
|
940
|
-
...(input.EniIp != null && { EniIp: input.EniIp }),
|
|
941
|
-
...(input.ExternalId != null && { ExternalId: input.ExternalId }),
|
|
942
|
-
...(input.IamRoleArn != null && { IamRoleArn: input.IamRoleArn }),
|
|
943
|
-
...(input.SshKey != null && { SshKey: input.SshKey }),
|
|
944
|
-
...(input.SubnetId != null && { SubnetId: input.SubnetId }),
|
|
945
|
-
...(input.SubscriptionType != null && { SubscriptionType: input.SubscriptionType }),
|
|
946
|
-
...(input.SyslogIp != null && { SyslogIp: input.SyslogIp }),
|
|
947
|
-
};
|
|
948
|
-
};
|
|
949
|
-
const se_CreateLunaClientRequest = (input, context) => {
|
|
950
|
-
return {
|
|
951
|
-
...(input.Certificate != null && { Certificate: input.Certificate }),
|
|
952
|
-
...(input.Label != null && { Label: input.Label }),
|
|
953
|
-
};
|
|
954
|
-
};
|
|
955
|
-
const se_DeleteHapgRequest = (input, context) => {
|
|
956
|
-
return {
|
|
957
|
-
...(input.HapgArn != null && { HapgArn: input.HapgArn }),
|
|
958
|
-
};
|
|
959
|
-
};
|
|
960
|
-
const se_DeleteHsmRequest = (input, context) => {
|
|
961
|
-
return {
|
|
962
|
-
...(input.HsmArn != null && { HsmArn: input.HsmArn }),
|
|
963
|
-
};
|
|
964
|
-
};
|
|
965
|
-
const se_DeleteLunaClientRequest = (input, context) => {
|
|
966
|
-
return {
|
|
967
|
-
...(input.ClientArn != null && { ClientArn: input.ClientArn }),
|
|
968
|
-
};
|
|
969
|
-
};
|
|
970
|
-
const se_DescribeHapgRequest = (input, context) => {
|
|
971
|
-
return {
|
|
972
|
-
...(input.HapgArn != null && { HapgArn: input.HapgArn }),
|
|
973
|
-
};
|
|
974
|
-
};
|
|
975
|
-
const se_DescribeHsmRequest = (input, context) => {
|
|
976
|
-
return {
|
|
977
|
-
...(input.HsmArn != null && { HsmArn: input.HsmArn }),
|
|
978
|
-
...(input.HsmSerialNumber != null && { HsmSerialNumber: input.HsmSerialNumber }),
|
|
979
|
-
};
|
|
980
|
-
};
|
|
981
|
-
const se_DescribeLunaClientRequest = (input, context) => {
|
|
982
|
-
return {
|
|
983
|
-
...(input.CertificateFingerprint != null && { CertificateFingerprint: input.CertificateFingerprint }),
|
|
984
|
-
...(input.ClientArn != null && { ClientArn: input.ClientArn }),
|
|
985
|
-
};
|
|
986
|
-
};
|
|
987
|
-
const se_GetConfigRequest = (input, context) => {
|
|
988
|
-
return {
|
|
989
|
-
...(input.ClientArn != null && { ClientArn: input.ClientArn }),
|
|
990
|
-
...(input.ClientVersion != null && { ClientVersion: input.ClientVersion }),
|
|
991
|
-
...(input.HapgList != null && { HapgList: se_HapgList(input.HapgList, context) }),
|
|
992
|
-
};
|
|
993
|
-
};
|
|
994
|
-
const se_HapgList = (input, context) => {
|
|
995
|
-
return input
|
|
996
|
-
.filter((e) => e != null)
|
|
997
|
-
.map((entry) => {
|
|
998
|
-
return entry;
|
|
999
|
-
});
|
|
1000
|
-
};
|
|
1001
|
-
const se_ListAvailableZonesRequest = (input, context) => {
|
|
1002
|
-
return {};
|
|
1003
|
-
};
|
|
1004
|
-
const se_ListHapgsRequest = (input, context) => {
|
|
1005
|
-
return {
|
|
1006
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1007
|
-
};
|
|
1008
|
-
};
|
|
1009
|
-
const se_ListHsmsRequest = (input, context) => {
|
|
1010
|
-
return {
|
|
1011
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1012
|
-
};
|
|
1013
|
-
};
|
|
1014
|
-
const se_ListLunaClientsRequest = (input, context) => {
|
|
1015
|
-
return {
|
|
1016
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1017
|
-
};
|
|
1018
|
-
};
|
|
1019
|
-
const se_ListTagsForResourceRequest = (input, context) => {
|
|
1020
|
-
return {
|
|
1021
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
1022
|
-
};
|
|
1023
|
-
};
|
|
1024
|
-
const se_ModifyHapgRequest = (input, context) => {
|
|
1025
|
-
return {
|
|
1026
|
-
...(input.HapgArn != null && { HapgArn: input.HapgArn }),
|
|
1027
|
-
...(input.Label != null && { Label: input.Label }),
|
|
1028
|
-
...(input.PartitionSerialList != null && {
|
|
1029
|
-
PartitionSerialList: se_PartitionSerialList(input.PartitionSerialList, context),
|
|
1030
|
-
}),
|
|
1031
|
-
};
|
|
1032
|
-
};
|
|
1033
|
-
const se_ModifyHsmRequest = (input, context) => {
|
|
1034
|
-
return {
|
|
1035
|
-
...(input.EniIp != null && { EniIp: input.EniIp }),
|
|
1036
|
-
...(input.ExternalId != null && { ExternalId: input.ExternalId }),
|
|
1037
|
-
...(input.HsmArn != null && { HsmArn: input.HsmArn }),
|
|
1038
|
-
...(input.IamRoleArn != null && { IamRoleArn: input.IamRoleArn }),
|
|
1039
|
-
...(input.SubnetId != null && { SubnetId: input.SubnetId }),
|
|
1040
|
-
...(input.SyslogIp != null && { SyslogIp: input.SyslogIp }),
|
|
1041
|
-
};
|
|
1042
|
-
};
|
|
1043
|
-
const se_ModifyLunaClientRequest = (input, context) => {
|
|
1044
|
-
return {
|
|
1045
|
-
...(input.Certificate != null && { Certificate: input.Certificate }),
|
|
1046
|
-
...(input.ClientArn != null && { ClientArn: input.ClientArn }),
|
|
1047
|
-
};
|
|
1048
|
-
};
|
|
1049
|
-
const se_PartitionSerialList = (input, context) => {
|
|
1050
|
-
return input
|
|
1051
|
-
.filter((e) => e != null)
|
|
1052
|
-
.map((entry) => {
|
|
1053
|
-
return entry;
|
|
1054
|
-
});
|
|
1055
|
-
};
|
|
1056
|
-
const se_RemoveTagsFromResourceRequest = (input, context) => {
|
|
1057
|
-
return {
|
|
1058
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
1059
|
-
...(input.TagKeyList != null && { TagKeyList: se_TagKeyList(input.TagKeyList, context) }),
|
|
1060
|
-
};
|
|
1061
|
-
};
|
|
1062
|
-
const se_Tag = (input, context) => {
|
|
1063
|
-
return {
|
|
1064
|
-
...(input.Key != null && { Key: input.Key }),
|
|
1065
|
-
...(input.Value != null && { Value: input.Value }),
|
|
1066
|
-
};
|
|
1067
|
-
};
|
|
1068
|
-
const se_TagKeyList = (input, context) => {
|
|
1069
|
-
return input
|
|
1070
|
-
.filter((e) => e != null)
|
|
1071
|
-
.map((entry) => {
|
|
1072
|
-
return entry;
|
|
1073
|
-
});
|
|
1074
|
-
};
|
|
1075
|
-
const se_TagList = (input, context) => {
|
|
1076
|
-
return input
|
|
1077
|
-
.filter((e) => e != null)
|
|
1078
|
-
.map((entry) => {
|
|
1079
|
-
return se_Tag(entry, context);
|
|
1080
|
-
});
|
|
1081
|
-
};
|
|
1082
|
-
const de_AddTagsToResourceResponse = (output, context) => {
|
|
1083
|
-
return {
|
|
1084
|
-
Status: __expectString(output.Status),
|
|
1085
|
-
};
|
|
1086
|
-
};
|
|
1087
|
-
const de_AZList = (output, context) => {
|
|
1088
|
-
const retVal = (output || [])
|
|
1089
|
-
.filter((e) => e != null)
|
|
1090
|
-
.map((entry) => {
|
|
1091
|
-
if (entry === null) {
|
|
1092
|
-
return null;
|
|
1093
|
-
}
|
|
1094
|
-
return __expectString(entry);
|
|
1095
|
-
});
|
|
1096
|
-
return retVal;
|
|
1097
|
-
};
|
|
1098
|
-
const de_ClientList = (output, context) => {
|
|
1099
|
-
const retVal = (output || [])
|
|
1100
|
-
.filter((e) => e != null)
|
|
1101
|
-
.map((entry) => {
|
|
1102
|
-
if (entry === null) {
|
|
1103
|
-
return null;
|
|
1104
|
-
}
|
|
1105
|
-
return __expectString(entry);
|
|
1106
|
-
});
|
|
1107
|
-
return retVal;
|
|
1108
|
-
};
|
|
1109
|
-
const de_CloudHsmInternalException = (output, context) => {
|
|
1110
|
-
return {
|
|
1111
|
-
message: __expectString(output.message),
|
|
1112
|
-
retryable: __expectBoolean(output.retryable),
|
|
1113
|
-
};
|
|
1114
|
-
};
|
|
1115
|
-
const de_CloudHsmServiceException = (output, context) => {
|
|
1116
|
-
return {
|
|
1117
|
-
message: __expectString(output.message),
|
|
1118
|
-
retryable: __expectBoolean(output.retryable),
|
|
1119
|
-
};
|
|
1120
|
-
};
|
|
1121
|
-
const de_CreateHapgResponse = (output, context) => {
|
|
1122
|
-
return {
|
|
1123
|
-
HapgArn: __expectString(output.HapgArn),
|
|
1124
|
-
};
|
|
1125
|
-
};
|
|
1126
|
-
const de_CreateHsmResponse = (output, context) => {
|
|
1127
|
-
return {
|
|
1128
|
-
HsmArn: __expectString(output.HsmArn),
|
|
1129
|
-
};
|
|
1130
|
-
};
|
|
1131
|
-
const de_CreateLunaClientResponse = (output, context) => {
|
|
1132
|
-
return {
|
|
1133
|
-
ClientArn: __expectString(output.ClientArn),
|
|
1134
|
-
};
|
|
1135
|
-
};
|
|
1136
|
-
const de_DeleteHapgResponse = (output, context) => {
|
|
1137
|
-
return {
|
|
1138
|
-
Status: __expectString(output.Status),
|
|
1139
|
-
};
|
|
1140
|
-
};
|
|
1141
|
-
const de_DeleteHsmResponse = (output, context) => {
|
|
1142
|
-
return {
|
|
1143
|
-
Status: __expectString(output.Status),
|
|
1144
|
-
};
|
|
1145
|
-
};
|
|
1146
|
-
const de_DeleteLunaClientResponse = (output, context) => {
|
|
1147
|
-
return {
|
|
1148
|
-
Status: __expectString(output.Status),
|
|
1149
|
-
};
|
|
1150
|
-
};
|
|
1151
|
-
const de_DescribeHapgResponse = (output, context) => {
|
|
1152
|
-
return {
|
|
1153
|
-
HapgArn: __expectString(output.HapgArn),
|
|
1154
|
-
HapgSerial: __expectString(output.HapgSerial),
|
|
1155
|
-
HsmsLastActionFailed: output.HsmsLastActionFailed != null ? de_HsmList(output.HsmsLastActionFailed, context) : undefined,
|
|
1156
|
-
HsmsPendingDeletion: output.HsmsPendingDeletion != null ? de_HsmList(output.HsmsPendingDeletion, context) : undefined,
|
|
1157
|
-
HsmsPendingRegistration: output.HsmsPendingRegistration != null ? de_HsmList(output.HsmsPendingRegistration, context) : undefined,
|
|
1158
|
-
Label: __expectString(output.Label),
|
|
1159
|
-
LastModifiedTimestamp: __expectString(output.LastModifiedTimestamp),
|
|
1160
|
-
PartitionSerialList: output.PartitionSerialList != null ? de_PartitionSerialList(output.PartitionSerialList, context) : undefined,
|
|
1161
|
-
State: __expectString(output.State),
|
|
1162
|
-
};
|
|
1163
|
-
};
|
|
1164
|
-
const de_DescribeHsmResponse = (output, context) => {
|
|
1165
|
-
return {
|
|
1166
|
-
AvailabilityZone: __expectString(output.AvailabilityZone),
|
|
1167
|
-
EniId: __expectString(output.EniId),
|
|
1168
|
-
EniIp: __expectString(output.EniIp),
|
|
1169
|
-
HsmArn: __expectString(output.HsmArn),
|
|
1170
|
-
HsmType: __expectString(output.HsmType),
|
|
1171
|
-
IamRoleArn: __expectString(output.IamRoleArn),
|
|
1172
|
-
Partitions: output.Partitions != null ? de_PartitionList(output.Partitions, context) : undefined,
|
|
1173
|
-
SerialNumber: __expectString(output.SerialNumber),
|
|
1174
|
-
ServerCertLastUpdated: __expectString(output.ServerCertLastUpdated),
|
|
1175
|
-
ServerCertUri: __expectString(output.ServerCertUri),
|
|
1176
|
-
SoftwareVersion: __expectString(output.SoftwareVersion),
|
|
1177
|
-
SshKeyLastUpdated: __expectString(output.SshKeyLastUpdated),
|
|
1178
|
-
SshPublicKey: __expectString(output.SshPublicKey),
|
|
1179
|
-
Status: __expectString(output.Status),
|
|
1180
|
-
StatusDetails: __expectString(output.StatusDetails),
|
|
1181
|
-
SubnetId: __expectString(output.SubnetId),
|
|
1182
|
-
SubscriptionEndDate: __expectString(output.SubscriptionEndDate),
|
|
1183
|
-
SubscriptionStartDate: __expectString(output.SubscriptionStartDate),
|
|
1184
|
-
SubscriptionType: __expectString(output.SubscriptionType),
|
|
1185
|
-
VendorName: __expectString(output.VendorName),
|
|
1186
|
-
VpcId: __expectString(output.VpcId),
|
|
1187
|
-
};
|
|
1188
|
-
};
|
|
1189
|
-
const de_DescribeLunaClientResponse = (output, context) => {
|
|
1190
|
-
return {
|
|
1191
|
-
Certificate: __expectString(output.Certificate),
|
|
1192
|
-
CertificateFingerprint: __expectString(output.CertificateFingerprint),
|
|
1193
|
-
ClientArn: __expectString(output.ClientArn),
|
|
1194
|
-
Label: __expectString(output.Label),
|
|
1195
|
-
LastModifiedTimestamp: __expectString(output.LastModifiedTimestamp),
|
|
1196
|
-
};
|
|
1197
|
-
};
|
|
1198
|
-
const de_GetConfigResponse = (output, context) => {
|
|
1199
|
-
return {
|
|
1200
|
-
ConfigCred: __expectString(output.ConfigCred),
|
|
1201
|
-
ConfigFile: __expectString(output.ConfigFile),
|
|
1202
|
-
ConfigType: __expectString(output.ConfigType),
|
|
1203
|
-
};
|
|
1204
|
-
};
|
|
1205
|
-
const de_HapgList = (output, context) => {
|
|
1206
|
-
const retVal = (output || [])
|
|
1207
|
-
.filter((e) => e != null)
|
|
1208
|
-
.map((entry) => {
|
|
1209
|
-
if (entry === null) {
|
|
1210
|
-
return null;
|
|
1211
|
-
}
|
|
1212
|
-
return __expectString(entry);
|
|
1213
|
-
});
|
|
1214
|
-
return retVal;
|
|
1215
|
-
};
|
|
1216
|
-
const de_HsmList = (output, context) => {
|
|
1217
|
-
const retVal = (output || [])
|
|
1218
|
-
.filter((e) => e != null)
|
|
1219
|
-
.map((entry) => {
|
|
1220
|
-
if (entry === null) {
|
|
1221
|
-
return null;
|
|
1222
|
-
}
|
|
1223
|
-
return __expectString(entry);
|
|
1224
|
-
});
|
|
1225
|
-
return retVal;
|
|
1226
|
-
};
|
|
1227
|
-
const de_InvalidRequestException = (output, context) => {
|
|
1228
|
-
return {
|
|
1229
|
-
message: __expectString(output.message),
|
|
1230
|
-
retryable: __expectBoolean(output.retryable),
|
|
1231
|
-
};
|
|
1232
|
-
};
|
|
1233
|
-
const de_ListAvailableZonesResponse = (output, context) => {
|
|
1234
|
-
return {
|
|
1235
|
-
AZList: output.AZList != null ? de_AZList(output.AZList, context) : undefined,
|
|
1236
|
-
};
|
|
1237
|
-
};
|
|
1238
|
-
const de_ListHapgsResponse = (output, context) => {
|
|
1239
|
-
return {
|
|
1240
|
-
HapgList: output.HapgList != null ? de_HapgList(output.HapgList, context) : undefined,
|
|
1241
|
-
NextToken: __expectString(output.NextToken),
|
|
1242
|
-
};
|
|
1243
|
-
};
|
|
1244
|
-
const de_ListHsmsResponse = (output, context) => {
|
|
1245
|
-
return {
|
|
1246
|
-
HsmList: output.HsmList != null ? de_HsmList(output.HsmList, context) : undefined,
|
|
1247
|
-
NextToken: __expectString(output.NextToken),
|
|
1248
|
-
};
|
|
1249
|
-
};
|
|
1250
|
-
const de_ListLunaClientsResponse = (output, context) => {
|
|
1251
|
-
return {
|
|
1252
|
-
ClientList: output.ClientList != null ? de_ClientList(output.ClientList, context) : undefined,
|
|
1253
|
-
NextToken: __expectString(output.NextToken),
|
|
1254
|
-
};
|
|
1255
|
-
};
|
|
1256
|
-
const de_ListTagsForResourceResponse = (output, context) => {
|
|
1257
|
-
return {
|
|
1258
|
-
TagList: output.TagList != null ? de_TagList(output.TagList, context) : undefined,
|
|
1259
|
-
};
|
|
1260
|
-
};
|
|
1261
|
-
const de_ModifyHapgResponse = (output, context) => {
|
|
1262
|
-
return {
|
|
1263
|
-
HapgArn: __expectString(output.HapgArn),
|
|
1264
|
-
};
|
|
1265
|
-
};
|
|
1266
|
-
const de_ModifyHsmResponse = (output, context) => {
|
|
1267
|
-
return {
|
|
1268
|
-
HsmArn: __expectString(output.HsmArn),
|
|
1269
|
-
};
|
|
1270
|
-
};
|
|
1271
|
-
const de_ModifyLunaClientResponse = (output, context) => {
|
|
1272
|
-
return {
|
|
1273
|
-
ClientArn: __expectString(output.ClientArn),
|
|
1274
|
-
};
|
|
1275
|
-
};
|
|
1276
|
-
const de_PartitionList = (output, context) => {
|
|
1277
|
-
const retVal = (output || [])
|
|
1278
|
-
.filter((e) => e != null)
|
|
1279
|
-
.map((entry) => {
|
|
1280
|
-
if (entry === null) {
|
|
1281
|
-
return null;
|
|
1282
|
-
}
|
|
1283
|
-
return __expectString(entry);
|
|
1284
|
-
});
|
|
1285
|
-
return retVal;
|
|
1286
|
-
};
|
|
1287
|
-
const de_PartitionSerialList = (output, context) => {
|
|
1288
|
-
const retVal = (output || [])
|
|
1289
|
-
.filter((e) => e != null)
|
|
1290
|
-
.map((entry) => {
|
|
1291
|
-
if (entry === null) {
|
|
1292
|
-
return null;
|
|
1293
|
-
}
|
|
1294
|
-
return __expectString(entry);
|
|
1295
|
-
});
|
|
1296
|
-
return retVal;
|
|
1297
|
-
};
|
|
1298
|
-
const de_RemoveTagsFromResourceResponse = (output, context) => {
|
|
1299
|
-
return {
|
|
1300
|
-
Status: __expectString(output.Status),
|
|
1301
|
-
};
|
|
1302
|
-
};
|
|
1303
|
-
const de_Tag = (output, context) => {
|
|
1304
|
-
return {
|
|
1305
|
-
Key: __expectString(output.Key),
|
|
1306
|
-
Value: __expectString(output.Value),
|
|
1307
|
-
};
|
|
1308
|
-
};
|
|
1309
|
-
const de_TagList = (output, context) => {
|
|
1310
|
-
const retVal = (output || [])
|
|
1311
|
-
.filter((e) => e != null)
|
|
1312
|
-
.map((entry) => {
|
|
1313
|
-
if (entry === null) {
|
|
1314
|
-
return null;
|
|
1315
|
-
}
|
|
1316
|
-
return de_Tag(entry, context);
|
|
1317
|
-
});
|
|
1318
|
-
return retVal;
|
|
1319
|
-
};
|
|
1320
906
|
const deserializeMetadata = (output) => ({
|
|
1321
907
|
httpStatusCode: output.statusCode,
|
|
1322
908
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
@@ -1330,6 +916,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
1330
916
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
1331
917
|
};
|
|
1332
918
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
919
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
1333
920
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
1334
921
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1335
922
|
const contents = {
|