Skip to content

GetTable

Source: src/AWS/S3Tables/GetTable.ts

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

Reads the bound Table’s details — its current versionToken, metadataLocation, warehouseLocation, and format. The version token and metadata location are the inputs to the Iceberg commit protocol (see UpdateTableMetadataLocation). Provide the implementation with Effect.provide(AWS.S3Tables.GetTableHttp).

const getTable = yield* AWS.S3Tables.GetTable(table);
const { versionToken, metadataLocation, warehouseLocation } =
yield* getTable();