update_monitor
¶
update_monitor(
monitor_name: ResourceName,
*,
config_overrides: Optional[InternetMonitorClientConfig] = None,
resources_to_add: Optional[SetOfARNs] = None,
resources_to_remove: Optional[SetOfARNs] = None,
status: Optional[MonitorConfigState] = None,
client_token: Optional[str] = None,
max_city_networks_to_monitor: Optional[MaxCityNetworksToMonitor] = None,
internet_measurements_log_delivery: Optional[
InternetMeasurementsLogDelivery
] = None,
traffic_percentage_to_monitor: Optional[TrafficPercentageToMonitor] = None,
health_events_config: Optional[HealthEventsConfig] = None,
) -> UpdateMonitorOutput
Updates a monitor. You can update a monitor to change the percentage of traffic to monitor or the maximum number of city-networks (locations and ASNs), to add or remove resources, or to change the status of the monitor. Note that you can't change the name of a monitor.
The city-network maximum that you choose is the limit, but you only pay for the number of city-networks that are actually monitored. For more information, see Choosing a city-network maximum value in the Amazon CloudWatch User Guide.
Parameters:
-
monitor_name(ResourceName) –The name of the monitor.
-
resources_to_add(Optional[SetOfARNs], default:None) –The resources to include in a monitor, which you provide as a set of Amazon Resource Names (ARNs). Resources can be VPCs, NLBs, Amazon CloudFront distributions, or Amazon WorkSpaces directories.
You can add a combination of VPCs and CloudFront distributions, or you can add WorkSpaces directories, or you can add NLBs. You can't add NLBs or WorkSpaces directories together with any other resources.
If you add only Amazon Virtual Private Clouds resources, at least one VPC must have an Internet Gateway attached to it, to make sure that it has internet connectivity.
-
resources_to_remove(Optional[SetOfARNs], default:None) –The resources to remove from a monitor, which you provide as a set of Amazon Resource Names (ARNs).
-
status(Optional[MonitorConfigState], default:None) –The status for a monitor. The accepted values for
Statuswith theUpdateMonitorAPI call are the following:ACTIVEandINACTIVE. The following values are not accepted:PENDING, andERROR. -
client_token(Optional[str], default:None) –A unique, case-sensitive string of up to 64 ASCII characters that you specify to make an idempotent API request. You should not reuse the same client token for other API requests.
-
max_city_networks_to_monitor(Optional[MaxCityNetworksToMonitor], default:None) –The maximum number of city-networks to monitor for your application. A city-network is the location (city) where clients access your application resources from and the ASN or network provider, such as an internet service provider (ISP), that clients access the resources through. Setting this limit can help control billing costs.
-
internet_measurements_log_delivery(Optional[InternetMeasurementsLogDelivery], default:None) –Publish internet measurements for Internet Monitor to another location, such as an Amazon S3 bucket. The measurements are also published to Amazon CloudWatch Logs.
-
traffic_percentage_to_monitor(Optional[TrafficPercentageToMonitor], default:None) –The percentage of the internet-facing traffic for your application that you want to monitor with this monitor. If you set a city-networks maximum, that limit overrides the traffic percentage that you set.
To learn more, see Choosing an application traffic percentage to monitor in the Amazon CloudWatch Internet Monitor section of the CloudWatch User Guide.
-
health_events_config(Optional[HealthEventsConfig], default:None) –The list of health score thresholds. A threshold percentage for health scores, along with other configuration information, determines when Internet Monitor creates a health event when there's an internet issue that affects your application end users.
For more information, see Change health event thresholds in the Internet Monitor section of the CloudWatch User Guide.
Raises:
-
AccessDeniedException–You don't have sufficient permission to perform this action.
-
InternalServerException–An internal error occurred.
-
LimitExceededException–The request exceeded a service quota.
-
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_internetmonitor/_services/internet_monitor.py
656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 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 | |