Interface EnableVpnGatewayOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
,VpnGatewayProps
- All Known Implementing Classes:
EnableVpnGatewayOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:39.307Z")
@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") .subnetName("subnetName") .subnets(List.of(subnet)) .subnetType(SubnetType.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
-