CfnTableOptimizerProps Struct
Properties for defining a CfnTableOptimizer.
| 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 cfnTableOptimizerProps: glue.CfnTableOptimizerProps = {
catalogId: 'catalogId',
databaseName: 'databaseName',
tableName: 'tableName',
tableOptimizerConfiguration: {
enabled: false,
roleArn: 'roleArn',
// the properties below are optional
compactionConfiguration: {
icebergConfiguration: {
deleteFileThreshold: 123,
minInputFiles: 123,
strategy: 'strategy',
},
},
orphanFileDeletionConfiguration: {
icebergConfiguration: {
location: 'location',
orphanFileRetentionPeriodInDays: 123,
},
},
retentionConfiguration: {
icebergConfiguration: {
cleanExpiredFiles: false,
numberOfSnapshotsToRetain: 123,
snapshotRetentionPeriodInDays: 123,
},
},
vpcConfiguration: {
glueConnectionName: 'glueConnectionName',
},
},
type: 'type',
};
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
cfn_table_optimizer_props = glue.CfnTableOptimizerProps(
catalog_id="catalogId",
database_name="databaseName",
table_name="tableName",
table_optimizer_configuration=glue.CfnTableOptimizer.TableOptimizerConfigurationProperty(
enabled=False,
role_arn="roleArn",
# the properties below are optional
compaction_configuration=glue.CfnTableOptimizer.CompactionConfigurationProperty(
iceberg_configuration=glue.CfnTableOptimizer.IcebergCompactionConfigurationProperty(
delete_file_threshold=123,
min_input_files=123,
strategy="strategy"
)
),
orphan_file_deletion_configuration=glue.CfnTableOptimizer.OrphanFileDeletionConfigurationProperty(
iceberg_configuration=glue.CfnTableOptimizer.IcebergConfigurationProperty(
location="location",
orphan_file_retention_period_in_days=123
)
),
retention_configuration=glue.CfnTableOptimizer.RetentionConfigurationProperty(
iceberg_configuration=glue.CfnTableOptimizer.IcebergRetentionConfigurationProperty(
clean_expired_files=False,
number_of_snapshots_to_retain=123,
snapshot_retention_period_in_days=123
)
),
vpc_configuration=glue.CfnTableOptimizer.VpcConfigurationProperty(
glue_connection_name="glueConnectionName"
)
),
type="type"
)
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.*;
CfnTableOptimizerProps cfnTableOptimizerProps = CfnTableOptimizerProps.builder()
.catalogId("catalogId")
.databaseName("databaseName")
.tableName("tableName")
.tableOptimizerConfiguration(TableOptimizerConfigurationProperty.builder()
.enabled(false)
.roleArn("roleArn")
// the properties below are optional
.compactionConfiguration(CompactionConfigurationProperty.builder()
.icebergConfiguration(IcebergCompactionConfigurationProperty.builder()
.deleteFileThreshold(123)
.minInputFiles(123)
.strategy("strategy")
.build())
.build())
.orphanFileDeletionConfiguration(OrphanFileDeletionConfigurationProperty.builder()
.icebergConfiguration(IcebergConfigurationProperty.builder()
.location("location")
.orphanFileRetentionPeriodInDays(123)
.build())
.build())
.retentionConfiguration(RetentionConfigurationProperty.builder()
.icebergConfiguration(IcebergRetentionConfigurationProperty.builder()
.cleanExpiredFiles(false)
.numberOfSnapshotsToRetain(123)
.snapshotRetentionPeriodInDays(123)
.build())
.build())
.vpcConfiguration(VpcConfigurationProperty.builder()
.glueConnectionName("glueConnectionName")
.build())
.build())
.type("type")
.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 cfnTableOptimizerProps = new CfnTableOptimizerProps {
CatalogId = "catalogId",
DatabaseName = "databaseName",
TableName = "tableName",
TableOptimizerConfiguration = new TableOptimizerConfigurationProperty {
Enabled = false,
RoleArn = "roleArn",
// the properties below are optional
CompactionConfiguration = new CompactionConfigurationProperty {
IcebergConfiguration = new IcebergCompactionConfigurationProperty {
DeleteFileThreshold = 123,
MinInputFiles = 123,
Strategy = "strategy"
}
},
OrphanFileDeletionConfiguration = new OrphanFileDeletionConfigurationProperty {
IcebergConfiguration = new IcebergConfigurationProperty {
Location = "location",
OrphanFileRetentionPeriodInDays = 123
}
},
RetentionConfiguration = new RetentionConfigurationProperty {
IcebergConfiguration = new IcebergRetentionConfigurationProperty {
CleanExpiredFiles = false,
NumberOfSnapshotsToRetain = 123,
SnapshotRetentionPeriodInDays = 123
}
},
VpcConfiguration = new VpcConfigurationProperty {
GlueConnectionName = "glueConnectionName"
}
},
Type = "type"
};
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"
cfnTableOptimizerProps := &CfnTableOptimizerProps{
CatalogId: jsii.String("catalogId"),
DatabaseName: jsii.String("databaseName"),
TableName: jsii.String("tableName"),
TableOptimizerConfiguration: &TableOptimizerConfigurationProperty{
Enabled: jsii.Boolean(false),
RoleArn: jsii.String("roleArn"),
// the properties below are optional
CompactionConfiguration: &CompactionConfigurationProperty{
IcebergConfiguration: &IcebergCompactionConfigurationProperty{
DeleteFileThreshold: jsii.Number(123),
MinInputFiles: jsii.Number(123),
Strategy: jsii.String("strategy"),
},
},
OrphanFileDeletionConfiguration: &OrphanFileDeletionConfigurationProperty{
IcebergConfiguration: &IcebergConfigurationProperty{
Location: jsii.String("location"),
OrphanFileRetentionPeriodInDays: jsii.Number(123),
},
},
RetentionConfiguration: &RetentionConfigurationProperty{
IcebergConfiguration: &IcebergRetentionConfigurationProperty{
CleanExpiredFiles: jsii.Boolean(false),
NumberOfSnapshotsToRetain: jsii.Number(123),
SnapshotRetentionPeriodInDays: jsii.Number(123),
},
},
VpcConfiguration: &VpcConfigurationProperty{
GlueConnectionName: jsii.String("glueConnectionName"),
},
},
Type: jsii.String("type"),
}
Properties
The catalog ID of the table.
databaseNamestringdatabase_namestrdatabaseNameStringDatabaseNamestringDatabaseName*string required #The name of the database.
For Hive compatibility, this is folded to lowercase when it is stored.
The table name.
For Hive compatibility, this must be entirely lowercase.
tableOptimizerConfigurationIResolvable | CfnTableOptimizer.table_optimizer_configurationtyping.Union[IResolvable, TableOptimizerConfigurationProperty]tableOptimizerConfigurationIResolvableTableOptimizerConfigurationIResolvableTableOptimizerConfigurationinterface{} required #Specifies configuration details of a table optimizer.
The type of table optimizer. The valid values are:.
- compaction - for managing compaction with a table optimizer.
- retention - for managing the retention of snapshot with a table optimizer.
- orphan_file_deletion - for managing the deletion of orphan files with a table optimizer.