Skip to content

list_app_monitors async

list_app_monitors(
    *,
    config_overrides: Optional[AsyncRUMClientConfig] = None,
    max_results: Optional[MaxResultsInteger] = None,
    next_token: Optional[str] = None,
) -> ListAppMonitorsResponse

Returns a list of the Amazon CloudWatch RUM app monitors in the account.

Parameters:

  • max_results (Optional[MaxResultsInteger], default: None ) –

    The maximum number of results to return in one operation. The default is 50. The maximum that you can specify is 100.

  • next_token (Optional[str], default: None ) –

    Use the token returned by the previous operation to request the next page of results.

Raises:

Source code in docs_src/capo_rum/_services/async_rum.py
async def list_app_monitors(
    self,
    *,
    config_overrides: Optional[AsyncRUMClientConfig] = None,
    max_results: Optional[
        "capo_rum.types.max_results_integer.MaxResultsInteger"
    ] = None,
    next_token: Optional[str] = None,
) -> "capo_rum.types.list_app_monitors_response.ListAppMonitorsResponse":
    """<p>Returns a list of the Amazon CloudWatch RUM app monitors in the account.</p>

    Args:
        max_results: <p>The maximum number of results to return in one operation. The default is 50. The maximum that you can specify is 100.</p>
        next_token: <p>Use the token returned by the previous operation to request the next page of results.</p>

    Raises:
        capo_rum.errors.access_denied_exception.AccessDeniedException: <p>You don't have sufficient permissions to perform this action.</p>
        capo_rum.errors.internal_server_exception.InternalServerException: <p>Internal service exception.</p>
        capo_rum.errors.throttling_exception.ThrottlingException: <p>The request was throttled because of quota limits.</p>
        capo_rum.errors.validation_exception.ValidationException: <p>One of the arguments for the request is not valid.</p>
        capo_rum.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_rum.types.list_app_monitors_request.ListAppMonitorsRequest]",
    ) -> AsyncOperationResponse[
        "capo_rum.types.list_app_monitors_response.ListAppMonitorsResponse"
    ]:
        import capo_rum._operations.rum.list_app_monitors

        (
            output,
            http_response,
        ) = await capo_rum._operations.rum.list_app_monitors.async_list_app_monitors(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListAppMonitors")
    )
    input_: capo_rum.types.list_app_monitors_request.ListAppMonitorsRequest = {}
    if max_results is not None:
        input_["max_results"] = max_results
    if next_token is not None:
        input_["next_token"] = next_token

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output