@Generated(value="jsii-pacmak/1.60.0 (build ebcefe6)", date="2022-07-13T22:11:54.690Z") @Stability(value=Stable) public enum IntegrationPattern extends Enum<IntegrationPattern>
You can control these AWS services using service integration patterns:
Example:
// Define a state machine with one Pass state
StateMachine child = StateMachine.Builder.create(this, "ChildStateMachine")
.definition(Chain.start(new Pass(this, "PassState")))
.build();
// Include the state machine in a Task state with callback pattern
StepFunctionsStartExecution task = StepFunctionsStartExecution.Builder.create(this, "ChildTask")
.stateMachine(child)
.integrationPattern(IntegrationPattern.WAIT_FOR_TASK_TOKEN)
.input(TaskInput.fromObject(Map.of(
"token", JsonPath.getTaskToken(),
"foo", "bar")))
.name("MyExecutionName")
.build();
// Define a second state machine with the Task state above
// Define a second state machine with the Task state above
StateMachine.Builder.create(this, "ParentStateMachine")
.definition(task)
.build();
| Enum Constant and Description |
|---|
REQUEST_RESPONSE
Step Functions will wait for an HTTP response and then progress to the next state.
|
RUN_JOB
Step Functions can wait for a request to complete before progressing to the next state.
|
WAIT_FOR_TASK_TOKEN
Callback tasks provide a way to pause a workflow until a task token is returned.
|
| Modifier and Type | Method and Description |
|---|---|
static IntegrationPattern |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IntegrationPattern[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Stability(value=Stable) public static final IntegrationPattern REQUEST_RESPONSE
@Stability(value=Stable) public static final IntegrationPattern RUN_JOB
@Stability(value=Stable) public static final IntegrationPattern WAIT_FOR_TASK_TOKEN
You must set a task token when using the callback pattern
public static IntegrationPattern[] values()
for (IntegrationPattern c : IntegrationPattern.values()) System.out.println(c);
public static IntegrationPattern valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2022. All rights reserved.