Interface StateMachineProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
StateMachineProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-21T06:34:16.746Z")
@Stability(Stable)
public interface StateMachineProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a State Machine.
Example:
import software.amazon.awscdk.services.stepfunctions.*; Pipeline pipeline = new Pipeline(this, "MyPipeline"); Artifact inputArtifact = new Artifact(); Pass startState = new Pass(this, "StartState"); StateMachine simpleStateMachine = StateMachine.Builder.create(this, "SimpleStateMachine") .definition(startState) .build(); StepFunctionInvokeAction stepFunctionAction = StepFunctionInvokeAction.Builder.create() .actionName("Invoke") .stateMachine(simpleStateMachine) .stateMachineInput(StateMachineInput.filePath(inputArtifact.atPath("assets/input.json"))) .build(); pipeline.addStage(StageOptions.builder() .stageName("StepFunctions") .actions(List.of(stepFunctionAction)) .build());
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forStateMachineProps
static final class
An implementation forStateMachineProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic StateMachineProps.Builder
builder()
default String
Comment that describes this state machine.default IChainable
Deprecated.use definitionBody: DefinitionBody.fromChainable()default DefinitionBody
Definition for this state machine.substitutions for the definition body as a key-value map.default EncryptionConfiguration
Configures server-side encryption of the state machine definition and execution history.default LogOptions
getLogs()
Defines what execution history events are logged and where they are logged.default RemovalPolicy
The removal policy to apply to state machine.default IRole
getRole()
The execution role for the state machine service.default String
A name for the state machine.default StateMachineType
Type of the state machine.default Duration
Maximum run time for this state machine.default Boolean
Specifies whether Amazon X-Ray tracing is enabled for this state machine.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getComment
Comment that describes this state machine.Default: - No comment
-
getDefinition
Deprecated.use definitionBody: DefinitionBody.fromChainable()(deprecated) Definition for this state machine. -
getDefinitionBody
Definition for this state machine. -
getDefinitionSubstitutions
substitutions for the definition body as a key-value map. -
getEncryptionConfiguration
Configures server-side encryption of the state machine definition and execution history.Default: - data is transparently encrypted using an AWS owned key
-
getLogs
Defines what execution history events are logged and where they are logged.Default: No logging
-
getRemovalPolicy
The removal policy to apply to state machine.Default: RemovalPolicy.DESTROY
-
getRole
The execution role for the state machine service.Default: A role is automatically created
-
getStateMachineName
A name for the state machine.Default: A name is automatically generated
-
getStateMachineType
Type of the state machine.Default: StateMachineType.STANDARD
-
getTimeout
Maximum run time for this state machine.Default: No timeout
-
getTracingEnabled
Specifies whether Amazon X-Ray tracing is enabled for this state machine.Default: false
-
builder
- Returns:
- a
StateMachineProps.Builder
ofStateMachineProps
-