Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Creates a new table definition in the Data Catalog.
- createTable :: Text -> TableInput -> CreateTable
- data CreateTable
- ctCatalogId :: Lens' CreateTable (Maybe Text)
- ctDatabaseName :: Lens' CreateTable Text
- ctTableInput :: Lens' CreateTable TableInput
- createTableResponse :: Int -> CreateTableResponse
- data CreateTableResponse
- cttrsResponseStatus :: Lens' CreateTableResponse Int
Creating a Request
Creates a value of CreateTable
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ctCatalogId
- The ID of the Data Catalog in which to create theTable
. If none is supplied, the AWS account ID is used by default.ctDatabaseName
- The catalog database in which to create the new table. For Hive compatibility, this name is entirely lowercase.ctTableInput
- TheTableInput
object that defines the metadata table to create in the catalog.
data CreateTable Source #
See: createTable
smart constructor.
Request Lenses
ctCatalogId :: Lens' CreateTable (Maybe Text) Source #
The ID of the Data Catalog in which to create the Table
. If none is supplied, the AWS account ID is used by default.
ctDatabaseName :: Lens' CreateTable Text Source #
The catalog database in which to create the new table. For Hive compatibility, this name is entirely lowercase.
ctTableInput :: Lens' CreateTable TableInput Source #
The TableInput
object that defines the metadata table to create in the catalog.
Destructuring the Response
Creates a value of CreateTableResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cttrsResponseStatus
- -- | The response status code.
data CreateTableResponse Source #
See: createTableResponse
smart constructor.
Response Lenses
cttrsResponseStatus :: Lens' CreateTableResponse Int Source #
- - | The response status code.