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

export interface HealthCheckArgs extends core.ResourceArgs {
  childHealthThreshold?: number | core.NumberOut;

  childHealthchecks?: core.Array<string> | core.ArrayOut<core.StringOut>;

  cloudwatchAlarmName?: string | core.StringOut;

  cloudwatchAlarmRegion?: string | core.StringOut;

  disabled?: boolean | core.BooleanOut;

  enableSni?: boolean | core.BooleanOut;

  failureThreshold?: number | core.NumberOut;

  fqdn?: string | core.StringOut;

  insufficientDataHealthStatus?: string | core.StringOut;

  invertHealthcheck?: boolean | core.BooleanOut;

  ipAddress?: string | core.StringOut;

  measureLatency?: boolean | core.BooleanOut;

  port?: number | core.NumberOut;

  referenceName?: string | core.StringOut;

  regions?: core.Array<string> | core.ArrayOut<core.StringOut>;

  requestInterval?: number | core.NumberOut;

  resourcePath?: string | core.StringOut;

  routingControlArn?: string | core.StringOut;

  searchString?: string | core.StringOut;

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

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

  type: string | core.StringOut;
}

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

  @core.attr(Number)
  public childHealthThreshold?: number | core.NumberOut;

  @core.attr(String, { kind: "array" })
  public childHealthchecks?: core.Array<string> | core.ArrayOut<core.StringOut>;

  @core.attr(String)
  public cloudwatchAlarmName?: string | core.StringOut;

  @core.attr(String)
  public cloudwatchAlarmRegion?: string | core.StringOut;

  @core.attr(Boolean)
  public disabled?: boolean | core.BooleanOut;

  @core.attr(Boolean, { computed: true })
  public enableSni?: boolean | core.BooleanOut;

  @core.attr(Number, { computed: true })
  public failureThreshold?: number | core.NumberOut;

  @core.attr(String)
  public fqdn?: string | core.StringOut;

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

  @core.attr(String)
  public insufficientDataHealthStatus?: string | core.StringOut;

  @core.attr(Boolean)
  public invertHealthcheck?: boolean | core.BooleanOut;

  @core.attr(String)
  public ipAddress?: string | core.StringOut;

  @core.attr(Boolean)
  public measureLatency?: boolean | core.BooleanOut;

  @core.attr(Number)
  public port?: number | core.NumberOut;

  @core.attr(String)
  public referenceName?: string | core.StringOut;

  @core.attr(String, { kind: "array" })
  public regions?: core.Array<string> | core.ArrayOut<core.StringOut>;

  @core.attr(Number)
  public requestInterval?: number | core.NumberOut;

  @core.attr(String)
  public resourcePath?: string | core.StringOut;

  @core.attr(String)
  public routingControlArn?: string | core.StringOut;

  @core.attr(String)
  public searchString?: 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>;

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

  constructor(name: string, args?: HealthCheckArgs) {
    super(name, "aws_route53_health_check", args);
  }

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