@aws-sdk/client-cloudhsm-v2 3.186.0 → 3.188.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 (30) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist-es/CloudHSMV2.js +62 -69
  3. package/dist-es/CloudHSMV2Client.js +22 -28
  4. package/dist-es/commands/CopyBackupToRegionCommand.js +21 -28
  5. package/dist-es/commands/CreateClusterCommand.js +21 -28
  6. package/dist-es/commands/CreateHsmCommand.js +21 -28
  7. package/dist-es/commands/DeleteBackupCommand.js +21 -28
  8. package/dist-es/commands/DeleteClusterCommand.js +21 -28
  9. package/dist-es/commands/DeleteHsmCommand.js +21 -28
  10. package/dist-es/commands/DescribeBackupsCommand.js +21 -28
  11. package/dist-es/commands/DescribeClustersCommand.js +21 -28
  12. package/dist-es/commands/InitializeClusterCommand.js +21 -28
  13. package/dist-es/commands/ListTagsCommand.js +21 -28
  14. package/dist-es/commands/ModifyBackupAttributesCommand.js +21 -28
  15. package/dist-es/commands/ModifyClusterCommand.js +21 -28
  16. package/dist-es/commands/RestoreBackupCommand.js +21 -28
  17. package/dist-es/commands/TagResourceCommand.js +21 -28
  18. package/dist-es/commands/UntagResourceCommand.js +21 -28
  19. package/dist-es/endpoints.js +8 -8
  20. package/dist-es/models/CloudHSMV2ServiceException.js +5 -10
  21. package/dist-es/models/models_0.js +183 -110
  22. package/dist-es/pagination/DescribeBackupsPaginator.js +25 -68
  23. package/dist-es/pagination/DescribeClustersPaginator.js +25 -68
  24. package/dist-es/pagination/ListTagsPaginator.js +25 -68
  25. package/dist-es/protocols/Aws_json1_1.js +1086 -1415
  26. package/dist-es/runtimeConfig.browser.js +26 -12
  27. package/dist-es/runtimeConfig.js +30 -12
  28. package/dist-es/runtimeConfig.native.js +8 -5
  29. package/dist-es/runtimeConfig.shared.js +8 -11
  30. package/package.json +33 -33
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DeleteClusterRequestFilterSensitiveLog, DeleteClusterResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DeleteClusterCommand, serializeAws_json1_1DeleteClusterCommand, } from "../protocols/Aws_json1_1";
6
- var DeleteClusterCommand = (function (_super) {
7
- __extends(DeleteClusterCommand, _super);
8
- function DeleteClusterCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteClusterCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteClusterCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "CloudHSMV2Client";
18
- var commandName = "DeleteClusterCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "CloudHSMV2Client";
15
+ const commandName = "DeleteClusterCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteClusterRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteClusterResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteClusterCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1DeleteClusterCommand(input, context);
33
- };
34
- DeleteClusterCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DeleteClusterCommand(output, context);
36
- };
37
- return DeleteClusterCommand;
38
- }($Command));
39
- export { DeleteClusterCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DeleteHsmRequestFilterSensitiveLog, DeleteHsmResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DeleteHsmCommand, serializeAws_json1_1DeleteHsmCommand } from "../protocols/Aws_json1_1";
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;
5
+ export class DeleteHsmCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteHsmCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "CloudHSMV2Client";
18
- var commandName = "DeleteHsmCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "CloudHSMV2Client";
15
+ const commandName = "DeleteHsmCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteHsmRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteHsmResponseFilterSensitiveLog,
25
22
  };
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) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1DeleteHsmCommand(input, context);
33
- };
34
- DeleteHsmCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DeleteHsmCommand(output, context);
36
- };
37
- return DeleteHsmCommand;
38
- }($Command));
39
- export { DeleteHsmCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DescribeBackupsRequestFilterSensitiveLog, DescribeBackupsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DescribeBackupsCommand, serializeAws_json1_1DescribeBackupsCommand, } from "../protocols/Aws_json1_1";
6
- var DescribeBackupsCommand = (function (_super) {
7
- __extends(DescribeBackupsCommand, _super);
8
- function DescribeBackupsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeBackupsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeBackupsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "CloudHSMV2Client";
18
- var commandName = "DescribeBackupsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "CloudHSMV2Client";
15
+ const commandName = "DescribeBackupsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeBackupsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeBackupsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeBackupsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1DescribeBackupsCommand(input, context);
33
- };
34
- DescribeBackupsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DescribeBackupsCommand(output, context);
36
- };
37
- return DescribeBackupsCommand;
38
- }($Command));
39
- export { DescribeBackupsCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DescribeClustersRequestFilterSensitiveLog, DescribeClustersResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DescribeClustersCommand, serializeAws_json1_1DescribeClustersCommand, } from "../protocols/Aws_json1_1";
6
- var DescribeClustersCommand = (function (_super) {
7
- __extends(DescribeClustersCommand, _super);
8
- function DescribeClustersCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeClustersCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeClustersCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "CloudHSMV2Client";
18
- var commandName = "DescribeClustersCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "CloudHSMV2Client";
15
+ const commandName = "DescribeClustersCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeClustersRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeClustersResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeClustersCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1DescribeClustersCommand(input, context);
33
- };
34
- DescribeClustersCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DescribeClustersCommand(output, context);
36
- };
37
- return DescribeClustersCommand;
38
- }($Command));
39
- export { DescribeClustersCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { InitializeClusterRequestFilterSensitiveLog, InitializeClusterResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1InitializeClusterCommand, serializeAws_json1_1InitializeClusterCommand, } from "../protocols/Aws_json1_1";
6
- var InitializeClusterCommand = (function (_super) {
7
- __extends(InitializeClusterCommand, _super);
8
- function InitializeClusterCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class InitializeClusterCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- InitializeClusterCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "CloudHSMV2Client";
18
- var commandName = "InitializeClusterCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "CloudHSMV2Client";
15
+ const commandName = "InitializeClusterCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: InitializeClusterRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: InitializeClusterResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- InitializeClusterCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1InitializeClusterCommand(input, context);
33
- };
34
- InitializeClusterCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1InitializeClusterCommand(output, context);
36
- };
37
- return InitializeClusterCommand;
38
- }($Command));
39
- export { InitializeClusterCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ListTagsRequestFilterSensitiveLog, ListTagsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListTagsCommand, serializeAws_json1_1ListTagsCommand } from "../protocols/Aws_json1_1";
6
- var ListTagsCommand = (function (_super) {
7
- __extends(ListTagsCommand, _super);
8
- function ListTagsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListTagsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListTagsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "CloudHSMV2Client";
18
- var commandName = "ListTagsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "CloudHSMV2Client";
15
+ const commandName = "ListTagsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListTagsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListTagsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListTagsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1ListTagsCommand(input, context);
33
- };
34
- ListTagsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListTagsCommand(output, context);
36
- };
37
- return ListTagsCommand;
38
- }($Command));
39
- export { ListTagsCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ModifyBackupAttributesRequestFilterSensitiveLog, ModifyBackupAttributesResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ModifyBackupAttributesCommand, serializeAws_json1_1ModifyBackupAttributesCommand, } from "../protocols/Aws_json1_1";
6
- var ModifyBackupAttributesCommand = (function (_super) {
7
- __extends(ModifyBackupAttributesCommand, _super);
8
- function ModifyBackupAttributesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ModifyBackupAttributesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ModifyBackupAttributesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "CloudHSMV2Client";
18
- var commandName = "ModifyBackupAttributesCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "CloudHSMV2Client";
15
+ const commandName = "ModifyBackupAttributesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ModifyBackupAttributesRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ModifyBackupAttributesResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ModifyBackupAttributesCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1ModifyBackupAttributesCommand(input, context);
33
- };
34
- ModifyBackupAttributesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ModifyBackupAttributesCommand(output, context);
36
- };
37
- return ModifyBackupAttributesCommand;
38
- }($Command));
39
- export { ModifyBackupAttributesCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ModifyClusterRequestFilterSensitiveLog, ModifyClusterResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ModifyClusterCommand, serializeAws_json1_1ModifyClusterCommand, } from "../protocols/Aws_json1_1";
6
- var ModifyClusterCommand = (function (_super) {
7
- __extends(ModifyClusterCommand, _super);
8
- function ModifyClusterCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ModifyClusterCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ModifyClusterCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "CloudHSMV2Client";
18
- var commandName = "ModifyClusterCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "CloudHSMV2Client";
15
+ const commandName = "ModifyClusterCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ModifyClusterRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ModifyClusterResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ModifyClusterCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1ModifyClusterCommand(input, context);
33
- };
34
- ModifyClusterCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ModifyClusterCommand(output, context);
36
- };
37
- return ModifyClusterCommand;
38
- }($Command));
39
- export { ModifyClusterCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { RestoreBackupRequestFilterSensitiveLog, RestoreBackupResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1RestoreBackupCommand, serializeAws_json1_1RestoreBackupCommand, } from "../protocols/Aws_json1_1";
6
- var RestoreBackupCommand = (function (_super) {
7
- __extends(RestoreBackupCommand, _super);
8
- function RestoreBackupCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class RestoreBackupCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- RestoreBackupCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "CloudHSMV2Client";
18
- var commandName = "RestoreBackupCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "CloudHSMV2Client";
15
+ const commandName = "RestoreBackupCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: RestoreBackupRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: RestoreBackupResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- RestoreBackupCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1RestoreBackupCommand(input, context);
33
- };
34
- RestoreBackupCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1RestoreBackupCommand(output, context);
36
- };
37
- return RestoreBackupCommand;
38
- }($Command));
39
- export { RestoreBackupCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { TagResourceRequestFilterSensitiveLog, TagResourceResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1TagResourceCommand, serializeAws_json1_1TagResourceCommand, } from "../protocols/Aws_json1_1";
6
- var TagResourceCommand = (function (_super) {
7
- __extends(TagResourceCommand, _super);
8
- function TagResourceCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class TagResourceCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- TagResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "CloudHSMV2Client";
18
- var commandName = "TagResourceCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "CloudHSMV2Client";
15
+ const commandName = "TagResourceCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: TagResourceRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: TagResourceResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- TagResourceCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1TagResourceCommand(input, context);
33
- };
34
- TagResourceCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1TagResourceCommand(output, context);
36
- };
37
- return TagResourceCommand;
38
- }($Command));
39
- export { TagResourceCommand };
31
+ }
32
+ }