update_container_association
¶
update_container_association(
type: ContainerMonitoringType,
container_monitoring_configurations: ContainerMonitoringConfigurations,
update_token: UpdateToken,
*,
config_overrides: Optional[NetworkFirewallClientConfig] = 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/network_firewall.py
5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 | |