{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-codeguruprofiler-profilinggroup.json",
  "title": "AWSCodeGuruProfilerProfilingGroupProperties",
  "description": "This resource schema represents the Profiling Group resource in the Amazon CodeGuru Profiler service.. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-codeguru-profiler>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-codeguruprofiler-profilinggroup.json",
    "sourceSha256": "8ca53a1eab25a7998acd7ba025912e10fd2e57c07ae9ea83edd44f4457d7abc7"
  },
  "type": "object",
  "properties": {
    "ProfilingGroupName": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 255,
          "pattern": "^[\\w-]+$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The name of the profiling group."
    },
    "ComputePlatform": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "Default",
            "AWSLambda"
          ]
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The compute platform of the profiling group."
    },
    "AgentPermissions": {
      "description": "The agent permissions attached to this profiling group.",
      "type": "object",
      "properties": {
        "Principals": {
          "description": "The principals for the agent permissions.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/IamArn"
          }
        }
      },
      "required": [
        "Principals"
      ],
      "additionalProperties": false
    },
    "AnomalyDetectionNotificationConfiguration": {
      "description": "Configuration for Notification Channels for Anomaly Detection feature in CodeGuru Profiler which enables customers to detect anomalies in the application profile for those methods that represent the highest proportion of CPU time or latency",
      "type": "array",
      "items": {
        "$ref": "#/$defs/Channel"
      }
    },
    "Tags": {
      "description": "The tags associated with a profiling group.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "maxItems": 50,
      "uniqueItems": true
    }
  },
  "typeName": "AWS::CodeGuruProfiler::ProfilingGroup",
  "createOnlyProperties": [
    "/properties/ProfilingGroupName",
    "/properties/ComputePlatform"
  ],
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-codeguru-profiler",
  "additionalProperties": false,
  "readOnlyProperties": [
    "/properties/Arn"
  ],
  "$defs": {
    "ProfilingGroupArn": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^arn:aws([-\\w]*):codeguru-profiler:(([a-z]+-)+[0-9]+):([0-9]{12}):profilingGroup/[^.]+$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "title": "AWSCodeGuruProfilerProfilingGroupProfilingGroupArnDefinition"
    },
    "IamArn": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^arn:aws([-\\w]*):iam::([0-9]{12}):[\\S]+$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "title": "AWSCodeGuruProfilerProfilingGroupIamArnDefinition"
    },
    "Tag": {
      "description": "A key-value pair to associate with a resource.",
      "type": "object",
      "title": "AWSCodeGuruProfilerProfilingGroupTagDefinition",
      "properties": {
        "Key": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. The allowed characters across services are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @."
        },
        "Value": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 0,
              "maxLength": 256
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length. The allowed characters across services are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @."
        }
      },
      "required": [
        "Value",
        "Key"
      ],
      "additionalProperties": false
    },
    "ChannelId": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "Unique identifier for each Channel in the notification configuration of a Profiling Group",
      "title": "AWSCodeGuruProfilerProfilingGroupChannelIdDefinition"
    },
    "ChannelUri": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^arn:aws([-\\w]*):[a-z-]+:(([a-z]+-)+[0-9]+)?:([0-9]{12}):[^.]+$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "Unique arn of the resource to be used for notifications. We support a valid SNS topic arn as a channel uri.",
      "title": "AWSCodeGuruProfilerProfilingGroupChannelUriDefinition"
    },
    "Channel": {
      "description": "Notification medium for users to get alerted for events that occur in application profile. We support SNS topic as a notification channel.",
      "type": "object",
      "required": [
        "channelUri"
      ],
      "properties": {
        "channelId": {
          "$ref": "#/$defs/ChannelId"
        },
        "channelUri": {
          "$ref": "#/$defs/ChannelUri"
        }
      },
      "title": "AWSCodeGuruProfilerProfilingGroupChannelDefinition"
    }
  },
  "required": [
    "ProfilingGroupName"
  ],
  "primaryIdentifier": [
    "/properties/ProfilingGroupName"
  ]
}
