Class: AWSCDK::LakeFormation::CfnTagAssociation::ResourceProperty

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

Overview

A structure for the resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(catalog: nil, database: nil, table: nil, table_with_columns: nil) ⇒ ResourceProperty

Returns a new instance of ResourceProperty.

Parameters:



636
637
638
639
640
641
642
643
644
645
# File 'lake_formation/cfn_tag_association.rb', line 636

def initialize(catalog: nil, database: nil, table: nil, table_with_columns: nil)
  @catalog = catalog
  Jsii::Type.check_type(@catalog, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "catalog") unless @catalog.nil?
  @database = database.is_a?(Hash) ? ::AWSCDK::LakeFormation::CfnTagAssociation::DatabaseResourceProperty.new(**database.transform_keys(&:to_sym)) : database
  Jsii::Type.check_type(@database, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sYWtlZm9ybWF0aW9uLkNmblRhZ0Fzc29jaWF0aW9uLkRhdGFiYXNlUmVzb3VyY2VQcm9wZXJ0eSJ9XX19")), "database") unless @database.nil?
  @table = table.is_a?(Hash) ? ::AWSCDK::LakeFormation::CfnTagAssociation::TableResourceProperty.new(**table.transform_keys(&:to_sym)) : table
  Jsii::Type.check_type(@table, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sYWtlZm9ybWF0aW9uLkNmblRhZ0Fzc29jaWF0aW9uLlRhYmxlUmVzb3VyY2VQcm9wZXJ0eSJ9XX19")), "table") unless @table.nil?
  @table_with_columns = table_with_columns.is_a?(Hash) ? ::AWSCDK::LakeFormation::CfnTagAssociation::TableWithColumnsResourceProperty.new(**table_with_columns.transform_keys(&:to_sym)) : table_with_columns
  Jsii::Type.check_type(@table_with_columns, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sYWtlZm9ybWF0aW9uLkNmblRhZ0Fzc29jaWF0aW9uLlRhYmxlV2l0aENvbHVtbnNSZXNvdXJjZVByb3BlcnR5In1dfX0=")), "tableWithColumns") unless @table_with_columns.nil?
end

Instance Attribute Details

#catalogObject? (readonly)

The identifier for the Data Catalog.

By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your AWS Lake Formation environment.



653
654
655
# File 'lake_formation/cfn_tag_association.rb', line 653

def catalog
  @catalog
end

#databaseAWSCDK::IResolvable, ... (readonly)

The database for the 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 permissions to a principal.



660
661
662
# File 'lake_formation/cfn_tag_association.rb', line 660

def database
  @database
end

#tableAWSCDK::IResolvable, ... (readonly)

The table for the resource.

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



667
668
669
# File 'lake_formation/cfn_tag_association.rb', line 667

def table
  @table
end

#table_with_columnsAWSCDK::IResolvable, ... (readonly)

The table with columns for the resource.

A principal with permissions to this resource can select metadata from the columns of a table in the Data Catalog and the underlying data in Amazon S3.



674
675
676
# File 'lake_formation/cfn_tag_association.rb', line 674

def table_with_columns
  @table_with_columns
end

Class Method Details

.jsii_propertiesObject



676
677
678
679
680
681
682
683
# File 'lake_formation/cfn_tag_association.rb', line 676

def self.jsii_properties
  {
    :catalog => "catalog",
    :database => "database",
    :table => "table",
    :table_with_columns => "tableWithColumns",
  }
end

Instance Method Details

#to_jsiiObject



685
686
687
688
689
690
691
692
693
694
# File 'lake_formation/cfn_tag_association.rb', line 685

def to_jsii
  result = {}
  result.merge!({
    "catalog" => @catalog,
    "database" => @database,
    "table" => @table,
    "tableWithColumns" => @table_with_columns,
  })
  result.compact
end