This is the new AWS CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the AWS CloudFormation User Guide.
AWS::ECR::Repository LifecyclePolicy
The LifecyclePolicy property type specifies a lifecycle policy. For
            information about lifecycle policy syntax, see Lifecycle policy
                template in the Amazon ECR User Guide.
Syntax
To declare this entity in your AWS CloudFormation template, use the following syntax:
JSON
{ "LifecyclePolicyText" :String, "RegistryId" :String}
YAML
LifecyclePolicyText:StringRegistryId:String
Properties
- LifecyclePolicyText
- 
                    The JSON repository policy text to apply to the repository. Required: No Type: String Minimum: 100Maximum: 30720Update requires: No interruption 
- RegistryId
- 
                    The AWS account ID associated with the registry that contains the repository. If you do not specify a registry, the default registry is assumed. Required: No Type: String Pattern: ^[0-9]{12}$Minimum: 12Maximum: 12Update requires: No interruption 
See also
- 
                    Creating a lifecycle policy in the Amazon ECR User Guide 
- 
                    PutLifecyclePolicy in the Amazon ECR API Reference