Glue.Client.
update_database
(**kwargs)¶Updates an existing database definition in a Data Catalog.
See also: AWS API Documentation
Request Syntax
response = client.update_database(
CatalogId='string',
Name='string',
DatabaseInput={
'Name': 'string',
'Description': 'string',
'LocationUri': 'string',
'Parameters': {
'string': 'string'
},
'CreateTableDefaultPermissions': [
{
'Principal': {
'DataLakePrincipalIdentifier': 'string'
},
'Permissions': [
'ALL'|'SELECT'|'ALTER'|'DROP'|'DELETE'|'INSERT'|'CREATE_DATABASE'|'CREATE_TABLE'|'DATA_LOCATION_ACCESS',
]
},
],
'TargetDatabase': {
'CatalogId': 'string',
'DatabaseName': 'string'
}
}
)
[REQUIRED]
The name of the database to update in the catalog. For Hive compatibility, this is folded to lowercase.
[REQUIRED]
A DatabaseInput
object specifying the new definition of the metadata database in the catalog.
The name of the database. For Hive compatibility, this is folded to lowercase when it is stored.
A description of the database.
The location of the database (for example, an HDFS path).
These key-value pairs define parameters and properties of the database.
These key-value pairs define parameters and properties of the database.
Creates a set of default permissions on the table for principals. Used by Lake Formation. Not used in the normal course of Glue operations.
Permissions granted to a principal.
The principal who is granted permissions.
An identifier for the Lake Formation principal.
The permissions that are granted to the principal.
A DatabaseIdentifier
structure that describes a target database for resource linking.
The ID of the Data Catalog in which the database resides.
The name of the catalog database.
dict
Response Syntax
{}
Response Structure
Exceptions
Glue.Client.exceptions.EntityNotFoundException
Glue.Client.exceptions.InvalidInputException
Glue.Client.exceptions.InternalServiceException
Glue.Client.exceptions.OperationTimeoutException
Glue.Client.exceptions.GlueEncryptionException
Glue.Client.exceptions.ConcurrentModificationException