Class: AWSCDK::DataBrew::CfnJob::DatabaseOutputProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
data_brew/cfn_job.rb

Overview

Represents a JDBC database output object which defines the output destination for a DataBrew recipe job to write into.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(database_options:, glue_connection_name:, database_output_mode: nil) ⇒ DatabaseOutputProperty

Returns a new instance of DatabaseOutputProperty.

Parameters:

  • database_options (AWSCDK::IResolvable, AWSCDK::DataBrew::CfnJob::DatabaseTableOutputOptionsProperty)

    Represents options that specify how and where DataBrew writes the database output generated by recipe jobs.

  • glue_connection_name (String)

    The AWS Glue connection that stores the connection information for the target database.

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

    The output mode to write into the database.



1002
1003
1004
1005
1006
1007
1008
1009
# File 'data_brew/cfn_job.rb', line 1002

def initialize(database_options:, glue_connection_name:, database_output_mode: nil)
  @database_options = database_options.is_a?(Hash) ? ::AWSCDK::DataBrew::CfnJob::DatabaseTableOutputOptionsProperty.new(**database_options.transform_keys(&:to_sym)) : database_options
  Jsii::Type.check_type(@database_options, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19kYXRhYnJldy5DZm5Kb2IuRGF0YWJhc2VUYWJsZU91dHB1dE9wdGlvbnNQcm9wZXJ0eSJ9XX19")), "databaseOptions")
  @glue_connection_name = glue_connection_name
  Jsii::Type.check_type(@glue_connection_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "glueConnectionName")
  @database_output_mode = database_output_mode
  Jsii::Type.check_type(@database_output_mode, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "databaseOutputMode") unless @database_output_mode.nil?
end

Instance Attribute Details

#database_optionsAWSCDK::IResolvable, AWSCDK::DataBrew::CfnJob::DatabaseTableOutputOptionsProperty (readonly)

Represents options that specify how and where DataBrew writes the database output generated by recipe jobs.



1015
1016
1017
# File 'data_brew/cfn_job.rb', line 1015

def database_options
  @database_options
end

#database_output_modeString? (readonly)

The output mode to write into the database.

Currently supported option: NEW_TABLE.



1027
1028
1029
# File 'data_brew/cfn_job.rb', line 1027

def database_output_mode
  @database_output_mode
end

#glue_connection_nameString (readonly)

The AWS Glue connection that stores the connection information for the target database.



1020
1021
1022
# File 'data_brew/cfn_job.rb', line 1020

def glue_connection_name
  @glue_connection_name
end

Class Method Details

.jsii_propertiesObject



1029
1030
1031
1032
1033
1034
1035
# File 'data_brew/cfn_job.rb', line 1029

def self.jsii_properties
  {
    :database_options => "databaseOptions",
    :glue_connection_name => "glueConnectionName",
    :database_output_mode => "databaseOutputMode",
  }
end

Instance Method Details

#to_jsiiObject



1037
1038
1039
1040
1041
1042
1043
1044
1045
# File 'data_brew/cfn_job.rb', line 1037

def to_jsii
  result = {}
  result.merge!({
    "databaseOptions" => @database_options,
    "glueConnectionName" => @glue_connection_name,
    "databaseOutputMode" => @database_output_mode,
  })
  result.compact
end