Class CfnDetector.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDetector>
- Enclosing class:
CfnDetector
CfnDetector
.-
Method Summary
Modifier and TypeMethodDescriptionassociatedModels
(List<? extends Object> associatedModels) The models to associate with this detector.associatedModels
(IResolvable associatedModels) The models to associate with this detector.build()
static CfnDetector.Builder
description
(String description) The detector description.detectorId
(String detectorId) The name of the detector.detectorVersionStatus
(String detectorVersionStatus) The status of the detector version.eventType
(IResolvable eventType) The event type associated with this detector.eventType
(CfnDetector.EventTypeProperty eventType) The event type associated with this detector.ruleExecutionMode
(String ruleExecutionMode) The rule execution mode for the rules included in the detector version.The rules to include in the detector version.rules
(IResolvable rules) The rules to include in the detector version.An array of key-value pairs to apply to this resource.
-
Method Details
-
create
@Stability(Stable) public static CfnDetector.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnDetector.Builder
.
-
detectorId
The name of the detector.- Parameters:
detectorId
- The name of the detector. This parameter is required.- Returns:
this
- See Also:
-
eventType
The event type associated with this detector.- Parameters:
eventType
- The event type associated with this detector. This parameter is required.- Returns:
this
- See Also:
-
eventType
The event type associated with this detector.- Parameters:
eventType
- The event type associated with this detector. This parameter is required.- Returns:
this
- See Also:
-
rules
The rules to include in the detector version.- Parameters:
rules
- The rules to include in the detector version. This parameter is required.- Returns:
this
- See Also:
-
rules
The rules to include in the detector version.- Parameters:
rules
- The rules to include in the detector version. This parameter is required.- Returns:
this
- See Also:
-
associatedModels
The models to associate with this detector.You must provide the ARNs of all the models you want to associate.
- Parameters:
associatedModels
- The models to associate with this detector. This parameter is required.- Returns:
this
- See Also:
-
associatedModels
@Stability(Stable) public CfnDetector.Builder associatedModels(List<? extends Object> associatedModels) The models to associate with this detector.You must provide the ARNs of all the models you want to associate.
- Parameters:
associatedModels
- The models to associate with this detector. This parameter is required.- Returns:
this
- See Also:
-
description
The detector description.- Parameters:
description
- The detector description. This parameter is required.- Returns:
this
- See Also:
-
detectorVersionStatus
The status of the detector version.If a value is not provided for this property, AWS CloudFormation assumes
DRAFT
status.Valid values:
ACTIVE | DRAFT
- Parameters:
detectorVersionStatus
- The status of the detector version. This parameter is required.- Returns:
this
- See Also:
-
ruleExecutionMode
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.- Parameters:
ruleExecutionMode
- The rule execution mode for the rules included in the detector version. This parameter is required.- Returns:
this
- See Also:
-
tags
An array of key-value pairs to apply to this resource.For more information, see Tag .
- Parameters:
tags
- An array of key-value pairs to apply to this resource. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDetector>
- Returns:
- a newly built instance of
CfnDetector
.
-