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 PeeringConnectionAccepterArgs extends core.ResourceArgs { /** * A configuration block that describes [VPC Peering Connection] */ accepter?: Accepter; /** * (Optional) Whether or not to accept the peering request. Defaults to `false`. */ autoAccept?: boolean | core.BooleanOut; /** * A configuration block that describes [VPC Peering Connection] */ 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 VPC Peering Connection ID to manage. */ vpcPeeringConnectionId: string | core.StringOut; } export class PeeringConnectionAccepter extends core.Resource { /** * The status of the VPC Peering Connection request. */ @core.attr(String, { computed: true }) public acceptStatus!: string | core.StringOut; /** * A configuration block that describes [VPC Peering Connection] */ @core.attr(Accepter, { computed: true }) public accepter?: Accepter; /** * (Optional) Whether or not to accept the peering request. Defaults to `false`. */ @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; /** * The AWS account ID of the owner of the requester VPC. */ @core.attr(String, { computed: true }) public peerOwnerId!: string | core.StringOut; /** * The region of the accepter VPC. */ @core.attr(String, { computed: true }) public peerRegion!: string | core.StringOut; /** * The ID of the requester VPC. */ @core.attr(String, { computed: true }) public peerVpcId!: string | core.StringOut; /** * A configuration block that describes [VPC Peering Connection] */ @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; /** * The ID of the accepter VPC. */ @core.attr(String, { computed: true }) public vpcId!: string | core.StringOut; /** * (Required) The VPC Peering Connection ID to manage. */ @core.attr(String) public vpcPeeringConnectionId!: string | core.StringOut; constructor(name: string, args?: PeeringConnectionAccepterArgs) { super(name, "aws_vpc_peering_connection_accepter", args); } public override getNamespace(): string { return "aws_vpc"; } }