{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-audit-manager/json-schema/amazon-audit-manager-batch-create-delegation-by-assessment-request-schema.json",
  "title": "BatchCreateDelegationByAssessmentRequest",
  "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/BatchCreateDelegationByAssessmentRequest",
  "type": "object",
  "properties": {
    "createDelegationRequests": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CreateDelegationRequest"
      },
      "description": "The API request to batch create delegations in Audit Manager."
    },
    "assessmentId": {
      "type": "string",
      "description": "The identifier for the assessment."
    }
  },
  "required": [
    "createDelegationRequests",
    "assessmentId"
  ],
  "$defs": {
    "CreateDelegationRequest": {
      "type": "object",
      "properties": {
        "comment": {
          "type": "string",
          "description": "A comment that's related to the delegation request."
        },
        "controlSetId": {
          "type": "string",
          "description": "The unique identifier for the control set."
        },
        "roleArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the IAM role."
        },
        "roleType": {
          "type": "string",
          "enum": [
            "PROCESS_OWNER",
            "RESOURCE_OWNER"
          ],
          "description": "The type of customer persona. In CreateAssessment, roleType can only be PROCESS_OWNER. In UpdateSettings, roleType can only be PROCESS_OWNER. In BatchCreateDelegationByAssessment, roleType can only be RESOURCE_OWNER."
        }
      }
    }
  }
}