VpnTunnelOptionsSpecificationProperty
The tunnel options for a single VPN tunnel.
| Source | |
|---|---|
| Type last changed |
Example
// 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 vpnTunnelOptionsSpecificationProperty: ec2.CfnVPNConnection.VpnTunnelOptionsSpecificationProperty = {
dpdTimeoutAction: 'dpdTimeoutAction',
dpdTimeoutSeconds: 123,
enableTunnelLifecycleControl: false,
ikeVersions: [{
value: 'value',
}],
logOptions: {
cloudwatchLogOptions: {
bgpLogEnabled: false,
bgpLogGroupArn: 'bgpLogGroupArn',
bgpLogOutputFormat: 'bgpLogOutputFormat',
logEnabled: false,
logGroupArn: 'logGroupArn',
logOutputFormat: 'logOutputFormat',
},
},
phase1DhGroupNumbers: [{
value: 123,
}],
phase1EncryptionAlgorithms: [{
value: 'value',
}],
phase1IntegrityAlgorithms: [{
value: 'value',
}],
phase1LifetimeSeconds: 123,
phase2DhGroupNumbers: [{
value: 123,
}],
phase2EncryptionAlgorithms: [{
value: 'value',
}],
phase2IntegrityAlgorithms: [{
value: 'value',
}],
phase2LifetimeSeconds: 123,
preSharedKey: 'preSharedKey',
rekeyFuzzPercentage: 123,
rekeyMarginTimeSeconds: 123,
replayWindowSize: 123,
startupAction: 'startupAction',
tunnelInsideCidr: 'tunnelInsideCidr',
tunnelInsideIpv6Cidr: 'tunnelInsideIpv6Cidr',
};
# 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
vpn_tunnel_options_specification_property = ec2.CfnVPNConnection.VpnTunnelOptionsSpecificationProperty(
dpd_timeout_action="dpdTimeoutAction",
dpd_timeout_seconds=123,
enable_tunnel_lifecycle_control=False,
ike_versions=[{
"value": "value"
}],
log_options=ec2.CfnVPNConnection.VpnTunnelLogOptionsSpecificationProperty(
cloudwatch_log_options=ec2.CfnVPNConnection.CloudwatchLogOptionsSpecificationProperty(
bgp_log_enabled=False,
bgp_log_group_arn="bgpLogGroupArn",
bgp_log_output_format="bgpLogOutputFormat",
log_enabled=False,
log_group_arn="logGroupArn",
log_output_format="logOutputFormat"
)
),
phase1_dh_group_numbers=[ec2.CfnVPNConnection.Phase1DHGroupNumbersRequestListValueProperty(
value=123
)],
phase1_encryption_algorithms=[ec2.CfnVPNConnection.Phase1EncryptionAlgorithmsRequestListValueProperty(
value="value"
)],
phase1_integrity_algorithms=[ec2.CfnVPNConnection.Phase1IntegrityAlgorithmsRequestListValueProperty(
value="value"
)],
phase1_lifetime_seconds=123,
phase2_dh_group_numbers=[ec2.CfnVPNConnection.Phase2DHGroupNumbersRequestListValueProperty(
value=123
)],
phase2_encryption_algorithms=[ec2.CfnVPNConnection.Phase2EncryptionAlgorithmsRequestListValueProperty(
value="value"
)],
phase2_integrity_algorithms=[ec2.CfnVPNConnection.Phase2IntegrityAlgorithmsRequestListValueProperty(
value="value"
)],
phase2_lifetime_seconds=123,
pre_shared_key="preSharedKey",
rekey_fuzz_percentage=123,
rekey_margin_time_seconds=123,
replay_window_size=123,
startup_action="startupAction",
tunnel_inside_cidr="tunnelInsideCidr",
tunnel_inside_ipv6_cidr="tunnelInsideIpv6Cidr"
)
// 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.*;
VpnTunnelOptionsSpecificationProperty vpnTunnelOptionsSpecificationProperty = VpnTunnelOptionsSpecificationProperty.builder()
.dpdTimeoutAction("dpdTimeoutAction")
.dpdTimeoutSeconds(123)
.enableTunnelLifecycleControl(false)
.ikeVersions(List.of(Map.of(
"value", "value")))
.logOptions(VpnTunnelLogOptionsSpecificationProperty.builder()
.cloudwatchLogOptions(CloudwatchLogOptionsSpecificationProperty.builder()
.bgpLogEnabled(false)
.bgpLogGroupArn("bgpLogGroupArn")
.bgpLogOutputFormat("bgpLogOutputFormat")
.logEnabled(false)
.logGroupArn("logGroupArn")
.logOutputFormat("logOutputFormat")
.build())
.build())
.phase1DhGroupNumbers(List.of(Phase1DHGroupNumbersRequestListValueProperty.builder()
.value(123)
.build()))
.phase1EncryptionAlgorithms(List.of(Phase1EncryptionAlgorithmsRequestListValueProperty.builder()
.value("value")
.build()))
.phase1IntegrityAlgorithms(List.of(Phase1IntegrityAlgorithmsRequestListValueProperty.builder()
.value("value")
.build()))
.phase1LifetimeSeconds(123)
.phase2DhGroupNumbers(List.of(Phase2DHGroupNumbersRequestListValueProperty.builder()
.value(123)
.build()))
.phase2EncryptionAlgorithms(List.of(Phase2EncryptionAlgorithmsRequestListValueProperty.builder()
.value("value")
.build()))
.phase2IntegrityAlgorithms(List.of(Phase2IntegrityAlgorithmsRequestListValueProperty.builder()
.value("value")
.build()))
.phase2LifetimeSeconds(123)
.preSharedKey("preSharedKey")
.rekeyFuzzPercentage(123)
.rekeyMarginTimeSeconds(123)
.replayWindowSize(123)
.startupAction("startupAction")
.tunnelInsideCidr("tunnelInsideCidr")
.tunnelInsideIpv6Cidr("tunnelInsideIpv6Cidr")
.build();
// 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 vpnTunnelOptionsSpecificationProperty = new VpnTunnelOptionsSpecificationProperty {
DpdTimeoutAction = "dpdTimeoutAction",
DpdTimeoutSeconds = 123,
EnableTunnelLifecycleControl = false,
IkeVersions = new [] { new Dictionary<string, string?> {
{ "value", "value" }
} },
LogOptions = new VpnTunnelLogOptionsSpecificationProperty {
CloudwatchLogOptions = new CloudwatchLogOptionsSpecificationProperty {
BgpLogEnabled = false,
BgpLogGroupArn = "bgpLogGroupArn",
BgpLogOutputFormat = "bgpLogOutputFormat",
LogEnabled = false,
LogGroupArn = "logGroupArn",
LogOutputFormat = "logOutputFormat"
}
},
Phase1DhGroupNumbers = new [] { new Phase1DHGroupNumbersRequestListValueProperty {
Value = 123
} },
Phase1EncryptionAlgorithms = new [] { new Phase1EncryptionAlgorithmsRequestListValueProperty {
Value = "value"
} },
Phase1IntegrityAlgorithms = new [] { new Phase1IntegrityAlgorithmsRequestListValueProperty {
Value = "value"
} },
Phase1LifetimeSeconds = 123,
Phase2DhGroupNumbers = new [] { new Phase2DHGroupNumbersRequestListValueProperty {
Value = 123
} },
Phase2EncryptionAlgorithms = new [] { new Phase2EncryptionAlgorithmsRequestListValueProperty {
Value = "value"
} },
Phase2IntegrityAlgorithms = new [] { new Phase2IntegrityAlgorithmsRequestListValueProperty {
Value = "value"
} },
Phase2LifetimeSeconds = 123,
PreSharedKey = "preSharedKey",
RekeyFuzzPercentage = 123,
RekeyMarginTimeSeconds = 123,
ReplayWindowSize = 123,
StartupAction = "startupAction",
TunnelInsideCidr = "tunnelInsideCidr",
TunnelInsideIpv6Cidr = "tunnelInsideIpv6Cidr"
};
// 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"
vpnTunnelOptionsSpecificationProperty := &VpnTunnelOptionsSpecificationProperty{
DpdTimeoutAction: jsii.String("dpdTimeoutAction"),
DpdTimeoutSeconds: jsii.Number(123),
EnableTunnelLifecycleControl: jsii.Boolean(false),
IkeVersions: []interface{}{
map[string]*string{
"value": jsii.String("value"),
},
},
LogOptions: &VpnTunnelLogOptionsSpecificationProperty{
CloudwatchLogOptions: &CloudwatchLogOptionsSpecificationProperty{
BgpLogEnabled: jsii.Boolean(false),
BgpLogGroupArn: jsii.String("bgpLogGroupArn"),
BgpLogOutputFormat: jsii.String("bgpLogOutputFormat"),
LogEnabled: jsii.Boolean(false),
LogGroupArn: jsii.String("logGroupArn"),
LogOutputFormat: jsii.String("logOutputFormat"),
},
},
Phase1DhGroupNumbers: []interface{}{
&Phase1DHGroupNumbersRequestListValueProperty{
Value: jsii.Number(123),
},
},
Phase1EncryptionAlgorithms: []interface{}{
&Phase1EncryptionAlgorithmsRequestListValueProperty{
Value: jsii.String("value"),
},
},
Phase1IntegrityAlgorithms: []interface{}{
&Phase1IntegrityAlgorithmsRequestListValueProperty{
Value: jsii.String("value"),
},
},
Phase1LifetimeSeconds: jsii.Number(123),
Phase2DhGroupNumbers: []interface{}{
&Phase2DHGroupNumbersRequestListValueProperty{
Value: jsii.Number(123),
},
},
Phase2EncryptionAlgorithms: []interface{}{
&Phase2EncryptionAlgorithmsRequestListValueProperty{
Value: jsii.String("value"),
},
},
Phase2IntegrityAlgorithms: []interface{}{
&Phase2IntegrityAlgorithmsRequestListValueProperty{
Value: jsii.String("value"),
},
},
Phase2LifetimeSeconds: jsii.Number(123),
PreSharedKey: jsii.String("preSharedKey"),
RekeyFuzzPercentage: jsii.Number(123),
RekeyMarginTimeSeconds: jsii.Number(123),
ReplayWindowSize: jsii.Number(123),
StartupAction: jsii.String("startupAction"),
TunnelInsideCidr: jsii.String("tunnelInsideCidr"),
TunnelInsideIpv6Cidr: jsii.String("tunnelInsideIpv6Cidr"),
}
Properties
dpdTimeoutActionoptionalstringdpd_timeout_actionoptionalstrdpdTimeoutActionoptionalStringDpdTimeoutActionoptionalstringDpdTimeoutActionoptional*string #Specify restart to restart the IKE initiation. Specify clear to end the IKE session.
Valid Values: clear | none | restart
Default: clear
dpdTimeoutSecondsoptionalnumberdpd_timeout_secondsoptionalint | floatdpdTimeoutSecondsoptionalNumberDpdTimeoutSecondsoptionaldoubleDpdTimeoutSecondsoptional*float64 #Constraints: A value greater than or equal to 30.
Default: 30
enableTunnelLifecycleControloptionalboolean | IResolvableenable_tunnel_lifecycle_controloptionaltyping.Union[bool, IResolvable]enableTunnelLifecycleControloptionalBooleanEnableTunnelLifecycleControloptionalboolEnableTunnelLifecycleControloptionalinterface{} #ikeVersionsoptionalIResolvable | IResolvable | CfnVPNConnection.ike_versionsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, IKEVersionsRequestListValueProperty]]]ikeVersionsoptionalIResolvableIkeVersionsoptionalIResolvableIkeVersionsoptionalinterface{} #Valid values: ikev1 | ikev2
logOptionsoptionalIResolvable | CfnVPNConnection.log_optionsoptionaltyping.Union[IResolvable, VpnTunnelLogOptionsSpecificationProperty]logOptionsoptionalIResolvableLogOptionsoptionalIResolvableLogOptionsoptionalinterface{} #phase1DhGroupNumbersoptionalIResolvable | IResolvable | CfnVPNConnection.phase1_dh_group_numbersoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, Phase1DHGroupNumbersRequestListValueProperty]]]phase1DhGroupNumbersoptionalIResolvablePhase1DhGroupNumbersoptionalIResolvablePhase1DhGroupNumbersoptionalinterface{} #Valid values: 2 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24
phase1EncryptionAlgorithmsoptionalIResolvable | IResolvable | CfnVPNConnection.phase1_encryption_algorithmsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, Phase1EncryptionAlgorithmsRequestListValueProperty]]]phase1EncryptionAlgorithmsoptionalIResolvablePhase1EncryptionAlgorithmsoptionalIResolvablePhase1EncryptionAlgorithmsoptionalinterface{} #Valid values: AES128 | AES256 | AES128-GCM-16 | AES256-GCM-16
phase1IntegrityAlgorithmsoptionalIResolvable | IResolvable | CfnVPNConnection.phase1_integrity_algorithmsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, Phase1IntegrityAlgorithmsRequestListValueProperty]]]phase1IntegrityAlgorithmsoptionalIResolvablePhase1IntegrityAlgorithmsoptionalIResolvablePhase1IntegrityAlgorithmsoptionalinterface{} #Valid values: SHA1 | SHA2-256 | SHA2-384 | SHA2-512
phase1LifetimeSecondsoptionalnumberphase1_lifetime_secondsoptionalint | floatphase1LifetimeSecondsoptionalNumberPhase1LifetimeSecondsoptionaldoublePhase1LifetimeSecondsoptional*float64 #Constraints: A value between 900 and 28,800.
Default: 28800
phase2DhGroupNumbersoptionalIResolvable | IResolvable | CfnVPNConnection.phase2_dh_group_numbersoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, Phase2DHGroupNumbersRequestListValueProperty]]]phase2DhGroupNumbersoptionalIResolvablePhase2DhGroupNumbersoptionalIResolvablePhase2DhGroupNumbersoptionalinterface{} #Valid values: 2 | 5 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24
phase2EncryptionAlgorithmsoptionalIResolvable | IResolvable | CfnVPNConnection.phase2_encryption_algorithmsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, Phase2EncryptionAlgorithmsRequestListValueProperty]]]phase2EncryptionAlgorithmsoptionalIResolvablePhase2EncryptionAlgorithmsoptionalIResolvablePhase2EncryptionAlgorithmsoptionalinterface{} #Valid values: AES128 | AES256 | AES128-GCM-16 | AES256-GCM-16
phase2IntegrityAlgorithmsoptionalIResolvable | IResolvable | CfnVPNConnection.phase2_integrity_algorithmsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, Phase2IntegrityAlgorithmsRequestListValueProperty]]]phase2IntegrityAlgorithmsoptionalIResolvablePhase2IntegrityAlgorithmsoptionalIResolvablePhase2IntegrityAlgorithmsoptionalinterface{} #Valid values: SHA1 | SHA2-256 | SHA2-384 | SHA2-512
phase2LifetimeSecondsoptionalnumberphase2_lifetime_secondsoptionalint | floatphase2LifetimeSecondsoptionalNumberPhase2LifetimeSecondsoptionaldoublePhase2LifetimeSecondsoptional*float64 #Constraints: A value between 900 and 3,600. The value must be less than the value for Phase1LifetimeSeconds .
Default: 3600
rekeyFuzzPercentageoptionalnumberrekey_fuzz_percentageoptionalint | floatrekeyFuzzPercentageoptionalNumberRekeyFuzzPercentageoptionaldoubleRekeyFuzzPercentageoptional*float64 #Constraints: A value between 0 and 100.
Default: 100
rekeyMarginTimeSecondsoptionalnumberrekey_margin_time_secondsoptionalint | floatrekeyMarginTimeSecondsoptionalNumberRekeyMarginTimeSecondsoptionaldoubleRekeyMarginTimeSecondsoptional*float64 #The exact time of the rekey is randomly selected based on the value for RekeyFuzzPercentage .
Constraints: A value between 60 and half of Phase2LifetimeSeconds .
Default: 270
replayWindowSizeoptionalnumberreplay_window_sizeoptionalint | floatreplayWindowSizeoptionalNumberReplayWindowSizeoptionaldoubleReplayWindowSizeoptional*float64 #Constraints: A value between 64 and 2048.
Default: 1024
startupActionoptionalstringstartup_actionoptionalstrstartupActionoptionalStringStartupActionoptionalstringStartupActionoptional*string #By default, your customer gateway device must initiate the IKE negotiation and bring up the tunnel. Specify start for AWS to initiate the IKE negotiation.
Valid Values: add | start
Default: add
tunnelInsideCidroptionalstringtunnel_inside_cidroptionalstrtunnelInsideCidroptionalStringTunnelInsideCidroptionalstringTunnelInsideCidroptional*string #notes
Any specified CIDR blocks must be unique across all VPN connections that use the same virtual private gateway.
Constraints: A size /30 CIDR block from the 169.254.0.0/16 range. The following CIDR blocks are reserved and cannot be used:
169.254.0.0/30169.254.1.0/30169.254.2.0/30169.254.3.0/30169.254.4.0/30169.254.5.0/30169.254.169.252/30
tunnelInsideIpv6Cidroptionalstringtunnel_inside_ipv6_cidroptionalstrtunnelInsideIpv6CidroptionalStringTunnelInsideIpv6CidroptionalstringTunnelInsideIpv6Cidroptional*string #Any specified CIDR blocks must be unique across all VPN connections that use the same transit gateway.
Constraints: A size /126 CIDR block from the local fd00::/8 range.