import * as core from "@terrascript/core"; export interface DxPublicVirtualInterfaceArgs extends core.ResourceArgs { /** * (Required) The address family for the BGP peer. `ipv4 ` or `ipv6`. */ addressFamily: string | core.StringOut; /** * (Optional) The IPv4 CIDR address to use to send traffic to Amazon. Required for IPv4 BGP peers. */ amazonAddress?: string | core.StringOut; /** * (Required) The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration. */ bgpAsn: number | core.NumberOut; /** * (Optional) The authentication key for BGP configuration. */ bgpAuthKey?: string | core.StringOut; /** * (Required) The ID of the Direct Connect connection (or LAG) on which to create the virtual interface * . */ connectionId: string | core.StringOut; /** * (Optional) The IPv4 CIDR destination address to which Amazon should send traffic. Required for IPv4 * BGP peers. */ customerAddress?: string | core.StringOut; /** * (Required) The name for the virtual interface. */ name: string | core.StringOut; /** * (Required) A list of routes to be advertised to the AWS network in this region. */ routeFilterPrefixes: core.Array | core.ArrayOut; /** * (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 VLAN ID. */ vlan: number | core.NumberOut; } export class DxPublicVirtualInterface extends core.Resource { /** * (Required) The address family for the BGP peer. `ipv4 ` or `ipv6`. */ @core.attr(String) public addressFamily!: string | core.StringOut; /** * (Optional) The IPv4 CIDR address to use to send traffic to Amazon. Required for IPv4 BGP peers. */ @core.attr(String, { computed: true }) public amazonAddress?: string | core.StringOut; @core.attr(String, { computed: true }) public amazonSideAsn!: string | core.StringOut; /** * The ARN of the virtual interface. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * The Direct Connect endpoint on which the virtual interface terminates. */ @core.attr(String, { computed: true }) public awsDevice!: string | core.StringOut; /** * (Required) The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration. */ @core.attr(Number) public bgpAsn!: number | core.NumberOut; /** * (Optional) The authentication key for BGP configuration. */ @core.attr(String, { computed: true }) public bgpAuthKey?: string | core.StringOut; /** * (Required) The ID of the Direct Connect connection (or LAG) on which to create the virtual interface * . */ @core.attr(String) public connectionId!: string | core.StringOut; /** * (Optional) The IPv4 CIDR destination address to which Amazon should send traffic. Required for IPv4 * BGP peers. */ @core.attr(String, { computed: true }) public customerAddress?: string | core.StringOut; /** * The ID of the virtual interface. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) The name for the virtual interface. */ @core.attr(String) public name!: string | core.StringOut; /** * (Required) A list of routes to be advertised to the AWS network in this region. */ @core.attr(String, { kind: "array" }) public routeFilterPrefixes!: | core.Array | core.ArrayOut; /** * (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 VLAN ID. */ @core.attr(Number) public vlan!: number | core.NumberOut; constructor(name: string, args?: DxPublicVirtualInterfaceArgs) { super(name, "aws_dx_public_virtual_interface", args); } public override getNamespace(): string { return "aws_direct_connect"; } }