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 DsSubnetArgs {
  availabilityZone?: string | core.StringOut;

  availabilityZoneId?: string | core.StringOut;

  cidrBlock?: string | core.StringOut;

  defaultForAz?: boolean | core.BooleanOut;

  filter?: core.Array<Filter> | core.ArrayOut<Filter>;

  id?: string | core.StringOut;

  ipv6CidrBlock?: string | core.StringOut;

  state?: string | core.StringOut;

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

  vpcId?: string | core.StringOut;
}

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

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

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

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

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

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

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

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

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

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

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

  @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 ipv6CidrBlock?: string | core.StringOut;

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

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

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

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

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

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

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

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

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