ByteStream
rboto-bedrock-data-automation==0.4.0 · Service index · Types
Public import: from rboto_bedrock_data_automation.types import ByteStream.
Used in: not referenced by operation signatures. Async stream. Consume once with async for; byte streams also support await stream.read(), which buffers the complete body.
class ByteStream:
def __aiter__(self) -> AsyncIterator[bytes]:
...
def __anext__(self) -> Awaitable[bytes]:
...
def read(self) -> Awaitable[bytes]:
...
def write_to(self, path: str | _PathLike[str]) -> Awaitable[int]:
...
def aclose(self) -> Awaitable[None]:
...
def __aenter__(self) -> Awaitable[ByteStream]:
...
def __aexit__(self, exc_type: type[BaseException] | None, exc: BaseException | None, traceback: TracebackType | None) -> Awaitable[None]:
...