{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-connect-userhierarchygroup.json",
  "title": "AWSConnectUserHierarchyGroupProperties",
  "description": "Resource Type definition for AWS::Connect::UserHierarchyGroup. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-connect>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-connect-userhierarchygroup.json",
    "sourceSha256": "9c1cf6a1e988a7b4b79740dba5839011d376765ab1743a09aa21b12640f71564"
  },
  "type": "object",
  "properties": {
    "InstanceArn": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^arn:aws[-a-z0-9]*:connect:[-a-z0-9]*:[0-9]{12}:instance/[-a-zA-Z0-9]*$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The identifier of the Amazon Connect instance."
    },
    "ParentGroupArn": {
      "description": "The Amazon Resource Name (ARN) for the parent user hierarchy group.",
      "$ref": "#/$defs/UserHierarchyGroupArn"
    },
    "Name": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 100
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The name of the user hierarchy group."
    }
  },
  "typeName": "AWS::Connect::UserHierarchyGroup",
  "createOnlyProperties": [
    "/properties/ParentGroupArn"
  ],
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-connect",
  "additionalProperties": false,
  "readOnlyProperties": [
    "/properties/UserHierarchyGroupArn"
  ],
  "required": [
    "Name",
    "InstanceArn"
  ],
  "$defs": {
    "UserHierarchyGroupArn": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^arn:aws[-a-z0-9]*:connect:[-a-z0-9]*:[0-9]{12}:instance/[-a-zA-Z0-9]*/agent-group/[-a-zA-Z0-9]*$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The Amazon Resource Name (ARN) for the user hierarchy group.",
      "title": "AWSConnectUserHierarchyGroupUserHierarchyGroupArnDefinition"
    }
  },
  "primaryIdentifier": [
    "/properties/UserHierarchyGroupArn"
  ]
}
