Class: AWSCDK::Glue::CfnDatabase::DatabaseIdentifierProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
glue/cfn_database.rb

Overview

A structure that describes a target database for resource linking.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(catalog_id: nil, database_name: nil, region: nil) ⇒ DatabaseIdentifierProperty

Returns a new instance of DatabaseIdentifierProperty.

Parameters:

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

    The ID of the Data Catalog in which the database resides.

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

    The name of the catalog database.

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

    The Region of the database.



576
577
578
579
580
581
582
583
# File 'glue/cfn_database.rb', line 576

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

Instance Attribute Details

#catalog_idString? (readonly)

The ID of the Data Catalog in which the database resides.



589
590
591
# File 'glue/cfn_database.rb', line 589

def catalog_id
  @catalog_id
end

#database_nameString? (readonly)

The name of the catalog database.



594
595
596
# File 'glue/cfn_database.rb', line 594

def database_name
  @database_name
end

#regionString? (readonly)

The Region of the database.



599
600
601
# File 'glue/cfn_database.rb', line 599

def region
  @region
end

Class Method Details

.jsii_propertiesObject



601
602
603
604
605
606
607
# File 'glue/cfn_database.rb', line 601

def self.jsii_properties
  {
    :catalog_id => "catalogId",
    :database_name => "databaseName",
    :region => "region",
  }
end

Instance Method Details

#to_jsiiObject



609
610
611
612
613
614
615
616
617
# File 'glue/cfn_database.rb', line 609

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