Class VpnGatewayRoutePropagation
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_vgwsargument set. If that argument is set, any route propagation not explicitly listed in its value will be removed.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.Ec2.VpnGatewayRoutePropagation("example", new Aws.Ec2.VpnGatewayRoutePropagationArgs
{
RouteTableId = aws_route_table.Example.Id,
VpnGatewayId = aws_vpn_gateway.Example.Id,
});
}
}
Inherited Members
Namespace: Pulumi.Aws.Ec2
Assembly: Pulumi.Aws.dll
Syntax
public class VpnGatewayRoutePropagation : CustomResource
Constructors
View SourceVpnGatewayRoutePropagation(String, VpnGatewayRoutePropagationArgs, CustomResourceOptions)
Create a VpnGatewayRoutePropagation resource with the given unique name, arguments, and options.
Declaration
public VpnGatewayRoutePropagation(string name, VpnGatewayRoutePropagationArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| VpnGatewayRoutePropagationArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceRouteTableId
The id of the aws.ec2.RouteTable to propagate routes into.
Declaration
public Output<string> RouteTableId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
VpnGatewayId
The id of the aws.ec2.VpnGateway to propagate routes from.
Declaration
public Output<string> VpnGatewayId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, VpnGatewayRoutePropagationState, CustomResourceOptions)
Get an existing VpnGatewayRoutePropagation resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static VpnGatewayRoutePropagation Get(string name, Input<string> id, VpnGatewayRoutePropagationState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| VpnGatewayRoutePropagationState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| VpnGatewayRoutePropagation |