ALIYUN::ThreatDetection::CustomCheckStandardPolicy类型用于创建检查项分类设置中的归属标准、归属条例或归属章节。
语法
{
"Type": "ALIYUN::ThreatDetection::CustomCheckStandardPolicy",
"Properties": {
"PolicyType": String,
"PolicyShowName": String,
"DependentPolicyId": Integer,
"Type": String
}
}
属性
|
属性名称 |
类型 |
必须 |
允许更新 |
描述 |
约束 |
|
PolicyType |
String |
是 |
否 |
自定义检查项规则的策略分类类型。 |
取值:
|
|
PolicyShowName |
String |
是 |
是 |
自定义策略的名称。 |
无 |
|
DependentPolicyId |
Integer |
否 |
是 |
关联的上级策略 ID。 |
无 |
|
Type |
String |
否 |
是 |
关联的策略大类的名称。 |
取值:
|
返回值
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"
]
}
}
}
}该文章对您有帮助吗?