Skip to main content
 print this page

Create an Iceberg Glue table optimizer

POST 

/datasets/:id/optimizers

Creates and configures an AWS Glue Iceberg table optimizer for the dataset. Iceberg-only (IsIcebergTable=true); not supported for IcebergCatalog=s3tables (GE-1010). type query param is required and must be one of compaction | retention | orphan-file-deletion. Request body uses Enabled plus optional Configuration keyed by type (compaction: Strategy/MinInputFiles/DeleteFileThreshold; retention: SnapshotRetentionDays/SnapshotsToRetain/CleanExpiredFiles/RunRateHours; orphan-file-deletion: OrphanFileRetentionDays/RunRateHours). IAM role ARN is applied server-side. Not idempotent: AlreadyExistsException surfaces as a create error (use PUT to update).

Request

Responses

Optimizer created. Message is "Successfully created the iceberg table optimizer".

Response Headers
    Access-Control-Allow-Origin
    Access-Control-Allow-Methods
    Access-Control-Allow-Headers