| 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.UpdateTable
Description
Updates a metadata table in the Data Catalog.
Synopsis
- data UpdateTable = UpdateTable' {}
- newUpdateTable :: Text -> TableInput -> UpdateTable
- updateTable_catalogId :: Lens' UpdateTable (Maybe Text)
- updateTable_skipArchive :: Lens' UpdateTable (Maybe Bool)
- updateTable_transactionId :: Lens' UpdateTable (Maybe Text)
- updateTable_versionId :: 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.
Constructors
| UpdateTable' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> TableInput | |
| -> UpdateTable |
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:
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: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:transactionId:UpdateTable', updateTable_transactionId - The transaction ID at which to update the table contents.
UpdateTable, updateTable_versionId - The version ID at which to update the table contents.
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_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_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_transactionId :: Lens' UpdateTable (Maybe Text) Source #
The transaction ID at which to update the table contents.
updateTable_versionId :: Lens' UpdateTable (Maybe Text) Source #
The version ID at which to update the table contents.
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.
Constructors
| UpdateTableResponse' | |
Fields
| |
Instances
newUpdateTableResponse Source #
Arguments
| :: Int | |
| -> UpdateTableResponse |
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.