imagebuilder / Client / get_workflow_execution
get_workflow_execution¶
- imagebuilder.Client.get_workflow_execution(**kwargs)¶
Retrieves runtime information for a specific runtime instance of the workflow.
See also: AWS API Documentation
Request Syntax
response = client.get_workflow_execution( workflowExecutionId='string' )
- Parameters:
workflowExecutionId (string) –
[REQUIRED]
Use the unique identifier for a runtime instance of the workflow to get runtime details.
- Return type:
dict
- Returns:
Response Syntax
{ 'requestId': 'string', 'workflowBuildVersionArn': 'string', 'workflowExecutionId': 'string', 'imageBuildVersionArn': 'string', 'type': 'BUILD'|'TEST'|'DISTRIBUTION', 'status': 'PENDING'|'SKIPPED'|'RUNNING'|'COMPLETED'|'FAILED'|'ROLLBACK_IN_PROGRESS'|'ROLLBACK_COMPLETED'|'CANCELLED', 'message': 'string', 'totalStepCount': 123, 'totalStepsSucceeded': 123, 'totalStepsFailed': 123, 'totalStepsSkipped': 123, 'startTime': 'string', 'endTime': 'string', 'parallelGroup': 'string' }
Response Structure
(dict) –
requestId (string) –
The request ID that uniquely identifies this request.
workflowBuildVersionArn (string) –
The Amazon Resource Name (ARN) of the build version for the Image Builder workflow resource that defines the specified runtime instance of the workflow.
workflowExecutionId (string) –
The unique identifier that Image Builder assigned to keep track of runtime details when it ran the workflow.
imageBuildVersionArn (string) –
The Amazon Resource Name (ARN) of the image build version that owns the specified runtime instance of the workflow.
type (string) –
The type of workflow that Image Builder ran for the specified runtime instance of the workflow.
status (string) –
The current runtime status for the specified runtime instance of the workflow.
COMPLETED,FAILED,ROLLBACK_COMPLETED,CANCELLED, andSKIPPEDare terminal states.message (string) –
The output message from the specified runtime instance of the workflow, if applicable.
totalStepCount (integer) –
The total number of steps that the workflow document defines for this runtime instance of the workflow. Image Builder sets this count before any steps run. The sum of succeeded, skipped, and failed steps only reaches this total if every step finishes in one of those states.
totalStepsSucceeded (integer) –
A runtime count for the number of steps that ran successfully in the specified runtime instance of the workflow.
totalStepsFailed (integer) –
A runtime count for the number of steps that failed in the specified runtime instance of the workflow.
totalStepsSkipped (integer) –
A runtime count for the number of steps that were skipped in the specified runtime instance of the workflow.
startTime (string) –
The timestamp when the specified runtime instance of the workflow started.
endTime (string) –
The timestamp when the specified runtime instance of the workflow finished.
parallelGroup (string) –
The name of the parallel group that this runtime instance of the workflow ran in, if configured. Parallel groups apply only to test workflows.
Exceptions
imagebuilder.Client.exceptions.ServiceExceptionimagebuilder.Client.exceptions.ClientExceptionimagebuilder.Client.exceptions.ServiceUnavailableExceptionimagebuilder.Client.exceptions.InvalidRequestExceptionimagebuilder.Client.exceptions.ForbiddenExceptionimagebuilder.Client.exceptions.CallRateLimitExceededException