Class CfnPipelinePropsMixin.EncryptionKeyProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.codepipeline.CfnPipelinePropsMixin.EncryptionKeyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPipelinePropsMixin.EncryptionKeyProperty>
- Enclosing interface:
CfnPipelinePropsMixin.EncryptionKeyProperty
@Stability(Stable)
public static final class CfnPipelinePropsMixin.EncryptionKeyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPipelinePropsMixin.EncryptionKeyProperty>
A builder for
CfnPipelinePropsMixin.EncryptionKeyProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnPipelinePropsMixin.EncryptionKeyProperty.getId()Sets the value ofCfnPipelinePropsMixin.EncryptionKeyProperty.getId()Sets the value ofCfnPipelinePropsMixin.EncryptionKeyProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
id
Sets the value ofCfnPipelinePropsMixin.EncryptionKeyProperty.getId()- Parameters:
id- The ID used to identify the key. For an AWS KMS key, you can use the key ID, the key ARN, or the alias ARN.Aliases are recognized only in the account that created the AWS key. For cross-account actions, you can only use the key ID or key ARN to identify the key. Cross-account actions involve using the role from the other account (AccountB), so specifying the key ID will use the key from the other account (AccountB).
- Returns:
this
-
id
Sets the value ofCfnPipelinePropsMixin.EncryptionKeyProperty.getId()- Parameters:
id- The ID used to identify the key. For an AWS KMS key, you can use the key ID, the key ARN, or the alias ARN.Aliases are recognized only in the account that created the AWS key. For cross-account actions, you can only use the key ID or key ARN to identify the key. Cross-account actions involve using the role from the other account (AccountB), so specifying the key ID will use the key from the other account (AccountB).
- Returns:
this
-
type
Sets the value ofCfnPipelinePropsMixin.EncryptionKeyProperty.getType()- Parameters:
type- The type of encryption key, such as an AWS KMS key. When creating or updating a pipeline, the value must be set to 'KMS'.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPipelinePropsMixin.EncryptionKeyProperty>- Returns:
- a new instance of
CfnPipelinePropsMixin.EncryptionKeyProperty - Throws:
NullPointerException- if any required attribute was not provided
-