CfnClientVpnRouteMixinProps
- class aws_cdk.mixins_preview.aws_ec2.mixins.CfnClientVpnRouteMixinProps(*, client_vpn_endpoint_id=None, description=None, destination_cidr_block=None, target_vpc_subnet_id=None)
Bases:
objectProperties for CfnClientVpnRoutePropsMixin.
- Parameters:
client_vpn_endpoint_id (
Optional[str]) – The ID of the Client VPN endpoint to which to add the route.description (
Optional[str]) – A brief description of the route.destination_cidr_block (
Optional[str]) – The IPv4 address range, in CIDR notation, of the route destination. For example:. - To add a route for Internet access, enter0.0.0.0/0- To add a route for a peered VPC, enter the peered VPC’s IPv4 CIDR range - To add a route for an on-premises network, enter the AWS Site-to-Site VPN connection’s IPv4 CIDR range - To add a route for the local network, enter the client CIDR rangetarget_vpc_subnet_id (
Optional[str]) – The ID of the subnet through which you want to route traffic. The specified subnet must be an existing target network of the Client VPN endpoint. Alternatively, if you’re adding a route for the local network, specifylocal.
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-clientvpnroute.html
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_ec2 import mixins as ec2_mixins cfn_client_vpn_route_mixin_props = ec2_mixins.CfnClientVpnRouteMixinProps( client_vpn_endpoint_id="clientVpnEndpointId", description="description", destination_cidr_block="destinationCidrBlock", target_vpc_subnet_id="targetVpcSubnetId" )
Attributes
- client_vpn_endpoint_id
The ID of the Client VPN endpoint to which to add the route.
- description
A brief description of the route.
- destination_cidr_block
.
To add a route for Internet access, enter
0.0.0.0/0To add a route for a peered VPC, enter the peered VPC’s IPv4 CIDR range
To add a route for an on-premises network, enter the AWS Site-to-Site VPN connection’s IPv4 CIDR range
To add a route for the local network, enter the client CIDR range
- See:
- Type:
The IPv4 address range, in CIDR notation, of the route destination. For example
- target_vpc_subnet_id
The ID of the subnet through which you want to route traffic.
The specified subnet must be an existing target network of the Client VPN endpoint.
Alternatively, if you’re adding a route for the local network, specify
local.