Table of Contents
A low-level client representing Amazon Simple Workflow Service (SWF):
import boto3
client = boto3.client('swf')
These are the available methods:
Check if an operation can be paginated.
Returns the number of closed workflow executions within the given domain that meet the specified filtering criteria.
Note
This operation is eventually consistent. The results are best effort and may not exactly reflect recent updates and changes.
Access Control
You can use IAM policies to control this action's access to Amazon SWF resources as follows:
If the caller doesn't 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 is set to OPERATION_NOT_PERMITTED . For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer Guide .
See also: AWS API Documentation
Request Syntax
response = client.count_closed_workflow_executions(
domain='string',
startTimeFilter={
'oldestDate': datetime(2015, 1, 1),
'latestDate': datetime(2015, 1, 1)
},
closeTimeFilter={
'oldestDate': datetime(2015, 1, 1),
'latestDate': datetime(2015, 1, 1)
},
executionFilter={
'workflowId': 'string'
},
typeFilter={
'name': 'string',
'version': 'string'
},
tagFilter={
'tag': 'string'
},
closeStatusFilter={
'status': 'COMPLETED'|'FAILED'|'CANCELED'|'TERMINATED'|'CONTINUED_AS_NEW'|'TIMED_OUT'
}
)
[REQUIRED]
The name of the domain containing the workflow executions to count.
If specified, only workflow executions that meet the start time criteria of the filter are counted.
Note
startTimeFilter and closeTimeFilter are mutually exclusive. You must specify one of these in a request but not both.
Specifies the oldest start or close date and time to return.
Specifies the latest start or close date and time to return.
If specified, only workflow executions that meet the close time criteria of the filter are counted.
Note
startTimeFilter and closeTimeFilter are mutually exclusive. You must specify one of these in a request but not both.
Specifies the oldest start or close date and time to return.
Specifies the latest start or close date and time to return.
If specified, only workflow executions matching the WorkflowId in the filter are counted.
Note
closeStatusFilter , executionFilter , typeFilter and tagFilter are mutually exclusive. You can specify at most one of these in a request.
The workflowId to pass of match the criteria of this filter.
If specified, indicates the type of the workflow executions to be counted.
Note
closeStatusFilter , executionFilter , typeFilter and tagFilter are mutually exclusive. You can specify at most one of these in a request.
Name of the workflow type.
Version of the workflow type.
If specified, only executions that have a tag that matches the filter are counted.
Note
closeStatusFilter , executionFilter , typeFilter and tagFilter are mutually exclusive. You can specify at most one of these in a request.
Specifies the tag that must be associated with the execution for it to meet the filter criteria.
Tags may only contain unicode letters, digits, whitespace, or these symbols: _ . : / = + - @ .
If specified, only workflow executions that match this close status are counted. This filter has an affect only if executionStatus is specified as CLOSED .
Note
closeStatusFilter , executionFilter , typeFilter and tagFilter are mutually exclusive. You can specify at most one of these in a request.
The close status that must match the close status of an execution for it to meet the criteria of this filter.
dict
Response Syntax
{
'count': 123,
'truncated': True|False
}
Response Structure
(dict) --
Contains the count of workflow executions returned from CountOpenWorkflowExecutions or CountClosedWorkflowExecutions
count (integer) --
The number of workflow executions.
truncated (boolean) --
If set to true, indicates that the actual count was more than the maximum supported by this API and the count returned is the truncated value.
Exceptions
Returns the number of open workflow executions within the given domain that meet the specified filtering criteria.
Note
This operation is eventually consistent. The results are best effort and may not exactly reflect recent updates and changes.
Access Control
You can use IAM policies to control this action's access to Amazon SWF resources as follows:
If the caller doesn't 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 is set to OPERATION_NOT_PERMITTED . For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer Guide .
See also: AWS API Documentation
Request Syntax
response = client.count_open_workflow_executions(
domain='string',
startTimeFilter={
'oldestDate': datetime(2015, 1, 1),
'latestDate': datetime(2015, 1, 1)
},
typeFilter={
'name': 'string',
'version': 'string'
},
tagFilter={
'tag': 'string'
},
executionFilter={
'workflowId': 'string'
}
)
[REQUIRED]
The name of the domain containing the workflow executions to count.
[REQUIRED]
Specifies the start time criteria that workflow executions must meet in order to be counted.
Specifies the oldest start or close date and time to return.
Specifies the latest start or close date and time to return.
Specifies the type of the workflow executions to be counted.
Note
executionFilter , typeFilter and tagFilter are mutually exclusive. You can specify at most one of these in a request.
Name of the workflow type.
Version of the workflow type.
If specified, only executions that have a tag that matches the filter are counted.
Note
executionFilter , typeFilter and tagFilter are mutually exclusive. You can specify at most one of these in a request.
Specifies the tag that must be associated with the execution for it to meet the filter criteria.
Tags may only contain unicode letters, digits, whitespace, or these symbols: _ . : / = + - @ .
If specified, only workflow executions matching the WorkflowId in the filter are counted.
Note
executionFilter , typeFilter and tagFilter are mutually exclusive. You can specify at most one of these in a request.
The workflowId to pass of match the criteria of this filter.
dict
Response Syntax
{
'count': 123,
'truncated': True|False
}
Response Structure
(dict) --
Contains the count of workflow executions returned from CountOpenWorkflowExecutions or CountClosedWorkflowExecutions
count (integer) --
The number of workflow executions.
truncated (boolean) --
If set to true, indicates that the actual count was more than the maximum supported by this API and the count returned is the truncated value.
Exceptions
Returns the estimated number of activity tasks in the specified task list. The count returned is an approximation and isn't guaranteed to be exact. If you specify a task list that no activity task was ever scheduled in then 0 is returned.
Access Control
You can use IAM policies to control this action's access to Amazon SWF resources as follows:
If the caller doesn't 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 is set to OPERATION_NOT_PERMITTED . For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer Guide .
See also: AWS API Documentation
Request Syntax
response = client.count_pending_activity_tasks(
domain='string',
taskList={
'name': 'string'
}
)
[REQUIRED]
The name of the domain that contains the task list.
[REQUIRED]
The name of the task list.
The name of the task list.
dict
Response Syntax
{
'count': 123,
'truncated': True|False
}
Response Structure
(dict) --
Contains the count of tasks in a task list.
count (integer) --
The number of tasks in the task list.
truncated (boolean) --
If set to true, indicates that the actual count was more than the maximum supported by this API and the count returned is the truncated value.
Exceptions
Returns the estimated number of decision tasks in the specified task list. The count returned is an approximation and isn't guaranteed to be exact. If you specify a task list that no decision task was ever scheduled in then 0 is returned.
Access Control
You can use IAM policies to control this action's access to Amazon SWF resources as follows:
If the caller doesn't 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 is set to OPERATION_NOT_PERMITTED . For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer Guide .
See also: AWS API Documentation
Request Syntax
response = client.count_pending_decision_tasks(
domain='string',
taskList={
'name': 'string'
}
)
[REQUIRED]
The name of the domain that contains the task list.
[REQUIRED]
The name of the task list.
The name of the task list.
dict
Response Syntax
{
'count': 123,
'truncated': True|False
}
Response Structure
(dict) --
Contains the count of tasks in a task list.
count (integer) --
The number of tasks in the task list.
truncated (boolean) --
If set to true, indicates that the actual count was more than the maximum supported by this API and the count returned is the truncated value.
Exceptions
Deprecates the specified activity type . After an activity type has been deprecated, you cannot create new tasks of that activity type. Tasks of this type that were scheduled before the type was deprecated continue to run.
Note
This operation is eventually consistent. The results are best effort and may not exactly reflect recent updates and changes.
Access Control
You can use IAM policies to control this action's access to Amazon SWF resources as follows:
If the caller doesn't 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 is set to OPERATION_NOT_PERMITTED . For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer Guide .
See also: AWS API Documentation
Request Syntax
response = client.deprecate_activity_type(
domain='string',
activityType={
'name': 'string',
'version': 'string'
}
)
[REQUIRED]
The name of the domain in which the activity type is registered.
[REQUIRED]
The activity type to deprecate.
The name of this activity.
Note
The combination of activity type name and version must be unique within a domain.
The version of this activity.
Note
The combination of activity type name and version must be unique with in a domain.
None
Exceptions
Deprecates the specified domain. After a domain has been deprecated it cannot be used to create new workflow executions or register new types. However, you can still use visibility actions on this domain. Deprecating a domain also deprecates all activity and workflow types registered in the domain. Executions that were started before the domain was deprecated continues to run.
Note
This operation is eventually consistent. The results are best effort and may not exactly reflect recent updates and changes.
Access Control
You can use IAM policies to control this action's access to Amazon SWF resources as follows:
If the caller doesn't 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 is set to OPERATION_NOT_PERMITTED . For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer Guide .
See also: AWS API Documentation
Request Syntax
response = client.deprecate_domain(
name='string'
)
[REQUIRED]
The name of the domain to deprecate.
Exceptions
Deprecates the specified workflow type . After a workflow type has been deprecated, you cannot create new executions of that type. Executions that were started before the type was deprecated continues to run. A deprecated workflow type may still be used when calling visibility actions.
Note
This operation is eventually consistent. The results are best effort and may not exactly reflect recent updates and changes.
Access Control
You can use IAM policies to control this action's access to Amazon SWF resources as follows:
If the caller doesn't 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 is set to OPERATION_NOT_PERMITTED . For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer Guide .
See also: AWS API Documentation
Request Syntax
response = client.deprecate_workflow_type(
domain='string',
workflowType={
'name': 'string',
'version': 'string'
}
)
[REQUIRED]
The name of the domain in which the workflow type is registered.
[REQUIRED]
The workflow type to deprecate.
The name of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
The version of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
None
Exceptions
Returns information about the specified activity type. This includes configuration settings provided when the type was registered and other general information about the type.
Access Control
You can use IAM policies to control this action's access to Amazon SWF resources as follows:
If the caller doesn't 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 is set to OPERATION_NOT_PERMITTED . For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer Guide .
See also: AWS API Documentation
Request Syntax
response = client.describe_activity_type(
domain='string',
activityType={
'name': 'string',
'version': 'string'
}
)
[REQUIRED]
The name of the domain in which the activity type is registered.
[REQUIRED]
The activity type to get information about. Activity types are identified by the name and version that were supplied when the activity was registered.
The name of this activity.
Note
The combination of activity type name and version must be unique within a domain.
The version of this activity.
Note
The combination of activity type name and version must be unique with in a domain.
dict
Response Syntax
{
'typeInfo': {
'activityType': {
'name': 'string',
'version': 'string'
},
'status': 'REGISTERED'|'DEPRECATED',
'description': 'string',
'creationDate': datetime(2015, 1, 1),
'deprecationDate': datetime(2015, 1, 1)
},
'configuration': {
'defaultTaskStartToCloseTimeout': 'string',
'defaultTaskHeartbeatTimeout': 'string',
'defaultTaskList': {
'name': 'string'
},
'defaultTaskPriority': 'string',
'defaultTaskScheduleToStartTimeout': 'string',
'defaultTaskScheduleToCloseTimeout': 'string'
}
}
Response Structure
(dict) --
Detailed information about an activity type.
typeInfo (dict) --
General information about the activity type.
The status of activity type (returned in the ActivityTypeInfo structure) can be one of the following.
activityType (dict) --
The ActivityType type structure representing the activity type.
name (string) --
The name of this activity.
Note
The combination of activity type name and version must be unique within a domain.
version (string) --
The version of this activity.
Note
The combination of activity type name and version must be unique with in a domain.
status (string) --
The current status of the activity type.
description (string) --
The description of the activity type provided in RegisterActivityType .
creationDate (datetime) --
The date and time this activity type was created through RegisterActivityType .
deprecationDate (datetime) --
If DEPRECATED, the date and time DeprecateActivityType was called.
configuration (dict) --
The configuration settings registered with the activity type.
defaultTaskStartToCloseTimeout (string) --
The default maximum duration for tasks of an activity type specified when registering the activity type. You can override this default when scheduling a task through the ScheduleActivityTask Decision .
The duration is specified in seconds, an integer greater than or equal to 0 . You can use NONE to specify unlimited duration.
defaultTaskHeartbeatTimeout (string) --
The default maximum time, in seconds, before which a worker processing a task must report progress by calling RecordActivityTaskHeartbeat .
You can specify this value only when registering an activity type. The registered default value can be overridden when you schedule a task through the ScheduleActivityTask Decision . If the activity worker subsequently attempts to record a heartbeat or returns a result, the activity worker receives an UnknownResource fault. In this case, Amazon SWF no longer considers the activity task to be valid; the activity worker should clean up the activity task.
The duration is specified in seconds, an integer greater than or equal to 0 . You can use NONE to specify unlimited duration.
defaultTaskList (dict) --
The default task list specified for this activity type at registration. This default is used if a task list isn't provided when a task is scheduled through the ScheduleActivityTask Decision . You can override the default registered task list when scheduling a task through the ScheduleActivityTask Decision .
name (string) --
The name of the task list.
defaultTaskPriority (string) --
The default task priority for tasks of this activity type, specified at registration. If not set, then 0 is used as the default priority. This default can be overridden when scheduling an activity 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 SWF Developer Guide .
defaultTaskScheduleToStartTimeout (string) --
The default maximum duration, specified when registering the activity type, that a task of an activity type can wait before being assigned to a worker. You can override this default when scheduling a task through the ScheduleActivityTask Decision .
The duration is specified in seconds, an integer greater than or equal to 0 . You can use NONE to specify unlimited duration.
defaultTaskScheduleToCloseTimeout (string) --
The default maximum duration, specified when registering the activity type, for tasks of this activity type. You can override this default when scheduling a task through the ScheduleActivityTask Decision .
The duration is specified in seconds, an integer greater than or equal to 0 . You can use NONE to specify unlimited duration.
Exceptions
Returns information about the specified domain, including description and status.
Access Control
You can use IAM policies to control this action's access to Amazon SWF resources as follows:
If the caller doesn't 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 is set to OPERATION_NOT_PERMITTED . For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer Guide .
See also: AWS API Documentation
Request Syntax
response = client.describe_domain(
name='string'
)
[REQUIRED]
The name of the domain to describe.
{
'domainInfo': {
'name': 'string',
'status': 'REGISTERED'|'DEPRECATED',
'description': 'string',
'arn': 'string'
},
'configuration': {
'workflowExecutionRetentionPeriodInDays': 'string'
}
}
Response Structure
Contains details of a domain.
The basic information about a domain, such as its name, status, and description.
The name of the domain. This name is unique within the account.
The status of the domain:
The description of the domain provided through RegisterDomain .
The ARN of the domain.
The domain configuration. Currently, this includes only the domain's retention period.
The retention period for workflow executions in this domain.
Exceptions
Returns information about the specified workflow execution including its type and some statistics.
Note
This operation is eventually consistent. The results are best effort and may not exactly reflect recent updates and changes.
Access Control
You can use IAM policies to control this action's access to Amazon SWF resources as follows:
If the caller doesn't 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 is set to OPERATION_NOT_PERMITTED . For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer Guide .
See also: AWS API Documentation
Request Syntax
response = client.describe_workflow_execution(
domain='string',
execution={
'workflowId': 'string',
'runId': 'string'
}
)
[REQUIRED]
The name of the domain containing the workflow execution.
[REQUIRED]
The workflow execution to describe.
The user defined identifier associated with the workflow execution.
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) --
The name of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
version (string) --
The version of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
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:
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.
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 . You can use NONE 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 . You can use NONE 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 SWF 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:
lambdaRole (string) --
The IAM role attached to the child workflow execution.
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 Lambda tasks whose status is OPEN .
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 .
Exceptions
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, etc.
Access Control
You can use IAM policies to control this action's access to Amazon SWF resources as follows:
If the caller doesn't 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 is set to OPERATION_NOT_PERMITTED . For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer Guide .
See also: AWS API Documentation
Request Syntax
response = client.describe_workflow_type(
domain='string',
workflowType={
'name': 'string',
'version': 'string'
}
)
[REQUIRED]
The name of the domain in which this workflow type is registered.
[REQUIRED]
The workflow type to describe.
The name of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
The version of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
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.
workflowType (dict) --
The workflow type this information is about.
name (string) --
The name of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
version (string) --
The version of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
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) --
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 doesn'tdo 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 . You can use NONE to specify unlimited duration.
defaultExecutionStartToCloseTimeout (string) --
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 . You can use NONE to specify unlimited duration.
defaultTaskList (dict) --
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) --
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 SWF Developer Guide .
defaultChildPolicy (string) --
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:
defaultLambdaRole (string) --
The default IAM role attached to this workflow type.
Note
Executions of this workflow type need IAM roles to invoke Lambda functions. If you don't specify an IAM role when starting this workflow type, the default Lambda role is attached to the execution. For more information, see https://docs.aws.amazon.com/amazonswf/latest/developerguide/lambda-task.html in the Amazon SWF Developer Guide .
Exceptions
Generate a presigned url given a client, its method, and arguments
The presigned url
Create a paginator for an operation.
Returns an object that can wait for some condition.
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.
Note
This operation is eventually consistent. The results are best effort and may not exactly reflect recent updates and changes.
Access Control
You can use IAM policies to control this action's access to Amazon SWF resources as follows:
If the caller doesn't 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 is set to OPERATION_NOT_PERMITTED . For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer Guide .
See also: AWS API Documentation
Request Syntax
response = client.get_workflow_execution_history(
domain='string',
execution={
'workflowId': 'string',
'runId': 'string'
},
nextPageToken='string',
maximumPageSize=123,
reverseOrder=True|False
)
[REQUIRED]
The name of the domain containing the workflow execution.
[REQUIRED]
Specifies the workflow execution for which to return the history.
The user defined identifier associated with the workflow execution.
A system-generated unique identifier for the workflow execution.
If NextPageToken is returned there are more results available. The value of NextPageToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 60 seconds. Using an expired pagination token will return a 400 error: "Specified token has exceeded its maximum lifetime ".
The configured maximumPageSize determines how many results can be returned in a single call.
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'
},
'taskPriority': 'string',
'workflowType': {
'name': 'string',
'version': 'string'
},
'tagList': [
'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',
'control': '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:
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 isn't set for other event types.
input (string) --
The input provided to the workflow execution.
executionStartToCloseTimeout (string) --
The maximum duration for this workflow execution.
The duration is specified in seconds, an integer greater than or equal to 0 . You can use NONE 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 . You can use NONE 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:
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.
taskPriority (string) --
The priority of the decision tasks in the workflow execution.
workflowType (dict) --
The workflow type of this execution.
name (string) --
The name of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
version (string) --
The version of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
tagList (list) --
The list of tags associated with this workflow execution. An execution can have up to 5 tags.
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 isn't 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 the workflow execution.
workflowExecutionCompletedEventAttributes (dict) --
If the event is of type WorkflowExecutionCompleted then this member is set and provides detailed information about the event. It isn't 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 isn't 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.
Note
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 in the Amazon SWF Developer Guide .
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 isn't set for other event types.
reason (string) --
The descriptive reason provided for the failure.
details (string) --
The details of the failure.
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 isn't 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.
Note
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 in the Amazon SWF Developer Guide .
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 isn't 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:
workflowExecutionCanceledEventAttributes (dict) --
If the event is of type WorkflowExecutionCanceled then this member is set and provides detailed information about the event. It isn't set for other event types.
details (string) --
The details of the cancellation.
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 isn't 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.
Note
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 in the Amazon SWF Developer Guide .
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 isn't 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 . You can use NONE to specify unlimited duration.
taskList (dict) --
The task list to use for the decisions of the new (continued) workflow execution.
name (string) --
The name of the task list.
taskPriority (string) --
The priority of the task to use for the decisions of the new (continued) workflow execution.
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 . You can use NONE 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:
tagList (list) --
The list of tags associated with the new workflow execution.
workflowType (dict) --
The workflow type of this execution.
name (string) --
The name of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
version (string) --
The version of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
lambdaRole (string) --
The IAM role to attach to the new (continued) workflow execution.
continueAsNewWorkflowExecutionFailedEventAttributes (dict) --
If the event is of type ContinueAsNewWorkflowExecutionFailed then this member is set and provides detailed information about the event. It isn't 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.
Note
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 in the Amazon SWF Developer Guide .
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 isn't set for other event types.
reason (string) --
The reason provided for the termination.
details (string) --
The details provided for the termination.
childPolicy (string) --
The policy used for the child workflow executions of this workflow execution.
The supported child policies are:
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 isn't 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 isn't 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) --
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 SWF Developer Guide .
startToCloseTimeout (string) --
The maximum duration for this decision task. The task is considered timed out if it doesn't completed within this duration.
The duration is specified in seconds, an integer greater than or equal to 0 . You can use NONE 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 isn't 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 isn't 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 isn't 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 isn't set for other event types.
activityType (dict) --
The type of the activity task.
name (string) --
The name of this activity.
Note
The combination of activity type name and version must be unique within a domain.
version (string) --
The version of this activity.
Note
The combination of activity type name and version must be unique with in a domain.
activityId (string) --
The unique ID of the activity task.
input (string) --
The input provided to the activity task.
control (string) --
Data attached to the event that can be used by the decider in subsequent workflow tasks. This data isn't 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) --
The priority to assign to the scheduled activity task. If set, this overrides 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 SWF 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 is ignored.
activityTaskStartedEventAttributes (dict) --
If the event is of type ActivityTaskStarted then this member is set and provides detailed information about the event. It isn't 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 isn't set for other event types.
result (string) --
The results of the activity task.
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 isn't set for other event types.
reason (string) --
The reason provided for the failure.
details (string) --
The details of the failure.
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 isn't 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 isn't set for other event types.
details (string) --
Details of the cancellation.
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 isn't 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 isn't 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) --
The inputs provided with the signal. 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 isn't set for other event types.
markerName (string) --
The name of the marker.
details (string) --
The details of the marker.
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 isn't 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.
Note
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 in the Amazon SWF Developer Guide .
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 isn't set for other event types.
timerId (string) --
The unique ID of the timer that was started.
control (string) --
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 fires.
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 isn't 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 isn't 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 isn't 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) --
The name of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
version (string) --
The version of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
control (string) --
Data attached to the event that can be used by the decider in subsequent decision tasks. This data isn't sent to the activity.
input (string) --
The inputs provided to the child workflow execution.
executionStartToCloseTimeout (string) --
The maximum duration for the child workflow execution. If the workflow execution isn't closed within this duration, it is timed out and force-terminated.
The duration is specified in seconds, an integer greater than or equal to 0 . You can use NONE 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) --
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 SWF 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:
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 . You can use NONE to specify unlimited duration.
tagList (list) --
The list of tags to associated with the child workflow execution.
lambdaRole (string) --
The IAM role to attach to the child workflow execution.
childWorkflowExecutionStartedEventAttributes (dict) --
If the event is of type ChildWorkflowExecutionStarted then this member is set and provides detailed information about the event. It isn't 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) --
The name of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
version (string) --
The version of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
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 isn't 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) --
The name of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
version (string) --
The version of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
result (string) --
The result 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.
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 isn't 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) --
The name of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
version (string) --
The version of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
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 isn't 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) --
The name of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
version (string) --
The version of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
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 isn't 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) --
The name of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
version (string) --
The version of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
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 isn't 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) --
The name of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
version (string) --
The version of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
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 isn't 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) --
The input provided to the signal.
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) --
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 isn't 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 isn't 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.
Note
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 in the Amazon SWF Developer Guide .
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) --
The data attached to the event that the decider can use in subsequent workflow tasks. This data isn't sent to the workflow execution.
externalWorkflowExecutionCancelRequestedEventAttributes (dict) --
If the event is of type ExternalWorkflowExecutionCancelRequested then this member is set and provides detailed information about the event. It isn't 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 isn't 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) --
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 isn't 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.
Note
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 in the Amazon SWF Developer Guide .
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) --
The data attached to the event that the decider can use in subsequent workflow tasks. This data isn't sent to the workflow execution.
scheduleActivityTaskFailedEventAttributes (dict) --
If the event is of type ScheduleActivityTaskFailed then this member is set and provides detailed information about the event. It isn't set for other event types.
activityType (dict) --
The activity type provided in the ScheduleActivityTask decision that failed.
name (string) --
The name of this activity.
Note
The combination of activity type name and version must be unique within a domain.
version (string) --
The version of this activity.
Note
The combination of activity type name and version must be unique with in a domain.
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.
Note
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 in the Amazon SWF 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.
requestCancelActivityTaskFailedEventAttributes (dict) --
If the event is of type RequestCancelActivityTaskFailed then this member is set and provides detailed information about the event. It isn't 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.
Note
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 in the Amazon SWF Developer Guide .
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 isn't 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.
Note
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 in the Amazon SWF Developer Guide .
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 isn't 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.
Note
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 in the Amazon SWF Developer Guide .
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 isn't set for other event types.
workflowType (dict) --
The workflow type provided in the StartChildWorkflowExecution Decision that failed.
name (string) --
The name of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
version (string) --
The version of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
cause (string) --
The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.
Note
When cause is set to OPERATION_NOT_PERMITTED , the decision fails because it lacks sufficient permissions. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer Guide .
workflowId (string) --
The workflowId of the child workflow execution.
initiatedEventId (integer) --
When the cause is WORKFLOW_ALREADY_RUNNING , initiatedEventId is the ID of the StartChildWorkflowExecutionInitiated event that corresponds to the StartChildWorkflowExecution Decision to start the workflow execution. You can use this information to diagnose problems by tracing back the chain of events leading up to this event.
When the cause isn't WORKFLOW_ALREADY_RUNNING , initiatedEventId is set to 0 because the StartChildWorkflowExecutionInitiated event doesn't exist.
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 chain of events.
control (string) --
The data attached to the event that the decider can use in subsequent workflow tasks. This data isn't sent to the child workflow execution.
lambdaFunctionScheduledEventAttributes (dict) --
Provides the details of the LambdaFunctionScheduled event. It isn't set for other event types.
id (string) --
The unique ID of the Lambda task.
name (string) --
The name of the Lambda function.
control (string) --
Data attached to the event that the decider can use in subsequent workflow tasks. This data isn't sent to the Lambda task.
input (string) --
The input provided to the Lambda task.
startToCloseTimeout (string) --
The maximum amount of time a worker can take to process the Lambda task.
decisionTaskCompletedEventId (integer) --
The ID of the LambdaFunctionCompleted event corresponding to the decision that resulted in scheduling this activity task. To help diagnose issues, use this information to trace back the chain of events leading up to this event.
lambdaFunctionStartedEventAttributes (dict) --
Provides the details of the LambdaFunctionStarted event. It isn't set for other event types.
scheduledEventId (integer) --
The ID of the LambdaFunctionScheduled event that was recorded when this activity task was scheduled. To help diagnose issues, use this information to trace back the chain of events leading up to this event.
lambdaFunctionCompletedEventAttributes (dict) --
Provides the details of the LambdaFunctionCompleted event. It isn't set for other event types.
scheduledEventId (integer) --
The ID of the LambdaFunctionScheduled event that was recorded when this Lambda task was scheduled. To help diagnose issues, use this information to trace back the chain of events leading up to this event.
startedEventId (integer) --
The ID of the LambdaFunctionStarted event recorded when this activity task started. To help diagnose issues, use this information to trace back the chain of events leading up to this event.
result (string) --
The results of the Lambda task.
lambdaFunctionFailedEventAttributes (dict) --
Provides the details of the LambdaFunctionFailed event. It isn't set for other event types.
scheduledEventId (integer) --
The ID of the LambdaFunctionScheduled event that was recorded when this activity task was scheduled. To help diagnose issues, use this information to trace back the chain of events leading up to this event.
startedEventId (integer) --
The ID of the LambdaFunctionStarted event recorded when this activity task started. To help diagnose issues, use this information to trace back the chain of events leading up to this event.
reason (string) --
The reason provided for the failure.
details (string) --
The details of the failure.
lambdaFunctionTimedOutEventAttributes (dict) --
Provides the details of the LambdaFunctionTimedOut event. It isn't set for other event types.
scheduledEventId (integer) --
The ID of the LambdaFunctionScheduled event that was recorded when this activity task was scheduled. To help diagnose issues, use this information to trace back the chain of events leading up to this event.
startedEventId (integer) --
The ID of the ActivityTaskStarted event that was recorded when this activity task started. To help diagnose issues, use this information to trace back the chain of events leading up to this event.
timeoutType (string) --
The type of the timeout that caused this event.
scheduleLambdaFunctionFailedEventAttributes (dict) --
Provides the details of the ScheduleLambdaFunctionFailed event. It isn't set for other event types.
id (string) --
The ID provided in the ScheduleLambdaFunction decision that failed.
name (string) --
The name of the Lambda function.
cause (string) --
The cause of the failure. To help diagnose issues, use this information to trace back the chain of events leading up to this event.
Note
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 in the Amazon SWF Developer Guide .
decisionTaskCompletedEventId (integer) --
The ID of the LambdaFunctionCompleted event corresponding to the decision that resulted in scheduling this Lambda task. To help diagnose issues, use this information to trace back the chain of events leading up to this event.
startLambdaFunctionFailedEventAttributes (dict) --
Provides the details of the StartLambdaFunctionFailed event. It isn't set for other event types.
scheduledEventId (integer) --
The ID of the ActivityTaskScheduled event that was recorded when this activity task was scheduled. To help diagnose issues, use this information to trace back the chain of events leading up to this event.
cause (string) --
The cause of the failure. To help diagnose issues, use this information to trace back the chain of events leading up to this event.
Note
If cause is set to OPERATION_NOT_PERMITTED , the decision failed because the IAM role attached to the execution lacked sufficient permissions. For details and example IAM policies, see Lambda Tasks in the Amazon SWF Developer Guide .
message (string) --
A description that can help diagnose the cause of the fault.
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.
Exceptions
Returns information about all activities registered in the specified domain that match the specified name and registration status. The result includes information like creation date, current status of the activity, etc. 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:
If the caller doesn't 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 is set to OPERATION_NOT_PERMITTED . For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer Guide .
See also: AWS API Documentation
Request Syntax
response = client.list_activity_types(
domain='string',
name='string',
registrationStatus='REGISTERED'|'DEPRECATED',
nextPageToken='string',
maximumPageSize=123,
reverseOrder=True|False
)
[REQUIRED]
The name of the domain in which the activity types have been registered.
[REQUIRED]
Specifies the registration status of the activity types to list.
If NextPageToken is returned there are more results available. The value of NextPageToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 60 seconds. Using an expired pagination token will return a 400 error: "Specified token has exceeded its maximum lifetime ".
The configured maximumPageSize determines how many results can be returned in a single call.
dict
Response Syntax
{
'typeInfos': [
{
'activityType': {
'name': 'string',
'version': 'string'
},
'status': 'REGISTERED'|'DEPRECATED',
'description': 'string',
'creationDate': datetime(2015, 1, 1),
'deprecationDate': datetime(2015, 1, 1)
},
],
'nextPageToken': 'string'
}
Response Structure
(dict) --
Contains a paginated list of activity type information structures.
typeInfos (list) --
List of activity type information.
(dict) --
Detailed information about an activity type.
activityType (dict) --
The ActivityType type structure representing the activity type.
name (string) --
The name of this activity.
Note
The combination of activity type name and version must be unique within a domain.
version (string) --
The version of this activity.
Note
The combination of activity type name and version must be unique with in a domain.
status (string) --
The current status of the activity type.
description (string) --
The description of the activity type provided in RegisterActivityType .
creationDate (datetime) --
The date and time this activity type was created through RegisterActivityType .
deprecationDate (datetime) --
If DEPRECATED, the date and time DeprecateActivityType was called.
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.
Exceptions
Returns a list of closed workflow executions in the specified domain that meet the filtering criteria. The results may be split into multiple pages. To retrieve subsequent pages, make the call again using the nextPageToken returned by the initial call.
Note
This operation is eventually consistent. The results are best effort and may not exactly reflect recent updates and changes.
Access Control
You can use IAM policies to control this action's access to Amazon SWF resources as follows:
If the caller doesn't 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 is set to OPERATION_NOT_PERMITTED . For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer Guide .
See also: AWS API Documentation
Request Syntax
response = client.list_closed_workflow_executions(
domain='string',
startTimeFilter={
'oldestDate': datetime(2015, 1, 1),
'latestDate': datetime(2015, 1, 1)
},
closeTimeFilter={
'oldestDate': datetime(2015, 1, 1),
'latestDate': datetime(2015, 1, 1)
},
executionFilter={
'workflowId': 'string'
},
closeStatusFilter={
'status': 'COMPLETED'|'FAILED'|'CANCELED'|'TERMINATED'|'CONTINUED_AS_NEW'|'TIMED_OUT'
},
typeFilter={
'name': 'string',
'version': 'string'
},
tagFilter={
'tag': 'string'
},
nextPageToken='string',
maximumPageSize=123,
reverseOrder=True|False
)
[REQUIRED]
The name of the domain that contains the workflow executions to list.
If specified, the workflow executions are included in the returned results based on whether their start times are within the range specified by this filter. Also, if this parameter is specified, the returned results are ordered by their start times.
Note
startTimeFilter and closeTimeFilter are mutually exclusive. You must specify one of these in a request but not both.
Specifies the oldest start or close date and time to return.
Specifies the latest start or close date and time to return.
If specified, the workflow executions are included in the returned results based on whether their close times are within the range specified by this filter. Also, if this parameter is specified, the returned results are ordered by their close times.
Note
startTimeFilter and closeTimeFilter are mutually exclusive. You must specify one of these in a request but not both.
Specifies the oldest start or close date and time to return.
Specifies the latest start or close date and time to return.
If specified, only workflow executions matching the workflow ID specified in the filter are returned.
Note
closeStatusFilter , executionFilter , typeFilter and tagFilter are mutually exclusive. You can specify at most one of these in a request.
The workflowId to pass of match the criteria of this filter.
If specified, only workflow executions that match this close status are listed. For example, if TERMINATED is specified, then only TERMINATED workflow executions are listed.
Note
closeStatusFilter , executionFilter , typeFilter and tagFilter are mutually exclusive. You can specify at most one of these in a request.
The close status that must match the close status of an execution for it to meet the criteria of this filter.
If specified, only executions of the type specified in the filter are returned.
Note
closeStatusFilter , executionFilter , typeFilter and tagFilter are mutually exclusive. You can specify at most one of these in a request.
Name of the workflow type.
Version of the workflow type.
If specified, only executions that have the matching tag are listed.
Note
closeStatusFilter , executionFilter , typeFilter and tagFilter are mutually exclusive. You can specify at most one of these in a request.
Specifies the tag that must be associated with the execution for it to meet the filter criteria.
Tags may only contain unicode letters, digits, whitespace, or these symbols: _ . : / = + - @ .
If NextPageToken is returned there are more results available. The value of NextPageToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 60 seconds. Using an expired pagination token will return a 400 error: "Specified token has exceeded its maximum lifetime ".
The configured maximumPageSize determines how many results can be returned in a single call.
dict
Response Syntax
{
'executionInfos': [
{
'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
},
],
'nextPageToken': 'string'
}
Response Structure
(dict) --
Contains a paginated list of information about workflow executions.
executionInfos (list) --
The list of workflow information structures.
(dict) --
Contains information about a 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) --
The name of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
version (string) --
The version of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
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:
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.
cancelRequested (boolean) --
Set to true if a cancellation is requested for this workflow execution.
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.
Exceptions
Returns the list of domains registered in the account. The results may be split into multiple pages. To retrieve subsequent pages, make the call again using the nextPageToken returned by the initial call.
Note
This operation is eventually consistent. The results are best effort and may not exactly reflect recent updates and changes.
Access Control
You can use IAM policies to control this action's access to Amazon SWF resources as follows:
If the caller doesn't 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 is set to OPERATION_NOT_PERMITTED . For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer Guide .
See also: AWS API Documentation
Request Syntax
response = client.list_domains(
nextPageToken='string',
registrationStatus='REGISTERED'|'DEPRECATED',
maximumPageSize=123,
reverseOrder=True|False
)
If NextPageToken is returned there are more results available. The value of NextPageToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 60 seconds. Using an expired pagination token will return a 400 error: "Specified token has exceeded its maximum lifetime ".
The configured maximumPageSize determines how many results can be returned in a single call.
[REQUIRED]
Specifies the registration status of the domains to list.
dict
Response Syntax
{
'domainInfos': [
{
'name': 'string',
'status': 'REGISTERED'|'DEPRECATED',
'description': 'string',
'arn': 'string'
},
],
'nextPageToken': 'string'
}
Response Structure
(dict) --
Contains a paginated collection of DomainInfo structures.
domainInfos (list) --
A list of DomainInfo structures.
(dict) --
Contains general information about a domain.
name (string) --
The name of the domain. This name is unique within the account.
status (string) --
The status of the domain:
description (string) --
The description of the domain provided through RegisterDomain .
arn (string) --
The ARN of the domain.
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.
Exceptions
Returns a list of open workflow executions in the specified domain that meet the filtering criteria. The results may be split into multiple pages. To retrieve subsequent pages, make the call again using the nextPageToken returned by the initial call.
Note
This operation is eventually consistent. The results are best effort and may not exactly reflect recent updates and changes.
Access Control
You can use IAM policies to control this action's access to Amazon SWF resources as follows:
If the caller doesn't 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 is set to OPERATION_NOT_PERMITTED . For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer Guide .
See also: AWS API Documentation
Request Syntax
response = client.list_open_workflow_executions(
domain='string',
startTimeFilter={
'oldestDate': datetime(2015, 1, 1),
'latestDate': datetime(2015, 1, 1)
},
typeFilter={
'name': 'string',
'version': 'string'
},
tagFilter={
'tag': 'string'
},
nextPageToken='string',
maximumPageSize=123,
reverseOrder=True|False,
executionFilter={
'workflowId': 'string'
}
)
[REQUIRED]
The name of the domain that contains the workflow executions to list.
[REQUIRED]
Workflow executions are included in the returned results based on whether their start times are within the range specified by this filter.
Specifies the oldest start or close date and time to return.
Specifies the latest start or close date and time to return.
If specified, only executions of the type specified in the filter are returned.
Note
executionFilter , typeFilter and tagFilter are mutually exclusive. You can specify at most one of these in a request.
Name of the workflow type.
Version of the workflow type.
If specified, only executions that have the matching tag are listed.
Note
executionFilter , typeFilter and tagFilter are mutually exclusive. You can specify at most one of these in a request.
Specifies the tag that must be associated with the execution for it to meet the filter criteria.
Tags may only contain unicode letters, digits, whitespace, or these symbols: _ . : / = + - @ .
If NextPageToken is returned there are more results available. The value of NextPageToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 60 seconds. Using an expired pagination token will return a 400 error: "Specified token has exceeded its maximum lifetime ".
The configured maximumPageSize determines how many results can be returned in a single call.
If specified, only workflow executions matching the workflow ID specified in the filter are returned.
Note
executionFilter , typeFilter and tagFilter are mutually exclusive. You can specify at most one of these in a request.
The workflowId to pass of match the criteria of this filter.
dict
Response Syntax
{
'executionInfos': [
{
'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
},
],
'nextPageToken': 'string'
}
Response Structure
(dict) --
Contains a paginated list of information about workflow executions.
executionInfos (list) --
The list of workflow information structures.
(dict) --
Contains information about a 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) --
The name of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
version (string) --
The version of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
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:
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.
cancelRequested (boolean) --
Set to true if a cancellation is requested for this workflow execution.
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.
Exceptions
List tags for a given domain.
See also: AWS API Documentation
Request Syntax
response = client.list_tags_for_resource(
resourceArn='string'
)
[REQUIRED]
The Amazon Resource Name (ARN) for the Amazon SWF domain.
{
'tags': [
{
'key': 'string',
'value': 'string'
},
]
}
Response Structure
An array of tags associated with the domain.
Tags are key-value pairs that can be associated with Amazon SWF state machines and activities.
Tags may only contain unicode letters, digits, whitespace, or these symbols: _ . : / = + - @ .
The key of a tag.
The value of a tag.
Exceptions
Returns information about workflow types in the specified domain. The results may be split into multiple pages that can be retrieved by making the call repeatedly.
Access Control
You can use IAM policies to control this action's access to Amazon SWF resources as follows:
If the caller doesn't 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 is set to OPERATION_NOT_PERMITTED . For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer Guide .
See also: AWS API Documentation
Request Syntax
response = client.list_workflow_types(
domain='string',
name='string',
registrationStatus='REGISTERED'|'DEPRECATED',
nextPageToken='string',
maximumPageSize=123,
reverseOrder=True|False
)
[REQUIRED]
The name of the domain in which the workflow types have been registered.
[REQUIRED]
Specifies the registration status of the workflow types to list.
If NextPageToken is returned there are more results available. The value of NextPageToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 60 seconds. Using an expired pagination token will return a 400 error: "Specified token has exceeded its maximum lifetime ".
The configured maximumPageSize determines how many results can be returned in a single call.
dict
Response Syntax
{
'typeInfos': [
{
'workflowType': {
'name': 'string',
'version': 'string'
},
'status': 'REGISTERED'|'DEPRECATED',
'description': 'string',
'creationDate': datetime(2015, 1, 1),
'deprecationDate': datetime(2015, 1, 1)
},
],
'nextPageToken': 'string'
}
Response Structure
(dict) --
Contains a paginated list of information structures about workflow types.
typeInfos (list) --
The list of workflow type information.
(dict) --
Contains information about a workflow type.
workflowType (dict) --
The workflow type this information is about.
name (string) --
The name of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
version (string) --
The version of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
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.
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.
Exceptions
Used by workers to get an ActivityTask from the specified activity taskList . This initiates a long poll, where the service holds the HTTP connection open and responds as soon as a task becomes available. The maximum time the service holds on to the request before responding is 60 seconds. If no task is available within 60 seconds, the poll returns an empty result. An empty result, in this context, means that an ActivityTask is returned, but that the value of taskToken is an empty string. If a task is returned, the worker should use its type to identify and process it correctly.
Warning
Workers should set their client side socket timeout to at least 70 seconds (10 seconds higher than the maximum time service may hold the poll request).
Access Control
You can use IAM policies to control this action's access to Amazon SWF resources as follows:
If the caller doesn't 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 is set to OPERATION_NOT_PERMITTED . For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer Guide .
See also: AWS API Documentation
Request Syntax
response = client.poll_for_activity_task(
domain='string',
taskList={
'name': 'string'
},
identity='string'
)
[REQUIRED]
The name of the domain that contains the task lists being polled.
[REQUIRED]
Specifies the task list to poll for activity 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 be the literal string arn .
The name of the task list.
dict
Response Syntax
{
'taskToken': 'string',
'activityId': 'string',
'startedEventId': 123,
'workflowExecution': {
'workflowId': 'string',
'runId': 'string'
},
'activityType': {
'name': 'string',
'version': 'string'
},
'input': 'string'
}
Response Structure
(dict) --
Unit of work sent to an activity worker.
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.
activityId (string) --
The unique ID of the task.
startedEventId (integer) --
The ID of the ActivityTaskStarted event recorded in the history.
workflowExecution (dict) --
The workflow execution that started this activity task.
workflowId (string) --
The user defined identifier associated with the workflow execution.
runId (string) --
A system-generated unique identifier for the workflow execution.
activityType (dict) --
The type of this activity task.
name (string) --
The name of this activity.
Note
The combination of activity type name and version must be unique within a domain.
version (string) --
The version of this activity.
Note
The combination of activity type name and version must be unique with in a domain.
input (string) --
The inputs provided when the activity task was scheduled. The form of the input is user defined and should be meaningful to the activity implementation.
Exceptions
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.
Warning
Deciders should set their client side socket timeout to at least 70 seconds (10 seconds higher than the timeout).
Warning
Because the number of workflow history events for a single workflow execution might be very large, the result returned might be split up across a number of pages. To retrieve subsequent pages, make additional calls to PollForDecisionTask using the nextPageToken returned by the initial call. Note that you do not call GetWorkflowExecutionHistory with this nextPageToken . Instead, call PollForDecisionTask again.
Access Control
You can use IAM policies to control this action's access to Amazon SWF resources as follows:
If the caller doesn't 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 is set to OPERATION_NOT_PERMITTED . For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer Guide .
See also: AWS API Documentation
Request Syntax
response = client.poll_for_decision_task(
domain='string',
taskList={
'name': 'string'
},
identity='string',
nextPageToken='string',
maximumPageSize=123,
reverseOrder=True|False
)
[REQUIRED]
The name of the domain containing the task lists to poll.
[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 be the literal string arn .
The name of the task list.
If NextPageToken is returned there are more results available. The value of NextPageToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 60 seconds. Using an expired pagination token will return a 400 error: "Specified token has exceeded its maximum lifetime ".
The configured maximumPageSize determines how many results can be returned in a single call.
Note
The nextPageToken returned by this action cannot be used with GetWorkflowExecutionHistory to get the next page. You must call PollForDecisionTask again (with the nextPageToken ) to retrieve the next page of history records. Calling PollForDecisionTask with a nextPageToken doesn't return a new decision task.
The maximum number of results that are returned per call. Use nextPageToken to obtain further pages of results.
This is an upper limit only; the actual number of results returned per call may be fewer than the specified maximum.
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'
},
'taskPriority': 'string',
'workflowType': {
'name': 'string',
'version': 'string'
},
'tagList': [
'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',
'control': '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) --
The name of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
version (string) --
The version of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
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:
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 isn't set for other event types.
input (string) --
The input provided to the workflow execution.
executionStartToCloseTimeout (string) --
The maximum duration for this workflow execution.
The duration is specified in seconds, an integer greater than or equal to 0 . You can use NONE 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 . You can use NONE 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:
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.
taskPriority (string) --
The priority of the decision tasks in the workflow execution.
workflowType (dict) --
The workflow type of this execution.
name (string) --
The name of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
version (string) --
The version of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
tagList (list) --
The list of tags associated with this workflow execution. An execution can have up to 5 tags.
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 isn't 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 the workflow execution.
workflowExecutionCompletedEventAttributes (dict) --
If the event is of type WorkflowExecutionCompleted then this member is set and provides detailed information about the event. It isn't 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 isn't 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.
Note
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 in the Amazon SWF Developer Guide .
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 isn't set for other event types.
reason (string) --
The descriptive reason provided for the failure.
details (string) --
The details of the failure.
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 isn't 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.
Note
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 in the Amazon SWF Developer Guide .
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 isn't 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:
workflowExecutionCanceledEventAttributes (dict) --
If the event is of type WorkflowExecutionCanceled then this member is set and provides detailed information about the event. It isn't set for other event types.
details (string) --
The details of the cancellation.
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 isn't 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.
Note
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 in the Amazon SWF Developer Guide .
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 isn't 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 . You can use NONE to specify unlimited duration.
taskList (dict) --
The task list to use for the decisions of the new (continued) workflow execution.
name (string) --
The name of the task list.
taskPriority (string) --
The priority of the task to use for the decisions of the new (continued) workflow execution.
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 . You can use NONE 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:
tagList (list) --
The list of tags associated with the new workflow execution.
workflowType (dict) --
The workflow type of this execution.
name (string) --
The name of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
version (string) --
The version of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
lambdaRole (string) --
The IAM role to attach to the new (continued) workflow execution.
continueAsNewWorkflowExecutionFailedEventAttributes (dict) --
If the event is of type ContinueAsNewWorkflowExecutionFailed then this member is set and provides detailed information about the event. It isn't 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.
Note
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 in the Amazon SWF Developer Guide .
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 isn't set for other event types.
reason (string) --
The reason provided for the termination.
details (string) --
The details provided for the termination.
childPolicy (string) --
The policy used for the child workflow executions of this workflow execution.
The supported child policies are:
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 isn't 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 isn't 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) --
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 SWF Developer Guide .
startToCloseTimeout (string) --
The maximum duration for this decision task. The task is considered timed out if it doesn't completed within this duration.
The duration is specified in seconds, an integer greater than or equal to 0 . You can use NONE 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 isn't 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 isn't 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 isn't 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 isn't set for other event types.
activityType (dict) --
The type of the activity task.
name (string) --
The name of this activity.
Note
The combination of activity type name and version must be unique within a domain.
version (string) --
The version of this activity.
Note
The combination of activity type name and version must be unique with in a domain.
activityId (string) --
The unique ID of the activity task.
input (string) --
The input provided to the activity task.
control (string) --
Data attached to the event that can be used by the decider in subsequent workflow tasks. This data isn't 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) --
The priority to assign to the scheduled activity task. If set, this overrides 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 SWF 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 is ignored.
activityTaskStartedEventAttributes (dict) --
If the event is of type ActivityTaskStarted then this member is set and provides detailed information about the event. It isn't 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 isn't set for other event types.
result (string) --
The results of the activity task.
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 isn't set for other event types.
reason (string) --
The reason provided for the failure.
details (string) --
The details of the failure.
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 isn't 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 isn't set for other event types.
details (string) --
Details of the cancellation.
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 isn't 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 isn't 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) --
The inputs provided with the signal. 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 isn't set for other event types.
markerName (string) --
The name of the marker.
details (string) --
The details of the marker.
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 isn't 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.
Note
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 in the Amazon SWF Developer Guide .
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 isn't set for other event types.
timerId (string) --
The unique ID of the timer that was started.
control (string) --
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 fires.
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 isn't 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 isn't 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 isn't 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) --
The name of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
version (string) --
The version of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
control (string) --
Data attached to the event that can be used by the decider in subsequent decision tasks. This data isn't sent to the activity.
input (string) --
The inputs provided to the child workflow execution.
executionStartToCloseTimeout (string) --
The maximum duration for the child workflow execution. If the workflow execution isn't closed within this duration, it is timed out and force-terminated.
The duration is specified in seconds, an integer greater than or equal to 0 . You can use NONE 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) --
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 SWF 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:
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 . You can use NONE to specify unlimited duration.
tagList (list) --
The list of tags to associated with the child workflow execution.
lambdaRole (string) --
The IAM role to attach to the child workflow execution.
childWorkflowExecutionStartedEventAttributes (dict) --
If the event is of type ChildWorkflowExecutionStarted then this member is set and provides detailed information about the event. It isn't 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) --
The name of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
version (string) --
The version of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
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 isn't 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) --
The name of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
version (string) --
The version of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
result (string) --
The result 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.
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 isn't 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) --
The name of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
version (string) --
The version of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
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 isn't 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) --
The name of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
version (string) --
The version of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
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 isn't 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) --
The name of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
version (string) --
The version of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
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 isn't 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) --
The name of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
version (string) --
The version of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
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 isn't 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) --
The input provided to the signal.
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) --
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 isn't 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 isn't 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.
Note
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 in the Amazon SWF Developer Guide .
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) --
The data attached to the event that the decider can use in subsequent workflow tasks. This data isn't sent to the workflow execution.
externalWorkflowExecutionCancelRequestedEventAttributes (dict) --
If the event is of type ExternalWorkflowExecutionCancelRequested then this member is set and provides detailed information about the event. It isn't 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 isn't 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) --
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 isn't 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.
Note
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 in the Amazon SWF Developer Guide .
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) --
The data attached to the event that the decider can use in subsequent workflow tasks. This data isn't sent to the workflow execution.
scheduleActivityTaskFailedEventAttributes (dict) --
If the event is of type ScheduleActivityTaskFailed then this member is set and provides detailed information about the event. It isn't set for other event types.
activityType (dict) --
The activity type provided in the ScheduleActivityTask decision that failed.
name (string) --
The name of this activity.
Note
The combination of activity type name and version must be unique within a domain.
version (string) --
The version of this activity.
Note
The combination of activity type name and version must be unique with in a domain.
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.
Note
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 in the Amazon SWF 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.
requestCancelActivityTaskFailedEventAttributes (dict) --
If the event is of type RequestCancelActivityTaskFailed then this member is set and provides detailed information about the event. It isn't 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.
Note
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 in the Amazon SWF Developer Guide .
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 isn't 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.
Note
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 in the Amazon SWF Developer Guide .
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 isn't 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.
Note
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 in the Amazon SWF Developer Guide .
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 isn't set for other event types.
workflowType (dict) --
The workflow type provided in the StartChildWorkflowExecution Decision that failed.
name (string) --
The name of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
version (string) --
The version of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
cause (string) --
The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.
Note
When cause is set to OPERATION_NOT_PERMITTED , the decision fails because it lacks sufficient permissions. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer Guide .
workflowId (string) --
The workflowId of the child workflow execution.
initiatedEventId (integer) --
When the cause is WORKFLOW_ALREADY_RUNNING , initiatedEventId is the ID of the StartChildWorkflowExecutionInitiated event that corresponds to the StartChildWorkflowExecution Decision to start the workflow execution. You can use this information to diagnose problems by tracing back the chain of events leading up to this event.
When the cause isn't WORKFLOW_ALREADY_RUNNING , initiatedEventId is set to 0 because the StartChildWorkflowExecutionInitiated event doesn't exist.
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 chain of events.
control (string) --
The data attached to the event that the decider can use in subsequent workflow tasks. This data isn't sent to the child workflow execution.
lambdaFunctionScheduledEventAttributes (dict) --
Provides the details of the LambdaFunctionScheduled event. It isn't set for other event types.
id (string) --
The unique ID of the Lambda task.
name (string) --
The name of the Lambda function.
control (string) --
Data attached to the event that the decider can use in subsequent workflow tasks. This data isn't sent to the Lambda task.
input (string) --
The input provided to the Lambda task.
startToCloseTimeout (string) --
The maximum amount of time a worker can take to process the Lambda task.
decisionTaskCompletedEventId (integer) --
The ID of the LambdaFunctionCompleted event corresponding to the decision that resulted in scheduling this activity task. To help diagnose issues, use this information to trace back the chain of events leading up to this event.
lambdaFunctionStartedEventAttributes (dict) --
Provides the details of the LambdaFunctionStarted event. It isn't set for other event types.
scheduledEventId (integer) --
The ID of the LambdaFunctionScheduled event that was recorded when this activity task was scheduled. To help diagnose issues, use this information to trace back the chain of events leading up to this event.
lambdaFunctionCompletedEventAttributes (dict) --
Provides the details of the LambdaFunctionCompleted event. It isn't set for other event types.
scheduledEventId (integer) --
The ID of the LambdaFunctionScheduled event that was recorded when this Lambda task was scheduled. To help diagnose issues, use this information to trace back the chain of events leading up to this event.
startedEventId (integer) --
The ID of the LambdaFunctionStarted event recorded when this activity task started. To help diagnose issues, use this information to trace back the chain of events leading up to this event.
result (string) --
The results of the Lambda task.
lambdaFunctionFailedEventAttributes (dict) --
Provides the details of the LambdaFunctionFailed event. It isn't set for other event types.
scheduledEventId (integer) --
The ID of the LambdaFunctionScheduled event that was recorded when this activity task was scheduled. To help diagnose issues, use this information to trace back the chain of events leading up to this event.
startedEventId (integer) --
The ID of the LambdaFunctionStarted event recorded when this activity task started. To help diagnose issues, use this information to trace back the chain of events leading up to this event.
reason (string) --
The reason provided for the failure.
details (string) --
The details of the failure.
lambdaFunctionTimedOutEventAttributes (dict) --
Provides the details of the LambdaFunctionTimedOut event. It isn't set for other event types.
scheduledEventId (integer) --
The ID of the LambdaFunctionScheduled event that was recorded when this activity task was scheduled. To help diagnose issues, use this information to trace back the chain of events leading up to this event.
startedEventId (integer) --
The ID of the ActivityTaskStarted event that was recorded when this activity task started. To help diagnose issues, use this information to trace back the chain of events leading up to this event.
timeoutType (string) --
The type of the timeout that caused this event.
scheduleLambdaFunctionFailedEventAttributes (dict) --
Provides the details of the ScheduleLambdaFunctionFailed event. It isn't set for other event types.
id (string) --
The ID provided in the ScheduleLambdaFunction decision that failed.
name (string) --
The name of the Lambda function.
cause (string) --
The cause of the failure. To help diagnose issues, use this information to trace back the chain of events leading up to this event.
Note
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 in the Amazon SWF Developer Guide .
decisionTaskCompletedEventId (integer) --
The ID of the LambdaFunctionCompleted event corresponding to the decision that resulted in scheduling this Lambda task. To help diagnose issues, use this information to trace back the chain of events leading up to this event.
startLambdaFunctionFailedEventAttributes (dict) --
Provides the details of the StartLambdaFunctionFailed event. It isn't set for other event types.
scheduledEventId (integer) --
The ID of the ActivityTaskScheduled event that was recorded when this activity task was scheduled. To help diagnose issues, use this information to trace back the chain of events leading up to this event.
cause (string) --
The cause of the failure. To help diagnose issues, use this information to trace back the chain of events leading up to this event.
Note
If cause is set to OPERATION_NOT_PERMITTED , the decision failed because the IAM role attached to the execution lacked sufficient permissions. For details and example IAM policies, see Lambda Tasks in the Amazon SWF Developer Guide .
message (string) --
A description that can help diagnose the cause of the fault.
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.
Exceptions
Used by activity workers to report to the service that the ActivityTask represented by the specified taskToken is still making progress. The worker can also specify details of the progress, for example percent complete, using the details parameter. This action can also be used by the worker as a mechanism to check if cancellation is being requested for the activity task. If a cancellation is being attempted for the specified task, then the boolean cancelRequested flag returned by the service is set to true .
This action resets the taskHeartbeatTimeout clock. The taskHeartbeatTimeout is specified in RegisterActivityType .
This action doesn't in itself create an event in the workflow execution history. However, if the task times out, the workflow execution history contains a ActivityTaskTimedOut event that contains the information from the last heartbeat generated by the activity worker.
Note
The taskStartToCloseTimeout of an activity type is the maximum duration of an activity task, regardless of the number of RecordActivityTaskHeartbeat requests received. The taskStartToCloseTimeout is also specified in RegisterActivityType .
Note
This operation is only useful for long-lived activities to report liveliness of the task and to determine if a cancellation is being attempted.
Warning
If the cancelRequested flag returns true , a cancellation is being attempted. If the worker can cancel the activity, it should respond with RespondActivityTaskCanceled . Otherwise, it should ignore the cancellation request.
Access Control
You can use IAM policies to control this action's access to Amazon SWF resources as follows:
If the caller doesn't 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 is set to OPERATION_NOT_PERMITTED . For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer Guide .
See also: AWS API Documentation
Request Syntax
response = client.record_activity_task_heartbeat(
taskToken='string',
details='string'
)
[REQUIRED]
The taskToken of the ActivityTask .
Warning
taskToken is generated by the service and should be treated as an opaque value. If the task is passed to another process, its taskToken must also be passed. This enables it to provide its progress and respond with results.
dict
Response Syntax
{
'cancelRequested': True|False
}
Response Structure
(dict) --
Status information about an activity task.
cancelRequested (boolean) --
Set to true if cancellation of the task is requested.
Exceptions
Registers a new activity type along with its configuration settings in the specified domain.
Warning
A TypeAlreadyExists fault is returned if the type already exists in the domain. You cannot change any configuration settings of the type after its registration, and it must be registered as a new version.
Access Control
You can use IAM policies to control this action's access to Amazon SWF resources as follows:
If the caller doesn't 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 is set to OPERATION_NOT_PERMITTED . For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer Guide .
See also: AWS API Documentation
Request Syntax
response = client.register_activity_type(
domain='string',
name='string',
version='string',
description='string',
defaultTaskStartToCloseTimeout='string',
defaultTaskHeartbeatTimeout='string',
defaultTaskList={
'name': 'string'
},
defaultTaskPriority='string',
defaultTaskScheduleToStartTimeout='string',
defaultTaskScheduleToCloseTimeout='string'
)
[REQUIRED]
The name of the domain in which this activity is to be registered.
[REQUIRED]
The name of the activity type within the domain.
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 be the literal string arn .
[REQUIRED]
The version of the activity type.
Note
The activity type consists of the name and version, the combination of which must be unique within the domain.
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 be the literal string arn .
If set, specifies the default maximum duration that a worker can take to process tasks of this activity type. This default can be overridden when scheduling an activity task using the ScheduleActivityTask Decision .
The duration is specified in seconds, an integer greater than or equal to 0 . You can use NONE to specify unlimited duration.
If set, specifies the default 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. This default can be overridden when scheduling an activity task using the ScheduleActivityTask Decision . If the activity worker subsequently attempts to record a heartbeat or returns a result, the activity worker receives an UnknownResource fault. In this case, Amazon SWF no longer considers the activity task to be valid; the activity worker should clean up the activity task.
The duration is specified in seconds, an integer greater than or equal to 0 . You can use NONE to specify unlimited duration.
If set, specifies the default task list to use for scheduling tasks of this activity type. This default task list is used if a task list isn't provided when a task is scheduled through the ScheduleActivityTask Decision .
The name of the task list.
The default task priority to assign to the activity type. If not assigned, then 0 is 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 in the *Amazon SWF Developer Guide .* .
If set, specifies the default maximum duration that a task of this activity type can wait before being assigned to a worker. This default can be overridden when scheduling an activity task using the ScheduleActivityTask Decision .
The duration is specified in seconds, an integer greater than or equal to 0 . You can use NONE to specify unlimited duration.
If set, specifies the default maximum duration for a task of this activity type. This default can be overridden when scheduling an activity task using the ScheduleActivityTask Decision .
The duration is specified in seconds, an integer greater than or equal to 0 . You can use NONE to specify unlimited duration.
None
Exceptions
Registers a new domain.
Access Control
You can use IAM policies to control this action's access to Amazon SWF resources as follows:
If the caller doesn't 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 is set to OPERATION_NOT_PERMITTED . For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer Guide .
See also: AWS API Documentation
Request Syntax
response = client.register_domain(
name='string',
description='string',
workflowExecutionRetentionPeriodInDays='string',
tags=[
{
'key': 'string',
'value': 'string'
},
]
)
[REQUIRED]
Name of the domain to register. The name must be unique in the region that the domain is registered in.
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 be the literal string arn .
[REQUIRED]
The duration (in days) that records and histories of workflow executions on the domain should be kept by the service. After the retention period, the workflow execution isn't available in the results of visibility calls.
If you pass the value NONE or 0 (zero), then the workflow execution history isn't retained. As soon as the workflow execution completes, the execution record and its history are deleted.
The maximum workflow execution retention period is 90 days. For more information about Amazon SWF service limits, see: Amazon SWF Service Limits in the Amazon SWF Developer Guide .
Tags to be added when registering a domain.
Tags may only contain unicode letters, digits, whitespace, or these symbols: _ . : / = + - @ .
Tags are key-value pairs that can be associated with Amazon SWF state machines and activities.
Tags may only contain unicode letters, digits, whitespace, or these symbols: _ . : / = + - @ .
The key of a tag.
The value of a tag.
None
Exceptions
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.
Warning
If the type already exists, then a TypeAlreadyExists fault is returned. You cannot change the configuration settings of a workflow type once it is registered and it must be registered as a new version.
Access Control
You can use IAM policies to control this action's access to Amazon SWF resources as follows:
If the caller doesn't 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 is set to OPERATION_NOT_PERMITTED . For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer Guide .
See also: AWS API Documentation
Request Syntax
response = 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'
)
[REQUIRED]
The name of the domain in which to register the workflow type.
[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 be the literal string arn .
[REQUIRED]
The version of the workflow type.
Note
The workflow type consists of the name and version, the combination of which must be unique within the domain. To get a list of all currently registered workflow types, use the ListWorkflowTypes action.
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 be the literal string arn .
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 . You can use NONE to specify unlimited duration.
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 always causes the workflow execution to time out.
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 isn't provided when starting the execution through the StartWorkflowExecution Action or StartChildWorkflowExecution Decision .
The name of the task list.
The default task priority to assign to the workflow type. If not assigned, then 0 is 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 SWF Developer Guide .
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:
The default IAM role attached to this workflow type.
Note
Executions of this workflow type need IAM roles to invoke Lambda functions. If you don't specify an IAM role when you start this workflow type, the default Lambda role is attached to the execution. For more information, see https://docs.aws.amazon.com/amazonswf/latest/developerguide/lambda-task.html in the Amazon SWF Developer Guide .
None
Exceptions
Records a WorkflowExecutionCancelRequested event in the currently running workflow execution identified by the given domain, workflowId, and runId. This logically requests the cancellation of the workflow execution as a whole. It is up to the decider to take appropriate actions when it receives an execution history with this event.
Note
If the runId isn't specified, the WorkflowExecutionCancelRequested event is recorded in the history of the current open workflow execution with the specified workflowId in the domain.
Note
Because this action allows the workflow to properly clean up and gracefully close, it should be used instead of TerminateWorkflowExecution when possible.
Access Control
You can use IAM policies to control this action's access to Amazon SWF resources as follows:
If the caller doesn't 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 is set to OPERATION_NOT_PERMITTED . For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer Guide .
See also: AWS API Documentation
Request Syntax
response = client.request_cancel_workflow_execution(
domain='string',
workflowId='string',
runId='string'
)
[REQUIRED]
The name of the domain containing the workflow execution to cancel.
[REQUIRED]
The workflowId of the workflow execution to cancel.
None
Exceptions
Used by workers to tell the service that the ActivityTask identified by the taskToken was successfully canceled. Additional details can be provided using the details argument.
These details (if provided) appear in the ActivityTaskCanceled event added to the workflow history.
Warning
Only use this operation if the canceled flag of a RecordActivityTaskHeartbeat request returns true and if the activity can be safely undone or abandoned.
A task is considered open from the time that it is scheduled until it is closed. Therefore a task is reported as open while a worker is processing it. A task is closed after it has been specified in a call to RespondActivityTaskCompleted , RespondActivityTaskCanceled, RespondActivityTaskFailed , or the task has timed out .
Access Control
You can use IAM policies to control this action's access to Amazon SWF resources as follows:
If the caller doesn't 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 is set to OPERATION_NOT_PERMITTED . For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer Guide .
See also: AWS API Documentation
Request Syntax
response = client.respond_activity_task_canceled(
taskToken='string',
details='string'
)
[REQUIRED]
The taskToken of the ActivityTask .
Warning
taskToken is generated by the service and should be treated as an opaque value. If the task is passed to another process, its taskToken must also be passed. This enables it to provide its progress and respond with results.
None
Exceptions
Used by workers to tell the service that the ActivityTask identified by the taskToken completed successfully with a result (if provided). The result appears in the ActivityTaskCompleted event in the workflow history.
Warning
If the requested task doesn't complete successfully, use RespondActivityTaskFailed instead. If the worker finds that the task is canceled through the canceled flag returned by RecordActivityTaskHeartbeat , it should cancel the task, clean up and then call RespondActivityTaskCanceled .
A task is considered open from the time that it is scheduled until it is closed. Therefore a task is reported as open while a worker is processing it. A task is closed after it has been specified in a call to RespondActivityTaskCompleted, RespondActivityTaskCanceled , RespondActivityTaskFailed , or the task has timed out .
Access Control
You can use IAM policies to control this action's access to Amazon SWF resources as follows:
If the caller doesn't 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 is set to OPERATION_NOT_PERMITTED . For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer Guide .
See also: AWS API Documentation
Request Syntax
response = client.respond_activity_task_completed(
taskToken='string',
result='string'
)
[REQUIRED]
The taskToken of the ActivityTask .
Warning
taskToken is generated by the service and should be treated as an opaque value. If the task is passed to another process, its taskToken must also be passed. This enables it to provide its progress and respond with results.
None
Exceptions
Used by workers to tell the service that the ActivityTask identified by the taskToken has failed with reason (if specified). The reason and details appear in the ActivityTaskFailed event added to the workflow history.
A task is considered open from the time that it is scheduled until it is closed. Therefore a task is reported as open while a worker is processing it. A task is closed after it has been specified in a call to RespondActivityTaskCompleted , RespondActivityTaskCanceled , RespondActivityTaskFailed, or the task has timed out .
Access Control
You can use IAM policies to control this action's access to Amazon SWF resources as follows:
If the caller doesn't 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 is set to OPERATION_NOT_PERMITTED . For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer Guide .
See also: AWS API Documentation
Request Syntax
response = client.respond_activity_task_failed(
taskToken='string',
reason='string',
details='string'
)
[REQUIRED]
The taskToken of the ActivityTask .
Warning
taskToken is generated by the service and should be treated as an opaque value. If the task is passed to another process, its taskToken must also be passed. This enables it to provide its progress and respond with results.
None
Exceptions
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 in the Amazon SWF Developer Guide .
See also: AWS API Documentation
Request Syntax
response = 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',
'control': 'string',
'input': 'string',
'startToCloseTimeout': 'string'
}
},
],
executionContext='string'
)
[REQUIRED]
The taskToken from the DecisionTask .
Warning
taskToken is generated by the service and should be treated as an opaque value. If the task is passed to another process, its taskToken must also be passed. This enables it to provide its progress and respond with results.
The list of decisions (possibly empty) made by the decider while processing this decision task. See the docs for the Decision structure for details.
Specifies a decision made by the decider. A decision can be one of these types:
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 in the Amazon SWF Developer Guide .
Decision Failure
Decisions can fail for several reasons
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 in the Amazon SWF Developer Guide .
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.
Note
A workflow execution may be closed by the decider by returning one of the following decisions when completing a decision task: CompleteWorkflowExecution , FailWorkflowExecution , CancelWorkflowExecution and ContinueAsNewWorkflowExecution . An UnhandledDecision fault is returned if a workflow closing decision is specified and a signal or activity event had been added to the history while the decision task was being performed by the decider. Unlike the above situations which are logic issues, this fault is always possible because of race conditions in a distributed system. The right action here is to call RespondDecisionTaskCompleted without any decisions. This would result in another decision task with these new events included in the history. The decider should handle the new events and may decide to close the workflow execution.
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:
Specifies the type of the decision.
Provides the details of the ScheduleActivityTask decision. It isn't set for other decision types.
The type of the activity task to schedule.
The name of this activity.
Note
The combination of activity type name and version must be unique within a domain.
The version of this activity.
Note
The combination of activity type name and version must be unique with in a domain.
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 arn .
Data attached to the event that can be used by the decider in subsequent workflow tasks. This data isn't sent to the activity.
The input provided to the activity task.
The maximum duration for this activity task.
The duration is specified in seconds, an integer greater than or equal to 0 . You can use NONE to specify unlimited duration.
Note
A schedule-to-close timeout for this activity task must be specified either as a default for the activity type or through this field. If neither this field is set nor a default schedule-to-close timeout was specified at registration time then a fault is returned.
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 is used.
Note
A task list for this activity task must be specified either as a default for the activity type or through this field. If neither this field is set nor a default task list was specified at registration time then a fault is returned.
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 arn .
The name of the task list.
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 SWF Developer Guide .
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 . You can use NONE to specify unlimited duration.
Note
A schedule-to-start timeout for this activity task must be specified either as a default for the activity type or through this field. If neither this field is set nor a default schedule-to-start timeout was specified at registration time then a fault is returned.
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 . You can use NONE to specify unlimited duration.
Note
A start-to-close timeout for this activity task must be specified either as a default for the activity type or through this field. If neither this field is set nor a default start-to-close timeout was specified at registration time then a fault is returned.
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 is 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 . You can use NONE to specify unlimited duration.
Provides the details of the RequestCancelActivityTask decision. It isn't set for other decision types.
The activityId of the activity task to be canceled.
Provides the details of the CompleteWorkflowExecution decision. It isn't set for other decision types.
The result of the workflow execution. The form of the result is implementation defined.
Provides the details of the FailWorkflowExecution decision. It isn't set for other decision types.
A descriptive reason for the failure that may help in diagnostics.
Details of the failure.
Provides the details of the CancelWorkflowExecution decision. It isn't set for other decision types.
Details of the cancellation.
Provides the details of the ContinueAsNewWorkflowExecution decision. It isn't set for other decision types.
The input provided to the new workflow execution.
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 . You can use NONE to specify unlimited duration.
Note
An execution start-to-close timeout for this workflow execution must be specified either as a default for the workflow type or through this field. If neither this field is set nor a default execution start-to-close timeout was specified at registration time then a fault is returned.
The task list to use for the decisions of the new (continued) workflow execution.
The name of the task list.
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 SWF Developer Guide .
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 . You can use NONE to specify unlimited duration.
Note
A task start-to-close timeout for the new workflow execution must be specified either as a default for the workflow type or through this parameter. If neither this parameter is set nor a default task start-to-close timeout was specified at registration time then a fault is returned.
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:
Note
A child policy for this workflow execution must be specified either as a default for the workflow type or through this parameter. If neither this parameter is set nor a default child policy was specified at registration time then a fault is returned.
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 .
The version of the workflow to start.
The IAM role to attach to the new (continued) execution.
Provides the details of the RecordMarker decision. It isn't set for other decision types.
The name of the marker.
The details of the marker.
Provides the details of the StartTimer decision. It isn't set for other decision types.
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 arn .
The data attached to the event that can be used by the decider in subsequent workflow tasks.
The duration to wait before firing the timer.
The duration is specified in seconds, an integer greater than or equal to 0 .
Provides the details of the CancelTimer decision. It isn't set for other decision types.
The unique ID of the timer to cancel.
Provides the details of the SignalExternalWorkflowExecution decision. It isn't set for other decision types.
The workflowId of the workflow execution to be signaled.
The runId of the workflow execution to be signaled.
The name of the signal.The target workflow execution uses the signal name and input to process the signal.
The input data to be provided with the signal. The target workflow execution uses the signal name and input data to process the signal.
The data attached to the event that can be used by the decider in subsequent decision tasks.
Provides the details of the RequestCancelExternalWorkflowExecution decision. It isn't set for other decision types.
The workflowId of the external workflow execution to cancel.
The runId of the external workflow execution to cancel.
The data attached to the event that can be used by the decider in subsequent workflow tasks.
Provides the details of the StartChildWorkflowExecution decision. It isn't set for other decision types.
The type of the workflow execution to be started.
The name of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
The version of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
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 arn .
The data attached to the event that can be used by the decider in subsequent workflow tasks. This data isn't sent to the child workflow execution.
The input to be provided to the workflow execution.
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 . You can use NONE to specify unlimited duration.
Note
An execution start-to-close timeout for this workflow execution must be specified either as a default for the workflow type or through this parameter. If neither this parameter is set nor a default execution start-to-close timeout was specified at registration time then a fault is returned.
The name of the task list to be used for decision tasks of the child workflow execution.
Note
A task list for this workflow execution must be specified either as a default for the workflow type or through this parameter. If neither this parameter is set nor a default task list was specified at registration time then a fault is returned.
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 arn .
The name of the task list.
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 SWF Developer Guide .
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 . You can use NONE to specify unlimited duration.
Note
A task start-to-close timeout for this workflow execution must be specified either as a default for the workflow type or through this parameter. If neither this parameter is set nor a default task start-to-close timeout was specified at registration time then a fault is returned.
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:
Note
A child policy for this workflow execution must be specified either as a default for the workflow type or through this parameter. If neither this parameter is set nor a default child policy was specified at registration time then a fault is returned.
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 .
The IAM role attached to the child workflow execution.
Provides the details of the ScheduleLambdaFunction decision. It isn't set for other decision types.
A string that identifies the Lambda function execution in the event history.
The name, or ARN, of the Lambda function to schedule.
The data attached to the event that the decider can use in subsequent workflow tasks. This data isn't sent to the Lambda task.
The optional input data to be supplied to the Lambda function.
The timeout value, in seconds, after which the Lambda function is considered to be failed once it has started. This can be any integer from 1-300 (1s-5m). If no value is supplied, than a default value of 300s is assumed.
None
Exceptions
Records a WorkflowExecutionSignaled event in the workflow execution history and creates a decision task for the workflow execution identified by the given domain, workflowId and runId. The event is recorded with the specified user defined signalName and input (if provided).
Note
If a runId isn't specified, then the WorkflowExecutionSignaled event is recorded in the history of the current open workflow with the matching workflowId in the domain.
Note
If the specified workflow execution isn't open, this method fails with UnknownResource .
Access Control
You can use IAM policies to control this action's access to Amazon SWF resources as follows:
If the caller doesn't 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 is set to OPERATION_NOT_PERMITTED . For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer Guide .
See also: AWS API Documentation
Request Syntax
response = client.signal_workflow_execution(
domain='string',
workflowId='string',
runId='string',
signalName='string',
input='string'
)
[REQUIRED]
The name of the domain containing the workflow execution to signal.
[REQUIRED]
The workflowId of the workflow execution to signal.
[REQUIRED]
The name of the signal. This name must be meaningful to the target workflow.
None
Exceptions
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:
If the caller doesn't 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 is set to OPERATION_NOT_PERMITTED . For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer Guide .
See also: AWS API Documentation
Request Syntax
response = 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'
)
[REQUIRED]
The name of the domain in which the workflow execution is created.
[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 within the same domain.
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 be the literal string arn .
[REQUIRED]
The type of the workflow to start.
The name of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
The version of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
The task list to use for the decision tasks generated for this workflow execution. This overrides the defaultTaskList specified when registering the workflow type.
Note
A task list for this workflow execution must be specified either as a default for the workflow type or through this parameter. If neither this parameter is set nor a default task list was specified at registration time then a fault is returned.
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 be the literal string arn .
The name of the task list.
The task priority to use for this workflow execution. This overrides any default priority that was assigned when the workflow type was registered. If not set, then the default task priority for the workflow type is 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 SWF Developer Guide .
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 causes 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.
Note
An execution start-to-close timeout must be specified either through this parameter or as a default when the workflow type is registered. If neither this parameter nor a default execution start-to-close timeout is specified, a fault is returned.
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 .
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 . You can use NONE to specify unlimited duration.
Note
A task start-to-close timeout for this workflow execution must be specified either as a default for the workflow type or through this parameter. If neither this parameter is set nor a default task start-to-close timeout was specified at registration time then a fault is returned.
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:
Note
A child policy for this workflow execution must be specified either as a default for the workflow type or through this parameter. If neither this parameter is set nor a default child policy was specified at registration time then a fault is returned.
The IAM role to attach to this workflow execution.
Note
Executions of this workflow type need IAM roles to invoke Lambda functions. If you don't attach an IAM role, any attempt to schedule a Lambda task fails. This results in a ScheduleLambdaFunctionFailed history event. For more information, see https://docs.aws.amazon.com/amazonswf/latest/developerguide/lambda-task.html in the Amazon SWF Developer Guide .
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.
Exceptions
Add a tag to a Amazon SWF domain.
Note
Amazon SWF supports a maximum of 50 tags per resource.
See also: AWS API Documentation
Request Syntax
response = client.tag_resource(
resourceArn='string',
tags=[
{
'key': 'string',
'value': 'string'
},
]
)
[REQUIRED]
The Amazon Resource Name (ARN) for the Amazon SWF domain.
[REQUIRED]
The list of tags to add to a domain.
Tags may only contain unicode letters, digits, whitespace, or these symbols: _ . : / = + - @ .
Tags are key-value pairs that can be associated with Amazon SWF state machines and activities.
Tags may only contain unicode letters, digits, whitespace, or these symbols: _ . : / = + - @ .
The key of a tag.
The value of a tag.
None
Exceptions
Records a WorkflowExecutionTerminated event and forces closure of the workflow execution identified by the given domain, runId, and workflowId. The child policy, registered with the workflow type or specified when starting this execution, is applied to any open child workflow executions of this workflow execution.
Warning
If the identified workflow execution was in progress, it is terminated immediately.
Note
If a runId isn't specified, then the WorkflowExecutionTerminated event is recorded in the history of the current open workflow with the matching workflowId in the domain.
Note
You should consider using RequestCancelWorkflowExecution action instead because it allows the workflow to gracefully close while TerminateWorkflowExecution doesn't.
Access Control
You can use IAM policies to control this action's access to Amazon SWF resources as follows:
If the caller doesn't 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 is set to OPERATION_NOT_PERMITTED . For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer Guide .
See also: AWS API Documentation
Request Syntax
response = client.terminate_workflow_execution(
domain='string',
workflowId='string',
runId='string',
reason='string',
details='string',
childPolicy='TERMINATE'|'REQUEST_CANCEL'|'ABANDON'
)
[REQUIRED]
The domain of the workflow execution to terminate.
[REQUIRED]
The workflowId of the workflow execution to terminate.
If set, specifies the policy to use for the child workflow executions of the workflow execution being terminated. This policy overrides the child policy specified for the workflow execution at registration time or when starting the execution.
The supported child policies are:
Note
A child policy for this workflow execution must be specified either as a default for the workflow type or through this parameter. If neither this parameter is set nor a default child policy was specified at registration time then a fault is returned.
None
Exceptions
Undeprecates a previously deprecated activity type . After an activity type has been undeprecated, you can create new tasks of that activity type.
Note
This operation is eventually consistent. The results are best effort and may not exactly reflect recent updates and changes.
Access Control
You can use IAM policies to control this action's access to Amazon SWF resources as follows:
If the caller doesn't 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 is set to OPERATION_NOT_PERMITTED . For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer Guide .
See also: AWS API Documentation
Request Syntax
response = client.undeprecate_activity_type(
domain='string',
activityType={
'name': 'string',
'version': 'string'
}
)
[REQUIRED]
The name of the domain of the deprecated activity type.
[REQUIRED]
The activity type to undeprecate.
The name of this activity.
Note
The combination of activity type name and version must be unique within a domain.
The version of this activity.
Note
The combination of activity type name and version must be unique with in a domain.
None
Exceptions
Undeprecates a previously deprecated domain. After a domain has been undeprecated it can be used to create new workflow executions or register new types.
Note
This operation is eventually consistent. The results are best effort and may not exactly reflect recent updates and changes.
Access Control
You can use IAM policies to control this action's access to Amazon SWF resources as follows:
If the caller doesn't 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 is set to OPERATION_NOT_PERMITTED . For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer Guide .
See also: AWS API Documentation
Request Syntax
response = client.undeprecate_domain(
name='string'
)
[REQUIRED]
The name of the domain of the deprecated workflow type.
Exceptions
Undeprecates a previously deprecated workflow type . After a workflow type has been undeprecated, you can create new executions of that type.
Note
This operation is eventually consistent. The results are best effort and may not exactly reflect recent updates and changes.
Access Control
You can use IAM policies to control this action's access to Amazon SWF resources as follows:
If the caller doesn't 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 is set to OPERATION_NOT_PERMITTED . For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer Guide .
See also: AWS API Documentation
Request Syntax
response = client.undeprecate_workflow_type(
domain='string',
workflowType={
'name': 'string',
'version': 'string'
}
)
[REQUIRED]
The name of the domain of the deprecated workflow type.
[REQUIRED]
The name of the domain of the deprecated workflow type.
The name of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
The version of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
None
Exceptions
Remove a tag from a Amazon SWF domain.
See also: AWS API Documentation
Request Syntax
response = client.untag_resource(
resourceArn='string',
tagKeys=[
'string',
]
)
[REQUIRED]
The Amazon Resource Name (ARN) for the Amazon SWF domain.
[REQUIRED]
The list of tags to remove from the Amazon SWF domain.
None
Exceptions
The available paginators are:
paginator = client.get_paginator('get_workflow_execution_history')
Creates an iterator that will paginate through responses from SWF.Client.get_workflow_execution_history().
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
domain='string',
execution={
'workflowId': 'string',
'runId': 'string'
},
reverseOrder=True|False,
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
[REQUIRED]
The name of the domain containing the workflow execution.
[REQUIRED]
Specifies the workflow execution for which to return the history.
The user defined identifier associated with the workflow execution.
A system-generated unique identifier for the workflow execution.
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken from a previous response.
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'
},
'taskPriority': 'string',
'workflowType': {
'name': 'string',
'version': 'string'
},
'tagList': [
'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',
'control': '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'
}
},
],
'NextToken': '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:
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 isn't set for other event types.
input (string) --
The input provided to the workflow execution.
executionStartToCloseTimeout (string) --
The maximum duration for this workflow execution.
The duration is specified in seconds, an integer greater than or equal to 0 . You can use NONE 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 . You can use NONE 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:
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.
taskPriority (string) --
The priority of the decision tasks in the workflow execution.
workflowType (dict) --
The workflow type of this execution.
name (string) --
The name of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
version (string) --
The version of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
tagList (list) --
The list of tags associated with this workflow execution. An execution can have up to 5 tags.
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 isn't 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 the workflow execution.
workflowExecutionCompletedEventAttributes (dict) --
If the event is of type WorkflowExecutionCompleted then this member is set and provides detailed information about the event. It isn't 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 isn't 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.
Note
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 in the Amazon SWF Developer Guide .
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 isn't set for other event types.
reason (string) --
The descriptive reason provided for the failure.
details (string) --
The details of the failure.
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 isn't 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.
Note
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 in the Amazon SWF Developer Guide .
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 isn't 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:
workflowExecutionCanceledEventAttributes (dict) --
If the event is of type WorkflowExecutionCanceled then this member is set and provides detailed information about the event. It isn't set for other event types.
details (string) --
The details of the cancellation.
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 isn't 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.
Note
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 in the Amazon SWF Developer Guide .
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 isn't 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 . You can use NONE to specify unlimited duration.
taskList (dict) --
The task list to use for the decisions of the new (continued) workflow execution.
name (string) --
The name of the task list.
taskPriority (string) --
The priority of the task to use for the decisions of the new (continued) workflow execution.
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 . You can use NONE 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:
tagList (list) --
The list of tags associated with the new workflow execution.
workflowType (dict) --
The workflow type of this execution.
name (string) --
The name of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
version (string) --
The version of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
lambdaRole (string) --
The IAM role to attach to the new (continued) workflow execution.
continueAsNewWorkflowExecutionFailedEventAttributes (dict) --
If the event is of type ContinueAsNewWorkflowExecutionFailed then this member is set and provides detailed information about the event. It isn't 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.
Note
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 in the Amazon SWF Developer Guide .
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 isn't set for other event types.
reason (string) --
The reason provided for the termination.
details (string) --
The details provided for the termination.
childPolicy (string) --
The policy used for the child workflow executions of this workflow execution.
The supported child policies are:
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 isn't 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 isn't 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) --
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 SWF Developer Guide .
startToCloseTimeout (string) --
The maximum duration for this decision task. The task is considered timed out if it doesn't completed within this duration.
The duration is specified in seconds, an integer greater than or equal to 0 . You can use NONE 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 isn't 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 isn't 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 isn't 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 isn't set for other event types.
activityType (dict) --
The type of the activity task.
name (string) --
The name of this activity.
Note
The combination of activity type name and version must be unique within a domain.
version (string) --
The version of this activity.
Note
The combination of activity type name and version must be unique with in a domain.
activityId (string) --
The unique ID of the activity task.
input (string) --
The input provided to the activity task.
control (string) --
Data attached to the event that can be used by the decider in subsequent workflow tasks. This data isn't 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) --
The priority to assign to the scheduled activity task. If set, this overrides 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 SWF 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 is ignored.
activityTaskStartedEventAttributes (dict) --
If the event is of type ActivityTaskStarted then this member is set and provides detailed information about the event. It isn't 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 isn't set for other event types.
result (string) --
The results of the activity task.
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 isn't set for other event types.
reason (string) --
The reason provided for the failure.
details (string) --
The details of the failure.
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 isn't 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 isn't set for other event types.
details (string) --
Details of the cancellation.
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 isn't 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 isn't 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) --
The inputs provided with the signal. 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 isn't set for other event types.
markerName (string) --
The name of the marker.
details (string) --
The details of the marker.
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 isn't 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.
Note
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 in the Amazon SWF Developer Guide .
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 isn't set for other event types.
timerId (string) --
The unique ID of the timer that was started.
control (string) --
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 fires.
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 isn't 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 isn't 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 isn't 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) --
The name of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
version (string) --
The version of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
control (string) --
Data attached to the event that can be used by the decider in subsequent decision tasks. This data isn't sent to the activity.
input (string) --
The inputs provided to the child workflow execution.
executionStartToCloseTimeout (string) --
The maximum duration for the child workflow execution. If the workflow execution isn't closed within this duration, it is timed out and force-terminated.
The duration is specified in seconds, an integer greater than or equal to 0 . You can use NONE 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) --
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 SWF 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:
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 . You can use NONE to specify unlimited duration.
tagList (list) --
The list of tags to associated with the child workflow execution.
lambdaRole (string) --
The IAM role to attach to the child workflow execution.
childWorkflowExecutionStartedEventAttributes (dict) --
If the event is of type ChildWorkflowExecutionStarted then this member is set and provides detailed information about the event. It isn't 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) --
The name of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
version (string) --
The version of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
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 isn't 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) --
The name of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
version (string) --
The version of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
result (string) --
The result 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.
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 isn't 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) --
The name of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
version (string) --
The version of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
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 isn't 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) --
The name of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
version (string) --
The version of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
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 isn't 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) --
The name of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
version (string) --
The version of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
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 isn't 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) --
The name of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
version (string) --
The version of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
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 isn't 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) --
The input provided to the signal.
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) --
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 isn't 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 isn't 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.
Note
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 in the Amazon SWF Developer Guide .
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) --
The data attached to the event that the decider can use in subsequent workflow tasks. This data isn't sent to the workflow execution.
externalWorkflowExecutionCancelRequestedEventAttributes (dict) --
If the event is of type ExternalWorkflowExecutionCancelRequested then this member is set and provides detailed information about the event. It isn't 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 isn't 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) --
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 isn't 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.
Note
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 in the Amazon SWF Developer Guide .
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) --
The data attached to the event that the decider can use in subsequent workflow tasks. This data isn't sent to the workflow execution.
scheduleActivityTaskFailedEventAttributes (dict) --
If the event is of type ScheduleActivityTaskFailed then this member is set and provides detailed information about the event. It isn't set for other event types.
activityType (dict) --
The activity type provided in the ScheduleActivityTask decision that failed.
name (string) --
The name of this activity.
Note
The combination of activity type name and version must be unique within a domain.
version (string) --
The version of this activity.
Note
The combination of activity type name and version must be unique with in a domain.
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.
Note
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 in the Amazon SWF 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.
requestCancelActivityTaskFailedEventAttributes (dict) --
If the event is of type RequestCancelActivityTaskFailed then this member is set and provides detailed information about the event. It isn't 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.
Note
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 in the Amazon SWF Developer Guide .
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 isn't 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.
Note
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 in the Amazon SWF Developer Guide .
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 isn't 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.
Note
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 in the Amazon SWF Developer Guide .
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 isn't set for other event types.
workflowType (dict) --
The workflow type provided in the StartChildWorkflowExecution Decision that failed.
name (string) --
The name of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
version (string) --
The version of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
cause (string) --
The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.
Note
When cause is set to OPERATION_NOT_PERMITTED , the decision fails because it lacks sufficient permissions. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer Guide .
workflowId (string) --
The workflowId of the child workflow execution.
initiatedEventId (integer) --
When the cause is WORKFLOW_ALREADY_RUNNING , initiatedEventId is the ID of the StartChildWorkflowExecutionInitiated event that corresponds to the StartChildWorkflowExecution Decision to start the workflow execution. You can use this information to diagnose problems by tracing back the chain of events leading up to this event.
When the cause isn't WORKFLOW_ALREADY_RUNNING , initiatedEventId is set to 0 because the StartChildWorkflowExecutionInitiated event doesn't exist.
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 chain of events.
control (string) --
The data attached to the event that the decider can use in subsequent workflow tasks. This data isn't sent to the child workflow execution.
lambdaFunctionScheduledEventAttributes (dict) --
Provides the details of the LambdaFunctionScheduled event. It isn't set for other event types.
id (string) --
The unique ID of the Lambda task.
name (string) --
The name of the Lambda function.
control (string) --
Data attached to the event that the decider can use in subsequent workflow tasks. This data isn't sent to the Lambda task.
input (string) --
The input provided to the Lambda task.
startToCloseTimeout (string) --
The maximum amount of time a worker can take to process the Lambda task.
decisionTaskCompletedEventId (integer) --
The ID of the LambdaFunctionCompleted event corresponding to the decision that resulted in scheduling this activity task. To help diagnose issues, use this information to trace back the chain of events leading up to this event.
lambdaFunctionStartedEventAttributes (dict) --
Provides the details of the LambdaFunctionStarted event. It isn't set for other event types.
scheduledEventId (integer) --
The ID of the LambdaFunctionScheduled event that was recorded when this activity task was scheduled. To help diagnose issues, use this information to trace back the chain of events leading up to this event.
lambdaFunctionCompletedEventAttributes (dict) --
Provides the details of the LambdaFunctionCompleted event. It isn't set for other event types.
scheduledEventId (integer) --
The ID of the LambdaFunctionScheduled event that was recorded when this Lambda task was scheduled. To help diagnose issues, use this information to trace back the chain of events leading up to this event.
startedEventId (integer) --
The ID of the LambdaFunctionStarted event recorded when this activity task started. To help diagnose issues, use this information to trace back the chain of events leading up to this event.
result (string) --
The results of the Lambda task.
lambdaFunctionFailedEventAttributes (dict) --
Provides the details of the LambdaFunctionFailed event. It isn't set for other event types.
scheduledEventId (integer) --
The ID of the LambdaFunctionScheduled event that was recorded when this activity task was scheduled. To help diagnose issues, use this information to trace back the chain of events leading up to this event.
startedEventId (integer) --
The ID of the LambdaFunctionStarted event recorded when this activity task started. To help diagnose issues, use this information to trace back the chain of events leading up to this event.
reason (string) --
The reason provided for the failure.
details (string) --
The details of the failure.
lambdaFunctionTimedOutEventAttributes (dict) --
Provides the details of the LambdaFunctionTimedOut event. It isn't set for other event types.
scheduledEventId (integer) --
The ID of the LambdaFunctionScheduled event that was recorded when this activity task was scheduled. To help diagnose issues, use this information to trace back the chain of events leading up to this event.
startedEventId (integer) --
The ID of the ActivityTaskStarted event that was recorded when this activity task started. To help diagnose issues, use this information to trace back the chain of events leading up to this event.
timeoutType (string) --
The type of the timeout that caused this event.
scheduleLambdaFunctionFailedEventAttributes (dict) --
Provides the details of the ScheduleLambdaFunctionFailed event. It isn't set for other event types.
id (string) --
The ID provided in the ScheduleLambdaFunction decision that failed.
name (string) --
The name of the Lambda function.
cause (string) --
The cause of the failure. To help diagnose issues, use this information to trace back the chain of events leading up to this event.
Note
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 in the Amazon SWF Developer Guide .
decisionTaskCompletedEventId (integer) --
The ID of the LambdaFunctionCompleted event corresponding to the decision that resulted in scheduling this Lambda task. To help diagnose issues, use this information to trace back the chain of events leading up to this event.
startLambdaFunctionFailedEventAttributes (dict) --
Provides the details of the StartLambdaFunctionFailed event. It isn't set for other event types.
scheduledEventId (integer) --
The ID of the ActivityTaskScheduled event that was recorded when this activity task was scheduled. To help diagnose issues, use this information to trace back the chain of events leading up to this event.
cause (string) --
The cause of the failure. To help diagnose issues, use this information to trace back the chain of events leading up to this event.
Note
If cause is set to OPERATION_NOT_PERMITTED , the decision failed because the IAM role attached to the execution lacked sufficient permissions. For details and example IAM policies, see Lambda Tasks in the Amazon SWF Developer Guide .
message (string) --
A description that can help diagnose the cause of the fault.
NextToken (string) --
A token to resume pagination.
paginator = client.get_paginator('list_activity_types')
Creates an iterator that will paginate through responses from SWF.Client.list_activity_types().
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
domain='string',
name='string',
registrationStatus='REGISTERED'|'DEPRECATED',
reverseOrder=True|False,
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
[REQUIRED]
The name of the domain in which the activity types have been registered.
[REQUIRED]
Specifies the registration status of the activity types to list.
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken from a previous response.
dict
Response Syntax
{
'typeInfos': [
{
'activityType': {
'name': 'string',
'version': 'string'
},
'status': 'REGISTERED'|'DEPRECATED',
'description': 'string',
'creationDate': datetime(2015, 1, 1),
'deprecationDate': datetime(2015, 1, 1)
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
Contains a paginated list of activity type information structures.
typeInfos (list) --
List of activity type information.
(dict) --
Detailed information about an activity type.
activityType (dict) --
The ActivityType type structure representing the activity type.
name (string) --
The name of this activity.
Note
The combination of activity type name and version must be unique within a domain.
version (string) --
The version of this activity.
Note
The combination of activity type name and version must be unique with in a domain.
status (string) --
The current status of the activity type.
description (string) --
The description of the activity type provided in RegisterActivityType .
creationDate (datetime) --
The date and time this activity type was created through RegisterActivityType .
deprecationDate (datetime) --
If DEPRECATED, the date and time DeprecateActivityType was called.
NextToken (string) --
A token to resume pagination.
paginator = client.get_paginator('list_closed_workflow_executions')
Creates an iterator that will paginate through responses from SWF.Client.list_closed_workflow_executions().
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
domain='string',
startTimeFilter={
'oldestDate': datetime(2015, 1, 1),
'latestDate': datetime(2015, 1, 1)
},
closeTimeFilter={
'oldestDate': datetime(2015, 1, 1),
'latestDate': datetime(2015, 1, 1)
},
executionFilter={
'workflowId': 'string'
},
closeStatusFilter={
'status': 'COMPLETED'|'FAILED'|'CANCELED'|'TERMINATED'|'CONTINUED_AS_NEW'|'TIMED_OUT'
},
typeFilter={
'name': 'string',
'version': 'string'
},
tagFilter={
'tag': 'string'
},
reverseOrder=True|False,
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
[REQUIRED]
The name of the domain that contains the workflow executions to list.
If specified, the workflow executions are included in the returned results based on whether their start times are within the range specified by this filter. Also, if this parameter is specified, the returned results are ordered by their start times.
Note
startTimeFilter and closeTimeFilter are mutually exclusive. You must specify one of these in a request but not both.
Specifies the oldest start or close date and time to return.
Specifies the latest start or close date and time to return.
If specified, the workflow executions are included in the returned results based on whether their close times are within the range specified by this filter. Also, if this parameter is specified, the returned results are ordered by their close times.
Note
startTimeFilter and closeTimeFilter are mutually exclusive. You must specify one of these in a request but not both.
Specifies the oldest start or close date and time to return.
Specifies the latest start or close date and time to return.
If specified, only workflow executions matching the workflow ID specified in the filter are returned.
Note
closeStatusFilter , executionFilter , typeFilter and tagFilter are mutually exclusive. You can specify at most one of these in a request.
The workflowId to pass of match the criteria of this filter.
If specified, only workflow executions that match this close status are listed. For example, if TERMINATED is specified, then only TERMINATED workflow executions are listed.
Note
closeStatusFilter , executionFilter , typeFilter and tagFilter are mutually exclusive. You can specify at most one of these in a request.
The close status that must match the close status of an execution for it to meet the criteria of this filter.
If specified, only executions of the type specified in the filter are returned.
Note
closeStatusFilter , executionFilter , typeFilter and tagFilter are mutually exclusive. You can specify at most one of these in a request.
Name of the workflow type.
Version of the workflow type.
If specified, only executions that have the matching tag are listed.
Note
closeStatusFilter , executionFilter , typeFilter and tagFilter are mutually exclusive. You can specify at most one of these in a request.
Specifies the tag that must be associated with the execution for it to meet the filter criteria.
Tags may only contain unicode letters, digits, whitespace, or these symbols: _ . : / = + - @ .
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken from a previous response.
dict
Response Syntax
{
'executionInfos': [
{
'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
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
Contains a paginated list of information about workflow executions.
executionInfos (list) --
The list of workflow information structures.
(dict) --
Contains information about a 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) --
The name of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
version (string) --
The version of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
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:
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.
cancelRequested (boolean) --
Set to true if a cancellation is requested for this workflow execution.
NextToken (string) --
A token to resume pagination.
paginator = client.get_paginator('list_domains')
Creates an iterator that will paginate through responses from SWF.Client.list_domains().
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
registrationStatus='REGISTERED'|'DEPRECATED',
reverseOrder=True|False,
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
[REQUIRED]
Specifies the registration status of the domains to list.
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken from a previous response.
dict
Response Syntax
{
'domainInfos': [
{
'name': 'string',
'status': 'REGISTERED'|'DEPRECATED',
'description': 'string',
'arn': 'string'
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
Contains a paginated collection of DomainInfo structures.
domainInfos (list) --
A list of DomainInfo structures.
(dict) --
Contains general information about a domain.
name (string) --
The name of the domain. This name is unique within the account.
status (string) --
The status of the domain:
description (string) --
The description of the domain provided through RegisterDomain .
arn (string) --
The ARN of the domain.
NextToken (string) --
A token to resume pagination.
paginator = client.get_paginator('list_open_workflow_executions')
Creates an iterator that will paginate through responses from SWF.Client.list_open_workflow_executions().
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
domain='string',
startTimeFilter={
'oldestDate': datetime(2015, 1, 1),
'latestDate': datetime(2015, 1, 1)
},
typeFilter={
'name': 'string',
'version': 'string'
},
tagFilter={
'tag': 'string'
},
reverseOrder=True|False,
executionFilter={
'workflowId': 'string'
},
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
[REQUIRED]
The name of the domain that contains the workflow executions to list.
[REQUIRED]
Workflow executions are included in the returned results based on whether their start times are within the range specified by this filter.
Specifies the oldest start or close date and time to return.
Specifies the latest start or close date and time to return.
If specified, only executions of the type specified in the filter are returned.
Note
executionFilter , typeFilter and tagFilter are mutually exclusive. You can specify at most one of these in a request.
Name of the workflow type.
Version of the workflow type.
If specified, only executions that have the matching tag are listed.
Note
executionFilter , typeFilter and tagFilter are mutually exclusive. You can specify at most one of these in a request.
Specifies the tag that must be associated with the execution for it to meet the filter criteria.
Tags may only contain unicode letters, digits, whitespace, or these symbols: _ . : / = + - @ .
If specified, only workflow executions matching the workflow ID specified in the filter are returned.
Note
executionFilter , typeFilter and tagFilter are mutually exclusive. You can specify at most one of these in a request.
The workflowId to pass of match the criteria of this filter.
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken from a previous response.
dict
Response Syntax
{
'executionInfos': [
{
'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
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
Contains a paginated list of information about workflow executions.
executionInfos (list) --
The list of workflow information structures.
(dict) --
Contains information about a 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) --
The name of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
version (string) --
The version of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
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:
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.
cancelRequested (boolean) --
Set to true if a cancellation is requested for this workflow execution.
NextToken (string) --
A token to resume pagination.
paginator = client.get_paginator('list_workflow_types')
Creates an iterator that will paginate through responses from SWF.Client.list_workflow_types().
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
domain='string',
name='string',
registrationStatus='REGISTERED'|'DEPRECATED',
reverseOrder=True|False,
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
[REQUIRED]
The name of the domain in which the workflow types have been registered.
[REQUIRED]
Specifies the registration status of the workflow types to list.
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken from a previous response.
dict
Response Syntax
{
'typeInfos': [
{
'workflowType': {
'name': 'string',
'version': 'string'
},
'status': 'REGISTERED'|'DEPRECATED',
'description': 'string',
'creationDate': datetime(2015, 1, 1),
'deprecationDate': datetime(2015, 1, 1)
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
Contains a paginated list of information structures about workflow types.
typeInfos (list) --
The list of workflow type information.
(dict) --
Contains information about a workflow type.
workflowType (dict) --
The workflow type this information is about.
name (string) --
The name of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
version (string) --
The version of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
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.
NextToken (string) --
A token to resume pagination.
paginator = client.get_paginator('poll_for_decision_task')
Creates an iterator that will paginate through responses from SWF.Client.poll_for_decision_task().
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
domain='string',
taskList={
'name': 'string'
},
identity='string',
reverseOrder=True|False,
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
[REQUIRED]
The name of the domain containing the task lists to poll.
[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 be the literal string arn .
The name of the task list.
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken from a previous response.
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'
},
'taskPriority': 'string',
'workflowType': {
'name': 'string',
'version': 'string'
},
'tagList': [
'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',
'control': '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'
}
},
],
'previousStartedEventId': 123,
'NextToken': 'string'
}
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) --
The name of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
version (string) --
The version of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
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:
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 isn't set for other event types.
input (string) --
The input provided to the workflow execution.
executionStartToCloseTimeout (string) --
The maximum duration for this workflow execution.
The duration is specified in seconds, an integer greater than or equal to 0 . You can use NONE 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 . You can use NONE 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:
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.
taskPriority (string) --
The priority of the decision tasks in the workflow execution.
workflowType (dict) --
The workflow type of this execution.
name (string) --
The name of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
version (string) --
The version of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
tagList (list) --
The list of tags associated with this workflow execution. An execution can have up to 5 tags.
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 isn't 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 the workflow execution.
workflowExecutionCompletedEventAttributes (dict) --
If the event is of type WorkflowExecutionCompleted then this member is set and provides detailed information about the event. It isn't 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 isn't 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.
Note
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 in the Amazon SWF Developer Guide .
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 isn't set for other event types.
reason (string) --
The descriptive reason provided for the failure.
details (string) --
The details of the failure.
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 isn't 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.
Note
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 in the Amazon SWF Developer Guide .
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 isn't 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:
workflowExecutionCanceledEventAttributes (dict) --
If the event is of type WorkflowExecutionCanceled then this member is set and provides detailed information about the event. It isn't set for other event types.
details (string) --
The details of the cancellation.
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 isn't 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.
Note
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 in the Amazon SWF Developer Guide .
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 isn't 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 . You can use NONE to specify unlimited duration.
taskList (dict) --
The task list to use for the decisions of the new (continued) workflow execution.
name (string) --
The name of the task list.
taskPriority (string) --
The priority of the task to use for the decisions of the new (continued) workflow execution.
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 . You can use NONE 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:
tagList (list) --
The list of tags associated with the new workflow execution.
workflowType (dict) --
The workflow type of this execution.
name (string) --
The name of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
version (string) --
The version of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
lambdaRole (string) --
The IAM role to attach to the new (continued) workflow execution.
continueAsNewWorkflowExecutionFailedEventAttributes (dict) --
If the event is of type ContinueAsNewWorkflowExecutionFailed then this member is set and provides detailed information about the event. It isn't 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.
Note
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 in the Amazon SWF Developer Guide .
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 isn't set for other event types.
reason (string) --
The reason provided for the termination.
details (string) --
The details provided for the termination.
childPolicy (string) --
The policy used for the child workflow executions of this workflow execution.
The supported child policies are:
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 isn't 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 isn't 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) --
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 SWF Developer Guide .
startToCloseTimeout (string) --
The maximum duration for this decision task. The task is considered timed out if it doesn't completed within this duration.
The duration is specified in seconds, an integer greater than or equal to 0 . You can use NONE 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 isn't 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 isn't 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 isn't 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 isn't set for other event types.
activityType (dict) --
The type of the activity task.
name (string) --
The name of this activity.
Note
The combination of activity type name and version must be unique within a domain.
version (string) --
The version of this activity.
Note
The combination of activity type name and version must be unique with in a domain.
activityId (string) --
The unique ID of the activity task.
input (string) --
The input provided to the activity task.
control (string) --
Data attached to the event that can be used by the decider in subsequent workflow tasks. This data isn't 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) --
The priority to assign to the scheduled activity task. If set, this overrides 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 SWF 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 is ignored.
activityTaskStartedEventAttributes (dict) --
If the event is of type ActivityTaskStarted then this member is set and provides detailed information about the event. It isn't 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 isn't set for other event types.
result (string) --
The results of the activity task.
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 isn't set for other event types.
reason (string) --
The reason provided for the failure.
details (string) --
The details of the failure.
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 isn't 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 isn't set for other event types.
details (string) --
Details of the cancellation.
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 isn't 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 isn't 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) --
The inputs provided with the signal. 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 isn't set for other event types.
markerName (string) --
The name of the marker.
details (string) --
The details of the marker.
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 isn't 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.
Note
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 in the Amazon SWF Developer Guide .
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 isn't set for other event types.
timerId (string) --
The unique ID of the timer that was started.
control (string) --
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 fires.
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 isn't 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 isn't 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 isn't 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) --
The name of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
version (string) --
The version of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
control (string) --
Data attached to the event that can be used by the decider in subsequent decision tasks. This data isn't sent to the activity.
input (string) --
The inputs provided to the child workflow execution.
executionStartToCloseTimeout (string) --
The maximum duration for the child workflow execution. If the workflow execution isn't closed within this duration, it is timed out and force-terminated.
The duration is specified in seconds, an integer greater than or equal to 0 . You can use NONE 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) --
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 SWF 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:
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 . You can use NONE to specify unlimited duration.
tagList (list) --
The list of tags to associated with the child workflow execution.
lambdaRole (string) --
The IAM role to attach to the child workflow execution.
childWorkflowExecutionStartedEventAttributes (dict) --
If the event is of type ChildWorkflowExecutionStarted then this member is set and provides detailed information about the event. It isn't 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) --
The name of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
version (string) --
The version of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
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 isn't 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) --
The name of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
version (string) --
The version of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
result (string) --
The result 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.
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 isn't 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) --
The name of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
version (string) --
The version of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
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 isn't 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) --
The name of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
version (string) --
The version of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
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 isn't 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) --
The name of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
version (string) --
The version of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
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 isn't 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) --
The name of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
version (string) --
The version of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
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 isn't 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) --
The input provided to the signal.
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) --
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 isn't 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 isn't 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.
Note
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 in the Amazon SWF Developer Guide .
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) --
The data attached to the event that the decider can use in subsequent workflow tasks. This data isn't sent to the workflow execution.
externalWorkflowExecutionCancelRequestedEventAttributes (dict) --
If the event is of type ExternalWorkflowExecutionCancelRequested then this member is set and provides detailed information about the event. It isn't 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 isn't 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) --
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 isn't 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.
Note
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 in the Amazon SWF Developer Guide .
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) --
The data attached to the event that the decider can use in subsequent workflow tasks. This data isn't sent to the workflow execution.
scheduleActivityTaskFailedEventAttributes (dict) --
If the event is of type ScheduleActivityTaskFailed then this member is set and provides detailed information about the event. It isn't set for other event types.
activityType (dict) --
The activity type provided in the ScheduleActivityTask decision that failed.
name (string) --
The name of this activity.
Note
The combination of activity type name and version must be unique within a domain.
version (string) --
The version of this activity.
Note
The combination of activity type name and version must be unique with in a domain.
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.
Note
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 in the Amazon SWF 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.
requestCancelActivityTaskFailedEventAttributes (dict) --
If the event is of type RequestCancelActivityTaskFailed then this member is set and provides detailed information about the event. It isn't 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.
Note
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 in the Amazon SWF Developer Guide .
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 isn't 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.
Note
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 in the Amazon SWF Developer Guide .
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 isn't 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.
Note
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 in the Amazon SWF Developer Guide .
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 isn't set for other event types.
workflowType (dict) --
The workflow type provided in the StartChildWorkflowExecution Decision that failed.
name (string) --
The name of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
version (string) --
The version of the workflow type.
Note
The combination of workflow type name and version must be unique with in a domain.
cause (string) --
The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.
Note
When cause is set to OPERATION_NOT_PERMITTED , the decision fails because it lacks sufficient permissions. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer Guide .
workflowId (string) --
The workflowId of the child workflow execution.
initiatedEventId (integer) --
When the cause is WORKFLOW_ALREADY_RUNNING , initiatedEventId is the ID of the StartChildWorkflowExecutionInitiated event that corresponds to the StartChildWorkflowExecution Decision to start the workflow execution. You can use this information to diagnose problems by tracing back the chain of events leading up to this event.
When the cause isn't WORKFLOW_ALREADY_RUNNING , initiatedEventId is set to 0 because the StartChildWorkflowExecutionInitiated event doesn't exist.
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 chain of events.
control (string) --
The data attached to the event that the decider can use in subsequent workflow tasks. This data isn't sent to the child workflow execution.
lambdaFunctionScheduledEventAttributes (dict) --
Provides the details of the LambdaFunctionScheduled event. It isn't set for other event types.
id (string) --
The unique ID of the Lambda task.
name (string) --
The name of the Lambda function.
control (string) --
Data attached to the event that the decider can use in subsequent workflow tasks. This data isn't sent to the Lambda task.
input (string) --
The input provided to the Lambda task.
startToCloseTimeout (string) --
The maximum amount of time a worker can take to process the Lambda task.
decisionTaskCompletedEventId (integer) --
The ID of the LambdaFunctionCompleted event corresponding to the decision that resulted in scheduling this activity task. To help diagnose issues, use this information to trace back the chain of events leading up to this event.
lambdaFunctionStartedEventAttributes (dict) --
Provides the details of the LambdaFunctionStarted event. It isn't set for other event types.
scheduledEventId (integer) --
The ID of the LambdaFunctionScheduled event that was recorded when this activity task was scheduled. To help diagnose issues, use this information to trace back the chain of events leading up to this event.
lambdaFunctionCompletedEventAttributes (dict) --
Provides the details of the LambdaFunctionCompleted event. It isn't set for other event types.
scheduledEventId (integer) --
The ID of the LambdaFunctionScheduled event that was recorded when this Lambda task was scheduled. To help diagnose issues, use this information to trace back the chain of events leading up to this event.
startedEventId (integer) --
The ID of the LambdaFunctionStarted event recorded when this activity task started. To help diagnose issues, use this information to trace back the chain of events leading up to this event.
result (string) --
The results of the Lambda task.
lambdaFunctionFailedEventAttributes (dict) --
Provides the details of the LambdaFunctionFailed event. It isn't set for other event types.
scheduledEventId (integer) --
The ID of the LambdaFunctionScheduled event that was recorded when this activity task was scheduled. To help diagnose issues, use this information to trace back the chain of events leading up to this event.
startedEventId (integer) --
The ID of the LambdaFunctionStarted event recorded when this activity task started. To help diagnose issues, use this information to trace back the chain of events leading up to this event.
reason (string) --
The reason provided for the failure.
details (string) --
The details of the failure.
lambdaFunctionTimedOutEventAttributes (dict) --
Provides the details of the LambdaFunctionTimedOut event. It isn't set for other event types.
scheduledEventId (integer) --
The ID of the LambdaFunctionScheduled event that was recorded when this activity task was scheduled. To help diagnose issues, use this information to trace back the chain of events leading up to this event.
startedEventId (integer) --
The ID of the ActivityTaskStarted event that was recorded when this activity task started. To help diagnose issues, use this information to trace back the chain of events leading up to this event.
timeoutType (string) --
The type of the timeout that caused this event.
scheduleLambdaFunctionFailedEventAttributes (dict) --
Provides the details of the ScheduleLambdaFunctionFailed event. It isn't set for other event types.
id (string) --
The ID provided in the ScheduleLambdaFunction decision that failed.
name (string) --
The name of the Lambda function.
cause (string) --
The cause of the failure. To help diagnose issues, use this information to trace back the chain of events leading up to this event.
Note
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 in the Amazon SWF Developer Guide .
decisionTaskCompletedEventId (integer) --
The ID of the LambdaFunctionCompleted event corresponding to the decision that resulted in scheduling this Lambda task. To help diagnose issues, use this information to trace back the chain of events leading up to this event.
startLambdaFunctionFailedEventAttributes (dict) --
Provides the details of the StartLambdaFunctionFailed event. It isn't set for other event types.
scheduledEventId (integer) --
The ID of the ActivityTaskScheduled event that was recorded when this activity task was scheduled. To help diagnose issues, use this information to trace back the chain of events leading up to this event.
cause (string) --
The cause of the failure. To help diagnose issues, use this information to trace back the chain of events leading up to this event.
Note
If cause is set to OPERATION_NOT_PERMITTED , the decision failed because the IAM role attached to the execution lacked sufficient permissions. For details and example IAM policies, see Lambda Tasks in the Amazon SWF Developer Guide .
message (string) --
A description that can help diagnose the cause of the fault.
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.
NextToken (string) --
A token to resume pagination.