Skip to content

RepoSyncRuleProps

Properties for defining a RepoSyncRule.

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

Initializer

import ros_cdk_cr
ros_cdk_cr.RepoSyncRuleProps(
  instance_id: typing.Union[str, IResolvable],
  namespace_name: typing.Union[str, IResolvable],
  sync_rule_name: typing.Union[str, IResolvable],
  sync_scope: typing.Union[str, IResolvable],
  sync_trigger: typing.Union[str, IResolvable],
  target_instance_id: typing.Union[str, IResolvable],
  target_namespace_name: typing.Union[str, IResolvable],
  target_region_id: typing.Union[str, IResolvable],
  repo_name: typing.Union[str, IResolvable] = None,
  repo_name_filter: typing.Union[str, IResolvable] = None,
  tag_filter: typing.Union[str, IResolvable] = None,
  target_repo_name: typing.Union[str, IResolvable] = None,
  target_user_id: typing.Union[str, IResolvable] = None
)

Properties

Name Type Description
instance_id typing.Union[str, ros_cdk_core.IResolvable] Property instanceId: The ID of the CR instance.
namespace_name typing.Union[str, ros_cdk_core.IResolvable] Property namespaceName: The name of the CR namespace.
sync_rule_name typing.Union[str, ros_cdk_core.IResolvable] Property syncRuleName: The name of the image sync rule.
sync_scope typing.Union[str, ros_cdk_core.IResolvable] Property syncScope: The synchronization scope.
sync_trigger typing.Union[str, ros_cdk_core.IResolvable] Property syncTrigger: The mode of triggering the synchronization rule.
target_instance_id typing.Union[str, ros_cdk_core.IResolvable] Property targetInstanceId: The ID of the destination instance.
target_namespace_name typing.Union[str, ros_cdk_core.IResolvable] Property targetNamespaceName: The name of the destination namespace.
target_region_id typing.Union[str, ros_cdk_core.IResolvable] Property targetRegionId: The ID of the destination region.
repo_name typing.Union[str, ros_cdk_core.IResolvable] Property repoName: The name of the repository.
repo_name_filter typing.Union[str, ros_cdk_core.IResolvable] Property repoNameFilter: The regular expression that is used to filter repositories.
tag_filter typing.Union[str, ros_cdk_core.IResolvable] Property tagFilter: The tag filter.
target_repo_name typing.Union[str, ros_cdk_core.IResolvable] Property targetRepoName: The name of the destination image repository.
target_user_id typing.Union[str, ros_cdk_core.IResolvable] Property targetUserId: The user ID (UID) of the account to which the destination instance belongs.

instance_idRequired

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

Property instanceId: The ID of the CR instance.


namespace_nameRequired

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

Property namespaceName: The name of the CR namespace.


sync_rule_nameRequired

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

Property syncRuleName: The name of the image sync rule.


sync_scopeRequired

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

Property syncScope: The synchronization scope.

Valid values: REPO, NAMESPACE


sync_triggerRequired

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

Property syncTrigger: The mode of triggering the synchronization rule.

Valid values: INITIATIVE, PASSIVE


target_instance_idRequired

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

Property targetInstanceId: The ID of the destination instance.


target_namespace_nameRequired

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

Property targetNamespaceName: The name of the destination namespace.


target_region_idRequired

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

Property targetRegionId: The ID of the destination region.


repo_nameOptional

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

Property repoName: The name of the repository.

This parameter is required when SyncScope is REPO.


repo_name_filterOptional

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

Property repoNameFilter: The regular expression that is used to filter repositories.


tag_filterOptional

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

Property tagFilter: The tag filter.

Default value: .*


target_repo_nameOptional

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

Property targetRepoName: The name of the destination image repository.

This parameter is optional.


target_user_idOptional

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

Property targetUserId: The user ID (UID) of the account to which the destination instance belongs.