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 |
For a specific governed table, provides a list of Amazon S3 objects that will be written during the current transaction and that can be automatically deleted if the transaction is canceled. Without this call, no Amazon S3 objects are automatically deleted when a transaction cancels.
The Glue ETL library function write_dynamic_frame.from_catalog()
includes an option to automatically call DeleteObjectsOnCancel
before
writes. For more information, see
Rolling Back Amazon S3 Writes.
Synopsis
- data DeleteObjectsOnCancel = DeleteObjectsOnCancel' {}
- newDeleteObjectsOnCancel :: Text -> Text -> Text -> NonEmpty VirtualObject -> DeleteObjectsOnCancel
- deleteObjectsOnCancel_catalogId :: Lens' DeleteObjectsOnCancel (Maybe Text)
- deleteObjectsOnCancel_databaseName :: Lens' DeleteObjectsOnCancel Text
- deleteObjectsOnCancel_tableName :: Lens' DeleteObjectsOnCancel Text
- deleteObjectsOnCancel_transactionId :: Lens' DeleteObjectsOnCancel Text
- deleteObjectsOnCancel_objects :: Lens' DeleteObjectsOnCancel (NonEmpty VirtualObject)
- data DeleteObjectsOnCancelResponse = DeleteObjectsOnCancelResponse' {
- httpStatus :: Int
- newDeleteObjectsOnCancelResponse :: Int -> DeleteObjectsOnCancelResponse
- deleteObjectsOnCancelResponse_httpStatus :: Lens' DeleteObjectsOnCancelResponse Int
Creating a Request
data DeleteObjectsOnCancel Source #
See: newDeleteObjectsOnCancel
smart constructor.
DeleteObjectsOnCancel' | |
|
Instances
newDeleteObjectsOnCancel Source #
:: Text | |
-> Text | |
-> Text | |
-> NonEmpty VirtualObject | |
-> DeleteObjectsOnCancel |
Create a value of DeleteObjectsOnCancel
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:
DeleteObjectsOnCancel
, deleteObjectsOnCancel_catalogId
- The Glue data catalog that contains the governed table. Defaults to the
current account ID.
DeleteObjectsOnCancel
, deleteObjectsOnCancel_databaseName
- The database that contains the governed table.
DeleteObjectsOnCancel
, deleteObjectsOnCancel_tableName
- The name of the governed table.
DeleteObjectsOnCancel
, deleteObjectsOnCancel_transactionId
- ID of the transaction that the writes occur in.
DeleteObjectsOnCancel
, deleteObjectsOnCancel_objects
- A list of VirtualObject structures, which indicates the Amazon S3
objects to be deleted if the transaction cancels.
Request Lenses
deleteObjectsOnCancel_catalogId :: Lens' DeleteObjectsOnCancel (Maybe Text) Source #
The Glue data catalog that contains the governed table. Defaults to the current account ID.
deleteObjectsOnCancel_databaseName :: Lens' DeleteObjectsOnCancel Text Source #
The database that contains the governed table.
deleteObjectsOnCancel_tableName :: Lens' DeleteObjectsOnCancel Text Source #
The name of the governed table.
deleteObjectsOnCancel_transactionId :: Lens' DeleteObjectsOnCancel Text Source #
ID of the transaction that the writes occur in.
deleteObjectsOnCancel_objects :: Lens' DeleteObjectsOnCancel (NonEmpty VirtualObject) Source #
A list of VirtualObject structures, which indicates the Amazon S3 objects to be deleted if the transaction cancels.
Destructuring the Response
data DeleteObjectsOnCancelResponse Source #
See: newDeleteObjectsOnCancelResponse
smart constructor.
DeleteObjectsOnCancelResponse' | |
|
Instances
newDeleteObjectsOnCancelResponse Source #
Create a value of DeleteObjectsOnCancelResponse
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:DeleteObjectsOnCancelResponse'
, deleteObjectsOnCancelResponse_httpStatus
- The response's http status code.
Response Lenses
deleteObjectsOnCancelResponse_httpStatus :: Lens' DeleteObjectsOnCancelResponse Int Source #
The response's http status code.