Class CfnEndpoint
- All Implemented Interfaces:
IConstruct
,IDependable
,IInspectable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
AWS::Events::Endpoint
.
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();
-
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.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.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
ModifierConstructorDescriptionCfnEndpoint
(Construct scope, String id, CfnEndpointProps props) Create a newAWS::Events::Endpoint
.protected
CfnEndpoint
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnEndpoint
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionThe ARN of the endpoint.The ID of the endpoint.The URL of the endpoint.The current state 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.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.core.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
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 Construct scope, @NotNull String id, @NotNull CfnEndpointProps props) Create a newAWS::Events::Endpoint
.- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
props
-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
-- tree inspector to collect and process attributes.
-
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 current state 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.Exactly :
2
-
setEventBuses
The event buses being used by the endpoint.Exactly :
2
-
setEventBuses
The event buses being used by the endpoint.Exactly :
2
-
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.The default state is
ENABLED
which means you must supply aRoleArn
. If you don't have aRoleArn
or you don't want event replication enabled, set the state toDISABLED
. -
setReplicationConfig
Whether event replication was enabled or disabled for this endpoint.The default state is
ENABLED
which means you must supply aRoleArn
. If you don't have aRoleArn
or you don't want event replication enabled, set the state toDISABLED
. -
setReplicationConfig
@Stability(Stable) public void setReplicationConfig(@Nullable CfnEndpoint.ReplicationConfigProperty value) Whether event replication was enabled or disabled for this endpoint.The default state is
ENABLED
which means you must supply aRoleArn
. If you don't have aRoleArn
or you don't want event replication enabled, set the state toDISABLED
. -
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.
-