@aws-sdk/client-cloudhsm 3.927.0 → 3.928.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.
Files changed (41) hide show
  1. package/dist-cjs/index.js +486 -614
  2. package/dist-cjs/runtimeConfig.shared.js +7 -0
  3. package/dist-es/CloudHSMClient.js +2 -0
  4. package/dist-es/commands/AddTagsToResourceCommand.js +3 -9
  5. package/dist-es/commands/CreateHapgCommand.js +3 -9
  6. package/dist-es/commands/CreateHsmCommand.js +3 -9
  7. package/dist-es/commands/CreateLunaClientCommand.js +3 -9
  8. package/dist-es/commands/DeleteHapgCommand.js +3 -9
  9. package/dist-es/commands/DeleteHsmCommand.js +3 -9
  10. package/dist-es/commands/DeleteLunaClientCommand.js +3 -9
  11. package/dist-es/commands/DescribeHapgCommand.js +3 -9
  12. package/dist-es/commands/DescribeHsmCommand.js +3 -9
  13. package/dist-es/commands/DescribeLunaClientCommand.js +3 -9
  14. package/dist-es/commands/GetConfigCommand.js +3 -9
  15. package/dist-es/commands/ListAvailableZonesCommand.js +3 -9
  16. package/dist-es/commands/ListHapgsCommand.js +3 -9
  17. package/dist-es/commands/ListHsmsCommand.js +3 -9
  18. package/dist-es/commands/ListLunaClientsCommand.js +3 -9
  19. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  20. package/dist-es/commands/ModifyHapgCommand.js +3 -9
  21. package/dist-es/commands/ModifyHsmCommand.js +3 -9
  22. package/dist-es/commands/ModifyLunaClientCommand.js +3 -9
  23. package/dist-es/commands/RemoveTagsFromResourceCommand.js +3 -9
  24. package/dist-es/runtimeConfig.shared.js +7 -0
  25. package/dist-es/schemas/schemas_0.js +443 -0
  26. package/dist-types/CloudHSMClient.d.ts +10 -1
  27. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  28. package/dist-types/runtimeConfig.d.ts +1 -0
  29. package/dist-types/runtimeConfig.native.d.ts +1 -0
  30. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  31. package/dist-types/schemas/schemas_0.d.ts +75 -0
  32. package/dist-types/ts3.4/CloudHSMClient.d.ts +4 -0
  33. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  34. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  35. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  36. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  37. package/dist-types/ts3.4/schemas/schemas_0.d.ts +80 -0
  38. package/package.json +5 -5
  39. package/dist-es/protocols/Aws_json1_1.js +0 -469
  40. package/dist-types/protocols/Aws_json1_1.d.ts +0 -182
  41. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -245
package/dist-cjs/index.js CHANGED
@@ -6,6 +6,7 @@ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detect
6
6
  var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
7
7
  var configResolver = require('@smithy/config-resolver');
8
8
  var core = require('@smithy/core');
9
+ var schema = require('@smithy/core/schema');
9
10
  var middlewareContentLength = require('@smithy/middleware-content-length');
10
11
  var middlewareEndpoint = require('@smithy/middleware-endpoint');
11
12
  var middlewareRetry = require('@smithy/middleware-retry');
@@ -14,8 +15,6 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
14
15
  var runtimeConfig = require('./runtimeConfig');
15
16
  var regionConfigResolver = require('@aws-sdk/region-config-resolver');
16
17
  var protocolHttp = require('@smithy/protocol-http');
17
- var middlewareSerde = require('@smithy/middleware-serde');
18
- var core$1 = require('@aws-sdk/core');
19
18
 
20
19
  const resolveClientEndpointParameters = (options) => {
21
20
  return Object.assign(options, {
@@ -91,6 +90,7 @@ class CloudHSMClient extends smithyClient.Client {
91
90
  const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
92
91
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
93
92
  this.config = _config_8;
93
+ this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
94
94
  this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
95
95
  this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
96
96
  this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
@@ -110,14 +110,14 @@ class CloudHSMClient extends smithyClient.Client {
110
110
  }
111
111
  }
112
112
 
113
- class CloudHSMServiceException extends smithyClient.ServiceException {
113
+ let CloudHSMServiceException$1 = class CloudHSMServiceException extends smithyClient.ServiceException {
114
114
  constructor(options) {
115
115
  super(options);
116
116
  Object.setPrototypeOf(this, CloudHSMServiceException.prototype);
117
117
  }
118
- }
118
+ };
119
119
 
120
- class CloudHsmInternalException extends CloudHSMServiceException {
120
+ let CloudHsmInternalException$1 = class CloudHsmInternalException extends CloudHSMServiceException$1 {
121
121
  name = "CloudHsmInternalException";
122
122
  $fault = "server";
123
123
  retryable;
@@ -130,8 +130,8 @@ class CloudHsmInternalException extends CloudHSMServiceException {
130
130
  Object.setPrototypeOf(this, CloudHsmInternalException.prototype);
131
131
  this.retryable = opts.retryable;
132
132
  }
133
- }
134
- class CloudHsmServiceException extends CloudHSMServiceException {
133
+ };
134
+ let CloudHsmServiceException$1 = class CloudHsmServiceException extends CloudHSMServiceException$1 {
135
135
  name = "CloudHsmServiceException";
136
136
  $fault = "client";
137
137
  retryable;
@@ -144,8 +144,8 @@ class CloudHsmServiceException extends CloudHSMServiceException {
144
144
  Object.setPrototypeOf(this, CloudHsmServiceException.prototype);
145
145
  this.retryable = opts.retryable;
146
146
  }
147
- }
148
- class InvalidRequestException extends CloudHSMServiceException {
147
+ };
148
+ let InvalidRequestException$1 = class InvalidRequestException extends CloudHSMServiceException$1 {
149
149
  name = "InvalidRequestException";
150
150
  $fault = "client";
151
151
  retryable;
@@ -158,7 +158,7 @@ class InvalidRequestException extends CloudHSMServiceException {
158
158
  Object.setPrototypeOf(this, InvalidRequestException.prototype);
159
159
  this.retryable = opts.retryable;
160
160
  }
161
- }
161
+ };
162
162
  const ClientVersion = {
163
163
  FIVE_ONE: "5.1",
164
164
  FIVE_THREE: "5.3",
@@ -181,481 +181,448 @@ const HsmStatus = {
181
181
  UPDATING: "UPDATING",
182
182
  };
183
183
 
184
- const se_AddTagsToResourceCommand = async (input, context) => {
185
- const headers = sharedHeaders("AddTagsToResource");
186
- let body;
187
- body = JSON.stringify(smithyClient._json(input));
188
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
189
- };
190
- const se_CreateHapgCommand = async (input, context) => {
191
- const headers = sharedHeaders("CreateHapg");
192
- let body;
193
- body = JSON.stringify(smithyClient._json(input));
194
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
195
- };
196
- const se_CreateHsmCommand = async (input, context) => {
197
- const headers = sharedHeaders("CreateHsm");
198
- let body;
199
- body = JSON.stringify(smithyClient._json(input));
200
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
201
- };
202
- const se_CreateLunaClientCommand = async (input, context) => {
203
- const headers = sharedHeaders("CreateLunaClient");
204
- let body;
205
- body = JSON.stringify(smithyClient._json(input));
206
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
207
- };
208
- const se_DeleteHapgCommand = async (input, context) => {
209
- const headers = sharedHeaders("DeleteHapg");
210
- let body;
211
- body = JSON.stringify(smithyClient._json(input));
212
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
213
- };
214
- const se_DeleteHsmCommand = async (input, context) => {
215
- const headers = sharedHeaders("DeleteHsm");
216
- let body;
217
- body = JSON.stringify(smithyClient._json(input));
218
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
219
- };
220
- const se_DeleteLunaClientCommand = async (input, context) => {
221
- const headers = sharedHeaders("DeleteLunaClient");
222
- let body;
223
- body = JSON.stringify(smithyClient._json(input));
224
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
225
- };
226
- const se_DescribeHapgCommand = async (input, context) => {
227
- const headers = sharedHeaders("DescribeHapg");
228
- let body;
229
- body = JSON.stringify(smithyClient._json(input));
230
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
231
- };
232
- const se_DescribeHsmCommand = async (input, context) => {
233
- const headers = sharedHeaders("DescribeHsm");
234
- let body;
235
- body = JSON.stringify(smithyClient._json(input));
236
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
237
- };
238
- const se_DescribeLunaClientCommand = async (input, context) => {
239
- const headers = sharedHeaders("DescribeLunaClient");
240
- let body;
241
- body = JSON.stringify(smithyClient._json(input));
242
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
243
- };
244
- const se_GetConfigCommand = async (input, context) => {
245
- const headers = sharedHeaders("GetConfig");
246
- let body;
247
- body = JSON.stringify(smithyClient._json(input));
248
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
249
- };
250
- const se_ListAvailableZonesCommand = async (input, context) => {
251
- const headers = sharedHeaders("ListAvailableZones");
252
- let body;
253
- body = JSON.stringify(smithyClient._json(input));
254
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
255
- };
256
- const se_ListHapgsCommand = async (input, context) => {
257
- const headers = sharedHeaders("ListHapgs");
258
- let body;
259
- body = JSON.stringify(smithyClient._json(input));
260
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
261
- };
262
- const se_ListHsmsCommand = async (input, context) => {
263
- const headers = sharedHeaders("ListHsms");
264
- let body;
265
- body = JSON.stringify(smithyClient._json(input));
266
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
267
- };
268
- const se_ListLunaClientsCommand = async (input, context) => {
269
- const headers = sharedHeaders("ListLunaClients");
270
- let body;
271
- body = JSON.stringify(smithyClient._json(input));
272
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
273
- };
274
- const se_ListTagsForResourceCommand = async (input, context) => {
275
- const headers = sharedHeaders("ListTagsForResource");
276
- let body;
277
- body = JSON.stringify(smithyClient._json(input));
278
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
279
- };
280
- const se_ModifyHapgCommand = async (input, context) => {
281
- const headers = sharedHeaders("ModifyHapg");
282
- let body;
283
- body = JSON.stringify(smithyClient._json(input));
284
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
285
- };
286
- const se_ModifyHsmCommand = async (input, context) => {
287
- const headers = sharedHeaders("ModifyHsm");
288
- let body;
289
- body = JSON.stringify(smithyClient._json(input));
290
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
291
- };
292
- const se_ModifyLunaClientCommand = async (input, context) => {
293
- const headers = sharedHeaders("ModifyLunaClient");
294
- let body;
295
- body = JSON.stringify(smithyClient._json(input));
296
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
297
- };
298
- const se_RemoveTagsFromResourceCommand = async (input, context) => {
299
- const headers = sharedHeaders("RemoveTagsFromResource");
300
- let body;
301
- body = JSON.stringify(smithyClient._json(input));
302
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
303
- };
304
- const de_AddTagsToResourceCommand = async (output, context) => {
305
- if (output.statusCode >= 300) {
306
- return de_CommandError(output, context);
307
- }
308
- const data = await core$1.parseJsonBody(output.body, context);
309
- let contents = {};
310
- contents = smithyClient._json(data);
311
- const response = {
312
- $metadata: deserializeMetadata(output),
313
- ...contents,
314
- };
315
- return response;
316
- };
317
- const de_CreateHapgCommand = async (output, context) => {
318
- if (output.statusCode >= 300) {
319
- return de_CommandError(output, context);
320
- }
321
- const data = await core$1.parseJsonBody(output.body, context);
322
- let contents = {};
323
- contents = smithyClient._json(data);
324
- const response = {
325
- $metadata: deserializeMetadata(output),
326
- ...contents,
327
- };
328
- return response;
329
- };
330
- const de_CreateHsmCommand = async (output, context) => {
331
- if (output.statusCode >= 300) {
332
- return de_CommandError(output, context);
333
- }
334
- const data = await core$1.parseJsonBody(output.body, context);
335
- let contents = {};
336
- contents = smithyClient._json(data);
337
- const response = {
338
- $metadata: deserializeMetadata(output),
339
- ...contents,
340
- };
341
- return response;
342
- };
343
- const de_CreateLunaClientCommand = async (output, context) => {
344
- if (output.statusCode >= 300) {
345
- return de_CommandError(output, context);
346
- }
347
- const data = await core$1.parseJsonBody(output.body, context);
348
- let contents = {};
349
- contents = smithyClient._json(data);
350
- const response = {
351
- $metadata: deserializeMetadata(output),
352
- ...contents,
353
- };
354
- return response;
355
- };
356
- const de_DeleteHapgCommand = async (output, context) => {
357
- if (output.statusCode >= 300) {
358
- return de_CommandError(output, context);
359
- }
360
- const data = await core$1.parseJsonBody(output.body, context);
361
- let contents = {};
362
- contents = smithyClient._json(data);
363
- const response = {
364
- $metadata: deserializeMetadata(output),
365
- ...contents,
366
- };
367
- return response;
368
- };
369
- const de_DeleteHsmCommand = async (output, context) => {
370
- if (output.statusCode >= 300) {
371
- return de_CommandError(output, context);
372
- }
373
- const data = await core$1.parseJsonBody(output.body, context);
374
- let contents = {};
375
- contents = smithyClient._json(data);
376
- const response = {
377
- $metadata: deserializeMetadata(output),
378
- ...contents,
379
- };
380
- return response;
381
- };
382
- const de_DeleteLunaClientCommand = async (output, context) => {
383
- if (output.statusCode >= 300) {
384
- return de_CommandError(output, context);
385
- }
386
- const data = await core$1.parseJsonBody(output.body, context);
387
- let contents = {};
388
- contents = smithyClient._json(data);
389
- const response = {
390
- $metadata: deserializeMetadata(output),
391
- ...contents,
392
- };
393
- return response;
394
- };
395
- const de_DescribeHapgCommand = async (output, context) => {
396
- if (output.statusCode >= 300) {
397
- return de_CommandError(output, context);
398
- }
399
- const data = await core$1.parseJsonBody(output.body, context);
400
- let contents = {};
401
- contents = smithyClient._json(data);
402
- const response = {
403
- $metadata: deserializeMetadata(output),
404
- ...contents,
405
- };
406
- return response;
407
- };
408
- const de_DescribeHsmCommand = async (output, context) => {
409
- if (output.statusCode >= 300) {
410
- return de_CommandError(output, context);
411
- }
412
- const data = await core$1.parseJsonBody(output.body, context);
413
- let contents = {};
414
- contents = smithyClient._json(data);
415
- const response = {
416
- $metadata: deserializeMetadata(output),
417
- ...contents,
418
- };
419
- return response;
420
- };
421
- const de_DescribeLunaClientCommand = async (output, context) => {
422
- if (output.statusCode >= 300) {
423
- return de_CommandError(output, context);
424
- }
425
- const data = await core$1.parseJsonBody(output.body, context);
426
- let contents = {};
427
- contents = smithyClient._json(data);
428
- const response = {
429
- $metadata: deserializeMetadata(output),
430
- ...contents,
431
- };
432
- return response;
433
- };
434
- const de_GetConfigCommand = async (output, context) => {
435
- if (output.statusCode >= 300) {
436
- return de_CommandError(output, context);
437
- }
438
- const data = await core$1.parseJsonBody(output.body, context);
439
- let contents = {};
440
- contents = smithyClient._json(data);
441
- const response = {
442
- $metadata: deserializeMetadata(output),
443
- ...contents,
444
- };
445
- return response;
446
- };
447
- const de_ListAvailableZonesCommand = async (output, context) => {
448
- if (output.statusCode >= 300) {
449
- return de_CommandError(output, context);
450
- }
451
- const data = await core$1.parseJsonBody(output.body, context);
452
- let contents = {};
453
- contents = smithyClient._json(data);
454
- const response = {
455
- $metadata: deserializeMetadata(output),
456
- ...contents,
457
- };
458
- return response;
459
- };
460
- const de_ListHapgsCommand = async (output, context) => {
461
- if (output.statusCode >= 300) {
462
- return de_CommandError(output, context);
463
- }
464
- const data = await core$1.parseJsonBody(output.body, context);
465
- let contents = {};
466
- contents = smithyClient._json(data);
467
- const response = {
468
- $metadata: deserializeMetadata(output),
469
- ...contents,
470
- };
471
- return response;
472
- };
473
- const de_ListHsmsCommand = async (output, context) => {
474
- if (output.statusCode >= 300) {
475
- return de_CommandError(output, context);
476
- }
477
- const data = await core$1.parseJsonBody(output.body, context);
478
- let contents = {};
479
- contents = smithyClient._json(data);
480
- const response = {
481
- $metadata: deserializeMetadata(output),
482
- ...contents,
483
- };
484
- return response;
485
- };
486
- const de_ListLunaClientsCommand = async (output, context) => {
487
- if (output.statusCode >= 300) {
488
- return de_CommandError(output, context);
489
- }
490
- const data = await core$1.parseJsonBody(output.body, context);
491
- let contents = {};
492
- contents = smithyClient._json(data);
493
- const response = {
494
- $metadata: deserializeMetadata(output),
495
- ...contents,
496
- };
497
- return response;
498
- };
499
- const de_ListTagsForResourceCommand = async (output, context) => {
500
- if (output.statusCode >= 300) {
501
- return de_CommandError(output, context);
502
- }
503
- const data = await core$1.parseJsonBody(output.body, context);
504
- let contents = {};
505
- contents = smithyClient._json(data);
506
- const response = {
507
- $metadata: deserializeMetadata(output),
508
- ...contents,
509
- };
510
- return response;
511
- };
512
- const de_ModifyHapgCommand = async (output, context) => {
513
- if (output.statusCode >= 300) {
514
- return de_CommandError(output, context);
515
- }
516
- const data = await core$1.parseJsonBody(output.body, context);
517
- let contents = {};
518
- contents = smithyClient._json(data);
519
- const response = {
520
- $metadata: deserializeMetadata(output),
521
- ...contents,
522
- };
523
- return response;
524
- };
525
- const de_ModifyHsmCommand = async (output, context) => {
526
- if (output.statusCode >= 300) {
527
- return de_CommandError(output, context);
528
- }
529
- const data = await core$1.parseJsonBody(output.body, context);
530
- let contents = {};
531
- contents = smithyClient._json(data);
532
- const response = {
533
- $metadata: deserializeMetadata(output),
534
- ...contents,
535
- };
536
- return response;
537
- };
538
- const de_ModifyLunaClientCommand = async (output, context) => {
539
- if (output.statusCode >= 300) {
540
- return de_CommandError(output, context);
541
- }
542
- const data = await core$1.parseJsonBody(output.body, context);
543
- let contents = {};
544
- contents = smithyClient._json(data);
545
- const response = {
546
- $metadata: deserializeMetadata(output),
547
- ...contents,
548
- };
549
- return response;
550
- };
551
- const de_RemoveTagsFromResourceCommand = async (output, context) => {
552
- if (output.statusCode >= 300) {
553
- return de_CommandError(output, context);
554
- }
555
- const data = await core$1.parseJsonBody(output.body, context);
556
- let contents = {};
557
- contents = smithyClient._json(data);
558
- const response = {
559
- $metadata: deserializeMetadata(output),
560
- ...contents,
561
- };
562
- return response;
563
- };
564
- const de_CommandError = async (output, context) => {
565
- const parsedOutput = {
566
- ...output,
567
- body: await core$1.parseJsonErrorBody(output.body, context),
568
- };
569
- const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
570
- switch (errorCode) {
571
- case "CloudHsmInternalException":
572
- case "com.amazonaws.cloudhsm#CloudHsmInternalException":
573
- throw await de_CloudHsmInternalExceptionRes(parsedOutput);
574
- case "CloudHsmServiceException":
575
- case "com.amazonaws.cloudhsm#CloudHsmServiceException":
576
- throw await de_CloudHsmServiceExceptionRes(parsedOutput);
577
- case "InvalidRequestException":
578
- case "com.amazonaws.cloudhsm#InvalidRequestException":
579
- throw await de_InvalidRequestExceptionRes(parsedOutput);
580
- default:
581
- const parsedBody = parsedOutput.body;
582
- return throwDefaultError({
583
- output,
584
- parsedBody,
585
- errorCode,
586
- });
587
- }
588
- };
589
- const de_CloudHsmInternalExceptionRes = async (parsedOutput, context) => {
590
- const body = parsedOutput.body;
591
- const deserialized = smithyClient._json(body);
592
- const exception = new CloudHsmInternalException({
593
- $metadata: deserializeMetadata(parsedOutput),
594
- ...deserialized,
595
- });
596
- return smithyClient.decorateServiceException(exception, body);
597
- };
598
- const de_CloudHsmServiceExceptionRes = async (parsedOutput, context) => {
599
- const body = parsedOutput.body;
600
- const deserialized = smithyClient._json(body);
601
- const exception = new CloudHsmServiceException({
602
- $metadata: deserializeMetadata(parsedOutput),
603
- ...deserialized,
604
- });
605
- return smithyClient.decorateServiceException(exception, body);
606
- };
607
- const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
608
- const body = parsedOutput.body;
609
- const deserialized = smithyClient._json(body);
610
- const exception = new InvalidRequestException({
611
- $metadata: deserializeMetadata(parsedOutput),
612
- ...deserialized,
613
- });
614
- return smithyClient.decorateServiceException(exception, body);
615
- };
616
- const deserializeMetadata = (output) => ({
617
- httpStatusCode: output.statusCode,
618
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
619
- extendedRequestId: output.headers["x-amz-id-2"],
620
- cfId: output.headers["x-amz-cf-id"],
621
- });
622
- const throwDefaultError = smithyClient.withBaseException(CloudHSMServiceException);
623
- const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
624
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
625
- const contents = {
626
- protocol,
627
- hostname,
628
- port,
629
- method: "POST",
630
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
631
- headers,
632
- };
633
- if (body !== undefined) {
634
- contents.body = body;
635
- }
636
- return new protocolHttp.HttpRequest(contents);
637
- };
638
- function sharedHeaders(operation) {
639
- return {
640
- "content-type": "application/x-amz-json-1.1",
641
- "x-amz-target": `CloudHsmFrontendService.${operation}`,
642
- };
643
- }
184
+ const _ATTR = "AddTagsToResource";
185
+ const _ATTRR = "AddTagsToResourceRequest";
186
+ const _ATTRRd = "AddTagsToResourceResponse";
187
+ const _AZ = "AvailabilityZone";
188
+ const _AZL = "AZList";
189
+ const _C = "Certificate";
190
+ const _CA = "ClientArn";
191
+ const _CC = "ConfigCred";
192
+ const _CF = "CertificateFingerprint";
193
+ const _CFo = "ConfigFile";
194
+ const _CH = "CreateHapg";
195
+ const _CHIE = "CloudHsmInternalException";
196
+ const _CHR = "CreateHapgRequest";
197
+ const _CHRr = "CreateHapgResponse";
198
+ const _CHRre = "CreateHsmRequest";
199
+ const _CHRrea = "CreateHsmResponse";
200
+ const _CHSE = "CloudHsmServiceException";
201
+ const _CHr = "CreateHsm";
202
+ const _CL = "ClientList";
203
+ const _CLC = "CreateLunaClient";
204
+ const _CLCR = "CreateLunaClientRequest";
205
+ const _CLCRr = "CreateLunaClientResponse";
206
+ const _CT = "ClientToken";
207
+ const _CTo = "ConfigType";
208
+ const _CV = "ClientVersion";
209
+ const _DH = "DeleteHapg";
210
+ const _DHR = "DeleteHapgRequest";
211
+ const _DHRe = "DeleteHapgResponse";
212
+ const _DHRel = "DeleteHsmRequest";
213
+ const _DHRele = "DeleteHsmResponse";
214
+ const _DHRes = "DescribeHapgRequest";
215
+ const _DHResc = "DescribeHapgResponse";
216
+ const _DHRescr = "DescribeHsmRequest";
217
+ const _DHRescri = "DescribeHsmResponse";
218
+ const _DHe = "DeleteHsm";
219
+ const _DHes = "DescribeHapg";
220
+ const _DHesc = "DescribeHsm";
221
+ const _DLC = "DeleteLunaClient";
222
+ const _DLCR = "DeleteLunaClientRequest";
223
+ const _DLCRe = "DeleteLunaClientResponse";
224
+ const _DLCRes = "DescribeLunaClientRequest";
225
+ const _DLCResc = "DescribeLunaClientResponse";
226
+ const _DLCe = "DescribeLunaClient";
227
+ const _EI = "EniIp";
228
+ const _EIn = "EniId";
229
+ const _EIx = "ExternalId";
230
+ const _GC = "GetConfig";
231
+ const _GCR = "GetConfigRequest";
232
+ const _GCRe = "GetConfigResponse";
233
+ const _HA = "HapgArn";
234
+ const _HAs = "HsmArn";
235
+ const _HL = "HapgList";
236
+ const _HLAF = "HsmsLastActionFailed";
237
+ const _HLs = "HsmList";
238
+ const _HPD = "HsmsPendingDeletion";
239
+ const _HPR = "HsmsPendingRegistration";
240
+ const _HS = "HapgSerial";
241
+ const _HSN = "HsmSerialNumber";
242
+ const _HT = "HsmType";
243
+ const _IRA = "IamRoleArn";
244
+ const _IRE = "InvalidRequestException";
245
+ const _K = "Key";
246
+ const _L = "Label";
247
+ const _LAZ = "ListAvailableZones";
248
+ const _LAZR = "ListAvailableZonesRequest";
249
+ const _LAZRi = "ListAvailableZonesResponse";
250
+ const _LH = "ListHapgs";
251
+ const _LHR = "ListHapgsRequest";
252
+ const _LHRi = "ListHapgsResponse";
253
+ const _LHRis = "ListHsmsRequest";
254
+ const _LHRist = "ListHsmsResponse";
255
+ const _LHi = "ListHsms";
256
+ const _LLC = "ListLunaClients";
257
+ const _LLCR = "ListLunaClientsRequest";
258
+ const _LLCRi = "ListLunaClientsResponse";
259
+ const _LMT = "LastModifiedTimestamp";
260
+ const _LTFR = "ListTagsForResource";
261
+ const _LTFRR = "ListTagsForResourceRequest";
262
+ const _LTFRRi = "ListTagsForResourceResponse";
263
+ const _MH = "ModifyHapg";
264
+ const _MHR = "ModifyHapgRequest";
265
+ const _MHRo = "ModifyHapgResponse";
266
+ const _MHRod = "ModifyHsmRequest";
267
+ const _MHRodi = "ModifyHsmResponse";
268
+ const _MHo = "ModifyHsm";
269
+ const _MLC = "ModifyLunaClient";
270
+ const _MLCR = "ModifyLunaClientRequest";
271
+ const _MLCRo = "ModifyLunaClientResponse";
272
+ const _NT = "NextToken";
273
+ const _P = "Partitions";
274
+ const _PSL = "PartitionSerialList";
275
+ const _RA = "ResourceArn";
276
+ const _RTFR = "RemoveTagsFromResource";
277
+ const _RTFRR = "RemoveTagsFromResourceRequest";
278
+ const _RTFRRe = "RemoveTagsFromResourceResponse";
279
+ const _S = "Status";
280
+ const _SCLU = "ServerCertLastUpdated";
281
+ const _SCU = "ServerCertUri";
282
+ const _SD = "StatusDetails";
283
+ const _SED = "SubscriptionEndDate";
284
+ const _SI = "SubnetId";
285
+ const _SIy = "SyslogIp";
286
+ const _SK = "SshKey";
287
+ const _SKLU = "SshKeyLastUpdated";
288
+ const _SN = "SerialNumber";
289
+ const _SPK = "SshPublicKey";
290
+ const _SSD = "SubscriptionStartDate";
291
+ const _ST = "SubscriptionType";
292
+ const _SV = "SoftwareVersion";
293
+ const _St = "State";
294
+ const _T = "Tag";
295
+ const _TKL = "TagKeyList";
296
+ const _TL = "TagList";
297
+ const _V = "Value";
298
+ const _VI = "VpcId";
299
+ const _VN = "VendorName";
300
+ const _c = "client";
301
+ const _e = "error";
302
+ const _m = "message";
303
+ const _r = "retryable";
304
+ const _s = "server";
305
+ const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.cloudhsm";
306
+ const _xN = "xmlName";
307
+ const n0 = "com.amazonaws.cloudhsm";
308
+ var AddTagsToResourceRequest = [3, n0, _ATTRR, 0, [_RA, _TL], [0, () => TagList]];
309
+ var AddTagsToResourceResponse = [3, n0, _ATTRRd, 0, [_S], [0]];
310
+ var CloudHsmInternalException = [
311
+ -3,
312
+ n0,
313
+ _CHIE,
314
+ {
315
+ [_e]: _s,
316
+ },
317
+ [_m, _r],
318
+ [0, 2],
319
+ ];
320
+ schema.TypeRegistry.for(n0).registerError(CloudHsmInternalException, CloudHsmInternalException$1);
321
+ var CloudHsmServiceException = [
322
+ -3,
323
+ n0,
324
+ _CHSE,
325
+ {
326
+ [_e]: _c,
327
+ },
328
+ [_m, _r],
329
+ [0, 2],
330
+ ];
331
+ schema.TypeRegistry.for(n0).registerError(CloudHsmServiceException, CloudHsmServiceException$1);
332
+ var CreateHapgRequest = [3, n0, _CHR, 0, [_L], [0]];
333
+ var CreateHapgResponse = [3, n0, _CHRr, 0, [_HA], [0]];
334
+ var CreateHsmRequest = [
335
+ 3,
336
+ n0,
337
+ _CHRre,
338
+ {
339
+ [_xN]: _CHRre,
340
+ },
341
+ [_SI, _SK, _EI, _IRA, _EIx, _ST, _CT, _SIy],
342
+ [
343
+ [
344
+ 0,
345
+ {
346
+ [_xN]: _SI,
347
+ },
348
+ ],
349
+ [
350
+ 0,
351
+ {
352
+ [_xN]: _SK,
353
+ },
354
+ ],
355
+ [
356
+ 0,
357
+ {
358
+ [_xN]: _EI,
359
+ },
360
+ ],
361
+ [
362
+ 0,
363
+ {
364
+ [_xN]: _IRA,
365
+ },
366
+ ],
367
+ [
368
+ 0,
369
+ {
370
+ [_xN]: _EIx,
371
+ },
372
+ ],
373
+ [
374
+ 0,
375
+ {
376
+ [_xN]: _ST,
377
+ },
378
+ ],
379
+ [
380
+ 0,
381
+ {
382
+ [_xN]: _CT,
383
+ },
384
+ ],
385
+ [
386
+ 0,
387
+ {
388
+ [_xN]: _SIy,
389
+ },
390
+ ],
391
+ ],
392
+ ];
393
+ var CreateHsmResponse = [3, n0, _CHRrea, 0, [_HAs], [0]];
394
+ var CreateLunaClientRequest = [3, n0, _CLCR, 0, [_L, _C], [0, 0]];
395
+ var CreateLunaClientResponse = [3, n0, _CLCRr, 0, [_CA], [0]];
396
+ var DeleteHapgRequest = [3, n0, _DHR, 0, [_HA], [0]];
397
+ var DeleteHapgResponse = [3, n0, _DHRe, 0, [_S], [0]];
398
+ var DeleteHsmRequest = [
399
+ 3,
400
+ n0,
401
+ _DHRel,
402
+ {
403
+ [_xN]: _DHRel,
404
+ },
405
+ [_HAs],
406
+ [
407
+ [
408
+ 0,
409
+ {
410
+ [_xN]: _HAs,
411
+ },
412
+ ],
413
+ ],
414
+ ];
415
+ var DeleteHsmResponse = [3, n0, _DHRele, 0, [_S], [0]];
416
+ var DeleteLunaClientRequest = [3, n0, _DLCR, 0, [_CA], [0]];
417
+ var DeleteLunaClientResponse = [3, n0, _DLCRe, 0, [_S], [0]];
418
+ var DescribeHapgRequest = [3, n0, _DHRes, 0, [_HA], [0]];
419
+ var DescribeHapgResponse = [
420
+ 3,
421
+ n0,
422
+ _DHResc,
423
+ 0,
424
+ [_HA, _HS, _HLAF, _HPD, _HPR, _L, _LMT, _PSL, _St],
425
+ [0, 0, 64 | 0, 64 | 0, 64 | 0, 0, 0, 64 | 0, 0],
426
+ ];
427
+ var DescribeHsmRequest = [3, n0, _DHRescr, 0, [_HAs, _HSN], [0, 0]];
428
+ var DescribeHsmResponse = [
429
+ 3,
430
+ n0,
431
+ _DHRescri,
432
+ 0,
433
+ [_HAs, _S, _SD, _AZ, _EIn, _EI, _ST, _SSD, _SED, _VI, _SI, _IRA, _SN, _VN, _HT, _SV, _SPK, _SKLU, _SCU, _SCLU, _P],
434
+ [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 64 | 0],
435
+ ];
436
+ var DescribeLunaClientRequest = [3, n0, _DLCRes, 0, [_CA, _CF], [0, 0]];
437
+ var DescribeLunaClientResponse = [
438
+ 3,
439
+ n0,
440
+ _DLCResc,
441
+ 0,
442
+ [_CA, _C, _CF, _LMT, _L],
443
+ [0, 0, 0, 0, 0],
444
+ ];
445
+ var GetConfigRequest = [3, n0, _GCR, 0, [_CA, _CV, _HL], [0, 0, 64 | 0]];
446
+ var GetConfigResponse = [3, n0, _GCRe, 0, [_CTo, _CFo, _CC], [0, 0, 0]];
447
+ var InvalidRequestException = [
448
+ -3,
449
+ n0,
450
+ _IRE,
451
+ {
452
+ [_e]: _c,
453
+ },
454
+ [_m, _r],
455
+ [0, 2],
456
+ ];
457
+ schema.TypeRegistry.for(n0).registerError(InvalidRequestException, InvalidRequestException$1);
458
+ var ListAvailableZonesRequest = [3, n0, _LAZR, 0, [], []];
459
+ var ListAvailableZonesResponse = [3, n0, _LAZRi, 0, [_AZL], [64 | 0]];
460
+ var ListHapgsRequest = [3, n0, _LHR, 0, [_NT], [0]];
461
+ var ListHapgsResponse = [3, n0, _LHRi, 0, [_HL, _NT], [64 | 0, 0]];
462
+ var ListHsmsRequest = [3, n0, _LHRis, 0, [_NT], [0]];
463
+ var ListHsmsResponse = [3, n0, _LHRist, 0, [_HLs, _NT], [64 | 0, 0]];
464
+ var ListLunaClientsRequest = [3, n0, _LLCR, 0, [_NT], [0]];
465
+ var ListLunaClientsResponse = [3, n0, _LLCRi, 0, [_CL, _NT], [64 | 0, 0]];
466
+ var ListTagsForResourceRequest = [3, n0, _LTFRR, 0, [_RA], [0]];
467
+ var ListTagsForResourceResponse = [3, n0, _LTFRRi, 0, [_TL], [() => TagList]];
468
+ var ModifyHapgRequest = [3, n0, _MHR, 0, [_HA, _L, _PSL], [0, 0, 64 | 0]];
469
+ var ModifyHapgResponse = [3, n0, _MHRo, 0, [_HA], [0]];
470
+ var ModifyHsmRequest = [
471
+ 3,
472
+ n0,
473
+ _MHRod,
474
+ {
475
+ [_xN]: _MHRod,
476
+ },
477
+ [_HAs, _SI, _EI, _IRA, _EIx, _SIy],
478
+ [
479
+ [
480
+ 0,
481
+ {
482
+ [_xN]: _HAs,
483
+ },
484
+ ],
485
+ [
486
+ 0,
487
+ {
488
+ [_xN]: _SI,
489
+ },
490
+ ],
491
+ [
492
+ 0,
493
+ {
494
+ [_xN]: _EI,
495
+ },
496
+ ],
497
+ [
498
+ 0,
499
+ {
500
+ [_xN]: _IRA,
501
+ },
502
+ ],
503
+ [
504
+ 0,
505
+ {
506
+ [_xN]: _EIx,
507
+ },
508
+ ],
509
+ [
510
+ 0,
511
+ {
512
+ [_xN]: _SIy,
513
+ },
514
+ ],
515
+ ],
516
+ ];
517
+ var ModifyHsmResponse = [3, n0, _MHRodi, 0, [_HAs], [0]];
518
+ var ModifyLunaClientRequest = [3, n0, _MLCR, 0, [_CA, _C], [0, 0]];
519
+ var ModifyLunaClientResponse = [3, n0, _MLCRo, 0, [_CA], [0]];
520
+ var RemoveTagsFromResourceRequest = [3, n0, _RTFRR, 0, [_RA, _TKL], [0, 64 | 0]];
521
+ var RemoveTagsFromResourceResponse = [3, n0, _RTFRRe, 0, [_S], [0]];
522
+ var Tag = [3, n0, _T, 0, [_K, _V], [0, 0]];
523
+ var CloudHSMServiceException = [-3, _sm, "CloudHSMServiceException", 0, [], []];
524
+ schema.TypeRegistry.for(_sm).registerError(CloudHSMServiceException, CloudHSMServiceException$1);
525
+ var TagList = [1, n0, _TL, 0, () => Tag];
526
+ var AddTagsToResource = [
527
+ 9,
528
+ n0,
529
+ _ATTR,
530
+ 0,
531
+ () => AddTagsToResourceRequest,
532
+ () => AddTagsToResourceResponse,
533
+ ];
534
+ var CreateHapg = [9, n0, _CH, 0, () => CreateHapgRequest, () => CreateHapgResponse];
535
+ var CreateHsm = [9, n0, _CHr, 0, () => CreateHsmRequest, () => CreateHsmResponse];
536
+ var CreateLunaClient = [
537
+ 9,
538
+ n0,
539
+ _CLC,
540
+ 0,
541
+ () => CreateLunaClientRequest,
542
+ () => CreateLunaClientResponse,
543
+ ];
544
+ var DeleteHapg = [9, n0, _DH, 0, () => DeleteHapgRequest, () => DeleteHapgResponse];
545
+ var DeleteHsm = [9, n0, _DHe, 0, () => DeleteHsmRequest, () => DeleteHsmResponse];
546
+ var DeleteLunaClient = [
547
+ 9,
548
+ n0,
549
+ _DLC,
550
+ 0,
551
+ () => DeleteLunaClientRequest,
552
+ () => DeleteLunaClientResponse,
553
+ ];
554
+ var DescribeHapg = [
555
+ 9,
556
+ n0,
557
+ _DHes,
558
+ 0,
559
+ () => DescribeHapgRequest,
560
+ () => DescribeHapgResponse,
561
+ ];
562
+ var DescribeHsm = [9, n0, _DHesc, 0, () => DescribeHsmRequest, () => DescribeHsmResponse];
563
+ var DescribeLunaClient = [
564
+ 9,
565
+ n0,
566
+ _DLCe,
567
+ 0,
568
+ () => DescribeLunaClientRequest,
569
+ () => DescribeLunaClientResponse,
570
+ ];
571
+ var GetConfig = [9, n0, _GC, 0, () => GetConfigRequest, () => GetConfigResponse];
572
+ var ListAvailableZones = [
573
+ 9,
574
+ n0,
575
+ _LAZ,
576
+ 0,
577
+ () => ListAvailableZonesRequest,
578
+ () => ListAvailableZonesResponse,
579
+ ];
580
+ var ListHapgs = [9, n0, _LH, 0, () => ListHapgsRequest, () => ListHapgsResponse];
581
+ var ListHsms = [9, n0, _LHi, 0, () => ListHsmsRequest, () => ListHsmsResponse];
582
+ var ListLunaClients = [
583
+ 9,
584
+ n0,
585
+ _LLC,
586
+ 0,
587
+ () => ListLunaClientsRequest,
588
+ () => ListLunaClientsResponse,
589
+ ];
590
+ var ListTagsForResource = [
591
+ 9,
592
+ n0,
593
+ _LTFR,
594
+ 0,
595
+ () => ListTagsForResourceRequest,
596
+ () => ListTagsForResourceResponse,
597
+ ];
598
+ var ModifyHapg = [9, n0, _MH, 0, () => ModifyHapgRequest, () => ModifyHapgResponse];
599
+ var ModifyHsm = [9, n0, _MHo, 0, () => ModifyHsmRequest, () => ModifyHsmResponse];
600
+ var ModifyLunaClient = [
601
+ 9,
602
+ n0,
603
+ _MLC,
604
+ 0,
605
+ () => ModifyLunaClientRequest,
606
+ () => ModifyLunaClientResponse,
607
+ ];
608
+ var RemoveTagsFromResource = [
609
+ 9,
610
+ n0,
611
+ _RTFR,
612
+ 0,
613
+ () => RemoveTagsFromResourceRequest,
614
+ () => RemoveTagsFromResourceResponse,
615
+ ];
644
616
 
645
617
  class AddTagsToResourceCommand extends smithyClient.Command
646
618
  .classBuilder()
647
619
  .ep(commonParams)
648
620
  .m(function (Command, cs, config, o) {
649
- return [
650
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
651
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
652
- ];
621
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
653
622
  })
654
623
  .s("CloudHsmFrontendService", "AddTagsToResource", {})
655
624
  .n("CloudHSMClient", "AddTagsToResourceCommand")
656
- .f(void 0, void 0)
657
- .ser(se_AddTagsToResourceCommand)
658
- .de(de_AddTagsToResourceCommand)
625
+ .sc(AddTagsToResource)
659
626
  .build() {
660
627
  }
661
628
 
@@ -663,16 +630,11 @@ class CreateHapgCommand extends smithyClient.Command
663
630
  .classBuilder()
664
631
  .ep(commonParams)
665
632
  .m(function (Command, cs, config, o) {
666
- return [
667
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
668
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
669
- ];
633
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
670
634
  })
671
635
  .s("CloudHsmFrontendService", "CreateHapg", {})
672
636
  .n("CloudHSMClient", "CreateHapgCommand")
673
- .f(void 0, void 0)
674
- .ser(se_CreateHapgCommand)
675
- .de(de_CreateHapgCommand)
637
+ .sc(CreateHapg)
676
638
  .build() {
677
639
  }
678
640
 
@@ -680,16 +642,11 @@ class CreateHsmCommand extends smithyClient.Command
680
642
  .classBuilder()
681
643
  .ep(commonParams)
682
644
  .m(function (Command, cs, config, o) {
683
- return [
684
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
685
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
686
- ];
645
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
687
646
  })
688
647
  .s("CloudHsmFrontendService", "CreateHsm", {})
689
648
  .n("CloudHSMClient", "CreateHsmCommand")
690
- .f(void 0, void 0)
691
- .ser(se_CreateHsmCommand)
692
- .de(de_CreateHsmCommand)
649
+ .sc(CreateHsm)
693
650
  .build() {
694
651
  }
695
652
 
@@ -697,16 +654,11 @@ class CreateLunaClientCommand extends smithyClient.Command
697
654
  .classBuilder()
698
655
  .ep(commonParams)
699
656
  .m(function (Command, cs, config, o) {
700
- return [
701
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
702
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
703
- ];
657
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
704
658
  })
705
659
  .s("CloudHsmFrontendService", "CreateLunaClient", {})
706
660
  .n("CloudHSMClient", "CreateLunaClientCommand")
707
- .f(void 0, void 0)
708
- .ser(se_CreateLunaClientCommand)
709
- .de(de_CreateLunaClientCommand)
661
+ .sc(CreateLunaClient)
710
662
  .build() {
711
663
  }
712
664
 
@@ -714,16 +666,11 @@ class DeleteHapgCommand extends smithyClient.Command
714
666
  .classBuilder()
715
667
  .ep(commonParams)
716
668
  .m(function (Command, cs, config, o) {
717
- return [
718
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
719
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
720
- ];
669
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
721
670
  })
722
671
  .s("CloudHsmFrontendService", "DeleteHapg", {})
723
672
  .n("CloudHSMClient", "DeleteHapgCommand")
724
- .f(void 0, void 0)
725
- .ser(se_DeleteHapgCommand)
726
- .de(de_DeleteHapgCommand)
673
+ .sc(DeleteHapg)
727
674
  .build() {
728
675
  }
729
676
 
@@ -731,16 +678,11 @@ class DeleteHsmCommand extends smithyClient.Command
731
678
  .classBuilder()
732
679
  .ep(commonParams)
733
680
  .m(function (Command, cs, config, o) {
734
- return [
735
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
736
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
737
- ];
681
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
738
682
  })
739
683
  .s("CloudHsmFrontendService", "DeleteHsm", {})
740
684
  .n("CloudHSMClient", "DeleteHsmCommand")
741
- .f(void 0, void 0)
742
- .ser(se_DeleteHsmCommand)
743
- .de(de_DeleteHsmCommand)
685
+ .sc(DeleteHsm)
744
686
  .build() {
745
687
  }
746
688
 
@@ -748,16 +690,11 @@ class DeleteLunaClientCommand extends smithyClient.Command
748
690
  .classBuilder()
749
691
  .ep(commonParams)
750
692
  .m(function (Command, cs, config, o) {
751
- return [
752
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
753
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
754
- ];
693
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
755
694
  })
756
695
  .s("CloudHsmFrontendService", "DeleteLunaClient", {})
757
696
  .n("CloudHSMClient", "DeleteLunaClientCommand")
758
- .f(void 0, void 0)
759
- .ser(se_DeleteLunaClientCommand)
760
- .de(de_DeleteLunaClientCommand)
697
+ .sc(DeleteLunaClient)
761
698
  .build() {
762
699
  }
763
700
 
@@ -765,16 +702,11 @@ class DescribeHapgCommand extends smithyClient.Command
765
702
  .classBuilder()
766
703
  .ep(commonParams)
767
704
  .m(function (Command, cs, config, o) {
768
- return [
769
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
770
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
771
- ];
705
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
772
706
  })
773
707
  .s("CloudHsmFrontendService", "DescribeHapg", {})
774
708
  .n("CloudHSMClient", "DescribeHapgCommand")
775
- .f(void 0, void 0)
776
- .ser(se_DescribeHapgCommand)
777
- .de(de_DescribeHapgCommand)
709
+ .sc(DescribeHapg)
778
710
  .build() {
779
711
  }
780
712
 
@@ -782,16 +714,11 @@ class DescribeHsmCommand extends smithyClient.Command
782
714
  .classBuilder()
783
715
  .ep(commonParams)
784
716
  .m(function (Command, cs, config, o) {
785
- return [
786
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
787
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
788
- ];
717
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
789
718
  })
790
719
  .s("CloudHsmFrontendService", "DescribeHsm", {})
791
720
  .n("CloudHSMClient", "DescribeHsmCommand")
792
- .f(void 0, void 0)
793
- .ser(se_DescribeHsmCommand)
794
- .de(de_DescribeHsmCommand)
721
+ .sc(DescribeHsm)
795
722
  .build() {
796
723
  }
797
724
 
@@ -799,16 +726,11 @@ class DescribeLunaClientCommand extends smithyClient.Command
799
726
  .classBuilder()
800
727
  .ep(commonParams)
801
728
  .m(function (Command, cs, config, o) {
802
- return [
803
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
804
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
805
- ];
729
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
806
730
  })
807
731
  .s("CloudHsmFrontendService", "DescribeLunaClient", {})
808
732
  .n("CloudHSMClient", "DescribeLunaClientCommand")
809
- .f(void 0, void 0)
810
- .ser(se_DescribeLunaClientCommand)
811
- .de(de_DescribeLunaClientCommand)
733
+ .sc(DescribeLunaClient)
812
734
  .build() {
813
735
  }
814
736
 
@@ -816,16 +738,11 @@ class GetConfigCommand extends smithyClient.Command
816
738
  .classBuilder()
817
739
  .ep(commonParams)
818
740
  .m(function (Command, cs, config, o) {
819
- return [
820
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
821
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
822
- ];
741
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
823
742
  })
824
743
  .s("CloudHsmFrontendService", "GetConfig", {})
825
744
  .n("CloudHSMClient", "GetConfigCommand")
826
- .f(void 0, void 0)
827
- .ser(se_GetConfigCommand)
828
- .de(de_GetConfigCommand)
745
+ .sc(GetConfig)
829
746
  .build() {
830
747
  }
831
748
 
@@ -833,16 +750,11 @@ class ListAvailableZonesCommand extends smithyClient.Command
833
750
  .classBuilder()
834
751
  .ep(commonParams)
835
752
  .m(function (Command, cs, config, o) {
836
- return [
837
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
838
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
839
- ];
753
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
840
754
  })
841
755
  .s("CloudHsmFrontendService", "ListAvailableZones", {})
842
756
  .n("CloudHSMClient", "ListAvailableZonesCommand")
843
- .f(void 0, void 0)
844
- .ser(se_ListAvailableZonesCommand)
845
- .de(de_ListAvailableZonesCommand)
757
+ .sc(ListAvailableZones)
846
758
  .build() {
847
759
  }
848
760
 
@@ -850,16 +762,11 @@ class ListHapgsCommand extends smithyClient.Command
850
762
  .classBuilder()
851
763
  .ep(commonParams)
852
764
  .m(function (Command, cs, config, o) {
853
- return [
854
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
855
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
856
- ];
765
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
857
766
  })
858
767
  .s("CloudHsmFrontendService", "ListHapgs", {})
859
768
  .n("CloudHSMClient", "ListHapgsCommand")
860
- .f(void 0, void 0)
861
- .ser(se_ListHapgsCommand)
862
- .de(de_ListHapgsCommand)
769
+ .sc(ListHapgs)
863
770
  .build() {
864
771
  }
865
772
 
@@ -867,16 +774,11 @@ class ListHsmsCommand extends smithyClient.Command
867
774
  .classBuilder()
868
775
  .ep(commonParams)
869
776
  .m(function (Command, cs, config, o) {
870
- return [
871
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
872
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
873
- ];
777
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
874
778
  })
875
779
  .s("CloudHsmFrontendService", "ListHsms", {})
876
780
  .n("CloudHSMClient", "ListHsmsCommand")
877
- .f(void 0, void 0)
878
- .ser(se_ListHsmsCommand)
879
- .de(de_ListHsmsCommand)
781
+ .sc(ListHsms)
880
782
  .build() {
881
783
  }
882
784
 
@@ -884,16 +786,11 @@ class ListLunaClientsCommand extends smithyClient.Command
884
786
  .classBuilder()
885
787
  .ep(commonParams)
886
788
  .m(function (Command, cs, config, o) {
887
- return [
888
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
889
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
890
- ];
789
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
891
790
  })
892
791
  .s("CloudHsmFrontendService", "ListLunaClients", {})
893
792
  .n("CloudHSMClient", "ListLunaClientsCommand")
894
- .f(void 0, void 0)
895
- .ser(se_ListLunaClientsCommand)
896
- .de(de_ListLunaClientsCommand)
793
+ .sc(ListLunaClients)
897
794
  .build() {
898
795
  }
899
796
 
@@ -901,16 +798,11 @@ class ListTagsForResourceCommand extends smithyClient.Command
901
798
  .classBuilder()
902
799
  .ep(commonParams)
903
800
  .m(function (Command, cs, config, o) {
904
- return [
905
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
906
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
907
- ];
801
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
908
802
  })
909
803
  .s("CloudHsmFrontendService", "ListTagsForResource", {})
910
804
  .n("CloudHSMClient", "ListTagsForResourceCommand")
911
- .f(void 0, void 0)
912
- .ser(se_ListTagsForResourceCommand)
913
- .de(de_ListTagsForResourceCommand)
805
+ .sc(ListTagsForResource)
914
806
  .build() {
915
807
  }
916
808
 
@@ -918,16 +810,11 @@ class ModifyHapgCommand extends smithyClient.Command
918
810
  .classBuilder()
919
811
  .ep(commonParams)
920
812
  .m(function (Command, cs, config, o) {
921
- return [
922
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
923
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
924
- ];
813
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
925
814
  })
926
815
  .s("CloudHsmFrontendService", "ModifyHapg", {})
927
816
  .n("CloudHSMClient", "ModifyHapgCommand")
928
- .f(void 0, void 0)
929
- .ser(se_ModifyHapgCommand)
930
- .de(de_ModifyHapgCommand)
817
+ .sc(ModifyHapg)
931
818
  .build() {
932
819
  }
933
820
 
@@ -935,16 +822,11 @@ class ModifyHsmCommand extends smithyClient.Command
935
822
  .classBuilder()
936
823
  .ep(commonParams)
937
824
  .m(function (Command, cs, config, o) {
938
- return [
939
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
940
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
941
- ];
825
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
942
826
  })
943
827
  .s("CloudHsmFrontendService", "ModifyHsm", {})
944
828
  .n("CloudHSMClient", "ModifyHsmCommand")
945
- .f(void 0, void 0)
946
- .ser(se_ModifyHsmCommand)
947
- .de(de_ModifyHsmCommand)
829
+ .sc(ModifyHsm)
948
830
  .build() {
949
831
  }
950
832
 
@@ -952,16 +834,11 @@ class ModifyLunaClientCommand extends smithyClient.Command
952
834
  .classBuilder()
953
835
  .ep(commonParams)
954
836
  .m(function (Command, cs, config, o) {
955
- return [
956
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
957
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
958
- ];
837
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
959
838
  })
960
839
  .s("CloudHsmFrontendService", "ModifyLunaClient", {})
961
840
  .n("CloudHSMClient", "ModifyLunaClientCommand")
962
- .f(void 0, void 0)
963
- .ser(se_ModifyLunaClientCommand)
964
- .de(de_ModifyLunaClientCommand)
841
+ .sc(ModifyLunaClient)
965
842
  .build() {
966
843
  }
967
844
 
@@ -969,16 +846,11 @@ class RemoveTagsFromResourceCommand extends smithyClient.Command
969
846
  .classBuilder()
970
847
  .ep(commonParams)
971
848
  .m(function (Command, cs, config, o) {
972
- return [
973
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
974
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
975
- ];
849
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
976
850
  })
977
851
  .s("CloudHsmFrontendService", "RemoveTagsFromResource", {})
978
852
  .n("CloudHSMClient", "RemoveTagsFromResourceCommand")
979
- .f(void 0, void 0)
980
- .ser(se_RemoveTagsFromResourceCommand)
981
- .de(de_RemoveTagsFromResourceCommand)
853
+ .sc(RemoveTagsFromResource)
982
854
  .build() {
983
855
  }
984
856
 
@@ -1020,10 +892,10 @@ exports.AddTagsToResourceCommand = AddTagsToResourceCommand;
1020
892
  exports.ClientVersion = ClientVersion;
1021
893
  exports.CloudHSM = CloudHSM;
1022
894
  exports.CloudHSMClient = CloudHSMClient;
1023
- exports.CloudHSMServiceException = CloudHSMServiceException;
1024
- exports.CloudHsmInternalException = CloudHsmInternalException;
895
+ exports.CloudHSMServiceException = CloudHSMServiceException$1;
896
+ exports.CloudHsmInternalException = CloudHsmInternalException$1;
1025
897
  exports.CloudHsmObjectState = CloudHsmObjectState;
1026
- exports.CloudHsmServiceException = CloudHsmServiceException;
898
+ exports.CloudHsmServiceException = CloudHsmServiceException$1;
1027
899
  exports.CreateHapgCommand = CreateHapgCommand;
1028
900
  exports.CreateHsmCommand = CreateHsmCommand;
1029
901
  exports.CreateLunaClientCommand = CreateLunaClientCommand;
@@ -1035,7 +907,7 @@ exports.DescribeHsmCommand = DescribeHsmCommand;
1035
907
  exports.DescribeLunaClientCommand = DescribeLunaClientCommand;
1036
908
  exports.GetConfigCommand = GetConfigCommand;
1037
909
  exports.HsmStatus = HsmStatus;
1038
- exports.InvalidRequestException = InvalidRequestException;
910
+ exports.InvalidRequestException = InvalidRequestException$1;
1039
911
  exports.ListAvailableZonesCommand = ListAvailableZonesCommand;
1040
912
  exports.ListHapgsCommand = ListHapgsCommand;
1041
913
  exports.ListHsmsCommand = ListHsmsCommand;