@aws-sdk/client-cloudhsm 3.535.0 → 3.540.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 (27) hide show
  1. package/dist-cjs/endpoint/endpointResolver.js +4 -2
  2. package/dist-cjs/index.js +0 -3
  3. package/dist-es/endpoint/endpointResolver.js +3 -1
  4. package/dist-es/index.js +0 -1
  5. package/dist-types/commands/AddTagsToResourceCommand.d.ts +2 -1
  6. package/dist-types/commands/CreateHapgCommand.d.ts +2 -1
  7. package/dist-types/commands/CreateHsmCommand.d.ts +2 -1
  8. package/dist-types/commands/CreateLunaClientCommand.d.ts +2 -1
  9. package/dist-types/commands/DeleteHapgCommand.d.ts +2 -1
  10. package/dist-types/commands/DeleteHsmCommand.d.ts +2 -1
  11. package/dist-types/commands/DeleteLunaClientCommand.d.ts +2 -1
  12. package/dist-types/commands/DescribeHapgCommand.d.ts +2 -1
  13. package/dist-types/commands/DescribeHsmCommand.d.ts +2 -1
  14. package/dist-types/commands/DescribeLunaClientCommand.d.ts +2 -1
  15. package/dist-types/commands/GetConfigCommand.d.ts +2 -1
  16. package/dist-types/commands/ListAvailableZonesCommand.d.ts +2 -1
  17. package/dist-types/commands/ListHapgsCommand.d.ts +2 -1
  18. package/dist-types/commands/ListHsmsCommand.d.ts +2 -1
  19. package/dist-types/commands/ListLunaClientsCommand.d.ts +2 -1
  20. package/dist-types/commands/ListTagsForResourceCommand.d.ts +2 -1
  21. package/dist-types/commands/ModifyHapgCommand.d.ts +2 -1
  22. package/dist-types/commands/ModifyHsmCommand.d.ts +2 -1
  23. package/dist-types/commands/ModifyLunaClientCommand.d.ts +2 -1
  24. package/dist-types/commands/RemoveTagsFromResourceCommand.d.ts +2 -1
  25. package/dist-types/index.d.ts +0 -1
  26. package/dist-types/ts3.4/index.d.ts +0 -1
  27. package/package.json +5 -5
@@ -1,12 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.defaultEndpointResolver = void 0;
4
- const util_endpoints_1 = require("@smithy/util-endpoints");
4
+ const util_endpoints_1 = require("@aws-sdk/util-endpoints");
5
+ const util_endpoints_2 = require("@smithy/util-endpoints");
5
6
  const ruleset_1 = require("./ruleset");
6
7
  const defaultEndpointResolver = (endpointParams, context = {}) => {
7
- return (0, util_endpoints_1.resolveEndpoint)(ruleset_1.ruleSet, {
8
+ return (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
8
9
  endpointParams: endpointParams,
9
10
  logger: context.logger,
10
11
  });
11
12
  };
12
13
  exports.defaultEndpointResolver = defaultEndpointResolver;
14
+ util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
package/dist-cjs/index.js CHANGED
@@ -1133,9 +1133,6 @@ var _CloudHSM = class _CloudHSM extends CloudHSMClient {
1133
1133
  __name(_CloudHSM, "CloudHSM");
1134
1134
  var CloudHSM = _CloudHSM;
1135
1135
  (0, import_smithy_client.createAggregatedClient)(commands, CloudHSM);
1136
-
1137
- // src/index.ts
1138
- var import_util_endpoints = require("@aws-sdk/util-endpoints");
1139
1136
  // Annotate the CommonJS export names for ESM import in node:
1140
1137
 
1141
1138
  0 && (module.exports = {
@@ -1,4 +1,5 @@
1
- import { resolveEndpoint } from "@smithy/util-endpoints";
1
+ import { awsEndpointFunctions } from "@aws-sdk/util-endpoints";
2
+ import { customEndpointFunctions, resolveEndpoint } from "@smithy/util-endpoints";
2
3
  import { ruleSet } from "./ruleset";
3
4
  export const defaultEndpointResolver = (endpointParams, context = {}) => {
4
5
  return resolveEndpoint(ruleSet, {
@@ -6,3 +7,4 @@ export const defaultEndpointResolver = (endpointParams, context = {}) => {
6
7
  logger: context.logger,
7
8
  });
8
9
  };
10
+ customEndpointFunctions.aws = awsEndpointFunctions;
package/dist-es/index.js CHANGED
@@ -2,5 +2,4 @@ export * from "./CloudHSMClient";
2
2
  export * from "./CloudHSM";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
- import "@aws-sdk/util-endpoints";
6
5
  export { CloudHSMServiceException } from "./models/CloudHSMServiceException";
@@ -39,6 +39,8 @@ declare const AddTagsToResourceCommand_base: {
39
39
  * <p>Adds or overwrites one or more tags for the specified AWS CloudHSM resource.</p>
40
40
  * <p>Each tag consists of a key and a value. Tag keys must be unique to each
41
41
  * resource.</p>
42
+ *
43
+ * @deprecated This API is deprecated.
42
44
  * @example
43
45
  * Use a bare-bones client and the command you need to make an API call.
44
46
  * ```javascript
@@ -81,7 +83,6 @@ declare const AddTagsToResourceCommand_base: {
81
83
  * <p>Base exception class for all service exceptions from CloudHSM service.</p>
82
84
  *
83
85
  * @public
84
- * @deprecated This API is deprecated.
85
86
  */
86
87
  export declare class AddTagsToResourceCommand extends AddTagsToResourceCommand_base {
87
88
  }
@@ -38,6 +38,8 @@ declare const CreateHapgCommand_base: {
38
38
  * Reference</a>.</p>
39
39
  * <p>Creates a high-availability partition group. A high-availability partition group is a
40
40
  * group of partitions that spans multiple physical HSMs.</p>
41
+ *
42
+ * @deprecated This API is deprecated.
41
43
  * @example
42
44
  * Use a bare-bones client and the command you need to make an API call.
43
45
  * ```javascript
@@ -74,7 +76,6 @@ declare const CreateHapgCommand_base: {
74
76
  * <p>Base exception class for all service exceptions from CloudHSM service.</p>
75
77
  *
76
78
  * @public
77
- * @deprecated This API is deprecated.
78
79
  */
79
80
  export declare class CreateHapgCommand extends CreateHapgCommand_base {
80
81
  }
@@ -46,6 +46,8 @@ declare const CreateHsmCommand_base: {
46
46
  * status of the HSM with the <a>DescribeHsm</a> operation. The HSM is ready to be
47
47
  * initialized when the status changes to <code>RUNNING</code>.</p>
48
48
  * </important>
49
+ *
50
+ * @deprecated This API is deprecated.
49
51
  * @example
50
52
  * Use a bare-bones client and the command you need to make an API call.
51
53
  * ```javascript
@@ -89,7 +91,6 @@ declare const CreateHsmCommand_base: {
89
91
  * <p>Base exception class for all service exceptions from CloudHSM service.</p>
90
92
  *
91
93
  * @public
92
- * @deprecated This API is deprecated.
93
94
  */
94
95
  export declare class CreateHsmCommand extends CreateHsmCommand_base {
95
96
  }
@@ -37,6 +37,8 @@ declare const CreateLunaClientCommand_base: {
37
37
  * and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS CloudHSM API
38
38
  * Reference</a>.</p>
39
39
  * <p>Creates an HSM client.</p>
40
+ *
41
+ * @deprecated This API is deprecated.
40
42
  * @example
41
43
  * Use a bare-bones client and the command you need to make an API call.
42
44
  * ```javascript
@@ -74,7 +76,6 @@ declare const CreateLunaClientCommand_base: {
74
76
  * <p>Base exception class for all service exceptions from CloudHSM service.</p>
75
77
  *
76
78
  * @public
77
- * @deprecated This API is deprecated.
78
79
  */
79
80
  export declare class CreateLunaClientCommand extends CreateLunaClientCommand_base {
80
81
  }
@@ -37,6 +37,8 @@ declare const DeleteHapgCommand_base: {
37
37
  * and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS CloudHSM API
38
38
  * Reference</a>.</p>
39
39
  * <p>Deletes a high-availability partition group.</p>
40
+ *
41
+ * @deprecated This API is deprecated.
40
42
  * @example
41
43
  * Use a bare-bones client and the command you need to make an API call.
42
44
  * ```javascript
@@ -73,7 +75,6 @@ declare const DeleteHapgCommand_base: {
73
75
  * <p>Base exception class for all service exceptions from CloudHSM service.</p>
74
76
  *
75
77
  * @public
76
- * @deprecated This API is deprecated.
77
78
  */
78
79
  export declare class DeleteHapgCommand extends DeleteHapgCommand_base {
79
80
  }
@@ -38,6 +38,8 @@ declare const DeleteHsmCommand_base: {
38
38
  * Reference</a>.</p>
39
39
  * <p>Deletes an HSM. After completion, this operation cannot be undone and your key material
40
40
  * cannot be recovered.</p>
41
+ *
42
+ * @deprecated This API is deprecated.
41
43
  * @example
42
44
  * Use a bare-bones client and the command you need to make an API call.
43
45
  * ```javascript
@@ -74,7 +76,6 @@ declare const DeleteHsmCommand_base: {
74
76
  * <p>Base exception class for all service exceptions from CloudHSM service.</p>
75
77
  *
76
78
  * @public
77
- * @deprecated This API is deprecated.
78
79
  */
79
80
  export declare class DeleteHsmCommand extends DeleteHsmCommand_base {
80
81
  }
@@ -37,6 +37,8 @@ declare const DeleteLunaClientCommand_base: {
37
37
  * and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS CloudHSM API
38
38
  * Reference</a>.</p>
39
39
  * <p>Deletes a client.</p>
40
+ *
41
+ * @deprecated This API is deprecated.
40
42
  * @example
41
43
  * Use a bare-bones client and the command you need to make an API call.
42
44
  * ```javascript
@@ -73,7 +75,6 @@ declare const DeleteLunaClientCommand_base: {
73
75
  * <p>Base exception class for all service exceptions from CloudHSM service.</p>
74
76
  *
75
77
  * @public
76
- * @deprecated This API is deprecated.
77
78
  */
78
79
  export declare class DeleteLunaClientCommand extends DeleteLunaClientCommand_base {
79
80
  }
@@ -37,6 +37,8 @@ declare const DescribeHapgCommand_base: {
37
37
  * and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS CloudHSM API
38
38
  * Reference</a>.</p>
39
39
  * <p>Retrieves information about a high-availability partition group.</p>
40
+ *
41
+ * @deprecated This API is deprecated.
40
42
  * @example
41
43
  * Use a bare-bones client and the command you need to make an API call.
42
44
  * ```javascript
@@ -89,7 +91,6 @@ declare const DescribeHapgCommand_base: {
89
91
  * <p>Base exception class for all service exceptions from CloudHSM service.</p>
90
92
  *
91
93
  * @public
92
- * @deprecated This API is deprecated.
93
94
  */
94
95
  export declare class DescribeHapgCommand extends DescribeHapgCommand_base {
95
96
  }
@@ -38,6 +38,8 @@ declare const DescribeHsmCommand_base: {
38
38
  * Reference</a>.</p>
39
39
  * <p>Retrieves information about an HSM. You can identify the HSM by its ARN or its serial
40
40
  * number.</p>
41
+ *
42
+ * @deprecated This API is deprecated.
41
43
  * @example
42
44
  * Use a bare-bones client and the command you need to make an API call.
43
45
  * ```javascript
@@ -97,7 +99,6 @@ declare const DescribeHsmCommand_base: {
97
99
  * <p>Base exception class for all service exceptions from CloudHSM service.</p>
98
100
  *
99
101
  * @public
100
- * @deprecated This API is deprecated.
101
102
  */
102
103
  export declare class DescribeHsmCommand extends DescribeHsmCommand_base {
103
104
  }
@@ -37,6 +37,8 @@ declare const DescribeLunaClientCommand_base: {
37
37
  * and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS CloudHSM API
38
38
  * Reference</a>.</p>
39
39
  * <p>Retrieves information about an HSM client.</p>
40
+ *
41
+ * @deprecated This API is deprecated.
40
42
  * @example
41
43
  * Use a bare-bones client and the command you need to make an API call.
42
44
  * ```javascript
@@ -78,7 +80,6 @@ declare const DescribeLunaClientCommand_base: {
78
80
  * <p>Base exception class for all service exceptions from CloudHSM service.</p>
79
81
  *
80
82
  * @public
81
- * @deprecated This API is deprecated.
82
83
  */
83
84
  export declare class DescribeLunaClientCommand extends DescribeLunaClientCommand_base {
84
85
  }
@@ -38,6 +38,8 @@ declare const GetConfigCommand_base: {
38
38
  * Reference</a>.</p>
39
39
  * <p>Gets the configuration files necessary to connect to all high availability partition
40
40
  * groups the client is associated with.</p>
41
+ *
42
+ * @deprecated This API is deprecated.
41
43
  * @example
42
44
  * Use a bare-bones client and the command you need to make an API call.
43
45
  * ```javascript
@@ -80,7 +82,6 @@ declare const GetConfigCommand_base: {
80
82
  * <p>Base exception class for all service exceptions from CloudHSM service.</p>
81
83
  *
82
84
  * @public
83
- * @deprecated This API is deprecated.
84
85
  */
85
86
  export declare class GetConfigCommand extends GetConfigCommand_base {
86
87
  }
@@ -37,6 +37,8 @@ declare const ListAvailableZonesCommand_base: {
37
37
  * and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS CloudHSM API
38
38
  * Reference</a>.</p>
39
39
  * <p>Lists the Availability Zones that have available AWS CloudHSM capacity.</p>
40
+ *
41
+ * @deprecated This API is deprecated.
40
42
  * @example
41
43
  * Use a bare-bones client and the command you need to make an API call.
42
44
  * ```javascript
@@ -73,7 +75,6 @@ declare const ListAvailableZonesCommand_base: {
73
75
  * <p>Base exception class for all service exceptions from CloudHSM service.</p>
74
76
  *
75
77
  * @public
76
- * @deprecated This API is deprecated.
77
78
  */
78
79
  export declare class ListAvailableZonesCommand extends ListAvailableZonesCommand_base {
79
80
  }
@@ -41,6 +41,8 @@ declare const ListHapgsCommand_base: {
41
41
  * If more results are available, the <code>NextToken</code> member of the response contains a
42
42
  * token that you pass in the next call to <code>ListHapgs</code> to retrieve the next set of
43
43
  * items.</p>
44
+ *
45
+ * @deprecated This API is deprecated.
44
46
  * @example
45
47
  * Use a bare-bones client and the command you need to make an API call.
46
48
  * ```javascript
@@ -80,7 +82,6 @@ declare const ListHapgsCommand_base: {
80
82
  * <p>Base exception class for all service exceptions from CloudHSM service.</p>
81
83
  *
82
84
  * @public
83
- * @deprecated This API is deprecated.
84
85
  */
85
86
  export declare class ListHapgsCommand extends ListHapgsCommand_base {
86
87
  }
@@ -42,6 +42,8 @@ declare const ListHsmsCommand_base: {
42
42
  * If more results are available, the <code>NextToken</code> member of the response contains a
43
43
  * token that you pass in the next call to <code>ListHsms</code> to retrieve the next set of
44
44
  * items.</p>
45
+ *
46
+ * @deprecated This API is deprecated.
45
47
  * @example
46
48
  * Use a bare-bones client and the command you need to make an API call.
47
49
  * ```javascript
@@ -81,7 +83,6 @@ declare const ListHsmsCommand_base: {
81
83
  * <p>Base exception class for all service exceptions from CloudHSM service.</p>
82
84
  *
83
85
  * @public
84
- * @deprecated This API is deprecated.
85
86
  */
86
87
  export declare class ListHsmsCommand extends ListHsmsCommand_base {
87
88
  }
@@ -41,6 +41,8 @@ declare const ListLunaClientsCommand_base: {
41
41
  * If more results are available, the <code>NextToken</code> member of the response contains a
42
42
  * token that you pass in the next call to <code>ListLunaClients</code> to retrieve the next set
43
43
  * of items.</p>
44
+ *
45
+ * @deprecated This API is deprecated.
44
46
  * @example
45
47
  * Use a bare-bones client and the command you need to make an API call.
46
48
  * ```javascript
@@ -80,7 +82,6 @@ declare const ListLunaClientsCommand_base: {
80
82
  * <p>Base exception class for all service exceptions from CloudHSM service.</p>
81
83
  *
82
84
  * @public
83
- * @deprecated This API is deprecated.
84
85
  */
85
86
  export declare class ListLunaClientsCommand extends ListLunaClientsCommand_base {
86
87
  }
@@ -37,6 +37,8 @@ declare const ListTagsForResourceCommand_base: {
37
37
  * and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS CloudHSM API
38
38
  * Reference</a>.</p>
39
39
  * <p>Returns a list of all tags for the specified AWS CloudHSM resource.</p>
40
+ *
41
+ * @deprecated This API is deprecated.
40
42
  * @example
41
43
  * Use a bare-bones client and the command you need to make an API call.
42
44
  * ```javascript
@@ -78,7 +80,6 @@ declare const ListTagsForResourceCommand_base: {
78
80
  * <p>Base exception class for all service exceptions from CloudHSM service.</p>
79
81
  *
80
82
  * @public
81
- * @deprecated This API is deprecated.
82
83
  */
83
84
  export declare class ListTagsForResourceCommand extends ListTagsForResourceCommand_base {
84
85
  }
@@ -37,6 +37,8 @@ declare const ModifyHapgCommand_base: {
37
37
  * and the <a href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS CloudHSM API
38
38
  * Reference</a>.</p>
39
39
  * <p>Modifies an existing high-availability partition group.</p>
40
+ *
41
+ * @deprecated This API is deprecated.
40
42
  * @example
41
43
  * Use a bare-bones client and the command you need to make an API call.
42
44
  * ```javascript
@@ -77,7 +79,6 @@ declare const ModifyHapgCommand_base: {
77
79
  * <p>Base exception class for all service exceptions from CloudHSM service.</p>
78
80
  *
79
81
  * @public
80
- * @deprecated This API is deprecated.
81
82
  */
82
83
  export declare class ModifyHapgCommand extends ModifyHapgCommand_base {
83
84
  }
@@ -43,6 +43,8 @@ declare const ModifyHsmCommand_base: {
43
43
  * that your AWS CloudHSM service is configured for high availability, and consider executing this
44
44
  * operation during a maintenance window.</p>
45
45
  * </important>
46
+ *
47
+ * @deprecated This API is deprecated.
46
48
  * @example
47
49
  * Use a bare-bones client and the command you need to make an API call.
48
50
  * ```javascript
@@ -84,7 +86,6 @@ declare const ModifyHsmCommand_base: {
84
86
  * <p>Base exception class for all service exceptions from CloudHSM service.</p>
85
87
  *
86
88
  * @public
87
- * @deprecated This API is deprecated.
88
89
  */
89
90
  export declare class ModifyHsmCommand extends ModifyHsmCommand_base {
90
91
  }
@@ -39,6 +39,8 @@ declare const ModifyLunaClientCommand_base: {
39
39
  * <p>Modifies the certificate used by the client.</p>
40
40
  * <p>This action can potentially start a workflow to install the new certificate on the
41
41
  * client's HSMs.</p>
42
+ *
43
+ * @deprecated This API is deprecated.
42
44
  * @example
43
45
  * Use a bare-bones client and the command you need to make an API call.
44
46
  * ```javascript
@@ -70,7 +72,6 @@ declare const ModifyLunaClientCommand_base: {
70
72
  * <p>Base exception class for all service exceptions from CloudHSM service.</p>
71
73
  *
72
74
  * @public
73
- * @deprecated This API is deprecated.
74
75
  */
75
76
  export declare class ModifyLunaClientCommand extends ModifyLunaClientCommand_base {
76
77
  }
@@ -39,6 +39,8 @@ declare const RemoveTagsFromResourceCommand_base: {
39
39
  * <p>Removes one or more tags from the specified AWS CloudHSM resource.</p>
40
40
  * <p>To remove a tag, specify only the tag key to remove (not the value). To overwrite the
41
41
  * value for an existing tag, use <a>AddTagsToResource</a>.</p>
42
+ *
43
+ * @deprecated This API is deprecated.
42
44
  * @example
43
45
  * Use a bare-bones client and the command you need to make an API call.
44
46
  * ```javascript
@@ -78,7 +80,6 @@ declare const RemoveTagsFromResourceCommand_base: {
78
80
  * <p>Base exception class for all service exceptions from CloudHSM service.</p>
79
81
  *
80
82
  * @public
81
- * @deprecated This API is deprecated.
82
83
  */
83
84
  export declare class RemoveTagsFromResourceCommand extends RemoveTagsFromResourceCommand_base {
84
85
  }
@@ -20,5 +20,4 @@ export { RuntimeExtension } from "./runtimeExtensions";
20
20
  export { CloudHSMExtensionConfiguration } from "./extensionConfiguration";
21
21
  export * from "./commands";
22
22
  export * from "./models";
23
- import "@aws-sdk/util-endpoints";
24
23
  export { CloudHSMServiceException } from "./models/CloudHSMServiceException";
@@ -5,5 +5,4 @@ export { RuntimeExtension } from "./runtimeExtensions";
5
5
  export { CloudHSMExtensionConfiguration } from "./extensionConfiguration";
6
6
  export * from "./commands";
7
7
  export * from "./models";
8
- import "@aws-sdk/util-endpoints";
9
8
  export { CloudHSMServiceException } from "./models/CloudHSMServiceException";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-cloudhsm",
3
3
  "description": "AWS SDK for JavaScript Cloudhsm Client for Node.js, Browser and React Native",
4
- "version": "3.535.0",
4
+ "version": "3.540.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-cloudhsm",
@@ -20,16 +20,16 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.535.0",
23
+ "@aws-sdk/client-sts": "3.540.0",
24
24
  "@aws-sdk/core": "3.535.0",
25
- "@aws-sdk/credential-provider-node": "3.535.0",
25
+ "@aws-sdk/credential-provider-node": "3.540.0",
26
26
  "@aws-sdk/middleware-host-header": "3.535.0",
27
27
  "@aws-sdk/middleware-logger": "3.535.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.535.0",
29
- "@aws-sdk/middleware-user-agent": "3.535.0",
29
+ "@aws-sdk/middleware-user-agent": "3.540.0",
30
30
  "@aws-sdk/region-config-resolver": "3.535.0",
31
31
  "@aws-sdk/types": "3.535.0",
32
- "@aws-sdk/util-endpoints": "3.535.0",
32
+ "@aws-sdk/util-endpoints": "3.540.0",
33
33
  "@aws-sdk/util-user-agent-browser": "3.535.0",
34
34
  "@aws-sdk/util-user-agent-node": "3.535.0",
35
35
  "@smithy/config-resolver": "^2.2.0",