{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-connect/json-schema/amazon-connect-describe-speaker-enrollment-job-response-schema.json",
  "title": "DescribeSpeakerEnrollmentJobResponse",
  "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/DescribeSpeakerEnrollmentJobResponse",
  "type": "object",
  "properties": {
    "Job": {
      "$ref": "#/$defs/SpeakerEnrollmentJob"
    }
  },
  "$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."
        }
      }
    },
    "FailureDetails": {
      "type": "object",
      "properties": {
        "StatusCode": {
          "type": "integer",
          "description": "An HTTP status code representing the nature of the error."
        },
        "Message": {
          "type": "string",
          "description": "A description of the error that caused the batch job failure."
        }
      }
    },
    "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"
      ]
    },
    "JobProgress": {
      "type": "object",
      "properties": {
        "PercentComplete": {
          "type": "integer",
          "description": "Shows the completed percentage of enrollment or registration requests listed in the input file."
        }
      }
    },
    "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"
      ]
    },
    "SpeakerEnrollmentJob": {
      "type": "object",
      "properties": {
        "JobName": {
          "type": "string",
          "description": "The client-provided name for the speaker enrollment job."
        },
        "JobId": {
          "type": "string",
          "description": "The service-generated identifier for the speaker enrollment job."
        },
        "JobStatus": {
          "type": "string",
          "description": "The current status of the speaker enrollment job."
        },
        "DomainId": {
          "type": "string",
          "description": "The identifier of the domain that contains the speaker enrollment job."
        },
        "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."
        },
        "EnrollmentConfig": {
          "$ref": "#/$defs/EnrollmentConfig"
        },
        "InputDataConfig": {
          "$ref": "#/$defs/InputDataConfig"
        },
        "OutputDataConfig": {
          "$ref": "#/$defs/OutputDataConfig"
        },
        "CreatedAt": {
          "type": "string",
          "format": "date-time",
          "description": "A timestamp of when the speaker enrollment job was created."
        },
        "EndedAt": {
          "type": "string",
          "format": "date-time",
          "description": "A timestamp of when the speaker enrollment job ended."
        },
        "FailureDetails": {
          "$ref": "#/$defs/FailureDetails"
        },
        "JobProgress": {
          "$ref": "#/$defs/JobProgress"
        }
      }
    }
  }
}