Class: AWSCDK::Interfaces::AWSLakeformation::PrincipalPermissionsReference

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
interfaces/aws_lakeformation/principal_permissions_reference.rb

Overview

A reference to a PrincipalPermissions resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(principal_identifier:, resource_identifier:) ⇒ PrincipalPermissionsReference

Returns a new instance of PrincipalPermissionsReference.

Parameters:

  • principal_identifier (String)

    The PrincipalIdentifier of the PrincipalPermissions resource.

  • resource_identifier (String)

    The ResourceIdentifier of the PrincipalPermissions resource.



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_identifierString (readonly)

The PrincipalIdentifier of the PrincipalPermissions resource.

Returns:

  • (String)


19
20
21
# File 'interfaces/aws_lakeformation/principal_permissions_reference.rb', line 19

def principal_identifier
  @principal_identifier
end

#resource_identifierString (readonly)

The ResourceIdentifier of the PrincipalPermissions resource.

Returns:

  • (String)


23
24
25
# File 'interfaces/aws_lakeformation/principal_permissions_reference.rb', line 23

def resource_identifier
  @resource_identifier
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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