list_monitors
async
¶
list_monitors(
*,
config_overrides: Optional[AsyncInternetMonitorClientConfig] = None,
next_token: Optional[str] = None,
max_results: Optional[MaxResults] = None,
monitor_status: Optional[str] = None,
include_linked_accounts: Optional[bool] = None,
) -> ListMonitorsOutput
Lists all of your monitors for Amazon CloudWatch Internet Monitor and their statuses, along with the Amazon Resource Name (ARN) and name of each monitor.
Parameters:
-
next_token(Optional[str], default:None) –The token for the next set of results. You receive this token from a previous call.
-
max_results(Optional[MaxResults], default:None) –The number of monitor objects that you want to return with this call.
-
monitor_status(Optional[str], default:None) –The status of a monitor. This includes the status of the data processing for the monitor and the status of the monitor itself.
For information about the statuses for a monitor, see Monitor.
-
include_linked_accounts(Optional[bool], default:None) –A boolean option that you can set to
TRUEto include monitors for linked accounts in a list of monitors, when you've set up cross-account sharing in Amazon CloudWatch Internet Monitor. You configure cross-account sharing by using Amazon CloudWatch Observability Access Manager. For more information, see Internet Monitor cross-account observability in the Amazon CloudWatch Internet Monitor User Guide.
Raises:
-
AccessDeniedException–You don't have sufficient permission to perform this action.
-
InternalServerException–An internal error occurred.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–Invalid request.
-
UnknownServiceError–The service returned an error code this client does not model.