deleteLifecycleHook
inline suspend fun AutoScalingClient.deleteLifecycleHook(crossinline block: DeleteLifecycleHookRequest.Builder.() -> Unit): DeleteLifecycleHookResponse
Deletes the specified lifecycle hook.
If there are any outstanding lifecycle actions, they are completed first (ABANDON
for launching instances, CONTINUE
for terminating instances).
Samples
fun main() {
//sampleStart
// This example deletes the specified lifecycle hook.
autoScalingClient.deleteLifecycleHook {
lifecycleHookName = "my-lifecycle-hook"
autoScalingGroupName = "my-auto-scaling-group"
}
//sampleEnd
}