Bgp Peer Args
data class BgpPeerArgs(val addressFamily: Output<String>? = null, val amazonAddress: Output<String>? = null, val bgpAsn: Output<Int>? = null, val bgpAuthKey: Output<String>? = null, val customerAddress: Output<String>? = null, val virtualInterfaceId: Output<String>? = null) : ConvertibleToJava<BgpPeerArgs>
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,
});
Content copied to clipboard
import pulumi
import pulumi_aws as aws
peer = aws.directconnect.BgpPeer("peer",
virtual_interface_id=foo["id"],
address_family="ipv6",
bgp_asn=65351)
Content copied to clipboard
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,
});
});
Content copied to clipboard
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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
resources:
peer:
type: aws:directconnect:BgpPeer
properties:
virtualInterfaceId: ${foo.id}
addressFamily: ipv6
bgpAsn: 65351
Content copied to clipboard
Constructors
Properties
Link copied to clipboard
The address family for the BGP peer. ipv4
or ipv6
.
Link copied to clipboard
The IPv4 CIDR address to use to send traffic to Amazon. Required for IPv4 BGP peers on public virtual interfaces.
Link copied to clipboard
The authentication key for BGP configuration.
Link copied to clipboard
The IPv4 CIDR destination address to which Amazon should send traffic. Required for IPv4 BGP peers on public virtual interfaces.
Link copied to clipboard
The ID of the Direct Connect virtual interface on which to create the BGP peer.