v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1441293181.2 KB

Creates or updates the permissions policy for your registry.

A registry policy is used to specify permissions for another Amazon Web Services account and is used when configuring cross-account replication. For more information, see Registry permissions in the Amazon Elastic Container Registry User Guide.

post/#X-Amz-Target=AmazonEC2ContainerRegistry_V20150921.PutRegistryPolicy

Headers

X-Amz-Target'AmazonEC2ContainerRegistry_V20150921.PutRegistryPolicy' required

Request body

policyTextstring required

The JSON policy text to apply to your registry. The policy text follows the same format as IAM policy text. For more information, see <a href="https://docs.aws.amazon.com/AmazonECR/latest/userguide/registry-permissions.html">Registry permissions</a> in the <i>Amazon Elastic Container Registry User Guide</i>.

Response

Success

registryIdstring

The registry ID.

policyTextstring

The JSON policy text for your registry.