@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.134Z") @Stability(value=Stable) public class CfnClientVpnRoute extends CfnResource implements IInspectable
Specifies a network route to add to a Client VPN endpoint. Each Client VPN endpoint has a route table that describes the available destination network routes. Each route in the route table specifies the path for traffic to specific resources or networks.
A target network association must be created before you can specify a route. If you're setting up all the components of a Client VPN endpoint at the same time, you must use the DependsOn Attribute to declare a dependency on the AWS::EC2::ClientVpnTargetNetworkAssociation resource.
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.*;
CfnClientVpnRoute cfnClientVpnRoute = CfnClientVpnRoute.Builder.create(this, "MyCfnClientVpnRoute")
.clientVpnEndpointId("clientVpnEndpointId")
.destinationCidrBlock("destinationCidrBlock")
.targetVpcSubnetId("targetVpcSubnetId")
// the properties below are optional
.description("description")
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnClientVpnRoute.Builder
A fluent builder for
CfnClientVpnRoute. |
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnClientVpnRoute(software.constructs.Construct scope,
String id,
CfnClientVpnRouteProps props)
Create a new `AWS::EC2::ClientVpnRoute`.
|
protected |
CfnClientVpnRoute(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnClientVpnRoute(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,Object> |
getCfnProperties() |
String |
getClientVpnEndpointId()
The ID of the Client VPN endpoint to which to add the route.
|
String |
getDescription()
A brief description of the route.
|
String |
getDestinationCidrBlock()
The IPv4 address range, in CIDR notation, of the route destination.
|
String |
getTargetVpcSubnetId()
The ID of the subnet through which you want to route traffic.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setClientVpnEndpointId(String value)
The ID of the Client VPN endpoint to which to add the route.
|
void |
setDescription(String value)
A brief description of the route.
|
void |
setDestinationCidrBlock(String value)
The IPv4 address range, in CIDR notation, of the route destination.
|
void |
setTargetVpcSubnetId(String value)
The ID of the subnet through which you want to route traffic.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnClientVpnRoute(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnClientVpnRoute(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnClientVpnRoute(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnClientVpnRouteProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public String getClientVpnEndpointId()
@Stability(value=Stable)
public void setClientVpnEndpointId(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getDestinationCidrBlock()
0.0.0.0/0@Stability(value=Stable)
public void setDestinationCidrBlock(@NotNull
String value)
0.0.0.0/0@Stability(value=Stable) @NotNull public String getTargetVpcSubnetId()
The specified subnet must be an existing target network of the Client VPN endpoint.
Alternatively, if you're adding a route for the local network, specify local .
@Stability(value=Stable)
public void setTargetVpcSubnetId(@NotNull
String value)
The specified subnet must be an existing target network of the Client VPN endpoint.
Alternatively, if you're adding a route for the local network, specify local .
@Stability(value=Stable) @Nullable public String getDescription()
@Stability(value=Stable)
public void setDescription(@Nullable
String value)
Copyright © 2022. All rights reserved.