update_container_association
async
¶
update_container_association(
type: ContainerMonitoringType,
container_monitoring_configurations: ContainerMonitoringConfigurations,
update_token: UpdateToken,
*,
config_overrides: Optional[AsyncNetworkFirewallClientConfig] = None,
container_association_name: Optional[ResourceName] = None,
container_association_arn: Optional[ResourceArn] = None,
description: Optional[Description] = None,
tags: Optional[TagList] = None,
) -> UpdateContainerAssociationResponse
Updates the monitoring configurations and description of a container association. You can't change the container type after creation. Provide an update token to enable optimistic concurrency control.
Parameters:
-
container_association_name(Optional[ResourceName], default:None) –The descriptive name of the container association.
You must specify the ARN or the name, and you can specify both.
-
container_association_arn(Optional[ResourceArn], default:None) –The Amazon Resource Name (ARN) of the container association.
You must specify the ARN or the name, and you can specify both.
-
description(Optional[Description], default:None) –A description of the container association. When omitted, the existing description remains unchanged. To clear the description, pass an empty string.
-
type(ContainerMonitoringType) –The container type. This value must match the existing type and can't be changed. Valid values:
-
ECS- Amazon Elastic Container Service -
EKS- Amazon Elastic Kubernetes Service
-
-
container_monitoring_configurations(ContainerMonitoringConfigurations) –The updated monitoring configurations for the container association. Each configuration specifies an Amazon ECS or Amazon EKS cluster to monitor and optional attribute filters.
-
tags(Optional[TagList], default:None) –The key:value pairs to associate with the resource.
-
update_token(UpdateToken) –A token used for optimistic locking. Network Firewall returns a token to your requests that access the container association. The token marks the state of the container association resource at the time of the request.
To make changes to the container association, you provide the token in your request. Network Firewall uses the token to ensure that the container association hasn't changed since you last retrieved it. If it has changed, the operation fails with an
InvalidTokenException. If this happens, retrieve the container association again to get a current copy of it with a current token. Reapply your changes as needed, then try the operation again using the new token.
Raises:
-
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.
-
-
InvalidTokenException–The token you provided is stale or isn't valid for the operation.
-
LimitExceededException–Unable to perform the operation because doing so would violate a limit setting.
-
ResourceNotFoundException–Unable to locate a resource using the parameters that you provided.
-
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
5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 | |