{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-ec2/json-schema/amazon-ec2-describe-image-usage-reports-result-schema.json",
  "title": "DescribeImageUsageReportsResult",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-ec2-image-usage-report-api-openapi.yml#/components/schemas/DescribeImageUsageReportsResult",
  "type": "object",
  "properties": {
    "NextToken": {
      "type": "string",
      "description": "The token to include in another request to get the next page of items. This value is null when there are no more items to return."
    },
    "ImageUsageReports": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ImageUsageReport"
      },
      "description": "The image usage reports."
    }
  },
  "$defs": {
    "ImageUsageReport": {
      "type": "object",
      "properties": {
        "ImageId": {
          "type": "string",
          "description": "The ID of the image that was specified when the report was created."
        },
        "ReportId": {
          "type": "string",
          "description": "The ID of the report."
        },
        "ResourceTypes": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ImageUsageResourceType"
          },
          "description": "The resource types that were specified when the report was created."
        },
        "AccountIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The IDs of the Amazon Web Services accounts that were specified when the report was created."
        },
        "State": {
          "type": "string",
          "description": "The current state of the report. Possible values: available - The report is available to view. pending - The report is being created and not available to view. error - The report could not be created."
        },
        "StateReason": {
          "type": "string",
          "description": "Provides additional details when the report is in an error state."
        },
        "CreationTime": {
          "type": "string",
          "format": "date-time",
          "description": "The date and time when the report was created."
        },
        "ExpirationTime": {
          "type": "string",
          "format": "date-time",
          "description": "The date and time when Amazon EC2 will delete the report (30 days after the report was created)."
        },
        "Tags": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Tag"
          },
          "description": "Any tags assigned to the report."
        }
      }
    },
    "ImageUsageResourceType": {
      "type": "object",
      "properties": {
        "ResourceType": {
          "type": "string",
          "description": "The resource type. Valid values: ec2:Instance | ec2:LaunchTemplate"
        },
        "ResourceTypeOptions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ImageUsageResourceTypeOption"
          },
          "description": "The options that affect the scope of the report. Valid only when ResourceType is ec2:LaunchTemplate."
        }
      }
    },
    "ImageUsageResourceTypeOption": {
      "type": "object",
      "properties": {
        "OptionName": {
          "type": "string",
          "description": "The name of the option."
        },
        "OptionValues": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The number of launch template versions to check."
        }
      }
    },
    "Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "The key of the tag. Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:."
        },
        "Value": {
          "type": "string",
          "description": "The value of the tag. Constraints: Tag values are case-sensitive and accept a maximum of 256 Unicode characters."
        }
      }
    }
  }
}