{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-data-exchange/json-schema/amazon-data-exchange-list-data-grants-response-schema.json",
  "title": "ListDataGrantsResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-data-exchange-data-grants-api-openapi.yml#/components/schemas/ListDataGrantsResponse",
  "type": "object",
  "properties": {
    "DataGrantSummaries": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/DataGrantSummaryEntry"
      },
      "description": "An object that contains a list of data grant information."
    },
    "NextToken": {
      "type": "string",
      "description": "The pagination token used to retrieve the next page of results for this operation."
    }
  },
  "$defs": {
    "DataGrantSummaryEntry": {
      "type": "object",
      "properties": {
        "Name": {
          "type": "string",
          "description": "The name of the data grant."
        },
        "SenderPrincipal": {
          "type": "string",
          "description": "The Amazon Web Services account ID of the data grant sender."
        },
        "ReceiverPrincipal": {
          "type": "string",
          "description": "The Amazon Web Services account ID of the data grant receiver."
        },
        "AcceptanceState": {
          "type": "string",
          "description": "The acceptance state of the data grant."
        },
        "AcceptedAt": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp of when the data grant was accepted."
        },
        "EndsAt": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp of when access to the associated data set ends."
        },
        "DataSetId": {
          "type": "string",
          "description": "The ID of the data set associated to the data grant."
        },
        "SourceDataSetId": {
          "type": "string",
          "description": "The ID of the data set used to create the data grant."
        },
        "Id": {
          "type": "string",
          "description": "The ID of the data grant."
        },
        "Arn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the data grant."
        },
        "CreatedAt": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp of when the data grant was created."
        },
        "UpdatedAt": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp of when the data grant was last updated."
        }
      },
      "required": [
        "Name",
        "SenderPrincipal",
        "ReceiverPrincipal",
        "AcceptanceState",
        "DataSetId",
        "SourceDataSetId",
        "Id",
        "Arn",
        "CreatedAt",
        "UpdatedAt"
      ]
    }
  }
}