Class CfnChannelProps.Builder
java.lang.Object
software.amazon.awscdk.services.cloudtrail.CfnChannelProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnChannelProps>
- Enclosing interface:
- CfnChannelProps
@Stability(Stable)
public static final class CfnChannelProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnChannelProps>
A builder for
CfnChannelProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.destinations(List<? extends Object> destinations) Sets the value ofCfnChannelProps.getDestinations()destinations(IResolvable destinations) Sets the value ofCfnChannelProps.getDestinations()Sets the value ofCfnChannelProps.getName()Sets the value ofCfnChannelProps.getSource()Sets the value ofCfnChannelProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
destinations
Sets the value ofCfnChannelProps.getDestinations()- Parameters:
destinations- One or more event data stores to which events arriving through a channel will be logged.- Returns:
this
-
destinations
Sets the value ofCfnChannelProps.getDestinations()- Parameters:
destinations- One or more event data stores to which events arriving through a channel will be logged.- Returns:
this
-
name
Sets the value ofCfnChannelProps.getName()- Parameters:
name- The name of the channel.- Returns:
this
-
source
Sets the value ofCfnChannelProps.getSource()- Parameters:
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.- Returns:
this
-
tags
Sets the value ofCfnChannelProps.getTags()- Parameters:
tags- A list of tags.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnChannelProps>- Returns:
- a new instance of
CfnChannelProps - Throws:
NullPointerException- if any required attribute was not provided
-