CfnTableProps Struct
Properties for defining a CfnTable.
| 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';
declare const parameters: any;
declare const skewedColumnValueLocationMaps: any;
const cfnTableProps: glue.CfnTableProps = {
catalogId: 'catalogId',
databaseName: 'databaseName',
// the properties below are optional
name: 'name',
openTableFormatInput: {
icebergInput: {
icebergTableInput: {
location: 'location',
schema: {
fields: [{
id: 123,
name: 'name',
required: false,
type: 'type',
// the properties below are optional
doc: 'doc',
}],
// the properties below are optional
identifierFieldIds: [123],
schemaId: 123,
type: 'type',
},
// the properties below are optional
partitionSpec: {
fields: [{
name: 'name',
sourceId: 123,
transform: 'transform',
// the properties below are optional
fieldId: 123,
}],
// the properties below are optional
specId: 123,
},
properties: {
propertiesKey: 'properties',
},
writeOrder: {
fields: [{
direction: 'direction',
nullOrder: 'nullOrder',
sourceId: 123,
transform: 'transform',
}],
orderId: 123,
},
},
metadataOperation: 'metadataOperation',
version: 'version',
},
},
tableInput: {
description: 'description',
name: 'name',
owner: 'owner',
parameters: parameters,
partitionKeys: [{
name: 'name',
// the properties below are optional
comment: 'comment',
type: 'type',
}],
retention: 123,
storageDescriptor: {
bucketColumns: ['bucketColumns'],
columns: [{
name: 'name',
// the properties below are optional
comment: 'comment',
type: 'type',
}],
compressed: false,
inputFormat: 'inputFormat',
location: 'location',
numberOfBuckets: 123,
outputFormat: 'outputFormat',
parameters: parameters,
schemaReference: {
schemaId: {
registryName: 'registryName',
schemaArn: 'schemaArn',
schemaName: 'schemaName',
},
schemaVersionId: 'schemaVersionId',
schemaVersionNumber: 123,
},
serdeInfo: {
name: 'name',
parameters: parameters,
serializationLibrary: 'serializationLibrary',
},
skewedInfo: {
skewedColumnNames: ['skewedColumnNames'],
skewedColumnValueLocationMaps: skewedColumnValueLocationMaps,
skewedColumnValues: ['skewedColumnValues'],
},
sortColumns: [{
column: 'column',
sortOrder: 123,
}],
storedAsSubDirectories: false,
},
tableType: 'tableType',
targetTable: {
catalogId: 'catalogId',
databaseName: 'databaseName',
name: 'name',
region: 'region',
},
viewDefinition: {
definer: 'definer',
isProtected: false,
representations: [{
dialect: 'dialect',
dialectVersion: 'dialectVersion',
validationConnection: 'validationConnection',
viewExpandedText: 'viewExpandedText',
viewOriginalText: 'viewOriginalText',
}],
subObjects: ['subObjects'],
},
viewExpandedText: 'viewExpandedText',
viewOriginalText: 'viewOriginalText',
},
};
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
# parameters: Any
# skewed_column_value_location_maps: Any
cfn_table_props = glue.CfnTableProps(
catalog_id="catalogId",
database_name="databaseName",
# the properties below are optional
name="name",
open_table_format_input=glue.CfnTable.OpenTableFormatInputProperty(
iceberg_input=glue.CfnTable.IcebergInputProperty(
iceberg_table_input=glue.CfnTable.IcebergTableInputProperty(
location="location",
schema=glue.CfnTable.IcebergSchemaProperty(
fields=[glue.CfnTable.IcebergStructFieldProperty(
id=123,
name="name",
required=False,
type="type",
# the properties below are optional
doc="doc"
)],
# the properties below are optional
identifier_field_ids=[123],
schema_id=123,
type="type"
),
# the properties below are optional
partition_spec=glue.CfnTable.IcebergPartitionSpecProperty(
fields=[glue.CfnTable.IcebergPartitionFieldProperty(
name="name",
source_id=123,
transform="transform",
# the properties below are optional
field_id=123
)],
# the properties below are optional
spec_id=123
),
properties={
"properties_key": "properties"
},
write_order=glue.CfnTable.IcebergSortOrderProperty(
fields=[glue.CfnTable.IcebergSortFieldProperty(
direction="direction",
null_order="nullOrder",
source_id=123,
transform="transform"
)],
order_id=123
)
),
metadata_operation="metadataOperation",
version="version"
)
),
table_input=glue.CfnTable.TableInputProperty(
description="description",
name="name",
owner="owner",
parameters=parameters,
partition_keys=[glue.CfnTable.ColumnProperty(
name="name",
# the properties below are optional
comment="comment",
type="type"
)],
retention=123,
storage_descriptor=glue.CfnTable.StorageDescriptorProperty(
bucket_columns=["bucketColumns"],
columns=[glue.CfnTable.ColumnProperty(
name="name",
# the properties below are optional
comment="comment",
type="type"
)],
compressed=False,
input_format="inputFormat",
location="location",
number_of_buckets=123,
output_format="outputFormat",
parameters=parameters,
schema_reference=glue.CfnTable.SchemaReferenceProperty(
schema_id=glue.CfnTable.SchemaIdProperty(
registry_name="registryName",
schema_arn="schemaArn",
schema_name="schemaName"
),
schema_version_id="schemaVersionId",
schema_version_number=123
),
serde_info=glue.CfnTable.SerdeInfoProperty(
name="name",
parameters=parameters,
serialization_library="serializationLibrary"
),
skewed_info=glue.CfnTable.SkewedInfoProperty(
skewed_column_names=["skewedColumnNames"],
skewed_column_value_location_maps=skewed_column_value_location_maps,
skewed_column_values=["skewedColumnValues"]
),
sort_columns=[glue.CfnTable.OrderProperty(
column="column",
sort_order=123
)],
stored_as_sub_directories=False
),
table_type="tableType",
target_table=glue.CfnTable.TableIdentifierProperty(
catalog_id="catalogId",
database_name="databaseName",
name="name",
region="region"
),
view_definition=glue.CfnTable.ViewDefinitionProperty(
definer="definer",
is_protected=False,
representations=[glue.CfnTable.ViewRepresentationProperty(
dialect="dialect",
dialect_version="dialectVersion",
validation_connection="validationConnection",
view_expanded_text="viewExpandedText",
view_original_text="viewOriginalText"
)],
sub_objects=["subObjects"]
),
view_expanded_text="viewExpandedText",
view_original_text="viewOriginalText"
)
)
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.*;
Object parameters;
Object skewedColumnValueLocationMaps;
CfnTableProps cfnTableProps = CfnTableProps.builder()
.catalogId("catalogId")
.databaseName("databaseName")
// the properties below are optional
.name("name")
.openTableFormatInput(OpenTableFormatInputProperty.builder()
.icebergInput(IcebergInputProperty.builder()
.icebergTableInput(IcebergTableInputProperty.builder()
.location("location")
.schema(IcebergSchemaProperty.builder()
.fields(List.of(IcebergStructFieldProperty.builder()
.id(123)
.name("name")
.required(false)
.type("type")
// the properties below are optional
.doc("doc")
.build()))
// the properties below are optional
.identifierFieldIds(List.of(123))
.schemaId(123)
.type("type")
.build())
// the properties below are optional
.partitionSpec(IcebergPartitionSpecProperty.builder()
.fields(List.of(IcebergPartitionFieldProperty.builder()
.name("name")
.sourceId(123)
.transform("transform")
// the properties below are optional
.fieldId(123)
.build()))
// the properties below are optional
.specId(123)
.build())
.properties(Map.of(
"propertiesKey", "properties"))
.writeOrder(IcebergSortOrderProperty.builder()
.fields(List.of(IcebergSortFieldProperty.builder()
.direction("direction")
.nullOrder("nullOrder")
.sourceId(123)
.transform("transform")
.build()))
.orderId(123)
.build())
.build())
.metadataOperation("metadataOperation")
.version("version")
.build())
.build())
.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())
.viewDefinition(ViewDefinitionProperty.builder()
.definer("definer")
.isProtected(false)
.representations(List.of(ViewRepresentationProperty.builder()
.dialect("dialect")
.dialectVersion("dialectVersion")
.validationConnection("validationConnection")
.viewExpandedText("viewExpandedText")
.viewOriginalText("viewOriginalText")
.build()))
.subObjects(List.of("subObjects"))
.build())
.viewExpandedText("viewExpandedText")
.viewOriginalText("viewOriginalText")
.build())
.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 parameters;
var skewedColumnValueLocationMaps;
var cfnTableProps = new CfnTableProps {
CatalogId = "catalogId",
DatabaseName = "databaseName",
// the properties below are optional
Name = "name",
OpenTableFormatInput = new OpenTableFormatInputProperty {
IcebergInput = new IcebergInputProperty {
IcebergTableInput = new IcebergTableInputProperty {
Location = "location",
Schema = new IcebergSchemaProperty {
Fields = new [] { new IcebergStructFieldProperty {
Id = 123,
Name = "name",
Required = false,
Type = "type",
// the properties below are optional
Doc = "doc"
} },
// the properties below are optional
IdentifierFieldIds = new [] { 123 },
SchemaId = 123,
Type = "type"
},
// the properties below are optional
PartitionSpec = new IcebergPartitionSpecProperty {
Fields = new [] { new IcebergPartitionFieldProperty {
Name = "name",
SourceId = 123,
Transform = "transform",
// the properties below are optional
FieldId = 123
} },
// the properties below are optional
SpecId = 123
},
Properties = new Dictionary<string, string> {
{ "propertiesKey", "properties" }
},
WriteOrder = new IcebergSortOrderProperty {
Fields = new [] { new IcebergSortFieldProperty {
Direction = "direction",
NullOrder = "nullOrder",
SourceId = 123,
Transform = "transform"
} },
OrderId = 123
}
},
MetadataOperation = "metadataOperation",
Version = "version"
}
},
TableInput = new TableInputProperty {
Description = "description",
Name = "name",
Owner = "owner",
Parameters = parameters,
PartitionKeys = new [] { new ColumnProperty {
Name = "name",
// the properties below are optional
Comment = "comment",
Type = "type"
} },
Retention = 123,
StorageDescriptor = new StorageDescriptorProperty {
BucketColumns = new [] { "bucketColumns" },
Columns = new [] { new ColumnProperty {
Name = "name",
// the properties below are optional
Comment = "comment",
Type = "type"
} },
Compressed = false,
InputFormat = "inputFormat",
Location = "location",
NumberOfBuckets = 123,
OutputFormat = "outputFormat",
Parameters = parameters,
SchemaReference = new SchemaReferenceProperty {
SchemaId = new SchemaIdProperty {
RegistryName = "registryName",
SchemaArn = "schemaArn",
SchemaName = "schemaName"
},
SchemaVersionId = "schemaVersionId",
SchemaVersionNumber = 123
},
SerdeInfo = new SerdeInfoProperty {
Name = "name",
Parameters = parameters,
SerializationLibrary = "serializationLibrary"
},
SkewedInfo = new SkewedInfoProperty {
SkewedColumnNames = new [] { "skewedColumnNames" },
SkewedColumnValueLocationMaps = skewedColumnValueLocationMaps,
SkewedColumnValues = new [] { "skewedColumnValues" }
},
SortColumns = new [] { new OrderProperty {
Column = "column",
SortOrder = 123
} },
StoredAsSubDirectories = false
},
TableType = "tableType",
TargetTable = new TableIdentifierProperty {
CatalogId = "catalogId",
DatabaseName = "databaseName",
Name = "name",
Region = "region"
},
ViewDefinition = new ViewDefinitionProperty {
Definer = "definer",
IsProtected = false,
Representations = new [] { new ViewRepresentationProperty {
Dialect = "dialect",
DialectVersion = "dialectVersion",
ValidationConnection = "validationConnection",
ViewExpandedText = "viewExpandedText",
ViewOriginalText = "viewOriginalText"
} },
SubObjects = new [] { "subObjects" }
},
ViewExpandedText = "viewExpandedText",
ViewOriginalText = "viewOriginalText"
}
};
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"
var parameters interface{}
var skewedColumnValueLocationMaps interface{}
cfnTableProps := &CfnTableProps{
CatalogId: jsii.String("catalogId"),
DatabaseName: jsii.String("databaseName"),
// the properties below are optional
Name: jsii.String("name"),
OpenTableFormatInput: &OpenTableFormatInputProperty{
IcebergInput: &IcebergInputProperty{
IcebergTableInput: &IcebergTableInputProperty{
Location: jsii.String("location"),
Schema: &IcebergSchemaProperty{
Fields: []interface{}{
&IcebergStructFieldProperty{
Id: jsii.Number(123),
Name: jsii.String("name"),
Required: jsii.Boolean(false),
Type: jsii.String("type"),
// the properties below are optional
Doc: jsii.String("doc"),
},
},
// the properties below are optional
IdentifierFieldIds: []interface{}{
jsii.Number(123),
},
SchemaId: jsii.Number(123),
Type: jsii.String("type"),
},
// the properties below are optional
PartitionSpec: &IcebergPartitionSpecProperty{
Fields: []interface{}{
&IcebergPartitionFieldProperty{
Name: jsii.String("name"),
SourceId: jsii.Number(123),
Transform: jsii.String("transform"),
// the properties below are optional
FieldId: jsii.Number(123),
},
},
// the properties below are optional
SpecId: jsii.Number(123),
},
Properties: map[string]*string{
"propertiesKey": jsii.String("properties"),
},
WriteOrder: &IcebergSortOrderProperty{
Fields: []interface{}{
&IcebergSortFieldProperty{
Direction: jsii.String("direction"),
NullOrder: jsii.String("nullOrder"),
SourceId: jsii.Number(123),
Transform: jsii.String("transform"),
},
},
OrderId: jsii.Number(123),
},
},
MetadataOperation: jsii.String("metadataOperation"),
Version: jsii.String("version"),
},
},
TableInput: &TableInputProperty{
Description: jsii.String("description"),
Name: jsii.String("name"),
Owner: jsii.String("owner"),
Parameters: parameters,
PartitionKeys: []interface{}{
&ColumnProperty{
Name: jsii.String("name"),
// the properties below are optional
Comment: jsii.String("comment"),
Type: jsii.String("type"),
},
},
Retention: jsii.Number(123),
StorageDescriptor: &StorageDescriptorProperty{
BucketColumns: []*string{
jsii.String("bucketColumns"),
},
Columns: []interface{}{
&ColumnProperty{
Name: jsii.String("name"),
// the properties below are optional
Comment: jsii.String("comment"),
Type: jsii.String("type"),
},
},
Compressed: jsii.Boolean(false),
InputFormat: jsii.String("inputFormat"),
Location: jsii.String("location"),
NumberOfBuckets: jsii.Number(123),
OutputFormat: jsii.String("outputFormat"),
Parameters: parameters,
SchemaReference: &SchemaReferenceProperty{
SchemaId: &SchemaIdProperty{
RegistryName: jsii.String("registryName"),
SchemaArn: jsii.String("schemaArn"),
SchemaName: jsii.String("schemaName"),
},
SchemaVersionId: jsii.String("schemaVersionId"),
SchemaVersionNumber: jsii.Number(123),
},
SerdeInfo: &SerdeInfoProperty{
Name: jsii.String("name"),
Parameters: parameters,
SerializationLibrary: jsii.String("serializationLibrary"),
},
SkewedInfo: &SkewedInfoProperty{
SkewedColumnNames: []*string{
jsii.String("skewedColumnNames"),
},
SkewedColumnValueLocationMaps: skewedColumnValueLocationMaps,
SkewedColumnValues: []*string{
jsii.String("skewedColumnValues"),
},
},
SortColumns: []interface{}{
&OrderProperty{
Column: jsii.String("column"),
SortOrder: jsii.Number(123),
},
},
StoredAsSubDirectories: jsii.Boolean(false),
},
TableType: jsii.String("tableType"),
TargetTable: &TableIdentifierProperty{
CatalogId: jsii.String("catalogId"),
DatabaseName: jsii.String("databaseName"),
Name: jsii.String("name"),
Region: jsii.String("region"),
},
ViewDefinition: &ViewDefinitionProperty{
Definer: jsii.String("definer"),
IsProtected: jsii.Boolean(false),
Representations: []interface{}{
&ViewRepresentationProperty{
Dialect: jsii.String("dialect"),
DialectVersion: jsii.String("dialectVersion"),
ValidationConnection: jsii.String("validationConnection"),
ViewExpandedText: jsii.String("viewExpandedText"),
ViewOriginalText: jsii.String("viewOriginalText"),
},
},
SubObjects: []*string{
jsii.String("subObjects"),
},
},
ViewExpandedText: jsii.String("viewExpandedText"),
ViewOriginalText: jsii.String("viewOriginalText"),
},
}
Properties
The ID of the Data Catalog in which to create the `Table` .
databaseNamestringdatabase_namestrdatabaseNameStringDatabaseNamestringDatabaseName*string required #The name of the database where the table metadata resides.
For Hive compatibility, this must be all lowercase.
The table name.
For Hive compatibility, this is folded to lowercase when it is stored.
openTableFormatInputoptionalIResolvable | CfnTable.open_table_format_inputoptionaltyping.Union[IResolvable, OpenTableFormatInputProperty]openTableFormatInputoptionalIResolvableOpenTableFormatInputoptionalIResolvableOpenTableFormatInputoptionalinterface{} #Specifies an `OpenTableFormatInput` structure when creating an open format table.
tableInputoptionalIResolvable | CfnTable.TableInputPropertytable_inputoptionaltyping.Union[IResolvable, TableInputProperty]tableInputoptionalIResolvableTableInputoptionalIResolvableTableInputoptionalinterface{} #A structure used to define a table.