Amazon CodeStar · JSON Structure

Codestar Code Destination Structure

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.

Type: object Properties: 2
Developer ToolsDevOpsProject ManagementTeam Collaboration

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

Properties

codeCommit gitHub

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-destination-structure.json",
  "name": "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.",
  "type": "object",
  "properties": {
    "codeCommit": {
      "allOf": [
        {
          "$ref": "#/components/schemas/CodeCommitCodeDestination"
        },
        {
          "description": "Information about the AWS CodeCommit repository to be created in AWS CodeStar. This is where the source code files provided with the project request will be uploaded after project creation."
        }
      ]
    },
    "gitHub": {
      "allOf": [
        {
          "$ref": "#/components/schemas/GitHubCodeDestination"
        },
        {
          "description": "Information about the GitHub repository to be created in AWS CodeStar. This is where the source code files provided with the project request will be uploaded after project creation."
        }
      ]
    }
  }
}