Table of Contents

Interface ILifecycleHookProps

Namespace
Amazon.CDK.AWS.AutoScaling
Assembly
Amazon.CDK.AWS.AutoScaling.dll

Properties for a Lifecycle hook.

public interface ILifecycleHookProps : IBasicLifecycleHookProps
Inherited Members

Examples

// The code below shows an example of how to instantiate this type.
            // The values are placeholders you should change.
            using Amazon.CDK.AWS.AutoScaling;
            using Amazon.CDK.AWS.IAM;
            using Amazon.CDK;

            AutoScalingGroup autoScalingGroup;
            ILifecycleHookTarget lifecycleHookTarget;
            Role role;
            var lifecycleHookProps = new LifecycleHookProps {
                AutoScalingGroup = autoScalingGroup,
                LifecycleTransition = LifecycleTransition.INSTANCE_LAUNCHING,

                // the properties below are optional
                DefaultResult = DefaultResult.CONTINUE,
                HeartbeatTimeout = Duration.Minutes(30),
                LifecycleHookName = "lifecycleHookName",
                NotificationMetadata = "notificationMetadata",
                NotificationTarget = lifecycleHookTarget,
                Role = role
            };

Remarks

ExampleMetadata: fixture=_generated

Properties

AutoScalingGroup

The AutoScalingGroup to add the lifecycle hook to.

IAutoScalingGroup AutoScalingGroup { get; }

Property Value

IAutoScalingGroup