Class: Aws::Glue::Types::DatabaseInput

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 DatabaseInput data as a hash:

{
  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",
  },
}

The structure used to create or update a database.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#create_table_default_permissionsArray<Types::PrincipalPermissions>

Creates a set of default permissions on the table for principals.

Returns:



4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
# File 'gems/aws-sdk-glue/lib/aws-sdk-glue/types.rb', line 4448

class DatabaseInput < Struct.new(
  :name,
  :description,
  :location_uri,
  :parameters,
  :create_table_default_permissions,
  :target_database)
  SENSITIVE = []
  include Aws::Structure
end

#descriptionString

A description of the database.

Returns:

  • (String)


4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
# File 'gems/aws-sdk-glue/lib/aws-sdk-glue/types.rb', line 4448

class DatabaseInput < Struct.new(
  :name,
  :description,
  :location_uri,
  :parameters,
  :create_table_default_permissions,
  :target_database)
  SENSITIVE = []
  include Aws::Structure
end

#location_uriString

The location of the database (for example, an HDFS path).

Returns:

  • (String)


4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
# File 'gems/aws-sdk-glue/lib/aws-sdk-glue/types.rb', line 4448

class DatabaseInput < Struct.new(
  :name,
  :description,
  :location_uri,
  :parameters,
  :create_table_default_permissions,
  :target_database)
  SENSITIVE = []
  include Aws::Structure
end

#nameString

The name of the database. For Hive compatibility, this is folded to lowercase when it is stored.

Returns:

  • (String)


4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
# File 'gems/aws-sdk-glue/lib/aws-sdk-glue/types.rb', line 4448

class DatabaseInput < Struct.new(
  :name,
  :description,
  :location_uri,
  :parameters,
  :create_table_default_permissions,
  :target_database)
  SENSITIVE = []
  include Aws::Structure
end

#parametersHash<String,String>

These key-value pairs define parameters and properties of the database.

These key-value pairs define parameters and properties of the database.

Returns:

  • (Hash<String,String>)


4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
# File 'gems/aws-sdk-glue/lib/aws-sdk-glue/types.rb', line 4448

class DatabaseInput < Struct.new(
  :name,
  :description,
  :location_uri,
  :parameters,
  :create_table_default_permissions,
  :target_database)
  SENSITIVE = []
  include Aws::Structure
end

#target_databaseTypes::DatabaseIdentifier

A DatabaseIdentifier structure that describes a target database for resource linking.



4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
# File 'gems/aws-sdk-glue/lib/aws-sdk-glue/types.rb', line 4448

class DatabaseInput < Struct.new(
  :name,
  :description,
  :location_uri,
  :parameters,
  :create_table_default_permissions,
  :target_database)
  SENSITIVE = []
  include Aws::Structure
end