{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-inspector/json-schema/amazon-inspector-batch-get-free-trial-info-response-schema.json",
  "title": "BatchGetFreeTrialInfoResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-inspector-freetrialinfo-api-openapi.yml#/components/schemas/BatchGetFreeTrialInfoResponse",
  "type": "object",
  "properties": {
    "accounts": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/FreeTrialAccountInfo"
      },
      "description": "An array of objects that provide Amazon Inspector free trial details for each of the requested accounts."
    },
    "failedAccounts": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/FreeTrialInfoError"
      },
      "description": "An array of objects detailing any accounts that free trial data could not be returned for."
    }
  },
  "required": [
    "accounts",
    "failedAccounts"
  ],
  "$defs": {
    "FreeTrialAccountInfo": {
      "type": "object",
      "properties": {
        "accountId": {
          "type": "string",
          "description": "The account associated with the Amazon Inspector free trial information."
        },
        "freeTrialInfo": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/FreeTrialInfo"
          },
          "description": "Contains information about the Amazon Inspector free trial for an account."
        }
      },
      "required": [
        "accountId",
        "freeTrialInfo"
      ]
    },
    "FreeTrialInfo": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "description": "The type of scan covered by the Amazon Inspector free trail."
        },
        "start": {
          "type": "string",
          "description": "The date and time that the Amazon Inspector free trail started for a given account."
        },
        "end": {
          "type": "string",
          "description": "The date and time that the Amazon Inspector free trail ends for a given account."
        },
        "status": {
          "type": "string",
          "description": "The order to sort results by."
        },
        "cloudProvider": {
          "type": "string",
          "description": "The cloud provider associated with the free trial information."
        }
      },
      "required": [
        "type",
        "start",
        "end",
        "status"
      ]
    },
    "FreeTrialInfoError": {
      "type": "object",
      "properties": {
        "accountId": {
          "type": "string",
          "description": "The account associated with the Amazon Inspector free trial information."
        },
        "code": {
          "type": "string",
          "description": "The error code."
        },
        "message": {
          "type": "string",
          "description": "The error message returned."
        }
      },
      "required": [
        "accountId",
        "code",
        "message"
      ]
    }
  }
}