alicloud_cr_scan_ruleNivis Nix constructor for the alicloud_cr_scan_rule resource (provider alicloud). This reference is derived from the provider binary's own schema via nivis gen — it always matches the real provider.
Constructor
{
name,
instance_id,
repo_tag_filter_pattern,
rule_name,
scan_scope,
scan_type,
trigger_type,
id ? null,
namespaces ? null,
repo_names ? null,
timeouts ? null,
overrides ? {}
}Required arguments
instance_idrepo_tag_filter_patternrule_namescan_scopescan_typetrigger_type
Optional arguments
id(defaults tonull)namespaces(defaults tonull)repo_names(defaults tonull)timeouts(defaults tonull)
Computed outputs
Read these from the resource's refAttr:
create_timescan_rule_id
Example
alicloud_cr_scan_rule {
name = "cr_scan_rule";
instance_id = …; # required
repo_tag_filter_pattern = …; # required
rule_name = …; # required
scan_scope = …; # required
scan_type = …; # required
trigger_type = …; # required
}The reference for every provider is generated from the provider's own schema, not copied from its documentation.