# CfnContainerAssociationProps

Properties for defining a `CfnContainerAssociation`.

Extends: CfnContainerAssociationProps
Used as props by: CfnContainerAssociation

- Source: Generated code
- Type last changed: v2.272.0 · 30 Sep 2026

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_networkfirewall as networkfirewall } from 'aws-cdk-lib';
const cfnContainerAssociationProps: networkfirewall.CfnContainerAssociationProps = {
  containerAssociationName: 'containerAssociationName',
  containerMonitoringConfigurations: [{
    clusterArn: 'clusterArn',

    // the properties below are optional
    attributeFilters: [{
      key: 'key',
      value: 'value',
    }],
  }],
  type: 'type',

  // the properties below are optional
  description: 'description',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
```

## Properties

- `containerAssociationName`: string (required) — The descriptive name of the container association.

  You can't change the name of a container association after you create it.

- `containerMonitoringConfigurations`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnContainerAssociation.ContainerMonitoringConfigurationProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_networkfirewall.CfnContainerAssociation.ContainerMonitoringConfigurationProperty.html)[] (required) — The monitoring configurations for the container association.

  Each configuration specifies an Amazon ECS or Amazon EKS cluster to monitor and optional attribute filters to narrow which containers are tracked.

- `description`: string — A description of the container association.

- `tags`: [CfnTag](/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — An array of key-value pairs to apply to this resource.

- `type`: string (required) — The type of containers to monitor.

  You can't change the container type after creation.
