import * as core from "@terrascript/core"; export interface RequesterArgs extends core.SchemaArgs { allowClassicLinkToRemoteVpc?: boolean | core.BooleanOut; allowRemoteVpcDnsResolution?: boolean | core.BooleanOut; allowVpcToRemoteClassicLink?: boolean | core.BooleanOut; } export class Requester extends core.Schema { @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 AccepterArgs extends core.SchemaArgs { allowClassicLinkToRemoteVpc?: boolean | core.BooleanOut; allowRemoteVpcDnsResolution?: boolean | core.BooleanOut; allowVpcToRemoteClassicLink?: boolean | core.BooleanOut; } export class Accepter extends core.Schema { @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 PeeringConnectionArgs extends core.ResourceArgs { accepter?: Accepter; /** * (Optional) Accept the peering (both VPCs need to be in the same AWS account and region). */ autoAccept?: boolean | core.BooleanOut; /** * (Optional) The AWS account ID of the owner of the peer VPC. */ peerOwnerId?: string | core.StringOut; /** * (Optional) The region of the accepter VPC of the VPC Peering Connection. `auto_accept` must be `fals * e`, */ peerRegion?: string | core.StringOut; /** * (Required) The ID of the VPC with which you are creating the VPC Peering Connection. */ peerVpcId: string | core.StringOut; requester?: Requester; /** * (Optional) A map of tags to assign to the resource. If configured with a provider [`default_tags` co * nfiguration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-co * nfiguration-block) present, tags with matching keys will overwrite those defined at the provider-lev * el. */ tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ tagsAll?: core.Map | core.MapOut; /** * (Required) The ID of the requester VPC. */ vpcId: string | core.StringOut; } export class PeeringConnection extends core.Resource { /** * The status of the VPC Peering Connection request. */ @core.attr(String, { computed: true }) public acceptStatus!: string | core.StringOut; @core.attr(Accepter, { computed: true }) public accepter?: Accepter; /** * (Optional) Accept the peering (both VPCs need to be in the same AWS account and region). */ @core.attr(Boolean) public autoAccept?: boolean | core.BooleanOut; /** * The ID of the VPC Peering Connection. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Optional) The AWS account ID of the owner of the peer VPC. */ @core.attr(String, { computed: true }) public peerOwnerId?: string | core.StringOut; /** * (Optional) The region of the accepter VPC of the VPC Peering Connection. `auto_accept` must be `fals * e`, */ @core.attr(String, { computed: true }) public peerRegion?: string | core.StringOut; /** * (Required) The ID of the VPC with which you are creating the VPC Peering Connection. */ @core.attr(String) public peerVpcId!: string | core.StringOut; @core.attr(Requester, { computed: true }) public requester?: Requester; /** * (Optional) A map of tags to assign to the resource. If configured with a provider [`default_tags` co * nfiguration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-co * nfiguration-block) present, tags with matching keys will overwrite those defined at the provider-lev * el. */ @core.attr(String, { kind: "map" }) public tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ @core.attr(String, { computed: true, kind: "map" }) public tagsAll?: core.Map | core.MapOut; /** * (Required) The ID of the requester VPC. */ @core.attr(String) public vpcId!: string | core.StringOut; constructor(name: string, args?: PeeringConnectionArgs) { super(name, "aws_vpc_peering_connection", args); } public override getNamespace(): string { return "aws_vpc"; } }