ConnectPeerArgs

data class ConnectPeerArgs(val bgpAsn: Output<String>? = null, val insideCidrBlocks: Output<List<String>>? = null, val peerAddress: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val transitGatewayAddress: Output<String>? = null, val transitGatewayAttachmentId: Output<String>? = null) : ConvertibleToJava<ConnectPeerArgs>

Manages an EC2 Transit Gateway Connect Peer.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ec2transitgateway.Connect;
import com.pulumi.aws.ec2transitgateway.ConnectArgs;
import com.pulumi.aws.ec2transitgateway.ConnectPeer;
import com.pulumi.aws.ec2transitgateway.ConnectPeerArgs;
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 exampleConnect = new Connect("exampleConnect", ConnectArgs.builder()
.transportAttachmentId(aws_ec2_transit_gateway_vpc_attachment.example().id())
.transitGatewayId(aws_ec2_transit_gateway.example().id())
.build());
var exampleConnectPeer = new ConnectPeer("exampleConnectPeer", ConnectPeerArgs.builder()
.peerAddress("10.1.2.3")
.insideCidrBlocks("169.254.100.0/29")
.transitGatewayAttachmentId(exampleConnect.id())
.build());
}
}

Import

aws_ec2_transit_gateway_connect_peer can be imported by using the EC2 Transit Gateway Connect Peer identifier, e.g.,

$ pulumi import aws:ec2transitgateway/connectPeer:ConnectPeer example tgw-connect-peer-12345678

Constructors

Link copied to clipboard
constructor(bgpAsn: Output<String>? = null, insideCidrBlocks: Output<List<String>>? = null, peerAddress: Output<String>? = null, tags: Output<Map<String, String>>? = null, transitGatewayAddress: Output<String>? = null, transitGatewayAttachmentId: Output<String>? = null)

Properties

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

The BGP ASN number assigned customer device. If not provided, it will use the same BGP ASN as is associated with Transit Gateway.

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

The CIDR block that will be used for addressing within the tunnel. It must contain exactly one IPv4 CIDR block and up to one IPv6 CIDR block. The IPv4 CIDR block must be /29 size and must be within 169.254.0.0/16 range, with exception of: 169.254.0.0/29, 169.254.1.0/29, 169.254.2.0/29, 169.254.3.0/29, 169.254.4.0/29, 169.254.5.0/29, 169.254.169.248/29. The IPv6 CIDR block must be /125 size and must be within fd00::/8. The first IP from each CIDR block is assigned for customer gateway, the second and third is for Transit Gateway (An example: from range 169.254.100.0/29, .1 is assigned to customer gateway and .2 and .3 are assigned to Transit Gateway)

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

The IP addressed assigned to customer device, which will be used as tunnel endpoint. It can be IPv4 or IPv6 address, but must be the same address family as transit_gateway_address

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Key-value tags for the EC2 Transit Gateway Connect Peer. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

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

The IP address assigned to Transit Gateway, which will be used as tunnel endpoint. This address must be from associated Transit Gateway CIDR block. The address must be from the same address family as peer_address. If not set explicitly, it will be selected from associated Transit Gateway CIDR blocks

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

The Transit Gateway Connect

Functions

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