Skip to content

describe_applications async

describe_applications(
    *,
    config_overrides: Optional[AsyncAppStreamClientConfig] = None,
    arns: Optional[ArnList] = None,
    next_token: Optional[String] = None,
    max_results: Optional[Integer] = None,
) -> DescribeApplicationsResult

Retrieves a list that describes one or more applications.

Parameters:

  • arns (Optional[ArnList], default: None ) –

    The ARNs for the applications.

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

    The pagination token used to retrieve the next page of results for this operation.

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

    The maximum size of each page of results.

Raises:

Source code in docs_src/capo_appstream/_services/async_app_stream.py
async def describe_applications(
    self,
    *,
    config_overrides: Optional[AsyncAppStreamClientConfig] = None,
    arns: Optional["capo_appstream.types.arn_list.ArnList"] = None,
    next_token: Optional["capo_appstream.types.string.String"] = None,
    max_results: Optional["capo_appstream.types.integer.Integer"] = None,
) -> "capo_appstream.types.describe_applications_result.DescribeApplicationsResult":
    """<p>Retrieves a list that describes one or more applications.</p>

    Args:
        arns: <p>The ARNs for the applications.</p>
        next_token: <p>The pagination token used to retrieve the next page of results for this operation.</p>
        max_results: <p>The maximum size of each page of results.</p>

    Raises:
        capo_appstream.errors.operation_not_permitted_exception.OperationNotPermittedException: <p>The attempted operation is not permitted.</p>
        capo_appstream.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource was not found.</p>
        capo_appstream.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_appstream.types.describe_applications_request.DescribeApplicationsRequest]",
    ) -> AsyncOperationResponse[
        "capo_appstream.types.describe_applications_result.DescribeApplicationsResult"
    ]:
        import capo_appstream._operations.photon_admin_proxy_service.describe_applications

        (
            output,
            http_response,
        ) = await capo_appstream._operations.photon_admin_proxy_service.describe_applications.async_describe_applications(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DescribeApplications")
    )
    input_: capo_appstream.types.describe_applications_request.DescribeApplicationsRequest = {}
    if arns is not None:
        input_["arns"] = arns
    if next_token is not None:
        input_["next_token"] = next_token
    if max_results is not None:
        input_["max_results"] = max_results

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