Class: AWSCDK::LakeFormation::CfnPermissions::DatabaseResourceProperty

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

Returns a new instance of DatabaseResourceProperty.

Parameters:

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

    The identifier for the Data Catalog .

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

    The name of the database resource.



659
660
661
662
663
664
# File 'lake_formation/cfn_permissions.rb', line 659

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

Instance Attribute Details

#catalog_idString? (readonly)

The identifier for the Data Catalog .

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



672
673
674
# File 'lake_formation/cfn_permissions.rb', line 672

def catalog_id
  @catalog_id
end

#nameString? (readonly)

The name of the database resource.

Unique to the Data Catalog.



679
680
681
# File 'lake_formation/cfn_permissions.rb', line 679

def name
  @name
end

Class Method Details

.jsii_propertiesObject



681
682
683
684
685
686
# File 'lake_formation/cfn_permissions.rb', line 681

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

Instance Method Details

#to_jsiiObject



688
689
690
691
692
693
694
695
# File 'lake_formation/cfn_permissions.rb', line 688

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