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.
Source code in docs_src/capo_network_firewall/_services/async_network_firewall.py
705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 | |