public static final class CfnPipeline.EncryptionKeyProperty.Builder
extends java.lang.Object
CfnPipeline.EncryptionKeyProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnPipeline.EncryptionKeyProperty |
build()
Builds the configured instance.
|
CfnPipeline.EncryptionKeyProperty.Builder |
id(java.lang.String id)
Sets the value of
CfnPipeline.EncryptionKeyProperty.getId() |
CfnPipeline.EncryptionKeyProperty.Builder |
type(java.lang.String type)
Sets the value of
CfnPipeline.EncryptionKeyProperty.getType() |
public CfnPipeline.EncryptionKeyProperty.Builder id(java.lang.String id)
CfnPipeline.EncryptionKeyProperty.getId()
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).
this
public CfnPipeline.EncryptionKeyProperty.Builder type(java.lang.String type)
CfnPipeline.EncryptionKeyProperty.getType()
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'.this
public CfnPipeline.EncryptionKeyProperty build()
CfnPipeline.EncryptionKeyProperty
java.lang.NullPointerException
- if any required attribute was not provided