# ServiceIntegrationPattern

Three ways to call an integrated service: Request Response, Run a Job and Wait for a Callback with Task Token.

- Source: [`aws-stepfunctions/lib/step-functions-task.ts`](https://github.com/aws/aws-cdk/blob/v2.273.0/packages/aws-cdk-lib/aws-stepfunctions/lib/step-functions-task.ts#L93)

## Members

| Member | Description |
| --- | --- |
| `FIRE_AND_FORGET` | Call a service and progress to the next state immediately after the API call completes. |
| `SYNC` | Call a service and wait for a job to complete. |
| `WAIT_FOR_TASK_TOKEN` | Call a service with a task token and wait until that token is returned by SendTaskSuccess/SendTaskFailure with payload. |

## Referenced by

- [`CommonEcsRunTaskProps`](/v2/docs/aws-cdk-lib.aws_stepfunctions_tasks.CommonEcsRunTaskProps).integrationPattern
