Class: AWSCDK::LakeFormation::CfnPermissions::TableResourceProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::LakeFormation::CfnPermissions::TableResourceProperty
- 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
-
#catalog_id ⇒ String?
readonly
The identifier for the Data Catalog .
-
#database_name ⇒ String?
readonly
The name of the database for the table.
-
#name ⇒ String?
readonly
The name of the table.
-
#table_wildcard ⇒ AWSCDK::IResolvable, ...
readonly
An empty object representing all tables under a database.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(catalog_id: nil, database_name: nil, name: nil, table_wildcard: nil) ⇒ TableResourceProperty
constructor
A new instance of TableResourceProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(catalog_id: nil, database_name: nil, name: nil, table_wildcard: nil) ⇒ TableResourceProperty
Returns a new instance of TableResourceProperty.
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_id ⇒ String? (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_name ⇒ String? (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 |
#name ⇒ String? (readonly)
The name of the table.
806 807 808 |
# File 'lake_formation/cfn_permissions.rb', line 806 def name @name end |
#table_wildcard ⇒ AWSCDK::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_properties ⇒ Object
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_jsii ⇒ Object
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 |