import * as core from "@terrascript/core"; export interface ClusterCertificatesArgs extends core.SchemaArgs { awsHardwareCertificate: string | core.StringOut; clusterCertificate: string | core.StringOut; clusterCsr: string | core.StringOut; hsmCertificate: string | core.StringOut; manufacturerHardwareCertificate: string | core.StringOut; } export class ClusterCertificates extends core.Schema { @core.attr(String, { computed: true }) public awsHardwareCertificate!: string | core.StringOut; @core.attr(String, { computed: true }) public clusterCertificate!: string | core.StringOut; @core.attr(String, { computed: true }) public clusterCsr!: string | core.StringOut; @core.attr(String, { computed: true }) public hsmCertificate!: string | core.StringOut; @core.attr(String, { computed: true }) public manufacturerHardwareCertificate!: string | core.StringOut; } export interface V2ClusterArgs extends core.ResourceArgs { /** * (Required) The type of HSM module in the cluster. Currently, only `hsm1.medium` is supported. */ hsmType: string | core.StringOut; /** * (Optional) The id of Cloud HSM v2 cluster backup to be restored. */ sourceBackupIdentifier?: string | core.StringOut; /** * (Required) The IDs of subnets in which cluster will operate. */ subnetIds: core.Array | core.ArrayOut; /** * (Optional) A map of tags to assign to the resource. If configured with a provider [`default_tags` co * nfiguration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-co * nfiguration-block) present, tags with matching keys will overwrite those defined at the provider-lev * el. */ tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ tagsAll?: core.Map | core.MapOut; } export class V2Cluster extends core.Resource { /** * The list of cluster certificates. */ @core.attr(ClusterCertificates, { computed: true, kind: "array" }) public clusterCertificates!: | core.Array | core.ArrayOut; /** * The id of the CloudHSM cluster. */ @core.attr(String, { computed: true }) public clusterId!: string | core.StringOut; /** * The state of the CloudHSM cluster. */ @core.attr(String, { computed: true }) public clusterState!: string | core.StringOut; /** * (Required) The type of HSM module in the cluster. Currently, only `hsm1.medium` is supported. */ @core.attr(String) public hsmType!: string | core.StringOut; @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * The ID of the security group associated with the CloudHSM cluster. */ @core.attr(String, { computed: true }) public securityGroupId!: string | core.StringOut; /** * (Optional) The id of Cloud HSM v2 cluster backup to be restored. */ @core.attr(String) public sourceBackupIdentifier?: string | core.StringOut; /** * (Required) The IDs of subnets in which cluster will operate. */ @core.attr(String, { kind: "array" }) public subnetIds!: core.Array | core.ArrayOut; /** * (Optional) A map of tags to assign to the resource. If configured with a provider [`default_tags` co * nfiguration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-co * nfiguration-block) present, tags with matching keys will overwrite those defined at the provider-lev * el. */ @core.attr(String, { kind: "map" }) public tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ @core.attr(String, { computed: true, kind: "map" }) public tagsAll?: core.Map | core.MapOut; /** * The id of the VPC that the CloudHSM cluster resides in. */ @core.attr(String, { computed: true }) public vpcId!: string | core.StringOut; constructor(name: string, args?: V2ClusterArgs) { super(name, "aws_cloudhsm_v2_cluster", args); } public override getNamespace(): string { return "aws_cloudhsm"; } }