RuleProperty Struct
A rule.
| 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_frauddetector as frauddetector } from 'aws-cdk-lib';
const ruleProperty: frauddetector.CfnDetector.RuleProperty = {
arn: 'arn',
createdTime: 'createdTime',
description: 'description',
detectorId: 'detectorId',
expression: 'expression',
language: 'language',
lastUpdatedTime: 'lastUpdatedTime',
outcomes: [{
arn: 'arn',
createdTime: 'createdTime',
description: 'description',
inline: false,
lastUpdatedTime: 'lastUpdatedTime',
name: 'name',
tags: [{
key: 'key',
value: 'value',
}],
}],
ruleId: 'ruleId',
ruleVersion: 'ruleVersion',
tags: [{
key: 'key',
value: 'value',
}],
};
python
from aws_cdk import CfnTag, 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_frauddetector as frauddetector
rule_property = frauddetector.CfnDetector.RuleProperty(
arn="arn",
created_time="createdTime",
description="description",
detector_id="detectorId",
expression="expression",
language="language",
last_updated_time="lastUpdatedTime",
outcomes=[frauddetector.CfnDetector.OutcomeProperty(
arn="arn",
created_time="createdTime",
description="description",
inline=False,
last_updated_time="lastUpdatedTime",
name="name",
tags=[CfnTag(
key="key",
value="value"
)]
)],
rule_id="ruleId",
rule_version="ruleVersion",
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.frauddetector.*;
RuleProperty ruleProperty = RuleProperty.builder()
.arn("arn")
.createdTime("createdTime")
.description("description")
.detectorId("detectorId")
.expression("expression")
.language("language")
.lastUpdatedTime("lastUpdatedTime")
.outcomes(List.of(OutcomeProperty.builder()
.arn("arn")
.createdTime("createdTime")
.description("description")
.inline(false)
.lastUpdatedTime("lastUpdatedTime")
.name("name")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build()))
.ruleId("ruleId")
.ruleVersion("ruleVersion")
.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.FraudDetector;
var ruleProperty = new RuleProperty {
Arn = "arn",
CreatedTime = "createdTime",
Description = "description",
DetectorId = "detectorId",
Expression = "expression",
Language = "language",
LastUpdatedTime = "lastUpdatedTime",
Outcomes = new [] { new OutcomeProperty {
Arn = "arn",
CreatedTime = "createdTime",
Description = "description",
Inline = false,
LastUpdatedTime = "lastUpdatedTime",
Name = "name",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
} },
RuleId = "ruleId",
RuleVersion = "ruleVersion",
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"
ruleProperty := &RuleProperty{
Arn: jsii.String("arn"),
CreatedTime: jsii.String("createdTime"),
Description: jsii.String("description"),
DetectorId: jsii.String("detectorId"),
Expression: jsii.String("expression"),
Language: jsii.String("language"),
LastUpdatedTime: jsii.String("lastUpdatedTime"),
Outcomes: []interface{}{
&OutcomeProperty{
Arn: jsii.String("arn"),
CreatedTime: jsii.String("createdTime"),
Description: jsii.String("description"),
Inline: jsii.Boolean(false),
LastUpdatedTime: jsii.String("lastUpdatedTime"),
Name: jsii.String("name"),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
},
},
RuleId: jsii.String("ruleId"),
RuleVersion: jsii.String("ruleVersion"),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
The rule ARN.
createdTimeoptionalstringcreated_timeoptionalstrcreatedTimeoptionalStringCreatedTimeoptionalstringCreatedTimeoptional*string #Timestamp for when the rule was created.
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #The rule description.
detectorIdoptionalstringdetector_idoptionalstrdetectorIdoptionalStringDetectorIdoptionalstringDetectorIdoptional*string #The detector for which the rule is associated.
expressionoptionalstringexpressionoptionalstrexpressionoptionalStringExpressionoptionalstringExpressionoptional*string #The rule expression.
A rule expression captures the business logic. For more information, see Rule language reference .
languageoptionalstringlanguageoptionalstrlanguageoptionalStringLanguageoptionalstringLanguageoptional*string #The rule language.
Valid Value: DETECTORPL
lastUpdatedTimeoptionalstringlast_updated_timeoptionalstrlastUpdatedTimeoptionalStringLastUpdatedTimeoptionalstringLastUpdatedTimeoptional*string #Timestamp for when the rule was last updated.
outcomesoptionalIResolvable | IResolvable | CfnDetector.OutcomeProperty[]outcomesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, OutcomeProperty]]]outcomesoptionalIResolvableOutcomesoptionalIResolvableOutcomesoptionalinterface{} #The rule outcome.
ruleIdoptionalstringrule_idoptionalstrruleIdoptionalStringRuleIdoptionalstringRuleIdoptional*string #The rule ID.
ruleVersionoptionalstringrule_versionoptionalstrruleVersionoptionalStringRuleVersionoptionalstringRuleVersionoptional*string #The rule version.