@s2-dev/streamstore - v0.22.0
    Preparing search index...

    Class S2Basins

    Account-scoped helper for listing, creating, deleting, and reconfiguring basins.

    Retrieve this via S2.basins. Each method retries according to the client-level retry config.

    Index

    Constructors

    Methods

    • List all basins with automatic pagination. Returns a lazy async iterable that fetches pages as needed.

      Parameters

      • includeDeleted: boolean = false

        Include basins that are being deleted (default: false)

      • Optionalargs: ListAllBasinsInput

        Optional filtering options: prefix to filter by name prefix, limit for max results per page

      • Optionaloptions: S2RequestOptions

      Returns AsyncIterable<BasinInfo>

      for await (const basin of s2.basins.listAll(false, { prefix: "my-" })) {
      console.log(basin.name);
      }