Class: AWSCDK::LakeFormation::CfnTagAssociation::TableWithColumnsResourceProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
lake_formation/cfn_tag_association.rb

Overview

A structure for a table with columns object. This object is only used when granting a SELECT permission.

This object must take a value for at least one of ColumnsNames , ColumnsIndexes , or ColumnsWildcard .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(catalog_id:, column_names:, database_name:, name:) ⇒ TableWithColumnsResourceProperty

Returns a new instance of TableWithColumnsResourceProperty.

Parameters:

  • catalog_id (String)

    A wildcard object representing every table under a database.

  • column_names (Array<String>)

    The list of column names for the table.

  • database_name (String)

    The name of the database for the table with columns resource.

  • name (String)

    The name of the table resource.



780
781
782
783
784
785
786
787
788
789
# File 'lake_formation/cfn_tag_association.rb', line 780

def initialize(catalog_id:, column_names:, database_name:, name:)
  @catalog_id = catalog_id
  Jsii::Type.check_type(@catalog_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "catalogId")
  @column_names = column_names
  Jsii::Type.check_type(@column_names, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "columnNames")
  @database_name = database_name
  Jsii::Type.check_type(@database_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "databaseName")
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
end

Instance Attribute Details

#catalog_idString (readonly)

A wildcard object representing every table under a database.

At least one of TableResource$Name or TableResource$TableWildcard is required.



797
798
799
# File 'lake_formation/cfn_tag_association.rb', line 797

def catalog_id
  @catalog_id
end

#column_namesArray<String> (readonly)

The list of column names for the table.

At least one of ColumnNames or ColumnWildcard is required.



804
805
806
# File 'lake_formation/cfn_tag_association.rb', line 804

def column_names
  @column_names
end

#database_nameString (readonly)

The name of the database for the table with columns resource.

Unique to the Data Catalog. A database is a set of associated table definitions organized into a logical group. You can Grant and Revoke database privileges to a principal.



811
812
813
# File 'lake_formation/cfn_tag_association.rb', line 811

def database_name
  @database_name
end

#nameString (readonly)

The name of the table resource.

A table is a metadata definition that represents your data. You can Grant and Revoke table privileges to a principal.



818
819
820
# File 'lake_formation/cfn_tag_association.rb', line 818

def name
  @name
end

Class Method Details

.jsii_propertiesObject



820
821
822
823
824
825
826
827
# File 'lake_formation/cfn_tag_association.rb', line 820

def self.jsii_properties
  {
    :catalog_id => "catalogId",
    :column_names => "columnNames",
    :database_name => "databaseName",
    :name => "name",
  }
end

Instance Method Details

#to_jsiiObject



829
830
831
832
833
834
835
836
837
838
# File 'lake_formation/cfn_tag_association.rb', line 829

def to_jsii
  result = {}
  result.merge!({
    "catalogId" => @catalog_id,
    "columnNames" => @column_names,
    "databaseName" => @database_name,
    "name" => @name,
  })
  result.compact
end