Package com.pulumi.aws.ec2
Class VpnGatewayRoutePropagation
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.ec2.VpnGatewayRoutePropagation
-
public class VpnGatewayRoutePropagation extends com.pulumi.resources.CustomResourceRequests 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 `propagatingVgws` argument set. If that argument is set, any route propagation not explicitly listed in its value will be removed. ## Example Usagepackage 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.ArrayList; import java.util.Arrays; 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(exampleAwsVpnGateway.id()) .routeTableId(exampleAwsRouteTable.id()) .build()); } }
-
-
Constructor Summary
Constructors Constructor Description VpnGatewayRoutePropagation(java.lang.String name)VpnGatewayRoutePropagation(java.lang.String name, VpnGatewayRoutePropagationArgs args)VpnGatewayRoutePropagation(java.lang.String name, VpnGatewayRoutePropagationArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VpnGatewayRoutePropagationget(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, VpnGatewayRoutePropagationState state, com.pulumi.resources.CustomResourceOptions options)Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.lang.String>region()com.pulumi.core.Output<java.lang.String>routeTableId()com.pulumi.core.Output<java.lang.String>vpnGatewayId()
-
-
-
Constructor Detail
-
VpnGatewayRoutePropagation
public VpnGatewayRoutePropagation(java.lang.String name)
- Parameters:
name- The _unique_ name of the resulting resource.
-
VpnGatewayRoutePropagation
public VpnGatewayRoutePropagation(java.lang.String name, VpnGatewayRoutePropagationArgs args)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.
-
VpnGatewayRoutePropagation
public VpnGatewayRoutePropagation(java.lang.String name, VpnGatewayRoutePropagationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.options- A bag of options that control this resource's behavior.
-
-
Method Detail
-
region
public com.pulumi.core.Output<java.lang.String> region()
- Returns:
- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
-
routeTableId
public com.pulumi.core.Output<java.lang.String> routeTableId()
- Returns:
- ID of the `aws.ec2.RouteTable` to propagate routes into.
-
vpnGatewayId
public com.pulumi.core.Output<java.lang.String> vpnGatewayId()
- Returns:
- ID of the `aws.ec2.VpnGateway` to propagate routes from.
-
get
public static VpnGatewayRoutePropagation get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable VpnGatewayRoutePropagationState state, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name- The _unique_ name of the resulting resource.id- The _unique_ provider ID of the resource to lookup.state-options- Optional settings to control the behavior of the CustomResource.
-
-