Class: AWSCDK::LakeFormation::CfnPermissions::DataLocationResourceProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
lake_formation/cfn_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: nil, s3_resource: nil) ⇒ DataLocationResourceProperty

Returns a new instance of DataLocationResourceProperty.

Parameters:

  • catalog_id (String, nil) (defaults to: nil)

    The identifier for the Data Catalog .

  • s3_resource (String, nil) (defaults to: nil)

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



614
615
616
617
618
619
# File 'lake_formation/cfn_permissions.rb', line 614

def initialize(catalog_id: nil, s3_resource: nil)
  @catalog_id = catalog_id
  Jsii::Type.check_type(@catalog_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "catalogId") unless @catalog_id.nil?
  @s3_resource = s3_resource
  Jsii::Type.check_type(@s3_resource, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "s3Resource") unless @s3_resource.nil?
end

Instance Attribute Details

#catalog_idString? (readonly)

The identifier for the Data Catalog .

By default, it is the account ID of the caller.



627
628
629
# File 'lake_formation/cfn_permissions.rb', line 627

def catalog_id
  @catalog_id
end

#s3_resourceString? (readonly)

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



632
633
634
# File 'lake_formation/cfn_permissions.rb', line 632

def s3_resource
  @s3_resource
end

Class Method Details

.jsii_propertiesObject



634
635
636
637
638
639
# File 'lake_formation/cfn_permissions.rb', line 634

def self.jsii_properties
  {
    :catalog_id => "catalogId",
    :s3_resource => "s3Resource",
  }
end

Instance Method Details

#to_jsiiObject



641
642
643
644
645
646
647
648
# File 'lake_formation/cfn_permissions.rb', line 641

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