@Generated(value="jsii-pacmak/1.73.0 (build 6faeda3)", date="2023-01-31T18:36:53.832Z") public enum IntegrationPattern extends java.lang.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(java.lang.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.
|
public static final IntegrationPattern REQUEST_RESPONSE
public static final IntegrationPattern RUN_JOB
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(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null