retryImage

inline suspend fun ImagebuilderClient.retryImage(crossinline block: RetryImageRequest.Builder.() -> Unit): RetryImageResponse

Retries a failed or canceled image build without rebuilding the phases that already completed. The image re-runs asynchronously in place: the same build version returns to the test or distribution phase where it failed and continues from there. No new image build version is created. Retry is only supported for AMI-based images.

Samples

// The following example retries a cancelled image build, which resumes in place from the phase where
// it stopped.
val resp = imagebuilderClient.retryImage {
    imageBuildVersionArn = "arn:aws:imagebuilder:us-west-2:111122223333:image/my-example-recipe/1.0.0/1"
    clientToken = "a1b2c3d4-5678-90ab-cdef-EXAMPLEfffff"
}