getLifecycleExecution

Retrieves runtime information for a lifecycle execution – a single run of lifecycle actions that a lifecycle policy or a StartResourceStateUpdate request started.

Samples

// The following example retrieves the runtime status of the specified lifecycle execution. If the
// execution was started by StartResourceStateUpdate rather than a lifecycle policy run, the response doesn t
// include the lifecyclePolicyArn field.
val resp = imagebuilderClient.getLifecycleExecution {
    lifecycleExecutionId = "lce-401aefc3-a829-46f6-8fc2-91497988a503"
}