Skip to content

describe_account_modifications async

describe_account_modifications(
    *,
    config_overrides: Optional[AsyncWorkSpacesClientConfig] = None,
    next_token: Optional[PaginationToken] = None,
) -> DescribeAccountModificationsResult

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

Parameters:

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

    If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results.

Raises:

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

    Args:
        next_token: <p>If you received a <code>NextToken</code> from a previous call that was paginated, provide this token to receive the next set of results.</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_modifications_request.DescribeAccountModificationsRequest]",
    ) -> AsyncOperationResponse[
        "capo_workspaces.types.describe_account_modifications_result.DescribeAccountModificationsResult"
    ]:
        import capo_workspaces._operations.workspaces_service.describe_account_modifications

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DescribeAccountModifications")
    )
    input_: capo_workspaces.types.describe_account_modifications_request.DescribeAccountModificationsRequest = {}
    if next_token is not None:
        input_["next_token"] = next_token

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