Skip to content
v2.274.0

AwsOwnedEncryptionConfiguration Class ​

Define a new AwsOwnedEncryptionConfiguration.

Example ​

ts
const stateMachine = new sfn.StateMachine(this, 'StateMachine', {
  stateMachineName: 'StateMachine',
  definitionBody: sfn.DefinitionBody.fromChainable(sfn.Chain.start(new sfn.Pass(this, 'Pass'))),
  stateMachineType: sfn.StateMachineType.STANDARD,
  encryptionConfiguration: new sfn.AwsOwnedEncryptionConfiguration(),
});
python
state_machine = sfn.StateMachine(self, "StateMachine",
    state_machine_name="StateMachine",
    definition_body=sfn.DefinitionBody.from_chainable(sfn.Chain.start(sfn.Pass(self, "Pass"))),
    state_machine_type=sfn.StateMachineType.STANDARD,
    encryption_configuration=sfn.AwsOwnedEncryptionConfiguration()
)
java
StateMachine stateMachine = StateMachine.Builder.create(this, "StateMachine")
        .stateMachineName("StateMachine")
        .definitionBody(DefinitionBody.fromChainable(Chain.start(new Pass(this, "Pass"))))
        .stateMachineType(StateMachineType.STANDARD)
        .encryptionConfiguration(new AwsOwnedEncryptionConfiguration())
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
var stateMachine = new StateMachine(this, "StateMachine", new StateMachineProps {
    StateMachineName = "StateMachine",
    DefinitionBody = DefinitionBody.FromChainable(Chain.Start(new Pass(this, "Pass"))),
    StateMachineType = StateMachineType.STANDARD,
    EncryptionConfiguration = new AwsOwnedEncryptionConfiguration()
});
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
stateMachine := sfn.NewStateMachine(this, jsii.String("StateMachine"), &StateMachineProps{
	StateMachineName: jsii.String("StateMachine"),
	DefinitionBody: sfn.DefinitionBody_FromChainable(sfn.Chain_Start(sfn.NewPass(this, jsii.String("Pass")))),
	StateMachineType: sfn.StateMachineType_STANDARD,
	EncryptionConfiguration: sfn.NewAwsOwnedEncryptionConfiguration(),
})

Initializer ​

ts
new AwsOwnedEncryptionConfiguration()
python
AwsOwnedEncryptionConfiguration()
java
new AwsOwnedEncryptionConfiguration()
csharp
new AwsOwnedEncryptionConfiguration()
go
NewAwsOwnedEncryptionConfiguration()

Properties ​

typestringtypestrtypeStringTypestringType*stringrequired#
Encryption option for the state machine or activity.

Can be either CUSTOMER_MANAGED_KMS_KEY or AWS_OWNED_KEY.