ALIYUN::OOS::StateConfiguration is used to create a desired-state configuration.
Syntax
{
"Type": "ALIYUN::OOS::StateConfiguration",
"Properties": {
"ConfigureMode": String,
"ScheduleExpression": String,
"ScheduleType": String,
"Description": String,
"Parameters": String,
"ResourceGroupId": String,
"TemplateName": String,
"TemplateVersion": String,
"Targets": String,
"Tags": Map
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
ConfigureMode | String | No | Yes | The configuration mode. | Valid values:
|
ScheduleExpression | String | Yes | Yes | The schedule expression. | The interval between two schedules must be at least 30 minutes. |
ScheduleType | String | Yes | Yes | The schedule type. | Set the value to rate. |
Description | String | No | Yes | The description of the desired-state configuration. | None. |
Parameters | String | No | Yes | The parameters. | Example:
|
ResourceGroupId | String | No | Yes | The ID of the resource group. | None. |
TemplateName | String | Yes | No | The template name. | The name can be up to 200 characters in length, and can contain letters, digits, hyphens (-), and underscores (_). |
TemplateVersion | String | No | No | The version number. | If you do not specify this property, the latest version is used by default. |
Targets | String | Yes | Yes | The resources to be queried. | None. |
Tags | Map | No | Yes | The tags. | A tag can have up to 20 keys. Sample tag:
|
Return values
Fn::GetAtt
StateConfigurationId: the ID of the created desired-state configuration.