ALIYUN::Config::CompliancePack is used to create a compliance package.
Syntax
{
"Type": "ALIYUN::Config::CompliancePack",
"Properties": {
"CompliancePackName": String,
"Description": String,
"ConfigRules": List,
"CompliancePackTemplateId": String,
"RiskLevel": Integer,
"ConfigRuleIds": List
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
CompliancePackName | String | Yes | No | The name of the compliance package. | None. |
Description | String | No | Yes | The description of the compliance package. | None. |
ConfigRules | List | Yes | No | The rules in the compliance package. | For more information, see ConfigRules properties. |
CompliancePackTemplateId | String | No | No | The ID of the compliance package template. | None. |
RiskLevel | Integer | Yes | Yes | The risk level. | Valid values:
|
ConfigRuleIds | List | No | Yes | The IDs of the rules. | For more information, see ConfigRuleIds property. |
ConfigRules syntax
"ConfigRules": [
{
"ConfigRuleId": String,
"ConfigRuleName": String,
"ManagedRuleIdentifier": String,
"ConfigRuleParameters": List
}
]
ConfigRules properties
Property | Type | Required | Editable | Description | Constraint |
ConfigRuleId | String | No | No | The ID of the rule. | None. |
ConfigRuleName | String | No | No | The name of the rule. | None. |
ManagedRuleIdentifier | String | No | No | The identifier of the rule. | None. |
ConfigRuleParameters | List | No | No | The parameters of the rule. | For more information, see ConfigRuleParameters properties. |
ConfigRuleParameters syntax
"ConfigRuleParameters": [
{
"ParameterValue": String,
"Required": Boolean,
"ParameterName": String
}
]
ConfigRuleParameters properties
Property | Type | Required | Editable | Description | Constraint |
ParameterValue | String | No | No | The value of the parameter. | None. |
Required | Boolean | No | No | Specifies whether the parameter is required. | Valid values:
|
ParameterName | String | No | No | The name of the parameter. | None. |
ConfigRuleIds syntax
"ConfigRuleIds": [
"ConfigRuleId": String
]
ConfigRuleIds property
Property | Type | Required | Editable | Description | Constraint |
ConfigRuleId | String | No | No | The ID of the rule. | None. |
Return values
Fn::GetAtt
CompliancePackId: the ID of the compliance package to which the rule belongs.
Description: the description of the compliance package.
CompliancePackName: the name of the compliance package.
AccountId: the ID of the Alibaba Cloud account.
CompliancePackTemplateId: the ID of the compliance package template.
RiskLevel: the risk level.