libZSservicesZSamazonka-databrewZSamazonka-databrew
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.DataBrew.Types.ConditionExpression

Description

 
Synopsis

Documentation

data ConditionExpression Source #

Represents an individual condition that evaluates to true or false.

Conditions are used with recipe actions. The action is only performed for column values where the condition evaluates to true.

If a recipe requires more than one condition, then the recipe must specify multiple ConditionExpression elements. Each condition is applied to the rows in a dataset first, before the recipe action is performed.

See: newConditionExpression smart constructor.

Constructors

ConditionExpression' 

Fields

  • value :: Maybe Text

    A value that the condition must evaluate to for the condition to succeed.

  • condition :: Text

    A specific condition to apply to a recipe action. For more information, see Recipe structure in the Glue DataBrew Developer Guide.

  • targetColumn :: Text

    A column to apply this condition to.

Instances

Instances details
Eq ConditionExpression Source # 
Instance details

Defined in Amazonka.DataBrew.Types.ConditionExpression

Read ConditionExpression Source # 
Instance details

Defined in Amazonka.DataBrew.Types.ConditionExpression

Show ConditionExpression Source # 
Instance details

Defined in Amazonka.DataBrew.Types.ConditionExpression

Generic ConditionExpression Source # 
Instance details

Defined in Amazonka.DataBrew.Types.ConditionExpression

Associated Types

type Rep ConditionExpression :: Type -> Type #

NFData ConditionExpression Source # 
Instance details

Defined in Amazonka.DataBrew.Types.ConditionExpression

Methods

rnf :: ConditionExpression -> () #

Hashable ConditionExpression Source # 
Instance details

Defined in Amazonka.DataBrew.Types.ConditionExpression

ToJSON ConditionExpression Source # 
Instance details

Defined in Amazonka.DataBrew.Types.ConditionExpression

FromJSON ConditionExpression Source # 
Instance details

Defined in Amazonka.DataBrew.Types.ConditionExpression

type Rep ConditionExpression Source # 
Instance details

Defined in Amazonka.DataBrew.Types.ConditionExpression

type Rep ConditionExpression = D1 ('MetaData "ConditionExpression" "Amazonka.DataBrew.Types.ConditionExpression" "libZSservicesZSamazonka-databrewZSamazonka-databrew" 'False) (C1 ('MetaCons "ConditionExpression'" 'PrefixI 'True) (S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "condition") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "targetColumn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newConditionExpression Source #

Create a value of ConditionExpression with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:value:ConditionExpression', conditionExpression_value - A value that the condition must evaluate to for the condition to succeed.

$sel:condition:ConditionExpression', conditionExpression_condition - A specific condition to apply to a recipe action. For more information, see Recipe structure in the Glue DataBrew Developer Guide.

$sel:targetColumn:ConditionExpression', conditionExpression_targetColumn - A column to apply this condition to.

conditionExpression_value :: Lens' ConditionExpression (Maybe Text) Source #

A value that the condition must evaluate to for the condition to succeed.

conditionExpression_condition :: Lens' ConditionExpression Text Source #

A specific condition to apply to a recipe action. For more information, see Recipe structure in the Glue DataBrew Developer Guide.