Skip to content

Create Database

glue_create_database R Documentation

Creates a new database in a Data Catalog

Description

Creates a new database in a Data Catalog.

Usage

glue_create_database(CatalogId, DatabaseInput, Tags)

Arguments

CatalogId

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

DatabaseInput

[required] The metadata for the database.

Tags

The tags you assign to the database.

Value

An empty list.

Request syntax

svc$create_database(
  CatalogId = "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"
    )
  ),
  Tags = list(
    "string"
  )
)