@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.257Z") @Stability(value=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()))
.name("name")
.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")
.replicationConfig(ReplicationConfigProperty.builder()
.state("state")
.build())
.roleArn("roleArn")
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnEndpoint.Builder
A fluent builder for
CfnEndpoint. |
static interface |
CfnEndpoint.EndpointEventBusProperty
The event buses the endpoint is associated with.
|
static interface |
CfnEndpoint.FailoverConfigProperty
The failover configuration for an endpoint.
|
static interface |
CfnEndpoint.PrimaryProperty
The primary Region of the endpoint.
|
static interface |
CfnEndpoint.ReplicationConfigProperty
Endpoints can replicate all events to the secondary Region.
|
static interface |
CfnEndpoint.RoutingConfigProperty
The routing configuration of the endpoint.
|
static interface |
CfnEndpoint.SecondaryProperty
The secondary Region that processes events when failover is triggered or replication is enabled.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnEndpoint(software.constructs.Construct scope,
String id,
CfnEndpointProps props)
Create a new `AWS::Events::Endpoint`.
|
protected |
CfnEndpoint(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnEndpoint(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrArn()
The ARN of the endpoint.
|
String |
getAttrEndpointId()
The ID of the endpoint.
|
String |
getAttrEndpointUrl()
The URL of the endpoint.
|
String |
getAttrState()
The current state of the endpoint.
|
String |
getAttrStateReason()
The reason the endpoint is in its current state.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getDescription()
A description for the endpoint.
|
Object |
getEventBuses()
The event buses being used by the endpoint.
|
String |
getName()
The name of the endpoint.
|
Object |
getReplicationConfig()
Whether event replication was enabled or disabled for this endpoint.
|
String |
getRoleArn()
The ARN of the role used by event replication for the endpoint.
|
Object |
getRoutingConfig()
The routing configuration of the endpoint.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setDescription(String value)
A description for the endpoint.
|
void |
setEventBuses(IResolvable value)
The event buses being used by the endpoint.
|
void |
setEventBuses(List<Object> value)
The event buses being used by the endpoint.
|
void |
setName(String value)
The name of the endpoint.
|
void |
setReplicationConfig(CfnEndpoint.ReplicationConfigProperty value)
Whether event replication was enabled or disabled for this endpoint.
|
void |
setReplicationConfig(IResolvable value)
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(CfnEndpoint.RoutingConfigProperty value)
The routing configuration of the endpoint.
|
void |
setRoutingConfig(IResolvable value)
The routing configuration of the endpoint.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnEndpoint(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnEndpoint(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnEndpoint(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnEndpointProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrArn()
@Stability(value=Stable) @NotNull public String getAttrEndpointId()
@Stability(value=Stable) @NotNull public String getAttrEndpointUrl()
@Stability(value=Stable) @NotNull public String getAttrState()
@Stability(value=Stable) @NotNull public String getAttrStateReason()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public Object getEventBuses()
Exactly : 2
@Stability(value=Stable)
public void setEventBuses(@NotNull
IResolvable value)
Exactly : 2
@Stability(value=Stable)
public void setEventBuses(@NotNull
List<Object> value)
Exactly : 2
@Stability(value=Stable) @NotNull public String getName()
@Stability(value=Stable)
public void setName(@NotNull
String value)
@Stability(value=Stable) @NotNull public Object getRoutingConfig()
@Stability(value=Stable)
public void setRoutingConfig(@NotNull
CfnEndpoint.RoutingConfigProperty value)
@Stability(value=Stable)
public void setRoutingConfig(@NotNull
IResolvable value)
@Stability(value=Stable) @Nullable public String getDescription()
@Stability(value=Stable)
public void setDescription(@Nullable
String value)
@Stability(value=Stable) @Nullable public Object getReplicationConfig()
The default state is ENABLED which means you must supply a RoleArn . If you don't have a RoleArn or you don't want event replication enabled, set the state to DISABLED .
@Stability(value=Stable)
public void setReplicationConfig(@Nullable
CfnEndpoint.ReplicationConfigProperty value)
The default state is ENABLED which means you must supply a RoleArn . If you don't have a RoleArn or you don't want event replication enabled, set the state to DISABLED .
@Stability(value=Stable)
public void setReplicationConfig(@Nullable
IResolvable value)
The default state is ENABLED which means you must supply a RoleArn . If you don't have a RoleArn or you don't want event replication enabled, set the state to DISABLED .
@Stability(value=Stable) @Nullable public String getRoleArn()
@Stability(value=Stable)
public void setRoleArn(@Nullable
String value)
Copyright © 2022. All rights reserved.