Class CfnPipelinePropsMixin.ArtifactStoreProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.codepipeline.CfnPipelinePropsMixin.ArtifactStoreProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPipelinePropsMixin.ArtifactStoreProperty>
- Enclosing interface:
CfnPipelinePropsMixin.ArtifactStoreProperty
@Stability(Stable)
public static final class CfnPipelinePropsMixin.ArtifactStoreProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPipelinePropsMixin.ArtifactStoreProperty>
A builder for
CfnPipelinePropsMixin.ArtifactStoreProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.encryptionKey(CfnPipelinePropsMixin.EncryptionKeyProperty encryptionKey) Sets the value ofCfnPipelinePropsMixin.ArtifactStoreProperty.getEncryptionKey()encryptionKey(IResolvable encryptionKey) Sets the value ofCfnPipelinePropsMixin.ArtifactStoreProperty.getEncryptionKey()Sets the value ofCfnPipelinePropsMixin.ArtifactStoreProperty.getLocation()location(IBucketRef location) Sets the value ofCfnPipelinePropsMixin.ArtifactStoreProperty.getLocation()Sets the value ofCfnPipelinePropsMixin.ArtifactStoreProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
encryptionKey
@Stability(Stable) public CfnPipelinePropsMixin.ArtifactStoreProperty.Builder encryptionKey(IResolvable encryptionKey) Sets the value ofCfnPipelinePropsMixin.ArtifactStoreProperty.getEncryptionKey()- Parameters:
encryptionKey- The encryption key used to encrypt the data in the artifact store, such as an AWS Key Management Service ( AWS KMS) key. If this is undefined, the default key for Amazon S3 is used. To see an example artifact store encryption key field, see the example structure here: AWS::CodePipeline::Pipeline .- Returns:
this
-
encryptionKey
@Stability(Stable) public CfnPipelinePropsMixin.ArtifactStoreProperty.Builder encryptionKey(CfnPipelinePropsMixin.EncryptionKeyProperty encryptionKey) Sets the value ofCfnPipelinePropsMixin.ArtifactStoreProperty.getEncryptionKey()- Parameters:
encryptionKey- The encryption key used to encrypt the data in the artifact store, such as an AWS Key Management Service ( AWS KMS) key. If this is undefined, the default key for Amazon S3 is used. To see an example artifact store encryption key field, see the example structure here: AWS::CodePipeline::Pipeline .- Returns:
this
-
location
@Stability(Stable) public CfnPipelinePropsMixin.ArtifactStoreProperty.Builder location(String location) Sets the value ofCfnPipelinePropsMixin.ArtifactStoreProperty.getLocation()- Parameters:
location- The S3 bucket used for storing the artifacts for a pipeline. You can specify the name of an S3 bucket but not a folder in the bucket. A folder to contain the pipeline artifacts is created for you based on the name of the pipeline. You can use any S3 bucket in the same AWS Region as the pipeline to store your pipeline artifacts.- Returns:
this
-
location
@Stability(Stable) public CfnPipelinePropsMixin.ArtifactStoreProperty.Builder location(IBucketRef location) Sets the value ofCfnPipelinePropsMixin.ArtifactStoreProperty.getLocation()- Parameters:
location- The S3 bucket used for storing the artifacts for a pipeline. You can specify the name of an S3 bucket but not a folder in the bucket. A folder to contain the pipeline artifacts is created for you based on the name of the pipeline. You can use any S3 bucket in the same AWS Region as the pipeline to store your pipeline artifacts.- Returns:
this
-
type
Sets the value ofCfnPipelinePropsMixin.ArtifactStoreProperty.getType()- Parameters:
type- The type of the artifact store, such as S3.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPipelinePropsMixin.ArtifactStoreProperty>- Returns:
- a new instance of
CfnPipelinePropsMixin.ArtifactStoreProperty - Throws:
NullPointerException- if any required attribute was not provided
-