Amazon CodeStar · JSON Structure

Codestar Code Structure

Location and destination information about the source code files provided with the project request. The source code is uploaded to the new project source repository after project creation.

Type: object Properties: 2 Required: 2
Developer ToolsDevOpsProject ManagementTeam Collaboration

Code is a JSON Structure definition published by Amazon CodeStar, describing 2 properties, of which 2 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

source destination

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-codestar/refs/heads/main/json-structure/codestar-code-structure.json",
  "name": "Code",
  "description": "Location and destination information about the source code files provided with the project request. The source code is uploaded to the new project source repository after project creation.",
  "type": "object",
  "properties": {
    "source": {
      "allOf": [
        {
          "$ref": "#/components/schemas/CodeSource"
        },
        {
          "description": "The location where the source code files provided with the project request are stored. AWS CodeStar retrieves the files during project creation."
        }
      ]
    },
    "destination": {
      "allOf": [
        {
          "$ref": "#/components/schemas/CodeDestination"
        },
        {
          "description": "The repository to be created in AWS CodeStar. Valid values are AWS CodeCommit or GitHub. After AWS CodeStar provisions the new repository, the source code files provided with the project request are placed in the repository."
        }
      ]
    }
  },
  "required": [
    "source",
    "destination"
  ]
}