VpnGatewayRoutePropagationArgs

data class VpnGatewayRoutePropagationArgs(val routeTableId: Output<String>? = null, val vpnGatewayId: Output<String>? = null) : ConvertibleToJava<VpnGatewayRoutePropagationArgs>

Requests automatic route propagation between a VPN gateway and a route table.

Note: This resource should not be used with a route table that has the propagating_vgws argument set. If that argument is set, any route propagation not explicitly listed in its value will be removed.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ec2.VpnGatewayRoutePropagation;
import com.pulumi.aws.ec2.VpnGatewayRoutePropagationArgs;
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 example = new VpnGatewayRoutePropagation("example", VpnGatewayRoutePropagationArgs.builder()
.vpnGatewayId(aws_vpn_gateway.example().id())
.routeTableId(aws_route_table.example().id())
.build());
}
}

Constructors

Link copied to clipboard
constructor(routeTableId: Output<String>? = null, vpnGatewayId: Output<String>? = null)

Properties

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

The id of the aws.ec2.RouteTable to propagate routes into.

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

The id of the aws.ec2.VpnGateway to propagate routes from.

Functions

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