Skip to content

list_applications async

list_applications(
    *,
    config_overrides: Optional[AsyncAppIntegrationsClientConfig] = None,
    next_token: Optional[NextToken] = None,
    max_results: Optional[MaxResults] = None,
    application_type: Optional[ApplicationType] = None,
) -> ListApplicationsResponse

Lists applications in the account.

Parameters:

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

    The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

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

    The maximum number of results to return per page.

  • application_type (Optional[ApplicationType], default: None ) –

    The type of application.

Raises:

Examples:

To list applications in the account The following lists application summary in the account.

>>> await client.list_applications(max_results=1)
Source code in docs_src/capo_appintegrations/_services/async_app_integrations.py
async def list_applications(
    self,
    *,
    config_overrides: Optional[AsyncAppIntegrationsClientConfig] = None,
    next_token: Optional["capo_appintegrations.types.next_token.NextToken"] = None,
    max_results: Optional[
        "capo_appintegrations.types.max_results.MaxResults"
    ] = None,
    application_type: Optional[
        "capo_appintegrations.types.application_type.ApplicationType"
    ] = None,
) -> (
    "capo_appintegrations.types.list_applications_response.ListApplicationsResponse"
):
    """<p>Lists applications in the account.</p>

    Args:
        next_token: <p>The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.</p>
        max_results: <p>The maximum number of results to return per page.</p>
        application_type: <p>The type of application.</p>

    Raises:
        capo_appintegrations.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient access to perform this action.</p>
        capo_appintegrations.errors.internal_service_error.InternalServiceError: <p>Request processing failed due to an error or failure with the service.</p>
        capo_appintegrations.errors.invalid_request_exception.InvalidRequestException: <p>The request is not valid. </p>
        capo_appintegrations.errors.throttling_exception.ThrottlingException: <p>The throttling limit has been exceeded.</p>
        capo_appintegrations.errors.UnknownServiceError: The service returned an error code this client does not model.

    Examples:
        To list applications in the account
        The following lists application summary in the account.

        >>> await client.list_applications(max_results=1)
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_appintegrations.types.list_applications_request.ListApplicationsRequest]",
    ) -> AsyncOperationResponse[
        "capo_appintegrations.types.list_applications_response.ListApplicationsResponse"
    ]:
        import capo_appintegrations._operations.amazon_app_integration_service.list_applications

        (
            output,
            http_response,
        ) = await capo_appintegrations._operations.amazon_app_integration_service.list_applications.async_list_applications(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListApplications")
    )
    input_: capo_appintegrations.types.list_applications_request.ListApplicationsRequest = {}
    if next_token is not None:
        input_["next_token"] = next_token
    if max_results is not None:
        input_["max_results"] = max_results
    if application_type is not None:
        input_["application_type"] = application_type

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