@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.101Z") @Stability(value=Stable) public interface AddRouteOptions extends software.amazon.jsii.JsiiSerializable
Example:
// Example automatically generated from non-compiling source. May contain errors.
Vpc vpc = Vpc.Builder.create(this, "VPC")
.subnetConfiguration(List.of(SubnetConfiguration.builder()
.subnetType(SubnetType.PUBLIC)
.name("Public")
.build(), SubnetConfiguration.builder()
.subnetType(SubnetType.PRIVATE_ISOLATED)
.name("Isolated")
.build()))
.build();
((Subnet)vpc.isolatedSubnets[0]).addRoute("StaticRoute", AddRouteOptions.builder()
.routerId(vpc.getInternetGatewayId())
.routerType(RouterType.GATEWAY)
.destinationCidrBlock("8.8.8.8/32")
.build());
| Modifier and Type | Interface and Description |
|---|---|
static class |
AddRouteOptions.Builder
A builder for
AddRouteOptions |
static class |
AddRouteOptions.Jsii$Proxy
An implementation for
AddRouteOptions |
| Modifier and Type | Method and Description |
|---|---|
static AddRouteOptions.Builder |
builder() |
default String |
getDestinationCidrBlock()
IPv4 range this route applies to.
|
default String |
getDestinationIpv6CidrBlock()
IPv6 range this route applies to.
|
default Boolean |
getEnablesInternetConnectivity()
Whether this route will enable internet connectivity.
|
String |
getRouterId()
The ID of the router.
|
RouterType |
getRouterType()
What type of router to route this traffic to.
|
@Stability(value=Stable) @NotNull String getRouterId()
Can be an instance ID, gateway ID, etc, depending on the router type.
@Stability(value=Stable) @NotNull RouterType getRouterType()
@Stability(value=Stable) @Nullable default String getDestinationCidrBlock()
Default: '0.0.0.0/0'
@Stability(value=Stable) @Nullable default String getDestinationIpv6CidrBlock()
Default: - Uses IPv6
@Stability(value=Stable) @Nullable default Boolean getEnablesInternetConnectivity()
If true, this route will be added before any AWS resources that depend on internet connectivity in the VPC will be created.
Default: false
@Stability(value=Stable) static AddRouteOptions.Builder builder()
AddRouteOptions.Builder of AddRouteOptionsCopyright © 2022. All rights reserved.