We recommend new projects start with resources from the AWS provider.
published on Monday, Sep 21, 2026 by Pulumi
We recommend new projects start with resources from the AWS provider.
published on Monday, Sep 21, 2026 by Pulumi
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.
Create ContainerAssociation Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ContainerAssociation(name: string, args: ContainerAssociationArgs, opts?: CustomResourceOptions);@overload
def ContainerAssociation(resource_name: str,
args: ContainerAssociationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ContainerAssociation(resource_name: str,
opts: Optional[ResourceOptions] = None,
container_monitoring_configurations: Optional[Sequence[ContainerAssociationContainerMonitoringConfigurationArgs]] = None,
type: Optional[ContainerAssociationType] = None,
container_association_name: Optional[str] = None,
description: Optional[str] = None,
tags: Optional[Sequence[_root_inputs.TagArgs]] = None)func NewContainerAssociation(ctx *Context, name string, args ContainerAssociationArgs, opts ...ResourceOption) (*ContainerAssociation, error)public ContainerAssociation(string name, ContainerAssociationArgs args, CustomResourceOptions? opts = null)
public ContainerAssociation(String name, ContainerAssociationArgs args)
public ContainerAssociation(String name, ContainerAssociationArgs args, CustomResourceOptions options)
type: aws-native:networkfirewall:ContainerAssociation
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "aws-native_networkfirewall_container_association" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args ContainerAssociationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ContainerAssociationArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ContainerAssociationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ContainerAssociationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ContainerAssociationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
ContainerAssociation Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ContainerAssociation resource accepts the following input properties:
- Container
Monitoring List<Pulumi.Configurations Aws Native. Network Firewall. Inputs. Container Association Container Monitoring Configuration> - 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.
- Type
Pulumi.
Aws Native. Network Firewall. Container Association Type - The type of containers to monitor. You can't change the container type after creation.
- Container
Association stringName - The descriptive name of the container association. You can't change the name of a container association after you create it.
- Description string
- A description of the container association.
-
List<Pulumi.
Aws Native. Inputs. Tag> - An array of key-value pairs to apply to this resource.
- Container
Monitoring []ContainerConfigurations Association Container Monitoring Configuration Args - 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.
- Type
Container
Association Type - The type of containers to monitor. You can't change the container type after creation.
- Container
Association stringName - The descriptive name of the container association. You can't change the name of a container association after you create it.
- Description string
- A description of the container association.
-
Tag
Args - An array of key-value pairs to apply to this resource.
- container_
monitoring_ list(object)configurations - 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.
- type "ECS" | "EKS"
- The type of containers to monitor. You can't change the container type after creation.
- container_
association_ stringname - The descriptive name of the container association. You can't change the name of a container association after you create it.
- description string
- A description of the container association.
- list(object)
- An array of key-value pairs to apply to this resource.
- container
Monitoring List<ContainerConfigurations Association Container Monitoring Configuration> - 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.
- type
Container
Association Type - The type of containers to monitor. You can't change the container type after creation.
- container
Association StringName - The descriptive name of the container association. You can't change the name of a container association after you create it.
- description String
- A description of the container association.
- List<Tag>
- An array of key-value pairs to apply to this resource.
- container
Monitoring ContainerConfigurations Association Container Monitoring Configuration[] - 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.
- type
Container
Association Type - The type of containers to monitor. You can't change the container type after creation.
- container
Association stringName - The descriptive name of the container association. You can't change the name of a container association after you create it.
- description string
- A description of the container association.
- Tag[]
- An array of key-value pairs to apply to this resource.
- container_
monitoring_ Sequence[Containerconfigurations Association Container Monitoring Configuration Args] - 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.
- type
Container
Association Type - The type of containers to monitor. You can't change the container type after creation.
- container_
association_ strname - The descriptive name of the container association. You can't change the name of a container association after you create it.
- description str
- A description of the container association.
-
Sequence[Tag
Args] - An array of key-value pairs to apply to this resource.
- container
Monitoring List<Property Map>Configurations - 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.
- type "ECS" | "EKS"
- The type of containers to monitor. You can't change the container type after creation.
- container
Association StringName - The descriptive name of the container association. You can't change the name of a container association after you create it.
- description String
- A description of the container association.
- List<Property Map>
- An array of key-value pairs to apply to this resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the ContainerAssociation resource produces the following output properties:
- Container
Association stringArn - The Amazon Resource Name (ARN) of the container association.
- Id string
- The provider-assigned unique ID for this managed resource.
- Resolved
Cidr intCount - The number of CIDR blocks resolved from the monitored containers.
- Status
Pulumi.
Aws Native. Network Firewall. Container Association Status - The current status of the container association.
- Container
Association stringArn - The Amazon Resource Name (ARN) of the container association.
- Id string
- The provider-assigned unique ID for this managed resource.
- Resolved
Cidr intCount - The number of CIDR blocks resolved from the monitored containers.
- Status
Container
Association Status - The current status of the container association.
- container_
association_ stringarn - The Amazon Resource Name (ARN) of the container association.
- id string
- The provider-assigned unique ID for this managed resource.
- resolved_
cidr_ numbercount - The number of CIDR blocks resolved from the monitored containers.
- status "ACTIVE" | "CREATING" | "DELETING" | "UPDATING"
- The current status of the container association.
- container
Association StringArn - The Amazon Resource Name (ARN) of the container association.
- id String
- The provider-assigned unique ID for this managed resource.
- resolved
Cidr IntegerCount - The number of CIDR blocks resolved from the monitored containers.
- status
Container
Association Status - The current status of the container association.
- container
Association stringArn - The Amazon Resource Name (ARN) of the container association.
- id string
- The provider-assigned unique ID for this managed resource.
- resolved
Cidr numberCount - The number of CIDR blocks resolved from the monitored containers.
- status
Container
Association Status - The current status of the container association.
- container_
association_ strarn - The Amazon Resource Name (ARN) of the container association.
- id str
- The provider-assigned unique ID for this managed resource.
- resolved_
cidr_ intcount - The number of CIDR blocks resolved from the monitored containers.
- status
Container
Association Status - The current status of the container association.
- container
Association StringArn - The Amazon Resource Name (ARN) of the container association.
- id String
- The provider-assigned unique ID for this managed resource.
- resolved
Cidr NumberCount - The number of CIDR blocks resolved from the monitored containers.
- status "ACTIVE" | "CREATING" | "DELETING" | "UPDATING"
- The current status of the container association.
Supporting Types
ContainerAssociationContainerAttribute, ContainerAssociationContainerAttributeArgs
A key-value filter pair used in container association monitoring configurations to narrow which containers are tracked.ContainerAssociationContainerMonitoringConfiguration, ContainerAssociationContainerMonitoringConfigurationArgs
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.- Cluster
Arn string - 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.
- Attribute
Filters List<Pulumi.Aws Native. Network Firewall. Inputs. Container Association Container Attribute> - 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 string - 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.
- Attribute
Filters []ContainerAssociation Container Attribute - 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 string - 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.
- attribute_
filters list(object) - 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 String - 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.
- attribute
Filters List<ContainerAssociation Container Attribute> - 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 string - 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.
- attribute
Filters ContainerAssociation Container Attribute[] - 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 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.
- attribute_
filters Sequence[ContainerAssociation Container Attribute] - 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 String - 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.
- attribute
Filters List<Property Map> - 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).
ContainerAssociationStatus, ContainerAssociationStatusArgs
- Active
ACTIVE- Creating
CREATING- Deleting
DELETING- Updating
UPDATING
- Container
Association Status Active ACTIVE- Container
Association Status Creating CREATING- Container
Association Status Deleting DELETING- Container
Association Status Updating UPDATING
- "ACTIVE"
ACTIVE- "CREATING"
CREATING- "DELETING"
DELETING- "UPDATING"
UPDATING
- Active
ACTIVE- Creating
CREATING- Deleting
DELETING- Updating
UPDATING
- Active
ACTIVE- Creating
CREATING- Deleting
DELETING- Updating
UPDATING
- ACTIVE
ACTIVE- CREATING
CREATING- DELETING
DELETING- UPDATING
UPDATING
- "ACTIVE"
ACTIVE- "CREATING"
CREATING- "DELETING"
DELETING- "UPDATING"
UPDATING
ContainerAssociationType, ContainerAssociationTypeArgs
- Ecs
ECS- Eks
EKS
- Container
Association Type Ecs ECS- Container
Association Type Eks EKS
- "ECS"
ECS- "EKS"
EKS
- Ecs
ECS- Eks
EKS
- Ecs
ECS- Eks
EKS
- ECS
ECS- EKS
EKS
- "ECS"
ECS- "EKS"
EKS
Tag, TagArgs
A set of tags to apply to the resource.Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
published on Monday, Sep 21, 2026 by Pulumi