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
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnDetector.static interfaceThe entity type details.static interfaceThe event type details.static interfaceThe event type variable for the detector.static interfaceThe label details.static interfaceExample:static interfaceThe outcome.static interfaceA rule.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnDetector(Construct scope, String id, CfnDetectorProps props) Create a newAWS::FraudDetector::Detector.protectedCfnDetector(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnDetector(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.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetAssociatedModels(List<Object> value) The models to associate with this detector.voidsetAssociatedModels(IResolvable value) The models to associate with this detector.voidsetDescription(String value) The detector description.voidsetDetectorId(String value) The name of the detector.voidsetDetectorVersionStatus(String value) The status of the detector version.voidsetEventType(IResolvable value) The event type associated with this detector.voidThe event type associated with this detector.voidsetRuleExecutionMode(String value) The rule execution mode for the rules included in the detector version.voidThe rules to include in the detector version.voidsetRules(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, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
inspectin 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:
renderPropertiesin 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:
getCfnPropertiesin 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
DRAFTstatus.Valid values:
ACTIVE | DRAFT -
setDetectorVersionStatus
The status of the detector version.If a value is not provided for this property, AWS CloudFormation assumes
DRAFTstatus.Valid values:
ACTIVE | DRAFT -
getRuleExecutionMode
The rule execution mode for the rules included in the detector version.Valid values:
FIRST_MATCHED | ALL_MATCHEDDefault value:FIRST_MATCHEDYou 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_MATCHEDDefault value:FIRST_MATCHEDYou 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.
-