sendWorkflowStepAction
inline suspend fun ImagebuilderClient.sendWorkflowStepAction(crossinline block: SendWorkflowStepActionRequest.Builder.() -> Unit): SendWorkflowStepActionResponse
Sends an action to a workflow step that has paused at a WaitForAction step, so that image creation can continue. To find the steps that are waiting for an action, call ListWaitingWorkflowSteps.
Samples
// The following example sends the STOP action to a workflow step that has paused the image build,
// identified by the step execution ID that ListWaitingWorkflowSteps returns.
val resp = imagebuilderClient.sendWorkflowStepAction {
stepExecutionId = "step-8eb24d7a-036e-46b5-94a3-90a5d8b5ac4a"
imageBuildVersionArn = "arn:aws:imagebuilder:us-west-2:111122223333:image/my-example-wait-recipe/1.0.0/1"
action = WorkflowStepActionType.fromValue("STOP")
clientToken = "a1b2c3d4-5678-90ab-cdef-EXAMPLE67890"
}Content copied to clipboard