@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 { ListHapgsRequestFilterSensitiveLog, ListHapgsResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1ListHapgsCommand, serializeAws_json1_1ListHapgsCommand } from "../protocols/Aws_json1_1";
5
- export class ListHapgsCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var ListHapgsCommand = (function (_super) {
7
+ __extends(ListHapgsCommand, _super);
8
+ function ListHapgsCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ ListHapgsCommand.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 = "ListHapgsCommand";
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 = "ListHapgsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: ListHapgsRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: ListHapgsResponseFilterSensitiveLog,
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
+ ListHapgsCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1ListHapgsCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ ListHapgsCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1ListHapgsCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return ListHapgsCommand;
38
+ }($Command));
39
+ export { ListHapgsCommand };
@@ -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 { ListHsmsRequestFilterSensitiveLog, ListHsmsResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1ListHsmsCommand, serializeAws_json1_1ListHsmsCommand } from "../protocols/Aws_json1_1";
5
- export class ListHsmsCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var ListHsmsCommand = (function (_super) {
7
+ __extends(ListHsmsCommand, _super);
8
+ function ListHsmsCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ ListHsmsCommand.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 = "ListHsmsCommand";
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 = "ListHsmsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: ListHsmsRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: ListHsmsResponseFilterSensitiveLog,
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
+ ListHsmsCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1ListHsmsCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ ListHsmsCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1ListHsmsCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return ListHsmsCommand;
38
+ }($Command));
39
+ export { ListHsmsCommand };
@@ -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 { ListLunaClientsRequestFilterSensitiveLog, ListLunaClientsResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1ListLunaClientsCommand, serializeAws_json1_1ListLunaClientsCommand, } from "../protocols/Aws_json1_1";
5
- export class ListLunaClientsCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var ListLunaClientsCommand = (function (_super) {
7
+ __extends(ListLunaClientsCommand, _super);
8
+ function ListLunaClientsCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ ListLunaClientsCommand.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 = "ListLunaClientsCommand";
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 = "ListLunaClientsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: ListLunaClientsRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: ListLunaClientsResponseFilterSensitiveLog,
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
+ ListLunaClientsCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1ListLunaClientsCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ ListLunaClientsCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1ListLunaClientsCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return ListLunaClientsCommand;
38
+ }($Command));
39
+ export { ListLunaClientsCommand };
@@ -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 { ListTagsForResourceRequestFilterSensitiveLog, ListTagsForResourceResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1ListTagsForResourceCommand, serializeAws_json1_1ListTagsForResourceCommand, } from "../protocols/Aws_json1_1";
5
- export class ListTagsForResourceCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var ListTagsForResourceCommand = (function (_super) {
7
+ __extends(ListTagsForResourceCommand, _super);
8
+ function ListTagsForResourceCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ ListTagsForResourceCommand.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 = "ListTagsForResourceCommand";
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 = "ListTagsForResourceCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: ListTagsForResourceRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: ListTagsForResourceResponseFilterSensitiveLog,
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
+ ListTagsForResourceCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1ListTagsForResourceCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ ListTagsForResourceCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1ListTagsForResourceCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return ListTagsForResourceCommand;
38
+ }($Command));
39
+ export { ListTagsForResourceCommand };
@@ -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 { ModifyHapgRequestFilterSensitiveLog, ModifyHapgResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1ModifyHapgCommand, serializeAws_json1_1ModifyHapgCommand, } from "../protocols/Aws_json1_1";
5
- export class ModifyHapgCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var ModifyHapgCommand = (function (_super) {
7
+ __extends(ModifyHapgCommand, _super);
8
+ function ModifyHapgCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ ModifyHapgCommand.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 = "ModifyHapgCommand";
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 = "ModifyHapgCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: ModifyHapgRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: ModifyHapgResponseFilterSensitiveLog,
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
+ ModifyHapgCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1ModifyHapgCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ ModifyHapgCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1ModifyHapgCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return ModifyHapgCommand;
38
+ }($Command));
39
+ export { ModifyHapgCommand };
@@ -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 { ModifyHsmRequestFilterSensitiveLog, ModifyHsmResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1ModifyHsmCommand, serializeAws_json1_1ModifyHsmCommand } from "../protocols/Aws_json1_1";
5
- export class ModifyHsmCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var ModifyHsmCommand = (function (_super) {
7
+ __extends(ModifyHsmCommand, _super);
8
+ function ModifyHsmCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ ModifyHsmCommand.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 = "ModifyHsmCommand";
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 = "ModifyHsmCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: ModifyHsmRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: ModifyHsmResponseFilterSensitiveLog,
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
+ ModifyHsmCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1ModifyHsmCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ ModifyHsmCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1ModifyHsmCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return ModifyHsmCommand;
38
+ }($Command));
39
+ export { ModifyHsmCommand };
@@ -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 { ModifyLunaClientRequestFilterSensitiveLog, ModifyLunaClientResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1ModifyLunaClientCommand, serializeAws_json1_1ModifyLunaClientCommand, } from "../protocols/Aws_json1_1";
5
- export class ModifyLunaClientCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var ModifyLunaClientCommand = (function (_super) {
7
+ __extends(ModifyLunaClientCommand, _super);
8
+ function ModifyLunaClientCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ ModifyLunaClientCommand.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 = "ModifyLunaClientCommand";
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 = "ModifyLunaClientCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: ModifyLunaClientRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: ModifyLunaClientResponseFilterSensitiveLog,
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
+ ModifyLunaClientCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1ModifyLunaClientCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ ModifyLunaClientCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1ModifyLunaClientCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return ModifyLunaClientCommand;
38
+ }($Command));
39
+ export { ModifyLunaClientCommand };
@@ -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 { RemoveTagsFromResourceRequestFilterSensitiveLog, RemoveTagsFromResourceResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1RemoveTagsFromResourceCommand, serializeAws_json1_1RemoveTagsFromResourceCommand, } from "../protocols/Aws_json1_1";
5
- export class RemoveTagsFromResourceCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var RemoveTagsFromResourceCommand = (function (_super) {
7
+ __extends(RemoveTagsFromResourceCommand, _super);
8
+ function RemoveTagsFromResourceCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ RemoveTagsFromResourceCommand.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 = "RemoveTagsFromResourceCommand";
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 = "RemoveTagsFromResourceCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: RemoveTagsFromResourceRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: RemoveTagsFromResourceResponseFilterSensitiveLog,
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
+ RemoveTagsFromResourceCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1RemoveTagsFromResourceCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ RemoveTagsFromResourceCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1RemoveTagsFromResourceCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return RemoveTagsFromResourceCommand;
38
+ }($Command));
39
+ export { RemoveTagsFromResourceCommand };
@@ -1,6 +1,7 @@
1
+ import { __assign, __awaiter, __generator } from "tslib";
1
2
  import { getRegionInfo } from "@aws-sdk/config-resolver";
2
- const regionHash = {};
3
- const partitionHash = {
3
+ var regionHash = {};
4
+ var partitionHash = {
4
5
  aws: {
5
6
  regions: [
6
7
  "af-south-1",
@@ -120,9 +121,8 @@ const partitionHash = {
120
121
  ],
121
122
  },
122
123
  };
123
- export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
124
- ...options,
125
- signingService: "cloudhsm",
126
- regionHash,
127
- partitionHash,
128
- });
124
+ export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
125
+ return __generator(this, function (_a) {
126
+ return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "cloudhsm", regionHash: regionHash, partitionHash: partitionHash }))];
127
+ });
128
+ }); };
@@ -1,7 +1,12 @@
1
+ import { __extends } from "tslib";
1
2
  import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
2
- export class CloudHSMServiceException extends __ServiceException {
3
- constructor(options) {
4
- super(options);
5
- Object.setPrototypeOf(this, CloudHSMServiceException.prototype);
3
+ var CloudHSMServiceException = (function (_super) {
4
+ __extends(CloudHSMServiceException, _super);
5
+ function CloudHSMServiceException(options) {
6
+ var _this = _super.call(this, options) || this;
7
+ Object.setPrototypeOf(_this, CloudHSMServiceException.prototype);
8
+ return _this;
6
9
  }
7
- }
10
+ return CloudHSMServiceException;
11
+ }(__ServiceException));
12
+ export { CloudHSMServiceException };