Select your cookie preferences

We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.

put_resource_policy

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'
)
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 or ReportGroup 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 or ReportGroup resource that is associated with a resource policy.

Exceptions

  • CodeBuild.Client.exceptions.ResourceNotFoundException
  • CodeBuild.Client.exceptions.InvalidInputException