@aws-sdk/client-cloudhsm-v2 3.35.0 → 3.38.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 (188) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/dist-cjs/CloudHSMV2.js +0 -5
  3. package/dist-cjs/CloudHSMV2Client.js +0 -10
  4. package/dist-cjs/commands/CopyBackupToRegionCommand.js +0 -25
  5. package/dist-cjs/commands/CreateClusterCommand.js +0 -25
  6. package/dist-cjs/commands/CreateHsmCommand.js +0 -26
  7. package/dist-cjs/commands/DeleteBackupCommand.js +0 -27
  8. package/dist-cjs/commands/DeleteClusterCommand.js +0 -26
  9. package/dist-cjs/commands/DeleteHsmCommand.js +0 -27
  10. package/dist-cjs/commands/DescribeBackupsCommand.js +0 -30
  11. package/dist-cjs/commands/DescribeClustersCommand.js +0 -30
  12. package/dist-cjs/commands/InitializeClusterCommand.js +0 -28
  13. package/dist-cjs/commands/ListTagsCommand.js +0 -30
  14. package/dist-cjs/commands/ModifyBackupAttributesCommand.js +0 -25
  15. package/dist-cjs/commands/ModifyClusterCommand.js +0 -25
  16. package/dist-cjs/commands/RestoreBackupCommand.js +0 -27
  17. package/dist-cjs/commands/TagResourceCommand.js +0 -25
  18. package/dist-cjs/commands/UntagResourceCommand.js +0 -25
  19. package/dist-cjs/commands/index.js +18 -0
  20. package/dist-cjs/endpoints.js +1 -2
  21. package/dist-cjs/index.js +4 -22
  22. package/dist-cjs/models/index.js +0 -1
  23. package/dist-cjs/models/models_0.js +0 -130
  24. package/dist-cjs/pagination/DescribeBackupsPaginator.js +0 -11
  25. package/dist-cjs/pagination/DescribeClustersPaginator.js +0 -11
  26. package/dist-cjs/pagination/Interfaces.js +0 -1
  27. package/dist-cjs/pagination/ListTagsPaginator.js +0 -11
  28. package/dist-cjs/pagination/index.js +7 -0
  29. package/dist-cjs/protocols/Aws_json1_1.js +0 -6
  30. package/dist-cjs/runtimeConfig.browser.js +1 -6
  31. package/dist-cjs/runtimeConfig.js +2 -7
  32. package/dist-cjs/runtimeConfig.native.js +0 -4
  33. package/dist-cjs/runtimeConfig.shared.js +0 -4
  34. package/dist-es/CloudHSMV2.js +0 -1
  35. package/dist-es/CloudHSMV2Client.js +0 -1
  36. package/dist-es/commands/CopyBackupToRegionCommand.js +0 -1
  37. package/dist-es/commands/CreateClusterCommand.js +0 -1
  38. package/dist-es/commands/CreateHsmCommand.js +0 -1
  39. package/dist-es/commands/DeleteBackupCommand.js +0 -1
  40. package/dist-es/commands/DeleteClusterCommand.js +0 -1
  41. package/dist-es/commands/DeleteHsmCommand.js +0 -1
  42. package/dist-es/commands/DescribeBackupsCommand.js +0 -1
  43. package/dist-es/commands/DescribeClustersCommand.js +0 -1
  44. package/dist-es/commands/InitializeClusterCommand.js +0 -1
  45. package/dist-es/commands/ListTagsCommand.js +0 -1
  46. package/dist-es/commands/ModifyBackupAttributesCommand.js +0 -1
  47. package/dist-es/commands/ModifyClusterCommand.js +0 -1
  48. package/dist-es/commands/RestoreBackupCommand.js +0 -1
  49. package/dist-es/commands/TagResourceCommand.js +0 -1
  50. package/dist-es/commands/UntagResourceCommand.js +0 -1
  51. package/dist-es/commands/index.js +15 -0
  52. package/dist-es/endpoints.js +1 -2
  53. package/dist-es/index.js +4 -22
  54. package/dist-es/models/index.js +0 -1
  55. package/dist-es/models/models_0.js +0 -1
  56. package/dist-es/pagination/DescribeBackupsPaginator.js +0 -1
  57. package/dist-es/pagination/DescribeClustersPaginator.js +0 -1
  58. package/dist-es/pagination/Interfaces.js +0 -1
  59. package/dist-es/pagination/ListTagsPaginator.js +0 -1
  60. package/dist-es/pagination/index.js +4 -0
  61. package/dist-es/protocols/Aws_json1_1.js +0 -1
  62. package/dist-es/runtimeConfig.browser.js +1 -2
  63. package/dist-es/runtimeConfig.js +2 -3
  64. package/dist-es/runtimeConfig.native.js +0 -1
  65. package/dist-es/runtimeConfig.shared.js +0 -1
  66. package/dist-types/commands/index.d.ts +15 -0
  67. package/dist-types/index.d.ts +4 -21
  68. package/dist-types/pagination/index.d.ts +4 -0
  69. package/dist-types/ts3.4/CloudHSMV2.d.ts +16 -75
  70. package/dist-types/ts3.4/CloudHSMV2Client.d.ts +24 -90
  71. package/dist-types/ts3.4/commands/CopyBackupToRegionCommand.d.ts +2 -20
  72. package/dist-types/ts3.4/commands/CreateClusterCommand.d.ts +2 -20
  73. package/dist-types/ts3.4/commands/CreateHsmCommand.d.ts +2 -21
  74. package/dist-types/ts3.4/commands/DeleteBackupCommand.d.ts +2 -22
  75. package/dist-types/ts3.4/commands/DeleteClusterCommand.d.ts +2 -21
  76. package/dist-types/ts3.4/commands/DeleteHsmCommand.d.ts +2 -22
  77. package/dist-types/ts3.4/commands/DescribeBackupsCommand.d.ts +2 -25
  78. package/dist-types/ts3.4/commands/DescribeClustersCommand.d.ts +2 -25
  79. package/dist-types/ts3.4/commands/InitializeClusterCommand.d.ts +2 -23
  80. package/dist-types/ts3.4/commands/ListTagsCommand.d.ts +2 -25
  81. package/dist-types/ts3.4/commands/ModifyBackupAttributesCommand.d.ts +2 -20
  82. package/dist-types/ts3.4/commands/ModifyClusterCommand.d.ts +2 -20
  83. package/dist-types/ts3.4/commands/RestoreBackupCommand.d.ts +2 -22
  84. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -20
  85. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -20
  86. package/dist-types/ts3.4/commands/index.d.ts +15 -0
  87. package/dist-types/ts3.4/index.d.ts +4 -21
  88. package/dist-types/ts3.4/models/models_0.d.ts +159 -565
  89. package/dist-types/ts3.4/pagination/index.d.ts +4 -0
  90. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  91. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  92. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  93. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  94. package/package.json +33 -30
  95. package/dist-cjs/CloudHSMV2.js.map +0 -1
  96. package/dist-cjs/CloudHSMV2Client.js.map +0 -1
  97. package/dist-cjs/commands/CopyBackupToRegionCommand.js.map +0 -1
  98. package/dist-cjs/commands/CreateClusterCommand.js.map +0 -1
  99. package/dist-cjs/commands/CreateHsmCommand.js.map +0 -1
  100. package/dist-cjs/commands/DeleteBackupCommand.js.map +0 -1
  101. package/dist-cjs/commands/DeleteClusterCommand.js.map +0 -1
  102. package/dist-cjs/commands/DeleteHsmCommand.js.map +0 -1
  103. package/dist-cjs/commands/DescribeBackupsCommand.js.map +0 -1
  104. package/dist-cjs/commands/DescribeClustersCommand.js.map +0 -1
  105. package/dist-cjs/commands/InitializeClusterCommand.js.map +0 -1
  106. package/dist-cjs/commands/ListTagsCommand.js.map +0 -1
  107. package/dist-cjs/commands/ModifyBackupAttributesCommand.js.map +0 -1
  108. package/dist-cjs/commands/ModifyClusterCommand.js.map +0 -1
  109. package/dist-cjs/commands/RestoreBackupCommand.js.map +0 -1
  110. package/dist-cjs/commands/TagResourceCommand.js.map +0 -1
  111. package/dist-cjs/commands/UntagResourceCommand.js.map +0 -1
  112. package/dist-cjs/endpoints.js.map +0 -1
  113. package/dist-cjs/index.js.map +0 -1
  114. package/dist-cjs/models/index.js.map +0 -1
  115. package/dist-cjs/models/models_0.js.map +0 -1
  116. package/dist-cjs/pagination/DescribeBackupsPaginator.js.map +0 -1
  117. package/dist-cjs/pagination/DescribeClustersPaginator.js.map +0 -1
  118. package/dist-cjs/pagination/Interfaces.js.map +0 -1
  119. package/dist-cjs/pagination/ListTagsPaginator.js.map +0 -1
  120. package/dist-cjs/protocols/Aws_json1_1.js.map +0 -1
  121. package/dist-cjs/runtimeConfig.browser.js.map +0 -1
  122. package/dist-cjs/runtimeConfig.js.map +0 -1
  123. package/dist-cjs/runtimeConfig.native.js.map +0 -1
  124. package/dist-cjs/runtimeConfig.shared.js.map +0 -1
  125. package/dist-es/CloudHSMV2.js.map +0 -1
  126. package/dist-es/CloudHSMV2Client.js.map +0 -1
  127. package/dist-es/commands/CopyBackupToRegionCommand.js.map +0 -1
  128. package/dist-es/commands/CreateClusterCommand.js.map +0 -1
  129. package/dist-es/commands/CreateHsmCommand.js.map +0 -1
  130. package/dist-es/commands/DeleteBackupCommand.js.map +0 -1
  131. package/dist-es/commands/DeleteClusterCommand.js.map +0 -1
  132. package/dist-es/commands/DeleteHsmCommand.js.map +0 -1
  133. package/dist-es/commands/DescribeBackupsCommand.js.map +0 -1
  134. package/dist-es/commands/DescribeClustersCommand.js.map +0 -1
  135. package/dist-es/commands/InitializeClusterCommand.js.map +0 -1
  136. package/dist-es/commands/ListTagsCommand.js.map +0 -1
  137. package/dist-es/commands/ModifyBackupAttributesCommand.js.map +0 -1
  138. package/dist-es/commands/ModifyClusterCommand.js.map +0 -1
  139. package/dist-es/commands/RestoreBackupCommand.js.map +0 -1
  140. package/dist-es/commands/TagResourceCommand.js.map +0 -1
  141. package/dist-es/commands/UntagResourceCommand.js.map +0 -1
  142. package/dist-es/endpoints.js.map +0 -1
  143. package/dist-es/index.js.map +0 -1
  144. package/dist-es/models/index.js.map +0 -1
  145. package/dist-es/models/models_0.js.map +0 -1
  146. package/dist-es/pagination/DescribeBackupsPaginator.js.map +0 -1
  147. package/dist-es/pagination/DescribeClustersPaginator.js.map +0 -1
  148. package/dist-es/pagination/Interfaces.js.map +0 -1
  149. package/dist-es/pagination/ListTagsPaginator.js.map +0 -1
  150. package/dist-es/protocols/Aws_json1_1.js.map +0 -1
  151. package/dist-es/runtimeConfig.browser.js.map +0 -1
  152. package/dist-es/runtimeConfig.js.map +0 -1
  153. package/dist-es/runtimeConfig.native.js.map +0 -1
  154. package/dist-es/runtimeConfig.shared.js.map +0 -1
  155. package/jest.config.js +0 -4
  156. package/src/CloudHSMV2.ts +0 -547
  157. package/src/CloudHSMV2Client.ts +0 -285
  158. package/src/commands/CopyBackupToRegionCommand.ts +0 -95
  159. package/src/commands/CreateClusterCommand.ts +0 -95
  160. package/src/commands/CreateHsmCommand.ts +0 -93
  161. package/src/commands/DeleteBackupCommand.ts +0 -97
  162. package/src/commands/DeleteClusterCommand.ts +0 -96
  163. package/src/commands/DeleteHsmCommand.ts +0 -94
  164. package/src/commands/DescribeBackupsCommand.ts +0 -100
  165. package/src/commands/DescribeClustersCommand.ts +0 -100
  166. package/src/commands/InitializeClusterCommand.ts +0 -98
  167. package/src/commands/ListTagsCommand.ts +0 -97
  168. package/src/commands/ModifyBackupAttributesCommand.ts +0 -95
  169. package/src/commands/ModifyClusterCommand.ts +0 -95
  170. package/src/commands/RestoreBackupCommand.ts +0 -97
  171. package/src/commands/TagResourceCommand.ts +0 -95
  172. package/src/commands/UntagResourceCommand.ts +0 -95
  173. package/src/endpoints.ts +0 -57
  174. package/src/index.ts +0 -22
  175. package/src/models/index.ts +0 -1
  176. package/src/models/models_0.ts +0 -1175
  177. package/src/pagination/DescribeBackupsPaginator.ts +0 -59
  178. package/src/pagination/DescribeClustersPaginator.ts +0 -59
  179. package/src/pagination/Interfaces.ts +0 -8
  180. package/src/pagination/ListTagsPaginator.ts +0 -55
  181. package/src/protocols/Aws_json1_1.ts +0 -2363
  182. package/src/runtimeConfig.browser.ts +0 -41
  183. package/src/runtimeConfig.native.ts +0 -17
  184. package/src/runtimeConfig.shared.ts +0 -17
  185. package/src/runtimeConfig.ts +0 -46
  186. package/tsconfig.es.json +0 -10
  187. package/tsconfig.json +0 -33
  188. package/tsconfig.types.json +0 -9
@@ -1,96 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { CloudHSMV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudHSMV2Client";
15
- import { DeleteClusterRequest, DeleteClusterResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_1DeleteClusterCommand,
18
- serializeAws_json1_1DeleteClusterCommand,
19
- } from "../protocols/Aws_json1_1";
20
-
21
- export interface DeleteClusterCommandInput extends DeleteClusterRequest {}
22
- export interface DeleteClusterCommandOutput extends DeleteClusterResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Deletes the specified AWS CloudHSM cluster. Before you can delete a cluster, you must
26
- * delete all HSMs in the cluster. To see if the cluster contains any HSMs, use <a>DescribeClusters</a>. To delete an HSM, use <a>DeleteHsm</a>.</p>
27
- * @example
28
- * Use a bare-bones client and the command you need to make an API call.
29
- * ```javascript
30
- * import { CloudHSMV2Client, DeleteClusterCommand } from "@aws-sdk/client-cloudhsm-v2"; // ES Modules import
31
- * // const { CloudHSMV2Client, DeleteClusterCommand } = require("@aws-sdk/client-cloudhsm-v2"); // CommonJS import
32
- * const client = new CloudHSMV2Client(config);
33
- * const command = new DeleteClusterCommand(input);
34
- * const response = await client.send(command);
35
- * ```
36
- *
37
- * @see {@link DeleteClusterCommandInput} for command's `input` shape.
38
- * @see {@link DeleteClusterCommandOutput} for command's `response` shape.
39
- * @see {@link CloudHSMV2ClientResolvedConfig | config} for command's `input` shape.
40
- *
41
- */
42
- export class DeleteClusterCommand extends $Command<
43
- DeleteClusterCommandInput,
44
- DeleteClusterCommandOutput,
45
- CloudHSMV2ClientResolvedConfig
46
- > {
47
- // Start section: command_properties
48
- // End section: command_properties
49
-
50
- constructor(readonly input: DeleteClusterCommandInput) {
51
- // Start section: command_constructor
52
- super();
53
- // End section: command_constructor
54
- }
55
-
56
- /**
57
- * @internal
58
- */
59
- resolveMiddleware(
60
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
61
- configuration: CloudHSMV2ClientResolvedConfig,
62
- options?: __HttpHandlerOptions
63
- ): Handler<DeleteClusterCommandInput, DeleteClusterCommandOutput> {
64
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
65
-
66
- const stack = clientStack.concat(this.middlewareStack);
67
-
68
- const { logger } = configuration;
69
- const clientName = "CloudHSMV2Client";
70
- const commandName = "DeleteClusterCommand";
71
- const handlerExecutionContext: HandlerExecutionContext = {
72
- logger,
73
- clientName,
74
- commandName,
75
- inputFilterSensitiveLog: DeleteClusterRequest.filterSensitiveLog,
76
- outputFilterSensitiveLog: DeleteClusterResponse.filterSensitiveLog,
77
- };
78
- const { requestHandler } = configuration;
79
- return stack.resolve(
80
- (request: FinalizeHandlerArguments<any>) =>
81
- requestHandler.handle(request.request as __HttpRequest, options || {}),
82
- handlerExecutionContext
83
- );
84
- }
85
-
86
- private serialize(input: DeleteClusterCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
87
- return serializeAws_json1_1DeleteClusterCommand(input, context);
88
- }
89
-
90
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DeleteClusterCommandOutput> {
91
- return deserializeAws_json1_1DeleteClusterCommand(output, context);
92
- }
93
-
94
- // Start section: command_body_extra
95
- // End section: command_body_extra
96
- }
@@ -1,94 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { CloudHSMV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudHSMV2Client";
15
- import { DeleteHsmRequest, DeleteHsmResponse } from "../models/models_0";
16
- import { deserializeAws_json1_1DeleteHsmCommand, serializeAws_json1_1DeleteHsmCommand } from "../protocols/Aws_json1_1";
17
-
18
- export interface DeleteHsmCommandInput extends DeleteHsmRequest {}
19
- export interface DeleteHsmCommandOutput extends DeleteHsmResponse, __MetadataBearer {}
20
-
21
- /**
22
- * <p>Deletes the specified HSM. To specify an HSM, you can use its identifier (ID), the IP
23
- * address of the HSM's elastic network interface (ENI), or the ID of the HSM's ENI. You need to
24
- * specify only one of these values. To find these values, use <a>DescribeClusters</a>.</p>
25
- * @example
26
- * Use a bare-bones client and the command you need to make an API call.
27
- * ```javascript
28
- * import { CloudHSMV2Client, DeleteHsmCommand } from "@aws-sdk/client-cloudhsm-v2"; // ES Modules import
29
- * // const { CloudHSMV2Client, DeleteHsmCommand } = require("@aws-sdk/client-cloudhsm-v2"); // CommonJS import
30
- * const client = new CloudHSMV2Client(config);
31
- * const command = new DeleteHsmCommand(input);
32
- * const response = await client.send(command);
33
- * ```
34
- *
35
- * @see {@link DeleteHsmCommandInput} for command's `input` shape.
36
- * @see {@link DeleteHsmCommandOutput} for command's `response` shape.
37
- * @see {@link CloudHSMV2ClientResolvedConfig | config} for command's `input` shape.
38
- *
39
- */
40
- export class DeleteHsmCommand extends $Command<
41
- DeleteHsmCommandInput,
42
- DeleteHsmCommandOutput,
43
- CloudHSMV2ClientResolvedConfig
44
- > {
45
- // Start section: command_properties
46
- // End section: command_properties
47
-
48
- constructor(readonly input: DeleteHsmCommandInput) {
49
- // Start section: command_constructor
50
- super();
51
- // End section: command_constructor
52
- }
53
-
54
- /**
55
- * @internal
56
- */
57
- resolveMiddleware(
58
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
59
- configuration: CloudHSMV2ClientResolvedConfig,
60
- options?: __HttpHandlerOptions
61
- ): Handler<DeleteHsmCommandInput, DeleteHsmCommandOutput> {
62
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
63
-
64
- const stack = clientStack.concat(this.middlewareStack);
65
-
66
- const { logger } = configuration;
67
- const clientName = "CloudHSMV2Client";
68
- const commandName = "DeleteHsmCommand";
69
- const handlerExecutionContext: HandlerExecutionContext = {
70
- logger,
71
- clientName,
72
- commandName,
73
- inputFilterSensitiveLog: DeleteHsmRequest.filterSensitiveLog,
74
- outputFilterSensitiveLog: DeleteHsmResponse.filterSensitiveLog,
75
- };
76
- const { requestHandler } = configuration;
77
- return stack.resolve(
78
- (request: FinalizeHandlerArguments<any>) =>
79
- requestHandler.handle(request.request as __HttpRequest, options || {}),
80
- handlerExecutionContext
81
- );
82
- }
83
-
84
- private serialize(input: DeleteHsmCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
85
- return serializeAws_json1_1DeleteHsmCommand(input, context);
86
- }
87
-
88
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DeleteHsmCommandOutput> {
89
- return deserializeAws_json1_1DeleteHsmCommand(output, context);
90
- }
91
-
92
- // Start section: command_body_extra
93
- // End section: command_body_extra
94
- }
@@ -1,100 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { CloudHSMV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudHSMV2Client";
15
- import { DescribeBackupsRequest, DescribeBackupsResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_1DescribeBackupsCommand,
18
- serializeAws_json1_1DescribeBackupsCommand,
19
- } from "../protocols/Aws_json1_1";
20
-
21
- export interface DescribeBackupsCommandInput extends DescribeBackupsRequest {}
22
- export interface DescribeBackupsCommandOutput extends DescribeBackupsResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Gets information about backups of AWS CloudHSM clusters.</p>
26
- * <p>This is a paginated operation, which means that each response might contain only a
27
- * subset of all the backups. When the response contains only a subset of backups, it includes a
28
- * <code>NextToken</code> value. Use this value in a subsequent <code>DescribeBackups</code>
29
- * request to get more backups. When you receive a response with no <code>NextToken</code> (or an
30
- * empty or null value), that means there are no more backups to get.</p>
31
- * @example
32
- * Use a bare-bones client and the command you need to make an API call.
33
- * ```javascript
34
- * import { CloudHSMV2Client, DescribeBackupsCommand } from "@aws-sdk/client-cloudhsm-v2"; // ES Modules import
35
- * // const { CloudHSMV2Client, DescribeBackupsCommand } = require("@aws-sdk/client-cloudhsm-v2"); // CommonJS import
36
- * const client = new CloudHSMV2Client(config);
37
- * const command = new DescribeBackupsCommand(input);
38
- * const response = await client.send(command);
39
- * ```
40
- *
41
- * @see {@link DescribeBackupsCommandInput} for command's `input` shape.
42
- * @see {@link DescribeBackupsCommandOutput} for command's `response` shape.
43
- * @see {@link CloudHSMV2ClientResolvedConfig | config} for command's `input` shape.
44
- *
45
- */
46
- export class DescribeBackupsCommand extends $Command<
47
- DescribeBackupsCommandInput,
48
- DescribeBackupsCommandOutput,
49
- CloudHSMV2ClientResolvedConfig
50
- > {
51
- // Start section: command_properties
52
- // End section: command_properties
53
-
54
- constructor(readonly input: DescribeBackupsCommandInput) {
55
- // Start section: command_constructor
56
- super();
57
- // End section: command_constructor
58
- }
59
-
60
- /**
61
- * @internal
62
- */
63
- resolveMiddleware(
64
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
65
- configuration: CloudHSMV2ClientResolvedConfig,
66
- options?: __HttpHandlerOptions
67
- ): Handler<DescribeBackupsCommandInput, DescribeBackupsCommandOutput> {
68
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
69
-
70
- const stack = clientStack.concat(this.middlewareStack);
71
-
72
- const { logger } = configuration;
73
- const clientName = "CloudHSMV2Client";
74
- const commandName = "DescribeBackupsCommand";
75
- const handlerExecutionContext: HandlerExecutionContext = {
76
- logger,
77
- clientName,
78
- commandName,
79
- inputFilterSensitiveLog: DescribeBackupsRequest.filterSensitiveLog,
80
- outputFilterSensitiveLog: DescribeBackupsResponse.filterSensitiveLog,
81
- };
82
- const { requestHandler } = configuration;
83
- return stack.resolve(
84
- (request: FinalizeHandlerArguments<any>) =>
85
- requestHandler.handle(request.request as __HttpRequest, options || {}),
86
- handlerExecutionContext
87
- );
88
- }
89
-
90
- private serialize(input: DescribeBackupsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
91
- return serializeAws_json1_1DescribeBackupsCommand(input, context);
92
- }
93
-
94
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DescribeBackupsCommandOutput> {
95
- return deserializeAws_json1_1DescribeBackupsCommand(output, context);
96
- }
97
-
98
- // Start section: command_body_extra
99
- // End section: command_body_extra
100
- }
@@ -1,100 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { CloudHSMV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudHSMV2Client";
15
- import { DescribeClustersRequest, DescribeClustersResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_1DescribeClustersCommand,
18
- serializeAws_json1_1DescribeClustersCommand,
19
- } from "../protocols/Aws_json1_1";
20
-
21
- export interface DescribeClustersCommandInput extends DescribeClustersRequest {}
22
- export interface DescribeClustersCommandOutput extends DescribeClustersResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Gets information about AWS CloudHSM clusters.</p>
26
- * <p>This is a paginated operation, which means that each response might contain only a
27
- * subset of all the clusters. When the response contains only a subset of clusters, it includes
28
- * a <code>NextToken</code> value. Use this value in a subsequent <code>DescribeClusters</code>
29
- * request to get more clusters. When you receive a response with no <code>NextToken</code> (or
30
- * an empty or null value), that means there are no more clusters to get.</p>
31
- * @example
32
- * Use a bare-bones client and the command you need to make an API call.
33
- * ```javascript
34
- * import { CloudHSMV2Client, DescribeClustersCommand } from "@aws-sdk/client-cloudhsm-v2"; // ES Modules import
35
- * // const { CloudHSMV2Client, DescribeClustersCommand } = require("@aws-sdk/client-cloudhsm-v2"); // CommonJS import
36
- * const client = new CloudHSMV2Client(config);
37
- * const command = new DescribeClustersCommand(input);
38
- * const response = await client.send(command);
39
- * ```
40
- *
41
- * @see {@link DescribeClustersCommandInput} for command's `input` shape.
42
- * @see {@link DescribeClustersCommandOutput} for command's `response` shape.
43
- * @see {@link CloudHSMV2ClientResolvedConfig | config} for command's `input` shape.
44
- *
45
- */
46
- export class DescribeClustersCommand extends $Command<
47
- DescribeClustersCommandInput,
48
- DescribeClustersCommandOutput,
49
- CloudHSMV2ClientResolvedConfig
50
- > {
51
- // Start section: command_properties
52
- // End section: command_properties
53
-
54
- constructor(readonly input: DescribeClustersCommandInput) {
55
- // Start section: command_constructor
56
- super();
57
- // End section: command_constructor
58
- }
59
-
60
- /**
61
- * @internal
62
- */
63
- resolveMiddleware(
64
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
65
- configuration: CloudHSMV2ClientResolvedConfig,
66
- options?: __HttpHandlerOptions
67
- ): Handler<DescribeClustersCommandInput, DescribeClustersCommandOutput> {
68
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
69
-
70
- const stack = clientStack.concat(this.middlewareStack);
71
-
72
- const { logger } = configuration;
73
- const clientName = "CloudHSMV2Client";
74
- const commandName = "DescribeClustersCommand";
75
- const handlerExecutionContext: HandlerExecutionContext = {
76
- logger,
77
- clientName,
78
- commandName,
79
- inputFilterSensitiveLog: DescribeClustersRequest.filterSensitiveLog,
80
- outputFilterSensitiveLog: DescribeClustersResponse.filterSensitiveLog,
81
- };
82
- const { requestHandler } = configuration;
83
- return stack.resolve(
84
- (request: FinalizeHandlerArguments<any>) =>
85
- requestHandler.handle(request.request as __HttpRequest, options || {}),
86
- handlerExecutionContext
87
- );
88
- }
89
-
90
- private serialize(input: DescribeClustersCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
91
- return serializeAws_json1_1DescribeClustersCommand(input, context);
92
- }
93
-
94
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DescribeClustersCommandOutput> {
95
- return deserializeAws_json1_1DescribeClustersCommand(output, context);
96
- }
97
-
98
- // Start section: command_body_extra
99
- // End section: command_body_extra
100
- }
@@ -1,98 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { CloudHSMV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudHSMV2Client";
15
- import { InitializeClusterRequest, InitializeClusterResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_1InitializeClusterCommand,
18
- serializeAws_json1_1InitializeClusterCommand,
19
- } from "../protocols/Aws_json1_1";
20
-
21
- export interface InitializeClusterCommandInput extends InitializeClusterRequest {}
22
- export interface InitializeClusterCommandOutput extends InitializeClusterResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Claims an AWS CloudHSM cluster by submitting the cluster certificate issued by your
26
- * issuing certificate authority (CA) and the CA's root certificate. Before you can claim a
27
- * cluster, you must sign the cluster's certificate signing request (CSR) with your issuing CA.
28
- * To get the cluster's CSR, use <a>DescribeClusters</a>.</p>
29
- * @example
30
- * Use a bare-bones client and the command you need to make an API call.
31
- * ```javascript
32
- * import { CloudHSMV2Client, InitializeClusterCommand } from "@aws-sdk/client-cloudhsm-v2"; // ES Modules import
33
- * // const { CloudHSMV2Client, InitializeClusterCommand } = require("@aws-sdk/client-cloudhsm-v2"); // CommonJS import
34
- * const client = new CloudHSMV2Client(config);
35
- * const command = new InitializeClusterCommand(input);
36
- * const response = await client.send(command);
37
- * ```
38
- *
39
- * @see {@link InitializeClusterCommandInput} for command's `input` shape.
40
- * @see {@link InitializeClusterCommandOutput} for command's `response` shape.
41
- * @see {@link CloudHSMV2ClientResolvedConfig | config} for command's `input` shape.
42
- *
43
- */
44
- export class InitializeClusterCommand extends $Command<
45
- InitializeClusterCommandInput,
46
- InitializeClusterCommandOutput,
47
- CloudHSMV2ClientResolvedConfig
48
- > {
49
- // Start section: command_properties
50
- // End section: command_properties
51
-
52
- constructor(readonly input: InitializeClusterCommandInput) {
53
- // Start section: command_constructor
54
- super();
55
- // End section: command_constructor
56
- }
57
-
58
- /**
59
- * @internal
60
- */
61
- resolveMiddleware(
62
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
63
- configuration: CloudHSMV2ClientResolvedConfig,
64
- options?: __HttpHandlerOptions
65
- ): Handler<InitializeClusterCommandInput, InitializeClusterCommandOutput> {
66
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
67
-
68
- const stack = clientStack.concat(this.middlewareStack);
69
-
70
- const { logger } = configuration;
71
- const clientName = "CloudHSMV2Client";
72
- const commandName = "InitializeClusterCommand";
73
- const handlerExecutionContext: HandlerExecutionContext = {
74
- logger,
75
- clientName,
76
- commandName,
77
- inputFilterSensitiveLog: InitializeClusterRequest.filterSensitiveLog,
78
- outputFilterSensitiveLog: InitializeClusterResponse.filterSensitiveLog,
79
- };
80
- const { requestHandler } = configuration;
81
- return stack.resolve(
82
- (request: FinalizeHandlerArguments<any>) =>
83
- requestHandler.handle(request.request as __HttpRequest, options || {}),
84
- handlerExecutionContext
85
- );
86
- }
87
-
88
- private serialize(input: InitializeClusterCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
89
- return serializeAws_json1_1InitializeClusterCommand(input, context);
90
- }
91
-
92
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<InitializeClusterCommandOutput> {
93
- return deserializeAws_json1_1InitializeClusterCommand(output, context);
94
- }
95
-
96
- // Start section: command_body_extra
97
- // End section: command_body_extra
98
- }
@@ -1,97 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { CloudHSMV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudHSMV2Client";
15
- import { ListTagsRequest, ListTagsResponse } from "../models/models_0";
16
- import { deserializeAws_json1_1ListTagsCommand, serializeAws_json1_1ListTagsCommand } from "../protocols/Aws_json1_1";
17
-
18
- export interface ListTagsCommandInput extends ListTagsRequest {}
19
- export interface ListTagsCommandOutput extends ListTagsResponse, __MetadataBearer {}
20
-
21
- /**
22
- * <p>Gets a list of tags for the specified AWS CloudHSM cluster.</p>
23
- * <p>This is a paginated operation, which means that each response might contain only a
24
- * subset of all the tags. When the response contains only a subset of tags, it includes a
25
- * <code>NextToken</code> value. Use this value in a subsequent <code>ListTags</code> request to
26
- * get more tags. When you receive a response with no <code>NextToken</code> (or an empty or null
27
- * value), that means there are no more tags to get.</p>
28
- * @example
29
- * Use a bare-bones client and the command you need to make an API call.
30
- * ```javascript
31
- * import { CloudHSMV2Client, ListTagsCommand } from "@aws-sdk/client-cloudhsm-v2"; // ES Modules import
32
- * // const { CloudHSMV2Client, ListTagsCommand } = require("@aws-sdk/client-cloudhsm-v2"); // CommonJS import
33
- * const client = new CloudHSMV2Client(config);
34
- * const command = new ListTagsCommand(input);
35
- * const response = await client.send(command);
36
- * ```
37
- *
38
- * @see {@link ListTagsCommandInput} for command's `input` shape.
39
- * @see {@link ListTagsCommandOutput} for command's `response` shape.
40
- * @see {@link CloudHSMV2ClientResolvedConfig | config} for command's `input` shape.
41
- *
42
- */
43
- export class ListTagsCommand extends $Command<
44
- ListTagsCommandInput,
45
- ListTagsCommandOutput,
46
- CloudHSMV2ClientResolvedConfig
47
- > {
48
- // Start section: command_properties
49
- // End section: command_properties
50
-
51
- constructor(readonly input: ListTagsCommandInput) {
52
- // Start section: command_constructor
53
- super();
54
- // End section: command_constructor
55
- }
56
-
57
- /**
58
- * @internal
59
- */
60
- resolveMiddleware(
61
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
62
- configuration: CloudHSMV2ClientResolvedConfig,
63
- options?: __HttpHandlerOptions
64
- ): Handler<ListTagsCommandInput, ListTagsCommandOutput> {
65
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
66
-
67
- const stack = clientStack.concat(this.middlewareStack);
68
-
69
- const { logger } = configuration;
70
- const clientName = "CloudHSMV2Client";
71
- const commandName = "ListTagsCommand";
72
- const handlerExecutionContext: HandlerExecutionContext = {
73
- logger,
74
- clientName,
75
- commandName,
76
- inputFilterSensitiveLog: ListTagsRequest.filterSensitiveLog,
77
- outputFilterSensitiveLog: ListTagsResponse.filterSensitiveLog,
78
- };
79
- const { requestHandler } = configuration;
80
- return stack.resolve(
81
- (request: FinalizeHandlerArguments<any>) =>
82
- requestHandler.handle(request.request as __HttpRequest, options || {}),
83
- handlerExecutionContext
84
- );
85
- }
86
-
87
- private serialize(input: ListTagsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
88
- return serializeAws_json1_1ListTagsCommand(input, context);
89
- }
90
-
91
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListTagsCommandOutput> {
92
- return deserializeAws_json1_1ListTagsCommand(output, context);
93
- }
94
-
95
- // Start section: command_body_extra
96
- // End section: command_body_extra
97
- }
@@ -1,95 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { CloudHSMV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudHSMV2Client";
15
- import { ModifyBackupAttributesRequest, ModifyBackupAttributesResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_1ModifyBackupAttributesCommand,
18
- serializeAws_json1_1ModifyBackupAttributesCommand,
19
- } from "../protocols/Aws_json1_1";
20
-
21
- export interface ModifyBackupAttributesCommandInput extends ModifyBackupAttributesRequest {}
22
- export interface ModifyBackupAttributesCommandOutput extends ModifyBackupAttributesResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Modifies attributes for AWS CloudHSM backup.</p>
26
- * @example
27
- * Use a bare-bones client and the command you need to make an API call.
28
- * ```javascript
29
- * import { CloudHSMV2Client, ModifyBackupAttributesCommand } from "@aws-sdk/client-cloudhsm-v2"; // ES Modules import
30
- * // const { CloudHSMV2Client, ModifyBackupAttributesCommand } = require("@aws-sdk/client-cloudhsm-v2"); // CommonJS import
31
- * const client = new CloudHSMV2Client(config);
32
- * const command = new ModifyBackupAttributesCommand(input);
33
- * const response = await client.send(command);
34
- * ```
35
- *
36
- * @see {@link ModifyBackupAttributesCommandInput} for command's `input` shape.
37
- * @see {@link ModifyBackupAttributesCommandOutput} for command's `response` shape.
38
- * @see {@link CloudHSMV2ClientResolvedConfig | config} for command's `input` shape.
39
- *
40
- */
41
- export class ModifyBackupAttributesCommand extends $Command<
42
- ModifyBackupAttributesCommandInput,
43
- ModifyBackupAttributesCommandOutput,
44
- CloudHSMV2ClientResolvedConfig
45
- > {
46
- // Start section: command_properties
47
- // End section: command_properties
48
-
49
- constructor(readonly input: ModifyBackupAttributesCommandInput) {
50
- // Start section: command_constructor
51
- super();
52
- // End section: command_constructor
53
- }
54
-
55
- /**
56
- * @internal
57
- */
58
- resolveMiddleware(
59
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
60
- configuration: CloudHSMV2ClientResolvedConfig,
61
- options?: __HttpHandlerOptions
62
- ): Handler<ModifyBackupAttributesCommandInput, ModifyBackupAttributesCommandOutput> {
63
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
64
-
65
- const stack = clientStack.concat(this.middlewareStack);
66
-
67
- const { logger } = configuration;
68
- const clientName = "CloudHSMV2Client";
69
- const commandName = "ModifyBackupAttributesCommand";
70
- const handlerExecutionContext: HandlerExecutionContext = {
71
- logger,
72
- clientName,
73
- commandName,
74
- inputFilterSensitiveLog: ModifyBackupAttributesRequest.filterSensitiveLog,
75
- outputFilterSensitiveLog: ModifyBackupAttributesResponse.filterSensitiveLog,
76
- };
77
- const { requestHandler } = configuration;
78
- return stack.resolve(
79
- (request: FinalizeHandlerArguments<any>) =>
80
- requestHandler.handle(request.request as __HttpRequest, options || {}),
81
- handlerExecutionContext
82
- );
83
- }
84
-
85
- private serialize(input: ModifyBackupAttributesCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
86
- return serializeAws_json1_1ModifyBackupAttributesCommand(input, context);
87
- }
88
-
89
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ModifyBackupAttributesCommandOutput> {
90
- return deserializeAws_json1_1ModifyBackupAttributesCommand(output, context);
91
- }
92
-
93
- // Start section: command_body_extra
94
- // End section: command_body_extra
95
- }