{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-evidently-feature.json",
  "title": "AWSEvidentlyFeatureProperties",
  "description": "Resource Type definition for AWS::Evidently::Feature.. 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-feature.json",
    "sourceSha256": "59e2dcfa564761b11aafdcea4117ea3a91cc8c6a78793483d3110219cc070674"
  },
  "type": "object",
  "properties": {
    "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"
        }
      ]
    },
    "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"
        }
      ]
    },
    "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"
        }
      ]
    },
    "EvaluationStrategy": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "ALL_RULES",
            "DEFAULT_VARIATION"
          ]
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "Variations": {
      "type": "array",
      "uniqueItems": true,
      "insertionOrder": true,
      "items": {
        "$ref": "#/$defs/VariationObject"
      },
      "minItems": 1,
      "maxItems": 5
    },
    "DefaultVariation": {
      "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"
        }
      ]
    },
    "EntityOverrides": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/EntityOverride"
      },
      "insertionOrder": false,
      "uniqueItems": true,
      "minItems": 0,
      "maxItems": 2500
    },
    "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::Feature",
  "taggable": true,
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-evidently",
  "primaryIdentifier": [
    "/properties/Arn"
  ],
  "additionalProperties": false,
  "$defs": {
    "VariationObject": {
      "type": "object",
      "properties": {
        "VariationName": {
          "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"
            }
          ]
        },
        "BooleanValue": {
          "type": "boolean"
        },
        "StringValue": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 0,
              "maxLength": 512
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "LongValue": {
          "type": "number"
        },
        "DoubleValue": {
          "type": "number"
        }
      },
      "oneOf": [
        {
          "required": [
            "VariationName",
            "StringValue"
          ]
        },
        {
          "required": [
            "VariationName",
            "BooleanValue"
          ]
        },
        {
          "required": [
            "VariationName",
            "LongValue"
          ]
        },
        {
          "required": [
            "VariationName",
            "DoubleValue"
          ]
        }
      ],
      "title": "AWSEvidentlyFeatureVariationObjectDefinition",
      "additionalProperties": false
    },
    "EntityOverride": {
      "type": "object",
      "properties": {
        "EntityId": {
          "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",
              "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"
            }
          ]
        }
      },
      "title": "AWSEvidentlyFeatureEntityOverrideDefinition",
      "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": "AWSEvidentlyFeatureTagDefinition",
      "additionalProperties": false
    }
  },
  "required": [
    "Name",
    "Project",
    "Variations"
  ],
  "createOnlyProperties": [
    "/properties/Name",
    "/properties/Project"
  ],
  "readOnlyProperties": [
    "/properties/Arn"
  ]
}
