put_resource_policy
(**kwargs)¶Stores a resource policy for the ARN of a Project
or ReportGroup
object.
See also: AWS API Documentation
Request Syntax
response = client.put_resource_policy(
policy='string',
resourceArn='string'
)
[REQUIRED]
A JSON-formatted resource policy. For more information, see Sharing a Project and Sharing a Report Group in the CodeBuild User Guide .
[REQUIRED]
The ARN of the Project
or ReportGroup
resource you want to associate with a resource policy.
dict
Response Syntax
{
'resourceArn': 'string'
}
Response Structure
(dict) --
resourceArn (string) --
The ARN of the Project
or ReportGroup
resource that is associated with a resource policy.
Exceptions
CodeBuild.Client.exceptions.ResourceNotFoundException
CodeBuild.Client.exceptions.InvalidInputException