Skip to content

StateConfigurationProps

Properties for defining a StateConfiguration.

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

Initializer

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkoos"
&alicloudroscdkoos.StateConfigurationProps {
    ScheduleExpression: interface{},
    ScheduleType: interface{},
    Targets: interface{},
    TemplateName: interface{},
    ConfigureMode: interface{},
    Description: interface{},
    Parameters: interface{},
    ResourceGroupId: interface{},
    Tags: *map[string]interface{},
    TemplateVersion: interface{},
}

Properties

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

ScheduleExpressionRequired

ScheduleExpression interface{}
  • Type: interface{}

Property scheduleExpression: The schedule expression.

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


ScheduleTypeRequired

ScheduleType interface{}
  • Type: interface{}

Property scheduleType: The schedule type.

Set the value to rate.


TargetsRequired

Targets interface{}
  • Type: interface{}

Property targets: The resources to be queried.


TemplateNameRequired

TemplateName interface{}
  • Type: interface{}

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

ConfigureMode interface{}
  • Type: interface{}

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

Description interface{}
  • Type: interface{}

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


ParametersOptional

Parameters interface{}
  • Type: interface{}

Property parameters: The parameters.


ResourceGroupIdOptional

ResourceGroupId interface{}
  • Type: interface{}

Property resourceGroupId: The resource group ID.


TagsOptional

Tags *map[string]interface{}
  • Type: *map[string]interface{}

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


TemplateVersionOptional

TemplateVersion interface{}
  • Type: interface{}

Property templateVersion: The version number of the template.

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