CfnVPNConnectionRouteProps Struct
Properties for defining a CfnVPNConnectionRoute.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const cfnVPNConnectionRouteProps: ec2.CfnVPNConnectionRouteProps = {
destinationCidrBlock: 'destinationCidrBlock',
vpnConnectionId: 'vpnConnectionId',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ec2 as ec2
cfn_vpn_connection_route_props = ec2.CfnVPNConnectionRouteProps(
destination_cidr_block="destinationCidrBlock",
vpn_connection_id="vpnConnectionId"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ec2.*;
CfnVPNConnectionRouteProps cfnVPNConnectionRouteProps = CfnVPNConnectionRouteProps.builder()
.destinationCidrBlock("destinationCidrBlock")
.vpnConnectionId("vpnConnectionId")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;
var cfnVPNConnectionRouteProps = new CfnVPNConnectionRouteProps {
DestinationCidrBlock = "destinationCidrBlock",
VpnConnectionId = "vpnConnectionId"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnVPNConnectionRouteProps := &CfnVPNConnectionRouteProps{
DestinationCidrBlock: jsii.String("destinationCidrBlock"),
VpnConnectionId: jsii.String("vpnConnectionId"),
}
Properties
destinationCidrBlockstringdestination_cidr_blockstrdestinationCidrBlockStringDestinationCidrBlockstringDestinationCidrBlock*string required #The CIDR block associated with the local subnet of the customer network.
vpnConnectionIdstring | IVPNConnectionRefvpn_connection_idtyping.Union[str, IVPNConnectionRef]vpnConnectionIdStringVpnConnectionIdstringVpnConnectionIdinterface{} required #The ID of the VPN connection.