Class CfnPipeline.EncryptionKeyProperty.Builder
java.lang.Object
software.amazon.awscdk.services.codepipeline.CfnPipeline.EncryptionKeyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPipeline.EncryptionKeyProperty>
- Enclosing interface:
CfnPipeline.EncryptionKeyProperty
@Stability(Stable)
public static final class CfnPipeline.EncryptionKeyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPipeline.EncryptionKeyProperty>
A builder for
CfnPipeline.EncryptionKeyProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnPipeline.EncryptionKeyProperty.getId()
Sets the value ofCfnPipeline.EncryptionKeyProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
id
Sets the value ofCfnPipeline.EncryptionKeyProperty.getId()
- Parameters:
id
- The ID used to identify the key. This parameter is required. 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 KMS 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 ofCfnPipeline.EncryptionKeyProperty.getType()
- Parameters:
type
- The type of encryption key, such as an AWS KMS key. This parameter is required. When creating or updating a pipeline, the value must be set to 'KMS'.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnPipeline.EncryptionKeyProperty>
- Returns:
- a new instance of
CfnPipeline.EncryptionKeyProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-