VpnGatewayArgs

data class VpnGatewayArgs(val amazonSideAsn: Output<String>? = null, val availabilityZone: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val vpcId: Output<String>? = null) : ConvertibleToJava<VpnGatewayArgs>

Provides a resource to create a VPC VPN Gateway.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ec2.VpnGateway;
import com.pulumi.aws.ec2.VpnGatewayArgs;
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 vpnGw = new VpnGateway("vpnGw", VpnGatewayArgs.builder()
.vpcId(aws_vpc.main().id())
.tags(Map.of("Name", "main"))
.build());
}
}

Import

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

$ pulumi import aws:ec2/vpnGateway:VpnGateway testvpngateway vgw-9a4cacf3

Constructors

Link copied to clipboard
constructor(amazonSideAsn: Output<String>? = null, availabilityZone: Output<String>? = null, tags: Output<Map<String, String>>? = null, vpcId: Output<String>? = null)

Properties

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

The Autonomous System Number (ASN) for the Amazon side of the gateway. If you don't specify an ASN, the virtual private gateway is created with the default ASN.

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

The Availability Zone for the virtual private gateway.

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

A map of tags to assign to the resource. .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 vpcId: Output<String>? = null

The VPC ID to create in.

Functions

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