VpnTunnelOption Struct
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
declare const secretValue: cdk.SecretValue;
const vpnTunnelOption: ec2.VpnTunnelOption = {
preSharedKey: 'preSharedKey',
preSharedKeySecret: secretValue,
tunnelInsideCidr: 'tunnelInsideCidr',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk as cdk
from aws_cdk import aws_ec2 as ec2
# secret_value: cdk.SecretValue
vpn_tunnel_option = ec2.VpnTunnelOption(
pre_shared_key="preSharedKey",
pre_shared_key_secret=secret_value,
tunnel_inside_cidr="tunnelInsideCidr"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;
import software.amazon.awscdk.services.ec2.*;
SecretValue secretValue;
VpnTunnelOption vpnTunnelOption = VpnTunnelOption.builder()
.preSharedKey("preSharedKey")
.preSharedKeySecret(secretValue)
.tunnelInsideCidr("tunnelInsideCidr")
.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;
using Amazon.CDK.AWS.EC2;
SecretValue secretValue;
var vpnTunnelOption = new VpnTunnelOption {
PreSharedKey = "preSharedKey",
PreSharedKeySecret = secretValue,
TunnelInsideCidr = "tunnelInsideCidr"
};
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 cdk "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"
var secretValue SecretValue
vpnTunnelOption := &VpnTunnelOption{
PreSharedKey: jsii.String("preSharedKey"),
PreSharedKeySecret: secretValue,
TunnelInsideCidr: jsii.String("tunnelInsideCidr"),
}
Properties
tunnelInsideCidroptionalstringtunnel_inside_cidroptionalstrtunnelInsideCidroptionalStringTunnelInsideCidroptionalstringTunnelInsideCidroptional*string#The range of inside IP addresses for the tunnel.
Default: an Amazon generated inside IP CIDR
Any specified CIDR blocks must be unique across all VPN connections that use the same virtual private gateway. A size /30 CIDR block from the 169.254.0.0/16 range.