Class S3SourceOptions.Builder

java.lang.Object
software.amazon.awscdk.pipelines.S3SourceOptions.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<S3SourceOptions>
Enclosing interface:
S3SourceOptions

@Stability(Stable) public static final class S3SourceOptions.Builder extends Object implements software.amazon.jsii.Builder<S3SourceOptions>
A builder for S3SourceOptions
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • actionName

      @Stability(Stable) public S3SourceOptions.Builder actionName(String actionName)
      Parameters:
      actionName - The action name used for this source in the CodePipeline.
      Returns:
      this
    • trigger

      @Stability(Stable) public S3SourceOptions.Builder trigger(S3Trigger trigger)
      Parameters:
      trigger - How should CodePipeline detect source changes for this Action. Note that if this is S3Trigger.EVENTS, you need to make sure to include the source Bucket in a CloudTrail Trail, as otherwise the CloudWatch Events will not be emitted.
      Returns:
      this
    • build

      @Stability(Stable) public S3SourceOptions build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<S3SourceOptions>
      Returns:
      a new instance of S3SourceOptions
      Throws:
      NullPointerException - if any required attribute was not provided