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 Details

    • create

      @Stability(Stable) public static CfnChannel.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnChannel.Builder.
    • destinations

      @Stability(Stable) public CfnChannel.Builder destinations(IResolvable 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

      @Stability(Stable) public CfnChannel.Builder destinations(List<? extends Object> 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

      @Stability(Stable) public CfnChannel.Builder name(String name)
      The name of the channel.

      Parameters:
      name - The name of the channel. This parameter is required.
      Returns:
      this
    • source

      @Stability(Stable) public CfnChannel.Builder source(String 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 Custom for 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

      @Stability(Stable) public CfnChannel.Builder tags(List<? extends CfnTag> tags)
      A list of tags.

      Parameters:
      tags - A list of tags. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnChannel build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnChannel>
      Returns:
      a newly built instance of CfnChannel.