Class EncryptionConfiguration

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.stepfunctions.EncryptionConfiguration
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
Direct Known Subclasses:
AwsOwnedEncryptionConfiguration, CustomerManagedEncryptionConfiguration

@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)", date="2024-10-25T14:21:24.313Z") @Stability(Stable) public abstract class EncryptionConfiguration extends software.amazon.jsii.JsiiObject
Base class for creating an EncryptionConfiguration for either state machines or activities.

Example:

 import software.amazon.awscdk.services.kms.*;
 import software.amazon.awscdk.*;
 Key kmsKey = new Key(this, "Key");
 StateMachine stateMachine = StateMachine.Builder.create(this, "StateMachineWithCMKEncryptionConfiguration")
         .stateMachineName("StateMachineWithCMKEncryptionConfiguration")
         .definitionBody(DefinitionBody.fromChainable(Chain.start(new Pass(this, "Pass"))))
         .stateMachineType(StateMachineType.STANDARD)
         .encryptionConfiguration(new CustomerManagedEncryptionConfiguration(kmsKey, Duration.seconds(60)))
         .build();
 
  • Nested Class Summary

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
    protected
    EncryptionConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    EncryptionConfiguration(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Encryption option for the state machine or activity.
    void
    setType(String value)
    Encryption option for the state machine or activity.

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Constructor Details

    • EncryptionConfiguration

      protected EncryptionConfiguration(software.amazon.jsii.JsiiObjectRef objRef)
    • EncryptionConfiguration

      protected EncryptionConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • EncryptionConfiguration

      @Stability(Stable) protected EncryptionConfiguration(@NotNull String type)
      Parameters:
      type - This parameter is required.
  • Method Details

    • getType

      @Stability(Stable) @NotNull public String getType()
      Encryption option for the state machine or activity.

      Can be either CUSTOMER_MANAGED_KMS_KEY or AWS_OWNED_KEY.

    • setType

      @Stability(Stable) public void setType(@NotNull String value)
      Encryption option for the state machine or activity.

      Can be either CUSTOMER_MANAGED_KMS_KEY or AWS_OWNED_KEY.