CustomerGatewayArgs

data class CustomerGatewayArgs(val asn: Output<String>? = null, val description: Output<String>? = null, val ipAddress: Output<String>? = null, val name: Output<String>? = null) : ConvertibleToJava<CustomerGatewayArgs>

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.vpn.CustomerGateway;
import com.pulumi.alicloud.vpn.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 foo = new CustomerGateway("foo", CustomerGatewayArgs.builder()
.description("vpnCgwDescriptionExample")
.ipAddress("43.104.22.228")
.build());
}
}

Import

VPN customer gateway can be imported using the id, e.g.

$ pulumi import alicloud:vpn/customerGateway:CustomerGateway example cgw-abc123456

Constructors

Link copied to clipboard
fun CustomerGatewayArgs(asn: Output<String>? = null, description: Output<String>? = null, ipAddress: Output<String>? = null, name: Output<String>? = null)

Functions

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

Properties

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

The autonomous system number of the gateway device in the data center. The asn is a 4-byte number. You can enter the number in two segments and separate the first 16 bits from the following 16 bits with a period (.). Enter the number in each segment in the decimal format.

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

The description of the VPN customer gateway instance.

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

The IP address of the customer gateway.

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

The name of the VPN customer gateway. Defaults to null.