{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-connect/json-schema/amazon-connect-start-speaker-enrollment-job-request-schema.json",
  "title": "StartSpeakerEnrollmentJobRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-connect-speaker-enrollment-job-api-openapi.yml#/components/schemas/StartSpeakerEnrollmentJobRequest",
  "type": "object",
  "properties": {
    "ClientToken": {
      "type": "string",
      "description": "A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs."
    },
    "JobName": {
      "type": "string",
      "description": "A name for your speaker enrollment job."
    },
    "DomainId": {
      "type": "string",
      "description": "The identifier of the domain that contains the speaker enrollment job and in which the speakers are enrolled."
    },
    "DataAccessRoleArn": {
      "type": "string",
      "description": "The IAM role Amazon Resource Name (ARN) that grants Voice ID permissions to access customer's buckets to read the input manifest file and write the job output file. Refer to Batch enrollment using audio data from prior calls for the permissions needed in this role."
    },
    "EnrollmentConfig": {
      "$ref": "#/$defs/EnrollmentConfig"
    },
    "InputDataConfig": {
      "$ref": "#/$defs/InputDataConfig"
    },
    "OutputDataConfig": {
      "$ref": "#/$defs/OutputDataConfig"
    }
  },
  "required": [
    "DomainId",
    "DataAccessRoleArn",
    "InputDataConfig",
    "OutputDataConfig"
  ],
  "$defs": {
    "EnrollmentConfig": {
      "type": "object",
      "properties": {
        "ExistingEnrollmentAction": {
          "type": "string",
          "description": "The action to take when the specified speaker is already enrolled in the specified domain. The default value is SKIP, which skips the enrollment for the existing speaker. Setting the value to OVERWRITE replaces the existing voice prints and enrollment audio stored for that speaker with new data generated from the latest audio."
        },
        "FraudDetectionConfig": {
          "$ref": "#/$defs/EnrollmentJobFraudDetectionConfig"
        }
      }
    },
    "EnrollmentJobFraudDetectionConfig": {
      "type": "object",
      "properties": {
        "FraudDetectionAction": {
          "type": "string",
          "description": "The action to take when the given speaker is flagged by the fraud detection system. The default value is FAIL, which fails the speaker enrollment. Changing this value to IGNORE results in the speaker being enrolled even if they are flagged by the fraud detection system."
        },
        "RiskThreshold": {
          "type": "integer",
          "description": "Threshold value for determining whether the speaker is a high risk to be fraudulent. If the detected risk score calculated by Voice ID is greater than or equal to the threshold, the speaker is considered a fraudster."
        },
        "WatchlistIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The identifier of watchlists against which fraud detection is performed."
        }
      }
    },
    "InputDataConfig": {
      "type": "object",
      "properties": {
        "S3Uri": {
          "type": "string",
          "description": "The S3 location for the input manifest file that contains the list of individual enrollment or registration job requests."
        }
      },
      "required": [
        "S3Uri"
      ]
    },
    "OutputDataConfig": {
      "type": "object",
      "properties": {
        "S3Uri": {
          "type": "string",
          "description": "The S3 path of the folder where Voice ID writes the job output file. It has a *.out extension. For example, if the input file name is input-file.json and the output folder path is s3://output-bucket/output-folder, the full output file path is s3://output-bucket/output-folder/job-Id/input-file.json.out."
        },
        "KmsKeyId": {
          "type": "string",
          "description": "The identifier of the KMS key you want Voice ID to use to encrypt the output file of a speaker enrollment job/fraudster registration job."
        }
      },
      "required": [
        "S3Uri"
      ]
    }
  }
}