Menu
AWS CloudFormation
User Guide (API Version 2010-05-15)

Amazon Elastic Container Registry Repository LifecyclePolicy

The LifecyclePolicy property type specifies a lifecycle policy for an Amazon Elastic Container Registry (Amazon ECR) repository.

LifecyclePolicy is a property of the AWS::ECR::Repository resource.

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

Copy
{ "LifecyclePolicyText" : String, "RegistryId" : String }

YAML

Copy
LifecyclePolicyText: String RegistryId: String

Properties

LifecyclePolicyText

The JSON repository policy text to apply to the repository. The length must be between 100 and 10,240 characters.

Required: No

Type: String

Update requires: No interruption

RegistryId

The AWS account ID that's associated with the registry that contains the repository. If you do
n't specify a registry, the default registry is used.

Required: No

Type: String

Update requires: No interruption

See Also

On this page: