{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-codecommit/json-schema/amazon-codecommit-batch-get-repositories-output-schema.json",
  "title": "BatchGetRepositoriesOutput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-codecommit-repository-api-openapi.yml#/components/schemas/BatchGetRepositoriesOutput",
  "type": "object",
  "properties": {
    "repositories": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/RepositoryMetadata"
      },
      "description": "A list of repositories returned by the batch get repositories operation."
    },
    "repositoriesNotFound": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Returns a list of repository names for which information could not be found."
    },
    "errors": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/BatchGetRepositoriesError"
      },
      "description": "Returns information about any errors returned when attempting to retrieve information about the repositories."
    }
  },
  "$defs": {
    "BatchGetRepositoriesError": {
      "type": "object",
      "properties": {
        "repositoryId": {
          "type": "string",
          "description": "The ID of a repository that either could not be found or was not in a valid state."
        },
        "repositoryName": {
          "type": "string",
          "description": "The name of a repository that either could not be found or was not in a valid state."
        },
        "errorCode": {
          "type": "string",
          "enum": [
            "EncryptionIntegrityChecksFailedException",
            "EncryptionKeyAccessDeniedException",
            "EncryptionKeyDisabledException",
            "EncryptionKeyNotFoundException",
            "EncryptionKeyUnavailableException",
            "RepositoryDoesNotExistException"
          ],
          "description": "An error code that specifies the type of failure."
        },
        "errorMessage": {
          "type": "string",
          "description": "An error message that provides detail about why the repository either was not found or was not in a valid state."
        }
      }
    },
    "RepositoryMetadata": {
      "type": "object",
      "properties": {
        "accountId": {
          "type": "string",
          "description": "The ID of the Amazon Web Services account associated with the repository."
        },
        "repositoryId": {
          "type": "string",
          "description": "The ID of the repository."
        },
        "repositoryName": {
          "type": "string",
          "description": "The repository's name."
        },
        "repositoryDescription": {
          "type": "string",
          "description": "A comment or description about the repository."
        },
        "defaultBranch": {
          "type": "string",
          "description": "The repository's default branch name."
        },
        "lastModifiedDate": {
          "type": "string",
          "format": "date-time",
          "description": "The date and time the repository was last modified, in timestamp format."
        },
        "creationDate": {
          "type": "string",
          "format": "date-time",
          "description": "The date and time the repository was created, in timestamp format."
        },
        "cloneUrlHttp": {
          "type": "string",
          "description": "The URL to use for cloning the repository over HTTPS."
        },
        "cloneUrlSsh": {
          "type": "string",
          "description": "The URL to use for cloning the repository over SSH."
        },
        "Arn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the repository."
        },
        "kmsKeyId": {
          "type": "string",
          "description": "The ID of the Key Management Service encryption key used to encrypt and decrypt the repository."
        }
      }
    }
  }
}