{
 "additionalProperties": false,
 "createOnlyProperties": [
  "/properties/InstanceArn"
 ],
 "definitions": {
  "HierarchyLevelArn": {
   "pattern": "^arn:aws[-a-z0-9]*:connect:[-a-z0-9]*:[0-9]{12}:instance/[-a-zA-Z0-9]*/agent-group-level/[-0-9]*$",
   "type": "string"
  },
  "HierarchyLevelId": {
   "type": "string"
  },
  "LevelFive": {
   "additionalProperties": false,
   "properties": {
    "HierarchyLevelArn": {
     "$ref": "#/definitions/HierarchyLevelArn"
    },
    "HierarchyLevelId": {
     "$ref": "#/definitions/HierarchyLevelId"
    },
    "Name": {
     "$ref": "#/definitions/Name"
    }
   },
   "required": [
    "Name"
   ],
   "type": "object"
  },
  "LevelFour": {
   "additionalProperties": false,
   "properties": {
    "HierarchyLevelArn": {
     "$ref": "#/definitions/HierarchyLevelArn"
    },
    "HierarchyLevelId": {
     "$ref": "#/definitions/HierarchyLevelId"
    },
    "Name": {
     "$ref": "#/definitions/Name"
    }
   },
   "required": [
    "Name"
   ],
   "type": "object"
  },
  "LevelOne": {
   "additionalProperties": false,
   "properties": {
    "HierarchyLevelArn": {
     "$ref": "#/definitions/HierarchyLevelArn"
    },
    "HierarchyLevelId": {
     "$ref": "#/definitions/HierarchyLevelId"
    },
    "Name": {
     "$ref": "#/definitions/Name"
    }
   },
   "required": [
    "Name"
   ],
   "type": "object"
  },
  "LevelThree": {
   "additionalProperties": false,
   "properties": {
    "HierarchyLevelArn": {
     "$ref": "#/definitions/HierarchyLevelArn"
    },
    "HierarchyLevelId": {
     "$ref": "#/definitions/HierarchyLevelId"
    },
    "Name": {
     "$ref": "#/definitions/Name"
    }
   },
   "required": [
    "Name"
   ],
   "type": "object"
  },
  "LevelTwo": {
   "additionalProperties": false,
   "properties": {
    "HierarchyLevelArn": {
     "$ref": "#/definitions/HierarchyLevelArn"
    },
    "HierarchyLevelId": {
     "$ref": "#/definitions/HierarchyLevelId"
    },
    "Name": {
     "$ref": "#/definitions/Name"
    }
   },
   "required": [
    "Name"
   ],
   "type": "object"
  },
  "Name": {
   "type": "string"
  }
 },
 "primaryIdentifier": [
  "/properties/UserHierarchyStructureArn"
 ],
 "properties": {
  "InstanceArn": {
   "pattern": "^arn:aws[-a-z0-9]*:connect:[-a-z0-9]*:[0-9]{12}:instance/[-a-zA-Z0-9]*$",
   "type": "string"
  },
  "UserHierarchyStructure": {
   "additionalProperties": false,
   "properties": {
    "LevelFive": {
     "$ref": "#/definitions/LevelFive"
    },
    "LevelFour": {
     "$ref": "#/definitions/LevelFour"
    },
    "LevelOne": {
     "$ref": "#/definitions/LevelOne"
    },
    "LevelThree": {
     "$ref": "#/definitions/LevelThree"
    },
    "LevelTwo": {
     "$ref": "#/definitions/LevelTwo"
    }
   },
   "type": "object"
  },
  "UserHierarchyStructureArn": {
   "pattern": "^arn:aws[-a-z0-9]*:connect:[-a-z0-9]*:[0-9]{12}:instance/[-a-zA-Z0-9]*/user-hierarchy-structure",
   "type": "string"
  }
 },
 "readOnlyProperties": [
  "/properties/UserHierarchyStructureArn"
 ],
 "required": [
  "InstanceArn"
 ],
 "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-connect",
 "tagging": {
  "cloudFormationSystemTags": false,
  "tagOnCreate": false,
  "tagUpdatable": false,
  "taggable": false
 },
 "typeName": "AWS::Connect::UserHierarchyStructure"
}
