aws-cdk-lib.aws_autoscaling.ILifecycleHookTarget

interface ILifecycleHookTarget

LanguageType name
.NETAmazon.CDK.AWS.AutoScaling.ILifecycleHookTarget
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsautoscaling#ILifecycleHookTarget
Javasoftware.amazon.awscdk.services.autoscaling.ILifecycleHookTarget
Pythonaws_cdk.aws_autoscaling.ILifecycleHookTarget
TypeScript (source)aws-cdk-lib » aws_autoscaling » ILifecycleHookTarget

Implemented by FunctionHook, QueueHook, TopicHook

Interface for autoscaling lifecycle hook targets.

Methods

NameDescription
bind(scope, options)Called when this object is used as the target of a lifecycle hook.

bind(scope, options)

public bind(scope: Construct, options: BindHookTargetOptions): LifecycleHookTargetConfig

Parameters

  • scope Construct
  • options BindHookTargetOptions — [disable-awslint:ref-via-interface] The lifecycle hook to attach to and a role to use.

Returns

  • LifecycleHookTargetConfig

Called when this object is used as the target of a lifecycle hook.