# ConditionExpressionProperty

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.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_databrew as databrew } from 'aws-cdk-lib';
const conditionExpressionProperty: databrew.CfnRecipe.ConditionExpressionProperty = {
  condition: 'condition',
  targetColumn: 'targetColumn',

  // the properties below are optional
  value: 'value',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_databrew as databrew

condition_expression_property = databrew.CfnRecipe.ConditionExpressionProperty(
    condition="condition",
    target_column="targetColumn",

    # the properties below are optional
    value="value"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.databrew.*;

ConditionExpressionProperty conditionExpressionProperty = ConditionExpressionProperty.builder()
        .condition("condition")
        .targetColumn("targetColumn")

        // the properties below are optional
        .value("value")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.DataBrew;

var conditionExpressionProperty = new ConditionExpressionProperty {
    Condition = "condition",
    TargetColumn = "targetColumn",

    // the properties below are optional
    Value = "value"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

conditionExpressionProperty := &ConditionExpressionProperty{
	Condition: jsii.String("condition"),
	TargetColumn: jsii.String("targetColumn"),

	// the properties below are optional
	Value: jsii.String("value"),
}
```

## Properties

- `condition`: string (required) — A specific condition to apply to a recipe action.

  For more information, see [Recipe structure](https://docs.aws.amazon.com/databrew/latest/dg/recipe-structure.html) in the *AWS Glue DataBrew Developer Guide* .

- `targetColumn`: string (required) — A column to apply this condition to.

- `value`: string — A value that the condition must evaluate to for the condition to succeed.
