@Generated(value="jsii-pacmak/1.73.0 (build 6faeda3)", date="2023-01-31T18:36:56.042Z") 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") .build()) .viewExpandedText("viewExpandedText") .viewOriginalText("viewOriginalText") .build()) .build();
Modifier and Type | Class and Description |
---|---|
static class |
CfnTable.Builder
A fluent builder for
CfnTable . |
static interface |
CfnTable.ColumnProperty
A column in a `Table` .
|
static interface |
CfnTable.OrderProperty
Specifies the sort order of a sorted column.
|
static interface |
CfnTable.SchemaIdProperty
A structure that contains schema identity fields.
|
static interface |
CfnTable.SchemaReferenceProperty
An object that references a schema stored in the AWS Glue Schema Registry.
|
static interface |
CfnTable.SerdeInfoProperty
Information about a serialization/deserialization program (SerDe) that serves as an extractor and loader.
|
static interface |
CfnTable.SkewedInfoProperty
Specifies skewed values in a table.
|
static interface |
CfnTable.StorageDescriptorProperty
Describes the physical storage of table data.
|
static interface |
CfnTable.TableIdentifierProperty
A structure that describes a target table for resource linking.
|
static interface |
CfnTable.TableInputProperty
A structure used to define a table.
|
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnTable(Construct scope,
java.lang.String id,
CfnTableProps props)
Create a new `AWS::Glue::Table`.
|
protected |
CfnTable(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnTable(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCatalogId()
The ID of the Data Catalog in which to create the `Table` .
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.String |
getDatabaseName()
The name of the database where the table metadata resides.
|
java.lang.Object |
getTableInput()
A structure used to define a table.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
renderProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
void |
setCatalogId(java.lang.String value)
The ID of the Data Catalog in which to create the `Table` .
|
void |
setDatabaseName(java.lang.String value)
The name of the database where the table metadata resides.
|
void |
setTableInput(CfnTable.TableInputProperty value)
A structure used to define a table.
|
void |
setTableInput(IResolvable value)
A structure used to define a table.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
public static final java.lang.String CFN_RESOURCE_TYPE_NAME
protected CfnTable(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnTable(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnTable(Construct scope, java.lang.String id, CfnTableProps props)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.props
- - resource properties. This parameter is required.public void inspect(TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> renderProperties(java.util.Map<java.lang.String,java.lang.Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public java.lang.String getCatalogId()
public void setCatalogId(java.lang.String value)
public java.lang.String getDatabaseName()
For Hive compatibility, this must be all lowercase.
public void setDatabaseName(java.lang.String value)
For Hive compatibility, this must be all lowercase.
public java.lang.Object getTableInput()
public void setTableInput(IResolvable value)
public void setTableInput(CfnTable.TableInputProperty value)