LakeFormation.Client.
delete_objects_on_cancel
(**kwargs)¶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.
See also: AWS API Documentation
Request Syntax
response = client.delete_objects_on_cancel(
CatalogId='string',
DatabaseName='string',
TableName='string',
TransactionId='string',
Objects=[
{
'Uri': 'string',
'ETag': 'string'
},
]
)
[REQUIRED]
The database that contains the governed table.
[REQUIRED]
The name of the governed table.
[REQUIRED]
ID of the transaction that the writes occur in.
[REQUIRED]
A list of VirtualObject structures, which indicates the Amazon S3 objects to be deleted if the transaction cancels.
An object that defines an Amazon S3 object to be deleted if a transaction cancels, provided that VirtualPut
was called before writing the object.
The path to the Amazon S3 object. Must start with s3://
The ETag of the Amazon S3 object.
dict
Response Syntax
{}
Response Structure
Exceptions
LakeFormation.Client.exceptions.InternalServiceException
LakeFormation.Client.exceptions.InvalidInputException
LakeFormation.Client.exceptions.OperationTimeoutException
LakeFormation.Client.exceptions.EntityNotFoundException
LakeFormation.Client.exceptions.TransactionCommittedException
LakeFormation.Client.exceptions.TransactionCanceledException
LakeFormation.Client.exceptions.ResourceNotReadyException
LakeFormation.Client.exceptions.ConcurrentModificationException