ALIYUN::ThreatDetection::CustomCheckStandardPolicy

更新时间:
复制为 MD 格式

ALIYUN::ThreatDetection::CustomCheckStandardPolicy类型用于创建检查项分类设置中的归属标准、归属条例或归属章节。

语法

{
  "Type": "ALIYUN::ThreatDetection::CustomCheckStandardPolicy",
  "Properties": {
    "PolicyType": String,
    "PolicyShowName": String,
    "DependentPolicyId": Integer,
    "Type": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

PolicyType

String

自定义检查项规则的策略分类类型。

取值:

  • STANDARD:新增归属标准。

  • REQUIREMENT:新增归属条例。

  • SECTION:新增归属章节。

PolicyShowName

String

自定义策略的名称。

DependentPolicyId

Integer

关联的上级策略 ID。

Type

String

关联的策略大类的名称。

取值:

  • AISPM:AI 配置管理(AISPM)。

  • IDENTITY_PERMISSION:身份权限管理(CIEM)。

  • RISK:安全风险。

  • COMPLIANCE:合规风险。

返回值

Fn::GetAtt

PolicyId:自定义策略的 ID。

示例

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  PolicyType:
    Type: String
    Description:
      en: |-
        The category type of the custom check policy:
        - STANDARD: standard.
        - REQUIREMENT: requirement.
        - SECTION: section.
    AllowedValues:
      - STANDARD
      - REQUIREMENT
      - SECTION
    Required: true
  PolicyShowName:
    Type: String
    Description:
      en: The name of the custom policy.
    Required: true
    MinLength: 1
    MaxLength: 64
Resources:
  CustomCheckStandardPolicy:
    Type: ALIYUN::ThreatDetection::CustomCheckStandardPolicy
    Properties:
      PolicyType:
        Ref: PolicyType
      PolicyShowName:
        Ref: PolicyShowName
Outputs:
  PolicyId:
    Description: The ID of the custom check policy.
    Value:
      Fn::GetAtt:
        - CustomCheckStandardPolicy
        - PolicyId
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "PolicyType": {
      "Type": "String",
      "Description": {
        "en": "The category type of the custom check policy:\n- STANDARD: standard.\n- REQUIREMENT: requirement.\n- SECTION: section."
      },
      "AllowedValues": [
        "STANDARD",
        "REQUIREMENT",
        "SECTION"
      ],
      "Required": true
    },
    "PolicyShowName": {
      "Type": "String",
      "Description": {
        "en": "The name of the custom policy."
      },
      "Required": true,
      "MinLength": 1,
      "MaxLength": 64
    }
  },
  "Resources": {
    "CustomCheckStandardPolicy": {
      "Type": "ALIYUN::ThreatDetection::CustomCheckStandardPolicy",
      "Properties": {
        "PolicyType": {
          "Ref": "PolicyType"
        },
        "PolicyShowName": {
          "Ref": "PolicyShowName"
        }
      }
    }
  },
  "Outputs": {
    "PolicyId": {
      "Description": "The ID of the custom check policy.",
      "Value": {
        "Fn::GetAtt": [
          "CustomCheckStandardPolicy",
          "PolicyId"
        ]
      }
    }
  }
}