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
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.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnEndpoint(Construct scope, String id, CfnEndpointProps props) Create a newAWS::Events::Endpoint.protectedCfnEndpoint(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnEndpoint(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.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.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods 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.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:
inspectin 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:
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 current state of the endpoint. -
getAttrStateReason
The reason the endpoint is in its current state. -
getCfnProperties
- Overrides:
getCfnPropertiesin 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
ENABLEDwhich means you must supply aRoleArn. If you don't have aRoleArnor 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
ENABLEDwhich means you must supply aRoleArn. If you don't have aRoleArnor 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
ENABLEDwhich means you must supply aRoleArn. If you don't have aRoleArnor 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.
-