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

export interface FilterArgs extends core.SchemaArgs {
  name: string | core.StringOut;

  values: core.Array<string> | core.ArrayOut<core.StringOut>;
}

export class Filter extends core.Schema<FilterArgs> {
  @core.attr(String)
  public name!: string | core.StringOut;

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

export interface DsNatGatewayArgs {
  filter?: core.Array<Filter> | core.ArrayOut<Filter>;

  id?: string | core.StringOut;

  state?: string | core.StringOut;

  subnetId?: string | core.StringOut;

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

  vpcId?: string | core.StringOut;
}

export class DsNatGateway extends core.Data<DsNatGatewayArgs> {
  @core.attr(String, { computed: true })
  public allocationId!: string | core.StringOut;

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

  @core.attr(Filter, { kind: "array" })
  public filter?: core.Array<Filter> | core.ArrayOut<Filter>;

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

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

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

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

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

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

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

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

  constructor(name: string, args?: DsNatGatewayArgs) {
    super(name, "aws_nat_gateway", args);
  }

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