update_monitor
async
¶
update_monitor(
monitor_name: ResourceName,
*,
config_overrides: Optional[AsyncNetworkFlowMonitorClientConfig] = None,
local_resources_to_add: Optional[MonitorLocalResources] = None,
local_resources_to_remove: Optional[MonitorLocalResources] = None,
remote_resources_to_add: Optional[MonitorRemoteResources] = None,
remote_resources_to_remove: Optional[MonitorRemoteResources] = None,
client_token: Optional[UuidString] = None,
) -> UpdateMonitorOutput
Update a monitor to add or remove local or remote resources.
Parameters:
-
monitor_name(ResourceName) –The name of the monitor.
-
local_resources_to_add(Optional[MonitorLocalResources], default:None) –Additional local resources to specify network flows for a monitor, as an array of resources with identifiers and types. A local resource in a workload is the location of hosts where the Network Flow Monitor agent is installed.
-
local_resources_to_remove(Optional[MonitorLocalResources], default:None) –The local resources to remove, as an array of resources with identifiers and types.
-
remote_resources_to_add(Optional[MonitorRemoteResources], default:None) –The remote resources to add, as an array of resources with identifiers and types.
A remote resource is the other endpoint in the flow of a workload, with a local resource. For example, Amazon Dynamo DB can be a remote resource.
-
remote_resources_to_remove(Optional[MonitorRemoteResources], default:None) –The remote resources to remove, as an array of resources with identifiers and types.
A remote resource is the other endpoint specified for the network flow of a workload, with a local resource. For example, Amazon Dynamo DB can be a remote resource.
-
client_token(Optional[UuidString], default:None) –A unique, case-sensitive string of up to 64 ASCII characters that you specify to make an idempotent API request. Don't reuse the same client token for other API requests.
Raises:
-
AccessDeniedException–You don't have sufficient permission to perform this action.
-
InternalServerException–An internal error occurred.
-
ResourceNotFoundException–The request specifies a resource that doesn't exist.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–Invalid request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_networkflowmonitor/_services/async_network_flow_monitor.py
503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 | |