Skip to content
v2.275.0

CfnContainerAssociationProps Struct ​

Properties for defining a CfnContainerAssociation.

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 ​

containerAssociationNamestringcontainer_association_namestrcontainerAssociationNameStringContainerAssociationNamestringContainerAssociationName*stringrequired#
The descriptive name of the container association.

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

containerMonitoringConfigurationsIResolvable | IResolvable | CfnContainerAssociation.ContainerMonitoringConfigurationProperty[]container_monitoring_configurationstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ContainerMonitoringConfigurationProperty]]]containerMonitoringConfigurationsIResolvableContainerMonitoringConfigurationsIResolvableContainerMonitoringConfigurationsinterface{}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.

descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string#
A description of the container association.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag#
An array of key-value pairs to apply to this resource.
typestringtypestrtypeStringTypestringType*stringrequired#
The type of containers to monitor.

You can't change the container type after creation.