Interface CfnDetectorProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnDetectorProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:29:56.821Z") @Stability(Stable) public interface CfnDetectorProps extends software.amazon.jsii.JsiiSerializable
Properties for defining a CfnDetector.

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.*;
 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();
 
  • Method Details

    • getDetectorId

      @Stability(Stable) @NotNull String getDetectorId()
      The name of the detector.
    • getEventType

      @Stability(Stable) @NotNull Object getEventType()
      The event type associated with this detector.
    • getRules

      @Stability(Stable) @NotNull Object getRules()
      The rules to include in the detector version.
    • getAssociatedModels

      @Stability(Stable) @Nullable default Object getAssociatedModels()
      The models to associate with this detector.

      You must provide the ARNs of all the models you want to associate.

    • getDescription

      @Stability(Stable) @Nullable default String getDescription()
      The detector description.
    • getDetectorVersionStatus

      @Stability(Stable) @Nullable default String 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

    • getRuleExecutionMode

      @Stability(Stable) @Nullable default String 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.

    • getTags

      @Stability(Stable) @Nullable default List<CfnTag> getTags()
      An array of key-value pairs to apply to this resource.

      For more information, see Tag .

    • builder

      @Stability(Stable) static CfnDetectorProps.Builder builder()
      Returns:
      a CfnDetectorProps.Builder of CfnDetectorProps