Class CfnTable.TableInputProperty
A structure used to define a table.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.Glue
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class TableInputProperty : Object, CfnTable.ITableInputProperty
Syntax (vb)
Public Class TableInputProperty
Inherits Object
Implements CfnTable.ITableInputProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// 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 tableInputProperty = 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"
},
ViewExpandedText = "viewExpandedText",
ViewOriginalText = "viewOriginalText"
};
Synopsis
Constructors
Table |
Properties
Description | A description of the table. |
Name | The table name. |
Owner | The table owner. |
Parameters | These key-value pairs define properties associated with the table. |
Partition |
A list of columns by which the table is partitioned. Only primitive types are supported as partition keys. |
Retention | The retention time for this table. |
Storage |
A storage descriptor containing information about the physical storage of this table. |
Table |
The type of this table. |
Target |
A |
View |
Included for Apache Hive compatibility. |
View |
Included for Apache Hive compatibility. |
Constructors
TableInputProperty()
public TableInputProperty()
Properties
Description
A description of the table.
public string Description { get; set; }
Property Value
System.
Remarks
Name
The table name.
public string Name { get; set; }
Property Value
System.
Remarks
For Hive compatibility, this is folded to lowercase when it is stored.
Owner
The table owner.
public string Owner { get; set; }
Property Value
System.
Remarks
Included for Apache Hive compatibility. Not used in the normal course of AWS Glue operations.
Parameters
These key-value pairs define properties associated with the table.
public object Parameters { get; set; }
Property Value
System.
Remarks
PartitionKeys
A list of columns by which the table is partitioned. Only primitive types are supported as partition keys.
public object PartitionKeys { get; set; }
Property Value
System.
Remarks
When you create a table used by Amazon Athena, and you do not specify any partitionKeys
, you must at least set the value of partitionKeys
to an empty list. For example:
"PartitionKeys": []
Retention
The retention time for this table.
public Nullable<double> Retention { get; set; }
Property Value
System.
Remarks
StorageDescriptor
A storage descriptor containing information about the physical storage of this table.
public object StorageDescriptor { get; set; }
Property Value
System.
Remarks
TableType
The type of this table.
public string TableType { get; set; }
Property Value
System.
Remarks
AWS Glue will create tables with the EXTERNAL_TABLE
type. Other services, such as Athena, may create tables with additional table types.
AWS Glue related table types:
TargetTable
A TableIdentifier
structure that describes a target table for resource linking.
public object TargetTable { get; set; }
Property Value
System.
Remarks
ViewExpandedText
Included for Apache Hive compatibility.
public string ViewExpandedText { get; set; }
Property Value
System.
Remarks
Not used in the normal course of AWS Glue operations.
ViewOriginalText
Included for Apache Hive compatibility.
public string ViewOriginalText { get; set; }
Property Value
System.
Remarks
Not used in the normal course of AWS Glue operations. If the table is a VIRTUAL_VIEW
, certain Athena configuration encoded in base64.