Class: AWSCDK::LakeFormation::CfnPrincipalPermissions::DataLocationResourceProperty

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

Overview

A structure for a data location object where permissions are granted or revoked.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(catalog_id:, resource_arn:) ⇒ DataLocationResourceProperty

Returns a new instance of DataLocationResourceProperty.

Parameters:

  • catalog_id (String)

    The identifier for the Data Catalog where the location is registered with AWS Lake Formation .

  • resource_arn (String)

    The Amazon Resource Name (ARN) that uniquely identifies the data location resource.



700
701
702
703
704
705
# File 'lake_formation/cfn_principal_permissions.rb', line 700

def initialize(catalog_id:, resource_arn:)
  @catalog_id = catalog_id
  Jsii::Type.check_type(@catalog_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "catalogId")
  @resource_arn = resource_arn
  Jsii::Type.check_type(@resource_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "resourceArn")
end

Instance Attribute Details

#catalog_idString (readonly)

The identifier for the Data Catalog where the location is registered with AWS Lake Formation .



711
712
713
# File 'lake_formation/cfn_principal_permissions.rb', line 711

def catalog_id
  @catalog_id
end

#resource_arnString (readonly)

The Amazon Resource Name (ARN) that uniquely identifies the data location resource.



716
717
718
# File 'lake_formation/cfn_principal_permissions.rb', line 716

def resource_arn
  @resource_arn
end

Class Method Details

.jsii_propertiesObject



718
719
720
721
722
723
# File 'lake_formation/cfn_principal_permissions.rb', line 718

def self.jsii_properties
  {
    :catalog_id => "catalogId",
    :resource_arn => "resourceArn",
  }
end

Instance Method Details

#to_jsiiObject



725
726
727
728
729
730
731
732
# File 'lake_formation/cfn_principal_permissions.rb', line 725

def to_jsii
  result = {}
  result.merge!({
    "catalogId" => @catalog_id,
    "resourceArn" => @resource_arn,
  })
  result.compact
end