Skip to content

ListNamespaces

Source: src/AWS/S3Tables/ListNamespaces.ts

Runtime binding for the ListNamespaces operation (IAM action s3tables:ListNamespaces on the table bucket ARN).

Lists the namespaces in the bound TableBucket — the catalog’s databases. Useful for compute that discovers tables dynamically at runtime. Provide the implementation with Effect.provide(AWS.S3Tables.ListNamespacesHttp).

const listNamespaces = yield* AWS.S3Tables.ListNamespaces(bucket);
const { namespaces } = yield* listNamespaces();
for (const ns of namespaces) {
yield* Effect.log(`namespace: ${ns.namespace[0]}`);
}