Skip to content

ArtifactLifecycleRuleProps

Properties for defining a ArtifactLifecycleRule.

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

Initializer

import ros_cdk_cr
ros_cdk_cr.ArtifactLifecycleRuleProps(
  auto: typing.Union[bool, IResolvable],
  instance_id: typing.Union[str, IResolvable],
  namespace_name: typing.Union[str, IResolvable] = None,
  repo_name: typing.Union[str, IResolvable] = None,
  retention_tag_count: typing.Union[typing.Union[int, float], IResolvable] = None,
  schedule_time: typing.Union[str, IResolvable] = None,
  scope: typing.Union[str, IResolvable] = None,
  tag_regexp: typing.Union[str, IResolvable] = None
)

Properties

Name Type Description
auto typing.Union[bool, ros_cdk_core.IResolvable] Property auto: Specify whether to automatically execute the lifecycle management rule.
instance_id typing.Union[str, ros_cdk_core.IResolvable] Property instanceId: ACR Instance ID.
namespace_name typing.Union[str, ros_cdk_core.IResolvable] Property namespaceName: The name of the namespace.
repo_name typing.Union[str, ros_cdk_core.IResolvable] Property repoName: The name of the image repository.
retention_tag_count typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property retentionTagCount: The number of images that you want to retain.
schedule_time typing.Union[str, ros_cdk_core.IResolvable] Property scheduleTime: The execution cycle of the lifecycle management rule.
scope typing.Union[str, ros_cdk_core.IResolvable] Property scope: The deletion scope.
tag_regexp typing.Union[str, ros_cdk_core.IResolvable] Property tagRegexp: The regular expression that is used to indicate which image tags are retained.

autoRequired

auto: typing.Union[bool, IResolvable]
  • Type: typing.Union[bool, ros_cdk_core.IResolvable]

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


instance_idRequired

instance_id: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property instanceId: ACR Instance ID.


namespace_nameOptional

namespace_name: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property namespaceName: The name of the namespace.


repo_nameOptional

repo_name: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property repoName: The name of the image repository.


retention_tag_countOptional

retention_tag_count: typing.Union[typing.Union[int, float], IResolvable]
  • Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]

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


schedule_timeOptional

schedule_time: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

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


scopeOptional

scope: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property scope: The deletion scope.


tag_regexpOptional

tag_regexp: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

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