Cria e associa uma entrada de padrão, regulamentação ou seção nas configurações de categorização de itens de verificação do ThreatDetection.
Sintaxe
{
"Type": "ALIYUN::ThreatDetection::CustomCheckStandardPolicy",
"Properties": {
"PolicyType": String,
"PolicyShowName": String,
"DependentPolicyId": Integer,
"Type": String
}
}
Propriedades
|
Nome da propriedade |
Tipo |
Obrigatório |
Atualizável |
Descrição |
Restrições |
|
PolicyType |
String |
Sim |
Não |
Tipo de categorização da política de verificação personalizada. |
Valores:
|
|
PolicyShowName |
String |
Sim |
Sim |
Nome da política personalizada. |
Nenhuma |
|
DependentPolicyId |
Integer |
Não |
Sim |
ID da política pai associada. |
Nenhuma |
|
Type |
String |
Não |
Sim |
Categoria principal da política a ser associada. |
Valores:
|
Valores de retorno
Fn::GetAtt
PolicyId: o ID da política personalizada.
Exemplos
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"
]
}
}
}
}