Skip to content

list_tables async

list_tables(
    *,
    config_overrides: Optional[AsyncBCMDataExportsClientConfig] = None,
    next_token: Optional[NextPageToken] = None,
    max_results: Optional[MaxResults] = None,
) -> ListTablesResponse

Lists all available tables in data exports.

Parameters:

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

    The token to retrieve the next set of results.

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

    The maximum number of objects that are returned for the request.

Raises:

Source code in docs_src/capo_bcm_data_exports/_services/async_bcm_data_exports.py
async def list_tables(
    self,
    *,
    config_overrides: Optional[AsyncBCMDataExportsClientConfig] = None,
    next_token: Optional[
        "capo_bcm_data_exports.types.next_page_token.NextPageToken"
    ] = None,
    max_results: Optional[
        "capo_bcm_data_exports.types.max_results.MaxResults"
    ] = None,
) -> "capo_bcm_data_exports.types.list_tables_response.ListTablesResponse":
    """<p>Lists all available tables in data exports.</p>

    Args:
        next_token: <p>The token to retrieve the next set of results.</p>
        max_results: <p>The maximum number of objects that are returned for the request.</p>

    Raises:
        capo_bcm_data_exports.errors.internal_server_exception.InternalServerException: <p>An error on the server occurred during the processing of your request. Try again later.</p>
        capo_bcm_data_exports.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling.</p>
        capo_bcm_data_exports.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
        capo_bcm_data_exports.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_bcm_data_exports.types.list_tables_request.ListTablesRequest]",
    ) -> AsyncOperationResponse[
        "capo_bcm_data_exports.types.list_tables_response.ListTablesResponse"
    ]:
        import capo_bcm_data_exports._operations.aws_billing_and_cost_management_data_exports.list_tables

        (
            output,
            http_response,
        ) = await capo_bcm_data_exports._operations.aws_billing_and_cost_management_data_exports.list_tables.async_list_tables(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListTables")
    )
    input_: capo_bcm_data_exports.types.list_tables_request.ListTablesRequest = {}
    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