@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)", date="2022-05-13T01:13:33.286Z") 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();
https://docs.aws.amazon.com/step-functions/latest/dg/connect-to-resource.html
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
https://docs.aws.amazon.com/step-functions/latest/dg/connect-to-resource.html#connect-default
public static final IntegrationPattern RUN_JOB
https://docs.aws.amazon.com/step-functions/latest/dg/connect-to-resource.html#connect-sync
public static final IntegrationPattern WAIT_FOR_TASK_TOKEN
You must set a task token when using the callback pattern
https://docs.aws.amazon.com/step-functions/latest/dg/connect-to-resource.html#connect-wait-token
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