Class: AWSCDK::LakeFormation::CfnPrincipalPermissions::LFTagPolicyResourceProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
lake_formation/cfn_principal_permissions.rb

Overview

A list of LF-tag conditions that define a resource's LF-tag policy.

A structure that allows an admin to grant user permissions on certain conditions. For example, granting a role access to all columns that do not have the LF-tag 'PII' in tables that have the LF-tag 'Prod'.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(catalog_id:, expression:, resource_type:) ⇒ LFTagPolicyResourceProperty

Returns a new instance of LFTagPolicyResourceProperty.

Parameters:



846
847
848
849
850
851
852
853
# File 'lake_formation/cfn_principal_permissions.rb', line 846

def initialize(catalog_id:, expression:, resource_type:)
  @catalog_id = catalog_id
  Jsii::Type.check_type(@catalog_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "catalogId")
  @expression = expression
  Jsii::Type.check_type(@expression, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbGFrZWZvcm1hdGlvbi5DZm5QcmluY2lwYWxQZXJtaXNzaW9ucy5MRlRhZ1Byb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "expression")
  @resource_type = resource_type
  Jsii::Type.check_type(@resource_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "resourceType")
end

Instance Attribute Details

#catalog_idString (readonly)

The identifier for the Data Catalog .

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.



861
862
863
# File 'lake_formation/cfn_principal_permissions.rb', line 861

def catalog_id
  @catalog_id
end

#resource_typeString (readonly)

The resource type for which the LF-tag policy applies.



871
872
873
# File 'lake_formation/cfn_principal_permissions.rb', line 871

def resource_type
  @resource_type
end

Class Method Details

.jsii_propertiesObject



873
874
875
876
877
878
879
# File 'lake_formation/cfn_principal_permissions.rb', line 873

def self.jsii_properties
  {
    :catalog_id => "catalogId",
    :expression => "expression",
    :resource_type => "resourceType",
  }
end

Instance Method Details

#to_jsiiObject



881
882
883
884
885
886
887
888
889
# File 'lake_formation/cfn_principal_permissions.rb', line 881

def to_jsii
  result = {}
  result.merge!({
    "catalogId" => @catalog_id,
    "expression" => @expression,
    "resourceType" => @resource_type,
  })
  result.compact
end