Interface StateMachineProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
StateMachineProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:47.888Z")
@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
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forStateMachinePropsstatic final classAn implementation forStateMachineProps -
Method Summary
Modifier and TypeMethodDescriptionstatic StateMachineProps.Builderbuilder()default StringComment that describes this state machine.default IChainableDeprecated.use definitionBody: DefinitionBody.fromChainable()default DefinitionBodyDefinition for this state machine.substitutions for the definition body as a key-value map.default EncryptionConfigurationConfigures server-side encryption of the state machine definition and execution history.default LogOptionsgetLogs()Defines what execution history events are logged and where they are logged.default QueryLanguageThe name of the query language used by the state machine.default RemovalPolicyThe removal policy to apply to state machine.default IRoleRefgetRole()The execution role for the state machine service.default StringA name for the state machine.default StateMachineTypeType of the state machine.default DurationMaximum run time for this state machine.default BooleanSpecifies 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
-
getQueryLanguage
The name of the query language used by the state machine.If the state does not contain a
queryLanguagefield, then it will use the query language specified in thisqueryLanguagefield.Default: - JSON_PATH
-
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.BuilderofStateMachineProps
-