Skip to content

RuleProps

Properties for defining a Rule.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-config-rule

Initializer

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkconfig"
&alicloudroscdkconfig.RuleProps {
    ConfigRuleTriggerTypes: interface{},
    ResourceTypesScope: interface{},
    RiskLevel: interface{},
    RuleName: interface{},
    SourceIdentifier: interface{},
    SourceOwner: interface{},
    Description: interface{},
    ExcludeResourceIdsScope: interface{},
    InputParameters: interface{},
    MaximumExecutionFrequency: interface{},
    RegionIdsScope: interface{},
    ResourceGroupIdsScope: interface{},
    TagKeyLogicScope: interface{},
    TagKeyScope: interface{},
    TagValueScope: interface{},
}

Properties

Name Type Description
ConfigRuleTriggerTypes interface{} Property configRuleTriggerTypes: The trigger type of the rule.
ResourceTypesScope interface{} Property resourceTypesScope: The types of the resources to be evaluated against the rule.
RiskLevel interface{} Property riskLevel: The risk level of the resources that are not compliant with the rule.
RuleName interface{} Property ruleName: The name of the rule.
SourceIdentifier interface{} Property sourceIdentifier: The identifier of the rule.
SourceOwner interface{} Property sourceOwner: Specifies whether you or Alibaba Cloud owns and manages the rule.
Description interface{} Property description: The description of the rule.
ExcludeResourceIdsScope interface{} Property excludeResourceIdsScope: The rule monitors excluded resource IDs, multiple of which are separated by commas, only applies to rules created based on managed rules, , custom rule this field is empty.
InputParameters interface{} Property inputParameters: The settings of the input parameters for the rule.
MaximumExecutionFrequency interface{} Property maximumExecutionFrequency: The frequency of the compliance evaluations.
RegionIdsScope interface{} Property regionIdsScope: The rule monitors region IDs, separated by commas, only applies to rules created based on managed rules.
ResourceGroupIdsScope interface{} Property resourceGroupIdsScope: The rule monitors resource group IDs, separated by commas, only applies to rules created based on managed rules.
TagKeyLogicScope interface{} Property tagKeyLogicScope:.
TagKeyScope interface{} Property tagKeyScope: The rule monitors the tag key, only applies to rules created based on managed rules.
TagValueScope interface{} Property tagValueScope: The rule monitors the tag value, only applies to rules created based on managed rules.

ConfigRuleTriggerTypesRequired

ConfigRuleTriggerTypes interface{}
  • Type: interface{}

Property configRuleTriggerTypes: The trigger type of the rule.

Valid values: ConfigurationItemChangeNotification: The rule is triggered upon configuration changes. ScheduledNotification: The rule is triggered as scheduled.


ResourceTypesScopeRequired

ResourceTypesScope interface{}
  • Type: interface{}

Property resourceTypesScope: The types of the resources to be evaluated against the rule.


RiskLevelRequired

RiskLevel interface{}
  • Type: interface{}

Property riskLevel: The risk level of the resources that are not compliant with the rule.

Valid values: 1: critical 2: warning 3: info


RuleNameRequired

RuleName interface{}
  • Type: interface{}

Property ruleName: The name of the rule.


SourceIdentifierRequired

SourceIdentifier interface{}
  • Type: interface{}

Property sourceIdentifier: The identifier of the rule.

For a managed rule, the value is the name of the managed rule. For a custom rule, the value is the ARN of the custom rule


SourceOwnerRequired

SourceOwner interface{}
  • Type: interface{}

Property sourceOwner: Specifies whether you or Alibaba Cloud owns and manages the rule.

Valid values: CUSTOM_FC: The rule is a custom rule and you own the rule. ALIYUN: The rule is a managed rule and Alibaba Cloud owns the rule


DescriptionOptional

Description interface{}
  • Type: interface{}

Property description: The description of the rule.


ExcludeResourceIdsScopeOptional

ExcludeResourceIdsScope interface{}
  • Type: interface{}

Property excludeResourceIdsScope: The rule monitors excluded resource IDs, multiple of which are separated by commas, only applies to rules created based on managed rules, , custom rule this field is empty.


InputParametersOptional

InputParameters interface{}
  • Type: interface{}

Property inputParameters: The settings of the input parameters for the rule.


MaximumExecutionFrequencyOptional

MaximumExecutionFrequency interface{}
  • Type: interface{}

Property maximumExecutionFrequency: The frequency of the compliance evaluations.

Valid values: One_Hour Three_Hours Six_Hours Twelve_Hours TwentyFour_Hours


RegionIdsScopeOptional

RegionIdsScope interface{}
  • Type: interface{}

Property regionIdsScope: The rule monitors region IDs, separated by commas, only applies to rules created based on managed rules.


ResourceGroupIdsScopeOptional

ResourceGroupIdsScope interface{}
  • Type: interface{}

Property resourceGroupIdsScope: The rule monitors resource group IDs, separated by commas, only applies to rules created based on managed rules.


TagKeyLogicScopeOptional

TagKeyLogicScope interface{}
  • Type: interface{}

Property tagKeyLogicScope:.


TagKeyScopeOptional

TagKeyScope interface{}
  • Type: interface{}

Property tagKeyScope: The rule monitors the tag key, only applies to rules created based on managed rules.


TagValueScopeOptional

TagValueScope interface{}
  • Type: interface{}

Property tagValueScope: The rule monitors the tag value, only applies to rules created based on managed rules.