Skip to content

ArtifactLifecycleRuleProps

Properties for defining a ArtifactLifecycleRule.

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

Initializer

import { ArtifactLifecycleRuleProps } from '@alicloud/ros-cdk-cr'
const artifactLifecycleRuleProps: ArtifactLifecycleRuleProps = { ... }

Properties

Name Type Description
auto boolean | @alicloud/ros-cdk-core.IResolvable Property auto: Specify whether to automatically execute the lifecycle management rule.
instanceId string | @alicloud/ros-cdk-core.IResolvable Property instanceId: ACR Instance ID.
namespaceName string | @alicloud/ros-cdk-core.IResolvable Property namespaceName: The name of the namespace.
repoName string | @alicloud/ros-cdk-core.IResolvable Property repoName: The name of the image repository.
retentionTagCount number | @alicloud/ros-cdk-core.IResolvable Property retentionTagCount: The number of images that you want to retain.
scheduleTime string | @alicloud/ros-cdk-core.IResolvable Property scheduleTime: The execution cycle of the lifecycle management rule.
scope string | @alicloud/ros-cdk-core.IResolvable Property scope: The deletion scope.
tagRegexp string | @alicloud/ros-cdk-core.IResolvable Property tagRegexp: The regular expression that is used to indicate which image tags are retained.

autoRequired

public readonly auto: boolean | IResolvable;
  • Type: boolean | @alicloud/ros-cdk-core.IResolvable

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


instanceIdRequired

public readonly instanceId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property instanceId: ACR Instance ID.


namespaceNameOptional

public readonly namespaceName: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property namespaceName: The name of the namespace.


repoNameOptional

public readonly repoName: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property repoName: The name of the image repository.


retentionTagCountOptional

public readonly retentionTagCount: number | IResolvable;
  • Type: number | @alicloud/ros-cdk-core.IResolvable

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


scheduleTimeOptional

public readonly scheduleTime: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

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


scopeOptional

public readonly scope: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property scope: The deletion scope.


tagRegexpOptional

public readonly tagRegexp: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

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