Class CfnVPNConnectionPropsMixin
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.Mixin
software.amazon.awscdk.cfnpropertymixins.services.ec2.CfnVPNConnectionPropsMixin
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable,software.constructs.IMixin
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-03-11T13:19:58.771Z")
@Stability(Stable)
public class CfnVPNConnectionPropsMixin
extends Mixin
implements software.constructs.IMixin
Specifies a VPN connection between a virtual private gateway and a VPN customer gateway or a transit gateway and a VPN customer gateway.
To specify a VPN connection between a transit gateway and customer gateway, use the TransitGatewayId and CustomerGatewayId properties.
To specify a VPN connection between a virtual private gateway and customer gateway, use the VpnGatewayId and CustomerGatewayId properties.
For more information, see AWS Site-to-Site VPN in the AWS Site-to-Site VPN User Guide .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.ec2.*;
import software.amazon.awscdk.*;
IMergeStrategy mergeStrategy;
CfnVPNConnectionPropsMixin cfnVPNConnectionPropsMixin = CfnVPNConnectionPropsMixin.Builder.create(CfnVPNConnectionMixinProps.builder()
.customerGatewayId("customerGatewayId")
.enableAcceleration(false)
.localIpv4NetworkCidr("localIpv4NetworkCidr")
.localIpv6NetworkCidr("localIpv6NetworkCidr")
.outsideIpAddressType("outsideIpAddressType")
.preSharedKeyStorage("preSharedKeyStorage")
.remoteIpv4NetworkCidr("remoteIpv4NetworkCidr")
.remoteIpv6NetworkCidr("remoteIpv6NetworkCidr")
.staticRoutesOnly(false)
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.transitGatewayId("transitGatewayId")
.transportTransitGatewayAttachmentId("transportTransitGatewayAttachmentId")
.tunnelBandwidth("tunnelBandwidth")
.tunnelInsideIpVersion("tunnelInsideIpVersion")
.type("type")
.vpnConcentratorId("vpnConcentratorId")
.vpnGatewayId("vpnGatewayId")
.vpnTunnelOptionsSpecifications(List.of(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()))
.build())
.strategy(mergeStrategy)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnVPNConnectionPropsMixin.static interfaceOptions for sending VPN tunnel logs to CloudWatch.static interfaceThe IKE version that is permitted for the VPN tunnel.static interfaceSpecifies a Diffie-Hellman group number for the VPN tunnel for phase 1 IKE negotiations.static interfaceSpecifies the encryption algorithm for the VPN tunnel for phase 1 IKE negotiations.static interfaceSpecifies the integrity algorithm for the VPN tunnel for phase 1 IKE negotiations.static interfaceSpecifies a Diffie-Hellman group number for the VPN tunnel for phase 2 IKE negotiations.static interfaceSpecifies the encryption algorithm for the VPN tunnel for phase 2 IKE negotiations.static interfaceSpecifies the integrity algorithm for the VPN tunnel for phase 2 IKE negotiations.static interfaceOptions for logging VPN tunnel activity.static interfaceThe tunnel options for a single VPN tunnel.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IMixin
software.constructs.IMixin.Jsii$Default, software.constructs.IMixin.Jsii$Proxy -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionCreate a mixin to apply properties toAWS::EC2::VPNConnection.Create a mixin to apply properties toAWS::EC2::VPNConnection.protectedCfnVPNConnectionPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnVPNConnectionPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTo(software.constructs.IConstruct construct) Apply the mixin properties to the construct.protected CfnVPNConnectionMixinPropsgetProps()protected IMergeStrategysupports(software.constructs.IConstruct construct) Check if this mixin supports the given construct.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_PROPERTY_KEYS
-
-
Constructor Details
-
CfnVPNConnectionPropsMixin
protected CfnVPNConnectionPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
CfnVPNConnectionPropsMixin
protected CfnVPNConnectionPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnVPNConnectionPropsMixin
@Stability(Stable) public CfnVPNConnectionPropsMixin(@NotNull CfnVPNConnectionMixinProps props, @Nullable CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::EC2::VPNConnection.- Parameters:
props- L1 properties to apply. This parameter is required.options- Mixin options.
-
CfnVPNConnectionPropsMixin
Create a mixin to apply properties toAWS::EC2::VPNConnection.- Parameters:
props- L1 properties to apply. This parameter is required.
-
-
Method Details
-
applyTo
@Stability(Stable) public void applyTo(@NotNull software.constructs.IConstruct construct) Apply the mixin properties to the construct. -
supports
@Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct) Check if this mixin supports the given construct. -
getProps
-
getStrategy
-