Class CfnEndpoint.Builder
java.lang.Object
software.amazon.awscdk.services.events.CfnEndpoint.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEndpoint>
- Enclosing class:
- CfnEndpoint
@Stability(Stable)
public static final class CfnEndpoint.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEndpoint>
A fluent builder for
CfnEndpoint
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static CfnEndpoint.Builder
description
(String description) A description for the endpoint.eventBuses
(List<? extends Object> eventBuses) The event buses being used by the endpoint.eventBuses
(IResolvable eventBuses) The event buses being used by the endpoint.The name of the endpoint.replicationConfig
(IResolvable replicationConfig) Whether event replication was enabled or disabled for this endpoint.replicationConfig
(CfnEndpoint.ReplicationConfigProperty replicationConfig) Whether event replication was enabled or disabled for this endpoint.The ARN of the role used by event replication for the endpoint.routingConfig
(IResolvable routingConfig) The routing configuration of the endpoint.routingConfig
(CfnEndpoint.RoutingConfigProperty routingConfig) The routing configuration of the endpoint.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnEndpoint.Builder
.
-
eventBuses
The event buses being used by the endpoint.Exactly :
2
- Parameters:
eventBuses
- The event buses being used by the endpoint. This parameter is required.- Returns:
this
-
eventBuses
The event buses being used by the endpoint.Exactly :
2
- Parameters:
eventBuses
- The event buses being used by the endpoint. This parameter is required.- Returns:
this
-
routingConfig
The routing configuration of the endpoint.- Parameters:
routingConfig
- The routing configuration of the endpoint. This parameter is required.- Returns:
this
-
routingConfig
@Stability(Stable) public CfnEndpoint.Builder routingConfig(CfnEndpoint.RoutingConfigProperty routingConfig) The routing configuration of the endpoint.- Parameters:
routingConfig
- The routing configuration of the endpoint. This parameter is required.- Returns:
this
-
description
A description for the endpoint.- Parameters:
description
- A description for the endpoint. This parameter is required.- Returns:
this
-
name
The name of the endpoint.- Parameters:
name
- The name of the endpoint. This parameter is required.- Returns:
this
-
replicationConfig
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
.- Parameters:
replicationConfig
- Whether event replication was enabled or disabled for this endpoint. This parameter is required.- Returns:
this
-
replicationConfig
@Stability(Stable) public CfnEndpoint.Builder replicationConfig(CfnEndpoint.ReplicationConfigProperty replicationConfig) 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
.- Parameters:
replicationConfig
- Whether event replication was enabled or disabled for this endpoint. This parameter is required.- Returns:
this
-
roleArn
The ARN of the role used by event replication for the endpoint.- Parameters:
roleArn
- The ARN of the role used by event replication for the endpoint. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnEndpoint>
- Returns:
- a newly built instance of
CfnEndpoint
.
-