libZSservicesZSamazonka-glueZSamazonka-glue
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Glue.Types.Table

Description

 
Synopsis

Documentation

data Table Source #

Represents a collection of related data organized in columns and rows.

See: newTable smart constructor.

Constructors

Table' 

Fields

Instances

Instances details
Eq Table Source # 
Instance details

Defined in Amazonka.Glue.Types.Table

Methods

(==) :: Table -> Table -> Bool #

(/=) :: Table -> Table -> Bool #

Read Table Source # 
Instance details

Defined in Amazonka.Glue.Types.Table

Show Table Source # 
Instance details

Defined in Amazonka.Glue.Types.Table

Methods

showsPrec :: Int -> Table -> ShowS #

show :: Table -> String #

showList :: [Table] -> ShowS #

Generic Table Source # 
Instance details

Defined in Amazonka.Glue.Types.Table

Associated Types

type Rep Table :: Type -> Type #

Methods

from :: Table -> Rep Table x #

to :: Rep Table x -> Table #

NFData Table Source # 
Instance details

Defined in Amazonka.Glue.Types.Table

Methods

rnf :: Table -> () #

Hashable Table Source # 
Instance details

Defined in Amazonka.Glue.Types.Table

Methods

hashWithSalt :: Int -> Table -> Int #

hash :: Table -> Int #

FromJSON Table Source # 
Instance details

Defined in Amazonka.Glue.Types.Table

type Rep Table Source # 
Instance details

Defined in Amazonka.Glue.Types.Table

type Rep Table = D1 ('MetaData "Table" "Amazonka.Glue.Types.Table" "libZSservicesZSamazonka-glueZSamazonka-glue" 'False) (C1 ('MetaCons "Table'" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "retention") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "targetTable") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe TableIdentifier))) :*: (S1 ('MetaSel ('Just "isRegisteredWithLakeFormation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "createdBy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "tableType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "catalogId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "owner") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "viewOriginalText") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "updateTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)))))) :*: (((S1 ('MetaSel ('Just "viewExpandedText") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "lastAnalyzedTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX))) :*: (S1 ('MetaSel ('Just "storageDescriptor") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe StorageDescriptor)) :*: (S1 ('MetaSel ('Just "databaseName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "parameters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text)))))) :*: ((S1 ('MetaSel ('Just "lastAccessTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "partitionKeys") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Column])) :*: (S1 ('MetaSel ('Just "createTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))))

newTable Source #

Arguments

:: Text

$sel:name:Table'

-> Table 

Create a value of Table with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:retention:Table', table_retention - The retention time for this table.

$sel:targetTable:Table', table_targetTable - A TableIdentifier structure that describes a target table for resource linking.

$sel:isRegisteredWithLakeFormation:Table', table_isRegisteredWithLakeFormation - Indicates whether the table has been registered with Lake Formation.

$sel:createdBy:Table', table_createdBy - The person or entity who created the table.

$sel:tableType:Table', table_tableType - The type of this table (EXTERNAL_TABLE, VIRTUAL_VIEW, etc.).

$sel:catalogId:Table', table_catalogId - The ID of the Data Catalog in which the table resides.

$sel:owner:Table', table_owner - The owner of the table.

$sel:viewOriginalText:Table', table_viewOriginalText - If the table is a view, the original text of the view; otherwise null.

$sel:updateTime:Table', table_updateTime - The last time that the table was updated.

$sel:viewExpandedText:Table', table_viewExpandedText - If the table is a view, the expanded text of the view; otherwise null.

$sel:lastAnalyzedTime:Table', table_lastAnalyzedTime - The last time that column statistics were computed for this table.

$sel:storageDescriptor:Table', table_storageDescriptor - A storage descriptor containing information about the physical storage of this table.

$sel:databaseName:Table', table_databaseName - The name of the database where the table metadata resides. For Hive compatibility, this must be all lowercase.

$sel:parameters:Table', table_parameters - These key-value pairs define properties associated with the table.

$sel:lastAccessTime:Table', table_lastAccessTime - The last time that the table was accessed. This is usually taken from HDFS, and might not be reliable.

$sel:description:Table', table_description - A description of the table.

$sel:partitionKeys:Table', table_partitionKeys - A list of columns by which the table is partitioned. Only primitive types are supported as partition keys.

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": []

$sel:createTime:Table', table_createTime - The time when the table definition was created in the Data Catalog.

$sel:name:Table', table_name - The table name. For Hive compatibility, this must be entirely lowercase.

table_retention :: Lens' Table (Maybe Natural) Source #

The retention time for this table.

table_targetTable :: Lens' Table (Maybe TableIdentifier) Source #

A TableIdentifier structure that describes a target table for resource linking.

table_isRegisteredWithLakeFormation :: Lens' Table (Maybe Bool) Source #

Indicates whether the table has been registered with Lake Formation.

table_createdBy :: Lens' Table (Maybe Text) Source #

The person or entity who created the table.

table_tableType :: Lens' Table (Maybe Text) Source #

The type of this table (EXTERNAL_TABLE, VIRTUAL_VIEW, etc.).

table_catalogId :: Lens' Table (Maybe Text) Source #

The ID of the Data Catalog in which the table resides.

table_owner :: Lens' Table (Maybe Text) Source #

The owner of the table.

table_viewOriginalText :: Lens' Table (Maybe Text) Source #

If the table is a view, the original text of the view; otherwise null.

table_updateTime :: Lens' Table (Maybe UTCTime) Source #

The last time that the table was updated.

table_viewExpandedText :: Lens' Table (Maybe Text) Source #

If the table is a view, the expanded text of the view; otherwise null.

table_lastAnalyzedTime :: Lens' Table (Maybe UTCTime) Source #

The last time that column statistics were computed for this table.

table_storageDescriptor :: Lens' Table (Maybe StorageDescriptor) Source #

A storage descriptor containing information about the physical storage of this table.

table_databaseName :: Lens' Table (Maybe Text) Source #

The name of the database where the table metadata resides. For Hive compatibility, this must be all lowercase.

table_parameters :: Lens' Table (Maybe (HashMap Text Text)) Source #

These key-value pairs define properties associated with the table.

table_lastAccessTime :: Lens' Table (Maybe UTCTime) Source #

The last time that the table was accessed. This is usually taken from HDFS, and might not be reliable.

table_description :: Lens' Table (Maybe Text) Source #

A description of the table.

table_partitionKeys :: Lens' Table (Maybe [Column]) Source #

A list of columns by which the table is partitioned. Only primitive types are supported as partition keys.

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": []

table_createTime :: Lens' Table (Maybe UTCTime) Source #

The time when the table definition was created in the Data Catalog.

table_name :: Lens' Table Text Source #

The table name. For Hive compatibility, this must be entirely lowercase.