Class CfnRepository.LifecyclePolicyProperty
The LifecyclePolicy
property type specifies a lifecycle policy.
Inheritance
System.Object
CfnRepository.LifecyclePolicyProperty
Implements
Namespace: Amazon.CDK.AWS.ECR
Assembly: Amazon.CDK.AWS.ECR.dll
Syntax (csharp)
public class LifecyclePolicyProperty : Object, CfnRepository.ILifecyclePolicyProperty
Syntax (vb)
Public Class LifecyclePolicyProperty
Inherits Object
Implements CfnRepository.ILifecyclePolicyProperty
Remarks
For information about lifecycle policy syntax, see Lifecycle policy template in the Amazon ECR User Guide .
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ECR;
var lifecyclePolicyProperty = new LifecyclePolicyProperty {
LifecyclePolicyText = "lifecyclePolicyText",
RegistryId = "registryId"
};
Synopsis
Constructors
LifecyclePolicyProperty() |
Properties
LifecyclePolicyText | The JSON repository policy text to apply to the repository. |
RegistryId | The AWS account ID associated with the registry that contains the repository. |
Constructors
LifecyclePolicyProperty()
public LifecyclePolicyProperty()
Properties
LifecyclePolicyText
The JSON repository policy text to apply to the repository.
public string LifecyclePolicyText { get; set; }
Property Value
System.String
Remarks
RegistryId
The AWS account ID associated with the registry that contains the repository.
public string RegistryId { get; set; }
Property Value
System.String
Remarks
If you do not specify a registry, the default registry is assumed.