@aws-sdk/client-cloudhsm 3.35.0 → 3.36.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 (161) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist-cjs/CloudHSM.js +0 -1
  3. package/dist-cjs/CloudHSMClient.js +0 -1
  4. package/dist-cjs/commands/AddTagsToResourceCommand.js +0 -1
  5. package/dist-cjs/commands/CreateHapgCommand.js +0 -1
  6. package/dist-cjs/commands/CreateHsmCommand.js +0 -1
  7. package/dist-cjs/commands/CreateLunaClientCommand.js +0 -1
  8. package/dist-cjs/commands/DeleteHapgCommand.js +0 -1
  9. package/dist-cjs/commands/DeleteHsmCommand.js +0 -1
  10. package/dist-cjs/commands/DeleteLunaClientCommand.js +0 -1
  11. package/dist-cjs/commands/DescribeHapgCommand.js +0 -1
  12. package/dist-cjs/commands/DescribeHsmCommand.js +0 -1
  13. package/dist-cjs/commands/DescribeLunaClientCommand.js +0 -1
  14. package/dist-cjs/commands/GetConfigCommand.js +0 -1
  15. package/dist-cjs/commands/ListAvailableZonesCommand.js +0 -1
  16. package/dist-cjs/commands/ListHapgsCommand.js +0 -1
  17. package/dist-cjs/commands/ListHsmsCommand.js +0 -1
  18. package/dist-cjs/commands/ListLunaClientsCommand.js +0 -1
  19. package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -1
  20. package/dist-cjs/commands/ModifyHapgCommand.js +0 -1
  21. package/dist-cjs/commands/ModifyHsmCommand.js +0 -1
  22. package/dist-cjs/commands/ModifyLunaClientCommand.js +0 -1
  23. package/dist-cjs/commands/RemoveTagsFromResourceCommand.js +0 -1
  24. package/dist-cjs/endpoints.js +0 -1
  25. package/dist-cjs/index.js +0 -1
  26. package/dist-cjs/models/index.js +0 -1
  27. package/dist-cjs/models/models_0.js +0 -1
  28. package/dist-cjs/protocols/Aws_json1_1.js +0 -1
  29. package/dist-cjs/runtimeConfig.browser.js +2 -3
  30. package/dist-cjs/runtimeConfig.js +3 -4
  31. package/dist-cjs/runtimeConfig.native.js +0 -1
  32. package/dist-cjs/runtimeConfig.shared.js +0 -1
  33. package/dist-es/CloudHSM.js +0 -1
  34. package/dist-es/CloudHSMClient.js +0 -1
  35. package/dist-es/commands/AddTagsToResourceCommand.js +0 -1
  36. package/dist-es/commands/CreateHapgCommand.js +0 -1
  37. package/dist-es/commands/CreateHsmCommand.js +0 -1
  38. package/dist-es/commands/CreateLunaClientCommand.js +0 -1
  39. package/dist-es/commands/DeleteHapgCommand.js +0 -1
  40. package/dist-es/commands/DeleteHsmCommand.js +0 -1
  41. package/dist-es/commands/DeleteLunaClientCommand.js +0 -1
  42. package/dist-es/commands/DescribeHapgCommand.js +0 -1
  43. package/dist-es/commands/DescribeHsmCommand.js +0 -1
  44. package/dist-es/commands/DescribeLunaClientCommand.js +0 -1
  45. package/dist-es/commands/GetConfigCommand.js +0 -1
  46. package/dist-es/commands/ListAvailableZonesCommand.js +0 -1
  47. package/dist-es/commands/ListHapgsCommand.js +0 -1
  48. package/dist-es/commands/ListHsmsCommand.js +0 -1
  49. package/dist-es/commands/ListLunaClientsCommand.js +0 -1
  50. package/dist-es/commands/ListTagsForResourceCommand.js +0 -1
  51. package/dist-es/commands/ModifyHapgCommand.js +0 -1
  52. package/dist-es/commands/ModifyHsmCommand.js +0 -1
  53. package/dist-es/commands/ModifyLunaClientCommand.js +0 -1
  54. package/dist-es/commands/RemoveTagsFromResourceCommand.js +0 -1
  55. package/dist-es/endpoints.js +0 -1
  56. package/dist-es/index.js +0 -1
  57. package/dist-es/models/index.js +0 -1
  58. package/dist-es/models/models_0.js +0 -1
  59. package/dist-es/protocols/Aws_json1_1.js +0 -1
  60. package/dist-es/runtimeConfig.browser.js +1 -2
  61. package/dist-es/runtimeConfig.js +2 -3
  62. package/dist-es/runtimeConfig.native.js +0 -1
  63. package/dist-es/runtimeConfig.shared.js +0 -1
  64. package/package.json +33 -30
  65. package/dist-cjs/CloudHSM.js.map +0 -1
  66. package/dist-cjs/CloudHSMClient.js.map +0 -1
  67. package/dist-cjs/commands/AddTagsToResourceCommand.js.map +0 -1
  68. package/dist-cjs/commands/CreateHapgCommand.js.map +0 -1
  69. package/dist-cjs/commands/CreateHsmCommand.js.map +0 -1
  70. package/dist-cjs/commands/CreateLunaClientCommand.js.map +0 -1
  71. package/dist-cjs/commands/DeleteHapgCommand.js.map +0 -1
  72. package/dist-cjs/commands/DeleteHsmCommand.js.map +0 -1
  73. package/dist-cjs/commands/DeleteLunaClientCommand.js.map +0 -1
  74. package/dist-cjs/commands/DescribeHapgCommand.js.map +0 -1
  75. package/dist-cjs/commands/DescribeHsmCommand.js.map +0 -1
  76. package/dist-cjs/commands/DescribeLunaClientCommand.js.map +0 -1
  77. package/dist-cjs/commands/GetConfigCommand.js.map +0 -1
  78. package/dist-cjs/commands/ListAvailableZonesCommand.js.map +0 -1
  79. package/dist-cjs/commands/ListHapgsCommand.js.map +0 -1
  80. package/dist-cjs/commands/ListHsmsCommand.js.map +0 -1
  81. package/dist-cjs/commands/ListLunaClientsCommand.js.map +0 -1
  82. package/dist-cjs/commands/ListTagsForResourceCommand.js.map +0 -1
  83. package/dist-cjs/commands/ModifyHapgCommand.js.map +0 -1
  84. package/dist-cjs/commands/ModifyHsmCommand.js.map +0 -1
  85. package/dist-cjs/commands/ModifyLunaClientCommand.js.map +0 -1
  86. package/dist-cjs/commands/RemoveTagsFromResourceCommand.js.map +0 -1
  87. package/dist-cjs/endpoints.js.map +0 -1
  88. package/dist-cjs/index.js.map +0 -1
  89. package/dist-cjs/models/index.js.map +0 -1
  90. package/dist-cjs/models/models_0.js.map +0 -1
  91. package/dist-cjs/protocols/Aws_json1_1.js.map +0 -1
  92. package/dist-cjs/runtimeConfig.browser.js.map +0 -1
  93. package/dist-cjs/runtimeConfig.js.map +0 -1
  94. package/dist-cjs/runtimeConfig.native.js.map +0 -1
  95. package/dist-cjs/runtimeConfig.shared.js.map +0 -1
  96. package/dist-es/CloudHSM.js.map +0 -1
  97. package/dist-es/CloudHSMClient.js.map +0 -1
  98. package/dist-es/commands/AddTagsToResourceCommand.js.map +0 -1
  99. package/dist-es/commands/CreateHapgCommand.js.map +0 -1
  100. package/dist-es/commands/CreateHsmCommand.js.map +0 -1
  101. package/dist-es/commands/CreateLunaClientCommand.js.map +0 -1
  102. package/dist-es/commands/DeleteHapgCommand.js.map +0 -1
  103. package/dist-es/commands/DeleteHsmCommand.js.map +0 -1
  104. package/dist-es/commands/DeleteLunaClientCommand.js.map +0 -1
  105. package/dist-es/commands/DescribeHapgCommand.js.map +0 -1
  106. package/dist-es/commands/DescribeHsmCommand.js.map +0 -1
  107. package/dist-es/commands/DescribeLunaClientCommand.js.map +0 -1
  108. package/dist-es/commands/GetConfigCommand.js.map +0 -1
  109. package/dist-es/commands/ListAvailableZonesCommand.js.map +0 -1
  110. package/dist-es/commands/ListHapgsCommand.js.map +0 -1
  111. package/dist-es/commands/ListHsmsCommand.js.map +0 -1
  112. package/dist-es/commands/ListLunaClientsCommand.js.map +0 -1
  113. package/dist-es/commands/ListTagsForResourceCommand.js.map +0 -1
  114. package/dist-es/commands/ModifyHapgCommand.js.map +0 -1
  115. package/dist-es/commands/ModifyHsmCommand.js.map +0 -1
  116. package/dist-es/commands/ModifyLunaClientCommand.js.map +0 -1
  117. package/dist-es/commands/RemoveTagsFromResourceCommand.js.map +0 -1
  118. package/dist-es/endpoints.js.map +0 -1
  119. package/dist-es/index.js.map +0 -1
  120. package/dist-es/models/index.js.map +0 -1
  121. package/dist-es/models/models_0.js.map +0 -1
  122. package/dist-es/protocols/Aws_json1_1.js.map +0 -1
  123. package/dist-es/runtimeConfig.browser.js.map +0 -1
  124. package/dist-es/runtimeConfig.js.map +0 -1
  125. package/dist-es/runtimeConfig.native.js.map +0 -1
  126. package/dist-es/runtimeConfig.shared.js.map +0 -1
  127. package/jest.config.js +0 -4
  128. package/src/CloudHSM.ts +0 -893
  129. package/src/CloudHSMClient.ts +0 -312
  130. package/src/commands/AddTagsToResourceCommand.ts +0 -107
  131. package/src/commands/CreateHapgCommand.ts +0 -106
  132. package/src/commands/CreateHsmCommand.ts +0 -111
  133. package/src/commands/CreateLunaClientCommand.ts +0 -105
  134. package/src/commands/DeleteHapgCommand.ts +0 -105
  135. package/src/commands/DeleteHsmCommand.ts +0 -103
  136. package/src/commands/DeleteLunaClientCommand.ts +0 -105
  137. package/src/commands/DescribeHapgCommand.ts +0 -105
  138. package/src/commands/DescribeHsmCommand.ts +0 -106
  139. package/src/commands/DescribeLunaClientCommand.ts +0 -105
  140. package/src/commands/GetConfigCommand.ts +0 -103
  141. package/src/commands/ListAvailableZonesCommand.ts +0 -105
  142. package/src/commands/ListHapgsCommand.ts +0 -106
  143. package/src/commands/ListHsmsCommand.ts +0 -107
  144. package/src/commands/ListLunaClientsCommand.ts +0 -109
  145. package/src/commands/ListTagsForResourceCommand.ts +0 -105
  146. package/src/commands/ModifyHapgCommand.ts +0 -105
  147. package/src/commands/ModifyHsmCommand.ts +0 -108
  148. package/src/commands/ModifyLunaClientCommand.ts +0 -107
  149. package/src/commands/RemoveTagsFromResourceCommand.ts +0 -107
  150. package/src/endpoints.ts +0 -57
  151. package/src/index.ts +0 -23
  152. package/src/models/index.ts +0 -1
  153. package/src/models/models_0.ts +0 -1161
  154. package/src/protocols/Aws_json1_1.ts +0 -2400
  155. package/src/runtimeConfig.browser.ts +0 -41
  156. package/src/runtimeConfig.native.ts +0 -17
  157. package/src/runtimeConfig.shared.ts +0 -17
  158. package/src/runtimeConfig.ts +0 -46
  159. package/tsconfig.es.json +0 -10
  160. package/tsconfig.json +0 -33
  161. package/tsconfig.types.json +0 -9
@@ -1,105 +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 { CloudHSMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudHSMClient";
15
- import { CreateLunaClientRequest, CreateLunaClientResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_1CreateLunaClientCommand,
18
- serializeAws_json1_1CreateLunaClientCommand,
19
- } from "../protocols/Aws_json1_1";
20
-
21
- export interface CreateLunaClientCommandInput extends CreateLunaClientRequest {}
22
- export interface CreateLunaClientCommandOutput extends CreateLunaClientResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>This is documentation for <b>AWS CloudHSM Classic</b>. For
26
- * more information, see <a href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM
27
- * Classic FAQs</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS
28
- * CloudHSM Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS CloudHSM Classic API Reference</a>.</p>
29
- * <p>
30
- * <b>For information about the current version of AWS
31
- * CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS CloudHSM</a>, the
32
- * <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS CloudHSM User Guide</a>,
33
- * and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS CloudHSM API
34
- * Reference</a>.</p>
35
- * <p>Creates an HSM client.</p>
36
- * @example
37
- * Use a bare-bones client and the command you need to make an API call.
38
- * ```javascript
39
- * import { CloudHSMClient, CreateLunaClientCommand } from "@aws-sdk/client-cloudhsm"; // ES Modules import
40
- * // const { CloudHSMClient, CreateLunaClientCommand } = require("@aws-sdk/client-cloudhsm"); // CommonJS import
41
- * const client = new CloudHSMClient(config);
42
- * const command = new CreateLunaClientCommand(input);
43
- * const response = await client.send(command);
44
- * ```
45
- *
46
- * @see {@link CreateLunaClientCommandInput} for command's `input` shape.
47
- * @see {@link CreateLunaClientCommandOutput} for command's `response` shape.
48
- * @see {@link CloudHSMClientResolvedConfig | config} for command's `input` shape.
49
- *
50
- */
51
- export class CreateLunaClientCommand extends $Command<
52
- CreateLunaClientCommandInput,
53
- CreateLunaClientCommandOutput,
54
- CloudHSMClientResolvedConfig
55
- > {
56
- // Start section: command_properties
57
- // End section: command_properties
58
-
59
- constructor(readonly input: CreateLunaClientCommandInput) {
60
- // Start section: command_constructor
61
- super();
62
- // End section: command_constructor
63
- }
64
-
65
- /**
66
- * @internal
67
- */
68
- resolveMiddleware(
69
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
70
- configuration: CloudHSMClientResolvedConfig,
71
- options?: __HttpHandlerOptions
72
- ): Handler<CreateLunaClientCommandInput, CreateLunaClientCommandOutput> {
73
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
74
-
75
- const stack = clientStack.concat(this.middlewareStack);
76
-
77
- const { logger } = configuration;
78
- const clientName = "CloudHSMClient";
79
- const commandName = "CreateLunaClientCommand";
80
- const handlerExecutionContext: HandlerExecutionContext = {
81
- logger,
82
- clientName,
83
- commandName,
84
- inputFilterSensitiveLog: CreateLunaClientRequest.filterSensitiveLog,
85
- outputFilterSensitiveLog: CreateLunaClientResponse.filterSensitiveLog,
86
- };
87
- const { requestHandler } = configuration;
88
- return stack.resolve(
89
- (request: FinalizeHandlerArguments<any>) =>
90
- requestHandler.handle(request.request as __HttpRequest, options || {}),
91
- handlerExecutionContext
92
- );
93
- }
94
-
95
- private serialize(input: CreateLunaClientCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
96
- return serializeAws_json1_1CreateLunaClientCommand(input, context);
97
- }
98
-
99
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CreateLunaClientCommandOutput> {
100
- return deserializeAws_json1_1CreateLunaClientCommand(output, context);
101
- }
102
-
103
- // Start section: command_body_extra
104
- // End section: command_body_extra
105
- }
@@ -1,105 +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 { CloudHSMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudHSMClient";
15
- import { DeleteHapgRequest, DeleteHapgResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_1DeleteHapgCommand,
18
- serializeAws_json1_1DeleteHapgCommand,
19
- } from "../protocols/Aws_json1_1";
20
-
21
- export interface DeleteHapgCommandInput extends DeleteHapgRequest {}
22
- export interface DeleteHapgCommandOutput extends DeleteHapgResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>This is documentation for <b>AWS CloudHSM Classic</b>. For
26
- * more information, see <a href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM
27
- * Classic FAQs</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS
28
- * CloudHSM Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS CloudHSM Classic API Reference</a>.</p>
29
- * <p>
30
- * <b>For information about the current version of AWS
31
- * CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS CloudHSM</a>, the
32
- * <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS CloudHSM User Guide</a>,
33
- * and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS CloudHSM API
34
- * Reference</a>.</p>
35
- * <p>Deletes a high-availability partition group.</p>
36
- * @example
37
- * Use a bare-bones client and the command you need to make an API call.
38
- * ```javascript
39
- * import { CloudHSMClient, DeleteHapgCommand } from "@aws-sdk/client-cloudhsm"; // ES Modules import
40
- * // const { CloudHSMClient, DeleteHapgCommand } = require("@aws-sdk/client-cloudhsm"); // CommonJS import
41
- * const client = new CloudHSMClient(config);
42
- * const command = new DeleteHapgCommand(input);
43
- * const response = await client.send(command);
44
- * ```
45
- *
46
- * @see {@link DeleteHapgCommandInput} for command's `input` shape.
47
- * @see {@link DeleteHapgCommandOutput} for command's `response` shape.
48
- * @see {@link CloudHSMClientResolvedConfig | config} for command's `input` shape.
49
- *
50
- */
51
- export class DeleteHapgCommand extends $Command<
52
- DeleteHapgCommandInput,
53
- DeleteHapgCommandOutput,
54
- CloudHSMClientResolvedConfig
55
- > {
56
- // Start section: command_properties
57
- // End section: command_properties
58
-
59
- constructor(readonly input: DeleteHapgCommandInput) {
60
- // Start section: command_constructor
61
- super();
62
- // End section: command_constructor
63
- }
64
-
65
- /**
66
- * @internal
67
- */
68
- resolveMiddleware(
69
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
70
- configuration: CloudHSMClientResolvedConfig,
71
- options?: __HttpHandlerOptions
72
- ): Handler<DeleteHapgCommandInput, DeleteHapgCommandOutput> {
73
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
74
-
75
- const stack = clientStack.concat(this.middlewareStack);
76
-
77
- const { logger } = configuration;
78
- const clientName = "CloudHSMClient";
79
- const commandName = "DeleteHapgCommand";
80
- const handlerExecutionContext: HandlerExecutionContext = {
81
- logger,
82
- clientName,
83
- commandName,
84
- inputFilterSensitiveLog: DeleteHapgRequest.filterSensitiveLog,
85
- outputFilterSensitiveLog: DeleteHapgResponse.filterSensitiveLog,
86
- };
87
- const { requestHandler } = configuration;
88
- return stack.resolve(
89
- (request: FinalizeHandlerArguments<any>) =>
90
- requestHandler.handle(request.request as __HttpRequest, options || {}),
91
- handlerExecutionContext
92
- );
93
- }
94
-
95
- private serialize(input: DeleteHapgCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
96
- return serializeAws_json1_1DeleteHapgCommand(input, context);
97
- }
98
-
99
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DeleteHapgCommandOutput> {
100
- return deserializeAws_json1_1DeleteHapgCommand(output, context);
101
- }
102
-
103
- // Start section: command_body_extra
104
- // End section: command_body_extra
105
- }
@@ -1,103 +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 { CloudHSMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudHSMClient";
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>This is documentation for <b>AWS CloudHSM Classic</b>. For
23
- * more information, see <a href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM
24
- * Classic FAQs</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS
25
- * CloudHSM Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS CloudHSM Classic API Reference</a>.</p>
26
- * <p>
27
- * <b>For information about the current version of AWS
28
- * CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS CloudHSM</a>, the
29
- * <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS CloudHSM User Guide</a>,
30
- * and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS CloudHSM API
31
- * Reference</a>.</p>
32
- * <p>Deletes an HSM. After completion, this operation cannot be undone and your key material
33
- * cannot be recovered.</p>
34
- * @example
35
- * Use a bare-bones client and the command you need to make an API call.
36
- * ```javascript
37
- * import { CloudHSMClient, DeleteHsmCommand } from "@aws-sdk/client-cloudhsm"; // ES Modules import
38
- * // const { CloudHSMClient, DeleteHsmCommand } = require("@aws-sdk/client-cloudhsm"); // CommonJS import
39
- * const client = new CloudHSMClient(config);
40
- * const command = new DeleteHsmCommand(input);
41
- * const response = await client.send(command);
42
- * ```
43
- *
44
- * @see {@link DeleteHsmCommandInput} for command's `input` shape.
45
- * @see {@link DeleteHsmCommandOutput} for command's `response` shape.
46
- * @see {@link CloudHSMClientResolvedConfig | config} for command's `input` shape.
47
- *
48
- */
49
- export class DeleteHsmCommand extends $Command<
50
- DeleteHsmCommandInput,
51
- DeleteHsmCommandOutput,
52
- CloudHSMClientResolvedConfig
53
- > {
54
- // Start section: command_properties
55
- // End section: command_properties
56
-
57
- constructor(readonly input: DeleteHsmCommandInput) {
58
- // Start section: command_constructor
59
- super();
60
- // End section: command_constructor
61
- }
62
-
63
- /**
64
- * @internal
65
- */
66
- resolveMiddleware(
67
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
68
- configuration: CloudHSMClientResolvedConfig,
69
- options?: __HttpHandlerOptions
70
- ): Handler<DeleteHsmCommandInput, DeleteHsmCommandOutput> {
71
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
72
-
73
- const stack = clientStack.concat(this.middlewareStack);
74
-
75
- const { logger } = configuration;
76
- const clientName = "CloudHSMClient";
77
- const commandName = "DeleteHsmCommand";
78
- const handlerExecutionContext: HandlerExecutionContext = {
79
- logger,
80
- clientName,
81
- commandName,
82
- inputFilterSensitiveLog: DeleteHsmRequest.filterSensitiveLog,
83
- outputFilterSensitiveLog: DeleteHsmResponse.filterSensitiveLog,
84
- };
85
- const { requestHandler } = configuration;
86
- return stack.resolve(
87
- (request: FinalizeHandlerArguments<any>) =>
88
- requestHandler.handle(request.request as __HttpRequest, options || {}),
89
- handlerExecutionContext
90
- );
91
- }
92
-
93
- private serialize(input: DeleteHsmCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
94
- return serializeAws_json1_1DeleteHsmCommand(input, context);
95
- }
96
-
97
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DeleteHsmCommandOutput> {
98
- return deserializeAws_json1_1DeleteHsmCommand(output, context);
99
- }
100
-
101
- // Start section: command_body_extra
102
- // End section: command_body_extra
103
- }
@@ -1,105 +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 { CloudHSMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudHSMClient";
15
- import { DeleteLunaClientRequest, DeleteLunaClientResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_1DeleteLunaClientCommand,
18
- serializeAws_json1_1DeleteLunaClientCommand,
19
- } from "../protocols/Aws_json1_1";
20
-
21
- export interface DeleteLunaClientCommandInput extends DeleteLunaClientRequest {}
22
- export interface DeleteLunaClientCommandOutput extends DeleteLunaClientResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>This is documentation for <b>AWS CloudHSM Classic</b>. For
26
- * more information, see <a href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM
27
- * Classic FAQs</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS
28
- * CloudHSM Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS CloudHSM Classic API Reference</a>.</p>
29
- * <p>
30
- * <b>For information about the current version of AWS
31
- * CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS CloudHSM</a>, the
32
- * <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS CloudHSM User Guide</a>,
33
- * and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS CloudHSM API
34
- * Reference</a>.</p>
35
- * <p>Deletes a client.</p>
36
- * @example
37
- * Use a bare-bones client and the command you need to make an API call.
38
- * ```javascript
39
- * import { CloudHSMClient, DeleteLunaClientCommand } from "@aws-sdk/client-cloudhsm"; // ES Modules import
40
- * // const { CloudHSMClient, DeleteLunaClientCommand } = require("@aws-sdk/client-cloudhsm"); // CommonJS import
41
- * const client = new CloudHSMClient(config);
42
- * const command = new DeleteLunaClientCommand(input);
43
- * const response = await client.send(command);
44
- * ```
45
- *
46
- * @see {@link DeleteLunaClientCommandInput} for command's `input` shape.
47
- * @see {@link DeleteLunaClientCommandOutput} for command's `response` shape.
48
- * @see {@link CloudHSMClientResolvedConfig | config} for command's `input` shape.
49
- *
50
- */
51
- export class DeleteLunaClientCommand extends $Command<
52
- DeleteLunaClientCommandInput,
53
- DeleteLunaClientCommandOutput,
54
- CloudHSMClientResolvedConfig
55
- > {
56
- // Start section: command_properties
57
- // End section: command_properties
58
-
59
- constructor(readonly input: DeleteLunaClientCommandInput) {
60
- // Start section: command_constructor
61
- super();
62
- // End section: command_constructor
63
- }
64
-
65
- /**
66
- * @internal
67
- */
68
- resolveMiddleware(
69
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
70
- configuration: CloudHSMClientResolvedConfig,
71
- options?: __HttpHandlerOptions
72
- ): Handler<DeleteLunaClientCommandInput, DeleteLunaClientCommandOutput> {
73
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
74
-
75
- const stack = clientStack.concat(this.middlewareStack);
76
-
77
- const { logger } = configuration;
78
- const clientName = "CloudHSMClient";
79
- const commandName = "DeleteLunaClientCommand";
80
- const handlerExecutionContext: HandlerExecutionContext = {
81
- logger,
82
- clientName,
83
- commandName,
84
- inputFilterSensitiveLog: DeleteLunaClientRequest.filterSensitiveLog,
85
- outputFilterSensitiveLog: DeleteLunaClientResponse.filterSensitiveLog,
86
- };
87
- const { requestHandler } = configuration;
88
- return stack.resolve(
89
- (request: FinalizeHandlerArguments<any>) =>
90
- requestHandler.handle(request.request as __HttpRequest, options || {}),
91
- handlerExecutionContext
92
- );
93
- }
94
-
95
- private serialize(input: DeleteLunaClientCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
96
- return serializeAws_json1_1DeleteLunaClientCommand(input, context);
97
- }
98
-
99
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DeleteLunaClientCommandOutput> {
100
- return deserializeAws_json1_1DeleteLunaClientCommand(output, context);
101
- }
102
-
103
- // Start section: command_body_extra
104
- // End section: command_body_extra
105
- }
@@ -1,105 +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 { CloudHSMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudHSMClient";
15
- import { DescribeHapgRequest, DescribeHapgResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_1DescribeHapgCommand,
18
- serializeAws_json1_1DescribeHapgCommand,
19
- } from "../protocols/Aws_json1_1";
20
-
21
- export interface DescribeHapgCommandInput extends DescribeHapgRequest {}
22
- export interface DescribeHapgCommandOutput extends DescribeHapgResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>This is documentation for <b>AWS CloudHSM Classic</b>. For
26
- * more information, see <a href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM
27
- * Classic FAQs</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS
28
- * CloudHSM Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS CloudHSM Classic API Reference</a>.</p>
29
- * <p>
30
- * <b>For information about the current version of AWS
31
- * CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS CloudHSM</a>, the
32
- * <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS CloudHSM User Guide</a>,
33
- * and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS CloudHSM API
34
- * Reference</a>.</p>
35
- * <p>Retrieves information about a high-availability partition group.</p>
36
- * @example
37
- * Use a bare-bones client and the command you need to make an API call.
38
- * ```javascript
39
- * import { CloudHSMClient, DescribeHapgCommand } from "@aws-sdk/client-cloudhsm"; // ES Modules import
40
- * // const { CloudHSMClient, DescribeHapgCommand } = require("@aws-sdk/client-cloudhsm"); // CommonJS import
41
- * const client = new CloudHSMClient(config);
42
- * const command = new DescribeHapgCommand(input);
43
- * const response = await client.send(command);
44
- * ```
45
- *
46
- * @see {@link DescribeHapgCommandInput} for command's `input` shape.
47
- * @see {@link DescribeHapgCommandOutput} for command's `response` shape.
48
- * @see {@link CloudHSMClientResolvedConfig | config} for command's `input` shape.
49
- *
50
- */
51
- export class DescribeHapgCommand extends $Command<
52
- DescribeHapgCommandInput,
53
- DescribeHapgCommandOutput,
54
- CloudHSMClientResolvedConfig
55
- > {
56
- // Start section: command_properties
57
- // End section: command_properties
58
-
59
- constructor(readonly input: DescribeHapgCommandInput) {
60
- // Start section: command_constructor
61
- super();
62
- // End section: command_constructor
63
- }
64
-
65
- /**
66
- * @internal
67
- */
68
- resolveMiddleware(
69
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
70
- configuration: CloudHSMClientResolvedConfig,
71
- options?: __HttpHandlerOptions
72
- ): Handler<DescribeHapgCommandInput, DescribeHapgCommandOutput> {
73
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
74
-
75
- const stack = clientStack.concat(this.middlewareStack);
76
-
77
- const { logger } = configuration;
78
- const clientName = "CloudHSMClient";
79
- const commandName = "DescribeHapgCommand";
80
- const handlerExecutionContext: HandlerExecutionContext = {
81
- logger,
82
- clientName,
83
- commandName,
84
- inputFilterSensitiveLog: DescribeHapgRequest.filterSensitiveLog,
85
- outputFilterSensitiveLog: DescribeHapgResponse.filterSensitiveLog,
86
- };
87
- const { requestHandler } = configuration;
88
- return stack.resolve(
89
- (request: FinalizeHandlerArguments<any>) =>
90
- requestHandler.handle(request.request as __HttpRequest, options || {}),
91
- handlerExecutionContext
92
- );
93
- }
94
-
95
- private serialize(input: DescribeHapgCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
96
- return serializeAws_json1_1DescribeHapgCommand(input, context);
97
- }
98
-
99
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DescribeHapgCommandOutput> {
100
- return deserializeAws_json1_1DescribeHapgCommand(output, context);
101
- }
102
-
103
- // Start section: command_body_extra
104
- // End section: command_body_extra
105
- }
@@ -1,106 +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 { CloudHSMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudHSMClient";
15
- import { DescribeHsmRequest, DescribeHsmResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_1DescribeHsmCommand,
18
- serializeAws_json1_1DescribeHsmCommand,
19
- } from "../protocols/Aws_json1_1";
20
-
21
- export interface DescribeHsmCommandInput extends DescribeHsmRequest {}
22
- export interface DescribeHsmCommandOutput extends DescribeHsmResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>This is documentation for <b>AWS CloudHSM Classic</b>. For
26
- * more information, see <a href="http://aws.amazon.com/cloudhsm/faqs-classic/">AWS CloudHSM
27
- * Classic FAQs</a>, the <a href="https://docs.aws.amazon.com/cloudhsm/classic/userguide/">AWS
28
- * CloudHSM Classic User Guide</a>, and the <a href="https://docs.aws.amazon.com/cloudhsm/classic/APIReference/">AWS CloudHSM Classic API Reference</a>.</p>
29
- * <p>
30
- * <b>For information about the current version of AWS
31
- * CloudHSM</b>, see <a href="http://aws.amazon.com/cloudhsm/">AWS CloudHSM</a>, the
32
- * <a href="https://docs.aws.amazon.com/cloudhsm/latest/userguide/">AWS CloudHSM User Guide</a>,
33
- * and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS CloudHSM API
34
- * Reference</a>.</p>
35
- * <p>Retrieves information about an HSM. You can identify the HSM by its ARN or its serial
36
- * number.</p>
37
- * @example
38
- * Use a bare-bones client and the command you need to make an API call.
39
- * ```javascript
40
- * import { CloudHSMClient, DescribeHsmCommand } from "@aws-sdk/client-cloudhsm"; // ES Modules import
41
- * // const { CloudHSMClient, DescribeHsmCommand } = require("@aws-sdk/client-cloudhsm"); // CommonJS import
42
- * const client = new CloudHSMClient(config);
43
- * const command = new DescribeHsmCommand(input);
44
- * const response = await client.send(command);
45
- * ```
46
- *
47
- * @see {@link DescribeHsmCommandInput} for command's `input` shape.
48
- * @see {@link DescribeHsmCommandOutput} for command's `response` shape.
49
- * @see {@link CloudHSMClientResolvedConfig | config} for command's `input` shape.
50
- *
51
- */
52
- export class DescribeHsmCommand extends $Command<
53
- DescribeHsmCommandInput,
54
- DescribeHsmCommandOutput,
55
- CloudHSMClientResolvedConfig
56
- > {
57
- // Start section: command_properties
58
- // End section: command_properties
59
-
60
- constructor(readonly input: DescribeHsmCommandInput) {
61
- // Start section: command_constructor
62
- super();
63
- // End section: command_constructor
64
- }
65
-
66
- /**
67
- * @internal
68
- */
69
- resolveMiddleware(
70
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
71
- configuration: CloudHSMClientResolvedConfig,
72
- options?: __HttpHandlerOptions
73
- ): Handler<DescribeHsmCommandInput, DescribeHsmCommandOutput> {
74
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
75
-
76
- const stack = clientStack.concat(this.middlewareStack);
77
-
78
- const { logger } = configuration;
79
- const clientName = "CloudHSMClient";
80
- const commandName = "DescribeHsmCommand";
81
- const handlerExecutionContext: HandlerExecutionContext = {
82
- logger,
83
- clientName,
84
- commandName,
85
- inputFilterSensitiveLog: DescribeHsmRequest.filterSensitiveLog,
86
- outputFilterSensitiveLog: DescribeHsmResponse.filterSensitiveLog,
87
- };
88
- const { requestHandler } = configuration;
89
- return stack.resolve(
90
- (request: FinalizeHandlerArguments<any>) =>
91
- requestHandler.handle(request.request as __HttpRequest, options || {}),
92
- handlerExecutionContext
93
- );
94
- }
95
-
96
- private serialize(input: DescribeHsmCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
97
- return serializeAws_json1_1DescribeHsmCommand(input, context);
98
- }
99
-
100
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DescribeHsmCommandOutput> {
101
- return deserializeAws_json1_1DescribeHsmCommand(output, context);
102
- }
103
-
104
- // Start section: command_body_extra
105
- // End section: command_body_extra
106
- }