{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-bedrock/json-schema/amazon-bedrock-create-model-invocation-job-request-schema.json",
  "title": "CreateModelInvocationJobRequest",
  "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/CreateModelInvocationJobRequest",
  "type": "object",
  "properties": {
    "jobName": {
      "type": "string",
      "description": "A name to give the batch inference job."
    },
    "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."
    },
    "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."
    },
    "modelId": {
      "type": "string",
      "description": "The unique identifier of the foundation model to use for the batch inference job."
    },
    "inputDataConfig": {
      "$ref": "#/$defs/ModelInvocationJobInputDataConfig"
    },
    "outputDataConfig": {
      "$ref": "#/$defs/ModelInvocationJobOutputDataConfig"
    },
    "vpcConfig": {
      "$ref": "#/$defs/VpcConfig"
    },
    "timeoutDurationInHours": {
      "type": "integer",
      "description": "The number of hours after which to force the batch inference job to time out."
    },
    "tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "Any tags to associate with the batch inference job. For more information, see Tagging Amazon Bedrock resources."
    },
    "modelInvocationType": {
      "type": "string",
      "enum": [
        "InvokeModel",
        "Converse"
      ],
      "description": "The invocation endpoint for ModelInvocationJob"
    }
  },
  "required": [
    "jobName",
    "roleArn",
    "modelId",
    "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"
      ]
    },
    "Tag": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string",
          "description": "Key for the tag."
        },
        "value": {
          "type": "string",
          "description": "Value for the tag."
        }
      },
      "required": [
        "key",
        "value"
      ]
    },
    "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"
      ]
    }
  }
}