aws-cdk-lib.aws_ecr.CfnRepository.LifecyclePolicyProperty

interface LifecyclePolicyProperty

LanguageType name
.NETAmazon.CDK.AWS.ECR.CfnRepository.LifecyclePolicyProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsecr#CfnRepository_LifecyclePolicyProperty
Javasoftware.amazon.awscdk.services.ecr.CfnRepository.LifecyclePolicyProperty
Pythonaws_cdk.aws_ecr.CfnRepository.LifecyclePolicyProperty
TypeScript aws-cdk-lib » aws_ecr » CfnRepository » LifecyclePolicyProperty

The LifecyclePolicy property type specifies a lifecycle policy.

For information about lifecycle policy syntax, see Lifecycle policy template in the Amazon ECR User Guide .

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ecr as ecr } from 'aws-cdk-lib';
const lifecyclePolicyProperty: ecr.CfnRepository.LifecyclePolicyProperty = {
  lifecyclePolicyText: 'lifecyclePolicyText',
  registryId: 'registryId',
};

Properties

NameTypeDescription
lifecyclePolicyText?stringThe JSON repository policy text to apply to the repository.
registryId?stringThe AWS account ID associated with the registry that contains the repository.

lifecyclePolicyText?

Type: string (optional)

The JSON repository policy text to apply to the repository.


registryId?

Type: string (optional)

The AWS account ID associated with the registry that contains the repository.

If you do not specify a registry, the default registry is assumed.