Menu
AWS CodeStar
API Reference (API Version 2017-04-19)

CreateProject

Reserved for future use. To create a project, use the AWS CodeStar console.

Request Syntax

{
   "clientRequestToken": "string",
   "description": "string",
   "id": "string",
   "name": "string"
}

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

The request accepts the following data in JSON format.

clientRequestToken

Reserved for future use.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 256.

Pattern: ^[\w:/-]+$

Required: No

description

Reserved for future use.

Type: String

Length Constraints: Maximum length of 1024.

Pattern: ^$|^\S(.*\S)?$

Required: No

id

Reserved for future use.

Type: String

Length Constraints: Minimum length of 2. Maximum length of 15.

Pattern: ^[a-z][a-z0-9-]+$

Required: Yes

name

Reserved for future use.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 100.

Pattern: ^\S(.*\S)?$

Required: Yes

Response Syntax

{
   "arn": "string",
   "clientRequestToken": "string",
   "id": "string",
   "projectTemplateId": "string"
}

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

arn

Reserved for future use.

Type: String

Pattern: ^arn:aws[^:\s]*:codestar:[^:\s]+:[0-9]{12}:project\/[a-z]([a-z0-9|-])+$

clientRequestToken

Reserved for future use.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 256.

Pattern: ^[\w:/-]+$

id

Reserved for future use.

Type: String

Length Constraints: Minimum length of 2. Maximum length of 15.

Pattern: ^[a-z][a-z0-9-]+$

projectTemplateId

Reserved for future use.

Type: String

Length Constraints: Minimum length of 1.

Pattern: ^arn:aws[^:\s]{0,5}:codestar:[^:\s]+::project-template\/[a-z0-9-]+$

Errors

For information about the errors that are common to all actions, see Common Errors.

ConcurrentModificationException

Another modification is being made. That modification must complete before you can make your change.

HTTP Status Code: 400

InvalidServiceRoleException

The service role is not valid.

HTTP Status Code: 400

LimitExceededException

A resource limit has been exceeded.

HTTP Status Code: 400

ProjectAlreadyExistsException

An AWS CodeStar project with the same ID already exists in this region for the AWS account. AWS CodeStar project IDs must be unique within a region for the AWS account.

HTTP Status Code: 400

ProjectConfigurationException

Project configuration information is required but not specified.

HTTP Status Code: 400

ProjectCreationFailedException

The project creation request was valid, but a nonspecific exception or error occurred during project creation. The project could not be created in AWS CodeStar.

HTTP Status Code: 400

ValidationException

The specified input is either not valid, or it could not be validated.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: