Class CfnTable
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.CfnTable
- All Implemented Interfaces:
IInspectable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-22T02:24:02.486Z")
@Stability(Stable)
public class CfnTable
extends CfnResource
implements IInspectable
The
AWS::Glue::Table
resource specifies tabular data in the AWS Glue data catalog.
For more information, see Defining Tables in the AWS Glue Data Catalog and Table Structure in the AWS Glue Developer Guide .
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.*; Object parameters; Object skewedColumnValueLocationMaps; CfnTable cfnTable = CfnTable.Builder.create(this, "MyCfnTable") .catalogId("catalogId") .databaseName("databaseName") .tableInput(TableInputProperty.builder() .description("description") .name("name") .owner("owner") .parameters(parameters) .partitionKeys(List.of(ColumnProperty.builder() .name("name") // the properties below are optional .comment("comment") .type("type") .build())) .retention(123) .storageDescriptor(StorageDescriptorProperty.builder() .bucketColumns(List.of("bucketColumns")) .columns(List.of(ColumnProperty.builder() .name("name") // the properties below are optional .comment("comment") .type("type") .build())) .compressed(false) .inputFormat("inputFormat") .location("location") .numberOfBuckets(123) .outputFormat("outputFormat") .parameters(parameters) .schemaReference(SchemaReferenceProperty.builder() .schemaId(SchemaIdProperty.builder() .registryName("registryName") .schemaArn("schemaArn") .schemaName("schemaName") .build()) .schemaVersionId("schemaVersionId") .schemaVersionNumber(123) .build()) .serdeInfo(SerdeInfoProperty.builder() .name("name") .parameters(parameters) .serializationLibrary("serializationLibrary") .build()) .skewedInfo(SkewedInfoProperty.builder() .skewedColumnNames(List.of("skewedColumnNames")) .skewedColumnValueLocationMaps(skewedColumnValueLocationMaps) .skewedColumnValues(List.of("skewedColumnValues")) .build()) .sortColumns(List.of(OrderProperty.builder() .column("column") .sortOrder(123) .build())) .storedAsSubDirectories(false) .build()) .tableType("tableType") .targetTable(TableIdentifierProperty.builder() .catalogId("catalogId") .databaseName("databaseName") .name("name") .region("region") .build()) .viewExpandedText("viewExpandedText") .viewOriginalText("viewOriginalText") .build()) // the properties below are optional .openTableFormatInput(OpenTableFormatInputProperty.builder() .icebergInput(IcebergInputProperty.builder() .metadataOperation("metadataOperation") .version("version") .build()) .build()) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnTable
.static interface
A column in aTable
.static interface
Specifies an input structure that defines an Apache Iceberg metadata table.static interface
Specifies anOpenTableFormatInput
structure when creating an open format table.static interface
Specifies the sort order of a sorted column.static interface
A structure that contains schema identity fields.static interface
An object that references a schema stored in the AWS Glue Schema Registry.static interface
Information about a serialization/deserialization program (SerDe) that serves as an extractor and loader.static interface
Specifies skewed values in a table.static interface
Describes the physical storage of table data.static interface
A structure that describes a target table for resource linking.static interface
A structure used to define a table.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnTable
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnTable
(software.amazon.jsii.JsiiObjectRef objRef) CfnTable
(software.constructs.Construct scope, String id, CfnTableProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe ID of the Data Catalog in which to create theTable
.The name of the database where the table metadata resides.Specifies anOpenTableFormatInput
structure when creating an open format table.A structure used to define a table.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setCatalogId
(String value) The ID of the Data Catalog in which to create theTable
.void
setDatabaseName
(String value) The name of the database where the table metadata resides.void
Specifies anOpenTableFormatInput
structure when creating an open format table.void
Specifies anOpenTableFormatInput
structure when creating an open format table.void
setTableInput
(IResolvable value) A structure used to define a table.void
A structure used to define a table.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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
-
CfnTable
protected CfnTable(software.amazon.jsii.JsiiObjectRef objRef) -
CfnTable
protected CfnTable(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnTable
@Stability(Stable) public CfnTable(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnTableProps 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:
inspect
in 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:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrId
-
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getCatalogId
The ID of the Data Catalog in which to create theTable
. -
setCatalogId
The ID of the Data Catalog in which to create theTable
. -
getDatabaseName
The name of the database where the table metadata resides. -
setDatabaseName
The name of the database where the table metadata resides. -
getTableInput
A structure used to define a table. -
setTableInput
A structure used to define a table. -
setTableInput
A structure used to define a table. -
getOpenTableFormatInput
Specifies anOpenTableFormatInput
structure when creating an open format table. -
setOpenTableFormatInput
Specifies anOpenTableFormatInput
structure when creating an open format table. -
setOpenTableFormatInput
@Stability(Stable) public void setOpenTableFormatInput(@Nullable CfnTable.OpenTableFormatInputProperty value) Specifies anOpenTableFormatInput
structure when creating an open format table.
-