Skip to content

BatchCreatePartition

Source: src/AWS/Glue/BatchCreatePartition.ts

Runtime binding for glue:BatchCreatePartition.

Registers up to 100 partitions on the bound Table in one call — the bulk variant of CreatePartition for backfills. Per-partition failures come back in the response’s Errors list. The database/table names and catalog id are injected from the binding. Provide the implementation with Effect.provide(AWS.Glue.BatchCreatePartitionHttp).

// init
const batchCreatePartition = yield* AWS.Glue.BatchCreatePartition(table);
// runtime
const { Errors } = yield* batchCreatePartition({
PartitionInputList: days.map((dt) => ({ Values: [dt] })),
});