Class: AWSCDK::CleanRoomsML::CfnTrainingDataset::GlueDataSourceProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
clean_rooms_ml/cfn_training_dataset.rb

Overview

Defines the Glue data source that contains the training data.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(database_name:, table_name:, catalog_id: nil) ⇒ GlueDataSourceProperty

Returns a new instance of GlueDataSourceProperty.

Parameters:

  • database_name (String)

    The Glue database that contains the training data.

  • table_name (String)

    The Glue table that contains the training data.

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

    The Glue catalog that contains the training data.



743
744
745
746
747
748
749
750
# File 'clean_rooms_ml/cfn_training_dataset.rb', line 743

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

Instance Attribute Details

#catalog_idString? (readonly)

The Glue catalog that contains the training data.



766
767
768
# File 'clean_rooms_ml/cfn_training_dataset.rb', line 766

def catalog_id
  @catalog_id
end

#database_nameString (readonly)

The Glue database that contains the training data.



756
757
758
# File 'clean_rooms_ml/cfn_training_dataset.rb', line 756

def database_name
  @database_name
end

#table_nameString (readonly)

The Glue table that contains the training data.



761
762
763
# File 'clean_rooms_ml/cfn_training_dataset.rb', line 761

def table_name
  @table_name
end

Class Method Details

.jsii_propertiesObject



768
769
770
771
772
773
774
# File 'clean_rooms_ml/cfn_training_dataset.rb', line 768

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

Instance Method Details

#to_jsiiObject



776
777
778
779
780
781
782
783
784
# File 'clean_rooms_ml/cfn_training_dataset.rb', line 776

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