DATASOURCE::ThreatDetection::AntiBruteForceRules类型用于查询防暴力破解规则基础信息。
语法
{
  "Type": "DATASOURCE::ThreatDetection::AntiBruteForceRules",
  "Properties": {
    "RefreshOptions": String
  }
}属性
| 属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 | 
| RefreshOptions | String | 否 | 是 | 当资源栈更新时,数据源资源的刷新策略。 | 有效值: 
 | 
返回值
Fn::GetAtt
- AntiBruteForceRules:防御规则的详情列表。 
- AntiBruteForceRuleIds:防御规则的ID列表。 
| 属性名称 | 类型 | 描述 | 约束 | 
| AntiBruteForceRuleIds | List | 防御规则的ID列表。 | 无 | 
| AntiBruteForceRules | List | 防御规则的详情列表。 | 无 | 
| AntiBruteForceRuleId | String | 防御规则的ID。 | 无 | 
| UuidList | List | 防暴力破解规则生效的服务器的UUID列表。 | 无 | 
| AntiBruteForceRuleName | String | 防暴力破解规则的名称。 | 无 | 
| FailCount | String | 设置账号登录失败次数的阈值。 | 无 | 
| Span | String | 设置账号登录失败的时间的阈值。 | 单位:分钟。 | 
| DefaultRule | String | 防暴力破解规则是否设置为默认规则。 | 无 | 
| ForbiddenTime | String | 设置禁止账号登录的时长。 | 单位:分钟。 | 
示例
ROSTemplateFormatVersion: '2015-09-01'
Resources:
  ExtensionDataSource:
    Properties: {}
    Type: DATASOURCE::ThreatDetection::AntiBruteForceRules
Outputs:
  AntiBruteForceRuleIds:
    Description: The list of anti brute force rule IDs.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - AntiBruteForceRuleIds
  AntiBruteForceRules:
    Description: The list of anti brute force rules.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - AntiBruteForceRules{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Resources": {
    "ExtensionDataSource": {
      "Type": "DATASOURCE::ThreatDetection::AntiBruteForceRules",
      "Properties": {}
    }
  },
  "Outputs": {
    "AntiBruteForceRules": {
      "Description": "The list of anti brute force rules.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "AntiBruteForceRules"
        ]
      }
    },
    "AntiBruteForceRuleIds": {
      "Description": "The list of anti brute force rule IDs.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "AntiBruteForceRuleIds"
        ]
      }
    }
  }
}该文章对您有帮助吗?