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
{ "LifecyclePolicyText" :String, "RegistryId" :String}
YAML
LifecyclePolicyText:StringRegistryId: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 don't specify a registry, the default registry is used.
Required: No
Type: String
Update requires: No interruption
See Also
-
Creating a Lifecycle Policy in the Amazon Elastic Container Registry User Guide
-
PutLifecyclePolicy in the Amazon Elastic Container Registry API Reference
