Class: AWSCDK::DataBrew::CfnJob::ProfileConfigurationProperty

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

Overview

Configuration for profile jobs.

Configuration can be used to select columns, do evaluations, and override default parameters of evaluations. When configuration is undefined, the profile job will apply default settings to all supported columns.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(column_statistics_configurations: nil, dataset_statistics_configuration: nil, entity_detector_configuration: nil, profile_columns: nil) ⇒ ProfileConfigurationProperty

Returns a new instance of ProfileConfigurationProperty.

Parameters:



1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
# File 'data_brew/cfn_job.rb', line 1403

def initialize(column_statistics_configurations: nil, dataset_statistics_configuration: nil, entity_detector_configuration: nil, profile_columns: nil)
  @column_statistics_configurations = column_statistics_configurations
  Jsii::Type.check_type(@column_statistics_configurations, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZGF0YWJyZXcuQ2ZuSm9iLkNvbHVtblN0YXRpc3RpY3NDb25maWd1cmF0aW9uUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "columnStatisticsConfigurations") unless @column_statistics_configurations.nil?
  @dataset_statistics_configuration = dataset_statistics_configuration.is_a?(Hash) ? ::AWSCDK::DataBrew::CfnJob::StatisticsConfigurationProperty.new(**dataset_statistics_configuration.transform_keys(&:to_sym)) : dataset_statistics_configuration
  Jsii::Type.check_type(@dataset_statistics_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19kYXRhYnJldy5DZm5Kb2IuU3RhdGlzdGljc0NvbmZpZ3VyYXRpb25Qcm9wZXJ0eSJ9XX19")), "datasetStatisticsConfiguration") unless @dataset_statistics_configuration.nil?
  @entity_detector_configuration = entity_detector_configuration.is_a?(Hash) ? ::AWSCDK::DataBrew::CfnJob::EntityDetectorConfigurationProperty.new(**entity_detector_configuration.transform_keys(&:to_sym)) : entity_detector_configuration
  Jsii::Type.check_type(@entity_detector_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19kYXRhYnJldy5DZm5Kb2IuRW50aXR5RGV0ZWN0b3JDb25maWd1cmF0aW9uUHJvcGVydHkifV19fQ==")), "entityDetectorConfiguration") unless @entity_detector_configuration.nil?
  @profile_columns = profile_columns
  Jsii::Type.check_type(@profile_columns, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZGF0YWJyZXcuQ2ZuSm9iLkNvbHVtblNlbGVjdG9yUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "profileColumns") unless @profile_columns.nil?
end

Instance Attribute Details

#column_statistics_configurationsAWSCDK::IResolvable, ... (readonly)

List of configurations for column evaluations.

ColumnStatisticsConfigurations are used to select evaluations and override parameters of evaluations for particular columns. When ColumnStatisticsConfigurations is undefined, the profile job will profile all supported columns and run all supported evaluations.



1420
1421
1422
# File 'data_brew/cfn_job.rb', line 1420

def column_statistics_configurations
  @column_statistics_configurations
end

#dataset_statistics_configurationAWSCDK::IResolvable, ... (readonly)

Configuration for inter-column evaluations.

Configuration can be used to select evaluations and override parameters of evaluations. When configuration is undefined, the profile job will run all supported inter-column evaluations.



1427
1428
1429
# File 'data_brew/cfn_job.rb', line 1427

def dataset_statistics_configuration
  @dataset_statistics_configuration
end

#entity_detector_configurationAWSCDK::IResolvable, ... (readonly)

Configuration of entity detection for a profile job.

When undefined, entity detection is disabled.



1434
1435
1436
# File 'data_brew/cfn_job.rb', line 1434

def entity_detector_configuration
  @entity_detector_configuration
end

#profile_columnsAWSCDK::IResolvable, ... (readonly)

List of column selectors.

ProfileColumns can be used to select columns from the dataset. When ProfileColumns is undefined, the profile job will profile all supported columns.



1441
1442
1443
# File 'data_brew/cfn_job.rb', line 1441

def profile_columns
  @profile_columns
end

Class Method Details

.jsii_propertiesObject



1443
1444
1445
1446
1447
1448
1449
1450
# File 'data_brew/cfn_job.rb', line 1443

def self.jsii_properties
  {
    :column_statistics_configurations => "columnStatisticsConfigurations",
    :dataset_statistics_configuration => "datasetStatisticsConfiguration",
    :entity_detector_configuration => "entityDetectorConfiguration",
    :profile_columns => "profileColumns",
  }
end

Instance Method Details

#to_jsiiObject



1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
# File 'data_brew/cfn_job.rb', line 1452

def to_jsii
  result = {}
  result.merge!({
    "columnStatisticsConfigurations" => @column_statistics_configurations,
    "datasetStatisticsConfiguration" => @dataset_statistics_configuration,
    "entityDetectorConfiguration" => @entity_detector_configuration,
    "profileColumns" => @profile_columns,
  })
  result.compact
end