import * as core from "@terrascript/core"; export interface DxBgpPeerArgs 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. */ 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; /** * (Optional) The IPv4 CIDR destination address to which Amazon should send traffic. */ customerAddress?: string | core.StringOut; /** * (Required) The ID of the Direct Connect virtual interface on which to create the BGP peer. */ virtualInterfaceId: string | core.StringOut; } export class DxBgpPeer 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. */ @core.attr(String, { computed: true }) public amazonAddress?: string | core.StringOut; /** * The Direct Connect endpoint on which the BGP peer 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; /** * The ID of the BGP peer. */ @core.attr(String, { computed: true }) public bgpPeerId!: string | core.StringOut; /** * The Up/Down state of the BGP peer. */ @core.attr(String, { computed: true }) public bgpStatus!: string | core.StringOut; /** * (Optional) The IPv4 CIDR destination address to which Amazon should send traffic. */ @core.attr(String, { computed: true }) public customerAddress?: string | core.StringOut; /** * The ID of the BGP peer resource. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) The ID of the Direct Connect virtual interface on which to create the BGP peer. */ @core.attr(String) public virtualInterfaceId!: string | core.StringOut; constructor(name: string, args?: DxBgpPeerArgs) { super(name, "aws_dx_bgp_peer", args); } public override getNamespace(): string { return "aws_direct_connect"; } }