{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-frauddetector-detector.json",
  "title": "AWSFraudDetectorDetectorProperties",
  "description": "A resource schema for a Detector in Amazon Fraud Detector.. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-frauddetector-detector.json",
    "sourceSha256": "d13c4d9d094841a98ec5a3971e8efaef6cc6894a618b32d3e4a714ea7cf148b2"
  },
  "type": "object",
  "properties": {
    "DetectorId": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^[0-9a-z_-]+$",
          "minLength": 1,
          "maxLength": 64
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The ID of the detector"
    },
    "DetectorVersionStatus": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "DRAFT",
            "ACTIVE"
          ]
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The desired detector version status for the detector"
    },
    "RuleExecutionMode": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "FIRST_MATCHED",
            "ALL_MATCHED"
          ]
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "Tags": {
      "description": "Tags associated with this detector.",
      "type": "array",
      "uniqueItems": false,
      "insertionOrder": false,
      "maxItems": 200,
      "items": {
        "$ref": "#/$defs/Tag"
      }
    },
    "Description": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The description of the detector."
    },
    "Rules": {
      "type": "array",
      "uniqueItems": false,
      "insertionOrder": false,
      "minItems": 1,
      "items": {
        "$ref": "#/$defs/Rule"
      }
    },
    "EventType": {
      "description": "The event type to associate this detector with.",
      "$ref": "#/$defs/EventType"
    },
    "AssociatedModels": {
      "description": "The models to associate with this detector.",
      "type": "array",
      "uniqueItems": false,
      "insertionOrder": false,
      "maxItems": 10,
      "items": {
        "$ref": "#/$defs/Model"
      }
    }
  },
  "typeName": "AWS::FraudDetector::Detector",
  "primaryIdentifier": [
    "/properties/Arn"
  ],
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git",
  "additionalProperties": false,
  "readOnlyProperties": [
    "/properties/Arn",
    "/properties/DetectorVersionId",
    "/properties/CreatedTime",
    "/properties/LastUpdatedTime",
    "/properties/Rules/*/RuleVersion",
    "/properties/Rules/*/Arn",
    "/properties/Rules/*/CreatedTime",
    "/properties/Rules/*/LastUpdatedTime",
    "/properties/Rules/*/Outcomes/*/Arn",
    "/properties/Rules/*/Outcomes/*/CreatedTime",
    "/properties/Rules/*/Outcomes/*/LastUpdatedTime",
    "/properties/EventType/Arn",
    "/properties/EventType/CreatedTime",
    "/properties/EventType/LastUpdatedTime",
    "/properties/EventType/EventVariables/*/Arn",
    "/properties/EventType/EventVariables/*/CreatedTime",
    "/properties/EventType/EventVariables/*/LastUpdatedTime",
    "/properties/EventType/Labels/*/Arn",
    "/properties/EventType/Labels/*/CreatedTime",
    "/properties/EventType/Labels/*/LastUpdatedTime",
    "/properties/EventType/EntityTypes/*/Arn",
    "/properties/EventType/EntityTypes/*/CreatedTime",
    "/properties/EventType/EntityTypes/*/LastUpdatedTime",
    "/properties/AssociatedModels/*/Arn"
  ],
  "$defs": {
    "Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Value": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 0,
              "maxLength": 256
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "Key",
        "Value"
      ],
      "title": "AWSFraudDetectorDetectorTagDefinition",
      "additionalProperties": false
    },
    "EventVariable": {
      "type": "object",
      "properties": {
        "Arn": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Inline": {
          "type": "boolean"
        },
        "Name": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "DataSource": {
          "oneOf": [
            {
              "type": "string",
              "enum": [
                "EVENT"
              ]
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "DataType": {
          "oneOf": [
            {
              "type": "string",
              "enum": [
                "STRING",
                "INTEGER",
                "FLOAT",
                "BOOLEAN"
              ]
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "DefaultValue": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "VariableType": {
          "oneOf": [
            {
              "type": "string",
              "enum": [
                "AUTH_CODE",
                "AVS",
                "BILLING_ADDRESS_L1",
                "BILLING_ADDRESS_L2",
                "BILLING_CITY",
                "BILLING_COUNTRY",
                "BILLING_NAME",
                "BILLING_PHONE",
                "BILLING_STATE",
                "BILLING_ZIP",
                "CARD_BIN",
                "CATEGORICAL",
                "CURRENCY_CODE",
                "EMAIL_ADDRESS",
                "FINGERPRINT",
                "FRAUD_LABEL",
                "FREE_FORM_TEXT",
                "IP_ADDRESS",
                "NUMERIC",
                "ORDER_ID",
                "PAYMENT_TYPE",
                "PHONE_NUMBER",
                "PRICE",
                "PRODUCT_CATEGORY",
                "SHIPPING_ADDRESS_L1",
                "SHIPPING_ADDRESS_L2",
                "SHIPPING_CITY",
                "SHIPPING_COUNTRY",
                "SHIPPING_NAME",
                "SHIPPING_PHONE",
                "SHIPPING_STATE",
                "SHIPPING_ZIP",
                "USERAGENT"
              ]
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Description": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 256
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The description."
        },
        "Tags": {
          "description": "Tags associated with this event variable.",
          "type": "array",
          "uniqueItems": false,
          "insertionOrder": false,
          "maxItems": 200,
          "items": {
            "$ref": "#/$defs/Tag"
          }
        },
        "CreatedTime": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The time when the event variable was created."
        },
        "LastUpdatedTime": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The time when the event variable was last updated."
        }
      },
      "title": "AWSFraudDetectorDetectorEventVariableDefinition",
      "additionalProperties": false
    },
    "Label": {
      "type": "object",
      "properties": {
        "Arn": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Inline": {
          "type": "boolean"
        },
        "Name": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Description": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 256
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The description."
        },
        "Tags": {
          "description": "Tags associated with this label.",
          "type": "array",
          "uniqueItems": false,
          "insertionOrder": false,
          "maxItems": 200,
          "items": {
            "$ref": "#/$defs/Tag"
          }
        },
        "CreatedTime": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The time when the label was created."
        },
        "LastUpdatedTime": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The time when the label was last updated."
        }
      },
      "title": "AWSFraudDetectorDetectorLabelDefinition",
      "additionalProperties": false
    },
    "Outcome": {
      "type": "object",
      "properties": {
        "Arn": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Inline": {
          "type": "boolean"
        },
        "Name": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Description": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 256
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The description."
        },
        "Tags": {
          "description": "Tags associated with this outcome.",
          "type": "array",
          "uniqueItems": false,
          "insertionOrder": false,
          "maxItems": 200,
          "items": {
            "$ref": "#/$defs/Tag"
          }
        },
        "CreatedTime": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The time when the outcome was created."
        },
        "LastUpdatedTime": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The time when the outcome was last updated."
        }
      },
      "title": "AWSFraudDetectorDetectorOutcomeDefinition",
      "additionalProperties": false
    },
    "Rule": {
      "type": "object",
      "properties": {
        "RuleId": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "RuleVersion": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "DetectorId": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Expression": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Language": {
          "oneOf": [
            {
              "type": "string",
              "enum": [
                "DETECTORPL"
              ]
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Outcomes": {
          "type": "array",
          "uniqueItems": false,
          "insertionOrder": false,
          "minItems": 1,
          "items": {
            "$ref": "#/$defs/Outcome"
          }
        },
        "Arn": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Description": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 256
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The description."
        },
        "Tags": {
          "description": "Tags associated with this event type.",
          "type": "array",
          "uniqueItems": false,
          "insertionOrder": false,
          "maxItems": 200,
          "items": {
            "$ref": "#/$defs/Tag"
          }
        },
        "CreatedTime": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The time when the event type was created."
        },
        "LastUpdatedTime": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The time when the event type was last updated."
        }
      },
      "title": "AWSFraudDetectorDetectorRuleDefinition",
      "additionalProperties": false
    },
    "EntityType": {
      "type": "object",
      "properties": {
        "Arn": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Inline": {
          "type": "boolean"
        },
        "Name": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Description": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 256
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The description."
        },
        "Tags": {
          "description": "Tags associated with this entity type.",
          "type": "array",
          "uniqueItems": false,
          "insertionOrder": false,
          "maxItems": 200,
          "items": {
            "$ref": "#/$defs/Tag"
          }
        },
        "CreatedTime": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The time when the entity type was created."
        },
        "LastUpdatedTime": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The time when the entity type was last updated."
        }
      },
      "title": "AWSFraudDetectorDetectorEntityTypeDefinition",
      "additionalProperties": false
    },
    "EventType": {
      "type": "object",
      "properties": {
        "Name": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "^[0-9a-z_-]+$",
              "minLength": 1,
              "maxLength": 64
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The name for the event type"
        },
        "Inline": {
          "type": "boolean"
        },
        "Tags": {
          "description": "Tags associated with this event type.",
          "type": "array",
          "uniqueItems": false,
          "insertionOrder": false,
          "maxItems": 200,
          "items": {
            "$ref": "#/$defs/Tag"
          }
        },
        "Description": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The description of the event type."
        },
        "EventVariables": {
          "type": "array",
          "uniqueItems": false,
          "insertionOrder": false,
          "minItems": 1,
          "items": {
            "$ref": "#/$defs/EventVariable"
          }
        },
        "Labels": {
          "type": "array",
          "uniqueItems": false,
          "insertionOrder": false,
          "minItems": 2,
          "items": {
            "$ref": "#/$defs/Label"
          }
        },
        "EntityTypes": {
          "type": "array",
          "uniqueItems": false,
          "insertionOrder": false,
          "minItems": 1,
          "items": {
            "$ref": "#/$defs/EntityType"
          }
        },
        "Arn": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The ARN of the event type."
        },
        "CreatedTime": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The time when the event type was created."
        },
        "LastUpdatedTime": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The time when the event type was last updated."
        }
      },
      "title": "AWSFraudDetectorDetectorEventTypeDefinition",
      "additionalProperties": false
    },
    "Model": {
      "description": "A model to associate with a detector.",
      "type": "object",
      "properties": {
        "Arn": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "title": "AWSFraudDetectorDetectorModelDefinition",
      "additionalProperties": false
    }
  },
  "required": [
    "DetectorId",
    "EventType",
    "Rules"
  ],
  "createOnlyProperties": [
    "/properties/DetectorId"
  ]
}
