BgpPeerArgs

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,
});
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

Constructors

Link copied to clipboard
constructor(addressFamily: Output<String>? = null, amazonAddress: Output<String>? = null, bgpAsn: Output<Int>? = null, bgpAuthKey: Output<String>? = null, customerAddress: Output<String>? = null, virtualInterfaceId: Output<String>? = null)

Properties

Link copied to clipboard
val addressFamily: Output<String>? = null

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

Link copied to clipboard
val amazonAddress: Output<String>? = null

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 bgpAsn: Output<Int>? = null

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

Link copied to clipboard
val bgpAuthKey: Output<String>? = null

The authentication key for BGP configuration.

Link copied to clipboard
val customerAddress: Output<String>? = null

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 virtualInterfaceId: Output<String>? = null

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

Functions

Link copied to clipboard
open override fun toJava(): BgpPeerArgs