You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::Glue::Types::UpdateDatabaseRequest

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing UpdateDatabaseRequest as input to an Aws::Client method, you can use a vanilla Hash:

{
  catalog_id: "CatalogIdString",
  name: "NameString", # required
  database_input: { # required
    name: "NameString", # required
    description: "DescriptionString",
    location_uri: "URI",
    parameters: {
      "KeyString" => "ParametersMapValue",
    },
    create_table_default_permissions: [
      {
        principal: {
          data_lake_principal_identifier: "DataLakePrincipalString",
        },
        permissions: ["ALL"], # accepts ALL, SELECT, ALTER, DROP, DELETE, INSERT, CREATE_DATABASE, CREATE_TABLE, DATA_LOCATION_ACCESS
      },
    ],
    target_database: {
      catalog_id: "CatalogIdString",
      database_name: "NameString",
    },
  },
}

Instance Attribute Summary collapse

Instance Attribute Details

#catalog_idString

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

Returns:

  • (String)

    The ID of the Data Catalog in which the metadata database resides.

#database_inputTypes::DatabaseInput

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

Returns:

  • (Types::DatabaseInput)

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

#nameString

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

Returns:

  • (String)

    The name of the database to update in the catalog.