{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-personalize/json-schema/amazon-personalize-list-campaigns-response-schema.json",
  "title": "ListCampaignsResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-personalize-campaign-api-openapi.yml#/components/schemas/ListCampaignsResponse",
  "type": "object",
  "properties": {
    "campaigns": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CampaignSummary"
      },
      "description": "A list of the campaigns."
    },
    "nextToken": {
      "type": "string",
      "description": "A token for getting the next set of campaigns (if they exist)."
    }
  },
  "$defs": {
    "CampaignSummary": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the campaign."
        },
        "campaignArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the campaign."
        },
        "status": {
          "type": "string",
          "description": "The status of the campaign. A campaign can be in one of the following states: CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED DELETE PENDING > DELETE IN_PROGRESS"
        },
        "creationDateTime": {
          "type": "string",
          "format": "date-time",
          "description": "The date and time (in Unix time) that the campaign was created."
        },
        "lastUpdatedDateTime": {
          "type": "string",
          "format": "date-time",
          "description": "The date and time (in Unix time) that the campaign was last updated."
        },
        "failureReason": {
          "type": "string",
          "description": "If a campaign fails, the reason behind the failure."
        }
      }
    }
  }
}