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 CidrBlockSetArgs extends core.SchemaArgs {
  cidrBlock: string | core.StringOut;
}

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

export interface PeerCidrBlockSetArgs extends core.SchemaArgs {
  cidrBlock: string | core.StringOut;
}

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

export interface DsPeeringConnectionArgs {
  cidrBlock?: string | core.StringOut;

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

  id?: string | core.StringOut;

  ownerId?: string | core.StringOut;

  peerCidrBlock?: string | core.StringOut;

  peerOwnerId?: string | core.StringOut;

  peerRegion?: string | core.StringOut;

  peerVpcId?: string | core.StringOut;

  region?: string | core.StringOut;

  status?: string | core.StringOut;

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

  vpcId?: string | core.StringOut;
}

export class DsPeeringConnection extends core.Data<DsPeeringConnectionArgs> {
  @core.attr(Boolean, { computed: true, kind: "map" })
  public accepter!: core.Map<string, boolean> | core.MapOut<core.BooleanOut>;

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

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

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

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

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

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

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

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

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

  @core.attr(Boolean, { computed: true, kind: "map" })
  public requester!: core.Map<string, boolean> | core.MapOut<core.BooleanOut>;

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

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