{
  "typeName" : "AWS::XRay::Group",
  "description" : "This schema provides construct and validation rules for AWS-XRay Group resource parameters.",
  "sourceUrl" : "https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git",
  "properties" : {
    "FilterExpression" : {
      "description" : "The filter expression defining criteria by which to group traces.",
      "type" : "string"
    },
    "GroupName" : {
      "description" : "The case-sensitive name of the new group. Names must be unique.",
      "type" : "string",
      "minLength" : 1,
      "maxLength" : 32
    },
    "GroupARN" : {
      "description" : "The ARN of the group that was generated on creation.",
      "type" : "string",
      "minLength" : 1,
      "maxLength" : 400
    },
    "InsightsConfiguration" : {
      "$ref" : "#/definitions/InsightsConfiguration"
    },
    "Tags" : {
      "$ref" : "#/definitions/Tags"
    }
  },
  "definitions" : {
    "InsightsConfiguration" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "InsightsEnabled" : {
          "description" : "Set the InsightsEnabled value to true to enable insights or false to disable insights.",
          "type" : "boolean"
        },
        "NotificationsEnabled" : {
          "description" : "Set the NotificationsEnabled value to true to enable insights notifications. Notifications can only be enabled on a group with InsightsEnabled set to true.",
          "type" : "boolean"
        }
      }
    },
    "Tags" : {
      "type" : "array",
      "insertionOrder" : false,
      "items" : {
        "type" : "object",
        "required" : [ "Key", "Value" ],
        "properties" : {
          "Key" : {
            "type" : "string"
          },
          "Value" : {
            "type" : "string"
          }
        },
        "additionalProperties" : false
      }
    }
  },
  "handlers" : {
    "create" : {
      "permissions" : [ "xray:CreateGroup", "xray:TagResource" ]
    },
    "read" : {
      "permissions" : [ "xray:GetGroup" ]
    },
    "update" : {
      "permissions" : [ "xray:UpdateGroup" ]
    },
    "delete" : {
      "permissions" : [ "xray:DeleteGroup" ]
    }
  },
  "additionalProperties" : false,
  "primaryIdentifier" : [ "/properties/GroupARN" ],
  "readOnlyProperties" : [ "/properties/GroupARN" ]
}