import * as core from "@terrascript/core"; export interface DxHostedPrivateVirtualInterfaceArgs 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; /** * (Optional) The maximum transmission unit (MTU) is the size, in bytes, of the largest permissible pac * ket that can be passed over the connection. The MTU of a virtual private interface can be either `15 * 00` or `9001` (jumbo frames). Default is `1500`. */ mtu?: number | core.NumberOut; /** * (Required) The name for the virtual interface. */ name: string | core.StringOut; /** * (Required) The AWS account that will own the new virtual interface. */ ownerAccountId: string | core.StringOut; /** * (Required) The VLAN ID. */ vlan: number | core.NumberOut; } export class DxHostedPrivateVirtualInterface 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; /** * Indicates whether jumbo frames (9001 MTU) are supported. */ @core.attr(Boolean, { computed: true }) public jumboFrameCapable!: boolean | core.BooleanOut; /** * (Optional) The maximum transmission unit (MTU) is the size, in bytes, of the largest permissible pac * ket that can be passed over the connection. The MTU of a virtual private interface can be either `15 * 00` or `9001` (jumbo frames). Default is `1500`. */ @core.attr(Number) public mtu?: number | core.NumberOut; /** * (Required) The name for the virtual interface. */ @core.attr(String) public name!: string | core.StringOut; /** * (Required) The AWS account that will own the new virtual interface. */ @core.attr(String) public ownerAccountId!: string | core.StringOut; /** * (Required) The VLAN ID. */ @core.attr(Number) public vlan!: number | core.NumberOut; constructor(name: string, args?: DxHostedPrivateVirtualInterfaceArgs) { super(name, "aws_dx_hosted_private_virtual_interface", args); } public override getNamespace(): string { return "aws_direct_connect"; } }