Class CfnDetector
- All Implemented Interfaces:
IConstruct
,IDependable
,IInspectable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
AWS::FraudDetector::Detector
.
Manages a detector and associated detector versions.
Example:
// 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.*; CfnDetector cfnDetector = CfnDetector.Builder.create(this, "MyCfnDetector") .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();
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnDetector
.static interface
The entity type details.static interface
The event type details.static interface
The event type variable for the detector.static interface
The label details.static interface
Example:static interface
The outcome.static interface
A rule.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionCfnDetector
(Construct scope, String id, CfnDetectorProps props) Create a newAWS::FraudDetector::Detector
.protected
CfnDetector
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnDetector
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionThe models to associate with this detector.The detector ARN.Timestamp of when detector was created.The name of the detector.Timestamp of when detector was last updated.The detector description.The name of the detector.The status of the detector version.The event type associated with this detector.The rule execution mode for the rules included in the detector version.getRules()
The rules to include in the detector version.getTags()
An array of key-value pairs to apply to this resource.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setAssociatedModels
(List<Object> value) The models to associate with this detector.void
setAssociatedModels
(IResolvable value) The models to associate with this detector.void
setDescription
(String value) The detector description.void
setDetectorId
(String value) The name of the detector.void
setDetectorVersionStatus
(String value) The status of the detector version.void
setEventType
(IResolvable value) The event type associated with this detector.void
The event type associated with this detector.void
setRuleExecutionMode
(String value) The rule execution mode for the rules included in the detector version.void
The rules to include in the detector version.void
setRules
(IResolvable value) The rules to include in the detector version.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.core.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnDetector
protected CfnDetector(software.amazon.jsii.JsiiObjectRef objRef) -
CfnDetector
protected CfnDetector(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnDetector
@Stability(Stable) public CfnDetector(@NotNull Construct scope, @NotNull String id, @NotNull CfnDetectorProps props) Create a newAWS::FraudDetector::Detector
.- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
props
-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrArn
The detector ARN. -
getAttrCreatedTime
Timestamp of when detector was created. -
getAttrDetectorVersionId
The name of the detector. -
getAttrEventTypeArn
-
getAttrEventTypeCreatedTime
-
getAttrEventTypeLastUpdatedTime
-
getAttrLastUpdatedTime
Timestamp of when detector was last updated. -
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getTags
An array of key-value pairs to apply to this resource.For more information, see Tag .
-
getDetectorId
The name of the detector. -
setDetectorId
The name of the detector. -
getEventType
The event type associated with this detector. -
setEventType
The event type associated with this detector. -
setEventType
The event type associated with this detector. -
getRules
The rules to include in the detector version. -
setRules
The rules to include in the detector version. -
setRules
The rules to include in the detector version. -
getAssociatedModels
The models to associate with this detector.You must provide the ARNs of all the models you want to associate.
-
setAssociatedModels
The models to associate with this detector.You must provide the ARNs of all the models you want to associate.
-
setAssociatedModels
The models to associate with this detector.You must provide the ARNs of all the models you want to associate.
-
getDescription
The detector description. -
setDescription
The detector description. -
getDetectorVersionStatus
The status of the detector version.If a value is not provided for this property, AWS CloudFormation assumes
DRAFT
status.Valid values:
ACTIVE | DRAFT
-
setDetectorVersionStatus
The status of the detector version.If a value is not provided for this property, AWS CloudFormation assumes
DRAFT
status.Valid values:
ACTIVE | DRAFT
-
getRuleExecutionMode
The rule execution mode for the rules included in the detector version.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. -
setRuleExecutionMode
The rule execution mode for the rules included in the detector version.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.
-