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