Package software.amazon.awscdk.pipelines
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionactionName
(String actionName) Sets the value ofS3SourceOptions.getActionName()
build()
Builds the configured instance.Sets the value ofS3SourceOptions.getRole()
Sets the value ofS3SourceOptions.getTrigger()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
actionName
Sets the value ofS3SourceOptions.getActionName()
- Parameters:
actionName
- The action name used for this source in the CodePipeline.- Returns:
this
-
role
Sets the value ofS3SourceOptions.getRole()
- Parameters:
role
- The role that will be assumed by the pipeline prior to executing theS3Source
action.- Returns:
this
-
trigger
Sets the value ofS3SourceOptions.getTrigger()
- 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
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<S3SourceOptions>
- Returns:
- a new instance of
S3SourceOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-