{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-audit-manager/json-schema/amazon-audit-manager-get-delegations-response-schema.json",
  "title": "GetDelegationsResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-audit-manager-delegations-api-openapi.yml#/components/schemas/GetDelegationsResponse",
  "type": "object",
  "properties": {
    "delegations": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/DelegationMetadata"
      },
      "description": "The list of delegations that the GetDelegations API returned."
    },
    "nextToken": {
      "type": "string",
      "description": "The pagination token that's used to fetch the next set of results."
    }
  },
  "$defs": {
    "DelegationMetadata": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The unique identifier for the delegation."
        },
        "assessmentName": {
          "type": "string",
          "description": "The name of the associated assessment."
        },
        "assessmentId": {
          "type": "string",
          "description": "The unique identifier for the assessment."
        },
        "status": {
          "type": "string",
          "enum": [
            "IN_PROGRESS",
            "UNDER_REVIEW",
            "COMPLETE"
          ],
          "description": "The current status of the delegation."
        },
        "roleArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the IAM role."
        },
        "creationTime": {
          "type": "string",
          "format": "date-time",
          "description": "Specifies when the delegation was created."
        },
        "controlSetName": {
          "type": "string",
          "description": "Specifies the name of the control set that was delegated for review."
        }
      }
    }
  }
}