class EncryptionConfiguration
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.StepFunctions.EncryptionConfiguration |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsstepfunctions#EncryptionConfiguration |
![]() | software.amazon.awscdk.services.stepfunctions.EncryptionConfiguration |
![]() | aws_cdk.aws_stepfunctions.EncryptionConfiguration |
![]() | 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.