Class CfnActivity.EncryptionConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.stepfunctions.CfnActivity.EncryptionConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnActivity.EncryptionConfigurationProperty>
- Enclosing interface:
CfnActivity.EncryptionConfigurationProperty
@Stability(Stable)
public static final class CfnActivity.EncryptionConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnActivity.EncryptionConfigurationProperty>
A builder for
CfnActivity.EncryptionConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.kmsDataKeyReusePeriodSeconds(Number kmsDataKeyReusePeriodSeconds) Sets the value ofCfnActivity.EncryptionConfigurationProperty.getKmsKeyId()Sets the value ofCfnActivity.EncryptionConfigurationProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
type
Sets the value ofCfnActivity.EncryptionConfigurationProperty.getType()- Parameters:
type- Encryption option for an activity. This parameter is required.- Returns:
this
-
kmsDataKeyReusePeriodSeconds
@Stability(Stable) public CfnActivity.EncryptionConfigurationProperty.Builder kmsDataKeyReusePeriodSeconds(Number kmsDataKeyReusePeriodSeconds) - Parameters:
kmsDataKeyReusePeriodSeconds- Maximum duration that Step Functions will reuse data keys. When the period expires, Step Functions will callGenerateDataKey. Only applies to customer managed keys.- Returns:
this
-
kmsKeyId
@Stability(Stable) public CfnActivity.EncryptionConfigurationProperty.Builder kmsKeyId(String kmsKeyId) Sets the value ofCfnActivity.EncryptionConfigurationProperty.getKmsKeyId()- Parameters:
kmsKeyId- An alias, alias ARN, key ID, or key ARN of a symmetric encryption AWS KMS key to encrypt data. To specify a AWS KMS key in a different AWS account, you must use the key ARN or alias ARN.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnActivity.EncryptionConfigurationProperty>- Returns:
- a new instance of
CfnActivity.EncryptionConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-