Skip to content

S3Client.list_directory_buckets

rboto-s3==0.4.0 · Service index · Types

Model summary (excerpt): Returns a list of all Amazon S3 directory buckets owned by the authenticated sender of the request. For more information about directory buckets, see Directory buckets in the Amazon S3 User Guide . Directory buckets - For directory buckets, you must make requests for this API operation to the Regional endpoint. These endpoints support path-style requests in the format...

Install and imports

python -m pip install "rboto[s3]==0.4.0"
from rboto import S3Client
from rboto_s3.types import (
    ListDirectoryBucketsOutput,
)

Signature

async def list_directory_buckets(
    *,
    continuation_token: str | None = None,
    max_directory_buckets: int | None = None,
) -> ListDirectoryBucketsOutput: ...

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)
continuation_token No ContinuationToken indicates to Amazon S3 that the list is being continued on buckets in this account with a token. ContinuationToken is obfuscated and is not a real bucket name. You can use this ContinuationToken for the pagination of the list results.
max_directory_buckets No Maximum number of buckets to be returned in response. When the number is more than the count of buckets that are owned by an Amazon Web Services account, return all the buckets in response.

Output

ListDirectoryBucketsOutput.

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
buckets list[BucketOutput] | None Always present BucketOutput
continuation_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.

ListDirectoryBucketsOutput

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

Pagination and streaming

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

Input cursors: continuation_token. Page-size argument: max_directory_buckets.

No output stream.

Errors

No modeled service errors for this operation.

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

Service guide · Pinned model