Lists the IDs of the applications that you are monitoring.
Parameters:
-
max_results
(Optional[MaxEntities], default:
None
)
–
The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned NextToken value.
-
next_token
(Optional[PaginationToken], default:
None
)
–
The token to request the next page of results.
-
account_id
(Optional[AccountId], default:
None
)
–
The Amazon Web Services account ID for the resource group owner.
Raises:
Source code in docs_src/capo_application_insights/_services/application_insights.py
| def list_applications(
self,
*,
config_overrides: Optional[ApplicationInsightsClientConfig] = None,
max_results: Optional[
"capo_application_insights.types.max_entities.MaxEntities"
] = None,
next_token: Optional[
"capo_application_insights.types.pagination_token.PaginationToken"
] = None,
account_id: Optional[
"capo_application_insights.types.account_id.AccountId"
] = None,
) -> "capo_application_insights.types.list_applications_response.ListApplicationsResponse":
"""<p>Lists the IDs of the applications that you are monitoring. </p>
Args:
max_results: <p>The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned <code>NextToken</code> value.</p>
next_token: <p>The token to request the next page of results.</p>
account_id: <p>The Amazon Web Services account ID for the resource group owner.</p>
Raises:
capo_application_insights.errors.internal_server_exception.InternalServerException: <p>The server encountered an internal error and is unable to complete the request.</p>
capo_application_insights.errors.validation_exception.ValidationException: <p>The parameter is not valid.</p>
capo_application_insights.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_application_insights.types.list_applications_request.ListApplicationsRequest]",
) -> OperationResponse[
"capo_application_insights.types.list_applications_response.ListApplicationsResponse"
]:
import capo_application_insights._operations.ec2_windows_barley_service.list_applications
output, http_response = (
capo_application_insights._operations.ec2_windows_barley_service.list_applications.list_applications(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("ListApplications")
)
input_: capo_application_insights.types.list_applications_request.ListApplicationsRequest = {}
if max_results is not None:
input_["max_results"] = max_results
if next_token is not None:
input_["next_token"] = next_token
if account_id is not None:
input_["account_id"] = account_id
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|