Class: AWSCDK::LakeFormation::CfnTagAssociation::ResourceProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::LakeFormation::CfnTagAssociation::ResourceProperty
- Defined in:
- lake_formation/cfn_tag_association.rb
Overview
A structure for the resource.
Instance Attribute Summary collapse
-
#catalog ⇒ Object?
readonly
The identifier for the Data Catalog.
-
#database ⇒ AWSCDK::IResolvable, ...
readonly
The database for the resource.
-
#table ⇒ AWSCDK::IResolvable, ...
readonly
The table for the resource.
-
#table_with_columns ⇒ AWSCDK::IResolvable, ...
readonly
The table with columns for the resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(catalog: nil, database: nil, table: nil, table_with_columns: nil) ⇒ ResourceProperty
constructor
A new instance of ResourceProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(catalog: nil, database: nil, table: nil, table_with_columns: nil) ⇒ ResourceProperty
Returns a new instance of ResourceProperty.
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
#catalog ⇒ Object? (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 |
#database ⇒ AWSCDK::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 |
#table ⇒ AWSCDK::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_columns ⇒ AWSCDK::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_properties ⇒ Object
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_jsii ⇒ Object
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 |