Interface CfnVPNConnectionProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnVPNConnectionProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:39.183Z") @Stability(Stable) public interface CfnVPNConnectionProps extends software.amazon.jsii.JsiiSerializable
Properties for defining a CfnVPNConnection.

Example:

 // 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.*;
 CfnVPNConnectionProps cfnVPNConnectionProps = CfnVPNConnectionProps.builder()
         .customerGatewayId("customerGatewayId")
         .type("type")
         // the properties below are optional
         .staticRoutesOnly(false)
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .transitGatewayId("transitGatewayId")
         .vpnGatewayId("vpnGatewayId")
         .vpnTunnelOptionsSpecifications(List.of(VpnTunnelOptionsSpecificationProperty.builder()
                 .preSharedKey("preSharedKey")
                 .tunnelInsideCidr("tunnelInsideCidr")
                 .build()))
         .build();
 
  • Method Details

    • getCustomerGatewayId

      @Stability(Stable) @NotNull String getCustomerGatewayId()
      The ID of the customer gateway at your end of the VPN connection.
    • getType

      @Stability(Stable) @NotNull String getType()
      The type of VPN connection.
    • getStaticRoutesOnly

      @Stability(Stable) @Nullable default Object getStaticRoutesOnly()
      Indicates whether the VPN connection uses static routes only.

      Static routes must be used for devices that don't support BGP.

      If you are creating a VPN connection for a device that does not support Border Gateway Protocol (BGP), you must specify true .

    • getTags

      @Stability(Stable) @Nullable default List<CfnTag> getTags()
      Any tags assigned to the VPN connection.
    • getTransitGatewayId

      @Stability(Stable) @Nullable default String getTransitGatewayId()
      The ID of the transit gateway associated with the VPN connection.

      You must specify either TransitGatewayId or VpnGatewayId , but not both.

    • getVpnGatewayId

      @Stability(Stable) @Nullable default String getVpnGatewayId()
      The ID of the virtual private gateway at the AWS side of the VPN connection.

      You must specify either TransitGatewayId or VpnGatewayId , but not both.

    • getVpnTunnelOptionsSpecifications

      @Stability(Stable) @Nullable default Object getVpnTunnelOptionsSpecifications()
      The tunnel options for the VPN connection.
    • builder

      @Stability(Stable) static CfnVPNConnectionProps.Builder builder()
      Returns:
      a CfnVPNConnectionProps.Builder of CfnVPNConnectionProps