create_container_association
async
¶
create_container_association(
container_association_name: ResourceName,
type: ContainerMonitoringType,
container_monitoring_configurations: ContainerMonitoringConfigurations,
*,
config_overrides: Optional[AsyncNetworkFirewallClientConfig] = None,
description: Optional[Description] = None,
tags: Optional[TagList] = None,
) -> CreateContainerAssociationResponse
Creates a Network Firewall container association. The association monitors container lifecycle events in your Amazon ECS or Amazon EKS clusters and resolves running container addresses for use in firewall rules.
Parameters:
-
container_association_name(ResourceName) –The descriptive name of the container association. You can't change the name of a container association after you create it.
-
description(Optional[Description], default:None) –A description of the container association.
-
type(ContainerMonitoringType) –The type of containers to monitor. You can't change the container type after creation. Valid values:
-
ECS- Amazon Elastic Container Service -
EKS- Amazon Elastic Kubernetes Service
-
-
container_monitoring_configurations(ContainerMonitoringConfigurations) –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.
-
tags(Optional[TagList], default:None) –The key:value pairs to associate with the resource.
Raises:
-
InsufficientCapacityException–Amazon Web Services doesn't currently have enough available capacity to fulfill your request. Try your request later.
-
InternalServerError–Your request is valid, but Network Firewall couldn't perform the operation because of a system problem. Retry your request.
-
InvalidRequestException–The operation failed because of a problem with your request. Examples include:
-
You specified an unsupported parameter name or value.
-
You tried to update a property with a value that isn't among the available types.
-
Your request references an ARN that is malformed, or corresponds to a resource that isn't valid in the context of the request.
-
-
LimitExceededException–Unable to perform the operation because doing so would violate a limit setting.
-
ThrottlingException–Unable to process the request due to throttling limitations.
-
UnknownServiceError–The service returned an error code this client does not model.