Class CfnRouteServer
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.ec2.CfnRouteServer
- All Implemented Interfaces:
IInspectable,IRouteServerRef,IEnvironmentAware,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-05T22:26:34.984Z")
@Stability(Stable)
public class CfnRouteServer
extends CfnResource
implements IInspectable, IRouteServerRef, ITaggableV2
Specifies a route server to manage dynamic routing in a VPC.
Amazon VPC Route Server simplifies routing for traffic between workloads that are deployed within a VPC and its internet gateways. With this feature, VPC Route Server dynamically updates VPC and internet gateway route tables with your preferred routes to achieve routing fault tolerance for those workloads. This enables you to automatically reroute traffic within a VPC, which increases the manageability of VPC routing and interoperability with third-party workloads.
For more information see Dynamic routing in your VPC with VPC Route Server in the Amazon VPC User Guide .
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.*;
CfnRouteServer cfnRouteServer = CfnRouteServer.Builder.create(this, "MyCfnRouteServer")
.amazonSideAsn(123)
// the properties below are optional
.persistRoutes("persistRoutes")
.persistRoutesDuration(123)
.snsNotificationsEnabled(false)
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.ec2.IRouteServerRef
IRouteServerRef.Jsii$Default, IRouteServerRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnRouteServer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnRouteServer(software.amazon.jsii.JsiiObjectRef objRef) CfnRouteServer(software.constructs.Construct scope, String id, CfnRouteServerProps props) Create a newAWS::EC2::RouteServer. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForRouteServer(IRouteServerRef resource) static IRouteServerReffromRouteServerArn(software.constructs.Construct scope, String id, String arn) Creates a new IRouteServerRef from an ARN.static IRouteServerReffromRouteServerId(software.constructs.Construct scope, String id, String routeServerId) Creates a new IRouteServerRef from a routeServerId.The Border Gateway Protocol (BGP) Autonomous System Number (ASN) for the appliance.The ARN of the route server.The ID of the route server.Tag Manager which manages the tags for this resource.Indicates whether routes should be persisted after all BGP sessions are terminated.The number of minutes a route server will wait after BGP is re-established to unpersist the routes in the FIB and RIB.A reference to a RouteServer resource.Indicates whether SNS notifications are enabled for the route server.getTags()Any tags assigned to the route server.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnRouteServer.renderProperties(Map<String, Object> props) voidsetAmazonSideAsn(Number value) The Border Gateway Protocol (BGP) Autonomous System Number (ASN) for the appliance.voidsetPersistRoutes(String value) Indicates whether routes should be persisted after all BGP sessions are terminated.voidsetPersistRoutesDuration(Number value) The number of minutes a route server will wait after BGP is re-established to unpersist the routes in the FIB and RIB.voidIndicates whether SNS notifications are enabled for the route server.voidIndicates whether SNS notifications are enabled for the route server.voidAny tags assigned to the route server.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnRouteServer
protected CfnRouteServer(software.amazon.jsii.JsiiObjectRef objRef) -
CfnRouteServer
protected CfnRouteServer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnRouteServer
@Stability(Stable) public CfnRouteServer(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnRouteServerProps props) Create a newAWS::EC2::RouteServer.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
arnForRouteServer
@Stability(Stable) @NotNull public static String arnForRouteServer(@NotNull IRouteServerRef resource) - Parameters:
resource- This parameter is required.
-
fromRouteServerArn
@Stability(Stable) @NotNull public static IRouteServerRef fromRouteServerArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String arn) Creates a new IRouteServerRef from an ARN.- Parameters:
scope- This parameter is required.id- This parameter is required.arn- This parameter is required.
-
fromRouteServerId
@Stability(Stable) @NotNull public static IRouteServerRef fromRouteServerId(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String routeServerId) Creates a new IRouteServerRef from a routeServerId.- Parameters:
scope- This parameter is required.id- This parameter is required.routeServerId- This parameter is required.
-
isCfnRouteServer
Checks whether the given object is a CfnRouteServer.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrArn
The ARN of the route server. -
getAttrId
The ID of the route server. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getRouteServerRef
A reference to a RouteServer resource.- Specified by:
getRouteServerRefin interfaceIRouteServerRef
-
getAmazonSideAsn
The Border Gateway Protocol (BGP) Autonomous System Number (ASN) for the appliance. -
setAmazonSideAsn
The Border Gateway Protocol (BGP) Autonomous System Number (ASN) for the appliance. -
getPersistRoutes
Indicates whether routes should be persisted after all BGP sessions are terminated. -
setPersistRoutes
Indicates whether routes should be persisted after all BGP sessions are terminated. -
getPersistRoutesDuration
The number of minutes a route server will wait after BGP is re-established to unpersist the routes in the FIB and RIB. -
setPersistRoutesDuration
The number of minutes a route server will wait after BGP is re-established to unpersist the routes in the FIB and RIB. -
getSnsNotificationsEnabled
Indicates whether SNS notifications are enabled for the route server.Returns union: either
BooleanorIResolvable -
setSnsNotificationsEnabled
Indicates whether SNS notifications are enabled for the route server. -
setSnsNotificationsEnabled
Indicates whether SNS notifications are enabled for the route server. -
getTags
Any tags assigned to the route server. -
setTags
Any tags assigned to the route server.
-