Show / Hide Table of Contents

Class LifecycleHook

Inheritance
System.Object
Resource
CustomResource
LifecycleHook
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.AliCloud.Ess
Assembly: Pulumi.AliCloud.dll
Syntax
public class LifecycleHook : CustomResource

Constructors

View Source

LifecycleHook(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 Source

DefaultResult

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>
View Source

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>>
View Source

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>
View Source

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>
View Source

NotificationArn

The Arn of notification target.

Declaration
public Output<string> NotificationArn { get; }
Property Value
Type Description
Output<System.String>
View Source

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>
View Source

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 Source

Get(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
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.