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

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

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-glue/lib/aws-sdk-glue/types.rb

Overview

Note:

When making an API call, you may pass UpdateDatabaseRequest data as a 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
      },
    ],
  },
}

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)


11299
11300
11301
11302
11303
11304
# File 'gems/aws-sdk-glue/lib/aws-sdk-glue/types.rb', line 11299

class UpdateDatabaseRequest < Struct.new(
  :catalog_id,
  :name,
  :database_input)
  include Aws::Structure
end

#database_inputTypes::DatabaseInput

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



11299
11300
11301
11302
11303
11304
# File 'gems/aws-sdk-glue/lib/aws-sdk-glue/types.rb', line 11299

class UpdateDatabaseRequest < Struct.new(
  :catalog_id,
  :name,
  :database_input)
  include Aws::Structure
end

#nameString

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

Returns:

  • (String)


11299
11300
11301
11302
11303
11304
# File 'gems/aws-sdk-glue/lib/aws-sdk-glue/types.rb', line 11299

class UpdateDatabaseRequest < Struct.new(
  :catalog_id,
  :name,
  :database_input)
  include Aws::Structure
end