Class CfnRouteServerPeer
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.CfnRouteServerPeer
- All Implemented Interfaces:
IInspectable,IRouteServerPeerRef,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.988Z")
@Stability(Stable)
public class CfnRouteServerPeer
extends CfnResource
implements IInspectable, IRouteServerPeerRef, ITaggableV2
Specifies a BGP peer configuration for a route server endpoint.
A route server peer is a session between a route server endpoint and the device deployed in AWS (such as a firewall appliance or other network security function running on an EC2 instance).
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.*;
CfnRouteServerPeer cfnRouteServerPeer = CfnRouteServerPeer.Builder.create(this, "MyCfnRouteServerPeer")
.bgpOptions(BgpOptionsProperty.builder()
.peerAsn(123)
.peerLivenessDetection("peerLivenessDetection")
.build())
.peerAddress("peerAddress")
.routeServerEndpointId("routeServerEndpointId")
// the properties below are optional
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceThe BGP configuration options for this peer, including ASN (Autonomous System Number) and BFD (Bidrectional Forwarding Detection) settings.static final classA fluent builder forCfnRouteServerPeer.Nested 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.IRouteServerPeerRef
IRouteServerPeerRef.Jsii$Default, IRouteServerPeerRef.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
ConstructorsModifierConstructorDescriptionprotectedCfnRouteServerPeer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnRouteServerPeer(software.amazon.jsii.JsiiObjectRef objRef) CfnRouteServerPeer(software.constructs.Construct scope, String id, CfnRouteServerPeerProps props) Create a newAWS::EC2::RouteServerPeer. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForRouteServerPeer(IRouteServerPeerRef resource) static IRouteServerPeerReffromRouteServerPeerArn(software.constructs.Construct scope, String id, String arn) Creates a new IRouteServerPeerRef from an ARN.static IRouteServerPeerReffromRouteServerPeerId(software.constructs.Construct scope, String id, String routeServerPeerId) Creates a new IRouteServerPeerRef from a routeServerPeerId.The ARN of the route server peer.The IP address of the Elastic network interface for the route server endpoint.The ID of the Elastic network interface for the route server endpoint.The ID of the route server peer.The ID of the route server associated with this peer.The ID of the subnet containing the route server peer.The ID of the VPC containing the route server peer.The BGP configuration options for this peer, including ASN (Autonomous System Number) and BFD (Bidrectional Forwarding Detection) settings.Tag Manager which manages the tags for this resource.The IPv4 address of the peer device.The ID of the route server endpoint associated with this peer.A reference to a RouteServerPeer resource.getTags()Any tags assigned to the route server peer.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnRouteServerPeer.renderProperties(Map<String, Object> props) voidsetBgpOptions(IResolvable value) The BGP configuration options for this peer, including ASN (Autonomous System Number) and BFD (Bidrectional Forwarding Detection) settings.voidThe BGP configuration options for this peer, including ASN (Autonomous System Number) and BFD (Bidrectional Forwarding Detection) settings.voidsetPeerAddress(String value) The IPv4 address of the peer device.voidsetRouteServerEndpointId(String value) The ID of the route server endpoint associated with this peer.voidAny tags assigned to the route server peer.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
-
CfnRouteServerPeer
protected CfnRouteServerPeer(software.amazon.jsii.JsiiObjectRef objRef) -
CfnRouteServerPeer
protected CfnRouteServerPeer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnRouteServerPeer
@Stability(Stable) public CfnRouteServerPeer(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnRouteServerPeerProps props) Create a newAWS::EC2::RouteServerPeer.- 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
-
arnForRouteServerPeer
@Stability(Stable) @NotNull public static String arnForRouteServerPeer(@NotNull IRouteServerPeerRef resource) - Parameters:
resource- This parameter is required.
-
fromRouteServerPeerArn
@Stability(Stable) @NotNull public static IRouteServerPeerRef fromRouteServerPeerArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String arn) Creates a new IRouteServerPeerRef from an ARN.- Parameters:
scope- This parameter is required.id- This parameter is required.arn- This parameter is required.
-
fromRouteServerPeerId
@Stability(Stable) @NotNull public static IRouteServerPeerRef fromRouteServerPeerId(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String routeServerPeerId) Creates a new IRouteServerPeerRef from a routeServerPeerId.- Parameters:
scope- This parameter is required.id- This parameter is required.routeServerPeerId- This parameter is required.
-
isCfnRouteServerPeer
Checks whether the given object is a CfnRouteServerPeer.- 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 peer. -
getAttrEndpointEniAddress
The IP address of the Elastic network interface for the route server endpoint. -
getAttrEndpointEniId
The ID of the Elastic network interface for the route server endpoint. -
getAttrId
The ID of the route server peer. -
getAttrRouteServerId
The ID of the route server associated with this peer. -
getAttrSubnetId
The ID of the subnet containing the route server peer. -
getAttrVpcId
The ID of the VPC containing the route server peer. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getRouteServerPeerRef
A reference to a RouteServerPeer resource.- Specified by:
getRouteServerPeerRefin interfaceIRouteServerPeerRef
-
getBgpOptions
The BGP configuration options for this peer, including ASN (Autonomous System Number) and BFD (Bidrectional Forwarding Detection) settings.Returns union: either
IResolvableorCfnRouteServerPeer.BgpOptionsProperty -
setBgpOptions
The BGP configuration options for this peer, including ASN (Autonomous System Number) and BFD (Bidrectional Forwarding Detection) settings. -
setBgpOptions
The BGP configuration options for this peer, including ASN (Autonomous System Number) and BFD (Bidrectional Forwarding Detection) settings. -
getPeerAddress
The IPv4 address of the peer device. -
setPeerAddress
The IPv4 address of the peer device. -
getRouteServerEndpointId
The ID of the route server endpoint associated with this peer. -
setRouteServerEndpointId
The ID of the route server endpoint associated with this peer. -
getTags
Any tags assigned to the route server peer. -
setTags
Any tags assigned to the route server peer.
-