ALIYUN::ThreatDetection::BaselineStrategy类型用于修改基线检查策略。
语法
{
"Type": "ALIYUN::ThreatDetection::BaselineStrategy",
"Properties": {
"BaselineStrategyName": String,
"CustomType": String,
"CycleDays": Integer,
"EndTime": String,
"RiskSubTypeName": String,
"StartTime": String,
"TargetType": String
}
}
属性
|
属性名称 |
类型 |
必须 |
允许更新 |
描述 |
约束 |
|
BaselineStrategyName |
String |
是 |
否 |
基线检查策略的新名称。 |
无 |
|
CustomType |
String |
是 |
是 |
基线检查策略的类型。 |
取值:
|
|
CycleDays |
Integer |
是 |
是 |
基线检查的新间隔。 |
取值:
|
|
EndTime |
String |
是 |
是 |
基于基线检查策略的基线检查结束时间。时间格式为hh:mm:ss。 |
无 |
|
RiskSubTypeName |
String |
是 |
是 |
基线的子类型。 |
无 |
|
StartTime |
String |
是 |
是 |
基于基线检查策略的基线检查开始时间。时间格式为hh:mm:ss。 |
无 |
|
TargetType |
String |
是 |
是 |
应用基线检查策略的方法。 |
取值:
|
返回值
Fn::GetAtt
-
CustomType:基线检查策略的类型。
-
EndTime:基于基线检查策略的基线检查结束时间。时间格式为hh:mm:ss。
-
BaselineStrategyName:基线检查策略的新名称。
-
CycleDays:基线检查的新间隔。
-
BaselineStrategyId:基线检查策略的ID。
-
TargetType:应用基线检查策略的方法。
-
StartTime:基于基线检查策略的基线检查开始时间。时间格式为hh:mm:ss。
-
RiskSubTypeName:基线的子类型。
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
TargetType:
Type: String
Description:
en: |-
The method that is used to apply the baseline check policy. Valid values:
* **groupId**: asset groups
* **uuid**: assets.
AllowedValues:
- groupId
- uuid
Required: true
RiskSubTypeName:
Type: String
Description:
en: The subtype of the baselines.
Required: true
StartTime:
Type: String
Description:
en: The time when the baseline check based on the baseline check policy starts. Specify the time in the hh:mm:ss format.
Required: true
CustomType:
Type: String
Description:
en: |-
The type of the baseline check policy. Valid values:
* **custom**: a custom baseline check policy
* **common**: a standard baseline check policy.
AllowedValues:
- custom
- common
Required: true
BaselineStrategyName:
Type: String
Description:
en: The new name of the baseline check policy.
Required: true
CycleDays:
Type: Number
Description:
en: |-
The new interval of the baseline check. Valid values:
* **1**: every 2 days
* **3**: every 4 days
* **7**: every 8 days
* **30**: every 31 days.
Required: true
EndTime:
Type: String
Description:
en: The time when the baseline check based on the baseline check policy ends. Specify the time in the hh:mm:ss format.
Required: true
Resources:
ExtensionResource:
Type: ALIYUN::ThreatDetection::BaselineStrategy
Properties:
TargetType:
Ref: TargetType
RiskSubTypeName:
Ref: RiskSubTypeName
StartTime:
Ref: StartTime
CustomType:
Ref: CustomType
BaselineStrategyName:
Ref: BaselineStrategyName
CycleDays:
Ref: CycleDays
EndTime:
Ref: EndTime
Outputs:
TargetType:
Value:
Fn::GetAtt:
- ExtensionResource
- TargetType
Description: The method that is used to apply the baseline check policy.
RiskSubTypeName:
Value:
Fn::GetAtt:
- ExtensionResource
- RiskSubTypeName
Description: The subtype of the baselines.
StartTime:
Value:
Fn::GetAtt:
- ExtensionResource
- StartTime
Description: The time when the baseline check based on the baseline check policy starts. Specify the time in the hh:mm:ss format.
CustomType:
Value:
Fn::GetAtt:
- ExtensionResource
- CustomType
Description: The type of the baseline check policy.
BaselineStrategyName:
Value:
Fn::GetAtt:
- ExtensionResource
- BaselineStrategyName
Description: The new name of the baseline check policy.
CycleDays:
Value:
Fn::GetAtt:
- ExtensionResource
- CycleDays
Description: The new interval of the baseline check.
EndTime:
Value:
Fn::GetAtt:
- ExtensionResource
- EndTime
Description: The time when the baseline check based on the baseline check policy ends. Specify the time in the hh:mm:ss format.
BaselineStrategyId:
Value:
Fn::GetAtt:
- ExtensionResource
- BaselineStrategyId
Description: The ID of the baseline check policy.
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"TargetType": {
"Type": "String",
"Description": {
"en": "The method that is used to apply the baseline check policy. Valid values:\n* **groupId**: asset groups\n* **uuid**: assets."
},
"AllowedValues": [
"groupId",
"uuid"
],
"Required": true
},
"RiskSubTypeName": {
"Type": "String",
"Description": {
"en": "The subtype of the baselines."
},
"Required": true
},
"StartTime": {
"Type": "String",
"Description": {
"en": "The time when the baseline check based on the baseline check policy starts. Specify the time in the hh:mm:ss format."
},
"Required": true
},
"CustomType": {
"Type": "String",
"Description": {
"en": "The type of the baseline check policy. Valid values:\n* **custom**: a custom baseline check policy\n* **common**: a standard baseline check policy."
},
"AllowedValues": [
"custom",
"common"
],
"Required": true
},
"BaselineStrategyName": {
"Type": "String",
"Description": {
"en": "The new name of the baseline check policy."
},
"Required": true
},
"CycleDays": {
"Type": "Number",
"Description": {
"en": "The new interval of the baseline check. Valid values:\n* **1**: every 2 days\n* **3**: every 4 days\n* **7**: every 8 days\n* **30**: every 31 days."
},
"Required": true
},
"EndTime": {
"Type": "String",
"Description": {
"en": "The time when the baseline check based on the baseline check policy ends. Specify the time in the hh:mm:ss format."
},
"Required": true
}
},
"Resources": {
"ExtensionResource": {
"Type": "ALIYUN::ThreatDetection::BaselineStrategy",
"Properties": {
"TargetType": {
"Ref": "TargetType"
},
"RiskSubTypeName": {
"Ref": "RiskSubTypeName"
},
"StartTime": {
"Ref": "StartTime"
},
"CustomType": {
"Ref": "CustomType"
},
"BaselineStrategyName": {
"Ref": "BaselineStrategyName"
},
"CycleDays": {
"Ref": "CycleDays"
},
"EndTime": {
"Ref": "EndTime"
}
}
}
},
"Outputs": {
"TargetType": {
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"TargetType"
]
},
"Description": "The method that is used to apply the baseline check policy."
},
"RiskSubTypeName": {
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"RiskSubTypeName"
]
},
"Description": "The subtype of the baselines."
},
"StartTime": {
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"StartTime"
]
},
"Description": "The time when the baseline check based on the baseline check policy starts. Specify the time in the hh:mm:ss format."
},
"CustomType": {
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"CustomType"
]
},
"Description": "The type of the baseline check policy."
},
"BaselineStrategyName": {
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"BaselineStrategyName"
]
},
"Description": "The new name of the baseline check policy."
},
"CycleDays": {
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"CycleDays"
]
},
"Description": "The new interval of the baseline check."
},
"EndTime": {
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"EndTime"
]
},
"Description": "The time when the baseline check based on the baseline check policy ends. Specify the time in the hh:mm:ss format."
},
"BaselineStrategyId": {
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"BaselineStrategyId"
]
},
"Description": "The ID of the baseline check policy."
}
}
}该文章对您有帮助吗?