Class CfnEventSource.Builder
java.lang.Object
software.amazon.awscdk.services.eventsv2.CfnEventSource.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEventSource>
- Enclosing class:
CfnEventSource
@Stability(Stable)
public static final class CfnEventSource.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEventSource>
A fluent builder for
CfnEventSource.-
Method Summary
Modifier and TypeMethodDescriptionbuild()configuration(IResolvable configuration) Event source configuration.configuration(CfnEventSource.EventSourceConfigurationProperty configuration) Event source configuration.static CfnEventSource.Builderdescription(String description) A description of the event source.eventBusArn(String eventBusArn) The ARN of the custom event bus the event source forwards onto.The name of the event source.The tags assigned to the event source.
-
Method Details
-
create
@Stability(Stable) public static CfnEventSource.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
CfnEventSource.Builder.
-
configuration
Event source configuration.Exactly one of the two variants must be set.
- Parameters:
configuration- Event source configuration. This parameter is required.- Returns:
this- See Also:
-
configuration
@Stability(Stable) public CfnEventSource.Builder configuration(CfnEventSource.EventSourceConfigurationProperty configuration) Event source configuration.Exactly one of the two variants must be set.
- Parameters:
configuration- Event source configuration. This parameter is required.- Returns:
this- See Also:
-
eventBusArn
The ARN of the custom event bus the event source forwards onto.- Parameters:
eventBusArn- The ARN of the custom event bus the event source forwards onto. This parameter is required.- Returns:
this- See Also:
-
name
The name of the event source.The first character must be alphanumeric; the remaining characters may also include '.', '-', and '_'. Names cannot begin with the reserved aws. prefix.
- Parameters:
name- The name of the event source. This parameter is required.- Returns:
this- See Also:
-
description
A description of the event source.Control characters and Unicode line separators are not allowed.
- Parameters:
description- A description of the event source. This parameter is required.- Returns:
this- See Also:
-
tags
The tags assigned to the event source.- Parameters:
tags- The tags assigned to the event source. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEventSource>- Returns:
- a newly built instance of
CfnEventSource.
-