@aws-sdk/client-cloudhsm-v2 3.300.0 → 3.303.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.
- package/dist-cjs/models/models_0.js +30 -35
- package/dist-es/models/models_0.js +30 -35
- package/dist-types/commands/CopyBackupToRegionCommand.d.ts +3 -3
- package/dist-types/commands/CreateClusterCommand.d.ts +5 -5
- package/dist-types/commands/CreateHsmCommand.d.ts +1 -1
- package/dist-types/commands/DeleteBackupCommand.d.ts +1 -1
- package/dist-types/commands/DeleteClusterCommand.d.ts +1 -1
- package/dist-types/commands/DeleteHsmCommand.d.ts +1 -1
- package/dist-types/commands/DescribeBackupsCommand.d.ts +3 -3
- package/dist-types/commands/DescribeClustersCommand.d.ts +3 -3
- package/dist-types/commands/InitializeClusterCommand.d.ts +1 -1
- package/dist-types/commands/ListTagsCommand.d.ts +1 -1
- package/dist-types/commands/ModifyBackupAttributesCommand.d.ts +1 -1
- package/dist-types/commands/ModifyClusterCommand.d.ts +2 -2
- package/dist-types/commands/RestoreBackupCommand.d.ts +1 -1
- package/dist-types/commands/TagResourceCommand.d.ts +3 -3
- package/dist-types/commands/UntagResourceCommand.d.ts +2 -2
- package/dist-types/models/models_0.d.ts +55 -30
- package/dist-types/ts3.4/models/models_0.d.ts +36 -30
- package/package.json +34 -34
|
@@ -2,21 +2,18 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ClusterState = exports.HsmState = exports.CloudHsmTagException = exports.CloudHsmServiceException = exports.CloudHsmResourceNotFoundException = exports.CloudHsmInvalidRequestException = exports.CloudHsmInternalFailureException = exports.CloudHsmAccessDeniedException = exports.BackupRetentionType = exports.BackupPolicy = exports.BackupState = void 0;
|
|
4
4
|
const CloudHSMV2ServiceException_1 = require("./CloudHSMV2ServiceException");
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
(function (BackupRetentionType) {
|
|
18
|
-
BackupRetentionType["DAYS"] = "DAYS";
|
|
19
|
-
})(BackupRetentionType = exports.BackupRetentionType || (exports.BackupRetentionType = {}));
|
|
5
|
+
exports.BackupState = {
|
|
6
|
+
CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS",
|
|
7
|
+
DELETED: "DELETED",
|
|
8
|
+
PENDING_DELETION: "PENDING_DELETION",
|
|
9
|
+
READY: "READY",
|
|
10
|
+
};
|
|
11
|
+
exports.BackupPolicy = {
|
|
12
|
+
DEFAULT: "DEFAULT",
|
|
13
|
+
};
|
|
14
|
+
exports.BackupRetentionType = {
|
|
15
|
+
DAYS: "DAYS",
|
|
16
|
+
};
|
|
20
17
|
class CloudHsmAccessDeniedException extends CloudHSMV2ServiceException_1.CloudHSMV2ServiceException {
|
|
21
18
|
constructor(opts) {
|
|
22
19
|
super({
|
|
@@ -101,23 +98,21 @@ class CloudHsmTagException extends CloudHSMV2ServiceException_1.CloudHSMV2Servic
|
|
|
101
98
|
}
|
|
102
99
|
}
|
|
103
100
|
exports.CloudHsmTagException = CloudHsmTagException;
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
ClusterState["UPDATE_IN_PROGRESS"] = "UPDATE_IN_PROGRESS";
|
|
123
|
-
})(ClusterState = exports.ClusterState || (exports.ClusterState = {}));
|
|
101
|
+
exports.HsmState = {
|
|
102
|
+
ACTIVE: "ACTIVE",
|
|
103
|
+
CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS",
|
|
104
|
+
DEGRADED: "DEGRADED",
|
|
105
|
+
DELETED: "DELETED",
|
|
106
|
+
DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS",
|
|
107
|
+
};
|
|
108
|
+
exports.ClusterState = {
|
|
109
|
+
ACTIVE: "ACTIVE",
|
|
110
|
+
CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS",
|
|
111
|
+
DEGRADED: "DEGRADED",
|
|
112
|
+
DELETED: "DELETED",
|
|
113
|
+
DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS",
|
|
114
|
+
INITIALIZED: "INITIALIZED",
|
|
115
|
+
INITIALIZE_IN_PROGRESS: "INITIALIZE_IN_PROGRESS",
|
|
116
|
+
UNINITIALIZED: "UNINITIALIZED",
|
|
117
|
+
UPDATE_IN_PROGRESS: "UPDATE_IN_PROGRESS",
|
|
118
|
+
};
|
|
@@ -1,19 +1,16 @@
|
|
|
1
1
|
import { CloudHSMV2ServiceException as __BaseException } from "./CloudHSMV2ServiceException";
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
(function (BackupRetentionType) {
|
|
15
|
-
BackupRetentionType["DAYS"] = "DAYS";
|
|
16
|
-
})(BackupRetentionType || (BackupRetentionType = {}));
|
|
2
|
+
export const BackupState = {
|
|
3
|
+
CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS",
|
|
4
|
+
DELETED: "DELETED",
|
|
5
|
+
PENDING_DELETION: "PENDING_DELETION",
|
|
6
|
+
READY: "READY",
|
|
7
|
+
};
|
|
8
|
+
export const BackupPolicy = {
|
|
9
|
+
DEFAULT: "DEFAULT",
|
|
10
|
+
};
|
|
11
|
+
export const BackupRetentionType = {
|
|
12
|
+
DAYS: "DAYS",
|
|
13
|
+
};
|
|
17
14
|
export class CloudHsmAccessDeniedException extends __BaseException {
|
|
18
15
|
constructor(opts) {
|
|
19
16
|
super({
|
|
@@ -92,23 +89,21 @@ export class CloudHsmTagException extends __BaseException {
|
|
|
92
89
|
this.Message = opts.Message;
|
|
93
90
|
}
|
|
94
91
|
}
|
|
95
|
-
export
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
ClusterState["UPDATE_IN_PROGRESS"] = "UPDATE_IN_PROGRESS";
|
|
114
|
-
})(ClusterState || (ClusterState = {}));
|
|
92
|
+
export const HsmState = {
|
|
93
|
+
ACTIVE: "ACTIVE",
|
|
94
|
+
CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS",
|
|
95
|
+
DEGRADED: "DEGRADED",
|
|
96
|
+
DELETED: "DELETED",
|
|
97
|
+
DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS",
|
|
98
|
+
};
|
|
99
|
+
export const ClusterState = {
|
|
100
|
+
ACTIVE: "ACTIVE",
|
|
101
|
+
CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS",
|
|
102
|
+
DEGRADED: "DEGRADED",
|
|
103
|
+
DELETED: "DELETED",
|
|
104
|
+
DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS",
|
|
105
|
+
INITIALIZED: "INITIALIZED",
|
|
106
|
+
INITIALIZE_IN_PROGRESS: "INITIALIZE_IN_PROGRESS",
|
|
107
|
+
UNINITIALIZED: "UNINITIALIZED",
|
|
108
|
+
UPDATE_IN_PROGRESS: "UPDATE_IN_PROGRESS",
|
|
109
|
+
};
|
|
@@ -26,11 +26,11 @@ export interface CopyBackupToRegionCommandOutput extends CopyBackupToRegionRespo
|
|
|
26
26
|
* import { CloudHSMV2Client, CopyBackupToRegionCommand } from "@aws-sdk/client-cloudhsm-v2"; // ES Modules import
|
|
27
27
|
* // const { CloudHSMV2Client, CopyBackupToRegionCommand } = require("@aws-sdk/client-cloudhsm-v2"); // CommonJS import
|
|
28
28
|
* const client = new CloudHSMV2Client(config);
|
|
29
|
-
* const input = {
|
|
29
|
+
* const input = { // CopyBackupToRegionRequest
|
|
30
30
|
* DestinationRegion: "STRING_VALUE", // required
|
|
31
31
|
* BackupId: "STRING_VALUE", // required
|
|
32
|
-
* TagList: [
|
|
33
|
-
* {
|
|
32
|
+
* TagList: [ // TagList
|
|
33
|
+
* { // Tag
|
|
34
34
|
* Key: "STRING_VALUE", // required
|
|
35
35
|
* Value: "STRING_VALUE", // required
|
|
36
36
|
* },
|
|
@@ -26,18 +26,18 @@ export interface CreateClusterCommandOutput extends CreateClusterResponse, __Met
|
|
|
26
26
|
* import { CloudHSMV2Client, CreateClusterCommand } from "@aws-sdk/client-cloudhsm-v2"; // ES Modules import
|
|
27
27
|
* // const { CloudHSMV2Client, CreateClusterCommand } = require("@aws-sdk/client-cloudhsm-v2"); // CommonJS import
|
|
28
28
|
* const client = new CloudHSMV2Client(config);
|
|
29
|
-
* const input = {
|
|
30
|
-
* BackupRetentionPolicy: {
|
|
29
|
+
* const input = { // CreateClusterRequest
|
|
30
|
+
* BackupRetentionPolicy: { // BackupRetentionPolicy
|
|
31
31
|
* Type: "STRING_VALUE",
|
|
32
32
|
* Value: "STRING_VALUE",
|
|
33
33
|
* },
|
|
34
34
|
* HsmType: "STRING_VALUE", // required
|
|
35
35
|
* SourceBackupId: "STRING_VALUE",
|
|
36
|
-
* SubnetIds: [ // required
|
|
36
|
+
* SubnetIds: [ // SubnetIds // required
|
|
37
37
|
* "STRING_VALUE",
|
|
38
38
|
* ],
|
|
39
|
-
* TagList: [
|
|
40
|
-
* {
|
|
39
|
+
* TagList: [ // TagList
|
|
40
|
+
* { // Tag
|
|
41
41
|
* Key: "STRING_VALUE", // required
|
|
42
42
|
* Value: "STRING_VALUE", // required
|
|
43
43
|
* },
|
|
@@ -27,7 +27,7 @@ export interface CreateHsmCommandOutput extends CreateHsmResponse, __MetadataBea
|
|
|
27
27
|
* import { CloudHSMV2Client, CreateHsmCommand } from "@aws-sdk/client-cloudhsm-v2"; // ES Modules import
|
|
28
28
|
* // const { CloudHSMV2Client, CreateHsmCommand } = require("@aws-sdk/client-cloudhsm-v2"); // CommonJS import
|
|
29
29
|
* const client = new CloudHSMV2Client(config);
|
|
30
|
-
* const input = {
|
|
30
|
+
* const input = { // CreateHsmRequest
|
|
31
31
|
* ClusterId: "STRING_VALUE", // required
|
|
32
32
|
* AvailabilityZone: "STRING_VALUE", // required
|
|
33
33
|
* IpAddress: "STRING_VALUE",
|
|
@@ -28,7 +28,7 @@ export interface DeleteBackupCommandOutput extends DeleteBackupResponse, __Metad
|
|
|
28
28
|
* import { CloudHSMV2Client, DeleteBackupCommand } from "@aws-sdk/client-cloudhsm-v2"; // ES Modules import
|
|
29
29
|
* // const { CloudHSMV2Client, DeleteBackupCommand } = require("@aws-sdk/client-cloudhsm-v2"); // CommonJS import
|
|
30
30
|
* const client = new CloudHSMV2Client(config);
|
|
31
|
-
* const input = {
|
|
31
|
+
* const input = { // DeleteBackupRequest
|
|
32
32
|
* BackupId: "STRING_VALUE", // required
|
|
33
33
|
* };
|
|
34
34
|
* const command = new DeleteBackupCommand(input);
|
|
@@ -27,7 +27,7 @@ export interface DeleteClusterCommandOutput extends DeleteClusterResponse, __Met
|
|
|
27
27
|
* import { CloudHSMV2Client, DeleteClusterCommand } from "@aws-sdk/client-cloudhsm-v2"; // ES Modules import
|
|
28
28
|
* // const { CloudHSMV2Client, DeleteClusterCommand } = require("@aws-sdk/client-cloudhsm-v2"); // CommonJS import
|
|
29
29
|
* const client = new CloudHSMV2Client(config);
|
|
30
|
-
* const input = {
|
|
30
|
+
* const input = { // DeleteClusterRequest
|
|
31
31
|
* ClusterId: "STRING_VALUE", // required
|
|
32
32
|
* };
|
|
33
33
|
* const command = new DeleteClusterCommand(input);
|
|
@@ -28,7 +28,7 @@ export interface DeleteHsmCommandOutput extends DeleteHsmResponse, __MetadataBea
|
|
|
28
28
|
* import { CloudHSMV2Client, DeleteHsmCommand } from "@aws-sdk/client-cloudhsm-v2"; // ES Modules import
|
|
29
29
|
* // const { CloudHSMV2Client, DeleteHsmCommand } = require("@aws-sdk/client-cloudhsm-v2"); // CommonJS import
|
|
30
30
|
* const client = new CloudHSMV2Client(config);
|
|
31
|
-
* const input = {
|
|
31
|
+
* const input = { // DeleteHsmRequest
|
|
32
32
|
* ClusterId: "STRING_VALUE", // required
|
|
33
33
|
* HsmId: "STRING_VALUE",
|
|
34
34
|
* EniId: "STRING_VALUE",
|
|
@@ -31,11 +31,11 @@ export interface DescribeBackupsCommandOutput extends DescribeBackupsResponse, _
|
|
|
31
31
|
* import { CloudHSMV2Client, DescribeBackupsCommand } from "@aws-sdk/client-cloudhsm-v2"; // ES Modules import
|
|
32
32
|
* // const { CloudHSMV2Client, DescribeBackupsCommand } = require("@aws-sdk/client-cloudhsm-v2"); // CommonJS import
|
|
33
33
|
* const client = new CloudHSMV2Client(config);
|
|
34
|
-
* const input = {
|
|
34
|
+
* const input = { // DescribeBackupsRequest
|
|
35
35
|
* NextToken: "STRING_VALUE",
|
|
36
36
|
* MaxResults: Number("int"),
|
|
37
|
-
* Filters: {
|
|
38
|
-
* "<keys>": [
|
|
37
|
+
* Filters: { // Filters
|
|
38
|
+
* "<keys>": [ // Strings
|
|
39
39
|
* "STRING_VALUE",
|
|
40
40
|
* ],
|
|
41
41
|
* },
|
|
@@ -31,9 +31,9 @@ export interface DescribeClustersCommandOutput extends DescribeClustersResponse,
|
|
|
31
31
|
* import { CloudHSMV2Client, DescribeClustersCommand } from "@aws-sdk/client-cloudhsm-v2"; // ES Modules import
|
|
32
32
|
* // const { CloudHSMV2Client, DescribeClustersCommand } = require("@aws-sdk/client-cloudhsm-v2"); // CommonJS import
|
|
33
33
|
* const client = new CloudHSMV2Client(config);
|
|
34
|
-
* const input = {
|
|
35
|
-
* Filters: {
|
|
36
|
-
* "<keys>": [
|
|
34
|
+
* const input = { // DescribeClustersRequest
|
|
35
|
+
* Filters: { // Filters
|
|
36
|
+
* "<keys>": [ // Strings
|
|
37
37
|
* "STRING_VALUE",
|
|
38
38
|
* ],
|
|
39
39
|
* },
|
|
@@ -29,7 +29,7 @@ export interface InitializeClusterCommandOutput extends InitializeClusterRespons
|
|
|
29
29
|
* import { CloudHSMV2Client, InitializeClusterCommand } from "@aws-sdk/client-cloudhsm-v2"; // ES Modules import
|
|
30
30
|
* // const { CloudHSMV2Client, InitializeClusterCommand } = require("@aws-sdk/client-cloudhsm-v2"); // CommonJS import
|
|
31
31
|
* const client = new CloudHSMV2Client(config);
|
|
32
|
-
* const input = {
|
|
32
|
+
* const input = { // InitializeClusterRequest
|
|
33
33
|
* ClusterId: "STRING_VALUE", // required
|
|
34
34
|
* SignedCert: "STRING_VALUE", // required
|
|
35
35
|
* TrustAnchor: "STRING_VALUE", // required
|
|
@@ -31,7 +31,7 @@ export interface ListTagsCommandOutput extends ListTagsResponse, __MetadataBeare
|
|
|
31
31
|
* import { CloudHSMV2Client, ListTagsCommand } from "@aws-sdk/client-cloudhsm-v2"; // ES Modules import
|
|
32
32
|
* // const { CloudHSMV2Client, ListTagsCommand } = require("@aws-sdk/client-cloudhsm-v2"); // CommonJS import
|
|
33
33
|
* const client = new CloudHSMV2Client(config);
|
|
34
|
-
* const input = {
|
|
34
|
+
* const input = { // ListTagsRequest
|
|
35
35
|
* ResourceId: "STRING_VALUE", // required
|
|
36
36
|
* NextToken: "STRING_VALUE",
|
|
37
37
|
* MaxResults: Number("int"),
|
|
@@ -26,7 +26,7 @@ export interface ModifyBackupAttributesCommandOutput extends ModifyBackupAttribu
|
|
|
26
26
|
* import { CloudHSMV2Client, ModifyBackupAttributesCommand } from "@aws-sdk/client-cloudhsm-v2"; // ES Modules import
|
|
27
27
|
* // const { CloudHSMV2Client, ModifyBackupAttributesCommand } = require("@aws-sdk/client-cloudhsm-v2"); // CommonJS import
|
|
28
28
|
* const client = new CloudHSMV2Client(config);
|
|
29
|
-
* const input = {
|
|
29
|
+
* const input = { // ModifyBackupAttributesRequest
|
|
30
30
|
* BackupId: "STRING_VALUE", // required
|
|
31
31
|
* NeverExpires: true || false, // required
|
|
32
32
|
* };
|
|
@@ -26,8 +26,8 @@ export interface ModifyClusterCommandOutput extends ModifyClusterResponse, __Met
|
|
|
26
26
|
* import { CloudHSMV2Client, ModifyClusterCommand } from "@aws-sdk/client-cloudhsm-v2"; // ES Modules import
|
|
27
27
|
* // const { CloudHSMV2Client, ModifyClusterCommand } = require("@aws-sdk/client-cloudhsm-v2"); // CommonJS import
|
|
28
28
|
* const client = new CloudHSMV2Client(config);
|
|
29
|
-
* const input = {
|
|
30
|
-
* BackupRetentionPolicy: {
|
|
29
|
+
* const input = { // ModifyClusterRequest
|
|
30
|
+
* BackupRetentionPolicy: { // BackupRetentionPolicy
|
|
31
31
|
* Type: "STRING_VALUE",
|
|
32
32
|
* Value: "STRING_VALUE",
|
|
33
33
|
* },
|
|
@@ -28,7 +28,7 @@ export interface RestoreBackupCommandOutput extends RestoreBackupResponse, __Met
|
|
|
28
28
|
* import { CloudHSMV2Client, RestoreBackupCommand } from "@aws-sdk/client-cloudhsm-v2"; // ES Modules import
|
|
29
29
|
* // const { CloudHSMV2Client, RestoreBackupCommand } = require("@aws-sdk/client-cloudhsm-v2"); // CommonJS import
|
|
30
30
|
* const client = new CloudHSMV2Client(config);
|
|
31
|
-
* const input = {
|
|
31
|
+
* const input = { // RestoreBackupRequest
|
|
32
32
|
* BackupId: "STRING_VALUE", // required
|
|
33
33
|
* };
|
|
34
34
|
* const command = new RestoreBackupCommand(input);
|
|
@@ -26,10 +26,10 @@ export interface TagResourceCommandOutput extends TagResourceResponse, __Metadat
|
|
|
26
26
|
* import { CloudHSMV2Client, TagResourceCommand } from "@aws-sdk/client-cloudhsm-v2"; // ES Modules import
|
|
27
27
|
* // const { CloudHSMV2Client, TagResourceCommand } = require("@aws-sdk/client-cloudhsm-v2"); // CommonJS import
|
|
28
28
|
* const client = new CloudHSMV2Client(config);
|
|
29
|
-
* const input = {
|
|
29
|
+
* const input = { // TagResourceRequest
|
|
30
30
|
* ResourceId: "STRING_VALUE", // required
|
|
31
|
-
* TagList: [ // required
|
|
32
|
-
* {
|
|
31
|
+
* TagList: [ // TagList // required
|
|
32
|
+
* { // Tag
|
|
33
33
|
* Key: "STRING_VALUE", // required
|
|
34
34
|
* Value: "STRING_VALUE", // required
|
|
35
35
|
* },
|
|
@@ -26,9 +26,9 @@ export interface UntagResourceCommandOutput extends UntagResourceResponse, __Met
|
|
|
26
26
|
* import { CloudHSMV2Client, UntagResourceCommand } from "@aws-sdk/client-cloudhsm-v2"; // ES Modules import
|
|
27
27
|
* // const { CloudHSMV2Client, UntagResourceCommand } = require("@aws-sdk/client-cloudhsm-v2"); // CommonJS import
|
|
28
28
|
* const client = new CloudHSMV2Client(config);
|
|
29
|
-
* const input = {
|
|
29
|
+
* const input = { // UntagResourceRequest
|
|
30
30
|
* ResourceId: "STRING_VALUE", // required
|
|
31
|
-
* TagKeyList: [ // required
|
|
31
|
+
* TagKeyList: [ // TagKeyList // required
|
|
32
32
|
* "STRING_VALUE",
|
|
33
33
|
* ],
|
|
34
34
|
* };
|
|
@@ -2,13 +2,18 @@ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-cl
|
|
|
2
2
|
import { CloudHSMV2ServiceException as __BaseException } from "./CloudHSMV2ServiceException";
|
|
3
3
|
/**
|
|
4
4
|
* @public
|
|
5
|
+
* @enum
|
|
5
6
|
*/
|
|
6
|
-
export declare
|
|
7
|
-
CREATE_IN_PROGRESS
|
|
8
|
-
DELETED
|
|
9
|
-
PENDING_DELETION
|
|
10
|
-
READY
|
|
11
|
-
}
|
|
7
|
+
export declare const BackupState: {
|
|
8
|
+
readonly CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS";
|
|
9
|
+
readonly DELETED: "DELETED";
|
|
10
|
+
readonly PENDING_DELETION: "PENDING_DELETION";
|
|
11
|
+
readonly READY: "READY";
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* @public
|
|
15
|
+
*/
|
|
16
|
+
export type BackupState = (typeof BackupState)[keyof typeof BackupState];
|
|
12
17
|
/**
|
|
13
18
|
* @public
|
|
14
19
|
* <p>Contains a tag. A tag is a key-value pair.</p>
|
|
@@ -84,16 +89,26 @@ export interface Backup {
|
|
|
84
89
|
}
|
|
85
90
|
/**
|
|
86
91
|
* @public
|
|
92
|
+
* @enum
|
|
87
93
|
*/
|
|
88
|
-
export declare
|
|
89
|
-
DEFAULT
|
|
90
|
-
}
|
|
94
|
+
export declare const BackupPolicy: {
|
|
95
|
+
readonly DEFAULT: "DEFAULT";
|
|
96
|
+
};
|
|
91
97
|
/**
|
|
92
98
|
* @public
|
|
93
99
|
*/
|
|
94
|
-
export
|
|
95
|
-
|
|
96
|
-
|
|
100
|
+
export type BackupPolicy = (typeof BackupPolicy)[keyof typeof BackupPolicy];
|
|
101
|
+
/**
|
|
102
|
+
* @public
|
|
103
|
+
* @enum
|
|
104
|
+
*/
|
|
105
|
+
export declare const BackupRetentionType: {
|
|
106
|
+
readonly DAYS: "DAYS";
|
|
107
|
+
};
|
|
108
|
+
/**
|
|
109
|
+
* @public
|
|
110
|
+
*/
|
|
111
|
+
export type BackupRetentionType = (typeof BackupRetentionType)[keyof typeof BackupRetentionType];
|
|
97
112
|
/**
|
|
98
113
|
* @public
|
|
99
114
|
* <p>A policy that defines the number of days to retain backups.</p>
|
|
@@ -310,14 +325,19 @@ export interface Certificates {
|
|
|
310
325
|
}
|
|
311
326
|
/**
|
|
312
327
|
* @public
|
|
328
|
+
* @enum
|
|
313
329
|
*/
|
|
314
|
-
export declare
|
|
315
|
-
ACTIVE
|
|
316
|
-
CREATE_IN_PROGRESS
|
|
317
|
-
DEGRADED
|
|
318
|
-
DELETED
|
|
319
|
-
DELETE_IN_PROGRESS
|
|
320
|
-
}
|
|
330
|
+
export declare const HsmState: {
|
|
331
|
+
readonly ACTIVE: "ACTIVE";
|
|
332
|
+
readonly CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS";
|
|
333
|
+
readonly DEGRADED: "DEGRADED";
|
|
334
|
+
readonly DELETED: "DELETED";
|
|
335
|
+
readonly DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS";
|
|
336
|
+
};
|
|
337
|
+
/**
|
|
338
|
+
* @public
|
|
339
|
+
*/
|
|
340
|
+
export type HsmState = (typeof HsmState)[keyof typeof HsmState];
|
|
321
341
|
/**
|
|
322
342
|
* @public
|
|
323
343
|
* <p>Contains information about a hardware security module (HSM) in an AWS CloudHSM
|
|
@@ -359,18 +379,23 @@ export interface Hsm {
|
|
|
359
379
|
}
|
|
360
380
|
/**
|
|
361
381
|
* @public
|
|
382
|
+
* @enum
|
|
362
383
|
*/
|
|
363
|
-
export declare
|
|
364
|
-
ACTIVE
|
|
365
|
-
CREATE_IN_PROGRESS
|
|
366
|
-
DEGRADED
|
|
367
|
-
DELETED
|
|
368
|
-
DELETE_IN_PROGRESS
|
|
369
|
-
INITIALIZED
|
|
370
|
-
INITIALIZE_IN_PROGRESS
|
|
371
|
-
UNINITIALIZED
|
|
372
|
-
UPDATE_IN_PROGRESS
|
|
373
|
-
}
|
|
384
|
+
export declare const ClusterState: {
|
|
385
|
+
readonly ACTIVE: "ACTIVE";
|
|
386
|
+
readonly CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS";
|
|
387
|
+
readonly DEGRADED: "DEGRADED";
|
|
388
|
+
readonly DELETED: "DELETED";
|
|
389
|
+
readonly DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS";
|
|
390
|
+
readonly INITIALIZED: "INITIALIZED";
|
|
391
|
+
readonly INITIALIZE_IN_PROGRESS: "INITIALIZE_IN_PROGRESS";
|
|
392
|
+
readonly UNINITIALIZED: "UNINITIALIZED";
|
|
393
|
+
readonly UPDATE_IN_PROGRESS: "UPDATE_IN_PROGRESS";
|
|
394
|
+
};
|
|
395
|
+
/**
|
|
396
|
+
* @public
|
|
397
|
+
*/
|
|
398
|
+
export type ClusterState = (typeof ClusterState)[keyof typeof ClusterState];
|
|
374
399
|
/**
|
|
375
400
|
* @public
|
|
376
401
|
* <p>Contains information about an AWS CloudHSM cluster.</p>
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
|
|
2
2
|
import { CloudHSMV2ServiceException as __BaseException } from "./CloudHSMV2ServiceException";
|
|
3
|
-
export declare
|
|
4
|
-
CREATE_IN_PROGRESS
|
|
5
|
-
DELETED
|
|
6
|
-
PENDING_DELETION
|
|
7
|
-
READY
|
|
8
|
-
}
|
|
3
|
+
export declare const BackupState: {
|
|
4
|
+
readonly CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS";
|
|
5
|
+
readonly DELETED: "DELETED";
|
|
6
|
+
readonly PENDING_DELETION: "PENDING_DELETION";
|
|
7
|
+
readonly READY: "READY";
|
|
8
|
+
};
|
|
9
|
+
export type BackupState = (typeof BackupState)[keyof typeof BackupState];
|
|
9
10
|
export interface Tag {
|
|
10
11
|
Key: string | undefined;
|
|
11
12
|
Value: string | undefined;
|
|
@@ -23,12 +24,15 @@ export interface Backup {
|
|
|
23
24
|
DeleteTimestamp?: Date;
|
|
24
25
|
TagList?: Tag[];
|
|
25
26
|
}
|
|
26
|
-
export declare
|
|
27
|
-
DEFAULT
|
|
28
|
-
}
|
|
29
|
-
export
|
|
30
|
-
|
|
31
|
-
|
|
27
|
+
export declare const BackupPolicy: {
|
|
28
|
+
readonly DEFAULT: "DEFAULT";
|
|
29
|
+
};
|
|
30
|
+
export type BackupPolicy = (typeof BackupPolicy)[keyof typeof BackupPolicy];
|
|
31
|
+
export declare const BackupRetentionType: {
|
|
32
|
+
readonly DAYS: "DAYS";
|
|
33
|
+
};
|
|
34
|
+
export type BackupRetentionType =
|
|
35
|
+
(typeof BackupRetentionType)[keyof typeof BackupRetentionType];
|
|
32
36
|
export interface BackupRetentionPolicy {
|
|
33
37
|
Type?: BackupRetentionType | string;
|
|
34
38
|
Value?: string;
|
|
@@ -118,13 +122,14 @@ export interface Certificates {
|
|
|
118
122
|
ManufacturerHardwareCertificate?: string;
|
|
119
123
|
ClusterCertificate?: string;
|
|
120
124
|
}
|
|
121
|
-
export declare
|
|
122
|
-
ACTIVE
|
|
123
|
-
CREATE_IN_PROGRESS
|
|
124
|
-
DEGRADED
|
|
125
|
-
DELETED
|
|
126
|
-
DELETE_IN_PROGRESS
|
|
127
|
-
}
|
|
125
|
+
export declare const HsmState: {
|
|
126
|
+
readonly ACTIVE: "ACTIVE";
|
|
127
|
+
readonly CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS";
|
|
128
|
+
readonly DEGRADED: "DEGRADED";
|
|
129
|
+
readonly DELETED: "DELETED";
|
|
130
|
+
readonly DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS";
|
|
131
|
+
};
|
|
132
|
+
export type HsmState = (typeof HsmState)[keyof typeof HsmState];
|
|
128
133
|
export interface Hsm {
|
|
129
134
|
AvailabilityZone?: string;
|
|
130
135
|
ClusterId?: string;
|
|
@@ -135,17 +140,18 @@ export interface Hsm {
|
|
|
135
140
|
State?: HsmState | string;
|
|
136
141
|
StateMessage?: string;
|
|
137
142
|
}
|
|
138
|
-
export declare
|
|
139
|
-
ACTIVE
|
|
140
|
-
CREATE_IN_PROGRESS
|
|
141
|
-
DEGRADED
|
|
142
|
-
DELETED
|
|
143
|
-
DELETE_IN_PROGRESS
|
|
144
|
-
INITIALIZED
|
|
145
|
-
INITIALIZE_IN_PROGRESS
|
|
146
|
-
UNINITIALIZED
|
|
147
|
-
UPDATE_IN_PROGRESS
|
|
148
|
-
}
|
|
143
|
+
export declare const ClusterState: {
|
|
144
|
+
readonly ACTIVE: "ACTIVE";
|
|
145
|
+
readonly CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS";
|
|
146
|
+
readonly DEGRADED: "DEGRADED";
|
|
147
|
+
readonly DELETED: "DELETED";
|
|
148
|
+
readonly DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS";
|
|
149
|
+
readonly INITIALIZED: "INITIALIZED";
|
|
150
|
+
readonly INITIALIZE_IN_PROGRESS: "INITIALIZE_IN_PROGRESS";
|
|
151
|
+
readonly UNINITIALIZED: "UNINITIALIZED";
|
|
152
|
+
readonly UPDATE_IN_PROGRESS: "UPDATE_IN_PROGRESS";
|
|
153
|
+
};
|
|
154
|
+
export type ClusterState = (typeof ClusterState)[keyof typeof ClusterState];
|
|
149
155
|
export interface Cluster {
|
|
150
156
|
BackupPolicy?: BackupPolicy | string;
|
|
151
157
|
BackupRetentionPolicy?: BackupRetentionPolicy;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-cloudhsm-v2",
|
|
3
3
|
"description": "AWS SDK for JavaScript Cloudhsm V2 Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.303.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,42 +21,42 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/config-resolver": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
27
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
28
|
-
"@aws-sdk/hash-node": "3.
|
|
29
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
30
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
31
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
32
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
33
|
-
"@aws-sdk/middleware-logger": "3.
|
|
34
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
35
|
-
"@aws-sdk/middleware-retry": "3.
|
|
36
|
-
"@aws-sdk/middleware-serde": "3.
|
|
37
|
-
"@aws-sdk/middleware-signing": "3.
|
|
38
|
-
"@aws-sdk/middleware-stack": "3.
|
|
39
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
40
|
-
"@aws-sdk/node-config-provider": "3.
|
|
41
|
-
"@aws-sdk/node-http-handler": "3.
|
|
42
|
-
"@aws-sdk/protocol-http": "3.
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
44
|
-
"@aws-sdk/types": "3.
|
|
45
|
-
"@aws-sdk/url-parser": "3.
|
|
46
|
-
"@aws-sdk/util-base64": "3.
|
|
47
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
48
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
51
|
-
"@aws-sdk/util-endpoints": "3.
|
|
52
|
-
"@aws-sdk/util-retry": "3.
|
|
53
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
54
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
55
|
-
"@aws-sdk/util-utf8": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.303.0",
|
|
25
|
+
"@aws-sdk/config-resolver": "3.303.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.303.0",
|
|
27
|
+
"@aws-sdk/fetch-http-handler": "3.303.0",
|
|
28
|
+
"@aws-sdk/hash-node": "3.303.0",
|
|
29
|
+
"@aws-sdk/invalid-dependency": "3.303.0",
|
|
30
|
+
"@aws-sdk/middleware-content-length": "3.303.0",
|
|
31
|
+
"@aws-sdk/middleware-endpoint": "3.303.0",
|
|
32
|
+
"@aws-sdk/middleware-host-header": "3.303.0",
|
|
33
|
+
"@aws-sdk/middleware-logger": "3.303.0",
|
|
34
|
+
"@aws-sdk/middleware-recursion-detection": "3.303.0",
|
|
35
|
+
"@aws-sdk/middleware-retry": "3.303.0",
|
|
36
|
+
"@aws-sdk/middleware-serde": "3.303.0",
|
|
37
|
+
"@aws-sdk/middleware-signing": "3.303.0",
|
|
38
|
+
"@aws-sdk/middleware-stack": "3.303.0",
|
|
39
|
+
"@aws-sdk/middleware-user-agent": "3.303.0",
|
|
40
|
+
"@aws-sdk/node-config-provider": "3.303.0",
|
|
41
|
+
"@aws-sdk/node-http-handler": "3.303.0",
|
|
42
|
+
"@aws-sdk/protocol-http": "3.303.0",
|
|
43
|
+
"@aws-sdk/smithy-client": "3.303.0",
|
|
44
|
+
"@aws-sdk/types": "3.303.0",
|
|
45
|
+
"@aws-sdk/url-parser": "3.303.0",
|
|
46
|
+
"@aws-sdk/util-base64": "3.303.0",
|
|
47
|
+
"@aws-sdk/util-body-length-browser": "3.303.0",
|
|
48
|
+
"@aws-sdk/util-body-length-node": "3.303.0",
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.303.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.303.0",
|
|
51
|
+
"@aws-sdk/util-endpoints": "3.303.0",
|
|
52
|
+
"@aws-sdk/util-retry": "3.303.0",
|
|
53
|
+
"@aws-sdk/util-user-agent-browser": "3.303.0",
|
|
54
|
+
"@aws-sdk/util-user-agent-node": "3.303.0",
|
|
55
|
+
"@aws-sdk/util-utf8": "3.303.0",
|
|
56
56
|
"tslib": "^2.5.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@aws-sdk/service-client-documentation-generator": "3.
|
|
59
|
+
"@aws-sdk/service-client-documentation-generator": "3.303.0",
|
|
60
60
|
"@tsconfig/node14": "1.0.3",
|
|
61
61
|
"@types/node": "^14.14.31",
|
|
62
62
|
"concurrently": "7.0.0",
|