Interface CfnVPNConnectionProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnVPNConnectionProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.101.0 (build b95fe5d)",
date="2024-07-12T19:34:00.813Z")
@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
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.- 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
TransitGatewayId
orVpnGatewayId
, 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
TransitGatewayId
orVpnGatewayId
, but not both.- See Also:
-
getVpnTunnelOptionsSpecifications
The tunnel options for the VPN connection.- See Also:
-
builder
- Returns:
- a
CfnVPNConnectionProps.Builder
ofCfnVPNConnectionProps
-