interface LifecyclePolicyProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.ECR.CfnRepository.LifecyclePolicyProperty |
Java | software.amazon.awscdk.services.ecr.CfnRepository.LifecyclePolicyProperty |
Python | aws_cdk.aws_ecr.CfnRepository.LifecyclePolicyProperty |
TypeScript | @aws-cdk/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 * as ecr from '@aws-cdk/aws-ecr';
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.