Skip to content

ScanRuleProps

Properties for defining a ScanRule.

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

Initializer

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

Properties

Name Type Description
instanceId string | @alicloud/ros-cdk-core.IResolvable Property instanceId: ACR Instance ID.
repoTagFilterPattern string | @alicloud/ros-cdk-core.IResolvable Property repoTagFilterPattern: The tag that triggers the scan matches the regular expression.
ruleName string | @alicloud/ros-cdk-core.IResolvable Property ruleName: The scan rule name.
scanScope string | @alicloud/ros-cdk-core.IResolvable Property scanScope: The scan scope.
scanType string | @alicloud/ros-cdk-core.IResolvable Property scanType: The scan type.
triggerType string | @alicloud/ros-cdk-core.IResolvable Property triggerType: Trigger type.
namespaces @alicloud/ros-cdk-core.IResolvable | string | @alicloud/ros-cdk-core.IResolvable[] Property namespaces: The list of namespaces.
repoNames @alicloud/ros-cdk-core.IResolvable | string | @alicloud/ros-cdk-core.IResolvable[] Property repoNames: The list of repositories.* When the scan scope is NAMESPACE, this parameter must be empty. * When the scan scope is REPO, this parameter cannot be empty.

instanceIdRequired

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

Property instanceId: ACR Instance ID.


repoTagFilterPatternRequired

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

Property repoTagFilterPattern: The tag that triggers the scan matches the regular expression.


ruleNameRequired

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

Property ruleName: The scan rule name.


scanScopeRequired

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

Property scanScope: The scan scope.

Valid values: NAMESPACE: namespace. REPO: repository. INSTANCE: CR instance.


scanTypeRequired

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

Property scanType: The scan type.

Valid values: * VUL: Products Cloud Security Scanner. * SBOM: Product Content Analysis.


triggerTypeRequired

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

Property triggerType: Trigger type.

Valid values: * AUTO: automatically trigger. * MANUAL: manually trigger.


namespacesOptional

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

Property namespaces: The list of namespaces.

  • When the scan scope is NAMESPACE, this parameter cannot be empty.
  • If the scan scope is REPO, you must specify a unique Namespace for this parameter.

repoNamesOptional

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

Property repoNames: The list of repositories.* When the scan scope is NAMESPACE, this parameter must be empty. * When the scan scope is REPO, this parameter cannot be empty.