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

export interface HsmConfigurationArgs extends core.ResourceArgs {
  description: string | core.StringOut;

  hsmConfigurationIdentifier: string | core.StringOut;

  hsmIpAddress: string | core.StringOut;

  hsmPartitionName: string | core.StringOut;

  hsmPartitionPassword: string | core.StringOut;

  hsmServerPublicCertificate: string | core.StringOut;

  tags?: core.Map<string, string> | core.MapOut<core.StringOut>;

  tagsAll?: core.Map<string, string> | core.MapOut<core.StringOut>;
}

export class HsmConfiguration extends core.Resource<HsmConfigurationArgs> {
  @core.attr(String, { computed: true })
  public arn!: string | core.StringOut;

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

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

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

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

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

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

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

  @core.attr(String, { kind: "map" })
  public tags?: core.Map<string, string> | core.MapOut<core.StringOut>;

  @core.attr(String, { computed: true, kind: "map" })
  public tagsAll?: core.Map<string, string> | core.MapOut<core.StringOut>;

  constructor(name: string, args?: HsmConfigurationArgs) {
    super(name, "aws_redshift_hsm_configuration", args);
  }

  public override getNamespace(): string {
    return "aws_redshift";
  }
}
