CfnTableOptimizerMixinProps

class aws_cdk.mixins_preview.aws_glue.mixins.CfnTableOptimizerMixinProps(*, catalog_id=None, database_name=None, table_name=None, table_optimizer_configuration=None, type=None)

Bases: object

Properties for CfnTableOptimizerPropsMixin.

Parameters:
  • catalog_id (Optional[str]) – The catalog ID of the table.

  • database_name (Optional[str]) – The name of the database. For Hive compatibility, this is folded to lowercase when it is stored.

  • table_name (Optional[str]) – The table name. For Hive compatibility, this must be entirely lowercase.

  • table_optimizer_configuration (Union[IResolvable, TableOptimizerConfigurationProperty, Dict[str, Any], None]) – Specifies configuration details of a table optimizer.

  • type (Optional[str]) – 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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-tableoptimizer.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.mixins_preview.aws_glue import mixins as glue_mixins

cfn_table_optimizer_mixin_props = glue_mixins.CfnTableOptimizerMixinProps(
    catalog_id="catalogId",
    database_name="databaseName",
    table_name="tableName",
    table_optimizer_configuration=glue_mixins.CfnTableOptimizerPropsMixin.TableOptimizerConfigurationProperty(
        enabled=False,
        orphan_file_deletion_configuration=glue_mixins.CfnTableOptimizerPropsMixin.OrphanFileDeletionConfigurationProperty(
            iceberg_configuration=glue_mixins.CfnTableOptimizerPropsMixin.IcebergConfigurationProperty(
                location="location",
                orphan_file_retention_period_in_days=123
            )
        ),
        retention_configuration=glue_mixins.CfnTableOptimizerPropsMixin.RetentionConfigurationProperty(
            iceberg_configuration=glue_mixins.CfnTableOptimizerPropsMixin.IcebergRetentionConfigurationProperty(
                clean_expired_files=False,
                number_of_snapshots_to_retain=123,
                snapshot_retention_period_in_days=123
            )
        ),
        role_arn="roleArn",
        vpc_configuration=glue_mixins.CfnTableOptimizerPropsMixin.VpcConfigurationProperty(
            glue_connection_name="glueConnectionName"
        )
    ),
    type="type"
)

Attributes

catalog_id

The catalog ID of the table.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-tableoptimizer.html#cfn-glue-tableoptimizer-catalogid

database_name

The name of the database.

For Hive compatibility, this is folded to lowercase when it is stored.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-tableoptimizer.html#cfn-glue-tableoptimizer-databasename

table_name

The table name.

For Hive compatibility, this must be entirely lowercase.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-tableoptimizer.html#cfn-glue-tableoptimizer-tablename

table_optimizer_configuration

Specifies configuration details of a table optimizer.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-tableoptimizer.html#cfn-glue-tableoptimizer-tableoptimizerconfiguration

type

.

  • 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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-tableoptimizer.html#cfn-glue-tableoptimizer-type

Type:

The type of table optimizer. The valid values are