Skip to content

Put Resource Policy

codebuild_put_resource_policy R Documentation

Stores a resource policy for the ARN of a Project or ReportGroup object

Description

Stores a resource policy for the ARN of a Project or ReportGroup object.

Usage

codebuild_put_resource_policy(policy, resourceArn)

Arguments

policy

[required] A JSON-formatted resource policy. For more information, see Sharing a Project and Sharing a Report Group in the CodeBuild User Guide.

resourceArn

[required] The ARN of the Project or ReportGroup resource you want to associate with a resource policy.

Value

A list with the following syntax:

list(
  resourceArn = "string"
)

Request syntax

svc$put_resource_policy(
  policy = "string",
  resourceArn = "string"
)