get_repository_permissions_policy
(**kwargs)¶Returns the resource policy that is set on a repository.
See also: AWS API Documentation
Request Syntax
response = client.get_repository_permissions_policy(
domain='string',
domainOwner='string',
repository='string'
)
[REQUIRED]
The name of the domain containing the repository whose associated resource policy is to be retrieved.
[REQUIRED]
The name of the repository whose associated resource policy is to be retrieved.
dict
Response Syntax
{
'policy': {
'resourceArn': 'string',
'revision': 'string',
'document': 'string'
}
}
Response Structure
(dict) --
policy (dict) --
The returned resource policy.
resourceArn (string) --
The ARN of the resource associated with the resource policy
revision (string) --
The current revision of the resource policy.
document (string) --
The resource policy formatted in JSON.
Exceptions
CodeArtifact.Client.exceptions.AccessDeniedException
CodeArtifact.Client.exceptions.InternalServerException
CodeArtifact.Client.exceptions.ResourceNotFoundException
CodeArtifact.Client.exceptions.ThrottlingException
CodeArtifact.Client.exceptions.ValidationException