@aws-sdk/client-cloudhsm-v2 3.709.0 → 3.712.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 +42 -1
- package/dist-es/models/models_0.js +19 -0
- package/dist-es/protocols/Aws_json1_1.js +14 -1
- package/dist-types/commands/CreateClusterCommand.d.ts +4 -1
- package/dist-types/commands/CreateHsmCommand.d.ts +1 -0
- package/dist-types/commands/DeleteClusterCommand.d.ts +3 -1
- package/dist-types/commands/DescribeClustersCommand.d.ts +3 -1
- package/dist-types/commands/InitializeClusterCommand.d.ts +1 -1
- package/dist-types/commands/ModifyClusterCommand.d.ts +3 -1
- package/dist-types/commands/TagResourceCommand.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +48 -0
- package/dist-types/ts3.4/models/models_0.d.ts +21 -0
- package/package.json +5 -5
package/dist-cjs/index.js
CHANGED
|
@@ -30,6 +30,7 @@ __export(src_exports, {
|
|
|
30
30
|
CloudHsmAccessDeniedException: () => CloudHsmAccessDeniedException,
|
|
31
31
|
CloudHsmInternalFailureException: () => CloudHsmInternalFailureException,
|
|
32
32
|
CloudHsmInvalidRequestException: () => CloudHsmInvalidRequestException,
|
|
33
|
+
CloudHsmResourceLimitExceededException: () => CloudHsmResourceLimitExceededException,
|
|
33
34
|
CloudHsmResourceNotFoundException: () => CloudHsmResourceNotFoundException,
|
|
34
35
|
CloudHsmServiceException: () => CloudHsmServiceException,
|
|
35
36
|
CloudHsmTagException: () => CloudHsmTagException,
|
|
@@ -50,6 +51,7 @@ __export(src_exports, {
|
|
|
50
51
|
ListTagsCommand: () => ListTagsCommand,
|
|
51
52
|
ModifyBackupAttributesCommand: () => ModifyBackupAttributesCommand,
|
|
52
53
|
ModifyClusterCommand: () => ModifyClusterCommand,
|
|
54
|
+
NetworkType: () => NetworkType,
|
|
53
55
|
PutResourcePolicyCommand: () => PutResourcePolicyCommand,
|
|
54
56
|
RestoreBackupCommand: () => RestoreBackupCommand,
|
|
55
57
|
TagResourceCommand: () => TagResourceCommand,
|
|
@@ -350,6 +352,10 @@ var _CloudHsmTagException = class _CloudHsmTagException extends CloudHSMV2Servic
|
|
|
350
352
|
};
|
|
351
353
|
__name(_CloudHsmTagException, "CloudHsmTagException");
|
|
352
354
|
var CloudHsmTagException = _CloudHsmTagException;
|
|
355
|
+
var NetworkType = {
|
|
356
|
+
DUALSTACK: "DUALSTACK",
|
|
357
|
+
IPV4: "IPV4"
|
|
358
|
+
};
|
|
353
359
|
var HsmState = {
|
|
354
360
|
ACTIVE: "ACTIVE",
|
|
355
361
|
CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS",
|
|
@@ -365,9 +371,29 @@ var ClusterState = {
|
|
|
365
371
|
DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS",
|
|
366
372
|
INITIALIZED: "INITIALIZED",
|
|
367
373
|
INITIALIZE_IN_PROGRESS: "INITIALIZE_IN_PROGRESS",
|
|
374
|
+
MODIFY_IN_PROGRESS: "MODIFY_IN_PROGRESS",
|
|
375
|
+
ROLLBACK_IN_PROGRESS: "ROLLBACK_IN_PROGRESS",
|
|
368
376
|
UNINITIALIZED: "UNINITIALIZED",
|
|
369
377
|
UPDATE_IN_PROGRESS: "UPDATE_IN_PROGRESS"
|
|
370
378
|
};
|
|
379
|
+
var _CloudHsmResourceLimitExceededException = class _CloudHsmResourceLimitExceededException extends CloudHSMV2ServiceException {
|
|
380
|
+
/**
|
|
381
|
+
* @internal
|
|
382
|
+
*/
|
|
383
|
+
constructor(opts) {
|
|
384
|
+
super({
|
|
385
|
+
name: "CloudHsmResourceLimitExceededException",
|
|
386
|
+
$fault: "client",
|
|
387
|
+
...opts
|
|
388
|
+
});
|
|
389
|
+
this.name = "CloudHsmResourceLimitExceededException";
|
|
390
|
+
this.$fault = "client";
|
|
391
|
+
Object.setPrototypeOf(this, _CloudHsmResourceLimitExceededException.prototype);
|
|
392
|
+
this.Message = opts.Message;
|
|
393
|
+
}
|
|
394
|
+
};
|
|
395
|
+
__name(_CloudHsmResourceLimitExceededException, "CloudHsmResourceLimitExceededException");
|
|
396
|
+
var CloudHsmResourceLimitExceededException = _CloudHsmResourceLimitExceededException;
|
|
371
397
|
|
|
372
398
|
// src/protocols/Aws_json1_1.ts
|
|
373
399
|
var se_CopyBackupToRegionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
@@ -737,6 +763,9 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
737
763
|
case "CloudHsmTagException":
|
|
738
764
|
case "com.amazonaws.cloudhsmv2#CloudHsmTagException":
|
|
739
765
|
throw await de_CloudHsmTagExceptionRes(parsedOutput, context);
|
|
766
|
+
case "CloudHsmResourceLimitExceededException":
|
|
767
|
+
case "com.amazonaws.cloudhsmv2#CloudHsmResourceLimitExceededException":
|
|
768
|
+
throw await de_CloudHsmResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
740
769
|
default:
|
|
741
770
|
const parsedBody = parsedOutput.body;
|
|
742
771
|
return throwDefaultError({
|
|
@@ -773,6 +802,15 @@ var de_CloudHsmInvalidRequestExceptionRes = /* @__PURE__ */ __name(async (parsed
|
|
|
773
802
|
});
|
|
774
803
|
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
775
804
|
}, "de_CloudHsmInvalidRequestExceptionRes");
|
|
805
|
+
var de_CloudHsmResourceLimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
806
|
+
const body = parsedOutput.body;
|
|
807
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
808
|
+
const exception = new CloudHsmResourceLimitExceededException({
|
|
809
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
810
|
+
...deserialized
|
|
811
|
+
});
|
|
812
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
813
|
+
}, "de_CloudHsmResourceLimitExceededExceptionRes");
|
|
776
814
|
var de_CloudHsmResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
777
815
|
const body = parsedOutput.body;
|
|
778
816
|
const deserialized = (0, import_smithy_client._json)(body);
|
|
@@ -834,6 +872,7 @@ var de_Cluster = /* @__PURE__ */ __name((output, context) => {
|
|
|
834
872
|
HsmType: import_smithy_client.expectString,
|
|
835
873
|
Hsms: import_smithy_client._json,
|
|
836
874
|
Mode: import_smithy_client.expectString,
|
|
875
|
+
NetworkType: import_smithy_client.expectString,
|
|
837
876
|
PreCoPassword: import_smithy_client.expectString,
|
|
838
877
|
SecurityGroup: import_smithy_client.expectString,
|
|
839
878
|
SourceBackupId: import_smithy_client.expectString,
|
|
@@ -1264,7 +1303,9 @@ var paginateListTags = (0, import_core.createPaginator)(CloudHSMV2Client, ListTa
|
|
|
1264
1303
|
CloudHsmResourceNotFoundException,
|
|
1265
1304
|
CloudHsmServiceException,
|
|
1266
1305
|
CloudHsmTagException,
|
|
1306
|
+
NetworkType,
|
|
1267
1307
|
HsmState,
|
|
1268
|
-
ClusterState
|
|
1308
|
+
ClusterState,
|
|
1309
|
+
CloudHsmResourceLimitExceededException
|
|
1269
1310
|
});
|
|
1270
1311
|
|
|
@@ -93,6 +93,10 @@ export class CloudHsmTagException extends __BaseException {
|
|
|
93
93
|
this.Message = opts.Message;
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
|
+
export const NetworkType = {
|
|
97
|
+
DUALSTACK: "DUALSTACK",
|
|
98
|
+
IPV4: "IPV4",
|
|
99
|
+
};
|
|
96
100
|
export const HsmState = {
|
|
97
101
|
ACTIVE: "ACTIVE",
|
|
98
102
|
CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS",
|
|
@@ -108,6 +112,21 @@ export const ClusterState = {
|
|
|
108
112
|
DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS",
|
|
109
113
|
INITIALIZED: "INITIALIZED",
|
|
110
114
|
INITIALIZE_IN_PROGRESS: "INITIALIZE_IN_PROGRESS",
|
|
115
|
+
MODIFY_IN_PROGRESS: "MODIFY_IN_PROGRESS",
|
|
116
|
+
ROLLBACK_IN_PROGRESS: "ROLLBACK_IN_PROGRESS",
|
|
111
117
|
UNINITIALIZED: "UNINITIALIZED",
|
|
112
118
|
UPDATE_IN_PROGRESS: "UPDATE_IN_PROGRESS",
|
|
113
119
|
};
|
|
120
|
+
export class CloudHsmResourceLimitExceededException extends __BaseException {
|
|
121
|
+
constructor(opts) {
|
|
122
|
+
super({
|
|
123
|
+
name: "CloudHsmResourceLimitExceededException",
|
|
124
|
+
$fault: "client",
|
|
125
|
+
...opts,
|
|
126
|
+
});
|
|
127
|
+
this.name = "CloudHsmResourceLimitExceededException";
|
|
128
|
+
this.$fault = "client";
|
|
129
|
+
Object.setPrototypeOf(this, CloudHsmResourceLimitExceededException.prototype);
|
|
130
|
+
this.Message = opts.Message;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
@@ -2,7 +2,7 @@ import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody a
|
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
4
|
import { CloudHSMV2ServiceException as __BaseException } from "../models/CloudHSMV2ServiceException";
|
|
5
|
-
import { CloudHsmAccessDeniedException, CloudHsmInternalFailureException, CloudHsmInvalidRequestException, CloudHsmResourceNotFoundException, CloudHsmServiceException, CloudHsmTagException, } from "../models/models_0";
|
|
5
|
+
import { CloudHsmAccessDeniedException, CloudHsmInternalFailureException, CloudHsmInvalidRequestException, CloudHsmResourceLimitExceededException, CloudHsmResourceNotFoundException, CloudHsmServiceException, CloudHsmTagException, } from "../models/models_0";
|
|
6
6
|
export const se_CopyBackupToRegionCommand = async (input, context) => {
|
|
7
7
|
const headers = sharedHeaders("CopyBackupToRegion");
|
|
8
8
|
let body;
|
|
@@ -370,6 +370,9 @@ const de_CommandError = async (output, context) => {
|
|
|
370
370
|
case "CloudHsmTagException":
|
|
371
371
|
case "com.amazonaws.cloudhsmv2#CloudHsmTagException":
|
|
372
372
|
throw await de_CloudHsmTagExceptionRes(parsedOutput, context);
|
|
373
|
+
case "CloudHsmResourceLimitExceededException":
|
|
374
|
+
case "com.amazonaws.cloudhsmv2#CloudHsmResourceLimitExceededException":
|
|
375
|
+
throw await de_CloudHsmResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
373
376
|
default:
|
|
374
377
|
const parsedBody = parsedOutput.body;
|
|
375
378
|
return throwDefaultError({
|
|
@@ -406,6 +409,15 @@ const de_CloudHsmInvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
|
406
409
|
});
|
|
407
410
|
return __decorateServiceException(exception, body);
|
|
408
411
|
};
|
|
412
|
+
const de_CloudHsmResourceLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
413
|
+
const body = parsedOutput.body;
|
|
414
|
+
const deserialized = _json(body);
|
|
415
|
+
const exception = new CloudHsmResourceLimitExceededException({
|
|
416
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
417
|
+
...deserialized,
|
|
418
|
+
});
|
|
419
|
+
return __decorateServiceException(exception, body);
|
|
420
|
+
};
|
|
409
421
|
const de_CloudHsmResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
410
422
|
const body = parsedOutput.body;
|
|
411
423
|
const deserialized = _json(body);
|
|
@@ -469,6 +481,7 @@ const de_Cluster = (output, context) => {
|
|
|
469
481
|
HsmType: __expectString,
|
|
470
482
|
Hsms: _json,
|
|
471
483
|
Mode: __expectString,
|
|
484
|
+
NetworkType: __expectString,
|
|
472
485
|
PreCoPassword: __expectString,
|
|
473
486
|
SecurityGroup: __expectString,
|
|
474
487
|
SourceBackupId: __expectString,
|
|
@@ -47,6 +47,7 @@ declare const CreateClusterCommand_base: {
|
|
|
47
47
|
* SubnetIds: [ // SubnetIds // required
|
|
48
48
|
* "STRING_VALUE",
|
|
49
49
|
* ],
|
|
50
|
+
* NetworkType: "IPV4" || "DUALSTACK",
|
|
50
51
|
* TagList: [ // TagList
|
|
51
52
|
* { // Tag
|
|
52
53
|
* Key: "STRING_VALUE", // required
|
|
@@ -73,6 +74,7 @@ declare const CreateClusterCommand_base: {
|
|
|
73
74
|
* // SubnetId: "STRING_VALUE",
|
|
74
75
|
* // EniId: "STRING_VALUE",
|
|
75
76
|
* // EniIp: "STRING_VALUE",
|
|
77
|
+
* // EniIpV6: "STRING_VALUE",
|
|
76
78
|
* // HsmId: "STRING_VALUE", // required
|
|
77
79
|
* // State: "CREATE_IN_PROGRESS" || "ACTIVE" || "DEGRADED" || "DELETE_IN_PROGRESS" || "DELETED",
|
|
78
80
|
* // StateMessage: "STRING_VALUE",
|
|
@@ -82,12 +84,13 @@ declare const CreateClusterCommand_base: {
|
|
|
82
84
|
* // PreCoPassword: "STRING_VALUE",
|
|
83
85
|
* // SecurityGroup: "STRING_VALUE",
|
|
84
86
|
* // SourceBackupId: "STRING_VALUE",
|
|
85
|
-
* // State: "CREATE_IN_PROGRESS" || "UNINITIALIZED" || "INITIALIZE_IN_PROGRESS" || "INITIALIZED" || "ACTIVE" || "UPDATE_IN_PROGRESS" || "DELETE_IN_PROGRESS" || "DELETED" || "DEGRADED",
|
|
87
|
+
* // State: "CREATE_IN_PROGRESS" || "UNINITIALIZED" || "INITIALIZE_IN_PROGRESS" || "INITIALIZED" || "ACTIVE" || "UPDATE_IN_PROGRESS" || "MODIFY_IN_PROGRESS" || "ROLLBACK_IN_PROGRESS" || "DELETE_IN_PROGRESS" || "DELETED" || "DEGRADED",
|
|
86
88
|
* // StateMessage: "STRING_VALUE",
|
|
87
89
|
* // SubnetMapping: { // ExternalSubnetMapping
|
|
88
90
|
* // "<keys>": "STRING_VALUE",
|
|
89
91
|
* // },
|
|
90
92
|
* // VpcId: "STRING_VALUE",
|
|
93
|
+
* // NetworkType: "IPV4" || "DUALSTACK",
|
|
91
94
|
* // Certificates: { // Certificates
|
|
92
95
|
* // ClusterCsr: "STRING_VALUE",
|
|
93
96
|
* // HsmCertificate: "STRING_VALUE",
|
|
@@ -51,6 +51,7 @@ declare const CreateHsmCommand_base: {
|
|
|
51
51
|
* // SubnetId: "STRING_VALUE",
|
|
52
52
|
* // EniId: "STRING_VALUE",
|
|
53
53
|
* // EniIp: "STRING_VALUE",
|
|
54
|
+
* // EniIpV6: "STRING_VALUE",
|
|
54
55
|
* // HsmId: "STRING_VALUE", // required
|
|
55
56
|
* // State: "CREATE_IN_PROGRESS" || "ACTIVE" || "DEGRADED" || "DELETE_IN_PROGRESS" || "DELETED",
|
|
56
57
|
* // StateMessage: "STRING_VALUE",
|
|
@@ -58,6 +58,7 @@ declare const DeleteClusterCommand_base: {
|
|
|
58
58
|
* // SubnetId: "STRING_VALUE",
|
|
59
59
|
* // EniId: "STRING_VALUE",
|
|
60
60
|
* // EniIp: "STRING_VALUE",
|
|
61
|
+
* // EniIpV6: "STRING_VALUE",
|
|
61
62
|
* // HsmId: "STRING_VALUE", // required
|
|
62
63
|
* // State: "CREATE_IN_PROGRESS" || "ACTIVE" || "DEGRADED" || "DELETE_IN_PROGRESS" || "DELETED",
|
|
63
64
|
* // StateMessage: "STRING_VALUE",
|
|
@@ -67,12 +68,13 @@ declare const DeleteClusterCommand_base: {
|
|
|
67
68
|
* // PreCoPassword: "STRING_VALUE",
|
|
68
69
|
* // SecurityGroup: "STRING_VALUE",
|
|
69
70
|
* // SourceBackupId: "STRING_VALUE",
|
|
70
|
-
* // State: "CREATE_IN_PROGRESS" || "UNINITIALIZED" || "INITIALIZE_IN_PROGRESS" || "INITIALIZED" || "ACTIVE" || "UPDATE_IN_PROGRESS" || "DELETE_IN_PROGRESS" || "DELETED" || "DEGRADED",
|
|
71
|
+
* // State: "CREATE_IN_PROGRESS" || "UNINITIALIZED" || "INITIALIZE_IN_PROGRESS" || "INITIALIZED" || "ACTIVE" || "UPDATE_IN_PROGRESS" || "MODIFY_IN_PROGRESS" || "ROLLBACK_IN_PROGRESS" || "DELETE_IN_PROGRESS" || "DELETED" || "DEGRADED",
|
|
71
72
|
* // StateMessage: "STRING_VALUE",
|
|
72
73
|
* // SubnetMapping: { // ExternalSubnetMapping
|
|
73
74
|
* // "<keys>": "STRING_VALUE",
|
|
74
75
|
* // },
|
|
75
76
|
* // VpcId: "STRING_VALUE",
|
|
77
|
+
* // NetworkType: "IPV4" || "DUALSTACK",
|
|
76
78
|
* // Certificates: { // Certificates
|
|
77
79
|
* // ClusterCsr: "STRING_VALUE",
|
|
78
80
|
* // HsmCertificate: "STRING_VALUE",
|
|
@@ -69,6 +69,7 @@ declare const DescribeClustersCommand_base: {
|
|
|
69
69
|
* // SubnetId: "STRING_VALUE",
|
|
70
70
|
* // EniId: "STRING_VALUE",
|
|
71
71
|
* // EniIp: "STRING_VALUE",
|
|
72
|
+
* // EniIpV6: "STRING_VALUE",
|
|
72
73
|
* // HsmId: "STRING_VALUE", // required
|
|
73
74
|
* // State: "CREATE_IN_PROGRESS" || "ACTIVE" || "DEGRADED" || "DELETE_IN_PROGRESS" || "DELETED",
|
|
74
75
|
* // StateMessage: "STRING_VALUE",
|
|
@@ -78,12 +79,13 @@ declare const DescribeClustersCommand_base: {
|
|
|
78
79
|
* // PreCoPassword: "STRING_VALUE",
|
|
79
80
|
* // SecurityGroup: "STRING_VALUE",
|
|
80
81
|
* // SourceBackupId: "STRING_VALUE",
|
|
81
|
-
* // State: "CREATE_IN_PROGRESS" || "UNINITIALIZED" || "INITIALIZE_IN_PROGRESS" || "INITIALIZED" || "ACTIVE" || "UPDATE_IN_PROGRESS" || "DELETE_IN_PROGRESS" || "DELETED" || "DEGRADED",
|
|
82
|
+
* // State: "CREATE_IN_PROGRESS" || "UNINITIALIZED" || "INITIALIZE_IN_PROGRESS" || "INITIALIZED" || "ACTIVE" || "UPDATE_IN_PROGRESS" || "MODIFY_IN_PROGRESS" || "ROLLBACK_IN_PROGRESS" || "DELETE_IN_PROGRESS" || "DELETED" || "DEGRADED",
|
|
82
83
|
* // StateMessage: "STRING_VALUE",
|
|
83
84
|
* // SubnetMapping: { // ExternalSubnetMapping
|
|
84
85
|
* // "<keys>": "STRING_VALUE",
|
|
85
86
|
* // },
|
|
86
87
|
* // VpcId: "STRING_VALUE",
|
|
88
|
+
* // NetworkType: "IPV4" || "DUALSTACK",
|
|
87
89
|
* // Certificates: { // Certificates
|
|
88
90
|
* // ClusterCsr: "STRING_VALUE",
|
|
89
91
|
* // HsmCertificate: "STRING_VALUE",
|
|
@@ -47,7 +47,7 @@ declare const InitializeClusterCommand_base: {
|
|
|
47
47
|
* const command = new InitializeClusterCommand(input);
|
|
48
48
|
* const response = await client.send(command);
|
|
49
49
|
* // { // InitializeClusterResponse
|
|
50
|
-
* // State: "CREATE_IN_PROGRESS" || "UNINITIALIZED" || "INITIALIZE_IN_PROGRESS" || "INITIALIZED" || "ACTIVE" || "UPDATE_IN_PROGRESS" || "DELETE_IN_PROGRESS" || "DELETED" || "DEGRADED",
|
|
50
|
+
* // State: "CREATE_IN_PROGRESS" || "UNINITIALIZED" || "INITIALIZE_IN_PROGRESS" || "INITIALIZED" || "ACTIVE" || "UPDATE_IN_PROGRESS" || "MODIFY_IN_PROGRESS" || "ROLLBACK_IN_PROGRESS" || "DELETE_IN_PROGRESS" || "DELETED" || "DEGRADED",
|
|
51
51
|
* // StateMessage: "STRING_VALUE",
|
|
52
52
|
* // };
|
|
53
53
|
*
|
|
@@ -61,6 +61,7 @@ declare const ModifyClusterCommand_base: {
|
|
|
61
61
|
* // SubnetId: "STRING_VALUE",
|
|
62
62
|
* // EniId: "STRING_VALUE",
|
|
63
63
|
* // EniIp: "STRING_VALUE",
|
|
64
|
+
* // EniIpV6: "STRING_VALUE",
|
|
64
65
|
* // HsmId: "STRING_VALUE", // required
|
|
65
66
|
* // State: "CREATE_IN_PROGRESS" || "ACTIVE" || "DEGRADED" || "DELETE_IN_PROGRESS" || "DELETED",
|
|
66
67
|
* // StateMessage: "STRING_VALUE",
|
|
@@ -70,12 +71,13 @@ declare const ModifyClusterCommand_base: {
|
|
|
70
71
|
* // PreCoPassword: "STRING_VALUE",
|
|
71
72
|
* // SecurityGroup: "STRING_VALUE",
|
|
72
73
|
* // SourceBackupId: "STRING_VALUE",
|
|
73
|
-
* // State: "CREATE_IN_PROGRESS" || "UNINITIALIZED" || "INITIALIZE_IN_PROGRESS" || "INITIALIZED" || "ACTIVE" || "UPDATE_IN_PROGRESS" || "DELETE_IN_PROGRESS" || "DELETED" || "DEGRADED",
|
|
74
|
+
* // State: "CREATE_IN_PROGRESS" || "UNINITIALIZED" || "INITIALIZE_IN_PROGRESS" || "INITIALIZED" || "ACTIVE" || "UPDATE_IN_PROGRESS" || "MODIFY_IN_PROGRESS" || "ROLLBACK_IN_PROGRESS" || "DELETE_IN_PROGRESS" || "DELETED" || "DEGRADED",
|
|
74
75
|
* // StateMessage: "STRING_VALUE",
|
|
75
76
|
* // SubnetMapping: { // ExternalSubnetMapping
|
|
76
77
|
* // "<keys>": "STRING_VALUE",
|
|
77
78
|
* // },
|
|
78
79
|
* // VpcId: "STRING_VALUE",
|
|
80
|
+
* // NetworkType: "IPV4" || "DUALSTACK",
|
|
79
81
|
* // Certificates: { // Certificates
|
|
80
82
|
* // ClusterCsr: "STRING_VALUE",
|
|
81
83
|
* // HsmCertificate: "STRING_VALUE",
|
|
@@ -68,6 +68,9 @@ declare const TagResourceCommand_base: {
|
|
|
68
68
|
* @throws {@link CloudHsmInvalidRequestException} (client fault)
|
|
69
69
|
* <p>The request was rejected because it is not a valid request.</p>
|
|
70
70
|
*
|
|
71
|
+
* @throws {@link CloudHsmResourceLimitExceededException} (client fault)
|
|
72
|
+
* <p>The request was rejected because it exceeds an CloudHSM limit.</p>
|
|
73
|
+
*
|
|
71
74
|
* @throws {@link CloudHsmResourceNotFoundException} (client fault)
|
|
72
75
|
* <p>The request was rejected because it refers to a resource that cannot be
|
|
73
76
|
* found.</p>
|
|
@@ -308,6 +308,18 @@ export interface CopyBackupToRegionResponse {
|
|
|
308
308
|
*/
|
|
309
309
|
DestinationBackup?: DestinationBackup | undefined;
|
|
310
310
|
}
|
|
311
|
+
/**
|
|
312
|
+
* @public
|
|
313
|
+
* @enum
|
|
314
|
+
*/
|
|
315
|
+
export declare const NetworkType: {
|
|
316
|
+
readonly DUALSTACK: "DUALSTACK";
|
|
317
|
+
readonly IPV4: "IPV4";
|
|
318
|
+
};
|
|
319
|
+
/**
|
|
320
|
+
* @public
|
|
321
|
+
*/
|
|
322
|
+
export type NetworkType = (typeof NetworkType)[keyof typeof NetworkType];
|
|
311
323
|
/**
|
|
312
324
|
* @public
|
|
313
325
|
*/
|
|
@@ -345,6 +357,13 @@ export interface CreateClusterRequest {
|
|
|
345
357
|
* @public
|
|
346
358
|
*/
|
|
347
359
|
SubnetIds: string[] | undefined;
|
|
360
|
+
/**
|
|
361
|
+
* <p>The NetworkType to create a cluster with. The allowed values are
|
|
362
|
+
* <code>IPV4</code> and <code>DUALSTACK</code>.
|
|
363
|
+
* </p>
|
|
364
|
+
* @public
|
|
365
|
+
*/
|
|
366
|
+
NetworkType?: NetworkType | undefined;
|
|
348
367
|
/**
|
|
349
368
|
* <p>Tags to apply to the CloudHSM cluster during creation.</p>
|
|
350
369
|
* @public
|
|
@@ -436,6 +455,11 @@ export interface Hsm {
|
|
|
436
455
|
* @public
|
|
437
456
|
*/
|
|
438
457
|
EniIp?: string | undefined;
|
|
458
|
+
/**
|
|
459
|
+
* <p>The IPv6 address (if any) of the HSM's elastic network interface (ENI).</p>
|
|
460
|
+
* @public
|
|
461
|
+
*/
|
|
462
|
+
EniIpV6?: string | undefined;
|
|
439
463
|
/**
|
|
440
464
|
* <p>The HSM's identifier (ID).</p>
|
|
441
465
|
* @public
|
|
@@ -464,6 +488,8 @@ export declare const ClusterState: {
|
|
|
464
488
|
readonly DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS";
|
|
465
489
|
readonly INITIALIZED: "INITIALIZED";
|
|
466
490
|
readonly INITIALIZE_IN_PROGRESS: "INITIALIZE_IN_PROGRESS";
|
|
491
|
+
readonly MODIFY_IN_PROGRESS: "MODIFY_IN_PROGRESS";
|
|
492
|
+
readonly ROLLBACK_IN_PROGRESS: "ROLLBACK_IN_PROGRESS";
|
|
467
493
|
readonly UNINITIALIZED: "UNINITIALIZED";
|
|
468
494
|
readonly UPDATE_IN_PROGRESS: "UPDATE_IN_PROGRESS";
|
|
469
495
|
};
|
|
@@ -543,6 +569,15 @@ export interface Cluster {
|
|
|
543
569
|
* @public
|
|
544
570
|
*/
|
|
545
571
|
VpcId?: string | undefined;
|
|
572
|
+
/**
|
|
573
|
+
* <p>The cluster's NetworkType can be set to either IPV4 (which is the default) or DUALSTACK.
|
|
574
|
+
* When set to IPV4, communication between your application and the Hardware Security Modules (HSMs) is restricted to the IPv4 protocol only.
|
|
575
|
+
* In contrast, the DUALSTACK network type enables communication over both the IPv4 and IPv6 protocols.
|
|
576
|
+
* To use the DUALSTACK option, you'll need to configure your Virtual Private Cloud (VPC) and subnets to support both IPv4 and IPv6. This involves adding IPv6 Classless Inter-Domain Routing (CIDR) blocks to the existing IPv4 CIDR blocks in your subnets.
|
|
577
|
+
* The choice between IPV4 and DUALSTACK network types determines the flexibility of the network addressing setup for your cluster. The DUALSTACK option provides more flexibility by allowing both IPv4 and IPv6 communication.</p>
|
|
578
|
+
* @public
|
|
579
|
+
*/
|
|
580
|
+
NetworkType?: NetworkType | undefined;
|
|
546
581
|
/**
|
|
547
582
|
* <p>Contains one or more certificates or a certificate signing request (CSR).</p>
|
|
548
583
|
* @public
|
|
@@ -1027,6 +1062,19 @@ export interface RestoreBackupResponse {
|
|
|
1027
1062
|
*/
|
|
1028
1063
|
Backup?: Backup | undefined;
|
|
1029
1064
|
}
|
|
1065
|
+
/**
|
|
1066
|
+
* <p>The request was rejected because it exceeds an CloudHSM limit.</p>
|
|
1067
|
+
* @public
|
|
1068
|
+
*/
|
|
1069
|
+
export declare class CloudHsmResourceLimitExceededException extends __BaseException {
|
|
1070
|
+
readonly name: "CloudHsmResourceLimitExceededException";
|
|
1071
|
+
readonly $fault: "client";
|
|
1072
|
+
Message?: string | undefined;
|
|
1073
|
+
/**
|
|
1074
|
+
* @internal
|
|
1075
|
+
*/
|
|
1076
|
+
constructor(opts: __ExceptionOptionType<CloudHsmResourceLimitExceededException, __BaseException>);
|
|
1077
|
+
}
|
|
1030
1078
|
/**
|
|
1031
1079
|
* @public
|
|
1032
1080
|
*/
|
|
@@ -116,11 +116,17 @@ export interface DestinationBackup {
|
|
|
116
116
|
export interface CopyBackupToRegionResponse {
|
|
117
117
|
DestinationBackup?: DestinationBackup | undefined;
|
|
118
118
|
}
|
|
119
|
+
export declare const NetworkType: {
|
|
120
|
+
readonly DUALSTACK: "DUALSTACK";
|
|
121
|
+
readonly IPV4: "IPV4";
|
|
122
|
+
};
|
|
123
|
+
export type NetworkType = (typeof NetworkType)[keyof typeof NetworkType];
|
|
119
124
|
export interface CreateClusterRequest {
|
|
120
125
|
BackupRetentionPolicy?: BackupRetentionPolicy | undefined;
|
|
121
126
|
HsmType: string | undefined;
|
|
122
127
|
SourceBackupId?: string | undefined;
|
|
123
128
|
SubnetIds: string[] | undefined;
|
|
129
|
+
NetworkType?: NetworkType | undefined;
|
|
124
130
|
TagList?: Tag[] | undefined;
|
|
125
131
|
Mode?: ClusterMode | undefined;
|
|
126
132
|
}
|
|
@@ -145,6 +151,7 @@ export interface Hsm {
|
|
|
145
151
|
SubnetId?: string | undefined;
|
|
146
152
|
EniId?: string | undefined;
|
|
147
153
|
EniIp?: string | undefined;
|
|
154
|
+
EniIpV6?: string | undefined;
|
|
148
155
|
HsmId: string | undefined;
|
|
149
156
|
State?: HsmState | undefined;
|
|
150
157
|
StateMessage?: string | undefined;
|
|
@@ -157,6 +164,8 @@ export declare const ClusterState: {
|
|
|
157
164
|
readonly DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS";
|
|
158
165
|
readonly INITIALIZED: "INITIALIZED";
|
|
159
166
|
readonly INITIALIZE_IN_PROGRESS: "INITIALIZE_IN_PROGRESS";
|
|
167
|
+
readonly MODIFY_IN_PROGRESS: "MODIFY_IN_PROGRESS";
|
|
168
|
+
readonly ROLLBACK_IN_PROGRESS: "ROLLBACK_IN_PROGRESS";
|
|
160
169
|
readonly UNINITIALIZED: "UNINITIALIZED";
|
|
161
170
|
readonly UPDATE_IN_PROGRESS: "UPDATE_IN_PROGRESS";
|
|
162
171
|
};
|
|
@@ -175,6 +184,7 @@ export interface Cluster {
|
|
|
175
184
|
StateMessage?: string | undefined;
|
|
176
185
|
SubnetMapping?: Record<string, string> | undefined;
|
|
177
186
|
VpcId?: string | undefined;
|
|
187
|
+
NetworkType?: NetworkType | undefined;
|
|
178
188
|
Certificates?: Certificates | undefined;
|
|
179
189
|
TagList?: Tag[] | undefined;
|
|
180
190
|
Mode?: ClusterMode | undefined;
|
|
@@ -290,6 +300,17 @@ export interface RestoreBackupRequest {
|
|
|
290
300
|
export interface RestoreBackupResponse {
|
|
291
301
|
Backup?: Backup | undefined;
|
|
292
302
|
}
|
|
303
|
+
export declare class CloudHsmResourceLimitExceededException extends __BaseException {
|
|
304
|
+
readonly name: "CloudHsmResourceLimitExceededException";
|
|
305
|
+
readonly $fault: "client";
|
|
306
|
+
Message?: string | undefined;
|
|
307
|
+
constructor(
|
|
308
|
+
opts: __ExceptionOptionType<
|
|
309
|
+
CloudHsmResourceLimitExceededException,
|
|
310
|
+
__BaseException
|
|
311
|
+
>
|
|
312
|
+
);
|
|
313
|
+
}
|
|
293
314
|
export interface TagResourceRequest {
|
|
294
315
|
ResourceId: string | undefined;
|
|
295
316
|
TagList: Tag[] | undefined;
|
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.712.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",
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/client-sso-oidc": "3.
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sso-oidc": "3.712.0",
|
|
24
|
+
"@aws-sdk/client-sts": "3.712.0",
|
|
25
25
|
"@aws-sdk/core": "3.709.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.712.0",
|
|
27
27
|
"@aws-sdk/middleware-host-header": "3.709.0",
|
|
28
28
|
"@aws-sdk/middleware-logger": "3.709.0",
|
|
29
29
|
"@aws-sdk/middleware-recursion-detection": "3.709.0",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@aws-sdk/types": "3.709.0",
|
|
33
33
|
"@aws-sdk/util-endpoints": "3.709.0",
|
|
34
34
|
"@aws-sdk/util-user-agent-browser": "3.709.0",
|
|
35
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
35
|
+
"@aws-sdk/util-user-agent-node": "3.712.0",
|
|
36
36
|
"@smithy/config-resolver": "^3.0.13",
|
|
37
37
|
"@smithy/core": "^2.5.5",
|
|
38
38
|
"@smithy/fetch-http-handler": "^4.1.2",
|