CustomerGatewayArgs

data class CustomerGatewayArgs(val bgpAsn: Output<String>? = null, val certificateArn: Output<String>? = null, val deviceName: Output<String>? = null, val ipAddress: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val type: Output<String>? = null) : ConvertibleToJava<CustomerGatewayArgs>

Provides a customer gateway inside a VPC. These objects can be connected to VPN gateways via VPN connections, and allow you to establish tunnels between your network and the VPC.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ec2.CustomerGateway;
import com.pulumi.aws.ec2.CustomerGatewayArgs;
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 main = new CustomerGateway("main", CustomerGatewayArgs.builder()
.bgpAsn(65000)
.ipAddress("172.83.124.10")
.tags(Map.of("Name", "main-customer-gateway"))
.type("ipsec.1")
.build());
}
}

Import

Customer Gateways can be imported using the id, e.g.,

$ pulumi import aws:ec2/customerGateway:CustomerGateway main cgw-b4dc3961

Constructors

Link copied to clipboard
constructor(bgpAsn: Output<String>? = null, certificateArn: Output<String>? = null, deviceName: Output<String>? = null, ipAddress: Output<String>? = null, tags: Output<Map<String, String>>? = null, type: Output<String>? = null)

Properties

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

The gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN).

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

The Amazon Resource Name (ARN) for the customer gateway certificate.

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

A name for the customer gateway device.

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

The IPv4 address for the customer gateway device's outside interface.

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

Tags to apply to the gateway. 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 type: Output<String>? = null

The type of customer gateway. The only type AWS supports at this time is "ipsec.1".

Functions

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