CfnDetectorProps Struct
Properties for defining a CfnDetector.
| Source |
|---|
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 cfnDetectorProps: frauddetector.CfnDetectorProps = {
detectorId: 'detectorId',
eventType: {
arn: 'arn',
createdTime: 'createdTime',
description: 'description',
entityTypes: [{
arn: 'arn',
createdTime: 'createdTime',
description: 'description',
inline: false,
lastUpdatedTime: 'lastUpdatedTime',
name: 'name',
tags: [{
key: 'key',
value: 'value',
}],
}],
eventVariables: [{
arn: 'arn',
createdTime: 'createdTime',
dataSource: 'dataSource',
dataType: 'dataType',
defaultValue: 'defaultValue',
description: 'description',
inline: false,
lastUpdatedTime: 'lastUpdatedTime',
name: 'name',
tags: [{
key: 'key',
value: 'value',
}],
variableType: 'variableType',
}],
inline: false,
labels: [{
arn: 'arn',
createdTime: 'createdTime',
description: 'description',
inline: false,
lastUpdatedTime: 'lastUpdatedTime',
name: 'name',
tags: [{
key: 'key',
value: 'value',
}],
}],
lastUpdatedTime: 'lastUpdatedTime',
name: 'name',
tags: [{
key: 'key',
value: 'value',
}],
},
rules: [{
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',
}],
}],
// the properties below are optional
associatedModels: [{
arn: 'arn',
}],
description: 'description',
detectorVersionStatus: 'detectorVersionStatus',
ruleExecutionMode: 'ruleExecutionMode',
tags: [{
key: 'key',
value: 'value',
}],
};
python
from aws_cdk import CfnTag, CfnTag, CfnTag, CfnTag, CfnTag, 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
cfn_detector_props = frauddetector.CfnDetectorProps(
detector_id="detectorId",
event_type=frauddetector.CfnDetector.EventTypeProperty(
arn="arn",
created_time="createdTime",
description="description",
entity_types=[frauddetector.CfnDetector.EntityTypeProperty(
arn="arn",
created_time="createdTime",
description="description",
inline=False,
last_updated_time="lastUpdatedTime",
name="name",
tags=[CfnTag(
key="key",
value="value"
)]
)],
event_variables=[frauddetector.CfnDetector.EventVariableProperty(
arn="arn",
created_time="createdTime",
data_source="dataSource",
data_type="dataType",
default_value="defaultValue",
description="description",
inline=False,
last_updated_time="lastUpdatedTime",
name="name",
tags=[CfnTag(
key="key",
value="value"
)],
variable_type="variableType"
)],
inline=False,
labels=[frauddetector.CfnDetector.LabelProperty(
arn="arn",
created_time="createdTime",
description="description",
inline=False,
last_updated_time="lastUpdatedTime",
name="name",
tags=[CfnTag(
key="key",
value="value"
)]
)],
last_updated_time="lastUpdatedTime",
name="name",
tags=[CfnTag(
key="key",
value="value"
)]
),
rules=[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"
)]
)],
# the properties below are optional
associated_models=[frauddetector.CfnDetector.ModelProperty(
arn="arn"
)],
description="description",
detector_version_status="detectorVersionStatus",
rule_execution_mode="ruleExecutionMode",
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.*;
CfnDetectorProps cfnDetectorProps = CfnDetectorProps.builder()
.detectorId("detectorId")
.eventType(EventTypeProperty.builder()
.arn("arn")
.createdTime("createdTime")
.description("description")
.entityTypes(List.of(EntityTypeProperty.builder()
.arn("arn")
.createdTime("createdTime")
.description("description")
.inline(false)
.lastUpdatedTime("lastUpdatedTime")
.name("name")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build()))
.eventVariables(List.of(EventVariableProperty.builder()
.arn("arn")
.createdTime("createdTime")
.dataSource("dataSource")
.dataType("dataType")
.defaultValue("defaultValue")
.description("description")
.inline(false)
.lastUpdatedTime("lastUpdatedTime")
.name("name")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.variableType("variableType")
.build()))
.inline(false)
.labels(List.of(LabelProperty.builder()
.arn("arn")
.createdTime("createdTime")
.description("description")
.inline(false)
.lastUpdatedTime("lastUpdatedTime")
.name("name")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build()))
.lastUpdatedTime("lastUpdatedTime")
.name("name")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build())
.rules(List.of(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()))
// the properties below are optional
.associatedModels(List.of(ModelProperty.builder()
.arn("arn")
.build()))
.description("description")
.detectorVersionStatus("detectorVersionStatus")
.ruleExecutionMode("ruleExecutionMode")
.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 cfnDetectorProps = new CfnDetectorProps {
DetectorId = "detectorId",
EventType = new EventTypeProperty {
Arn = "arn",
CreatedTime = "createdTime",
Description = "description",
EntityTypes = new [] { new EntityTypeProperty {
Arn = "arn",
CreatedTime = "createdTime",
Description = "description",
Inline = false,
LastUpdatedTime = "lastUpdatedTime",
Name = "name",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
} },
EventVariables = new [] { new EventVariableProperty {
Arn = "arn",
CreatedTime = "createdTime",
DataSource = "dataSource",
DataType = "dataType",
DefaultValue = "defaultValue",
Description = "description",
Inline = false,
LastUpdatedTime = "lastUpdatedTime",
Name = "name",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
VariableType = "variableType"
} },
Inline = false,
Labels = new [] { new LabelProperty {
Arn = "arn",
CreatedTime = "createdTime",
Description = "description",
Inline = false,
LastUpdatedTime = "lastUpdatedTime",
Name = "name",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
} },
LastUpdatedTime = "lastUpdatedTime",
Name = "name",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
},
Rules = new [] { 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"
} }
} },
// the properties below are optional
AssociatedModels = new [] { new ModelProperty {
Arn = "arn"
} },
Description = "description",
DetectorVersionStatus = "detectorVersionStatus",
RuleExecutionMode = "ruleExecutionMode",
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"
cfnDetectorProps := &CfnDetectorProps{
DetectorId: jsii.String("detectorId"),
EventType: &EventTypeProperty{
Arn: jsii.String("arn"),
CreatedTime: jsii.String("createdTime"),
Description: jsii.String("description"),
EntityTypes: []interface{}{
&EntityTypeProperty{
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"),
},
},
},
},
EventVariables: []interface{}{
&EventVariableProperty{
Arn: jsii.String("arn"),
CreatedTime: jsii.String("createdTime"),
DataSource: jsii.String("dataSource"),
DataType: jsii.String("dataType"),
DefaultValue: jsii.String("defaultValue"),
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"),
},
},
VariableType: jsii.String("variableType"),
},
},
Inline: jsii.Boolean(false),
Labels: []interface{}{
&LabelProperty{
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"),
},
},
},
},
LastUpdatedTime: jsii.String("lastUpdatedTime"),
Name: jsii.String("name"),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
},
Rules: []interface{}{
&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"),
},
},
},
},
// the properties below are optional
AssociatedModels: []interface{}{
&ModelProperty{
Arn: jsii.String("arn"),
},
},
Description: jsii.String("description"),
DetectorVersionStatus: jsii.String("detectorVersionStatus"),
RuleExecutionMode: jsii.String("ruleExecutionMode"),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
associatedModelsoptionalIResolvable | IResolvable | CfnDetector.ModelProperty[]associated_modelsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ModelProperty]]]associatedModelsoptionalIResolvableAssociatedModelsoptionalIResolvableAssociatedModelsoptionalinterface{} #The models to associate with this detector.
You must provide the ARNs of all the models you want to associate.
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #The detector description.
The name of the detector.
detectorVersionStatusoptionalstringdetector_version_statusoptionalstrdetectorVersionStatusoptionalStringDetectorVersionStatusoptionalstringDetectorVersionStatusoptional*string #The status of the detector version.
If a value is not provided for this property, AWS CloudFormation assumes DRAFT status.
Valid values: ACTIVE | DRAFT
eventTypeIResolvable | CfnDetector.EventTypePropertyevent_typetyping.Union[IResolvable, EventTypeProperty]eventTypeIResolvableEventTypeIResolvableEventTypeinterface{} required #The event type associated with this detector.
ruleExecutionModeoptionalstringrule_execution_modeoptionalstrruleExecutionModeoptionalStringRuleExecutionModeoptionalstringRuleExecutionModeoptional*string #The rule execution mode for the rules included in the detector version.
notes
Valid values: FIRST_MATCHED | ALL_MATCHED Default value: FIRST_MATCHED
You can define and edit the rule mode at the detector version level, when it is in draft status.
If you specify FIRST_MATCHED , Amazon Fraud Detector evaluates rules sequentially, first to last, stopping at the first matched rule. Amazon Fraud dectector then provides the outcomes for that single rule.
If you specifiy ALL_MATCHED , Amazon Fraud Detector evaluates all rules and returns the outcomes for all matched rules.
rulesIResolvable | IResolvable | CfnDetector.RuleProperty[]rulestyping.Union[IResolvable, typing.List[typing.Union[IResolvable, RuleProperty]]]rulesIResolvableRulesIResolvableRulesinterface{} required #The rules to include in the detector version.