# RetentionConfigurationProperty

The configuration for a snapshot retention optimizer for Apache Iceberg tables.

- Source: Generated at build time
- Type last changed: v2.214.0 · 2 Sep 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 retentionConfigurationProperty: glue.CfnTableOptimizer.RetentionConfigurationProperty = {
  icebergConfiguration: {
    cleanExpiredFiles: false,
    numberOfSnapshotsToRetain: 123,
    snapshotRetentionPeriodInDays: 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

retention_configuration_property = glue.CfnTableOptimizer.RetentionConfigurationProperty(
    iceberg_configuration=glue.CfnTableOptimizer.IcebergRetentionConfigurationProperty(
        clean_expired_files=False,
        number_of_snapshots_to_retain=123,
        snapshot_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.*;

RetentionConfigurationProperty retentionConfigurationProperty = RetentionConfigurationProperty.builder()
        .icebergConfiguration(IcebergRetentionConfigurationProperty.builder()
                .cleanExpiredFiles(false)
                .numberOfSnapshotsToRetain(123)
                .snapshotRetentionPeriodInDays(123)
                .build())
        .build();
```

C# / .NET:

```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 retentionConfigurationProperty = new RetentionConfigurationProperty {
    IcebergConfiguration = new IcebergRetentionConfigurationProperty {
        CleanExpiredFiles = false,
        NumberOfSnapshotsToRetain = 123,
        SnapshotRetentionPeriodInDays = 123
    }
};
```

Golang:

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

retentionConfigurationProperty := &RetentionConfigurationProperty{
	IcebergConfiguration: &IcebergRetentionConfigurationProperty{
		CleanExpiredFiles: jsii.Boolean(false),
		NumberOfSnapshotsToRetain: jsii.Number(123),
		SnapshotRetentionPeriodInDays: jsii.Number(123),
	},
}
```

## Properties

- `icebergConfiguration`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTableOptimizer.IcebergRetentionConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_glue.CfnTableOptimizer.IcebergRetentionConfigurationProperty.html) — The configuration for an Iceberg snapshot retention optimizer.
