Get Databases
| glue_get_databases | R Documentation |
Retrieves all databases defined in a given Data Catalog¶
Description¶
Retrieves all databases defined in a given Data Catalog.
Usage¶
Arguments¶
CatalogIdThe ID of the Data Catalog from which to retrieve
Databases. If none is provided, the Amazon Web Services account ID is used by default.NextTokenA continuation token, if this is a continuation call.
MaxResultsThe maximum number of databases to return in one response.
ResourceShareTypeAllows you to specify that you want to list the databases shared with your account. The allowable values are
FEDERATED,FOREIGNorALL.If set to
FEDERATED, will list the federated databases (referencing an external entity) shared with your account.If set to
FOREIGN, will list the databases shared with your account.If set to
ALL, will list the databases shared with your account, as well as the databases in yor local account.
AttributesToGetSpecifies the database fields returned by the
get_databasescall. This parameter doesn’t accept an empty list. The request must include theNAME.
Value¶
A list with the following syntax:
list(
DatabaseList = list(
list(
Name = "string",
Description = "string",
LocationUri = "string",
Parameters = list(
"string"
),
CreateTime = as.POSIXct(
"2015-01-01"
),
CreateTableDefaultPermissions = list(
list(
Principal = list(
DataLakePrincipalIdentifier = "string"
),
Permissions = list(
"ALL"|"SELECT"|"ALTER"|"DROP"|"DELETE"|"INSERT"|"CREATE_DATABASE"|"CREATE_TABLE"|"DATA_LOCATION_ACCESS"
)
)
),
TargetDatabase = list(
CatalogId = "string",
DatabaseName = "string",
Region = "string"
),
CatalogId = "string",
FederatedDatabase = list(
Identifier = "string",
ConnectionName = "string"
)
)
),
NextToken = "string"
)