# ContainerInsights

The CloudWatch Container Insights setting.

- Source: [`aws-ecs/lib/cluster.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/aws-ecs/lib/cluster.ts#L1294)
- Type last changed: v2.176.0 · 15 Jan 2025

## Example

```ts
const cluster = new ecs.Cluster(this, 'Cluster', {
  containerInsightsV2: ecs.ContainerInsights.ENHANCED
});
```

## Members

| Member | Description |
| --- | --- |
| `ENABLED` | Enable CloudWatch Container Insights for the cluster. |
| `DISABLED` | Disable CloudWatch Container Insights for the cluster. |
| `ENHANCED` | Enable CloudWatch Container Insights with enhanced observability for the cluster. |

## Referenced by

- [`ClusterProps`](/v2/docs/aws-cdk-lib.aws_ecs.ClusterProps).containerInsightsV2
