import * as core from "@terrascript/core"; export interface V2HsmArgs extends core.ResourceArgs { /** * (Optional) The IDs of AZ in which HSM module will be located. Do not use together with subnet_id. */ availabilityZone?: string | core.StringOut; /** * (Required) The ID of Cloud HSM v2 cluster to which HSM will be added. */ clusterId: string | core.StringOut; /** * (Optional) The IP address of HSM module. Must be within the CIDR of selected subnet. */ ipAddress?: string | core.StringOut; /** * (Optional) The ID of subnet in which HSM module will be located. */ subnetId?: string | core.StringOut; } export class V2Hsm extends core.Resource { /** * (Optional) The IDs of AZ in which HSM module will be located. Do not use together with subnet_id. */ @core.attr(String, { computed: true }) public availabilityZone?: string | core.StringOut; /** * (Required) The ID of Cloud HSM v2 cluster to which HSM will be added. */ @core.attr(String) public clusterId!: string | core.StringOut; /** * The id of the ENI interface allocated for HSM module. */ @core.attr(String, { computed: true }) public hsmEniId!: string | core.StringOut; /** * The id of the HSM module. */ @core.attr(String, { computed: true }) public hsmId!: string | core.StringOut; /** * The state of the HSM module. */ @core.attr(String, { computed: true }) public hsmState!: string | core.StringOut; @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Optional) The IP address of HSM module. Must be within the CIDR of selected subnet. */ @core.attr(String, { computed: true }) public ipAddress?: string | core.StringOut; /** * (Optional) The ID of subnet in which HSM module will be located. */ @core.attr(String, { computed: true }) public subnetId?: string | core.StringOut; constructor(name: string, args?: V2HsmArgs) { super(name, "aws_cloudhsm_v2_hsm", args); } public override getNamespace(): string { return "aws_cloudhsm"; } }