CfnRecipeProps Struct
Properties for defining a CfnRecipe.
| Source |
|---|
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 cfnRecipeProps: databrew.CfnRecipeProps = {
name: 'name',
steps: [{
action: {
operation: 'operation',
// the properties below are optional
parameters: {
parametersKey: 'parameters',
},
},
// the properties below are optional
conditionExpressions: [{
condition: 'condition',
targetColumn: 'targetColumn',
// the properties below are optional
value: 'value',
}],
}],
// the properties below are optional
description: 'description',
tags: [{
key: 'key',
value: 'value',
}],
};
python
from aws_cdk import CfnTag
# 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
cfn_recipe_props = databrew.CfnRecipeProps(
name="name",
steps=[databrew.CfnRecipe.RecipeStepProperty(
action=databrew.CfnRecipe.ActionProperty(
operation="operation",
# the properties below are optional
parameters={
"parameters_key": "parameters"
}
),
# the properties below are optional
condition_expressions=[databrew.CfnRecipe.ConditionExpressionProperty(
condition="condition",
target_column="targetColumn",
# the properties below are optional
value="value"
)]
)],
# the properties below are optional
description="description",
tags=[CfnTag(
key="key",
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.*;
CfnRecipeProps cfnRecipeProps = CfnRecipeProps.builder()
.name("name")
.steps(List.of(RecipeStepProperty.builder()
.action(ActionProperty.builder()
.operation("operation")
// the properties below are optional
.parameters(Map.of(
"parametersKey", "parameters"))
.build())
// the properties below are optional
.conditionExpressions(List.of(ConditionExpressionProperty.builder()
.condition("condition")
.targetColumn("targetColumn")
// the properties below are optional
.value("value")
.build()))
.build()))
// the properties below are optional
.description("description")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.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 cfnRecipeProps = new CfnRecipeProps {
Name = "name",
Steps = new [] { new RecipeStepProperty {
Action = new ActionProperty {
Operation = "operation",
// the properties below are optional
Parameters = new Dictionary<string, string> {
{ "parametersKey", "parameters" }
}
},
// the properties below are optional
ConditionExpressions = new [] { new ConditionExpressionProperty {
Condition = "condition",
TargetColumn = "targetColumn",
// the properties below are optional
Value = "value"
} }
} },
// the properties below are optional
Description = "description",
Tags = new [] { new CfnTag {
Key = "key",
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"
cfnRecipeProps := &CfnRecipeProps{
Name: jsii.String("name"),
Steps: []interface{}{
&RecipeStepProperty{
Action: &ActionProperty{
Operation: jsii.String("operation"),
// the properties below are optional
Parameters: map[string]*string{
"parametersKey": jsii.String("parameters"),
},
},
// the properties below are optional
ConditionExpressions: []interface{}{
&ConditionExpressionProperty{
Condition: jsii.String("condition"),
TargetColumn: jsii.String("targetColumn"),
// the properties below are optional
Value: jsii.String("value"),
},
},
},
},
// the properties below are optional
Description: jsii.String("description"),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #The description of the recipe.
The unique name for the recipe.
stepsIResolvable | IResolvable | CfnRecipe.RecipeStepProperty[]stepstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, RecipeStepProperty]]]stepsIResolvableStepsIResolvableStepsinterface{} required #A list of steps that are defined by the recipe.