Class CfnStateMachine.EncryptionConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.stepfunctions.CfnStateMachine.EncryptionConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnStateMachine.EncryptionConfigurationProperty>
- Enclosing interface:
CfnStateMachine.EncryptionConfigurationProperty
@Stability(Stable)
public static final class CfnStateMachine.EncryptionConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnStateMachine.EncryptionConfigurationProperty>
A builder for
CfnStateMachine.EncryptionConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.kmsDataKeyReusePeriodSeconds(Number kmsDataKeyReusePeriodSeconds) Sets the value ofCfnStateMachine.EncryptionConfigurationProperty.getKmsKeyId()Sets the value ofCfnStateMachine.EncryptionConfigurationProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
type
Sets the value ofCfnStateMachine.EncryptionConfigurationProperty.getType()- Parameters:
type- Encryption option for a state machine. This parameter is required.- Returns:
this
-
kmsDataKeyReusePeriodSeconds
@Stability(Stable) public CfnStateMachine.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 CfnStateMachine.EncryptionConfigurationProperty.Builder kmsKeyId(String kmsKeyId) Sets the value ofCfnStateMachine.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<CfnStateMachine.EncryptionConfigurationProperty>- Returns:
- a new instance of
CfnStateMachine.EncryptionConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-