CfnContainerAssociationPropsMixin
- class aws_cdk.cfn_property_mixins.aws_networkfirewall.CfnContainerAssociationPropsMixin(props, *, strategy=None)
Bases:
MixinResource 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:
- 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:
props (
Union[CfnContainerAssociationMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[IMergeStrategy]) – Strategy for merging nested properties. Default: - PropertyMergeStrategy.combine()
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
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.
ContainerAttributeProperty
- class CfnContainerAssociationPropsMixin.ContainerAttributeProperty(*, key=None, value=None)
Bases:
objectA 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:
- 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.
ContainerMonitoringConfigurationProperty
- class CfnContainerAssociationPropsMixin.ContainerMonitoringConfigurationProperty(*, attribute_filters=None, cluster_arn=None)
Bases:
objectContains 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:
- 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).
- 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.