@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:37.569Z") @Stability(value=Stable) public class StateMachineInput extends software.amazon.jsii.JsiiObject
Example:
// Example automatically generated from non-compiling source. May contain errors.
import software.amazon.awscdk.services.stepfunctions.*;
Pipeline pipeline = new Pipeline(this, "MyPipeline");
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.literal(Map.of("IsHelloWorldExample", true)))
.build();
pipeline.addStage(StageOptions.builder()
.stageName("StepFunctions")
.actions(List.of(stepFunctionAction))
.build());
| Modifier | Constructor and Description |
|---|---|
protected |
StateMachineInput(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
StateMachineInput(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
static StateMachineInput |
filePath(ArtifactPath inputFile)
When the input type is FilePath, input artifact and filepath must be specified.
|
Object |
getInput()
When InputType is set to Literal (default), the Input field is used directly as the input for the state machine execution.
|
Artifact |
getInputArtifact()
The optional input Artifact of the Action.
|
String |
getInputType()
Optional StateMachine InputType InputType can be Literal or FilePath.
|
static StateMachineInput |
literal(com.fasterxml.jackson.databind.node.ObjectNode object)
When the input type is Literal, input value is passed directly to the state machine input.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected StateMachineInput(software.amazon.jsii.JsiiObjectRef objRef)
protected StateMachineInput(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable) @NotNull public static StateMachineInput filePath(@NotNull ArtifactPath inputFile)
inputFile - This parameter is required.@Stability(value=Stable) @NotNull public static StateMachineInput literal(@NotNull com.fasterxml.jackson.databind.node.ObjectNode object)
object - This parameter is required.@Stability(value=Stable) @NotNull public Object getInput()
Otherwise, the state machine is invoked with an empty JSON object {}.
When InputType is set to FilePath, this field is required. An input artifact is also required when InputType is set to FilePath.
Default: - none
@Stability(value=Stable) @Nullable public Artifact getInputArtifact()
If InputType is set to FilePath, this artifact is required and is used to source the input for the state machine execution.
Default: - the Action will not have any inputs
@Stability(value=Stable) @Nullable public String getInputType()
Default: - Literal
Copyright © 2022. All rights reserved.