We recommend new projects start with resources from the AWS provider.
aws-native.ec2.VpnConnectionRoute
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
Specifies a static route for a VPN connection between an existing virtual private gateway and a VPN customer gateway. The static route allows traffic to be routed from the virtual private gateway to the VPN customer gateway. For more information, see in the User Guide.
Create VpnConnectionRoute Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VpnConnectionRoute(name: string, args: VpnConnectionRouteArgs, opts?: CustomResourceOptions);
@overload
def VpnConnectionRoute(resource_name: str,
args: VpnConnectionRouteArgs,
opts: Optional[ResourceOptions] = None)
@overload
def VpnConnectionRoute(resource_name: str,
opts: Optional[ResourceOptions] = None,
destination_cidr_block: Optional[str] = None,
vpn_connection_id: Optional[str] = None)
func NewVpnConnectionRoute(ctx *Context, name string, args VpnConnectionRouteArgs, opts ...ResourceOption) (*VpnConnectionRoute, error)
public VpnConnectionRoute(string name, VpnConnectionRouteArgs args, CustomResourceOptions? opts = null)
public VpnConnectionRoute(String name, VpnConnectionRouteArgs args)
public VpnConnectionRoute(String name, VpnConnectionRouteArgs args, CustomResourceOptions options)
type: aws-native:ec2:VpnConnectionRoute
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args VpnConnectionRouteArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args VpnConnectionRouteArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args VpnConnectionRouteArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VpnConnectionRouteArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VpnConnectionRouteArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
VpnConnectionRoute Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The VpnConnectionRoute resource accepts the following input properties:
- Destination
Cidr stringBlock - The CIDR block associated with the local subnet of the customer network.
- Vpn
Connection stringId - The ID of the VPN connection.
- Destination
Cidr stringBlock - The CIDR block associated with the local subnet of the customer network.
- Vpn
Connection stringId - The ID of the VPN connection.
- destination
Cidr StringBlock - The CIDR block associated with the local subnet of the customer network.
- vpn
Connection StringId - The ID of the VPN connection.
- destination
Cidr stringBlock - The CIDR block associated with the local subnet of the customer network.
- vpn
Connection stringId - The ID of the VPN connection.
- destination_
cidr_ strblock - The CIDR block associated with the local subnet of the customer network.
- vpn_
connection_ strid - The ID of the VPN connection.
- destination
Cidr StringBlock - The CIDR block associated with the local subnet of the customer network.
- vpn
Connection StringId - The ID of the VPN connection.
Outputs
All input properties are implicitly available as output properties. Additionally, the VpnConnectionRoute resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.