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 |
Updates a metadata table in the Data Catalog.
Synopsis
- data UpdateTable = UpdateTable' {}
- newUpdateTable :: Text -> TableInput -> UpdateTable
- updateTable_skipArchive :: Lens' UpdateTable (Maybe Bool)
- updateTable_catalogId :: Lens' UpdateTable (Maybe Text)
- updateTable_databaseName :: Lens' UpdateTable Text
- updateTable_tableInput :: Lens' UpdateTable TableInput
- data UpdateTableResponse = UpdateTableResponse' {
- httpStatus :: Int
- newUpdateTableResponse :: Int -> UpdateTableResponse
- updateTableResponse_httpStatus :: Lens' UpdateTableResponse Int
Creating a Request
data UpdateTable Source #
See: newUpdateTable
smart constructor.
UpdateTable' | |
|
Instances
Create a value of UpdateTable
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:skipArchive:UpdateTable'
, updateTable_skipArchive
- By default, UpdateTable
always creates an archived version of the
table before updating it. However, if skipArchive
is set to true,
UpdateTable
does not create the archived version.
$sel:catalogId:UpdateTable'
, updateTable_catalogId
- The ID of the Data Catalog where the table resides. If none is provided,
the Amazon Web Services account ID is used by default.
$sel:databaseName:UpdateTable'
, updateTable_databaseName
- The name of the catalog database in which the table resides. For Hive
compatibility, this name is entirely lowercase.
$sel:tableInput:UpdateTable'
, updateTable_tableInput
- An updated TableInput
object to define the metadata table in the
catalog.
Request Lenses
updateTable_skipArchive :: Lens' UpdateTable (Maybe Bool) Source #
By default, UpdateTable
always creates an archived version of the
table before updating it. However, if skipArchive
is set to true,
UpdateTable
does not create the archived version.
updateTable_catalogId :: Lens' UpdateTable (Maybe Text) Source #
The ID of the Data Catalog where the table resides. If none is provided, the Amazon Web Services account ID is used by default.
updateTable_databaseName :: Lens' UpdateTable Text Source #
The name of the catalog database in which the table resides. For Hive compatibility, this name is entirely lowercase.
updateTable_tableInput :: Lens' UpdateTable TableInput Source #
An updated TableInput
object to define the metadata table in the
catalog.
Destructuring the Response
data UpdateTableResponse Source #
See: newUpdateTableResponse
smart constructor.
UpdateTableResponse' | |
|
Instances
newUpdateTableResponse Source #
Create a value of UpdateTableResponse
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:UpdateTableResponse'
, updateTableResponse_httpStatus
- The response's http status code.
Response Lenses
updateTableResponse_httpStatus :: Lens' UpdateTableResponse Int Source #
The response's http status code.