Skip to content

SleepProps

Properties for defining a Sleep.

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

Initializer

import com.aliyun.ros.cdk.ros.SleepProps;
SleepProps.builder()
//  .createDuration(java.lang.Number)
//  .createDuration(IResolvable)
//  .deleteDuration(java.lang.Number)
//  .deleteDuration(IResolvable)
//  .triggers(IResolvable)
//  .triggers(java.util.Map<java.lang.String, java.lang.Object>)
//  .updateDuration(java.lang.Number)
//  .updateDuration(IResolvable)
//  .updateRollbackDuration(java.lang.Number)
//  .updateRollbackDuration(IResolvable)
    .build();

Properties

Name Type Description
createDuration java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property createDuration: The number of seconds to wait before resource creation.
deleteDuration java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property deleteDuration: The number of seconds to wait before resource deletion.
triggers com.aliyun.ros.cdk.core.IResolvable OR java.util.Map Property triggers: Arbitrary map of values that, when changed, will run update or update rollback delays again.
updateDuration java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property updateDuration: The number of seconds to wait before resource update.
updateRollbackDuration java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property updateRollbackDuration: The number of seconds to wait before resource update rollback.

createDurationOptional

public java.lang.Object getCreateDuration();
  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

Property createDuration: The number of seconds to wait before resource creation.


deleteDurationOptional

public java.lang.Object getDeleteDuration();
  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

Property deleteDuration: The number of seconds to wait before resource deletion.


triggersOptional

public java.lang.Object getTriggers();
  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.Map

Property triggers: Arbitrary map of values that, when changed, will run update or update rollback delays again.


updateDurationOptional

public java.lang.Object getUpdateDuration();
  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

Property updateDuration: The number of seconds to wait before resource update.

It only triggers when the property Triggers change and the status of stack is UPDATE_IN_PROGRESS.


updateRollbackDurationOptional

public java.lang.Object getUpdateRollbackDuration();
  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

Property updateRollbackDuration: The number of seconds to wait before resource update rollback.

It only triggers when stack update failed and resource was updated.