Class: AWSCDK::LakeFormation::CfnPrincipalPermissions::TableResourceProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
lake_formation/cfn_principal_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:, database_name:, name: nil, table_wildcard: nil) ⇒ TableResourceProperty

Returns a new instance of TableResourceProperty.

Parameters:

  • catalog_id (String)

    The identifier for the Data Catalog.

  • database_name (String)

    The name of the database for the table.

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

    The name of the table.

  • table_wildcard (Object, nil) (defaults to: nil)

    A wildcard object representing every table under a database.



1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
# File 'lake_formation/cfn_principal_permissions.rb', line 1058

def initialize(catalog_id:, database_name:, name: nil, table_wildcard: nil)
  @catalog_id = catalog_id
  Jsii::Type.check_type(@catalog_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "catalogId")
  @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") unless @name.nil?
  @table_wildcard = table_wildcard
  Jsii::Type.check_type(@table_wildcard, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "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.



1075
1076
1077
# File 'lake_formation/cfn_principal_permissions.rb', line 1075

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.



1082
1083
1084
# File 'lake_formation/cfn_principal_permissions.rb', line 1082

def database_name
  @database_name
end

#nameString? (readonly)

The name of the table.



1087
1088
1089
# File 'lake_formation/cfn_principal_permissions.rb', line 1087

def name
  @name
end

#table_wildcardObject? (readonly)

A wildcard object representing every table under a database.

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



1094
1095
1096
# File 'lake_formation/cfn_principal_permissions.rb', line 1094

def table_wildcard
  @table_wildcard
end

Class Method Details

.jsii_propertiesObject



1096
1097
1098
1099
1100
1101
1102
1103
# File 'lake_formation/cfn_principal_permissions.rb', line 1096

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

Instance Method Details

#to_jsiiObject



1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
# File 'lake_formation/cfn_principal_permissions.rb', line 1105

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