CfnRulesetProps Struct
Properties for defining a CfnRuleset.
| 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 cfnRulesetProps: databrew.CfnRulesetProps = {
name: 'name',
rules: [{
checkExpression: 'checkExpression',
name: 'name',
// the properties below are optional
columnSelectors: [{
name: 'name',
regex: 'regex',
}],
disabled: false,
substitutionMap: [{
value: 'value',
valueReference: 'valueReference',
}],
threshold: {
value: 123,
// the properties below are optional
type: 'type',
unit: 'unit',
},
}],
targetArn: 'targetArn',
// 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_ruleset_props = databrew.CfnRulesetProps(
name="name",
rules=[databrew.CfnRuleset.RuleProperty(
check_expression="checkExpression",
name="name",
# the properties below are optional
column_selectors=[databrew.CfnRuleset.ColumnSelectorProperty(
name="name",
regex="regex"
)],
disabled=False,
substitution_map=[databrew.CfnRuleset.SubstitutionValueProperty(
value="value",
value_reference="valueReference"
)],
threshold=databrew.CfnRuleset.ThresholdProperty(
value=123,
# the properties below are optional
type="type",
unit="unit"
)
)],
target_arn="targetArn",
# 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.*;
CfnRulesetProps cfnRulesetProps = CfnRulesetProps.builder()
.name("name")
.rules(List.of(RuleProperty.builder()
.checkExpression("checkExpression")
.name("name")
// the properties below are optional
.columnSelectors(List.of(ColumnSelectorProperty.builder()
.name("name")
.regex("regex")
.build()))
.disabled(false)
.substitutionMap(List.of(SubstitutionValueProperty.builder()
.value("value")
.valueReference("valueReference")
.build()))
.threshold(ThresholdProperty.builder()
.value(123)
// the properties below are optional
.type("type")
.unit("unit")
.build())
.build()))
.targetArn("targetArn")
// 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 cfnRulesetProps = new CfnRulesetProps {
Name = "name",
Rules = new [] { new RuleProperty {
CheckExpression = "checkExpression",
Name = "name",
// the properties below are optional
ColumnSelectors = new [] { new ColumnSelectorProperty {
Name = "name",
Regex = "regex"
} },
Disabled = false,
SubstitutionMap = new [] { new SubstitutionValueProperty {
Value = "value",
ValueReference = "valueReference"
} },
Threshold = new ThresholdProperty {
Value = 123,
// the properties below are optional
Type = "type",
Unit = "unit"
}
} },
TargetArn = "targetArn",
// 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"
cfnRulesetProps := &CfnRulesetProps{
Name: jsii.String("name"),
Rules: []interface{}{
&RuleProperty{
CheckExpression: jsii.String("checkExpression"),
Name: jsii.String("name"),
// the properties below are optional
ColumnSelectors: []interface{}{
&ColumnSelectorProperty{
Name: jsii.String("name"),
Regex: jsii.String("regex"),
},
},
Disabled: jsii.Boolean(false),
SubstitutionMap: []interface{}{
&SubstitutionValueProperty{
Value: jsii.String("value"),
ValueReference: jsii.String("valueReference"),
},
},
Threshold: &ThresholdProperty{
Value: jsii.Number(123),
// the properties below are optional
Type: jsii.String("type"),
Unit: jsii.String("unit"),
},
},
},
TargetArn: jsii.String("targetArn"),
// 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 ruleset.
The name of the ruleset.
rulesIResolvable | IResolvable | CfnRuleset.RuleProperty[]rulestyping.Union[IResolvable, typing.List[typing.Union[IResolvable, RuleProperty]]]rulesIResolvableRulesIResolvableRulesinterface{} required #Contains metadata about the ruleset.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #An array of key-value pairs to apply to this resource.
For more information, see Tag .
The Amazon Resource Name (ARN) of a resource (dataset) that the ruleset is associated with.