cancelLifecycleExecution

Cancels a lifecycle execution – a single run of lifecycle actions that a lifecycle policy or a StartResourceStateUpdate request started. You can only cancel an execution that hasn't reached a terminal state. Cancellation is asynchronous and doesn't undo completed lifecycle actions.

Samples

// The following example cancels the scheduled resource state update associated with the specified
// lifecycle execution ID before it runs.
val resp = imagebuilderClient.cancelLifecycleExecution {
    lifecycleExecutionId = "lce-401aefc3-a829-46f6-8fc2-91497988a503"
    clientToken = "a1b2c3d4-5678-90ab-cdef-EXAMPLE97531"
}