Skip to content
v2.278.0

OrphanFileDeletionConfigurationProperty Struct ​

Configuration for removing files that are are not tracked by the Iceberg table metadata, and are older than your configured age limit.

This configuration helps optimize storage usage and costs by automatically cleaning up files that are no longer needed by the table.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_glue as glue } from 'aws-cdk-lib';
const orphanFileDeletionConfigurationProperty: glue.CfnTableOptimizer.OrphanFileDeletionConfigurationProperty = {
  icebergConfiguration: {
    location: 'location',
    orphanFileRetentionPeriodInDays: 123,
  },
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_glue as glue

orphan_file_deletion_configuration_property = glue.CfnTableOptimizer.OrphanFileDeletionConfigurationProperty(
    iceberg_configuration=glue.CfnTableOptimizer.IcebergConfigurationProperty(
        location="location",
        orphan_file_retention_period_in_days=123
    )
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.glue.*;

OrphanFileDeletionConfigurationProperty orphanFileDeletionConfigurationProperty = OrphanFileDeletionConfigurationProperty.builder()
        .icebergConfiguration(IcebergConfigurationProperty.builder()
                .location("location")
                .orphanFileRetentionPeriodInDays(123)
                .build())
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Glue;

var orphanFileDeletionConfigurationProperty = new OrphanFileDeletionConfigurationProperty {
    IcebergConfiguration = new IcebergConfigurationProperty {
        Location = "location",
        OrphanFileRetentionPeriodInDays = 123
    }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

orphanFileDeletionConfigurationProperty := &OrphanFileDeletionConfigurationProperty{
	IcebergConfiguration: &IcebergConfigurationProperty{
		Location: jsii.String("location"),
		OrphanFileRetentionPeriodInDays: jsii.Number(123),
	},
}

Properties ​

icebergConfigurationoptionalIResolvable | CfnTableOptimizer.IcebergConfigurationPropertyiceberg_configurationoptionaltyping.Union[IResolvable, IcebergConfigurationProperty]icebergConfigurationoptionalIResolvableIcebergConfigurationoptionalIResolvableIcebergConfigurationoptionalinterface{} #
The `IcebergConfiguration` property helps optimize your Iceberg tables in AWS Glue by allowing you to specify format-specific settings that control how data is stored, compressed, and managed.