Skip to content

Update Database

glue_update_database R Documentation

Updates an existing database definition in a Data Catalog

Description

Updates an existing database definition in a Data Catalog.

Usage

glue_update_database(CatalogId, Name, DatabaseInput)

Arguments

CatalogId

The ID of the Data Catalog in which the metadata database resides. If none is provided, the Amazon Web Services account ID is used by default.

Name

[required] The name of the database to update in the catalog. For Hive compatibility, this is folded to lowercase.

DatabaseInput

[required] A DatabaseInput object specifying the new definition of the metadata database in the catalog.

Value

An empty list.

Request syntax

svc$update_database(
  CatalogId = "string",
  Name = "string",
  DatabaseInput = list(
    Name = "string",
    Description = "string",
    LocationUri = "string",
    Parameters = list(
      "string"
    ),
    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"
    ),
    FederatedDatabase = list(
      Identifier = "string",
      ConnectionName = "string"
    )
  )
)