Skip to content

ListDomains

Source: src/AWS/SimpleDB/ListDomains.ts

Runtime binding for sdb:ListDomains.

Account-level operation — invoked with no resource argument. Lists the domain names in the current region, one page (up to 100 names) per call; pass the response’s NextToken back to continue. Useful for the classic SimpleDB domain-sharding pattern where an application spreads items across many domains and discovers them at runtime. Provide the implementation with Effect.provide(AWS.SimpleDB.ListDomainsHttp).

// init — account-level binding, no resource argument
const listDomains = yield* AWS.SimpleDB.ListDomains();
// runtime
const page = yield* listDomains({ MaxNumberOfDomains: 100 });
// page.DomainNames: ["users-shard-0", "users-shard-1", ...]