RetentionConfigurationProperty Struct
The configuration for a snapshot retention optimizer for Apache Iceberg tables.
| Source | |
|---|---|
| Type last changed |
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 retentionConfigurationProperty: glue.CfnTableOptimizer.RetentionConfigurationProperty = {
icebergConfiguration: {
cleanExpiredFiles: false,
numberOfSnapshotsToRetain: 123,
snapshotRetentionPeriodInDays: 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
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
// 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();
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
}
};
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
icebergConfigurationoptionalIResolvable | CfnTableOptimizer.iceberg_configurationoptionaltyping.Union[IResolvable, IcebergRetentionConfigurationProperty]icebergConfigurationoptionalIResolvableIcebergConfigurationoptionalIResolvableIcebergConfigurationoptionalinterface{} #The configuration for an Iceberg snapshot retention optimizer.