Class: AWSCDK::LakeFormation::CfnPermissions::TableResourceProperty

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

Overview

A structure for the table object.

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(catalog_id: nil, database_name: nil, name: nil, table_wildcard: nil) ⇒ TableResourceProperty

Returns a new instance of TableResourceProperty.

Parameters:

  • catalog_id (String, nil) (defaults to: nil)

    The identifier for the Data Catalog .

  • database_name (String, nil) (defaults to: nil)

    The name of the database for the table.

  • name (String, nil) (defaults to: nil)

    The name of the table.

  • table_wildcard (AWSCDK::IResolvable, AWSCDK::LakeFormation::CfnPermissions::TableWildcardProperty, nil) (defaults to: nil)

    An empty object representing all tables under a database.



777
778
779
780
781
782
783
784
785
786
# File 'lake_formation/cfn_permissions.rb', line 777

def initialize(catalog_id: nil, database_name: nil, name: nil, table_wildcard: nil)
  @catalog_id = catalog_id
  Jsii::Type.check_type(@catalog_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "catalogId") unless @catalog_id.nil?
  @database_name = database_name
  Jsii::Type.check_type(@database_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "databaseName") unless @database_name.nil?
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil?
  @table_wildcard = table_wildcard.is_a?(Hash) ? ::AWSCDK::LakeFormation::CfnPermissions::TableWildcardProperty.new(**table_wildcard.transform_keys(&:to_sym)) : table_wildcard
  Jsii::Type.check_type(@table_wildcard, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sYWtlZm9ybWF0aW9uLkNmblBlcm1pc3Npb25zLlRhYmxlV2lsZGNhcmRQcm9wZXJ0eSJ9XX19")), "tableWildcard") unless @table_wildcard.nil?
end

Instance Attribute Details

#catalog_idString? (readonly)

The identifier for the Data Catalog .

By default, it is the account ID of the caller.



794
795
796
# File 'lake_formation/cfn_permissions.rb', line 794

def catalog_id
  @catalog_id
end

#database_nameString? (readonly)

The name of the database for the table.

Unique to a 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.



801
802
803
# File 'lake_formation/cfn_permissions.rb', line 801

def database_name
  @database_name
end

#nameString? (readonly)

The name of the table.



806
807
808
# File 'lake_formation/cfn_permissions.rb', line 806

def name
  @name
end

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

An empty object representing all tables under a database.

If this field is specified instead of the Name field, all tables under DatabaseName will have permission changes applied.



813
814
815
# File 'lake_formation/cfn_permissions.rb', line 813

def table_wildcard
  @table_wildcard
end

Class Method Details

.jsii_propertiesObject



815
816
817
818
819
820
821
822
# File 'lake_formation/cfn_permissions.rb', line 815

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

Instance Method Details

#to_jsiiObject



824
825
826
827
828
829
830
831
832
833
# File 'lake_formation/cfn_permissions.rb', line 824

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