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

The AWS Documentation website is getting a new look!
Try it now and let us know what you think. Switch to the new look >>

You can return to the original look by selecting English in the language selector above.


Lists resources associated with a project in AWS CodeStar.

Request Syntax

{ "maxResults": number, "nextToken": "string", "projectId": "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.


The maximum amount of data that can be contained in a single set of results.

Type: Integer

Valid Range: Minimum value of 1. Maximum value of 100.

Required: No


The continuation token for the next set of results, if the results cannot be returned in one response.

Type: String

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

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

Required: No


The ID of the project.

Type: String

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

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

Required: Yes

Response Syntax

{ "nextToken": "string", "resources": [ { "id": "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.


The continuation token to use when requesting the next set of results, if there are more results to be returned.

Type: String

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

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


An array of resources associated with the project.

Type: Array of Resource objects


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


The next token is not valid.

HTTP Status Code: 400


The specified AWS CodeStar project was not found.

HTTP Status Code: 400


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

HTTP Status Code: 400


Sample Request

POST / HTTP/1.1 Host: Accept-Encoding: identity Content-Length: 32 X-Amz-Target: CodeStar_20170419.ListResources X-Amz-Date: 20170405T223505Z User-Agent: aws-cli/1.11.36 Python/2.7.9 Windows/7 botocore/1.4.93 Content-Type: application/x-amz-json-1.1 Authorization: AWS4-HMAC-SHA256 Credential=AIDACKCEVSQ6C2EXAMPLE/20170405/us-east-1/codestar/aws4_request, SignedHeaders=content-type;host;x-amz-date;x-amz-target, Signature=c25ddcd5EXAMPLE {"projectId": "my-first-projec"}

Sample Response

HTTP/1.1 200 OK x-amzn-RequestId: 1e80e90d-EXAMPLE Content-Type: application/x-amz-json-1.1 Content-Length: 998 Date: Wed, 05 Apr 2017 22:35:07 GMT {"resources":[ {"id":"arn:aws:codedeploy:us-east-1:111111111111:application:my-first-projec"}, {"id":"arn:aws:codecommit:us-east-1:111111111111:my-first-projec"}, {"id":"arn:aws:ec2:us-east-1:111111111111:security-group/sg-EXAMPLE1"}, {"id":"arn:aws:iam::111111111111:role/CodeStarWorker-my-first-projec-CodeDeploy"}, {"id":"arn:aws:iam::111111111111:role/CodeStarWorker-my-first-projec-WebApp"}, {"id":"arn:aws:s3:::codepipeline-my-first-projec-us-east-1-111111111111"}, {"id":"arn:aws:iam::111111111111:role/CodeStarWorker-my-first-projec-CodePipeline"}, {"id":"arn:aws:codedeploy:us-east-1:111111111111:deploymentgroup:my-first-projec/my-first-projec-Env"}, {"id":"arn:aws:codepipeline:us-east-1:111111111111:my-first-projec-Pipeline"}, {"id":"arn:aws:cloudformation:us-east-1:111111111111:stack/awscodestar-my-first-projec/01234567-EXAMPLE"}, {"id":"arn:aws:ec2:us-east-1:111111111111:instance/i-012345abcEXAMPLE"} ] }

See Also

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