Class: AWSCDK::LakeFormation::CfnPermissions::ResourceProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::LakeFormation::CfnPermissions::ResourceProperty
- Defined in:
- lake_formation/cfn_permissions.rb
Overview
A structure for the resource.
Instance Attribute Summary collapse
-
#data_location_resource ⇒ AWSCDK::IResolvable, ...
readonly
A structure for a data location object where permissions are granted or revoked.
-
#database_resource ⇒ AWSCDK::IResolvable, ...
readonly
A structure for the database object.
-
#table_resource ⇒ AWSCDK::IResolvable, ...
readonly
A structure for the table object.
-
#table_with_columns_resource ⇒ AWSCDK::IResolvable, ...
readonly
A structure for a table with columns object.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(database_resource: nil, data_location_resource: nil, table_resource: nil, table_with_columns_resource: nil) ⇒ ResourceProperty
constructor
A new instance of ResourceProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(database_resource: nil, data_location_resource: nil, table_resource: nil, table_with_columns_resource: nil) ⇒ ResourceProperty
Returns a new instance of ResourceProperty.
708 709 710 711 712 713 714 715 716 717 |
# File 'lake_formation/cfn_permissions.rb', line 708 def initialize(database_resource: nil, data_location_resource: nil, table_resource: nil, table_with_columns_resource: nil) @database_resource = database_resource.is_a?(Hash) ? ::AWSCDK::LakeFormation::CfnPermissions::DatabaseResourceProperty.new(**database_resource.transform_keys(&:to_sym)) : database_resource Jsii::Type.check_type(@database_resource, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sYWtlZm9ybWF0aW9uLkNmblBlcm1pc3Npb25zLkRhdGFiYXNlUmVzb3VyY2VQcm9wZXJ0eSJ9XX19")), "databaseResource") unless @database_resource.nil? @data_location_resource = data_location_resource.is_a?(Hash) ? ::AWSCDK::LakeFormation::CfnPermissions::DataLocationResourceProperty.new(**data_location_resource.transform_keys(&:to_sym)) : data_location_resource Jsii::Type.check_type(@data_location_resource, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sYWtlZm9ybWF0aW9uLkNmblBlcm1pc3Npb25zLkRhdGFMb2NhdGlvblJlc291cmNlUHJvcGVydHkifV19fQ==")), "dataLocationResource") unless @data_location_resource.nil? @table_resource = table_resource.is_a?(Hash) ? ::AWSCDK::LakeFormation::CfnPermissions::TableResourceProperty.new(**table_resource.transform_keys(&:to_sym)) : table_resource Jsii::Type.check_type(@table_resource, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sYWtlZm9ybWF0aW9uLkNmblBlcm1pc3Npb25zLlRhYmxlUmVzb3VyY2VQcm9wZXJ0eSJ9XX19")), "tableResource") unless @table_resource.nil? @table_with_columns_resource = table_with_columns_resource.is_a?(Hash) ? ::AWSCDK::LakeFormation::CfnPermissions::TableWithColumnsResourceProperty.new(**table_with_columns_resource.transform_keys(&:to_sym)) : table_with_columns_resource Jsii::Type.check_type(@table_with_columns_resource, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sYWtlZm9ybWF0aW9uLkNmblBlcm1pc3Npb25zLlRhYmxlV2l0aENvbHVtbnNSZXNvdXJjZVByb3BlcnR5In1dfX0=")), "tableWithColumnsResource") unless @table_with_columns_resource.nil? end |
Instance Attribute Details
#data_location_resource ⇒ AWSCDK::IResolvable, ... (readonly)
A structure for a data location object where permissions are granted or revoked.
728 729 730 |
# File 'lake_formation/cfn_permissions.rb', line 728 def data_location_resource @data_location_resource end |
#database_resource ⇒ AWSCDK::IResolvable, ... (readonly)
A structure for the database object.
723 724 725 |
# File 'lake_formation/cfn_permissions.rb', line 723 def database_resource @database_resource end |
#table_resource ⇒ AWSCDK::IResolvable, ... (readonly)
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.
735 736 737 |
# File 'lake_formation/cfn_permissions.rb', line 735 def table_resource @table_resource end |
#table_with_columns_resource ⇒ AWSCDK::IResolvable, ... (readonly)
A structure for a table with columns object.
This object is only used when granting a SELECT permission.
742 743 744 |
# File 'lake_formation/cfn_permissions.rb', line 742 def table_with_columns_resource @table_with_columns_resource end |
Class Method Details
.jsii_properties ⇒ Object
744 745 746 747 748 749 750 751 |
# File 'lake_formation/cfn_permissions.rb', line 744 def self.jsii_properties { :database_resource => "databaseResource", :data_location_resource => "dataLocationResource", :table_resource => "tableResource", :table_with_columns_resource => "tableWithColumnsResource", } end |
Instance Method Details
#to_jsii ⇒ Object
753 754 755 756 757 758 759 760 761 762 |
# File 'lake_formation/cfn_permissions.rb', line 753 def to_jsii result = {} result.merge!({ "databaseResource" => @database_resource, "dataLocationResource" => @data_location_resource, "tableResource" => @table_resource, "tableWithColumnsResource" => @table_with_columns_resource, }) result.compact end |