{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-resource-explorer/json-schema/amazon-resource-explorer-search-output-schema.json",
  "title": "SearchOutput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-resource-explorer-search-api-openapi.yml#/components/schemas/SearchOutput",
  "type": "object",
  "properties": {
    "Resources": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Resource"
      },
      "description": "The list of structures that describe the resources that match the query."
    },
    "NextToken": {
      "type": "string",
      "description": "If present, indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null. The pagination tokens expire after 24 hours."
    },
    "ViewArn": {
      "type": "string",
      "description": "The Amazon resource name (ARN) of the view that this operation used to perform the search."
    },
    "Count": {
      "$ref": "#/$defs/ResourceCount"
    }
  },
  "$defs": {
    "Resource": {
      "type": "object",
      "properties": {
        "Arn": {
          "type": "string",
          "description": "The Amazon resource name (ARN) of the resource."
        },
        "OwningAccountId": {
          "type": "string",
          "description": "The Amazon Web Services account that owns the resource."
        },
        "Region": {
          "type": "string",
          "description": "The Amazon Web Services Region in which the resource was created and exists."
        },
        "ResourceType": {
          "type": "string",
          "description": "The type of the resource."
        },
        "Service": {
          "type": "string",
          "description": "The Amazon Web Services service that owns the resource and is responsible for creating and updating it."
        },
        "CfnResourceType": {
          "type": "string",
          "description": "The CloudFormation resource type identifier for the resource, such as AWS::EC2::Instance or AWS::S3::Bucket."
        },
        "LastReportedAt": {
          "type": "string",
          "description": "The date and time that Resource Explorer last queried this resource and updated the index with the latest information about the resource."
        },
        "Properties": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ResourceProperty"
          },
          "description": "A structure with additional type-specific details about the resource. These properties can be added by turning on integration between Resource Explorer and other Amazon Web Services services."
        }
      }
    },
    "ResourceCount": {
      "type": "object",
      "properties": {
        "TotalResources": {
          "type": "integer",
          "description": "The number of resources that match the search query. This value can't exceed 1,000. If there are more than 1,000 resources that match the query, then only 1,000 are counted and the Complete field is set to false. We recommend that you refine your query to return a smaller number of results."
        },
        "Complete": {
          "type": "boolean",
          "description": "Indicates whether the TotalResources value represents an exhaustive count of search results. If True, it indicates that the search was exhaustive. Every resource that matches the query was counted. If False, then the search reached the limit of 1,000 matching results, and stopped counting."
        }
      }
    },
    "ResourceProperty": {
      "type": "object",
      "properties": {
        "Name": {
          "type": "string",
          "description": "The name of this property of the resource."
        },
        "LastReportedAt": {
          "type": "string",
          "description": "The date and time that the information about this resource property was last updated."
        },
        "Data": {
          "type": "object",
          "description": "Details about this property. The content of this field is a JSON object that varies based on the resource type."
        }
      }
    }
  }
}