Skip to main content

table_storage_optimizers

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

Overview

Nametable_storage_optimizers
TypeResource
Idaws.lakeformation.table_storage_optimizers

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
next_tokenstringA continuation token for paginating the returned list of tokens, returned if the current segment of the list is not the last.
storage_optimizer_listarrayA list of the storage optimizers associated with a table.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_table_storage_optimizersselectregionReturns the configuration of all storage optimizers associated with a specified table.
update_table_storage_optimizerupdateregion, DatabaseName, TableName, StorageOptimizerConfigUpdates the configuration of the storage optimizers for a 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 configuration of all storage optimizers associated with a specified table.

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

UPDATE examples

Updates the configuration of the storage optimizers for a table.

UPDATE aws.lakeformation.table_storage_optimizers
SET
CatalogId = '{{ CatalogId }}',
DatabaseName = '{{ DatabaseName }}',
TableName = '{{ TableName }}',
StorageOptimizerConfig = '{{ StorageOptimizerConfig }}'
WHERE
region = '{{ region }}' --required
AND DatabaseName = '{{ DatabaseName }}' --required
AND TableName = '{{ TableName }}' --required
AND StorageOptimizerConfig = '{{ StorageOptimizerConfig }}' --required
RETURNING
result;