| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.Glue.CreateTable
Description
Creates a new table definition in the Data Catalog.
Synopsis
- data CreateTable = CreateTable' {}
- newCreateTable :: Text -> TableInput -> CreateTable
- createTable_catalogId :: Lens' CreateTable (Maybe Text)
- createTable_partitionIndexes :: Lens' CreateTable (Maybe [PartitionIndex])
- createTable_transactionId :: Lens' CreateTable (Maybe Text)
- createTable_databaseName :: Lens' CreateTable Text
- createTable_tableInput :: Lens' CreateTable TableInput
- data CreateTableResponse = CreateTableResponse' {
- httpStatus :: Int
- newCreateTableResponse :: Int -> CreateTableResponse
- createTableResponse_httpStatus :: Lens' CreateTableResponse Int
Creating a Request
data CreateTable Source #
See: newCreateTable smart constructor.
Constructors
| CreateTable' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> TableInput | |
| -> CreateTable |
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:
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:partitionIndexes:CreateTable', createTable_partitionIndexes - A list of partition indexes, PartitionIndex structures, to create in
the table.
$sel:transactionId:CreateTable', createTable_transactionId - The ID of the transaction.
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_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_partitionIndexes :: Lens' CreateTable (Maybe [PartitionIndex]) Source #
A list of partition indexes, PartitionIndex structures, to create in
the table.
createTable_transactionId :: Lens' CreateTable (Maybe Text) Source #
The ID of the transaction.
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
newCreateTableResponse Source #
Arguments
| :: Int | |
| -> CreateTableResponse |
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
createTableResponse_httpStatus :: Lens' CreateTableResponse Int Source #
The response's http status code.