ALIYUN::ThreatDetection::AttackPathWhitelist

更新时间:
复制为 MD 格式

ALIYUN::ThreatDetection::AttackPathWhitelist类型用于创建攻击路径白名单。

语法

{
  "Type": "ALIYUN::ThreatDetection::AttackPathWhitelist",
  "Properties": {
    "PathType": String,
    "PathName": String,
    "WhitelistType": String,
    "WhitelistName": String,
    "AttackPathAssetList": List,
    "Remark": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

PathName

String

白名单路径名称。

PathType

String

白名单路径类型。

WhitelistName

String

白名单名称。

WhitelistType

String

白名单类型。

取值:

  • ALL_ASSET:所有资产。

  • PART_ASSET:部分资产。

AttackPathAssetList

List

攻击路径资产列表。

最小长度:1 最大长度:100。更多信息,请参考AttackPathAssetList属性

Remark

String

备注信息。

AttackPathAssetList语法

"AttackPathAssetList": [
  {
    "AssetType": Integer,
    "InstanceId": String,
    "NodeType": String,
    "RegionId": String,
    "Vendor": Integer,
    "AssetSubType": Integer
  }
]

AttackPathAssetList属性

属性名称

类型

必须

允许更新

描述

约束

Vendor

Integer

云产品供应商ID。

取值:

  • 1

AssetSubType

Integer

云产品资产子类型。

AssetType

Integer

云产品资产类型。

InstanceId

String

云产品实例ID。

NodeType

String

白名单节点类型。

取值:

  • start:起点。

  • end:终点。

RegionId

String

云产品地域ID。

返回值

Fn::GetAtt

  • PathType:白名单路径类型。

  • AttackPathAssetList:攻击路径资产列表。

  • WhitelistType:白名单类型。

  • WhitelistName:白名单名称。

  • PathName:白名单路径名称。

  • Remark:备注信息。

  • AttackPathWhitelistId:攻击路径白名单ID。

示例

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  Remark:
    Type: String
    Description:
      en: Remark information.
    Default: Null
    Required: false
  WhitelistType:
    Type: String
    Description:
      en: |-
        The whitelist type.  Values:
        * ALL_ASSET: All assets.
        * PART_ASSET: Partial assets.
    AllowedValues:
      - ALL_ASSET
      - PART_ASSET
    Required: true
  PathType:
    Type: String
    Description:
      en: The whitelist path type.
    Required: true
  AttackPathAssetList:
    Description:
      en: List of attack path assets.
    Required: false
    Default: Null
    Type: Json
    MinLength: 1
    MaxLength: 100
    AssociationProperty: List[Parameters]
    AssociationPropertyMetadata:
      Parameters:
        AssetType:
          Type: Number
          Description:
            en: The asset type of the cloud product.
          Default: Null
          Required: false
        NodeType:
          Type: String
          Description:
            en: |-
              The whitelist node type, with values:
              * start: Start point.
              * end: End point.
          AllowedValues:
            - start
            - end
          Default: Null
          Required: false
        InstanceId:
          Type: String
          Description:
            en: The ID of the cloud product instance.
          Default: Null
          Required: false
        AssetSubType:
          Type: Number
          Description:
            en: Cloud product asset subtype.
          Default: Null
          Required: false
        RegionId:
          Type: String
          Description:
            en: The region ID of the cloud product.
          Default: Null
          Required: false
        Vendor:
          Type: Number
          Description:
            en: The cloud product cloud vendor ID.
          AllowedValues:
            - 1
          Required: true
  PathName:
    Type: String
    Description:
      en: The whitelist path name.
    Required: true
  WhitelistName:
    Type: String
    Description:
      en: The whitelist name.
    Required: true
Resources:
  ExtensionResource:
    Type: ALIYUN::ThreatDetection::AttackPathWhitelist
    Properties:
      Remark:
        Ref: Remark
      WhitelistType:
        Ref: WhitelistType
      PathType:
        Ref: PathType
      AttackPathAssetList:
        Ref: AttackPathAssetList
      PathName:
        Ref: PathName
      WhitelistName:
        Ref: WhitelistName
Outputs:
  Remark:
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - Remark
    Description: Remark information.
  WhitelistType:
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - WhitelistType
    Description: The whitelist type.
  PathType:
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - PathType
    Description: The whitelist path type.
  AttackPathWhitelistId:
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - AttackPathWhitelistId
    Description: The attack path whitelist ID.
  AttackPathAssetList:
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - AttackPathAssetList
    Description: List of attack path assets.
  PathName:
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - PathName
    Description: The whitelist path name.
  WhitelistName:
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - WhitelistName
    Description: The whitelist name.
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "Remark": {
      "Type": "String",
      "Description": {
        "en": "Remark information."
      },
      "Default": null,
      "Required": false
    },
    "WhitelistType": {
      "Type": "String",
      "Description": {
        "en": "The whitelist type.  Values:\n* ALL_ASSET: All assets.\n* PART_ASSET: Partial assets."
      },
      "AllowedValues": [
        "ALL_ASSET",
        "PART_ASSET"
      ],
      "Required": true
    },
    "PathType": {
      "Type": "String",
      "Description": {
        "en": "The whitelist path type."
      },
      "Required": true
    },
    "AttackPathAssetList": {
      "Description": {
        "en": "List of attack path assets."
      },
      "Required": false,
      "Default": null,
      "Type": "Json",
      "MinLength": 1,
      "MaxLength": 100,
      "AssociationProperty": "List[Parameters]",
      "AssociationPropertyMetadata": {
        "Parameters": {
          "AssetType": {
            "Type": "Number",
            "Description": {
              "en": "The asset type of the cloud product."
            },
            "Default": null,
            "Required": false
          },
          "NodeType": {
            "Type": "String",
            "Description": {
              "en": "The whitelist node type, with values:\n* start: Start point.\n* end: End point."
            },
            "AllowedValues": [
              "start",
              "end"
            ],
            "Default": null,
            "Required": false
          },
          "InstanceId": {
            "Type": "String",
            "Description": {
              "en": "The ID of the cloud product instance."
            },
            "Default": null,
            "Required": false
          },
          "AssetSubType": {
            "Type": "Number",
            "Description": {
              "en": "Cloud product asset subtype."
            },
            "Default": null,
            "Required": false
          },
          "RegionId": {
            "Type": "String",
            "Description": {
              "en": "The region ID of the cloud product."
            },
            "Default": null,
            "Required": false
          },
          "Vendor": {
            "Type": "Number",
            "Description": {
              "en": "The cloud product cloud vendor ID."
            },
            "AllowedValues": [
              1
            ],
            "Required": true
          }
        }
      }
    },
    "PathName": {
      "Type": "String",
      "Description": {
        "en": "The whitelist path name."
      },
      "Required": true
    },
    "WhitelistName": {
      "Type": "String",
      "Description": {
        "en": "The whitelist name."
      },
      "Required": true
    }
  },
  "Resources": {
    "ExtensionResource": {
      "Type": "ALIYUN::ThreatDetection::AttackPathWhitelist",
      "Properties": {
        "Remark": {
          "Ref": "Remark"
        },
        "WhitelistType": {
          "Ref": "WhitelistType"
        },
        "PathType": {
          "Ref": "PathType"
        },
        "AttackPathAssetList": {
          "Ref": "AttackPathAssetList"
        },
        "PathName": {
          "Ref": "PathName"
        },
        "WhitelistName": {
          "Ref": "WhitelistName"
        }
      }
    }
  },
  "Outputs": {
    "Remark": {
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "Remark"
        ]
      },
      "Description": "Remark information."
    },
    "WhitelistType": {
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "WhitelistType"
        ]
      },
      "Description": "The whitelist type."
    },
    "PathType": {
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "PathType"
        ]
      },
      "Description": "The whitelist path type."
    },
    "AttackPathWhitelistId": {
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "AttackPathWhitelistId"
        ]
      },
      "Description": "The attack path whitelist ID."
    },
    "AttackPathAssetList": {
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "AttackPathAssetList"
        ]
      },
      "Description": "List of attack path assets."
    },
    "PathName": {
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "PathName"
        ]
      },
      "Description": "The whitelist path name."
    },
    "WhitelistName": {
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "WhitelistName"
        ]
      },
      "Description": "The whitelist name."
    }
  }
}