Skip to content

EventBridgePipesClient.list_pipes

rboto-pipes==0.4.0 · Service index · Types

Model summary (excerpt): Get the pipes associated with this account. For more information about pipes, see Amazon EventBridge Pipes in the Amazon EventBridge User Guide.

Install and imports

python -m pip install "rboto[pipes]==0.4.0"
from rboto import EventBridgePipesClient
from rboto_pipes.types import (
    ListPipesOutput,
    PipeState,
    RequestedPipeState,
)

Signature

async def list_pipes(
    *,
    name_prefix: str | None = None,
    desired_state: RequestedPipeState | None = None,
    current_state: PipeState | None = None,
    source_prefix: str | None = None,
    target_prefix: str | None = None,
    next_token: str | None = None,
    limit: int | None = None,
) -> ListPipesOutput: ...

Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.

Arguments

Argument Required Model notes (excerpt)
name_prefix No A value that will return a subset of the pipes associated with this account. For example, "NamePrefix": "ABC" will return all endpoints with "ABC" in the name.
desired_state No The state the pipe should be in.
current_state No The state the pipe is in.
source_prefix No The prefix matching the pipe source.
target_prefix No The prefix matching the pipe target.
next_token No If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error.
limit No The maximum number of pipes to include in the response.

Output

ListPipesOutput.

Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.

Field Type Presence References
pipes list[PipeOutput] | None Always present PipeOutput
next_token str | None Always present —

| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.

ListPipesOutput, PipeState, RequestedPipeState

Follow these links for nested inputs and outputs; recursive types link back to the same type page.

Pagination and streaming

client.paginators.list_pipes(...) accepts the same arguments and returns AsyncIterator[ListPipesOutput]. Direct calls return one page. Pages preserve the Output representation above.

Input cursors: next_token. Page-size argument: limit.

No output stream.

Errors

Import from rboto_pipes.exceptions:

InternalError, ThrottlingError, ValidationError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Example

Complete, type-checked service example. Replace its placeholders and configure credentials before running it.

import asyncio

from rboto import EventBridgePipesClient


async def main() -> None:
    client = EventBridgePipesClient(region="us-east-1")
    response = await client.list_pipes(name_prefix="orders", limit=10)
    for pipe in response.pipes or []:
        print(pipe.name, pipe.current_state)


if __name__ == "__main__":
    asyncio.run(main())

Service guide · Pinned model