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

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
    },
  ],
}

The structure used to create or update a database.

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:



3613
3614
3615
3616
3617
3618
3619
3620
# File 'gems/aws-sdk-glue/lib/aws-sdk-glue/types.rb', line 3613

class DatabaseInput < Struct.new(
  :name,
  :description,
  :location_uri,
  :parameters,
  :create_table_default_permissions)
  include Aws::Structure
end

#descriptionString

A description of the database.

Returns:

  • (String)


3613
3614
3615
3616
3617
3618
3619
3620
# File 'gems/aws-sdk-glue/lib/aws-sdk-glue/types.rb', line 3613

class DatabaseInput < Struct.new(
  :name,
  :description,
  :location_uri,
  :parameters,
  :create_table_default_permissions)
  include Aws::Structure
end

#location_uriString

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

Returns:

  • (String)


3613
3614
3615
3616
3617
3618
3619
3620
# File 'gems/aws-sdk-glue/lib/aws-sdk-glue/types.rb', line 3613

class DatabaseInput < Struct.new(
  :name,
  :description,
  :location_uri,
  :parameters,
  :create_table_default_permissions)
  include Aws::Structure
end

#nameString

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

Returns:

  • (String)


3613
3614
3615
3616
3617
3618
3619
3620
# File 'gems/aws-sdk-glue/lib/aws-sdk-glue/types.rb', line 3613

class DatabaseInput < Struct.new(
  :name,
  :description,
  :location_uri,
  :parameters,
  :create_table_default_permissions)
  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>)


3613
3614
3615
3616
3617
3618
3619
3620
# File 'gems/aws-sdk-glue/lib/aws-sdk-glue/types.rb', line 3613

class DatabaseInput < Struct.new(
  :name,
  :description,
  :location_uri,
  :parameters,
  :create_table_default_permissions)
  include Aws::Structure
end