@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EncryptionConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
Settings to configure server-side encryption.
For additional control over security, you can encrypt your data using a customer-managed key for Step Functions state machines and activities. You can configure a symmetric KMS key and data key reuse period when creating or updating a State Machine, and when creating an Activity. The execution history and state machine definition will be encrypted with the key applied to the State Machine. Activity inputs will be encrypted with the key applied to the Activity.
Step Functions automatically enables encryption at rest using Amazon Web Services owned keys at no charge. However, KMS charges apply when using a customer managed key. For more information about pricing, see Key Management Service pricing.
For more information on KMS, see What is Key Management Service?
Constructor and Description |
---|
EncryptionConfiguration() |
Modifier and Type | Method and Description |
---|---|
EncryptionConfiguration |
clone() |
boolean |
equals(Object obj) |
Integer |
getKmsDataKeyReusePeriodSeconds()
Maximum duration that Step Functions will reuse data keys.
|
String |
getKmsKeyId()
An alias, alias ARN, key ID, or key ARN of a symmetric encryption KMS key to encrypt data.
|
String |
getType()
Encryption type
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setKmsDataKeyReusePeriodSeconds(Integer kmsDataKeyReusePeriodSeconds)
Maximum duration that Step Functions will reuse data keys.
|
void |
setKmsKeyId(String kmsKeyId)
An alias, alias ARN, key ID, or key ARN of a symmetric encryption KMS key to encrypt data.
|
void |
setType(String type)
Encryption type
|
String |
toString()
Returns a string representation of this object.
|
EncryptionConfiguration |
withKmsDataKeyReusePeriodSeconds(Integer kmsDataKeyReusePeriodSeconds)
Maximum duration that Step Functions will reuse data keys.
|
EncryptionConfiguration |
withKmsKeyId(String kmsKeyId)
An alias, alias ARN, key ID, or key ARN of a symmetric encryption KMS key to encrypt data.
|
EncryptionConfiguration |
withType(EncryptionType type)
Encryption type
|
EncryptionConfiguration |
withType(String type)
Encryption type
|
public void setKmsKeyId(String kmsKeyId)
An alias, alias ARN, key ID, or key ARN of a symmetric encryption KMS key to encrypt data. To specify a KMS key in a different Amazon Web Services account, you must use the key ARN or alias ARN.
kmsKeyId
- An alias, alias ARN, key ID, or key ARN of a symmetric encryption KMS key to encrypt data. To specify a
KMS key in a different Amazon Web Services account, you must use the key ARN or alias ARN.public String getKmsKeyId()
An alias, alias ARN, key ID, or key ARN of a symmetric encryption KMS key to encrypt data. To specify a KMS key in a different Amazon Web Services account, you must use the key ARN or alias ARN.
public EncryptionConfiguration withKmsKeyId(String kmsKeyId)
An alias, alias ARN, key ID, or key ARN of a symmetric encryption KMS key to encrypt data. To specify a KMS key in a different Amazon Web Services account, you must use the key ARN or alias ARN.
kmsKeyId
- An alias, alias ARN, key ID, or key ARN of a symmetric encryption KMS key to encrypt data. To specify a
KMS key in a different Amazon Web Services account, you must use the key ARN or alias ARN.public void setKmsDataKeyReusePeriodSeconds(Integer kmsDataKeyReusePeriodSeconds)
Maximum duration that Step Functions will reuse data keys. When the period expires, Step Functions will call
GenerateDataKey
. Only applies to customer managed keys.
kmsDataKeyReusePeriodSeconds
- Maximum duration that Step Functions will reuse data keys. When the period expires, Step Functions will
call GenerateDataKey
. Only applies to customer managed keys.public Integer getKmsDataKeyReusePeriodSeconds()
Maximum duration that Step Functions will reuse data keys. When the period expires, Step Functions will call
GenerateDataKey
. Only applies to customer managed keys.
GenerateDataKey
. Only applies to customer managed keys.public EncryptionConfiguration withKmsDataKeyReusePeriodSeconds(Integer kmsDataKeyReusePeriodSeconds)
Maximum duration that Step Functions will reuse data keys. When the period expires, Step Functions will call
GenerateDataKey
. Only applies to customer managed keys.
kmsDataKeyReusePeriodSeconds
- Maximum duration that Step Functions will reuse data keys. When the period expires, Step Functions will
call GenerateDataKey
. Only applies to customer managed keys.public void setType(String type)
Encryption type
type
- Encryption typeEncryptionType
public String getType()
Encryption type
EncryptionType
public EncryptionConfiguration withType(String type)
Encryption type
type
- Encryption typeEncryptionType
public EncryptionConfiguration withType(EncryptionType type)
Encryption type
type
- Encryption typeEncryptionType
public String toString()
toString
in class Object
Object.toString()
public EncryptionConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.