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:
  • Field Details

    • CFN_PROPERTY_KEYS

      @Stability(Stable) protected static final List<String> 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 to AWS::EC2::VPNConnection.

      Parameters:
      props - L1 properties to apply. This parameter is required.
      options - Mixin options.
    • CfnVPNConnectionPropsMixin

      @Stability(Stable) public CfnVPNConnectionPropsMixin(@NotNull CfnVPNConnectionMixinProps props)
      Create a mixin to apply properties to AWS::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.

      Specified by:
      applyTo in interface software.constructs.IMixin
      Specified by:
      applyTo in class Mixin
      Parameters:
      construct - This parameter is required.
    • supports

      @Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct)
      Check if this mixin supports the given construct.

      Specified by:
      supports in interface software.constructs.IMixin
      Overrides:
      supports in class Mixin
      Parameters:
      construct - This parameter is required.
    • getProps

      @Stability(Stable) @NotNull protected CfnVPNConnectionMixinProps getProps()
    • getStrategy

      @Stability(Stable) @NotNull protected IMergeStrategy getStrategy()