Class: AWSCDK::Glue::CfnDatabase::FederatedDatabaseProperty

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

Overview

A FederatedDatabase structure that references an entity outside the AWS Glue Data Catalog .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(connection_name: nil, identifier: nil) ⇒ FederatedDatabaseProperty

Returns a new instance of FederatedDatabaseProperty.

Parameters:

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

    The name of the connection to the external metastore.

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

    A unique identifier for the federated database.



725
726
727
728
729
730
# File 'glue/cfn_database.rb', line 725

def initialize(connection_name: nil, identifier: nil)
  @connection_name = connection_name
  Jsii::Type.check_type(@connection_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "connectionName") unless @connection_name.nil?
  @identifier = identifier
  Jsii::Type.check_type(@identifier, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "identifier") unless @identifier.nil?
end

Instance Attribute Details

#connection_nameString? (readonly)

The name of the connection to the external metastore.



736
737
738
# File 'glue/cfn_database.rb', line 736

def connection_name
  @connection_name
end

#identifierString? (readonly)

A unique identifier for the federated database.



741
742
743
# File 'glue/cfn_database.rb', line 741

def identifier
  @identifier
end

Class Method Details

.jsii_propertiesObject



743
744
745
746
747
748
# File 'glue/cfn_database.rb', line 743

def self.jsii_properties
  {
    :connection_name => "connectionName",
    :identifier => "identifier",
  }
end

Instance Method Details

#to_jsiiObject



750
751
752
753
754
755
756
757
# File 'glue/cfn_database.rb', line 750

def to_jsii
  result = {}
  result.merge!({
    "connectionName" => @connection_name,
    "identifier" => @identifier,
  })
  result.compact
end