import * as core from "@terrascript/core";

export interface V2HsmArgs extends core.ResourceArgs {
  availabilityZone?: string | core.StringOut;

  clusterId: string | core.StringOut;

  ipAddress?: string | core.StringOut;

  subnetId?: string | core.StringOut;
}

export class V2Hsm extends core.Resource<V2HsmArgs> {
  @core.attr(String, { computed: true })
  public availabilityZone?: string | core.StringOut;

  @core.attr(String)
  public clusterId!: string | core.StringOut;

  @core.attr(String, { computed: true })
  public hsmEniId!: string | core.StringOut;

  @core.attr(String, { computed: true })
  public hsmId!: string | core.StringOut;

  @core.attr(String, { computed: true })
  public hsmState!: string | core.StringOut;

  @core.attr(String, { computed: true })
  public id!: string | core.StringOut;

  @core.attr(String, { computed: true })
  public ipAddress?: string | core.StringOut;

  @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";
  }
}
