getLifecycleExecution
inline suspend fun ImagebuilderClient.getLifecycleExecution(crossinline block: GetLifecycleExecutionRequest.Builder.() -> Unit): GetLifecycleExecutionResponse
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"
}Content copied to clipboard