RuleProps
Properties for defining a Rule
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-config-rule
Initializer
using AlibabaCloud.SDK.ROS.CDK.Config;
new RuleProps {
object ConfigRuleTriggerTypes,
object ResourceTypesScope,
object RiskLevel,
object RuleName,
object SourceIdentifier,
object SourceOwner,
object Description = null,
object ExcludeResourceIdsScope = null,
object InputParameters = null,
object MaximumExecutionFrequency = null,
object RegionIdsScope = null,
object ResourceGroupIdsScope = null,
object TagKeyLogicScope = null,
object TagKeyScope = null,
object TagValueScope = null
};
Properties
Name | Type | Description |
---|---|---|
ConfigRuleTriggerTypes |
object |
Property configRuleTriggerTypes: The trigger type of the rule. |
ResourceTypesScope |
object |
Property resourceTypesScope: The types of the resources to be evaluated against the rule. |
RiskLevel |
object |
Property riskLevel: The risk level of the resources that are not compliant with the rule. |
RuleName |
object |
Property ruleName: The name of the rule. |
SourceIdentifier |
object |
Property sourceIdentifier: The identifier of the rule. |
SourceOwner |
object |
Property sourceOwner: Specifies whether you or Alibaba Cloud owns and manages the rule. |
Description |
object |
Property description: The description of the rule. |
ExcludeResourceIdsScope |
object |
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 |
object |
Property inputParameters: The settings of the input parameters for the rule. |
MaximumExecutionFrequency |
object |
Property maximumExecutionFrequency: The frequency of the compliance evaluations. |
RegionIdsScope |
object |
Property regionIdsScope: The rule monitors region IDs, separated by commas, only applies to rules created based on managed rules. |
ResourceGroupIdsScope |
object |
Property resourceGroupIdsScope: The rule monitors resource group IDs, separated by commas, only applies to rules created based on managed rules. |
TagKeyLogicScope |
object |
Property tagKeyLogicScope:. |
TagKeyScope |
object |
Property tagKeyScope: The rule monitors the tag key, only applies to rules created based on managed rules. |
TagValueScope |
object |
Property tagValueScope: The rule monitors the tag value, only applies to rules created based on managed rules. |
ConfigRuleTriggerTypes
Required
public object ConfigRuleTriggerTypes { get; set; }
- Type: object
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.
ResourceTypesScope
Required
public object ResourceTypesScope { get; set; }
- Type: object
Property resourceTypesScope: The types of the resources to be evaluated against the rule.
RiskLevel
Required
public object RiskLevel { get; set; }
- Type: object
Property riskLevel: The risk level of the resources that are not compliant with the rule.
Valid values: 1: critical 2: warning 3: info
RuleName
Required
public object RuleName { get; set; }
- Type: object
Property ruleName: The name of the rule.
SourceIdentifier
Required
public object SourceIdentifier { get; set; }
- Type: object
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
SourceOwner
Required
public object SourceOwner { get; set; }
- Type: object
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
Description
Optional
public object Description { get; set; }
- Type: object
Property description: The description of the rule.
ExcludeResourceIdsScope
Optional
public object ExcludeResourceIdsScope { get; set; }
- Type: object
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
Optional
public object InputParameters { get; set; }
- Type: object
Property inputParameters: The settings of the input parameters for the rule.
MaximumExecutionFrequency
Optional
public object MaximumExecutionFrequency { get; set; }
- Type: object
Property maximumExecutionFrequency: The frequency of the compliance evaluations.
Valid values: One_Hour Three_Hours Six_Hours Twelve_Hours TwentyFour_Hours
RegionIdsScope
Optional
public object RegionIdsScope { get; set; }
- Type: object
Property regionIdsScope: The rule monitors region IDs, separated by commas, only applies to rules created based on managed rules.
ResourceGroupIdsScope
Optional
public object ResourceGroupIdsScope { get; set; }
- Type: object
Property resourceGroupIdsScope: The rule monitors resource group IDs, separated by commas, only applies to rules created based on managed rules.
TagKeyLogicScope
Optional
public object TagKeyLogicScope { get; set; }
- Type: object
Property tagKeyLogicScope:.
TagKeyScope
Optional
public object TagKeyScope { get; set; }
- Type: object
Property tagKeyScope: The rule monitors the tag key, only applies to rules created based on managed rules.
TagValueScope
Optional
public object TagValueScope { get; set; }
- Type: object
Property tagValueScope: The rule monitors the tag value, only applies to rules created based on managed rules.