Glue / Client / create_table_optimizer
create_table_optimizer#
- Glue.Client.create_table_optimizer(**kwargs)#
Creates a new table optimizer for a specific function.
compaction
is the only currently supported optimizer type.See also: AWS API Documentation
Request Syntax
response = client.create_table_optimizer( CatalogId='string', DatabaseName='string', TableName='string', Type='compaction', TableOptimizerConfiguration={ 'roleArn': 'string', 'enabled': True|False } )
- Parameters:
CatalogId (string) –
[REQUIRED]
The Catalog ID of the table.
DatabaseName (string) –
[REQUIRED]
The name of the database in the catalog in which the table resides.
TableName (string) –
[REQUIRED]
The name of the table.
Type (string) –
[REQUIRED]
The type of table optimizer. Currently, the only valid value is
compaction
.TableOptimizerConfiguration (dict) –
[REQUIRED]
A
TableOptimizerConfiguration
object representing the configuration of a table optimizer.roleArn (string) –
A role passed by the caller which gives the service permission to update the resources associated with the optimizer on the caller’s behalf.
enabled (boolean) –
Whether table optimization is enabled.
- Return type:
dict
- Returns:
Response Syntax
{}
Response Structure
(dict) –
Exceptions
Glue.Client.exceptions.EntityNotFoundException
Glue.Client.exceptions.InvalidInputException
Glue.Client.exceptions.AccessDeniedException
Glue.Client.exceptions.AlreadyExistsException
Glue.Client.exceptions.InternalServiceException