ALIYUN::ThreatDetection::HoneypotPreset类型用于创建蜜罐模板。
语法
{
"Type": "ALIYUN::ThreatDetection::HoneypotPreset",
"Properties": {
"HoneypotImageName": String,
"Meta": Map,
"NodeId": String,
"PresetName": String
}
}
属性
|
属性名称 |
类型 |
必须 |
允许更新 |
描述 |
约束 |
|
HoneypotImageName |
String |
是 |
否 |
蜜罐镜像名称。 |
无 |
|
Meta |
Map |
是 |
否 |
蜜罐模板的自定义配置。 |
格式为 JSON 格式的字符串。包含以下字段:
|
|
NodeId |
String |
是 |
否 |
管理节点ID。 |
无 |
|
PresetName |
String |
是 |
是 |
蜜罐模板的自定义名称。 |
无 |
Meta语法
"Meta": {
"TrojanGit": String,
"PortraitOption": Boolean,
"Burp": String
}
Meta属性
|
属性名称 |
类型 |
必须 |
允许更新 |
描述 |
约束 |
|
Burp |
String |
否 |
否 |
Burp专项防御。 |
无 |
|
PortraitOption |
Boolean |
否 |
否 |
社会溯源。 |
无 |
|
TrojanGit |
String |
否 |
否 |
Git专项防御。 |
无 |
返回值
Fn::GetAtt
-
HoneypotImageName:蜜罐镜像名称。
-
Meta:蜜罐模板的自定义配置。
-
NodeId:管理节点ID。
-
PresetName:蜜罐模板的自定义名称。
-
HoneypotPresetId:蜜罐模板ID。
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
HoneypotImageName:
Type: String
Description:
en: The name of the honeypot image.
Required: true
Meta:
Description:
en: |-
The custom configurations of the honeypot template. The value is a JSON string that contains the following fields:
* **PortraitOption**: Social Source Tracing
* **Burp**: Burp-specific Defense
* **TrojanGit**: Git-specific Defense.
Required: true
Type: Json
AssociationPropertyMetadata:
Parameters:
PortraitOption:
Type: Boolean
Description:
en: Social Source Tracing.
Default: Null
Required: false
TrojanGit:
Type: String
Description:
en: Git-specific Defense.
Default: Null
Required: false
Burp:
Type: String
Description:
en: Burp-specific Defense.
Default: Null
Required: false
NodeId:
Type: String
Description:
en: The ID of the management node.
Required: true
PresetName:
Type: String
Description:
en: The custom name of the honeypot template.
Required: true
Resources:
ExtensionResource:
Type: ALIYUN::ThreatDetection::HoneypotPreset
Properties:
HoneypotImageName:
Ref: HoneypotImageName
Meta:
Ref: Meta
NodeId:
Ref: NodeId
PresetName:
Ref: PresetName
Outputs:
HoneypotPresetId:
Value:
Fn::GetAtt:
- ExtensionResource
- HoneypotPresetId
Description: The ID of the honeypot template.
HoneypotImageName:
Value:
Fn::GetAtt:
- ExtensionResource
- HoneypotImageName
Description: The name of the honeypot image.
Meta:
Value:
Fn::GetAtt:
- ExtensionResource
- Meta
Description: The custom configurations of the honeypot template.
NodeId:
Value:
Fn::GetAtt:
- ExtensionResource
- NodeId
Description: The ID of the management node.
PresetName:
Value:
Fn::GetAtt:
- ExtensionResource
- PresetName
Description: The custom name of the honeypot template.
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"HoneypotImageName": {
"Type": "String",
"Description": {
"en": "The name of the honeypot image."
},
"Required": true
},
"Meta": {
"Description": {
"en": "The custom configurations of the honeypot template. The value is a JSON string that contains the following fields:\n* **PortraitOption**: Social Source Tracing\n* **Burp**: Burp-specific Defense\n* **TrojanGit**: Git-specific Defense."
},
"Required": true,
"Type": "Json",
"AssociationPropertyMetadata": {
"Parameters": {
"PortraitOption": {
"Type": "Boolean",
"Description": {
"en": "Social Source Tracing."
},
"Default": null,
"Required": false
},
"TrojanGit": {
"Type": "String",
"Description": {
"en": "Git-specific Defense."
},
"Default": null,
"Required": false
},
"Burp": {
"Type": "String",
"Description": {
"en": "Burp-specific Defense."
},
"Default": null,
"Required": false
}
}
}
},
"NodeId": {
"Type": "String",
"Description": {
"en": "The ID of the management node."
},
"Required": true
},
"PresetName": {
"Type": "String",
"Description": {
"en": "The custom name of the honeypot template."
},
"Required": true
}
},
"Resources": {
"ExtensionResource": {
"Type": "ALIYUN::ThreatDetection::HoneypotPreset",
"Properties": {
"HoneypotImageName": {
"Ref": "HoneypotImageName"
},
"Meta": {
"Ref": "Meta"
},
"NodeId": {
"Ref": "NodeId"
},
"PresetName": {
"Ref": "PresetName"
}
}
}
},
"Outputs": {
"HoneypotPresetId": {
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"HoneypotPresetId"
]
},
"Description": "The ID of the honeypot template."
},
"HoneypotImageName": {
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"HoneypotImageName"
]
},
"Description": "The name of the honeypot image."
},
"Meta": {
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Meta"
]
},
"Description": "The custom configurations of the honeypot template."
},
"NodeId": {
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"NodeId"
]
},
"Description": "The ID of the management node."
},
"PresetName": {
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"PresetName"
]
},
"Description": "The custom name of the honeypot template."
}
}
}该文章对您有帮助吗?