Class LifecycleHook
Inherited Members
Namespace: Pulumi.AliCloud.Ess
Assembly: Pulumi.AliCloud.dll
Syntax
public class LifecycleHook : CustomResource
Constructors
View SourceLifecycleHook(String, LifecycleHookArgs, CustomResourceOptions)
Create a LifecycleHook resource with the given unique name, arguments, and options.
Declaration
public LifecycleHook(string name, LifecycleHookArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| LifecycleHookArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceDefaultResult
Defines the action the Auto Scaling group should take when the lifecycle hook timeout elapses. Applicable value: CONTINUE, ABANDON, default value: CONTINUE.
Declaration
public Output<string> DefaultResult { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
HeartbeatTimeout
Defines the amount of time, in seconds, that can elapse before the lifecycle hook times out. When the lifecycle hook times out, Auto Scaling performs the action defined in the default_result parameter. Default value: 600.
Declaration
public Output<int?> HeartbeatTimeout { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Int32>> |
LifecycleTransition
Type of Scaling activity attached to lifecycle hook. Supported value: SCALE_OUT, SCALE_IN.
Declaration
public Output<string> LifecycleTransition { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Name
The name of the lifecycle hook, which must contain 2-64 characters (English or Chinese), starting with numbers, English letters or Chinese characters, and can contain number, underscores _, hypens -, and decimal point .. If this parameter value is not specified, the default value is lifecycle hook id.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
NotificationArn
The Arn of notification target.
Declaration
public Output<string> NotificationArn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
NotificationMetadata
Additional information that you want to include when Auto Scaling sends a message to the notification target.
Declaration
public Output<string> NotificationMetadata { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ScalingGroupId
The ID of the Auto Scaling group to which you want to assign the lifecycle hook.
Declaration
public Output<string> ScalingGroupId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, LifecycleHookState, CustomResourceOptions)
Get an existing LifecycleHook resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static LifecycleHook Get(string name, Input<string> id, LifecycleHookState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| LifecycleHookState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| LifecycleHook |