Class CfnPipeline.ArtifactStoreProperty.Builder
java.lang.Object
software.amazon.awscdk.services.codepipeline.CfnPipeline.ArtifactStoreProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPipeline.ArtifactStoreProperty>
- Enclosing interface:
CfnPipeline.ArtifactStoreProperty
@Stability(Stable)
public static final class CfnPipeline.ArtifactStoreProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPipeline.ArtifactStoreProperty>
A builder for
CfnPipeline.ArtifactStoreProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.encryptionKey
(IResolvable encryptionKey) Sets the value ofCfnPipeline.ArtifactStoreProperty.getEncryptionKey()
encryptionKey
(CfnPipeline.EncryptionKeyProperty encryptionKey) Sets the value ofCfnPipeline.ArtifactStoreProperty.getEncryptionKey()
Sets the value ofCfnPipeline.ArtifactStoreProperty.getLocation()
Sets the value ofCfnPipeline.ArtifactStoreProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
location
Sets the value ofCfnPipeline.ArtifactStoreProperty.getLocation()
- Parameters:
location
- The S3 bucket used for storing the artifacts for a pipeline. This parameter is required. 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 ofCfnPipeline.ArtifactStoreProperty.getType()
- Parameters:
type
- The type of the artifact store, such as S3. This parameter is required.- Returns:
this
-
encryptionKey
@Stability(Stable) public CfnPipeline.ArtifactStoreProperty.Builder encryptionKey(IResolvable encryptionKey) Sets the value ofCfnPipeline.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 CfnPipeline.ArtifactStoreProperty.Builder encryptionKey(CfnPipeline.EncryptionKeyProperty encryptionKey) Sets the value ofCfnPipeline.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
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnPipeline.ArtifactStoreProperty>
- Returns:
- a new instance of
CfnPipeline.ArtifactStoreProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-