Skip to content

ArtifactLifecycleRuleProps

Properties for defining a ArtifactLifecycleRule.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-cr-artifactlifecyclerule

Initializer

import com.aliyun.ros.cdk.cr.ArtifactLifecycleRuleProps;
ArtifactLifecycleRuleProps.builder()
    .auto(java.lang.Boolean)
    .auto(IResolvable)
    .instanceId(java.lang.String)
    .instanceId(IResolvable)
//  .namespaceName(java.lang.String)
//  .namespaceName(IResolvable)
//  .repoName(java.lang.String)
//  .repoName(IResolvable)
//  .retentionTagCount(java.lang.Number)
//  .retentionTagCount(IResolvable)
//  .scheduleTime(java.lang.String)
//  .scheduleTime(IResolvable)
//  .scope(java.lang.String)
//  .scope(IResolvable)
//  .tagRegexp(java.lang.String)
//  .tagRegexp(IResolvable)
    .build();

Properties

Name Type Description
auto java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable Property auto: Specify whether to automatically execute the lifecycle management rule.
instanceId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property instanceId: ACR Instance ID.
namespaceName java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property namespaceName: The name of the namespace.
repoName java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property repoName: The name of the image repository.
retentionTagCount java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property retentionTagCount: The number of images that you want to retain.
scheduleTime java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property scheduleTime: The execution cycle of the lifecycle management rule.
scope java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property scope: The deletion scope.
tagRegexp java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property tagRegexp: The regular expression that is used to indicate which image tags are retained.

autoRequired

public java.lang.Object getAuto();
  • Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable

Property auto: Specify whether to automatically execute the lifecycle management rule.


instanceIdRequired

public java.lang.Object getInstanceId();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property instanceId: ACR Instance ID.


namespaceNameOptional

public java.lang.Object getNamespaceName();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property namespaceName: The name of the namespace.


repoNameOptional

public java.lang.Object getRepoName();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property repoName: The name of the image repository.


retentionTagCountOptional

public java.lang.Object getRetentionTagCount();
  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

Property retentionTagCount: The number of images that you want to retain.


scheduleTimeOptional

public java.lang.Object getScheduleTime();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property scheduleTime: The execution cycle of the lifecycle management rule.


scopeOptional

public java.lang.Object getScope();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property scope: The deletion scope.


tagRegexpOptional

public java.lang.Object getTagRegexp();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property tagRegexp: The regular expression that is used to indicate which image tags are retained.