aws-cdk-lib.aws_frauddetector.CfnDetector.RuleProperty

interface RuleProperty

LanguageType name
.NETAmazon.CDK.AWS.FraudDetector.CfnDetector.RuleProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsfrauddetector#CfnDetector_RuleProperty
Javasoftware.amazon.awscdk.services.frauddetector.CfnDetector.RuleProperty
Pythonaws_cdk.aws_frauddetector.CfnDetector.RuleProperty
TypeScript aws-cdk-lib » aws_frauddetector » CfnDetector » RuleProperty

A rule.

Rule is a condition that tells Amazon Fraud Detector how to interpret variables values during a fraud prediction.

Example

// 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',
  }],
};

Properties

NameTypeDescription
arn?stringThe rule ARN.
createdTime?stringTimestamp for when the rule was created.
description?stringThe rule description.
detectorId?stringThe detector for which the rule is associated.
expression?stringThe rule expression.
language?stringThe rule language.
lastUpdatedTime?stringTimestamp for when the rule was last updated.
outcomes?IResolvable | IResolvable | OutcomeProperty[]The rule outcome.
ruleId?stringThe rule ID.
ruleVersion?stringThe rule version.
tags?CfnTag[]An array of key-value pairs to apply to this resource.

arn?

Type: string (optional)

The rule ARN.


createdTime?

Type: string (optional)

Timestamp for when the rule was created.


description?

Type: string (optional)

The rule description.


detectorId?

Type: string (optional)

The detector for which the rule is associated.


expression?

Type: string (optional)

The rule expression.

A rule expression captures the business logic. For more information, see Rule language reference .


language?

Type: string (optional)

The rule language.


lastUpdatedTime?

Type: string (optional)

Timestamp for when the rule was last updated.


outcomes?

Type: IResolvable | IResolvable | OutcomeProperty[] (optional)

The rule outcome.


ruleId?

Type: string (optional)

The rule ID.


ruleVersion?

Type: string (optional)

The rule version.


tags?

Type: CfnTag[] (optional)

An array of key-value pairs to apply to this resource.

For more information, see Tag .