Class: AWSCDK::LakeFormation::CfnPrincipalPermissions::DatabaseResourceProperty

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

Overview

A structure for the database object.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(catalog_id:, name:) ⇒ DatabaseResourceProperty

Returns a new instance of DatabaseResourceProperty.

Parameters:

  • catalog_id (String)

    The identifier for the Data Catalog.

  • name (String)

    The name of the database resource.



743
744
745
746
747
748
# File 'lake_formation/cfn_principal_permissions.rb', line 743

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

Instance Attribute Details

#catalog_idString (readonly)

The identifier for the Data Catalog.

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



756
757
758
# File 'lake_formation/cfn_principal_permissions.rb', line 756

def catalog_id
  @catalog_id
end

#nameString (readonly)

The name of the database resource.

Unique to the Data Catalog.



763
764
765
# File 'lake_formation/cfn_principal_permissions.rb', line 763

def name
  @name
end

Class Method Details

.jsii_propertiesObject



765
766
767
768
769
770
# File 'lake_formation/cfn_principal_permissions.rb', line 765

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

Instance Method Details

#to_jsiiObject



772
773
774
775
776
777
778
779
# File 'lake_formation/cfn_principal_permissions.rb', line 772

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