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

export interface AccepterArgs extends core.SchemaArgs {
  allowClassicLinkToRemoteVpc?: boolean | core.BooleanOut;

  allowRemoteVpcDnsResolution?: boolean | core.BooleanOut;

  allowVpcToRemoteClassicLink?: boolean | core.BooleanOut;
}

export class Accepter extends core.Schema<AccepterArgs> {
  @core.attr(Boolean)
  public allowClassicLinkToRemoteVpc?: boolean | core.BooleanOut;

  @core.attr(Boolean)
  public allowRemoteVpcDnsResolution?: boolean | core.BooleanOut;

  @core.attr(Boolean)
  public allowVpcToRemoteClassicLink?: boolean | core.BooleanOut;
}

export interface RequesterArgs extends core.SchemaArgs {
  allowClassicLinkToRemoteVpc?: boolean | core.BooleanOut;

  allowRemoteVpcDnsResolution?: boolean | core.BooleanOut;

  allowVpcToRemoteClassicLink?: boolean | core.BooleanOut;
}

export class Requester extends core.Schema<RequesterArgs> {
  @core.attr(Boolean)
  public allowClassicLinkToRemoteVpc?: boolean | core.BooleanOut;

  @core.attr(Boolean)
  public allowRemoteVpcDnsResolution?: boolean | core.BooleanOut;

  @core.attr(Boolean)
  public allowVpcToRemoteClassicLink?: boolean | core.BooleanOut;
}

export interface PeeringConnectionOptionsArgs extends core.ResourceArgs {
  accepter?: Accepter;

  requester?: Requester;

  vpcPeeringConnectionId: string | core.StringOut;
}

export class PeeringConnectionOptions extends core.Resource<PeeringConnectionOptionsArgs> {
  @core.attr(Accepter, { computed: true })
  public accepter?: Accepter;

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

  @core.attr(Requester, { computed: true })
  public requester?: Requester;

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

  constructor(name: string, args?: PeeringConnectionOptionsArgs) {
    super(name, "aws_vpc_peering_connection_options", args);
  }

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