v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1441293181.2 KB

Creates or updates the lifecycle policy for the specified repository. For more information, see <a href="https://docs.aws.amazon.com/AmazonECR/latest/userguide/LifecyclePolicies.html">Lifecycle policy template</a>.

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

Headers

X-Amz-Target'AmazonEC2ContainerRegistry_V20150921.PutLifecyclePolicy' required

Request body

registryIdstring

The Amazon Web Services account ID associated with the registry that contains the repository. If you do
 not specify a registry, the default registry is assumed.

repositoryNamestring required

The name of the repository to receive the policy.

lifecyclePolicyTextstring required

The JSON repository policy text to apply to the repository.

Response

Success

registryIdstring

The registry ID associated with the request.

repositoryNamestring

The repository name associated with the request.

lifecyclePolicyTextstring

The JSON repository policy text.