Amazon CodeBuild · Schema

CreateProjectRequest

CreateProjectRequest schema from Amazon CodeBuild

AmazonCI/CDBuildContinuous IntegrationDevOpsTesting

Properties

Name Type Description
name string The name of the build project.
description string A description of the build project.
source object
environment object
serviceRole string The ARN of the IAM role for CodeBuild.
timeoutInMinutes integer Build timeout in minutes.
View JSON Schema on GitHub

JSON Schema

amazon-codebuild-create-project-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-codebuild/refs/heads/main/json-schema/amazon-codebuild-create-project-request-schema.json",
  "title": "CreateProjectRequest",
  "description": "CreateProjectRequest schema from Amazon CodeBuild",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The name of the build project."
    },
    "description": {
      "type": "string",
      "description": "A description of the build project."
    },
    "source": {
      "type": "object",
      "required": [
        "type"
      ],
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "CODECOMMIT",
            "CODEPIPELINE",
            "GITHUB",
            "GITHUB_ENTERPRISE",
            "BITBUCKET",
            "S3",
            "NO_SOURCE"
          ]
        },
        "location": {
          "type": "string"
        },
        "buildspec": {
          "type": "string"
        }
      }
    },
    "environment": {
      "type": "object",
      "required": [
        "type",
        "image",
        "computeType"
      ],
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "WINDOWS_CONTAINER",
            "LINUX_CONTAINER",
            "LINUX_GPU_CONTAINER",
            "ARM_CONTAINER"
          ]
        },
        "image": {
          "type": "string"
        },
        "computeType": {
          "type": "string",
          "enum": [
            "BUILD_GENERAL1_SMALL",
            "BUILD_GENERAL1_MEDIUM",
            "BUILD_GENERAL1_LARGE",
            "BUILD_GENERAL1_2XLARGE"
          ]
        },
        "environmentVariables": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "value": {
                "type": "string"
              },
              "type": {
                "type": "string",
                "enum": [
                  "PLAINTEXT",
                  "PARAMETER_STORE",
                  "SECRETS_MANAGER"
                ]
              }
            }
          }
        }
      }
    },
    "serviceRole": {
      "type": "string",
      "description": "The ARN of the IAM role for CodeBuild."
    },
    "timeoutInMinutes": {
      "type": "integer",
      "description": "Build timeout in minutes."
    }
  },
  "required": [
    "name",
    "source",
    "environment",
    "serviceRole"
  ]
}