Class: AWSCDK::DataBrew::CfnJob::ValidationConfigurationProperty

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

Overview

Configuration for data quality validation.

Used to select the Rulesets and Validation Mode to be used in the profile job. When ValidationConfiguration is null, the profile job will run without data quality validation.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ruleset_arn:, validation_mode: nil) ⇒ ValidationConfigurationProperty

Returns a new instance of ValidationConfigurationProperty.

Parameters:

  • ruleset_arn (String)

    The Amazon Resource Name (ARN) for the ruleset to be validated in the profile job.

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

    Mode of data quality validation.



1693
1694
1695
1696
1697
1698
# File 'data_brew/cfn_job.rb', line 1693

def initialize(ruleset_arn:, validation_mode: nil)
  @ruleset_arn = ruleset_arn
  Jsii::Type.check_type(@ruleset_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "rulesetArn")
  @validation_mode = validation_mode
  Jsii::Type.check_type(@validation_mode, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "validationMode") unless @validation_mode.nil?
end

Instance Attribute Details

#ruleset_arnString (readonly)

The Amazon Resource Name (ARN) for the ruleset to be validated in the profile job.

The TargetArn of the selected ruleset should be the same as the Amazon Resource Name (ARN) of the dataset that is associated with the profile job.



1706
1707
1708
# File 'data_brew/cfn_job.rb', line 1706

def ruleset_arn
  @ruleset_arn
end

#validation_modeString? (readonly)

Mode of data quality validation.

Default mode is “CHECK_ALL” which verifies all rules defined in the selected ruleset.



1713
1714
1715
# File 'data_brew/cfn_job.rb', line 1713

def validation_mode
  @validation_mode
end

Class Method Details

.jsii_propertiesObject



1715
1716
1717
1718
1719
1720
# File 'data_brew/cfn_job.rb', line 1715

def self.jsii_properties
  {
    :ruleset_arn => "rulesetArn",
    :validation_mode => "validationMode",
  }
end

Instance Method Details

#to_jsiiObject



1722
1723
1724
1725
1726
1727
1728
1729
# File 'data_brew/cfn_job.rb', line 1722

def to_jsii
  result = {}
  result.merge!({
    "rulesetArn" => @ruleset_arn,
    "validationMode" => @validation_mode,
  })
  result.compact
end