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/rum.py
| def list_app_monitors(
self,
*,
config_overrides: Optional[RUMClientConfig] = 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.
"""
def _handler(
req: "OperationRequest[capo_rum.types.list_app_monitors_request.ListAppMonitorsRequest]",
) -> OperationResponse[
"capo_rum.types.list_app_monitors_response.ListAppMonitorsResponse"
]:
import capo_rum._operations.rum.list_app_monitors
output, http_response = (
capo_rum._operations.rum.list_app_monitors.list_app_monitors(
req.options, req.input
)
)
return OperationResponse(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 = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|