2015/08/06 - Amazon Simple Workflow Service - 7 updated api methods
{'executionConfiguration': {'lambdaRole': 'string'}, 'openCounts': {'openLambdaFunctions': 'integer'}}
Returns information about the specified workflow execution including its type and some statistics.
Access Control
You can use IAM policies to control this action's access to Amazon SWF resources as follows:
Use a Resource element with the domain name to limit the action to only specified domains.
Use an Action element to allow or deny permission to call this action.
You cannot use an IAM policy to constrain this action's parameters.
If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.
Request Syntax
client.describe_workflow_execution( domain='string', execution={ 'workflowId': 'string', 'runId': 'string' } )
string
[REQUIRED]
The name of the domain containing the workflow execution.
dict
[REQUIRED]
The workflow execution to describe.
workflowId (string) -- [REQUIRED]
The user defined identifier associated with the workflow execution.
runId (string) -- [REQUIRED]
A system-generated unique identifier for the workflow execution.
dict
Response Syntax
{ 'executionInfo': { 'execution': { 'workflowId': 'string', 'runId': 'string' }, 'workflowType': { 'name': 'string', 'version': 'string' }, 'startTimestamp': datetime(2015, 1, 1), 'closeTimestamp': datetime(2015, 1, 1), 'executionStatus': 'OPEN'|'CLOSED', 'closeStatus': 'COMPLETED'|'FAILED'|'CANCELED'|'TERMINATED'|'CONTINUED_AS_NEW'|'TIMED_OUT', 'parent': { 'workflowId': 'string', 'runId': 'string' }, 'tagList': [ 'string', ], 'cancelRequested': True|False }, 'executionConfiguration': { 'taskStartToCloseTimeout': 'string', 'executionStartToCloseTimeout': 'string', 'taskList': { 'name': 'string' }, 'taskPriority': 'string', 'childPolicy': 'TERMINATE'|'REQUEST_CANCEL'|'ABANDON', 'lambdaRole': 'string' }, 'openCounts': { 'openActivityTasks': 123, 'openDecisionTasks': 123, 'openTimers': 123, 'openChildWorkflowExecutions': 123, 'openLambdaFunctions': 123 }, 'latestActivityTaskTimestamp': datetime(2015, 1, 1), 'latestExecutionContext': 'string' }
Response Structure
(dict) --
Contains details about a workflow execution.
executionInfo (dict) --
Information about the workflow execution.
execution (dict) --
The workflow execution this information is about.
workflowId (string) --
The user defined identifier associated with the workflow execution.
runId (string) --
A system-generated unique identifier for the workflow execution.
workflowType (dict) --
The type of the workflow execution.
name (string) --
Required. The name of the workflow type.
version (string) --
Required. The version of the workflow type.
startTimestamp (datetime) --
The time when the execution was started.
closeTimestamp (datetime) --
The time when the workflow execution was closed. Set only if the execution status is CLOSED.
executionStatus (string) --
The current status of the execution.
closeStatus (string) --
If the execution status is closed then this specifies how the execution was closed:
COMPLETED: the execution was successfully completed.
CANCELED: the execution was canceled.Cancellation allows the implementation to gracefully clean up before the execution is closed.
TERMINATED: the execution was force terminated.
FAILED: the execution failed to complete.
TIMED_OUT: the execution did not complete in the alloted time and was automatically timed out.
CONTINUED_AS_NEW: the execution is logically continued. This means the current execution was completed and a new execution was started to carry on the workflow.
parent (dict) --
If this workflow execution is a child of another execution then contains the workflow execution that started this execution.
workflowId (string) --
The user defined identifier associated with the workflow execution.
runId (string) --
A system-generated unique identifier for the workflow execution.
tagList (list) --
The list of tags associated with the workflow execution. Tags can be used to identify and list workflow executions of interest through the visibility APIs. A workflow execution can have a maximum of 5 tags.
(string) --
cancelRequested (boolean) --
Set to true if a cancellation is requested for this workflow execution.
executionConfiguration (dict) --
The configuration settings for this workflow execution including timeout values, tasklist etc.
taskStartToCloseTimeout (string) --
The maximum duration allowed for decision tasks for this workflow execution.
The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.
executionStartToCloseTimeout (string) --
The total duration for this workflow execution.
The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.
taskList (dict) --
The task list used for the decision tasks generated for this workflow execution.
name (string) --
The name of the task list.
taskPriority (string) --
The priority assigned to decision tasks for this workflow execution. Valid values are integers that range from Java's Integer.MIN_VALUE (-2147483648) to Integer.MAX_VALUE (2147483647). Higher numbers indicate higher priority.
For more information about setting task priority, see Setting Task Priority in the Amazon Simple Workflow Developer Guide.
childPolicy (string) --
The policy to use for the child workflow executions if this workflow execution is terminated, by calling the TerminateWorkflowExecution action explicitly or due to an expired timeout.
The supported child policies are:
TERMINATE: the child executions will be terminated.
REQUEST_CANCEL: a request to cancel will be attempted for each child execution by recording a WorkflowExecutionCancelRequested event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.
ABANDON: no action will be taken. The child executions will continue to run.
lambdaRole (string) --
The IAM role used by this workflow execution when invoking AWS Lambda functions.
openCounts (dict) --
The number of tasks for this workflow execution. This includes open and closed tasks of all types.
openActivityTasks (integer) --
The count of activity tasks whose status is OPEN.
openDecisionTasks (integer) --
The count of decision tasks whose status is OPEN. A workflow execution can have at most one open decision task.
openTimers (integer) --
The count of timers started by this workflow execution that have not fired yet.
openChildWorkflowExecutions (integer) --
The count of child workflow executions whose status is OPEN.
openLambdaFunctions (integer) --
The count of AWS Lambda functions that are currently executing.
latestActivityTaskTimestamp (datetime) --
The time when the last activity task was scheduled for this workflow execution. You can use this information to determine if the workflow has not made progress for an unusually long period of time and might require a corrective action.
latestExecutionContext (string) --
The latest executionContext provided by the decider for this workflow execution. A decider can provide an executionContext (a free-form string) when closing a decision task using RespondDecisionTaskCompleted.
{'configuration': {'defaultLambdaRole': 'string'}}
Returns information about the specified workflow type. This includes configuration settings specified when the type was registered and other information such as creation date, current status, and so on.
Access Control
You can use IAM policies to control this action's access to Amazon SWF resources as follows:
Use a Resource element with the domain name to limit the action to only specified domains.
Use an Action element to allow or deny permission to call this action.
Constrain the following parameters by using a Condition element with the appropriate keys.
workflowType.name: String constraint. The key is swf:workflowType.name.
workflowType.version: String constraint. The key is swf:workflowType.version.
If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.
Request Syntax
client.describe_workflow_type( domain='string', workflowType={ 'name': 'string', 'version': 'string' } )
string
[REQUIRED]
The name of the domain in which this workflow type is registered.
dict
[REQUIRED]
The workflow type to describe.
name (string) -- [REQUIRED]
Required. The name of the workflow type.
version (string) -- [REQUIRED]
Required. The version of the workflow type.
dict
Response Syntax
{ 'typeInfo': { 'workflowType': { 'name': 'string', 'version': 'string' }, 'status': 'REGISTERED'|'DEPRECATED', 'description': 'string', 'creationDate': datetime(2015, 1, 1), 'deprecationDate': datetime(2015, 1, 1) }, 'configuration': { 'defaultTaskStartToCloseTimeout': 'string', 'defaultExecutionStartToCloseTimeout': 'string', 'defaultTaskList': { 'name': 'string' }, 'defaultTaskPriority': 'string', 'defaultChildPolicy': 'TERMINATE'|'REQUEST_CANCEL'|'ABANDON', 'defaultLambdaRole': 'string' } }
Response Structure
(dict) --
Contains details about a workflow type.
typeInfo (dict) --
General information about the workflow type.
The status of the workflow type (returned in the WorkflowTypeInfo structure) can be one of the following.
REGISTERED: The type is registered and available. Workers supporting this type should be running.
DEPRECATED: The type was deprecated using DeprecateWorkflowType, but is still in use. You should keep workers supporting this type running. You cannot create new workflow executions of this type.
workflowType (dict) --
The workflow type this information is about.
name (string) --
Required. The name of the workflow type.
version (string) --
Required. The version of the workflow type.
status (string) --
The current status of the workflow type.
description (string) --
The description of the type registered through RegisterWorkflowType.
creationDate (datetime) --
The date when this type was registered.
deprecationDate (datetime) --
If the type is in deprecated state, then it is set to the date when the type was deprecated.
configuration (dict) --
Configuration settings of the workflow type registered through RegisterWorkflowType
defaultTaskStartToCloseTimeout (string) --
Optional. The default maximum duration, specified when registering the workflow type, that a decision task for executions of this workflow type might take before returning completion or failure. If the task does not close in the specified time then the task is automatically timed out and rescheduled. If the decider eventually reports a completion or failure, it is ignored. This default can be overridden when starting a workflow execution using the StartWorkflowExecution action or the StartChildWorkflowExecution decision.
The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.
defaultExecutionStartToCloseTimeout (string) --
Optional. The default maximum duration, specified when registering the workflow type, for executions of this workflow type. This default can be overridden when starting a workflow execution using the StartWorkflowExecution action or the StartChildWorkflowExecution decision.
The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.
defaultTaskList (dict) --
Optional. The default task list, specified when registering the workflow type, for decisions tasks scheduled for workflow executions of this type. This default can be overridden when starting a workflow execution using the StartWorkflowExecution action or the StartChildWorkflowExecution decision.
name (string) --
The name of the task list.
defaultTaskPriority (string) --
Optional. The default task priority, specified when registering the workflow type, for all decision tasks of this workflow type. This default can be overridden when starting a workflow execution using the StartWorkflowExecution action or the StartChildWorkflowExecution decision.
Valid values are integers that range from Java's Integer.MIN_VALUE (-2147483648) to Integer.MAX_VALUE (2147483647). Higher numbers indicate higher priority.
For more information about setting task priority, see Setting Task Priority in the Amazon Simple Workflow Developer Guide.
defaultChildPolicy (string) --
Optional. The default policy to use for the child workflow executions when a workflow execution of this type is terminated, by calling the TerminateWorkflowExecution action explicitly or due to an expired timeout. This default can be overridden when starting a workflow execution using the StartWorkflowExecution action or the StartChildWorkflowExecution decision.
The supported child policies are:
TERMINATE: the child executions will be terminated.
REQUEST_CANCEL: a request to cancel will be attempted for each child execution by recording a WorkflowExecutionCancelRequested event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.
ABANDON: no action will be taken. The child executions will continue to run.
defaultLambdaRole (string) --
The default IAM role to use when a workflow execution invokes a AWS Lambda function.
{'events': {'eventType': {'LambdaFunctionCompleted', 'LambdaFunctionFailed', 'LambdaFunctionScheduled', 'LambdaFunctionStarted', 'LambdaFunctionTimedOut', 'ScheduleLambdaFunctionFailed', 'StartLambdaFunctionFailed'}, 'lambdaFunctionCompletedEventAttributes': {'result': 'string', 'scheduledEventId': 'long', 'startedEventId': 'long'}, 'lambdaFunctionFailedEventAttributes': {'details': 'string', 'reason': 'string', 'scheduledEventId': 'long', 'startedEventId': 'long'}, 'lambdaFunctionScheduledEventAttributes': {'decisionTaskCompletedEventId': 'long', 'id': 'string', 'input': 'string', 'name': 'string', 'startToCloseTimeout': 'string'}, 'lambdaFunctionStartedEventAttributes': {'scheduledEventId': 'long'}, 'lambdaFunctionTimedOutEventAttributes': {'scheduledEventId': 'long', 'startedEventId': 'long', 'timeoutType': 'START_TO_CLOSE'}, 'scheduleLambdaFunctionFailedEventAttributes': {'cause': 'ID_ALREADY_IN_USE ' '| ' 'OPEN_LAMBDA_FUNCTIONS_LIMIT_EXCEEDED ' '| ' 'LAMBDA_FUNCTION_CREATION_RATE_EXCEEDED ' '| ' 'LAMBDA_SERVICE_NOT_AVAILABLE_IN_REGION', 'decisionTaskCompletedEventId': 'long', 'id': 'string', 'name': 'string'}, 'startChildWorkflowExecutionInitiatedEventAttributes': {'lambdaRole': 'string'}, 'startLambdaFunctionFailedEventAttributes': {'cause': 'ASSUME_ROLE_FAILED', 'message': 'string', 'scheduledEventId': 'long'}, 'workflowExecutionContinuedAsNewEventAttributes': {'lambdaRole': 'string'}, 'workflowExecutionStartedEventAttributes': {'lambdaRole': 'string'}}}
Returns the history of the specified workflow execution. The results may be split into multiple pages. To retrieve subsequent pages, make the call again using the nextPageToken returned by the initial call.
Access Control
You can use IAM policies to control this action's access to Amazon SWF resources as follows:
Use a Resource element with the domain name to limit the action to only specified domains.
Use an Action element to allow or deny permission to call this action.
You cannot use an IAM policy to constrain this action's parameters.
If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.
Request Syntax
client.get_workflow_execution_history( domain='string', execution={ 'workflowId': 'string', 'runId': 'string' }, nextPageToken='string', maximumPageSize=123, reverseOrder=True|False )
string
[REQUIRED]
The name of the domain containing the workflow execution.
dict
[REQUIRED]
Specifies the workflow execution for which to return the history.
workflowId (string) -- [REQUIRED]
The user defined identifier associated with the workflow execution.
runId (string) -- [REQUIRED]
A system-generated unique identifier for the workflow execution.
string
If a NextPageToken was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in nextPageToken. Keep all other arguments unchanged.
The configured maximumPageSize determines how many results can be returned in a single call.
integer
The maximum number of results that will be returned per call. nextPageToken can be used to obtain futher pages of results. The default is 1000, which is the maximum allowed page size. You can, however, specify a page size smaller than the maximum.
This is an upper limit only; the actual number of results returned per call may be fewer than the specified maximum.
boolean
When set to true, returns the events in reverse order. By default the results are returned in ascending order of the eventTimeStamp of the events.
dict
Response Syntax
{ 'events': [ { 'eventTimestamp': datetime(2015, 1, 1), 'eventType': 'WorkflowExecutionStarted'|'WorkflowExecutionCancelRequested'|'WorkflowExecutionCompleted'|'CompleteWorkflowExecutionFailed'|'WorkflowExecutionFailed'|'FailWorkflowExecutionFailed'|'WorkflowExecutionTimedOut'|'WorkflowExecutionCanceled'|'CancelWorkflowExecutionFailed'|'WorkflowExecutionContinuedAsNew'|'ContinueAsNewWorkflowExecutionFailed'|'WorkflowExecutionTerminated'|'DecisionTaskScheduled'|'DecisionTaskStarted'|'DecisionTaskCompleted'|'DecisionTaskTimedOut'|'ActivityTaskScheduled'|'ScheduleActivityTaskFailed'|'ActivityTaskStarted'|'ActivityTaskCompleted'|'ActivityTaskFailed'|'ActivityTaskTimedOut'|'ActivityTaskCanceled'|'ActivityTaskCancelRequested'|'RequestCancelActivityTaskFailed'|'WorkflowExecutionSignaled'|'MarkerRecorded'|'RecordMarkerFailed'|'TimerStarted'|'StartTimerFailed'|'TimerFired'|'TimerCanceled'|'CancelTimerFailed'|'StartChildWorkflowExecutionInitiated'|'StartChildWorkflowExecutionFailed'|'ChildWorkflowExecutionStarted'|'ChildWorkflowExecutionCompleted'|'ChildWorkflowExecutionFailed'|'ChildWorkflowExecutionTimedOut'|'ChildWorkflowExecutionCanceled'|'ChildWorkflowExecutionTerminated'|'SignalExternalWorkflowExecutionInitiated'|'SignalExternalWorkflowExecutionFailed'|'ExternalWorkflowExecutionSignaled'|'RequestCancelExternalWorkflowExecutionInitiated'|'RequestCancelExternalWorkflowExecutionFailed'|'ExternalWorkflowExecutionCancelRequested'|'LambdaFunctionScheduled'|'LambdaFunctionStarted'|'LambdaFunctionCompleted'|'LambdaFunctionFailed'|'LambdaFunctionTimedOut'|'ScheduleLambdaFunctionFailed'|'StartLambdaFunctionFailed', 'eventId': 123, 'workflowExecutionStartedEventAttributes': { 'input': 'string', 'executionStartToCloseTimeout': 'string', 'taskStartToCloseTimeout': 'string', 'childPolicy': 'TERMINATE'|'REQUEST_CANCEL'|'ABANDON', 'taskList': { 'name': 'string' }, 'workflowType': { 'name': 'string', 'version': 'string' }, 'tagList': [ 'string', ], 'taskPriority': 'string', 'continuedExecutionRunId': 'string', 'parentWorkflowExecution': { 'workflowId': 'string', 'runId': 'string' }, 'parentInitiatedEventId': 123, 'lambdaRole': 'string' }, 'workflowExecutionCompletedEventAttributes': { 'result': 'string', 'decisionTaskCompletedEventId': 123 }, 'completeWorkflowExecutionFailedEventAttributes': { 'cause': 'UNHANDLED_DECISION'|'OPERATION_NOT_PERMITTED', 'decisionTaskCompletedEventId': 123 }, 'workflowExecutionFailedEventAttributes': { 'reason': 'string', 'details': 'string', 'decisionTaskCompletedEventId': 123 }, 'failWorkflowExecutionFailedEventAttributes': { 'cause': 'UNHANDLED_DECISION'|'OPERATION_NOT_PERMITTED', 'decisionTaskCompletedEventId': 123 }, 'workflowExecutionTimedOutEventAttributes': { 'timeoutType': 'START_TO_CLOSE', 'childPolicy': 'TERMINATE'|'REQUEST_CANCEL'|'ABANDON' }, 'workflowExecutionCanceledEventAttributes': { 'details': 'string', 'decisionTaskCompletedEventId': 123 }, 'cancelWorkflowExecutionFailedEventAttributes': { 'cause': 'UNHANDLED_DECISION'|'OPERATION_NOT_PERMITTED', 'decisionTaskCompletedEventId': 123 }, 'workflowExecutionContinuedAsNewEventAttributes': { 'input': 'string', 'decisionTaskCompletedEventId': 123, 'newExecutionRunId': 'string', 'executionStartToCloseTimeout': 'string', 'taskList': { 'name': 'string' }, 'taskPriority': 'string', 'taskStartToCloseTimeout': 'string', 'childPolicy': 'TERMINATE'|'REQUEST_CANCEL'|'ABANDON', 'tagList': [ 'string', ], 'workflowType': { 'name': 'string', 'version': 'string' }, 'lambdaRole': 'string' }, 'continueAsNewWorkflowExecutionFailedEventAttributes': { 'cause': 'UNHANDLED_DECISION'|'WORKFLOW_TYPE_DEPRECATED'|'WORKFLOW_TYPE_DOES_NOT_EXIST'|'DEFAULT_EXECUTION_START_TO_CLOSE_TIMEOUT_UNDEFINED'|'DEFAULT_TASK_START_TO_CLOSE_TIMEOUT_UNDEFINED'|'DEFAULT_TASK_LIST_UNDEFINED'|'DEFAULT_CHILD_POLICY_UNDEFINED'|'CONTINUE_AS_NEW_WORKFLOW_EXECUTION_RATE_EXCEEDED'|'OPERATION_NOT_PERMITTED', 'decisionTaskCompletedEventId': 123 }, 'workflowExecutionTerminatedEventAttributes': { 'reason': 'string', 'details': 'string', 'childPolicy': 'TERMINATE'|'REQUEST_CANCEL'|'ABANDON', 'cause': 'CHILD_POLICY_APPLIED'|'EVENT_LIMIT_EXCEEDED'|'OPERATOR_INITIATED' }, 'workflowExecutionCancelRequestedEventAttributes': { 'externalWorkflowExecution': { 'workflowId': 'string', 'runId': 'string' }, 'externalInitiatedEventId': 123, 'cause': 'CHILD_POLICY_APPLIED' }, 'decisionTaskScheduledEventAttributes': { 'taskList': { 'name': 'string' }, 'taskPriority': 'string', 'startToCloseTimeout': 'string' }, 'decisionTaskStartedEventAttributes': { 'identity': 'string', 'scheduledEventId': 123 }, 'decisionTaskCompletedEventAttributes': { 'executionContext': 'string', 'scheduledEventId': 123, 'startedEventId': 123 }, 'decisionTaskTimedOutEventAttributes': { 'timeoutType': 'START_TO_CLOSE', 'scheduledEventId': 123, 'startedEventId': 123 }, 'activityTaskScheduledEventAttributes': { 'activityType': { 'name': 'string', 'version': 'string' }, 'activityId': 'string', 'input': 'string', 'control': 'string', 'scheduleToStartTimeout': 'string', 'scheduleToCloseTimeout': 'string', 'startToCloseTimeout': 'string', 'taskList': { 'name': 'string' }, 'taskPriority': 'string', 'decisionTaskCompletedEventId': 123, 'heartbeatTimeout': 'string' }, 'activityTaskStartedEventAttributes': { 'identity': 'string', 'scheduledEventId': 123 }, 'activityTaskCompletedEventAttributes': { 'result': 'string', 'scheduledEventId': 123, 'startedEventId': 123 }, 'activityTaskFailedEventAttributes': { 'reason': 'string', 'details': 'string', 'scheduledEventId': 123, 'startedEventId': 123 }, 'activityTaskTimedOutEventAttributes': { 'timeoutType': 'START_TO_CLOSE'|'SCHEDULE_TO_START'|'SCHEDULE_TO_CLOSE'|'HEARTBEAT', 'scheduledEventId': 123, 'startedEventId': 123, 'details': 'string' }, 'activityTaskCanceledEventAttributes': { 'details': 'string', 'scheduledEventId': 123, 'startedEventId': 123, 'latestCancelRequestedEventId': 123 }, 'activityTaskCancelRequestedEventAttributes': { 'decisionTaskCompletedEventId': 123, 'activityId': 'string' }, 'workflowExecutionSignaledEventAttributes': { 'signalName': 'string', 'input': 'string', 'externalWorkflowExecution': { 'workflowId': 'string', 'runId': 'string' }, 'externalInitiatedEventId': 123 }, 'markerRecordedEventAttributes': { 'markerName': 'string', 'details': 'string', 'decisionTaskCompletedEventId': 123 }, 'recordMarkerFailedEventAttributes': { 'markerName': 'string', 'cause': 'OPERATION_NOT_PERMITTED', 'decisionTaskCompletedEventId': 123 }, 'timerStartedEventAttributes': { 'timerId': 'string', 'control': 'string', 'startToFireTimeout': 'string', 'decisionTaskCompletedEventId': 123 }, 'timerFiredEventAttributes': { 'timerId': 'string', 'startedEventId': 123 }, 'timerCanceledEventAttributes': { 'timerId': 'string', 'startedEventId': 123, 'decisionTaskCompletedEventId': 123 }, 'startChildWorkflowExecutionInitiatedEventAttributes': { 'workflowId': 'string', 'workflowType': { 'name': 'string', 'version': 'string' }, 'control': 'string', 'input': 'string', 'executionStartToCloseTimeout': 'string', 'taskList': { 'name': 'string' }, 'taskPriority': 'string', 'decisionTaskCompletedEventId': 123, 'childPolicy': 'TERMINATE'|'REQUEST_CANCEL'|'ABANDON', 'taskStartToCloseTimeout': 'string', 'tagList': [ 'string', ], 'lambdaRole': 'string' }, 'childWorkflowExecutionStartedEventAttributes': { 'workflowExecution': { 'workflowId': 'string', 'runId': 'string' }, 'workflowType': { 'name': 'string', 'version': 'string' }, 'initiatedEventId': 123 }, 'childWorkflowExecutionCompletedEventAttributes': { 'workflowExecution': { 'workflowId': 'string', 'runId': 'string' }, 'workflowType': { 'name': 'string', 'version': 'string' }, 'result': 'string', 'initiatedEventId': 123, 'startedEventId': 123 }, 'childWorkflowExecutionFailedEventAttributes': { 'workflowExecution': { 'workflowId': 'string', 'runId': 'string' }, 'workflowType': { 'name': 'string', 'version': 'string' }, 'reason': 'string', 'details': 'string', 'initiatedEventId': 123, 'startedEventId': 123 }, 'childWorkflowExecutionTimedOutEventAttributes': { 'workflowExecution': { 'workflowId': 'string', 'runId': 'string' }, 'workflowType': { 'name': 'string', 'version': 'string' }, 'timeoutType': 'START_TO_CLOSE', 'initiatedEventId': 123, 'startedEventId': 123 }, 'childWorkflowExecutionCanceledEventAttributes': { 'workflowExecution': { 'workflowId': 'string', 'runId': 'string' }, 'workflowType': { 'name': 'string', 'version': 'string' }, 'details': 'string', 'initiatedEventId': 123, 'startedEventId': 123 }, 'childWorkflowExecutionTerminatedEventAttributes': { 'workflowExecution': { 'workflowId': 'string', 'runId': 'string' }, 'workflowType': { 'name': 'string', 'version': 'string' }, 'initiatedEventId': 123, 'startedEventId': 123 }, 'signalExternalWorkflowExecutionInitiatedEventAttributes': { 'workflowId': 'string', 'runId': 'string', 'signalName': 'string', 'input': 'string', 'decisionTaskCompletedEventId': 123, 'control': 'string' }, 'externalWorkflowExecutionSignaledEventAttributes': { 'workflowExecution': { 'workflowId': 'string', 'runId': 'string' }, 'initiatedEventId': 123 }, 'signalExternalWorkflowExecutionFailedEventAttributes': { 'workflowId': 'string', 'runId': 'string', 'cause': 'UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION'|'SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_RATE_EXCEEDED'|'OPERATION_NOT_PERMITTED', 'initiatedEventId': 123, 'decisionTaskCompletedEventId': 123, 'control': 'string' }, 'externalWorkflowExecutionCancelRequestedEventAttributes': { 'workflowExecution': { 'workflowId': 'string', 'runId': 'string' }, 'initiatedEventId': 123 }, 'requestCancelExternalWorkflowExecutionInitiatedEventAttributes': { 'workflowId': 'string', 'runId': 'string', 'decisionTaskCompletedEventId': 123, 'control': 'string' }, 'requestCancelExternalWorkflowExecutionFailedEventAttributes': { 'workflowId': 'string', 'runId': 'string', 'cause': 'UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION'|'REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_RATE_EXCEEDED'|'OPERATION_NOT_PERMITTED', 'initiatedEventId': 123, 'decisionTaskCompletedEventId': 123, 'control': 'string' }, 'scheduleActivityTaskFailedEventAttributes': { 'activityType': { 'name': 'string', 'version': 'string' }, 'activityId': 'string', 'cause': 'ACTIVITY_TYPE_DEPRECATED'|'ACTIVITY_TYPE_DOES_NOT_EXIST'|'ACTIVITY_ID_ALREADY_IN_USE'|'OPEN_ACTIVITIES_LIMIT_EXCEEDED'|'ACTIVITY_CREATION_RATE_EXCEEDED'|'DEFAULT_SCHEDULE_TO_CLOSE_TIMEOUT_UNDEFINED'|'DEFAULT_TASK_LIST_UNDEFINED'|'DEFAULT_SCHEDULE_TO_START_TIMEOUT_UNDEFINED'|'DEFAULT_START_TO_CLOSE_TIMEOUT_UNDEFINED'|'DEFAULT_HEARTBEAT_TIMEOUT_UNDEFINED'|'OPERATION_NOT_PERMITTED', 'decisionTaskCompletedEventId': 123 }, 'requestCancelActivityTaskFailedEventAttributes': { 'activityId': 'string', 'cause': 'ACTIVITY_ID_UNKNOWN'|'OPERATION_NOT_PERMITTED', 'decisionTaskCompletedEventId': 123 }, 'startTimerFailedEventAttributes': { 'timerId': 'string', 'cause': 'TIMER_ID_ALREADY_IN_USE'|'OPEN_TIMERS_LIMIT_EXCEEDED'|'TIMER_CREATION_RATE_EXCEEDED'|'OPERATION_NOT_PERMITTED', 'decisionTaskCompletedEventId': 123 }, 'cancelTimerFailedEventAttributes': { 'timerId': 'string', 'cause': 'TIMER_ID_UNKNOWN'|'OPERATION_NOT_PERMITTED', 'decisionTaskCompletedEventId': 123 }, 'startChildWorkflowExecutionFailedEventAttributes': { 'workflowType': { 'name': 'string', 'version': 'string' }, 'cause': 'WORKFLOW_TYPE_DOES_NOT_EXIST'|'WORKFLOW_TYPE_DEPRECATED'|'OPEN_CHILDREN_LIMIT_EXCEEDED'|'OPEN_WORKFLOWS_LIMIT_EXCEEDED'|'CHILD_CREATION_RATE_EXCEEDED'|'WORKFLOW_ALREADY_RUNNING'|'DEFAULT_EXECUTION_START_TO_CLOSE_TIMEOUT_UNDEFINED'|'DEFAULT_TASK_LIST_UNDEFINED'|'DEFAULT_TASK_START_TO_CLOSE_TIMEOUT_UNDEFINED'|'DEFAULT_CHILD_POLICY_UNDEFINED'|'OPERATION_NOT_PERMITTED', 'workflowId': 'string', 'initiatedEventId': 123, 'decisionTaskCompletedEventId': 123, 'control': 'string' }, 'lambdaFunctionScheduledEventAttributes': { 'id': 'string', 'name': 'string', 'input': 'string', 'startToCloseTimeout': 'string', 'decisionTaskCompletedEventId': 123 }, 'lambdaFunctionStartedEventAttributes': { 'scheduledEventId': 123 }, 'lambdaFunctionCompletedEventAttributes': { 'scheduledEventId': 123, 'startedEventId': 123, 'result': 'string' }, 'lambdaFunctionFailedEventAttributes': { 'scheduledEventId': 123, 'startedEventId': 123, 'reason': 'string', 'details': 'string' }, 'lambdaFunctionTimedOutEventAttributes': { 'scheduledEventId': 123, 'startedEventId': 123, 'timeoutType': 'START_TO_CLOSE' }, 'scheduleLambdaFunctionFailedEventAttributes': { 'id': 'string', 'name': 'string', 'cause': 'ID_ALREADY_IN_USE'|'OPEN_LAMBDA_FUNCTIONS_LIMIT_EXCEEDED'|'LAMBDA_FUNCTION_CREATION_RATE_EXCEEDED'|'LAMBDA_SERVICE_NOT_AVAILABLE_IN_REGION', 'decisionTaskCompletedEventId': 123 }, 'startLambdaFunctionFailedEventAttributes': { 'scheduledEventId': 123, 'cause': 'ASSUME_ROLE_FAILED', 'message': 'string' } }, ], 'nextPageToken': 'string' }
Response Structure
(dict) --
Paginated representation of a workflow history for a workflow execution. This is the up to date, complete and authoritative record of the events related to all tasks and events in the life of the workflow execution.
events (list) --
The list of history events.
(dict) --
Event within a workflow execution. A history event can be one of these types:
WorkflowExecutionStarted: The workflow execution was started.
WorkflowExecutionCompleted: The workflow execution was closed due to successful completion.
WorkflowExecutionFailed: The workflow execution closed due to a failure.
WorkflowExecutionTimedOut: The workflow execution was closed because a time out was exceeded.
WorkflowExecutionCanceled: The workflow execution was successfully canceled and closed.
WorkflowExecutionTerminated: The workflow execution was terminated.
WorkflowExecutionContinuedAsNew: The workflow execution was closed and a new execution of the same type was created with the same workflowId.
WorkflowExecutionCancelRequested: A request to cancel this workflow execution was made.
DecisionTaskScheduled: A decision task was scheduled for the workflow execution.
DecisionTaskStarted: The decision task was dispatched to a decider.
DecisionTaskCompleted: The decider successfully completed a decision task by calling RespondDecisionTaskCompleted.
DecisionTaskTimedOut: The decision task timed out.
ActivityTaskScheduled: An activity task was scheduled for execution.
ScheduleActivityTaskFailed: Failed to process ScheduleActivityTask decision. This happens when the decision is not configured properly, for example the activity type specified is not registered.
ActivityTaskStarted: The scheduled activity task was dispatched to a worker.
ActivityTaskCompleted: An activity worker successfully completed an activity task by calling RespondActivityTaskCompleted.
ActivityTaskFailed: An activity worker failed an activity task by calling RespondActivityTaskFailed.
ActivityTaskTimedOut: The activity task timed out.
ActivityTaskCanceled: The activity task was successfully canceled.
ActivityTaskCancelRequested: A RequestCancelActivityTask decision was received by the system.
RequestCancelActivityTaskFailed: Failed to process RequestCancelActivityTask decision. This happens when the decision is not configured properly.
WorkflowExecutionSignaled: An external signal was received for the workflow execution.
MarkerRecorded: A marker was recorded in the workflow history as the result of a RecordMarker decision.
TimerStarted: A timer was started for the workflow execution due to a StartTimer decision.
StartTimerFailed: Failed to process StartTimer decision. This happens when the decision is not configured properly, for example a timer already exists with the specified timer ID.
TimerFired: A timer, previously started for this workflow execution, fired.
TimerCanceled: A timer, previously started for this workflow execution, was successfully canceled.
CancelTimerFailed: Failed to process CancelTimer decision. This happens when the decision is not configured properly, for example no timer exists with the specified timer ID.
StartChildWorkflowExecutionInitiated: A request was made to start a child workflow execution.
StartChildWorkflowExecutionFailed: Failed to process StartChildWorkflowExecution decision. This happens when the decision is not configured properly, for example the workflow type specified is not registered.
ChildWorkflowExecutionStarted: A child workflow execution was successfully started.
ChildWorkflowExecutionCompleted: A child workflow execution, started by this workflow execution, completed successfully and was closed.
ChildWorkflowExecutionFailed: A child workflow execution, started by this workflow execution, failed to complete successfully and was closed.
ChildWorkflowExecutionTimedOut: A child workflow execution, started by this workflow execution, timed out and was closed.
ChildWorkflowExecutionCanceled: A child workflow execution, started by this workflow execution, was canceled and closed.
ChildWorkflowExecutionTerminated: A child workflow execution, started by this workflow execution, was terminated.
SignalExternalWorkflowExecutionInitiated: A request to signal an external workflow was made.
ExternalWorkflowExecutionSignaled: A signal, requested by this workflow execution, was successfully delivered to the target external workflow execution.
SignalExternalWorkflowExecutionFailed: The request to signal an external workflow execution failed.
RequestCancelExternalWorkflowExecutionInitiated: A request was made to request the cancellation of an external workflow execution.
ExternalWorkflowExecutionCancelRequested: Request to cancel an external workflow execution was successfully delivered to the target execution.
RequestCancelExternalWorkflowExecutionFailed: Request to cancel an external workflow execution failed.
LambdaFunctionScheduled: An AWS Lambda function was scheduled for execution.
LambdaFunctionStarted: The scheduled function was invoked in the AWS Lambda service.
LambdaFunctionCompleted: The AWS Lambda function successfully completed.
LambdaFunctionFailed: The AWS Lambda function execution failed.
LambdaFunctionTimedOut: The AWS Lambda function execution timed out.
ScheduleLambdaFunctionFailed: Failed to process ScheduleLambdaFunction decision. This happens when the workflow execution does not have the proper IAM role attached to invoke AWS Lambda functions.
StartLambdaFunctionFailed: Failed to invoke the scheduled function in the AWS Lambda service. This happens when the AWS Lambda service is not available in the current region, or received too many requests.
eventTimestamp (datetime) --
The date and time when the event occurred.
eventType (string) --
The type of the history event.
eventId (integer) --
The system generated ID of the event. This ID uniquely identifies the event with in the workflow execution history.
workflowExecutionStartedEventAttributes (dict) --
If the event is of type WorkflowExecutionStarted then this member is set and provides detailed information about the event. It is not set for other event types.
input (string) --
The input provided to the workflow execution (if any).
executionStartToCloseTimeout (string) --
The maximum duration for this workflow execution.
The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.
taskStartToCloseTimeout (string) --
The maximum duration of decision tasks for this workflow type.
The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.
childPolicy (string) --
The policy to use for the child workflow executions if this workflow execution is terminated, by calling the TerminateWorkflowExecution action explicitly or due to an expired timeout.
The supported child policies are:
TERMINATE: the child executions will be terminated.
REQUEST_CANCEL: a request to cancel will be attempted for each child execution by recording a WorkflowExecutionCancelRequested event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.
ABANDON: no action will be taken. The child executions will continue to run.
taskList (dict) --
The name of the task list for scheduling the decision tasks for this workflow execution.
name (string) --
The name of the task list.
workflowType (dict) --
The workflow type of this execution.
name (string) --
Required. The name of the workflow type.
version (string) --
Required. The version of the workflow type.
tagList (list) --
The list of tags associated with this workflow execution. An execution can have up to 5 tags.
(string) --
taskPriority (string) --
continuedExecutionRunId (string) --
If this workflow execution was started due to a ContinueAsNewWorkflowExecution decision, then it contains the runId of the previous workflow execution that was closed and continued as this execution.
parentWorkflowExecution (dict) --
The source workflow execution that started this workflow execution. The member is not set if the workflow execution was not started by a workflow.
workflowId (string) --
The user defined identifier associated with the workflow execution.
runId (string) --
A system-generated unique identifier for the workflow execution.
parentInitiatedEventId (integer) --
The ID of the StartChildWorkflowExecutionInitiated event corresponding to the StartChildWorkflowExecution decision to start this workflow execution. The source event with this ID can be found in the history of the source workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
lambdaRole (string) --
The IAM role attached to this workflow execution to use when invoking AWS Lambda functions.
workflowExecutionCompletedEventAttributes (dict) --
If the event is of type WorkflowExecutionCompleted then this member is set and provides detailed information about the event. It is not set for other event types.
result (string) --
The result produced by the workflow execution upon successful completion.
decisionTaskCompletedEventId (integer) --
The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the CompleteWorkflowExecution decision to complete this execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
completeWorkflowExecutionFailedEventAttributes (dict) --
If the event is of type CompleteWorkflowExecutionFailed then this member is set and provides detailed information about the event. It is not set for other event types.
cause (string) --
The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.
decisionTaskCompletedEventId (integer) --
The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the CompleteWorkflowExecution decision to complete this execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
workflowExecutionFailedEventAttributes (dict) --
If the event is of type WorkflowExecutionFailed then this member is set and provides detailed information about the event. It is not set for other event types.
reason (string) --
The descriptive reason provided for the failure (if any).
details (string) --
The details of the failure (if any).
decisionTaskCompletedEventId (integer) --
The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the FailWorkflowExecution decision to fail this execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
failWorkflowExecutionFailedEventAttributes (dict) --
If the event is of type FailWorkflowExecutionFailed then this member is set and provides detailed information about the event. It is not set for other event types.
cause (string) --
The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.
decisionTaskCompletedEventId (integer) --
The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the FailWorkflowExecution decision to fail this execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
workflowExecutionTimedOutEventAttributes (dict) --
If the event is of type WorkflowExecutionTimedOut then this member is set and provides detailed information about the event. It is not set for other event types.
timeoutType (string) --
The type of timeout that caused this event.
childPolicy (string) --
The policy used for the child workflow executions of this workflow execution.
The supported child policies are:
TERMINATE: the child executions will be terminated.
REQUEST_CANCEL: a request to cancel will be attempted for each child execution by recording a WorkflowExecutionCancelRequested event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.
ABANDON: no action will be taken. The child executions will continue to run.
workflowExecutionCanceledEventAttributes (dict) --
If the event is of type WorkflowExecutionCanceled then this member is set and provides detailed information about the event. It is not set for other event types.
details (string) --
Details for the cancellation (if any).
decisionTaskCompletedEventId (integer) --
The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the CancelWorkflowExecution decision for this cancellation request. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
cancelWorkflowExecutionFailedEventAttributes (dict) --
If the event is of type CancelWorkflowExecutionFailed then this member is set and provides detailed information about the event. It is not set for other event types.
cause (string) --
The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.
decisionTaskCompletedEventId (integer) --
The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the CancelWorkflowExecution decision for this cancellation request. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
workflowExecutionContinuedAsNewEventAttributes (dict) --
If the event is of type WorkflowExecutionContinuedAsNew then this member is set and provides detailed information about the event. It is not set for other event types.
input (string) --
The input provided to the new workflow execution.
decisionTaskCompletedEventId (integer) --
The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the ContinueAsNewWorkflowExecution decision that started this execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
newExecutionRunId (string) --
The runId of the new workflow execution.
executionStartToCloseTimeout (string) --
The total duration allowed for the new workflow execution.
The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.
taskList (dict) --
Represents a task list.
name (string) --
The name of the task list.
taskPriority (string) --
taskStartToCloseTimeout (string) --
The maximum duration of decision tasks for the new workflow execution.
The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.
childPolicy (string) --
The policy to use for the child workflow executions of the new execution if it is terminated by calling the TerminateWorkflowExecution action explicitly or due to an expired timeout.
The supported child policies are:
TERMINATE: the child executions will be terminated.
REQUEST_CANCEL: a request to cancel will be attempted for each child execution by recording a WorkflowExecutionCancelRequested event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.
ABANDON: no action will be taken. The child executions will continue to run.
tagList (list) --
The list of tags associated with the new workflow execution.
(string) --
workflowType (dict) --
Represents a workflow type.
name (string) --
Required. The name of the workflow type.
version (string) --
Required. The version of the workflow type.
lambdaRole (string) --
The IAM role attached to this workflow execution to use when invoking AWS Lambda functions.
continueAsNewWorkflowExecutionFailedEventAttributes (dict) --
If the event is of type ContinueAsNewWorkflowExecutionFailed then this member is set and provides detailed information about the event. It is not set for other event types.
cause (string) --
The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.
decisionTaskCompletedEventId (integer) --
The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the ContinueAsNewWorkflowExecution decision that started this execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
workflowExecutionTerminatedEventAttributes (dict) --
If the event is of type WorkflowExecutionTerminated then this member is set and provides detailed information about the event. It is not set for other event types.
reason (string) --
The reason provided for the termination (if any).
details (string) --
The details provided for the termination (if any).
childPolicy (string) --
The policy used for the child workflow executions of this workflow execution.
The supported child policies are:
TERMINATE: the child executions will be terminated.
REQUEST_CANCEL: a request to cancel will be attempted for each child execution by recording a WorkflowExecutionCancelRequested event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.
ABANDON: no action will be taken. The child executions will continue to run.
cause (string) --
If set, indicates that the workflow execution was automatically terminated, and specifies the cause. This happens if the parent workflow execution times out or is terminated and the child policy is set to terminate child executions.
workflowExecutionCancelRequestedEventAttributes (dict) --
If the event is of type WorkflowExecutionCancelRequested then this member is set and provides detailed information about the event. It is not set for other event types.
externalWorkflowExecution (dict) --
The external workflow execution for which the cancellation was requested.
workflowId (string) --
The user defined identifier associated with the workflow execution.
runId (string) --
A system-generated unique identifier for the workflow execution.
externalInitiatedEventId (integer) --
The ID of the RequestCancelExternalWorkflowExecutionInitiated event corresponding to the RequestCancelExternalWorkflowExecution decision to cancel this workflow execution.The source event with this ID can be found in the history of the source workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
cause (string) --
If set, indicates that the request to cancel the workflow execution was automatically generated, and specifies the cause. This happens if the parent workflow execution times out or is terminated, and the child policy is set to cancel child executions.
decisionTaskScheduledEventAttributes (dict) --
If the event is of type DecisionTaskScheduled then this member is set and provides detailed information about the event. It is not set for other event types.
taskList (dict) --
The name of the task list in which the decision task was scheduled.
name (string) --
The name of the task list.
taskPriority (string) --
Optional. A task priority that, if set, specifies the priority for this decision task. Valid values are integers that range from Java's Integer.MIN_VALUE (-2147483648) to Integer.MAX_VALUE (2147483647). Higher numbers indicate higher priority.
For more information about setting task priority, see Setting Task Priority in the Amazon Simple Workflow Developer Guide.
startToCloseTimeout (string) --
The maximum duration for this decision task. The task is considered timed out if it does not completed within this duration.
The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.
decisionTaskStartedEventAttributes (dict) --
If the event is of type DecisionTaskStarted then this member is set and provides detailed information about the event. It is not set for other event types.
identity (string) --
Identity of the decider making the request. This enables diagnostic tracing when problems arise. The form of this identity is user defined.
scheduledEventId (integer) --
The ID of the DecisionTaskScheduled event that was recorded when this decision task was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
decisionTaskCompletedEventAttributes (dict) --
If the event is of type DecisionTaskCompleted then this member is set and provides detailed information about the event. It is not set for other event types.
executionContext (string) --
User defined context for the workflow execution.
scheduledEventId (integer) --
The ID of the DecisionTaskScheduled event that was recorded when this decision task was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
startedEventId (integer) --
The ID of the DecisionTaskStarted event recorded when this decision task was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
decisionTaskTimedOutEventAttributes (dict) --
If the event is of type DecisionTaskTimedOut then this member is set and provides detailed information about the event. It is not set for other event types.
timeoutType (string) --
The type of timeout that expired before the decision task could be completed.
scheduledEventId (integer) --
The ID of the DecisionTaskScheduled event that was recorded when this decision task was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
startedEventId (integer) --
The ID of the DecisionTaskStarted event recorded when this decision task was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
activityTaskScheduledEventAttributes (dict) --
If the event is of type ActivityTaskScheduled then this member is set and provides detailed information about the event. It is not set for other event types.
activityType (dict) --
The type of the activity task.
name (string) --
The name of this activity.
version (string) --
The version of this activity.
activityId (string) --
The unique ID of the activity task.
input (string) --
The input provided to the activity task.
control (string) --
Optional. Data attached to the event that can be used by the decider in subsequent workflow tasks. This data is not sent to the activity.
scheduleToStartTimeout (string) --
The maximum amount of time the activity task can wait to be assigned to a worker.
scheduleToCloseTimeout (string) --
The maximum amount of time for this activity task.
startToCloseTimeout (string) --
The maximum amount of time a worker may take to process the activity task.
taskList (dict) --
The task list in which the activity task has been scheduled.
name (string) --
The name of the task list.
taskPriority (string) --
Optional. The priority to assign to the scheduled activity task. If set, this will override any default priority value that was assigned when the activity type was registered.
Valid values are integers that range from Java's Integer.MIN_VALUE (-2147483648) to Integer.MAX_VALUE (2147483647). Higher numbers indicate higher priority.
For more information about setting task priority, see Setting Task Priority in the Amazon Simple Workflow Developer Guide.
decisionTaskCompletedEventId (integer) --
The ID of the DecisionTaskCompleted event corresponding to the decision that resulted in the scheduling of this activity task. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
heartbeatTimeout (string) --
The maximum time before which the worker processing this task must report progress by calling RecordActivityTaskHeartbeat. If the timeout is exceeded, the activity task is automatically timed out. If the worker subsequently attempts to record a heartbeat or return a result, it will be ignored.
activityTaskStartedEventAttributes (dict) --
If the event is of type ActivityTaskStarted then this member is set and provides detailed information about the event. It is not set for other event types.
identity (string) --
Identity of the worker that was assigned this task. This aids diagnostics when problems arise. The form of this identity is user defined.
scheduledEventId (integer) --
The ID of the ActivityTaskScheduled event that was recorded when this activity task was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
activityTaskCompletedEventAttributes (dict) --
If the event is of type ActivityTaskCompleted then this member is set and provides detailed information about the event. It is not set for other event types.
result (string) --
The results of the activity task (if any).
scheduledEventId (integer) --
The ID of the ActivityTaskScheduled event that was recorded when this activity task was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
startedEventId (integer) --
The ID of the ActivityTaskStarted event recorded when this activity task was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
activityTaskFailedEventAttributes (dict) --
If the event is of type ActivityTaskFailed then this member is set and provides detailed information about the event. It is not set for other event types.
reason (string) --
The reason provided for the failure (if any).
details (string) --
The details of the failure (if any).
scheduledEventId (integer) --
The ID of the ActivityTaskScheduled event that was recorded when this activity task was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
startedEventId (integer) --
The ID of the ActivityTaskStarted event recorded when this activity task was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
activityTaskTimedOutEventAttributes (dict) --
If the event is of type ActivityTaskTimedOut then this member is set and provides detailed information about the event. It is not set for other event types.
timeoutType (string) --
The type of the timeout that caused this event.
scheduledEventId (integer) --
The ID of the ActivityTaskScheduled event that was recorded when this activity task was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
startedEventId (integer) --
The ID of the ActivityTaskStarted event recorded when this activity task was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
details (string) --
Contains the content of the details parameter for the last call made by the activity to RecordActivityTaskHeartbeat.
activityTaskCanceledEventAttributes (dict) --
If the event is of type ActivityTaskCanceled then this member is set and provides detailed information about the event. It is not set for other event types.
details (string) --
Details of the cancellation (if any).
scheduledEventId (integer) --
The ID of the ActivityTaskScheduled event that was recorded when this activity task was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
startedEventId (integer) --
The ID of the ActivityTaskStarted event recorded when this activity task was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
latestCancelRequestedEventId (integer) --
If set, contains the ID of the last ActivityTaskCancelRequested event recorded for this activity task. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
activityTaskCancelRequestedEventAttributes (dict) --
If the event is of type ActivityTaskcancelRequested then this member is set and provides detailed information about the event. It is not set for other event types.
decisionTaskCompletedEventId (integer) --
The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the RequestCancelActivityTask decision for this cancellation request. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
activityId (string) --
The unique ID of the task.
workflowExecutionSignaledEventAttributes (dict) --
If the event is of type WorkflowExecutionSignaled then this member is set and provides detailed information about the event. It is not set for other event types.
signalName (string) --
The name of the signal received. The decider can use the signal name and inputs to determine how to the process the signal.
input (string) --
Inputs provided with the signal (if any). The decider can use the signal name and inputs to determine how to process the signal.
externalWorkflowExecution (dict) --
The workflow execution that sent the signal. This is set only of the signal was sent by another workflow execution.
workflowId (string) --
The user defined identifier associated with the workflow execution.
runId (string) --
A system-generated unique identifier for the workflow execution.
externalInitiatedEventId (integer) --
The ID of the SignalExternalWorkflowExecutionInitiated event corresponding to the SignalExternalWorkflow decision to signal this workflow execution.The source event with this ID can be found in the history of the source workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event. This field is set only if the signal was initiated by another workflow execution.
markerRecordedEventAttributes (dict) --
If the event is of type MarkerRecorded then this member is set and provides detailed information about the event. It is not set for other event types.
markerName (string) --
The name of the marker.
details (string) --
Details of the marker (if any).
decisionTaskCompletedEventId (integer) --
The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the RecordMarker decision that requested this marker. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
recordMarkerFailedEventAttributes (dict) --
If the event is of type DecisionTaskFailed then this member is set and provides detailed information about the event. It is not set for other event types.
markerName (string) --
The marker's name.
cause (string) --
The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.
decisionTaskCompletedEventId (integer) --
The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the RecordMarkerFailed decision for this cancellation request. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
timerStartedEventAttributes (dict) --
If the event is of type TimerStarted then this member is set and provides detailed information about the event. It is not set for other event types.
timerId (string) --
The unique ID of the timer that was started.
control (string) --
Optional. Data attached to the event that can be used by the decider in subsequent workflow tasks.
startToFireTimeout (string) --
The duration of time after which the timer will fire.
The duration is specified in seconds; an integer greater than or equal to 0.
decisionTaskCompletedEventId (integer) --
The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the StartTimer decision for this activity task. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
timerFiredEventAttributes (dict) --
If the event is of type TimerFired then this member is set and provides detailed information about the event. It is not set for other event types.
timerId (string) --
The unique ID of the timer that fired.
startedEventId (integer) --
The ID of the TimerStarted event that was recorded when this timer was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
timerCanceledEventAttributes (dict) --
If the event is of type TimerCanceled then this member is set and provides detailed information about the event. It is not set for other event types.
timerId (string) --
The unique ID of the timer that was canceled.
startedEventId (integer) --
The ID of the TimerStarted event that was recorded when this timer was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
decisionTaskCompletedEventId (integer) --
The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the CancelTimer decision to cancel this timer. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
startChildWorkflowExecutionInitiatedEventAttributes (dict) --
If the event is of type StartChildWorkflowExecutionInitiated then this member is set and provides detailed information about the event. It is not set for other event types.
workflowId (string) --
The workflowId of the child workflow execution.
workflowType (dict) --
The type of the child workflow execution.
name (string) --
Required. The name of the workflow type.
version (string) --
Required. The version of the workflow type.
control (string) --
Optional. Data attached to the event that can be used by the decider in subsequent decision tasks. This data is not sent to the activity.
input (string) --
The inputs provided to the child workflow execution (if any).
executionStartToCloseTimeout (string) --
The maximum duration for the child workflow execution. If the workflow execution is not closed within this duration, it will be timed out and force terminated.
The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.
taskList (dict) --
The name of the task list used for the decision tasks of the child workflow execution.
name (string) --
The name of the task list.
taskPriority (string) --
Optional. The priority assigned for the decision tasks for this workflow execution. Valid values are integers that range from Java's Integer.MIN_VALUE (-2147483648) to Integer.MAX_VALUE (2147483647). Higher numbers indicate higher priority.
For more information about setting task priority, see Setting Task Priority in the Amazon Simple Workflow Developer Guide.
decisionTaskCompletedEventId (integer) --
The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the StartChildWorkflowExecution decision to request this child workflow execution. This information can be useful for diagnosing problems by tracing back the cause of events.
childPolicy (string) --
The policy to use for the child workflow executions if this execution gets terminated by explicitly calling the TerminateWorkflowExecution action or due to an expired timeout.
The supported child policies are:
TERMINATE: the child executions will be terminated.
REQUEST_CANCEL: a request to cancel will be attempted for each child execution by recording a WorkflowExecutionCancelRequested event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.
ABANDON: no action will be taken. The child executions will continue to run.
taskStartToCloseTimeout (string) --
The maximum duration allowed for the decision tasks for this workflow execution.
The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.
tagList (list) --
The list of tags to associated with the child workflow execution.
(string) --
lambdaRole (string) --
The IAM role attached to this workflow execution to use when invoking AWS Lambda functions.
childWorkflowExecutionStartedEventAttributes (dict) --
If the event is of type ChildWorkflowExecutionStarted then this member is set and provides detailed information about the event. It is not set for other event types.
workflowExecution (dict) --
The child workflow execution that was started.
workflowId (string) --
The user defined identifier associated with the workflow execution.
runId (string) --
A system-generated unique identifier for the workflow execution.
workflowType (dict) --
The type of the child workflow execution.
name (string) --
Required. The name of the workflow type.
version (string) --
Required. The version of the workflow type.
initiatedEventId (integer) --
The ID of the StartChildWorkflowExecutionInitiated event corresponding to the StartChildWorkflowExecution decision to start this child workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
childWorkflowExecutionCompletedEventAttributes (dict) --
If the event is of type ChildWorkflowExecutionCompleted then this member is set and provides detailed information about the event. It is not set for other event types.
workflowExecution (dict) --
The child workflow execution that was completed.
workflowId (string) --
The user defined identifier associated with the workflow execution.
runId (string) --
A system-generated unique identifier for the workflow execution.
workflowType (dict) --
The type of the child workflow execution.
name (string) --
Required. The name of the workflow type.
version (string) --
Required. The version of the workflow type.
result (string) --
The result of the child workflow execution (if any).
initiatedEventId (integer) --
The ID of the StartChildWorkflowExecutionInitiated event corresponding to the StartChildWorkflowExecution decision to start this child workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
startedEventId (integer) --
The ID of the ChildWorkflowExecutionStarted event recorded when this child workflow execution was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
childWorkflowExecutionFailedEventAttributes (dict) --
If the event is of type ChildWorkflowExecutionFailed then this member is set and provides detailed information about the event. It is not set for other event types.
workflowExecution (dict) --
The child workflow execution that failed.
workflowId (string) --
The user defined identifier associated with the workflow execution.
runId (string) --
A system-generated unique identifier for the workflow execution.
workflowType (dict) --
The type of the child workflow execution.
name (string) --
Required. The name of the workflow type.
version (string) --
Required. The version of the workflow type.
reason (string) --
The reason for the failure (if provided).
details (string) --
The details of the failure (if provided).
initiatedEventId (integer) --
The ID of the StartChildWorkflowExecutionInitiated event corresponding to the StartChildWorkflowExecution decision to start this child workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
startedEventId (integer) --
The ID of the ChildWorkflowExecutionStarted event recorded when this child workflow execution was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
childWorkflowExecutionTimedOutEventAttributes (dict) --
If the event is of type ChildWorkflowExecutionTimedOut then this member is set and provides detailed information about the event. It is not set for other event types.
workflowExecution (dict) --
The child workflow execution that timed out.
workflowId (string) --
The user defined identifier associated with the workflow execution.
runId (string) --
A system-generated unique identifier for the workflow execution.
workflowType (dict) --
The type of the child workflow execution.
name (string) --
Required. The name of the workflow type.
version (string) --
Required. The version of the workflow type.
timeoutType (string) --
The type of the timeout that caused the child workflow execution to time out.
initiatedEventId (integer) --
The ID of the StartChildWorkflowExecutionInitiated event corresponding to the StartChildWorkflowExecution decision to start this child workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
startedEventId (integer) --
The ID of the ChildWorkflowExecutionStarted event recorded when this child workflow execution was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
childWorkflowExecutionCanceledEventAttributes (dict) --
If the event is of type ChildWorkflowExecutionCanceled then this member is set and provides detailed information about the event. It is not set for other event types.
workflowExecution (dict) --
The child workflow execution that was canceled.
workflowId (string) --
The user defined identifier associated with the workflow execution.
runId (string) --
A system-generated unique identifier for the workflow execution.
workflowType (dict) --
The type of the child workflow execution.
name (string) --
Required. The name of the workflow type.
version (string) --
Required. The version of the workflow type.
details (string) --
Details of the cancellation (if provided).
initiatedEventId (integer) --
The ID of the StartChildWorkflowExecutionInitiated event corresponding to the StartChildWorkflowExecution decision to start this child workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
startedEventId (integer) --
The ID of the ChildWorkflowExecutionStarted event recorded when this child workflow execution was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
childWorkflowExecutionTerminatedEventAttributes (dict) --
If the event is of type ChildWorkflowExecutionTerminated then this member is set and provides detailed information about the event. It is not set for other event types.
workflowExecution (dict) --
The child workflow execution that was terminated.
workflowId (string) --
The user defined identifier associated with the workflow execution.
runId (string) --
A system-generated unique identifier for the workflow execution.
workflowType (dict) --
The type of the child workflow execution.
name (string) --
Required. The name of the workflow type.
version (string) --
Required. The version of the workflow type.
initiatedEventId (integer) --
The ID of the StartChildWorkflowExecutionInitiated event corresponding to the StartChildWorkflowExecution decision to start this child workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
startedEventId (integer) --
The ID of the ChildWorkflowExecutionStarted event recorded when this child workflow execution was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
signalExternalWorkflowExecutionInitiatedEventAttributes (dict) --
If the event is of type SignalExternalWorkflowExecutionInitiated then this member is set and provides detailed information about the event. It is not set for other event types.
workflowId (string) --
The workflowId of the external workflow execution.
runId (string) --
The runId of the external workflow execution to send the signal to.
signalName (string) --
The name of the signal.
input (string) --
Input provided to the signal (if any).
decisionTaskCompletedEventId (integer) --
The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the SignalExternalWorkflowExecution decision for this signal. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
control (string) --
Optional. data attached to the event that can be used by the decider in subsequent decision tasks.
externalWorkflowExecutionSignaledEventAttributes (dict) --
If the event is of type ExternalWorkflowExecutionSignaled then this member is set and provides detailed information about the event. It is not set for other event types.
workflowExecution (dict) --
The external workflow execution that the signal was delivered to.
workflowId (string) --
The user defined identifier associated with the workflow execution.
runId (string) --
A system-generated unique identifier for the workflow execution.
initiatedEventId (integer) --
The ID of the SignalExternalWorkflowExecutionInitiated event corresponding to the SignalExternalWorkflowExecution decision to request this signal. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
signalExternalWorkflowExecutionFailedEventAttributes (dict) --
If the event is of type SignalExternalWorkflowExecutionFailed then this member is set and provides detailed information about the event. It is not set for other event types.
workflowId (string) --
The workflowId of the external workflow execution that the signal was being delivered to.
runId (string) --
The runId of the external workflow execution that the signal was being delivered to.
cause (string) --
The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.
initiatedEventId (integer) --
The ID of the SignalExternalWorkflowExecutionInitiated event corresponding to the SignalExternalWorkflowExecution decision to request this signal. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
decisionTaskCompletedEventId (integer) --
The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the SignalExternalWorkflowExecution decision for this signal. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
control (string) --
externalWorkflowExecutionCancelRequestedEventAttributes (dict) --
If the event is of type ExternalWorkflowExecutionCancelRequested then this member is set and provides detailed information about the event. It is not set for other event types.
workflowExecution (dict) --
The external workflow execution to which the cancellation request was delivered.
workflowId (string) --
The user defined identifier associated with the workflow execution.
runId (string) --
A system-generated unique identifier for the workflow execution.
initiatedEventId (integer) --
The ID of the RequestCancelExternalWorkflowExecutionInitiated event corresponding to the RequestCancelExternalWorkflowExecution decision to cancel this external workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
requestCancelExternalWorkflowExecutionInitiatedEventAttributes (dict) --
If the event is of type RequestCancelExternalWorkflowExecutionInitiated then this member is set and provides detailed information about the event. It is not set for other event types.
workflowId (string) --
The workflowId of the external workflow execution to be canceled.
runId (string) --
The runId of the external workflow execution to be canceled.
decisionTaskCompletedEventId (integer) --
The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the RequestCancelExternalWorkflowExecution decision for this cancellation request. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
control (string) --
Optional. Data attached to the event that can be used by the decider in subsequent workflow tasks.
requestCancelExternalWorkflowExecutionFailedEventAttributes (dict) --
If the event is of type RequestCancelExternalWorkflowExecutionFailed then this member is set and provides detailed information about the event. It is not set for other event types.
workflowId (string) --
The workflowId of the external workflow to which the cancel request was to be delivered.
runId (string) --
The runId of the external workflow execution.
cause (string) --
The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.
initiatedEventId (integer) --
The ID of the RequestCancelExternalWorkflowExecutionInitiated event corresponding to the RequestCancelExternalWorkflowExecution decision to cancel this external workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
decisionTaskCompletedEventId (integer) --
The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the RequestCancelExternalWorkflowExecution decision for this cancellation request. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
control (string) --
scheduleActivityTaskFailedEventAttributes (dict) --
If the event is of type ScheduleActivityTaskFailed then this member is set and provides detailed information about the event. It is not set for other event types.
activityType (dict) --
The activity type provided in the ScheduleActivityTask decision that failed.
name (string) --
The name of this activity.
version (string) --
The version of this activity.
activityId (string) --
The activityId provided in the ScheduleActivityTask decision that failed.
cause (string) --
The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.
decisionTaskCompletedEventId (integer) --
The ID of the DecisionTaskCompleted event corresponding to the decision that resulted in the scheduling of this activity task. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
requestCancelActivityTaskFailedEventAttributes (dict) --
If the event is of type RequestCancelActivityTaskFailed then this member is set and provides detailed information about the event. It is not set for other event types.
activityId (string) --
The activityId provided in the RequestCancelActivityTask decision that failed.
cause (string) --
The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.
decisionTaskCompletedEventId (integer) --
The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the RequestCancelActivityTask decision for this cancellation request. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
startTimerFailedEventAttributes (dict) --
If the event is of type StartTimerFailed then this member is set and provides detailed information about the event. It is not set for other event types.
timerId (string) --
The timerId provided in the StartTimer decision that failed.
cause (string) --
The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.
decisionTaskCompletedEventId (integer) --
The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the StartTimer decision for this activity task. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
cancelTimerFailedEventAttributes (dict) --
If the event is of type CancelTimerFailed then this member is set and provides detailed information about the event. It is not set for other event types.
timerId (string) --
The timerId provided in the CancelTimer decision that failed.
cause (string) --
The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.
decisionTaskCompletedEventId (integer) --
The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the CancelTimer decision to cancel this timer. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
startChildWorkflowExecutionFailedEventAttributes (dict) --
If the event is of type StartChildWorkflowExecutionFailed then this member is set and provides detailed information about the event. It is not set for other event types.
workflowType (dict) --
The workflow type provided in the StartChildWorkflowExecution decision that failed.
name (string) --
Required. The name of the workflow type.
version (string) --
Required. The version of the workflow type.
cause (string) --
The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.
workflowId (string) --
The workflowId of the child workflow execution.
initiatedEventId (integer) --
The ID of the StartChildWorkflowExecutionInitiated event corresponding to the StartChildWorkflowExecution decision to start this child workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
decisionTaskCompletedEventId (integer) --
The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the StartChildWorkflowExecution decision to request this child workflow execution. This information can be useful for diagnosing problems by tracing back the cause of events.
control (string) --
lambdaFunctionScheduledEventAttributes (dict) --
Provides details for the LambdaFunctionScheduled event.
id (string) --
The unique Amazon SWF ID for the AWS Lambda task.
name (string) --
The name of the scheduled AWS Lambda function.
input (string) --
Input provided to the AWS Lambda function.
startToCloseTimeout (string) --
The maximum time, in seconds, that the AWS Lambda function can take to execute from start to close before it is marked as failed.
decisionTaskCompletedEventId (integer) --
The ID of the DecisionTaskCompleted event for the decision that resulted in the scheduling of this AWS Lambda function. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
lambdaFunctionStartedEventAttributes (dict) --
Provides details for the LambdaFunctionStarted event.
scheduledEventId (integer) --
The ID of the LambdaFunctionScheduled event that was recorded when this AWS Lambda function was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
lambdaFunctionCompletedEventAttributes (dict) --
Provides details for the LambdaFunctionCompleted event.
scheduledEventId (integer) --
The ID of the LambdaFunctionScheduled event that was recorded when this AWS Lambda function was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
startedEventId (integer) --
The ID of the LambdaFunctionStarted event recorded in the history.
result (string) --
The result of the function execution (if any).
lambdaFunctionFailedEventAttributes (dict) --
Provides details for the LambdaFunctionFailed event.
scheduledEventId (integer) --
The ID of the LambdaFunctionScheduled event that was recorded when this AWS Lambda function was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
startedEventId (integer) --
The ID of the LambdaFunctionStarted event recorded in the history.
reason (string) --
The reason provided for the failure (if any).
details (string) --
The details of the failure (if any).
lambdaFunctionTimedOutEventAttributes (dict) --
Provides details for the LambdaFunctionTimedOut event.
scheduledEventId (integer) --
The ID of the LambdaFunctionScheduled event that was recorded when this AWS Lambda function was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
startedEventId (integer) --
The ID of the LambdaFunctionStarted event recorded in the history.
timeoutType (string) --
The type of the timeout that caused this event.
scheduleLambdaFunctionFailedEventAttributes (dict) --
Provides details for the ScheduleLambdaFunctionFailed event.
id (string) --
The unique Amazon SWF ID of the AWS Lambda task.
name (string) --
The name of the scheduled AWS Lambda function.
cause (string) --
The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.
decisionTaskCompletedEventId (integer) --
The ID of the DecisionTaskCompleted event corresponding to the decision that resulted in the scheduling of this AWS Lambda function. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
startLambdaFunctionFailedEventAttributes (dict) --
Provides details for the StartLambdaFunctionFailed event.
scheduledEventId (integer) --
The ID of the LambdaFunctionScheduled event that was recorded when this AWS Lambda function was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
cause (string) --
The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.
message (string) --
The error message (if any).
nextPageToken (string) --
If a NextPageToken was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in nextPageToken. Keep all other arguments unchanged.
The configured maximumPageSize determines how many results can be returned in a single call.
{'events': {'eventType': {'LambdaFunctionCompleted', 'LambdaFunctionFailed', 'LambdaFunctionScheduled', 'LambdaFunctionStarted', 'LambdaFunctionTimedOut', 'ScheduleLambdaFunctionFailed', 'StartLambdaFunctionFailed'}, 'lambdaFunctionCompletedEventAttributes': {'result': 'string', 'scheduledEventId': 'long', 'startedEventId': 'long'}, 'lambdaFunctionFailedEventAttributes': {'details': 'string', 'reason': 'string', 'scheduledEventId': 'long', 'startedEventId': 'long'}, 'lambdaFunctionScheduledEventAttributes': {'decisionTaskCompletedEventId': 'long', 'id': 'string', 'input': 'string', 'name': 'string', 'startToCloseTimeout': 'string'}, 'lambdaFunctionStartedEventAttributes': {'scheduledEventId': 'long'}, 'lambdaFunctionTimedOutEventAttributes': {'scheduledEventId': 'long', 'startedEventId': 'long', 'timeoutType': 'START_TO_CLOSE'}, 'scheduleLambdaFunctionFailedEventAttributes': {'cause': 'ID_ALREADY_IN_USE ' '| ' 'OPEN_LAMBDA_FUNCTIONS_LIMIT_EXCEEDED ' '| ' 'LAMBDA_FUNCTION_CREATION_RATE_EXCEEDED ' '| ' 'LAMBDA_SERVICE_NOT_AVAILABLE_IN_REGION', 'decisionTaskCompletedEventId': 'long', 'id': 'string', 'name': 'string'}, 'startChildWorkflowExecutionInitiatedEventAttributes': {'lambdaRole': 'string'}, 'startLambdaFunctionFailedEventAttributes': {'cause': 'ASSUME_ROLE_FAILED', 'message': 'string', 'scheduledEventId': 'long'}, 'workflowExecutionContinuedAsNewEventAttributes': {'lambdaRole': 'string'}, 'workflowExecutionStartedEventAttributes': {'lambdaRole': 'string'}}}
Used by deciders to get a DecisionTask from the specified decision taskList. A decision task may be returned for any open workflow execution that is using the specified task list. The task includes a paginated view of the history of the workflow execution. The decider should use the workflow type and the history to determine how to properly handle the task.
This action initiates a long poll, where the service holds the HTTP connection open and responds as soon a task becomes available. If no decision task is available in the specified task list before the timeout of 60 seconds expires, an empty result is returned. An empty result, in this context, means that a DecisionTask is returned, but that the value of taskToken is an empty string.
Access Control
You can use IAM policies to control this action's access to Amazon SWF resources as follows:
Use a Resource element with the domain name to limit the action to only specified domains.
Use an Action element to allow or deny permission to call this action.
Constrain the taskList.name parameter by using a Condition element with the swf:taskList.name key to allow the action to access only certain task lists.
If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.
Request Syntax
client.poll_for_decision_task( domain='string', taskList={ 'name': 'string' }, identity='string', nextPageToken='string', maximumPageSize=123, reverseOrder=True|False )
string
[REQUIRED]
The name of the domain containing the task lists to poll.
dict
[REQUIRED]
Specifies the task list to poll for decision tasks.
The specified string must not start or end with whitespace. It must not contain a : (colon), / (slash), | (vertical bar), or any control characters (u0000-u001f | u007f - u009f). Also, it must not contain the literal string quotarnquot.
name (string) -- [REQUIRED]
The name of the task list.
string
Identity of the decider making the request, which is recorded in the DecisionTaskStarted event in the workflow history. This enables diagnostic tracing when problems arise. The form of this identity is user defined.
string
If a NextPageToken was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in nextPageToken. Keep all other arguments unchanged.
The configured maximumPageSize determines how many results can be returned in a single call.
.
integer
The maximum number of results that will be returned per call. nextPageToken can be used to obtain futher pages of results. The default is 1000, which is the maximum allowed page size. You can, however, specify a page size smaller than the maximum.
This is an upper limit only; the actual number of results returned per call may be fewer than the specified maximum.
boolean
When set to true, returns the events in reverse order. By default the results are returned in ascending order of the eventTimestamp of the events.
dict
Response Syntax
{ 'taskToken': 'string', 'startedEventId': 123, 'workflowExecution': { 'workflowId': 'string', 'runId': 'string' }, 'workflowType': { 'name': 'string', 'version': 'string' }, 'events': [ { 'eventTimestamp': datetime(2015, 1, 1), 'eventType': 'WorkflowExecutionStarted'|'WorkflowExecutionCancelRequested'|'WorkflowExecutionCompleted'|'CompleteWorkflowExecutionFailed'|'WorkflowExecutionFailed'|'FailWorkflowExecutionFailed'|'WorkflowExecutionTimedOut'|'WorkflowExecutionCanceled'|'CancelWorkflowExecutionFailed'|'WorkflowExecutionContinuedAsNew'|'ContinueAsNewWorkflowExecutionFailed'|'WorkflowExecutionTerminated'|'DecisionTaskScheduled'|'DecisionTaskStarted'|'DecisionTaskCompleted'|'DecisionTaskTimedOut'|'ActivityTaskScheduled'|'ScheduleActivityTaskFailed'|'ActivityTaskStarted'|'ActivityTaskCompleted'|'ActivityTaskFailed'|'ActivityTaskTimedOut'|'ActivityTaskCanceled'|'ActivityTaskCancelRequested'|'RequestCancelActivityTaskFailed'|'WorkflowExecutionSignaled'|'MarkerRecorded'|'RecordMarkerFailed'|'TimerStarted'|'StartTimerFailed'|'TimerFired'|'TimerCanceled'|'CancelTimerFailed'|'StartChildWorkflowExecutionInitiated'|'StartChildWorkflowExecutionFailed'|'ChildWorkflowExecutionStarted'|'ChildWorkflowExecutionCompleted'|'ChildWorkflowExecutionFailed'|'ChildWorkflowExecutionTimedOut'|'ChildWorkflowExecutionCanceled'|'ChildWorkflowExecutionTerminated'|'SignalExternalWorkflowExecutionInitiated'|'SignalExternalWorkflowExecutionFailed'|'ExternalWorkflowExecutionSignaled'|'RequestCancelExternalWorkflowExecutionInitiated'|'RequestCancelExternalWorkflowExecutionFailed'|'ExternalWorkflowExecutionCancelRequested'|'LambdaFunctionScheduled'|'LambdaFunctionStarted'|'LambdaFunctionCompleted'|'LambdaFunctionFailed'|'LambdaFunctionTimedOut'|'ScheduleLambdaFunctionFailed'|'StartLambdaFunctionFailed', 'eventId': 123, 'workflowExecutionStartedEventAttributes': { 'input': 'string', 'executionStartToCloseTimeout': 'string', 'taskStartToCloseTimeout': 'string', 'childPolicy': 'TERMINATE'|'REQUEST_CANCEL'|'ABANDON', 'taskList': { 'name': 'string' }, 'workflowType': { 'name': 'string', 'version': 'string' }, 'tagList': [ 'string', ], 'taskPriority': 'string', 'continuedExecutionRunId': 'string', 'parentWorkflowExecution': { 'workflowId': 'string', 'runId': 'string' }, 'parentInitiatedEventId': 123, 'lambdaRole': 'string' }, 'workflowExecutionCompletedEventAttributes': { 'result': 'string', 'decisionTaskCompletedEventId': 123 }, 'completeWorkflowExecutionFailedEventAttributes': { 'cause': 'UNHANDLED_DECISION'|'OPERATION_NOT_PERMITTED', 'decisionTaskCompletedEventId': 123 }, 'workflowExecutionFailedEventAttributes': { 'reason': 'string', 'details': 'string', 'decisionTaskCompletedEventId': 123 }, 'failWorkflowExecutionFailedEventAttributes': { 'cause': 'UNHANDLED_DECISION'|'OPERATION_NOT_PERMITTED', 'decisionTaskCompletedEventId': 123 }, 'workflowExecutionTimedOutEventAttributes': { 'timeoutType': 'START_TO_CLOSE', 'childPolicy': 'TERMINATE'|'REQUEST_CANCEL'|'ABANDON' }, 'workflowExecutionCanceledEventAttributes': { 'details': 'string', 'decisionTaskCompletedEventId': 123 }, 'cancelWorkflowExecutionFailedEventAttributes': { 'cause': 'UNHANDLED_DECISION'|'OPERATION_NOT_PERMITTED', 'decisionTaskCompletedEventId': 123 }, 'workflowExecutionContinuedAsNewEventAttributes': { 'input': 'string', 'decisionTaskCompletedEventId': 123, 'newExecutionRunId': 'string', 'executionStartToCloseTimeout': 'string', 'taskList': { 'name': 'string' }, 'taskPriority': 'string', 'taskStartToCloseTimeout': 'string', 'childPolicy': 'TERMINATE'|'REQUEST_CANCEL'|'ABANDON', 'tagList': [ 'string', ], 'workflowType': { 'name': 'string', 'version': 'string' }, 'lambdaRole': 'string' }, 'continueAsNewWorkflowExecutionFailedEventAttributes': { 'cause': 'UNHANDLED_DECISION'|'WORKFLOW_TYPE_DEPRECATED'|'WORKFLOW_TYPE_DOES_NOT_EXIST'|'DEFAULT_EXECUTION_START_TO_CLOSE_TIMEOUT_UNDEFINED'|'DEFAULT_TASK_START_TO_CLOSE_TIMEOUT_UNDEFINED'|'DEFAULT_TASK_LIST_UNDEFINED'|'DEFAULT_CHILD_POLICY_UNDEFINED'|'CONTINUE_AS_NEW_WORKFLOW_EXECUTION_RATE_EXCEEDED'|'OPERATION_NOT_PERMITTED', 'decisionTaskCompletedEventId': 123 }, 'workflowExecutionTerminatedEventAttributes': { 'reason': 'string', 'details': 'string', 'childPolicy': 'TERMINATE'|'REQUEST_CANCEL'|'ABANDON', 'cause': 'CHILD_POLICY_APPLIED'|'EVENT_LIMIT_EXCEEDED'|'OPERATOR_INITIATED' }, 'workflowExecutionCancelRequestedEventAttributes': { 'externalWorkflowExecution': { 'workflowId': 'string', 'runId': 'string' }, 'externalInitiatedEventId': 123, 'cause': 'CHILD_POLICY_APPLIED' }, 'decisionTaskScheduledEventAttributes': { 'taskList': { 'name': 'string' }, 'taskPriority': 'string', 'startToCloseTimeout': 'string' }, 'decisionTaskStartedEventAttributes': { 'identity': 'string', 'scheduledEventId': 123 }, 'decisionTaskCompletedEventAttributes': { 'executionContext': 'string', 'scheduledEventId': 123, 'startedEventId': 123 }, 'decisionTaskTimedOutEventAttributes': { 'timeoutType': 'START_TO_CLOSE', 'scheduledEventId': 123, 'startedEventId': 123 }, 'activityTaskScheduledEventAttributes': { 'activityType': { 'name': 'string', 'version': 'string' }, 'activityId': 'string', 'input': 'string', 'control': 'string', 'scheduleToStartTimeout': 'string', 'scheduleToCloseTimeout': 'string', 'startToCloseTimeout': 'string', 'taskList': { 'name': 'string' }, 'taskPriority': 'string', 'decisionTaskCompletedEventId': 123, 'heartbeatTimeout': 'string' }, 'activityTaskStartedEventAttributes': { 'identity': 'string', 'scheduledEventId': 123 }, 'activityTaskCompletedEventAttributes': { 'result': 'string', 'scheduledEventId': 123, 'startedEventId': 123 }, 'activityTaskFailedEventAttributes': { 'reason': 'string', 'details': 'string', 'scheduledEventId': 123, 'startedEventId': 123 }, 'activityTaskTimedOutEventAttributes': { 'timeoutType': 'START_TO_CLOSE'|'SCHEDULE_TO_START'|'SCHEDULE_TO_CLOSE'|'HEARTBEAT', 'scheduledEventId': 123, 'startedEventId': 123, 'details': 'string' }, 'activityTaskCanceledEventAttributes': { 'details': 'string', 'scheduledEventId': 123, 'startedEventId': 123, 'latestCancelRequestedEventId': 123 }, 'activityTaskCancelRequestedEventAttributes': { 'decisionTaskCompletedEventId': 123, 'activityId': 'string' }, 'workflowExecutionSignaledEventAttributes': { 'signalName': 'string', 'input': 'string', 'externalWorkflowExecution': { 'workflowId': 'string', 'runId': 'string' }, 'externalInitiatedEventId': 123 }, 'markerRecordedEventAttributes': { 'markerName': 'string', 'details': 'string', 'decisionTaskCompletedEventId': 123 }, 'recordMarkerFailedEventAttributes': { 'markerName': 'string', 'cause': 'OPERATION_NOT_PERMITTED', 'decisionTaskCompletedEventId': 123 }, 'timerStartedEventAttributes': { 'timerId': 'string', 'control': 'string', 'startToFireTimeout': 'string', 'decisionTaskCompletedEventId': 123 }, 'timerFiredEventAttributes': { 'timerId': 'string', 'startedEventId': 123 }, 'timerCanceledEventAttributes': { 'timerId': 'string', 'startedEventId': 123, 'decisionTaskCompletedEventId': 123 }, 'startChildWorkflowExecutionInitiatedEventAttributes': { 'workflowId': 'string', 'workflowType': { 'name': 'string', 'version': 'string' }, 'control': 'string', 'input': 'string', 'executionStartToCloseTimeout': 'string', 'taskList': { 'name': 'string' }, 'taskPriority': 'string', 'decisionTaskCompletedEventId': 123, 'childPolicy': 'TERMINATE'|'REQUEST_CANCEL'|'ABANDON', 'taskStartToCloseTimeout': 'string', 'tagList': [ 'string', ], 'lambdaRole': 'string' }, 'childWorkflowExecutionStartedEventAttributes': { 'workflowExecution': { 'workflowId': 'string', 'runId': 'string' }, 'workflowType': { 'name': 'string', 'version': 'string' }, 'initiatedEventId': 123 }, 'childWorkflowExecutionCompletedEventAttributes': { 'workflowExecution': { 'workflowId': 'string', 'runId': 'string' }, 'workflowType': { 'name': 'string', 'version': 'string' }, 'result': 'string', 'initiatedEventId': 123, 'startedEventId': 123 }, 'childWorkflowExecutionFailedEventAttributes': { 'workflowExecution': { 'workflowId': 'string', 'runId': 'string' }, 'workflowType': { 'name': 'string', 'version': 'string' }, 'reason': 'string', 'details': 'string', 'initiatedEventId': 123, 'startedEventId': 123 }, 'childWorkflowExecutionTimedOutEventAttributes': { 'workflowExecution': { 'workflowId': 'string', 'runId': 'string' }, 'workflowType': { 'name': 'string', 'version': 'string' }, 'timeoutType': 'START_TO_CLOSE', 'initiatedEventId': 123, 'startedEventId': 123 }, 'childWorkflowExecutionCanceledEventAttributes': { 'workflowExecution': { 'workflowId': 'string', 'runId': 'string' }, 'workflowType': { 'name': 'string', 'version': 'string' }, 'details': 'string', 'initiatedEventId': 123, 'startedEventId': 123 }, 'childWorkflowExecutionTerminatedEventAttributes': { 'workflowExecution': { 'workflowId': 'string', 'runId': 'string' }, 'workflowType': { 'name': 'string', 'version': 'string' }, 'initiatedEventId': 123, 'startedEventId': 123 }, 'signalExternalWorkflowExecutionInitiatedEventAttributes': { 'workflowId': 'string', 'runId': 'string', 'signalName': 'string', 'input': 'string', 'decisionTaskCompletedEventId': 123, 'control': 'string' }, 'externalWorkflowExecutionSignaledEventAttributes': { 'workflowExecution': { 'workflowId': 'string', 'runId': 'string' }, 'initiatedEventId': 123 }, 'signalExternalWorkflowExecutionFailedEventAttributes': { 'workflowId': 'string', 'runId': 'string', 'cause': 'UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION'|'SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_RATE_EXCEEDED'|'OPERATION_NOT_PERMITTED', 'initiatedEventId': 123, 'decisionTaskCompletedEventId': 123, 'control': 'string' }, 'externalWorkflowExecutionCancelRequestedEventAttributes': { 'workflowExecution': { 'workflowId': 'string', 'runId': 'string' }, 'initiatedEventId': 123 }, 'requestCancelExternalWorkflowExecutionInitiatedEventAttributes': { 'workflowId': 'string', 'runId': 'string', 'decisionTaskCompletedEventId': 123, 'control': 'string' }, 'requestCancelExternalWorkflowExecutionFailedEventAttributes': { 'workflowId': 'string', 'runId': 'string', 'cause': 'UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION'|'REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_RATE_EXCEEDED'|'OPERATION_NOT_PERMITTED', 'initiatedEventId': 123, 'decisionTaskCompletedEventId': 123, 'control': 'string' }, 'scheduleActivityTaskFailedEventAttributes': { 'activityType': { 'name': 'string', 'version': 'string' }, 'activityId': 'string', 'cause': 'ACTIVITY_TYPE_DEPRECATED'|'ACTIVITY_TYPE_DOES_NOT_EXIST'|'ACTIVITY_ID_ALREADY_IN_USE'|'OPEN_ACTIVITIES_LIMIT_EXCEEDED'|'ACTIVITY_CREATION_RATE_EXCEEDED'|'DEFAULT_SCHEDULE_TO_CLOSE_TIMEOUT_UNDEFINED'|'DEFAULT_TASK_LIST_UNDEFINED'|'DEFAULT_SCHEDULE_TO_START_TIMEOUT_UNDEFINED'|'DEFAULT_START_TO_CLOSE_TIMEOUT_UNDEFINED'|'DEFAULT_HEARTBEAT_TIMEOUT_UNDEFINED'|'OPERATION_NOT_PERMITTED', 'decisionTaskCompletedEventId': 123 }, 'requestCancelActivityTaskFailedEventAttributes': { 'activityId': 'string', 'cause': 'ACTIVITY_ID_UNKNOWN'|'OPERATION_NOT_PERMITTED', 'decisionTaskCompletedEventId': 123 }, 'startTimerFailedEventAttributes': { 'timerId': 'string', 'cause': 'TIMER_ID_ALREADY_IN_USE'|'OPEN_TIMERS_LIMIT_EXCEEDED'|'TIMER_CREATION_RATE_EXCEEDED'|'OPERATION_NOT_PERMITTED', 'decisionTaskCompletedEventId': 123 }, 'cancelTimerFailedEventAttributes': { 'timerId': 'string', 'cause': 'TIMER_ID_UNKNOWN'|'OPERATION_NOT_PERMITTED', 'decisionTaskCompletedEventId': 123 }, 'startChildWorkflowExecutionFailedEventAttributes': { 'workflowType': { 'name': 'string', 'version': 'string' }, 'cause': 'WORKFLOW_TYPE_DOES_NOT_EXIST'|'WORKFLOW_TYPE_DEPRECATED'|'OPEN_CHILDREN_LIMIT_EXCEEDED'|'OPEN_WORKFLOWS_LIMIT_EXCEEDED'|'CHILD_CREATION_RATE_EXCEEDED'|'WORKFLOW_ALREADY_RUNNING'|'DEFAULT_EXECUTION_START_TO_CLOSE_TIMEOUT_UNDEFINED'|'DEFAULT_TASK_LIST_UNDEFINED'|'DEFAULT_TASK_START_TO_CLOSE_TIMEOUT_UNDEFINED'|'DEFAULT_CHILD_POLICY_UNDEFINED'|'OPERATION_NOT_PERMITTED', 'workflowId': 'string', 'initiatedEventId': 123, 'decisionTaskCompletedEventId': 123, 'control': 'string' }, 'lambdaFunctionScheduledEventAttributes': { 'id': 'string', 'name': 'string', 'input': 'string', 'startToCloseTimeout': 'string', 'decisionTaskCompletedEventId': 123 }, 'lambdaFunctionStartedEventAttributes': { 'scheduledEventId': 123 }, 'lambdaFunctionCompletedEventAttributes': { 'scheduledEventId': 123, 'startedEventId': 123, 'result': 'string' }, 'lambdaFunctionFailedEventAttributes': { 'scheduledEventId': 123, 'startedEventId': 123, 'reason': 'string', 'details': 'string' }, 'lambdaFunctionTimedOutEventAttributes': { 'scheduledEventId': 123, 'startedEventId': 123, 'timeoutType': 'START_TO_CLOSE' }, 'scheduleLambdaFunctionFailedEventAttributes': { 'id': 'string', 'name': 'string', 'cause': 'ID_ALREADY_IN_USE'|'OPEN_LAMBDA_FUNCTIONS_LIMIT_EXCEEDED'|'LAMBDA_FUNCTION_CREATION_RATE_EXCEEDED'|'LAMBDA_SERVICE_NOT_AVAILABLE_IN_REGION', 'decisionTaskCompletedEventId': 123 }, 'startLambdaFunctionFailedEventAttributes': { 'scheduledEventId': 123, 'cause': 'ASSUME_ROLE_FAILED', 'message': 'string' } }, ], 'nextPageToken': 'string', 'previousStartedEventId': 123 }
Response Structure
(dict) --
A structure that represents a decision task. Decision tasks are sent to deciders in order for them to make decisions.
taskToken (string) --
The opaque string used as a handle on the task. This token is used by workers to communicate progress and response information back to the system about the task.
startedEventId (integer) --
The ID of the DecisionTaskStarted event recorded in the history.
workflowExecution (dict) --
The workflow execution for which this decision task was created.
workflowId (string) --
The user defined identifier associated with the workflow execution.
runId (string) --
A system-generated unique identifier for the workflow execution.
workflowType (dict) --
The type of the workflow execution for which this decision task was created.
name (string) --
Required. The name of the workflow type.
version (string) --
Required. The version of the workflow type.
events (list) --
A paginated list of history events of the workflow execution. The decider uses this during the processing of the decision task.
(dict) --
Event within a workflow execution. A history event can be one of these types:
WorkflowExecutionStarted: The workflow execution was started.
WorkflowExecutionCompleted: The workflow execution was closed due to successful completion.
WorkflowExecutionFailed: The workflow execution closed due to a failure.
WorkflowExecutionTimedOut: The workflow execution was closed because a time out was exceeded.
WorkflowExecutionCanceled: The workflow execution was successfully canceled and closed.
WorkflowExecutionTerminated: The workflow execution was terminated.
WorkflowExecutionContinuedAsNew: The workflow execution was closed and a new execution of the same type was created with the same workflowId.
WorkflowExecutionCancelRequested: A request to cancel this workflow execution was made.
DecisionTaskScheduled: A decision task was scheduled for the workflow execution.
DecisionTaskStarted: The decision task was dispatched to a decider.
DecisionTaskCompleted: The decider successfully completed a decision task by calling RespondDecisionTaskCompleted.
DecisionTaskTimedOut: The decision task timed out.
ActivityTaskScheduled: An activity task was scheduled for execution.
ScheduleActivityTaskFailed: Failed to process ScheduleActivityTask decision. This happens when the decision is not configured properly, for example the activity type specified is not registered.
ActivityTaskStarted: The scheduled activity task was dispatched to a worker.
ActivityTaskCompleted: An activity worker successfully completed an activity task by calling RespondActivityTaskCompleted.
ActivityTaskFailed: An activity worker failed an activity task by calling RespondActivityTaskFailed.
ActivityTaskTimedOut: The activity task timed out.
ActivityTaskCanceled: The activity task was successfully canceled.
ActivityTaskCancelRequested: A RequestCancelActivityTask decision was received by the system.
RequestCancelActivityTaskFailed: Failed to process RequestCancelActivityTask decision. This happens when the decision is not configured properly.
WorkflowExecutionSignaled: An external signal was received for the workflow execution.
MarkerRecorded: A marker was recorded in the workflow history as the result of a RecordMarker decision.
TimerStarted: A timer was started for the workflow execution due to a StartTimer decision.
StartTimerFailed: Failed to process StartTimer decision. This happens when the decision is not configured properly, for example a timer already exists with the specified timer ID.
TimerFired: A timer, previously started for this workflow execution, fired.
TimerCanceled: A timer, previously started for this workflow execution, was successfully canceled.
CancelTimerFailed: Failed to process CancelTimer decision. This happens when the decision is not configured properly, for example no timer exists with the specified timer ID.
StartChildWorkflowExecutionInitiated: A request was made to start a child workflow execution.
StartChildWorkflowExecutionFailed: Failed to process StartChildWorkflowExecution decision. This happens when the decision is not configured properly, for example the workflow type specified is not registered.
ChildWorkflowExecutionStarted: A child workflow execution was successfully started.
ChildWorkflowExecutionCompleted: A child workflow execution, started by this workflow execution, completed successfully and was closed.
ChildWorkflowExecutionFailed: A child workflow execution, started by this workflow execution, failed to complete successfully and was closed.
ChildWorkflowExecutionTimedOut: A child workflow execution, started by this workflow execution, timed out and was closed.
ChildWorkflowExecutionCanceled: A child workflow execution, started by this workflow execution, was canceled and closed.
ChildWorkflowExecutionTerminated: A child workflow execution, started by this workflow execution, was terminated.
SignalExternalWorkflowExecutionInitiated: A request to signal an external workflow was made.
ExternalWorkflowExecutionSignaled: A signal, requested by this workflow execution, was successfully delivered to the target external workflow execution.
SignalExternalWorkflowExecutionFailed: The request to signal an external workflow execution failed.
RequestCancelExternalWorkflowExecutionInitiated: A request was made to request the cancellation of an external workflow execution.
ExternalWorkflowExecutionCancelRequested: Request to cancel an external workflow execution was successfully delivered to the target execution.
RequestCancelExternalWorkflowExecutionFailed: Request to cancel an external workflow execution failed.
LambdaFunctionScheduled: An AWS Lambda function was scheduled for execution.
LambdaFunctionStarted: The scheduled function was invoked in the AWS Lambda service.
LambdaFunctionCompleted: The AWS Lambda function successfully completed.
LambdaFunctionFailed: The AWS Lambda function execution failed.
LambdaFunctionTimedOut: The AWS Lambda function execution timed out.
ScheduleLambdaFunctionFailed: Failed to process ScheduleLambdaFunction decision. This happens when the workflow execution does not have the proper IAM role attached to invoke AWS Lambda functions.
StartLambdaFunctionFailed: Failed to invoke the scheduled function in the AWS Lambda service. This happens when the AWS Lambda service is not available in the current region, or received too many requests.
eventTimestamp (datetime) --
The date and time when the event occurred.
eventType (string) --
The type of the history event.
eventId (integer) --
The system generated ID of the event. This ID uniquely identifies the event with in the workflow execution history.
workflowExecutionStartedEventAttributes (dict) --
If the event is of type WorkflowExecutionStarted then this member is set and provides detailed information about the event. It is not set for other event types.
input (string) --
The input provided to the workflow execution (if any).
executionStartToCloseTimeout (string) --
The maximum duration for this workflow execution.
The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.
taskStartToCloseTimeout (string) --
The maximum duration of decision tasks for this workflow type.
The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.
childPolicy (string) --
The policy to use for the child workflow executions if this workflow execution is terminated, by calling the TerminateWorkflowExecution action explicitly or due to an expired timeout.
The supported child policies are:
TERMINATE: the child executions will be terminated.
REQUEST_CANCEL: a request to cancel will be attempted for each child execution by recording a WorkflowExecutionCancelRequested event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.
ABANDON: no action will be taken. The child executions will continue to run.
taskList (dict) --
The name of the task list for scheduling the decision tasks for this workflow execution.
name (string) --
The name of the task list.
workflowType (dict) --
The workflow type of this execution.
name (string) --
Required. The name of the workflow type.
version (string) --
Required. The version of the workflow type.
tagList (list) --
The list of tags associated with this workflow execution. An execution can have up to 5 tags.
(string) --
taskPriority (string) --
continuedExecutionRunId (string) --
If this workflow execution was started due to a ContinueAsNewWorkflowExecution decision, then it contains the runId of the previous workflow execution that was closed and continued as this execution.
parentWorkflowExecution (dict) --
The source workflow execution that started this workflow execution. The member is not set if the workflow execution was not started by a workflow.
workflowId (string) --
The user defined identifier associated with the workflow execution.
runId (string) --
A system-generated unique identifier for the workflow execution.
parentInitiatedEventId (integer) --
The ID of the StartChildWorkflowExecutionInitiated event corresponding to the StartChildWorkflowExecution decision to start this workflow execution. The source event with this ID can be found in the history of the source workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
lambdaRole (string) --
The IAM role attached to this workflow execution to use when invoking AWS Lambda functions.
workflowExecutionCompletedEventAttributes (dict) --
If the event is of type WorkflowExecutionCompleted then this member is set and provides detailed information about the event. It is not set for other event types.
result (string) --
The result produced by the workflow execution upon successful completion.
decisionTaskCompletedEventId (integer) --
The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the CompleteWorkflowExecution decision to complete this execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
completeWorkflowExecutionFailedEventAttributes (dict) --
If the event is of type CompleteWorkflowExecutionFailed then this member is set and provides detailed information about the event. It is not set for other event types.
cause (string) --
The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.
decisionTaskCompletedEventId (integer) --
The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the CompleteWorkflowExecution decision to complete this execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
workflowExecutionFailedEventAttributes (dict) --
If the event is of type WorkflowExecutionFailed then this member is set and provides detailed information about the event. It is not set for other event types.
reason (string) --
The descriptive reason provided for the failure (if any).
details (string) --
The details of the failure (if any).
decisionTaskCompletedEventId (integer) --
The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the FailWorkflowExecution decision to fail this execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
failWorkflowExecutionFailedEventAttributes (dict) --
If the event is of type FailWorkflowExecutionFailed then this member is set and provides detailed information about the event. It is not set for other event types.
cause (string) --
The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.
decisionTaskCompletedEventId (integer) --
The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the FailWorkflowExecution decision to fail this execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
workflowExecutionTimedOutEventAttributes (dict) --
If the event is of type WorkflowExecutionTimedOut then this member is set and provides detailed information about the event. It is not set for other event types.
timeoutType (string) --
The type of timeout that caused this event.
childPolicy (string) --
The policy used for the child workflow executions of this workflow execution.
The supported child policies are:
TERMINATE: the child executions will be terminated.
REQUEST_CANCEL: a request to cancel will be attempted for each child execution by recording a WorkflowExecutionCancelRequested event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.
ABANDON: no action will be taken. The child executions will continue to run.
workflowExecutionCanceledEventAttributes (dict) --
If the event is of type WorkflowExecutionCanceled then this member is set and provides detailed information about the event. It is not set for other event types.
details (string) --
Details for the cancellation (if any).
decisionTaskCompletedEventId (integer) --
The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the CancelWorkflowExecution decision for this cancellation request. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
cancelWorkflowExecutionFailedEventAttributes (dict) --
If the event is of type CancelWorkflowExecutionFailed then this member is set and provides detailed information about the event. It is not set for other event types.
cause (string) --
The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.
decisionTaskCompletedEventId (integer) --
The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the CancelWorkflowExecution decision for this cancellation request. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
workflowExecutionContinuedAsNewEventAttributes (dict) --
If the event is of type WorkflowExecutionContinuedAsNew then this member is set and provides detailed information about the event. It is not set for other event types.
input (string) --
The input provided to the new workflow execution.
decisionTaskCompletedEventId (integer) --
The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the ContinueAsNewWorkflowExecution decision that started this execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
newExecutionRunId (string) --
The runId of the new workflow execution.
executionStartToCloseTimeout (string) --
The total duration allowed for the new workflow execution.
The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.
taskList (dict) --
Represents a task list.
name (string) --
The name of the task list.
taskPriority (string) --
taskStartToCloseTimeout (string) --
The maximum duration of decision tasks for the new workflow execution.
The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.
childPolicy (string) --
The policy to use for the child workflow executions of the new execution if it is terminated by calling the TerminateWorkflowExecution action explicitly or due to an expired timeout.
The supported child policies are:
TERMINATE: the child executions will be terminated.
REQUEST_CANCEL: a request to cancel will be attempted for each child execution by recording a WorkflowExecutionCancelRequested event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.
ABANDON: no action will be taken. The child executions will continue to run.
tagList (list) --
The list of tags associated with the new workflow execution.
(string) --
workflowType (dict) --
Represents a workflow type.
name (string) --
Required. The name of the workflow type.
version (string) --
Required. The version of the workflow type.
lambdaRole (string) --
The IAM role attached to this workflow execution to use when invoking AWS Lambda functions.
continueAsNewWorkflowExecutionFailedEventAttributes (dict) --
If the event is of type ContinueAsNewWorkflowExecutionFailed then this member is set and provides detailed information about the event. It is not set for other event types.
cause (string) --
The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.
decisionTaskCompletedEventId (integer) --
The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the ContinueAsNewWorkflowExecution decision that started this execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
workflowExecutionTerminatedEventAttributes (dict) --
If the event is of type WorkflowExecutionTerminated then this member is set and provides detailed information about the event. It is not set for other event types.
reason (string) --
The reason provided for the termination (if any).
details (string) --
The details provided for the termination (if any).
childPolicy (string) --
The policy used for the child workflow executions of this workflow execution.
The supported child policies are:
TERMINATE: the child executions will be terminated.
REQUEST_CANCEL: a request to cancel will be attempted for each child execution by recording a WorkflowExecutionCancelRequested event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.
ABANDON: no action will be taken. The child executions will continue to run.
cause (string) --
If set, indicates that the workflow execution was automatically terminated, and specifies the cause. This happens if the parent workflow execution times out or is terminated and the child policy is set to terminate child executions.
workflowExecutionCancelRequestedEventAttributes (dict) --
If the event is of type WorkflowExecutionCancelRequested then this member is set and provides detailed information about the event. It is not set for other event types.
externalWorkflowExecution (dict) --
The external workflow execution for which the cancellation was requested.
workflowId (string) --
The user defined identifier associated with the workflow execution.
runId (string) --
A system-generated unique identifier for the workflow execution.
externalInitiatedEventId (integer) --
The ID of the RequestCancelExternalWorkflowExecutionInitiated event corresponding to the RequestCancelExternalWorkflowExecution decision to cancel this workflow execution.The source event with this ID can be found in the history of the source workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
cause (string) --
If set, indicates that the request to cancel the workflow execution was automatically generated, and specifies the cause. This happens if the parent workflow execution times out or is terminated, and the child policy is set to cancel child executions.
decisionTaskScheduledEventAttributes (dict) --
If the event is of type DecisionTaskScheduled then this member is set and provides detailed information about the event. It is not set for other event types.
taskList (dict) --
The name of the task list in which the decision task was scheduled.
name (string) --
The name of the task list.
taskPriority (string) --
Optional. A task priority that, if set, specifies the priority for this decision task. Valid values are integers that range from Java's Integer.MIN_VALUE (-2147483648) to Integer.MAX_VALUE (2147483647). Higher numbers indicate higher priority.
For more information about setting task priority, see Setting Task Priority in the Amazon Simple Workflow Developer Guide.
startToCloseTimeout (string) --
The maximum duration for this decision task. The task is considered timed out if it does not completed within this duration.
The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.
decisionTaskStartedEventAttributes (dict) --
If the event is of type DecisionTaskStarted then this member is set and provides detailed information about the event. It is not set for other event types.
identity (string) --
Identity of the decider making the request. This enables diagnostic tracing when problems arise. The form of this identity is user defined.
scheduledEventId (integer) --
The ID of the DecisionTaskScheduled event that was recorded when this decision task was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
decisionTaskCompletedEventAttributes (dict) --
If the event is of type DecisionTaskCompleted then this member is set and provides detailed information about the event. It is not set for other event types.
executionContext (string) --
User defined context for the workflow execution.
scheduledEventId (integer) --
The ID of the DecisionTaskScheduled event that was recorded when this decision task was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
startedEventId (integer) --
The ID of the DecisionTaskStarted event recorded when this decision task was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
decisionTaskTimedOutEventAttributes (dict) --
If the event is of type DecisionTaskTimedOut then this member is set and provides detailed information about the event. It is not set for other event types.
timeoutType (string) --
The type of timeout that expired before the decision task could be completed.
scheduledEventId (integer) --
The ID of the DecisionTaskScheduled event that was recorded when this decision task was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
startedEventId (integer) --
The ID of the DecisionTaskStarted event recorded when this decision task was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
activityTaskScheduledEventAttributes (dict) --
If the event is of type ActivityTaskScheduled then this member is set and provides detailed information about the event. It is not set for other event types.
activityType (dict) --
The type of the activity task.
name (string) --
The name of this activity.
version (string) --
The version of this activity.
activityId (string) --
The unique ID of the activity task.
input (string) --
The input provided to the activity task.
control (string) --
Optional. Data attached to the event that can be used by the decider in subsequent workflow tasks. This data is not sent to the activity.
scheduleToStartTimeout (string) --
The maximum amount of time the activity task can wait to be assigned to a worker.
scheduleToCloseTimeout (string) --
The maximum amount of time for this activity task.
startToCloseTimeout (string) --
The maximum amount of time a worker may take to process the activity task.
taskList (dict) --
The task list in which the activity task has been scheduled.
name (string) --
The name of the task list.
taskPriority (string) --
Optional. The priority to assign to the scheduled activity task. If set, this will override any default priority value that was assigned when the activity type was registered.
Valid values are integers that range from Java's Integer.MIN_VALUE (-2147483648) to Integer.MAX_VALUE (2147483647). Higher numbers indicate higher priority.
For more information about setting task priority, see Setting Task Priority in the Amazon Simple Workflow Developer Guide.
decisionTaskCompletedEventId (integer) --
The ID of the DecisionTaskCompleted event corresponding to the decision that resulted in the scheduling of this activity task. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
heartbeatTimeout (string) --
The maximum time before which the worker processing this task must report progress by calling RecordActivityTaskHeartbeat. If the timeout is exceeded, the activity task is automatically timed out. If the worker subsequently attempts to record a heartbeat or return a result, it will be ignored.
activityTaskStartedEventAttributes (dict) --
If the event is of type ActivityTaskStarted then this member is set and provides detailed information about the event. It is not set for other event types.
identity (string) --
Identity of the worker that was assigned this task. This aids diagnostics when problems arise. The form of this identity is user defined.
scheduledEventId (integer) --
The ID of the ActivityTaskScheduled event that was recorded when this activity task was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
activityTaskCompletedEventAttributes (dict) --
If the event is of type ActivityTaskCompleted then this member is set and provides detailed information about the event. It is not set for other event types.
result (string) --
The results of the activity task (if any).
scheduledEventId (integer) --
The ID of the ActivityTaskScheduled event that was recorded when this activity task was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
startedEventId (integer) --
The ID of the ActivityTaskStarted event recorded when this activity task was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
activityTaskFailedEventAttributes (dict) --
If the event is of type ActivityTaskFailed then this member is set and provides detailed information about the event. It is not set for other event types.
reason (string) --
The reason provided for the failure (if any).
details (string) --
The details of the failure (if any).
scheduledEventId (integer) --
The ID of the ActivityTaskScheduled event that was recorded when this activity task was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
startedEventId (integer) --
The ID of the ActivityTaskStarted event recorded when this activity task was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
activityTaskTimedOutEventAttributes (dict) --
If the event is of type ActivityTaskTimedOut then this member is set and provides detailed information about the event. It is not set for other event types.
timeoutType (string) --
The type of the timeout that caused this event.
scheduledEventId (integer) --
The ID of the ActivityTaskScheduled event that was recorded when this activity task was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
startedEventId (integer) --
The ID of the ActivityTaskStarted event recorded when this activity task was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
details (string) --
Contains the content of the details parameter for the last call made by the activity to RecordActivityTaskHeartbeat.
activityTaskCanceledEventAttributes (dict) --
If the event is of type ActivityTaskCanceled then this member is set and provides detailed information about the event. It is not set for other event types.
details (string) --
Details of the cancellation (if any).
scheduledEventId (integer) --
The ID of the ActivityTaskScheduled event that was recorded when this activity task was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
startedEventId (integer) --
The ID of the ActivityTaskStarted event recorded when this activity task was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
latestCancelRequestedEventId (integer) --
If set, contains the ID of the last ActivityTaskCancelRequested event recorded for this activity task. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
activityTaskCancelRequestedEventAttributes (dict) --
If the event is of type ActivityTaskcancelRequested then this member is set and provides detailed information about the event. It is not set for other event types.
decisionTaskCompletedEventId (integer) --
The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the RequestCancelActivityTask decision for this cancellation request. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
activityId (string) --
The unique ID of the task.
workflowExecutionSignaledEventAttributes (dict) --
If the event is of type WorkflowExecutionSignaled then this member is set and provides detailed information about the event. It is not set for other event types.
signalName (string) --
The name of the signal received. The decider can use the signal name and inputs to determine how to the process the signal.
input (string) --
Inputs provided with the signal (if any). The decider can use the signal name and inputs to determine how to process the signal.
externalWorkflowExecution (dict) --
The workflow execution that sent the signal. This is set only of the signal was sent by another workflow execution.
workflowId (string) --
The user defined identifier associated with the workflow execution.
runId (string) --
A system-generated unique identifier for the workflow execution.
externalInitiatedEventId (integer) --
The ID of the SignalExternalWorkflowExecutionInitiated event corresponding to the SignalExternalWorkflow decision to signal this workflow execution.The source event with this ID can be found in the history of the source workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event. This field is set only if the signal was initiated by another workflow execution.
markerRecordedEventAttributes (dict) --
If the event is of type MarkerRecorded then this member is set and provides detailed information about the event. It is not set for other event types.
markerName (string) --
The name of the marker.
details (string) --
Details of the marker (if any).
decisionTaskCompletedEventId (integer) --
The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the RecordMarker decision that requested this marker. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
recordMarkerFailedEventAttributes (dict) --
If the event is of type DecisionTaskFailed then this member is set and provides detailed information about the event. It is not set for other event types.
markerName (string) --
The marker's name.
cause (string) --
The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.
decisionTaskCompletedEventId (integer) --
The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the RecordMarkerFailed decision for this cancellation request. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
timerStartedEventAttributes (dict) --
If the event is of type TimerStarted then this member is set and provides detailed information about the event. It is not set for other event types.
timerId (string) --
The unique ID of the timer that was started.
control (string) --
Optional. Data attached to the event that can be used by the decider in subsequent workflow tasks.
startToFireTimeout (string) --
The duration of time after which the timer will fire.
The duration is specified in seconds; an integer greater than or equal to 0.
decisionTaskCompletedEventId (integer) --
The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the StartTimer decision for this activity task. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
timerFiredEventAttributes (dict) --
If the event is of type TimerFired then this member is set and provides detailed information about the event. It is not set for other event types.
timerId (string) --
The unique ID of the timer that fired.
startedEventId (integer) --
The ID of the TimerStarted event that was recorded when this timer was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
timerCanceledEventAttributes (dict) --
If the event is of type TimerCanceled then this member is set and provides detailed information about the event. It is not set for other event types.
timerId (string) --
The unique ID of the timer that was canceled.
startedEventId (integer) --
The ID of the TimerStarted event that was recorded when this timer was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
decisionTaskCompletedEventId (integer) --
The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the CancelTimer decision to cancel this timer. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
startChildWorkflowExecutionInitiatedEventAttributes (dict) --
If the event is of type StartChildWorkflowExecutionInitiated then this member is set and provides detailed information about the event. It is not set for other event types.
workflowId (string) --
The workflowId of the child workflow execution.
workflowType (dict) --
The type of the child workflow execution.
name (string) --
Required. The name of the workflow type.
version (string) --
Required. The version of the workflow type.
control (string) --
Optional. Data attached to the event that can be used by the decider in subsequent decision tasks. This data is not sent to the activity.
input (string) --
The inputs provided to the child workflow execution (if any).
executionStartToCloseTimeout (string) --
The maximum duration for the child workflow execution. If the workflow execution is not closed within this duration, it will be timed out and force terminated.
The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.
taskList (dict) --
The name of the task list used for the decision tasks of the child workflow execution.
name (string) --
The name of the task list.
taskPriority (string) --
Optional. The priority assigned for the decision tasks for this workflow execution. Valid values are integers that range from Java's Integer.MIN_VALUE (-2147483648) to Integer.MAX_VALUE (2147483647). Higher numbers indicate higher priority.
For more information about setting task priority, see Setting Task Priority in the Amazon Simple Workflow Developer Guide.
decisionTaskCompletedEventId (integer) --
The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the StartChildWorkflowExecution decision to request this child workflow execution. This information can be useful for diagnosing problems by tracing back the cause of events.
childPolicy (string) --
The policy to use for the child workflow executions if this execution gets terminated by explicitly calling the TerminateWorkflowExecution action or due to an expired timeout.
The supported child policies are:
TERMINATE: the child executions will be terminated.
REQUEST_CANCEL: a request to cancel will be attempted for each child execution by recording a WorkflowExecutionCancelRequested event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.
ABANDON: no action will be taken. The child executions will continue to run.
taskStartToCloseTimeout (string) --
The maximum duration allowed for the decision tasks for this workflow execution.
The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.
tagList (list) --
The list of tags to associated with the child workflow execution.
(string) --
lambdaRole (string) --
The IAM role attached to this workflow execution to use when invoking AWS Lambda functions.
childWorkflowExecutionStartedEventAttributes (dict) --
If the event is of type ChildWorkflowExecutionStarted then this member is set and provides detailed information about the event. It is not set for other event types.
workflowExecution (dict) --
The child workflow execution that was started.
workflowId (string) --
The user defined identifier associated with the workflow execution.
runId (string) --
A system-generated unique identifier for the workflow execution.
workflowType (dict) --
The type of the child workflow execution.
name (string) --
Required. The name of the workflow type.
version (string) --
Required. The version of the workflow type.
initiatedEventId (integer) --
The ID of the StartChildWorkflowExecutionInitiated event corresponding to the StartChildWorkflowExecution decision to start this child workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
childWorkflowExecutionCompletedEventAttributes (dict) --
If the event is of type ChildWorkflowExecutionCompleted then this member is set and provides detailed information about the event. It is not set for other event types.
workflowExecution (dict) --
The child workflow execution that was completed.
workflowId (string) --
The user defined identifier associated with the workflow execution.
runId (string) --
A system-generated unique identifier for the workflow execution.
workflowType (dict) --
The type of the child workflow execution.
name (string) --
Required. The name of the workflow type.
version (string) --
Required. The version of the workflow type.
result (string) --
The result of the child workflow execution (if any).
initiatedEventId (integer) --
The ID of the StartChildWorkflowExecutionInitiated event corresponding to the StartChildWorkflowExecution decision to start this child workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
startedEventId (integer) --
The ID of the ChildWorkflowExecutionStarted event recorded when this child workflow execution was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
childWorkflowExecutionFailedEventAttributes (dict) --
If the event is of type ChildWorkflowExecutionFailed then this member is set and provides detailed information about the event. It is not set for other event types.
workflowExecution (dict) --
The child workflow execution that failed.
workflowId (string) --
The user defined identifier associated with the workflow execution.
runId (string) --
A system-generated unique identifier for the workflow execution.
workflowType (dict) --
The type of the child workflow execution.
name (string) --
Required. The name of the workflow type.
version (string) --
Required. The version of the workflow type.
reason (string) --
The reason for the failure (if provided).
details (string) --
The details of the failure (if provided).
initiatedEventId (integer) --
The ID of the StartChildWorkflowExecutionInitiated event corresponding to the StartChildWorkflowExecution decision to start this child workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
startedEventId (integer) --
The ID of the ChildWorkflowExecutionStarted event recorded when this child workflow execution was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
childWorkflowExecutionTimedOutEventAttributes (dict) --
If the event is of type ChildWorkflowExecutionTimedOut then this member is set and provides detailed information about the event. It is not set for other event types.
workflowExecution (dict) --
The child workflow execution that timed out.
workflowId (string) --
The user defined identifier associated with the workflow execution.
runId (string) --
A system-generated unique identifier for the workflow execution.
workflowType (dict) --
The type of the child workflow execution.
name (string) --
Required. The name of the workflow type.
version (string) --
Required. The version of the workflow type.
timeoutType (string) --
The type of the timeout that caused the child workflow execution to time out.
initiatedEventId (integer) --
The ID of the StartChildWorkflowExecutionInitiated event corresponding to the StartChildWorkflowExecution decision to start this child workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
startedEventId (integer) --
The ID of the ChildWorkflowExecutionStarted event recorded when this child workflow execution was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
childWorkflowExecutionCanceledEventAttributes (dict) --
If the event is of type ChildWorkflowExecutionCanceled then this member is set and provides detailed information about the event. It is not set for other event types.
workflowExecution (dict) --
The child workflow execution that was canceled.
workflowId (string) --
The user defined identifier associated with the workflow execution.
runId (string) --
A system-generated unique identifier for the workflow execution.
workflowType (dict) --
The type of the child workflow execution.
name (string) --
Required. The name of the workflow type.
version (string) --
Required. The version of the workflow type.
details (string) --
Details of the cancellation (if provided).
initiatedEventId (integer) --
The ID of the StartChildWorkflowExecutionInitiated event corresponding to the StartChildWorkflowExecution decision to start this child workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
startedEventId (integer) --
The ID of the ChildWorkflowExecutionStarted event recorded when this child workflow execution was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
childWorkflowExecutionTerminatedEventAttributes (dict) --
If the event is of type ChildWorkflowExecutionTerminated then this member is set and provides detailed information about the event. It is not set for other event types.
workflowExecution (dict) --
The child workflow execution that was terminated.
workflowId (string) --
The user defined identifier associated with the workflow execution.
runId (string) --
A system-generated unique identifier for the workflow execution.
workflowType (dict) --
The type of the child workflow execution.
name (string) --
Required. The name of the workflow type.
version (string) --
Required. The version of the workflow type.
initiatedEventId (integer) --
The ID of the StartChildWorkflowExecutionInitiated event corresponding to the StartChildWorkflowExecution decision to start this child workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
startedEventId (integer) --
The ID of the ChildWorkflowExecutionStarted event recorded when this child workflow execution was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
signalExternalWorkflowExecutionInitiatedEventAttributes (dict) --
If the event is of type SignalExternalWorkflowExecutionInitiated then this member is set and provides detailed information about the event. It is not set for other event types.
workflowId (string) --
The workflowId of the external workflow execution.
runId (string) --
The runId of the external workflow execution to send the signal to.
signalName (string) --
The name of the signal.
input (string) --
Input provided to the signal (if any).
decisionTaskCompletedEventId (integer) --
The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the SignalExternalWorkflowExecution decision for this signal. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
control (string) --
Optional. data attached to the event that can be used by the decider in subsequent decision tasks.
externalWorkflowExecutionSignaledEventAttributes (dict) --
If the event is of type ExternalWorkflowExecutionSignaled then this member is set and provides detailed information about the event. It is not set for other event types.
workflowExecution (dict) --
The external workflow execution that the signal was delivered to.
workflowId (string) --
The user defined identifier associated with the workflow execution.
runId (string) --
A system-generated unique identifier for the workflow execution.
initiatedEventId (integer) --
The ID of the SignalExternalWorkflowExecutionInitiated event corresponding to the SignalExternalWorkflowExecution decision to request this signal. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
signalExternalWorkflowExecutionFailedEventAttributes (dict) --
If the event is of type SignalExternalWorkflowExecutionFailed then this member is set and provides detailed information about the event. It is not set for other event types.
workflowId (string) --
The workflowId of the external workflow execution that the signal was being delivered to.
runId (string) --
The runId of the external workflow execution that the signal was being delivered to.
cause (string) --
The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.
initiatedEventId (integer) --
The ID of the SignalExternalWorkflowExecutionInitiated event corresponding to the SignalExternalWorkflowExecution decision to request this signal. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
decisionTaskCompletedEventId (integer) --
The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the SignalExternalWorkflowExecution decision for this signal. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
control (string) --
externalWorkflowExecutionCancelRequestedEventAttributes (dict) --
If the event is of type ExternalWorkflowExecutionCancelRequested then this member is set and provides detailed information about the event. It is not set for other event types.
workflowExecution (dict) --
The external workflow execution to which the cancellation request was delivered.
workflowId (string) --
The user defined identifier associated with the workflow execution.
runId (string) --
A system-generated unique identifier for the workflow execution.
initiatedEventId (integer) --
The ID of the RequestCancelExternalWorkflowExecutionInitiated event corresponding to the RequestCancelExternalWorkflowExecution decision to cancel this external workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
requestCancelExternalWorkflowExecutionInitiatedEventAttributes (dict) --
If the event is of type RequestCancelExternalWorkflowExecutionInitiated then this member is set and provides detailed information about the event. It is not set for other event types.
workflowId (string) --
The workflowId of the external workflow execution to be canceled.
runId (string) --
The runId of the external workflow execution to be canceled.
decisionTaskCompletedEventId (integer) --
The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the RequestCancelExternalWorkflowExecution decision for this cancellation request. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
control (string) --
Optional. Data attached to the event that can be used by the decider in subsequent workflow tasks.
requestCancelExternalWorkflowExecutionFailedEventAttributes (dict) --
If the event is of type RequestCancelExternalWorkflowExecutionFailed then this member is set and provides detailed information about the event. It is not set for other event types.
workflowId (string) --
The workflowId of the external workflow to which the cancel request was to be delivered.
runId (string) --
The runId of the external workflow execution.
cause (string) --
The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.
initiatedEventId (integer) --
The ID of the RequestCancelExternalWorkflowExecutionInitiated event corresponding to the RequestCancelExternalWorkflowExecution decision to cancel this external workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
decisionTaskCompletedEventId (integer) --
The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the RequestCancelExternalWorkflowExecution decision for this cancellation request. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
control (string) --
scheduleActivityTaskFailedEventAttributes (dict) --
If the event is of type ScheduleActivityTaskFailed then this member is set and provides detailed information about the event. It is not set for other event types.
activityType (dict) --
The activity type provided in the ScheduleActivityTask decision that failed.
name (string) --
The name of this activity.
version (string) --
The version of this activity.
activityId (string) --
The activityId provided in the ScheduleActivityTask decision that failed.
cause (string) --
The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.
decisionTaskCompletedEventId (integer) --
The ID of the DecisionTaskCompleted event corresponding to the decision that resulted in the scheduling of this activity task. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
requestCancelActivityTaskFailedEventAttributes (dict) --
If the event is of type RequestCancelActivityTaskFailed then this member is set and provides detailed information about the event. It is not set for other event types.
activityId (string) --
The activityId provided in the RequestCancelActivityTask decision that failed.
cause (string) --
The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.
decisionTaskCompletedEventId (integer) --
The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the RequestCancelActivityTask decision for this cancellation request. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
startTimerFailedEventAttributes (dict) --
If the event is of type StartTimerFailed then this member is set and provides detailed information about the event. It is not set for other event types.
timerId (string) --
The timerId provided in the StartTimer decision that failed.
cause (string) --
The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.
decisionTaskCompletedEventId (integer) --
The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the StartTimer decision for this activity task. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
cancelTimerFailedEventAttributes (dict) --
If the event is of type CancelTimerFailed then this member is set and provides detailed information about the event. It is not set for other event types.
timerId (string) --
The timerId provided in the CancelTimer decision that failed.
cause (string) --
The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.
decisionTaskCompletedEventId (integer) --
The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the CancelTimer decision to cancel this timer. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
startChildWorkflowExecutionFailedEventAttributes (dict) --
If the event is of type StartChildWorkflowExecutionFailed then this member is set and provides detailed information about the event. It is not set for other event types.
workflowType (dict) --
The workflow type provided in the StartChildWorkflowExecution decision that failed.
name (string) --
Required. The name of the workflow type.
version (string) --
Required. The version of the workflow type.
cause (string) --
The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.
workflowId (string) --
The workflowId of the child workflow execution.
initiatedEventId (integer) --
The ID of the StartChildWorkflowExecutionInitiated event corresponding to the StartChildWorkflowExecution decision to start this child workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
decisionTaskCompletedEventId (integer) --
The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the StartChildWorkflowExecution decision to request this child workflow execution. This information can be useful for diagnosing problems by tracing back the cause of events.
control (string) --
lambdaFunctionScheduledEventAttributes (dict) --
Provides details for the LambdaFunctionScheduled event.
id (string) --
The unique Amazon SWF ID for the AWS Lambda task.
name (string) --
The name of the scheduled AWS Lambda function.
input (string) --
Input provided to the AWS Lambda function.
startToCloseTimeout (string) --
The maximum time, in seconds, that the AWS Lambda function can take to execute from start to close before it is marked as failed.
decisionTaskCompletedEventId (integer) --
The ID of the DecisionTaskCompleted event for the decision that resulted in the scheduling of this AWS Lambda function. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
lambdaFunctionStartedEventAttributes (dict) --
Provides details for the LambdaFunctionStarted event.
scheduledEventId (integer) --
The ID of the LambdaFunctionScheduled event that was recorded when this AWS Lambda function was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
lambdaFunctionCompletedEventAttributes (dict) --
Provides details for the LambdaFunctionCompleted event.
scheduledEventId (integer) --
The ID of the LambdaFunctionScheduled event that was recorded when this AWS Lambda function was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
startedEventId (integer) --
The ID of the LambdaFunctionStarted event recorded in the history.
result (string) --
The result of the function execution (if any).
lambdaFunctionFailedEventAttributes (dict) --
Provides details for the LambdaFunctionFailed event.
scheduledEventId (integer) --
The ID of the LambdaFunctionScheduled event that was recorded when this AWS Lambda function was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
startedEventId (integer) --
The ID of the LambdaFunctionStarted event recorded in the history.
reason (string) --
The reason provided for the failure (if any).
details (string) --
The details of the failure (if any).
lambdaFunctionTimedOutEventAttributes (dict) --
Provides details for the LambdaFunctionTimedOut event.
scheduledEventId (integer) --
The ID of the LambdaFunctionScheduled event that was recorded when this AWS Lambda function was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
startedEventId (integer) --
The ID of the LambdaFunctionStarted event recorded in the history.
timeoutType (string) --
The type of the timeout that caused this event.
scheduleLambdaFunctionFailedEventAttributes (dict) --
Provides details for the ScheduleLambdaFunctionFailed event.
id (string) --
The unique Amazon SWF ID of the AWS Lambda task.
name (string) --
The name of the scheduled AWS Lambda function.
cause (string) --
The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.
decisionTaskCompletedEventId (integer) --
The ID of the DecisionTaskCompleted event corresponding to the decision that resulted in the scheduling of this AWS Lambda function. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
startLambdaFunctionFailedEventAttributes (dict) --
Provides details for the StartLambdaFunctionFailed event.
scheduledEventId (integer) --
The ID of the LambdaFunctionScheduled event that was recorded when this AWS Lambda function was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
cause (string) --
The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.
message (string) --
The error message (if any).
nextPageToken (string) --
If a NextPageToken was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in nextPageToken. Keep all other arguments unchanged.
The configured maximumPageSize determines how many results can be returned in a single call.
previousStartedEventId (integer) --
The ID of the DecisionTaskStarted event of the previous decision task of this workflow execution that was processed by the decider. This can be used to determine the events in the history new since the last decision task received by the decider.
{'defaultLambdaRole': 'string'}
Registers a new workflow type and its configuration settings in the specified domain.
The retention period for the workflow history is set by the RegisterDomain action.
Access Control
You can use IAM policies to control this action's access to Amazon SWF resources as follows:
Use a Resource element with the domain name to limit the action to only specified domains.
Use an Action element to allow or deny permission to call this action.
Constrain the following parameters by using a Condition element with the appropriate keys.
defaultTaskList.name: String constraint. The key is swf:defaultTaskList.name.
name: String constraint. The key is swf:name.
version: String constraint. The key is swf:version.
If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.
Request Syntax
client.register_workflow_type( domain='string', name='string', version='string', description='string', defaultTaskStartToCloseTimeout='string', defaultExecutionStartToCloseTimeout='string', defaultTaskList={ 'name': 'string' }, defaultTaskPriority='string', defaultChildPolicy='TERMINATE'|'REQUEST_CANCEL'|'ABANDON', defaultLambdaRole='string' )
string
[REQUIRED]
The name of the domain in which to register the workflow type.
string
[REQUIRED]
The name of the workflow type.
The specified string must not start or end with whitespace. It must not contain a : (colon), / (slash), | (vertical bar), or any control characters (u0000-u001f | u007f - u009f). Also, it must not contain the literal string quotarnquot.
string
[REQUIRED]
The version of the workflow type.
The specified string must not start or end with whitespace. It must not contain a : (colon), / (slash), | (vertical bar), or any control characters (u0000-u001f | u007f - u009f). Also, it must not contain the literal string quotarnquot.
string
Textual description of the workflow type.
string
If set, specifies the default maximum duration of decision tasks for this workflow type. This default can be overridden when starting a workflow execution using the StartWorkflowExecution action or the StartChildWorkflowExecution decision.
The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.
string
If set, specifies the default maximum duration for executions of this workflow type. You can override this default when starting an execution through the StartWorkflowExecution action or StartChildWorkflowExecution decision.
The duration is specified in seconds; an integer greater than or equal to 0. Unlike some of the other timeout parameters in Amazon SWF, you cannot specify a value of "NONE" for defaultExecutionStartToCloseTimeout; there is a one-year max limit on the time that a workflow execution can run. Exceeding this limit will always cause the workflow execution to time out.
dict
If set, specifies the default task list to use for scheduling decision tasks for executions of this workflow type. This default is used only if a task list is not provided when starting the execution through the StartWorkflowExecution action or StartChildWorkflowExecution decision.
name (string) -- [REQUIRED]
The name of the task list.
string
The default task priority to assign to the workflow type. If not assigned, then "0" will be used. Valid values are integers that range from Java's Integer.MIN_VALUE (-2147483648) to Integer.MAX_VALUE (2147483647). Higher numbers indicate higher priority.
For more information about setting task priority, see Setting Task Priority in the Amazon Simple Workflow Developer Guide.
string
If set, specifies the default policy to use for the child workflow executions when a workflow execution of this type is terminated, by calling the TerminateWorkflowExecution action explicitly or due to an expired timeout. This default can be overridden when starting a workflow execution using the StartWorkflowExecution action or the StartChildWorkflowExecution decision.
The supported child policies are:
TERMINATE: the child executions will be terminated.
REQUEST_CANCEL: a request to cancel will be attempted for each child execution by recording a WorkflowExecutionCancelRequested event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.
ABANDON: no action will be taken. The child executions will continue to run.
string
The ARN of the default IAM role to use when a workflow execution of this type invokes AWS Lambda functions.
This default can be overridden when starting a workflow execution using the StartWorkflowExecution action or the StartChildWorkflowExecution and ContinueAsNewWorkflowExecution decision.
None
{'decisions': {'continueAsNewWorkflowExecutionDecisionAttributes': {'lambdaRole': 'string'}, 'decisionType': {'ScheduleLambdaFunction'}, 'scheduleLambdaFunctionDecisionAttributes': {'id': 'string', 'input': 'string', 'name': 'string', 'startToCloseTimeout': 'string'}, 'startChildWorkflowExecutionDecisionAttributes': {'lambdaRole': 'string'}}}
Used by deciders to tell the service that the DecisionTask identified by the taskToken has successfully completed. The decisions argument specifies the list of decisions made while processing the task.
A DecisionTaskCompleted event is added to the workflow history. The executionContext specified is attached to the event in the workflow execution history.
Access Control
If an IAM policy grants permission to use RespondDecisionTaskCompleted, it can express permissions for the list of decisions in the decisions parameter. Each of the decisions has one or more parameters, much like a regular API call. To allow for policies to be as readable as possible, you can express permissions on decisions as if they were actual API calls, including applying conditions to some parameters. For more information, see Using IAM to Manage Access to Amazon SWF Workflows.
Request Syntax
client.respond_decision_task_completed( taskToken='string', decisions=[ { 'decisionType': 'ScheduleActivityTask'|'RequestCancelActivityTask'|'CompleteWorkflowExecution'|'FailWorkflowExecution'|'CancelWorkflowExecution'|'ContinueAsNewWorkflowExecution'|'RecordMarker'|'StartTimer'|'CancelTimer'|'SignalExternalWorkflowExecution'|'RequestCancelExternalWorkflowExecution'|'StartChildWorkflowExecution'|'ScheduleLambdaFunction', 'scheduleActivityTaskDecisionAttributes': { 'activityType': { 'name': 'string', 'version': 'string' }, 'activityId': 'string', 'control': 'string', 'input': 'string', 'scheduleToCloseTimeout': 'string', 'taskList': { 'name': 'string' }, 'taskPriority': 'string', 'scheduleToStartTimeout': 'string', 'startToCloseTimeout': 'string', 'heartbeatTimeout': 'string' }, 'requestCancelActivityTaskDecisionAttributes': { 'activityId': 'string' }, 'completeWorkflowExecutionDecisionAttributes': { 'result': 'string' }, 'failWorkflowExecutionDecisionAttributes': { 'reason': 'string', 'details': 'string' }, 'cancelWorkflowExecutionDecisionAttributes': { 'details': 'string' }, 'continueAsNewWorkflowExecutionDecisionAttributes': { 'input': 'string', 'executionStartToCloseTimeout': 'string', 'taskList': { 'name': 'string' }, 'taskPriority': 'string', 'taskStartToCloseTimeout': 'string', 'childPolicy': 'TERMINATE'|'REQUEST_CANCEL'|'ABANDON', 'tagList': [ 'string', ], 'workflowTypeVersion': 'string', 'lambdaRole': 'string' }, 'recordMarkerDecisionAttributes': { 'markerName': 'string', 'details': 'string' }, 'startTimerDecisionAttributes': { 'timerId': 'string', 'control': 'string', 'startToFireTimeout': 'string' }, 'cancelTimerDecisionAttributes': { 'timerId': 'string' }, 'signalExternalWorkflowExecutionDecisionAttributes': { 'workflowId': 'string', 'runId': 'string', 'signalName': 'string', 'input': 'string', 'control': 'string' }, 'requestCancelExternalWorkflowExecutionDecisionAttributes': { 'workflowId': 'string', 'runId': 'string', 'control': 'string' }, 'startChildWorkflowExecutionDecisionAttributes': { 'workflowType': { 'name': 'string', 'version': 'string' }, 'workflowId': 'string', 'control': 'string', 'input': 'string', 'executionStartToCloseTimeout': 'string', 'taskList': { 'name': 'string' }, 'taskPriority': 'string', 'taskStartToCloseTimeout': 'string', 'childPolicy': 'TERMINATE'|'REQUEST_CANCEL'|'ABANDON', 'tagList': [ 'string', ], 'lambdaRole': 'string' }, 'scheduleLambdaFunctionDecisionAttributes': { 'id': 'string', 'name': 'string', 'input': 'string', 'startToCloseTimeout': 'string' } }, ], executionContext='string' )
string
[REQUIRED]
The taskToken from the DecisionTask.
list
The list of decisions (possibly empty) made by the decider while processing this decision task. See the docs for the decision structure for details.
(dict) --
Specifies a decision made by the decider. A decision can be one of these types:
CancelTimer: cancels a previously started timer and records a TimerCanceled event in the history.
CancelWorkflowExecution: closes the workflow execution and records a WorkflowExecutionCanceled event in the history.
CompleteWorkflowExecution: closes the workflow execution and records a WorkflowExecutionCompleted event in the history .
ContinueAsNewWorkflowExecution: closes the workflow execution and starts a new workflow execution of the same type using the same workflow ID and a unique run ID. A WorkflowExecutionContinuedAsNew event is recorded in the history.
FailWorkflowExecution: closes the workflow execution and records a WorkflowExecutionFailed event in the history.
RecordMarker: records a MarkerRecorded event in the history. Markers can be used for adding custom information in the history for instance to let deciders know that they do not need to look at the history beyond the marker event.
RequestCancelActivityTask: attempts to cancel a previously scheduled activity task. If the activity task was scheduled but has not been assigned to a worker, then it will be canceled. If the activity task was already assigned to a worker, then the worker will be informed that cancellation has been requested in the response to RecordActivityTaskHeartbeat.
RequestCancelExternalWorkflowExecution: requests that a request be made to cancel the specified external workflow execution and records a RequestCancelExternalWorkflowExecutionInitiated event in the history.
ScheduleActivityTask: schedules an activity task.
ScheduleLambdaFunction: schedules a AWS Lambda function.
SignalExternalWorkflowExecution: requests a signal to be delivered to the specified external workflow execution and records a SignalExternalWorkflowExecutionInitiated event in the history.
StartChildWorkflowExecution: requests that a child workflow execution be started and records a StartChildWorkflowExecutionInitiated event in the history. The child workflow execution is a separate workflow execution with its own history.
StartTimer: starts a timer for this workflow execution and records a TimerStarted event in the history. This timer will fire after the specified delay and record a TimerFired event.
Access Control
If you grant permission to use RespondDecisionTaskCompleted, you can use IAM policies to express permissions for the list of decisions returned by this action as if they were members of the API. Treating decisions as a pseudo API maintains a uniform conceptual model and helps keep policies readable. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.
Decision Failure
Decisions can fail for several reasons
The ordering of decisions should follow a logical flow. Some decisions might not make sense in the current context of the workflow execution and will therefore fail.
A limit on your account was reached.
The decision lacks sufficient permissions.
One of the following events might be added to the history to indicate an error. The event attribute's cause parameter indicates the cause. If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it lacked sufficient permissions. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.
ScheduleActivityTaskFailed: a ScheduleActivityTask decision failed. This could happen if the activity type specified in the decision is not registered, is in a deprecated state, or the decision is not properly configured.
ScheduleLambdaFunctionFailed: a ScheduleLambdaFunctionFailed decision failed. This could happen if the AWS Lambda function specified in the decision does not exist, or the AWS Lambda service's limits are exceeded.
RequestCancelActivityTaskFailed: a RequestCancelActivityTask decision failed. This could happen if there is no open activity task with the specified activityId.
StartTimerFailed: a StartTimer decision failed. This could happen if there is another open timer with the same timerId.
CancelTimerFailed: a CancelTimer decision failed. This could happen if there is no open timer with the specified timerId.
StartChildWorkflowExecutionFailed: a StartChildWorkflowExecution decision failed. This could happen if the workflow type specified is not registered, is deprecated, or the decision is not properly configured.
SignalExternalWorkflowExecutionFailed: a SignalExternalWorkflowExecution decision failed. This could happen if the workflowID specified in the decision was incorrect.
RequestCancelExternalWorkflowExecutionFailed: a RequestCancelExternalWorkflowExecution decision failed. This could happen if the workflowID specified in the decision was incorrect.
CancelWorkflowExecutionFailed: a CancelWorkflowExecution decision failed. This could happen if there is an unhandled decision task pending in the workflow execution.
CompleteWorkflowExecutionFailed: a CompleteWorkflowExecution decision failed. This could happen if there is an unhandled decision task pending in the workflow execution.
ContinueAsNewWorkflowExecutionFailed: a ContinueAsNewWorkflowExecution decision failed. This could happen if there is an unhandled decision task pending in the workflow execution or the ContinueAsNewWorkflowExecution decision was not configured correctly.
FailWorkflowExecutionFailed: a FailWorkflowExecution decision failed. This could happen if there is an unhandled decision task pending in the workflow execution.
The preceding error events might occur due to an error in the decider logic, which might put the workflow execution in an unstable state The cause field in the event structure for the error event indicates the cause of the error.
How to code a decision
You code a decision by first setting the decision type field to one of the above decision values, and then set the corresponding attributes field shown below:
ScheduleActivityTaskDecisionAttributes
ScheduleLambdaFunctionDecisionAttributes
RequestCancelActivityTaskDecisionAttributes
CompleteWorkflowExecutionDecisionAttributes
FailWorkflowExecutionDecisionAttributes
CancelWorkflowExecutionDecisionAttributes
ContinueAsNewWorkflowExecutionDecisionAttributes
RecordMarkerDecisionAttributes
StartTimerDecisionAttributes
CancelTimerDecisionAttributes
SignalExternalWorkflowExecutionDecisionAttributes
RequestCancelExternalWorkflowExecutionDecisionAttributes
StartChildWorkflowExecutionDecisionAttributes
decisionType (string) -- [REQUIRED]
Specifies the type of the decision.
scheduleActivityTaskDecisionAttributes (dict) --
Provides details of the ScheduleActivityTask decision. It is not set for other decision types.
activityType (dict) -- [REQUIRED]
Required. The type of the activity task to schedule.
name (string) -- [REQUIRED]
The name of this activity.
version (string) -- [REQUIRED]
The version of this activity.
activityId (string) -- [REQUIRED]
Required. The activityId of the activity task.
The specified string must not start or end with whitespace. It must not contain a : (colon), / (slash), | (vertical bar), or any control characters (u0000-u001f | u007f - u009f). Also, it must not contain the literal string quotarnquot.
control (string) --
Optional. Data attached to the event that can be used by the decider in subsequent workflow tasks. This data is not sent to the activity.
input (string) --
The input provided to the activity task.
scheduleToCloseTimeout (string) --
The maximum duration for this activity task.
The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.
taskList (dict) --
If set, specifies the name of the task list in which to schedule the activity task. If not specified, the defaultTaskList registered with the activity type will be used.
The specified string must not start or end with whitespace. It must not contain a : (colon), / (slash), | (vertical bar), or any control characters (u0000-u001f | u007f - u009f). Also, it must not contain the literal string quotarnquot.
name (string) -- [REQUIRED]
The name of the task list.
taskPriority (string) --
Optional. If set, specifies the priority with which the activity task is to be assigned to a worker. This overrides the defaultTaskPriority specified when registering the activity type using RegisterActivityType. Valid values are integers that range from Java's Integer.MIN_VALUE (-2147483648) to Integer.MAX_VALUE (2147483647). Higher numbers indicate higher priority.
For more information about setting task priority, see Setting Task Priority in the Amazon Simple Workflow Developer Guide.
scheduleToStartTimeout (string) --
Optional. If set, specifies the maximum duration the activity task can wait to be assigned to a worker. This overrides the default schedule-to-start timeout specified when registering the activity type using RegisterActivityType.
The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.
startToCloseTimeout (string) --
If set, specifies the maximum duration a worker may take to process this activity task. This overrides the default start-to-close timeout specified when registering the activity type using RegisterActivityType.
The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.
heartbeatTimeout (string) --
If set, specifies the maximum time before which a worker processing a task of this type must report progress by calling RecordActivityTaskHeartbeat. If the timeout is exceeded, the activity task is automatically timed out. If the worker subsequently attempts to record a heartbeat or returns a result, it will be ignored. This overrides the default heartbeat timeout specified when registering the activity type using RegisterActivityType.
The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.
requestCancelActivityTaskDecisionAttributes (dict) --
Provides details of the RequestCancelActivityTask decision. It is not set for other decision types.
activityId (string) -- [REQUIRED]
The activityId of the activity task to be canceled.
completeWorkflowExecutionDecisionAttributes (dict) --
Provides details of the CompleteWorkflowExecution decision. It is not set for other decision types.
result (string) --
The result of the workflow execution. The form of the result is implementation defined.
failWorkflowExecutionDecisionAttributes (dict) --
Provides details of the FailWorkflowExecution decision. It is not set for other decision types.
reason (string) --
A descriptive reason for the failure that may help in diagnostics.
details (string) --
Optional. Details of the failure.
cancelWorkflowExecutionDecisionAttributes (dict) --
Provides details of the CancelWorkflowExecution decision. It is not set for other decision types.
details (string) --
Optional. details of the cancellation.
continueAsNewWorkflowExecutionDecisionAttributes (dict) --
Provides details of the ContinueAsNewWorkflowExecution decision. It is not set for other decision types.
input (string) --
The input provided to the new workflow execution.
executionStartToCloseTimeout (string) --
If set, specifies the total duration for this workflow execution. This overrides the defaultExecutionStartToCloseTimeout specified when registering the workflow type.
The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.
taskList (dict) --
Represents a task list.
name (string) -- [REQUIRED]
The name of the task list.
taskPriority (string) --
Optional. The task priority that, if set, specifies the priority for the decision tasks for this workflow execution. This overrides the defaultTaskPriority specified when registering the workflow type. Valid values are integers that range from Java's Integer.MIN_VALUE (-2147483648) to Integer.MAX_VALUE (2147483647). Higher numbers indicate higher priority.
For more information about setting task priority, see Setting Task Priority in the Amazon Simple Workflow Developer Guide.
taskStartToCloseTimeout (string) --
Specifies the maximum duration of decision tasks for the new workflow execution. This parameter overrides the defaultTaskStartToCloseTimout specified when registering the workflow type using RegisterWorkflowType.
The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.
childPolicy (string) --
If set, specifies the policy to use for the child workflow executions of the new execution if it is terminated by calling the TerminateWorkflowExecution action explicitly or due to an expired timeout. This policy overrides the default child policy specified when registering the workflow type using RegisterWorkflowType.
The supported child policies are:
TERMINATE: the child executions will be terminated.
REQUEST_CANCEL: a request to cancel will be attempted for each child execution by recording a WorkflowExecutionCancelRequested event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.
ABANDON: no action will be taken. The child executions will continue to run.
tagList (list) --
The list of tags to associate with the new workflow execution. A maximum of 5 tags can be specified. You can list workflow executions with a specific tag by calling ListOpenWorkflowExecutions or ListClosedWorkflowExecutions and specifying a TagFilter.
(string) --
workflowTypeVersion (string) --
lambdaRole (string) --
The ARN of an IAM role that authorizes Amazon SWF to invoke AWS Lambda functions.
recordMarkerDecisionAttributes (dict) --
Provides details of the RecordMarker decision. It is not set for other decision types.
markerName (string) -- [REQUIRED]
Required. The name of the marker.
details (string) --
Optional. details of the marker.
startTimerDecisionAttributes (dict) --
Provides details of the StartTimer decision. It is not set for other decision types.
timerId (string) -- [REQUIRED]
Required. The unique ID of the timer.
The specified string must not start or end with whitespace. It must not contain a : (colon), / (slash), | (vertical bar), or any control characters (u0000-u001f | u007f - u009f). Also, it must not contain the literal string quotarnquot.
control (string) --
Optional. Data attached to the event that can be used by the decider in subsequent workflow tasks.
startToFireTimeout (string) -- [REQUIRED]
Required. The duration to wait before firing the timer.
The duration is specified in seconds; an integer greater than or equal to 0.
cancelTimerDecisionAttributes (dict) --
Provides details of the CancelTimer decision. It is not set for other decision types.
timerId (string) -- [REQUIRED]
Required. The unique ID of the timer to cancel.
signalExternalWorkflowExecutionDecisionAttributes (dict) --
Provides details of the SignalExternalWorkflowExecution decision. It is not set for other decision types.
workflowId (string) -- [REQUIRED]
Required. The workflowId of the workflow execution to be signaled.
runId (string) --
The runId of the workflow execution to be signaled.
signalName (string) -- [REQUIRED]
Required. The name of the signal.The target workflow execution will use the signal name and input to process the signal.
input (string) --
Optional. Input data to be provided with the signal. The target workflow execution will use the signal name and input data to process the signal.
control (string) --
Optional. Data attached to the event that can be used by the decider in subsequent decision tasks.
requestCancelExternalWorkflowExecutionDecisionAttributes (dict) --
Provides details of the RequestCancelExternalWorkflowExecution decision. It is not set for other decision types.
workflowId (string) -- [REQUIRED]
Required. The workflowId of the external workflow execution to cancel.
runId (string) --
The runId of the external workflow execution to cancel.
control (string) --
Optional. Data attached to the event that can be used by the decider in subsequent workflow tasks.
startChildWorkflowExecutionDecisionAttributes (dict) --
Provides details of the StartChildWorkflowExecution decision. It is not set for other decision types.
workflowType (dict) -- [REQUIRED]
Required. The type of the workflow execution to be started.
name (string) -- [REQUIRED]
Required. The name of the workflow type.
version (string) -- [REQUIRED]
Required. The version of the workflow type.
workflowId (string) -- [REQUIRED]
Required. The workflowId of the workflow execution.
The specified string must not start or end with whitespace. It must not contain a : (colon), / (slash), | (vertical bar), or any control characters (u0000-u001f | u007f - u009f). Also, it must not contain the literal string quotarnquot.
control (string) --
Optional. Data attached to the event that can be used by the decider in subsequent workflow tasks. This data is not sent to the child workflow execution.
input (string) --
The input to be provided to the workflow execution.
executionStartToCloseTimeout (string) --
The total duration for this workflow execution. This overrides the defaultExecutionStartToCloseTimeout specified when registering the workflow type.
The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.
taskList (dict) --
The name of the task list to be used for decision tasks of the child workflow execution.
The specified string must not start or end with whitespace. It must not contain a : (colon), / (slash), | (vertical bar), or any control characters (u0000-u001f | u007f - u009f). Also, it must not contain the literal string quotarnquot.
name (string) -- [REQUIRED]
The name of the task list.
taskPriority (string) --
Optional. A task priority that, if set, specifies the priority for a decision task of this workflow execution. This overrides the defaultTaskPriority specified when registering the workflow type. Valid values are integers that range from Java's Integer.MIN_VALUE (-2147483648) to Integer.MAX_VALUE (2147483647). Higher numbers indicate higher priority.
For more information about setting task priority, see Setting Task Priority in the Amazon Simple Workflow Developer Guide.
taskStartToCloseTimeout (string) --
Specifies the maximum duration of decision tasks for this workflow execution. This parameter overrides the defaultTaskStartToCloseTimout specified when registering the workflow type using RegisterWorkflowType.
The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.
childPolicy (string) --
Optional. If set, specifies the policy to use for the child workflow executions if the workflow execution being started is terminated by calling the TerminateWorkflowExecution action explicitly or due to an expired timeout. This policy overrides the default child policy specified when registering the workflow type using RegisterWorkflowType.
The supported child policies are:
TERMINATE: the child executions will be terminated.
REQUEST_CANCEL: a request to cancel will be attempted for each child execution by recording a WorkflowExecutionCancelRequested event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.
ABANDON: no action will be taken. The child executions will continue to run.
tagList (list) --
The list of tags to associate with the child workflow execution. A maximum of 5 tags can be specified. You can list workflow executions with a specific tag by calling ListOpenWorkflowExecutions or ListClosedWorkflowExecutions and specifying a TagFilter.
(string) --
lambdaRole (string) --
The ARN of an IAM role that authorizes Amazon SWF to invoke AWS Lambda functions.
scheduleLambdaFunctionDecisionAttributes (dict) --
Provides details of the ScheduleLambdaFunction decision.
Access Control
You can use IAM policies to control this decision's access to Amazon SWF resources as follows:
Use a Resource element with the domain name to limit the action to only specified domains.
Use an Action element to allow or deny permission to call this action.
Constrain the following parameters by using a Condition element with the appropriate keys.
activityType.name: String constraint. The key is swf:activityType.name.
activityType.version: String constraint. The key is swf:activityType.version.
taskList: String constraint. The key is swf:taskList.name.
If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.
id (string) -- [REQUIRED]
Required. The SWF id of the AWS Lambda task.
The specified string must not start or end with whitespace. It must not contain a : (colon), / (slash), | (vertical bar), or any control characters (u0000-u001f | u007f - u009f). Also, it must not contain the literal string quotarnquot.
name (string) -- [REQUIRED]
Required. The name of the AWS Lambda function to invoke.
input (string) --
The input provided to the AWS Lambda function.
startToCloseTimeout (string) --
If set, specifies the maximum duration the function may take to execute.
string
User defined context to add to workflow execution.
None
{'lambdaRole': 'string'}
Starts an execution of the workflow type in the specified domain using the provided workflowId and input data.
This action returns the newly started workflow execution.
Access Control
You can use IAM policies to control this action's access to Amazon SWF resources as follows:
Use a Resource element with the domain name to limit the action to only specified domains.
Use an Action element to allow or deny permission to call this action.
Constrain the following parameters by using a Condition element with the appropriate keys.
tagList.member.0: The key is swf:tagList.member.0.
tagList.member.1: The key is swf:tagList.member.1.
tagList.member.2: The key is swf:tagList.member.2.
tagList.member.3: The key is swf:tagList.member.3.
tagList.member.4: The key is swf:tagList.member.4.
taskList: String constraint. The key is swf:taskList.name.
workflowType.name: String constraint. The key is swf:workflowType.name.
workflowType.version: String constraint. The key is swf:workflowType.version.
If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.
Request Syntax
client.start_workflow_execution( domain='string', workflowId='string', workflowType={ 'name': 'string', 'version': 'string' }, taskList={ 'name': 'string' }, taskPriority='string', input='string', executionStartToCloseTimeout='string', tagList=[ 'string', ], taskStartToCloseTimeout='string', childPolicy='TERMINATE'|'REQUEST_CANCEL'|'ABANDON', lambdaRole='string' )
string
[REQUIRED]
The name of the domain in which the workflow execution is created.
string
[REQUIRED]
The user defined identifier associated with the workflow execution. You can use this to associate a custom identifier with the workflow execution. You may specify the same identifier if a workflow execution is logically a restart of a previous execution. You cannot have two open workflow executions with the same workflowId at the same time.
The specified string must not start or end with whitespace. It must not contain a : (colon), / (slash), | (vertical bar), or any control characters (u0000-u001f | u007f - u009f). Also, it must not contain the literal string quotarnquot.
dict
[REQUIRED]
The type of the workflow to start.
name (string) -- [REQUIRED]
Required. The name of the workflow type.
version (string) -- [REQUIRED]
Required. The version of the workflow type.
dict
The task list to use for the decision tasks generated for this workflow execution. This overrides the defaultTaskList specified when registering the workflow type.
The specified string must not start or end with whitespace. It must not contain a : (colon), / (slash), | (vertical bar), or any control characters (u0000-u001f | u007f - u009f). Also, it must not contain the literal string quotarnquot.
name (string) -- [REQUIRED]
The name of the task list.
string
The task priority to use for this workflow execution. This will override any default priority that was assigned when the workflow type was registered. If not set, then the default task priority for the workflow type will be used. Valid values are integers that range from Java's Integer.MIN_VALUE (-2147483648) to Integer.MAX_VALUE (2147483647). Higher numbers indicate higher priority.
For more information about setting task priority, see Setting Task Priority in the Amazon Simple Workflow Developer Guide.
string
The input for the workflow execution. This is a free form string which should be meaningful to the workflow you are starting. This input is made available to the new workflow execution in the WorkflowExecutionStarted history event.
string
The total duration for this workflow execution. This overrides the defaultExecutionStartToCloseTimeout specified when registering the workflow type.
The duration is specified in seconds; an integer greater than or equal to 0. Exceeding this limit will cause the workflow execution to time out. Unlike some of the other timeout parameters in Amazon SWF, you cannot specify a value of "NONE" for this timeout; there is a one-year max limit on the time that a workflow execution can run.
list
The list of tags to associate with the workflow execution. You can specify a maximum of 5 tags. You can list workflow executions with a specific tag by calling ListOpenWorkflowExecutions or ListClosedWorkflowExecutions and specifying a TagFilter.
(string) --
string
Specifies the maximum duration of decision tasks for this workflow execution. This parameter overrides the defaultTaskStartToCloseTimout specified when registering the workflow type using RegisterWorkflowType.
The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.
string
If set, specifies the policy to use for the child workflow executions of this workflow execution if it is terminated, by calling the TerminateWorkflowExecution action explicitly or due to an expired timeout. This policy overrides the default child policy specified when registering the workflow type using RegisterWorkflowType.
The supported child policies are:
TERMINATE: the child executions will be terminated.
REQUEST_CANCEL: a request to cancel will be attempted for each child execution by recording a WorkflowExecutionCancelRequested event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.
ABANDON: no action will be taken. The child executions will continue to run.
string
The ARN of an IAM role that authorizes Amazon SWF to invoke AWS Lambda functions.
dict
Response Syntax
{ 'runId': 'string' }
Response Structure
(dict) --
Specifies the runId of a workflow execution.
runId (string) --
The runId of a workflow execution. This ID is generated by the service and can be used to uniquely identify the workflow execution within a domain.