{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-devops-guru/json-schema/amazon-devops-guru-search-organization-insights-response-schema.json",
  "title": "SearchOrganizationInsightsResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-devops-guru-organization-api-openapi.yml#/components/schemas/SearchOrganizationInsightsResponse",
  "type": "object",
  "properties": {
    "ProactiveInsights": {
      "allOf": [
        {
          "$ref": "#/$defs/ProactiveInsights"
        },
        {
          "description": "An integer that specifies the number of open proactive insights in your Amazon Web Services account."
        }
      ]
    },
    "ReactiveInsights": {
      "allOf": [
        {
          "$ref": "#/$defs/ReactiveInsights"
        },
        {
          "description": "An integer that specifies the number of open reactive insights in your Amazon Web Services account."
        }
      ]
    },
    "NextToken": {
      "allOf": [
        {
          "$ref": "#/$defs/UuidNextToken"
        },
        {
          "description": "The pagination token to use to retrieve the next page of results for this operation. If there are no more pages, this value is null."
        }
      ]
    }
  },
  "$defs": {
    "AppBoundaryKey": {
      "type": "string",
      "pattern": "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$",
      "minLength": 1,
      "maxLength": 128
    },
    "AssociatedResourceArns": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ResourceArn"
      }
    },
    "CloudFormationCollection": {
      "type": "object",
      "properties": {
        "StackNames": {
          "allOf": [
            {
              "$ref": "#/$defs/StackNames"
            },
            {
              "description": " An array of CloudFormation stack names. "
            }
          ]
        }
      },
      "description": " Information about Amazon Web Services CloudFormation stacks. You can use up to 500 stacks to specify which Amazon Web Services resources in your account to analyze. For more information, see <a href=\"https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacks.html\">Stacks</a> in the <i>Amazon Web Services CloudFormation User Guide</i>. "
    },
    "InsightId": {
      "type": "string",
      "pattern": "^[\\w-]*$",
      "minLength": 1,
      "maxLength": 100
    },
    "InsightName": {
      "type": "string",
      "pattern": "^[\\s\\S]*$",
      "minLength": 1,
      "maxLength": 530
    },
    "InsightSeverity": {
      "type": "string",
      "enum": [
        "LOW",
        "MEDIUM",
        "HIGH"
      ]
    },
    "InsightStatus": {
      "type": "string",
      "enum": [
        "ONGOING",
        "CLOSED"
      ]
    },
    "InsightTimeRange": {
      "type": "object",
      "required": [
        "StartTime"
      ],
      "properties": {
        "StartTime": {
          "allOf": [
            {
              "$ref": "#/$defs/Timestamp"
            },
            {
              "description": " The time when the behavior described in an insight started. "
            }
          ]
        },
        "EndTime": {
          "allOf": [
            {
              "$ref": "#/$defs/Timestamp"
            },
            {
              "description": " The time when the behavior described in an insight ended. "
            }
          ]
        }
      },
      "description": " A time ranged that specifies when the observed behavior in an insight started and ended. "
    },
    "PredictionTimeRange": {
      "type": "object",
      "required": [
        "StartTime"
      ],
      "properties": {
        "StartTime": {
          "allOf": [
            {
              "$ref": "#/$defs/Timestamp"
            },
            {
              "description": " The time range during which a metric limit is expected to be exceeded. This applies to proactive insights only. "
            }
          ]
        },
        "EndTime": {
          "allOf": [
            {
              "$ref": "#/$defs/Timestamp"
            },
            {
              "description": " The time when the behavior in a proactive insight is expected to end. "
            }
          ]
        }
      },
      "description": " The time range during which anomalous behavior in a proactive anomaly or an insight is expected to occur. "
    },
    "ProactiveInsightSummary": {
      "type": "object",
      "properties": {
        "Id": {
          "allOf": [
            {
              "$ref": "#/$defs/InsightId"
            },
            {
              "description": "The ID of the proactive insight. "
            }
          ]
        },
        "Name": {
          "allOf": [
            {
              "$ref": "#/$defs/InsightName"
            },
            {
              "description": "The name of the proactive insight. "
            }
          ]
        },
        "Severity": {
          "allOf": [
            {
              "$ref": "#/$defs/InsightSeverity"
            },
            {
              "description": "The severity of the insight. For more information, see <a href=\"https://docs.aws.amazon.com/devops-guru/latest/userguide/working-with-insights.html#understanding-insights-severities\">Understanding insight severities</a> in the <i>Amazon DevOps Guru User Guide</i>."
            }
          ]
        },
        "Status": {
          "allOf": [
            {
              "$ref": "#/$defs/InsightStatus"
            },
            {
              "description": "The status of the proactive insight. "
            }
          ]
        },
        "InsightTimeRange": {
          "$ref": "#/$defs/InsightTimeRange"
        },
        "PredictionTimeRange": {
          "$ref": "#/$defs/PredictionTimeRange"
        },
        "ResourceCollection": {
          "$ref": "#/$defs/ResourceCollection"
        },
        "ServiceCollection": {
          "allOf": [
            {
              "$ref": "#/$defs/ServiceCollection"
            },
            {
              "description": "A collection of the names of Amazon Web Services services."
            }
          ]
        },
        "AssociatedResourceArns": {
          "allOf": [
            {
              "$ref": "#/$defs/AssociatedResourceArns"
            },
            {
              "description": "The Amazon Resource Names (ARNs) of the Amazon Web Services resources that generated this insight."
            }
          ]
        }
      },
      "description": "Details about a proactive insight. This object is returned by <code>DescribeInsight.</code> "
    },
    "ProactiveInsights": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ProactiveInsightSummary"
      }
    },
    "ReactiveInsightSummary": {
      "type": "object",
      "properties": {
        "Id": {
          "allOf": [
            {
              "$ref": "#/$defs/InsightId"
            },
            {
              "description": " The ID of a reactive summary. "
            }
          ]
        },
        "Name": {
          "allOf": [
            {
              "$ref": "#/$defs/InsightName"
            },
            {
              "description": " The name of a reactive insight. "
            }
          ]
        },
        "Severity": {
          "allOf": [
            {
              "$ref": "#/$defs/InsightSeverity"
            },
            {
              "description": "The severity of the insight. For more information, see <a href=\"https://docs.aws.amazon.com/devops-guru/latest/userguide/working-with-insights.html#understanding-insights-severities\">Understanding insight severities</a> in the <i>Amazon DevOps Guru User Guide</i>."
            }
          ]
        },
        "Status": {
          "allOf": [
            {
              "$ref": "#/$defs/InsightStatus"
            },
            {
              "description": " The status of a reactive insight. "
            }
          ]
        },
        "InsightTimeRange": {
          "$ref": "#/$defs/InsightTimeRange"
        },
        "ResourceCollection": {
          "$ref": "#/$defs/ResourceCollection"
        },
        "ServiceCollection": {
          "allOf": [
            {
              "$ref": "#/$defs/ServiceCollection"
            },
            {
              "description": "A collection of the names of Amazon Web Services services."
            }
          ]
        },
        "AssociatedResourceArns": {
          "allOf": [
            {
              "$ref": "#/$defs/AssociatedResourceArns"
            },
            {
              "description": "The Amazon Resource Names (ARNs) of the Amazon Web Services resources that generated this insight."
            }
          ]
        }
      },
      "description": " Information about a reactive insight. This object is returned by <code>DescribeInsight.</code> "
    },
    "ReactiveInsights": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ReactiveInsightSummary"
      }
    },
    "ResourceArn": {
      "type": "string",
      "minLength": 20,
      "maxLength": 2048
    },
    "ResourceCollection": {
      "type": "object",
      "properties": {
        "CloudFormation": {
          "allOf": [
            {
              "$ref": "#/$defs/CloudFormationCollection"
            },
            {
              "description": " An array of the names of Amazon Web Services CloudFormation stacks. The stacks define Amazon Web Services resources that DevOps Guru analyzes. You can specify up to 500 Amazon Web Services CloudFormation stacks. "
            }
          ]
        },
        "Tags": {
          "allOf": [
            {
              "$ref": "#/$defs/TagCollections"
            },
            {
              "description": "<p>The Amazon Web Services tags that are used by resources in the resource collection.</p> <p>Tags help you identify and organize your Amazon Web Services resources. Many Amazon Web Services services support tagging, so you can assign the same tag to resources from different services to indicate that the resources are related. For example, you can assign the same tag to an Amazon DynamoDB table resource that you assign to an Lambda function. For more information about using tags, see the <a href=\"https://docs.aws.amazon.com/whitepapers/latest/tagging-best-practices/tagging-best-practices.html\">Tagging best practices</a> whitepaper. </p> <p>Each Amazon Web Services tag has two parts. </p> <ul> <li> <p>A tag <i>key</i> (for example, <code>CostCenter</code>, <code>Environment</code>, <code>Project</code>, or <code>Secret</code>). Tag <i>keys</i> are case-sensitive.</p> </li> <li> <p>An optional field known as a tag <i>value</i> (for example, <code>111122223333</code>, <code>Production</code>, or a team name). Omitting the tag <i>value</i> is the same as using an empty string. Like tag <i>keys</i>, tag <i>values</i> are case-sensitive.</p> </li> </ul> <p>Together these are known as <i>key</i>-<i>value</i> pairs.</p> <important> <p>The string used for a <i>key</i> in a tag that you use to define your resource coverage must begin with the prefix <code>Devops-guru-</code>. The tag <i>key</i> might be <code>DevOps-Guru-deployment-application</code> or <code>devops-guru-rds-application</code>. When you create a <i>key</i>, the case of characters in the <i>key</i> can be whatever you choose. After you create a <i>key</i>, it is case-sensitive. For example, DevOps Guru works with a <i>key</i> named <code>devops-guru-rds</code> and a <i>key</i> named <code>DevOps-Guru-RDS</code>, and these act as two different <i>keys</i>. Possible <i>key</i>/<i>value</i> pairs in your application might be <code>Devops-Guru-production-application/RDS</code> or <code>Devops-Guru-production-application/containers</code>.</p> </important>"
            }
          ]
        }
      },
      "description": " A collection of Amazon Web Services resources supported by DevOps Guru. The two types of Amazon Web Services resource collections supported are Amazon Web Services CloudFormation stacks and Amazon Web Services resources that contain the same Amazon Web Services tag. DevOps Guru can be configured to analyze the Amazon Web Services resources that are defined in the stacks or that are tagged using the same tag <i>key</i>. You can specify up to 500 Amazon Web Services CloudFormation stacks. "
    },
    "ServiceCollection": {
      "type": "object",
      "properties": {
        "ServiceNames": {
          "allOf": [
            {
              "$ref": "#/$defs/ServiceNames"
            },
            {
              "description": "An array of strings that each specifies the name of an Amazon Web Services service."
            }
          ]
        }
      },
      "description": "A collection of the names of Amazon Web Services services."
    },
    "ServiceName": {
      "type": "string",
      "enum": [
        "API_GATEWAY",
        "APPLICATION_ELB",
        "AUTO_SCALING_GROUP",
        "CLOUD_FRONT",
        "DYNAMO_DB",
        "EC2",
        "ECS",
        "EKS",
        "ELASTIC_BEANSTALK",
        "ELASTI_CACHE",
        "ELB",
        "ES",
        "KINESIS",
        "LAMBDA",
        "NAT_GATEWAY",
        "NETWORK_ELB",
        "RDS",
        "REDSHIFT",
        "ROUTE_53",
        "S3",
        "SAGE_MAKER",
        "SNS",
        "SQS",
        "STEP_FUNCTIONS",
        "SWF"
      ]
    },
    "ServiceNames": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ServiceName"
      }
    },
    "StackName": {
      "type": "string",
      "pattern": "^[a-zA-Z*]+[a-zA-Z0-9-]*$",
      "minLength": 1,
      "maxLength": 128
    },
    "StackNames": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/StackName"
      }
    },
    "TagCollection": {
      "type": "object",
      "required": [
        "AppBoundaryKey",
        "TagValues"
      ],
      "properties": {
        "AppBoundaryKey": {
          "allOf": [
            {
              "$ref": "#/$defs/AppBoundaryKey"
            },
            {
              "description": "<p>An Amazon Web Services tag <i>key</i> that is used to identify the Amazon Web Services resources that DevOps Guru analyzes. All Amazon Web Services resources in your account and Region tagged with this <i>key</i> make up your DevOps Guru application and analysis boundary.</p> <important> <p>The string used for a <i>key</i> in a tag that you use to define your resource coverage must begin with the prefix <code>Devops-guru-</code>. The tag <i>key</i> might be <code>DevOps-Guru-deployment-application</code> or <code>devops-guru-rds-application</code>. When you create a <i>key</i>, the case of characters in the <i>key</i> can be whatever you choose. After you create a <i>key</i>, it is case-sensitive. For example, DevOps Guru works with a <i>key</i> named <code>devops-guru-rds</code> and a <i>key</i> named <code>DevOps-Guru-RDS</code>, and these act as two different <i>keys</i>. Possible <i>key</i>/<i>value</i> pairs in your application might be <code>Devops-Guru-production-application/RDS</code> or <code>Devops-Guru-production-application/containers</code>.</p> </important>"
            }
          ]
        },
        "TagValues": {
          "allOf": [
            {
              "$ref": "#/$defs/TagValues"
            },
            {
              "description": "<p>The values in an Amazon Web Services tag collection.</p> <p>The tag's <i>value</i> is an optional field used to associate a string with the tag <i>key</i> (for example, <code>111122223333</code>, <code>Production</code>, or a team name). The <i>key</i> and <i>value</i> are the tag's <i>key</i> pair. Omitting the tag <i>value</i> is the same as using an empty string. Like tag <i>keys</i>, tag <i>values</i> are case-sensitive. You can specify a maximum of 256 characters for a tag value.</p>"
            }
          ]
        }
      },
      "description": "<p>A collection of Amazon Web Services tags.</p> <p>Tags help you identify and organize your Amazon Web Services resources. Many Amazon Web Services services support tagging, so you can assign the same tag to resources from different services to indicate that the resources are related. For example, you can assign the same tag to an Amazon DynamoDB table resource that you assign to an Lambda function. For more information about using tags, see the <a href=\"https://docs.aws.amazon.com/whitepapers/latest/tagging-best-practices/tagging-best-practices.html\">Tagging best practices</a> whitepaper. </p> <p>Each Amazon Web Services tag has two parts. </p> <ul> <li> <p>A tag <i>key</i> (for example, <code>CostCenter</code>, <code>Environment</code>, <code>Project</code>, or <code>Secret</code>). Tag <i>keys</i> are case-sensitive.</p> </li> <li> <p>An optional field known as a tag <i>value</i> (for example, <code>111122223333</code>, <code>Production</code>, or a team name). Omitting the tag <i>value</i> is the same as using an empty string. Like tag <i>keys</i>, tag <i>values</i> are case-sensitive.</p> </li> </ul> <p>Together these are known as <i>key</i>-<i>value</i> pairs.</p> <important> <p>The string used for a <i>key</i> in a tag that you use to define your resource coverage must begin with the prefix <code>Devops-guru-</code>. The tag <i>key</i> might be <code>DevOps-Guru-deployment-application</code> or <code>devops-guru-rds-application</code>. When you create a <i>key</i>, the case of characters in the <i>key</i> can be whatever you choose. After you create a <i>key</i>, it is case-sensitive. For example, DevOps Guru works with a <i>key</i> named <code>devops-guru-rds</code> and a <i>key</i> named <code>DevOps-Guru-RDS</code>, and these act as two different <i>keys</i>. Possible <i>key</i>/<i>value</i> pairs in your application might be <code>Devops-Guru-production-application/RDS</code> or <code>Devops-Guru-production-application/containers</code>.</p> </important>"
    },
    "TagCollections": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/TagCollection"
      }
    },
    "TagValue": {
      "type": "string",
      "pattern": "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*|\\*)$",
      "minLength": 0,
      "maxLength": 256
    },
    "TagValues": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/TagValue"
      }
    },
    "Timestamp": {
      "type": "string",
      "format": "date-time"
    },
    "UuidNextToken": {
      "type": "string",
      "pattern": "^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$",
      "minLength": 36,
      "maxLength": 36
    }
  }
}