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 DsV2ClusterArgs { /** * (Required) The id of Cloud HSM v2 cluster. */ clusterId: string | core.StringOut; /** * (Optional) The state of the cluster to be found. */ clusterState?: string | core.StringOut; } export class DsV2Cluster extends core.Data { /** * The list of cluster certificates. */ @core.attr(ClusterCertificates, { computed: true, kind: "array" }) public clusterCertificates!: | core.Array | core.ArrayOut; /** * (Required) The id of Cloud HSM v2 cluster. */ @core.attr(String) public clusterId!: string | core.StringOut; /** * (Optional) The state of the cluster to be found. */ @core.attr(String, { computed: true }) public clusterState?: 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; /** * The IDs of subnets in which cluster operates. */ @core.attr(String, { computed: true, kind: "array" }) public subnetIds!: core.Array | core.ArrayOut; /** * 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?: DsV2ClusterArgs) { super(name, "aws_cloudhsm_v2_cluster", args); } public override getNamespace(): string { return "aws_cloudhsm"; } }