Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Creates a new table definition in the Data Catalog.
Synopsis
- data CreateTable = CreateTable' {}
- newCreateTable :: Text -> TableInput -> CreateTable
- createTable_partitionIndexes :: Lens' CreateTable (Maybe [PartitionIndex])
- createTable_catalogId :: 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.
CreateTable' | |
|
Instances
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.
CreateTableResponse' | |
|
Instances
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
createTableResponse_httpStatus :: Lens' CreateTableResponse Int Source #
The response's http status code.