@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 { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_1ListTagsForResourceCommand,
18
- serializeAws_json1_1ListTagsForResourceCommand,
19
- } from "../protocols/Aws_json1_1";
20
-
21
- export interface ListTagsForResourceCommandInput extends ListTagsForResourceRequest {}
22
- export interface ListTagsForResourceCommandOutput extends ListTagsForResourceResponse, __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>Returns a list of all tags for the specified AWS CloudHSM resource.</p>
36
- * @example
37
- * Use a bare-bones client and the command you need to make an API call.
38
- * ```javascript
39
- * import { CloudHSMClient, ListTagsForResourceCommand } from "@aws-sdk/client-cloudhsm"; // ES Modules import
40
- * // const { CloudHSMClient, ListTagsForResourceCommand } = require("@aws-sdk/client-cloudhsm"); // CommonJS import
41
- * const client = new CloudHSMClient(config);
42
- * const command = new ListTagsForResourceCommand(input);
43
- * const response = await client.send(command);
44
- * ```
45
- *
46
- * @see {@link ListTagsForResourceCommandInput} for command's `input` shape.
47
- * @see {@link ListTagsForResourceCommandOutput} for command's `response` shape.
48
- * @see {@link CloudHSMClientResolvedConfig | config} for command's `input` shape.
49
- *
50
- */
51
- export class ListTagsForResourceCommand extends $Command<
52
- ListTagsForResourceCommandInput,
53
- ListTagsForResourceCommandOutput,
54
- CloudHSMClientResolvedConfig
55
- > {
56
- // Start section: command_properties
57
- // End section: command_properties
58
-
59
- constructor(readonly input: ListTagsForResourceCommandInput) {
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<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput> {
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 = "ListTagsForResourceCommand";
80
- const handlerExecutionContext: HandlerExecutionContext = {
81
- logger,
82
- clientName,
83
- commandName,
84
- inputFilterSensitiveLog: ListTagsForResourceRequest.filterSensitiveLog,
85
- outputFilterSensitiveLog: ListTagsForResourceResponse.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: ListTagsForResourceCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
96
- return serializeAws_json1_1ListTagsForResourceCommand(input, context);
97
- }
98
-
99
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListTagsForResourceCommandOutput> {
100
- return deserializeAws_json1_1ListTagsForResourceCommand(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 { ModifyHapgRequest, ModifyHapgResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_1ModifyHapgCommand,
18
- serializeAws_json1_1ModifyHapgCommand,
19
- } from "../protocols/Aws_json1_1";
20
-
21
- export interface ModifyHapgCommandInput extends ModifyHapgRequest {}
22
- export interface ModifyHapgCommandOutput extends ModifyHapgResponse, __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>Modifies an existing 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, ModifyHapgCommand } from "@aws-sdk/client-cloudhsm"; // ES Modules import
40
- * // const { CloudHSMClient, ModifyHapgCommand } = require("@aws-sdk/client-cloudhsm"); // CommonJS import
41
- * const client = new CloudHSMClient(config);
42
- * const command = new ModifyHapgCommand(input);
43
- * const response = await client.send(command);
44
- * ```
45
- *
46
- * @see {@link ModifyHapgCommandInput} for command's `input` shape.
47
- * @see {@link ModifyHapgCommandOutput} for command's `response` shape.
48
- * @see {@link CloudHSMClientResolvedConfig | config} for command's `input` shape.
49
- *
50
- */
51
- export class ModifyHapgCommand extends $Command<
52
- ModifyHapgCommandInput,
53
- ModifyHapgCommandOutput,
54
- CloudHSMClientResolvedConfig
55
- > {
56
- // Start section: command_properties
57
- // End section: command_properties
58
-
59
- constructor(readonly input: ModifyHapgCommandInput) {
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<ModifyHapgCommandInput, ModifyHapgCommandOutput> {
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 = "ModifyHapgCommand";
80
- const handlerExecutionContext: HandlerExecutionContext = {
81
- logger,
82
- clientName,
83
- commandName,
84
- inputFilterSensitiveLog: ModifyHapgRequest.filterSensitiveLog,
85
- outputFilterSensitiveLog: ModifyHapgResponse.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: ModifyHapgCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
96
- return serializeAws_json1_1ModifyHapgCommand(input, context);
97
- }
98
-
99
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ModifyHapgCommandOutput> {
100
- return deserializeAws_json1_1ModifyHapgCommand(output, context);
101
- }
102
-
103
- // Start section: command_body_extra
104
- // End section: command_body_extra
105
- }
@@ -1,108 +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 { ModifyHsmRequest, ModifyHsmResponse } from "../models/models_0";
16
- import { deserializeAws_json1_1ModifyHsmCommand, serializeAws_json1_1ModifyHsmCommand } from "../protocols/Aws_json1_1";
17
-
18
- export interface ModifyHsmCommandInput extends ModifyHsmRequest {}
19
- export interface ModifyHsmCommandOutput extends ModifyHsmResponse, __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>Modifies an HSM.</p>
33
- * <important>
34
- * <p>This operation can result in the HSM being offline for up to 15 minutes while the AWS
35
- * CloudHSM service is reconfigured. If you are modifying a production HSM, you should ensure
36
- * that your AWS CloudHSM service is configured for high availability, and consider executing this
37
- * operation during a maintenance window.</p>
38
- * </important>
39
- * @example
40
- * Use a bare-bones client and the command you need to make an API call.
41
- * ```javascript
42
- * import { CloudHSMClient, ModifyHsmCommand } from "@aws-sdk/client-cloudhsm"; // ES Modules import
43
- * // const { CloudHSMClient, ModifyHsmCommand } = require("@aws-sdk/client-cloudhsm"); // CommonJS import
44
- * const client = new CloudHSMClient(config);
45
- * const command = new ModifyHsmCommand(input);
46
- * const response = await client.send(command);
47
- * ```
48
- *
49
- * @see {@link ModifyHsmCommandInput} for command's `input` shape.
50
- * @see {@link ModifyHsmCommandOutput} for command's `response` shape.
51
- * @see {@link CloudHSMClientResolvedConfig | config} for command's `input` shape.
52
- *
53
- */
54
- export class ModifyHsmCommand extends $Command<
55
- ModifyHsmCommandInput,
56
- ModifyHsmCommandOutput,
57
- CloudHSMClientResolvedConfig
58
- > {
59
- // Start section: command_properties
60
- // End section: command_properties
61
-
62
- constructor(readonly input: ModifyHsmCommandInput) {
63
- // Start section: command_constructor
64
- super();
65
- // End section: command_constructor
66
- }
67
-
68
- /**
69
- * @internal
70
- */
71
- resolveMiddleware(
72
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
73
- configuration: CloudHSMClientResolvedConfig,
74
- options?: __HttpHandlerOptions
75
- ): Handler<ModifyHsmCommandInput, ModifyHsmCommandOutput> {
76
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
77
-
78
- const stack = clientStack.concat(this.middlewareStack);
79
-
80
- const { logger } = configuration;
81
- const clientName = "CloudHSMClient";
82
- const commandName = "ModifyHsmCommand";
83
- const handlerExecutionContext: HandlerExecutionContext = {
84
- logger,
85
- clientName,
86
- commandName,
87
- inputFilterSensitiveLog: ModifyHsmRequest.filterSensitiveLog,
88
- outputFilterSensitiveLog: ModifyHsmResponse.filterSensitiveLog,
89
- };
90
- const { requestHandler } = configuration;
91
- return stack.resolve(
92
- (request: FinalizeHandlerArguments<any>) =>
93
- requestHandler.handle(request.request as __HttpRequest, options || {}),
94
- handlerExecutionContext
95
- );
96
- }
97
-
98
- private serialize(input: ModifyHsmCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
99
- return serializeAws_json1_1ModifyHsmCommand(input, context);
100
- }
101
-
102
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ModifyHsmCommandOutput> {
103
- return deserializeAws_json1_1ModifyHsmCommand(output, context);
104
- }
105
-
106
- // Start section: command_body_extra
107
- // End section: command_body_extra
108
- }
@@ -1,107 +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 { ModifyLunaClientRequest, ModifyLunaClientResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_1ModifyLunaClientCommand,
18
- serializeAws_json1_1ModifyLunaClientCommand,
19
- } from "../protocols/Aws_json1_1";
20
-
21
- export interface ModifyLunaClientCommandInput extends ModifyLunaClientRequest {}
22
- export interface ModifyLunaClientCommandOutput extends ModifyLunaClientResponse, __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>Modifies the certificate used by the client.</p>
36
- * <p>This action can potentially start a workflow to install the new certificate on the
37
- * client's HSMs.</p>
38
- * @example
39
- * Use a bare-bones client and the command you need to make an API call.
40
- * ```javascript
41
- * import { CloudHSMClient, ModifyLunaClientCommand } from "@aws-sdk/client-cloudhsm"; // ES Modules import
42
- * // const { CloudHSMClient, ModifyLunaClientCommand } = require("@aws-sdk/client-cloudhsm"); // CommonJS import
43
- * const client = new CloudHSMClient(config);
44
- * const command = new ModifyLunaClientCommand(input);
45
- * const response = await client.send(command);
46
- * ```
47
- *
48
- * @see {@link ModifyLunaClientCommandInput} for command's `input` shape.
49
- * @see {@link ModifyLunaClientCommandOutput} for command's `response` shape.
50
- * @see {@link CloudHSMClientResolvedConfig | config} for command's `input` shape.
51
- *
52
- */
53
- export class ModifyLunaClientCommand extends $Command<
54
- ModifyLunaClientCommandInput,
55
- ModifyLunaClientCommandOutput,
56
- CloudHSMClientResolvedConfig
57
- > {
58
- // Start section: command_properties
59
- // End section: command_properties
60
-
61
- constructor(readonly input: ModifyLunaClientCommandInput) {
62
- // Start section: command_constructor
63
- super();
64
- // End section: command_constructor
65
- }
66
-
67
- /**
68
- * @internal
69
- */
70
- resolveMiddleware(
71
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
72
- configuration: CloudHSMClientResolvedConfig,
73
- options?: __HttpHandlerOptions
74
- ): Handler<ModifyLunaClientCommandInput, ModifyLunaClientCommandOutput> {
75
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
76
-
77
- const stack = clientStack.concat(this.middlewareStack);
78
-
79
- const { logger } = configuration;
80
- const clientName = "CloudHSMClient";
81
- const commandName = "ModifyLunaClientCommand";
82
- const handlerExecutionContext: HandlerExecutionContext = {
83
- logger,
84
- clientName,
85
- commandName,
86
- inputFilterSensitiveLog: ModifyLunaClientRequest.filterSensitiveLog,
87
- outputFilterSensitiveLog: ModifyLunaClientResponse.filterSensitiveLog,
88
- };
89
- const { requestHandler } = configuration;
90
- return stack.resolve(
91
- (request: FinalizeHandlerArguments<any>) =>
92
- requestHandler.handle(request.request as __HttpRequest, options || {}),
93
- handlerExecutionContext
94
- );
95
- }
96
-
97
- private serialize(input: ModifyLunaClientCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
98
- return serializeAws_json1_1ModifyLunaClientCommand(input, context);
99
- }
100
-
101
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ModifyLunaClientCommandOutput> {
102
- return deserializeAws_json1_1ModifyLunaClientCommand(output, context);
103
- }
104
-
105
- // Start section: command_body_extra
106
- // End section: command_body_extra
107
- }
@@ -1,107 +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 { RemoveTagsFromResourceRequest, RemoveTagsFromResourceResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_1RemoveTagsFromResourceCommand,
18
- serializeAws_json1_1RemoveTagsFromResourceCommand,
19
- } from "../protocols/Aws_json1_1";
20
-
21
- export interface RemoveTagsFromResourceCommandInput extends RemoveTagsFromResourceRequest {}
22
- export interface RemoveTagsFromResourceCommandOutput extends RemoveTagsFromResourceResponse, __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>Removes one or more tags from the specified AWS CloudHSM resource.</p>
36
- * <p>To remove a tag, specify only the tag key to remove (not the value). To overwrite the
37
- * value for an existing tag, use <a>AddTagsToResource</a>.</p>
38
- * @example
39
- * Use a bare-bones client and the command you need to make an API call.
40
- * ```javascript
41
- * import { CloudHSMClient, RemoveTagsFromResourceCommand } from "@aws-sdk/client-cloudhsm"; // ES Modules import
42
- * // const { CloudHSMClient, RemoveTagsFromResourceCommand } = require("@aws-sdk/client-cloudhsm"); // CommonJS import
43
- * const client = new CloudHSMClient(config);
44
- * const command = new RemoveTagsFromResourceCommand(input);
45
- * const response = await client.send(command);
46
- * ```
47
- *
48
- * @see {@link RemoveTagsFromResourceCommandInput} for command's `input` shape.
49
- * @see {@link RemoveTagsFromResourceCommandOutput} for command's `response` shape.
50
- * @see {@link CloudHSMClientResolvedConfig | config} for command's `input` shape.
51
- *
52
- */
53
- export class RemoveTagsFromResourceCommand extends $Command<
54
- RemoveTagsFromResourceCommandInput,
55
- RemoveTagsFromResourceCommandOutput,
56
- CloudHSMClientResolvedConfig
57
- > {
58
- // Start section: command_properties
59
- // End section: command_properties
60
-
61
- constructor(readonly input: RemoveTagsFromResourceCommandInput) {
62
- // Start section: command_constructor
63
- super();
64
- // End section: command_constructor
65
- }
66
-
67
- /**
68
- * @internal
69
- */
70
- resolveMiddleware(
71
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
72
- configuration: CloudHSMClientResolvedConfig,
73
- options?: __HttpHandlerOptions
74
- ): Handler<RemoveTagsFromResourceCommandInput, RemoveTagsFromResourceCommandOutput> {
75
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
76
-
77
- const stack = clientStack.concat(this.middlewareStack);
78
-
79
- const { logger } = configuration;
80
- const clientName = "CloudHSMClient";
81
- const commandName = "RemoveTagsFromResourceCommand";
82
- const handlerExecutionContext: HandlerExecutionContext = {
83
- logger,
84
- clientName,
85
- commandName,
86
- inputFilterSensitiveLog: RemoveTagsFromResourceRequest.filterSensitiveLog,
87
- outputFilterSensitiveLog: RemoveTagsFromResourceResponse.filterSensitiveLog,
88
- };
89
- const { requestHandler } = configuration;
90
- return stack.resolve(
91
- (request: FinalizeHandlerArguments<any>) =>
92
- requestHandler.handle(request.request as __HttpRequest, options || {}),
93
- handlerExecutionContext
94
- );
95
- }
96
-
97
- private serialize(input: RemoveTagsFromResourceCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
98
- return serializeAws_json1_1RemoveTagsFromResourceCommand(input, context);
99
- }
100
-
101
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<RemoveTagsFromResourceCommandOutput> {
102
- return deserializeAws_json1_1RemoveTagsFromResourceCommand(output, context);
103
- }
104
-
105
- // Start section: command_body_extra
106
- // End section: command_body_extra
107
- }
package/src/endpoints.ts DELETED
@@ -1,57 +0,0 @@
1
- import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver";
2
- import { RegionInfoProvider } from "@aws-sdk/types";
3
-
4
- const regionHash: RegionHash = {};
5
-
6
- const partitionHash: PartitionHash = {
7
- aws: {
8
- regions: [
9
- "af-south-1",
10
- "ap-east-1",
11
- "ap-northeast-1",
12
- "ap-northeast-2",
13
- "ap-northeast-3",
14
- "ap-south-1",
15
- "ap-southeast-1",
16
- "ap-southeast-2",
17
- "ca-central-1",
18
- "eu-central-1",
19
- "eu-north-1",
20
- "eu-south-1",
21
- "eu-west-1",
22
- "eu-west-2",
23
- "eu-west-3",
24
- "me-south-1",
25
- "sa-east-1",
26
- "us-east-1",
27
- "us-east-2",
28
- "us-west-1",
29
- "us-west-2",
30
- ],
31
- hostname: "cloudhsm.{region}.amazonaws.com",
32
- },
33
- "aws-cn": {
34
- regions: ["cn-north-1", "cn-northwest-1"],
35
- hostname: "cloudhsm.{region}.amazonaws.com.cn",
36
- },
37
- "aws-iso": {
38
- regions: ["us-iso-east-1"],
39
- hostname: "cloudhsm.{region}.c2s.ic.gov",
40
- },
41
- "aws-iso-b": {
42
- regions: ["us-isob-east-1"],
43
- hostname: "cloudhsm.{region}.sc2s.sgov.gov",
44
- },
45
- "aws-us-gov": {
46
- regions: ["us-gov-east-1", "us-gov-west-1"],
47
- hostname: "cloudhsm.{region}.amazonaws.com",
48
- },
49
- };
50
-
51
- export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) =>
52
- getRegionInfo(region, {
53
- ...options,
54
- signingService: "cloudhsm",
55
- regionHash,
56
- partitionHash,
57
- });
package/src/index.ts DELETED
@@ -1,23 +0,0 @@
1
- export * from "./CloudHSMClient";
2
- export * from "./CloudHSM";
3
- export * from "./commands/AddTagsToResourceCommand";
4
- export * from "./commands/CreateHapgCommand";
5
- export * from "./commands/CreateHsmCommand";
6
- export * from "./commands/CreateLunaClientCommand";
7
- export * from "./commands/DeleteHapgCommand";
8
- export * from "./commands/DeleteHsmCommand";
9
- export * from "./commands/DeleteLunaClientCommand";
10
- export * from "./commands/DescribeHapgCommand";
11
- export * from "./commands/DescribeHsmCommand";
12
- export * from "./commands/DescribeLunaClientCommand";
13
- export * from "./commands/GetConfigCommand";
14
- export * from "./commands/ListAvailableZonesCommand";
15
- export * from "./commands/ListHapgsCommand";
16
- export * from "./commands/ListHsmsCommand";
17
- export * from "./commands/ListLunaClientsCommand";
18
- export * from "./commands/ListTagsForResourceCommand";
19
- export * from "./commands/ModifyHapgCommand";
20
- export * from "./commands/ModifyHsmCommand";
21
- export * from "./commands/ModifyLunaClientCommand";
22
- export * from "./commands/RemoveTagsFromResourceCommand";
23
- export * from "./models/index";
@@ -1 +0,0 @@
1
- export * from "./models_0";