Class CfnEndpoint
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.events.CfnEndpoint
- All Implemented Interfaces:
IInspectable,IEndpointRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:38.849Z")
@Stability(Stable)
public class CfnEndpoint
extends CfnResource
implements IInspectable, IEndpointRef
A global endpoint used to improve your application's availability by making it regional-fault tolerant.
For more information about global endpoints, see Making applications Regional-fault tolerant with global endpoints and event replication in the Amazon EventBridge 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.events.*;
CfnEndpoint cfnEndpoint = CfnEndpoint.Builder.create(this, "MyCfnEndpoint")
.eventBuses(List.of(EndpointEventBusProperty.builder()
.eventBusArn("eventBusArn")
.build()))
.routingConfig(RoutingConfigProperty.builder()
.failoverConfig(FailoverConfigProperty.builder()
.primary(PrimaryProperty.builder()
.healthCheck("healthCheck")
.build())
.secondary(SecondaryProperty.builder()
.route("route")
.build())
.build())
.build())
// the properties below are optional
.description("description")
.name("name")
.replicationConfig(ReplicationConfigProperty.builder()
.state("state")
.build())
.roleArn("roleArn")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnEndpoint.static interfaceThe event buses the endpoint is associated with.static interfaceThe failover configuration for an endpoint.static interfaceThe primary Region of the endpoint.static interfaceEndpoints can replicate all events to the secondary Region.static interfaceThe routing configuration of the endpoint.static interfaceThe secondary Region that processes events when failover is triggered or replication is enabled.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.services.events.IEndpointRef
IEndpointRef.Jsii$Default, IEndpointRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnEndpoint(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnEndpoint(software.amazon.jsii.JsiiObjectRef objRef) CfnEndpoint(software.constructs.Construct scope, String id, CfnEndpointProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic IEndpointReffromEndpointArn(software.constructs.Construct scope, String id, String arn) Creates a new IEndpointRef from an ARN.static IEndpointReffromEndpointName(software.constructs.Construct scope, String id, String endpointName) Creates a new IEndpointRef from a endpointName.The ARN of the endpoint.The ID of the endpoint.The URL of the endpoint.The main Region of the endpoint.The reason the endpoint is in its current state.A description for the endpoint.A reference to a Endpoint resource.The event buses being used by the endpoint.getName()The name of the endpoint.Whether event replication was enabled or disabled for this endpoint.The ARN of the role used by event replication for the endpoint.The routing configuration of the endpoint.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetDescription(String value) A description for the endpoint.voidsetEventBuses(List<Object> value) The event buses being used by the endpoint.voidsetEventBuses(IResolvable value) The event buses being used by the endpoint.voidThe name of the endpoint.voidsetReplicationConfig(IResolvable value) Whether event replication was enabled or disabled for this endpoint.voidWhether event replication was enabled or disabled for this endpoint.voidsetRoleArn(String value) The ARN of the role used by event replication for the endpoint.voidsetRoutingConfig(IResolvable value) The routing configuration of the endpoint.voidThe routing configuration of the endpoint.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, 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.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnEndpoint
protected CfnEndpoint(software.amazon.jsii.JsiiObjectRef objRef) -
CfnEndpoint
protected CfnEndpoint(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnEndpoint
@Stability(Stable) public CfnEndpoint(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnEndpointProps props) - 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
-
fromEndpointArn
@Stability(Stable) @NotNull public static IEndpointRef fromEndpointArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String arn) Creates a new IEndpointRef from an ARN.- Parameters:
scope- This parameter is required.id- This parameter is required.arn- This parameter is required.
-
fromEndpointName
@Stability(Stable) @NotNull public static IEndpointRef fromEndpointName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String endpointName) Creates a new IEndpointRef from a endpointName.- Parameters:
scope- This parameter is required.id- This parameter is required.endpointName- 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 endpoint. -
getAttrEndpointId
The ID of the endpoint. -
getAttrEndpointUrl
The URL of the endpoint. -
getAttrState
The main Region of the endpoint. -
getAttrStateReason
The reason the endpoint is in its current state. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getEndpointRef
A reference to a Endpoint resource.- Specified by:
getEndpointRefin interfaceIEndpointRef
-
getEventBuses
The event buses being used by the endpoint.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnEndpoint.EndpointEventBusProperty> -
setEventBuses
The event buses being used by the endpoint. -
setEventBuses
The event buses being used by the endpoint. -
getRoutingConfig
The routing configuration of the endpoint.Returns union: either
IResolvableorCfnEndpoint.RoutingConfigProperty -
setRoutingConfig
The routing configuration of the endpoint. -
setRoutingConfig
The routing configuration of the endpoint. -
getDescription
A description for the endpoint. -
setDescription
A description for the endpoint. -
getName
The name of the endpoint. -
setName
The name of the endpoint. -
getReplicationConfig
Whether event replication was enabled or disabled for this endpoint.Returns union: either
IResolvableorCfnEndpoint.ReplicationConfigProperty -
setReplicationConfig
Whether event replication was enabled or disabled for this endpoint. -
setReplicationConfig
@Stability(Stable) public void setReplicationConfig(@Nullable CfnEndpoint.ReplicationConfigProperty value) Whether event replication was enabled or disabled for this endpoint. -
getRoleArn
The ARN of the role used by event replication for the endpoint. -
setRoleArn
The ARN of the role used by event replication for the endpoint.
-