ALIYUN::ThreatDetection::CustomCheckItem

更新时间:
复制为 MD 格式

ALIYUN::ThreatDetection::CustomCheckItem类型用于创建自定义检查项。

语法

{
  "Type": "ALIYUN::ThreatDetection::CustomCheckItem",
  "Properties": {
    "CheckShowName": String,
    "CheckRule": Map,
    "InstanceSubType": String,
    "InstanceType": String,
    "RiskLevel": String,
    "Status": String,
    "SectionIds": List,
    "Vendor": String,
    "AssistInfo": Map,
    "Description": Map,
    "Remark": String,
    "Solution": Map
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

CheckRule

Map

检查项检查规则。

CheckShowName

String

检查项显示名称。

InstanceSubType

String

检查项所属的资产子类型。

InstanceType

String

检查项所属的资产类型。

RiskLevel

String

检查项的风险等级。

取值:

  • HIGH

  • MEDIUM

  • LOW

SectionIds

List

检查项的检查章节。

长度:最小0,最大100。

Status

String

检查项状态。

取值:

  • EDIT:编辑中

  • RELEASE:已发布

Vendor

String

检查项所属的厂商。

AssistInfo

Map

检查项描述帮助信息。

更多信息,请参考AssistInfo属性

Description

Map

检查项描述信息。

更多信息,请参考Description属性

Remark

String

备注。

Solution

Map

检查项解决方案。

更多信息,请参考Solution属性

Description语法

"Description": {
  "Type": String,
  "Value": String
}

Description属性

属性名称

类型

必须

允许更新

描述

约束

Type

String

检查项描述信息类型。

取值:

  • text

Value

String

检查项描述信息值。

AssistInfo语法

"AssistInfo": {
  "Type": String,
  "Value": String
}

AssistInfo属性

属性名称

类型

必须

允许更新

描述

约束

Type

String

检查项描述帮助信息类型。

取值:

  • text

Value

String

检查项描述帮助信息值。

Solution语法

"Solution": {
  "Type": String,
  "Value": String
}

Solution属性

属性名称

类型

必须

允许更新

描述

约束

Type

String

检查项解决方案类型。

取值:

  • text

Value

String

检查项解决方案值。

返回值

Fn::GetAtt

  • InstanceSubType:检查项所属的资产子类型。

  • SectionIds:检查项的检查章节。

  • Description:检查项描述信息。

  • CheckId:资源的第一个ID。

  • CheckShowName:检查项显示名称。

  • CheckRule:检查项检查规则。

  • Vendor:检查项所属的厂商。

  • AssistInfo:检查项描述帮助信息。

  • InstanceType:检查项所属的资产类型。

  • RiskLevel:检查项的风险等级。

  • Solution:检查项解决方案。

  • Remark:备注。

示例

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  InstanceSubType:
    Type: String
    Description:
      en: Asset subtype to which the check item belongs.
    Required: true
  Status:
    Type: String
    Description:
      en: |-
        Check item status. Values:
        EDIT: Editing in progress
        RELEASE: Published
    AllowedValues:
      - EDIT
      - RELEASE
    Required: true
  AssistInfo:
    Description:
      en: Check Item Description Help Information.
    Required: false
    Default: Null
    Type: Json
    AssociationPropertyMetadata:
      Parameters:
        Type:
          Type: String
          Description:
            en: Check Item Description Help Information Type.
          AllowedValues:
            - text
          Default: Null
          Required: false
        Value:
          Type: String
          Description:
            en: Check Item Description Help Information Value.
          Default: Null
          Required: false
  Vendor:
    Type: String
    Description:
      en: Vendor to which the item belongs.
    Required: true
  Description:
    Description:
      en: Check item description information.
    Required: false
    Default: Null
    Type: Json
    AssociationPropertyMetadata:
      Parameters:
        Type:
          Type: String
          Description:
            en: Check Item Description Information Type.
          AllowedValues:
            - text
          Default: Null
          Required: false
        Value:
          Type: String
          Description:
            en: Check item description information value.
          Default: Null
          Required: false
  RiskLevel:
    Type: String
    Description:
      en: Risk level of inspection items.
    AllowedValues:
      - HIGH
      - MEDIUM
      - LOW
    Required: true
  SectionIds:
    Description:
      en: CHECK SECTION OF INSPECTIONS.
    Required: true
    Type: Json
    MinLength: 0
    MaxLength: 100
    AssociationProperty: List[Parameter]
    AssociationPropertyMetadata:
      Parameter:
        Type: Number
        Description:
          en: Chapter id.
        Default: Null
        Required: false
  Remark:
    Type: String
    Description:
      en: Remarks.
    Default: Null
    Required: false
  Solution:
    Description:
      en: Check Item Solution.
    Required: false
    Default: Null
    Type: Json
    AssociationPropertyMetadata:
      Parameters:
        Type:
          Type: String
          Description:
            en: Check Item Solution Type.
          AllowedValues:
            - text
          Default: Null
          Required: false
        Value:
          Type: String
          Description:
            en: Check Item Solution Value.
          Default: Null
          Required: false
  CheckShowName:
    Type: String
    Description:
      en: Check item display name.
    Required: true
  CheckRule:
    Description:
      en: Check Item Check Rules.
    Required: true
    Type: Json
  InstanceType:
    Type: String
    Description:
      en: Asset type to which the check item belongs.
    Required: true
Resources:
  ExtensionResource:
    Type: ALIYUN::ThreatDetection::CustomCheckItem
    Properties:
      InstanceSubType:
        Ref: InstanceSubType
      Status:
        Ref: Status
      AssistInfo:
        Ref: AssistInfo
      Vendor:
        Ref: Vendor
      Description:
        Ref: Description
      RiskLevel:
        Ref: RiskLevel
      SectionIds:
        Ref: SectionIds
      Remark:
        Ref: Remark
      Solution:
        Ref: Solution
      CheckShowName:
        Ref: CheckShowName
      CheckRule:
        Ref: CheckRule
      InstanceType:
        Ref: InstanceType
Outputs:
  CheckId:
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - CheckId
    Description: The first ID of the resource.
  InstanceSubType:
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - InstanceSubType
    Description: Asset subtype to which the check item belongs.
  AssistInfo:
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - AssistInfo
    Description: Check Item Description Help Information.
  Vendor:
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - Vendor
    Description: Vendor to which the item belongs.
  Description:
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - Description
    Description: Check item description information.
  RiskLevel:
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - RiskLevel
    Description: Risk level of inspection items.
  SectionIds:
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - SectionIds
    Description: CHECK SECTION OF INSPECTIONS.
  Remark:
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - Remark
    Description: Remarks.
  Solution:
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - Solution
    Description: Check Item Solution.
  CheckShowName:
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - CheckShowName
    Description: Check item display name.
  CheckRule:
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - CheckRule
    Description: Check Item Check Rules.
  InstanceType:
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - InstanceType
    Description: Asset type to which the check item belongs.
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "InstanceSubType": {
      "Type": "String",
      "Description": {
        "en": "Asset subtype to which the check item belongs."
      },
      "Required": true
    },
    "Status": {
      "Type": "String",
      "Description": {
        "en": "Check item status. Values:\nEDIT: Editing in progress\nRELEASE: Published"
      },
      "AllowedValues": [
        "EDIT",
        "RELEASE"
      ],
      "Required": true
    },
    "AssistInfo": {
      "Description": {
        "en": "Check Item Description Help Information."
      },
      "Required": false,
      "Default": null,
      "Type": "Json",
      "AssociationPropertyMetadata": {
        "Parameters": {
          "Type": {
            "Type": "String",
            "Description": {
              "en": "Check Item Description Help Information Type."
            },
            "AllowedValues": [
              "text"
            ],
            "Default": null,
            "Required": false
          },
          "Value": {
            "Type": "String",
            "Description": {
              "en": "Check Item Description Help Information Value."
            },
            "Default": null,
            "Required": false
          }
        }
      }
    },
    "Vendor": {
      "Type": "String",
      "Description": {
        "en": "Vendor to which the item belongs."
      },
      "Required": true
    },
    "Description": {
      "Description": {
        "en": "Check item description information."
      },
      "Required": false,
      "Default": null,
      "Type": "Json",
      "AssociationPropertyMetadata": {
        "Parameters": {
          "Type": {
            "Type": "String",
            "Description": {
              "en": "Check Item Description Information Type."
            },
            "AllowedValues": [
              "text"
            ],
            "Default": null,
            "Required": false
          },
          "Value": {
            "Type": "String",
            "Description": {
              "en": "Check item description information value."
            },
            "Default": null,
            "Required": false
          }
        }
      }
    },
    "RiskLevel": {
      "Type": "String",
      "Description": {
        "en": "Risk level of inspection items."
      },
      "AllowedValues": [
        "HIGH",
        "MEDIUM",
        "LOW"
      ],
      "Required": true
    },
    "SectionIds": {
      "Description": {
        "en": "CHECK SECTION OF INSPECTIONS."
      },
      "Required": true,
      "Type": "Json",
      "MinLength": 0,
      "MaxLength": 100,
      "AssociationProperty": "List[Parameter]",
      "AssociationPropertyMetadata": {
        "Parameter": {
          "Type": "Number",
          "Description": {
            "en": "Chapter id."
          },
          "Default": null,
          "Required": false
        }
      }
    },
    "Remark": {
      "Type": "String",
      "Description": {
        "en": "Remarks."
      },
      "Default": null,
      "Required": false
    },
    "Solution": {
      "Description": {
        "en": "Check Item Solution."
      },
      "Required": false,
      "Default": null,
      "Type": "Json",
      "AssociationPropertyMetadata": {
        "Parameters": {
          "Type": {
            "Type": "String",
            "Description": {
              "en": "Check Item Solution Type."
            },
            "AllowedValues": [
              "text"
            ],
            "Default": null,
            "Required": false
          },
          "Value": {
            "Type": "String",
            "Description": {
              "en": "Check Item Solution Value."
            },
            "Default": null,
            "Required": false
          }
        }
      }
    },
    "CheckShowName": {
      "Type": "String",
      "Description": {
        "en": "Check item display name."
      },
      "Required": true
    },
    "CheckRule": {
      "Description": {
        "en": "Check Item Check Rules."
      },
      "Required": true,
      "Type": "Json"
    },
    "InstanceType": {
      "Type": "String",
      "Description": {
        "en": "Asset type to which the check item belongs."
      },
      "Required": true
    }
  },
  "Resources": {
    "ExtensionResource": {
      "Type": "ALIYUN::ThreatDetection::CustomCheckItem",
      "Properties": {
        "InstanceSubType": {
          "Ref": "InstanceSubType"
        },
        "Status": {
          "Ref": "Status"
        },
        "AssistInfo": {
          "Ref": "AssistInfo"
        },
        "Vendor": {
          "Ref": "Vendor"
        },
        "Description": {
          "Ref": "Description"
        },
        "RiskLevel": {
          "Ref": "RiskLevel"
        },
        "SectionIds": {
          "Ref": "SectionIds"
        },
        "Remark": {
          "Ref": "Remark"
        },
        "Solution": {
          "Ref": "Solution"
        },
        "CheckShowName": {
          "Ref": "CheckShowName"
        },
        "CheckRule": {
          "Ref": "CheckRule"
        },
        "InstanceType": {
          "Ref": "InstanceType"
        }
      }
    }
  },
  "Outputs": {
    "CheckId": {
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "CheckId"
        ]
      },
      "Description": "The first ID of the resource."
    },
    "InstanceSubType": {
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "InstanceSubType"
        ]
      },
      "Description": "Asset subtype to which the check item belongs."
    },
    "AssistInfo": {
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "AssistInfo"
        ]
      },
      "Description": "Check Item Description Help Information."
    },
    "Vendor": {
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "Vendor"
        ]
      },
      "Description": "Vendor to which the item belongs."
    },
    "Description": {
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "Description"
        ]
      },
      "Description": "Check item description information."
    },
    "RiskLevel": {
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "RiskLevel"
        ]
      },
      "Description": "Risk level of inspection items."
    },
    "SectionIds": {
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "SectionIds"
        ]
      },
      "Description": "CHECK SECTION OF INSPECTIONS."
    },
    "Remark": {
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "Remark"
        ]
      },
      "Description": "Remarks."
    },
    "Solution": {
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "Solution"
        ]
      },
      "Description": "Check Item Solution."
    },
    "CheckShowName": {
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "CheckShowName"
        ]
      },
      "Description": "Check item display name."
    },
    "CheckRule": {
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "CheckRule"
        ]
      },
      "Description": "Check Item Check Rules."
    },
    "InstanceType": {
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "InstanceType"
        ]
      },
      "Description": "Asset type to which the check item belongs."
    }
  }
}