Enum IntegrationPattern
- All Implemented Interfaces:
Serializable
,Comparable<IntegrationPattern>
,java.lang.constant.Constable
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:39.913Z")
@Stability(Stable)
public enum IntegrationPattern
extends Enum<IntegrationPattern>
AWS Step Functions integrates with services directly in the Amazon States Language.
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();
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionStep Functions will wait for an HTTP response and then progress to the next state.Step Functions can wait for a request to complete before progressing to the next state.Callback tasks provide a way to pause a workflow until a task token is returned. -
Method Summary
Modifier and TypeMethodDescriptionstatic IntegrationPattern
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.
-
Enum Constant Details
-
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.You must set a task token when using the callback pattern
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-