Class: AWSCDK::LakeFormation::CfnPermissions::DatabaseResourceProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::LakeFormation::CfnPermissions::DatabaseResourceProperty
- Defined in:
- lake_formation/cfn_permissions.rb
Overview
A structure for the database object.
Instance Attribute Summary collapse
-
#catalog_id ⇒ String?
readonly
The identifier for the Data Catalog .
-
#name ⇒ String?
readonly
The name of the database resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(catalog_id: nil, name: nil) ⇒ DatabaseResourceProperty
constructor
A new instance of DatabaseResourceProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(catalog_id: nil, name: nil) ⇒ DatabaseResourceProperty
Returns a new instance of DatabaseResourceProperty.
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_id ⇒ String? (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 |
#name ⇒ String? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |