/* eslint-disable */ /** * This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run json-schema-to-typescript to regenerate this file. */ /** * Boolean value to disable/enable a rule */ export type Disabled = boolean; /** * Expression with rule conditions */ export type Expression = string; export type ValuesMap = SubstitutionValue[]; /** * Threshold value for a rule */ export type ThresholdValue = number; /** * Threshold type for a rule */ export type ThresholdType = "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "GREATER_THAN" | "LESS_THAN"; /** * Threshold unit for a rule */ export type ThresholdUnit = "COUNT" | "PERCENTAGE"; /** * Resource schema for AWS::DataBrew::Ruleset. */ export interface AwsDatabrewRuleset { /** * Name of the Ruleset */ Name: string; /** * Description of the Ruleset */ Description?: string; /** * Arn of the target resource (dataset) to apply the ruleset to */ TargetArn: string; /** * List of the data quality rules in the ruleset * * @minItems 1 */ Rules: [Rule, ...Rule[]]; Tags?: Tag[]; } /** * Data quality rule for a target resource (dataset) */ export interface Rule { /** * Name of the rule */ Name: string; Disabled?: Disabled; CheckExpression: Expression; SubstitutionMap?: ValuesMap; Threshold?: Threshold; /** * @minItems 1 */ ColumnSelectors?: [ColumnSelector, ...ColumnSelector[]]; } /** * A key-value pair to associate expression's substitution variable names with their values */ export interface SubstitutionValue { /** * Variable name */ ValueReference: string; /** * Value or column name */ Value: string; } export interface Threshold { Value: ThresholdValue; Type?: ThresholdType; Unit?: ThresholdUnit; } /** * Selector of a column from a dataset for profile job configuration. One selector includes either a column name or a regular expression */ export interface ColumnSelector { /** * A regular expression for selecting a column from a dataset */ Regex?: string; /** * The name of a column from a dataset */ Name?: string; } /** * A key-value pair to associate with a resource */ export interface Tag { Key: string; Value: string; }