Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

LifecycleHook

import type { LifecycleHook } from "https://aws-api.deno.dev/v0.4/services/autoscaling.ts?docs=full";

Describes a lifecycle hook. A lifecycle hook lets you create solutions that are aware of events in the Auto Scaling instance lifecycle, and then perform a custom action on instances when the corresponding lifecycle event occurs.

interface LifecycleHook {
AutoScalingGroupName?: string | null;
DefaultResult?: string | null;
GlobalTimeout?: number | null;
HeartbeatTimeout?: number | null;
LifecycleHookName?: string | null;
LifecycleTransition?: string | null;
NotificationMetadata?: string | null;
NotificationTargetARN?: string | null;
RoleARN?: string | null;
}

§Properties

§
AutoScalingGroupName?: string | null
[src]

The name of the Auto Scaling group for the lifecycle hook.

§
DefaultResult?: string | null
[src]

The action the Auto Scaling group takes when the lifecycle hook timeout elapses or if an unexpected failure occurs.

Valid values: CONTINUE | ABANDON

§
GlobalTimeout?: number | null
[src]

The maximum time, in seconds, that an instance can remain in a wait state. The maximum is 172800 seconds (48 hours) or 100 times HeartbeatTimeout, whichever is smaller.

§
HeartbeatTimeout?: number | null
[src]

The maximum time, in seconds, that can elapse before the lifecycle hook times out. If the lifecycle hook times out, Amazon EC2 Auto Scaling performs the action that you specified in the DefaultResult property.

§
LifecycleHookName?: string | null
[src]

The name of the lifecycle hook.

§
LifecycleTransition?: string | null
[src]

The lifecycle transition.

Valid values: autoscaling:EC2_INSTANCE_LAUNCHING | autoscaling:EC2_INSTANCE_TERMINATING

§
NotificationMetadata?: string | null
[src]

Additional information that is included any time Amazon EC2 Auto Scaling sends a message to the notification target.

§
NotificationTargetARN?: string | null
[src]

The ARN of the target that Amazon EC2 Auto Scaling sends notifications to when an instance is in a wait state for the lifecycle hook.

§
RoleARN?: string | null
[src]

The ARN of the IAM role that allows the Auto Scaling group to publish to the specified notification target (an Amazon SNS topic or an Amazon SQS queue).