Class S3SourceActionProps.Builder
java.lang.Object
software.amazon.awscdk.services.codepipeline.actions.S3SourceActionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<S3SourceActionProps>
- Enclosing interface:
S3SourceActionProps
@Stability(Stable)
public static final class S3SourceActionProps.Builder
extends Object
implements software.amazon.jsii.Builder<S3SourceActionProps>
A builder for
S3SourceActionProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionactionName
(String actionName) Sets the value ofCommonActionProps.getActionName()
Sets the value ofS3SourceActionProps.getBucket()
Sets the value ofS3SourceActionProps.getBucketKey()
build()
Builds the configured instance.Sets the value ofS3SourceActionProps.getOutput()
Sets the value ofCommonAwsActionProps.getRole()
Sets the value ofCommonActionProps.getRunOrder()
Sets the value ofS3SourceActionProps.getTrigger()
variablesNamespace
(String variablesNamespace) Sets the value ofCommonActionProps.getVariablesNamespace()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bucket
Sets the value ofS3SourceActionProps.getBucket()
- Parameters:
bucket
- The Amazon S3 bucket that stores the source code. This parameter is required. If you import an encrypted bucket in your stack, please specify the encryption key at import time by usingBucket.fromBucketAttributes()
method.- Returns:
this
-
bucketKey
Sets the value ofS3SourceActionProps.getBucketKey()
- Parameters:
bucketKey
- The key within the S3 bucket that stores the source code. This parameter is required.- Returns:
this
-
output
Sets the value ofS3SourceActionProps.getOutput()
- Parameters:
output
- the value to be set. This parameter is required.- Returns:
this
-
trigger
Sets the value ofS3SourceActionProps.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
-
role
Sets the value ofCommonAwsActionProps.getRole()
- Parameters:
role
- The Role in which context's this Action will be executing in. The Pipeline's Role will assume this Role (the required permissions for that will be granted automatically) right before executing this Action. This Action will be passed into yourinvalid @link
IAction.bind
invalid @link
ActionBindOptions.role
- Returns:
this
-
actionName
Sets the value ofCommonActionProps.getActionName()
- Parameters:
actionName
- The physical, human-readable name of the Action. This parameter is required. Note that Action names must be unique within a single Stage.- Returns:
this
-
runOrder
Sets the value ofCommonActionProps.getRunOrder()
- Parameters:
runOrder
- The runOrder property for this Action. RunOrder determines the relative order in which multiple Actions in the same Stage execute.- Returns:
this
-
variablesNamespace
Sets the value ofCommonActionProps.getVariablesNamespace()
- Parameters:
variablesNamespace
- The name of the namespace to use for variables emitted by this action.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<S3SourceActionProps>
- Returns:
- a new instance of
S3SourceActionProps
- Throws:
NullPointerException
- if any required attribute was not provided
-