{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-xray/json-schema/amazon-xray-create-group-request-schema.json",
  "title": "CreateGroupRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-xray-creategroup-api-openapi.yml#/components/schemas/CreateGroupRequest",
  "type": "object",
  "properties": {
    "GroupName": {
      "type": "string",
      "description": "The case-sensitive name of the new group. Default is a reserved name and names must be unique."
    },
    "FilterExpression": {
      "type": "string",
      "description": "The filter expression defining criteria by which to group traces."
    },
    "InsightsConfiguration": {
      "$ref": "#/$defs/InsightsConfiguration"
    },
    "Tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "A map that contains one or more tag keys and tag values to attach to an X-Ray group. For more information about ways to use tags, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference. The following restrictions apply to tags: Maximum number of user-applied tags per resource: 50 Maximum tag key length: 128 Unicode characters Maximum tag value length: 256 Unicode characters Valid values for key and value: a-z, A-Z, 0-9, space, and the following characters: _ . : / = + - and @ Tag keys and values are case sensitive. Don't use aws: as a prefix for keys; it's reser"
    }
  },
  "required": [
    "GroupName"
  ],
  "$defs": {
    "InsightsConfiguration": {
      "type": "object",
      "properties": {
        "InsightsEnabled": {
          "type": "boolean",
          "description": "Set the InsightsEnabled value to true to enable insights or false to disable insights."
        },
        "NotificationsEnabled": {
          "type": "boolean",
          "description": "Set the NotificationsEnabled value to true to enable insights notifications. Notifications can only be enabled on a group with InsightsEnabled set to true."
        }
      }
    },
    "Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "A tag key, such as Stage or Name. A tag key cannot be empty. The key can be a maximum of 128 characters, and can contain only Unicode letters, numbers, or separators, or the following special characters: + - = . _ : /"
        },
        "Value": {
          "type": "string",
          "description": "An optional tag value, such as Production or test-only. The value can be a maximum of 255 characters, and contain only Unicode letters, numbers, or separators, or the following special characters: + - = . _ : /"
        }
      },
      "required": [
        "Key",
        "Value"
      ]
    }
  }
}