Class S3DeployActionProps.Builder
java.lang.Object
software.amazon.awscdk.services.codepipeline.actions.S3DeployActionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<S3DeployActionProps>
- Enclosing interface:
S3DeployActionProps
@Stability(Stable)
public static final class S3DeployActionProps.Builder
extends Object
implements software.amazon.jsii.Builder<S3DeployActionProps>
A builder for
S3DeployActionProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaccessControl
(BucketAccessControl accessControl) Sets the value ofS3DeployActionProps.getAccessControl()
actionName
(String actionName) Sets the value ofCommonActionProps.getActionName()
Sets the value ofS3DeployActionProps.getBucket()
build()
Builds the configured instance.cacheControl
(List<? extends CacheControl> cacheControl) Sets the value ofS3DeployActionProps.getCacheControl()
encryptionKey
(IKey encryptionKey) Sets the value ofS3DeployActionProps.getEncryptionKey()
Sets the value ofS3DeployActionProps.getExtract()
Sets the value ofS3DeployActionProps.getInput()
Sets the value ofS3DeployActionProps.getObjectKey()
Sets the value ofCommonAwsActionProps.getRole()
Sets the value ofCommonActionProps.getRunOrder()
variablesNamespace
(String variablesNamespace) Sets the value ofCommonActionProps.getVariablesNamespace()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bucket
Sets the value ofS3DeployActionProps.getBucket()
- Parameters:
bucket
- The Amazon S3 bucket that is the deploy target. This parameter is required.- Returns:
this
-
input
Sets the value ofS3DeployActionProps.getInput()
- Parameters:
input
- The input Artifact to deploy to Amazon S3. This parameter is required.- Returns:
this
-
accessControl
@Stability(Stable) public S3DeployActionProps.Builder accessControl(BucketAccessControl accessControl) Sets the value ofS3DeployActionProps.getAccessControl()
- Parameters:
accessControl
- The specified canned ACL to objects deployed to Amazon S3. This overwrites any existing ACL that was applied to the object.- Returns:
this
-
cacheControl
@Stability(Stable) public S3DeployActionProps.Builder cacheControl(List<? extends CacheControl> cacheControl) Sets the value ofS3DeployActionProps.getCacheControl()
- Parameters:
cacheControl
- The caching behavior for requests/responses for objects in the bucket. The final cache control property will be the result of joining all of the provided array elements with a comma (plus a space after the comma).- Returns:
this
-
encryptionKey
Sets the value ofS3DeployActionProps.getEncryptionKey()
- Parameters:
encryptionKey
- The AWS KMS encryption key for the host bucket. The encryptionKey parameter encrypts uploaded artifacts with the provided AWS KMS key.- Returns:
this
-
extract
Sets the value ofS3DeployActionProps.getExtract()
- Parameters:
extract
- Should the deploy action extract the artifact before deploying to Amazon S3.- Returns:
this
-
objectKey
Sets the value ofS3DeployActionProps.getObjectKey()
- Parameters:
objectKey
- The key of the target object. This is required if extract is false.- 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 yourIAction.bind
method in theActionBindOptions.role
property.- 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<S3DeployActionProps>
- Returns:
- a new instance of
S3DeployActionProps
- Throws:
NullPointerException
- if any required attribute was not provided
-