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

export interface HostArgs extends core.ResourceArgs {
  autoPlacement?: string | core.StringOut;

  availabilityZone: string | core.StringOut;

  hostRecovery?: string | core.StringOut;

  instanceFamily?: string | core.StringOut;

  instanceType?: string | core.StringOut;

  outpostArn?: string | core.StringOut;

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

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

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

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

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

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

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

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

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

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

  @core.attr(String, { computed: true })
  public ownerId!: 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?: HostArgs) {
    super(name, "aws_ec2_host", args);
  }

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