Skip to content

list_pipelines async

list_pipelines(
    *,
    config_overrides: Optional[AsyncElasticTranscoderClientConfig] = None,
    ascending: Optional[Ascending] = None,
    page_token: Optional[Id] = None,
) -> ListPipelinesResponse

The ListPipelines operation gets a list of the pipelines associated with the current AWS account.

Parameters:

  • ascending (Optional[Ascending], default: None ) –

    To list pipelines in chronological order by the date and time that they were created, enter true. To list pipelines in reverse chronological order, enter false.

  • page_token (Optional[Id], default: None ) –

    When Elastic Transcoder returns more than one page of results, use pageToken in subsequent GET requests to get each successive page of results.

Raises:

Source code in docs_src/capo_elastic_transcoder/_services/async_elastic_transcoder.py
async def list_pipelines(
    self,
    *,
    config_overrides: Optional[AsyncElasticTranscoderClientConfig] = None,
    ascending: Optional["capo_elastic_transcoder.types.ascending.Ascending"] = None,
    page_token: Optional["capo_elastic_transcoder.types.id.Id"] = None,
) -> "capo_elastic_transcoder.types.list_pipelines_response.ListPipelinesResponse":
    """<p>The ListPipelines operation gets a list of the pipelines associated with the current AWS account.</p>

    Args:
        ascending: <p>To list pipelines in chronological order by the date and time that they were created, enter <code>true</code>. To list pipelines in reverse chronological order, enter <code>false</code>.</p>
        page_token: <p>When Elastic Transcoder returns more than one page of results, use <code>pageToken</code> in subsequent <code>GET</code> requests to get each successive page of results. </p>

    Raises:
        capo_elastic_transcoder.errors.access_denied_exception.AccessDeniedException: <p>General authentication failure. The request was not signed correctly.</p>
        capo_elastic_transcoder.errors.incompatible_version_exception.IncompatibleVersionException
        capo_elastic_transcoder.errors.internal_service_exception.InternalServiceException: <p>Elastic Transcoder encountered an unexpected exception while trying to fulfill the request.</p>
        capo_elastic_transcoder.errors.validation_exception.ValidationException: <p>One or more required parameter values were not provided in the request.</p>
        capo_elastic_transcoder.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_elastic_transcoder.types.list_pipelines_request.ListPipelinesRequest]",
    ) -> AsyncOperationResponse[
        "capo_elastic_transcoder.types.list_pipelines_response.ListPipelinesResponse"
    ]:
        import capo_elastic_transcoder._operations.ets_customer_service.list_pipelines

        (
            output,
            http_response,
        ) = await capo_elastic_transcoder._operations.ets_customer_service.list_pipelines.async_list_pipelines(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListPipelines")
    )
    input_: capo_elastic_transcoder.types.list_pipelines_request.ListPipelinesRequest = {}
    if ascending is not None:
        input_["ascending"] = ascending
    if page_token is not None:
        input_["page_token"] = page_token

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