{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-evidently-experiment.json",
  "title": "AWSEvidentlyExperimentProperties",
  "description": "Resource Type definition for AWS::Evidently::Experiment.. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-evidently>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-evidently-experiment.json",
    "sourceSha256": "50c70952afbbfe943b292aba5080b531f9082b7227b9b8d7a0fa7cd51f33db57"
  },
  "type": "object",
  "properties": {
    "Name": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "[-a-zA-Z0-9._]*",
          "minLength": 1,
          "maxLength": 127
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "Project": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "([-a-zA-Z0-9._]*)|(arn:[^:]*:[^:]*:[^:]*:[^:]*:project/[-a-zA-Z0-9._]*)",
          "minLength": 0,
          "maxLength": 2048
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "Description": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 0,
          "maxLength": 160
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "RunningStatus": {
      "description": "Start Experiment. Default is False",
      "$ref": "#/$defs/RunningStatusObject"
    },
    "RandomizationSalt": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 0,
          "maxLength": 127,
          "pattern": ".*"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "Treatments": {
      "type": "array",
      "uniqueItems": true,
      "insertionOrder": true,
      "items": {
        "$ref": "#/$defs/TreatmentObject"
      },
      "minItems": 2,
      "maxItems": 5
    },
    "MetricGoals": {
      "type": "array",
      "uniqueItems": true,
      "insertionOrder": true,
      "items": {
        "$ref": "#/$defs/MetricGoalObject"
      },
      "minItems": 1,
      "maxItems": 3
    },
    "SamplingRate": {
      "type": "integer",
      "minimum": 0,
      "maximum": 100000
    },
    "OnlineAbConfig": {
      "$ref": "#/$defs/OnlineAbConfigObject"
    },
    "Segment": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 0,
          "maxLength": 2048,
          "pattern": "([-a-zA-Z0-9._]*)|(arn:[^:]*:[^:]*:[^:]*:[^:]*:segment/[-a-zA-Z0-9._]*)"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "RemoveSegment": {
      "type": "boolean"
    },
    "Tags": {
      "description": "An array of key-value pairs to apply to this resource.",
      "type": "array",
      "uniqueItems": true,
      "insertionOrder": false,
      "items": {
        "$ref": "#/$defs/Tag"
      }
    }
  },
  "typeName": "AWS::Evidently::Experiment",
  "taggable": true,
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-evidently",
  "createOnlyProperties": [
    "/properties/Name",
    "/properties/Project"
  ],
  "additionalProperties": false,
  "$defs": {
    "RunningStatusObject": {
      "type": "object",
      "title": "AWSEvidentlyExperimentRunningStatusObjectDefinition",
      "properties": {
        "Status": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Provide START or STOP action to apply on an experiment"
        },
        "AnalysisCompleteTime": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Provide the analysis Completion time for an experiment"
        },
        "Reason": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Reason is a required input for stopping the experiment"
        },
        "DesiredState": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "^(CANCELLED|COMPLETED)"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Provide CANCELLED or COMPLETED desired state when stopping an experiment"
        }
      },
      "oneOf": [
        {
          "required": [
            "Status",
            "AnalysisCompleteTime"
          ]
        },
        {
          "required": [
            "Status",
            "Reason",
            "DesiredState"
          ]
        }
      ],
      "additionalProperties": false
    },
    "TreatmentObject": {
      "type": "object",
      "properties": {
        "TreatmentName": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "[-a-zA-Z0-9._]*",
              "minLength": 1,
              "maxLength": 127
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Description": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Feature": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "([-a-zA-Z0-9._]*)|(arn:[^:]*:[^:]*:[^:]*:[^:]*:.*)"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Variation": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "[-a-zA-Z0-9._]*",
              "minLength": 1,
              "maxLength": 255
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "TreatmentName",
        "Feature",
        "Variation"
      ],
      "title": "AWSEvidentlyExperimentTreatmentObjectDefinition",
      "additionalProperties": false
    },
    "MetricGoalObject": {
      "type": "object",
      "properties": {
        "MetricName": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^[\\S]+$"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "EntityIdKey": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The JSON path to reference the entity id in the event."
        },
        "ValueKey": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The JSON path to reference the numerical metric value in the event."
        },
        "EventPattern": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Event patterns have the same structure as the events they match. Rules use event patterns to select events. An event pattern either matches an event or it doesn't."
        },
        "UnitLabel": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 256,
              "pattern": ".*"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "DesiredChange": {
          "oneOf": [
            {
              "type": "string",
              "enum": [
                "INCREASE",
                "DECREASE"
              ]
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "MetricName",
        "EntityIdKey",
        "ValueKey",
        "DesiredChange"
      ],
      "title": "AWSEvidentlyExperimentMetricGoalObjectDefinition",
      "additionalProperties": false
    },
    "OnlineAbConfigObject": {
      "type": "object",
      "properties": {
        "ControlTreatmentName": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "[-a-zA-Z0-9._]*",
              "minLength": 1,
              "maxLength": 127
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "TreatmentWeights": {
          "type": "array",
          "uniqueItems": true,
          "insertionOrder": false,
          "items": {
            "$ref": "#/$defs/TreatmentToWeight"
          }
        }
      },
      "title": "AWSEvidentlyExperimentOnlineAbConfigObjectDefinition",
      "additionalProperties": false
    },
    "TreatmentToWeight": {
      "type": "object",
      "properties": {
        "Treatment": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "[-a-zA-Z0-9._]*",
              "minLength": 1,
              "maxLength": 127
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "SplitWeight": {
          "type": "integer",
          "minimum": 0,
          "maximum": 100000
        }
      },
      "required": [
        "Treatment",
        "SplitWeight"
      ],
      "title": "AWSEvidentlyExperimentTreatmentToWeightDefinition",
      "additionalProperties": false
    },
    "Tag": {
      "description": "A key-value pair to associate with a resource.",
      "type": "object",
      "properties": {
        "Key": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "^(?!aws:)[a-zA-Z+-=._:/]+$",
              "minLength": 1,
              "maxLength": 128
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -."
        },
        "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"
            }
          ],
          "description": "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -."
        }
      },
      "required": [
        "Key",
        "Value"
      ],
      "title": "AWSEvidentlyExperimentTagDefinition",
      "additionalProperties": false
    }
  },
  "required": [
    "Name",
    "Project",
    "Treatments",
    "MetricGoals",
    "OnlineAbConfig"
  ],
  "primaryIdentifier": [
    "/properties/Arn"
  ],
  "readOnlyProperties": [
    "/properties/Arn"
  ]
}
