{
 "additionalProperties": false,
 "createOnlyProperties": [
  "/properties/Name"
 ],
 "definitions": {
  "Configuration": {
   "items": {
    "$ref": "#/definitions/ConfigurationItem"
   },
   "maxItems": 2,
   "minItems": 0,
   "type": "array"
  },
  "ConfigurationItem": {
   "additionalProperties": false,
   "properties": {
    "Parameters": {
     "items": {
      "$ref": "#/definitions/ConfigurationParameter"
     },
     "type": "array"
    },
    "Type": {
     "maxLength": 40,
     "minLength": 0,
     "pattern": "^AWS::[a-zA-Z0-9]+::[a-zA-Z0-9]+$",
     "type": "string"
    }
   },
   "type": "object"
  },
  "ConfigurationParameter": {
   "additionalProperties": false,
   "properties": {
    "Name": {
     "maxLength": 80,
     "minLength": 1,
     "pattern": "^[a-z-]+$",
     "type": "string"
    },
    "Values": {
     "items": {
      "maxLength": 256,
      "minLength": 1,
      "pattern": "^[a-zA-Z0-9:\\/\\._-]+$",
      "type": "string"
     },
     "type": "array"
    }
   },
   "type": "object"
  },
  "Query": {
   "additionalProperties": false,
   "maxLength": 4096,
   "minLength": 0,
   "properties": {
    "ResourceTypeFilters": {
     "items": {
      "type": "string"
     },
     "type": "array"
    },
    "StackIdentifier": {
     "type": "string"
    },
    "TagFilters": {
     "items": {
      "$ref": "#/definitions/TagFilter"
     },
     "type": "array"
    }
   },
   "type": "object"
  },
  "ResourceQuery": {
   "additionalProperties": false,
   "properties": {
    "Query": {
     "$ref": "#/definitions/Query"
    },
    "Type": {
     "enum": [
      "TAG_FILTERS_1_0",
      "CLOUDFORMATION_STACK_1_0"
     ],
     "maxLength": 128,
     "minLength": 1,
     "type": "string"
    }
   },
   "type": "object"
  },
  "Tag": {
   "additionalProperties": false,
   "properties": {
    "Key": {
     "pattern": "^(?!aws:).+",
     "type": "string"
    },
    "Value": {
     "type": "string"
    }
   },
   "type": "object"
  },
  "TagFilter": {
   "additionalProperties": false,
   "properties": {
    "Key": {
     "type": "string"
    },
    "Values": {
     "items": {
      "type": "string"
     },
     "type": "array"
    }
   },
   "type": "object"
  }
 },
 "primaryIdentifier": [
  "/properties/Name"
 ],
 "properties": {
  "Arn": {
   "type": "string"
  },
  "Configuration": {
   "$ref": "#/definitions/Configuration"
  },
  "Description": {
   "maxLength": 512,
   "minLength": 0,
   "pattern": "^[\\sa-zA-Z0-9_\\.-]*$",
   "type": "string"
  },
  "Name": {
   "maxLength": 128,
   "minLength": 1,
   "pattern": "^[a-zA-Z0-9_\\.-]+$",
   "type": "string"
  },
  "ResourceQuery": {
   "$ref": "#/definitions/ResourceQuery"
  },
  "Resources": {
   "items": {
    "type": "string"
   },
   "type": "array"
  },
  "Tags": {
   "items": {
    "$ref": "#/definitions/Tag"
   },
   "type": "array"
  }
 },
 "readOnlyProperties": [
  "/properties/Arn"
 ],
 "required": [
  "Name"
 ],
 "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git",
 "tagging": {
  "cloudFormationSystemTags": true,
  "tagOnCreate": true,
  "tagProperty": "/properties/Tags",
  "tagUpdatable": true,
  "taggable": true
 },
 "typeName": "AWS::ResourceGroups::Group"
}
