Class: AWSCDK::LakeFormation::CfnPrincipalPermissions::TableResourceProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::LakeFormation::CfnPrincipalPermissions::TableResourceProperty
- 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
-
#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 ⇒ Object?
readonly
A wildcard object representing every table under a database.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(catalog_id:, database_name:, name: nil, table_wildcard: nil) ⇒ TableResourceProperty
constructor
A new instance of TableResourceProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(catalog_id:, database_name:, name: nil, table_wildcard: nil) ⇒ TableResourceProperty
Returns a new instance of TableResourceProperty.
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_id ⇒ String (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_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.
1082 1083 1084 |
# File 'lake_formation/cfn_principal_permissions.rb', line 1082 def database_name @database_name end |
#name ⇒ String? (readonly)
The name of the table.
1087 1088 1089 |
# File 'lake_formation/cfn_principal_permissions.rb', line 1087 def name @name end |
#table_wildcard ⇒ Object? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |