# LaunchTargetBindOptions

Options for binding a launch target to an ECS run job task.

- Source: [`aws-stepfunctions-tasks/lib/ecs/run-task.ts`](https://github.com/aws/aws-cdk/blob/v2.273.0/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/ecs/run-task.ts#L124)

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ecs as ecs } from 'aws-cdk-lib';
import { aws_stepfunctions_tasks as stepfunctions_tasks } from 'aws-cdk-lib';

declare const cluster: ecs.Cluster;
declare const taskDefinition: ecs.TaskDefinition;
const launchTargetBindOptions: stepfunctions_tasks.LaunchTargetBindOptions = {
  taskDefinition: taskDefinition,

  // the properties below are optional
  cluster: cluster,
};
```

## Properties

- `cluster`: [ICluster](/cdk/api/v2/docs/aws-cdk-lib.aws_ecs.ICluster.html) = No cluster — A regional grouping of one or more container instances on which you can run tasks and services.

- `taskDefinition`: [ITaskDefinition](/cdk/api/v2/docs/aws-cdk-lib.aws_ecs.ITaskDefinition.html) (required) — Task definition to run Docker containers in Amazon ECS.
