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

export interface CidrBlockAssociationsArgs extends core.SchemaArgs {
  associationId: string | core.StringOut;

  cidrBlock: string | core.StringOut;

  state: string | core.StringOut;
}

export class CidrBlockAssociations extends core.Schema<CidrBlockAssociationsArgs> {
  @core.attr(String, { computed: true })
  public associationId!: string | core.StringOut;

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

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

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

  default?: boolean | core.BooleanOut;

  dhcpOptionsId?: string | core.StringOut;

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

  id?: string | core.StringOut;

  state?: string | core.StringOut;

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

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

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

  @core.attr(CidrBlockAssociations, { computed: true, kind: "array" })
  public cidrBlockAssociations!:
    | core.Array<CidrBlockAssociations>
    | core.ArrayOut<CidrBlockAssociations>;

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

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

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

  @core.attr(Boolean, { computed: true })
  public enableDnsSupport!: 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 instanceTenancy!: string | core.StringOut;

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

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

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

  @core.attr(String, { computed: true })
  public ownerId!: 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>;

  constructor(name: string, args?: DsMainArgs) {
    super(name, "aws_vpc", args);
  }

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