Skip to content

StateConfigurationProps

Properties for defining a StateConfiguration.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-oos-stateconfiguration

Initializer

using AlibabaCloud.SDK.ROS.CDK.Oos;
new StateConfigurationProps {
    object ScheduleExpression,
    object ScheduleType,
    object Targets,
    object TemplateName,
    object ConfigureMode = null,
    object Description = null,
    object Parameters = null,
    object ResourceGroupId = null,
    System.Collections.Generic.IDictionary<string, object> Tags = null,
    object TemplateVersion = null
};

Properties

Name Type Description
ScheduleExpression object Property scheduleExpression: The schedule expression.
ScheduleType object Property scheduleType: The schedule type.
Targets object Property targets: The resources to be queried.
TemplateName object Property templateName: The name of the template.
ConfigureMode object Property configureMode: The configuration mode.
Description object Property description: The description of the desired-state configuration.
Parameters object Property parameters: The parameters.
ResourceGroupId object Property resourceGroupId: The resource group ID.
Tags System.Collections.Generic.IDictionary Property tags: Tag value and the key mapping, the label of the key number can be up to 20.
TemplateVersion object Property templateVersion: The version number of the template.

ScheduleExpressionRequired

public object ScheduleExpression { get; set; }
  • Type: object

Property scheduleExpression: The schedule expression.

The interval between two schedules must be a minimum of 30 minutes.


ScheduleTypeRequired

public object ScheduleType { get; set; }
  • Type: object

Property scheduleType: The schedule type.

Set the value to rate.


TargetsRequired

public object Targets { get; set; }
  • Type: object

Property targets: The resources to be queried.


TemplateNameRequired

public object TemplateName { get; set; }
  • Type: object

Property templateName: The name of the template.

The name must be 1 to 200 characters in length and can contain letters, digits, hyphens (-), and underscores (_).


ConfigureModeOptional

public object ConfigureMode { get; set; }
  • Type: object

Property configureMode: The configuration mode.

Valid values: ApplyOnce: The configuration is applied only once. After a configuration is updated, the new configuration is applied. ApplyAndMonitor: The configuration is applied only once. After the configuration is applied, the system only checks whether the configuration is migrated in the future. ApplyAndAutoCorrect: The configuration is always applied.


DescriptionOptional

public object Description { get; set; }
  • Type: object

Property description: The description of the desired-state configuration.


ParametersOptional

public object Parameters { get; set; }
  • Type: object

Property parameters: The parameters.


ResourceGroupIdOptional

public object ResourceGroupId { get; set; }
  • Type: object

Property resourceGroupId: The resource group ID.


TagsOptional

public System.Collections.Generic.IDictionary<string, object> Tags { get; set; }
  • Type: System.Collections.Generic.IDictionary

Property tags: Tag value and the key mapping, the label of the key number can be up to 20.


TemplateVersionOptional

public object TemplateVersion { get; set; }
  • Type: object

Property templateVersion: The version number of the template.

If you do not specify this parameter, the latest version of the template is used.