@aws-sdk/client-cloudhsm-v2 3.596.0 → 3.597.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/index.js +9 -0
- package/dist-es/models/models_0.js +4 -0
- package/dist-es/protocols/Aws_json1_1.js +3 -0
- package/dist-types/commands/CreateClusterCommand.d.ts +2 -0
- package/dist-types/commands/DeleteBackupCommand.d.ts +2 -0
- package/dist-types/commands/DeleteClusterCommand.d.ts +1 -0
- package/dist-types/commands/DescribeBackupsCommand.d.ts +2 -0
- package/dist-types/commands/DescribeClustersCommand.d.ts +1 -0
- package/dist-types/commands/ModifyBackupAttributesCommand.d.ts +2 -0
- package/dist-types/commands/ModifyClusterCommand.d.ts +1 -0
- package/dist-types/commands/RestoreBackupCommand.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +35 -2
- package/dist-types/ts3.4/models/models_0.d.ts +9 -0
- package/package.json +1 -1
package/dist-cjs/index.js
CHANGED
|
@@ -33,6 +33,7 @@ __export(src_exports, {
|
|
|
33
33
|
CloudHsmResourceNotFoundException: () => CloudHsmResourceNotFoundException,
|
|
34
34
|
CloudHsmServiceException: () => CloudHsmServiceException,
|
|
35
35
|
CloudHsmTagException: () => CloudHsmTagException,
|
|
36
|
+
ClusterMode: () => ClusterMode,
|
|
36
37
|
ClusterState: () => ClusterState,
|
|
37
38
|
CopyBackupToRegionCommand: () => CopyBackupToRegionCommand,
|
|
38
39
|
CreateClusterCommand: () => CreateClusterCommand,
|
|
@@ -234,6 +235,10 @@ var BackupState = {
|
|
|
234
235
|
PENDING_DELETION: "PENDING_DELETION",
|
|
235
236
|
READY: "READY"
|
|
236
237
|
};
|
|
238
|
+
var ClusterMode = {
|
|
239
|
+
FIPS: "FIPS",
|
|
240
|
+
NON_FIPS: "NON_FIPS"
|
|
241
|
+
};
|
|
237
242
|
var BackupPolicy = {
|
|
238
243
|
DEFAULT: "DEFAULT"
|
|
239
244
|
};
|
|
@@ -749,6 +754,8 @@ var de_Backup = /* @__PURE__ */ __name((output, context) => {
|
|
|
749
754
|
CopyTimestamp: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
750
755
|
CreateTimestamp: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
751
756
|
DeleteTimestamp: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
757
|
+
HsmType: import_smithy_client.expectString,
|
|
758
|
+
Mode: import_smithy_client.expectString,
|
|
752
759
|
NeverExpires: import_smithy_client.expectBoolean,
|
|
753
760
|
SourceBackup: import_smithy_client.expectString,
|
|
754
761
|
SourceCluster: import_smithy_client.expectString,
|
|
@@ -771,6 +778,7 @@ var de_Cluster = /* @__PURE__ */ __name((output, context) => {
|
|
|
771
778
|
CreateTimestamp: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
772
779
|
HsmType: import_smithy_client.expectString,
|
|
773
780
|
Hsms: import_smithy_client._json,
|
|
781
|
+
Mode: import_smithy_client.expectString,
|
|
774
782
|
PreCoPassword: import_smithy_client.expectString,
|
|
775
783
|
SecurityGroup: import_smithy_client.expectString,
|
|
776
784
|
SourceBackupId: import_smithy_client.expectString,
|
|
@@ -1174,6 +1182,7 @@ var paginateListTags = (0, import_core.createPaginator)(CloudHSMV2Client, ListTa
|
|
|
1174
1182
|
paginateDescribeClusters,
|
|
1175
1183
|
paginateListTags,
|
|
1176
1184
|
BackupState,
|
|
1185
|
+
ClusterMode,
|
|
1177
1186
|
BackupPolicy,
|
|
1178
1187
|
BackupRetentionType,
|
|
1179
1188
|
CloudHsmAccessDeniedException,
|
|
@@ -384,6 +384,8 @@ const de_Backup = (output, context) => {
|
|
|
384
384
|
CopyTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
385
385
|
CreateTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
386
386
|
DeleteTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
387
|
+
HsmType: __expectString,
|
|
388
|
+
Mode: __expectString,
|
|
387
389
|
NeverExpires: __expectBoolean,
|
|
388
390
|
SourceBackup: __expectString,
|
|
389
391
|
SourceCluster: __expectString,
|
|
@@ -408,6 +410,7 @@ const de_Cluster = (output, context) => {
|
|
|
408
410
|
CreateTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
409
411
|
HsmType: __expectString,
|
|
410
412
|
Hsms: _json,
|
|
413
|
+
Mode: __expectString,
|
|
411
414
|
PreCoPassword: __expectString,
|
|
412
415
|
SecurityGroup: __expectString,
|
|
413
416
|
SourceBackupId: __expectString,
|
|
@@ -50,6 +50,7 @@ declare const CreateClusterCommand_base: {
|
|
|
50
50
|
* Value: "STRING_VALUE", // required
|
|
51
51
|
* },
|
|
52
52
|
* ],
|
|
53
|
+
* Mode: "FIPS" || "NON_FIPS",
|
|
53
54
|
* };
|
|
54
55
|
* const command = new CreateClusterCommand(input);
|
|
55
56
|
* const response = await client.send(command);
|
|
@@ -97,6 +98,7 @@ declare const CreateClusterCommand_base: {
|
|
|
97
98
|
* // Value: "STRING_VALUE", // required
|
|
98
99
|
* // },
|
|
99
100
|
* // ],
|
|
101
|
+
* // Mode: "FIPS" || "NON_FIPS",
|
|
100
102
|
* // },
|
|
101
103
|
* // };
|
|
102
104
|
*
|
|
@@ -14,6 +14,18 @@ export declare const BackupState: {
|
|
|
14
14
|
* @public
|
|
15
15
|
*/
|
|
16
16
|
export type BackupState = (typeof BackupState)[keyof typeof BackupState];
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
* @enum
|
|
20
|
+
*/
|
|
21
|
+
export declare const ClusterMode: {
|
|
22
|
+
readonly FIPS: "FIPS";
|
|
23
|
+
readonly NON_FIPS: "NON_FIPS";
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* @public
|
|
27
|
+
*/
|
|
28
|
+
export type ClusterMode = (typeof ClusterMode)[keyof typeof ClusterMode];
|
|
17
29
|
/**
|
|
18
30
|
* <p>Contains a tag. A tag is a key-value pair.</p>
|
|
19
31
|
* @public
|
|
@@ -99,6 +111,16 @@ export interface Backup {
|
|
|
99
111
|
* @public
|
|
100
112
|
*/
|
|
101
113
|
TagList?: Tag[];
|
|
114
|
+
/**
|
|
115
|
+
* <p>The HSM type of the cluster that was backed up.</p>
|
|
116
|
+
* @public
|
|
117
|
+
*/
|
|
118
|
+
HsmType?: string;
|
|
119
|
+
/**
|
|
120
|
+
* <p>The mode of the cluster that was backed up.</p>
|
|
121
|
+
* @public
|
|
122
|
+
*/
|
|
123
|
+
Mode?: ClusterMode;
|
|
102
124
|
}
|
|
103
125
|
/**
|
|
104
126
|
* @public
|
|
@@ -291,8 +313,8 @@ export interface CreateClusterRequest {
|
|
|
291
313
|
*/
|
|
292
314
|
BackupRetentionPolicy?: BackupRetentionPolicy;
|
|
293
315
|
/**
|
|
294
|
-
* <p>The type of HSM to use in the cluster.
|
|
295
|
-
* <code>hsm1.medium</code>.</p>
|
|
316
|
+
* <p>The type of HSM to use in the cluster. The allowed values are
|
|
317
|
+
* <code>hsm1.medium</code> and <code>hsm2m.medium</code>.</p>
|
|
296
318
|
* @public
|
|
297
319
|
*/
|
|
298
320
|
HsmType: string | undefined;
|
|
@@ -322,6 +344,12 @@ export interface CreateClusterRequest {
|
|
|
322
344
|
* @public
|
|
323
345
|
*/
|
|
324
346
|
TagList?: Tag[];
|
|
347
|
+
/**
|
|
348
|
+
* <p>The mode to use in the cluster. The allowed values are
|
|
349
|
+
* <code>FIPS</code> and <code>NON_FIPS</code>.</p>
|
|
350
|
+
* @public
|
|
351
|
+
*/
|
|
352
|
+
Mode?: ClusterMode;
|
|
325
353
|
}
|
|
326
354
|
/**
|
|
327
355
|
* <p>Contains one or more certificates or a certificate signing request (CSR).</p>
|
|
@@ -519,6 +547,11 @@ export interface Cluster {
|
|
|
519
547
|
* @public
|
|
520
548
|
*/
|
|
521
549
|
TagList?: Tag[];
|
|
550
|
+
/**
|
|
551
|
+
* <p>The mode of the cluster.</p>
|
|
552
|
+
* @public
|
|
553
|
+
*/
|
|
554
|
+
Mode?: ClusterMode;
|
|
522
555
|
}
|
|
523
556
|
/**
|
|
524
557
|
* @public
|
|
@@ -7,6 +7,11 @@ export declare const BackupState: {
|
|
|
7
7
|
readonly READY: "READY";
|
|
8
8
|
};
|
|
9
9
|
export type BackupState = (typeof BackupState)[keyof typeof BackupState];
|
|
10
|
+
export declare const ClusterMode: {
|
|
11
|
+
readonly FIPS: "FIPS";
|
|
12
|
+
readonly NON_FIPS: "NON_FIPS";
|
|
13
|
+
};
|
|
14
|
+
export type ClusterMode = (typeof ClusterMode)[keyof typeof ClusterMode];
|
|
10
15
|
export interface Tag {
|
|
11
16
|
Key: string | undefined;
|
|
12
17
|
Value: string | undefined;
|
|
@@ -23,6 +28,8 @@ export interface Backup {
|
|
|
23
28
|
SourceCluster?: string;
|
|
24
29
|
DeleteTimestamp?: Date;
|
|
25
30
|
TagList?: Tag[];
|
|
31
|
+
HsmType?: string;
|
|
32
|
+
Mode?: ClusterMode;
|
|
26
33
|
}
|
|
27
34
|
export declare const BackupPolicy: {
|
|
28
35
|
readonly DEFAULT: "DEFAULT";
|
|
@@ -114,6 +121,7 @@ export interface CreateClusterRequest {
|
|
|
114
121
|
SourceBackupId?: string;
|
|
115
122
|
SubnetIds: string[] | undefined;
|
|
116
123
|
TagList?: Tag[];
|
|
124
|
+
Mode?: ClusterMode;
|
|
117
125
|
}
|
|
118
126
|
export interface Certificates {
|
|
119
127
|
ClusterCsr?: string;
|
|
@@ -168,6 +176,7 @@ export interface Cluster {
|
|
|
168
176
|
VpcId?: string;
|
|
169
177
|
Certificates?: Certificates;
|
|
170
178
|
TagList?: Tag[];
|
|
179
|
+
Mode?: ClusterMode;
|
|
171
180
|
}
|
|
172
181
|
export interface CreateClusterResponse {
|
|
173
182
|
Cluster?: Cluster;
|
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.597.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-v2",
|