Skip to content

GetTableMetadataLocation

Source: src/AWS/S3Tables/GetTableMetadataLocation.ts

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

Reads the bound Table’s current metadata location and version token — the read half of the Iceberg commit protocol: read the current metadata, write a new metadata file to the warehouse, then commit it with UpdateTableMetadataLocation. Provide the implementation with Effect.provide(AWS.S3Tables.GetTableMetadataLocationHttp).

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