ALIYUN::ThreatDetection::AttackPathSensitiveAssetConfig类型用于创建攻击路径敏感资产配置。
语法
{
"Type": "ALIYUN::ThreatDetection::AttackPathSensitiveAssetConfig",
"Properties": {
"AttackPathAssetList": List
}
}
属性
|
属性名称 |
类型 |
必须 |
允许更新 |
描述 |
约束 |
|
AttackPathAssetList |
List |
是 |
是 |
攻击路径敏感资产配置列表。 |
最小长度:1 最大长度:100。更多信息,请参考AttackPathAssetList属性。 |
AttackPathAssetList语法
"AttackPathAssetList": [
{
"InstanceName": String,
"AssetType": Integer,
"InstanceId": String,
"Vendor": Integer,
"RegionId": String,
"AssetSubType": Integer
}
]
AttackPathAssetList属性
|
属性名称 |
类型 |
必须 |
允许更新 |
描述 |
约束 |
|
AssetSubType |
Integer |
是 |
是 |
云产品资产子类型。 |
无 |
|
AssetType |
Integer |
是 |
是 |
云产品资产类型。 |
无 |
|
InstanceId |
String |
是 |
是 |
云产品资产实例ID。 |
无 |
|
RegionId |
String |
是 |
是 |
云产品资产实例的地域ID。 |
无 |
|
Vendor |
Integer |
是 |
是 |
云产品资产供应商。 |
取值:
|
|
InstanceName |
String |
否 |
否 |
云产品资产实例名称。 |
无 |
返回值
Fn::GetAtt
-
AttackPathSensitiveAssetConfigId:攻击路径敏感资产配置ID。
-
AttackPathAssetList:攻击路径敏感资产配置列表。
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
AttackPathAssetList:
Description:
en: The attack path sensitive asset configuration list.
Required: true
Type: Json
MinLength: 1
MaxLength: 100
AssociationProperty: List[Parameters]
AssociationPropertyMetadata:
Parameters:
AssetType:
Type: Number
Description:
en: Type of the cloud product asset.
Required: true
Vendor:
Type: Number
Description:
en: Cloud product asset vendor.
AllowedValues:
- 0
Required: true
InstanceId:
Type: String
Description:
en: Cloud product asset instance ID.
Required: true
AssetSubType:
Type: Number
Description:
en: Subtype of the cloud product asset.
Required: true
RegionId:
Type: String
Description:
en: Region ID of the cloud product asset instance.
Required: true
InstanceName:
Type: String
Description:
en: Instance name of the cloud product asset.
Default: Null
Required: false
Resources:
ExtensionResource:
Type: ALIYUN::ThreatDetection::AttackPathSensitiveAssetConfig
Properties:
AttackPathAssetList:
Ref: AttackPathAssetList
Outputs:
AttackPathAssetList:
Value:
Fn::GetAtt:
- ExtensionResource
- AttackPathAssetList
Description: The attack path sensitive asset configuration list.
AttackPathSensitiveAssetConfigId:
Value:
Fn::GetAtt:
- ExtensionResource
- AttackPathSensitiveAssetConfigId
Description: Attack path sensitive asset configuration ID.
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"AttackPathAssetList": {
"Description": {
"en": "The attack path sensitive asset configuration list."
},
"Required": true,
"Type": "Json",
"MinLength": 1,
"MaxLength": 100,
"AssociationProperty": "List[Parameters]",
"AssociationPropertyMetadata": {
"Parameters": {
"AssetType": {
"Type": "Number",
"Description": {
"en": "Type of the cloud product asset."
},
"Required": true
},
"Vendor": {
"Type": "Number",
"Description": {
"en": "Cloud product asset vendor."
},
"AllowedValues": [
0
],
"Required": true
},
"InstanceId": {
"Type": "String",
"Description": {
"en": "Cloud product asset instance ID."
},
"Required": true
},
"AssetSubType": {
"Type": "Number",
"Description": {
"en": "Subtype of the cloud product asset."
},
"Required": true
},
"RegionId": {
"Type": "String",
"Description": {
"en": "Region ID of the cloud product asset instance."
},
"Required": true
},
"InstanceName": {
"Type": "String",
"Description": {
"en": "Instance name of the cloud product asset."
},
"Default": null,
"Required": false
}
}
}
}
},
"Resources": {
"ExtensionResource": {
"Type": "ALIYUN::ThreatDetection::AttackPathSensitiveAssetConfig",
"Properties": {
"AttackPathAssetList": {
"Ref": "AttackPathAssetList"
}
}
}
},
"Outputs": {
"AttackPathAssetList": {
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"AttackPathAssetList"
]
},
"Description": "The attack path sensitive asset configuration list."
},
"AttackPathSensitiveAssetConfigId": {
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"AttackPathSensitiveAssetConfigId"
]
},
"Description": "Attack path sensitive asset configuration ID."
}
}
}该文章对您有帮助吗?