Skip to content

describe_account async

describe_account(
    *, config_overrides: Optional[AsyncWorkSpacesClientConfig] = None
) -> DescribeAccountResult

Retrieves a list that describes the configuration of Bring Your Own License (BYOL) for the specified account.

Raises:

Source code in docs_src/capo_workspaces/_services/async_work_spaces.py
async def describe_account(
    self, *, config_overrides: Optional[AsyncWorkSpacesClientConfig] = None
) -> "capo_workspaces.types.describe_account_result.DescribeAccountResult":
    """<p>Retrieves a list that describes the configuration of Bring Your Own License (BYOL) for the specified account.</p>

    Raises:
        capo_workspaces.errors.access_denied_exception.AccessDeniedException: <p>The user is not authorized to access a resource.</p>
        capo_workspaces.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_workspaces.types.describe_account_request.DescribeAccountRequest]",
    ) -> AsyncOperationResponse[
        "capo_workspaces.types.describe_account_result.DescribeAccountResult"
    ]:
        import capo_workspaces._operations.workspaces_service.describe_account

        (
            output,
            http_response,
        ) = await capo_workspaces._operations.workspaces_service.describe_account.async_describe_account(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DescribeAccount")
    )
    input_: capo_workspaces.types.describe_account_request.DescribeAccountRequest = {}

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