Class IntegrationPattern
AWS Step Functions integrates with services directly in the Amazon States Language.
Inheritance
Namespace: Amazon.CDK.AWS.StepFunctions
Assembly: Amazon.CDK.AWS.StepFunctions.dll
Syntax (csharp)
public sealed class IntegrationPattern : Enum
Syntax (vb)
Public NotInheritable Class IntegrationPattern
Inherits
Enum
Remarks
You can control these AWS services using service integration patterns:
See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-to-resource.html
ExampleMetadata: infused
Examples
// Define a state machine with one Pass state
var child = new StateMachine(this, "ChildStateMachine", new StateMachineProps {
Definition = Chain.Start(new Pass(this, "PassState"))
});
// Include the state machine in a Task state with callback pattern
var task = new StepFunctionsStartExecution(this, "ChildTask", new StepFunctionsStartExecutionProps {
StateMachine = child,
IntegrationPattern = IntegrationPattern.WAIT_FOR_TASK_TOKEN,
Input = TaskInput.FromObject(new Dictionary<string, object> {
{ "token", JsonPath.TaskToken },
{ "foo", "bar" }
}),
Name = "MyExecutionName"
});
// Define a second state machine with the Task state above
// Define a second state machine with the Task state above
new StateMachine(this, "ParentStateMachine", new StateMachineProps {
Definition = task
});
Synopsis
Fields
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. |
value__ | |
WAIT_FOR_TASK_TOKEN | Callback tasks provide a way to pause a workflow until a task token is returned. |
Fields
REQUEST_RESPONSE
Step Functions will wait for an HTTP response and then progress to the next state.
public const IntegrationPattern REQUEST_RESPONSE
Field Value
Type | Description |
---|---|
IntegrationPattern |
Remarks
RUN_JOB
Step Functions can wait for a request to complete before progressing to the next state.
public const IntegrationPattern RUN_JOB
Field Value
Type | Description |
---|---|
IntegrationPattern |
Remarks
value__
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |
WAIT_FOR_TASK_TOKEN
Callback tasks provide a way to pause a workflow until a task token is returned.
public const IntegrationPattern WAIT_FOR_TASK_TOKEN
Field Value
Type | Description |
---|---|
IntegrationPattern |
Remarks
You must set a task token when using the callback pattern
See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-to-resource.html#connect-wait-token