{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-sagemaker/json-schema/amazon-sagemaker-list-code-repositories-output-schema.json",
  "title": "ListCodeRepositoriesOutput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-sagemaker-code-repository-api-openapi.yml#/components/schemas/ListCodeRepositoriesOutput",
  "type": "object",
  "properties": {
    "CodeRepositorySummaryList": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CodeRepositorySummary"
      },
      "description": "Gets a list of summaries of the Git repositories. Each summary specifies the following values for the repository: Name Amazon Resource Name (ARN) Creation time Last modified time Configuration information, including the URL location of the repository and the ARN of the Amazon Web Services Secrets Manager secret that contains the credentials used to access the repository."
    },
    "NextToken": {
      "type": "string",
      "description": "If the result of a ListCodeRepositoriesOutput request was truncated, the response includes a NextToken. To get the next set of Git repositories, use the token in the next request."
    }
  },
  "required": [
    "CodeRepositorySummaryList"
  ],
  "$defs": {
    "CodeRepositorySummary": {
      "type": "object",
      "properties": {
        "CodeRepositoryName": {
          "type": "string",
          "description": "The name of the Git repository."
        },
        "CodeRepositoryArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the Git repository."
        },
        "CreationTime": {
          "type": "string",
          "format": "date-time",
          "description": "The date and time that the Git repository was created."
        },
        "LastModifiedTime": {
          "type": "string",
          "format": "date-time",
          "description": "The date and time that the Git repository was last modified."
        },
        "GitConfig": {
          "$ref": "#/$defs/GitConfig"
        }
      },
      "required": [
        "CodeRepositoryName",
        "CodeRepositoryArn",
        "CreationTime",
        "LastModifiedTime"
      ]
    },
    "GitConfig": {
      "type": "object",
      "properties": {
        "RepositoryUrl": {
          "type": "string",
          "description": "The URL where the Git repository is located."
        },
        "Branch": {
          "type": "string",
          "description": "The default branch for the Git repository."
        },
        "SecretArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager secret that contains the credentials used to access the git repository. The secret must have a staging label of AWSCURRENT and must be in the following format: {\"username\": UserName, \"password\": Password}"
        }
      },
      "required": [
        "RepositoryUrl"
      ]
    }
  }
}