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
@Stability(Stable) public static CfnEndpoint.Builder create(software.constructs.Construct scope, String id) - 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.- 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
- See Also:
-
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
- See Also:
-
routingConfig
The routing configuration of the endpoint.- Parameters:
routingConfig
- The routing configuration of the endpoint. This parameter is required.- Returns:
this
- See Also:
-
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
- See Also:
-
description
A description for the endpoint.- Parameters:
description
- A description for the endpoint. This parameter is required.- Returns:
this
- See Also:
-
name
The name of the endpoint.- Parameters:
name
- The name of the endpoint. This parameter is required.- Returns:
this
- See Also:
-
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
- See Also:
-
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
- See Also:
-
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
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnEndpoint>
- Returns:
- a newly built instance of
CfnEndpoint
.
-