{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-elasticache-usergroup.json",
  "title": "AWSElastiCacheUserGroupProperties",
  "description": "Resource Type definition for AWS::ElastiCache::UserGroup. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-elasticache>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-elasticache-usergroup.json",
    "sourceSha256": "324f80a08f5cc3e43709fb30438b7ba339e4cfde8dd7f42f247d492fdccbd535"
  },
  "type": "object",
  "properties": {
    "UserGroupId": {
      "oneOf": [
        {
          "pattern": "[a-z][a-z0-9\\\\-]*",
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The ID of the user group."
    },
    "Engine": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "redis"
          ]
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "Must be redis."
    },
    "UserIds": {
      "type": "array",
      "$comment": "List of users.",
      "uniqueItems": true,
      "insertionOrder": false,
      "items": {
        "type": "string"
      },
      "description": "List of users associated to this user group."
    },
    "Tags": {
      "description": "An array of key-value pairs to apply to this user.",
      "type": "array",
      "maxItems": 50,
      "uniqueItems": true,
      "insertionOrder": false,
      "items": {
        "$ref": "#/$defs/Tag"
      }
    }
  },
  "typeName": "AWS::ElastiCache::UserGroup",
  "tagging": {
    "taggable": true,
    "tagOnCreate": true,
    "tagUpdatable": true,
    "cloudFormationSystemTags": false,
    "tagProperty": "/properties/Tags"
  },
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-elasticache",
  "additionalProperties": false,
  "primaryIdentifier": [
    "/properties/UserGroupId"
  ],
  "$defs": {
    "Tag": {
      "description": "A key-value pair to associate with a resource.",
      "type": "object",
      "title": "AWSElastiCacheUserGroupTagDefinition",
      "properties": {
        "Key": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "^(?!aws:)[a-zA-Z0-9 _\\.\\/=+:\\-@]*$",
              "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",
              "pattern": "^[a-zA-Z0-9 _\\.\\/=+:\\-@]*$",
              "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. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -."
        }
      },
      "required": [
        "Key"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "UserGroupId",
    "Engine",
    "UserIds"
  ],
  "readOnlyProperties": [
    "/properties/Status",
    "/properties/Arn"
  ],
  "createOnlyProperties": [
    "/properties/UserGroupId",
    "/properties/Engine"
  ]
}
