class EncryptionConfiguration
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.StepFunctions.EncryptionConfiguration |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsstepfunctions#EncryptionConfiguration |
Java | software.amazon.awscdk.services.stepfunctions.EncryptionConfiguration |
Python | aws_cdk.aws_stepfunctions.EncryptionConfiguration |
TypeScript (source) | aws-cdk-lib » aws_stepfunctions » EncryptionConfiguration |
Implemented by
Aws, Customer
Base class for creating an EncryptionConfiguration for either state machines or activities.
Example
import * as kms from 'aws-cdk-lib/aws-kms';
import * as cdk from 'aws-cdk-lib';
const kmsKey = new kms.Key(this, 'Key');
const stateMachine = new sfn.StateMachine(this, 'StateMachineWithCMKEncryptionConfiguration', {
stateMachineName: 'StateMachineWithCMKEncryptionConfiguration',
definitionBody: sfn.DefinitionBody.fromChainable(sfn.Chain.start(new sfn.Pass(this, 'Pass'))),
stateMachineType: sfn.StateMachineType.STANDARD,
encryptionConfiguration: new sfn.CustomerManagedEncryptionConfiguration(kmsKey, cdk.Duration.seconds(60)),
});
Initializer
new EncryptionConfiguration(type: string)
Parameters
- type
string
Properties
| Name | Type | Description |
|---|---|---|
| type | string | Encryption option for the state machine or activity. |
type
Type:
string
Encryption option for the state machine or activity.
Can be either CUSTOMER_MANAGED_KMS_KEY or AWS_OWNED_KEY.

.NET
Go
Java
Python
TypeScript (