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
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-04T00:39:32.554Z")
@Stability(Stable)
public class CfnEndpoint
extends CfnResource
implements IInspectable
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
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnEndpoint
.static interface
The event buses the endpoint is associated with.static interface
The failover configuration for an endpoint.static interface
The primary Region of the endpoint.static interface
Endpoints can replicate all events to the secondary Region.static interface
The routing configuration of the endpoint.static interface
The 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.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnEndpoint
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnEndpoint
(software.amazon.jsii.JsiiObjectRef objRef) CfnEndpoint
(software.constructs.Construct scope, String id, CfnEndpointProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe 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.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.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setDescription
(String value) A description for the endpoint.void
setEventBuses
(List<Object> value) The event buses being used by the endpoint.void
setEventBuses
(IResolvable value) The event buses being used by the endpoint.void
The name of the endpoint.void
setReplicationConfig
(IResolvable value) Whether event replication was enabled or disabled for this endpoint.void
Whether event replication was enabled or disabled for this endpoint.void
setRoleArn
(String value) The ARN of the role used by event replication for the endpoint.void
setRoutingConfig
(IResolvable value) The routing configuration of the endpoint.void
The 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, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in 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:
renderProperties
in 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:
getCfnProperties
in classCfnResource
-
getEventBuses
The event buses being used by the endpoint. -
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. -
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. -
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.
-