# IcebergRetentionConfigurationProperty

Struct · External

- 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 icebergRetentionConfigurationProperty: glue.CfnTableOptimizer.IcebergRetentionConfigurationProperty = {
  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

iceberg_retention_configuration_property = 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.*;

IcebergRetentionConfigurationProperty icebergRetentionConfigurationProperty = IcebergRetentionConfigurationProperty.builder()
        .cleanExpiredFiles(false)
        .numberOfSnapshotsToRetain(123)
        .snapshotRetentionPeriodInDays(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 icebergRetentionConfigurationProperty = new IcebergRetentionConfigurationProperty {
    CleanExpiredFiles = false,
    NumberOfSnapshotsToRetain = 123,
    SnapshotRetentionPeriodInDays = 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"

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

## Properties

- `cleanExpiredFiles`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html)

- `numberOfSnapshotsToRetain`: number

- `snapshotRetentionPeriodInDays`: number
