imagebuilder / Client / send_workflow_step_action
send_workflow_step_action¶
- imagebuilder.Client.send_workflow_step_action(**kwargs)¶
Sends an action to a workflow step that has paused at a
WaitForActionstep, so that image creation can continue. To find the steps that are waiting for an action, call ListWaitingWorkflowSteps.See also: AWS API Documentation
Request Syntax
response = client.send_workflow_step_action( stepExecutionId='string', imageBuildVersionArn='string', action='RESUME'|'STOP', reason='string', clientToken='string' )
- Parameters:
stepExecutionId (string) –
[REQUIRED]
Uniquely identifies the waiting workflow step that you send the action to. To get this identifier, call ListWaitingWorkflowSteps.
imageBuildVersionArn (string) –
[REQUIRED]
The Amazon Resource Name (ARN) of the image build version associated with the workflow step execution. This value must match the image that owns the waiting step. If the ARN does not correspond to the image running the workflow, then the request fails with a validation error.
action (string) –
[REQUIRED]
The action to perform on the paused workflow step.
RESUMEcompletes the waiting step, and the workflow continues.STOPfails the step, and the step’sonFailuresetting determines whether the workflow continues or aborts. The workflow step must be in a waiting state to accept an action. The request fails if the step has already timed out or been actioned.reason (string) – The reason for the action. This value is stored with the step execution record and is accessible in subsequent workflow steps via step output references.
clientToken (string) –
[REQUIRED]
A unique, case-sensitive identifier you provide to ensure that the operation runs no more than one time. If you retry a request with the same client token, Image Builder returns the original response without running the operation again. For more information, see Ensuring idempotency in the Amazon EC2 API Reference.
This field is autopopulated if not provided.
- Return type:
dict
- Returns:
Response Syntax
{ 'stepExecutionId': 'string', 'imageBuildVersionArn': 'string', 'clientToken': 'string' }
Response Structure
(dict) –
stepExecutionId (string) –
The unique identifier for the workflow step that received the action, as specified in the request.
imageBuildVersionArn (string) –
The Amazon Resource Name (ARN) of the image build version that received the action request.
clientToken (string) –
The client token that uniquely identifies the request.
Exceptions
imagebuilder.Client.exceptions.ServiceExceptionimagebuilder.Client.exceptions.ClientExceptionimagebuilder.Client.exceptions.ResourceNotFoundExceptionimagebuilder.Client.exceptions.InvalidRequestExceptionimagebuilder.Client.exceptions.InvalidParameterValueExceptionimagebuilder.Client.exceptions.ServiceUnavailableExceptionimagebuilder.Client.exceptions.IdempotentParameterMismatchExceptionimagebuilder.Client.exceptions.ForbiddenExceptionimagebuilder.Client.exceptions.CallRateLimitExceededExceptionimagebuilder.Client.exceptions.ResourceInUseException