The ALIYUN::ThreatDetection::BaselineStrategy type modifies a baseline check policy.
Syntax
{
"Type": "ALIYUN::ThreatDetection::BaselineStrategy",
"Properties": {
"BaselineStrategyName": String,
"CustomType": String,
"CycleDays": Integer,
"EndTime": String,
"RiskSubTypeName": String,
"StartTime": String,
"TargetType": String
}
}Properties
Parameter | Type | Required | Update allowed | Description | Constraints |
BaselineStrategyName | String | Yes | No | The name of the baseline check policy. | None |
CustomType | String | Yes | Yes | The type of the baseline check policy. | Valid values:
|
CycleDays | Integer | Yes | Yes | The interval of the baseline check in days. | Valid values:
|
EndTime | String | Yes | Yes | The end time for the baseline check, in | None |
RiskSubTypeName | String | Yes | Yes | The subtype of the baselines. | None |
StartTime | String | Yes | Yes | The start time for the baseline check, in | None |
TargetType | String | Yes | Yes | The type of target to which the policy applies. | Valid values:
|
Outputs
Fn::GetAtt
CustomType: The type of the baseline check policy.
EndTime: The end time for the baseline check, in
hh:mm:ssformat.BaselineStrategyName: The name of the baseline check policy.
CycleDays: The interval of the baseline check in days.
BaselineStrategyId: The ID of the baseline check policy.
TargetType: The type of target to which the policy applies.
StartTime: The start time for the baseline check, in
hh:mm:ssformat.RiskSubTypeName: The subtype of the baselines.
Examples
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
TargetType:
Type: String
Description:
en: |-
The type of target to which the policy applies. 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 start time for the baseline check, in hh:mm:ss format.
Required: true
CustomType:
Type: String
Description:
en: |-
The type of the baseline check policy. Valid values:
* **custom**: Custom baseline check policy
* **common**: Standard baseline check policy
AllowedValues:
- custom
- common
Required: true
BaselineStrategyName:
Type: String
Description:
en: The name of the baseline check policy.
Required: true
CycleDays:
Type: Number
Description:
en: |-
The interval of the baseline check in days. Valid values:
* **1**: Every day
* **3**: Every 3 days
* **7**: Every 7 days
* **30**: Every 30 days
Required: true
EndTime:
Type: String
Description:
en: The end time for the baseline check, in 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 type of target to which the policy applies.
RiskSubTypeName:
Value:
Fn::GetAtt:
- ExtensionResource
- RiskSubTypeName
Description: The subtype of the baselines.
StartTime:
Value:
Fn::GetAtt:
- ExtensionResource
- StartTime
Description: The start time for the baseline check, in 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 name of the baseline check policy.
CycleDays:
Value:
Fn::GetAtt:
- ExtensionResource
- CycleDays
Description: The interval of the baseline check in days.
EndTime:
Value:
Fn::GetAtt:
- ExtensionResource
- EndTime
Description: The end time for the baseline check, in 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 type of target to which the policy applies. 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 start time for the baseline check, in hh:mm:ss format."
},
"Required": true
},
"CustomType": {
"Type": "String",
"Description": {
"en": "The type of the baseline check policy. Valid values:\n* **custom**: Custom baseline check policy\n* **common**: Standard baseline check policy"
},
"AllowedValues": [
"custom",
"common"
],
"Required": true
},
"BaselineStrategyName": {
"Type": "String",
"Description": {
"en": "The name of the baseline check policy."
},
"Required": true
},
"CycleDays": {
"Type": "Number",
"Description": {
"en": "The interval of the baseline check in days. Valid values:\n* **1**: Every day\n* **3**: Every 3 days\n* **7**: Every 7 days\n* **30**: Every 30 days"
},
"Required": true
},
"EndTime": {
"Type": "String",
"Description": {
"en": "The end time for the baseline check, in 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 type of target to which the policy applies."
},
"RiskSubTypeName": {
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"RiskSubTypeName"
]
},
"Description": "The subtype of the baselines."
},
"StartTime": {
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"StartTime"
]
},
"Description": "The start time for the baseline check, in 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 name of the baseline check policy."
},
"CycleDays": {
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"CycleDays"
]
},
"Description": "The interval of the baseline check in days."
},
"EndTime": {
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"EndTime"
]
},
"Description": "The end time for the baseline check, in hh:mm:ss format."
},
"BaselineStrategyId": {
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"BaselineStrategyId"
]
},
"Description": "The ID of the baseline check policy."
}
}
}