Skip to content

ScanRuleProps

Properties for defining a ScanRule.

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

Initializer

import com.aliyun.ros.cdk.cr.ScanRuleProps;
ScanRuleProps.builder()
    .instanceId(java.lang.String)
    .instanceId(IResolvable)
    .repoTagFilterPattern(java.lang.String)
    .repoTagFilterPattern(IResolvable)
    .ruleName(java.lang.String)
    .ruleName(IResolvable)
    .scanScope(java.lang.String)
    .scanScope(IResolvable)
    .scanType(java.lang.String)
    .scanType(IResolvable)
    .triggerType(java.lang.String)
    .triggerType(IResolvable)
//  .namespaces(IResolvable)
//  .namespaces(java.util.List<java.lang.String)
//  .namespaces(IResolvable>)
//  .repoNames(IResolvable)
//  .repoNames(java.util.List<java.lang.String)
//  .repoNames(IResolvable>)
    .build();

Properties

Name Type Description
instanceId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property instanceId: ACR Instance ID.
repoTagFilterPattern java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property repoTagFilterPattern: The tag that triggers the scan matches the regular expression.
ruleName java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property ruleName: The scan rule name.
scanScope java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property scanScope: The scan scope.
scanType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property scanType: The scan type.
triggerType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property triggerType: Trigger type.
namespaces com.aliyun.ros.cdk.core.IResolvable OR java.util.List Property namespaces: The list of namespaces.
repoNames com.aliyun.ros.cdk.core.IResolvable OR java.util.List 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 java.lang.Object getInstanceId();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property instanceId: ACR Instance ID.


repoTagFilterPatternRequired

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

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


ruleNameRequired

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

Property ruleName: The scan rule name.


scanScopeRequired

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

Property scanScope: The scan scope.

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


scanTypeRequired

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

Property scanType: The scan type.

Valid values:

  • VUL: Products Cloud Security Scanner.
  • SBOM: Product Content Analysis.

triggerTypeRequired

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

Property triggerType: Trigger type.

Valid values:

  • AUTO: automatically trigger.
  • MANUAL: manually trigger.

namespacesOptional

public java.lang.Object getNamespaces();
  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List

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 java.lang.Object getRepoNames();
  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List

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.