CfnContainerAssociationPropsMixin

class aws_cdk.cfn_property_mixins.aws_networkfirewall.CfnContainerAssociationPropsMixin(props, *, strategy=None)

Bases: Mixin

Resource type definition for AWS::NetworkFirewall::ContainerAssociation.

A container association monitors container lifecycle events in your Amazon ECS or Amazon EKS clusters and resolves running container addresses for use in Network Firewall rules.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkfirewall-containerassociation.html

CloudformationResource:

AWS::NetworkFirewall::ContainerAssociation

Mixin:

true

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.cfn_property_mixins import aws_networkfirewall as networkfirewall
import aws_cdk as cdk

# merge_strategy: cdk.IMergeStrategy

cfn_container_association_props_mixin = networkfirewall.CfnContainerAssociationPropsMixin(networkfirewall.CfnContainerAssociationMixinProps(
    container_association_name="containerAssociationName",
    container_monitoring_configurations=[networkfirewall.CfnContainerAssociationPropsMixin.ContainerMonitoringConfigurationProperty(
        attribute_filters=[networkfirewall.CfnContainerAssociationPropsMixin.ContainerAttributeProperty(
            key="key",
            value="value"
        )],
        cluster_arn="clusterArn"
    )],
    description="description",
    tags=[cdk.CfnTag(
        key="key",
        value="value"
    )],
    type="type"
),
    strategy=merge_strategy
)

Create a mixin to apply properties to AWS::NetworkFirewall::ContainerAssociation.

Parameters:

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

None

supports(construct)

Check if this mixin supports the given construct.

Parameters:

construct (IConstruct)

Return type:

bool

Attributes

CFN_PROPERTY_KEYS = ['containerAssociationName', 'containerMonitoringConfigurations', 'description', 'tags', 'type']

Static Methods

classmethod is_mixin(x)

Checks if x is a Mixin.

Parameters:

x (Any) – Any object.

Return type:

bool

Returns:

true if x is an object created from a class which extends Mixin.

ContainerAttributeProperty

class CfnContainerAssociationPropsMixin.ContainerAttributeProperty(*, key=None, value=None)

Bases: object

A key-value filter pair used in container association monitoring configurations to narrow which containers are tracked.

Parameters:
  • key (Optional[str]) – The attribute key to filter on.

  • value (Optional[str]) – The attribute value to match.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-containerassociation-containerattribute.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.cfn_property_mixins import aws_networkfirewall as networkfirewall

container_attribute_property = networkfirewall.CfnContainerAssociationPropsMixin.ContainerAttributeProperty(
    key="key",
    value="value"
)

Attributes

key

The attribute key to filter on.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-containerassociation-containerattribute.html#cfn-networkfirewall-containerassociation-containerattribute-key

value

The attribute value to match.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-containerassociation-containerattribute.html#cfn-networkfirewall-containerassociation-containerattribute-value

ContainerMonitoringConfigurationProperty

class CfnContainerAssociationPropsMixin.ContainerMonitoringConfigurationProperty(*, attribute_filters=None, cluster_arn=None)

Bases: object

Contains the monitoring configuration for a single cluster in a container association.

Specifies the cluster ARN and optional attribute filters to narrow which containers are tracked.

Parameters:
  • attribute_filters (Union[IResolvable, Sequence[Union[IResolvable, ContainerAttributeProperty, Dict[str, Any]]], None]) – Key-value pairs that filter which containers are tracked. For Amazon EKS, you can filter by namespace and Kubernetes labels. For Amazon ECS, you can filter by container instance attributes (EC2 launch type only).

  • cluster_arn (Optional[str]) – The ARN of the Amazon ECS or Amazon EKS cluster to monitor. The cluster must be in the same Region and account as the container association.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-containerassociation-containermonitoringconfiguration.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.cfn_property_mixins import aws_networkfirewall as networkfirewall

container_monitoring_configuration_property = networkfirewall.CfnContainerAssociationPropsMixin.ContainerMonitoringConfigurationProperty(
    attribute_filters=[networkfirewall.CfnContainerAssociationPropsMixin.ContainerAttributeProperty(
        key="key",
        value="value"
    )],
    cluster_arn="clusterArn"
)

Attributes

attribute_filters

Key-value pairs that filter which containers are tracked.

For Amazon EKS, you can filter by namespace and Kubernetes labels. For Amazon ECS, you can filter by container instance attributes (EC2 launch type only).

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-containerassociation-containermonitoringconfiguration.html#cfn-networkfirewall-containerassociation-containermonitoringconfiguration-attributefilters

cluster_arn

The ARN of the Amazon ECS or Amazon EKS cluster to monitor.

The cluster must be in the same Region and account as the container association.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkfirewall-containerassociation-containermonitoringconfiguration.html#cfn-networkfirewall-containerassociation-containermonitoringconfiguration-clusterarn