Interface S3SourceOptions

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
S3SourceOptions.Jsii$Proxy

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-12-17T21:37:40.998Z") @Stability(Stable) public interface S3SourceOptions extends software.amazon.jsii.JsiiSerializable
Options for S3 sources.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.codepipeline.actions.*;
 import software.amazon.awscdk.services.iam.*;
 import software.amazon.awscdk.pipelines.*;
 Role role;
 S3SourceOptions s3SourceOptions = S3SourceOptions.builder()
         .actionName("actionName")
         .role(role)
         .trigger(S3Trigger.NONE)
         .build();
 
  • Method Details

    • getActionName

      @Stability(Stable) @Nullable default String getActionName()
      The action name used for this source in the CodePipeline.

      Default: - The bucket name

    • getRole

      @Stability(Stable) @Nullable default IRole getRole()
      The role that will be assumed by the pipeline prior to executing the S3Source action.

      Default: - a new role will be generated

    • getTrigger

      @Stability(Stable) @Nullable default S3Trigger getTrigger()
      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.

      Default: S3Trigger.POLL

      See Also:
    • builder

      @Stability(Stable) static S3SourceOptions.Builder builder()
      Returns:
      a S3SourceOptions.Builder of S3SourceOptions