@aws-sdk/client-cloudhsm-v2 3.477.0 → 3.481.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 (77) hide show
  1. package/dist-cjs/commands/CopyBackupToRegionCommand.js +18 -41
  2. package/dist-cjs/commands/CreateClusterCommand.js +18 -41
  3. package/dist-cjs/commands/CreateHsmCommand.js +18 -41
  4. package/dist-cjs/commands/DeleteBackupCommand.js +18 -41
  5. package/dist-cjs/commands/DeleteClusterCommand.js +18 -41
  6. package/dist-cjs/commands/DeleteHsmCommand.js +18 -41
  7. package/dist-cjs/commands/DescribeBackupsCommand.js +18 -41
  8. package/dist-cjs/commands/DescribeClustersCommand.js +18 -41
  9. package/dist-cjs/commands/InitializeClusterCommand.js +18 -41
  10. package/dist-cjs/commands/ListTagsCommand.js +18 -41
  11. package/dist-cjs/commands/ModifyBackupAttributesCommand.js +18 -41
  12. package/dist-cjs/commands/ModifyClusterCommand.js +18 -41
  13. package/dist-cjs/commands/RestoreBackupCommand.js +18 -41
  14. package/dist-cjs/commands/TagResourceCommand.js +18 -41
  15. package/dist-cjs/commands/UntagResourceCommand.js +18 -41
  16. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  17. package/dist-cjs/pagination/DescribeBackupsPaginator.js +2 -24
  18. package/dist-cjs/pagination/DescribeClustersPaginator.js +2 -24
  19. package/dist-cjs/pagination/ListTagsPaginator.js +2 -24
  20. package/dist-es/commands/CopyBackupToRegionCommand.js +18 -41
  21. package/dist-es/commands/CreateClusterCommand.js +18 -41
  22. package/dist-es/commands/CreateHsmCommand.js +18 -41
  23. package/dist-es/commands/DeleteBackupCommand.js +18 -41
  24. package/dist-es/commands/DeleteClusterCommand.js +18 -41
  25. package/dist-es/commands/DeleteHsmCommand.js +18 -41
  26. package/dist-es/commands/DescribeBackupsCommand.js +18 -41
  27. package/dist-es/commands/DescribeClustersCommand.js +18 -41
  28. package/dist-es/commands/InitializeClusterCommand.js +18 -41
  29. package/dist-es/commands/ListTagsCommand.js +18 -41
  30. package/dist-es/commands/ModifyBackupAttributesCommand.js +18 -41
  31. package/dist-es/commands/ModifyClusterCommand.js +18 -41
  32. package/dist-es/commands/RestoreBackupCommand.js +18 -41
  33. package/dist-es/commands/TagResourceCommand.js +18 -41
  34. package/dist-es/commands/UntagResourceCommand.js +18 -41
  35. package/dist-es/endpoint/EndpointParameters.js +6 -0
  36. package/dist-es/pagination/DescribeBackupsPaginator.js +2 -23
  37. package/dist-es/pagination/DescribeClustersPaginator.js +2 -23
  38. package/dist-es/pagination/ListTagsPaginator.js +2 -23
  39. package/dist-types/commands/CopyBackupToRegionCommand.d.ts +6 -21
  40. package/dist-types/commands/CreateClusterCommand.d.ts +6 -21
  41. package/dist-types/commands/CreateHsmCommand.d.ts +6 -21
  42. package/dist-types/commands/DeleteBackupCommand.d.ts +6 -21
  43. package/dist-types/commands/DeleteClusterCommand.d.ts +6 -21
  44. package/dist-types/commands/DeleteHsmCommand.d.ts +6 -21
  45. package/dist-types/commands/DescribeBackupsCommand.d.ts +6 -21
  46. package/dist-types/commands/DescribeClustersCommand.d.ts +6 -21
  47. package/dist-types/commands/InitializeClusterCommand.d.ts +6 -21
  48. package/dist-types/commands/ListTagsCommand.d.ts +6 -21
  49. package/dist-types/commands/ModifyBackupAttributesCommand.d.ts +6 -21
  50. package/dist-types/commands/ModifyClusterCommand.d.ts +6 -21
  51. package/dist-types/commands/RestoreBackupCommand.d.ts +6 -21
  52. package/dist-types/commands/TagResourceCommand.d.ts +6 -21
  53. package/dist-types/commands/UntagResourceCommand.d.ts +6 -21
  54. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  55. package/dist-types/pagination/DescribeBackupsPaginator.d.ts +1 -1
  56. package/dist-types/pagination/DescribeClustersPaginator.d.ts +1 -1
  57. package/dist-types/pagination/ListTagsPaginator.d.ts +1 -1
  58. package/dist-types/ts3.4/commands/CopyBackupToRegionCommand.d.ts +14 -23
  59. package/dist-types/ts3.4/commands/CreateClusterCommand.d.ts +14 -23
  60. package/dist-types/ts3.4/commands/CreateHsmCommand.d.ts +14 -23
  61. package/dist-types/ts3.4/commands/DeleteBackupCommand.d.ts +14 -23
  62. package/dist-types/ts3.4/commands/DeleteClusterCommand.d.ts +14 -23
  63. package/dist-types/ts3.4/commands/DeleteHsmCommand.d.ts +14 -23
  64. package/dist-types/ts3.4/commands/DescribeBackupsCommand.d.ts +14 -23
  65. package/dist-types/ts3.4/commands/DescribeClustersCommand.d.ts +14 -23
  66. package/dist-types/ts3.4/commands/InitializeClusterCommand.d.ts +14 -23
  67. package/dist-types/ts3.4/commands/ListTagsCommand.d.ts +14 -23
  68. package/dist-types/ts3.4/commands/ModifyBackupAttributesCommand.d.ts +12 -24
  69. package/dist-types/ts3.4/commands/ModifyClusterCommand.d.ts +14 -23
  70. package/dist-types/ts3.4/commands/RestoreBackupCommand.d.ts +14 -23
  71. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +14 -23
  72. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +14 -23
  73. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  74. package/dist-types/ts3.4/pagination/DescribeBackupsPaginator.d.ts +3 -3
  75. package/dist-types/ts3.4/pagination/DescribeClustersPaginator.d.ts +3 -3
  76. package/dist-types/ts3.4/pagination/ListTagsPaginator.d.ts +3 -3
  77. package/package.json +11 -10
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_CreateClusterCommand, se_CreateClusterCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class CreateClusterCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, CreateClusterCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "CloudHSMV2Client";
26
- const commandName = "CreateClusterCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "BaldrApiService",
35
- operation: "CreateCluster",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_CreateClusterCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_CreateClusterCommand(output, context);
46
- }
7
+ export class CreateClusterCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("BaldrApiService", "CreateCluster", {})
19
+ .n("CloudHSMV2Client", "CreateClusterCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_CreateClusterCommand)
22
+ .de(de_CreateClusterCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_CreateHsmCommand, se_CreateHsmCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class CreateHsmCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, CreateHsmCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "CloudHSMV2Client";
26
- const commandName = "CreateHsmCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "BaldrApiService",
35
- operation: "CreateHsm",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_CreateHsmCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_CreateHsmCommand(output, context);
46
- }
7
+ export class CreateHsmCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("BaldrApiService", "CreateHsm", {})
19
+ .n("CloudHSMV2Client", "CreateHsmCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_CreateHsmCommand)
22
+ .de(de_CreateHsmCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_DeleteBackupCommand, se_DeleteBackupCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class DeleteBackupCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, DeleteBackupCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "CloudHSMV2Client";
26
- const commandName = "DeleteBackupCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "BaldrApiService",
35
- operation: "DeleteBackup",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_DeleteBackupCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_DeleteBackupCommand(output, context);
46
- }
7
+ export class DeleteBackupCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("BaldrApiService", "DeleteBackup", {})
19
+ .n("CloudHSMV2Client", "DeleteBackupCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_DeleteBackupCommand)
22
+ .de(de_DeleteBackupCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_DeleteClusterCommand, se_DeleteClusterCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class DeleteClusterCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, DeleteClusterCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "CloudHSMV2Client";
26
- const commandName = "DeleteClusterCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "BaldrApiService",
35
- operation: "DeleteCluster",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_DeleteClusterCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_DeleteClusterCommand(output, context);
46
- }
7
+ export class DeleteClusterCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("BaldrApiService", "DeleteCluster", {})
19
+ .n("CloudHSMV2Client", "DeleteClusterCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_DeleteClusterCommand)
22
+ .de(de_DeleteClusterCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_DeleteHsmCommand, se_DeleteHsmCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class DeleteHsmCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, DeleteHsmCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "CloudHSMV2Client";
26
- const commandName = "DeleteHsmCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "BaldrApiService",
35
- operation: "DeleteHsm",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_DeleteHsmCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_DeleteHsmCommand(output, context);
46
- }
7
+ export class DeleteHsmCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("BaldrApiService", "DeleteHsm", {})
19
+ .n("CloudHSMV2Client", "DeleteHsmCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_DeleteHsmCommand)
22
+ .de(de_DeleteHsmCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_DescribeBackupsCommand, se_DescribeBackupsCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class DescribeBackupsCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, DescribeBackupsCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "CloudHSMV2Client";
26
- const commandName = "DescribeBackupsCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "BaldrApiService",
35
- operation: "DescribeBackups",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_DescribeBackupsCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_DescribeBackupsCommand(output, context);
46
- }
7
+ export class DescribeBackupsCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("BaldrApiService", "DescribeBackups", {})
19
+ .n("CloudHSMV2Client", "DescribeBackupsCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_DescribeBackupsCommand)
22
+ .de(de_DescribeBackupsCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_DescribeClustersCommand, se_DescribeClustersCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class DescribeClustersCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, DescribeClustersCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "CloudHSMV2Client";
26
- const commandName = "DescribeClustersCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "BaldrApiService",
35
- operation: "DescribeClusters",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_DescribeClustersCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_DescribeClustersCommand(output, context);
46
- }
7
+ export class DescribeClustersCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("BaldrApiService", "DescribeClusters", {})
19
+ .n("CloudHSMV2Client", "DescribeClustersCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_DescribeClustersCommand)
22
+ .de(de_DescribeClustersCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_InitializeClusterCommand, se_InitializeClusterCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class InitializeClusterCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, InitializeClusterCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "CloudHSMV2Client";
26
- const commandName = "InitializeClusterCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "BaldrApiService",
35
- operation: "InitializeCluster",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_InitializeClusterCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_InitializeClusterCommand(output, context);
46
- }
7
+ export class InitializeClusterCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("BaldrApiService", "InitializeCluster", {})
19
+ .n("CloudHSMV2Client", "InitializeClusterCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_InitializeClusterCommand)
22
+ .de(de_InitializeClusterCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_ListTagsCommand, se_ListTagsCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class ListTagsCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, ListTagsCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "CloudHSMV2Client";
26
- const commandName = "ListTagsCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "BaldrApiService",
35
- operation: "ListTags",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_ListTagsCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_ListTagsCommand(output, context);
46
- }
7
+ export class ListTagsCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("BaldrApiService", "ListTags", {})
19
+ .n("CloudHSMV2Client", "ListTagsCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListTagsCommand)
22
+ .de(de_ListTagsCommand)
23
+ .build() {
47
24
  }