Skip to content

StateConfigurationProps

Properties for defining a StateConfiguration.

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

Initializer

import { StateConfigurationProps } from '@alicloud/ros-cdk-oos'
const stateConfigurationProps: StateConfigurationProps = { ... }

Properties

Name Type Description
scheduleExpression string | @alicloud/ros-cdk-core.IResolvable Property scheduleExpression: The schedule expression.
scheduleType string | @alicloud/ros-cdk-core.IResolvable Property scheduleType: The schedule type.
targets string | @alicloud/ros-cdk-core.IResolvable Property targets: The resources to be queried.
templateName string | @alicloud/ros-cdk-core.IResolvable Property templateName: The name of the template.
configureMode string | @alicloud/ros-cdk-core.IResolvable Property configureMode: The configuration mode.
description string | @alicloud/ros-cdk-core.IResolvable Property description: The description of the desired-state configuration.
parameters string | @alicloud/ros-cdk-core.IResolvable Property parameters: The parameters.
resourceGroupId string | @alicloud/ros-cdk-core.IResolvable Property resourceGroupId: The resource group ID.
tags {[ key: string ]: any} Property tags: Tag value and the key mapping, the label of the key number can be up to 20.
templateVersion string | @alicloud/ros-cdk-core.IResolvable Property templateVersion: The version number of the template.

scheduleExpressionRequired

public readonly scheduleExpression: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property scheduleExpression: The schedule expression.

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


scheduleTypeRequired

public readonly scheduleType: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property scheduleType: The schedule type.

Set the value to rate.


targetsRequired

public readonly targets: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property targets: The resources to be queried.


templateNameRequired

public readonly templateName: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

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 readonly configureMode: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

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 readonly description: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

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


parametersOptional

public readonly parameters: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property parameters: The parameters.


resourceGroupIdOptional

public readonly resourceGroupId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property resourceGroupId: The resource group ID.


tagsOptional

public readonly tags: {[ key: string ]: any};
  • Type: {[ key: string ]: any}

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


templateVersionOptional

public readonly templateVersion: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property templateVersion: The version number of the template.

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