Interface CfnVPNConnectionProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnVPNConnectionProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.89.0 (build 2f74b3e)",
date="2023-10-26T00:56:06.999Z")
@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();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnVPNConnectionPropsstatic final classAn implementation forCfnVPNConnectionProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()The ID of the customer gateway at your end of the VPN connection.default ObjectIndicates whether the VPN connection uses static routes only.getTags()Any tags assigned to the VPN connection.default StringThe ID of the transit gateway associated with the VPN connection.getType()The type of VPN connection.default StringThe ID of the virtual private gateway at the AWS side of the VPN connection.default ObjectThe 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.- See Also:
-
getType
The type of VPN connection.- See Also:
-
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.- See Also:
-
getTags
Any tags assigned to the VPN connection.- See Also:
-
getTransitGatewayId
The ID of the transit gateway associated with the VPN connection.You must specify either
TransitGatewayIdorVpnGatewayId, but not both.- See Also:
-
getVpnGatewayId
The ID of the virtual private gateway at the AWS side of the VPN connection.You must specify either
TransitGatewayIdorVpnGatewayId, but not both.- See Also:
-
getVpnTunnelOptionsSpecifications
The tunnel options for the VPN connection.- See Also:
-
builder
- Returns:
- a
CfnVPNConnectionProps.BuilderofCfnVPNConnectionProps
-