Skip to main content

table_objects

Creates, updates, deletes, gets or lists a table_objects resource.

Overview

Nametable_objects
TypeResource
Idaws.lakeformation.table_objects

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
next_tokenstringA continuation token indicating whether additional data is available.
objectsarrayA list of objects organized by partition keys.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_table_objectsselectregionReturns the set of Amazon S3 objects that make up the specified governed table. A transaction ID or timestamp can be specified for time-travel queries.
update_table_objectsupdateregion, DatabaseName, TableName, WriteOperationsUpdates the manifest of Amazon S3 objects that make up the specified governed table.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Returns the set of Amazon S3 objects that make up the specified governed table. A transaction ID or timestamp can be specified for time-travel queries.

SELECT
next_token,
objects
FROM aws.lakeformation.table_objects
WHERE region = '{{ region }}' -- required
;

UPDATE examples

Updates the manifest of Amazon S3 objects that make up the specified governed table.

UPDATE aws.lakeformation.table_objects
SET
CatalogId = '{{ CatalogId }}',
DatabaseName = '{{ DatabaseName }}',
TableName = '{{ TableName }}',
TransactionId = '{{ TransactionId }}',
WriteOperations = '{{ WriteOperations }}'
WHERE
region = '{{ region }}' --required
AND DatabaseName = '{{ DatabaseName }}' --required
AND TableName = '{{ TableName }}' --required
AND WriteOperations = '{{ WriteOperations }}' --required;