Skip to content
v2.278.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',
  }],
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_networkfirewall as networkfirewall

cfn_container_association_props = networkfirewall.CfnContainerAssociationProps(
    container_association_name="containerAssociationName",
    container_monitoring_configurations=[networkfirewall.CfnContainerAssociation.ContainerMonitoringConfigurationProperty(
        cluster_arn="clusterArn",

        # the properties below are optional
        attribute_filters=[networkfirewall.CfnContainerAssociation.ContainerAttributeProperty(
            key="key",
            value="value"
        )]
    )],
    type="type",

    # the properties below are optional
    description="description",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.networkfirewall.*;

CfnContainerAssociationProps cfnContainerAssociationProps = CfnContainerAssociationProps.builder()
        .containerAssociationName("containerAssociationName")
        .containerMonitoringConfigurations(List.of(ContainerMonitoringConfigurationProperty.builder()
                .clusterArn("clusterArn")

                // the properties below are optional
                .attributeFilters(List.of(ContainerAttributeProperty.builder()
                        .key("key")
                        .value("value")
                        .build()))
                .build()))
        .type("type")

        // the properties below are optional
        .description("description")
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.NetworkFirewall;

var cfnContainerAssociationProps = new CfnContainerAssociationProps {
    ContainerAssociationName = "containerAssociationName",
    ContainerMonitoringConfigurations = new [] { new ContainerMonitoringConfigurationProperty {
        ClusterArn = "clusterArn",

        // the properties below are optional
        AttributeFilters = new [] { new ContainerAttributeProperty {
            Key = "key",
            Value = "value"
        } }
    } },
    Type = "type",

    // the properties below are optional
    Description = "description",
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnContainerAssociationProps := &CfnContainerAssociationProps{
	ContainerAssociationName: jsii.String("containerAssociationName"),
	ContainerMonitoringConfigurations: []interface{}{
		&ContainerMonitoringConfigurationProperty{
			ClusterArn: jsii.String("clusterArn"),

			// the properties below are optional
			AttributeFilters: []interface{}{
				&ContainerAttributeProperty{
					Key: jsii.String("key"),
					Value: jsii.String("value"),
				},
			},
		},
	},
	Type: jsii.String("type"),

	// the properties below are optional
	Description: jsii.String("description"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

containerAssociationNamestringcontainer_association_namestrcontainerAssociationNameStringContainerAssociationNamestringContainerAssociationName*string required #
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*string required #
The type of containers to monitor.

You can't change the container type after creation.