BgpPeer

Provides a Direct Connect BGP peer resource.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var peer = new Aws.DirectConnect.BgpPeer("peer", new Aws.DirectConnect.BgpPeerArgs
        {
            AddressFamily = "ipv6",
            BgpAsn = 65351,
            VirtualInterfaceId = aws_dx_private_virtual_interface.Foo.Id,
        });
    }

}
package main

import (
    "github.com/pulumi/pulumi-aws/sdk/v2/go/aws/directconnect"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := directconnect.NewBgpPeer(ctx, "peer", &directconnect.BgpPeerArgs{
            AddressFamily:      pulumi.String("ipv6"),
            BgpAsn:             pulumi.Int(65351),
            VirtualInterfaceId: pulumi.String(aws_dx_private_virtual_interface.Foo.Id),
        })
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_aws as aws

peer = aws.directconnect.BgpPeer("peer",
    address_family="ipv6",
    bgp_asn=65351,
    virtual_interface_id=aws_dx_private_virtual_interface["foo"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const peer = new aws.directconnect.BgpPeer("peer", {
    addressFamily: "ipv6",
    bgpAsn: 65351,
    virtualInterfaceId: aws_dx_private_virtual_interface_foo.id,
});

Create a BgpPeer Resource

new BgpPeer(name: string, args: BgpPeerArgs, opts?: CustomResourceOptions);
def BgpPeer(resource_name, opts=None, address_family=None, amazon_address=None, bgp_asn=None, bgp_auth_key=None, customer_address=None, virtual_interface_id=None, __props__=None);
func NewBgpPeer(ctx *Context, name string, args BgpPeerArgs, opts ...ResourceOption) (*BgpPeer, error)
public BgpPeer(string name, BgpPeerArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args BgpPeerArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args BgpPeerArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args BgpPeerArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

BgpPeer Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The BgpPeer resource accepts the following input properties:

AddressFamily string

The address family for the BGP peer. ipv4 or ipv6.

BgpAsn int

The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.

VirtualInterfaceId string

The ID of the Direct Connect virtual interface on which to create the BGP peer.

AmazonAddress string

The IPv4 CIDR address to use to send traffic to Amazon. Required for IPv4 BGP peers on public virtual interfaces.

BgpAuthKey string

The authentication key for BGP configuration.

CustomerAddress string

The IPv4 CIDR destination address to which Amazon should send traffic. Required for IPv4 BGP peers on public virtual interfaces.

AddressFamily string

The address family for the BGP peer. ipv4 or ipv6.

BgpAsn int

The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.

VirtualInterfaceId string

The ID of the Direct Connect virtual interface on which to create the BGP peer.

AmazonAddress string

The IPv4 CIDR address to use to send traffic to Amazon. Required for IPv4 BGP peers on public virtual interfaces.

BgpAuthKey string

The authentication key for BGP configuration.

CustomerAddress string

The IPv4 CIDR destination address to which Amazon should send traffic. Required for IPv4 BGP peers on public virtual interfaces.

addressFamily string

The address family for the BGP peer. ipv4 or ipv6.

bgpAsn number

The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.

virtualInterfaceId string

The ID of the Direct Connect virtual interface on which to create the BGP peer.

amazonAddress string

The IPv4 CIDR address to use to send traffic to Amazon. Required for IPv4 BGP peers on public virtual interfaces.

bgpAuthKey string

The authentication key for BGP configuration.

customerAddress string

The IPv4 CIDR destination address to which Amazon should send traffic. Required for IPv4 BGP peers on public virtual interfaces.

address_family str

The address family for the BGP peer. ipv4 or ipv6.

bgp_asn float

The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.

virtual_interface_id str

The ID of the Direct Connect virtual interface on which to create the BGP peer.

amazon_address str

The IPv4 CIDR address to use to send traffic to Amazon. Required for IPv4 BGP peers on public virtual interfaces.

bgp_auth_key str

The authentication key for BGP configuration.

customer_address str

The IPv4 CIDR destination address to which Amazon should send traffic. Required for IPv4 BGP peers on public virtual interfaces.

Outputs

All input properties are implicitly available as output properties. Additionally, the BgpPeer resource produces the following output properties:

AwsDevice string

The Direct Connect endpoint on which the BGP peer terminates.

BgpPeerId string

The ID of the BGP peer.

BgpStatus string

The Up/Down state of the BGP peer.

Id string
The provider-assigned unique ID for this managed resource.
AwsDevice string

The Direct Connect endpoint on which the BGP peer terminates.

BgpPeerId string

The ID of the BGP peer.

BgpStatus string

The Up/Down state of the BGP peer.

Id string
The provider-assigned unique ID for this managed resource.
awsDevice string

The Direct Connect endpoint on which the BGP peer terminates.

bgpPeerId string

The ID of the BGP peer.

bgpStatus string

The Up/Down state of the BGP peer.

id string
The provider-assigned unique ID for this managed resource.
aws_device str

The Direct Connect endpoint on which the BGP peer terminates.

bgp_peer_id str

The ID of the BGP peer.

bgp_status str

The Up/Down state of the BGP peer.

id str
The provider-assigned unique ID for this managed resource.

Look up an Existing BgpPeer Resource

Get an existing BgpPeer resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: BgpPeerState, opts?: CustomResourceOptions): BgpPeer
static get(resource_name, id, opts=None, address_family=None, amazon_address=None, aws_device=None, bgp_asn=None, bgp_auth_key=None, bgp_peer_id=None, bgp_status=None, customer_address=None, virtual_interface_id=None, __props__=None);
func GetBgpPeer(ctx *Context, name string, id IDInput, state *BgpPeerState, opts ...ResourceOption) (*BgpPeer, error)
public static BgpPeer Get(string name, Input<string> id, BgpPeerState? state, CustomResourceOptions? opts = null)
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

The following state arguments are supported:

AddressFamily string

The address family for the BGP peer. ipv4 or ipv6.

AmazonAddress string

The IPv4 CIDR address to use to send traffic to Amazon. Required for IPv4 BGP peers on public virtual interfaces.

AwsDevice string

The Direct Connect endpoint on which the BGP peer terminates.

BgpAsn int

The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.

BgpAuthKey string

The authentication key for BGP configuration.

BgpPeerId string

The ID of the BGP peer.

BgpStatus string

The Up/Down state of the BGP peer.

CustomerAddress string

The IPv4 CIDR destination address to which Amazon should send traffic. Required for IPv4 BGP peers on public virtual interfaces.

VirtualInterfaceId string

The ID of the Direct Connect virtual interface on which to create the BGP peer.

AddressFamily string

The address family for the BGP peer. ipv4 or ipv6.

AmazonAddress string

The IPv4 CIDR address to use to send traffic to Amazon. Required for IPv4 BGP peers on public virtual interfaces.

AwsDevice string

The Direct Connect endpoint on which the BGP peer terminates.

BgpAsn int

The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.

BgpAuthKey string

The authentication key for BGP configuration.

BgpPeerId string

The ID of the BGP peer.

BgpStatus string

The Up/Down state of the BGP peer.

CustomerAddress string

The IPv4 CIDR destination address to which Amazon should send traffic. Required for IPv4 BGP peers on public virtual interfaces.

VirtualInterfaceId string

The ID of the Direct Connect virtual interface on which to create the BGP peer.

addressFamily string

The address family for the BGP peer. ipv4 or ipv6.

amazonAddress string

The IPv4 CIDR address to use to send traffic to Amazon. Required for IPv4 BGP peers on public virtual interfaces.

awsDevice string

The Direct Connect endpoint on which the BGP peer terminates.

bgpAsn number

The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.

bgpAuthKey string

The authentication key for BGP configuration.

bgpPeerId string

The ID of the BGP peer.

bgpStatus string

The Up/Down state of the BGP peer.

customerAddress string

The IPv4 CIDR destination address to which Amazon should send traffic. Required for IPv4 BGP peers on public virtual interfaces.

virtualInterfaceId string

The ID of the Direct Connect virtual interface on which to create the BGP peer.

address_family str

The address family for the BGP peer. ipv4 or ipv6.

amazon_address str

The IPv4 CIDR address to use to send traffic to Amazon. Required for IPv4 BGP peers on public virtual interfaces.

aws_device str

The Direct Connect endpoint on which the BGP peer terminates.

bgp_asn float

The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.

bgp_auth_key str

The authentication key for BGP configuration.

bgp_peer_id str

The ID of the BGP peer.

bgp_status str

The Up/Down state of the BGP peer.

customer_address str

The IPv4 CIDR destination address to which Amazon should send traffic. Required for IPv4 BGP peers on public virtual interfaces.

virtual_interface_id str

The ID of the Direct Connect virtual interface on which to create the BGP peer.

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.