Retrieves the repository policy for the specified repository.
post/#X-Amz-Target=AmazonEC2ContainerRegistry_V20150921.GetRepositoryPolicy
Headers
X-Amz-Target'AmazonEC2ContainerRegistry_V20150921.GetRepositoryPolicy' required
Request body
Response
Success
Example response
{
"policyText": "{\n \"Version\" : \"2008-10-17\",\n \"Statement\" : [ {\n \"Sid\" : \"new statement\",\n \"Effect\" : \"Allow\",\n \"Principal\" : {\n \"AWS\" : \"arn:aws:iam::012345678901:role/CodeDeployDemo\"\n },\n\"Action\" : [ \"ecr:GetDownloadUrlForLayer\", \"ecr:BatchGetImage\", \"ecr:BatchCheckLayerAvailability\" ]\n } ]\n}",
"registryId": 12345678901,
"repositoryName": "ubuntu"
}