import * as ros from '@alicloud/ros-cdk-core'; import { RosWaitConditionHandle } from './ros.generated'; export { RosWaitConditionHandle as WaitConditionHandleProperty }; /** * Properties for defining a `WaitConditionHandle`. * See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ros-waitconditionhandle */ export interface WaitConditionHandleProps { /** * Property count: There are 3 preconditions that make Count taking effect: * 1.Mode is set to Full. * 2.Count >= 0. * 3.The id of signal is not specified. If so, it will be a self-increasing integer started from 1. For example, the id of the first signal is 1, the id of the second signal is 2, and so on. * * If Count takes effect, signals with id > Count will be deleted before update. * The default value is -1, which means no effect. * It is recommended to quote the same value with WaitCondition.Count. */ readonly count?: number | ros.IResolvable; /** * Property mode: If set to Increment, all old signals will be deleted before update. In this mode, WaitCondition.Count should reference an incremental value instead of a full value, such as ScalingGroupEnable.ScalingRuleArisExecuteResultNumberOfAddedInstances. * * If set to Full, no old signal will be deleted unless Count is set. In this mode, WaitCondition.Count should reference a full value, such as the same value with InstanceGroup.MaxAmount. It is recommended to use this mode with Count. * * Default to Full. */ readonly mode?: string | ros.IResolvable; } /** * Represents a `WaitConditionHandle`. */ export interface IWaitConditionHandle extends ros.IResource { readonly props: WaitConditionHandleProps; /** * Attribute CurlCli: Convenience attribute, provides curl CLI command prefix, which can be used for signalling handle completion or failure. You can signal success by adding --data-binary '{"status": "SUCCESS"}' , or signal failure by adding --data-binary '{"status": "FAILURE"}' */ readonly attrCurlCli: ros.IResolvable | string; /** * Attribute Headers: HTTP POST Headers used for signalling handle completion or failure. */ readonly attrHeaders: ros.IResolvable | string; /** * Attribute PowerShellCurlCli: Convenience attribute, provides curl CLI command prefix for PowerShell, which can be used for signalling handle completion or failure. As this cmdlet was introduced in PowerShell 3.0, ensure the version of PowerShell satisfies the constraint. (Show the version via $PSVersionTable.PSVersion.) You can signal success by adding -Body '{"status": "SUCCESS"}' , or signal failure by adding -Body '{"status": "FAILURE"}' */ readonly attrPowerShellCurlCli: ros.IResolvable | string; /** * Attribute URL: HTTP POST URL used for signalling handle completion or failure. */ readonly attrUrl: ros.IResolvable | string; /** * Attribute WindowsCurlCli: Convenience attribute, provides curl CLI command prefix for Windows, which can be used for signalling handle completion or failure. As Windows does not support curl command, you need to install curl.exe and add it to PATH first. You can signal success by adding --data-binary "{\"status\": \"SUCCESS\"}" , or signal failure by adding --data-binary "{\"status\": \"FAILURE\"}" */ readonly attrWindowsCurlCli: ros.IResolvable | string; } /** * This class encapsulates and extends the ROS resource type `ALIYUN::ROS::WaitConditionHandle`. * @Note This class may have some new functions to facilitate development, so it is recommended to use this class instead of `RosWaitConditionHandle`for a more convenient development experience. * See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ros-waitconditionhandle */ export declare class WaitConditionHandle extends ros.Resource implements IWaitConditionHandle { protected scope: ros.Construct; protected id: string; readonly props: WaitConditionHandleProps; protected enableResourcePropertyConstraint: boolean; /** * Attribute CurlCli: Convenience attribute, provides curl CLI command prefix, which can be used for signalling handle completion or failure. You can signal success by adding --data-binary '{"status": "SUCCESS"}' , or signal failure by adding --data-binary '{"status": "FAILURE"}' */ readonly attrCurlCli: ros.IResolvable | string; /** * Attribute Headers: HTTP POST Headers used for signalling handle completion or failure. */ readonly attrHeaders: ros.IResolvable | string; /** * Attribute PowerShellCurlCli: Convenience attribute, provides curl CLI command prefix for PowerShell, which can be used for signalling handle completion or failure. As this cmdlet was introduced in PowerShell 3.0, ensure the version of PowerShell satisfies the constraint. (Show the version via $PSVersionTable.PSVersion.) You can signal success by adding -Body '{"status": "SUCCESS"}' , or signal failure by adding -Body '{"status": "FAILURE"}' */ readonly attrPowerShellCurlCli: ros.IResolvable | string; /** * Attribute URL: HTTP POST URL used for signalling handle completion or failure. */ readonly attrUrl: ros.IResolvable | string; /** * Attribute WindowsCurlCli: Convenience attribute, provides curl CLI command prefix for Windows, which can be used for signalling handle completion or failure. As Windows does not support curl command, you need to install curl.exe and add it to PATH first. You can signal success by adding --data-binary "{\"status\": \"SUCCESS\"}" , or signal failure by adding --data-binary "{\"status\": \"FAILURE\"}" */ readonly attrWindowsCurlCli: ros.IResolvable | string; /** * Param scope - scope in which this resource is defined * Param id - scoped id of the resource * Param props - resource properties */ constructor(scope: ros.Construct, id: string, props?: WaitConditionHandleProps, enableResourcePropertyConstraint?: boolean); }