AWS CloudFormation
User Guide (Version )

AWS::ECR::Repository LifecyclePolicy

The LifecyclePolicy property type specifies a lifecycle policy. For information about lifecycle policy syntax, see Lifecycle Policy Template.

Syntax

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

JSON

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

YAML

LifecyclePolicyText: String RegistryId: String

Properties

LifecyclePolicyText

The JSON repository policy text to apply to the repository.

Required: No

Type: String

Minimum: 100

Maximum: 30720

Update 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}

Update requires: No interruption

See Also

On this page: