Class CfnEventBus.Builder
java.lang.Object
software.amazon.awscdk.services.events.CfnEventBus.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEventBus>
- Enclosing class:
CfnEventBus
@Stability(Stable)
public static final class CfnEventBus.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEventBus>
A fluent builder for
CfnEventBus.-
Method Summary
Modifier and TypeMethodDescriptionbuild()static CfnEventBus.BuildereventSourceName(String eventSourceName) If you are creating a partner event bus, this specifies the partner event source that the new event bus will be matched with.The name of the new event bus.The permissions policy of the event bus, describing which other AWS accounts can write events to this event bus.tags(List<? extends CfnEventBus.TagEntryProperty> tags) Tags to associate with the event bus.
-
Method Details
-
create
@Stability(Stable) public static CfnEventBus.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
CfnEventBus.Builder.
-
name
The name of the new event bus.Custom event bus names can't contain the
/character, but you can use the/character in partner event bus names. In addition, for partner event buses, the name must exactly match the name of the partner event source that this event bus is matched to.You can't use the name
defaultfor a custom event bus, as this name is already used for your account's default event bus.- Parameters:
name- The name of the new event bus. This parameter is required.- Returns:
this- See Also:
-
eventSourceName
If you are creating a partner event bus, this specifies the partner event source that the new event bus will be matched with.- Parameters:
eventSourceName- If you are creating a partner event bus, this specifies the partner event source that the new event bus will be matched with. This parameter is required.- Returns:
this- See Also:
-
policy
The permissions policy of the event bus, describing which other AWS accounts can write events to this event bus.- Parameters:
policy- The permissions policy of the event bus, describing which other AWS accounts can write events to this event bus. This parameter is required.- Returns:
this- See Also:
-
tags
@Stability(Stable) public CfnEventBus.Builder tags(List<? extends CfnEventBus.TagEntryProperty> tags) Tags to associate with the event bus.- Parameters:
tags- Tags to associate with the event bus. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEventBus>- Returns:
- a newly built instance of
CfnEventBus.
-