Class CfnChannel.Builder
java.lang.Object
software.amazon.awscdk.services.cloudtrail.CfnChannel.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnChannel>
- Enclosing class:
- CfnChannel
@Stability(Stable)
public static final class CfnChannel.Builder
extends Object
implements software.amazon.jsii.Builder<CfnChannel>
A fluent builder for
CfnChannel.-
Method Summary
Modifier and TypeMethodDescriptionbuild()static CfnChannel.Builderdestinations(List<? extends Object> destinations) One or more event data stores to which events arriving through a channel will be logged.destinations(IResolvable destinations) One or more event data stores to which events arriving through a channel will be logged.The name of the channel.The name of the partner or external event source.A list of tags.
-
Method Details
-
create
- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
- Returns:
- a new instance of
CfnChannel.Builder.
-
destinations
One or more event data stores to which events arriving through a channel will be logged.- Parameters:
destinations- One or more event data stores to which events arriving through a channel will be logged. This parameter is required.- Returns:
this
-
destinations
One or more event data stores to which events arriving through a channel will be logged.- Parameters:
destinations- One or more event data stores to which events arriving through a channel will be logged. This parameter is required.- Returns:
this
-
name
The name of the channel.- Parameters:
name- The name of the channel. This parameter is required.- Returns:
this
-
source
The name of the partner or external event source.You cannot change this name after you create the channel. A maximum of one channel is allowed per source.
A source can be either
Customfor all valid non- AWS events, or the name of a partner event source. For information about the source names for available partners, see Additional information about integration partners in the CloudTrail User Guide.- Parameters:
source- The name of the partner or external event source. This parameter is required.- Returns:
this
-
tags
A list of tags.- Parameters:
tags- A list of tags. This parameter is required.- Returns:
this
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnChannel>- Returns:
- a newly built instance of
CfnChannel.
-