Table of Contents
SWF.
Client
¶A low-level client representing Amazon Simple Workflow Service (SWF):
import boto3
client = boto3.client('swf')
These are the available methods:
can_paginate()
count_closed_workflow_executions()
count_open_workflow_executions()
count_pending_activity_tasks()
count_pending_decision_tasks()
deprecate_activity_type()
deprecate_domain()
deprecate_workflow_type()
describe_activity_type()
describe_domain()
describe_workflow_execution()
describe_workflow_type()
generate_presigned_url()
get_paginator()
get_waiter()
get_workflow_execution_history()
list_activity_types()
list_closed_workflow_executions()
list_domains()
list_open_workflow_executions()
list_workflow_types()
poll_for_activity_task()
poll_for_decision_task()
record_activity_task_heartbeat()
register_activity_type()
register_domain()
register_workflow_type()
request_cancel_workflow_execution()
respond_activity_task_canceled()
respond_activity_task_completed()
respond_activity_task_failed()
respond_decision_task_completed()
signal_workflow_execution()
start_workflow_execution()
terminate_workflow_execution()
can_paginate
(operation_name)¶Check if an operation can be paginated.
Parameters: | operation_name (string) -- The operation name. This is the same name
as the method name on the client. For example, if the
method name is create_foo , and you'd normally invoke the
operation as client.create_foo(**kwargs) , if the
create_foo operation can be paginated, you can use the
call client.get_paginator("create_foo") . |
---|---|
Returns: | True if the operation can be paginated,
False otherwise. |
count_closed_workflow_executions
(**kwargs)¶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:
Resource
element with the domain name to limit the action to only specified domains.Action
element to allow or deny permission to call this action.Condition
element with the appropriate keys. * tagFilter.tag
: String constraint. The key is swf:tagFilter.tag
.typeFilter.name
: String constraint. The key is swf:typeFilter.name
.typeFilter.version
: String constraint. The key is swf:typeFilter.version
.If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows .
Request Syntax
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'
}
)
Parameters: |
|
---|---|
Return type: | dict |
Returns: | Response Syntax {
'count': 123,
'truncated': True|False
}
Response Structure
|
count_open_workflow_executions
(**kwargs)¶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:
Resource
element with the domain name to limit the action to only specified domains.Action
element to allow or deny permission to call this action.Condition
element with the appropriate keys. * tagFilter.tag
: String constraint. The key is swf:tagFilter.tag
.typeFilter.name
: String constraint. The key is swf:typeFilter.name
.typeFilter.version
: String constraint. The key is swf:typeFilter.version
.If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows .
Request Syntax
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'
}
)
Parameters: |
|
---|---|
Return type: | dict |
Returns: | Response Syntax {
'count': 123,
'truncated': True|False
}
Response Structure
|
count_pending_activity_tasks
(**kwargs)¶Returns the estimated number of activity tasks in the specified task list. The count returned is an approximation and is not guaranteed to be exact. If you specify a task list that no activity task was ever scheduled in then 0 will be returned.
Access Control
You can use IAM policies to control this action's access to Amazon SWF resources as follows:
Resource
element with the domain name to limit the action to only specified domains.Action
element to allow or deny permission to call this action.taskList.name
parameter by using a Condition element with the swf:taskList.name
key to allow the action to access only certain task lists.If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows .
Request Syntax
response = client.count_pending_activity_tasks(
domain='string',
taskList={
'name': 'string'
}
)
Parameters: |
|
---|---|
Return type: | dict |
Returns: | Response Syntax {
'count': 123,
'truncated': True|False
}
Response Structure
|
count_pending_decision_tasks
(**kwargs)¶Returns the estimated number of decision tasks in the specified task list. The count returned is an approximation and is not guaranteed to be exact. If you specify a task list that no decision task was ever scheduled in then 0 will be returned.
Access Control
You can use IAM policies to control this action's access to Amazon SWF resources as follows:
Resource
element with the domain name to limit the action to only specified domains.Action
element to allow or deny permission to call this action.taskList.name
parameter by using a Condition element with the swf:taskList.name
key to allow the action to access only certain task lists.If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows .
Request Syntax
response = client.count_pending_decision_tasks(
domain='string',
taskList={
'name': 'string'
}
)
Parameters: |
|
---|---|
Return type: | dict |
Returns: | Response Syntax {
'count': 123,
'truncated': True|False
}
Response Structure
|
deprecate_activity_type
(**kwargs)¶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 will 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:
Resource
element with the domain name to limit the action to only specified domains.Action
element to allow or deny permission to call this action.Condition
element with the appropriate keys. * activityType.name
: String constraint. The key is swf:activityType.name
.activityType.version
: String constraint. The key is swf:activityType.version
.If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows .
Request Syntax
response = client.deprecate_activity_type(
domain='string',
activityType={
'name': 'string',
'version': 'string'
}
)
Parameters: |
|
---|---|
Returns: | None |
deprecate_domain
(**kwargs)¶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 will 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:
Resource
element with the domain name to limit the action to only specified domains.Action
element to allow or deny permission to call this action.If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows .
Request Syntax
response = client.deprecate_domain(
name='string'
)
Parameters: | name (string) -- [REQUIRED] The name of the domain to deprecate. |
---|---|
Returns: | None |
deprecate_workflow_type
(**kwargs)¶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 will continue 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:
Resource
element with the domain name to limit the action to only specified domains.Action
element to allow or deny permission to call this action.Condition
element with the appropriate keys. * workflowType.name
: String constraint. The key is swf:workflowType.name
.workflowType.version
: String constraint. The key is swf:workflowType.version
.If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows .
Request Syntax
response = client.deprecate_workflow_type(
domain='string',
workflowType={
'name': 'string',
'version': 'string'
}
)
Parameters: |
|
---|---|
Returns: | None |
describe_activity_type
(**kwargs)¶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:
Resource
element with the domain name to limit the action to only specified domains.Action
element to allow or deny permission to call this action.Condition
element with the appropriate keys. * activityType.name
: String constraint. The key is swf:activityType.name
.activityType.version
: String constraint. The key is swf:activityType.version
.If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows .
Request Syntax
response = client.describe_activity_type(
domain='string',
activityType={
'name': 'string',
'version': 'string'
}
)
Parameters: |
|
---|---|
Return type: | dict |
Returns: | 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
|
describe_domain
(**kwargs)¶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:
Resource
element with the domain name to limit the action to only specified domains.Action
element to allow or deny permission to call this action.If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows .
Request Syntax
response = client.describe_domain(
name='string'
)
Parameters: | name (string) -- [REQUIRED] The name of the domain to describe. |
---|---|
Return type: | dict |
Returns: | Response Syntax{
'domainInfo': {
'name': 'string',
'status': 'REGISTERED'|'DEPRECATED',
'description': 'string'
},
'configuration': {
'workflowExecutionRetentionPeriodInDays': 'string'
}
}
Response Structure
|
describe_workflow_execution
(**kwargs)¶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:
Resource
element with the domain name to limit the action to only specified domains.Action
element to allow or deny permission to call this action.If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows .
Request Syntax
response = client.describe_workflow_execution(
domain='string',
execution={
'workflowId': 'string',
'runId': 'string'
}
)
Parameters: |
|
---|---|
Return type: | dict |
Returns: | 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
|
describe_workflow_type
(**kwargs)¶Returns information about the specified workflow type . This includes configuration settings specified when the type was registered and other information such as creation date, current status, and so on.
Access Control
You can use IAM policies to control this action's access to Amazon SWF resources as follows:
Resource
element with the domain name to limit the action to only specified domains.Action
element to allow or deny permission to call this action.Condition
element with the appropriate keys. * workflowType.name
: String constraint. The key is swf:workflowType.name
.workflowType.version
: String constraint. The key is swf:workflowType.version
.If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows .
Request Syntax
response = client.describe_workflow_type(
domain='string',
workflowType={
'name': 'string',
'version': 'string'
}
)
Parameters: |
|
---|---|
Return type: | dict |
Returns: | 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
|
generate_presigned_url
(ClientMethod, Params=None, ExpiresIn=3600, HttpMethod=None)¶Generate a presigned url given a client, its method, and arguments
Parameters: |
|
---|---|
Returns: | The presigned url |
get_paginator
(operation_name)¶Create a paginator for an operation.
Parameters: | operation_name (string) -- The operation name. This is the same name
as the method name on the client. For example, if the
method name is create_foo , and you'd normally invoke the
operation as client.create_foo(**kwargs) , if the
create_foo operation can be paginated, you can use the
call client.get_paginator("create_foo") . |
---|---|
Raises OperationNotPageableError: | |
Raised if the operation is not
pageable. You can use the client.can_paginate method to
check if an operation is pageable. |
|
Return type: | L{botocore.paginate.Paginator} |
Returns: | A paginator object. |
get_waiter
(waiter_name)¶get_workflow_execution_history
(**kwargs)¶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:
Resource
element with the domain name to limit the action to only specified domains.Action
element to allow or deny permission to call this action.If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows .
Request Syntax
response = client.get_workflow_execution_history(
domain='string',
execution={
'workflowId': 'string',
'runId': 'string'
},
nextPageToken='string',
maximumPageSize=123,
reverseOrder=True|False
)
Parameters: |
|
---|---|
Return type: | dict |
Returns: | Response Syntax {
'events': [
{
'eventTimestamp': datetime(2015, 1, 1),
'eventType': 'WorkflowExecutionStarted'|'WorkflowExecutionCancelRequested'|'WorkflowExecutionCompleted'|'CompleteWorkflowExecutionFailed'|'WorkflowExecutionFailed'|'FailWorkflowExecutionFailed'|'WorkflowExecutionTimedOut'|'WorkflowExecutionCanceled'|'CancelWorkflowExecutionFailed'|'WorkflowExecutionContinuedAsNew'|'ContinueAsNewWorkflowExecutionFailed'|'WorkflowExecutionTerminated'|'DecisionTaskScheduled'|'DecisionTaskStarted'|'DecisionTaskCompleted'|'DecisionTaskTimedOut'|'ActivityTaskScheduled'|'ScheduleActivityTaskFailed'|'ActivityTaskStarted'|'ActivityTaskCompleted'|'ActivityTaskFailed'|'ActivityTaskTimedOut'|'ActivityTaskCanceled'|'ActivityTaskCancelRequested'|'RequestCancelActivityTaskFailed'|'WorkflowExecutionSignaled'|'MarkerRecorded'|'RecordMarkerFailed'|'TimerStarted'|'StartTimerFailed'|'TimerFired'|'TimerCanceled'|'CancelTimerFailed'|'StartChildWorkflowExecutionInitiated'|'StartChildWorkflowExecutionFailed'|'ChildWorkflowExecutionStarted'|'ChildWorkflowExecutionCompleted'|'ChildWorkflowExecutionFailed'|'ChildWorkflowExecutionTimedOut'|'ChildWorkflowExecutionCanceled'|'ChildWorkflowExecutionTerminated'|'SignalExternalWorkflowExecutionInitiated'|'SignalExternalWorkflowExecutionFailed'|'ExternalWorkflowExecutionSignaled'|'RequestCancelExternalWorkflowExecutionInitiated'|'RequestCancelExternalWorkflowExecutionFailed'|'ExternalWorkflowExecutionCancelRequested'|'LambdaFunctionScheduled'|'LambdaFunctionStarted'|'LambdaFunctionCompleted'|'LambdaFunctionFailed'|'LambdaFunctionTimedOut'|'ScheduleLambdaFunctionFailed'|'StartLambdaFunctionFailed',
'eventId': 123,
'workflowExecutionStartedEventAttributes': {
'input': 'string',
'executionStartToCloseTimeout': 'string',
'taskStartToCloseTimeout': 'string',
'childPolicy': 'TERMINATE'|'REQUEST_CANCEL'|'ABANDON',
'taskList': {
'name': 'string'
},
'workflowType': {
'name': 'string',
'version': 'string'
},
'tagList': [
'string',
],
'taskPriority': 'string',
'continuedExecutionRunId': 'string',
'parentWorkflowExecution': {
'workflowId': 'string',
'runId': 'string'
},
'parentInitiatedEventId': 123,
'lambdaRole': 'string'
},
'workflowExecutionCompletedEventAttributes': {
'result': 'string',
'decisionTaskCompletedEventId': 123
},
'completeWorkflowExecutionFailedEventAttributes': {
'cause': 'UNHANDLED_DECISION'|'OPERATION_NOT_PERMITTED',
'decisionTaskCompletedEventId': 123
},
'workflowExecutionFailedEventAttributes': {
'reason': 'string',
'details': 'string',
'decisionTaskCompletedEventId': 123
},
'failWorkflowExecutionFailedEventAttributes': {
'cause': 'UNHANDLED_DECISION'|'OPERATION_NOT_PERMITTED',
'decisionTaskCompletedEventId': 123
},
'workflowExecutionTimedOutEventAttributes': {
'timeoutType': 'START_TO_CLOSE',
'childPolicy': 'TERMINATE'|'REQUEST_CANCEL'|'ABANDON'
},
'workflowExecutionCanceledEventAttributes': {
'details': 'string',
'decisionTaskCompletedEventId': 123
},
'cancelWorkflowExecutionFailedEventAttributes': {
'cause': 'UNHANDLED_DECISION'|'OPERATION_NOT_PERMITTED',
'decisionTaskCompletedEventId': 123
},
'workflowExecutionContinuedAsNewEventAttributes': {
'input': 'string',
'decisionTaskCompletedEventId': 123,
'newExecutionRunId': 'string',
'executionStartToCloseTimeout': 'string',
'taskList': {
'name': 'string'
},
'taskPriority': 'string',
'taskStartToCloseTimeout': 'string',
'childPolicy': 'TERMINATE'|'REQUEST_CANCEL'|'ABANDON',
'tagList': [
'string',
],
'workflowType': {
'name': 'string',
'version': 'string'
},
'lambdaRole': 'string'
},
'continueAsNewWorkflowExecutionFailedEventAttributes': {
'cause': 'UNHANDLED_DECISION'|'WORKFLOW_TYPE_DEPRECATED'|'WORKFLOW_TYPE_DOES_NOT_EXIST'|'DEFAULT_EXECUTION_START_TO_CLOSE_TIMEOUT_UNDEFINED'|'DEFAULT_TASK_START_TO_CLOSE_TIMEOUT_UNDEFINED'|'DEFAULT_TASK_LIST_UNDEFINED'|'DEFAULT_CHILD_POLICY_UNDEFINED'|'CONTINUE_AS_NEW_WORKFLOW_EXECUTION_RATE_EXCEEDED'|'OPERATION_NOT_PERMITTED',
'decisionTaskCompletedEventId': 123
},
'workflowExecutionTerminatedEventAttributes': {
'reason': 'string',
'details': 'string',
'childPolicy': 'TERMINATE'|'REQUEST_CANCEL'|'ABANDON',
'cause': 'CHILD_POLICY_APPLIED'|'EVENT_LIMIT_EXCEEDED'|'OPERATOR_INITIATED'
},
'workflowExecutionCancelRequestedEventAttributes': {
'externalWorkflowExecution': {
'workflowId': 'string',
'runId': 'string'
},
'externalInitiatedEventId': 123,
'cause': 'CHILD_POLICY_APPLIED'
},
'decisionTaskScheduledEventAttributes': {
'taskList': {
'name': 'string'
},
'taskPriority': 'string',
'startToCloseTimeout': 'string'
},
'decisionTaskStartedEventAttributes': {
'identity': 'string',
'scheduledEventId': 123
},
'decisionTaskCompletedEventAttributes': {
'executionContext': 'string',
'scheduledEventId': 123,
'startedEventId': 123
},
'decisionTaskTimedOutEventAttributes': {
'timeoutType': 'START_TO_CLOSE',
'scheduledEventId': 123,
'startedEventId': 123
},
'activityTaskScheduledEventAttributes': {
'activityType': {
'name': 'string',
'version': 'string'
},
'activityId': 'string',
'input': 'string',
'control': 'string',
'scheduleToStartTimeout': 'string',
'scheduleToCloseTimeout': 'string',
'startToCloseTimeout': 'string',
'taskList': {
'name': 'string'
},
'taskPriority': 'string',
'decisionTaskCompletedEventId': 123,
'heartbeatTimeout': 'string'
},
'activityTaskStartedEventAttributes': {
'identity': 'string',
'scheduledEventId': 123
},
'activityTaskCompletedEventAttributes': {
'result': 'string',
'scheduledEventId': 123,
'startedEventId': 123
},
'activityTaskFailedEventAttributes': {
'reason': 'string',
'details': 'string',
'scheduledEventId': 123,
'startedEventId': 123
},
'activityTaskTimedOutEventAttributes': {
'timeoutType': 'START_TO_CLOSE'|'SCHEDULE_TO_START'|'SCHEDULE_TO_CLOSE'|'HEARTBEAT',
'scheduledEventId': 123,
'startedEventId': 123,
'details': 'string'
},
'activityTaskCanceledEventAttributes': {
'details': 'string',
'scheduledEventId': 123,
'startedEventId': 123,
'latestCancelRequestedEventId': 123
},
'activityTaskCancelRequestedEventAttributes': {
'decisionTaskCompletedEventId': 123,
'activityId': 'string'
},
'workflowExecutionSignaledEventAttributes': {
'signalName': 'string',
'input': 'string',
'externalWorkflowExecution': {
'workflowId': 'string',
'runId': 'string'
},
'externalInitiatedEventId': 123
},
'markerRecordedEventAttributes': {
'markerName': 'string',
'details': 'string',
'decisionTaskCompletedEventId': 123
},
'recordMarkerFailedEventAttributes': {
'markerName': 'string',
'cause': 'OPERATION_NOT_PERMITTED',
'decisionTaskCompletedEventId': 123
},
'timerStartedEventAttributes': {
'timerId': 'string',
'control': 'string',
'startToFireTimeout': 'string',
'decisionTaskCompletedEventId': 123
},
'timerFiredEventAttributes': {
'timerId': 'string',
'startedEventId': 123
},
'timerCanceledEventAttributes': {
'timerId': 'string',
'startedEventId': 123,
'decisionTaskCompletedEventId': 123
},
'startChildWorkflowExecutionInitiatedEventAttributes': {
'workflowId': 'string',
'workflowType': {
'name': 'string',
'version': 'string'
},
'control': 'string',
'input': 'string',
'executionStartToCloseTimeout': 'string',
'taskList': {
'name': 'string'
},
'taskPriority': 'string',
'decisionTaskCompletedEventId': 123,
'childPolicy': 'TERMINATE'|'REQUEST_CANCEL'|'ABANDON',
'taskStartToCloseTimeout': 'string',
'tagList': [
'string',
],
'lambdaRole': 'string'
},
'childWorkflowExecutionStartedEventAttributes': {
'workflowExecution': {
'workflowId': 'string',
'runId': 'string'
},
'workflowType': {
'name': 'string',
'version': 'string'
},
'initiatedEventId': 123
},
'childWorkflowExecutionCompletedEventAttributes': {
'workflowExecution': {
'workflowId': 'string',
'runId': 'string'
},
'workflowType': {
'name': 'string',
'version': 'string'
},
'result': 'string',
'initiatedEventId': 123,
'startedEventId': 123
},
'childWorkflowExecutionFailedEventAttributes': {
'workflowExecution': {
'workflowId': 'string',
'runId': 'string'
},
'workflowType': {
'name': 'string',
'version': 'string'
},
'reason': 'string',
'details': 'string',
'initiatedEventId': 123,
'startedEventId': 123
},
'childWorkflowExecutionTimedOutEventAttributes': {
'workflowExecution': {
'workflowId': 'string',
'runId': 'string'
},
'workflowType': {
'name': 'string',
'version': 'string'
},
'timeoutType': 'START_TO_CLOSE',
'initiatedEventId': 123,
'startedEventId': 123
},
'childWorkflowExecutionCanceledEventAttributes': {
'workflowExecution': {
'workflowId': 'string',
'runId': 'string'
},
'workflowType': {
'name': 'string',
'version': 'string'
},
'details': 'string',
'initiatedEventId': 123,
'startedEventId': 123
},
'childWorkflowExecutionTerminatedEventAttributes': {
'workflowExecution': {
'workflowId': 'string',
'runId': 'string'
},
'workflowType': {
'name': 'string',
'version': 'string'
},
'initiatedEventId': 123,
'startedEventId': 123
},
'signalExternalWorkflowExecutionInitiatedEventAttributes': {
'workflowId': 'string',
'runId': 'string',
'signalName': 'string',
'input': 'string',
'decisionTaskCompletedEventId': 123,
'control': 'string'
},
'externalWorkflowExecutionSignaledEventAttributes': {
'workflowExecution': {
'workflowId': 'string',
'runId': 'string'
},
'initiatedEventId': 123
},
'signalExternalWorkflowExecutionFailedEventAttributes': {
'workflowId': 'string',
'runId': 'string',
'cause': 'UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION'|'SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_RATE_EXCEEDED'|'OPERATION_NOT_PERMITTED',
'initiatedEventId': 123,
'decisionTaskCompletedEventId': 123,
'control': 'string'
},
'externalWorkflowExecutionCancelRequestedEventAttributes': {
'workflowExecution': {
'workflowId': 'string',
'runId': 'string'
},
'initiatedEventId': 123
},
'requestCancelExternalWorkflowExecutionInitiatedEventAttributes': {
'workflowId': 'string',
'runId': 'string',
'decisionTaskCompletedEventId': 123,
'control': 'string'
},
'requestCancelExternalWorkflowExecutionFailedEventAttributes': {
'workflowId': 'string',
'runId': 'string',
'cause': 'UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION'|'REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_RATE_EXCEEDED'|'OPERATION_NOT_PERMITTED',
'initiatedEventId': 123,
'decisionTaskCompletedEventId': 123,
'control': 'string'
},
'scheduleActivityTaskFailedEventAttributes': {
'activityType': {
'name': 'string',
'version': 'string'
},
'activityId': 'string',
'cause': 'ACTIVITY_TYPE_DEPRECATED'|'ACTIVITY_TYPE_DOES_NOT_EXIST'|'ACTIVITY_ID_ALREADY_IN_USE'|'OPEN_ACTIVITIES_LIMIT_EXCEEDED'|'ACTIVITY_CREATION_RATE_EXCEEDED'|'DEFAULT_SCHEDULE_TO_CLOSE_TIMEOUT_UNDEFINED'|'DEFAULT_TASK_LIST_UNDEFINED'|'DEFAULT_SCHEDULE_TO_START_TIMEOUT_UNDEFINED'|'DEFAULT_START_TO_CLOSE_TIMEOUT_UNDEFINED'|'DEFAULT_HEARTBEAT_TIMEOUT_UNDEFINED'|'OPERATION_NOT_PERMITTED',
'decisionTaskCompletedEventId': 123
},
'requestCancelActivityTaskFailedEventAttributes': {
'activityId': 'string',
'cause': 'ACTIVITY_ID_UNKNOWN'|'OPERATION_NOT_PERMITTED',
'decisionTaskCompletedEventId': 123
},
'startTimerFailedEventAttributes': {
'timerId': 'string',
'cause': 'TIMER_ID_ALREADY_IN_USE'|'OPEN_TIMERS_LIMIT_EXCEEDED'|'TIMER_CREATION_RATE_EXCEEDED'|'OPERATION_NOT_PERMITTED',
'decisionTaskCompletedEventId': 123
},
'cancelTimerFailedEventAttributes': {
'timerId': 'string',
'cause': 'TIMER_ID_UNKNOWN'|'OPERATION_NOT_PERMITTED',
'decisionTaskCompletedEventId': 123
},
'startChildWorkflowExecutionFailedEventAttributes': {
'workflowType': {
'name': 'string',
'version': 'string'
},
'cause': 'WORKFLOW_TYPE_DOES_NOT_EXIST'|'WORKFLOW_TYPE_DEPRECATED'|'OPEN_CHILDREN_LIMIT_EXCEEDED'|'OPEN_WORKFLOWS_LIMIT_EXCEEDED'|'CHILD_CREATION_RATE_EXCEEDED'|'WORKFLOW_ALREADY_RUNNING'|'DEFAULT_EXECUTION_START_TO_CLOSE_TIMEOUT_UNDEFINED'|'DEFAULT_TASK_LIST_UNDEFINED'|'DEFAULT_TASK_START_TO_CLOSE_TIMEOUT_UNDEFINED'|'DEFAULT_CHILD_POLICY_UNDEFINED'|'OPERATION_NOT_PERMITTED',
'workflowId': 'string',
'initiatedEventId': 123,
'decisionTaskCompletedEventId': 123,
'control': 'string'
},
'lambdaFunctionScheduledEventAttributes': {
'id': 'string',
'name': 'string',
'input': 'string',
'startToCloseTimeout': 'string',
'decisionTaskCompletedEventId': 123
},
'lambdaFunctionStartedEventAttributes': {
'scheduledEventId': 123
},
'lambdaFunctionCompletedEventAttributes': {
'scheduledEventId': 123,
'startedEventId': 123,
'result': 'string'
},
'lambdaFunctionFailedEventAttributes': {
'scheduledEventId': 123,
'startedEventId': 123,
'reason': 'string',
'details': 'string'
},
'lambdaFunctionTimedOutEventAttributes': {
'scheduledEventId': 123,
'startedEventId': 123,
'timeoutType': 'START_TO_CLOSE'
},
'scheduleLambdaFunctionFailedEventAttributes': {
'id': 'string',
'name': 'string',
'cause': 'ID_ALREADY_IN_USE'|'OPEN_LAMBDA_FUNCTIONS_LIMIT_EXCEEDED'|'LAMBDA_FUNCTION_CREATION_RATE_EXCEEDED'|'LAMBDA_SERVICE_NOT_AVAILABLE_IN_REGION',
'decisionTaskCompletedEventId': 123
},
'startLambdaFunctionFailedEventAttributes': {
'scheduledEventId': 123,
'cause': 'ASSUME_ROLE_FAILED',
'message': 'string'
}
},
],
'nextPageToken': 'string'
}
Response Structure
|
list_activity_types
(**kwargs)¶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:
Resource
element with the domain name to limit the action to only specified domains.Action
element to allow or deny permission to call this action.If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows .
Request Syntax
response = client.list_activity_types(
domain='string',
name='string',
registrationStatus='REGISTERED'|'DEPRECATED',
nextPageToken='string',
maximumPageSize=123,
reverseOrder=True|False
)
Parameters: |
|
---|---|
Return type: | dict |
Returns: | 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
|
list_closed_workflow_executions
(**kwargs)¶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:
Resource
element with the domain name to limit the action to only specified domains.Action
element to allow or deny permission to call this action.Condition
element with the appropriate keys. * tagFilter.tag
: String constraint. The key is swf:tagFilter.tag
.typeFilter.name
: String constraint. The key is swf:typeFilter.name
.typeFilter.version
: String constraint. The key is swf:typeFilter.version
.If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows .
Request Syntax
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
)
Parameters: |
|
---|---|
Return type: | dict |
Returns: | 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
|
list_domains
(**kwargs)¶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:
Resource
element with the domain name to limit the action to only specified domains. The element must be set to arn:aws:swf::AccountID:domain/*
, where AccountID is the account ID, with no dashes.Action
element to allow or deny permission to call this action.If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows .
Request Syntax
response = client.list_domains(
nextPageToken='string',
registrationStatus='REGISTERED'|'DEPRECATED',
maximumPageSize=123,
reverseOrder=True|False
)
Parameters: |
|
---|---|
Return type: | dict |
Returns: | Response Syntax {
'domainInfos': [
{
'name': 'string',
'status': 'REGISTERED'|'DEPRECATED',
'description': 'string'
},
],
'nextPageToken': 'string'
}
Response Structure
|
list_open_workflow_executions
(**kwargs)¶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:
Resource
element with the domain name to limit the action to only specified domains.Action
element to allow or deny permission to call this action.Condition
element with the appropriate keys. * tagFilter.tag
: String constraint. The key is swf:tagFilter.tag
.typeFilter.name
: String constraint. The key is swf:typeFilter.name
.typeFilter.version
: String constraint. The key is swf:typeFilter.version
.If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows .
Request Syntax
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'
}
)
Parameters: |
|
---|---|
Return type: | dict |
Returns: | 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
|
list_workflow_types
(**kwargs)¶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:
Resource
element with the domain name to limit the action to only specified domains.Action
element to allow or deny permission to call this action.If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows .
Request Syntax
response = client.list_workflow_types(
domain='string',
name='string',
registrationStatus='REGISTERED'|'DEPRECATED',
nextPageToken='string',
maximumPageSize=123,
reverseOrder=True|False
)
Parameters: |
|
---|---|
Return type: | dict |
Returns: | 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
|
poll_for_activity_task
(**kwargs)¶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 will return 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:
Resource
element with the domain name to limit the action to only specified domains.Action
element to allow or deny permission to call this action.taskList.name
parameter by using a Condition element with the swf:taskList.name
key to allow the action to access only certain task lists.If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows .
Request Syntax
response = client.poll_for_activity_task(
domain='string',
taskList={
'name': 'string'
},
identity='string'
)
Parameters: |
|
---|---|
Return type: | dict |
Returns: | Response Syntax {
'taskToken': 'string',
'activityId': 'string',
'startedEventId': 123,
'workflowExecution': {
'workflowId': 'string',
'runId': 'string'
},
'activityType': {
'name': 'string',
'version': 'string'
},
'input': 'string'
}
Response Structure
|
poll_for_decision_task
(**kwargs)¶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:
Resource
element with the domain name to limit the action to only specified domains.Action
element to allow or deny permission to call this action.taskList.name
parameter by using a Condition element with the swf:taskList.name
key to allow the action to access only certain task lists.If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows .
Request Syntax
response = client.poll_for_decision_task(
domain='string',
taskList={
'name': 'string'
},
identity='string',
nextPageToken='string',
maximumPageSize=123,
reverseOrder=True|False
)
Parameters: |
|
---|---|
Return type: | dict |
Returns: | Response Syntax {
'taskToken': 'string',
'startedEventId': 123,
'workflowExecution': {
'workflowId': 'string',
'runId': 'string'
},
'workflowType': {
'name': 'string',
'version': 'string'
},
'events': [
{
'eventTimestamp': datetime(2015, 1, 1),
'eventType': 'WorkflowExecutionStarted'|'WorkflowExecutionCancelRequested'|'WorkflowExecutionCompleted'|'CompleteWorkflowExecutionFailed'|'WorkflowExecutionFailed'|'FailWorkflowExecutionFailed'|'WorkflowExecutionTimedOut'|'WorkflowExecutionCanceled'|'CancelWorkflowExecutionFailed'|'WorkflowExecutionContinuedAsNew'|'ContinueAsNewWorkflowExecutionFailed'|'WorkflowExecutionTerminated'|'DecisionTaskScheduled'|'DecisionTaskStarted'|'DecisionTaskCompleted'|'DecisionTaskTimedOut'|'ActivityTaskScheduled'|'ScheduleActivityTaskFailed'|'ActivityTaskStarted'|'ActivityTaskCompleted'|'ActivityTaskFailed'|'ActivityTaskTimedOut'|'ActivityTaskCanceled'|'ActivityTaskCancelRequested'|'RequestCancelActivityTaskFailed'|'WorkflowExecutionSignaled'|'MarkerRecorded'|'RecordMarkerFailed'|'TimerStarted'|'StartTimerFailed'|'TimerFired'|'TimerCanceled'|'CancelTimerFailed'|'StartChildWorkflowExecutionInitiated'|'StartChildWorkflowExecutionFailed'|'ChildWorkflowExecutionStarted'|'ChildWorkflowExecutionCompleted'|'ChildWorkflowExecutionFailed'|'ChildWorkflowExecutionTimedOut'|'ChildWorkflowExecutionCanceled'|'ChildWorkflowExecutionTerminated'|'SignalExternalWorkflowExecutionInitiated'|'SignalExternalWorkflowExecutionFailed'|'ExternalWorkflowExecutionSignaled'|'RequestCancelExternalWorkflowExecutionInitiated'|'RequestCancelExternalWorkflowExecutionFailed'|'ExternalWorkflowExecutionCancelRequested'|'LambdaFunctionScheduled'|'LambdaFunctionStarted'|'LambdaFunctionCompleted'|'LambdaFunctionFailed'|'LambdaFunctionTimedOut'|'ScheduleLambdaFunctionFailed'|'StartLambdaFunctionFailed',
'eventId': 123,
'workflowExecutionStartedEventAttributes': {
'input': 'string',
'executionStartToCloseTimeout': 'string',
'taskStartToCloseTimeout': 'string',
'childPolicy': 'TERMINATE'|'REQUEST_CANCEL'|'ABANDON',
'taskList': {
'name': 'string'
},
'workflowType': {
'name': 'string',
'version': 'string'
},
'tagList': [
'string',
],
'taskPriority': 'string',
'continuedExecutionRunId': 'string',
'parentWorkflowExecution': {
'workflowId': 'string',
'runId': 'string'
},
'parentInitiatedEventId': 123,
'lambdaRole': 'string'
},
'workflowExecutionCompletedEventAttributes': {
'result': 'string',
'decisionTaskCompletedEventId': 123
},
'completeWorkflowExecutionFailedEventAttributes': {
'cause': 'UNHANDLED_DECISION'|'OPERATION_NOT_PERMITTED',
'decisionTaskCompletedEventId': 123
},
'workflowExecutionFailedEventAttributes': {
'reason': 'string',
'details': 'string',
'decisionTaskCompletedEventId': 123
},
'failWorkflowExecutionFailedEventAttributes': {
'cause': 'UNHANDLED_DECISION'|'OPERATION_NOT_PERMITTED',
'decisionTaskCompletedEventId': 123
},
'workflowExecutionTimedOutEventAttributes': {
'timeoutType': 'START_TO_CLOSE',
'childPolicy': 'TERMINATE'|'REQUEST_CANCEL'|'ABANDON'
},
'workflowExecutionCanceledEventAttributes': {
'details': 'string',
'decisionTaskCompletedEventId': 123
},
'cancelWorkflowExecutionFailedEventAttributes': {
'cause': 'UNHANDLED_DECISION'|'OPERATION_NOT_PERMITTED',
'decisionTaskCompletedEventId': 123
},
'workflowExecutionContinuedAsNewEventAttributes': {
'input': 'string',
'decisionTaskCompletedEventId': 123,
'newExecutionRunId': 'string',
'executionStartToCloseTimeout': 'string',
'taskList': {
'name': 'string'
},
'taskPriority': 'string',
'taskStartToCloseTimeout': 'string',
'childPolicy': 'TERMINATE'|'REQUEST_CANCEL'|'ABANDON',
'tagList': [
'string',
],
'workflowType': {
'name': 'string',
'version': 'string'
},
'lambdaRole': 'string'
},
'continueAsNewWorkflowExecutionFailedEventAttributes': {
'cause': 'UNHANDLED_DECISION'|'WORKFLOW_TYPE_DEPRECATED'|'WORKFLOW_TYPE_DOES_NOT_EXIST'|'DEFAULT_EXECUTION_START_TO_CLOSE_TIMEOUT_UNDEFINED'|'DEFAULT_TASK_START_TO_CLOSE_TIMEOUT_UNDEFINED'|'DEFAULT_TASK_LIST_UNDEFINED'|'DEFAULT_CHILD_POLICY_UNDEFINED'|'CONTINUE_AS_NEW_WORKFLOW_EXECUTION_RATE_EXCEEDED'|'OPERATION_NOT_PERMITTED',
'decisionTaskCompletedEventId': 123
},
'workflowExecutionTerminatedEventAttributes': {
'reason': 'string',
'details': 'string',
'childPolicy': 'TERMINATE'|'REQUEST_CANCEL'|'ABANDON',
'cause': 'CHILD_POLICY_APPLIED'|'EVENT_LIMIT_EXCEEDED'|'OPERATOR_INITIATED'
},
'workflowExecutionCancelRequestedEventAttributes': {
'externalWorkflowExecution': {
'workflowId': 'string',
'runId': 'string'
},
'externalInitiatedEventId': 123,
'cause': 'CHILD_POLICY_APPLIED'
},
'decisionTaskScheduledEventAttributes': {
'taskList': {
'name': 'string'
},
'taskPriority': 'string',
'startToCloseTimeout': 'string'
},
'decisionTaskStartedEventAttributes': {
'identity': 'string',
'scheduledEventId': 123
},
'decisionTaskCompletedEventAttributes': {
'executionContext': 'string',
'scheduledEventId': 123,
'startedEventId': 123
},
'decisionTaskTimedOutEventAttributes': {
'timeoutType': 'START_TO_CLOSE',
'scheduledEventId': 123,
'startedEventId': 123
},
'activityTaskScheduledEventAttributes': {
'activityType': {
'name': 'string',
'version': 'string'
},
'activityId': 'string',
'input': 'string',
'control': 'string',
'scheduleToStartTimeout': 'string',
'scheduleToCloseTimeout': 'string',
'startToCloseTimeout': 'string',
'taskList': {
'name': 'string'
},
'taskPriority': 'string',
'decisionTaskCompletedEventId': 123,
'heartbeatTimeout': 'string'
},
'activityTaskStartedEventAttributes': {
'identity': 'string',
'scheduledEventId': 123
},
'activityTaskCompletedEventAttributes': {
'result': 'string',
'scheduledEventId': 123,
'startedEventId': 123
},
'activityTaskFailedEventAttributes': {
'reason': 'string',
'details': 'string',
'scheduledEventId': 123,
'startedEventId': 123
},
'activityTaskTimedOutEventAttributes': {
'timeoutType': 'START_TO_CLOSE'|'SCHEDULE_TO_START'|'SCHEDULE_TO_CLOSE'|'HEARTBEAT',
'scheduledEventId': 123,
'startedEventId': 123,
'details': 'string'
},
'activityTaskCanceledEventAttributes': {
'details': 'string',
'scheduledEventId': 123,
'startedEventId': 123,
'latestCancelRequestedEventId': 123
},
'activityTaskCancelRequestedEventAttributes': {
'decisionTaskCompletedEventId': 123,
'activityId': 'string'
},
'workflowExecutionSignaledEventAttributes': {
'signalName': 'string',
'input': 'string',
'externalWorkflowExecution': {
'workflowId': 'string',
'runId': 'string'
},
'externalInitiatedEventId': 123
},
'markerRecordedEventAttributes': {
'markerName': 'string',
'details': 'string',
'decisionTaskCompletedEventId': 123
},
'recordMarkerFailedEventAttributes': {
'markerName': 'string',
'cause': 'OPERATION_NOT_PERMITTED',
'decisionTaskCompletedEventId': 123
},
'timerStartedEventAttributes': {
'timerId': 'string',
'control': 'string',
'startToFireTimeout': 'string',
'decisionTaskCompletedEventId': 123
},
'timerFiredEventAttributes': {
'timerId': 'string',
'startedEventId': 123
},
'timerCanceledEventAttributes': {
'timerId': 'string',
'startedEventId': 123,
'decisionTaskCompletedEventId': 123
},
'startChildWorkflowExecutionInitiatedEventAttributes': {
'workflowId': 'string',
'workflowType': {
'name': 'string',
'version': 'string'
},
'control': 'string',
'input': 'string',
'executionStartToCloseTimeout': 'string',
'taskList': {
'name': 'string'
},
'taskPriority': 'string',
'decisionTaskCompletedEventId': 123,
'childPolicy': 'TERMINATE'|'REQUEST_CANCEL'|'ABANDON',
'taskStartToCloseTimeout': 'string',
'tagList': [
'string',
],
'lambdaRole': 'string'
},
'childWorkflowExecutionStartedEventAttributes': {
'workflowExecution': {
'workflowId': 'string',
'runId': 'string'
},
'workflowType': {
'name': 'string',
'version': 'string'
},
'initiatedEventId': 123
},
'childWorkflowExecutionCompletedEventAttributes': {
'workflowExecution': {
'workflowId': 'string',
'runId': 'string'
},
'workflowType': {
'name': 'string',
'version': 'string'
},
'result': 'string',
'initiatedEventId': 123,
'startedEventId': 123
},
'childWorkflowExecutionFailedEventAttributes': {
'workflowExecution': {
'workflowId': 'string',
'runId': 'string'
},
'workflowType': {
'name': 'string',
'version': 'string'
},
'reason': 'string',
'details': 'string',
'initiatedEventId': 123,
'startedEventId': 123
},
'childWorkflowExecutionTimedOutEventAttributes': {
'workflowExecution': {
'workflowId': 'string',
'runId': 'string'
},
'workflowType': {
'name': 'string',
'version': 'string'
},
'timeoutType': 'START_TO_CLOSE',
'initiatedEventId': 123,
'startedEventId': 123
},
'childWorkflowExecutionCanceledEventAttributes': {
'workflowExecution': {
'workflowId': 'string',
'runId': 'string'
},
'workflowType': {
'name': 'string',
'version': 'string'
},
'details': 'string',
'initiatedEventId': 123,
'startedEventId': 123
},
'childWorkflowExecutionTerminatedEventAttributes': {
'workflowExecution': {
'workflowId': 'string',
'runId': 'string'
},
'workflowType': {
'name': 'string',
'version': 'string'
},
'initiatedEventId': 123,
'startedEventId': 123
},
'signalExternalWorkflowExecutionInitiatedEventAttributes': {
'workflowId': 'string',
'runId': 'string',
'signalName': 'string',
'input': 'string',
'decisionTaskCompletedEventId': 123,
'control': 'string'
},
'externalWorkflowExecutionSignaledEventAttributes': {
'workflowExecution': {
'workflowId': 'string',
'runId': 'string'
},
'initiatedEventId': 123
},
'signalExternalWorkflowExecutionFailedEventAttributes': {
'workflowId': 'string',
'runId': 'string',
'cause': 'UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION'|'SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_RATE_EXCEEDED'|'OPERATION_NOT_PERMITTED',
'initiatedEventId': 123,
'decisionTaskCompletedEventId': 123,
'control': 'string'
},
'externalWorkflowExecutionCancelRequestedEventAttributes': {
'workflowExecution': {
'workflowId': 'string',
'runId': 'string'
},
'initiatedEventId': 123
},
'requestCancelExternalWorkflowExecutionInitiatedEventAttributes': {
'workflowId': 'string',
'runId': 'string',
'decisionTaskCompletedEventId': 123,
'control': 'string'
},
'requestCancelExternalWorkflowExecutionFailedEventAttributes': {
'workflowId': 'string',
'runId': 'string',
'cause': 'UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION'|'REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_RATE_EXCEEDED'|'OPERATION_NOT_PERMITTED',
'initiatedEventId': 123,
'decisionTaskCompletedEventId': 123,
'control': 'string'
},
'scheduleActivityTaskFailedEventAttributes': {
'activityType': {
'name': 'string',
'version': 'string'
},
'activityId': 'string',
'cause': 'ACTIVITY_TYPE_DEPRECATED'|'ACTIVITY_TYPE_DOES_NOT_EXIST'|'ACTIVITY_ID_ALREADY_IN_USE'|'OPEN_ACTIVITIES_LIMIT_EXCEEDED'|'ACTIVITY_CREATION_RATE_EXCEEDED'|'DEFAULT_SCHEDULE_TO_CLOSE_TIMEOUT_UNDEFINED'|'DEFAULT_TASK_LIST_UNDEFINED'|'DEFAULT_SCHEDULE_TO_START_TIMEOUT_UNDEFINED'|'DEFAULT_START_TO_CLOSE_TIMEOUT_UNDEFINED'|'DEFAULT_HEARTBEAT_TIMEOUT_UNDEFINED'|'OPERATION_NOT_PERMITTED',
'decisionTaskCompletedEventId': 123
},
'requestCancelActivityTaskFailedEventAttributes': {
'activityId': 'string',
'cause': 'ACTIVITY_ID_UNKNOWN'|'OPERATION_NOT_PERMITTED',
'decisionTaskCompletedEventId': 123
},
'startTimerFailedEventAttributes': {
'timerId': 'string',
'cause': 'TIMER_ID_ALREADY_IN_USE'|'OPEN_TIMERS_LIMIT_EXCEEDED'|'TIMER_CREATION_RATE_EXCEEDED'|'OPERATION_NOT_PERMITTED',
'decisionTaskCompletedEventId': 123
},
'cancelTimerFailedEventAttributes': {
'timerId': 'string',
'cause': 'TIMER_ID_UNKNOWN'|'OPERATION_NOT_PERMITTED',
'decisionTaskCompletedEventId': 123
},
'startChildWorkflowExecutionFailedEventAttributes': {
'workflowType': {
'name': 'string',
'version': 'string'
},
'cause': 'WORKFLOW_TYPE_DOES_NOT_EXIST'|'WORKFLOW_TYPE_DEPRECATED'|'OPEN_CHILDREN_LIMIT_EXCEEDED'|'OPEN_WORKFLOWS_LIMIT_EXCEEDED'|'CHILD_CREATION_RATE_EXCEEDED'|'WORKFLOW_ALREADY_RUNNING'|'DEFAULT_EXECUTION_START_TO_CLOSE_TIMEOUT_UNDEFINED'|'DEFAULT_TASK_LIST_UNDEFINED'|'DEFAULT_TASK_START_TO_CLOSE_TIMEOUT_UNDEFINED'|'DEFAULT_CHILD_POLICY_UNDEFINED'|'OPERATION_NOT_PERMITTED',
'workflowId': 'string',
'initiatedEventId': 123,
'decisionTaskCompletedEventId': 123,
'control': 'string'
},
'lambdaFunctionScheduledEventAttributes': {
'id': 'string',
'name': 'string',
'input': 'string',
'startToCloseTimeout': 'string',
'decisionTaskCompletedEventId': 123
},
'lambdaFunctionStartedEventAttributes': {
'scheduledEventId': 123
},
'lambdaFunctionCompletedEventAttributes': {
'scheduledEventId': 123,
'startedEventId': 123,
'result': 'string'
},
'lambdaFunctionFailedEventAttributes': {
'scheduledEventId': 123,
'startedEventId': 123,
'reason': 'string',
'details': 'string'
},
'lambdaFunctionTimedOutEventAttributes': {
'scheduledEventId': 123,
'startedEventId': 123,
'timeoutType': 'START_TO_CLOSE'
},
'scheduleLambdaFunctionFailedEventAttributes': {
'id': 'string',
'name': 'string',
'cause': 'ID_ALREADY_IN_USE'|'OPEN_LAMBDA_FUNCTIONS_LIMIT_EXCEEDED'|'LAMBDA_FUNCTION_CREATION_RATE_EXCEEDED'|'LAMBDA_SERVICE_NOT_AVAILABLE_IN_REGION',
'decisionTaskCompletedEventId': 123
},
'startLambdaFunctionFailedEventAttributes': {
'scheduledEventId': 123,
'cause': 'ASSUME_ROLE_FAILED',
'message': 'string'
}
},
],
'nextPageToken': 'string',
'previousStartedEventId': 123
}
Response Structure
|
record_activity_task_heartbeat
(**kwargs)¶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 (optionally) 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 does not in itself create an event in the workflow execution history. However, if the task times out, the workflow execution history will contain 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:
Resource
element with the domain name to limit the action to only specified domains.Action
element to allow or deny permission to call this action.If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows .
Request Syntax
response = client.record_activity_task_heartbeat(
taskToken='string',
details='string'
)
Parameters: |
|
---|---|
Return type: | dict |
Returns: | Response Syntax {
'cancelRequested': True|False
}
Response Structure
|
register_activity_type
(**kwargs)¶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:
Resource
element with the domain name to limit the action to only specified domains.Action
element to allow or deny permission to call this action.Condition
element with the appropriate keys. * defaultTaskList.name
: String constraint. The key is swf:defaultTaskList.name
.name
: String constraint. The key is swf:name
.version
: String constraint. The key is swf:version
.If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows .
Request Syntax
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'
)
Parameters: |
|
---|---|
Returns: | None |
register_domain
(**kwargs)¶Registers a new domain.
Access Control
You can use IAM policies to control this action's access to Amazon SWF resources as follows:
Action
element to allow or deny permission to call this action.If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows .
Request Syntax
response = client.register_domain(
name='string',
description='string',
workflowExecutionRetentionPeriodInDays='string'
)
Parameters: |
|
---|---|
Returns: | None |
register_workflow_type
(**kwargs)¶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:
Resource
element with the domain name to limit the action to only specified domains.Action
element to allow or deny permission to call this action.Condition
element with the appropriate keys. * defaultTaskList.name
: String constraint. The key is swf:defaultTaskList.name
.name
: String constraint. The key is swf:name
.version
: String constraint. The key is swf:version
.If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows .
Request Syntax
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'
)
Parameters: |
|
---|---|
Returns: | None |
request_cancel_workflow_execution
(**kwargs)¶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 is not 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:
Resource
element with the domain name to limit the action to only specified domains.Action
element to allow or deny permission to call this action.If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows .
Request Syntax
response = client.request_cancel_workflow_execution(
domain='string',
workflowId='string',
runId='string'
)
Parameters: |
|
---|---|
Returns: | None |
respond_activity_task_canceled
(**kwargs)¶Used by workers to tell the service that the ActivityTask identified by the taskToken
was successfully canceled. Additional details
can be optionally 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:
Resource
element with the domain name to limit the action to only specified domains.Action
element to allow or deny permission to call this action.If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows .
Request Syntax
response = client.respond_activity_task_canceled(
taskToken='string',
details='string'
)
Parameters: |
|
---|---|
Returns: | None |
respond_activity_task_completed
(**kwargs)¶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 does not 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:
Resource
element with the domain name to limit the action to only specified domains.Action
element to allow or deny permission to call this action.If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows .
Request Syntax
response = client.respond_activity_task_completed(
taskToken='string',
result='string'
)
Parameters: |
|
---|---|
Returns: | None |
respond_activity_task_failed
(**kwargs)¶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:
Resource
element with the domain name to limit the action to only specified domains.Action
element to allow or deny permission to call this action.If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows .
Request Syntax
response = client.respond_activity_task_failed(
taskToken='string',
reason='string',
details='string'
)
Parameters: |
|
---|---|
Returns: | None |
respond_decision_task_completed
(**kwargs)¶Used by deciders to tell the service that the DecisionTask identified by the taskToken
has successfully completed. The decisions
argument specifies the list of decisions made while processing the task.
A DecisionTaskCompleted
event is added to the workflow history. The executionContext
specified is attached to the event in the workflow execution history.
Access Control
If an IAM policy grants permission to use RespondDecisionTaskCompleted
, it can express permissions for the list of decisions in the decisions
parameter. Each of the decisions has one or more parameters, much like a regular API call. To allow for policies to be as readable as possible, you can express permissions on decisions as if they were actual API calls, including applying conditions to some parameters. For more information, see Using IAM to Manage Access to Amazon SWF Workflows .
Request Syntax
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',
'input': 'string',
'startToCloseTimeout': 'string'
}
},
],
executionContext='string'
)
Parameters: |
|
---|---|
Returns: | None |
signal_workflow_execution
(**kwargs)¶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 is not 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 is not 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:
Resource
element with the domain name to limit the action to only specified domains.Action
element to allow or deny permission to call this action.If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows .
Request Syntax
response = client.signal_workflow_execution(
domain='string',
workflowId='string',
runId='string',
signalName='string',
input='string'
)
Parameters: |
|
---|---|
Returns: | None |
start_workflow_execution
(**kwargs)¶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:
Resource
element with the domain name to limit the action to only specified domains.Action
element to allow or deny permission to call this action.Condition
element with the appropriate keys. * tagList.member.0
: The key is swf:tagList.member.0
.tagList.member.1
: The key is swf:tagList.member.1
.tagList.member.2
: The key is swf:tagList.member.2
.tagList.member.3
: The key is swf:tagList.member.3
.tagList.member.4
: The key is swf:tagList.member.4
.taskList
: String constraint. The key is swf:taskList.name
.workflowType.name
: String constraint. The key is swf:workflowType.name
.workflowType.version
: String constraint. The key is swf:workflowType.version
.If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows .
Request Syntax
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'
)
Parameters: |
|
---|---|
Return type: | dict |
Returns: | Response Syntax {
'runId': 'string'
}
Response Structure
|
terminate_workflow_execution
(**kwargs)¶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 is not 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 does not.
Access Control
You can use IAM policies to control this action's access to Amazon SWF resources as follows:
Resource
element with the domain name to limit the action to only specified domains.Action
element to allow or deny permission to call this action.If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows .
Request Syntax
response = client.terminate_workflow_execution(
domain='string',
workflowId='string',
runId='string',
reason='string',
details='string',
childPolicy='TERMINATE'|'REQUEST_CANCEL'|'ABANDON'
)
Parameters: |
|
---|---|
Returns: | None |
The available paginators are:
SWF.Paginator.get_workflow_execution_history
SWF.Paginator.list_activity_types
SWF.Paginator.list_closed_workflow_executions
SWF.Paginator.list_domains
SWF.Paginator.list_open_workflow_executions
SWF.Paginator.list_workflow_types
SWF.Paginator.poll_for_decision_task
SWF.Paginator.
get_workflow_execution_history
¶paginator = client.get_paginator('get_workflow_execution_history')
paginate
(**kwargs)¶Creates an iterator that will paginate through responses from SWF.Client.get_workflow_execution_history()
.
Request Syntax
response_iterator = paginator.paginate(
domain='string',
execution={
'workflowId': 'string',
'runId': 'string'
},
reverseOrder=True|False,
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
Parameters: |
|
---|---|
Return type: | dict |
Returns: | Response Syntax {
'events': [
{
'eventTimestamp': datetime(2015, 1, 1),
'eventType': 'WorkflowExecutionStarted'|'WorkflowExecutionCancelRequested'|'WorkflowExecutionCompleted'|'CompleteWorkflowExecutionFailed'|'WorkflowExecutionFailed'|'FailWorkflowExecutionFailed'|'WorkflowExecutionTimedOut'|'WorkflowExecutionCanceled'|'CancelWorkflowExecutionFailed'|'WorkflowExecutionContinuedAsNew'|'ContinueAsNewWorkflowExecutionFailed'|'WorkflowExecutionTerminated'|'DecisionTaskScheduled'|'DecisionTaskStarted'|'DecisionTaskCompleted'|'DecisionTaskTimedOut'|'ActivityTaskScheduled'|'ScheduleActivityTaskFailed'|'ActivityTaskStarted'|'ActivityTaskCompleted'|'ActivityTaskFailed'|'ActivityTaskTimedOut'|'ActivityTaskCanceled'|'ActivityTaskCancelRequested'|'RequestCancelActivityTaskFailed'|'WorkflowExecutionSignaled'|'MarkerRecorded'|'RecordMarkerFailed'|'TimerStarted'|'StartTimerFailed'|'TimerFired'|'TimerCanceled'|'CancelTimerFailed'|'StartChildWorkflowExecutionInitiated'|'StartChildWorkflowExecutionFailed'|'ChildWorkflowExecutionStarted'|'ChildWorkflowExecutionCompleted'|'ChildWorkflowExecutionFailed'|'ChildWorkflowExecutionTimedOut'|'ChildWorkflowExecutionCanceled'|'ChildWorkflowExecutionTerminated'|'SignalExternalWorkflowExecutionInitiated'|'SignalExternalWorkflowExecutionFailed'|'ExternalWorkflowExecutionSignaled'|'RequestCancelExternalWorkflowExecutionInitiated'|'RequestCancelExternalWorkflowExecutionFailed'|'ExternalWorkflowExecutionCancelRequested'|'LambdaFunctionScheduled'|'LambdaFunctionStarted'|'LambdaFunctionCompleted'|'LambdaFunctionFailed'|'LambdaFunctionTimedOut'|'ScheduleLambdaFunctionFailed'|'StartLambdaFunctionFailed',
'eventId': 123,
'workflowExecutionStartedEventAttributes': {
'input': 'string',
'executionStartToCloseTimeout': 'string',
'taskStartToCloseTimeout': 'string',
'childPolicy': 'TERMINATE'|'REQUEST_CANCEL'|'ABANDON',
'taskList': {
'name': 'string'
},
'workflowType': {
'name': 'string',
'version': 'string'
},
'tagList': [
'string',
],
'taskPriority': 'string',
'continuedExecutionRunId': 'string',
'parentWorkflowExecution': {
'workflowId': 'string',
'runId': 'string'
},
'parentInitiatedEventId': 123,
'lambdaRole': 'string'
},
'workflowExecutionCompletedEventAttributes': {
'result': 'string',
'decisionTaskCompletedEventId': 123
},
'completeWorkflowExecutionFailedEventAttributes': {
'cause': 'UNHANDLED_DECISION'|'OPERATION_NOT_PERMITTED',
'decisionTaskCompletedEventId': 123
},
'workflowExecutionFailedEventAttributes': {
'reason': 'string',
'details': 'string',
'decisionTaskCompletedEventId': 123
},
'failWorkflowExecutionFailedEventAttributes': {
'cause': 'UNHANDLED_DECISION'|'OPERATION_NOT_PERMITTED',
'decisionTaskCompletedEventId': 123
},
'workflowExecutionTimedOutEventAttributes': {
'timeoutType': 'START_TO_CLOSE',
'childPolicy': 'TERMINATE'|'REQUEST_CANCEL'|'ABANDON'
},
'workflowExecutionCanceledEventAttributes': {
'details': 'string',
'decisionTaskCompletedEventId': 123
},
'cancelWorkflowExecutionFailedEventAttributes': {
'cause': 'UNHANDLED_DECISION'|'OPERATION_NOT_PERMITTED',
'decisionTaskCompletedEventId': 123
},
'workflowExecutionContinuedAsNewEventAttributes': {
'input': 'string',
'decisionTaskCompletedEventId': 123,
'newExecutionRunId': 'string',
'executionStartToCloseTimeout': 'string',
'taskList': {
'name': 'string'
},
'taskPriority': 'string',
'taskStartToCloseTimeout': 'string',
'childPolicy': 'TERMINATE'|'REQUEST_CANCEL'|'ABANDON',
'tagList': [
'string',
],
'workflowType': {
'name': 'string',
'version': 'string'
},
'lambdaRole': 'string'
},
'continueAsNewWorkflowExecutionFailedEventAttributes': {
'cause': 'UNHANDLED_DECISION'|'WORKFLOW_TYPE_DEPRECATED'|'WORKFLOW_TYPE_DOES_NOT_EXIST'|'DEFAULT_EXECUTION_START_TO_CLOSE_TIMEOUT_UNDEFINED'|'DEFAULT_TASK_START_TO_CLOSE_TIMEOUT_UNDEFINED'|'DEFAULT_TASK_LIST_UNDEFINED'|'DEFAULT_CHILD_POLICY_UNDEFINED'|'CONTINUE_AS_NEW_WORKFLOW_EXECUTION_RATE_EXCEEDED'|'OPERATION_NOT_PERMITTED',
'decisionTaskCompletedEventId': 123
},
'workflowExecutionTerminatedEventAttributes': {
'reason': 'string',
'details': 'string',
'childPolicy': 'TERMINATE'|'REQUEST_CANCEL'|'ABANDON',
'cause': 'CHILD_POLICY_APPLIED'|'EVENT_LIMIT_EXCEEDED'|'OPERATOR_INITIATED'
},
'workflowExecutionCancelRequestedEventAttributes': {
'externalWorkflowExecution': {
'workflowId': 'string',
'runId': 'string'
},
'externalInitiatedEventId': 123,
'cause': 'CHILD_POLICY_APPLIED'
},
'decisionTaskScheduledEventAttributes': {
'taskList': {
'name': 'string'
},
'taskPriority': 'string',
'startToCloseTimeout': 'string'
},
'decisionTaskStartedEventAttributes': {
'identity': 'string',
'scheduledEventId': 123
},
'decisionTaskCompletedEventAttributes': {
'executionContext': 'string',
'scheduledEventId': 123,
'startedEventId': 123
},
'decisionTaskTimedOutEventAttributes': {
'timeoutType': 'START_TO_CLOSE',
'scheduledEventId': 123,
'startedEventId': 123
},
'activityTaskScheduledEventAttributes': {
'activityType': {
'name': 'string',
'version': 'string'
},
'activityId': 'string',
'input': 'string',
'control': 'string',
'scheduleToStartTimeout': 'string',
'scheduleToCloseTimeout': 'string',
'startToCloseTimeout': 'string',
'taskList': {
'name': 'string'
},
'taskPriority': 'string',
'decisionTaskCompletedEventId': 123,
'heartbeatTimeout': 'string'
},
'activityTaskStartedEventAttributes': {
'identity': 'string',
'scheduledEventId': 123
},
'activityTaskCompletedEventAttributes': {
'result': 'string',
'scheduledEventId': 123,
'startedEventId': 123
},
'activityTaskFailedEventAttributes': {
'reason': 'string',
'details': 'string',
'scheduledEventId': 123,
'startedEventId': 123
},
'activityTaskTimedOutEventAttributes': {
'timeoutType': 'START_TO_CLOSE'|'SCHEDULE_TO_START'|'SCHEDULE_TO_CLOSE'|'HEARTBEAT',
'scheduledEventId': 123,
'startedEventId': 123,
'details': 'string'
},
'activityTaskCanceledEventAttributes': {
'details': 'string',
'scheduledEventId': 123,
'startedEventId': 123,
'latestCancelRequestedEventId': 123
},
'activityTaskCancelRequestedEventAttributes': {
'decisionTaskCompletedEventId': 123,
'activityId': 'string'
},
'workflowExecutionSignaledEventAttributes': {
'signalName': 'string',
'input': 'string',
'externalWorkflowExecution': {
'workflowId': 'string',
'runId': 'string'
},
'externalInitiatedEventId': 123
},
'markerRecordedEventAttributes': {
'markerName': 'string',
'details': 'string',
'decisionTaskCompletedEventId': 123
},
'recordMarkerFailedEventAttributes': {
'markerName': 'string',
'cause': 'OPERATION_NOT_PERMITTED',
'decisionTaskCompletedEventId': 123
},
'timerStartedEventAttributes': {
'timerId': 'string',
'control': 'string',
'startToFireTimeout': 'string',
'decisionTaskCompletedEventId': 123
},
'timerFiredEventAttributes': {
'timerId': 'string',
'startedEventId': 123
},
'timerCanceledEventAttributes': {
'timerId': 'string',
'startedEventId': 123,
'decisionTaskCompletedEventId': 123
},
'startChildWorkflowExecutionInitiatedEventAttributes': {
'workflowId': 'string',
'workflowType': {
'name': 'string',
'version': 'string'
},
'control': 'string',
'input': 'string',
'executionStartToCloseTimeout': 'string',
'taskList': {
'name': 'string'
},
'taskPriority': 'string',
'decisionTaskCompletedEventId': 123,
'childPolicy': 'TERMINATE'|'REQUEST_CANCEL'|'ABANDON',
'taskStartToCloseTimeout': 'string',
'tagList': [
'string',
],
'lambdaRole': 'string'
},
'childWorkflowExecutionStartedEventAttributes': {
'workflowExecution': {
'workflowId': 'string',
'runId': 'string'
},
'workflowType': {
'name': 'string',
'version': 'string'
},
'initiatedEventId': 123
},
'childWorkflowExecutionCompletedEventAttributes': {
'workflowExecution': {
'workflowId': 'string',
'runId': 'string'
},
'workflowType': {
'name': 'string',
'version': 'string'
},
'result': 'string',
'initiatedEventId': 123,
'startedEventId': 123
},
'childWorkflowExecutionFailedEventAttributes': {
'workflowExecution': {
'workflowId': 'string',
'runId': 'string'
},
'workflowType': {
'name': 'string',
'version': 'string'
},
'reason': 'string',
'details': 'string',
'initiatedEventId': 123,
'startedEventId': 123
},
'childWorkflowExecutionTimedOutEventAttributes': {
'workflowExecution': {
'workflowId': 'string',
'runId': 'string'
},
'workflowType': {
'name': 'string',
'version': 'string'
},
'timeoutType': 'START_TO_CLOSE',
'initiatedEventId': 123,
'startedEventId': 123
},
'childWorkflowExecutionCanceledEventAttributes': {
'workflowExecution': {
'workflowId': 'string',
'runId': 'string'
},
'workflowType': {
'name': 'string',
'version': 'string'
},
'details': 'string',
'initiatedEventId': 123,
'startedEventId': 123
},
'childWorkflowExecutionTerminatedEventAttributes': {
'workflowExecution': {
'workflowId': 'string',
'runId': 'string'
},
'workflowType': {
'name': 'string',
'version': 'string'
},
'initiatedEventId': 123,
'startedEventId': 123
},
'signalExternalWorkflowExecutionInitiatedEventAttributes': {
'workflowId': 'string',
'runId': 'string',
'signalName': 'string',
'input': 'string',
'decisionTaskCompletedEventId': 123,
'control': 'string'
},
'externalWorkflowExecutionSignaledEventAttributes': {
'workflowExecution': {
'workflowId': 'string',
'runId': 'string'
},
'initiatedEventId': 123
},
'signalExternalWorkflowExecutionFailedEventAttributes': {
'workflowId': 'string',
'runId': 'string',
'cause': 'UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION'|'SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_RATE_EXCEEDED'|'OPERATION_NOT_PERMITTED',
'initiatedEventId': 123,
'decisionTaskCompletedEventId': 123,
'control': 'string'
},
'externalWorkflowExecutionCancelRequestedEventAttributes': {
'workflowExecution': {
'workflowId': 'string',
'runId': 'string'
},
'initiatedEventId': 123
},
'requestCancelExternalWorkflowExecutionInitiatedEventAttributes': {
'workflowId': 'string',
'runId': 'string',
'decisionTaskCompletedEventId': 123,
'control': 'string'
},
'requestCancelExternalWorkflowExecutionFailedEventAttributes': {
'workflowId': 'string',
'runId': 'string',
'cause': 'UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION'|'REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_RATE_EXCEEDED'|'OPERATION_NOT_PERMITTED',
'initiatedEventId': 123,
'decisionTaskCompletedEventId': 123,
'control': 'string'
},
'scheduleActivityTaskFailedEventAttributes': {
'activityType': {
'name': 'string',
'version': 'string'
},
'activityId': 'string',
'cause': 'ACTIVITY_TYPE_DEPRECATED'|'ACTIVITY_TYPE_DOES_NOT_EXIST'|'ACTIVITY_ID_ALREADY_IN_USE'|'OPEN_ACTIVITIES_LIMIT_EXCEEDED'|'ACTIVITY_CREATION_RATE_EXCEEDED'|'DEFAULT_SCHEDULE_TO_CLOSE_TIMEOUT_UNDEFINED'|'DEFAULT_TASK_LIST_UNDEFINED'|'DEFAULT_SCHEDULE_TO_START_TIMEOUT_UNDEFINED'|'DEFAULT_START_TO_CLOSE_TIMEOUT_UNDEFINED'|'DEFAULT_HEARTBEAT_TIMEOUT_UNDEFINED'|'OPERATION_NOT_PERMITTED',
'decisionTaskCompletedEventId': 123
},
'requestCancelActivityTaskFailedEventAttributes': {
'activityId': 'string',
'cause': 'ACTIVITY_ID_UNKNOWN'|'OPERATION_NOT_PERMITTED',
'decisionTaskCompletedEventId': 123
},
'startTimerFailedEventAttributes': {
'timerId': 'string',
'cause': 'TIMER_ID_ALREADY_IN_USE'|'OPEN_TIMERS_LIMIT_EXCEEDED'|'TIMER_CREATION_RATE_EXCEEDED'|'OPERATION_NOT_PERMITTED',
'decisionTaskCompletedEventId': 123
},
'cancelTimerFailedEventAttributes': {
'timerId': 'string',
'cause': 'TIMER_ID_UNKNOWN'|'OPERATION_NOT_PERMITTED',
'decisionTaskCompletedEventId': 123
},
'startChildWorkflowExecutionFailedEventAttributes': {
'workflowType': {
'name': 'string',
'version': 'string'
},
'cause': 'WORKFLOW_TYPE_DOES_NOT_EXIST'|'WORKFLOW_TYPE_DEPRECATED'|'OPEN_CHILDREN_LIMIT_EXCEEDED'|'OPEN_WORKFLOWS_LIMIT_EXCEEDED'|'CHILD_CREATION_RATE_EXCEEDED'|'WORKFLOW_ALREADY_RUNNING'|'DEFAULT_EXECUTION_START_TO_CLOSE_TIMEOUT_UNDEFINED'|'DEFAULT_TASK_LIST_UNDEFINED'|'DEFAULT_TASK_START_TO_CLOSE_TIMEOUT_UNDEFINED'|'DEFAULT_CHILD_POLICY_UNDEFINED'|'OPERATION_NOT_PERMITTED',
'workflowId': 'string',
'initiatedEventId': 123,
'decisionTaskCompletedEventId': 123,
'control': 'string'
},
'lambdaFunctionScheduledEventAttributes': {
'id': 'string',
'name': 'string',
'input': 'string',
'startToCloseTimeout': 'string',
'decisionTaskCompletedEventId': 123
},
'lambdaFunctionStartedEventAttributes': {
'scheduledEventId': 123
},
'lambdaFunctionCompletedEventAttributes': {
'scheduledEventId': 123,
'startedEventId': 123,
'result': 'string'
},
'lambdaFunctionFailedEventAttributes': {
'scheduledEventId': 123,
'startedEventId': 123,
'reason': 'string',
'details': 'string'
},
'lambdaFunctionTimedOutEventAttributes': {
'scheduledEventId': 123,
'startedEventId': 123,
'timeoutType': 'START_TO_CLOSE'
},
'scheduleLambdaFunctionFailedEventAttributes': {
'id': 'string',
'name': 'string',
'cause': 'ID_ALREADY_IN_USE'|'OPEN_LAMBDA_FUNCTIONS_LIMIT_EXCEEDED'|'LAMBDA_FUNCTION_CREATION_RATE_EXCEEDED'|'LAMBDA_SERVICE_NOT_AVAILABLE_IN_REGION',
'decisionTaskCompletedEventId': 123
},
'startLambdaFunctionFailedEventAttributes': {
'scheduledEventId': 123,
'cause': 'ASSUME_ROLE_FAILED',
'message': 'string'
}
},
],
'NextToken': 'string'
}
Response Structure
|
SWF.Paginator.
list_activity_types
¶paginator = client.get_paginator('list_activity_types')
paginate
(**kwargs)¶Creates an iterator that will paginate through responses from SWF.Client.list_activity_types()
.
Request Syntax
response_iterator = paginator.paginate(
domain='string',
name='string',
registrationStatus='REGISTERED'|'DEPRECATED',
reverseOrder=True|False,
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
Parameters: |
|
---|---|
Return type: | dict |
Returns: | 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
|
SWF.Paginator.
list_closed_workflow_executions
¶paginator = client.get_paginator('list_closed_workflow_executions')
paginate
(**kwargs)¶Creates an iterator that will paginate through responses from SWF.Client.list_closed_workflow_executions()
.
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'
}
)
Parameters: |
|
---|---|
Return type: | dict |
Returns: | 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
|
SWF.Paginator.
list_domains
¶paginator = client.get_paginator('list_domains')
paginate
(**kwargs)¶Creates an iterator that will paginate through responses from SWF.Client.list_domains()
.
Request Syntax
response_iterator = paginator.paginate(
registrationStatus='REGISTERED'|'DEPRECATED',
reverseOrder=True|False,
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
Parameters: |
|
---|---|
Return type: | dict |
Returns: | Response Syntax {
'domainInfos': [
{
'name': 'string',
'status': 'REGISTERED'|'DEPRECATED',
'description': 'string'
},
],
'NextToken': 'string'
}
Response Structure
|
SWF.Paginator.
list_open_workflow_executions
¶paginator = client.get_paginator('list_open_workflow_executions')
paginate
(**kwargs)¶Creates an iterator that will paginate through responses from SWF.Client.list_open_workflow_executions()
.
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'
}
)
Parameters: |
|
---|---|
Return type: | dict |
Returns: | 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
|
SWF.Paginator.
list_workflow_types
¶paginator = client.get_paginator('list_workflow_types')
paginate
(**kwargs)¶Creates an iterator that will paginate through responses from SWF.Client.list_workflow_types()
.
Request Syntax
response_iterator = paginator.paginate(
domain='string',
name='string',
registrationStatus='REGISTERED'|'DEPRECATED',
reverseOrder=True|False,
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
Parameters: |
|
---|---|
Return type: | dict |
Returns: | 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
|
SWF.Paginator.
poll_for_decision_task
¶paginator = client.get_paginator('poll_for_decision_task')
paginate
(**kwargs)¶Creates an iterator that will paginate through responses from SWF.Client.poll_for_decision_task()
.
Request Syntax
response_iterator = paginator.paginate(
domain='string',
taskList={
'name': 'string'
},
identity='string',
reverseOrder=True|False,
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
Parameters: |
|
---|---|
Return type: | dict |
Returns: | Response Syntax {
'taskToken': 'string',
'startedEventId': 123,
'workflowExecution': {
'workflowId': 'string',
'runId': 'string'
},
'workflowType': {
'name': 'string',
'version': 'string'
},
'events': [
{
'eventTimestamp': datetime(2015, 1, 1),
'eventType': 'WorkflowExecutionStarted'|'WorkflowExecutionCancelRequested'|'WorkflowExecutionCompleted'|'CompleteWorkflowExecutionFailed'|'WorkflowExecutionFailed'|'FailWorkflowExecutionFailed'|'WorkflowExecutionTimedOut'|'WorkflowExecutionCanceled'|'CancelWorkflowExecutionFailed'|'WorkflowExecutionContinuedAsNew'|'ContinueAsNewWorkflowExecutionFailed'|'WorkflowExecutionTerminated'|'DecisionTaskScheduled'|'DecisionTaskStarted'|'DecisionTaskCompleted'|'DecisionTaskTimedOut'|'ActivityTaskScheduled'|'ScheduleActivityTaskFailed'|'ActivityTaskStarted'|'ActivityTaskCompleted'|'ActivityTaskFailed'|'ActivityTaskTimedOut'|'ActivityTaskCanceled'|'ActivityTaskCancelRequested'|'RequestCancelActivityTaskFailed'|'WorkflowExecutionSignaled'|'MarkerRecorded'|'RecordMarkerFailed'|'TimerStarted'|'StartTimerFailed'|'TimerFired'|'TimerCanceled'|'CancelTimerFailed'|'StartChildWorkflowExecutionInitiated'|'StartChildWorkflowExecutionFailed'|'ChildWorkflowExecutionStarted'|'ChildWorkflowExecutionCompleted'|'ChildWorkflowExecutionFailed'|'ChildWorkflowExecutionTimedOut'|'ChildWorkflowExecutionCanceled'|'ChildWorkflowExecutionTerminated'|'SignalExternalWorkflowExecutionInitiated'|'SignalExternalWorkflowExecutionFailed'|'ExternalWorkflowExecutionSignaled'|'RequestCancelExternalWorkflowExecutionInitiated'|'RequestCancelExternalWorkflowExecutionFailed'|'ExternalWorkflowExecutionCancelRequested'|'LambdaFunctionScheduled'|'LambdaFunctionStarted'|'LambdaFunctionCompleted'|'LambdaFunctionFailed'|'LambdaFunctionTimedOut'|'ScheduleLambdaFunctionFailed'|'StartLambdaFunctionFailed',
'eventId': 123,
'workflowExecutionStartedEventAttributes': {
'input': 'string',
'executionStartToCloseTimeout': 'string',
'taskStartToCloseTimeout': 'string',
'childPolicy': 'TERMINATE'|'REQUEST_CANCEL'|'ABANDON',
'taskList': {
'name': 'string'
},
'workflowType': {
'name': 'string',
'version': 'string'
},
'tagList': [
'string',
],
'taskPriority': 'string',
'continuedExecutionRunId': 'string',
'parentWorkflowExecution': {
'workflowId': 'string',
'runId': 'string'
},
'parentInitiatedEventId': 123,
'lambdaRole': 'string'
},
'workflowExecutionCompletedEventAttributes': {
'result': 'string',
'decisionTaskCompletedEventId': 123
},
'completeWorkflowExecutionFailedEventAttributes': {
'cause': 'UNHANDLED_DECISION'|'OPERATION_NOT_PERMITTED',
'decisionTaskCompletedEventId': 123
},
'workflowExecutionFailedEventAttributes': {
'reason': 'string',
'details': 'string',
'decisionTaskCompletedEventId': 123
},
'failWorkflowExecutionFailedEventAttributes': {
'cause': 'UNHANDLED_DECISION'|'OPERATION_NOT_PERMITTED',
'decisionTaskCompletedEventId': 123
},
'workflowExecutionTimedOutEventAttributes': {
'timeoutType': 'START_TO_CLOSE',
'childPolicy': 'TERMINATE'|'REQUEST_CANCEL'|'ABANDON'
},
'workflowExecutionCanceledEventAttributes': {
'details': 'string',
'decisionTaskCompletedEventId': 123
},
'cancelWorkflowExecutionFailedEventAttributes': {
'cause': 'UNHANDLED_DECISION'|'OPERATION_NOT_PERMITTED',
'decisionTaskCompletedEventId': 123
},
'workflowExecutionContinuedAsNewEventAttributes': {
'input': 'string',
'decisionTaskCompletedEventId': 123,
'newExecutionRunId': 'string',
'executionStartToCloseTimeout': 'string',
'taskList': {
'name': 'string'
},
'taskPriority': 'string',
'taskStartToCloseTimeout': 'string',
'childPolicy': 'TERMINATE'|'REQUEST_CANCEL'|'ABANDON',
'tagList': [
'string',
],
'workflowType': {
'name': 'string',
'version': 'string'
},
'lambdaRole': 'string'
},
'continueAsNewWorkflowExecutionFailedEventAttributes': {
'cause': 'UNHANDLED_DECISION'|'WORKFLOW_TYPE_DEPRECATED'|'WORKFLOW_TYPE_DOES_NOT_EXIST'|'DEFAULT_EXECUTION_START_TO_CLOSE_TIMEOUT_UNDEFINED'|'DEFAULT_TASK_START_TO_CLOSE_TIMEOUT_UNDEFINED'|'DEFAULT_TASK_LIST_UNDEFINED'|'DEFAULT_CHILD_POLICY_UNDEFINED'|'CONTINUE_AS_NEW_WORKFLOW_EXECUTION_RATE_EXCEEDED'|'OPERATION_NOT_PERMITTED',
'decisionTaskCompletedEventId': 123
},
'workflowExecutionTerminatedEventAttributes': {
'reason': 'string',
'details': 'string',
'childPolicy': 'TERMINATE'|'REQUEST_CANCEL'|'ABANDON',
'cause': 'CHILD_POLICY_APPLIED'|'EVENT_LIMIT_EXCEEDED'|'OPERATOR_INITIATED'
},
'workflowExecutionCancelRequestedEventAttributes': {
'externalWorkflowExecution': {
'workflowId': 'string',
'runId': 'string'
},
'externalInitiatedEventId': 123,
'cause': 'CHILD_POLICY_APPLIED'
},
'decisionTaskScheduledEventAttributes': {
'taskList': {
'name': 'string'
},
'taskPriority': 'string',
'startToCloseTimeout': 'string'
},
'decisionTaskStartedEventAttributes': {
'identity': 'string',
'scheduledEventId': 123
},
'decisionTaskCompletedEventAttributes': {
'executionContext': 'string',
'scheduledEventId': 123,
'startedEventId': 123
},
'decisionTaskTimedOutEventAttributes': {
'timeoutType': 'START_TO_CLOSE',
'scheduledEventId': 123,
'startedEventId': 123
},
'activityTaskScheduledEventAttributes': {
'activityType': {
'name': 'string',
'version': 'string'
},
'activityId': 'string',
'input': 'string',
'control': 'string',
'scheduleToStartTimeout': 'string',
'scheduleToCloseTimeout': 'string',
'startToCloseTimeout': 'string',
'taskList': {
'name': 'string'
},
'taskPriority': 'string',
'decisionTaskCompletedEventId': 123,
'heartbeatTimeout': 'string'
},
'activityTaskStartedEventAttributes': {
'identity': 'string',
'scheduledEventId': 123
},
'activityTaskCompletedEventAttributes': {
'result': 'string',
'scheduledEventId': 123,
'startedEventId': 123
},
'activityTaskFailedEventAttributes': {
'reason': 'string',
'details': 'string',
'scheduledEventId': 123,
'startedEventId': 123
},
'activityTaskTimedOutEventAttributes': {
'timeoutType': 'START_TO_CLOSE'|'SCHEDULE_TO_START'|'SCHEDULE_TO_CLOSE'|'HEARTBEAT',
'scheduledEventId': 123,
'startedEventId': 123,
'details': 'string'
},
'activityTaskCanceledEventAttributes': {
'details': 'string',
'scheduledEventId': 123,
'startedEventId': 123,
'latestCancelRequestedEventId': 123
},
'activityTaskCancelRequestedEventAttributes': {
'decisionTaskCompletedEventId': 123,
'activityId': 'string'
},
'workflowExecutionSignaledEventAttributes': {
'signalName': 'string',
'input': 'string',
'externalWorkflowExecution': {
'workflowId': 'string',
'runId': 'string'
},
'externalInitiatedEventId': 123
},
'markerRecordedEventAttributes': {
'markerName': 'string',
'details': 'string',
'decisionTaskCompletedEventId': 123
},
'recordMarkerFailedEventAttributes': {
'markerName': 'string',
'cause': 'OPERATION_NOT_PERMITTED',
'decisionTaskCompletedEventId': 123
},
'timerStartedEventAttributes': {
'timerId': 'string',
'control': 'string',
'startToFireTimeout': 'string',
'decisionTaskCompletedEventId': 123
},
'timerFiredEventAttributes': {
'timerId': 'string',
'startedEventId': 123
},
'timerCanceledEventAttributes': {
'timerId': 'string',
'startedEventId': 123,
'decisionTaskCompletedEventId': 123
},
'startChildWorkflowExecutionInitiatedEventAttributes': {
'workflowId': 'string',
'workflowType': {
'name': 'string',
'version': 'string'
},
'control': 'string',
'input': 'string',
'executionStartToCloseTimeout': 'string',
'taskList': {
'name': 'string'
},
'taskPriority': 'string',
'decisionTaskCompletedEventId': 123,
'childPolicy': 'TERMINATE'|'REQUEST_CANCEL'|'ABANDON',
'taskStartToCloseTimeout': 'string',
'tagList': [
'string',
],
'lambdaRole': 'string'
},
'childWorkflowExecutionStartedEventAttributes': {
'workflowExecution': {
'workflowId': 'string',
'runId': 'string'
},
'workflowType': {
'name': 'string',
'version': 'string'
},
'initiatedEventId': 123
},
'childWorkflowExecutionCompletedEventAttributes': {
'workflowExecution': {
'workflowId': 'string',
'runId': 'string'
},
'workflowType': {
'name': 'string',
'version': 'string'
},
'result': 'string',
'initiatedEventId': 123,
'startedEventId': 123
},
'childWorkflowExecutionFailedEventAttributes': {
'workflowExecution': {
'workflowId': 'string',
'runId': 'string'
},
'workflowType': {
'name': 'string',
'version': 'string'
},
'reason': 'string',
'details': 'string',
'initiatedEventId': 123,
'startedEventId': 123
},
'childWorkflowExecutionTimedOutEventAttributes': {
'workflowExecution': {
'workflowId': 'string',
'runId': 'string'
},
'workflowType': {
'name': 'string',
'version': 'string'
},
'timeoutType': 'START_TO_CLOSE',
'initiatedEventId': 123,
'startedEventId': 123
},
'childWorkflowExecutionCanceledEventAttributes': {
'workflowExecution': {
'workflowId': 'string',
'runId': 'string'
},
'workflowType': {
'name': 'string',
'version': 'string'
},
'details': 'string',
'initiatedEventId': 123,
'startedEventId': 123
},
'childWorkflowExecutionTerminatedEventAttributes': {
'workflowExecution': {
'workflowId': 'string',
'runId': 'string'
},
'workflowType': {
'name': 'string',
'version': 'string'
},
'initiatedEventId': 123,
'startedEventId': 123
},
'signalExternalWorkflowExecutionInitiatedEventAttributes': {
'workflowId': 'string',
'runId': 'string',
'signalName': 'string',
'input': 'string',
'decisionTaskCompletedEventId': 123,
'control': 'string'
},
'externalWorkflowExecutionSignaledEventAttributes': {
'workflowExecution': {
'workflowId': 'string',
'runId': 'string'
},
'initiatedEventId': 123
},
'signalExternalWorkflowExecutionFailedEventAttributes': {
'workflowId': 'string',
'runId': 'string',
'cause': 'UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION'|'SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_RATE_EXCEEDED'|'OPERATION_NOT_PERMITTED',
'initiatedEventId': 123,
'decisionTaskCompletedEventId': 123,
'control': 'string'
},
'externalWorkflowExecutionCancelRequestedEventAttributes': {
'workflowExecution': {
'workflowId': 'string',
'runId': 'string'
},
'initiatedEventId': 123
},
'requestCancelExternalWorkflowExecutionInitiatedEventAttributes': {
'workflowId': 'string',
'runId': 'string',
'decisionTaskCompletedEventId': 123,
'control': 'string'
},
'requestCancelExternalWorkflowExecutionFailedEventAttributes': {
'workflowId': 'string',
'runId': 'string',
'cause': 'UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION'|'REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_RATE_EXCEEDED'|'OPERATION_NOT_PERMITTED',
'initiatedEventId': 123,
'decisionTaskCompletedEventId': 123,
'control': 'string'
},
'scheduleActivityTaskFailedEventAttributes': {
'activityType': {
'name': 'string',
'version': 'string'
},
'activityId': 'string',
'cause': 'ACTIVITY_TYPE_DEPRECATED'|'ACTIVITY_TYPE_DOES_NOT_EXIST'|'ACTIVITY_ID_ALREADY_IN_USE'|'OPEN_ACTIVITIES_LIMIT_EXCEEDED'|'ACTIVITY_CREATION_RATE_EXCEEDED'|'DEFAULT_SCHEDULE_TO_CLOSE_TIMEOUT_UNDEFINED'|'DEFAULT_TASK_LIST_UNDEFINED'|'DEFAULT_SCHEDULE_TO_START_TIMEOUT_UNDEFINED'|'DEFAULT_START_TO_CLOSE_TIMEOUT_UNDEFINED'|'DEFAULT_HEARTBEAT_TIMEOUT_UNDEFINED'|'OPERATION_NOT_PERMITTED',
'decisionTaskCompletedEventId': 123
},
'requestCancelActivityTaskFailedEventAttributes': {
'activityId': 'string',
'cause': 'ACTIVITY_ID_UNKNOWN'|'OPERATION_NOT_PERMITTED',
'decisionTaskCompletedEventId': 123
},
'startTimerFailedEventAttributes': {
'timerId': 'string',
'cause': 'TIMER_ID_ALREADY_IN_USE'|'OPEN_TIMERS_LIMIT_EXCEEDED'|'TIMER_CREATION_RATE_EXCEEDED'|'OPERATION_NOT_PERMITTED',
'decisionTaskCompletedEventId': 123
},
'cancelTimerFailedEventAttributes': {
'timerId': 'string',
'cause': 'TIMER_ID_UNKNOWN'|'OPERATION_NOT_PERMITTED',
'decisionTaskCompletedEventId': 123
},
'startChildWorkflowExecutionFailedEventAttributes': {
'workflowType': {
'name': 'string',
'version': 'string'
},
'cause': 'WORKFLOW_TYPE_DOES_NOT_EXIST'|'WORKFLOW_TYPE_DEPRECATED'|'OPEN_CHILDREN_LIMIT_EXCEEDED'|'OPEN_WORKFLOWS_LIMIT_EXCEEDED'|'CHILD_CREATION_RATE_EXCEEDED'|'WORKFLOW_ALREADY_RUNNING'|'DEFAULT_EXECUTION_START_TO_CLOSE_TIMEOUT_UNDEFINED'|'DEFAULT_TASK_LIST_UNDEFINED'|'DEFAULT_TASK_START_TO_CLOSE_TIMEOUT_UNDEFINED'|'DEFAULT_CHILD_POLICY_UNDEFINED'|'OPERATION_NOT_PERMITTED',
'workflowId': 'string',
'initiatedEventId': 123,
'decisionTaskCompletedEventId': 123,
'control': 'string'
},
'lambdaFunctionScheduledEventAttributes': {
'id': 'string',
'name': 'string',
'input': 'string',
'startToCloseTimeout': 'string',
'decisionTaskCompletedEventId': 123
},
'lambdaFunctionStartedEventAttributes': {
'scheduledEventId': 123
},
'lambdaFunctionCompletedEventAttributes': {
'scheduledEventId': 123,
'startedEventId': 123,
'result': 'string'
},
'lambdaFunctionFailedEventAttributes': {
'scheduledEventId': 123,
'startedEventId': 123,
'reason': 'string',
'details': 'string'
},
'lambdaFunctionTimedOutEventAttributes': {
'scheduledEventId': 123,
'startedEventId': 123,
'timeoutType': 'START_TO_CLOSE'
},
'scheduleLambdaFunctionFailedEventAttributes': {
'id': 'string',
'name': 'string',
'cause': 'ID_ALREADY_IN_USE'|'OPEN_LAMBDA_FUNCTIONS_LIMIT_EXCEEDED'|'LAMBDA_FUNCTION_CREATION_RATE_EXCEEDED'|'LAMBDA_SERVICE_NOT_AVAILABLE_IN_REGION',
'decisionTaskCompletedEventId': 123
},
'startLambdaFunctionFailedEventAttributes': {
'scheduledEventId': 123,
'cause': 'ASSUME_ROLE_FAILED',
'message': 'string'
}
},
],
'previousStartedEventId': 123,
'NextToken': 'string'
}
Response Structure
|