@aws-sdk/client-cloudhsm 3.183.0 → 3.185.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 (33) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/protocols/Aws_json1_1.js +2 -2
  3. package/dist-es/CloudHSM.js +89 -82
  4. package/dist-es/CloudHSMClient.js +28 -22
  5. package/dist-es/commands/AddTagsToResourceCommand.js +28 -21
  6. package/dist-es/commands/CreateHapgCommand.js +28 -21
  7. package/dist-es/commands/CreateHsmCommand.js +28 -21
  8. package/dist-es/commands/CreateLunaClientCommand.js +28 -21
  9. package/dist-es/commands/DeleteHapgCommand.js +28 -21
  10. package/dist-es/commands/DeleteHsmCommand.js +28 -21
  11. package/dist-es/commands/DeleteLunaClientCommand.js +28 -21
  12. package/dist-es/commands/DescribeHapgCommand.js +28 -21
  13. package/dist-es/commands/DescribeHsmCommand.js +28 -21
  14. package/dist-es/commands/DescribeLunaClientCommand.js +28 -21
  15. package/dist-es/commands/GetConfigCommand.js +28 -21
  16. package/dist-es/commands/ListAvailableZonesCommand.js +28 -21
  17. package/dist-es/commands/ListHapgsCommand.js +28 -21
  18. package/dist-es/commands/ListHsmsCommand.js +28 -21
  19. package/dist-es/commands/ListLunaClientsCommand.js +28 -21
  20. package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
  21. package/dist-es/commands/ModifyHapgCommand.js +28 -21
  22. package/dist-es/commands/ModifyHsmCommand.js +28 -21
  23. package/dist-es/commands/ModifyLunaClientCommand.js +28 -21
  24. package/dist-es/commands/RemoveTagsFromResourceCommand.js +28 -21
  25. package/dist-es/endpoints.js +8 -8
  26. package/dist-es/models/CloudHSMServiceException.js +10 -5
  27. package/dist-es/models/models_0.js +78 -159
  28. package/dist-es/protocols/Aws_json1_1.js +1591 -1192
  29. package/dist-es/runtimeConfig.browser.js +12 -26
  30. package/dist-es/runtimeConfig.js +12 -30
  31. package/dist-es/runtimeConfig.native.js +5 -8
  32. package/dist-es/runtimeConfig.shared.js +11 -8
  33. package/package.json +5 -5
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { CreateHsmRequestFilterSensitiveLog, CreateHsmResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1CreateHsmCommand, serializeAws_json1_1CreateHsmCommand } from "../protocols/Aws_json1_1";
5
- export class CreateHsmCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var CreateHsmCommand = (function (_super) {
7
+ __extends(CreateHsmCommand, _super);
8
+ function CreateHsmCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CreateHsmCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "CloudHSMClient";
15
- const commandName = "CreateHsmCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "CloudHSMClient";
18
+ var commandName = "CreateHsmCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: CreateHsmRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CreateHsmResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateHsmCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1CreateHsmCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CreateHsmCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1CreateHsmCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CreateHsmCommand;
38
+ }($Command));
39
+ export { CreateHsmCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { CreateLunaClientRequestFilterSensitiveLog, CreateLunaClientResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1CreateLunaClientCommand, serializeAws_json1_1CreateLunaClientCommand, } from "../protocols/Aws_json1_1";
5
- export class CreateLunaClientCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var CreateLunaClientCommand = (function (_super) {
7
+ __extends(CreateLunaClientCommand, _super);
8
+ function CreateLunaClientCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CreateLunaClientCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "CloudHSMClient";
15
- const commandName = "CreateLunaClientCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "CloudHSMClient";
18
+ var commandName = "CreateLunaClientCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: CreateLunaClientRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CreateLunaClientResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateLunaClientCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1CreateLunaClientCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CreateLunaClientCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1CreateLunaClientCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CreateLunaClientCommand;
38
+ }($Command));
39
+ export { CreateLunaClientCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DeleteHapgRequestFilterSensitiveLog, DeleteHapgResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1DeleteHapgCommand, serializeAws_json1_1DeleteHapgCommand, } from "../protocols/Aws_json1_1";
5
- export class DeleteHapgCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var DeleteHapgCommand = (function (_super) {
7
+ __extends(DeleteHapgCommand, _super);
8
+ function DeleteHapgCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DeleteHapgCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "CloudHSMClient";
15
- const commandName = "DeleteHapgCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "CloudHSMClient";
18
+ var commandName = "DeleteHapgCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: DeleteHapgRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: DeleteHapgResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DeleteHapgCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1DeleteHapgCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DeleteHapgCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1DeleteHapgCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DeleteHapgCommand;
38
+ }($Command));
39
+ export { DeleteHapgCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DeleteHsmRequestFilterSensitiveLog, DeleteHsmResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1DeleteHsmCommand, serializeAws_json1_1DeleteHsmCommand } from "../protocols/Aws_json1_1";
5
- export class DeleteHsmCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var DeleteHsmCommand = (function (_super) {
7
+ __extends(DeleteHsmCommand, _super);
8
+ function DeleteHsmCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DeleteHsmCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "CloudHSMClient";
15
- const commandName = "DeleteHsmCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "CloudHSMClient";
18
+ var commandName = "DeleteHsmCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: DeleteHsmRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: DeleteHsmResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DeleteHsmCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1DeleteHsmCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DeleteHsmCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1DeleteHsmCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DeleteHsmCommand;
38
+ }($Command));
39
+ export { DeleteHsmCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DeleteLunaClientRequestFilterSensitiveLog, DeleteLunaClientResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1DeleteLunaClientCommand, serializeAws_json1_1DeleteLunaClientCommand, } from "../protocols/Aws_json1_1";
5
- export class DeleteLunaClientCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var DeleteLunaClientCommand = (function (_super) {
7
+ __extends(DeleteLunaClientCommand, _super);
8
+ function DeleteLunaClientCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DeleteLunaClientCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "CloudHSMClient";
15
- const commandName = "DeleteLunaClientCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "CloudHSMClient";
18
+ var commandName = "DeleteLunaClientCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: DeleteLunaClientRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: DeleteLunaClientResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DeleteLunaClientCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1DeleteLunaClientCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DeleteLunaClientCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1DeleteLunaClientCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DeleteLunaClientCommand;
38
+ }($Command));
39
+ export { DeleteLunaClientCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DescribeHapgRequestFilterSensitiveLog, DescribeHapgResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1DescribeHapgCommand, serializeAws_json1_1DescribeHapgCommand, } from "../protocols/Aws_json1_1";
5
- export class DescribeHapgCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var DescribeHapgCommand = (function (_super) {
7
+ __extends(DescribeHapgCommand, _super);
8
+ function DescribeHapgCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DescribeHapgCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "CloudHSMClient";
15
- const commandName = "DescribeHapgCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "CloudHSMClient";
18
+ var commandName = "DescribeHapgCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: DescribeHapgRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: DescribeHapgResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DescribeHapgCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1DescribeHapgCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DescribeHapgCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1DescribeHapgCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DescribeHapgCommand;
38
+ }($Command));
39
+ export { DescribeHapgCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DescribeHsmRequestFilterSensitiveLog, DescribeHsmResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1DescribeHsmCommand, serializeAws_json1_1DescribeHsmCommand, } from "../protocols/Aws_json1_1";
5
- export class DescribeHsmCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var DescribeHsmCommand = (function (_super) {
7
+ __extends(DescribeHsmCommand, _super);
8
+ function DescribeHsmCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DescribeHsmCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "CloudHSMClient";
15
- const commandName = "DescribeHsmCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "CloudHSMClient";
18
+ var commandName = "DescribeHsmCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: DescribeHsmRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: DescribeHsmResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DescribeHsmCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1DescribeHsmCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DescribeHsmCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1DescribeHsmCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DescribeHsmCommand;
38
+ }($Command));
39
+ export { DescribeHsmCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DescribeLunaClientRequestFilterSensitiveLog, DescribeLunaClientResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1DescribeLunaClientCommand, serializeAws_json1_1DescribeLunaClientCommand, } from "../protocols/Aws_json1_1";
5
- export class DescribeLunaClientCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var DescribeLunaClientCommand = (function (_super) {
7
+ __extends(DescribeLunaClientCommand, _super);
8
+ function DescribeLunaClientCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DescribeLunaClientCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "CloudHSMClient";
15
- const commandName = "DescribeLunaClientCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "CloudHSMClient";
18
+ var commandName = "DescribeLunaClientCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: DescribeLunaClientRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: DescribeLunaClientResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DescribeLunaClientCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1DescribeLunaClientCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DescribeLunaClientCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1DescribeLunaClientCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DescribeLunaClientCommand;
38
+ }($Command));
39
+ export { DescribeLunaClientCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { GetConfigRequestFilterSensitiveLog, GetConfigResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1GetConfigCommand, serializeAws_json1_1GetConfigCommand } from "../protocols/Aws_json1_1";
5
- export class GetConfigCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var GetConfigCommand = (function (_super) {
7
+ __extends(GetConfigCommand, _super);
8
+ function GetConfigCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ GetConfigCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "CloudHSMClient";
15
- const commandName = "GetConfigCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "CloudHSMClient";
18
+ var commandName = "GetConfigCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: GetConfigRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: GetConfigResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ GetConfigCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1GetConfigCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ GetConfigCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1GetConfigCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return GetConfigCommand;
38
+ }($Command));
39
+ export { GetConfigCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { ListAvailableZonesRequestFilterSensitiveLog, ListAvailableZonesResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1ListAvailableZonesCommand, serializeAws_json1_1ListAvailableZonesCommand, } from "../protocols/Aws_json1_1";
5
- export class ListAvailableZonesCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var ListAvailableZonesCommand = (function (_super) {
7
+ __extends(ListAvailableZonesCommand, _super);
8
+ function ListAvailableZonesCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ ListAvailableZonesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "CloudHSMClient";
15
- const commandName = "ListAvailableZonesCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "CloudHSMClient";
18
+ var commandName = "ListAvailableZonesCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: ListAvailableZonesRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: ListAvailableZonesResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListAvailableZonesCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1ListAvailableZonesCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ ListAvailableZonesCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1ListAvailableZonesCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return ListAvailableZonesCommand;
38
+ }($Command));
39
+ export { ListAvailableZonesCommand };