@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.398Z") @Stability(value=Stable) public class CfnDetector extends CfnResource implements IInspectable
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();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnDetector.Builder
A fluent builder for
CfnDetector. |
static interface |
CfnDetector.EntityTypeProperty
The entity type details.
|
static interface |
CfnDetector.EventTypeProperty
The event type details.
|
static interface |
CfnDetector.EventVariableProperty
The event type variable for the detector.
|
static interface |
CfnDetector.LabelProperty
The label details.
|
static interface |
CfnDetector.ModelProperty
The model.
|
static interface |
CfnDetector.OutcomeProperty
The outcome.
|
static interface |
CfnDetector.RuleProperty
A rule.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnDetector(software.constructs.Construct scope,
String id,
CfnDetectorProps props)
Create a new `AWS::FraudDetector::Detector`.
|
protected |
CfnDetector(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnDetector(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAssociatedModels()
The models to associate with this detector.
|
String |
getAttrArn()
The detector ARN.
|
String |
getAttrCreatedTime()
Timestamp of when detector was created.
|
String |
getAttrDetectorVersionId()
The name of the detector.
|
String |
getAttrEventTypeArn() |
String |
getAttrEventTypeCreatedTime() |
String |
getAttrEventTypeLastUpdatedTime() |
String |
getAttrLastUpdatedTime()
Timestamp of when detector was last updated.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getDescription()
The detector description.
|
String |
getDetectorId()
The name of the detector.
|
String |
getDetectorVersionStatus()
The status of the detector version.
|
Object |
getEventType()
The event type associated with this detector.
|
String |
getRuleExecutionMode()
The rule execution mode for the rules included in the detector version.
|
Object |
getRules()
The rules to include in the detector version.
|
TagManager |
getTags()
An array of key-value pairs to apply to this resource.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setAssociatedModels(IResolvable value)
The models to associate with this detector.
|
void |
setAssociatedModels(List<Object> 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(CfnDetector.EventTypeProperty value)
The event type associated with this detector.
|
void |
setEventType(IResolvable value)
The event type associated with this detector.
|
void |
setRuleExecutionMode(String value)
The rule execution mode for the rules included in the detector version.
|
void |
setRules(IResolvable value)
The rules to include in the detector version.
|
void |
setRules(List<Object> value)
The rules to include in the detector version.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnDetector(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnDetector(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnDetector(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnDetectorProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrArn()
@Stability(value=Stable) @NotNull public String getAttrCreatedTime()
@Stability(value=Stable) @NotNull public String getAttrDetectorVersionId()
@Stability(value=Stable) @NotNull public String getAttrEventTypeArn()
@Stability(value=Stable) @NotNull public String getAttrEventTypeCreatedTime()
@Stability(value=Stable) @NotNull public String getAttrEventTypeLastUpdatedTime()
@Stability(value=Stable) @NotNull public String getAttrLastUpdatedTime()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
For more information, see Tag .
@Stability(value=Stable) @NotNull public String getDetectorId()
@Stability(value=Stable)
public void setDetectorId(@NotNull
String value)
@Stability(value=Stable) @NotNull public Object getEventType()
@Stability(value=Stable)
public void setEventType(@NotNull
CfnDetector.EventTypeProperty value)
@Stability(value=Stable)
public void setEventType(@NotNull
IResolvable value)
@Stability(value=Stable) @NotNull public Object getRules()
@Stability(value=Stable)
public void setRules(@NotNull
IResolvable value)
@Stability(value=Stable)
public void setRules(@NotNull
List<Object> value)
@Stability(value=Stable) @Nullable public Object getAssociatedModels()
You must provide the ARNs of all the models you want to associate.
@Stability(value=Stable)
public void setAssociatedModels(@Nullable
IResolvable value)
You must provide the ARNs of all the models you want to associate.
@Stability(value=Stable)
public void setAssociatedModels(@Nullable
List<Object> value)
You must provide the ARNs of all the models you want to associate.
@Stability(value=Stable) @Nullable public String getDescription()
@Stability(value=Stable)
public void setDescription(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getDetectorVersionStatus()
If a value is not provided for this property, AWS CloudFormation assumes DRAFT status.
Valid values: ACTIVE | DRAFT
@Stability(value=Stable)
public void setDetectorVersionStatus(@Nullable
String value)
If a value is not provided for this property, AWS CloudFormation assumes DRAFT status.
Valid values: ACTIVE | DRAFT
@Stability(value=Stable) @Nullable public String getRuleExecutionMode()
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.
@Stability(value=Stable)
public void setRuleExecutionMode(@Nullable
String value)
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.
Copyright © 2022. All rights reserved.