{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-bedrock/json-schema/amazon-bedrock-get-model-invocation-job-response-schema.json",
  "title": "GetModelInvocationJobResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-bedrock-operations-api-openapi.yml#/components/schemas/GetModelInvocationJobResponse",
  "type": "object",
  "properties": {
    "jobArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the batch inference job."
    },
    "jobName": {
      "type": "string",
      "description": "The name of the batch inference job."
    },
    "modelId": {
      "type": "string",
      "description": "The unique identifier of the foundation model used for model inference."
    },
    "clientRequestToken": {
      "type": "string",
      "description": "A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency."
    },
    "roleArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the service role with permissions to carry out and manage batch inference. You can use the console to create a default service role or follow the steps at Create a service role for batch inference."
    },
    "status": {
      "type": "string",
      "enum": [
        "Submitted",
        "InProgress",
        "Completed",
        "Failed",
        "Stopping",
        "Stopped",
        "PartiallyCompleted",
        "Expired",
        "Validating",
        "Scheduled"
      ],
      "description": "The status of the batch inference job. The following statuses are possible: Submitted – This job has been submitted to a queue for validation. Validating – This job is being validated for the requirements described in Format and upload your batch inference data. The criteria include the following: Your IAM service role has access to the Amazon S3 buckets containing your files. Your files are .jsonl files and each individual record is a JSON object in the correct format. Note that validation doesn't check if the modelInput value matches the request body for the model. Your files fulfill the req"
    },
    "message": {
      "type": "string",
      "description": "If the batch inference job failed, this field contains a message describing why the job failed."
    },
    "submitTime": {
      "type": "string",
      "format": "date-time",
      "description": "The time at which the batch inference job was submitted."
    },
    "lastModifiedTime": {
      "type": "string",
      "format": "date-time",
      "description": "The time at which the batch inference job was last modified."
    },
    "endTime": {
      "type": "string",
      "format": "date-time",
      "description": "The time at which the batch inference job ended."
    },
    "inputDataConfig": {
      "$ref": "#/$defs/ModelInvocationJobInputDataConfig"
    },
    "outputDataConfig": {
      "$ref": "#/$defs/ModelInvocationJobOutputDataConfig"
    },
    "vpcConfig": {
      "$ref": "#/$defs/VpcConfig"
    },
    "timeoutDurationInHours": {
      "type": "integer",
      "description": "The number of hours after which batch inference job was set to time out."
    },
    "jobExpirationTime": {
      "type": "string",
      "format": "date-time",
      "description": "The time at which the batch inference job times or timed out."
    },
    "modelInvocationType": {
      "type": "string",
      "enum": [
        "InvokeModel",
        "Converse"
      ],
      "description": "The invocation endpoint for ModelInvocationJob"
    },
    "totalRecordCount": {
      "type": "integer",
      "description": "The total number of records in the batch inference job."
    },
    "processedRecordCount": {
      "type": "integer",
      "description": "The number of records that have been processed in the batch inference job."
    },
    "successRecordCount": {
      "type": "integer",
      "description": "The number of records that were successfully processed in the batch inference job."
    },
    "errorRecordCount": {
      "type": "integer",
      "description": "The number of records that failed to process in the batch inference job."
    }
  },
  "required": [
    "jobArn",
    "modelId",
    "roleArn",
    "submitTime",
    "inputDataConfig",
    "outputDataConfig"
  ],
  "$defs": {
    "ModelInvocationJobInputDataConfig": {
      "type": "object",
      "properties": {
        "s3InputDataConfig": {
          "$ref": "#/$defs/ModelInvocationJobS3InputDataConfig"
        }
      },
      "description": "Exactly one member is set."
    },
    "ModelInvocationJobOutputDataConfig": {
      "type": "object",
      "properties": {
        "s3OutputDataConfig": {
          "$ref": "#/$defs/ModelInvocationJobS3OutputDataConfig"
        }
      },
      "description": "Exactly one member is set."
    },
    "ModelInvocationJobS3InputDataConfig": {
      "type": "object",
      "properties": {
        "s3InputFormat": {
          "type": "string",
          "enum": [
            "JSONL"
          ],
          "description": "The format of the input data."
        },
        "s3Uri": {
          "type": "string",
          "description": "The S3 location of the input data."
        },
        "s3BucketOwner": {
          "type": "string",
          "description": "The ID of the Amazon Web Services account that owns the S3 bucket containing the input data."
        }
      },
      "required": [
        "s3Uri"
      ]
    },
    "ModelInvocationJobS3OutputDataConfig": {
      "type": "object",
      "properties": {
        "s3Uri": {
          "type": "string",
          "description": "The S3 location of the output data."
        },
        "s3EncryptionKeyId": {
          "type": "string",
          "description": "The unique identifier of the key that encrypts the S3 location of the output data."
        },
        "s3BucketOwner": {
          "type": "string",
          "description": "The ID of the Amazon Web Services account that owns the S3 bucket containing the output data."
        }
      },
      "required": [
        "s3Uri"
      ]
    },
    "VpcConfig": {
      "type": "object",
      "properties": {
        "subnetIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "An array of IDs for each subnet in the VPC to use."
        },
        "securityGroupIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "An array of IDs for each security group in the VPC to use."
        }
      },
      "required": [
        "subnetIds",
        "securityGroupIds"
      ]
    }
  }
}