ALIYUN::ThreatDetection::HoneypotPreset

更新时间:
复制为 MD 格式

ALIYUN::ThreatDetection::HoneypotPreset类型用于创建蜜罐模板。

语法

{
  "Type": "ALIYUN::ThreatDetection::HoneypotPreset",
  "Properties": {
    "HoneypotImageName": String,
    "Meta": Map,
    "NodeId": String,
    "PresetName": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

HoneypotImageName

String

蜜罐镜像名称。

Meta

Map

蜜罐模板的自定义配置。

格式为 JSON 格式的字符串。包含以下字段:

  • portrait_option:社交溯源

  • burp:Burp 反制

  • trojan_git:Git 反制

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."
    }
  }
}