{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-evidently-launch.json",
  "title": "AWSEvidentlyLaunchProperties",
  "description": "Resource Type definition for AWS::Evidently::Launch.. 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-launch.json",
    "sourceSha256": "3f02fadfcdc886f488c58830e0b59963ee99702da8b4b16d6b4437df08eed5af"
  },
  "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"
        }
      ]
    },
    "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"
        }
      ]
    },
    "ScheduledSplitsConfig": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/StepConfig"
      },
      "uniqueItems": true,
      "insertionOrder": true,
      "minItems": 1,
      "maxItems": 6
    },
    "Groups": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/LaunchGroupObject"
      },
      "uniqueItems": true,
      "insertionOrder": true,
      "minItems": 1,
      "maxItems": 5
    },
    "MetricMonitors": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/MetricDefinitionObject"
      },
      "uniqueItems": true,
      "insertionOrder": true,
      "minItems": 0,
      "maxItems": 3
    },
    "Tags": {
      "description": "An array of key-value pairs to apply to this resource.",
      "type": "array",
      "uniqueItems": true,
      "insertionOrder": false,
      "items": {
        "$ref": "#/$defs/Tag"
      }
    },
    "ExecutionStatus": {
      "description": "Start or Stop Launch Launch. Default is not started.",
      "$ref": "#/$defs/ExecutionStatusObject"
    }
  },
  "typeName": "AWS::Evidently::Launch",
  "taggable": true,
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-evidently",
  "primaryIdentifier": [
    "/properties/Arn"
  ],
  "additionalProperties": false,
  "$defs": {
    "ExecutionStatusObject": {
      "type": "object",
      "title": "AWSEvidentlyLaunchExecutionStatusObjectDefinition",
      "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 a launch"
        },
        "DesiredState": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Provide CANCELLED or COMPLETED as the launch desired state. Defaults to Completed if not provided."
        },
        "Reason": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Provide a reason for stopping the launch. Defaults to empty if not provided."
        }
      },
      "required": [
        "Status"
      ],
      "additionalProperties": false
    },
    "LaunchGroupObject": {
      "type": "object",
      "properties": {
        "GroupName": {
          "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",
              "minLength": 0,
              "maxLength": 160
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Feature": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Variation": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "GroupName",
        "Feature",
        "Variation"
      ],
      "title": "AWSEvidentlyLaunchLaunchGroupObjectDefinition",
      "additionalProperties": false
    },
    "GroupToWeight": {
      "type": "object",
      "properties": {
        "GroupName": {
          "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"
        }
      },
      "title": "AWSEvidentlyLaunchGroupToWeightDefinition",
      "required": [
        "GroupName",
        "SplitWeight"
      ],
      "additionalProperties": false
    },
    "SegmentOverride": {
      "type": "object",
      "properties": {
        "Segment": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "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"
            }
          ]
        },
        "EvaluationOrder": {
          "type": "integer"
        },
        "Weights": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/GroupToWeight"
          },
          "uniqueItems": true,
          "insertionOrder": false
        }
      },
      "title": "AWSEvidentlyLaunchSegmentOverrideDefinition",
      "required": [
        "Segment",
        "EvaluationOrder",
        "Weights"
      ],
      "additionalProperties": false
    },
    "StepConfig": {
      "type": "object",
      "properties": {
        "StartTime": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "GroupWeights": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/GroupToWeight"
          },
          "uniqueItems": true,
          "insertionOrder": false
        },
        "SegmentOverrides": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/SegmentOverride"
          },
          "uniqueItems": true,
          "insertionOrder": false
        }
      },
      "required": [
        "StartTime",
        "GroupWeights"
      ],
      "title": "AWSEvidentlyLaunchStepConfigDefinition",
      "additionalProperties": false
    },
    "MetricDefinitionObject": {
      "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"
            }
          ]
        }
      },
      "required": [
        "MetricName",
        "EntityIdKey",
        "ValueKey"
      ],
      "title": "AWSEvidentlyLaunchMetricDefinitionObjectDefinition",
      "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": "AWSEvidentlyLaunchTagDefinition",
      "additionalProperties": false
    }
  },
  "required": [
    "Name",
    "Project",
    "Groups",
    "ScheduledSplitsConfig"
  ],
  "readOnlyProperties": [
    "/properties/Arn"
  ],
  "createOnlyProperties": [
    "/properties/Name",
    "/properties/Project"
  ]
}
