@aws-sdk/client-cloudhsm-v2 3.721.0 → 3.724.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 CHANGED
@@ -159,7 +159,14 @@ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions
159
159
  }, "resolveRuntimeExtensions");
160
160
 
161
161
  // src/CloudHSMV2Client.ts
162
- var _CloudHSMV2Client = class _CloudHSMV2Client extends import_smithy_client.Client {
162
+ var CloudHSMV2Client = class extends import_smithy_client.Client {
163
+ static {
164
+ __name(this, "CloudHSMV2Client");
165
+ }
166
+ /**
167
+ * The resolved configuration of CloudHSMV2Client class. This is resolved and normalized from the {@link CloudHSMV2ClientConfig | constructor configuration interface}.
168
+ */
169
+ config;
163
170
  constructor(...[configuration]) {
164
171
  const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
165
172
  const _config_1 = resolveClientEndpointParameters(_config_0);
@@ -169,7 +176,7 @@ var _CloudHSMV2Client = class _CloudHSMV2Client extends import_smithy_client.Cli
169
176
  const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
170
177
  const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
171
178
  const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
172
- const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
179
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
173
180
  super(_config_8);
174
181
  this.config = _config_8;
175
182
  this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
@@ -197,8 +204,6 @@ var _CloudHSMV2Client = class _CloudHSMV2Client extends import_smithy_client.Cli
197
204
  super.destroy();
198
205
  }
199
206
  };
200
- __name(_CloudHSMV2Client, "CloudHSMV2Client");
201
- var CloudHSMV2Client = _CloudHSMV2Client;
202
207
 
203
208
  // src/CloudHSMV2.ts
204
209
 
@@ -215,7 +220,10 @@ var import_core2 = require("@aws-sdk/core");
215
220
 
216
221
  // src/models/CloudHSMV2ServiceException.ts
217
222
 
218
- var _CloudHSMV2ServiceException = class _CloudHSMV2ServiceException extends import_smithy_client.ServiceException {
223
+ var CloudHSMV2ServiceException = class _CloudHSMV2ServiceException extends import_smithy_client.ServiceException {
224
+ static {
225
+ __name(this, "CloudHSMV2ServiceException");
226
+ }
219
227
  /**
220
228
  * @internal
221
229
  */
@@ -224,8 +232,6 @@ var _CloudHSMV2ServiceException = class _CloudHSMV2ServiceException extends impo
224
232
  Object.setPrototypeOf(this, _CloudHSMV2ServiceException.prototype);
225
233
  }
226
234
  };
227
- __name(_CloudHSMV2ServiceException, "CloudHSMV2ServiceException");
228
- var CloudHSMV2ServiceException = _CloudHSMV2ServiceException;
229
235
 
230
236
  // src/models/models_0.ts
231
237
  var BackupState = {
@@ -244,7 +250,13 @@ var BackupPolicy = {
244
250
  var BackupRetentionType = {
245
251
  DAYS: "DAYS"
246
252
  };
247
- var _CloudHsmAccessDeniedException = class _CloudHsmAccessDeniedException extends CloudHSMV2ServiceException {
253
+ var CloudHsmAccessDeniedException = class _CloudHsmAccessDeniedException extends CloudHSMV2ServiceException {
254
+ static {
255
+ __name(this, "CloudHsmAccessDeniedException");
256
+ }
257
+ name = "CloudHsmAccessDeniedException";
258
+ $fault = "client";
259
+ Message;
248
260
  /**
249
261
  * @internal
250
262
  */
@@ -254,15 +266,17 @@ var _CloudHsmAccessDeniedException = class _CloudHsmAccessDeniedException extend
254
266
  $fault: "client",
255
267
  ...opts
256
268
  });
257
- this.name = "CloudHsmAccessDeniedException";
258
- this.$fault = "client";
259
269
  Object.setPrototypeOf(this, _CloudHsmAccessDeniedException.prototype);
260
270
  this.Message = opts.Message;
261
271
  }
262
272
  };
263
- __name(_CloudHsmAccessDeniedException, "CloudHsmAccessDeniedException");
264
- var CloudHsmAccessDeniedException = _CloudHsmAccessDeniedException;
265
- var _CloudHsmInternalFailureException = class _CloudHsmInternalFailureException extends CloudHSMV2ServiceException {
273
+ var CloudHsmInternalFailureException = class _CloudHsmInternalFailureException extends CloudHSMV2ServiceException {
274
+ static {
275
+ __name(this, "CloudHsmInternalFailureException");
276
+ }
277
+ name = "CloudHsmInternalFailureException";
278
+ $fault = "server";
279
+ Message;
266
280
  /**
267
281
  * @internal
268
282
  */
@@ -272,15 +286,17 @@ var _CloudHsmInternalFailureException = class _CloudHsmInternalFailureException
272
286
  $fault: "server",
273
287
  ...opts
274
288
  });
275
- this.name = "CloudHsmInternalFailureException";
276
- this.$fault = "server";
277
289
  Object.setPrototypeOf(this, _CloudHsmInternalFailureException.prototype);
278
290
  this.Message = opts.Message;
279
291
  }
280
292
  };
281
- __name(_CloudHsmInternalFailureException, "CloudHsmInternalFailureException");
282
- var CloudHsmInternalFailureException = _CloudHsmInternalFailureException;
283
- var _CloudHsmInvalidRequestException = class _CloudHsmInvalidRequestException extends CloudHSMV2ServiceException {
293
+ var CloudHsmInvalidRequestException = class _CloudHsmInvalidRequestException extends CloudHSMV2ServiceException {
294
+ static {
295
+ __name(this, "CloudHsmInvalidRequestException");
296
+ }
297
+ name = "CloudHsmInvalidRequestException";
298
+ $fault = "client";
299
+ Message;
284
300
  /**
285
301
  * @internal
286
302
  */
@@ -290,15 +306,17 @@ var _CloudHsmInvalidRequestException = class _CloudHsmInvalidRequestException ex
290
306
  $fault: "client",
291
307
  ...opts
292
308
  });
293
- this.name = "CloudHsmInvalidRequestException";
294
- this.$fault = "client";
295
309
  Object.setPrototypeOf(this, _CloudHsmInvalidRequestException.prototype);
296
310
  this.Message = opts.Message;
297
311
  }
298
312
  };
299
- __name(_CloudHsmInvalidRequestException, "CloudHsmInvalidRequestException");
300
- var CloudHsmInvalidRequestException = _CloudHsmInvalidRequestException;
301
- var _CloudHsmResourceNotFoundException = class _CloudHsmResourceNotFoundException extends CloudHSMV2ServiceException {
313
+ var CloudHsmResourceNotFoundException = class _CloudHsmResourceNotFoundException extends CloudHSMV2ServiceException {
314
+ static {
315
+ __name(this, "CloudHsmResourceNotFoundException");
316
+ }
317
+ name = "CloudHsmResourceNotFoundException";
318
+ $fault = "client";
319
+ Message;
302
320
  /**
303
321
  * @internal
304
322
  */
@@ -308,15 +326,17 @@ var _CloudHsmResourceNotFoundException = class _CloudHsmResourceNotFoundExceptio
308
326
  $fault: "client",
309
327
  ...opts
310
328
  });
311
- this.name = "CloudHsmResourceNotFoundException";
312
- this.$fault = "client";
313
329
  Object.setPrototypeOf(this, _CloudHsmResourceNotFoundException.prototype);
314
330
  this.Message = opts.Message;
315
331
  }
316
332
  };
317
- __name(_CloudHsmResourceNotFoundException, "CloudHsmResourceNotFoundException");
318
- var CloudHsmResourceNotFoundException = _CloudHsmResourceNotFoundException;
319
- var _CloudHsmServiceException = class _CloudHsmServiceException extends CloudHSMV2ServiceException {
333
+ var CloudHsmServiceException = class _CloudHsmServiceException extends CloudHSMV2ServiceException {
334
+ static {
335
+ __name(this, "CloudHsmServiceException");
336
+ }
337
+ name = "CloudHsmServiceException";
338
+ $fault = "client";
339
+ Message;
320
340
  /**
321
341
  * @internal
322
342
  */
@@ -326,15 +346,17 @@ var _CloudHsmServiceException = class _CloudHsmServiceException extends CloudHSM
326
346
  $fault: "client",
327
347
  ...opts
328
348
  });
329
- this.name = "CloudHsmServiceException";
330
- this.$fault = "client";
331
349
  Object.setPrototypeOf(this, _CloudHsmServiceException.prototype);
332
350
  this.Message = opts.Message;
333
351
  }
334
352
  };
335
- __name(_CloudHsmServiceException, "CloudHsmServiceException");
336
- var CloudHsmServiceException = _CloudHsmServiceException;
337
- var _CloudHsmTagException = class _CloudHsmTagException extends CloudHSMV2ServiceException {
353
+ var CloudHsmTagException = class _CloudHsmTagException extends CloudHSMV2ServiceException {
354
+ static {
355
+ __name(this, "CloudHsmTagException");
356
+ }
357
+ name = "CloudHsmTagException";
358
+ $fault = "client";
359
+ Message;
338
360
  /**
339
361
  * @internal
340
362
  */
@@ -344,14 +366,10 @@ var _CloudHsmTagException = class _CloudHsmTagException extends CloudHSMV2Servic
344
366
  $fault: "client",
345
367
  ...opts
346
368
  });
347
- this.name = "CloudHsmTagException";
348
- this.$fault = "client";
349
369
  Object.setPrototypeOf(this, _CloudHsmTagException.prototype);
350
370
  this.Message = opts.Message;
351
371
  }
352
372
  };
353
- __name(_CloudHsmTagException, "CloudHsmTagException");
354
- var CloudHsmTagException = _CloudHsmTagException;
355
373
  var NetworkType = {
356
374
  DUALSTACK: "DUALSTACK",
357
375
  IPV4: "IPV4"
@@ -376,7 +394,13 @@ var ClusterState = {
376
394
  UNINITIALIZED: "UNINITIALIZED",
377
395
  UPDATE_IN_PROGRESS: "UPDATE_IN_PROGRESS"
378
396
  };
379
- var _CloudHsmResourceLimitExceededException = class _CloudHsmResourceLimitExceededException extends CloudHSMV2ServiceException {
397
+ var CloudHsmResourceLimitExceededException = class _CloudHsmResourceLimitExceededException extends CloudHSMV2ServiceException {
398
+ static {
399
+ __name(this, "CloudHsmResourceLimitExceededException");
400
+ }
401
+ name = "CloudHsmResourceLimitExceededException";
402
+ $fault = "client";
403
+ Message;
380
404
  /**
381
405
  * @internal
382
406
  */
@@ -386,14 +410,10 @@ var _CloudHsmResourceLimitExceededException = class _CloudHsmResourceLimitExceed
386
410
  $fault: "client",
387
411
  ...opts
388
412
  });
389
- this.name = "CloudHsmResourceLimitExceededException";
390
- this.$fault = "client";
391
413
  Object.setPrototypeOf(this, _CloudHsmResourceLimitExceededException.prototype);
392
414
  this.Message = opts.Message;
393
415
  }
394
416
  };
395
- __name(_CloudHsmResourceLimitExceededException, "CloudHsmResourceLimitExceededException");
396
- var CloudHsmResourceLimitExceededException = _CloudHsmResourceLimitExceededException;
397
417
 
398
418
  // src/protocols/Aws_json1_1.ts
399
419
  var se_CopyBackupToRegionCommand = /* @__PURE__ */ __name(async (input, context) => {
@@ -870,6 +890,7 @@ var de_Cluster = /* @__PURE__ */ __name((output, context) => {
870
890
  ClusterId: import_smithy_client.expectString,
871
891
  CreateTimestamp: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
872
892
  HsmType: import_smithy_client.expectString,
893
+ HsmTypeRollbackExpiration: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
873
894
  Hsms: import_smithy_client._json,
874
895
  Mode: import_smithy_client.expectString,
875
896
  NetworkType: import_smithy_client.expectString,
@@ -978,253 +999,271 @@ function sharedHeaders(operation) {
978
999
  __name(sharedHeaders, "sharedHeaders");
979
1000
 
980
1001
  // src/commands/CopyBackupToRegionCommand.ts
981
- var _CopyBackupToRegionCommand = class _CopyBackupToRegionCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1002
+ var CopyBackupToRegionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
982
1003
  return [
983
1004
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
984
1005
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
985
1006
  ];
986
1007
  }).s("BaldrApiService", "CopyBackupToRegion", {}).n("CloudHSMV2Client", "CopyBackupToRegionCommand").f(void 0, void 0).ser(se_CopyBackupToRegionCommand).de(de_CopyBackupToRegionCommand).build() {
1008
+ static {
1009
+ __name(this, "CopyBackupToRegionCommand");
1010
+ }
987
1011
  };
988
- __name(_CopyBackupToRegionCommand, "CopyBackupToRegionCommand");
989
- var CopyBackupToRegionCommand = _CopyBackupToRegionCommand;
990
1012
 
991
1013
  // src/commands/CreateClusterCommand.ts
992
1014
 
993
1015
 
994
1016
 
995
- var _CreateClusterCommand = class _CreateClusterCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1017
+ var CreateClusterCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
996
1018
  return [
997
1019
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
998
1020
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
999
1021
  ];
1000
1022
  }).s("BaldrApiService", "CreateCluster", {}).n("CloudHSMV2Client", "CreateClusterCommand").f(void 0, void 0).ser(se_CreateClusterCommand).de(de_CreateClusterCommand).build() {
1023
+ static {
1024
+ __name(this, "CreateClusterCommand");
1025
+ }
1001
1026
  };
1002
- __name(_CreateClusterCommand, "CreateClusterCommand");
1003
- var CreateClusterCommand = _CreateClusterCommand;
1004
1027
 
1005
1028
  // src/commands/CreateHsmCommand.ts
1006
1029
 
1007
1030
 
1008
1031
 
1009
- var _CreateHsmCommand = class _CreateHsmCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1032
+ var CreateHsmCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1010
1033
  return [
1011
1034
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1012
1035
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1013
1036
  ];
1014
1037
  }).s("BaldrApiService", "CreateHsm", {}).n("CloudHSMV2Client", "CreateHsmCommand").f(void 0, void 0).ser(se_CreateHsmCommand).de(de_CreateHsmCommand).build() {
1038
+ static {
1039
+ __name(this, "CreateHsmCommand");
1040
+ }
1015
1041
  };
1016
- __name(_CreateHsmCommand, "CreateHsmCommand");
1017
- var CreateHsmCommand = _CreateHsmCommand;
1018
1042
 
1019
1043
  // src/commands/DeleteBackupCommand.ts
1020
1044
 
1021
1045
 
1022
1046
 
1023
- var _DeleteBackupCommand = class _DeleteBackupCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1047
+ var DeleteBackupCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1024
1048
  return [
1025
1049
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1026
1050
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1027
1051
  ];
1028
1052
  }).s("BaldrApiService", "DeleteBackup", {}).n("CloudHSMV2Client", "DeleteBackupCommand").f(void 0, void 0).ser(se_DeleteBackupCommand).de(de_DeleteBackupCommand).build() {
1053
+ static {
1054
+ __name(this, "DeleteBackupCommand");
1055
+ }
1029
1056
  };
1030
- __name(_DeleteBackupCommand, "DeleteBackupCommand");
1031
- var DeleteBackupCommand = _DeleteBackupCommand;
1032
1057
 
1033
1058
  // src/commands/DeleteClusterCommand.ts
1034
1059
 
1035
1060
 
1036
1061
 
1037
- var _DeleteClusterCommand = class _DeleteClusterCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1062
+ var DeleteClusterCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1038
1063
  return [
1039
1064
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1040
1065
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1041
1066
  ];
1042
1067
  }).s("BaldrApiService", "DeleteCluster", {}).n("CloudHSMV2Client", "DeleteClusterCommand").f(void 0, void 0).ser(se_DeleteClusterCommand).de(de_DeleteClusterCommand).build() {
1068
+ static {
1069
+ __name(this, "DeleteClusterCommand");
1070
+ }
1043
1071
  };
1044
- __name(_DeleteClusterCommand, "DeleteClusterCommand");
1045
- var DeleteClusterCommand = _DeleteClusterCommand;
1046
1072
 
1047
1073
  // src/commands/DeleteHsmCommand.ts
1048
1074
 
1049
1075
 
1050
1076
 
1051
- var _DeleteHsmCommand = class _DeleteHsmCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1077
+ var DeleteHsmCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1052
1078
  return [
1053
1079
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1054
1080
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1055
1081
  ];
1056
1082
  }).s("BaldrApiService", "DeleteHsm", {}).n("CloudHSMV2Client", "DeleteHsmCommand").f(void 0, void 0).ser(se_DeleteHsmCommand).de(de_DeleteHsmCommand).build() {
1083
+ static {
1084
+ __name(this, "DeleteHsmCommand");
1085
+ }
1057
1086
  };
1058
- __name(_DeleteHsmCommand, "DeleteHsmCommand");
1059
- var DeleteHsmCommand = _DeleteHsmCommand;
1060
1087
 
1061
1088
  // src/commands/DeleteResourcePolicyCommand.ts
1062
1089
 
1063
1090
 
1064
1091
 
1065
- var _DeleteResourcePolicyCommand = class _DeleteResourcePolicyCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1092
+ var DeleteResourcePolicyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1066
1093
  return [
1067
1094
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1068
1095
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1069
1096
  ];
1070
1097
  }).s("BaldrApiService", "DeleteResourcePolicy", {}).n("CloudHSMV2Client", "DeleteResourcePolicyCommand").f(void 0, void 0).ser(se_DeleteResourcePolicyCommand).de(de_DeleteResourcePolicyCommand).build() {
1098
+ static {
1099
+ __name(this, "DeleteResourcePolicyCommand");
1100
+ }
1071
1101
  };
1072
- __name(_DeleteResourcePolicyCommand, "DeleteResourcePolicyCommand");
1073
- var DeleteResourcePolicyCommand = _DeleteResourcePolicyCommand;
1074
1102
 
1075
1103
  // src/commands/DescribeBackupsCommand.ts
1076
1104
 
1077
1105
 
1078
1106
 
1079
- var _DescribeBackupsCommand = class _DescribeBackupsCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1107
+ var DescribeBackupsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1080
1108
  return [
1081
1109
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1082
1110
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1083
1111
  ];
1084
1112
  }).s("BaldrApiService", "DescribeBackups", {}).n("CloudHSMV2Client", "DescribeBackupsCommand").f(void 0, void 0).ser(se_DescribeBackupsCommand).de(de_DescribeBackupsCommand).build() {
1113
+ static {
1114
+ __name(this, "DescribeBackupsCommand");
1115
+ }
1085
1116
  };
1086
- __name(_DescribeBackupsCommand, "DescribeBackupsCommand");
1087
- var DescribeBackupsCommand = _DescribeBackupsCommand;
1088
1117
 
1089
1118
  // src/commands/DescribeClustersCommand.ts
1090
1119
 
1091
1120
 
1092
1121
 
1093
- var _DescribeClustersCommand = class _DescribeClustersCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1122
+ var DescribeClustersCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1094
1123
  return [
1095
1124
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1096
1125
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1097
1126
  ];
1098
1127
  }).s("BaldrApiService", "DescribeClusters", {}).n("CloudHSMV2Client", "DescribeClustersCommand").f(void 0, void 0).ser(se_DescribeClustersCommand).de(de_DescribeClustersCommand).build() {
1128
+ static {
1129
+ __name(this, "DescribeClustersCommand");
1130
+ }
1099
1131
  };
1100
- __name(_DescribeClustersCommand, "DescribeClustersCommand");
1101
- var DescribeClustersCommand = _DescribeClustersCommand;
1102
1132
 
1103
1133
  // src/commands/GetResourcePolicyCommand.ts
1104
1134
 
1105
1135
 
1106
1136
 
1107
- var _GetResourcePolicyCommand = class _GetResourcePolicyCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1137
+ var GetResourcePolicyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1108
1138
  return [
1109
1139
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1110
1140
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1111
1141
  ];
1112
1142
  }).s("BaldrApiService", "GetResourcePolicy", {}).n("CloudHSMV2Client", "GetResourcePolicyCommand").f(void 0, void 0).ser(se_GetResourcePolicyCommand).de(de_GetResourcePolicyCommand).build() {
1143
+ static {
1144
+ __name(this, "GetResourcePolicyCommand");
1145
+ }
1113
1146
  };
1114
- __name(_GetResourcePolicyCommand, "GetResourcePolicyCommand");
1115
- var GetResourcePolicyCommand = _GetResourcePolicyCommand;
1116
1147
 
1117
1148
  // src/commands/InitializeClusterCommand.ts
1118
1149
 
1119
1150
 
1120
1151
 
1121
- var _InitializeClusterCommand = class _InitializeClusterCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1152
+ var InitializeClusterCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1122
1153
  return [
1123
1154
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1124
1155
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1125
1156
  ];
1126
1157
  }).s("BaldrApiService", "InitializeCluster", {}).n("CloudHSMV2Client", "InitializeClusterCommand").f(void 0, void 0).ser(se_InitializeClusterCommand).de(de_InitializeClusterCommand).build() {
1158
+ static {
1159
+ __name(this, "InitializeClusterCommand");
1160
+ }
1127
1161
  };
1128
- __name(_InitializeClusterCommand, "InitializeClusterCommand");
1129
- var InitializeClusterCommand = _InitializeClusterCommand;
1130
1162
 
1131
1163
  // src/commands/ListTagsCommand.ts
1132
1164
 
1133
1165
 
1134
1166
 
1135
- var _ListTagsCommand = class _ListTagsCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1167
+ var ListTagsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1136
1168
  return [
1137
1169
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1138
1170
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1139
1171
  ];
1140
1172
  }).s("BaldrApiService", "ListTags", {}).n("CloudHSMV2Client", "ListTagsCommand").f(void 0, void 0).ser(se_ListTagsCommand).de(de_ListTagsCommand).build() {
1173
+ static {
1174
+ __name(this, "ListTagsCommand");
1175
+ }
1141
1176
  };
1142
- __name(_ListTagsCommand, "ListTagsCommand");
1143
- var ListTagsCommand = _ListTagsCommand;
1144
1177
 
1145
1178
  // src/commands/ModifyBackupAttributesCommand.ts
1146
1179
 
1147
1180
 
1148
1181
 
1149
- var _ModifyBackupAttributesCommand = class _ModifyBackupAttributesCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1182
+ var ModifyBackupAttributesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1150
1183
  return [
1151
1184
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1152
1185
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1153
1186
  ];
1154
1187
  }).s("BaldrApiService", "ModifyBackupAttributes", {}).n("CloudHSMV2Client", "ModifyBackupAttributesCommand").f(void 0, void 0).ser(se_ModifyBackupAttributesCommand).de(de_ModifyBackupAttributesCommand).build() {
1188
+ static {
1189
+ __name(this, "ModifyBackupAttributesCommand");
1190
+ }
1155
1191
  };
1156
- __name(_ModifyBackupAttributesCommand, "ModifyBackupAttributesCommand");
1157
- var ModifyBackupAttributesCommand = _ModifyBackupAttributesCommand;
1158
1192
 
1159
1193
  // src/commands/ModifyClusterCommand.ts
1160
1194
 
1161
1195
 
1162
1196
 
1163
- var _ModifyClusterCommand = class _ModifyClusterCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1197
+ var ModifyClusterCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1164
1198
  return [
1165
1199
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1166
1200
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1167
1201
  ];
1168
1202
  }).s("BaldrApiService", "ModifyCluster", {}).n("CloudHSMV2Client", "ModifyClusterCommand").f(void 0, void 0).ser(se_ModifyClusterCommand).de(de_ModifyClusterCommand).build() {
1203
+ static {
1204
+ __name(this, "ModifyClusterCommand");
1205
+ }
1169
1206
  };
1170
- __name(_ModifyClusterCommand, "ModifyClusterCommand");
1171
- var ModifyClusterCommand = _ModifyClusterCommand;
1172
1207
 
1173
1208
  // src/commands/PutResourcePolicyCommand.ts
1174
1209
 
1175
1210
 
1176
1211
 
1177
- var _PutResourcePolicyCommand = class _PutResourcePolicyCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1212
+ var PutResourcePolicyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1178
1213
  return [
1179
1214
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1180
1215
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1181
1216
  ];
1182
1217
  }).s("BaldrApiService", "PutResourcePolicy", {}).n("CloudHSMV2Client", "PutResourcePolicyCommand").f(void 0, void 0).ser(se_PutResourcePolicyCommand).de(de_PutResourcePolicyCommand).build() {
1218
+ static {
1219
+ __name(this, "PutResourcePolicyCommand");
1220
+ }
1183
1221
  };
1184
- __name(_PutResourcePolicyCommand, "PutResourcePolicyCommand");
1185
- var PutResourcePolicyCommand = _PutResourcePolicyCommand;
1186
1222
 
1187
1223
  // src/commands/RestoreBackupCommand.ts
1188
1224
 
1189
1225
 
1190
1226
 
1191
- var _RestoreBackupCommand = class _RestoreBackupCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1227
+ var RestoreBackupCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1192
1228
  return [
1193
1229
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1194
1230
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1195
1231
  ];
1196
1232
  }).s("BaldrApiService", "RestoreBackup", {}).n("CloudHSMV2Client", "RestoreBackupCommand").f(void 0, void 0).ser(se_RestoreBackupCommand).de(de_RestoreBackupCommand).build() {
1233
+ static {
1234
+ __name(this, "RestoreBackupCommand");
1235
+ }
1197
1236
  };
1198
- __name(_RestoreBackupCommand, "RestoreBackupCommand");
1199
- var RestoreBackupCommand = _RestoreBackupCommand;
1200
1237
 
1201
1238
  // src/commands/TagResourceCommand.ts
1202
1239
 
1203
1240
 
1204
1241
 
1205
- var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1242
+ var TagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1206
1243
  return [
1207
1244
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1208
1245
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1209
1246
  ];
1210
1247
  }).s("BaldrApiService", "TagResource", {}).n("CloudHSMV2Client", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
1248
+ static {
1249
+ __name(this, "TagResourceCommand");
1250
+ }
1211
1251
  };
1212
- __name(_TagResourceCommand, "TagResourceCommand");
1213
- var TagResourceCommand = _TagResourceCommand;
1214
1252
 
1215
1253
  // src/commands/UntagResourceCommand.ts
1216
1254
 
1217
1255
 
1218
1256
 
1219
- var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1257
+ var UntagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1220
1258
  return [
1221
1259
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1222
1260
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1223
1261
  ];
1224
1262
  }).s("BaldrApiService", "UntagResource", {}).n("CloudHSMV2Client", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
1263
+ static {
1264
+ __name(this, "UntagResourceCommand");
1265
+ }
1225
1266
  };
1226
- __name(_UntagResourceCommand, "UntagResourceCommand");
1227
- var UntagResourceCommand = _UntagResourceCommand;
1228
1267
 
1229
1268
  // src/CloudHSMV2.ts
1230
1269
  var commands = {
@@ -1247,10 +1286,11 @@ var commands = {
1247
1286
  TagResourceCommand,
1248
1287
  UntagResourceCommand
1249
1288
  };
1250
- var _CloudHSMV2 = class _CloudHSMV2 extends CloudHSMV2Client {
1289
+ var CloudHSMV2 = class extends CloudHSMV2Client {
1290
+ static {
1291
+ __name(this, "CloudHSMV2");
1292
+ }
1251
1293
  };
1252
- __name(_CloudHSMV2, "CloudHSMV2");
1253
- var CloudHSMV2 = _CloudHSMV2;
1254
1294
  (0, import_smithy_client.createAggregatedClient)(commands, CloudHSMV2);
1255
1295
 
1256
1296
  // src/pagination/DescribeBackupsPaginator.ts
@@ -14,6 +14,7 @@ import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
14
14
  import { resolveRuntimeExtensions } from "./runtimeExtensions";
15
15
  export { __Client };
16
16
  export class CloudHSMV2Client extends __Client {
17
+ config;
17
18
  constructor(...[configuration]) {
18
19
  const _config_0 = __getRuntimeConfig(configuration || {});
19
20
  const _config_1 = resolveClientEndpointParameters(_config_0);
@@ -16,79 +16,85 @@ export const BackupRetentionType = {
16
16
  DAYS: "DAYS",
17
17
  };
18
18
  export class CloudHsmAccessDeniedException extends __BaseException {
19
+ name = "CloudHsmAccessDeniedException";
20
+ $fault = "client";
21
+ Message;
19
22
  constructor(opts) {
20
23
  super({
21
24
  name: "CloudHsmAccessDeniedException",
22
25
  $fault: "client",
23
26
  ...opts,
24
27
  });
25
- this.name = "CloudHsmAccessDeniedException";
26
- this.$fault = "client";
27
28
  Object.setPrototypeOf(this, CloudHsmAccessDeniedException.prototype);
28
29
  this.Message = opts.Message;
29
30
  }
30
31
  }
31
32
  export class CloudHsmInternalFailureException extends __BaseException {
33
+ name = "CloudHsmInternalFailureException";
34
+ $fault = "server";
35
+ Message;
32
36
  constructor(opts) {
33
37
  super({
34
38
  name: "CloudHsmInternalFailureException",
35
39
  $fault: "server",
36
40
  ...opts,
37
41
  });
38
- this.name = "CloudHsmInternalFailureException";
39
- this.$fault = "server";
40
42
  Object.setPrototypeOf(this, CloudHsmInternalFailureException.prototype);
41
43
  this.Message = opts.Message;
42
44
  }
43
45
  }
44
46
  export class CloudHsmInvalidRequestException extends __BaseException {
47
+ name = "CloudHsmInvalidRequestException";
48
+ $fault = "client";
49
+ Message;
45
50
  constructor(opts) {
46
51
  super({
47
52
  name: "CloudHsmInvalidRequestException",
48
53
  $fault: "client",
49
54
  ...opts,
50
55
  });
51
- this.name = "CloudHsmInvalidRequestException";
52
- this.$fault = "client";
53
56
  Object.setPrototypeOf(this, CloudHsmInvalidRequestException.prototype);
54
57
  this.Message = opts.Message;
55
58
  }
56
59
  }
57
60
  export class CloudHsmResourceNotFoundException extends __BaseException {
61
+ name = "CloudHsmResourceNotFoundException";
62
+ $fault = "client";
63
+ Message;
58
64
  constructor(opts) {
59
65
  super({
60
66
  name: "CloudHsmResourceNotFoundException",
61
67
  $fault: "client",
62
68
  ...opts,
63
69
  });
64
- this.name = "CloudHsmResourceNotFoundException";
65
- this.$fault = "client";
66
70
  Object.setPrototypeOf(this, CloudHsmResourceNotFoundException.prototype);
67
71
  this.Message = opts.Message;
68
72
  }
69
73
  }
70
74
  export class CloudHsmServiceException extends __BaseException {
75
+ name = "CloudHsmServiceException";
76
+ $fault = "client";
77
+ Message;
71
78
  constructor(opts) {
72
79
  super({
73
80
  name: "CloudHsmServiceException",
74
81
  $fault: "client",
75
82
  ...opts,
76
83
  });
77
- this.name = "CloudHsmServiceException";
78
- this.$fault = "client";
79
84
  Object.setPrototypeOf(this, CloudHsmServiceException.prototype);
80
85
  this.Message = opts.Message;
81
86
  }
82
87
  }
83
88
  export class CloudHsmTagException extends __BaseException {
89
+ name = "CloudHsmTagException";
90
+ $fault = "client";
91
+ Message;
84
92
  constructor(opts) {
85
93
  super({
86
94
  name: "CloudHsmTagException",
87
95
  $fault: "client",
88
96
  ...opts,
89
97
  });
90
- this.name = "CloudHsmTagException";
91
- this.$fault = "client";
92
98
  Object.setPrototypeOf(this, CloudHsmTagException.prototype);
93
99
  this.Message = opts.Message;
94
100
  }
@@ -118,14 +124,15 @@ export const ClusterState = {
118
124
  UPDATE_IN_PROGRESS: "UPDATE_IN_PROGRESS",
119
125
  };
120
126
  export class CloudHsmResourceLimitExceededException extends __BaseException {
127
+ name = "CloudHsmResourceLimitExceededException";
128
+ $fault = "client";
129
+ Message;
121
130
  constructor(opts) {
122
131
  super({
123
132
  name: "CloudHsmResourceLimitExceededException",
124
133
  $fault: "client",
125
134
  ...opts,
126
135
  });
127
- this.name = "CloudHsmResourceLimitExceededException";
128
- this.$fault = "client";
129
136
  Object.setPrototypeOf(this, CloudHsmResourceLimitExceededException.prototype);
130
137
  this.Message = opts.Message;
131
138
  }
@@ -479,6 +479,7 @@ const de_Cluster = (output, context) => {
479
479
  ClusterId: __expectString,
480
480
  CreateTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
481
481
  HsmType: __expectString,
482
+ HsmTypeRollbackExpiration: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
482
483
  Hsms: _json,
483
484
  Mode: __expectString,
484
485
  NetworkType: __expectString,
@@ -76,11 +76,13 @@ declare const CreateClusterCommand_base: {
76
76
  * // EniIp: "STRING_VALUE",
77
77
  * // EniIpV6: "STRING_VALUE",
78
78
  * // HsmId: "STRING_VALUE", // required
79
+ * // HsmType: "STRING_VALUE",
79
80
  * // State: "CREATE_IN_PROGRESS" || "ACTIVE" || "DEGRADED" || "DELETE_IN_PROGRESS" || "DELETED",
80
81
  * // StateMessage: "STRING_VALUE",
81
82
  * // },
82
83
  * // ],
83
84
  * // HsmType: "STRING_VALUE",
85
+ * // HsmTypeRollbackExpiration: new Date("TIMESTAMP"),
84
86
  * // PreCoPassword: "STRING_VALUE",
85
87
  * // SecurityGroup: "STRING_VALUE",
86
88
  * // SourceBackupId: "STRING_VALUE",
@@ -53,6 +53,7 @@ declare const CreateHsmCommand_base: {
53
53
  * // EniIp: "STRING_VALUE",
54
54
  * // EniIpV6: "STRING_VALUE",
55
55
  * // HsmId: "STRING_VALUE", // required
56
+ * // HsmType: "STRING_VALUE",
56
57
  * // State: "CREATE_IN_PROGRESS" || "ACTIVE" || "DEGRADED" || "DELETE_IN_PROGRESS" || "DELETED",
57
58
  * // StateMessage: "STRING_VALUE",
58
59
  * // },
@@ -60,11 +60,13 @@ declare const DeleteClusterCommand_base: {
60
60
  * // EniIp: "STRING_VALUE",
61
61
  * // EniIpV6: "STRING_VALUE",
62
62
  * // HsmId: "STRING_VALUE", // required
63
+ * // HsmType: "STRING_VALUE",
63
64
  * // State: "CREATE_IN_PROGRESS" || "ACTIVE" || "DEGRADED" || "DELETE_IN_PROGRESS" || "DELETED",
64
65
  * // StateMessage: "STRING_VALUE",
65
66
  * // },
66
67
  * // ],
67
68
  * // HsmType: "STRING_VALUE",
69
+ * // HsmTypeRollbackExpiration: new Date("TIMESTAMP"),
68
70
  * // PreCoPassword: "STRING_VALUE",
69
71
  * // SecurityGroup: "STRING_VALUE",
70
72
  * // SourceBackupId: "STRING_VALUE",
@@ -71,11 +71,13 @@ declare const DescribeClustersCommand_base: {
71
71
  * // EniIp: "STRING_VALUE",
72
72
  * // EniIpV6: "STRING_VALUE",
73
73
  * // HsmId: "STRING_VALUE", // required
74
+ * // HsmType: "STRING_VALUE",
74
75
  * // State: "CREATE_IN_PROGRESS" || "ACTIVE" || "DEGRADED" || "DELETE_IN_PROGRESS" || "DELETED",
75
76
  * // StateMessage: "STRING_VALUE",
76
77
  * // },
77
78
  * // ],
78
79
  * // HsmType: "STRING_VALUE",
80
+ * // HsmTypeRollbackExpiration: new Date("TIMESTAMP"),
79
81
  * // PreCoPassword: "STRING_VALUE",
80
82
  * // SecurityGroup: "STRING_VALUE",
81
83
  * // SourceBackupId: "STRING_VALUE",
@@ -37,6 +37,7 @@ declare const ModifyClusterCommand_base: {
37
37
  * // const { CloudHSMV2Client, ModifyClusterCommand } = require("@aws-sdk/client-cloudhsm-v2"); // CommonJS import
38
38
  * const client = new CloudHSMV2Client(config);
39
39
  * const input = { // ModifyClusterRequest
40
+ * HsmType: "STRING_VALUE",
40
41
  * BackupRetentionPolicy: { // BackupRetentionPolicy
41
42
  * Type: "DAYS",
42
43
  * Value: "STRING_VALUE",
@@ -63,11 +64,13 @@ declare const ModifyClusterCommand_base: {
63
64
  * // EniIp: "STRING_VALUE",
64
65
  * // EniIpV6: "STRING_VALUE",
65
66
  * // HsmId: "STRING_VALUE", // required
67
+ * // HsmType: "STRING_VALUE",
66
68
  * // State: "CREATE_IN_PROGRESS" || "ACTIVE" || "DEGRADED" || "DELETE_IN_PROGRESS" || "DELETED",
67
69
  * // StateMessage: "STRING_VALUE",
68
70
  * // },
69
71
  * // ],
70
72
  * // HsmType: "STRING_VALUE",
73
+ * // HsmTypeRollbackExpiration: new Date("TIMESTAMP"),
71
74
  * // PreCoPassword: "STRING_VALUE",
72
75
  * // SecurityGroup: "STRING_VALUE",
73
76
  * // SourceBackupId: "STRING_VALUE",
@@ -465,6 +465,11 @@ export interface Hsm {
465
465
  * @public
466
466
  */
467
467
  HsmId: string | undefined;
468
+ /**
469
+ * <p>The type of HSM.</p>
470
+ * @public
471
+ */
472
+ HsmType?: string | undefined;
468
473
  /**
469
474
  * <p>The HSM's state.</p>
470
475
  * @public
@@ -532,6 +537,11 @@ export interface Cluster {
532
537
  * @public
533
538
  */
534
539
  HsmType?: string | undefined;
540
+ /**
541
+ * <p>The timestamp until when the cluster can be rolled back to its original HSM type.</p>
542
+ * @public
543
+ */
544
+ HsmTypeRollbackExpiration?: Date | undefined;
535
545
  /**
536
546
  * <p>The default password for the cluster's Pre-Crypto Officer (PRECO) user.</p>
537
547
  * @public
@@ -570,11 +580,11 @@ export interface Cluster {
570
580
  */
571
581
  VpcId?: string | undefined;
572
582
  /**
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>
583
+ * <p>The cluster's NetworkType can be IPv4 (the default) or DUALSTACK.
584
+ * The IPv4 NetworkType restricts communication between your application and the hardware security modules (HSMs) to the IPv4 protocol only. The DUALSTACK NetworkType enables communication over both IPv4 and IPv6 protocols.
585
+ * To use DUALSTACK, configure your virtual private cloud (VPC) and subnets to support both IPv4 and IPv6.
586
+ * This configuration involves adding IPv6 Classless Inter-Domain Routing (CIDR) blocks to the existing IPv4 CIDR blocks in your subnets.
587
+ * The NetworkType you choose affects the network addressing options for your cluster. DUALSTACK provides more flexibility by supporting both IPv4 and IPv6 communication.</p>
578
588
  * @public
579
589
  */
580
590
  NetworkType?: NetworkType | undefined;
@@ -989,11 +999,16 @@ export interface ModifyBackupAttributesResponse {
989
999
  * @public
990
1000
  */
991
1001
  export interface ModifyClusterRequest {
1002
+ /**
1003
+ * <p>The desired HSM type of the cluster.</p>
1004
+ * @public
1005
+ */
1006
+ HsmType?: string | undefined;
992
1007
  /**
993
1008
  * <p>A policy that defines how the service retains backups.</p>
994
1009
  * @public
995
1010
  */
996
- BackupRetentionPolicy: BackupRetentionPolicy | undefined;
1011
+ BackupRetentionPolicy?: BackupRetentionPolicy | undefined;
997
1012
  /**
998
1013
  * <p>The identifier (ID) of the cluster that you want to modify. To find the cluster ID, use
999
1014
  * <a>DescribeClusters</a>.</p>
@@ -7,7 +7,7 @@ export declare const getRuntimeConfig: (config: CloudHSMV2ClientConfig) => {
7
7
  runtime: string;
8
8
  defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
- credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
10
+ credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
11
11
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
12
12
  maxAttempts: number | import("@smithy/types").Provider<number>;
13
13
  region: string | import("@smithy/types").Provider<any>;
@@ -7,7 +7,7 @@ export declare const getRuntimeConfig: (config: CloudHSMV2ClientConfig) => {
7
7
  runtime: string;
8
8
  defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
- credentialDefaultProvider: (init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit | undefined) => import("@smithy/types").MemoizedProvider<import("@smithy/types").AwsCredentialIdentity>;
10
+ credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit | undefined) => import("@smithy/types").MemoizedProvider<import("@smithy/types").AwsCredentialIdentity>);
11
11
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-node").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
12
12
  maxAttempts: number | import("@smithy/types").Provider<number>;
13
13
  region: string | import("@smithy/types").Provider<string>;
@@ -22,7 +22,7 @@ export declare const getRuntimeConfig: (config: CloudHSMV2ClientConfig) => {
22
22
  region: string | import("@smithy/types").Provider<any>;
23
23
  profile?: string | undefined;
24
24
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
25
- credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
25
+ credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
26
26
  maxAttempts: number | import("@smithy/types").Provider<number>;
27
27
  retryMode: string | import("@smithy/types").Provider<string>;
28
28
  logger: import("@smithy/types").Logger;
@@ -31,7 +31,7 @@ export declare const getRuntimeConfig: (config: CloudHSMV2ClientConfig) => {
31
31
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
32
32
  userAgentAppId?: string | import("@smithy/types").Provider<string | undefined> | undefined;
33
33
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
34
- endpoint?: string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2> | undefined;
34
+ endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
35
35
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
36
36
  logger?: import("@smithy/types").Logger | undefined;
37
37
  }) => import("@smithy/types").EndpointV2;
@@ -153,6 +153,7 @@ export interface Hsm {
153
153
  EniIp?: string | undefined;
154
154
  EniIpV6?: string | undefined;
155
155
  HsmId: string | undefined;
156
+ HsmType?: string | undefined;
156
157
  State?: HsmState | undefined;
157
158
  StateMessage?: string | undefined;
158
159
  }
@@ -177,6 +178,7 @@ export interface Cluster {
177
178
  CreateTimestamp?: Date | undefined;
178
179
  Hsms?: Hsm[] | undefined;
179
180
  HsmType?: string | undefined;
181
+ HsmTypeRollbackExpiration?: Date | undefined;
180
182
  PreCoPassword?: string | undefined;
181
183
  SecurityGroup?: string | undefined;
182
184
  SourceBackupId?: string | undefined;
@@ -280,7 +282,8 @@ export interface ModifyBackupAttributesResponse {
280
282
  Backup?: Backup | undefined;
281
283
  }
282
284
  export interface ModifyClusterRequest {
283
- BackupRetentionPolicy: BackupRetentionPolicy | undefined;
285
+ HsmType?: string | undefined;
286
+ BackupRetentionPolicy?: BackupRetentionPolicy | undefined;
284
287
  ClusterId: string | undefined;
285
288
  }
286
289
  export interface ModifyClusterResponse {
@@ -6,9 +6,11 @@ export declare const getRuntimeConfig: (config: CloudHSMV2ClientConfig) => {
6
6
  import("@smithy/smithy-client").ResolvedDefaultsMode
7
7
  >;
8
8
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
9
- credentialDefaultProvider: (
10
- input: any
11
- ) => import("@smithy/types").AwsCredentialIdentityProvider;
9
+ credentialDefaultProvider:
10
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
11
+ | ((
12
+ _: unknown
13
+ ) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
12
14
  defaultUserAgentProvider: (
13
15
  config?:
14
16
  | import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
@@ -6,13 +6,15 @@ export declare const getRuntimeConfig: (config: CloudHSMV2ClientConfig) => {
6
6
  import("@smithy/smithy-client").ResolvedDefaultsMode
7
7
  >;
8
8
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
9
- credentialDefaultProvider: (
10
- init?:
11
- | import("@aws-sdk/credential-provider-node").DefaultProviderInit
12
- | undefined
13
- ) => import("@smithy/types").MemoizedProvider<
14
- import("@smithy/types").AwsCredentialIdentity
15
- >;
9
+ credentialDefaultProvider:
10
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
11
+ | ((
12
+ init?:
13
+ | import("@aws-sdk/credential-provider-node").DefaultProviderInit
14
+ | undefined
15
+ ) => import("@smithy/types").MemoizedProvider<
16
+ import("@smithy/types").AwsCredentialIdentity
17
+ >);
16
18
  defaultUserAgentProvider: (
17
19
  config?:
18
20
  | import("@aws-sdk/util-user-agent-node").PreviouslyResolved
@@ -28,9 +28,11 @@ export declare const getRuntimeConfig: (config: CloudHSMV2ClientConfig) => {
28
28
  | import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
29
29
  | undefined
30
30
  ) => Promise<import("@smithy/types").UserAgent>;
31
- credentialDefaultProvider: (
32
- input: any
33
- ) => import("@smithy/types").AwsCredentialIdentityProvider;
31
+ credentialDefaultProvider:
32
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
33
+ | ((
34
+ _: unknown
35
+ ) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
34
36
  maxAttempts: number | import("@smithy/types").Provider<number>;
35
37
  retryMode: string | import("@smithy/types").Provider<string>;
36
38
  logger: import("@smithy/types").Logger;
@@ -50,11 +52,21 @@ export declare const getRuntimeConfig: (config: CloudHSMV2ClientConfig) => {
50
52
  | import("@smithy/types").RetryStrategyV2
51
53
  | undefined;
52
54
  endpoint?:
53
- | string
54
- | import("@smithy/types").Endpoint
55
- | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
56
- | import("@smithy/types").EndpointV2
57
- | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
55
+ | ((
56
+ | string
57
+ | import("@smithy/types").Endpoint
58
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
59
+ | import("@smithy/types").EndpointV2
60
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
61
+ ) &
62
+ (
63
+ | string
64
+ | import("@smithy/types").Provider<string>
65
+ | import("@smithy/types").Endpoint
66
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
67
+ | import("@smithy/types").EndpointV2
68
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
69
+ ))
58
70
  | undefined;
59
71
  endpointProvider: (
60
72
  endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
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.721.0",
4
+ "version": "3.724.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,56 +20,56 @@
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.721.0",
24
- "@aws-sdk/client-sts": "3.721.0",
25
- "@aws-sdk/core": "3.716.0",
26
- "@aws-sdk/credential-provider-node": "3.721.0",
27
- "@aws-sdk/middleware-host-header": "3.714.0",
28
- "@aws-sdk/middleware-logger": "3.714.0",
29
- "@aws-sdk/middleware-recursion-detection": "3.714.0",
30
- "@aws-sdk/middleware-user-agent": "3.721.0",
31
- "@aws-sdk/region-config-resolver": "3.714.0",
32
- "@aws-sdk/types": "3.714.0",
33
- "@aws-sdk/util-endpoints": "3.714.0",
34
- "@aws-sdk/util-user-agent-browser": "3.714.0",
35
- "@aws-sdk/util-user-agent-node": "3.721.0",
36
- "@smithy/config-resolver": "^3.0.13",
37
- "@smithy/core": "^2.5.5",
38
- "@smithy/fetch-http-handler": "^4.1.2",
39
- "@smithy/hash-node": "^3.0.11",
40
- "@smithy/invalid-dependency": "^3.0.11",
41
- "@smithy/middleware-content-length": "^3.0.13",
42
- "@smithy/middleware-endpoint": "^3.2.6",
43
- "@smithy/middleware-retry": "^3.0.31",
44
- "@smithy/middleware-serde": "^3.0.11",
45
- "@smithy/middleware-stack": "^3.0.11",
46
- "@smithy/node-config-provider": "^3.1.12",
47
- "@smithy/node-http-handler": "^3.3.2",
48
- "@smithy/protocol-http": "^4.1.8",
49
- "@smithy/smithy-client": "^3.5.1",
50
- "@smithy/types": "^3.7.2",
51
- "@smithy/url-parser": "^3.0.11",
52
- "@smithy/util-base64": "^3.0.0",
53
- "@smithy/util-body-length-browser": "^3.0.0",
54
- "@smithy/util-body-length-node": "^3.0.0",
55
- "@smithy/util-defaults-mode-browser": "^3.0.31",
56
- "@smithy/util-defaults-mode-node": "^3.0.31",
57
- "@smithy/util-endpoints": "^2.1.7",
58
- "@smithy/util-middleware": "^3.0.11",
59
- "@smithy/util-retry": "^3.0.11",
60
- "@smithy/util-utf8": "^3.0.0",
23
+ "@aws-sdk/client-sso-oidc": "3.723.0",
24
+ "@aws-sdk/client-sts": "3.723.0",
25
+ "@aws-sdk/core": "3.723.0",
26
+ "@aws-sdk/credential-provider-node": "3.723.0",
27
+ "@aws-sdk/middleware-host-header": "3.723.0",
28
+ "@aws-sdk/middleware-logger": "3.723.0",
29
+ "@aws-sdk/middleware-recursion-detection": "3.723.0",
30
+ "@aws-sdk/middleware-user-agent": "3.723.0",
31
+ "@aws-sdk/region-config-resolver": "3.723.0",
32
+ "@aws-sdk/types": "3.723.0",
33
+ "@aws-sdk/util-endpoints": "3.723.0",
34
+ "@aws-sdk/util-user-agent-browser": "3.723.0",
35
+ "@aws-sdk/util-user-agent-node": "3.723.0",
36
+ "@smithy/config-resolver": "^4.0.0",
37
+ "@smithy/core": "^3.0.0",
38
+ "@smithy/fetch-http-handler": "^5.0.0",
39
+ "@smithy/hash-node": "^4.0.0",
40
+ "@smithy/invalid-dependency": "^4.0.0",
41
+ "@smithy/middleware-content-length": "^4.0.0",
42
+ "@smithy/middleware-endpoint": "^4.0.0",
43
+ "@smithy/middleware-retry": "^4.0.0",
44
+ "@smithy/middleware-serde": "^4.0.0",
45
+ "@smithy/middleware-stack": "^4.0.0",
46
+ "@smithy/node-config-provider": "^4.0.0",
47
+ "@smithy/node-http-handler": "^4.0.0",
48
+ "@smithy/protocol-http": "^5.0.0",
49
+ "@smithy/smithy-client": "^4.0.0",
50
+ "@smithy/types": "^4.0.0",
51
+ "@smithy/url-parser": "^4.0.0",
52
+ "@smithy/util-base64": "^4.0.0",
53
+ "@smithy/util-body-length-browser": "^4.0.0",
54
+ "@smithy/util-body-length-node": "^4.0.0",
55
+ "@smithy/util-defaults-mode-browser": "^4.0.0",
56
+ "@smithy/util-defaults-mode-node": "^4.0.0",
57
+ "@smithy/util-endpoints": "^3.0.0",
58
+ "@smithy/util-middleware": "^4.0.0",
59
+ "@smithy/util-retry": "^4.0.0",
60
+ "@smithy/util-utf8": "^4.0.0",
61
61
  "tslib": "^2.6.2"
62
62
  },
63
63
  "devDependencies": {
64
- "@tsconfig/node16": "16.1.3",
65
- "@types/node": "^16.18.96",
64
+ "@tsconfig/node18": "18.2.4",
65
+ "@types/node": "^18.19.69",
66
66
  "concurrently": "7.0.0",
67
67
  "downlevel-dts": "0.10.1",
68
68
  "rimraf": "3.0.2",
69
- "typescript": "~4.9.5"
69
+ "typescript": "~5.2.2"
70
70
  },
71
71
  "engines": {
72
- "node": ">=16.0.0"
72
+ "node": ">=18.0.0"
73
73
  },
74
74
  "typesVersions": {
75
75
  "<4.0": {