@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)", date="2022-05-11T19:24:28.132Z") @Stability(value=Experimental) public interface AddRouteOptions extends software.amazon.jsii.JsiiSerializable
Example:
Vpc vpc = Vpc.Builder.create(this, "VPC")
.subnetConfiguration(List.of(SubnetConfiguration.builder()
.subnetType(SubnetType.PUBLIC)
.name("Public")
.build(), SubnetConfiguration.builder()
.subnetType(SubnetType.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()
(experimental) IPv4 range this route applies to.
|
default String |
getDestinationIpv6CidrBlock()
(experimental) IPv6 range this route applies to.
|
default Boolean |
getEnablesInternetConnectivity()
(experimental) Whether this route will enable internet connectivity.
|
String |
getRouterId()
(experimental) The ID of the router.
|
RouterType |
getRouterType()
(experimental) What type of router to route this traffic to.
|
@Stability(value=Experimental) @NotNull String getRouterId()
Can be an instance ID, gateway ID, etc, depending on the router type.
@Stability(value=Experimental) @NotNull RouterType getRouterType()
@Stability(value=Experimental) @Nullable default String getDestinationCidrBlock()
Default: '0.0.0.0/0'
@Stability(value=Experimental) @Nullable default String getDestinationIpv6CidrBlock()
Default: - Uses IPv6
@Stability(value=Experimental) @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=Experimental) static AddRouteOptions.Builder builder()
AddRouteOptions.Builder of AddRouteOptionsCopyright © 2022. All rights reserved.