v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1445247249.8 KB

Stores a resource policy for the ARN of a <code>Project</code> or <code>ReportGroup</code> object.

post/#X-Amz-Target=CodeBuild_20161006.PutResourcePolicy

Headers

X-Amz-Target'CodeBuild_20161006.PutResourcePolicy' required

Request body

policystring required

A JSON-formatted resource policy. For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/project-sharing.html#project-sharing-share">Sharing a Project</a> and <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/report-groups-sharing.html#report-groups-sharing-share">Sharing a Report Group</a> in the <i>CodeBuild User Guide</i>.

resourceArnstring required

The ARN of the <code>Project</code> or <code>ReportGroup</code> resource you want to associate with a resource policy.

Response

Success

resourceArnstring

The ARN of the <code>Project</code> or <code>ReportGroup</code> resource that is associated with a resource policy.