Class CfnTableOptimizer
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.glue.CfnTableOptimizer
- All Implemented Interfaces:
IEnvironmentAware,IInspectable,ITableOptimizerRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.118.0 (build 02eec31)",
date="2025-11-04T09:27:42.559Z")
@Stability(Stable)
public class CfnTableOptimizer
extends CfnResource
implements IInspectable, ITableOptimizerRef
An AWS Glue resource for enabling table optimizers to improve read performance for open table formats.
Example:
// 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.*;
CfnTableOptimizer cfnTableOptimizer = CfnTableOptimizer.Builder.create(this, "MyCfnTableOptimizer")
.catalogId("catalogId")
.databaseName("databaseName")
.tableName("tableName")
.tableOptimizerConfiguration(TableOptimizerConfigurationProperty.builder()
.enabled(false)
.roleArn("roleArn")
// the properties below are optional
.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();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnTableOptimizer.static interfaceIcebergConfiguration is a property type within theAWS::Glue::TableOptimizerresource in AWS CloudFormation.static interfaceExample:static interfaceConfiguration for removing files that are are not tracked by the Iceberg table metadata, and are older than your configured age limit.static interfaceThe configuration for a snapshot retention optimizer for Apache Iceberg tables.static interfaceSpecifies configuration details of a table optimizer.static interfaceAn object that describes the VPC configuration for a table optimizer.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.glue.ITableOptimizerRef
ITableOptimizerRef.Jsii$Default, ITableOptimizerRef.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnTableOptimizer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnTableOptimizer(software.amazon.jsii.JsiiObjectRef objRef) CfnTableOptimizer(software.constructs.Construct scope, String id, CfnTableOptimizerProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe catalog ID of the table.The name of the database.The table name.Specifies configuration details of a table optimizer.A reference to a TableOptimizer resource.getType()The type of table optimizer.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetCatalogId(String value) The catalog ID of the table.voidsetDatabaseName(String value) The name of the database.voidsetTableName(String value) The table name.voidSpecifies configuration details of a table optimizer.voidSpecifies configuration details of a table optimizer.voidThe type of table optimizer.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnTableOptimizer
protected CfnTableOptimizer(software.amazon.jsii.JsiiObjectRef objRef) -
CfnTableOptimizer
protected CfnTableOptimizer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnTableOptimizer
@Stability(Stable) public CfnTableOptimizer(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnTableOptimizerProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrId
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTableOptimizerRef
A reference to a TableOptimizer resource.- Specified by:
getTableOptimizerRefin interfaceITableOptimizerRef
-
getCatalogId
The catalog ID of the table. -
setCatalogId
The catalog ID of the table. -
getDatabaseName
The name of the database. -
setDatabaseName
The name of the database. -
getTableName
The table name. -
setTableName
The table name. -
getTableOptimizerConfiguration
Specifies configuration details of a table optimizer.Returns union: either
IResolvableorCfnTableOptimizer.TableOptimizerConfigurationProperty -
setTableOptimizerConfiguration
Specifies configuration details of a table optimizer. -
setTableOptimizerConfiguration
@Stability(Stable) public void setTableOptimizerConfiguration(@NotNull CfnTableOptimizer.TableOptimizerConfigurationProperty value) Specifies configuration details of a table optimizer. -
getType
The type of table optimizer.The valid values are:.
-
setType
The type of table optimizer.The valid values are:.
-