# CommonEcsRunTaskProps

Basic properties for ECS Tasks.

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

## 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 as stepfunctions } from 'aws-cdk-lib';
import { aws_stepfunctions_tasks as stepfunctions_tasks } from 'aws-cdk-lib';

declare const cluster: ecs.Cluster;
declare const containerDefinition: ecs.ContainerDefinition;
declare const taskDefinition: ecs.TaskDefinition;
const commonEcsRunTaskProps: stepfunctions_tasks.CommonEcsRunTaskProps = {
  cluster: cluster,
  taskDefinition: taskDefinition,

  // the properties below are optional
  containerOverrides: [{
    containerDefinition: containerDefinition,

    // the properties below are optional
    command: ['command'],
    cpu: 123,
    environment: [{
      name: 'name',
      value: 'value',
    }],
    memoryLimit: 123,
    memoryReservation: 123,
  }],
  integrationPattern: stepfunctions.ServiceIntegrationPattern.FIRE_AND_FORGET,
};
```

## Properties

- `cluster`: [ICluster](/cdk/api/v2/docs/aws-cdk-lib.aws_ecs.ICluster.html) (required) — The topic to run the task on.

- `containerOverrides`: [ContainerOverride](/cdk/api/v2/docs/aws-cdk-lib.aws_stepfunctions_tasks.ContainerOverride.html)[] — Container setting overrides.

  **Default:** No overrides

  Key is the name of the container to override, value is the
  values you want to override.

- `integrationPattern`: [ServiceIntegrationPattern](/cdk/api/v2/docs/aws-cdk-lib.aws_stepfunctions.ServiceIntegrationPattern.html) = FIRE_AND_FORGET — The service integration pattern indicates different ways to call RunTask in ECS.

  The valid value for Lambda is FIRE_AND_FORGET, SYNC and WAIT_FOR_TASK_TOKEN.

- `taskDefinition`: [TaskDefinition](/cdk/api/v2/docs/aws-cdk-lib.aws_ecs.TaskDefinition.html) (required) — Task Definition used for running tasks in the service.

  Note: this must be TaskDefinition, and not ITaskDefinition,
  as it requires properties that are not known for imported task definitions
  If you want to run a RunTask with an imported task definition,
  consider using CustomState
