LifecycleHook Class

Describes a lifecycle hook.

Constructor

LifecycleHook()

Variables

Name Description
type
Union[str, <xref:"VMScaleSetLifecycleHookEventType">]

Specifies the type of the lifecycle hook. Known values are: "UpgradeAutoOSScheduling" and "UpgradeAutoOSRollingBatchStarting".

wait_duration
str

Specifies the time duration a virtual machine scale set lifecycle hook event sent to the customer waits for a response from the customer. It should be in ISO 8601 format.

default_action
Union[str, <xref:"LifecycleHookAction">]

Specifies the action that will be applied to a target resource in the virtual machine scale set lifecycle hook event if the platform does not receive a response from the customer for the target resource before waitUntil. Known values are: "Approve" and "Reject".

Attributes

defaultAction

Specifies the action that will be applied to a target resource in the virtual machine scale set lifecycle hook event if the platform does not receive a response from the customer for the target resource before waitUntil. Known values are: "Approve" and "Reject".

defaultAction: str | LifecycleHookAction

type

"UpgradeAutoOSScheduling" and "UpgradeAutoOSRollingBatchStarting".

type: str | VMScaleSetLifecycleHookEventType

waitDuration

Specifies the time duration a virtual machine scale set lifecycle hook event sent to the customer waits for a response from the customer. It should be in ISO 8601 format.

waitDuration: str