BgpPeer

class BgpPeer : KotlinCustomResource

Provides a Direct Connect BGP peer resource.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const peer = new aws.directconnect.BgpPeer("peer", {
virtualInterfaceId: foo.id,
addressFamily: "ipv6",
bgpAsn: 65351,
});
import pulumi
import pulumi_aws as aws
peer = aws.directconnect.BgpPeer("peer",
virtual_interface_id=foo["id"],
address_family="ipv6",
bgp_asn=65351)
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var peer = new Aws.DirectConnect.BgpPeer("peer", new()
{
VirtualInterfaceId = foo.Id,
AddressFamily = "ipv6",
BgpAsn = 65351,
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/directconnect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := directconnect.NewBgpPeer(ctx, "peer", &directconnect.BgpPeerArgs{
VirtualInterfaceId: pulumi.Any(foo.Id),
AddressFamily: pulumi.String("ipv6"),
BgpAsn: pulumi.Int(65351),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.directconnect.BgpPeer;
import com.pulumi.aws.directconnect.BgpPeerArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var peer = new BgpPeer("peer", BgpPeerArgs.builder()
.virtualInterfaceId(foo.id())
.addressFamily("ipv6")
.bgpAsn(65351)
.build());
}
}
resources:
peer:
type: aws:directconnect:BgpPeer
properties:
virtualInterfaceId: ${foo.id}
addressFamily: ipv6
bgpAsn: 65351

Properties

Link copied to clipboard
val addressFamily: Output<String>

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

Link copied to clipboard
val amazonAddress: Output<String>

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

Link copied to clipboard
val awsDevice: Output<String>

The Direct Connect endpoint on which the BGP peer terminates.

Link copied to clipboard
val bgpAsn: Output<Int>

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

Link copied to clipboard
val bgpAuthKey: Output<String>

The authentication key for BGP configuration.

Link copied to clipboard
val bgpPeerId: Output<String>

The ID of the BGP peer.

Link copied to clipboard
val bgpStatus: Output<String>

The Up/Down state of the BGP peer.

Link copied to clipboard
val customerAddress: Output<String>

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

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val urn: Output<String>
Link copied to clipboard

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