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.CreateTable

Description

Creates a new table definition in the Data Catalog.

Synopsis

Creating a Request

data CreateTable Source #

See: newCreateTable smart constructor.

Constructors

CreateTable' 

Fields

  • partitionIndexes :: Maybe [PartitionIndex]

    A list of partition indexes, PartitionIndex structures, to create in the table.

  • catalogId :: Maybe Text

    The ID of the Data Catalog in which to create the Table. If none is supplied, the Amazon Web Services account ID is used by default.

  • databaseName :: Text

    The catalog database in which to create the new table. For Hive compatibility, this name is entirely lowercase.

  • tableInput :: TableInput

    The TableInput object that defines the metadata table to create in the catalog.

Instances

Instances details
Eq CreateTable Source # 
Instance details

Defined in Amazonka.Glue.CreateTable

Read CreateTable Source # 
Instance details

Defined in Amazonka.Glue.CreateTable

Show CreateTable Source # 
Instance details

Defined in Amazonka.Glue.CreateTable

Generic CreateTable Source # 
Instance details

Defined in Amazonka.Glue.CreateTable

Associated Types

type Rep CreateTable :: Type -> Type #

NFData CreateTable Source # 
Instance details

Defined in Amazonka.Glue.CreateTable

Methods

rnf :: CreateTable -> () #

Hashable CreateTable Source # 
Instance details

Defined in Amazonka.Glue.CreateTable

ToJSON CreateTable Source # 
Instance details

Defined in Amazonka.Glue.CreateTable

AWSRequest CreateTable Source # 
Instance details

Defined in Amazonka.Glue.CreateTable

Associated Types

type AWSResponse CreateTable #

ToHeaders CreateTable Source # 
Instance details

Defined in Amazonka.Glue.CreateTable

Methods

toHeaders :: CreateTable -> [Header] #

ToPath CreateTable Source # 
Instance details

Defined in Amazonka.Glue.CreateTable

ToQuery CreateTable Source # 
Instance details

Defined in Amazonka.Glue.CreateTable

type Rep CreateTable Source # 
Instance details

Defined in Amazonka.Glue.CreateTable

type Rep CreateTable = D1 ('MetaData "CreateTable" "Amazonka.Glue.CreateTable" "libZSservicesZSamazonka-glueZSamazonka-glue" 'False) (C1 ('MetaCons "CreateTable'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "partitionIndexes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [PartitionIndex])) :*: S1 ('MetaSel ('Just "catalogId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "databaseName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "tableInput") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 TableInput))))
type AWSResponse CreateTable Source # 
Instance details

Defined in Amazonka.Glue.CreateTable

newCreateTable Source #

Create a value of CreateTable 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:partitionIndexes:CreateTable', createTable_partitionIndexes - A list of partition indexes, PartitionIndex structures, to create in the table.

$sel:catalogId:CreateTable', createTable_catalogId - The ID of the Data Catalog in which to create the Table. If none is supplied, the Amazon Web Services account ID is used by default.

$sel:databaseName:CreateTable', createTable_databaseName - The catalog database in which to create the new table. For Hive compatibility, this name is entirely lowercase.

$sel:tableInput:CreateTable', createTable_tableInput - The TableInput object that defines the metadata table to create in the catalog.

Request Lenses

createTable_partitionIndexes :: Lens' CreateTable (Maybe [PartitionIndex]) Source #

A list of partition indexes, PartitionIndex structures, to create in the table.

createTable_catalogId :: Lens' CreateTable (Maybe Text) Source #

The ID of the Data Catalog in which to create the Table. If none is supplied, the Amazon Web Services account ID is used by default.

createTable_databaseName :: Lens' CreateTable Text Source #

The catalog database in which to create the new table. For Hive compatibility, this name is entirely lowercase.

createTable_tableInput :: Lens' CreateTable TableInput Source #

The TableInput object that defines the metadata table to create in the catalog.

Destructuring the Response

data CreateTableResponse Source #

See: newCreateTableResponse smart constructor.

Constructors

CreateTableResponse' 

Fields

Instances

Instances details
Eq CreateTableResponse Source # 
Instance details

Defined in Amazonka.Glue.CreateTable

Read CreateTableResponse Source # 
Instance details

Defined in Amazonka.Glue.CreateTable

Show CreateTableResponse Source # 
Instance details

Defined in Amazonka.Glue.CreateTable

Generic CreateTableResponse Source # 
Instance details

Defined in Amazonka.Glue.CreateTable

Associated Types

type Rep CreateTableResponse :: Type -> Type #

NFData CreateTableResponse Source # 
Instance details

Defined in Amazonka.Glue.CreateTable

Methods

rnf :: CreateTableResponse -> () #

type Rep CreateTableResponse Source # 
Instance details

Defined in Amazonka.Glue.CreateTable

type Rep CreateTableResponse = D1 ('MetaData "CreateTableResponse" "Amazonka.Glue.CreateTable" "libZSservicesZSamazonka-glueZSamazonka-glue" 'False) (C1 ('MetaCons "CreateTableResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateTableResponse Source #

Create a value of CreateTableResponse 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:httpStatus:CreateTableResponse', createTableResponse_httpStatus - The response's http status code.

Response Lenses