Class CfnDetector.Builder

java.lang.Object
software.amazon.awscdk.services.frauddetector.CfnDetector.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDetector>
Enclosing class:
CfnDetector

@Stability(Stable) public static final class CfnDetector.Builder extends Object implements software.amazon.jsii.Builder<CfnDetector>
A fluent builder for CfnDetector.
  • Method Details

    • create

      @Stability(Stable) public static CfnDetector.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnDetector.Builder.
    • detectorId

      @Stability(Stable) public CfnDetector.Builder detectorId(String detectorId)
      The name of the detector.

      Parameters:
      detectorId - The name of the detector. This parameter is required.
      Returns:
      this
    • eventType

      @Stability(Stable) public CfnDetector.Builder eventType(CfnDetector.EventTypeProperty eventType)
      The event type associated with this detector.

      Parameters:
      eventType - The event type associated with this detector. This parameter is required.
      Returns:
      this
    • eventType

      @Stability(Stable) public CfnDetector.Builder eventType(IResolvable eventType)
      The event type associated with this detector.

      Parameters:
      eventType - The event type associated with this detector. This parameter is required.
      Returns:
      this
    • rules

      @Stability(Stable) public CfnDetector.Builder rules(IResolvable 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
    • rules

      @Stability(Stable) public CfnDetector.Builder rules(List<? extends Object> 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
    • associatedModels

      @Stability(Stable) public CfnDetector.Builder associatedModels(IResolvable 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
    • 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
    • description

      @Stability(Stable) public CfnDetector.Builder description(String description)
      The detector description.

      Parameters:
      description - The detector description. This parameter is required.
      Returns:
      this
    • detectorVersionStatus

      @Stability(Stable) public CfnDetector.Builder detectorVersionStatus(String 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
    • ruleExecutionMode

      @Stability(Stable) public CfnDetector.Builder ruleExecutionMode(String 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
    • tags

      @Stability(Stable) public CfnDetector.Builder tags(List<? extends CfnTag> 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
    • build

      @Stability(Stable) public CfnDetector build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnDetector>
      Returns:
      a newly built instance of CfnDetector.