{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aws-security-hub/json-schema/aws-security-hub-get-software-resources-v2-response-schema.json",
  "title": "GetSoftwareResourcesV2Response",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aws-security-hub-softwarev2-api-openapi.yml#/components/schemas/GetSoftwareResourcesV2Response",
  "type": "object",
  "properties": {
    "SoftwareResources": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/SoftwareResourceResult"
      },
      "description": "An array of resources that contain the specified software package."
    },
    "NextToken": {
      "type": "string",
      "description": "The pagination token to use to request the next page of results. Otherwise, this parameter is null."
    }
  },
  "required": [
    "SoftwareResources"
  ],
  "$defs": {
    "SoftwareResourceResult": {
      "type": "object",
      "properties": {
        "AccountId": {
          "type": "string",
          "description": "The Amazon Web Services account that recorded the resource data in Security Hub."
        },
        "ResourceType": {
          "type": "string",
          "description": "The type of resource, for example AWS::EC2::Instance or AWS::Lambda::Function."
        },
        "Region": {
          "type": "string",
          "description": "The Amazon Web Services Region that recorded the resource data in Security Hub."
        },
        "ResourceId": {
          "type": "string",
          "description": "The unique identifier for a resource."
        },
        "ResourceProvider": {
          "type": "string",
          "description": "The cloud provider where the resource exists. Valid values are AWS and Azure."
        },
        "ResourceOwnerOrgId": {
          "type": "string",
          "description": "The identifier of the cloud organization that owns the resource. For Amazon Web Services resources, this is the Organizations ID. For Azure resources, this is the Azure tenant ID."
        },
        "ResourceOwnerAccountId": {
          "type": "string",
          "description": "The identifier of the cloud account that owns the resource. For Amazon Web Services resources, this is the Amazon Web Services account ID. For Azure resources, this is the Azure subscription ID."
        },
        "ResourceCloudPartition": {
          "type": "string",
          "description": "The cloud partition where the resource exists. For Amazon Web Services, valid values include aws, aws-cn, and aws-us-gov. This field isn't returned for cloud providers that don't use partitions."
        },
        "ResourceRegion": {
          "type": "string",
          "description": "The native cloud region where the resource is located. For Amazon Web Services, this is an Amazon Web Services Region (for example, us-east-1). For Azure resources, this is the Azure region (for example, westus2)."
        }
      },
      "required": [
        "AccountId",
        "ResourceType",
        "Region",
        "ResourceId"
      ]
    }
  }
}