imagebuilder / Client / send_workflow_step_action
send_workflow_step_action¶
- imagebuilder.Client.send_workflow_step_action(**kwargs)¶
Pauses or resumes image creation when the associated workflow runs a
WaitForActionstep.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 workflow step that sent the step action.
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. 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]
Unique, case-sensitive identifier you provide to ensure idempotency of the request. 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 workflow step that sent the step action.
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