@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.382Z") @Stability(value=Stable) public interface CfnVPNConnectionProps extends software.amazon.jsii.JsiiSerializable
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnVPNConnectionProps.Builder
A builder for
CfnVPNConnectionProps |
static class |
CfnVPNConnectionProps.Jsii$Proxy
An implementation for
CfnVPNConnectionProps |
| Modifier and Type | Method and Description |
|---|---|
static CfnVPNConnectionProps.Builder |
builder() |
String |
getCustomerGatewayId()
The ID of the customer gateway at your end of the VPN connection.
|
default Object |
getStaticRoutesOnly()
Indicates whether the VPN connection uses static routes only.
|
default List<CfnTag> |
getTags()
Any tags assigned to the VPN connection.
|
default String |
getTransitGatewayId()
The ID of the transit gateway associated with the VPN connection.
|
String |
getType()
The type of VPN connection.
|
default String |
getVpnGatewayId()
The ID of the virtual private gateway at the AWS side of the VPN connection.
|
default Object |
getVpnTunnelOptionsSpecifications()
The tunnel options for the VPN connection.
|
@Stability(value=Stable) @NotNull String getCustomerGatewayId()
@Stability(value=Stable) @NotNull String getType()
@Stability(value=Stable) @Nullable default Object getStaticRoutesOnly()
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 .
@Stability(value=Stable) @Nullable default List<CfnTag> getTags()
@Stability(value=Stable) @Nullable default String getTransitGatewayId()
You must specify either TransitGatewayId or VpnGatewayId , but not both.
@Stability(value=Stable) @Nullable default String getVpnGatewayId()
You must specify either TransitGatewayId or VpnGatewayId , but not both.
@Stability(value=Stable) @Nullable default Object getVpnTunnelOptionsSpecifications()
@Stability(value=Stable) static CfnVPNConnectionProps.Builder builder()
CfnVPNConnectionProps.Builder of CfnVPNConnectionPropsCopyright © 2022. All rights reserved.