Menu
AWS CloudFormation
User Guide (API Version 2010-05-15)

AWS CodeBuild Project Source

Source is a property of the AWS::CodeBuild::Project resource that specifies the source code settings for an AWS CodeBuild project.

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

Copy
{ "BuildSpec" : String, "Location" : String, "Type" : String }

YAML

Copy
BuildSpec: String Location: String Type: String

Properties

BuildSpec

The build specification, specified as a single string. For more information, see the Build Spec Reference in the AWS CodeBuild User Guide.

Required: No

Type: String

Location

The location of the source code in the specified repository type. For more information, see the source-location field in the AWS CodeBuild User Guide.

Required: Conditional. If you specify CODEPIPELINE for the Type property, don't specify this property. For all of the other types, you must specify this property.

Type: String

Type

The type of repository that contains your source code. For valid values, see the source-type field in the AWS CodeBuild User Guide.

Required: Yes

Type: String