Skip to content

list_executions async

list_executions(
    export_arn: Arn,
    *,
    config_overrides: Optional[AsyncBCMDataExportsClientConfig] = None,
    max_results: Optional[MaxResults] = None,
    next_token: Optional[NextPageToken] = None,
) -> ListExecutionsResponse

Lists the historical executions for the export.

Parameters:

  • export_arn (Arn) –

    The Amazon Resource Name (ARN) for this export.

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

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

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

    The token to retrieve the next set of results.

Raises:

Source code in docs_src/capo_bcm_data_exports/_services/async_bcm_data_exports.py
async def list_executions(
    self,
    export_arn: "capo_bcm_data_exports.types.arn.Arn",
    *,
    config_overrides: Optional[AsyncBCMDataExportsClientConfig] = None,
    max_results: Optional[
        "capo_bcm_data_exports.types.max_results.MaxResults"
    ] = None,
    next_token: Optional[
        "capo_bcm_data_exports.types.next_page_token.NextPageToken"
    ] = None,
) -> "capo_bcm_data_exports.types.list_executions_response.ListExecutionsResponse":
    """<p>Lists the historical executions for the export.</p>

    Args:
        export_arn: <p>The Amazon Resource Name (ARN) for this export.</p>
        max_results: <p>The maximum number of objects that are returned for the request.</p>
        next_token: <p>The token to retrieve the next set of results.</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.resource_not_found_exception.ResourceNotFoundException: <p>The specified Amazon Resource Name (ARN) in the request doesn't exist.</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_executions_request.ListExecutionsRequest]",
    ) -> AsyncOperationResponse[
        "capo_bcm_data_exports.types.list_executions_response.ListExecutionsResponse"
    ]:
        import capo_bcm_data_exports._operations.aws_billing_and_cost_management_data_exports.list_executions

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListExecutions")
    )
    input_: capo_bcm_data_exports.types.list_executions_request.ListExecutionsRequest = {
        "export_arn": export_arn
    }
    if max_results is not None:
        input_["max_results"] = max_results
    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