Class: AWSCDK::Interfaces::AWSLakeformation::PrincipalPermissionsReference
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Interfaces::AWSLakeformation::PrincipalPermissionsReference
- Defined in:
- interfaces/aws_lakeformation/principal_permissions_reference.rb
Overview
A reference to a PrincipalPermissions resource.
Instance Attribute Summary collapse
-
#principal_identifier ⇒ String
readonly
The PrincipalIdentifier of the PrincipalPermissions resource.
-
#resource_identifier ⇒ String
readonly
The ResourceIdentifier of the PrincipalPermissions resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(principal_identifier:, resource_identifier:) ⇒ PrincipalPermissionsReference
constructor
A new instance of PrincipalPermissionsReference.
- #to_jsii ⇒ Object
Constructor Details
#initialize(principal_identifier:, resource_identifier:) ⇒ PrincipalPermissionsReference
Returns a new instance of PrincipalPermissionsReference.
9 10 11 12 13 14 |
# File 'interfaces/aws_lakeformation/principal_permissions_reference.rb', line 9 def initialize(principal_identifier:, resource_identifier:) @principal_identifier = principal_identifier Jsii::Type.check_type(@principal_identifier, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "principalIdentifier") @resource_identifier = resource_identifier Jsii::Type.check_type(@resource_identifier, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "resourceIdentifier") end |
Instance Attribute Details
#principal_identifier ⇒ String (readonly)
The PrincipalIdentifier of the PrincipalPermissions resource.
19 20 21 |
# File 'interfaces/aws_lakeformation/principal_permissions_reference.rb', line 19 def principal_identifier @principal_identifier end |
#resource_identifier ⇒ String (readonly)
The ResourceIdentifier of the PrincipalPermissions resource.
23 24 25 |
# File 'interfaces/aws_lakeformation/principal_permissions_reference.rb', line 23 def resource_identifier @resource_identifier end |
Class Method Details
.jsii_properties ⇒ Object
25 26 27 28 29 30 |
# File 'interfaces/aws_lakeformation/principal_permissions_reference.rb', line 25 def self.jsii_properties { :principal_identifier => "principalIdentifier", :resource_identifier => "resourceIdentifier", } end |
Instance Method Details
#to_jsii ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'interfaces/aws_lakeformation/principal_permissions_reference.rb', line 32 def to_jsii result = {} result.merge!({ "principalIdentifier" => @principal_identifier, "resourceIdentifier" => @resource_identifier, }) result.compact end |