diff --git a/clients/client-cloudhsm-v2/src/commands/CreateClusterCommand.ts b/clients/client-cloudhsm-v2/src/commands/CreateClusterCommand.ts index 54cc9cf96f1b..176290cad29d 100644 --- a/clients/client-cloudhsm-v2/src/commands/CreateClusterCommand.ts +++ b/clients/client-cloudhsm-v2/src/commands/CreateClusterCommand.ts @@ -51,6 +51,7 @@ export interface CreateClusterCommandOutput extends CreateClusterResponse, __Met * Value: "STRING_VALUE", // required * }, * ], + * Mode: "FIPS" || "NON_FIPS", * }; * const command = new CreateClusterCommand(input); * const response = await client.send(command); @@ -98,6 +99,7 @@ export interface CreateClusterCommandOutput extends CreateClusterResponse, __Met * // Value: "STRING_VALUE", // required * // }, * // ], + * // Mode: "FIPS" || "NON_FIPS", * // }, * // }; * diff --git a/clients/client-cloudhsm-v2/src/commands/DeleteBackupCommand.ts b/clients/client-cloudhsm-v2/src/commands/DeleteBackupCommand.ts index 2752a4d054cb..dcae224af50e 100644 --- a/clients/client-cloudhsm-v2/src/commands/DeleteBackupCommand.ts +++ b/clients/client-cloudhsm-v2/src/commands/DeleteBackupCommand.ts @@ -60,6 +60,8 @@ export interface DeleteBackupCommandOutput extends DeleteBackupResponse, __Metad * // Value: "STRING_VALUE", // required * // }, * // ], + * // HsmType: "STRING_VALUE", + * // Mode: "FIPS" || "NON_FIPS", * // }, * // }; * diff --git a/clients/client-cloudhsm-v2/src/commands/DeleteClusterCommand.ts b/clients/client-cloudhsm-v2/src/commands/DeleteClusterCommand.ts index 39f29e199eca..12515d0bdc04 100644 --- a/clients/client-cloudhsm-v2/src/commands/DeleteClusterCommand.ts +++ b/clients/client-cloudhsm-v2/src/commands/DeleteClusterCommand.ts @@ -85,6 +85,7 @@ export interface DeleteClusterCommandOutput extends DeleteClusterResponse, __Met * // Value: "STRING_VALUE", // required * // }, * // ], + * // Mode: "FIPS" || "NON_FIPS", * // }, * // }; * diff --git a/clients/client-cloudhsm-v2/src/commands/DescribeBackupsCommand.ts b/clients/client-cloudhsm-v2/src/commands/DescribeBackupsCommand.ts index fee12076bd6b..8e2e4e9b7866 100644 --- a/clients/client-cloudhsm-v2/src/commands/DescribeBackupsCommand.ts +++ b/clients/client-cloudhsm-v2/src/commands/DescribeBackupsCommand.ts @@ -71,6 +71,8 @@ export interface DescribeBackupsCommandOutput extends DescribeBackupsResponse, _ * // Value: "STRING_VALUE", // required * // }, * // ], + * // HsmType: "STRING_VALUE", + * // Mode: "FIPS" || "NON_FIPS", * // }, * // ], * // NextToken: "STRING_VALUE", diff --git a/clients/client-cloudhsm-v2/src/commands/DescribeClustersCommand.ts b/clients/client-cloudhsm-v2/src/commands/DescribeClustersCommand.ts index b4edcd0a4537..b6e134b4f267 100644 --- a/clients/client-cloudhsm-v2/src/commands/DescribeClustersCommand.ts +++ b/clients/client-cloudhsm-v2/src/commands/DescribeClustersCommand.ts @@ -96,6 +96,7 @@ export interface DescribeClustersCommandOutput extends DescribeClustersResponse, * // Value: "STRING_VALUE", // required * // }, * // ], + * // Mode: "FIPS" || "NON_FIPS", * // }, * // ], * // NextToken: "STRING_VALUE", diff --git a/clients/client-cloudhsm-v2/src/commands/ModifyBackupAttributesCommand.ts b/clients/client-cloudhsm-v2/src/commands/ModifyBackupAttributesCommand.ts index 12f259366b3f..007850c37076 100644 --- a/clients/client-cloudhsm-v2/src/commands/ModifyBackupAttributesCommand.ts +++ b/clients/client-cloudhsm-v2/src/commands/ModifyBackupAttributesCommand.ts @@ -59,6 +59,8 @@ export interface ModifyBackupAttributesCommandOutput extends ModifyBackupAttribu * // Value: "STRING_VALUE", // required * // }, * // ], + * // HsmType: "STRING_VALUE", + * // Mode: "FIPS" || "NON_FIPS", * // }, * // }; * diff --git a/clients/client-cloudhsm-v2/src/commands/ModifyClusterCommand.ts b/clients/client-cloudhsm-v2/src/commands/ModifyClusterCommand.ts index 8a7cf94d7f26..3594182e684e 100644 --- a/clients/client-cloudhsm-v2/src/commands/ModifyClusterCommand.ts +++ b/clients/client-cloudhsm-v2/src/commands/ModifyClusterCommand.ts @@ -88,6 +88,7 @@ export interface ModifyClusterCommandOutput extends ModifyClusterResponse, __Met * // Value: "STRING_VALUE", // required * // }, * // ], + * // Mode: "FIPS" || "NON_FIPS", * // }, * // }; * diff --git a/clients/client-cloudhsm-v2/src/commands/RestoreBackupCommand.ts b/clients/client-cloudhsm-v2/src/commands/RestoreBackupCommand.ts index 68465fd9354e..4d811eb5b14c 100644 --- a/clients/client-cloudhsm-v2/src/commands/RestoreBackupCommand.ts +++ b/clients/client-cloudhsm-v2/src/commands/RestoreBackupCommand.ts @@ -60,6 +60,8 @@ export interface RestoreBackupCommandOutput extends RestoreBackupResponse, __Met * // Value: "STRING_VALUE", // required * // }, * // ], + * // HsmType: "STRING_VALUE", + * // Mode: "FIPS" || "NON_FIPS", * // }, * // }; * diff --git a/clients/client-cloudhsm-v2/src/models/models_0.ts b/clients/client-cloudhsm-v2/src/models/models_0.ts index 2d5d3366c5e6..ce48aa18658b 100644 --- a/clients/client-cloudhsm-v2/src/models/models_0.ts +++ b/clients/client-cloudhsm-v2/src/models/models_0.ts @@ -19,6 +19,20 @@ export const BackupState = { */ export type BackupState = (typeof BackupState)[keyof typeof BackupState]; +/** + * @public + * @enum + */ +export const ClusterMode = { + FIPS: "FIPS", + NON_FIPS: "NON_FIPS", +} as const; + +/** + * @public + */ +export type ClusterMode = (typeof ClusterMode)[keyof typeof ClusterMode]; + /** *

Contains a tag. A tag is a key-value pair.

* @public @@ -116,6 +130,18 @@ export interface Backup { * @public */ TagList?: Tag[]; + + /** + *

The HSM type of the cluster that was backed up.

+ * @public + */ + HsmType?: string; + + /** + *

The mode of the cluster that was backed up.

+ * @public + */ + Mode?: ClusterMode; } /** @@ -378,8 +404,8 @@ export interface CreateClusterRequest { BackupRetentionPolicy?: BackupRetentionPolicy; /** - *

The type of HSM to use in the cluster. Currently the only allowed value is - * hsm1.medium.

+ *

The type of HSM to use in the cluster. The allowed values are + * hsm1.medium and hsm2m.medium.

* @public */ HsmType: string | undefined; @@ -412,6 +438,13 @@ export interface CreateClusterRequest { * @public */ TagList?: Tag[]; + + /** + *

The mode to use in the cluster. The allowed values are + * FIPS and NON_FIPS.

+ * @public + */ + Mode?: ClusterMode; } /** @@ -641,6 +674,12 @@ export interface Cluster { * @public */ TagList?: Tag[]; + + /** + *

The mode of the cluster.

+ * @public + */ + Mode?: ClusterMode; } /** diff --git a/clients/client-cloudhsm-v2/src/protocols/Aws_json1_1.ts b/clients/client-cloudhsm-v2/src/protocols/Aws_json1_1.ts index a8d5554040e7..62de74f28314 100644 --- a/clients/client-cloudhsm-v2/src/protocols/Aws_json1_1.ts +++ b/clients/client-cloudhsm-v2/src/protocols/Aws_json1_1.ts @@ -761,6 +761,8 @@ const de_Backup = (output: any, context: __SerdeContext): Backup => { CopyTimestamp: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), CreateTimestamp: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), DeleteTimestamp: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), + HsmType: __expectString, + Mode: __expectString, NeverExpires: __expectBoolean, SourceBackup: __expectString, SourceCluster: __expectString, @@ -809,6 +811,7 @@ const de_Cluster = (output: any, context: __SerdeContext): Cluster => { CreateTimestamp: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), HsmType: __expectString, Hsms: _json, + Mode: __expectString, PreCoPassword: __expectString, SecurityGroup: __expectString, SourceBackupId: __expectString, diff --git a/codegen/sdk-codegen/aws-models/cloudhsm-v2.json b/codegen/sdk-codegen/aws-models/cloudhsm-v2.json index be35dc32b5a9..ad61cedc52b1 100644 --- a/codegen/sdk-codegen/aws-models/cloudhsm-v2.json +++ b/codegen/sdk-codegen/aws-models/cloudhsm-v2.json @@ -98,6 +98,18 @@ "traits": { "smithy.api#documentation": "

The list of tags for the backup.

" } + }, + "HsmType": { + "target": "com.amazonaws.cloudhsmv2#HsmType", + "traits": { + "smithy.api#documentation": "

The HSM type of the cluster that was backed up.

" + } + }, + "Mode": { + "target": "com.amazonaws.cloudhsmv2#ClusterMode", + "traits": { + "smithy.api#documentation": "

The mode of the cluster that was backed up.

" + } } }, "traits": { @@ -1232,7 +1244,7 @@ "traits": { "smithy.api#length": { "min": 0, - "max": 5000 + "max": 20000 }, "smithy.api#pattern": "^[a-zA-Z0-9+-/=\\s]*$" } @@ -1439,6 +1451,12 @@ "traits": { "smithy.api#documentation": "

The list of tags for the cluster.

" } + }, + "Mode": { + "target": "com.amazonaws.cloudhsmv2#ClusterMode", + "traits": { + "smithy.api#documentation": "

The mode of the cluster.

" + } } }, "traits": { @@ -1451,6 +1469,23 @@ "smithy.api#pattern": "^cluster-[2-7a-zA-Z]{11,16}$" } }, + "com.amazonaws.cloudhsmv2#ClusterMode": { + "type": "enum", + "members": { + "FIPS": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "FIPS" + } + }, + "NON_FIPS": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "NON_FIPS" + } + } + } + }, "com.amazonaws.cloudhsmv2#ClusterState": { "type": "enum", "members": { @@ -1643,7 +1678,7 @@ "HsmType": { "target": "com.amazonaws.cloudhsmv2#HsmType", "traits": { - "smithy.api#documentation": "

The type of HSM to use in the cluster. Currently the only allowed value is\n hsm1.medium.

", + "smithy.api#documentation": "

The type of HSM to use in the cluster. The allowed values are\n hsm1.medium and hsm2m.medium.

", "smithy.api#required": {} } }, @@ -1665,6 +1700,12 @@ "traits": { "smithy.api#documentation": "

Tags to apply to the CloudHSM cluster during creation.

" } + }, + "Mode": { + "target": "com.amazonaws.cloudhsmv2#ClusterMode", + "traits": { + "smithy.api#documentation": "

The mode to use in the cluster. The allowed values are\n FIPS and NON_FIPS.

" + } } }, "traits": { @@ -2186,6 +2227,12 @@ }, "value": { "target": "com.amazonaws.cloudhsmv2#Strings" + }, + "traits": { + "smithy.api#length": { + "min": 0, + "max": 30 + } } }, "com.amazonaws.cloudhsmv2#Hsm": { @@ -2289,7 +2336,11 @@ "com.amazonaws.cloudhsmv2#HsmType": { "type": "string", "traits": { - "smithy.api#pattern": "^(hsm1\\.medium)$" + "smithy.api#length": { + "min": 0, + "max": 32 + }, + "smithy.api#pattern": "^((p|)hsm[0-9][a-z.]*\\.[a-zA-Z]+)$" } }, "com.amazonaws.cloudhsmv2#Hsms": {