ILifecycleHookTarget
- class aws_cdk.aws_autoscaling.ILifecycleHookTarget(*args, **kwargs)
- Bases: - Protocol- Interface for autoscaling lifecycle hook targets. - Methods - bind(scope, *, lifecycle_hook, role=None)
- Called when this object is used as the target of a lifecycle hook. - Parameters:
- scope ( - Construct)
- lifecycle_hook ( - LifecycleHook) – The lifecycle hook to attach to. [disable-awslint:ref-via-interface]
- role ( - Optional[- IRole]) – The role to use when attaching to the lifecycle hook. [disable-awslint:ref-via-interface] Default: : a role is not created unless the target arn is specified
 
- Return type: