Interface EnableVpnGatewayOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
,VpnGatewayProps
- All Known Implementing Classes:
EnableVpnGatewayOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-27T16:50:56.567Z")
@Stability(Stable)
public interface EnableVpnGatewayOptions
extends software.amazon.jsii.JsiiSerializable, VpnGatewayProps
Options for the Vpc.enableVpnGateway() method.
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.*; Subnet subnet; SubnetFilter subnetFilter; EnableVpnGatewayOptions enableVpnGatewayOptions = EnableVpnGatewayOptions.builder() .type("type") // the properties below are optional .amazonSideAsn(123) .vpnRoutePropagation(List.of(SubnetSelection.builder() .availabilityZones(List.of("availabilityZones")) .onePerAz(false) .subnetFilters(List.of(subnetFilter)) .subnetGroupName("subnetGroupName") .subnets(List.of(subnet)) .subnetType(SubnetType.PRIVATE_ISOLATED) .build())) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forEnableVpnGatewayOptions
static final class
An implementation forEnableVpnGatewayOptions
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default List<SubnetSelection>
Provide an array of subnets where the route propagation should be added.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
Methods inherited from interface software.amazon.awscdk.services.ec2.VpnGatewayProps
getAmazonSideAsn, getType
-
Method Details
-
getVpnRoutePropagation
Provide an array of subnets where the route propagation should be added.Default: noPropagation
-
builder
- Returns:
- a
EnableVpnGatewayOptions.Builder
ofEnableVpnGatewayOptions
-