{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-bedrock/json-schema/amazon-bedrock-invoke-data-automation-library-ingestion-job-request-schema.json",
  "title": "InvokeDataAutomationLibraryIngestionJobRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-bedrock-library-ingestion-jobs-api-openapi.yml#/components/schemas/InvokeDataAutomationLibraryIngestionJobRequest",
  "type": "object",
  "properties": {
    "libraryArn": {
      "type": "string",
      "description": "ARN generated at the server side when a DataAutomationLibrary is created"
    },
    "clientToken": {
      "type": "string",
      "description": "Idempotency token"
    },
    "inputConfiguration": {
      "$ref": "#/$defs/InputConfiguration"
    },
    "entityType": {
      "type": "string",
      "enum": [
        "VOCABULARY"
      ],
      "description": "The entity type for which DataAutomationLibraryIngestionJob is being run"
    },
    "operationType": {
      "type": "string",
      "enum": [
        "UPSERT",
        "DELETE"
      ],
      "description": "The operation to be performed by DataAutomationLibraryIngestionJob"
    },
    "outputConfiguration": {
      "$ref": "#/$defs/OutputConfiguration"
    },
    "notificationConfiguration": {
      "$ref": "#/$defs/NotificationConfiguration"
    },
    "tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/BedrockDataAutomationTag"
      },
      "description": "List of tags"
    }
  },
  "required": [
    "libraryArn",
    "inputConfiguration",
    "entityType",
    "operationType",
    "outputConfiguration"
  ],
  "$defs": {
    "BedrockDataAutomationTag": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string"
        },
        "value": {
          "type": "string"
        }
      },
      "required": [
        "key",
        "value"
      ]
    },
    "DeleteEntitiesInfo": {
      "type": "object",
      "properties": {
        "entityIds": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "entityIds"
      ]
    },
    "EventBridgeConfiguration": {
      "type": "object",
      "properties": {
        "eventBridgeEnabled": {
          "type": "boolean",
          "description": "Event bridge flag."
        }
      },
      "required": [
        "eventBridgeEnabled"
      ]
    },
    "InlinePayload": {
      "type": "object",
      "properties": {
        "upsertEntitiesInfo": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/UpsertEntityInfo"
          }
        },
        "deleteEntitiesInfo": {
          "$ref": "#/$defs/DeleteEntitiesInfo"
        }
      },
      "description": "Exactly one member is set."
    },
    "InputConfiguration": {
      "type": "object",
      "properties": {
        "s3Object": {
          "$ref": "#/$defs/S3Object"
        },
        "inlinePayload": {
          "$ref": "#/$defs/InlinePayload"
        }
      }
    },
    "NotificationConfiguration": {
      "type": "object",
      "properties": {
        "eventBridgeConfiguration": {
          "$ref": "#/$defs/EventBridgeConfiguration"
        }
      },
      "required": [
        "eventBridgeConfiguration"
      ]
    },
    "OutputConfiguration": {
      "type": "object",
      "properties": {
        "s3Uri": {
          "type": "string",
          "description": "S3 Uri"
        }
      },
      "required": [
        "s3Uri"
      ]
    },
    "Phrase": {
      "type": "object",
      "properties": {
        "text": {
          "type": "string"
        },
        "displayAsText": {
          "type": "string"
        }
      },
      "required": [
        "text"
      ]
    },
    "S3Object": {
      "type": "object",
      "properties": {
        "s3Uri": {
          "type": "string",
          "description": "S3 uri."
        },
        "version": {
          "type": "string",
          "description": "S3 object version."
        }
      },
      "required": [
        "s3Uri"
      ]
    },
    "UpsertEntityInfo": {
      "type": "object",
      "properties": {
        "vocabulary": {
          "$ref": "#/$defs/VocabularyEntityInfo"
        }
      },
      "description": "Exactly one member is set."
    },
    "VocabularyEntityInfo": {
      "type": "object",
      "properties": {
        "entityId": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "language": {
          "type": "string",
          "enum": [
            "EN",
            "DE",
            "ES",
            "FR",
            "IT",
            "PT",
            "JA",
            "KO",
            "CN",
            "TW",
            "HK"
          ]
        },
        "phrases": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Phrase"
          }
        }
      },
      "required": [
        "language",
        "phrases"
      ]
    }
  }
}