# IcebergConfigurationProperty

Struct · External

IcebergConfiguration is a property type within the `AWS::Glue::TableOptimizer` resource in AWS CloudFormation.

This configuration is used when setting up table optimization for Iceberg tables in AWS Glue .

- Source: Generated at build time
- Type last changed: v2.178.0 · 6 Feb 2025

## Example

TypeScript:

```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 icebergConfigurationProperty: glue.CfnTableOptimizer.IcebergConfigurationProperty = {
  location: 'location',
  orphanFileRetentionPeriodInDays: 123,
};
```

Python:

```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

iceberg_configuration_property = glue.CfnTableOptimizer.IcebergConfigurationProperty(
    location="location",
    orphan_file_retention_period_in_days=123
)
```

Java:

```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.*;

IcebergConfigurationProperty icebergConfigurationProperty = IcebergConfigurationProperty.builder()
        .location("location")
        .orphanFileRetentionPeriodInDays(123)
        .build();
```

C#:

```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 icebergConfigurationProperty = new IcebergConfigurationProperty {
    Location = "location",
    OrphanFileRetentionPeriodInDays = 123
};
```

Go:

```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"

icebergConfigurationProperty := &IcebergConfigurationProperty{
	Location: jsii.String("location"),
	OrphanFileRetentionPeriodInDays: jsii.Number(123),
}
```

## Properties

- `location`: string — Specifies a directory in which to look for orphan files (defaults to the table's location).

  You may choose a sub-directory rather than the top-level table location.

- `orphanFileRetentionPeriodInDays`: number — The specific number of days you want to keep the orphan files.
