published on Friday, Nov 13, 2026 by Pulumi
published on Friday, Nov 13, 2026 by Pulumi
Resource for managing an AWS Glue Catalog Table Optimizer.
Example Usage
Compaction Optimizer
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.glue.CatalogTableOptimizer("example", {
configuration: {
compactionConfiguration: {
icebergConfiguration: {
strategy: "binpack",
minInputFiles: 5,
deleteFileThreshold: 1,
},
},
roleArn: "arn:aws:iam::123456789012:role/example-role",
enabled: true,
},
catalogId: "123456789012",
databaseName: "example_database",
tableName: "example_table",
type: "compaction",
});
import pulumi
import pulumi_aws as aws
example = aws.glue.CatalogTableOptimizer("example",
configuration={
"compaction_configuration": {
"iceberg_configuration": {
"strategy": "binpack",
"min_input_files": 5,
"delete_file_threshold": 1,
},
},
"role_arn": "arn:aws:iam::123456789012:role/example-role",
"enabled": True,
},
catalog_id="123456789012",
database_name="example_database",
table_name="example_table",
type="compaction")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/glue"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := glue.NewCatalogTableOptimizer(ctx, "example", &glue.CatalogTableOptimizerArgs{
Configuration: &glue.CatalogTableOptimizerConfigurationArgs{
CompactionConfiguration: &glue.CatalogTableOptimizerConfigurationCompactionConfigurationArgs{
IcebergConfiguration: &glue.CatalogTableOptimizerConfigurationCompactionConfigurationIcebergConfigurationArgs{
Strategy: pulumi.String("binpack"),
MinInputFiles: pulumi.Int(5),
DeleteFileThreshold: pulumi.Int(1),
},
},
RoleArn: pulumi.String("arn:aws:iam::123456789012:role/example-role"),
Enabled: pulumi.Bool(true),
},
CatalogId: pulumi.String("123456789012"),
DatabaseName: pulumi.String("example_database"),
TableName: pulumi.String("example_table"),
Type: pulumi.String("compaction"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Glue.CatalogTableOptimizer("example", new()
{
Configuration = new Aws.Glue.Inputs.CatalogTableOptimizerConfigurationArgs
{
CompactionConfiguration = new Aws.Glue.Inputs.CatalogTableOptimizerConfigurationCompactionConfigurationArgs
{
IcebergConfiguration = new Aws.Glue.Inputs.CatalogTableOptimizerConfigurationCompactionConfigurationIcebergConfigurationArgs
{
Strategy = "binpack",
MinInputFiles = 5,
DeleteFileThreshold = 1,
},
},
RoleArn = "arn:aws:iam::123456789012:role/example-role",
Enabled = true,
},
CatalogId = "123456789012",
DatabaseName = "example_database",
TableName = "example_table",
Type = "compaction",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.glue.CatalogTableOptimizer;
import com.pulumi.aws.glue.CatalogTableOptimizerArgs;
import com.pulumi.aws.glue.inputs.CatalogTableOptimizerConfigurationArgs;
import com.pulumi.aws.glue.inputs.CatalogTableOptimizerConfigurationCompactionConfigurationArgs;
import com.pulumi.aws.glue.inputs.CatalogTableOptimizerConfigurationCompactionConfigurationIcebergConfigurationArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new CatalogTableOptimizer("example", CatalogTableOptimizerArgs.builder()
.configuration(CatalogTableOptimizerConfigurationArgs.builder()
.compactionConfiguration(CatalogTableOptimizerConfigurationCompactionConfigurationArgs.builder()
.icebergConfiguration(CatalogTableOptimizerConfigurationCompactionConfigurationIcebergConfigurationArgs.builder()
.strategy("binpack")
.minInputFiles(5)
.deleteFileThreshold(1)
.build())
.build())
.roleArn("arn:aws:iam::123456789012:role/example-role")
.enabled(true)
.build())
.catalogId("123456789012")
.databaseName("example_database")
.tableName("example_table")
.type("compaction")
.build());
}
}
resources:
example:
type: aws:glue:CatalogTableOptimizer
properties:
configuration:
compactionConfiguration:
icebergConfiguration:
strategy: binpack
minInputFiles: 5
deleteFileThreshold: 1
roleArn: arn:aws:iam::123456789012:role/example-role
enabled: true
catalogId: '123456789012'
databaseName: example_database
tableName: example_table
type: compaction
terraform {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_glue_catalog_table_optimizer" "example" {
lifecycle {
create_before_destroy = true
}
configuration {
compaction_configuration {
iceberg_configuration {
strategy = "binpack"
min_input_files = 5
delete_file_threshold = 1
}
}
role_arn = "arn:aws:iam::123456789012:role/example-role"
enabled = true
}
catalog_id = "123456789012"
database_name = "example_database"
table_name = "example_table"
type = "compaction"
}
Snapshot Retention Optimizer
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.glue.CatalogTableOptimizer("example", {
configuration: {
retentionConfiguration: {
icebergConfiguration: {
snapshotRetentionPeriodInDays: 7,
numberOfSnapshotsToRetain: 3,
cleanExpiredFiles: true,
},
},
roleArn: "arn:aws:iam::123456789012:role/example-role",
enabled: true,
},
catalogId: "123456789012",
databaseName: "example_database",
tableName: "example_table",
type: "retention",
});
import pulumi
import pulumi_aws as aws
example = aws.glue.CatalogTableOptimizer("example",
configuration={
"retention_configuration": {
"iceberg_configuration": {
"snapshot_retention_period_in_days": 7,
"number_of_snapshots_to_retain": 3,
"clean_expired_files": True,
},
},
"role_arn": "arn:aws:iam::123456789012:role/example-role",
"enabled": True,
},
catalog_id="123456789012",
database_name="example_database",
table_name="example_table",
type="retention")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/glue"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := glue.NewCatalogTableOptimizer(ctx, "example", &glue.CatalogTableOptimizerArgs{
Configuration: &glue.CatalogTableOptimizerConfigurationArgs{
RetentionConfiguration: &glue.CatalogTableOptimizerConfigurationRetentionConfigurationArgs{
IcebergConfiguration: &glue.CatalogTableOptimizerConfigurationRetentionConfigurationIcebergConfigurationArgs{
SnapshotRetentionPeriodInDays: pulumi.Int(7),
NumberOfSnapshotsToRetain: pulumi.Int(3),
CleanExpiredFiles: pulumi.Bool(true),
},
},
RoleArn: pulumi.String("arn:aws:iam::123456789012:role/example-role"),
Enabled: pulumi.Bool(true),
},
CatalogId: pulumi.String("123456789012"),
DatabaseName: pulumi.String("example_database"),
TableName: pulumi.String("example_table"),
Type: pulumi.String("retention"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Glue.CatalogTableOptimizer("example", new()
{
Configuration = new Aws.Glue.Inputs.CatalogTableOptimizerConfigurationArgs
{
RetentionConfiguration = new Aws.Glue.Inputs.CatalogTableOptimizerConfigurationRetentionConfigurationArgs
{
IcebergConfiguration = new Aws.Glue.Inputs.CatalogTableOptimizerConfigurationRetentionConfigurationIcebergConfigurationArgs
{
SnapshotRetentionPeriodInDays = 7,
NumberOfSnapshotsToRetain = 3,
CleanExpiredFiles = true,
},
},
RoleArn = "arn:aws:iam::123456789012:role/example-role",
Enabled = true,
},
CatalogId = "123456789012",
DatabaseName = "example_database",
TableName = "example_table",
Type = "retention",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.glue.CatalogTableOptimizer;
import com.pulumi.aws.glue.CatalogTableOptimizerArgs;
import com.pulumi.aws.glue.inputs.CatalogTableOptimizerConfigurationArgs;
import com.pulumi.aws.glue.inputs.CatalogTableOptimizerConfigurationRetentionConfigurationArgs;
import com.pulumi.aws.glue.inputs.CatalogTableOptimizerConfigurationRetentionConfigurationIcebergConfigurationArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new CatalogTableOptimizer("example", CatalogTableOptimizerArgs.builder()
.configuration(CatalogTableOptimizerConfigurationArgs.builder()
.retentionConfiguration(CatalogTableOptimizerConfigurationRetentionConfigurationArgs.builder()
.icebergConfiguration(CatalogTableOptimizerConfigurationRetentionConfigurationIcebergConfigurationArgs.builder()
.snapshotRetentionPeriodInDays(7)
.numberOfSnapshotsToRetain(3)
.cleanExpiredFiles(true)
.build())
.build())
.roleArn("arn:aws:iam::123456789012:role/example-role")
.enabled(true)
.build())
.catalogId("123456789012")
.databaseName("example_database")
.tableName("example_table")
.type("retention")
.build());
}
}
resources:
example:
type: aws:glue:CatalogTableOptimizer
properties:
configuration:
retentionConfiguration:
icebergConfiguration:
snapshotRetentionPeriodInDays: 7
numberOfSnapshotsToRetain: 3
cleanExpiredFiles: true
roleArn: arn:aws:iam::123456789012:role/example-role
enabled: true
catalogId: '123456789012'
databaseName: example_database
tableName: example_table
type: retention
terraform {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_glue_catalog_table_optimizer" "example" {
lifecycle {
create_before_destroy = true
}
configuration {
retention_configuration {
iceberg_configuration {
snapshot_retention_period_in_days = 7
number_of_snapshots_to_retain = 3
clean_expired_files = true
}
}
role_arn = "arn:aws:iam::123456789012:role/example-role"
enabled = true
}
catalog_id = "123456789012"
database_name = "example_database"
table_name = "example_table"
type = "retention"
}
Orphan File Deletion Optimizer
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.glue.CatalogTableOptimizer("example", {
configuration: {
orphanFileDeletionConfiguration: {
icebergConfiguration: {
orphanFileRetentionPeriodInDays: 7,
location: "s3://example-bucket/example_table/",
},
},
roleArn: "arn:aws:iam::123456789012:role/example-role",
enabled: true,
},
catalogId: "123456789012",
databaseName: "example_database",
tableName: "example_table",
type: "orphan_file_deletion",
});
import pulumi
import pulumi_aws as aws
example = aws.glue.CatalogTableOptimizer("example",
configuration={
"orphan_file_deletion_configuration": {
"iceberg_configuration": {
"orphan_file_retention_period_in_days": 7,
"location": "s3://example-bucket/example_table/",
},
},
"role_arn": "arn:aws:iam::123456789012:role/example-role",
"enabled": True,
},
catalog_id="123456789012",
database_name="example_database",
table_name="example_table",
type="orphan_file_deletion")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/glue"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := glue.NewCatalogTableOptimizer(ctx, "example", &glue.CatalogTableOptimizerArgs{
Configuration: &glue.CatalogTableOptimizerConfigurationArgs{
OrphanFileDeletionConfiguration: &glue.CatalogTableOptimizerConfigurationOrphanFileDeletionConfigurationArgs{
IcebergConfiguration: &glue.CatalogTableOptimizerConfigurationOrphanFileDeletionConfigurationIcebergConfigurationArgs{
OrphanFileRetentionPeriodInDays: pulumi.Int(7),
Location: pulumi.String("s3://example-bucket/example_table/"),
},
},
RoleArn: pulumi.String("arn:aws:iam::123456789012:role/example-role"),
Enabled: pulumi.Bool(true),
},
CatalogId: pulumi.String("123456789012"),
DatabaseName: pulumi.String("example_database"),
TableName: pulumi.String("example_table"),
Type: pulumi.String("orphan_file_deletion"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Glue.CatalogTableOptimizer("example", new()
{
Configuration = new Aws.Glue.Inputs.CatalogTableOptimizerConfigurationArgs
{
OrphanFileDeletionConfiguration = new Aws.Glue.Inputs.CatalogTableOptimizerConfigurationOrphanFileDeletionConfigurationArgs
{
IcebergConfiguration = new Aws.Glue.Inputs.CatalogTableOptimizerConfigurationOrphanFileDeletionConfigurationIcebergConfigurationArgs
{
OrphanFileRetentionPeriodInDays = 7,
Location = "s3://example-bucket/example_table/",
},
},
RoleArn = "arn:aws:iam::123456789012:role/example-role",
Enabled = true,
},
CatalogId = "123456789012",
DatabaseName = "example_database",
TableName = "example_table",
Type = "orphan_file_deletion",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.glue.CatalogTableOptimizer;
import com.pulumi.aws.glue.CatalogTableOptimizerArgs;
import com.pulumi.aws.glue.inputs.CatalogTableOptimizerConfigurationArgs;
import com.pulumi.aws.glue.inputs.CatalogTableOptimizerConfigurationOrphanFileDeletionConfigurationArgs;
import com.pulumi.aws.glue.inputs.CatalogTableOptimizerConfigurationOrphanFileDeletionConfigurationIcebergConfigurationArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new CatalogTableOptimizer("example", CatalogTableOptimizerArgs.builder()
.configuration(CatalogTableOptimizerConfigurationArgs.builder()
.orphanFileDeletionConfiguration(CatalogTableOptimizerConfigurationOrphanFileDeletionConfigurationArgs.builder()
.icebergConfiguration(CatalogTableOptimizerConfigurationOrphanFileDeletionConfigurationIcebergConfigurationArgs.builder()
.orphanFileRetentionPeriodInDays(7)
.location("s3://example-bucket/example_table/")
.build())
.build())
.roleArn("arn:aws:iam::123456789012:role/example-role")
.enabled(true)
.build())
.catalogId("123456789012")
.databaseName("example_database")
.tableName("example_table")
.type("orphan_file_deletion")
.build());
}
}
resources:
example:
type: aws:glue:CatalogTableOptimizer
properties:
configuration:
orphanFileDeletionConfiguration:
icebergConfiguration:
orphanFileRetentionPeriodInDays: 7
location: s3://example-bucket/example_table/
roleArn: arn:aws:iam::123456789012:role/example-role
enabled: true
catalogId: '123456789012'
databaseName: example_database
tableName: example_table
type: orphan_file_deletion
terraform {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_glue_catalog_table_optimizer" "example" {
lifecycle {
create_before_destroy = true
}
configuration {
orphan_file_deletion_configuration {
iceberg_configuration {
orphan_file_retention_period_in_days = 7
location = "s3://example-bucket/example_table/"
}
}
role_arn = "arn:aws:iam::123456789012:role/example-role"
enabled = true
}
catalog_id = "123456789012"
database_name = "example_database"
table_name = "example_table"
type = "orphan_file_deletion"
}
Create CatalogTableOptimizer Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CatalogTableOptimizer(name: string, args: CatalogTableOptimizerArgs, opts?: CustomResourceOptions);@overload
def CatalogTableOptimizer(resource_name: str,
args: CatalogTableOptimizerArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CatalogTableOptimizer(resource_name: str,
opts: Optional[ResourceOptions] = None,
catalog_id: Optional[str] = None,
configuration: Optional[CatalogTableOptimizerConfigurationArgs] = None,
database_name: Optional[str] = None,
table_name: Optional[str] = None,
type: Optional[str] = None,
region: Optional[str] = None)func NewCatalogTableOptimizer(ctx *Context, name string, args CatalogTableOptimizerArgs, opts ...ResourceOption) (*CatalogTableOptimizer, error)public CatalogTableOptimizer(string name, CatalogTableOptimizerArgs args, CustomResourceOptions? opts = null)
public CatalogTableOptimizer(String name, CatalogTableOptimizerArgs args)
public CatalogTableOptimizer(String name, CatalogTableOptimizerArgs args, CustomResourceOptions options)
type: aws:glue:CatalogTableOptimizer
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "aws_glue_catalog_table_optimizer" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args CatalogTableOptimizerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args CatalogTableOptimizerArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args CatalogTableOptimizerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CatalogTableOptimizerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CatalogTableOptimizerArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var catalogTableOptimizerResource = new Aws.Glue.CatalogTableOptimizer("catalogTableOptimizerResource", new()
{
CatalogId = "string",
Configuration = new Aws.Glue.Inputs.CatalogTableOptimizerConfigurationArgs
{
Enabled = false,
RoleArn = "string",
CompactionConfiguration = new Aws.Glue.Inputs.CatalogTableOptimizerConfigurationCompactionConfigurationArgs
{
IcebergConfiguration = new Aws.Glue.Inputs.CatalogTableOptimizerConfigurationCompactionConfigurationIcebergConfigurationArgs
{
DeleteFileThreshold = 0,
MinInputFiles = 0,
Strategy = "string",
},
},
OrphanFileDeletionConfiguration = new Aws.Glue.Inputs.CatalogTableOptimizerConfigurationOrphanFileDeletionConfigurationArgs
{
IcebergConfiguration = new Aws.Glue.Inputs.CatalogTableOptimizerConfigurationOrphanFileDeletionConfigurationIcebergConfigurationArgs
{
Location = "string",
OrphanFileRetentionPeriodInDays = 0,
RunRateInHours = 0,
},
},
RetentionConfiguration = new Aws.Glue.Inputs.CatalogTableOptimizerConfigurationRetentionConfigurationArgs
{
IcebergConfiguration = new Aws.Glue.Inputs.CatalogTableOptimizerConfigurationRetentionConfigurationIcebergConfigurationArgs
{
CleanExpiredFiles = false,
NumberOfSnapshotsToRetain = 0,
RunRateInHours = 0,
SnapshotRetentionPeriodInDays = 0,
},
},
},
DatabaseName = "string",
TableName = "string",
Type = "string",
Region = "string",
});
example, err := glue.NewCatalogTableOptimizer(ctx, "catalogTableOptimizerResource", &glue.CatalogTableOptimizerArgs{
CatalogId: pulumi.String("string"),
Configuration: &glue.CatalogTableOptimizerConfigurationArgs{
Enabled: pulumi.Bool(false),
RoleArn: pulumi.String("string"),
CompactionConfiguration: &glue.CatalogTableOptimizerConfigurationCompactionConfigurationArgs{
IcebergConfiguration: &glue.CatalogTableOptimizerConfigurationCompactionConfigurationIcebergConfigurationArgs{
DeleteFileThreshold: pulumi.Int(0),
MinInputFiles: pulumi.Int(0),
Strategy: pulumi.String("string"),
},
},
OrphanFileDeletionConfiguration: &glue.CatalogTableOptimizerConfigurationOrphanFileDeletionConfigurationArgs{
IcebergConfiguration: &glue.CatalogTableOptimizerConfigurationOrphanFileDeletionConfigurationIcebergConfigurationArgs{
Location: pulumi.String("string"),
OrphanFileRetentionPeriodInDays: pulumi.Int(0),
RunRateInHours: pulumi.Int(0),
},
},
RetentionConfiguration: &glue.CatalogTableOptimizerConfigurationRetentionConfigurationArgs{
IcebergConfiguration: &glue.CatalogTableOptimizerConfigurationRetentionConfigurationIcebergConfigurationArgs{
CleanExpiredFiles: pulumi.Bool(false),
NumberOfSnapshotsToRetain: pulumi.Int(0),
RunRateInHours: pulumi.Int(0),
SnapshotRetentionPeriodInDays: pulumi.Int(0),
},
},
},
DatabaseName: pulumi.String("string"),
TableName: pulumi.String("string"),
Type: pulumi.String("string"),
Region: pulumi.String("string"),
})
resource "aws_glue_catalog_table_optimizer" "catalogTableOptimizerResource" {
lifecycle {
create_before_destroy = true
}
catalog_id = "string"
configuration = {
enabled = false
role_arn = "string"
compaction_configuration = {
iceberg_configuration = {
delete_file_threshold = 0
min_input_files = 0
strategy = "string"
}
}
orphan_file_deletion_configuration = {
iceberg_configuration = {
location = "string"
orphan_file_retention_period_in_days = 0
run_rate_in_hours = 0
}
}
retention_configuration = {
iceberg_configuration = {
clean_expired_files = false
number_of_snapshots_to_retain = 0
run_rate_in_hours = 0
snapshot_retention_period_in_days = 0
}
}
}
database_name = "string"
table_name = "string"
type = "string"
region = "string"
}
var catalogTableOptimizerResource = new CatalogTableOptimizer("catalogTableOptimizerResource", CatalogTableOptimizerArgs.builder()
.catalogId("string")
.configuration(CatalogTableOptimizerConfigurationArgs.builder()
.enabled(false)
.roleArn("string")
.compactionConfiguration(CatalogTableOptimizerConfigurationCompactionConfigurationArgs.builder()
.icebergConfiguration(CatalogTableOptimizerConfigurationCompactionConfigurationIcebergConfigurationArgs.builder()
.deleteFileThreshold(0)
.minInputFiles(0)
.strategy("string")
.build())
.build())
.orphanFileDeletionConfiguration(CatalogTableOptimizerConfigurationOrphanFileDeletionConfigurationArgs.builder()
.icebergConfiguration(CatalogTableOptimizerConfigurationOrphanFileDeletionConfigurationIcebergConfigurationArgs.builder()
.location("string")
.orphanFileRetentionPeriodInDays(0)
.runRateInHours(0)
.build())
.build())
.retentionConfiguration(CatalogTableOptimizerConfigurationRetentionConfigurationArgs.builder()
.icebergConfiguration(CatalogTableOptimizerConfigurationRetentionConfigurationIcebergConfigurationArgs.builder()
.cleanExpiredFiles(false)
.numberOfSnapshotsToRetain(0)
.runRateInHours(0)
.snapshotRetentionPeriodInDays(0)
.build())
.build())
.build())
.databaseName("string")
.tableName("string")
.type("string")
.region("string")
.build());
catalog_table_optimizer_resource = aws.glue.CatalogTableOptimizer("catalogTableOptimizerResource",
catalog_id="string",
configuration={
"enabled": False,
"role_arn": "string",
"compaction_configuration": {
"iceberg_configuration": {
"delete_file_threshold": 0,
"min_input_files": 0,
"strategy": "string",
},
},
"orphan_file_deletion_configuration": {
"iceberg_configuration": {
"location": "string",
"orphan_file_retention_period_in_days": 0,
"run_rate_in_hours": 0,
},
},
"retention_configuration": {
"iceberg_configuration": {
"clean_expired_files": False,
"number_of_snapshots_to_retain": 0,
"run_rate_in_hours": 0,
"snapshot_retention_period_in_days": 0,
},
},
},
database_name="string",
table_name="string",
type="string",
region="string")
const catalogTableOptimizerResource = new aws.glue.CatalogTableOptimizer("catalogTableOptimizerResource", {
catalogId: "string",
configuration: {
enabled: false,
roleArn: "string",
compactionConfiguration: {
icebergConfiguration: {
deleteFileThreshold: 0,
minInputFiles: 0,
strategy: "string",
},
},
orphanFileDeletionConfiguration: {
icebergConfiguration: {
location: "string",
orphanFileRetentionPeriodInDays: 0,
runRateInHours: 0,
},
},
retentionConfiguration: {
icebergConfiguration: {
cleanExpiredFiles: false,
numberOfSnapshotsToRetain: 0,
runRateInHours: 0,
snapshotRetentionPeriodInDays: 0,
},
},
},
databaseName: "string",
tableName: "string",
type: "string",
region: "string",
});
type: aws:glue:CatalogTableOptimizer
properties:
catalogId: string
configuration:
compactionConfiguration:
icebergConfiguration:
deleteFileThreshold: 0
minInputFiles: 0
strategy: string
enabled: false
orphanFileDeletionConfiguration:
icebergConfiguration:
location: string
orphanFileRetentionPeriodInDays: 0
runRateInHours: 0
retentionConfiguration:
icebergConfiguration:
cleanExpiredFiles: false
numberOfSnapshotsToRetain: 0
runRateInHours: 0
snapshotRetentionPeriodInDays: 0
roleArn: string
databaseName: string
region: string
tableName: string
type: string
CatalogTableOptimizer Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The CatalogTableOptimizer resource accepts the following input properties:
- Catalog
Id string - Catalog ID of the table.
- Configuration
Catalog
Table Optimizer Configuration - Configuration block that defines the table optimizer settings. See
configurationBlock for additional details. - Database
Name string - Name of the database in the catalog in which the table resides.
- Table
Name string - Name of the table.
- Type string
- Type of table optimizer. Valid values are
compaction,retention, andorphanFileDeletion. - Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Catalog
Id string - Catalog ID of the table.
- Configuration
Catalog
Table Optimizer Configuration Args - Configuration block that defines the table optimizer settings. See
configurationBlock for additional details. - Database
Name string - Name of the database in the catalog in which the table resides.
- Table
Name string - Name of the table.
- Type string
- Type of table optimizer. Valid values are
compaction,retention, andorphanFileDeletion. - Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- catalog_
id string - Catalog ID of the table.
- configuration object
- Configuration block that defines the table optimizer settings. See
configurationBlock for additional details. - database_
name string - Name of the database in the catalog in which the table resides.
- table_
name string - Name of the table.
- type string
- Type of table optimizer. Valid values are
compaction,retention, andorphanFileDeletion. - region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- catalog
Id String - Catalog ID of the table.
- configuration
Catalog
Table Optimizer Configuration - Configuration block that defines the table optimizer settings. See
configurationBlock for additional details. - database
Name String - Name of the database in the catalog in which the table resides.
- table
Name String - Name of the table.
- type String
- Type of table optimizer. Valid values are
compaction,retention, andorphanFileDeletion. - region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- catalog
Id string - Catalog ID of the table.
- configuration
Catalog
Table Optimizer Configuration - Configuration block that defines the table optimizer settings. See
configurationBlock for additional details. - database
Name string - Name of the database in the catalog in which the table resides.
- table
Name string - Name of the table.
- type string
- Type of table optimizer. Valid values are
compaction,retention, andorphanFileDeletion. - region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- catalog_
id str - Catalog ID of the table.
- configuration
Catalog
Table Optimizer Configuration Args - Configuration block that defines the table optimizer settings. See
configurationBlock for additional details. - database_
name str - Name of the database in the catalog in which the table resides.
- table_
name str - Name of the table.
- type str
- Type of table optimizer. Valid values are
compaction,retention, andorphanFileDeletion. - region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- catalog
Id String - Catalog ID of the table.
- configuration Property Map
- Configuration block that defines the table optimizer settings. See
configurationBlock for additional details. - database
Name String - Name of the database in the catalog in which the table resides.
- table
Name String - Name of the table.
- type String
- Type of table optimizer. Valid values are
compaction,retention, andorphanFileDeletion. - region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
Outputs
All input properties are implicitly available as output properties. Additionally, the CatalogTableOptimizer resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing CatalogTableOptimizer Resource
Get an existing CatalogTableOptimizer resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: CatalogTableOptimizerState, opts?: CustomResourceOptions): CatalogTableOptimizer@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
catalog_id: Optional[str] = None,
configuration: Optional[CatalogTableOptimizerConfigurationArgs] = None,
database_name: Optional[str] = None,
region: Optional[str] = None,
table_name: Optional[str] = None,
type: Optional[str] = None) -> CatalogTableOptimizerfunc GetCatalogTableOptimizer(ctx *Context, name string, id IDInput, state *CatalogTableOptimizerState, opts ...ResourceOption) (*CatalogTableOptimizer, error)public static CatalogTableOptimizer Get(string name, Input<string> id, CatalogTableOptimizerState? state, CustomResourceOptions? opts = null)public static CatalogTableOptimizer get(String name, Output<String> id, CatalogTableOptimizerState state, CustomResourceOptions options)resources: existingCatalogTableOptimizer: type: aws:glue:CatalogTableOptimizer get: id: ${id}import {
to = aws_glue_catalog_table_optimizer.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- state CatalogTableOptimizerState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state CatalogTableOptimizerState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- state CatalogTableOptimizerState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- state CatalogTableOptimizerState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
- Catalog
Id string - Catalog ID of the table.
- Configuration
Catalog
Table Optimizer Configuration - Configuration block that defines the table optimizer settings. See
configurationBlock for additional details. - Database
Name string - Name of the database in the catalog in which the table resides.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Table
Name string - Name of the table.
- Type string
- Type of table optimizer. Valid values are
compaction,retention, andorphanFileDeletion.
- Catalog
Id string - Catalog ID of the table.
- Configuration
Catalog
Table Optimizer Configuration Args - Configuration block that defines the table optimizer settings. See
configurationBlock for additional details. - Database
Name string - Name of the database in the catalog in which the table resides.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Table
Name string - Name of the table.
- Type string
- Type of table optimizer. Valid values are
compaction,retention, andorphanFileDeletion.
- catalog_
id string - Catalog ID of the table.
- configuration object
- Configuration block that defines the table optimizer settings. See
configurationBlock for additional details. - database_
name string - Name of the database in the catalog in which the table resides.
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- table_
name string - Name of the table.
- type string
- Type of table optimizer. Valid values are
compaction,retention, andorphanFileDeletion.
- catalog
Id String - Catalog ID of the table.
- configuration
Catalog
Table Optimizer Configuration - Configuration block that defines the table optimizer settings. See
configurationBlock for additional details. - database
Name String - Name of the database in the catalog in which the table resides.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- table
Name String - Name of the table.
- type String
- Type of table optimizer. Valid values are
compaction,retention, andorphanFileDeletion.
- catalog
Id string - Catalog ID of the table.
- configuration
Catalog
Table Optimizer Configuration - Configuration block that defines the table optimizer settings. See
configurationBlock for additional details. - database
Name string - Name of the database in the catalog in which the table resides.
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- table
Name string - Name of the table.
- type string
- Type of table optimizer. Valid values are
compaction,retention, andorphanFileDeletion.
- catalog_
id str - Catalog ID of the table.
- configuration
Catalog
Table Optimizer Configuration Args - Configuration block that defines the table optimizer settings. See
configurationBlock for additional details. - database_
name str - Name of the database in the catalog in which the table resides.
- region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- table_
name str - Name of the table.
- type str
- Type of table optimizer. Valid values are
compaction,retention, andorphanFileDeletion.
- catalog
Id String - Catalog ID of the table.
- configuration Property Map
- Configuration block that defines the table optimizer settings. See
configurationBlock for additional details. - database
Name String - Name of the database in the catalog in which the table resides.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- table
Name String - Name of the table.
- type String
- Type of table optimizer. Valid values are
compaction,retention, andorphanFileDeletion.
Supporting Types
CatalogTableOptimizerConfiguration, CatalogTableOptimizerConfigurationArgs
- Enabled bool
- Whether the table optimizer is enabled.
- Role
Arn string - ARN of the IAM role to use for the table optimizer.
- Compaction
Configuration CatalogTable Optimizer Configuration Compaction Configuration - Configuration block for a compaction optimizer. See
compactionConfigurationBlock for additional details. - Orphan
File CatalogDeletion Configuration Table Optimizer Configuration Orphan File Deletion Configuration - Configuration block for an orphan file deletion optimizer. See
orphanFileDeletionConfigurationBlock for additional details. - Retention
Configuration CatalogTable Optimizer Configuration Retention Configuration - Configuration block for a snapshot retention optimizer. See
retentionConfigurationBlock for additional details.
- Enabled bool
- Whether the table optimizer is enabled.
- Role
Arn string - ARN of the IAM role to use for the table optimizer.
- Compaction
Configuration CatalogTable Optimizer Configuration Compaction Configuration - Configuration block for a compaction optimizer. See
compactionConfigurationBlock for additional details. - Orphan
File CatalogDeletion Configuration Table Optimizer Configuration Orphan File Deletion Configuration - Configuration block for an orphan file deletion optimizer. See
orphanFileDeletionConfigurationBlock for additional details. - Retention
Configuration CatalogTable Optimizer Configuration Retention Configuration - Configuration block for a snapshot retention optimizer. See
retentionConfigurationBlock for additional details.
- enabled bool
- Whether the table optimizer is enabled.
- role_
arn string - ARN of the IAM role to use for the table optimizer.
- compaction_
configuration object - Configuration block for a compaction optimizer. See
compactionConfigurationBlock for additional details. - orphan_
file_ objectdeletion_ configuration - Configuration block for an orphan file deletion optimizer. See
orphanFileDeletionConfigurationBlock for additional details. - retention_
configuration object - Configuration block for a snapshot retention optimizer. See
retentionConfigurationBlock for additional details.
- enabled Boolean
- Whether the table optimizer is enabled.
- role
Arn String - ARN of the IAM role to use for the table optimizer.
- compaction
Configuration CatalogTable Optimizer Configuration Compaction Configuration - Configuration block for a compaction optimizer. See
compactionConfigurationBlock for additional details. - orphan
File CatalogDeletion Configuration Table Optimizer Configuration Orphan File Deletion Configuration - Configuration block for an orphan file deletion optimizer. See
orphanFileDeletionConfigurationBlock for additional details. - retention
Configuration CatalogTable Optimizer Configuration Retention Configuration - Configuration block for a snapshot retention optimizer. See
retentionConfigurationBlock for additional details.
- enabled boolean
- Whether the table optimizer is enabled.
- role
Arn string - ARN of the IAM role to use for the table optimizer.
- compaction
Configuration CatalogTable Optimizer Configuration Compaction Configuration - Configuration block for a compaction optimizer. See
compactionConfigurationBlock for additional details. - orphan
File CatalogDeletion Configuration Table Optimizer Configuration Orphan File Deletion Configuration - Configuration block for an orphan file deletion optimizer. See
orphanFileDeletionConfigurationBlock for additional details. - retention
Configuration CatalogTable Optimizer Configuration Retention Configuration - Configuration block for a snapshot retention optimizer. See
retentionConfigurationBlock for additional details.
- enabled bool
- Whether the table optimizer is enabled.
- role_
arn str - ARN of the IAM role to use for the table optimizer.
- compaction_
configuration CatalogTable Optimizer Configuration Compaction Configuration - Configuration block for a compaction optimizer. See
compactionConfigurationBlock for additional details. - orphan_
file_ Catalogdeletion_ configuration Table Optimizer Configuration Orphan File Deletion Configuration - Configuration block for an orphan file deletion optimizer. See
orphanFileDeletionConfigurationBlock for additional details. - retention_
configuration CatalogTable Optimizer Configuration Retention Configuration - Configuration block for a snapshot retention optimizer. See
retentionConfigurationBlock for additional details.
- enabled Boolean
- Whether the table optimizer is enabled.
- role
Arn String - ARN of the IAM role to use for the table optimizer.
- compaction
Configuration Property Map - Configuration block for a compaction optimizer. See
compactionConfigurationBlock for additional details. - orphan
File Property MapDeletion Configuration - Configuration block for an orphan file deletion optimizer. See
orphanFileDeletionConfigurationBlock for additional details. - retention
Configuration Property Map - Configuration block for a snapshot retention optimizer. See
retentionConfigurationBlock for additional details.
CatalogTableOptimizerConfigurationCompactionConfiguration, CatalogTableOptimizerConfigurationCompactionConfigurationArgs
- Iceberg
Configuration CatalogTable Optimizer Configuration Compaction Configuration Iceberg Configuration - Configuration for an Iceberg compaction optimizer. See
configuration.compaction_configuration.iceberg_configurationBlock for additional details.
- Iceberg
Configuration CatalogTable Optimizer Configuration Compaction Configuration Iceberg Configuration - Configuration for an Iceberg compaction optimizer. See
configuration.compaction_configuration.iceberg_configurationBlock for additional details.
- iceberg_
configuration object - Configuration for an Iceberg compaction optimizer. See
configuration.compaction_configuration.iceberg_configurationBlock for additional details.
- iceberg
Configuration CatalogTable Optimizer Configuration Compaction Configuration Iceberg Configuration - Configuration for an Iceberg compaction optimizer. See
configuration.compaction_configuration.iceberg_configurationBlock for additional details.
- iceberg
Configuration CatalogTable Optimizer Configuration Compaction Configuration Iceberg Configuration - Configuration for an Iceberg compaction optimizer. See
configuration.compaction_configuration.iceberg_configurationBlock for additional details.
- iceberg_
configuration CatalogTable Optimizer Configuration Compaction Configuration Iceberg Configuration - Configuration for an Iceberg compaction optimizer. See
configuration.compaction_configuration.iceberg_configurationBlock for additional details.
- iceberg
Configuration Property Map - Configuration for an Iceberg compaction optimizer. See
configuration.compaction_configuration.iceberg_configurationBlock for additional details.
CatalogTableOptimizerConfigurationCompactionConfigurationIcebergConfiguration, CatalogTableOptimizerConfigurationCompactionConfigurationIcebergConfigurationArgs
- Delete
File intThreshold - Minimum number of deletes that must be present in a data file to make it eligible for compaction. Defaults to
1. - Min
Input intFiles - Minimum number of data files that must be present in a partition before compaction will actually compact files. Defaults to
100. - Strategy string
- Strategy to use for compaction. Valid values are
binpack,sortandz-orderDefaults tobinpack.
- Delete
File intThreshold - Minimum number of deletes that must be present in a data file to make it eligible for compaction. Defaults to
1. - Min
Input intFiles - Minimum number of data files that must be present in a partition before compaction will actually compact files. Defaults to
100. - Strategy string
- Strategy to use for compaction. Valid values are
binpack,sortandz-orderDefaults tobinpack.
- delete_
file_ numberthreshold - Minimum number of deletes that must be present in a data file to make it eligible for compaction. Defaults to
1. - min_
input_ numberfiles - Minimum number of data files that must be present in a partition before compaction will actually compact files. Defaults to
100. - strategy string
- Strategy to use for compaction. Valid values are
binpack,sortandz-orderDefaults tobinpack.
- delete
File IntegerThreshold - Minimum number of deletes that must be present in a data file to make it eligible for compaction. Defaults to
1. - min
Input IntegerFiles - Minimum number of data files that must be present in a partition before compaction will actually compact files. Defaults to
100. - strategy String
- Strategy to use for compaction. Valid values are
binpack,sortandz-orderDefaults tobinpack.
- delete
File numberThreshold - Minimum number of deletes that must be present in a data file to make it eligible for compaction. Defaults to
1. - min
Input numberFiles - Minimum number of data files that must be present in a partition before compaction will actually compact files. Defaults to
100. - strategy string
- Strategy to use for compaction. Valid values are
binpack,sortandz-orderDefaults tobinpack.
- delete_
file_ intthreshold - Minimum number of deletes that must be present in a data file to make it eligible for compaction. Defaults to
1. - min_
input_ intfiles - Minimum number of data files that must be present in a partition before compaction will actually compact files. Defaults to
100. - strategy str
- Strategy to use for compaction. Valid values are
binpack,sortandz-orderDefaults tobinpack.
- delete
File NumberThreshold - Minimum number of deletes that must be present in a data file to make it eligible for compaction. Defaults to
1. - min
Input NumberFiles - Minimum number of data files that must be present in a partition before compaction will actually compact files. Defaults to
100. - strategy String
- Strategy to use for compaction. Valid values are
binpack,sortandz-orderDefaults tobinpack.
CatalogTableOptimizerConfigurationOrphanFileDeletionConfiguration, CatalogTableOptimizerConfigurationOrphanFileDeletionConfigurationArgs
- Iceberg
Configuration CatalogTable Optimizer Configuration Orphan File Deletion Configuration Iceberg Configuration - Configuration for an Iceberg orphan file deletion optimizer. See
configuration.orphan_file_deletion_configuration.iceberg_configurationBlock for additional details.
- Iceberg
Configuration CatalogTable Optimizer Configuration Orphan File Deletion Configuration Iceberg Configuration - Configuration for an Iceberg orphan file deletion optimizer. See
configuration.orphan_file_deletion_configuration.iceberg_configurationBlock for additional details.
- iceberg_
configuration object - Configuration for an Iceberg orphan file deletion optimizer. See
configuration.orphan_file_deletion_configuration.iceberg_configurationBlock for additional details.
- iceberg
Configuration CatalogTable Optimizer Configuration Orphan File Deletion Configuration Iceberg Configuration - Configuration for an Iceberg orphan file deletion optimizer. See
configuration.orphan_file_deletion_configuration.iceberg_configurationBlock for additional details.
- iceberg
Configuration CatalogTable Optimizer Configuration Orphan File Deletion Configuration Iceberg Configuration - Configuration for an Iceberg orphan file deletion optimizer. See
configuration.orphan_file_deletion_configuration.iceberg_configurationBlock for additional details.
- iceberg_
configuration CatalogTable Optimizer Configuration Orphan File Deletion Configuration Iceberg Configuration - Configuration for an Iceberg orphan file deletion optimizer. See
configuration.orphan_file_deletion_configuration.iceberg_configurationBlock for additional details.
- iceberg
Configuration Property Map - Configuration for an Iceberg orphan file deletion optimizer. See
configuration.orphan_file_deletion_configuration.iceberg_configurationBlock for additional details.
CatalogTableOptimizerConfigurationOrphanFileDeletionConfigurationIcebergConfiguration, CatalogTableOptimizerConfigurationOrphanFileDeletionConfigurationIcebergConfigurationArgs
- Location string
- Directory in which to look for files. You may choose a sub-directory rather than the top-level table location. Defaults to the table's location.
- Orphan
File intRetention Period In Days - Number of days that orphan files should be retained before file deletion. Defaults to
3. - Run
Rate intIn Hours - Interval in hours between retention job runs. Defaults to
24.
- Location string
- Directory in which to look for files. You may choose a sub-directory rather than the top-level table location. Defaults to the table's location.
- Orphan
File intRetention Period In Days - Number of days that orphan files should be retained before file deletion. Defaults to
3. - Run
Rate intIn Hours - Interval in hours between retention job runs. Defaults to
24.
- location string
- Directory in which to look for files. You may choose a sub-directory rather than the top-level table location. Defaults to the table's location.
- orphan_
file_ numberretention_ period_ in_ days - Number of days that orphan files should be retained before file deletion. Defaults to
3. - run_
rate_ numberin_ hours - Interval in hours between retention job runs. Defaults to
24.
- location String
- Directory in which to look for files. You may choose a sub-directory rather than the top-level table location. Defaults to the table's location.
- orphan
File IntegerRetention Period In Days - Number of days that orphan files should be retained before file deletion. Defaults to
3. - run
Rate IntegerIn Hours - Interval in hours between retention job runs. Defaults to
24.
- location string
- Directory in which to look for files. You may choose a sub-directory rather than the top-level table location. Defaults to the table's location.
- orphan
File numberRetention Period In Days - Number of days that orphan files should be retained before file deletion. Defaults to
3. - run
Rate numberIn Hours - Interval in hours between retention job runs. Defaults to
24.
- location str
- Directory in which to look for files. You may choose a sub-directory rather than the top-level table location. Defaults to the table's location.
- orphan_
file_ intretention_ period_ in_ days - Number of days that orphan files should be retained before file deletion. Defaults to
3. - run_
rate_ intin_ hours - Interval in hours between retention job runs. Defaults to
24.
- location String
- Directory in which to look for files. You may choose a sub-directory rather than the top-level table location. Defaults to the table's location.
- orphan
File NumberRetention Period In Days - Number of days that orphan files should be retained before file deletion. Defaults to
3. - run
Rate NumberIn Hours - Interval in hours between retention job runs. Defaults to
24.
CatalogTableOptimizerConfigurationRetentionConfiguration, CatalogTableOptimizerConfigurationRetentionConfigurationArgs
- Iceberg
Configuration CatalogTable Optimizer Configuration Retention Configuration Iceberg Configuration - Configuration for an Iceberg snapshot retention optimizer. See
configuration.retention_configuration.iceberg_configurationBlock for additional details.
- Iceberg
Configuration CatalogTable Optimizer Configuration Retention Configuration Iceberg Configuration - Configuration for an Iceberg snapshot retention optimizer. See
configuration.retention_configuration.iceberg_configurationBlock for additional details.
- iceberg_
configuration object - Configuration for an Iceberg snapshot retention optimizer. See
configuration.retention_configuration.iceberg_configurationBlock for additional details.
- iceberg
Configuration CatalogTable Optimizer Configuration Retention Configuration Iceberg Configuration - Configuration for an Iceberg snapshot retention optimizer. See
configuration.retention_configuration.iceberg_configurationBlock for additional details.
- iceberg
Configuration CatalogTable Optimizer Configuration Retention Configuration Iceberg Configuration - Configuration for an Iceberg snapshot retention optimizer. See
configuration.retention_configuration.iceberg_configurationBlock for additional details.
- iceberg_
configuration CatalogTable Optimizer Configuration Retention Configuration Iceberg Configuration - Configuration for an Iceberg snapshot retention optimizer. See
configuration.retention_configuration.iceberg_configurationBlock for additional details.
- iceberg
Configuration Property Map - Configuration for an Iceberg snapshot retention optimizer. See
configuration.retention_configuration.iceberg_configurationBlock for additional details.
CatalogTableOptimizerConfigurationRetentionConfigurationIcebergConfiguration, CatalogTableOptimizerConfigurationRetentionConfigurationIcebergConfigurationArgs
- Clean
Expired boolFiles - If set to
false, snapshots are only deleted from table metadata, and the underlying data and metadata files are not deleted. Defaults tofalse. - Number
Of intSnapshots To Retain - Number of Iceberg snapshots to retain within the retention period. Defaults to
1or the corresponding Iceberg table configuration field if it exists. - Run
Rate intIn Hours - Interval in hours between retention job runs. Defaults to
24. - Snapshot
Retention intPeriod In Days - Number of days to retain the Iceberg snapshots. Defaults to
5, or the corresponding Iceberg table configuration field if it exists.
- Clean
Expired boolFiles - If set to
false, snapshots are only deleted from table metadata, and the underlying data and metadata files are not deleted. Defaults tofalse. - Number
Of intSnapshots To Retain - Number of Iceberg snapshots to retain within the retention period. Defaults to
1or the corresponding Iceberg table configuration field if it exists. - Run
Rate intIn Hours - Interval in hours between retention job runs. Defaults to
24. - Snapshot
Retention intPeriod In Days - Number of days to retain the Iceberg snapshots. Defaults to
5, or the corresponding Iceberg table configuration field if it exists.
- clean_
expired_ boolfiles - If set to
false, snapshots are only deleted from table metadata, and the underlying data and metadata files are not deleted. Defaults tofalse. - number_
of_ numbersnapshots_ to_ retain - Number of Iceberg snapshots to retain within the retention period. Defaults to
1or the corresponding Iceberg table configuration field if it exists. - run_
rate_ numberin_ hours - Interval in hours between retention job runs. Defaults to
24. - snapshot_
retention_ numberperiod_ in_ days - Number of days to retain the Iceberg snapshots. Defaults to
5, or the corresponding Iceberg table configuration field if it exists.
- clean
Expired BooleanFiles - If set to
false, snapshots are only deleted from table metadata, and the underlying data and metadata files are not deleted. Defaults tofalse. - number
Of IntegerSnapshots To Retain - Number of Iceberg snapshots to retain within the retention period. Defaults to
1or the corresponding Iceberg table configuration field if it exists. - run
Rate IntegerIn Hours - Interval in hours between retention job runs. Defaults to
24. - snapshot
Retention IntegerPeriod In Days - Number of days to retain the Iceberg snapshots. Defaults to
5, or the corresponding Iceberg table configuration field if it exists.
- clean
Expired booleanFiles - If set to
false, snapshots are only deleted from table metadata, and the underlying data and metadata files are not deleted. Defaults tofalse. - number
Of numberSnapshots To Retain - Number of Iceberg snapshots to retain within the retention period. Defaults to
1or the corresponding Iceberg table configuration field if it exists. - run
Rate numberIn Hours - Interval in hours between retention job runs. Defaults to
24. - snapshot
Retention numberPeriod In Days - Number of days to retain the Iceberg snapshots. Defaults to
5, or the corresponding Iceberg table configuration field if it exists.
- clean_
expired_ boolfiles - If set to
false, snapshots are only deleted from table metadata, and the underlying data and metadata files are not deleted. Defaults tofalse. - number_
of_ intsnapshots_ to_ retain - Number of Iceberg snapshots to retain within the retention period. Defaults to
1or the corresponding Iceberg table configuration field if it exists. - run_
rate_ intin_ hours - Interval in hours between retention job runs. Defaults to
24. - snapshot_
retention_ intperiod_ in_ days - Number of days to retain the Iceberg snapshots. Defaults to
5, or the corresponding Iceberg table configuration field if it exists.
- clean
Expired BooleanFiles - If set to
false, snapshots are only deleted from table metadata, and the underlying data and metadata files are not deleted. Defaults tofalse. - number
Of NumberSnapshots To Retain - Number of Iceberg snapshots to retain within the retention period. Defaults to
1or the corresponding Iceberg table configuration field if it exists. - run
Rate NumberIn Hours - Interval in hours between retention job runs. Defaults to
24. - snapshot
Retention NumberPeriod In Days - Number of days to retain the Iceberg snapshots. Defaults to
5, or the corresponding Iceberg table configuration field if it exists.
Import
Using pulumi import, import Glue Catalog Table Optimizer using the catalog_id,database_name,table_name,type. For example:
$ pulumi import aws:glue/catalogTableOptimizer:CatalogTableOptimizer example 123456789012,example_database,example_table,compaction
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.
published on Friday, Nov 13, 2026 by Pulumi