public class ConfigRule extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| ConfigRule() | 
| ConfigRule(ConfigRule source)NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
       and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy. | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getAccountGroupId()Get 账号组ID | 
| String | getAccountGroupName()Get 账号组名称 | 
| Annotation | getAnnotation()Get ["",""] | 
| String | getCompliancePackId()Get 合规包ID | 
| String | getCompliancePackName()Get 合规包名称 | 
| String | getComplianceResult()Get 合规: 'COMPLIANT'
不合规: 'NON_COMPLIANT'
无法应用规则: 'NOT_APPLICABLE' | 
| String | getConfigRuleId()Get 规则ID | 
| String | getConfigRuleInvokedTime()Get 规则评估时间
格式:YYYY-MM-DD h:i:s | 
| String | getCreateTime()Get 创建时间
格式:YYYY-MM-DD h:i:s | 
| String | getDescription()Get 规则描述 | 
| String[] | getExcludeResourceIdsScope()Get  规则对指定资源ID无效,即不对该资源执行评估。 | 
| String | getIdentifier()Get 规则标识 | 
| String | getIdentifierType()Get CUSTOMIZE:自定义规则、
SYSTEM:托管规则 | 
| InputParameter[] | getInputParameter()Get 规则参数 | 
| String[] | getLabels()Get 规则所属标签 | 
| InputParameterForManage[] | getManageInputParameter()Get 参数详情 | 
| String[] | getManageTriggerType()Get 预设规则支持的触发方式
ScheduledNotification:周期触发
ConfigurationItemChangeNotification:变更触发 | 
| String[] | getRegionsScope()Get 关联地域 | 
| String[] | getResourceType()Get 规则支持的资源类型,规则仅对指定资源类型的资源生效。 | 
| Long | getRiskLevel()Get 规则风险等级
1:低风险
2:中风险
3:高风险 | 
| String | getRuleName()Get 规则名 | 
| Long | getRuleOwnerId()Get 规则所属用户ID | 
| String | getServiceFunction()Get 规则对应的函数 | 
| SourceConditionForManage[] | getSourceCondition()Get 规则触发条件 | 
| String | getStatus()Get ACTIVE:启用
NO_ACTIVE:停止 | 
| Tag[] | getTagsScope()Get 关联标签 | 
| TriggerType[] | getTriggerType()Get 触发类型
ScheduledNotification:周期触发、
ConfigurationItemChangeNotification:变更触发 | 
| void | setAccountGroupId(String AccountGroupId)Set 账号组ID | 
| void | setAccountGroupName(String AccountGroupName)Set 账号组名称 | 
| void | setAnnotation(Annotation Annotation)Set ["",""] | 
| void | setCompliancePackId(String CompliancePackId)Set 合规包ID | 
| void | setCompliancePackName(String CompliancePackName)Set 合规包名称 | 
| void | setComplianceResult(String ComplianceResult)Set 合规: 'COMPLIANT'
不合规: 'NON_COMPLIANT'
无法应用规则: 'NOT_APPLICABLE' | 
| void | setConfigRuleId(String ConfigRuleId)Set 规则ID | 
| void | setConfigRuleInvokedTime(String ConfigRuleInvokedTime)Set 规则评估时间
格式:YYYY-MM-DD h:i:s | 
| void | setCreateTime(String CreateTime)Set 创建时间
格式:YYYY-MM-DD h:i:s | 
| void | setDescription(String Description)Set 规则描述 | 
| void | setExcludeResourceIdsScope(String[] ExcludeResourceIdsScope)Set  规则对指定资源ID无效,即不对该资源执行评估。 | 
| void | setIdentifier(String Identifier)Set 规则标识 | 
| void | setIdentifierType(String IdentifierType)Set CUSTOMIZE:自定义规则、
SYSTEM:托管规则 | 
| void | setInputParameter(InputParameter[] InputParameter)Set 规则参数 | 
| void | setLabels(String[] Labels)Set 规则所属标签 | 
| void | setManageInputParameter(InputParameterForManage[] ManageInputParameter)Set 参数详情 | 
| void | setManageTriggerType(String[] ManageTriggerType)Set 预设规则支持的触发方式
ScheduledNotification:周期触发
ConfigurationItemChangeNotification:变更触发 | 
| void | setRegionsScope(String[] RegionsScope)Set 关联地域 | 
| void | setResourceType(String[] ResourceType)Set 规则支持的资源类型,规则仅对指定资源类型的资源生效。 | 
| void | setRiskLevel(Long RiskLevel)Set 规则风险等级
1:低风险
2:中风险
3:高风险 | 
| void | setRuleName(String RuleName)Set 规则名 | 
| void | setRuleOwnerId(Long RuleOwnerId)Set 规则所属用户ID | 
| void | setServiceFunction(String ServiceFunction)Set 规则对应的函数 | 
| void | setSourceCondition(SourceConditionForManage[] SourceCondition)Set 规则触发条件 | 
| void | setStatus(String Status)Set ACTIVE:启用
NO_ACTIVE:停止 | 
| void | setTagsScope(Tag[] TagsScope)Set 关联标签 | 
| void | setTriggerType(TriggerType[] TriggerType)Set 触发类型
ScheduledNotification:周期触发、
ConfigurationItemChangeNotification:变更触发 | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic ConfigRule()
public ConfigRule(ConfigRule source)
public String getIdentifier()
public void setIdentifier(String Identifier)
Identifier - 规则标识public String getRuleName()
public void setRuleName(String RuleName)
RuleName - 规则名public InputParameter[] getInputParameter()
public void setInputParameter(InputParameter[] InputParameter)
InputParameter - 规则参数public SourceConditionForManage[] getSourceCondition()
public void setSourceCondition(SourceConditionForManage[] SourceCondition)
SourceCondition - 规则触发条件public String[] getResourceType()
public void setResourceType(String[] ResourceType)
ResourceType - 规则支持的资源类型,规则仅对指定资源类型的资源生效。public String[] getLabels()
public void setLabels(String[] Labels)
Labels - 规则所属标签public Long getRiskLevel()
public void setRiskLevel(Long RiskLevel)
RiskLevel - 规则风险等级
1:低风险
2:中风险
3:高风险public String getServiceFunction()
public void setServiceFunction(String ServiceFunction)
ServiceFunction - 规则对应的函数public String getCreateTime()
public void setCreateTime(String CreateTime)
CreateTime - 创建时间
格式:YYYY-MM-DD h:i:spublic String getDescription()
public void setDescription(String Description)
Description - 规则描述public String getStatus()
public void setStatus(String Status)
Status - ACTIVE:启用
NO_ACTIVE:停止public String getComplianceResult()
public void setComplianceResult(String ComplianceResult)
ComplianceResult - 合规: 'COMPLIANT'
不合规: 'NON_COMPLIANT'
无法应用规则: 'NOT_APPLICABLE'public Annotation getAnnotation()
public void setAnnotation(Annotation Annotation)
Annotation - ["",""]public String getConfigRuleInvokedTime()
public void setConfigRuleInvokedTime(String ConfigRuleInvokedTime)
ConfigRuleInvokedTime - 规则评估时间
格式:YYYY-MM-DD h:i:spublic String getConfigRuleId()
public void setConfigRuleId(String ConfigRuleId)
ConfigRuleId - 规则IDpublic String getIdentifierType()
public void setIdentifierType(String IdentifierType)
IdentifierType - CUSTOMIZE:自定义规则、
SYSTEM:托管规则public String getCompliancePackId()
public void setCompliancePackId(String CompliancePackId)
CompliancePackId - 合规包IDpublic TriggerType[] getTriggerType()
public void setTriggerType(TriggerType[] TriggerType)
TriggerType - 触发类型
ScheduledNotification:周期触发、
ConfigurationItemChangeNotification:变更触发public InputParameterForManage[] getManageInputParameter()
public void setManageInputParameter(InputParameterForManage[] ManageInputParameter)
ManageInputParameter - 参数详情public String getCompliancePackName()
public void setCompliancePackName(String CompliancePackName)
CompliancePackName - 合规包名称public String[] getRegionsScope()
public void setRegionsScope(String[] RegionsScope)
RegionsScope - 关联地域public Tag[] getTagsScope()
public void setTagsScope(Tag[] TagsScope)
TagsScope - 关联标签public String[] getExcludeResourceIdsScope()
public void setExcludeResourceIdsScope(String[] ExcludeResourceIdsScope)
ExcludeResourceIdsScope - 规则对指定资源ID无效,即不对该资源执行评估。public String getAccountGroupId()
public void setAccountGroupId(String AccountGroupId)
AccountGroupId - 账号组IDpublic String getAccountGroupName()
public void setAccountGroupName(String AccountGroupName)
AccountGroupName - 账号组名称public Long getRuleOwnerId()
public void setRuleOwnerId(Long RuleOwnerId)
RuleOwnerId - 规则所属用户IDpublic String[] getManageTriggerType()
public void setManageTriggerType(String[] ManageTriggerType)
ManageTriggerType - 预设规则支持的触发方式
ScheduledNotification:周期触发
ConfigurationItemChangeNotification:变更触发Copyright © 2025. All rights reserved.