{
 "additionalProperties": false,
 "createOnlyProperties": [
  "/properties/UserGroupId"
 ],
 "definitions": {
  "Tag": {
   "additionalProperties": false,
   "properties": {
    "Key": {
     "maxLength": 128,
     "minLength": 1,
     "pattern": "^(?!aws:)[a-zA-Z0-9 _\\.\\/=+:\\-@]*$",
     "type": "string"
    },
    "Value": {
     "maxLength": 256,
     "minLength": 0,
     "pattern": "^[a-zA-Z0-9 _\\.\\/=+:\\-@]*$",
     "type": "string"
    }
   },
   "required": [
    "Key"
   ],
   "type": "object"
  }
 },
 "primaryIdentifier": [
  "/properties/UserGroupId"
 ],
 "properties": {
  "Arn": {
   "type": "string"
  },
  "Engine": {
   "enum": [
    "redis",
    "valkey"
   ],
   "type": "string"
  },
  "Status": {
   "type": "string"
  },
  "Tags": {
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/Tag"
   },
   "maxItems": 50,
   "type": "array",
   "uniqueItems": true
  },
  "UserGroupId": {
   "pattern": "[a-z][a-z0-9\\\\-]*",
   "type": "string"
  },
  "UserIds": {
   "$comment": "List of users.",
   "insertionOrder": false,
   "items": {
    "minLength": 1,
    "pattern": "^[a-zA-Z][a-zA-Z0-9\\-]*$",
    "type": "string"
   },
   "minItems": 1,
   "type": "array",
   "uniqueItems": true
  }
 },
 "readOnlyProperties": [
  "/properties/Status",
  "/properties/Arn"
 ],
 "required": [
  "UserGroupId",
  "Engine",
  "UserIds"
 ],
 "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-elasticache",
 "tagging": {
  "cloudFormationSystemTags": false,
  "tagOnCreate": true,
  "tagProperty": "/properties/Tags",
  "tagUpdatable": true,
  "taggable": true
 },
 "typeName": "AWS::ElastiCache::UserGroup"
}
