ConditionExpressionProperty Struct
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 | |
|---|---|
| Type last changed |
Example
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
# 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
// 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();
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"
};
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
A specific condition to apply to a recipe action.
For more information, see Recipe structure in the AWS Glue DataBrew Developer Guide .
targetColumnstringtarget_columnstrtargetColumnStringTargetColumnstringTargetColumn*string required #A column to apply this condition to.
A value that the condition must evaluate to for the condition to succeed.