AWS SDK for .NET Documentation
Amazon.SimpleWorkflow.Model Namespace
AmazonAmazon.SimpleWorkflow.Model Did this page help you?   Yes   No    Tell us about it...
 
Declaration Syntax
C#
namespace Amazon.SimpleWorkflow.Model
Types
All TypesClasses
IconTypeDescription
ActivityTask

Unit of work sent to an activity worker.


ActivityTaskCanceledEventAttributes

Provides details of the ActivityTaskCanceled event.


ActivityTaskCancelRequestedEventAttributes

Provides details of the ActivityTaskCancelRequested event.


ActivityTaskCompletedEventAttributes

Provides details of the ActivityTaskCompleted event.


ActivityTaskFailedEventAttributes

Provides details of the ActivityTaskFailed event.


ActivityTaskScheduledEventAttributes

Provides details of the ActivityTaskScheduled event.


ActivityTaskStartedEventAttributes

Provides details of the ActivityTaskStarted event.


ActivityTaskStatus

Status information about an activity task.


ActivityTaskTimedOutEventAttributes

Provides details of the ActivityTaskTimedOut event.


ActivityType

Represents an activity type.


ActivityTypeConfiguration

Configuration settings registered with the activity type.


ActivityTypeDetail

Detailed information about an activity type.


ActivityTypeInfo

Detailed information about an activity type.


ActivityTypeInfos

Contains a paginated list of activity type information structures.


CancelTimerDecisionAttributes

Provides details of the CancelTimer decision.

Access Control

You can use IAM policies to control this decision's access to Amazon SWF in much the same way as for the regular API:

  • Use a Resource element with the domain name to limit the decision to only specified domains.
  • Use an Action element to allow or deny permission to specify this decision.
  • You cannot use an IAM policy to constrain this action's parameters.

If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.


CancelTimerFailedEventAttributes

Provides details of the CancelTimerFailed event.


CancelWorkflowExecutionDecisionAttributes

Provides details of the CancelWorkflowExecution decision.

Access Control

You can use IAM policies to control this decision's access to Amazon SWF in much the same way as for the regular API:

  • Use a Resource element with the domain name to limit the decision to only specified domains.
  • Use an Action element to allow or deny permission to specify this decision.
  • You cannot use an IAM policy to constrain this action's parameters.

If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.


CancelWorkflowExecutionFailedEventAttributes

Provides details of the CancelWorkflowExecutionFailed event.


ChildWorkflowExecutionCanceledEventAttributes

Provide details of the ChildWorkflowExecutionCanceled event.


ChildWorkflowExecutionCompletedEventAttributes

Provides details of the ChildWorkflowExecutionCompleted event.


ChildWorkflowExecutionFailedEventAttributes

Provides details of the ChildWorkflowExecutionFailed event.


ChildWorkflowExecutionStartedEventAttributes

Provides details of the ChildWorkflowExecutionStarted event.


ChildWorkflowExecutionTerminatedEventAttributes

Provides details of the ChildWorkflowExecutionTerminated event.


ChildWorkflowExecutionTimedOutEventAttributes

Provides details of the ChildWorkflowExecutionTimedOut event.


CloseStatusFilter

Used to filter the closed workflow executions in visibility APIs by their close status.


CompleteWorkflowExecutionDecisionAttributes

Provides details of the CompleteWorkflowExecution decision.

Access Control

You can use IAM policies to control this decision's access to Amazon SWF in much the same way as for the regular API:

  • Use a Resource element with the domain name to limit the decision to only specified domains.
  • Use an Action element to allow or deny permission to specify this decision.
  • You cannot use an IAM policy to constrain this action's parameters.

If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.


CompleteWorkflowExecutionFailedEventAttributes

Provides details of the CompleteWorkflowExecutionFailed event.


ContinueAsNewWorkflowExecutionDecisionAttributes

Provides details of the ContinueAsNewWorkflowExecution decision.

Access Control

You can use IAM policies to control this decision's access to Amazon SWF in much the same way as for the regular API:

  • Use a Resource element with the domain name to limit the decision to only specified domains.
  • Use an Action element to allow or deny permission to specify this decision.
  • Constrain the following parameters by using a Condition element with the appropriate keys.
    • tag : TBD.
    • taskList : String constraint. The key is "swf:taskList.name".
    • workflowTypeVersion : String constraint. The key is TBD.

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.


ContinueAsNewWorkflowExecutionFailedEventAttributes

Provides details of the ContinueAsNewWorkflowExecutionFailed event.


CountClosedWorkflowExecutionsRequest
Container for the parameters to the CountClosedWorkflowExecutions operation.

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:

  • Use a Resource element with the domain name to limit the action to only specified domains.
  • Use an Action element to allow or deny permission to call this action.
  • Constrain the following parameters by using a Condition element with the appropriate keys.
    • 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 by throwing OperationNotPermitted . For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.


CountClosedWorkflowExecutionsResponse
Returns information about the CountClosedWorkflowExecutions response and response metadata.

CountClosedWorkflowExecutionsResult
The results from the CountClosedWorkflowExecutions action.

CountOpenWorkflowExecutionsRequest
Container for the parameters to the CountOpenWorkflowExecutions operation.

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:

  • Use a Resource element with the domain name to limit the action to only specified domains.
  • Use an Action element to allow or deny permission to call this action.
  • Constrain the following parameters by using a Condition element with the appropriate keys.
    • 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 by throwing OperationNotPermitted . For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.


CountOpenWorkflowExecutionsResponse
Returns information about the CountOpenWorkflowExecutions response and response metadata.

CountOpenWorkflowExecutionsResult
The results from the CountOpenWorkflowExecutions action.

CountPendingActivityTasksRequest
Container for the parameters to the CountPendingActivityTasks operation.

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:

  • Use a Resource element with the domain name to limit the action to only specified domains.
  • Use an Action element to allow or deny permission to call this action.
  • Constrain the taskList.name parameter by using a Condition element with the swf:taskList.name key to allow the action to access only certain task lists.

If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails by throwing OperationNotPermitted . For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.


CountPendingActivityTasksResponse
Returns information about the CountPendingActivityTasks response and response metadata.

CountPendingActivityTasksResult
The results from the CountPendingActivityTasks action.

CountPendingDecisionTasksRequest
Container for the parameters to the CountPendingDecisionTasks operation.

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:

  • Use a Resource element with the domain name to limit the action to only specified domains.
  • Use an Action element to allow or deny permission to call this action.
  • Constrain the taskList.name parameter by using a Condition element with the swf:taskList.name key to allow the action to access only certain task lists.

If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails by throwing OperationNotPermitted . For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.


CountPendingDecisionTasksResponse
Returns information about the CountPendingDecisionTasks response and response metadata.

CountPendingDecisionTasksResult
The results from the CountPendingDecisionTasks action.

Decision

Specifies a decision made by the decider. A decision can be one of these types:

  • CancelTimer cancels a previously started timer and records a TimerCanceled event in the history.
  • CancelWorkflowExecution closes the workflow execution and records a WorkflowExecutionCanceled event in the history.
  • CompleteWorkflowExecution closes the workflow execution and records a WorkflowExecutionCompleted event in the history .
  • ContinueAsNewWorkflowExecution closes the workflow execution and starts a new workflow execution of the same type using the same workflow id and a unique run Id. A WorkflowExecutionContinuedAsNew event is recorded in the history.
  • FailWorkflowExecution closes the workflow execution and records a WorkflowExecutionFailed event in the history.
  • RecordMarker records a MarkerRecorded event in the history. Markers can be used for adding custom information in the history for instance to let deciders know that they do not need to look at the history beyond the marker event.
  • RequestCancelActivityTask attempts to cancel a previously scheduled activity task. If the activity task was scheduled but has not been assigned to a worker, then it will be canceled. If the activity task was already assigned to a worker, then the worker will be informed that cancellation has been requested in the response to RecordActivityTaskHeartbeat.
  • RequestCancelExternalWorkflowExecution requests that a request be made to cancel the specified external workflow execution and records a RequestCancelExternalWorkflowExecutionInitiated event in the history.
  • ScheduleActivityTask schedules an activity task.
  • SignalExternalWorkflowExecution requests a signal to be delivered to the specified external workflow execution and records a SignalExternalWorkflowExecutionInitiated event in the history.
  • StartChildWorkflowExecution requests that a child workflow execution be started and records a StartChildWorkflowExecutionInitiated event in the history. The child workflow execution is a separate workflow execution with its own history.
  • StartTimer starts a timer for this workflow execution and records a TimerStarted event in the history. This timer will fire after the specified delay and record a TimerFired event.

Access Control

If you grant permission to use RespondDecisionTaskCompleted , you can use IAM policies to express permissions for the list of decisions returned by this action as if they were members of the API. Treating decisions as a pseudo API maintains a uniform conceptual model and helps keep policies readable. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.

Decision Failure

Decisions can fail for several reasons

  • The ordering of decisions should follow a logical flow. Some decisions might not make sense in the current context of the workflow execution and will therefore fail.
  • A limit on your account was reached.
  • The decision lacks sufficient permissions.

One of the following events might be added to the history to indicate an error. The event attribute's cause parameter indicates the cause. If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it lacked sufficient permissions.

  • ScheduleActivityTaskFailed a ScheduleActivityTask decision failed. This could happen if the activity type specified in the decision is not registered, is in a deprecated state, or the decision is not properly configured.
  • RequestCancelActivityTaskFailed a RequestCancelActivityTask decision failed. This could happen if there is no open activity task with the specified activityId.
  • StartTimerFailed a StartTimer decision failed. This could happen if there is another open timer with the same timerId.
  • CancelTimerFailed a CancelTimer decision failed. This could happen if there is no open timer with the specified timerId.
  • StartChildWorkflowExecutionFailed a StartChildWorkflowExecution decision failed. This could happen if the workflow type specified is not registered, is deprecated, or the decision is not properly configured.
  • SignalExternalWorkflowExecutionFailed a SignalExternalWorkflowExecution decision failed. This could happen if the workflowID specified in the decision was incorrect.
  • RequestCancelExternalWorkflowExecutionFailed a RequestCancelExternalWorkflowExecution decision failed. This could happen if the workflowID specified in the decision was incorrect.
  • CancelWorkflowExecutionFailed a CancelWorkflowExecution decision failed. This could happen if there is an unhandled decision task pending in the workflow execution.
  • CompleteWorkflowExecutionFailed a CompleteWorkflowExecution decision failed. This could happen if there is an unhandled decision task pending in the workflow execution.
  • ContinueAsNewWorkflowExecutionFailed a ContinueAsNewWorkflowExecution decision failed. This could happen if there is an unhandled decision task pending in the workflow execution or the ContinueAsNewWorkflowExecution decision was not configured correctly.
  • FailWorkflowExecutionFailed a FailWorkflowExecution decision failed. This could happen if there is an unhandled decision task pending in the workflow execution.

The preceding error events might occur due to an error in the decider logic, which might put the workflow execution in an unstable state The cause field in the event structure for the error event indicates the cause of the error.

NOTE: A workflow execution may be closed by the decider by returning one of the following decisions when completing a decision task: CompleteWorkflowExecution, FailWorkflowExecution, CancelWorkflowExecution and ContinueAsNewWorkflowExecution. An UnhandledDecision fault will be returned if a workflow closing decision is specified and a signal or activity event had been added to the history while the decision task was being performed by the decider. Unlike the above situations which are logic issues, this fault is always possible because of race conditions in a distributed system. The right action here is to call RespondDecisionTaskCompleted without any decisions. This would result in another decision task with these new events included in the history. The decider should handle the new events and may decide to close the workflow execution.

How to Code a Decision

You code a decision by first setting the decision type field to one of the above decision values, and then set the corresponding attributes field shown below:

  • ScheduleActivityTaskDecisionAttributes
  • RequestCancelActivityTaskDecisionAttributes
  • CompleteWorkflowExecutionDecisionAttributes
  • FailWorkflowExecutionDecisionAttributes
  • CancelWorkflowExecutionDecisionAttributes
  • ContinueAsNewWorkflowExecutionDecisionAttributes
  • RecordMarkerDecisionAttributes
  • StartTimerDecisionAttributes
  • CancelTimerDecisionAttributes
  • SignalExternalWorkflowExecutionDecisionAttributes
  • RequestCancelExternalWorkflowExecutionDecisionAttributes
  • StartChildWorkflowExecutionDecisionAttributes

DecisionTask

A structure that represents a decision task. Decision tasks are sent to deciders in order for them to make decisions.


DecisionTaskCompletedEventAttributes

Provides details of the DecisionTaskCompleted event.


DecisionTaskScheduledEventAttributes

Provides details of the DecisionTaskScheduled event.


DecisionTaskStartedEventAttributes

Provides details of the DecisionTaskStarted event.


DecisionTaskTimedOutEventAttributes

Provides details of the DecisionTaskTimedOut event.


DefaultUndefinedException
AmazonSimpleWorkflow exception

DeprecateActivityTypeRequest
Container for the parameters to the DeprecateActivityType operation.

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:

  • Use a Resource element with the domain name to limit the action to only specified domains.
  • Use an Action element to allow or deny permission to call this action.
  • Constrain the following parameters by using a Condition element with the appropriate keys.
    • activityType.name : String constraint. The key is swf:activityType.name .
    • activityType.version : String constraint. The key is swf:activityType.version .

If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails by throwing OperationNotPermitted . For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.


DeprecateActivityTypeResponse
Returns information about the DeprecateActivityType response metadata. The DeprecateActivityType operation has a void result type.

DeprecateDomainRequest
Container for the parameters to the DeprecateDomain operation.

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:

  • Use a Resource element with the domain name to limit the action to only specified domains.
  • Use an Action element to allow or deny permission to call this action.
  • You cannot use an IAM policy to constrain this action's parameters.

If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails by throwing OperationNotPermitted . For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.


DeprecateDomainResponse
Returns information about the DeprecateDomain response metadata. The DeprecateDomain operation has a void result type.

DeprecateWorkflowTypeRequest
Container for the parameters to the DeprecateWorkflowType operation.

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:

  • Use a Resource element with the domain name to limit the action to only specified domains.
  • Use an Action element to allow or deny permission to call this action.
  • Constrain the following parameters by using a Condition element with the appropriate keys.
    • workflowType.name : String constraint. The key is swf:workflowType.name .
    • workflowType.version : String constraint. The key is swf:workflowType.version .

If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails by throwing OperationNotPermitted . For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.


DeprecateWorkflowTypeResponse
Returns information about the DeprecateWorkflowType response metadata. The DeprecateWorkflowType operation has a void result type.

DescribeActivityTypeRequest
Container for the parameters to the DescribeActivityType operation.

Returns information about the specified activity type. This includes configuration settings provided at registration time as well as 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:

  • Use a Resource element with the domain name to limit the action to only specified domains.
  • Use an Action element to allow or deny permission to call this action.
  • Constrain the following parameters by using a Condition element with the appropriate keys.
    • activityType.name : String constraint. The key is swf:activityType.name .
    • activityType.version : String constraint. The key is swf:activityType.version .

If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails by throwing OperationNotPermitted . For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.


DescribeActivityTypeResponse
Returns information about the DescribeActivityType response and response metadata.

DescribeActivityTypeResult
The results from the DescribeActivityType action.

DescribeDomainRequest
Container for the parameters to the DescribeDomain operation.

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:

  • Use a Resource element with the domain name to limit the action to only specified domains.
  • Use an Action element to allow or deny permission to call this action.
  • You cannot use an IAM policy to constrain this action's parameters.

If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails by throwing OperationNotPermitted . For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.


DescribeDomainResponse
Returns information about the DescribeDomain response and response metadata.

DescribeDomainResult
The results from the DescribeDomain action.

DescribeWorkflowExecutionRequest
Container for the parameters to the DescribeWorkflowExecution operation.

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:

  • Use a Resource element with the domain name to limit the action to only specified domains.
  • Use an Action element to allow or deny permission to call this action.
  • You cannot use an IAM policy to constrain this action's parameters.

If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails by throwing OperationNotPermitted . For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.


DescribeWorkflowExecutionResponse
Returns information about the DescribeWorkflowExecution response and response metadata.

DescribeWorkflowExecutionResult
The results from the DescribeWorkflowExecution action.

DescribeWorkflowTypeRequest
Container for the parameters to the DescribeWorkflowType operation.

Returns information about the specified workflow type . This includes configuration settings specified when the type was registered and other information such as creation date, current status, etc.

Access Control

You can use IAM policies to control this action's access to Amazon SWF resources as follows:

  • Use a Resource element with the domain name to limit the action to only specified domains.
  • Use an Action element to allow or deny permission to call this action.
  • Constrain the following parameters by using a Condition element with the appropriate keys.
    • workflowType.name : String constraint. The key is swf:workflowType.name .
    • workflowType.version : String constraint. The key is swf:workflowType.version .

If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails by throwing OperationNotPermitted . For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.


DescribeWorkflowTypeResponse
Returns information about the DescribeWorkflowType response and response metadata.

DescribeWorkflowTypeResult
The results from the DescribeWorkflowType action.

DomainAlreadyExistsException
AmazonSimpleWorkflow exception

DomainConfiguration

Contains the configuration settings of a domain.


DomainDeprecatedException
AmazonSimpleWorkflow exception

DomainDetail

Contains details of a domain.


DomainInfo

Contains general information about a domain.


DomainInfos

Contains a paginated collection of DomainInfo structures.


ExecutionTimeFilter

Used to filter the workflow executions in visibility APIs by various time-based rules. Each parameter, if specified, defines a rule that must be satisfied by each returned query result. The parameter values are in the Unix Time format. For example: "oldestDate": 1325376070.


ExternalWorkflowExecutionCancelRequestedEventAttributes

Provides details of the ExternalWorkflowExecutionCancelRequested event.


ExternalWorkflowExecutionSignaledEventAttributes

Provides details of the ExternalWorkflowExecutionSignaled event.


FailWorkflowExecutionDecisionAttributes

Provides details of the FailWorkflowExecution decision.

Access Control

You can use IAM policies to control this decision's access to Amazon SWF in much the same way as for the regular API:

  • Use a Resource element with the domain name to limit the decision to only specified domains.
  • Use an Action element to allow or deny permission to specify this decision.
  • You cannot use an IAM policy to constrain this action's parameters.

If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.


FailWorkflowExecutionFailedEventAttributes

Provides details of the FailWorkflowExecutionFailed event.


GetWorkflowExecutionHistoryRequest
Container for the parameters to the GetWorkflowExecutionHistory operation.

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:

  • Use a Resource element with the domain name to limit the action to only specified domains.
  • Use an Action element to allow or deny permission to call this action.
  • You cannot use an IAM policy to constrain this action's parameters.

If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails by throwing OperationNotPermitted . For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.


GetWorkflowExecutionHistoryResponse
Returns information about the GetWorkflowExecutionHistory response and response metadata.

GetWorkflowExecutionHistoryResult
The results from the GetWorkflowExecutionHistory action.

History

Paginated representation of a workflow history for a workflow execution. This is the up to date, complete and authoritative record of the events related to all tasks and events in the life of the workflow execution.


HistoryEvent

Event within a workflow execution. A history event can be one of these types:

  • WorkflowExecutionStarted : The workflow execution was started.
  • WorkflowExecutionCompleted : The workflow execution was closed due to successful completion.
  • WorkflowExecutionFailed : The workflow execution closed due to a failure.
  • WorkflowExecutionTimedOut : The workflow execution was closed because a time out was exceeded.
  • WorkflowExecutionCanceled : The workflow execution was successfully canceled and closed.
  • WorkflowExecutionTerminated : The workflow execution was terminated.
  • WorkflowExecutionContinuedAsNew : The workflow execution was closed and a new execution of the same type was created with the same workflowId.
  • WorkflowExecutionCancelRequested : A request to cancel this workflow execution was made.
  • DecisionTaskScheduled : A decision task was scheduled for the workflow execution.
  • DecisionTaskStarted : The decision task was dispatched to a decider.
  • DecisionTaskCompleted : The decider successfully completed a decision task by calling RespondDecisionTaskCompleted.
  • DecisionTaskTimedOut : The decision task timed out.
  • ActivityTaskScheduled : An activity task was scheduled for execution.
  • ScheduleActivityTaskFailed : Failed to process ScheduleActivityTask decision. This happens when the decision is not configured properly, for example the activity type specified is not registered.
  • ActivityTaskStarted : The scheduled activity task was dispatched to a worker.
  • ActivityTaskCompleted : An activity worker successfully completed an activity task by calling RespondActivityTaskCompleted.
  • ActivityTaskFailed : An activity worker failed an activity task by calling RespondActivityTaskFailed.
  • ActivityTaskTimedOut : The activity task timed out.
  • ActivityTaskCanceled : The activity task was successfully canceled.
  • ActivityTaskCancelRequested : A RequestCancelActivityTask decision was received by the system.
  • RequestCancelActivityTaskFailed : Failed to process RequestCancelActivityTask decision. This happens when the decision is not configured properly.
  • WorkflowExecutionSignaled : An external signal was received for the workflow execution.
  • MarkerRecorded : A marker was recorded in the workflow history as the result of a RecordMarker decision.
  • TimerStarted : A timer was started for the workflow execution due to a StartTimer decision.
  • StartTimerFailed : Failed to process StartTimer decision. This happens when the decision is not configured properly, for example a timer already exists with the specified timer Id.
  • TimerFired : A timer, previously started for this workflow execution, fired.
  • TimerCanceled : A timer, previously started for this workflow execution, was successfully canceled.
  • CancelTimerFailed : Failed to process CancelTimer decision. This happens when the decision is not configured properly, for example no timer exists with the specified timer Id.
  • StartChildWorkflowExecutionInitiated : A request was made to start a child workflow execution.
  • StartChildWorkflowExecutionFailed : Failed to process StartChildWorkflowExecution decision. This happens when the decision is not configured properly, for example the workflow type specified is not registered.
  • ChildWorkflowExecutionStarted : A child workflow execution was successfully started.
  • ChildWorkflowExecutionCompleted : A child workflow execution, started by this workflow execution, completed successfully and was closed.
  • ChildWorkflowExecutionFailed : A child workflow execution, started by this workflow execution, failed to complete successfully and was closed.
  • ChildWorkflowExecutionTimedOut : A child workflow execution, started by this workflow execution, timed out and was closed.
  • ChildWorkflowExecutionCanceled : A child workflow execution, started by this workflow execution, was canceled and closed.
  • ChildWorkflowExecutionTerminated : A child workflow execution, started by this workflow execution, was terminated.
  • SignalExternalWorkflowExecutionInitiated : A request to signal an external workflow was made.
  • ExternalWorkflowExecutionSignaled : A signal, requested by this workflow execution, was successfully delivered to the target external workflow execution.
  • SignalExternalWorkflowExecutionFailed : The request to signal an external workflow execution failed.
  • RequestCancelExternalWorkflowExecutionInitiated : A request was made to request the cancellation of an external workflow execution.
  • ExternalWorkflowExecutionCancelRequested : Request to cancel an external workflow execution was successfully delivered to the target execution.
  • RequestCancelExternalWorkflowExecutionFailed : Request to cancel an external workflow execution failed.

LimitExceededException
AmazonSimpleWorkflow exception

ListActivityTypesRequest
Container for the parameters to the ListActivityTypes operation.

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:

  • Use a Resource element with the domain name to limit the action to only specified domains.
  • Use an Action element to allow or deny permission to call this action.
  • You cannot use an IAM policy to constrain this action's parameters.

If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails by throwing OperationNotPermitted . For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.


ListActivityTypesResponse
Returns information about the ListActivityTypes response and response metadata.

ListActivityTypesResult
The results from the ListActivityTypes action.

ListClosedWorkflowExecutionsRequest
Container for the parameters to the ListClosedWorkflowExecutions operation.

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:

  • Use a Resource element with the domain name to limit the action to only specified domains.
  • Use an Action element to allow or deny permission to call this action.
  • Constrain the following parameters by using a Condition element with the appropriate keys.
    • 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 by throwing OperationNotPermitted . For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.


ListClosedWorkflowExecutionsResponse
Returns information about the ListClosedWorkflowExecutions response and response metadata.

ListClosedWorkflowExecutionsResult
The results from the ListClosedWorkflowExecutions action.

ListDomainsRequest
Container for the parameters to the ListDomains operation.

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:

  • Use a 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.
  • Use an Action element to allow or deny permission to call this action.
  • You cannot use an IAM policy to constrain this action's parameters.

If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails by throwing OperationNotPermitted . For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.


ListDomainsResponse
Returns information about the ListDomains response and response metadata.

ListDomainsResult
The results from the ListDomains action.

ListOpenWorkflowExecutionsRequest
Container for the parameters to the ListOpenWorkflowExecutions operation.

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:

  • Use a Resource element with the domain name to limit the action to only specified domains.
  • Use an Action element to allow or deny permission to call this action.
  • Constrain the following parameters by using a Condition element with the appropriate keys.
    • 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 by throwing OperationNotPermitted . For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.


ListOpenWorkflowExecutionsResponse
Returns information about the ListOpenWorkflowExecutions response and response metadata.

ListOpenWorkflowExecutionsResult
The results from the ListOpenWorkflowExecutions action.

ListWorkflowTypesRequest
Container for the parameters to the ListWorkflowTypes operation.

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:

  • Use a Resource element with the domain name to limit the action to only specified domains.
  • Use an Action element to allow or deny permission to call this action.
  • You cannot use an IAM policy to constrain this action's parameters.

If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails by throwing OperationNotPermitted . For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.


ListWorkflowTypesResponse
Returns information about the ListWorkflowTypes response and response metadata.

ListWorkflowTypesResult
The results from the ListWorkflowTypes action.

MarkerRecordedEventAttributes

Provides details of the MarkerRecorded event.


OperationNotPermittedException
AmazonSimpleWorkflow exception

PendingTaskCount

Contains the count of tasks in a task list.


PollForActivityTaskRequest
Container for the parameters to the PollForActivityTask operation.

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.

IMPORTANT: 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:

  • Use a Resource element with the domain name to limit the action to only specified domains.
  • Use an Action element to allow or deny permission to call this action.
  • Constrain the taskList.name parameter by using a Condition element with the swf:taskList.name key to allow the action to access only certain task lists.

If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails by throwing OperationNotPermitted . For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.


PollForActivityTaskResponse
Returns information about the PollForActivityTask response and response metadata.

PollForActivityTaskResult
The results from the PollForActivityTask action.

PollForDecisionTaskRequest
Container for the parameters to the PollForDecisionTask operation.

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.

IMPORTANT: Deciders should set their client side socket timeout to at least 70 seconds (10 seconds higher than the timeout).

IMPORTANT: 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:

  • Use a Resource element with the domain name to limit the action to only specified domains.
  • Use an Action element to allow or deny permission to call this action.
  • Constrain the taskList.name parameter by using a Condition element with the swf:taskList.name key to allow the action to access only certain task lists.

If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails by throwing OperationNotPermitted . For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.


PollForDecisionTaskResponse
Returns information about the PollForDecisionTask response and response metadata.

PollForDecisionTaskResult
The results from the PollForDecisionTask action.

RecordActivityTaskHeartbeatRequest
Container for the parameters to the RecordActivityTaskHeartbeat operation.

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.

IMPORTANT: 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:

  • Use a Resource element with the domain name to limit the action to only specified domains.
  • Use an Action element to allow or deny permission to call this action.
  • You cannot use an IAM policy to constrain this action's parameters.

If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails by throwing OperationNotPermitted . For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.


RecordActivityTaskHeartbeatResponse
Returns information about the RecordActivityTaskHeartbeat response and response metadata.

RecordActivityTaskHeartbeatResult
The results from the RecordActivityTaskHeartbeat action.

RecordMarkerDecisionAttributes

Provides details of the RecordMarker decision.

Access Control

You can use IAM policies to control this decision's access to Amazon SWF in much the same way as for the regular API:

  • Use a Resource element with the domain name to limit the decision to only specified domains.
  • Use an Action element to allow or deny permission to specify this decision.
  • You cannot use an IAM policy to constrain this action's parameters.

If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.


RecordMarkerFailedEventAttributes

Provides details of the RecordMarkerFailed event.


RegisterActivityTypeRequest
Container for the parameters to the RegisterActivityType operation.

Registers a new activity type along with its configuration settings in the specified domain.

IMPORTANT: 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:

  • Use a Resource element with the domain name to limit the action to only specified domains.
  • Use an Action element to allow or deny permission to call this action.
  • Constrain the following parameters by using a Condition element with the appropriate keys.
    • defaultTaskList.name : String constraint. The key is swf:defaultTaskList.name .
    • name : String constraint. The key is swf:name .
    • version : String constraint. The key is swf:version .

If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails by throwing OperationNotPermitted . For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.


RegisterActivityTypeResponse
Returns information about the RegisterActivityType response metadata. The RegisterActivityType operation has a void result type.

RegisterDomainRequest
Container for the parameters to the RegisterDomain operation.

Registers a new domain.

Access Control

You can use IAM policies to control this action's access to Amazon SWF resources as follows:

  • You cannot use an IAM policy to control domain access for this action. The name of the domain being registered is available as the resource of this action.
  • Use an Action element to allow or deny permission to call this action.
  • You cannot use an IAM policy to constrain this action's parameters.

If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails by throwing OperationNotPermitted . For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.


RegisterDomainResponse
Returns information about the RegisterDomain response metadata. The RegisterDomain operation has a void result type.

RegisterWorkflowTypeRequest
Container for the parameters to the RegisterWorkflowType operation.

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.

IMPORTANT: 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:

  • Use a Resource element with the domain name to limit the action to only specified domains.
  • Use an Action element to allow or deny permission to call this action.
  • Constrain the following parameters by using a Condition element with the appropriate keys.
    • defaultTaskList.name : String constraint. The key is swf:defaultTaskList.name .
    • name : String constraint. The key is swf:name .
    • version : String constraint. The key is swf:version .

If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails by throwing OperationNotPermitted . For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.


RegisterWorkflowTypeResponse
Returns information about the RegisterWorkflowType response metadata. The RegisterWorkflowType operation has a void result type.

RequestCancelActivityTaskDecisionAttributes

Provides details of the RequestCancelActivityTask decision.

Access Control

You can use IAM policies to control this decision's access to Amazon SWF in much the same way as for the regular API:

  • Use a Resource element with the domain name to limit the decision to only specified domains.
  • Use an Action element to allow or deny permission to specify this decision.
  • You cannot use an IAM policy to constrain this action's parameters.

If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.


RequestCancelActivityTaskFailedEventAttributes

Provides details of the RequestCancelActivityTaskFailed event.


RequestCancelExternalWorkflowExecutionDecisionAttributes

Provides details of the RequestCancelExternalWorkflowExecution decision.

Access Control

You can use IAM policies to control this decision's access to Amazon SWF in much the same way as for the regular API:

  • Use a Resource element with the domain name to limit the decision to only specified domains.
  • Use an Action element to allow or deny permission to specify this decision.
  • You cannot use an IAM policy to constrain this action's parameters.

If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.


RequestCancelExternalWorkflowExecutionFailedEventAttributes

Provides details of the RequestCancelExternalWorkflowExecutionFailed event.


RequestCancelExternalWorkflowExecutionInitiatedEventAttributes

Provides details of the RequestCancelExternalWorkflowExecutionInitiated event.


RequestCancelWorkflowExecutionRequest
Container for the parameters to the RequestCancelWorkflowExecution operation.

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:

  • Use a Resource element with the domain name to limit the action to only specified domains.
  • Use an Action element to allow or deny permission to call this action.
  • You cannot use an IAM policy to constrain this action's parameters.

If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails by throwing OperationNotPermitted . For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.


RequestCancelWorkflowExecutionResponse
Returns information about the RequestCancelWorkflowExecution response metadata. The RequestCancelWorkflowExecution operation has a void result type.

RespondActivityTaskCanceledRequest
Container for the parameters to the RespondActivityTaskCanceled operation.

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.

IMPORTANT: 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:

  • Use a Resource element with the domain name to limit the action to only specified domains.
  • Use an Action element to allow or deny permission to call this action.
  • You cannot use an IAM policy to constrain this action's parameters.

If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails by throwing OperationNotPermitted . For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.


RespondActivityTaskCanceledResponse
Returns information about the RespondActivityTaskCanceled response metadata. The RespondActivityTaskCanceled operation has a void result type.

RespondActivityTaskCompletedRequest
Container for the parameters to the RespondActivityTaskCompleted operation.

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.

IMPORTANT: 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:

  • Use a Resource element with the domain name to limit the action to only specified domains.
  • Use an Action element to allow or deny permission to call this action.
  • You cannot use an IAM policy to constrain this action's parameters.

If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails by throwing OperationNotPermitted . For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.


RespondActivityTaskCompletedResponse
Returns information about the RespondActivityTaskCompleted response metadata. The RespondActivityTaskCompleted operation has a void result type.

RespondActivityTaskFailedRequest
Container for the parameters to the RespondActivityTaskFailed operation.

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:

  • Use a Resource element with the domain name to limit the action to only specified domains.
  • Use an Action element to allow or deny permission to call this action.
  • You cannot use an IAM policy to constrain this action's parameters.

If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails by throwing OperationNotPermitted . For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.


RespondActivityTaskFailedResponse
Returns information about the RespondActivityTaskFailed response metadata. The RespondActivityTaskFailed operation has a void result type.

RespondDecisionTaskCompletedRequest
Container for the parameters to the RespondDecisionTaskCompleted operation.

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.


RespondDecisionTaskCompletedResponse
Returns information about the RespondDecisionTaskCompleted response metadata. The RespondDecisionTaskCompleted operation has a void result type.

Run

Specifies the runId of a workflow execution.


ScheduleActivityTaskDecisionAttributes

Provides details of the ScheduleActivityTask decision.

Access Control

You can use IAM policies to control this decision's access to Amazon SWF in much the same way as for the regular API:

  • Use a Resource element with the domain name to limit the decision to only specified domains.
  • Use an Action element to allow or deny permission to specify this decision.
  • Constrain the following parameters by using a Condition element with the appropriate keys.
    • activityType.name : String constraint. The key is “swf:activityType.name”.
    • activityType.version : String constraint. The key is “swf:activityType.version”.
    • taskList : String constraint. The key is “swf:taskList.name”.

If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.


ScheduleActivityTaskFailedEventAttributes

Provides details of the ScheduleActivityTaskFailed event.


SignalExternalWorkflowExecutionDecisionAttributes

Provides details of the SignalExternalWorkflowExecution decision.

Access Control

You can use IAM policies to control this decision's access to Amazon SWF in much the same way as for the regular API:

  • Use a Resource element with the domain name to limit the decision to only specified domains.
  • Use an Action element to allow or deny permission to specify this decision.
  • You cannot use an IAM policy to constrain this action's parameters.

If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.


SignalExternalWorkflowExecutionFailedEventAttributes

Provides details of the SignalExternalWorkflowExecutionFailed event.


SignalExternalWorkflowExecutionInitiatedEventAttributes

Provides details of the SignalExternalWorkflowExecutionInitiated event.


SignalWorkflowExecutionRequest
Container for the parameters to the SignalWorkflowExecution operation.

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:

  • Use a Resource element with the domain name to limit the action to only specified domains.
  • Use an Action element to allow or deny permission to call this action.
  • You cannot use an IAM policy to constrain this action's parameters.

If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails by throwing OperationNotPermitted . For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.


SignalWorkflowExecutionResponse
Returns information about the SignalWorkflowExecution response metadata. The SignalWorkflowExecution operation has a void result type.

StartChildWorkflowExecutionDecisionAttributes

Provides details of the StartChildWorkflowExecution decision.

Access Control

You can use IAM policies to control this decision's access to Amazon SWF in much the same way as for the regular API:

  • Use a Resource element with the domain name to limit the decision to only specified domains.
  • Use an Action element to allow or deny permission to specify this decision.
  • Constrain the following parameters by using a Condition element with the appropriate keys.
    • tagList.member.N : TBD
    • 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.


StartChildWorkflowExecutionFailedEventAttributes

Provides details of the StartChildWorkflowExecutionFailed event.


StartChildWorkflowExecutionInitiatedEventAttributes

Provides details of the StartChildWorkflowExecutionInitiated event.


StartTimerDecisionAttributes

Provides details of the StartTimer decision.

Access Control

You can use IAM policies to control this decision's access to Amazon SWF in much the same way as for the regular API:

  • Use a Resource element with the domain name to limit the decision to only specified domains.
  • Use an Action element to allow or deny permission to specify this decision.
  • You cannot use an IAM policy to constrain this action's parameters.

If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.


StartTimerFailedEventAttributes

Provides details of the StartTimerFailed event.


StartWorkflowExecutionRequest
Container for the parameters to the StartWorkflowExecution operation.

Starts an execution of the workflow type in the specified domain using the provided workflowId and input data.

This action returns the newly started workflow execution.

Access Control

You can use IAM policies to control this action's access to Amazon SWF resources as follows:

  • Use a Resource element with the domain name to limit the action to only specified domains.
  • Use an Action element to allow or deny permission to call this action.
  • Constrain the following parameters by using a Condition element with the appropriate keys.
    • tagList.member.0 : The key is swf:tagList.member.0 .
    • tagList.member.1 : The key is swf:tagList.member.1 .
    • tagList.member.2 : The key is swf:tagList.member.2 .
    • tagList.member.3 : The key is swf:tagList.member.3 .
    • tagList.member.4 : The key is swf:tagList.member.4 .
    • taskList : String constraint. The key is swf:taskList.name .
    • name : String constraint. The key is swf:workflowType.name .
    • 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 by throwing OperationNotPermitted . For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.


StartWorkflowExecutionResponse
Returns information about the StartWorkflowExecution response and response metadata.

StartWorkflowExecutionResult
The results from the StartWorkflowExecution action.

TagFilter

Used to filter the workflow executions in visibility APIs based on a tag.


TaskList

Represents a task list.


TerminateWorkflowExecutionRequest
Container for the parameters to the TerminateWorkflowExecution operation.

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.

IMPORTANT: 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:

  • Use a Resource element with the domain name to limit the action to only specified domains.
  • Use an Action element to allow or deny permission to call this action.
  • You cannot use an IAM policy to constrain this action's parameters.

If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails by throwing OperationNotPermitted . For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.


TerminateWorkflowExecutionResponse
Returns information about the TerminateWorkflowExecution response metadata. The TerminateWorkflowExecution operation has a void result type.

TimerCanceledEventAttributes

Provides details of the TimerCanceled event.


TimerFiredEventAttributes

Provides details of the TimerFired event.


TimerStartedEventAttributes

Provides details of the TimerStarted event.


TypeAlreadyExistsException
AmazonSimpleWorkflow exception

TypeDeprecatedException
AmazonSimpleWorkflow exception

UnknownResourceException
AmazonSimpleWorkflow exception

WorkflowExecution

Represents a workflow execution.


WorkflowExecutionAlreadyStartedException
AmazonSimpleWorkflow exception

WorkflowExecutionCanceledEventAttributes

Provides details of the WorkflowExecutionCanceled event.


WorkflowExecutionCancelRequestedEventAttributes

Provides details of the WorkflowExecutionCancelRequested event.


WorkflowExecutionCompletedEventAttributes

Provides details of the WorkflowExecutionCompleted event.


WorkflowExecutionConfiguration

The configuration settings for a workflow execution including timeout values, tasklist etc. These configuration settings are determined from the defaults specified when registering the workflow type and those specified when starting the workflow execution.


WorkflowExecutionContinuedAsNewEventAttributes

Provides details of the WorkflowExecutionContinuedAsNew event.


WorkflowExecutionCount

Contains the count of workflow executions returned from CountOpenWorkflowExecutions or CountClosedWorkflowExecutions


WorkflowExecutionDetail

Contains details about a workflow execution.


WorkflowExecutionFailedEventAttributes

Provides details of the WorkflowExecutionFailed event.


WorkflowExecutionFilter

Used to filter the workflow executions in visibility APIs by their workflowId .


WorkflowExecutionInfo

Contains information about a workflow execution.


WorkflowExecutionInfos

Contains a paginated list of information about workflow executions.


WorkflowExecutionOpenCounts

Contains the counts of open tasks, child workflow executions and timers for a workflow execution.


WorkflowExecutionSignaledEventAttributes

Provides details of the WorkflowExecutionSignaled event.


WorkflowExecutionStartedEventAttributes

Provides details of WorkflowExecutionStarted event.


WorkflowExecutionTerminatedEventAttributes

Provides details of the WorkflowExecutionTerminated event.


WorkflowExecutionTimedOutEventAttributes

Provides details of the WorkflowExecutionTimedOut event.


WorkflowType

Represents a workflow type.


WorkflowTypeConfiguration

The configuration settings of a workflow type.


WorkflowTypeDetail

Contains details about a workflow type.


WorkflowTypeFilter

Used to filter workflow execution query results by type. Each parameter, if specified, defines a rule that must be satisfied by each returned result.


WorkflowTypeInfo

Contains information about a workflow type.


WorkflowTypeInfos

Contains a paginated list of information structures about workflow types.