{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-bedrock/json-schema/amazon-bedrock-create-model-import-job-request-schema.json",
  "title": "CreateModelImportJobRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-bedrock-model-import-jobs-api-openapi.yml#/components/schemas/CreateModelImportJobRequest",
  "type": "object",
  "properties": {
    "jobName": {
      "type": "string",
      "description": "The name of the import job."
    },
    "importedModelName": {
      "type": "string",
      "description": "The name of the imported model."
    },
    "roleArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the model import job."
    },
    "modelDataSource": {
      "$ref": "#/$defs/ModelDataSource"
    },
    "jobTags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "Tags to attach to this import job."
    },
    "importedModelTags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "Tags to attach to the imported model."
    },
    "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."
    },
    "vpcConfig": {
      "$ref": "#/$defs/VpcConfig"
    },
    "importedModelKmsKeyId": {
      "type": "string",
      "description": "The imported model is encrypted at rest using this key."
    }
  },
  "required": [
    "jobName",
    "importedModelName",
    "roleArn",
    "modelDataSource"
  ],
  "$defs": {
    "ModelDataSource": {
      "type": "object",
      "properties": {
        "s3DataSource": {
          "$ref": "#/$defs/S3DataSource"
        }
      },
      "description": "Exactly one member is set."
    },
    "S3DataSource": {
      "type": "object",
      "properties": {
        "s3Uri": {
          "type": "string",
          "description": "The URI of the Amazon S3 data source."
        }
      },
      "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"
      ]
    }
  }
}