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();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnVPNConnectionProps
static final class
An implementation forCfnVPNConnectionProps
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
The ID of the customer gateway at your end of the VPN connection.default Object
Indicates whether the VPN connection uses static routes only.getTags()
Any tags assigned to the VPN connection.default String
The ID of the transit gateway associated with the VPN connection.getType()
The type of VPN connection.default String
The ID of the virtual private gateway at the AWS side of the VPN connection.default Object
The tunnel options for the VPN connection.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getCustomerGatewayId
The ID of the customer gateway at your end of the VPN connection. -
getType
The type of VPN connection. -
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
Any tags assigned to the VPN connection. -
getTransitGatewayId
The ID of the transit gateway associated with the VPN connection.You must specify either
TransitGatewayId
orVpnGatewayId
, but not both. -
getVpnGatewayId
The ID of the virtual private gateway at the AWS side of the VPN connection.You must specify either
TransitGatewayId
orVpnGatewayId
, but not both. -
getVpnTunnelOptionsSpecifications
The tunnel options for the VPN connection. -
builder
- Returns:
- a
CfnVPNConnectionProps.Builder
ofCfnVPNConnectionProps
-