interface LifecyclePolicyProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.ECR.CfnRepository.LifecyclePolicyProperty |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsecr#CfnRepository_LifecyclePolicyProperty |
![]() | software.amazon.awscdk.services.ecr.CfnRepository.LifecyclePolicyProperty |
![]() | aws_cdk.aws_ecr.CfnRepository.LifecyclePolicyProperty |
![]() | 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
Name | Type | Description |
---|---|---|
lifecycle | string | The JSON repository policy text to apply to the repository. |
registry | string | The 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.