NOTE: For Version 3 of the AWS SDK for PHP, please see the V3 User Guide and V3 API Reference.

# Class SwfClient

Client to interact with Amazon Simple Workflow Service

  Guzzle\Common\AbstractHasDispatcher implements Guzzle\Common\HasDispatcherInterface
  Guzzle\Http\Client implements Guzzle\Http\ClientInterface
  Guzzle\Service\Client implements Guzzle\Service\ClientInterface
  Aws\Common\Client\AbstractClient implements Aws\Common\Client\AwsClientInterface
  Aws\Swf\SwfClient

Namespace: Aws\Swf
Link: User guide
Link: API docs
Located at Aws/Swf/SwfClient.php

## Methods summary

- `public static` `factory ( array|Collection $config = array() )`

  Factory method to create a new Amazon Simple Workflow Service client using an array of configuration options.

- `public` `countClosedWorkflowExecutions ( array $args = array() )`

  Executes the CountClosedWorkflowExecutions operation.

- `public` `countOpenWorkflowExecutions ( array $args = array() )`

  Executes the CountOpenWorkflowExecutions operation.

- `public` `countPendingActivityTasks ( array $args = array() )`

  Executes the CountPendingActivityTasks operation.

- `public` `countPendingDecisionTasks ( array $args = array() )`

  Executes the CountPendingDecisionTasks operation.

- `public` `deprecateActivityType ( array $args = array() )`

  Executes the DeprecateActivityType operation.

- `public` `deprecateDomain ( array $args = array() )`

  Executes the DeprecateDomain operation.

- `public` `deprecateWorkflowType ( array $args = array() )`

  Executes the DeprecateWorkflowType operation.

- `public` `describeActivityType ( array $args = array() )`

  Executes the DescribeActivityType operation.

- `public` `describeDomain ( array $args = array() )`

  Executes the DescribeDomain operation.

- `public` `describeWorkflowExecution ( array $args = array() )`

  Executes the DescribeWorkflowExecution operation.

- `public` `describeWorkflowType ( array $args = array() )`

  Executes the DescribeWorkflowType operation.

- `public` `getWorkflowExecutionHistory ( array $args = array() )`

  Executes the GetWorkflowExecutionHistory operation.

- `public` `listActivityTypes ( array $args = array() )`

  Executes the ListActivityTypes operation.

- `public` `listClosedWorkflowExecutions ( array $args = array() )`

  Executes the ListClosedWorkflowExecutions operation.

- `public` `listDomains ( array $args = array() )`

  Executes the ListDomains operation.

- `public` `listOpenWorkflowExecutions ( array $args = array() )`

  Executes the ListOpenWorkflowExecutions operation.

- `public` `listWorkflowTypes ( array $args = array() )`

  Executes the ListWorkflowTypes operation.

- `public` `pollForActivityTask ( array $args = array() )`

  Executes the PollForActivityTask operation.

- `public` `pollForDecisionTask ( array $args = array() )`

  Executes the PollForDecisionTask operation.

- `public` `recordActivityTaskHeartbeat ( array $args = array() )`

  Executes the RecordActivityTaskHeartbeat operation.

- `public` `registerActivityType ( array $args = array() )`

  Executes the RegisterActivityType operation.

- `public` `registerDomain ( array $args = array() )`

  Executes the RegisterDomain operation.

- `public` `registerWorkflowType ( array $args = array() )`

  Executes the RegisterWorkflowType operation.

- `public` `requestCancelWorkflowExecution ( array $args = array() )`

  Executes the RequestCancelWorkflowExecution operation.

- `public` `respondActivityTaskCanceled ( array $args = array() )`

  Executes the RespondActivityTaskCanceled operation.

- `public` `respondActivityTaskCompleted ( array $args = array() )`

  Executes the RespondActivityTaskCompleted operation.

- `public` `respondActivityTaskFailed ( array $args = array() )`

  Executes the RespondActivityTaskFailed operation.

- `public` `respondDecisionTaskCompleted ( array $args = array() )`

  Executes the RespondDecisionTaskCompleted operation.

- `public` `signalWorkflowExecution ( array $args = array() )`

  Executes the SignalWorkflowExecution operation.

- `public` `startWorkflowExecution ( array $args = array() )`

  Executes the StartWorkflowExecution operation.

- `public` `terminateWorkflowExecution ( array $args = array() )`

  Executes the TerminateWorkflowExecution operation.

- `public` `getGetWorkflowExecutionHistoryIterator ( array $args = array() )`

  The input array uses the parameters of the GetWorkflowExecutionHistory operation

- `public` `getListActivityTypesIterator ( array $args = array() )`

  The input array uses the parameters of the ListActivityTypes operation

- `public` `getListClosedWorkflowExecutionsIterator ( array $args = array() )`

  The input array uses the parameters of the ListClosedWorkflowExecutions operation

- `public` `getListDomainsIterator ( array $args = array() )`

  The input array uses the parameters of the ListDomains operation

- `public` `getListOpenWorkflowExecutionsIterator ( array $args = array() )`

  The input array uses the parameters of the ListOpenWorkflowExecutions operation

- `public` `getListWorkflowTypesIterator ( array $args = array() )`

  The input array uses the parameters of the ListWorkflowTypes operation

- `public` `getPollForDecisionTaskIterator ( array $args = array() )`

  The input array uses the parameters of the PollForDecisionTask operation

## Methods detail

# `public static `Aws\Swf\SwfClient``
`factory( array|`Guzzle\Common\Collection` $config = array() )`

Factory method to create a new Amazon Simple Workflow Service client using an array of configuration options.

#### Parameters

$config
  `array|`Guzzle\Common\Collection``
  $config Client configuration data

#### Returns

``Aws\Swf\SwfClient``

#### Link

http://docs.aws.amazon.com/aws-sdk-php/v2/guide/configuration.html#client-configuration-options

#### Overrides

`Guzzle\Service\Client::factory`
# `public `Guzzle\Service\Resource\Model``
`countClosedWorkflowExecutions( array $args = array() )`

Executes the CountClosedWorkflowExecutions operation.

Returns the number of closed workflow executions within the given domain that meet the specified filtering criteria.

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. 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.

#### Examples

- Basic formatting example

      $result = $client->countClosedWorkflowExecutions(array(
          // domain is required
          'domain' => 'string',
          'startTimeFilter' => array(
              // oldestDate is required
              'oldestDate' => '',
              'latestDate' => '',
          ),
          'closeTimeFilter' => array(
              // oldestDate is required
              'oldestDate' => '',
              'latestDate' => '',
          ),
          'executionFilter' => array(
              // workflowId is required
              'workflowId' => 'string',
          ),
          'typeFilter' => array(
              // name is required
              'name' => 'string',
              'version' => 'string',
          ),
          'tagFilter' => array(
              // tag is required
              'tag' => 'string',
          ),
          'closeStatusFilter' => array(
              // status is required
              'status' => 'string',
          ),
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - domain => (string)

    The name of the domain containing the workflow executions to count.

  - startTimeFilter => (associative-array)

    If specified, only workflow executions that meet the start time criteria of the filter are counted.

    startTimeFilter and closeTimeFilter are mutually exclusive. You must specify one of these in a request but not both.
    - oldestDate => ()

      Specifies the oldest start or close date and time to return.

    - latestDate => ()

      Specifies the latest start or close date and time to return.

  - closeTimeFilter => (associative-array)

    If specified, only workflow executions that meet the close time criteria of the filter are counted.

    startTimeFilter and closeTimeFilter are mutually exclusive. You must specify one of these in a request but not both.
    - oldestDate => ()

      Specifies the oldest start or close date and time to return.

    - latestDate => ()

      Specifies the latest start or close date and time to return.

  - executionFilter => (associative-array)

    If specified, only workflow executions matching the WorkflowId in the filter are counted.

    closeStatusFilter, executionFilter, typeFilter and tagFilter are mutually exclusive. You can specify at most one of these in a request.
    - workflowId => (string)

      The workflowId to pass of match the criteria of this filter.

  - typeFilter => (associative-array)

    If specified, indicates the type of the workflow executions to be counted.

    closeStatusFilter, executionFilter, typeFilter and tagFilter are mutually exclusive. You can specify at most one of these in a request.
    - name => (string)

      Required. Name of the workflow type.

    - version => (string)

      Version of the workflow type.

  - tagFilter => (associative-array)

    If specified, only executions that have a tag that matches the filter are counted.

    closeStatusFilter, executionFilter, typeFilter and tagFilter are mutually exclusive. You can specify at most one of these in a request.
    - tag => (string)

      Required. Specifies the tag that must be associated with the execution for it to meet the filter criteria.

  - closeStatusFilter => (associative-array)

    If specified, only workflow executions that match this close status are counted. This filter has an affect only if executionStatus is specified as CLOSED.

    closeStatusFilter, executionFilter, typeFilter and tagFilter are mutually exclusive. You can specify at most one of these in a request.
    - status => (string: COMPLETED | FAILED | CANCELED | TERMINATED | CONTINUED_AS_NEW | TIMED_OUT )

      Required. The close status that must match the close status of an execution for it to meet the criteria of this filter.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

- count => (int)

  The number of workflow executions.

- truncated => (bool)

  If set to true, indicates that the actual count was more than the maximum supported by this API and the count returned is the truncated value.

# `public `Guzzle\Service\Resource\Model``
`countOpenWorkflowExecutions( array $args = array() )`

Executes the CountOpenWorkflowExecutions operation.

Returns the number of open workflow executions within the given domain that meet the specified filtering criteria.

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. 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.

#### Examples

- Basic formatting example

      $result = $client->countOpenWorkflowExecutions(array(
          // domain is required
          'domain' => 'string',
          // startTimeFilter is required
          'startTimeFilter' => array(
              // oldestDate is required
              'oldestDate' => '',
              'latestDate' => '',
          ),
          'typeFilter' => array(
              // name is required
              'name' => 'string',
              'version' => 'string',
          ),
          'tagFilter' => array(
              // tag is required
              'tag' => 'string',
          ),
          'executionFilter' => array(
              // workflowId is required
              'workflowId' => 'string',
          ),
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - domain => (string)

    The name of the domain containing the workflow executions to count.

  - startTimeFilter => (associative-array)

    Specifies the start time criteria that workflow executions must meet in order to be counted.

    - oldestDate => ()

      Specifies the oldest start or close date and time to return.

    - latestDate => ()

      Specifies the latest start or close date and time to return.

  - typeFilter => (associative-array)

    Specifies the type of the workflow executions to be counted.

    executionFilter, typeFilter and tagFilter are mutually exclusive. You can specify at most one of these in a request.
    - name => (string)

      Required. Name of the workflow type.

    - version => (string)

      Version of the workflow type.

  - tagFilter => (associative-array)

    If specified, only executions that have a tag that matches the filter are counted.

    executionFilter, typeFilter and tagFilter are mutually exclusive. You can specify at most one of these in a request.
    - tag => (string)

      Required. Specifies the tag that must be associated with the execution for it to meet the filter criteria.

  - executionFilter => (associative-array)

    If specified, only workflow executions matching the WorkflowId in the filter are counted.

    executionFilter, typeFilter and tagFilter are mutually exclusive. You can specify at most one of these in a request.
    - workflowId => (string)

      The workflowId to pass of match the criteria of this filter.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

- count => (int)

  The number of workflow executions.

- truncated => (bool)

  If set to true, indicates that the actual count was more than the maximum supported by this API and the count returned is the truncated value.

# `public `Guzzle\Service\Resource\Model``
`countPendingActivityTasks( array $args = array() )`

Executes 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. 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.

#### Examples

- Basic formatting example

      $result = $client->countPendingActivityTasks(array(
          // domain is required
          'domain' => 'string',
          // taskList is required
          'taskList' => array(
              // name is required
              'name' => 'string',
          ),
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - domain => (string)

    The name of the domain that contains the task list.

  - taskList => (associative-array)

    The name of the task list.

    - name => (string)

      The name of the task list.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

- count => (int)

  The number of tasks in the task list.

- truncated => (bool)

  If set to true, indicates that the actual count was more than the maximum supported by this API and the count returned is the truncated value.

# `public `Guzzle\Service\Resource\Model``
`countPendingDecisionTasks( array $args = array() )`

Executes 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. 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.

#### Examples

- Basic formatting example

      $result = $client->countPendingDecisionTasks(array(
          // domain is required
          'domain' => 'string',
          // taskList is required
          'taskList' => array(
              // name is required
              'name' => 'string',
          ),
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - domain => (string)

    The name of the domain that contains the task list.

  - taskList => (associative-array)

    The name of the task list.

    - name => (string)

      The name of the task list.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

- count => (int)

  The number of tasks in the task list.

- truncated => (bool)

  If set to true, indicates that the actual count was more than the maximum supported by this API and the count returned is the truncated value.

# `public `Guzzle\Service\Resource\Model``
`deprecateActivityType( array $args = array() )`

Executes 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.

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. 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.

#### Examples

- Basic formatting example

      $result = $client->deprecateActivityType(array(
          // domain is required
          'domain' => 'string',
          // activityType is required
          'activityType' => array(
              // name is required
              'name' => 'string',
              // version is required
              'version' => 'string',
          ),
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - domain => (string)

    The name of the domain in which the activity type is registered.

  - activityType => (associative-array)

    The activity type to deprecate.

    - name => (string)

      The name of this activity.

      The combination of activity type name and version must be unique within a domain.
    - version => (string)

      The version of this activity.

      The combination of activity type name and version must be unique with in a domain.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

# `public `Guzzle\Service\Resource\Model``
`deprecateDomain( array $args = array() )`

Executes 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.

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. 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.

#### Examples

- Basic formatting example

      $result = $client->deprecateDomain(array(
          // name is required
          'name' => 'string',
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - name => (string)

    The name of the domain to deprecate.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

# `public `Guzzle\Service\Resource\Model``
`deprecateWorkflowType( array $args = array() )`

Executes 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.

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. 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.

#### Examples

- Basic formatting example

      $result = $client->deprecateWorkflowType(array(
          // domain is required
          'domain' => 'string',
          // workflowType is required
          'workflowType' => array(
              // name is required
              'name' => 'string',
              // version is required
              'version' => 'string',
          ),
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - domain => (string)

    The name of the domain in which the workflow type is registered.

  - workflowType => (associative-array)

    The workflow type to deprecate.

    - name => (string)

      Required. The name of the workflow type.

      The combination of workflow type name and version must be unique with in a domain.
    - version => (string)

      Required. The version of the workflow type.

      The combination of workflow type name and version must be unique with in a domain.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

# `public `Guzzle\Service\Resource\Model``
`describeActivityType( array $args = array() )`

Executes the DescribeActivityType operation.

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:

- 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. 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.

#### Examples

- Basic formatting example

      $result = $client->describeActivityType(array(
          // domain is required
          'domain' => 'string',
          // activityType is required
          'activityType' => array(
              // name is required
              'name' => 'string',
              // version is required
              'version' => 'string',
          ),
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - domain => (string)

    The name of the domain in which the activity type is registered.

  - activityType => (associative-array)

    The activity type to get information about. Activity types are identified by the name and version that were supplied when the activity was registered.

    - name => (string)

      The name of this activity.

      The combination of activity type name and version must be unique within a domain.
    - version => (string)

      The version of this activity.

      The combination of activity type name and version must be unique with in a domain.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

- typeInfo => (associative-array)

  General information about the activity type.

  The status of activity type (returned in the ActivityTypeInfo structure) can be one of the following.

  - REGISTERED: The type is registered and available. Workers supporting this type should be running.
  - DEPRECATED: The type was deprecated using DeprecateActivityType, but is still in use. You should keep workers supporting this type running. You cannot create new tasks of this type.
  - activityType => (associative-array)

    The ActivityType type structure representing the activity type.

    - name => (string)

      The name of this activity.

      The combination of activity type name and version must be unique within a domain.
    - version => (string)

      The version of this activity.

      The combination of activity type name and version must be unique with in a domain.
  - status => (string)

    The current status of the activity type.

  - description => (string)

    The description of the activity type provided in RegisterActivityType.

  - creationDate => (string)

    The date and time this activity type was created through RegisterActivityType.

  - deprecationDate => (string)

    If DEPRECATED, the date and time DeprecateActivityType was called.

- configuration => (associative-array)

  The configuration settings registered with the activity type.

  - defaultTaskStartToCloseTimeout => (string)

    Optional. The default maximum duration for tasks of an activity type specified when registering the activity type. You can override this default when scheduling a task through the ScheduleActivityTask decision.

    The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.

  - defaultTaskHeartbeatTimeout => (string)

    Optional. The default maximum time, in seconds, before which a worker processing a task must report progress by calling RecordActivityTaskHeartbeat.

    You can specify this value only when registering an activity type. The registered default value can be overridden when you schedule a task through the ScheduleActivityTask decision. If the activity worker subsequently attempts to record a heartbeat or returns a result, the activity worker receives an UnknownResource fault. In this case, Amazon SWF no longer considers the activity task to be valid; the activity worker should clean up the activity task.

    The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.

  - defaultTaskList => (associative-array)

    Optional. The default task list specified for this activity type at registration. This default is used if a task list is not provided when a task is scheduled through the ScheduleActivityTask decision. You can override the default registered task list when scheduling a task through the ScheduleActivityTask decision.

    - name => (string)

      The name of the task list.

  - defaultTaskPriority => (string)

    Optional. The default task priority for tasks of this activity type, specified at registration. If not set, then "0" will be used as the default priority. This default can be overridden when scheduling an activity task.

    Valid values are integers that range from Java's Integer.MIN_VALUE (-2147483648) to Integer.MAX_VALUE (2147483647). Higher numbers indicate higher priority.

    For more information about setting task priority, see Setting Task Priority in the Amazon Simple Workflow Developer Guide.

  - defaultTaskScheduleToStartTimeout => (string)

    Optional. The default maximum duration, specified when registering the activity type, that a task of an activity type can wait before being assigned to a worker. You can override this default when scheduling a task through the ScheduleActivityTask decision.

    The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.

  - defaultTaskScheduleToCloseTimeout => (string)

    Optional. The default maximum duration, specified when registering the activity type, for tasks of this activity type. You can override this default when scheduling a task through the ScheduleActivityTask decision.

    The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.

# `public `Guzzle\Service\Resource\Model``
`describeDomain( array $args = array() )`

Executes 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. 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.

#### Examples

- Basic formatting example

      $result = $client->describeDomain(array(
          // name is required
          'name' => 'string',
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - name => (string)

    The name of the domain to describe.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

- domainInfo => (associative-array)

  Contains general information about a domain.

  - name => (string)

    The name of the domain. This name is unique within the account.

  - status => (string)

    The status of the domain:

    - REGISTERED: The domain is properly registered and available. You can use this domain for registering types and creating new workflow executions.
    - DEPRECATED: The domain was deprecated using DeprecateDomain, but is still in use. You should not create new workflow executions in this domain.
  - description => (string)

    The description of the domain provided through RegisterDomain.

- configuration => (associative-array)

  Contains the configuration settings of a domain.

  - workflowExecutionRetentionPeriodInDays => (string)

    The retention period for workflow executions in this domain.

# `public `Guzzle\Service\Resource\Model``
`describeWorkflowExecution( array $args = array() )`

Executes the DescribeWorkflowExecution operation.

Returns information about the specified workflow execution including its type and some statistics.

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. 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.

#### Examples

- Basic formatting example

      $result = $client->describeWorkflowExecution(array(
          // domain is required
          'domain' => 'string',
          // execution is required
          'execution' => array(
              // workflowId is required
              'workflowId' => 'string',
              // runId is required
              'runId' => 'string',
          ),
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - domain => (string)

    The name of the domain containing the workflow execution.

  - execution => (associative-array)

    The workflow execution to describe.

    - workflowId => (string)

      The user defined identifier associated with the workflow execution.

    - runId => (string)

      A system-generated unique identifier for the workflow execution.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

- executionInfo => (associative-array)

  Information about the workflow execution.

  - execution => (associative-array)

    The workflow execution this information is about.

    - workflowId => (string)

      The user defined identifier associated with the workflow execution.

    - runId => (string)

      A system-generated unique identifier for the workflow execution.

  - workflowType => (associative-array)

    The type of the workflow execution.

    - name => (string)

      Required. The name of the workflow type.

      The combination of workflow type name and version must be unique with in a domain.
    - version => (string)

      Required. The version of the workflow type.

      The combination of workflow type name and version must be unique with in a domain.
  - startTimestamp => (string)

    The time when the execution was started.

  - closeTimestamp => (string)

    The time when the workflow execution was closed. Set only if the execution status is CLOSED.

  - executionStatus => (string)

    The current status of the execution.

  - closeStatus => (string)

    If the execution status is closed then this specifies how the execution was closed:

    - COMPLETED: the execution was successfully completed.
    - CANCELED: the execution was canceled.Cancellation allows the implementation to gracefully clean up before the execution is closed.
    - TERMINATED: the execution was force terminated.
    - FAILED: the execution failed to complete.
    - TIMED_OUT: the execution did not complete in the alloted time and was automatically timed out.
    - CONTINUED_AS_NEW: the execution is logically continued. This means the current execution was completed and a new execution was started to carry on the workflow.
  - parent => (associative-array)

    If this workflow execution is a child of another execution then contains the workflow execution that started this execution.

    - workflowId => (string)

      The user defined identifier associated with the workflow execution.

    - runId => (string)

      A system-generated unique identifier for the workflow execution.

  - tagList => (array<string>)

    The list of tags associated with the workflow execution. Tags can be used to identify and list workflow executions of interest through the visibility APIs. A workflow execution can have a maximum of 5 tags.

  - cancelRequested => (bool)

    Set to true if a cancellation is requested for this workflow execution.

- executionConfiguration => (associative-array)

  The configuration settings for this workflow execution including timeout values, tasklist etc.

  - taskStartToCloseTimeout => (string)

    The maximum duration allowed for decision tasks for this workflow execution.

    The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.

  - executionStartToCloseTimeout => (string)

    The total duration for this workflow execution.

    The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.

  - taskList => (associative-array)

    The task list used for the decision tasks generated for this workflow execution.

    - name => (string)

      The name of the task list.

  - taskPriority => (string)

    The priority assigned to decision tasks for this workflow execution. Valid values are integers that range from Java's Integer.MIN_VALUE (-2147483648) to Integer.MAX_VALUE (2147483647). Higher numbers indicate higher priority.

    For more information about setting task priority, see Setting Task Priority in the Amazon Simple Workflow Developer Guide.

  - childPolicy => (string)

    The policy to use for the child workflow executions if this workflow execution is terminated, by calling the TerminateWorkflowExecution action explicitly or due to an expired timeout.

    The supported child policies are:

    - TERMINATE: the child executions will be terminated.
    - REQUEST_CANCEL: a request to cancel will be attempted for each child execution by recording a WorkflowExecutionCancelRequested event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.
    - ABANDON: no action will be taken. The child executions will continue to run.
  - lambdaRole => (string)

    The IAM role used by this workflow execution when invoking AWS Lambda functions.

- openCounts => (associative-array)

  The number of tasks for this workflow execution. This includes open and closed tasks of all types.

  - openActivityTasks => (int)

    The count of activity tasks whose status is OPEN.

  - openDecisionTasks => (int)

    The count of decision tasks whose status is OPEN. A workflow execution can have at most one open decision task.

  - openTimers => (int)

    The count of timers started by this workflow execution that have not fired yet.

  - openChildWorkflowExecutions => (int)

    The count of child workflow executions whose status is OPEN.

  - openLambdaFunctions => (int)

    The count of AWS Lambda functions that are currently executing.

- latestActivityTaskTimestamp => (string)

  The time when the last activity task was scheduled for this workflow execution. You can use this information to determine if the workflow has not made progress for an unusually long period of time and might require a corrective action.

- latestExecutionContext => (string)

  The latest executionContext provided by the decider for this workflow execution. A decider can provide an executionContext (a free-form string) when closing a decision task using RespondDecisionTaskCompleted.

# `public `Guzzle\Service\Resource\Model``
`describeWorkflowType( array $args = array() )`

Executes 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, and so on.

Access Control

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

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

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

#### Examples

- Basic formatting example

      $result = $client->describeWorkflowType(array(
          // domain is required
          'domain' => 'string',
          // workflowType is required
          'workflowType' => array(
              // name is required
              'name' => 'string',
              // version is required
              'version' => 'string',
          ),
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - domain => (string)

    The name of the domain in which this workflow type is registered.

  - workflowType => (associative-array)

    The workflow type to describe.

    - name => (string)

      Required. The name of the workflow type.

      The combination of workflow type name and version must be unique with in a domain.
    - version => (string)

      Required. The version of the workflow type.

      The combination of workflow type name and version must be unique with in a domain.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

- typeInfo => (associative-array)

  General information about the workflow type.

  The status of the workflow type (returned in the WorkflowTypeInfo structure) can be one of the following.

  - REGISTERED: The type is registered and available. Workers supporting this type should be running.
  - DEPRECATED: The type was deprecated using DeprecateWorkflowType, but is still in use. You should keep workers supporting this type running. You cannot create new workflow executions of this type.
  - workflowType => (associative-array)

    The workflow type this information is about.

    - name => (string)

      Required. The name of the workflow type.

      The combination of workflow type name and version must be unique with in a domain.
    - version => (string)

      Required. The version of the workflow type.

      The combination of workflow type name and version must be unique with in a domain.
  - status => (string)

    The current status of the workflow type.

  - description => (string)

    The description of the type registered through RegisterWorkflowType.

  - creationDate => (string)

    The date when this type was registered.

  - deprecationDate => (string)

    If the type is in deprecated state, then it is set to the date when the type was deprecated.

- configuration => (associative-array)

  Configuration settings of the workflow type registered through RegisterWorkflowType

  - defaultTaskStartToCloseTimeout => (string)

    Optional. The default maximum duration, specified when registering the workflow type, that a decision task for executions of this workflow type might take before returning completion or failure. If the task does not close in the specified time then the task is automatically timed out and rescheduled. If the decider eventually reports a completion or failure, it is ignored. This default can be overridden when starting a workflow execution using the StartWorkflowExecution action or the StartChildWorkflowExecution decision.

    The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.

  - defaultExecutionStartToCloseTimeout => (string)

    Optional. The default maximum duration, specified when registering the workflow type, for executions of this workflow type. This default can be overridden when starting a workflow execution using the StartWorkflowExecution action or the StartChildWorkflowExecution decision.

    The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.

  - defaultTaskList => (associative-array)

    Optional. The default task list, specified when registering the workflow type, for decisions tasks scheduled for workflow executions of this type. This default can be overridden when starting a workflow execution using the StartWorkflowExecution action or the StartChildWorkflowExecution decision.

    - name => (string)

      The name of the task list.

  - defaultTaskPriority => (string)

    Optional. The default task priority, specified when registering the workflow type, for all decision tasks of this workflow type. This default can be overridden when starting a workflow execution using the StartWorkflowExecution action or the StartChildWorkflowExecution decision.

    Valid values are integers that range from Java's Integer.MIN_VALUE (-2147483648) to Integer.MAX_VALUE (2147483647). Higher numbers indicate higher priority.

    For more information about setting task priority, see Setting Task Priority in the Amazon Simple Workflow Developer Guide.

  - defaultChildPolicy => (string)

    Optional. The default policy to use for the child workflow executions when a workflow execution of this type is terminated, by calling the TerminateWorkflowExecution action explicitly or due to an expired timeout. This default can be overridden when starting a workflow execution using the StartWorkflowExecution action or the StartChildWorkflowExecution decision.

    The supported child policies are:

    - TERMINATE: the child executions will be terminated.
    - REQUEST_CANCEL: a request to cancel will be attempted for each child execution by recording a WorkflowExecutionCancelRequested event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.
    - ABANDON: no action will be taken. The child executions will continue to run.
  - defaultLambdaRole => (string)

    The default IAM role to use when a workflow execution invokes a AWS Lambda function.

# `public `Guzzle\Service\Resource\Model``
`getWorkflowExecutionHistory( array $args = array() )`

Executes 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.

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. 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.

#### Examples

- Basic formatting example

      $result = $client->getWorkflowExecutionHistory(array(
          // domain is required
          'domain' => 'string',
          // execution is required
          'execution' => array(
              // workflowId is required
              'workflowId' => 'string',
              // runId is required
              'runId' => 'string',
          ),
          'nextPageToken' => 'string',
          'maximumPageSize' => integer,
          'reverseOrder' => true || false,
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - domain => (string)

    The name of the domain containing the workflow execution.

  - execution => (associative-array)

    Specifies the workflow execution for which to return the history.

    - workflowId => (string)

      The user defined identifier associated with the workflow execution.

    - runId => (string)

      A system-generated unique identifier for the workflow execution.

  - nextPageToken => (string)

    If a NextPageToken was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in nextPageToken. Keep all other arguments unchanged.

    The configured maximumPageSize determines how many results can be returned in a single call.

  - maximumPageSize => (int)

    The maximum number of results that will be returned per call. nextPageToken can be used to obtain futher pages of results. The default is 1000, which is the maximum allowed page size. You can, however, specify a page size smaller than the maximum.

    This is an upper limit only; the actual number of results returned per call may be fewer than the specified maximum.

  - reverseOrder => (bool)

    When set to true, returns the events in reverse order. By default the results are returned in ascending order of the eventTimeStamp of the events.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

- events => (array<associative-array>)

  The list of history events.

  - (associative-array)

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

    - WorkflowExecutionStarted: The workflow execution was started.
    - WorkflowExecutionCompleted: The workflow execution was closed due to successful completion.
    - WorkflowExecutionFailed: The workflow execution closed due to a failure.
    - WorkflowExecutionTimedOut: The workflow execution was closed because a time out was exceeded.
    - WorkflowExecutionCanceled: The workflow execution was successfully canceled and closed.
    - WorkflowExecutionTerminated: The workflow execution was terminated.
    - WorkflowExecutionContinuedAsNew: The workflow execution was closed and a new execution of the same type was created with the same workflowId.
    - WorkflowExecutionCancelRequested: A request to cancel this workflow execution was made.
    - DecisionTaskScheduled: A decision task was scheduled for the workflow execution.
    - DecisionTaskStarted: The decision task was dispatched to a decider.
    - DecisionTaskCompleted: The decider successfully completed a decision task by calling RespondDecisionTaskCompleted.
    - DecisionTaskTimedOut: The decision task timed out.
    - ActivityTaskScheduled: An activity task was scheduled for execution.
    - ScheduleActivityTaskFailed: Failed to process ScheduleActivityTask decision. This happens when the decision is not configured properly, for example the activity type specified is not registered.
    - ActivityTaskStarted: The scheduled activity task was dispatched to a worker.
    - ActivityTaskCompleted: An activity worker successfully completed an activity task by calling RespondActivityTaskCompleted.
    - ActivityTaskFailed: An activity worker failed an activity task by calling RespondActivityTaskFailed.
    - ActivityTaskTimedOut: The activity task timed out.
    - ActivityTaskCanceled: The activity task was successfully canceled.
    - ActivityTaskCancelRequested: A RequestCancelActivityTask decision was received by the system.
    - RequestCancelActivityTaskFailed: Failed to process RequestCancelActivityTask decision. This happens when the decision is not configured properly.
    - WorkflowExecutionSignaled: An external signal was received for the workflow execution.
    - MarkerRecorded: A marker was recorded in the workflow history as the result of a RecordMarker decision.
    - TimerStarted: A timer was started for the workflow execution due to a StartTimer decision.
    - StartTimerFailed: Failed to process StartTimer decision. This happens when the decision is not configured properly, for example a timer already exists with the specified timer ID.
    - TimerFired: A timer, previously started for this workflow execution, fired.
    - TimerCanceled: A timer, previously started for this workflow execution, was successfully canceled.
    - CancelTimerFailed: Failed to process CancelTimer decision. This happens when the decision is not configured properly, for example no timer exists with the specified timer ID.
    - StartChildWorkflowExecutionInitiated: A request was made to start a child workflow execution.
    - StartChildWorkflowExecutionFailed: Failed to process StartChildWorkflowExecution decision. This happens when the decision is not configured properly, for example the workflow type specified is not registered.
    - ChildWorkflowExecutionStarted: A child workflow execution was successfully started.
    - ChildWorkflowExecutionCompleted: A child workflow execution, started by this workflow execution, completed successfully and was closed.
    - ChildWorkflowExecutionFailed: A child workflow execution, started by this workflow execution, failed to complete successfully and was closed.
    - ChildWorkflowExecutionTimedOut: A child workflow execution, started by this workflow execution, timed out and was closed.
    - ChildWorkflowExecutionCanceled: A child workflow execution, started by this workflow execution, was canceled and closed.
    - ChildWorkflowExecutionTerminated: A child workflow execution, started by this workflow execution, was terminated.
    - SignalExternalWorkflowExecutionInitiated: A request to signal an external workflow was made.
    - ExternalWorkflowExecutionSignaled: A signal, requested by this workflow execution, was successfully delivered to the target external workflow execution.
    - SignalExternalWorkflowExecutionFailed: The request to signal an external workflow execution failed.
    - RequestCancelExternalWorkflowExecutionInitiated: A request was made to request the cancellation of an external workflow execution.
    - ExternalWorkflowExecutionCancelRequested: Request to cancel an external workflow execution was successfully delivered to the target execution.
    - RequestCancelExternalWorkflowExecutionFailed: Request to cancel an external workflow execution failed.
    - LambdaFunctionScheduled: An AWS Lambda function was scheduled for execution.
    - LambdaFunctionStarted: The scheduled function was invoked in the AWS Lambda service.
    - LambdaFunctionCompleted: The AWS Lambda function successfully completed.
    - LambdaFunctionFailed: The AWS Lambda function execution failed.
    - LambdaFunctionTimedOut: The AWS Lambda function execution timed out.
    - ScheduleLambdaFunctionFailed: Failed to process ScheduleLambdaFunction decision. This happens when the workflow execution does not have the proper IAM role attached to invoke AWS Lambda functions.
    - StartLambdaFunctionFailed: Failed to invoke the scheduled function in the AWS Lambda service. This happens when the AWS Lambda service is not available in the current region, or received too many requests.
    - eventTimestamp => (string)

      The date and time when the event occurred.

    - eventType => (string)

      The type of the history event.

    - eventId => (int)

      The system generated ID of the event. This ID uniquely identifies the event with in the workflow execution history.

    - workflowExecutionStartedEventAttributes => (associative-array)

      If the event is of type WorkflowExecutionStarted then this member is set and provides detailed information about the event. It is not set for other event types.

      - input => (string)

        The input provided to the workflow execution (if any).

      - executionStartToCloseTimeout => (string)

        The maximum duration for this workflow execution.

        The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.

      - taskStartToCloseTimeout => (string)

        The maximum duration of decision tasks for this workflow type.

        The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.

      - childPolicy => (string)

        The policy to use for the child workflow executions if this workflow execution is terminated, by calling the TerminateWorkflowExecution action explicitly or due to an expired timeout.

        The supported child policies are:

        - TERMINATE: the child executions will be terminated.
        - REQUEST_CANCEL: a request to cancel will be attempted for each child execution by recording a WorkflowExecutionCancelRequested event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.
        - ABANDON: no action will be taken. The child executions will continue to run.
      - taskList => (associative-array)

        The name of the task list for scheduling the decision tasks for this workflow execution.

        - name => (string)

          The name of the task list.

      - workflowType => (associative-array)

        The workflow type of this execution.

        - name => (string)

          Required. The name of the workflow type.

          The combination of workflow type name and version must be unique with in a domain.
        - version => (string)

          Required. The version of the workflow type.

          The combination of workflow type name and version must be unique with in a domain.
      - tagList => (array<string>)

        The list of tags associated with this workflow execution. An execution can have up to 5 tags.

      - taskPriority => (string)
      - continuedExecutionRunId => (string)

        If this workflow execution was started due to a ContinueAsNewWorkflowExecution decision, then it contains the runId of the previous workflow execution that was closed and continued as this execution.

      - parentWorkflowExecution => (associative-array)

        The source workflow execution that started this workflow execution. The member is not set if the workflow execution was not started by a workflow.

        - workflowId => (string)

          The user defined identifier associated with the workflow execution.

        - runId => (string)

          A system-generated unique identifier for the workflow execution.

      - parentInitiatedEventId => (int)

        The ID of the StartChildWorkflowExecutionInitiated event corresponding to the StartChildWorkflowExecution decision to start this workflow execution. The source event with this ID can be found in the history of the source workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

      - lambdaRole => (string)

        The IAM role attached to this workflow execution to use when invoking AWS Lambda functions.

    - workflowExecutionCompletedEventAttributes => (associative-array)

      If the event is of type WorkflowExecutionCompleted then this member is set and provides detailed information about the event. It is not set for other event types.

      - result => (string)

        The result produced by the workflow execution upon successful completion.

      - decisionTaskCompletedEventId => (int)

        The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the CompleteWorkflowExecution decision to complete this execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

    - completeWorkflowExecutionFailedEventAttributes => (associative-array)

      If the event is of type CompleteWorkflowExecutionFailed then this member is set and provides detailed information about the event. It is not set for other event types.

      - cause => (string)

        The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.

        If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it lacked sufficient permissions. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.
      - decisionTaskCompletedEventId => (int)

        The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the CompleteWorkflowExecution decision to complete this execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

    - workflowExecutionFailedEventAttributes => (associative-array)

      If the event is of type WorkflowExecutionFailed then this member is set and provides detailed information about the event. It is not set for other event types.

      - reason => (string)

        The descriptive reason provided for the failure (if any).

      - details => (string)

        The details of the failure (if any).

      - decisionTaskCompletedEventId => (int)

        The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the FailWorkflowExecution decision to fail this execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

    - failWorkflowExecutionFailedEventAttributes => (associative-array)

      If the event is of type FailWorkflowExecutionFailed then this member is set and provides detailed information about the event. It is not set for other event types.

      - cause => (string)

        The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.

        If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it lacked sufficient permissions. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.
      - decisionTaskCompletedEventId => (int)

        The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the FailWorkflowExecution decision to fail this execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

    - workflowExecutionTimedOutEventAttributes => (associative-array)

      If the event is of type WorkflowExecutionTimedOut then this member is set and provides detailed information about the event. It is not set for other event types.

      - timeoutType => (string)

        The type of timeout that caused this event.

      - childPolicy => (string)

        The policy used for the child workflow executions of this workflow execution.

        The supported child policies are:

        - TERMINATE: the child executions will be terminated.
        - REQUEST_CANCEL: a request to cancel will be attempted for each child execution by recording a WorkflowExecutionCancelRequested event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.
        - ABANDON: no action will be taken. The child executions will continue to run.
    - workflowExecutionCanceledEventAttributes => (associative-array)

      If the event is of type WorkflowExecutionCanceled then this member is set and provides detailed information about the event. It is not set for other event types.

      - details => (string)

        Details for the cancellation (if any).

      - decisionTaskCompletedEventId => (int)

        The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the CancelWorkflowExecution decision for this cancellation request. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

    - cancelWorkflowExecutionFailedEventAttributes => (associative-array)

      If the event is of type CancelWorkflowExecutionFailed then this member is set and provides detailed information about the event. It is not set for other event types.

      - cause => (string)

        The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.

        If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it lacked sufficient permissions. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.
      - decisionTaskCompletedEventId => (int)

        The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the CancelWorkflowExecution decision for this cancellation request. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

    - workflowExecutionContinuedAsNewEventAttributes => (associative-array)

      If the event is of type WorkflowExecutionContinuedAsNew then this member is set and provides detailed information about the event. It is not set for other event types.

      - input => (string)

        The input provided to the new workflow execution.

      - decisionTaskCompletedEventId => (int)

        The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the ContinueAsNewWorkflowExecution decision that started this execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

      - newExecutionRunId => (string)

        The runId of the new workflow execution.

      - executionStartToCloseTimeout => (string)

        The total duration allowed for the new workflow execution.

        The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.

      - taskList => (associative-array)

        Represents a task list.

        - name => (string)

          The name of the task list.

      - taskPriority => (string)
      - taskStartToCloseTimeout => (string)

        The maximum duration of decision tasks for the new workflow execution.

        The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.

      - childPolicy => (string)

        The policy to use for the child workflow executions of the new execution if it is terminated by calling the TerminateWorkflowExecution action explicitly or due to an expired timeout.

        The supported child policies are:

        - TERMINATE: the child executions will be terminated.
        - REQUEST_CANCEL: a request to cancel will be attempted for each child execution by recording a WorkflowExecutionCancelRequested event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.
        - ABANDON: no action will be taken. The child executions will continue to run.
      - tagList => (array<string>)

        The list of tags associated with the new workflow execution.

      - workflowType => (associative-array)

        Represents a workflow type.

        - name => (string)

          Required. The name of the workflow type.

          The combination of workflow type name and version must be unique with in a domain.
        - version => (string)

          Required. The version of the workflow type.

          The combination of workflow type name and version must be unique with in a domain.
      - lambdaRole => (string)

        The IAM role attached to this workflow execution to use when invoking AWS Lambda functions.

    - continueAsNewWorkflowExecutionFailedEventAttributes => (associative-array)

      If the event is of type ContinueAsNewWorkflowExecutionFailed then this member is set and provides detailed information about the event. It is not set for other event types.

      - cause => (string)

        The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.

        If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it lacked sufficient permissions. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.
      - decisionTaskCompletedEventId => (int)

        The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the ContinueAsNewWorkflowExecution decision that started this execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

    - workflowExecutionTerminatedEventAttributes => (associative-array)

      If the event is of type WorkflowExecutionTerminated then this member is set and provides detailed information about the event. It is not set for other event types.

      - reason => (string)

        The reason provided for the termination (if any).

      - details => (string)

        The details provided for the termination (if any).

      - childPolicy => (string)

        The policy used for the child workflow executions of this workflow execution.

        The supported child policies are:

        - TERMINATE: the child executions will be terminated.
        - REQUEST_CANCEL: a request to cancel will be attempted for each child execution by recording a WorkflowExecutionCancelRequested event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.
        - ABANDON: no action will be taken. The child executions will continue to run.
      - cause => (string)

        If set, indicates that the workflow execution was automatically terminated, and specifies the cause. This happens if the parent workflow execution times out or is terminated and the child policy is set to terminate child executions.

    - workflowExecutionCancelRequestedEventAttributes => (associative-array)

      If the event is of type WorkflowExecutionCancelRequested then this member is set and provides detailed information about the event. It is not set for other event types.

      - externalWorkflowExecution => (associative-array)

        The external workflow execution for which the cancellation was requested.

        - workflowId => (string)

          The user defined identifier associated with the workflow execution.

        - runId => (string)

          A system-generated unique identifier for the workflow execution.

      - externalInitiatedEventId => (int)

        The ID of the RequestCancelExternalWorkflowExecutionInitiated event corresponding to the RequestCancelExternalWorkflowExecution decision to cancel this workflow execution.The source event with this ID can be found in the history of the source workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

      - cause => (string)

        If set, indicates that the request to cancel the workflow execution was automatically generated, and specifies the cause. This happens if the parent workflow execution times out or is terminated, and the child policy is set to cancel child executions.

    - decisionTaskScheduledEventAttributes => (associative-array)

      If the event is of type DecisionTaskScheduled then this member is set and provides detailed information about the event. It is not set for other event types.

      - taskList => (associative-array)

        The name of the task list in which the decision task was scheduled.

        - name => (string)

          The name of the task list.

      - taskPriority => (string)

        Optional. A task priority that, if set, specifies the priority for this decision task. Valid values are integers that range from Java's Integer.MIN_VALUE (-2147483648) to Integer.MAX_VALUE (2147483647). Higher numbers indicate higher priority.

        For more information about setting task priority, see Setting Task Priority in the Amazon Simple Workflow Developer Guide.

      - startToCloseTimeout => (string)

        The maximum duration for this decision task. The task is considered timed out if it does not completed within this duration.

        The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.

    - decisionTaskStartedEventAttributes => (associative-array)

      If the event is of type DecisionTaskStarted then this member is set and provides detailed information about the event. It is not set for other event types.

      - identity => (string)

        Identity of the decider making the request. This enables diagnostic tracing when problems arise. The form of this identity is user defined.

      - scheduledEventId => (int)

        The ID of the DecisionTaskScheduled event that was recorded when this decision task was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

    - decisionTaskCompletedEventAttributes => (associative-array)

      If the event is of type DecisionTaskCompleted then this member is set and provides detailed information about the event. It is not set for other event types.

      - executionContext => (string)

        User defined context for the workflow execution.

      - scheduledEventId => (int)

        The ID of the DecisionTaskScheduled event that was recorded when this decision task was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

      - startedEventId => (int)

        The ID of the DecisionTaskStarted event recorded when this decision task was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

    - decisionTaskTimedOutEventAttributes => (associative-array)

      If the event is of type DecisionTaskTimedOut then this member is set and provides detailed information about the event. It is not set for other event types.

      - timeoutType => (string)

        The type of timeout that expired before the decision task could be completed.

      - scheduledEventId => (int)

        The ID of the DecisionTaskScheduled event that was recorded when this decision task was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

      - startedEventId => (int)

        The ID of the DecisionTaskStarted event recorded when this decision task was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

    - activityTaskScheduledEventAttributes => (associative-array)

      If the event is of type ActivityTaskScheduled then this member is set and provides detailed information about the event. It is not set for other event types.

      - activityType => (associative-array)

        The type of the activity task.

        - name => (string)

          The name of this activity.

          The combination of activity type name and version must be unique within a domain.
        - version => (string)

          The version of this activity.

          The combination of activity type name and version must be unique with in a domain.
      - activityId => (string)

        The unique ID of the activity task.

      - input => (string)

        The input provided to the activity task.

      - control => (string)

        Optional. Data attached to the event that can be used by the decider in subsequent workflow tasks. This data is not sent to the activity.

      - scheduleToStartTimeout => (string)

        The maximum amount of time the activity task can wait to be assigned to a worker.

      - scheduleToCloseTimeout => (string)

        The maximum amount of time for this activity task.

      - startToCloseTimeout => (string)

        The maximum amount of time a worker may take to process the activity task.

      - taskList => (associative-array)

        The task list in which the activity task has been scheduled.

        - name => (string)

          The name of the task list.

      - taskPriority => (string)

        Optional. The priority to assign to the scheduled activity task. If set, this will override any default priority value that was assigned when the activity type was registered.

        Valid values are integers that range from Java's Integer.MIN_VALUE (-2147483648) to Integer.MAX_VALUE (2147483647). Higher numbers indicate higher priority.

        For more information about setting task priority, see Setting Task Priority in the Amazon Simple Workflow Developer Guide.

      - decisionTaskCompletedEventId => (int)

        The ID of the DecisionTaskCompleted event corresponding to the decision that resulted in the scheduling of this activity task. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

      - heartbeatTimeout => (string)

        The maximum time before which the worker processing this task must report progress by calling RecordActivityTaskHeartbeat. If the timeout is exceeded, the activity task is automatically timed out. If the worker subsequently attempts to record a heartbeat or return a result, it will be ignored.

    - activityTaskStartedEventAttributes => (associative-array)

      If the event is of type ActivityTaskStarted then this member is set and provides detailed information about the event. It is not set for other event types.

      - identity => (string)

        Identity of the worker that was assigned this task. This aids diagnostics when problems arise. The form of this identity is user defined.

      - scheduledEventId => (int)

        The ID of the ActivityTaskScheduled event that was recorded when this activity task was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

    - activityTaskCompletedEventAttributes => (associative-array)

      If the event is of type ActivityTaskCompleted then this member is set and provides detailed information about the event. It is not set for other event types.

      - result => (string)

        The results of the activity task (if any).

      - scheduledEventId => (int)

        The ID of the ActivityTaskScheduled event that was recorded when this activity task was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

      - startedEventId => (int)

        The ID of the ActivityTaskStarted event recorded when this activity task was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

    - activityTaskFailedEventAttributes => (associative-array)

      If the event is of type ActivityTaskFailed then this member is set and provides detailed information about the event. It is not set for other event types.

      - reason => (string)

        The reason provided for the failure (if any).

      - details => (string)

        The details of the failure (if any).

      - scheduledEventId => (int)

        The ID of the ActivityTaskScheduled event that was recorded when this activity task was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

      - startedEventId => (int)

        The ID of the ActivityTaskStarted event recorded when this activity task was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

    - activityTaskTimedOutEventAttributes => (associative-array)

      If the event is of type ActivityTaskTimedOut then this member is set and provides detailed information about the event. It is not set for other event types.

      - timeoutType => (string)

        The type of the timeout that caused this event.

      - scheduledEventId => (int)

        The ID of the ActivityTaskScheduled event that was recorded when this activity task was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

      - startedEventId => (int)

        The ID of the ActivityTaskStarted event recorded when this activity task was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

      - details => (string)

        Contains the content of the details parameter for the last call made by the activity to RecordActivityTaskHeartbeat.

    - activityTaskCanceledEventAttributes => (associative-array)

      If the event is of type ActivityTaskCanceled then this member is set and provides detailed information about the event. It is not set for other event types.

      - details => (string)

        Details of the cancellation (if any).

      - scheduledEventId => (int)

        The ID of the ActivityTaskScheduled event that was recorded when this activity task was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

      - startedEventId => (int)

        The ID of the ActivityTaskStarted event recorded when this activity task was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

      - latestCancelRequestedEventId => (int)

        If set, contains the ID of the last ActivityTaskCancelRequested event recorded for this activity task. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

    - activityTaskCancelRequestedEventAttributes => (associative-array)

      If the event is of type ActivityTaskcancelRequested then this member is set and provides detailed information about the event. It is not set for other event types.

      - decisionTaskCompletedEventId => (int)

        The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the RequestCancelActivityTask decision for this cancellation request. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

      - activityId => (string)

        The unique ID of the task.

    - workflowExecutionSignaledEventAttributes => (associative-array)

      If the event is of type WorkflowExecutionSignaled then this member is set and provides detailed information about the event. It is not set for other event types.

      - signalName => (string)

        The name of the signal received. The decider can use the signal name and inputs to determine how to the process the signal.

      - input => (string)

        Inputs provided with the signal (if any). The decider can use the signal name and inputs to determine how to process the signal.

      - externalWorkflowExecution => (associative-array)

        The workflow execution that sent the signal. This is set only of the signal was sent by another workflow execution.

        - workflowId => (string)

          The user defined identifier associated with the workflow execution.

        - runId => (string)

          A system-generated unique identifier for the workflow execution.

      - externalInitiatedEventId => (int)

        The ID of the SignalExternalWorkflowExecutionInitiated event corresponding to the SignalExternalWorkflow decision to signal this workflow execution.The source event with this ID can be found in the history of the source workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event. This field is set only if the signal was initiated by another workflow execution.

    - markerRecordedEventAttributes => (associative-array)

      If the event is of type MarkerRecorded then this member is set and provides detailed information about the event. It is not set for other event types.

      - markerName => (string)

        The name of the marker.

      - details => (string)

        Details of the marker (if any).

      - decisionTaskCompletedEventId => (int)

        The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the RecordMarker decision that requested this marker. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

    - recordMarkerFailedEventAttributes => (associative-array)

      If the event is of type DecisionTaskFailed then this member is set and provides detailed information about the event. It is not set for other event types.

      - markerName => (string)

        The marker's name.

      - cause => (string)

        The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.

        If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it lacked sufficient permissions. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.
      - decisionTaskCompletedEventId => (int)

        The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the RecordMarkerFailed decision for this cancellation request. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

    - timerStartedEventAttributes => (associative-array)

      If the event is of type TimerStarted then this member is set and provides detailed information about the event. It is not set for other event types.

      - timerId => (string)

        The unique ID of the timer that was started.

      - control => (string)

        Optional. Data attached to the event that can be used by the decider in subsequent workflow tasks.

      - startToFireTimeout => (string)

        The duration of time after which the timer will fire.

        The duration is specified in seconds; an integer greater than or equal to 0.

      - decisionTaskCompletedEventId => (int)

        The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the StartTimer decision for this activity task. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

    - timerFiredEventAttributes => (associative-array)

      If the event is of type TimerFired then this member is set and provides detailed information about the event. It is not set for other event types.

      - timerId => (string)

        The unique ID of the timer that fired.

      - startedEventId => (int)

        The ID of the TimerStarted event that was recorded when this timer was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

    - timerCanceledEventAttributes => (associative-array)

      If the event is of type TimerCanceled then this member is set and provides detailed information about the event. It is not set for other event types.

      - timerId => (string)

        The unique ID of the timer that was canceled.

      - startedEventId => (int)

        The ID of the TimerStarted event that was recorded when this timer was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

      - decisionTaskCompletedEventId => (int)

        The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the CancelTimer decision to cancel this timer. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

    - startChildWorkflowExecutionInitiatedEventAttributes => (associative-array)

      If the event is of type StartChildWorkflowExecutionInitiated then this member is set and provides detailed information about the event. It is not set for other event types.

      - workflowId => (string)

        The workflowId of the child workflow execution.

      - workflowType => (associative-array)

        The type of the child workflow execution.

        - name => (string)

          Required. The name of the workflow type.

          The combination of workflow type name and version must be unique with in a domain.
        - version => (string)

          Required. The version of the workflow type.

          The combination of workflow type name and version must be unique with in a domain.
      - control => (string)

        Optional. Data attached to the event that can be used by the decider in subsequent decision tasks. This data is not sent to the activity.

      - input => (string)

        The inputs provided to the child workflow execution (if any).

      - executionStartToCloseTimeout => (string)

        The maximum duration for the child workflow execution. If the workflow execution is not closed within this duration, it will be timed out and force terminated.

        The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.

      - taskList => (associative-array)

        The name of the task list used for the decision tasks of the child workflow execution.

        - name => (string)

          The name of the task list.

      - taskPriority => (string)

        Optional. The priority assigned for the decision tasks for this workflow execution. Valid values are integers that range from Java's Integer.MIN_VALUE (-2147483648) to Integer.MAX_VALUE (2147483647). Higher numbers indicate higher priority.

        For more information about setting task priority, see Setting Task Priority in the Amazon Simple Workflow Developer Guide.

      - decisionTaskCompletedEventId => (int)

        The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the StartChildWorkflowExecution decision to request this child workflow execution. This information can be useful for diagnosing problems by tracing back the cause of events.

      - childPolicy => (string)

        The policy to use for the child workflow executions if this execution gets terminated by explicitly calling the TerminateWorkflowExecution action or due to an expired timeout.

        The supported child policies are:

        - TERMINATE: the child executions will be terminated.
        - REQUEST_CANCEL: a request to cancel will be attempted for each child execution by recording a WorkflowExecutionCancelRequested event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.
        - ABANDON: no action will be taken. The child executions will continue to run.
      - taskStartToCloseTimeout => (string)

        The maximum duration allowed for the decision tasks for this workflow execution.

        The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.

      - tagList => (array<string>)

        The list of tags to associated with the child workflow execution.

      - lambdaRole => (string)

        The IAM role attached to this workflow execution to use when invoking AWS Lambda functions.

    - childWorkflowExecutionStartedEventAttributes => (associative-array)

      If the event is of type ChildWorkflowExecutionStarted then this member is set and provides detailed information about the event. It is not set for other event types.

      - workflowExecution => (associative-array)

        The child workflow execution that was started.

        - workflowId => (string)

          The user defined identifier associated with the workflow execution.

        - runId => (string)

          A system-generated unique identifier for the workflow execution.

      - workflowType => (associative-array)

        The type of the child workflow execution.

        - name => (string)

          Required. The name of the workflow type.

          The combination of workflow type name and version must be unique with in a domain.
        - version => (string)

          Required. The version of the workflow type.

          The combination of workflow type name and version must be unique with in a domain.
      - initiatedEventId => (int)

        The ID of the StartChildWorkflowExecutionInitiated event corresponding to the StartChildWorkflowExecution decision to start this child workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

    - childWorkflowExecutionCompletedEventAttributes => (associative-array)

      If the event is of type ChildWorkflowExecutionCompleted then this member is set and provides detailed information about the event. It is not set for other event types.

      - workflowExecution => (associative-array)

        The child workflow execution that was completed.

        - workflowId => (string)

          The user defined identifier associated with the workflow execution.

        - runId => (string)

          A system-generated unique identifier for the workflow execution.

      - workflowType => (associative-array)

        The type of the child workflow execution.

        - name => (string)

          Required. The name of the workflow type.

          The combination of workflow type name and version must be unique with in a domain.
        - version => (string)

          Required. The version of the workflow type.

          The combination of workflow type name and version must be unique with in a domain.
      - result => (string)

        The result of the child workflow execution (if any).

      - initiatedEventId => (int)

        The ID of the StartChildWorkflowExecutionInitiated event corresponding to the StartChildWorkflowExecution decision to start this child workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

      - startedEventId => (int)

        The ID of the ChildWorkflowExecutionStarted event recorded when this child workflow execution was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

    - childWorkflowExecutionFailedEventAttributes => (associative-array)

      If the event is of type ChildWorkflowExecutionFailed then this member is set and provides detailed information about the event. It is not set for other event types.

      - workflowExecution => (associative-array)

        The child workflow execution that failed.

        - workflowId => (string)

          The user defined identifier associated with the workflow execution.

        - runId => (string)

          A system-generated unique identifier for the workflow execution.

      - workflowType => (associative-array)

        The type of the child workflow execution.

        - name => (string)

          Required. The name of the workflow type.

          The combination of workflow type name and version must be unique with in a domain.
        - version => (string)

          Required. The version of the workflow type.

          The combination of workflow type name and version must be unique with in a domain.
      - reason => (string)

        The reason for the failure (if provided).

      - details => (string)

        The details of the failure (if provided).

      - initiatedEventId => (int)

        The ID of the StartChildWorkflowExecutionInitiated event corresponding to the StartChildWorkflowExecution decision to start this child workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

      - startedEventId => (int)

        The ID of the ChildWorkflowExecutionStarted event recorded when this child workflow execution was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

    - childWorkflowExecutionTimedOutEventAttributes => (associative-array)

      If the event is of type ChildWorkflowExecutionTimedOut then this member is set and provides detailed information about the event. It is not set for other event types.

      - workflowExecution => (associative-array)

        The child workflow execution that timed out.

        - workflowId => (string)

          The user defined identifier associated with the workflow execution.

        - runId => (string)

          A system-generated unique identifier for the workflow execution.

      - workflowType => (associative-array)

        The type of the child workflow execution.

        - name => (string)

          Required. The name of the workflow type.

          The combination of workflow type name and version must be unique with in a domain.
        - version => (string)

          Required. The version of the workflow type.

          The combination of workflow type name and version must be unique with in a domain.
      - timeoutType => (string)

        The type of the timeout that caused the child workflow execution to time out.

      - initiatedEventId => (int)

        The ID of the StartChildWorkflowExecutionInitiated event corresponding to the StartChildWorkflowExecution decision to start this child workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

      - startedEventId => (int)

        The ID of the ChildWorkflowExecutionStarted event recorded when this child workflow execution was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

    - childWorkflowExecutionCanceledEventAttributes => (associative-array)

      If the event is of type ChildWorkflowExecutionCanceled then this member is set and provides detailed information about the event. It is not set for other event types.

      - workflowExecution => (associative-array)

        The child workflow execution that was canceled.

        - workflowId => (string)

          The user defined identifier associated with the workflow execution.

        - runId => (string)

          A system-generated unique identifier for the workflow execution.

      - workflowType => (associative-array)

        The type of the child workflow execution.

        - name => (string)

          Required. The name of the workflow type.

          The combination of workflow type name and version must be unique with in a domain.
        - version => (string)

          Required. The version of the workflow type.

          The combination of workflow type name and version must be unique with in a domain.
      - details => (string)

        Details of the cancellation (if provided).

      - initiatedEventId => (int)

        The ID of the StartChildWorkflowExecutionInitiated event corresponding to the StartChildWorkflowExecution decision to start this child workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

      - startedEventId => (int)

        The ID of the ChildWorkflowExecutionStarted event recorded when this child workflow execution was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

    - childWorkflowExecutionTerminatedEventAttributes => (associative-array)

      If the event is of type ChildWorkflowExecutionTerminated then this member is set and provides detailed information about the event. It is not set for other event types.

      - workflowExecution => (associative-array)

        The child workflow execution that was terminated.

        - workflowId => (string)

          The user defined identifier associated with the workflow execution.

        - runId => (string)

          A system-generated unique identifier for the workflow execution.

      - workflowType => (associative-array)

        The type of the child workflow execution.

        - name => (string)

          Required. The name of the workflow type.

          The combination of workflow type name and version must be unique with in a domain.
        - version => (string)

          Required. The version of the workflow type.

          The combination of workflow type name and version must be unique with in a domain.
      - initiatedEventId => (int)

        The ID of the StartChildWorkflowExecutionInitiated event corresponding to the StartChildWorkflowExecution decision to start this child workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

      - startedEventId => (int)

        The ID of the ChildWorkflowExecutionStarted event recorded when this child workflow execution was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

    - signalExternalWorkflowExecutionInitiatedEventAttributes => (associative-array)

      If the event is of type SignalExternalWorkflowExecutionInitiated then this member is set and provides detailed information about the event. It is not set for other event types.

      - workflowId => (string)

        The workflowId of the external workflow execution.

      - runId => (string)

        The runId of the external workflow execution to send the signal to.

      - signalName => (string)

        The name of the signal.

      - input => (string)

        Input provided to the signal (if any).

      - decisionTaskCompletedEventId => (int)

        The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the SignalExternalWorkflowExecution decision for this signal. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

      - control => (string)

        Optional. data attached to the event that can be used by the decider in subsequent decision tasks.

    - externalWorkflowExecutionSignaledEventAttributes => (associative-array)

      If the event is of type ExternalWorkflowExecutionSignaled then this member is set and provides detailed information about the event. It is not set for other event types.

      - workflowExecution => (associative-array)

        The external workflow execution that the signal was delivered to.

        - workflowId => (string)

          The user defined identifier associated with the workflow execution.

        - runId => (string)

          A system-generated unique identifier for the workflow execution.

      - initiatedEventId => (int)

        The ID of the SignalExternalWorkflowExecutionInitiated event corresponding to the SignalExternalWorkflowExecution decision to request this signal. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

    - signalExternalWorkflowExecutionFailedEventAttributes => (associative-array)

      If the event is of type SignalExternalWorkflowExecutionFailed then this member is set and provides detailed information about the event. It is not set for other event types.

      - workflowId => (string)

        The workflowId of the external workflow execution that the signal was being delivered to.

      - runId => (string)

        The runId of the external workflow execution that the signal was being delivered to.

      - cause => (string)

        The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.

        If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it lacked sufficient permissions. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.
      - initiatedEventId => (int)

        The ID of the SignalExternalWorkflowExecutionInitiated event corresponding to the SignalExternalWorkflowExecution decision to request this signal. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

      - decisionTaskCompletedEventId => (int)

        The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the SignalExternalWorkflowExecution decision for this signal. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

      - control => (string)
    - externalWorkflowExecutionCancelRequestedEventAttributes => (associative-array)

      If the event is of type ExternalWorkflowExecutionCancelRequested then this member is set and provides detailed information about the event. It is not set for other event types.

      - workflowExecution => (associative-array)

        The external workflow execution to which the cancellation request was delivered.

        - workflowId => (string)

          The user defined identifier associated with the workflow execution.

        - runId => (string)

          A system-generated unique identifier for the workflow execution.

      - initiatedEventId => (int)

        The ID of the RequestCancelExternalWorkflowExecutionInitiated event corresponding to the RequestCancelExternalWorkflowExecution decision to cancel this external workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

    - requestCancelExternalWorkflowExecutionInitiatedEventAttributes => (associative-array)

      If the event is of type RequestCancelExternalWorkflowExecutionInitiated then this member is set and provides detailed information about the event. It is not set for other event types.

      - workflowId => (string)

        The workflowId of the external workflow execution to be canceled.

      - runId => (string)

        The runId of the external workflow execution to be canceled.

      - decisionTaskCompletedEventId => (int)

        The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the RequestCancelExternalWorkflowExecution decision for this cancellation request. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

      - control => (string)

        Optional. Data attached to the event that can be used by the decider in subsequent workflow tasks.

    - requestCancelExternalWorkflowExecutionFailedEventAttributes => (associative-array)

      If the event is of type RequestCancelExternalWorkflowExecutionFailed then this member is set and provides detailed information about the event. It is not set for other event types.

      - workflowId => (string)

        The workflowId of the external workflow to which the cancel request was to be delivered.

      - runId => (string)

        The runId of the external workflow execution.

      - cause => (string)

        The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.

        If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it lacked sufficient permissions. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.
      - initiatedEventId => (int)

        The ID of the RequestCancelExternalWorkflowExecutionInitiated event corresponding to the RequestCancelExternalWorkflowExecution decision to cancel this external workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

      - decisionTaskCompletedEventId => (int)

        The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the RequestCancelExternalWorkflowExecution decision for this cancellation request. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

      - control => (string)
    - scheduleActivityTaskFailedEventAttributes => (associative-array)

      If the event is of type ScheduleActivityTaskFailed then this member is set and provides detailed information about the event. It is not set for other event types.

      - activityType => (associative-array)

        The activity type provided in the ScheduleActivityTask decision that failed.

        - name => (string)

          The name of this activity.

          The combination of activity type name and version must be unique within a domain.
        - version => (string)

          The version of this activity.

          The combination of activity type name and version must be unique with in a domain.
      - activityId => (string)

        The activityId provided in the ScheduleActivityTask decision that failed.

      - cause => (string)

        The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.

        If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it lacked sufficient permissions. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.
      - decisionTaskCompletedEventId => (int)

        The ID of the DecisionTaskCompleted event corresponding to the decision that resulted in the scheduling of this activity task. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

    - requestCancelActivityTaskFailedEventAttributes => (associative-array)

      If the event is of type RequestCancelActivityTaskFailed then this member is set and provides detailed information about the event. It is not set for other event types.

      - activityId => (string)

        The activityId provided in the RequestCancelActivityTask decision that failed.

      - cause => (string)

        The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.

        If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it lacked sufficient permissions. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.
      - decisionTaskCompletedEventId => (int)

        The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the RequestCancelActivityTask decision for this cancellation request. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

    - startTimerFailedEventAttributes => (associative-array)

      If the event is of type StartTimerFailed then this member is set and provides detailed information about the event. It is not set for other event types.

      - timerId => (string)

        The timerId provided in the StartTimer decision that failed.

      - cause => (string)

        The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.

        If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it lacked sufficient permissions. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.
      - decisionTaskCompletedEventId => (int)

        The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the StartTimer decision for this activity task. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

    - cancelTimerFailedEventAttributes => (associative-array)

      If the event is of type CancelTimerFailed then this member is set and provides detailed information about the event. It is not set for other event types.

      - timerId => (string)

        The timerId provided in the CancelTimer decision that failed.

      - cause => (string)

        The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.

        If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it lacked sufficient permissions. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.
      - decisionTaskCompletedEventId => (int)

        The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the CancelTimer decision to cancel this timer. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

    - startChildWorkflowExecutionFailedEventAttributes => (associative-array)

      If the event is of type StartChildWorkflowExecutionFailed then this member is set and provides detailed information about the event. It is not set for other event types.

      - workflowType => (associative-array)

        The workflow type provided in the StartChildWorkflowExecution decision that failed.

        - name => (string)

          Required. The name of the workflow type.

          The combination of workflow type name and version must be unique with in a domain.
        - version => (string)

          Required. The version of the workflow type.

          The combination of workflow type name and version must be unique with in a domain.
      - cause => (string)

        The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.

        If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it lacked sufficient permissions. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.
      - workflowId => (string)

        The workflowId of the child workflow execution.

      - initiatedEventId => (int)

        The ID of the StartChildWorkflowExecutionInitiated event corresponding to the StartChildWorkflowExecution decision to start this child workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

      - decisionTaskCompletedEventId => (int)

        The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the StartChildWorkflowExecution decision to request this child workflow execution. This information can be useful for diagnosing problems by tracing back the cause of events.

      - control => (string)
    - lambdaFunctionScheduledEventAttributes => (associative-array)

      Provides details for the LambdaFunctionScheduled event.

      - id => (string)

        The unique Amazon SWF ID for the AWS Lambda task.

      - name => (string)

        The name of the scheduled AWS Lambda function.

      - input => (string)

        Input provided to the AWS Lambda function.

      - startToCloseTimeout => (string)

        The maximum time, in seconds, that the AWS Lambda function can take to execute from start to close before it is marked as failed.

      - decisionTaskCompletedEventId => (int)

        The ID of the DecisionTaskCompleted event for the decision that resulted in the scheduling of this AWS Lambda function. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

    - lambdaFunctionStartedEventAttributes => (associative-array)

      Provides details for the LambdaFunctionStarted event.

      - scheduledEventId => (int)

        The ID of the LambdaFunctionScheduled event that was recorded when this AWS Lambda function was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

    - lambdaFunctionCompletedEventAttributes => (associative-array)

      Provides details for the LambdaFunctionCompleted event.

      - scheduledEventId => (int)

        The ID of the LambdaFunctionScheduled event that was recorded when this AWS Lambda function was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

      - startedEventId => (int)

        The ID of the LambdaFunctionStarted event recorded in the history.

      - result => (string)

        The result of the function execution (if any).

    - lambdaFunctionFailedEventAttributes => (associative-array)

      Provides details for the LambdaFunctionFailed event.

      - scheduledEventId => (int)

        The ID of the LambdaFunctionScheduled event that was recorded when this AWS Lambda function was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

      - startedEventId => (int)

        The ID of the LambdaFunctionStarted event recorded in the history.

      - reason => (string)

        The reason provided for the failure (if any).

      - details => (string)

        The details of the failure (if any).

    - lambdaFunctionTimedOutEventAttributes => (associative-array)

      Provides details for the LambdaFunctionTimedOut event.

      - scheduledEventId => (int)

        The ID of the LambdaFunctionScheduled event that was recorded when this AWS Lambda function was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

      - startedEventId => (int)

        The ID of the LambdaFunctionStarted event recorded in the history.

      - timeoutType => (string)

        The type of the timeout that caused this event.

    - scheduleLambdaFunctionFailedEventAttributes => (associative-array)

      Provides details for the ScheduleLambdaFunctionFailed event.

      - id => (string)

        The unique Amazon SWF ID of the AWS Lambda task.

      - name => (string)

        The name of the scheduled AWS Lambda function.

      - cause => (string)

        The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.

        If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it lacked sufficient permissions. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.
      - decisionTaskCompletedEventId => (int)

        The ID of the DecisionTaskCompleted event corresponding to the decision that resulted in the scheduling of this AWS Lambda function. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

    - startLambdaFunctionFailedEventAttributes => (associative-array)

      Provides details for the StartLambdaFunctionFailed event.

      - scheduledEventId => (int)

        The ID of the LambdaFunctionScheduled event that was recorded when this AWS Lambda function was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

      - cause => (string)

        The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.

        If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it lacked sufficient permissions. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.
      - message => (string)

        The error message (if any).

- nextPageToken => (string)

  If a NextPageToken was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in nextPageToken. Keep all other arguments unchanged.

  The configured maximumPageSize determines how many results can be returned in a single call.

# `public `Guzzle\Service\Resource\Model``
`listActivityTypes( array $args = array() )`

Executes 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. 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.

#### Examples

- Basic formatting example

      $result = $client->listActivityTypes(array(
          // domain is required
          'domain' => 'string',
          'name' => 'string',
          // registrationStatus is required
          'registrationStatus' => 'string',
          'nextPageToken' => 'string',
          'maximumPageSize' => integer,
          'reverseOrder' => true || false,
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - domain => (string)

    The name of the domain in which the activity types have been registered.

  - name => (string)

    If specified, only lists the activity types that have this name.

  - registrationStatus => (string: REGISTERED | DEPRECATED )

    Specifies the registration status of the activity types to list.

  - nextPageToken => (string)

    If a NextPageToken was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in nextPageToken. Keep all other arguments unchanged.

    The configured maximumPageSize determines how many results can be returned in a single call.

  - maximumPageSize => (int)

    The maximum number of results that will be returned per call. nextPageToken can be used to obtain futher pages of results. The default is 1000, which is the maximum allowed page size. You can, however, specify a page size smaller than the maximum.

    This is an upper limit only; the actual number of results returned per call may be fewer than the specified maximum.

  - reverseOrder => (bool)

    When set to true, returns the results in reverse order. By default, the results are returned in ascending alphabetical order by name of the activity types.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

- typeInfos => (array<associative-array>)

  List of activity type information.

  - (associative-array)

    Detailed information about an activity type.

    - activityType => (associative-array)

      The ActivityType type structure representing the activity type.

      - name => (string)

        The name of this activity.

        The combination of activity type name and version must be unique within a domain.
      - version => (string)

        The version of this activity.

        The combination of activity type name and version must be unique with in a domain.
    - status => (string)

      The current status of the activity type.

    - description => (string)

      The description of the activity type provided in RegisterActivityType.

    - creationDate => (string)

      The date and time this activity type was created through RegisterActivityType.

    - deprecationDate => (string)

      If DEPRECATED, the date and time DeprecateActivityType was called.

- nextPageToken => (string)

  If a NextPageToken was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in nextPageToken. Keep all other arguments unchanged.

  The configured maximumPageSize determines how many results can be returned in a single call.

# `public `Guzzle\Service\Resource\Model``
`listClosedWorkflowExecutions( array $args = array() )`

Executes 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.

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. 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.

#### Examples

- Basic formatting example

      $result = $client->listClosedWorkflowExecutions(array(
          // domain is required
          'domain' => 'string',
          'startTimeFilter' => array(
              // oldestDate is required
              'oldestDate' => '',
              'latestDate' => '',
          ),
          'closeTimeFilter' => array(
              // oldestDate is required
              'oldestDate' => '',
              'latestDate' => '',
          ),
          'executionFilter' => array(
              // workflowId is required
              'workflowId' => 'string',
          ),
          'closeStatusFilter' => array(
              // status is required
              'status' => 'string',
          ),
          'typeFilter' => array(
              // name is required
              'name' => 'string',
              'version' => 'string',
          ),
          'tagFilter' => array(
              // tag is required
              'tag' => 'string',
          ),
          'nextPageToken' => 'string',
          'maximumPageSize' => integer,
          'reverseOrder' => true || false,
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - domain => (string)

    The name of the domain that contains the workflow executions to list.

  - startTimeFilter => (associative-array)

    If specified, the workflow executions are included in the returned results based on whether their start times are within the range specified by this filter. Also, if this parameter is specified, the returned results are ordered by their start times.

    startTimeFilter and closeTimeFilter are mutually exclusive. You must specify one of these in a request but not both.
    - oldestDate => ()

      Specifies the oldest start or close date and time to return.

    - latestDate => ()

      Specifies the latest start or close date and time to return.

  - closeTimeFilter => (associative-array)

    If specified, the workflow executions are included in the returned results based on whether their close times are within the range specified by this filter. Also, if this parameter is specified, the returned results are ordered by their close times.

    startTimeFilter and closeTimeFilter are mutually exclusive. You must specify one of these in a request but not both.
    - oldestDate => ()

      Specifies the oldest start or close date and time to return.

    - latestDate => ()

      Specifies the latest start or close date and time to return.

  - executionFilter => (associative-array)

    If specified, only workflow executions matching the workflow ID specified in the filter are returned.

    closeStatusFilter, executionFilter, typeFilter and tagFilter are mutually exclusive. You can specify at most one of these in a request.
    - workflowId => (string)

      The workflowId to pass of match the criteria of this filter.

  - closeStatusFilter => (associative-array)

    If specified, only workflow executions that match this close status are listed. For example, if TERMINATED is specified, then only TERMINATED workflow executions are listed.

    closeStatusFilter, executionFilter, typeFilter and tagFilter are mutually exclusive. You can specify at most one of these in a request.
    - status => (string: COMPLETED | FAILED | CANCELED | TERMINATED | CONTINUED_AS_NEW | TIMED_OUT )

      Required. The close status that must match the close status of an execution for it to meet the criteria of this filter.

  - typeFilter => (associative-array)

    If specified, only executions of the type specified in the filter are returned.

    closeStatusFilter, executionFilter, typeFilter and tagFilter are mutually exclusive. You can specify at most one of these in a request.
    - name => (string)

      Required. Name of the workflow type.

    - version => (string)

      Version of the workflow type.

  - tagFilter => (associative-array)

    If specified, only executions that have the matching tag are listed.

    closeStatusFilter, executionFilter, typeFilter and tagFilter are mutually exclusive. You can specify at most one of these in a request.
    - tag => (string)

      Required. Specifies the tag that must be associated with the execution for it to meet the filter criteria.

  - nextPageToken => (string)

    If a NextPageToken was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in nextPageToken. Keep all other arguments unchanged.

    The configured maximumPageSize determines how many results can be returned in a single call.

  - maximumPageSize => (int)

    The maximum number of results that will be returned per call. nextPageToken can be used to obtain futher pages of results. The default is 1000, which is the maximum allowed page size. You can, however, specify a page size smaller than the maximum.

    This is an upper limit only; the actual number of results returned per call may be fewer than the specified maximum.

  - reverseOrder => (bool)

    When set to true, returns the results in reverse order. By default the results are returned in descending order of the start or the close time of the executions.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

- executionInfos => (array<associative-array>)

  The list of workflow information structures.

  - (associative-array)

    Contains information about a workflow execution.

    - execution => (associative-array)

      The workflow execution this information is about.

      - workflowId => (string)

        The user defined identifier associated with the workflow execution.

      - runId => (string)

        A system-generated unique identifier for the workflow execution.

    - workflowType => (associative-array)

      The type of the workflow execution.

      - name => (string)

        Required. The name of the workflow type.

        The combination of workflow type name and version must be unique with in a domain.
      - version => (string)

        Required. The version of the workflow type.

        The combination of workflow type name and version must be unique with in a domain.
    - startTimestamp => (string)

      The time when the execution was started.

    - closeTimestamp => (string)

      The time when the workflow execution was closed. Set only if the execution status is CLOSED.

    - executionStatus => (string)

      The current status of the execution.

    - closeStatus => (string)

      If the execution status is closed then this specifies how the execution was closed:

      - COMPLETED: the execution was successfully completed.
      - CANCELED: the execution was canceled.Cancellation allows the implementation to gracefully clean up before the execution is closed.
      - TERMINATED: the execution was force terminated.
      - FAILED: the execution failed to complete.
      - TIMED_OUT: the execution did not complete in the alloted time and was automatically timed out.
      - CONTINUED_AS_NEW: the execution is logically continued. This means the current execution was completed and a new execution was started to carry on the workflow.
    - parent => (associative-array)

      If this workflow execution is a child of another execution then contains the workflow execution that started this execution.

      - workflowId => (string)

        The user defined identifier associated with the workflow execution.

      - runId => (string)

        A system-generated unique identifier for the workflow execution.

    - tagList => (array<string>)

      The list of tags associated with the workflow execution. Tags can be used to identify and list workflow executions of interest through the visibility APIs. A workflow execution can have a maximum of 5 tags.

    - cancelRequested => (bool)

      Set to true if a cancellation is requested for this workflow execution.

- nextPageToken => (string)

  If a NextPageToken was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in nextPageToken. Keep all other arguments unchanged.

  The configured maximumPageSize determines how many results can be returned in a single call.

# `public `Guzzle\Service\Resource\Model``
`listDomains( array $args = array() )`

Executes 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.

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. 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.

#### Examples

- Basic formatting example

      $result = $client->listDomains(array(
          'nextPageToken' => 'string',
          // registrationStatus is required
          'registrationStatus' => 'string',
          'maximumPageSize' => integer,
          'reverseOrder' => true || false,
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - nextPageToken => (string)

    If a NextPageToken was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in nextPageToken. Keep all other arguments unchanged.

    The configured maximumPageSize determines how many results can be returned in a single call.

  - registrationStatus => (string: REGISTERED | DEPRECATED )

    Specifies the registration status of the domains to list.

  - maximumPageSize => (int)

    The maximum number of results that will be returned per call. nextPageToken can be used to obtain futher pages of results. The default is 1000, which is the maximum allowed page size. You can, however, specify a page size smaller than the maximum.

    This is an upper limit only; the actual number of results returned per call may be fewer than the specified maximum.

  - reverseOrder => (bool)

    When set to true, returns the results in reverse order. By default, the results are returned in ascending alphabetical order by name of the domains.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

- domainInfos => (array<associative-array>)

  A list of DomainInfo structures.

  - (associative-array)

    Contains general information about a domain.

    - name => (string)

      The name of the domain. This name is unique within the account.

    - status => (string)

      The status of the domain:

      - REGISTERED: The domain is properly registered and available. You can use this domain for registering types and creating new workflow executions.
      - DEPRECATED: The domain was deprecated using DeprecateDomain, but is still in use. You should not create new workflow executions in this domain.
    - description => (string)

      The description of the domain provided through RegisterDomain.

- nextPageToken => (string)

  If a NextPageToken was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in nextPageToken. Keep all other arguments unchanged.

  The configured maximumPageSize determines how many results can be returned in a single call.

# `public `Guzzle\Service\Resource\Model``
`listOpenWorkflowExecutions( array $args = array() )`

Executes 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.

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. 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.

#### Examples

- Basic formatting example

      $result = $client->listOpenWorkflowExecutions(array(
          // domain is required
          'domain' => 'string',
          // startTimeFilter is required
          'startTimeFilter' => array(
              // oldestDate is required
              'oldestDate' => '',
              'latestDate' => '',
          ),
          'typeFilter' => array(
              // name is required
              'name' => 'string',
              'version' => 'string',
          ),
          'tagFilter' => array(
              // tag is required
              'tag' => 'string',
          ),
          'nextPageToken' => 'string',
          'maximumPageSize' => integer,
          'reverseOrder' => true || false,
          'executionFilter' => array(
              // workflowId is required
              'workflowId' => 'string',
          ),
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - domain => (string)

    The name of the domain that contains the workflow executions to list.

  - startTimeFilter => (associative-array)

    Workflow executions are included in the returned results based on whether their start times are within the range specified by this filter.

    - oldestDate => ()

      Specifies the oldest start or close date and time to return.

    - latestDate => ()

      Specifies the latest start or close date and time to return.

  - typeFilter => (associative-array)

    If specified, only executions of the type specified in the filter are returned.

    executionFilter, typeFilter and tagFilter are mutually exclusive. You can specify at most one of these in a request.
    - name => (string)

      Required. Name of the workflow type.

    - version => (string)

      Version of the workflow type.

  - tagFilter => (associative-array)

    If specified, only executions that have the matching tag are listed.

    executionFilter, typeFilter and tagFilter are mutually exclusive. You can specify at most one of these in a request.
    - tag => (string)

      Required. Specifies the tag that must be associated with the execution for it to meet the filter criteria.

  - nextPageToken => (string)

    If a NextPageToken was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in nextPageToken. Keep all other arguments unchanged.

    The configured maximumPageSize determines how many results can be returned in a single call.

  - maximumPageSize => (int)

    The maximum number of results that will be returned per call. nextPageToken can be used to obtain futher pages of results. The default is 1000, which is the maximum allowed page size. You can, however, specify a page size smaller than the maximum.

    This is an upper limit only; the actual number of results returned per call may be fewer than the specified maximum.

  - reverseOrder => (bool)

    When set to true, returns the results in reverse order. By default the results are returned in descending order of the start time of the executions.

  - executionFilter => (associative-array)

    If specified, only workflow executions matching the workflow ID specified in the filter are returned.

    executionFilter, typeFilter and tagFilter are mutually exclusive. You can specify at most one of these in a request.
    - workflowId => (string)

      The workflowId to pass of match the criteria of this filter.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

- executionInfos => (array<associative-array>)

  The list of workflow information structures.

  - (associative-array)

    Contains information about a workflow execution.

    - execution => (associative-array)

      The workflow execution this information is about.

      - workflowId => (string)

        The user defined identifier associated with the workflow execution.

      - runId => (string)

        A system-generated unique identifier for the workflow execution.

    - workflowType => (associative-array)

      The type of the workflow execution.

      - name => (string)

        Required. The name of the workflow type.

        The combination of workflow type name and version must be unique with in a domain.
      - version => (string)

        Required. The version of the workflow type.

        The combination of workflow type name and version must be unique with in a domain.
    - startTimestamp => (string)

      The time when the execution was started.

    - closeTimestamp => (string)

      The time when the workflow execution was closed. Set only if the execution status is CLOSED.

    - executionStatus => (string)

      The current status of the execution.

    - closeStatus => (string)

      If the execution status is closed then this specifies how the execution was closed:

      - COMPLETED: the execution was successfully completed.
      - CANCELED: the execution was canceled.Cancellation allows the implementation to gracefully clean up before the execution is closed.
      - TERMINATED: the execution was force terminated.
      - FAILED: the execution failed to complete.
      - TIMED_OUT: the execution did not complete in the alloted time and was automatically timed out.
      - CONTINUED_AS_NEW: the execution is logically continued. This means the current execution was completed and a new execution was started to carry on the workflow.
    - parent => (associative-array)

      If this workflow execution is a child of another execution then contains the workflow execution that started this execution.

      - workflowId => (string)

        The user defined identifier associated with the workflow execution.

      - runId => (string)

        A system-generated unique identifier for the workflow execution.

    - tagList => (array<string>)

      The list of tags associated with the workflow execution. Tags can be used to identify and list workflow executions of interest through the visibility APIs. A workflow execution can have a maximum of 5 tags.

    - cancelRequested => (bool)

      Set to true if a cancellation is requested for this workflow execution.

- nextPageToken => (string)

  If a NextPageToken was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in nextPageToken. Keep all other arguments unchanged.

  The configured maximumPageSize determines how many results can be returned in a single call.

# `public `Guzzle\Service\Resource\Model``
`listWorkflowTypes( array $args = array() )`

Executes 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. 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.

#### Examples

- Basic formatting example

      $result = $client->listWorkflowTypes(array(
          // domain is required
          'domain' => 'string',
          'name' => 'string',
          // registrationStatus is required
          'registrationStatus' => 'string',
          'nextPageToken' => 'string',
          'maximumPageSize' => integer,
          'reverseOrder' => true || false,
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - domain => (string)

    The name of the domain in which the workflow types have been registered.

  - name => (string)

    If specified, lists the workflow type with this name.

  - registrationStatus => (string: REGISTERED | DEPRECATED )

    Specifies the registration status of the workflow types to list.

  - nextPageToken => (string)

    If a NextPageToken was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in nextPageToken. Keep all other arguments unchanged.

    The configured maximumPageSize determines how many results can be returned in a single call.

  - maximumPageSize => (int)

    The maximum number of results that will be returned per call. nextPageToken can be used to obtain futher pages of results. The default is 1000, which is the maximum allowed page size. You can, however, specify a page size smaller than the maximum.

    This is an upper limit only; the actual number of results returned per call may be fewer than the specified maximum.

  - reverseOrder => (bool)

    When set to true, returns the results in reverse order. By default the results are returned in ascending alphabetical order of the name of the workflow types.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

- typeInfos => (array<associative-array>)

  The list of workflow type information.

  - (associative-array)

    Contains information about a workflow type.

    - workflowType => (associative-array)

      The workflow type this information is about.

      - name => (string)

        Required. The name of the workflow type.

        The combination of workflow type name and version must be unique with in a domain.
      - version => (string)

        Required. The version of the workflow type.

        The combination of workflow type name and version must be unique with in a domain.
    - status => (string)

      The current status of the workflow type.

    - description => (string)

      The description of the type registered through RegisterWorkflowType.

    - creationDate => (string)

      The date when this type was registered.

    - deprecationDate => (string)

      If the type is in deprecated state, then it is set to the date when the type was deprecated.

- nextPageToken => (string)

  If a NextPageToken was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in nextPageToken. Keep all other arguments unchanged.

  The configured maximumPageSize determines how many results can be returned in a single call.

# `public `Guzzle\Service\Resource\Model``
`pollForActivityTask( array $args = array() )`

Executes 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.

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. 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.

#### Examples

- Basic formatting example

      $result = $client->pollForActivityTask(array(
          // domain is required
          'domain' => 'string',
          // taskList is required
          'taskList' => array(
              // name is required
              'name' => 'string',
          ),
          'identity' => 'string',
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - domain => (string)

    The name of the domain that contains the task lists being polled.

  - taskList => (associative-array)

    Specifies the task list to poll for activity tasks.

    The specified string must not start or end with whitespace. It must not contain a : (colon), / (slash), | (vertical bar), or any control characters (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal string "arn".

    - name => (string)

      The name of the task list.

  - identity => (string)

    Identity of the worker making the request, recorded in the ActivityTaskStarted event in the workflow history. This enables diagnostic tracing when problems arise. The form of this identity is user defined.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

- taskToken => (string)

  The opaque string used as a handle on the task. This token is used by workers to communicate progress and response information back to the system about the task.

- activityId => (string)

  The unique ID of the task.

- startedEventId => (int)

  The ID of the ActivityTaskStarted event recorded in the history.

- workflowExecution => (associative-array)

  The workflow execution that started this activity task.

  - workflowId => (string)

    The user defined identifier associated with the workflow execution.

  - runId => (string)

    A system-generated unique identifier for the workflow execution.

- activityType => (associative-array)

  The type of this activity task.

  - name => (string)

    The name of this activity.

    The combination of activity type name and version must be unique within a domain.
  - version => (string)

    The version of this activity.

    The combination of activity type name and version must be unique with in a domain.
- input => (string)

  The inputs provided when the activity task was scheduled. The form of the input is user defined and should be meaningful to the activity implementation.

# `public `Guzzle\Service\Resource\Model``
`pollForDecisionTask( array $args = array() )`

Executes 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.

Deciders should set their client-side socket timeout to at least 70 seconds (10 seconds higher than the timeout). 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. 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.

#### Examples

- Basic formatting example

      $result = $client->pollForDecisionTask(array(
          // domain is required
          'domain' => 'string',
          // taskList is required
          'taskList' => array(
              // name is required
              'name' => 'string',
          ),
          'identity' => 'string',
          'nextPageToken' => 'string',
          'maximumPageSize' => integer,
          'reverseOrder' => true || false,
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - domain => (string)

    The name of the domain containing the task lists to poll.

  - taskList => (associative-array)

    Specifies the task list to poll for decision tasks.

    The specified string must not start or end with whitespace. It must not contain a : (colon), / (slash), | (vertical bar), or any control characters (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal string "arn".

    - name => (string)

      The name of the task list.

  - identity => (string)

    Identity of the decider making the request, which is recorded in the DecisionTaskStarted event in the workflow history. This enables diagnostic tracing when problems arise. The form of this identity is user defined.

  - nextPageToken => (string)

    If a NextPageToken was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in nextPageToken. Keep all other arguments unchanged.

    The configured maximumPageSize determines how many results can be returned in a single call.

    The nextPageToken returned by this action cannot be used with GetWorkflowExecutionHistory to get the next page. You must call PollForDecisionTask again (with the nextPageToken) to retrieve the next page of history records. Calling PollForDecisionTask with a nextPageToken will not return a new decision task..
  - maximumPageSize => (int)

    The maximum number of results that will be returned per call. nextPageToken can be used to obtain futher pages of results. The default is 1000, which is the maximum allowed page size. You can, however, specify a page size smaller than the maximum.

    This is an upper limit only; the actual number of results returned per call may be fewer than the specified maximum.

  - reverseOrder => (bool)

    When set to true, returns the events in reverse order. By default the results are returned in ascending order of the eventTimestamp of the events.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

- taskToken => (string)

  The opaque string used as a handle on the task. This token is used by workers to communicate progress and response information back to the system about the task.

- startedEventId => (int)

  The ID of the DecisionTaskStarted event recorded in the history.

- workflowExecution => (associative-array)

  The workflow execution for which this decision task was created.

  - workflowId => (string)

    The user defined identifier associated with the workflow execution.

  - runId => (string)

    A system-generated unique identifier for the workflow execution.

- workflowType => (associative-array)

  The type of the workflow execution for which this decision task was created.

  - name => (string)

    Required. The name of the workflow type.

    The combination of workflow type name and version must be unique with in a domain.
  - version => (string)

    Required. The version of the workflow type.

    The combination of workflow type name and version must be unique with in a domain.
- events => (array<associative-array>)

  A paginated list of history events of the workflow execution. The decider uses this during the processing of the decision task.

  - (associative-array)

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

    - WorkflowExecutionStarted: The workflow execution was started.
    - WorkflowExecutionCompleted: The workflow execution was closed due to successful completion.
    - WorkflowExecutionFailed: The workflow execution closed due to a failure.
    - WorkflowExecutionTimedOut: The workflow execution was closed because a time out was exceeded.
    - WorkflowExecutionCanceled: The workflow execution was successfully canceled and closed.
    - WorkflowExecutionTerminated: The workflow execution was terminated.
    - WorkflowExecutionContinuedAsNew: The workflow execution was closed and a new execution of the same type was created with the same workflowId.
    - WorkflowExecutionCancelRequested: A request to cancel this workflow execution was made.
    - DecisionTaskScheduled: A decision task was scheduled for the workflow execution.
    - DecisionTaskStarted: The decision task was dispatched to a decider.
    - DecisionTaskCompleted: The decider successfully completed a decision task by calling RespondDecisionTaskCompleted.
    - DecisionTaskTimedOut: The decision task timed out.
    - ActivityTaskScheduled: An activity task was scheduled for execution.
    - ScheduleActivityTaskFailed: Failed to process ScheduleActivityTask decision. This happens when the decision is not configured properly, for example the activity type specified is not registered.
    - ActivityTaskStarted: The scheduled activity task was dispatched to a worker.
    - ActivityTaskCompleted: An activity worker successfully completed an activity task by calling RespondActivityTaskCompleted.
    - ActivityTaskFailed: An activity worker failed an activity task by calling RespondActivityTaskFailed.
    - ActivityTaskTimedOut: The activity task timed out.
    - ActivityTaskCanceled: The activity task was successfully canceled.
    - ActivityTaskCancelRequested: A RequestCancelActivityTask decision was received by the system.
    - RequestCancelActivityTaskFailed: Failed to process RequestCancelActivityTask decision. This happens when the decision is not configured properly.
    - WorkflowExecutionSignaled: An external signal was received for the workflow execution.
    - MarkerRecorded: A marker was recorded in the workflow history as the result of a RecordMarker decision.
    - TimerStarted: A timer was started for the workflow execution due to a StartTimer decision.
    - StartTimerFailed: Failed to process StartTimer decision. This happens when the decision is not configured properly, for example a timer already exists with the specified timer ID.
    - TimerFired: A timer, previously started for this workflow execution, fired.
    - TimerCanceled: A timer, previously started for this workflow execution, was successfully canceled.
    - CancelTimerFailed: Failed to process CancelTimer decision. This happens when the decision is not configured properly, for example no timer exists with the specified timer ID.
    - StartChildWorkflowExecutionInitiated: A request was made to start a child workflow execution.
    - StartChildWorkflowExecutionFailed: Failed to process StartChildWorkflowExecution decision. This happens when the decision is not configured properly, for example the workflow type specified is not registered.
    - ChildWorkflowExecutionStarted: A child workflow execution was successfully started.
    - ChildWorkflowExecutionCompleted: A child workflow execution, started by this workflow execution, completed successfully and was closed.
    - ChildWorkflowExecutionFailed: A child workflow execution, started by this workflow execution, failed to complete successfully and was closed.
    - ChildWorkflowExecutionTimedOut: A child workflow execution, started by this workflow execution, timed out and was closed.
    - ChildWorkflowExecutionCanceled: A child workflow execution, started by this workflow execution, was canceled and closed.
    - ChildWorkflowExecutionTerminated: A child workflow execution, started by this workflow execution, was terminated.
    - SignalExternalWorkflowExecutionInitiated: A request to signal an external workflow was made.
    - ExternalWorkflowExecutionSignaled: A signal, requested by this workflow execution, was successfully delivered to the target external workflow execution.
    - SignalExternalWorkflowExecutionFailed: The request to signal an external workflow execution failed.
    - RequestCancelExternalWorkflowExecutionInitiated: A request was made to request the cancellation of an external workflow execution.
    - ExternalWorkflowExecutionCancelRequested: Request to cancel an external workflow execution was successfully delivered to the target execution.
    - RequestCancelExternalWorkflowExecutionFailed: Request to cancel an external workflow execution failed.
    - LambdaFunctionScheduled: An AWS Lambda function was scheduled for execution.
    - LambdaFunctionStarted: The scheduled function was invoked in the AWS Lambda service.
    - LambdaFunctionCompleted: The AWS Lambda function successfully completed.
    - LambdaFunctionFailed: The AWS Lambda function execution failed.
    - LambdaFunctionTimedOut: The AWS Lambda function execution timed out.
    - ScheduleLambdaFunctionFailed: Failed to process ScheduleLambdaFunction decision. This happens when the workflow execution does not have the proper IAM role attached to invoke AWS Lambda functions.
    - StartLambdaFunctionFailed: Failed to invoke the scheduled function in the AWS Lambda service. This happens when the AWS Lambda service is not available in the current region, or received too many requests.
    - eventTimestamp => (string)

      The date and time when the event occurred.

    - eventType => (string)

      The type of the history event.

    - eventId => (int)

      The system generated ID of the event. This ID uniquely identifies the event with in the workflow execution history.

    - workflowExecutionStartedEventAttributes => (associative-array)

      If the event is of type WorkflowExecutionStarted then this member is set and provides detailed information about the event. It is not set for other event types.

      - input => (string)

        The input provided to the workflow execution (if any).

      - executionStartToCloseTimeout => (string)

        The maximum duration for this workflow execution.

        The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.

      - taskStartToCloseTimeout => (string)

        The maximum duration of decision tasks for this workflow type.

        The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.

      - childPolicy => (string)

        The policy to use for the child workflow executions if this workflow execution is terminated, by calling the TerminateWorkflowExecution action explicitly or due to an expired timeout.

        The supported child policies are:

        - TERMINATE: the child executions will be terminated.
        - REQUEST_CANCEL: a request to cancel will be attempted for each child execution by recording a WorkflowExecutionCancelRequested event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.
        - ABANDON: no action will be taken. The child executions will continue to run.
      - taskList => (associative-array)

        The name of the task list for scheduling the decision tasks for this workflow execution.

        - name => (string)

          The name of the task list.

      - workflowType => (associative-array)

        The workflow type of this execution.

        - name => (string)

          Required. The name of the workflow type.

          The combination of workflow type name and version must be unique with in a domain.
        - version => (string)

          Required. The version of the workflow type.

          The combination of workflow type name and version must be unique with in a domain.
      - tagList => (array<string>)

        The list of tags associated with this workflow execution. An execution can have up to 5 tags.

      - taskPriority => (string)
      - continuedExecutionRunId => (string)

        If this workflow execution was started due to a ContinueAsNewWorkflowExecution decision, then it contains the runId of the previous workflow execution that was closed and continued as this execution.

      - parentWorkflowExecution => (associative-array)

        The source workflow execution that started this workflow execution. The member is not set if the workflow execution was not started by a workflow.

        - workflowId => (string)

          The user defined identifier associated with the workflow execution.

        - runId => (string)

          A system-generated unique identifier for the workflow execution.

      - parentInitiatedEventId => (int)

        The ID of the StartChildWorkflowExecutionInitiated event corresponding to the StartChildWorkflowExecution decision to start this workflow execution. The source event with this ID can be found in the history of the source workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

      - lambdaRole => (string)

        The IAM role attached to this workflow execution to use when invoking AWS Lambda functions.

    - workflowExecutionCompletedEventAttributes => (associative-array)

      If the event is of type WorkflowExecutionCompleted then this member is set and provides detailed information about the event. It is not set for other event types.

      - result => (string)

        The result produced by the workflow execution upon successful completion.

      - decisionTaskCompletedEventId => (int)

        The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the CompleteWorkflowExecution decision to complete this execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

    - completeWorkflowExecutionFailedEventAttributes => (associative-array)

      If the event is of type CompleteWorkflowExecutionFailed then this member is set and provides detailed information about the event. It is not set for other event types.

      - cause => (string)

        The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.

        If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it lacked sufficient permissions. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.
      - decisionTaskCompletedEventId => (int)

        The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the CompleteWorkflowExecution decision to complete this execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

    - workflowExecutionFailedEventAttributes => (associative-array)

      If the event is of type WorkflowExecutionFailed then this member is set and provides detailed information about the event. It is not set for other event types.

      - reason => (string)

        The descriptive reason provided for the failure (if any).

      - details => (string)

        The details of the failure (if any).

      - decisionTaskCompletedEventId => (int)

        The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the FailWorkflowExecution decision to fail this execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

    - failWorkflowExecutionFailedEventAttributes => (associative-array)

      If the event is of type FailWorkflowExecutionFailed then this member is set and provides detailed information about the event. It is not set for other event types.

      - cause => (string)

        The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.

        If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it lacked sufficient permissions. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.
      - decisionTaskCompletedEventId => (int)

        The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the FailWorkflowExecution decision to fail this execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

    - workflowExecutionTimedOutEventAttributes => (associative-array)

      If the event is of type WorkflowExecutionTimedOut then this member is set and provides detailed information about the event. It is not set for other event types.

      - timeoutType => (string)

        The type of timeout that caused this event.

      - childPolicy => (string)

        The policy used for the child workflow executions of this workflow execution.

        The supported child policies are:

        - TERMINATE: the child executions will be terminated.
        - REQUEST_CANCEL: a request to cancel will be attempted for each child execution by recording a WorkflowExecutionCancelRequested event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.
        - ABANDON: no action will be taken. The child executions will continue to run.
    - workflowExecutionCanceledEventAttributes => (associative-array)

      If the event is of type WorkflowExecutionCanceled then this member is set and provides detailed information about the event. It is not set for other event types.

      - details => (string)

        Details for the cancellation (if any).

      - decisionTaskCompletedEventId => (int)

        The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the CancelWorkflowExecution decision for this cancellation request. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

    - cancelWorkflowExecutionFailedEventAttributes => (associative-array)

      If the event is of type CancelWorkflowExecutionFailed then this member is set and provides detailed information about the event. It is not set for other event types.

      - cause => (string)

        The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.

        If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it lacked sufficient permissions. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.
      - decisionTaskCompletedEventId => (int)

        The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the CancelWorkflowExecution decision for this cancellation request. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

    - workflowExecutionContinuedAsNewEventAttributes => (associative-array)

      If the event is of type WorkflowExecutionContinuedAsNew then this member is set and provides detailed information about the event. It is not set for other event types.

      - input => (string)

        The input provided to the new workflow execution.

      - decisionTaskCompletedEventId => (int)

        The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the ContinueAsNewWorkflowExecution decision that started this execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

      - newExecutionRunId => (string)

        The runId of the new workflow execution.

      - executionStartToCloseTimeout => (string)

        The total duration allowed for the new workflow execution.

        The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.

      - taskList => (associative-array)

        Represents a task list.

        - name => (string)

          The name of the task list.

      - taskPriority => (string)
      - taskStartToCloseTimeout => (string)

        The maximum duration of decision tasks for the new workflow execution.

        The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.

      - childPolicy => (string)

        The policy to use for the child workflow executions of the new execution if it is terminated by calling the TerminateWorkflowExecution action explicitly or due to an expired timeout.

        The supported child policies are:

        - TERMINATE: the child executions will be terminated.
        - REQUEST_CANCEL: a request to cancel will be attempted for each child execution by recording a WorkflowExecutionCancelRequested event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.
        - ABANDON: no action will be taken. The child executions will continue to run.
      - tagList => (array<string>)

        The list of tags associated with the new workflow execution.

      - workflowType => (associative-array)

        Represents a workflow type.

        - name => (string)

          Required. The name of the workflow type.

          The combination of workflow type name and version must be unique with in a domain.
        - version => (string)

          Required. The version of the workflow type.

          The combination of workflow type name and version must be unique with in a domain.
      - lambdaRole => (string)

        The IAM role attached to this workflow execution to use when invoking AWS Lambda functions.

    - continueAsNewWorkflowExecutionFailedEventAttributes => (associative-array)

      If the event is of type ContinueAsNewWorkflowExecutionFailed then this member is set and provides detailed information about the event. It is not set for other event types.

      - cause => (string)

        The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.

        If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it lacked sufficient permissions. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.
      - decisionTaskCompletedEventId => (int)

        The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the ContinueAsNewWorkflowExecution decision that started this execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

    - workflowExecutionTerminatedEventAttributes => (associative-array)

      If the event is of type WorkflowExecutionTerminated then this member is set and provides detailed information about the event. It is not set for other event types.

      - reason => (string)

        The reason provided for the termination (if any).

      - details => (string)

        The details provided for the termination (if any).

      - childPolicy => (string)

        The policy used for the child workflow executions of this workflow execution.

        The supported child policies are:

        - TERMINATE: the child executions will be terminated.
        - REQUEST_CANCEL: a request to cancel will be attempted for each child execution by recording a WorkflowExecutionCancelRequested event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.
        - ABANDON: no action will be taken. The child executions will continue to run.
      - cause => (string)

        If set, indicates that the workflow execution was automatically terminated, and specifies the cause. This happens if the parent workflow execution times out or is terminated and the child policy is set to terminate child executions.

    - workflowExecutionCancelRequestedEventAttributes => (associative-array)

      If the event is of type WorkflowExecutionCancelRequested then this member is set and provides detailed information about the event. It is not set for other event types.

      - externalWorkflowExecution => (associative-array)

        The external workflow execution for which the cancellation was requested.

        - workflowId => (string)

          The user defined identifier associated with the workflow execution.

        - runId => (string)

          A system-generated unique identifier for the workflow execution.

      - externalInitiatedEventId => (int)

        The ID of the RequestCancelExternalWorkflowExecutionInitiated event corresponding to the RequestCancelExternalWorkflowExecution decision to cancel this workflow execution.The source event with this ID can be found in the history of the source workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

      - cause => (string)

        If set, indicates that the request to cancel the workflow execution was automatically generated, and specifies the cause. This happens if the parent workflow execution times out or is terminated, and the child policy is set to cancel child executions.

    - decisionTaskScheduledEventAttributes => (associative-array)

      If the event is of type DecisionTaskScheduled then this member is set and provides detailed information about the event. It is not set for other event types.

      - taskList => (associative-array)

        The name of the task list in which the decision task was scheduled.

        - name => (string)

          The name of the task list.

      - taskPriority => (string)

        Optional. A task priority that, if set, specifies the priority for this decision task. Valid values are integers that range from Java's Integer.MIN_VALUE (-2147483648) to Integer.MAX_VALUE (2147483647). Higher numbers indicate higher priority.

        For more information about setting task priority, see Setting Task Priority in the Amazon Simple Workflow Developer Guide.

      - startToCloseTimeout => (string)

        The maximum duration for this decision task. The task is considered timed out if it does not completed within this duration.

        The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.

    - decisionTaskStartedEventAttributes => (associative-array)

      If the event is of type DecisionTaskStarted then this member is set and provides detailed information about the event. It is not set for other event types.

      - identity => (string)

        Identity of the decider making the request. This enables diagnostic tracing when problems arise. The form of this identity is user defined.

      - scheduledEventId => (int)

        The ID of the DecisionTaskScheduled event that was recorded when this decision task was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

    - decisionTaskCompletedEventAttributes => (associative-array)

      If the event is of type DecisionTaskCompleted then this member is set and provides detailed information about the event. It is not set for other event types.

      - executionContext => (string)

        User defined context for the workflow execution.

      - scheduledEventId => (int)

        The ID of the DecisionTaskScheduled event that was recorded when this decision task was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

      - startedEventId => (int)

        The ID of the DecisionTaskStarted event recorded when this decision task was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

    - decisionTaskTimedOutEventAttributes => (associative-array)

      If the event is of type DecisionTaskTimedOut then this member is set and provides detailed information about the event. It is not set for other event types.

      - timeoutType => (string)

        The type of timeout that expired before the decision task could be completed.

      - scheduledEventId => (int)

        The ID of the DecisionTaskScheduled event that was recorded when this decision task was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

      - startedEventId => (int)

        The ID of the DecisionTaskStarted event recorded when this decision task was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

    - activityTaskScheduledEventAttributes => (associative-array)

      If the event is of type ActivityTaskScheduled then this member is set and provides detailed information about the event. It is not set for other event types.

      - activityType => (associative-array)

        The type of the activity task.

        - name => (string)

          The name of this activity.

          The combination of activity type name and version must be unique within a domain.
        - version => (string)

          The version of this activity.

          The combination of activity type name and version must be unique with in a domain.
      - activityId => (string)

        The unique ID of the activity task.

      - input => (string)

        The input provided to the activity task.

      - control => (string)

        Optional. Data attached to the event that can be used by the decider in subsequent workflow tasks. This data is not sent to the activity.

      - scheduleToStartTimeout => (string)

        The maximum amount of time the activity task can wait to be assigned to a worker.

      - scheduleToCloseTimeout => (string)

        The maximum amount of time for this activity task.

      - startToCloseTimeout => (string)

        The maximum amount of time a worker may take to process the activity task.

      - taskList => (associative-array)

        The task list in which the activity task has been scheduled.

        - name => (string)

          The name of the task list.

      - taskPriority => (string)

        Optional. The priority to assign to the scheduled activity task. If set, this will override any default priority value that was assigned when the activity type was registered.

        Valid values are integers that range from Java's Integer.MIN_VALUE (-2147483648) to Integer.MAX_VALUE (2147483647). Higher numbers indicate higher priority.

        For more information about setting task priority, see Setting Task Priority in the Amazon Simple Workflow Developer Guide.

      - decisionTaskCompletedEventId => (int)

        The ID of the DecisionTaskCompleted event corresponding to the decision that resulted in the scheduling of this activity task. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

      - heartbeatTimeout => (string)

        The maximum time before which the worker processing this task must report progress by calling RecordActivityTaskHeartbeat. If the timeout is exceeded, the activity task is automatically timed out. If the worker subsequently attempts to record a heartbeat or return a result, it will be ignored.

    - activityTaskStartedEventAttributes => (associative-array)

      If the event is of type ActivityTaskStarted then this member is set and provides detailed information about the event. It is not set for other event types.

      - identity => (string)

        Identity of the worker that was assigned this task. This aids diagnostics when problems arise. The form of this identity is user defined.

      - scheduledEventId => (int)

        The ID of the ActivityTaskScheduled event that was recorded when this activity task was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

    - activityTaskCompletedEventAttributes => (associative-array)

      If the event is of type ActivityTaskCompleted then this member is set and provides detailed information about the event. It is not set for other event types.

      - result => (string)

        The results of the activity task (if any).

      - scheduledEventId => (int)

        The ID of the ActivityTaskScheduled event that was recorded when this activity task was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

      - startedEventId => (int)

        The ID of the ActivityTaskStarted event recorded when this activity task was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

    - activityTaskFailedEventAttributes => (associative-array)

      If the event is of type ActivityTaskFailed then this member is set and provides detailed information about the event. It is not set for other event types.

      - reason => (string)

        The reason provided for the failure (if any).

      - details => (string)

        The details of the failure (if any).

      - scheduledEventId => (int)

        The ID of the ActivityTaskScheduled event that was recorded when this activity task was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

      - startedEventId => (int)

        The ID of the ActivityTaskStarted event recorded when this activity task was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

    - activityTaskTimedOutEventAttributes => (associative-array)

      If the event is of type ActivityTaskTimedOut then this member is set and provides detailed information about the event. It is not set for other event types.

      - timeoutType => (string)

        The type of the timeout that caused this event.

      - scheduledEventId => (int)

        The ID of the ActivityTaskScheduled event that was recorded when this activity task was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

      - startedEventId => (int)

        The ID of the ActivityTaskStarted event recorded when this activity task was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

      - details => (string)

        Contains the content of the details parameter for the last call made by the activity to RecordActivityTaskHeartbeat.

    - activityTaskCanceledEventAttributes => (associative-array)

      If the event is of type ActivityTaskCanceled then this member is set and provides detailed information about the event. It is not set for other event types.

      - details => (string)

        Details of the cancellation (if any).

      - scheduledEventId => (int)

        The ID of the ActivityTaskScheduled event that was recorded when this activity task was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

      - startedEventId => (int)

        The ID of the ActivityTaskStarted event recorded when this activity task was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

      - latestCancelRequestedEventId => (int)

        If set, contains the ID of the last ActivityTaskCancelRequested event recorded for this activity task. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

    - activityTaskCancelRequestedEventAttributes => (associative-array)

      If the event is of type ActivityTaskcancelRequested then this member is set and provides detailed information about the event. It is not set for other event types.

      - decisionTaskCompletedEventId => (int)

        The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the RequestCancelActivityTask decision for this cancellation request. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

      - activityId => (string)

        The unique ID of the task.

    - workflowExecutionSignaledEventAttributes => (associative-array)

      If the event is of type WorkflowExecutionSignaled then this member is set and provides detailed information about the event. It is not set for other event types.

      - signalName => (string)

        The name of the signal received. The decider can use the signal name and inputs to determine how to the process the signal.

      - input => (string)

        Inputs provided with the signal (if any). The decider can use the signal name and inputs to determine how to process the signal.

      - externalWorkflowExecution => (associative-array)

        The workflow execution that sent the signal. This is set only of the signal was sent by another workflow execution.

        - workflowId => (string)

          The user defined identifier associated with the workflow execution.

        - runId => (string)

          A system-generated unique identifier for the workflow execution.

      - externalInitiatedEventId => (int)

        The ID of the SignalExternalWorkflowExecutionInitiated event corresponding to the SignalExternalWorkflow decision to signal this workflow execution.The source event with this ID can be found in the history of the source workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event. This field is set only if the signal was initiated by another workflow execution.

    - markerRecordedEventAttributes => (associative-array)

      If the event is of type MarkerRecorded then this member is set and provides detailed information about the event. It is not set for other event types.

      - markerName => (string)

        The name of the marker.

      - details => (string)

        Details of the marker (if any).

      - decisionTaskCompletedEventId => (int)

        The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the RecordMarker decision that requested this marker. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

    - recordMarkerFailedEventAttributes => (associative-array)

      If the event is of type DecisionTaskFailed then this member is set and provides detailed information about the event. It is not set for other event types.

      - markerName => (string)

        The marker's name.

      - cause => (string)

        The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.

        If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it lacked sufficient permissions. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.
      - decisionTaskCompletedEventId => (int)

        The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the RecordMarkerFailed decision for this cancellation request. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

    - timerStartedEventAttributes => (associative-array)

      If the event is of type TimerStarted then this member is set and provides detailed information about the event. It is not set for other event types.

      - timerId => (string)

        The unique ID of the timer that was started.

      - control => (string)

        Optional. Data attached to the event that can be used by the decider in subsequent workflow tasks.

      - startToFireTimeout => (string)

        The duration of time after which the timer will fire.

        The duration is specified in seconds; an integer greater than or equal to 0.

      - decisionTaskCompletedEventId => (int)

        The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the StartTimer decision for this activity task. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

    - timerFiredEventAttributes => (associative-array)

      If the event is of type TimerFired then this member is set and provides detailed information about the event. It is not set for other event types.

      - timerId => (string)

        The unique ID of the timer that fired.

      - startedEventId => (int)

        The ID of the TimerStarted event that was recorded when this timer was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

    - timerCanceledEventAttributes => (associative-array)

      If the event is of type TimerCanceled then this member is set and provides detailed information about the event. It is not set for other event types.

      - timerId => (string)

        The unique ID of the timer that was canceled.

      - startedEventId => (int)

        The ID of the TimerStarted event that was recorded when this timer was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

      - decisionTaskCompletedEventId => (int)

        The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the CancelTimer decision to cancel this timer. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

    - startChildWorkflowExecutionInitiatedEventAttributes => (associative-array)

      If the event is of type StartChildWorkflowExecutionInitiated then this member is set and provides detailed information about the event. It is not set for other event types.

      - workflowId => (string)

        The workflowId of the child workflow execution.

      - workflowType => (associative-array)

        The type of the child workflow execution.

        - name => (string)

          Required. The name of the workflow type.

          The combination of workflow type name and version must be unique with in a domain.
        - version => (string)

          Required. The version of the workflow type.

          The combination of workflow type name and version must be unique with in a domain.
      - control => (string)

        Optional. Data attached to the event that can be used by the decider in subsequent decision tasks. This data is not sent to the activity.

      - input => (string)

        The inputs provided to the child workflow execution (if any).

      - executionStartToCloseTimeout => (string)

        The maximum duration for the child workflow execution. If the workflow execution is not closed within this duration, it will be timed out and force terminated.

        The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.

      - taskList => (associative-array)

        The name of the task list used for the decision tasks of the child workflow execution.

        - name => (string)

          The name of the task list.

      - taskPriority => (string)

        Optional. The priority assigned for the decision tasks for this workflow execution. Valid values are integers that range from Java's Integer.MIN_VALUE (-2147483648) to Integer.MAX_VALUE (2147483647). Higher numbers indicate higher priority.

        For more information about setting task priority, see Setting Task Priority in the Amazon Simple Workflow Developer Guide.

      - decisionTaskCompletedEventId => (int)

        The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the StartChildWorkflowExecution decision to request this child workflow execution. This information can be useful for diagnosing problems by tracing back the cause of events.

      - childPolicy => (string)

        The policy to use for the child workflow executions if this execution gets terminated by explicitly calling the TerminateWorkflowExecution action or due to an expired timeout.

        The supported child policies are:

        - TERMINATE: the child executions will be terminated.
        - REQUEST_CANCEL: a request to cancel will be attempted for each child execution by recording a WorkflowExecutionCancelRequested event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.
        - ABANDON: no action will be taken. The child executions will continue to run.
      - taskStartToCloseTimeout => (string)

        The maximum duration allowed for the decision tasks for this workflow execution.

        The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.

      - tagList => (array<string>)

        The list of tags to associated with the child workflow execution.

      - lambdaRole => (string)

        The IAM role attached to this workflow execution to use when invoking AWS Lambda functions.

    - childWorkflowExecutionStartedEventAttributes => (associative-array)

      If the event is of type ChildWorkflowExecutionStarted then this member is set and provides detailed information about the event. It is not set for other event types.

      - workflowExecution => (associative-array)

        The child workflow execution that was started.

        - workflowId => (string)

          The user defined identifier associated with the workflow execution.

        - runId => (string)

          A system-generated unique identifier for the workflow execution.

      - workflowType => (associative-array)

        The type of the child workflow execution.

        - name => (string)

          Required. The name of the workflow type.

          The combination of workflow type name and version must be unique with in a domain.
        - version => (string)

          Required. The version of the workflow type.

          The combination of workflow type name and version must be unique with in a domain.
      - initiatedEventId => (int)

        The ID of the StartChildWorkflowExecutionInitiated event corresponding to the StartChildWorkflowExecution decision to start this child workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

    - childWorkflowExecutionCompletedEventAttributes => (associative-array)

      If the event is of type ChildWorkflowExecutionCompleted then this member is set and provides detailed information about the event. It is not set for other event types.

      - workflowExecution => (associative-array)

        The child workflow execution that was completed.

        - workflowId => (string)

          The user defined identifier associated with the workflow execution.

        - runId => (string)

          A system-generated unique identifier for the workflow execution.

      - workflowType => (associative-array)

        The type of the child workflow execution.

        - name => (string)

          Required. The name of the workflow type.

          The combination of workflow type name and version must be unique with in a domain.
        - version => (string)

          Required. The version of the workflow type.

          The combination of workflow type name and version must be unique with in a domain.
      - result => (string)

        The result of the child workflow execution (if any).

      - initiatedEventId => (int)

        The ID of the StartChildWorkflowExecutionInitiated event corresponding to the StartChildWorkflowExecution decision to start this child workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

      - startedEventId => (int)

        The ID of the ChildWorkflowExecutionStarted event recorded when this child workflow execution was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

    - childWorkflowExecutionFailedEventAttributes => (associative-array)

      If the event is of type ChildWorkflowExecutionFailed then this member is set and provides detailed information about the event. It is not set for other event types.

      - workflowExecution => (associative-array)

        The child workflow execution that failed.

        - workflowId => (string)

          The user defined identifier associated with the workflow execution.

        - runId => (string)

          A system-generated unique identifier for the workflow execution.

      - workflowType => (associative-array)

        The type of the child workflow execution.

        - name => (string)

          Required. The name of the workflow type.

          The combination of workflow type name and version must be unique with in a domain.
        - version => (string)

          Required. The version of the workflow type.

          The combination of workflow type name and version must be unique with in a domain.
      - reason => (string)

        The reason for the failure (if provided).

      - details => (string)

        The details of the failure (if provided).

      - initiatedEventId => (int)

        The ID of the StartChildWorkflowExecutionInitiated event corresponding to the StartChildWorkflowExecution decision to start this child workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

      - startedEventId => (int)

        The ID of the ChildWorkflowExecutionStarted event recorded when this child workflow execution was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

    - childWorkflowExecutionTimedOutEventAttributes => (associative-array)

      If the event is of type ChildWorkflowExecutionTimedOut then this member is set and provides detailed information about the event. It is not set for other event types.

      - workflowExecution => (associative-array)

        The child workflow execution that timed out.

        - workflowId => (string)

          The user defined identifier associated with the workflow execution.

        - runId => (string)

          A system-generated unique identifier for the workflow execution.

      - workflowType => (associative-array)

        The type of the child workflow execution.

        - name => (string)

          Required. The name of the workflow type.

          The combination of workflow type name and version must be unique with in a domain.
        - version => (string)

          Required. The version of the workflow type.

          The combination of workflow type name and version must be unique with in a domain.
      - timeoutType => (string)

        The type of the timeout that caused the child workflow execution to time out.

      - initiatedEventId => (int)

        The ID of the StartChildWorkflowExecutionInitiated event corresponding to the StartChildWorkflowExecution decision to start this child workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

      - startedEventId => (int)

        The ID of the ChildWorkflowExecutionStarted event recorded when this child workflow execution was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

    - childWorkflowExecutionCanceledEventAttributes => (associative-array)

      If the event is of type ChildWorkflowExecutionCanceled then this member is set and provides detailed information about the event. It is not set for other event types.

      - workflowExecution => (associative-array)

        The child workflow execution that was canceled.

        - workflowId => (string)

          The user defined identifier associated with the workflow execution.

        - runId => (string)

          A system-generated unique identifier for the workflow execution.

      - workflowType => (associative-array)

        The type of the child workflow execution.

        - name => (string)

          Required. The name of the workflow type.

          The combination of workflow type name and version must be unique with in a domain.
        - version => (string)

          Required. The version of the workflow type.

          The combination of workflow type name and version must be unique with in a domain.
      - details => (string)

        Details of the cancellation (if provided).

      - initiatedEventId => (int)

        The ID of the StartChildWorkflowExecutionInitiated event corresponding to the StartChildWorkflowExecution decision to start this child workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

      - startedEventId => (int)

        The ID of the ChildWorkflowExecutionStarted event recorded when this child workflow execution was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

    - childWorkflowExecutionTerminatedEventAttributes => (associative-array)

      If the event is of type ChildWorkflowExecutionTerminated then this member is set and provides detailed information about the event. It is not set for other event types.

      - workflowExecution => (associative-array)

        The child workflow execution that was terminated.

        - workflowId => (string)

          The user defined identifier associated with the workflow execution.

        - runId => (string)

          A system-generated unique identifier for the workflow execution.

      - workflowType => (associative-array)

        The type of the child workflow execution.

        - name => (string)

          Required. The name of the workflow type.

          The combination of workflow type name and version must be unique with in a domain.
        - version => (string)

          Required. The version of the workflow type.

          The combination of workflow type name and version must be unique with in a domain.
      - initiatedEventId => (int)

        The ID of the StartChildWorkflowExecutionInitiated event corresponding to the StartChildWorkflowExecution decision to start this child workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

      - startedEventId => (int)

        The ID of the ChildWorkflowExecutionStarted event recorded when this child workflow execution was started. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

    - signalExternalWorkflowExecutionInitiatedEventAttributes => (associative-array)

      If the event is of type SignalExternalWorkflowExecutionInitiated then this member is set and provides detailed information about the event. It is not set for other event types.

      - workflowId => (string)

        The workflowId of the external workflow execution.

      - runId => (string)

        The runId of the external workflow execution to send the signal to.

      - signalName => (string)

        The name of the signal.

      - input => (string)

        Input provided to the signal (if any).

      - decisionTaskCompletedEventId => (int)

        The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the SignalExternalWorkflowExecution decision for this signal. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

      - control => (string)

        Optional. data attached to the event that can be used by the decider in subsequent decision tasks.

    - externalWorkflowExecutionSignaledEventAttributes => (associative-array)

      If the event is of type ExternalWorkflowExecutionSignaled then this member is set and provides detailed information about the event. It is not set for other event types.

      - workflowExecution => (associative-array)

        The external workflow execution that the signal was delivered to.

        - workflowId => (string)

          The user defined identifier associated with the workflow execution.

        - runId => (string)

          A system-generated unique identifier for the workflow execution.

      - initiatedEventId => (int)

        The ID of the SignalExternalWorkflowExecutionInitiated event corresponding to the SignalExternalWorkflowExecution decision to request this signal. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

    - signalExternalWorkflowExecutionFailedEventAttributes => (associative-array)

      If the event is of type SignalExternalWorkflowExecutionFailed then this member is set and provides detailed information about the event. It is not set for other event types.

      - workflowId => (string)

        The workflowId of the external workflow execution that the signal was being delivered to.

      - runId => (string)

        The runId of the external workflow execution that the signal was being delivered to.

      - cause => (string)

        The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.

        If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it lacked sufficient permissions. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.
      - initiatedEventId => (int)

        The ID of the SignalExternalWorkflowExecutionInitiated event corresponding to the SignalExternalWorkflowExecution decision to request this signal. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

      - decisionTaskCompletedEventId => (int)

        The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the SignalExternalWorkflowExecution decision for this signal. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

      - control => (string)
    - externalWorkflowExecutionCancelRequestedEventAttributes => (associative-array)

      If the event is of type ExternalWorkflowExecutionCancelRequested then this member is set and provides detailed information about the event. It is not set for other event types.

      - workflowExecution => (associative-array)

        The external workflow execution to which the cancellation request was delivered.

        - workflowId => (string)

          The user defined identifier associated with the workflow execution.

        - runId => (string)

          A system-generated unique identifier for the workflow execution.

      - initiatedEventId => (int)

        The ID of the RequestCancelExternalWorkflowExecutionInitiated event corresponding to the RequestCancelExternalWorkflowExecution decision to cancel this external workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

    - requestCancelExternalWorkflowExecutionInitiatedEventAttributes => (associative-array)

      If the event is of type RequestCancelExternalWorkflowExecutionInitiated then this member is set and provides detailed information about the event. It is not set for other event types.

      - workflowId => (string)

        The workflowId of the external workflow execution to be canceled.

      - runId => (string)

        The runId of the external workflow execution to be canceled.

      - decisionTaskCompletedEventId => (int)

        The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the RequestCancelExternalWorkflowExecution decision for this cancellation request. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

      - control => (string)

        Optional. Data attached to the event that can be used by the decider in subsequent workflow tasks.

    - requestCancelExternalWorkflowExecutionFailedEventAttributes => (associative-array)

      If the event is of type RequestCancelExternalWorkflowExecutionFailed then this member is set and provides detailed information about the event. It is not set for other event types.

      - workflowId => (string)

        The workflowId of the external workflow to which the cancel request was to be delivered.

      - runId => (string)

        The runId of the external workflow execution.

      - cause => (string)

        The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.

        If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it lacked sufficient permissions. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.
      - initiatedEventId => (int)

        The ID of the RequestCancelExternalWorkflowExecutionInitiated event corresponding to the RequestCancelExternalWorkflowExecution decision to cancel this external workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

      - decisionTaskCompletedEventId => (int)

        The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the RequestCancelExternalWorkflowExecution decision for this cancellation request. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

      - control => (string)
    - scheduleActivityTaskFailedEventAttributes => (associative-array)

      If the event is of type ScheduleActivityTaskFailed then this member is set and provides detailed information about the event. It is not set for other event types.

      - activityType => (associative-array)

        The activity type provided in the ScheduleActivityTask decision that failed.

        - name => (string)

          The name of this activity.

          The combination of activity type name and version must be unique within a domain.
        - version => (string)

          The version of this activity.

          The combination of activity type name and version must be unique with in a domain.
      - activityId => (string)

        The activityId provided in the ScheduleActivityTask decision that failed.

      - cause => (string)

        The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.

        If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it lacked sufficient permissions. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.
      - decisionTaskCompletedEventId => (int)

        The ID of the DecisionTaskCompleted event corresponding to the decision that resulted in the scheduling of this activity task. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

    - requestCancelActivityTaskFailedEventAttributes => (associative-array)

      If the event is of type RequestCancelActivityTaskFailed then this member is set and provides detailed information about the event. It is not set for other event types.

      - activityId => (string)

        The activityId provided in the RequestCancelActivityTask decision that failed.

      - cause => (string)

        The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.

        If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it lacked sufficient permissions. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.
      - decisionTaskCompletedEventId => (int)

        The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the RequestCancelActivityTask decision for this cancellation request. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

    - startTimerFailedEventAttributes => (associative-array)

      If the event is of type StartTimerFailed then this member is set and provides detailed information about the event. It is not set for other event types.

      - timerId => (string)

        The timerId provided in the StartTimer decision that failed.

      - cause => (string)

        The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.

        If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it lacked sufficient permissions. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.
      - decisionTaskCompletedEventId => (int)

        The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the StartTimer decision for this activity task. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

    - cancelTimerFailedEventAttributes => (associative-array)

      If the event is of type CancelTimerFailed then this member is set and provides detailed information about the event. It is not set for other event types.

      - timerId => (string)

        The timerId provided in the CancelTimer decision that failed.

      - cause => (string)

        The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.

        If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it lacked sufficient permissions. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.
      - decisionTaskCompletedEventId => (int)

        The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the CancelTimer decision to cancel this timer. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

    - startChildWorkflowExecutionFailedEventAttributes => (associative-array)

      If the event is of type StartChildWorkflowExecutionFailed then this member is set and provides detailed information about the event. It is not set for other event types.

      - workflowType => (associative-array)

        The workflow type provided in the StartChildWorkflowExecution decision that failed.

        - name => (string)

          Required. The name of the workflow type.

          The combination of workflow type name and version must be unique with in a domain.
        - version => (string)

          Required. The version of the workflow type.

          The combination of workflow type name and version must be unique with in a domain.
      - cause => (string)

        The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.

        If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it lacked sufficient permissions. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.
      - workflowId => (string)

        The workflowId of the child workflow execution.

      - initiatedEventId => (int)

        The ID of the StartChildWorkflowExecutionInitiated event corresponding to the StartChildWorkflowExecution decision to start this child workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

      - decisionTaskCompletedEventId => (int)

        The ID of the DecisionTaskCompleted event corresponding to the decision task that resulted in the StartChildWorkflowExecution decision to request this child workflow execution. This information can be useful for diagnosing problems by tracing back the cause of events.

      - control => (string)
    - lambdaFunctionScheduledEventAttributes => (associative-array)

      Provides details for the LambdaFunctionScheduled event.

      - id => (string)

        The unique Amazon SWF ID for the AWS Lambda task.

      - name => (string)

        The name of the scheduled AWS Lambda function.

      - input => (string)

        Input provided to the AWS Lambda function.

      - startToCloseTimeout => (string)

        The maximum time, in seconds, that the AWS Lambda function can take to execute from start to close before it is marked as failed.

      - decisionTaskCompletedEventId => (int)

        The ID of the DecisionTaskCompleted event for the decision that resulted in the scheduling of this AWS Lambda function. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

    - lambdaFunctionStartedEventAttributes => (associative-array)

      Provides details for the LambdaFunctionStarted event.

      - scheduledEventId => (int)

        The ID of the LambdaFunctionScheduled event that was recorded when this AWS Lambda function was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

    - lambdaFunctionCompletedEventAttributes => (associative-array)

      Provides details for the LambdaFunctionCompleted event.

      - scheduledEventId => (int)

        The ID of the LambdaFunctionScheduled event that was recorded when this AWS Lambda function was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

      - startedEventId => (int)

        The ID of the LambdaFunctionStarted event recorded in the history.

      - result => (string)

        The result of the function execution (if any).

    - lambdaFunctionFailedEventAttributes => (associative-array)

      Provides details for the LambdaFunctionFailed event.

      - scheduledEventId => (int)

        The ID of the LambdaFunctionScheduled event that was recorded when this AWS Lambda function was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

      - startedEventId => (int)

        The ID of the LambdaFunctionStarted event recorded in the history.

      - reason => (string)

        The reason provided for the failure (if any).

      - details => (string)

        The details of the failure (if any).

    - lambdaFunctionTimedOutEventAttributes => (associative-array)

      Provides details for the LambdaFunctionTimedOut event.

      - scheduledEventId => (int)

        The ID of the LambdaFunctionScheduled event that was recorded when this AWS Lambda function was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

      - startedEventId => (int)

        The ID of the LambdaFunctionStarted event recorded in the history.

      - timeoutType => (string)

        The type of the timeout that caused this event.

    - scheduleLambdaFunctionFailedEventAttributes => (associative-array)

      Provides details for the ScheduleLambdaFunctionFailed event.

      - id => (string)

        The unique Amazon SWF ID of the AWS Lambda task.

      - name => (string)

        The name of the scheduled AWS Lambda function.

      - cause => (string)

        The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.

        If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it lacked sufficient permissions. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.
      - decisionTaskCompletedEventId => (int)

        The ID of the DecisionTaskCompleted event corresponding to the decision that resulted in the scheduling of this AWS Lambda function. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

    - startLambdaFunctionFailedEventAttributes => (associative-array)

      Provides details for the StartLambdaFunctionFailed event.

      - scheduledEventId => (int)

        The ID of the LambdaFunctionScheduled event that was recorded when this AWS Lambda function was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.

      - cause => (string)

        The cause of the failure. This information is generated by the system and can be useful for diagnostic purposes.

        If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it lacked sufficient permissions. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.
      - message => (string)

        The error message (if any).

- nextPageToken => (string)

  If a NextPageToken was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in nextPageToken. Keep all other arguments unchanged.

  The configured maximumPageSize determines how many results can be returned in a single call.

- previousStartedEventId => (int)

  The ID of the DecisionTaskStarted event of the previous decision task of this workflow execution that was processed by the decider. This can be used to determine the events in the history new since the last decision task received by the decider.

# `public `Guzzle\Service\Resource\Model``
`recordActivityTaskHeartbeat( array $args = array() )`

Executes 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.

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. This operation is only useful for long-lived activities to report liveliness of the task and to determine if a cancellation is being attempted. 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. 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.

#### Examples

- Basic formatting example

      $result = $client->recordActivityTaskHeartbeat(array(
          // taskToken is required
          'taskToken' => 'string',
          'details' => 'string',
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - taskToken => (string)

    The taskToken of the ActivityTask.

    taskToken is generated by the service and should be treated as an opaque value. If the task is passed to another process, its taskToken must also be passed. This enables it to provide its progress and respond with results.
  - details => (string)

    If specified, contains details about the progress of the task.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

- cancelRequested => (bool)

  Set to true if cancellation of the task is requested.

# `public `Guzzle\Service\Resource\Model``
`registerActivityType( array $args = array() )`

Executes the RegisterActivityType operation.

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

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. 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.

#### Examples

- Basic formatting example

      $result = $client->registerActivityType(array(
          // domain is required
          'domain' => 'string',
          // name is required
          'name' => 'string',
          // version is required
          'version' => 'string',
          'description' => 'string',
          'defaultTaskStartToCloseTimeout' => 'string',
          'defaultTaskHeartbeatTimeout' => 'string',
          'defaultTaskList' => array(
              // name is required
              'name' => 'string',
          ),
          'defaultTaskPriority' => 'string',
          'defaultTaskScheduleToStartTimeout' => 'string',
          'defaultTaskScheduleToCloseTimeout' => 'string',
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - domain => (string)

    The name of the domain in which this activity is to be registered.

  - name => (string)

    The name of the activity type within the domain.

    The specified string must not start or end with whitespace. It must not contain a : (colon), / (slash), | (vertical bar), or any control characters (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal string "arn".

  - version => (string)

    The version of the activity type.

    The activity type consists of the name and version, the combination of which must be unique within the domain.

    The specified string must not start or end with whitespace. It must not contain a : (colon), / (slash), | (vertical bar), or any control characters (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal string "arn".

  - description => (string)

    A textual description of the activity type.

  - defaultTaskStartToCloseTimeout => (string)

    If set, specifies the default maximum duration that a worker can take to process tasks of this activity type. This default can be overridden when scheduling an activity task using the ScheduleActivityTask decision.

    The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.

  - defaultTaskHeartbeatTimeout => (string)

    If set, specifies the default maximum time before which a worker processing a task of this type must report progress by calling RecordActivityTaskHeartbeat. If the timeout is exceeded, the activity task is automatically timed out. This default can be overridden when scheduling an activity task using the ScheduleActivityTask decision. If the activity worker subsequently attempts to record a heartbeat or returns a result, the activity worker receives an UnknownResource fault. In this case, Amazon SWF no longer considers the activity task to be valid; the activity worker should clean up the activity task.

    The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.

  - defaultTaskList => (associative-array)

    If set, specifies the default task list to use for scheduling tasks of this activity type. This default task list is used if a task list is not provided when a task is scheduled through the ScheduleActivityTask decision.

    - name => (string)

      The name of the task list.

  - defaultTaskPriority => (string)

    The default task priority to assign to the activity type. If not assigned, then "0" will be used. Valid values are integers that range from Java's Integer.MIN_VALUE (-2147483648) to Integer.MAX_VALUE (2147483647). Higher numbers indicate higher priority.

    For more information about setting task priority, see Setting Task Priority in the Amazon Simple Workflow Developer Guide.

  - defaultTaskScheduleToStartTimeout => (string)

    If set, specifies the default maximum duration that a task of this activity type can wait before being assigned to a worker. This default can be overridden when scheduling an activity task using the ScheduleActivityTask decision.

    The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.

  - defaultTaskScheduleToCloseTimeout => (string)

    If set, specifies the default maximum duration for a task of this activity type. This default can be overridden when scheduling an activity task using the ScheduleActivityTask decision.

    The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

# `public `Guzzle\Service\Resource\Model``
`registerDomain( array $args = array() )`

Executes 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. 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.

#### Examples

- Basic formatting example

      $result = $client->registerDomain(array(
          // name is required
          'name' => 'string',
          'description' => 'string',
          // workflowExecutionRetentionPeriodInDays is required
          'workflowExecutionRetentionPeriodInDays' => 'string',
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - name => (string)

    Name of the domain to register. The name must be unique in the region that the domain is registered in.

    The specified string must not start or end with whitespace. It must not contain a : (colon), / (slash), | (vertical bar), or any control characters (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal string "arn".

  - description => (string)

    A text description of the domain.

  - workflowExecutionRetentionPeriodInDays => (string)

    The duration (in days) that records and histories of workflow executions on the domain should be kept by the service. After the retention period, the workflow execution is not available in the results of visibility calls.

    If you pass the value NONE or 0 (zero), then the workflow execution history will not be retained. As soon as the workflow execution completes, the execution record and its history are deleted.

    The maximum workflow execution retention period is 90 days. For more information about Amazon SWF service limits, see: Amazon SWF Service Limits in the Amazon SWF Developer Guide.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

# `public `Guzzle\Service\Resource\Model``
`registerWorkflowType( array $args = array() )`

Executes 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.

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. 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.

#### Examples

- Basic formatting example

      $result = $client->registerWorkflowType(array(
          // domain is required
          'domain' => 'string',
          // name is required
          'name' => 'string',
          // version is required
          'version' => 'string',
          'description' => 'string',
          'defaultTaskStartToCloseTimeout' => 'string',
          'defaultExecutionStartToCloseTimeout' => 'string',
          'defaultTaskList' => array(
              // name is required
              'name' => 'string',
          ),
          'defaultTaskPriority' => 'string',
          'defaultChildPolicy' => 'string',
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - domain => (string)

    The name of the domain in which to register the workflow type.

  - name => (string)

    The name of the workflow type.

    The specified string must not start or end with whitespace. It must not contain a : (colon), / (slash), | (vertical bar), or any control characters (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal string "arn".

  - version => (string)

    The version of the workflow type.

    The workflow type consists of the name and version, the combination of which must be unique within the domain. To get a list of all currently registered workflow types, use the ListWorkflowTypes action.

    The specified string must not start or end with whitespace. It must not contain a : (colon), / (slash), | (vertical bar), or any control characters (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal string "arn".

  - description => (string)

    Textual description of the workflow type.

  - defaultTaskStartToCloseTimeout => (string)

    If set, specifies the default maximum duration of decision tasks for this workflow type. This default can be overridden when starting a workflow execution using the StartWorkflowExecution action or the StartChildWorkflowExecution decision.

    The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.

  - defaultExecutionStartToCloseTimeout => (string)

    If set, specifies the default maximum duration for executions of this workflow type. You can override this default when starting an execution through the StartWorkflowExecution action or StartChildWorkflowExecution decision.

    The duration is specified in seconds; an integer greater than or equal to 0. Unlike some of the other timeout parameters in Amazon SWF, you cannot specify a value of "NONE" for defaultExecutionStartToCloseTimeout; there is a one-year max limit on the time that a workflow execution can run. Exceeding this limit will always cause the workflow execution to time out.

  - defaultTaskList => (associative-array)

    If set, specifies the default task list to use for scheduling decision tasks for executions of this workflow type. This default is used only if a task list is not provided when starting the execution through the StartWorkflowExecution action or StartChildWorkflowExecution decision.

    - name => (string)

      The name of the task list.

  - defaultTaskPriority => (string)

    The default task priority to assign to the workflow type. If not assigned, then "0" will be used. Valid values are integers that range from Java's Integer.MIN_VALUE (-2147483648) to Integer.MAX_VALUE (2147483647). Higher numbers indicate higher priority.

    For more information about setting task priority, see Setting Task Priority in the Amazon Simple Workflow Developer Guide.

  - defaultChildPolicy => (string: TERMINATE | REQUEST_CANCEL | ABANDON )

    If set, specifies the default policy to use for the child workflow executions when a workflow execution of this type is terminated, by calling the TerminateWorkflowExecution action explicitly or due to an expired timeout. This default can be overridden when starting a workflow execution using the StartWorkflowExecution action or the StartChildWorkflowExecution decision.

    The supported child policies are:

    - TERMINATE: the child executions will be terminated.
    - REQUEST_CANCEL: a request to cancel will be attempted for each child execution by recording a WorkflowExecutionCancelRequested event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.
    - ABANDON: no action will be taken. The child executions will continue to run.
  - defaultLambdaRole => (string)

    The ARN of the default IAM role to use when a workflow execution of this type invokes AWS Lambda functions.

    This default can be overridden when starting a workflow execution using the StartWorkflowExecution action or the StartChildWorkflowExecution and ContinueAsNewWorkflowExecution decision.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

# `public `Guzzle\Service\Resource\Model``
`requestCancelWorkflowExecution( array $args = array() )`

Executes 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.

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. 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. 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.

#### Examples

- Basic formatting example

      $result = $client->requestCancelWorkflowExecution(array(
          // domain is required
          'domain' => 'string',
          // workflowId is required
          'workflowId' => 'string',
          'runId' => 'string',
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - domain => (string)

    The name of the domain containing the workflow execution to cancel.

  - workflowId => (string)

    The workflowId of the workflow execution to cancel.

  - runId => (string)

    The runId of the workflow execution to cancel.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

# `public `Guzzle\Service\Resource\Model``
`respondActivityTaskCanceled( array $args = array() )`

Executes 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.

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. 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.

#### Examples

- Basic formatting example

      $result = $client->respondActivityTaskCanceled(array(
          // taskToken is required
          'taskToken' => 'string',
          'details' => 'string',
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - taskToken => (string)

    The taskToken of the ActivityTask.

    taskToken is generated by the service and should be treated as an opaque value. If the task is passed to another process, its taskToken must also be passed. This enables it to provide its progress and respond with results.
  - details => (string)

    Optional. Information about the cancellation.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

# `public `Guzzle\Service\Resource\Model``
`respondActivityTaskCompleted( array $args = array() )`

Executes 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.

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. 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.

#### Examples

- Basic formatting example

      $result = $client->respondActivityTaskCompleted(array(
          // taskToken is required
          'taskToken' => 'string',
          'result' => 'string',
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - taskToken => (string)

    The taskToken of the ActivityTask.

    taskToken is generated by the service and should be treated as an opaque value. If the task is passed to another process, its taskToken must also be passed. This enables it to provide its progress and respond with results.
  - result => (string)

    The result of the activity task. It is a free form string that is implementation specific.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

# `public `Guzzle\Service\Resource\Model``
`respondActivityTaskFailed( array $args = array() )`

Executes 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. 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.

#### Examples

- Basic formatting example

      $result = $client->respondActivityTaskFailed(array(
          // taskToken is required
          'taskToken' => 'string',
          'reason' => 'string',
          'details' => 'string',
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - taskToken => (string)

    The taskToken of the ActivityTask.

    taskToken is generated by the service and should be treated as an opaque value. If the task is passed to another process, its taskToken must also be passed. This enables it to provide its progress and respond with results.
  - reason => (string)

    Description of the error that may assist in diagnostics.

  - details => (string)

    Optional. Detailed information about the failure.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

# `public `Guzzle\Service\Resource\Model``
`respondDecisionTaskCompleted( array $args = array() )`

Executes 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.

#### Examples

- Basic formatting example

      $result = $client->respondDecisionTaskCompleted(array(
          // taskToken is required
          'taskToken' => 'string',
          'decisions' => array(
              array(
                  // decisionType is required
                  'decisionType' => 'string',
                  'scheduleActivityTaskDecisionAttributes' => array(
                      // activityType is required
                      'activityType' => array(
                          // name is required
                          'name' => 'string',
                          // version is required
                          'version' => 'string',
                      ),
                      // activityId is required
                      'activityId' => 'string',
                      'control' => 'string',
                      'input' => 'string',
                      'scheduleToCloseTimeout' => 'string',
                      'taskList' => array(
                          // name is required
                          'name' => 'string',
                      ),
                      'taskPriority' => 'string',
                      'scheduleToStartTimeout' => 'string',
                      'startToCloseTimeout' => 'string',
                      'heartbeatTimeout' => 'string',
                  ),
                  'requestCancelActivityTaskDecisionAttributes' => array(
                      // activityId is required
                      'activityId' => 'string',
                  ),
                  'completeWorkflowExecutionDecisionAttributes' => array(
                      'result' => 'string',
                  ),
                  'failWorkflowExecutionDecisionAttributes' => array(
                      'reason' => 'string',
                      'details' => 'string',
                  ),
                  'cancelWorkflowExecutionDecisionAttributes' => array(
                      'details' => 'string',
                  ),
                  'continueAsNewWorkflowExecutionDecisionAttributes' => array(
                      'input' => 'string',
                      'executionStartToCloseTimeout' => 'string',
                      'taskList' => array(
                          // name is required
                          'name' => 'string',
                      ),
                      'taskPriority' => 'string',
                      'taskStartToCloseTimeout' => 'string',
                      'childPolicy' => 'string',
                      'tagList' => array('string', ... ),
                      'workflowTypeVersion' => 'string',
                  ),
                  'recordMarkerDecisionAttributes' => array(
                      // markerName is required
                      'markerName' => 'string',
                      'details' => 'string',
                  ),
                  'startTimerDecisionAttributes' => array(
                      // timerId is required
                      'timerId' => 'string',
                      'control' => 'string',
                      // startToFireTimeout is required
                      'startToFireTimeout' => 'string',
                  ),
                  'cancelTimerDecisionAttributes' => array(
                      // timerId is required
                      'timerId' => 'string',
                  ),
                  'signalExternalWorkflowExecutionDecisionAttributes' => array(
                      // workflowId is required
                      'workflowId' => 'string',
                      'runId' => 'string',
                      // signalName is required
                      'signalName' => 'string',
                      'input' => 'string',
                      'control' => 'string',
                  ),
                  'requestCancelExternalWorkflowExecutionDecisionAttributes' => array(
                      // workflowId is required
                      'workflowId' => 'string',
                      'runId' => 'string',
                      'control' => 'string',
                  ),
                  'startChildWorkflowExecutionDecisionAttributes' => array(
                      // workflowType is required
                      'workflowType' => array(
                          // name is required
                          'name' => 'string',
                          // version is required
                          'version' => 'string',
                      ),
                      // workflowId is required
                      'workflowId' => 'string',
                      'control' => 'string',
                      'input' => 'string',
                      'executionStartToCloseTimeout' => 'string',
                      'taskList' => array(
                          // name is required
                          'name' => 'string',
                      ),
                      'taskPriority' => 'string',
                      'taskStartToCloseTimeout' => 'string',
                      'childPolicy' => 'string',
                      'tagList' => array('string', ... ),
                  ),
              ),
              // ... repeated
          ),
          'executionContext' => 'string',
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - taskToken => (string)

    The taskToken from the DecisionTask.

    taskToken is generated by the service and should be treated as an opaque value. If the task is passed to another process, its taskToken must also be passed. This enables it to provide its progress and respond with results.
  - decisions => (array<associative-array>)

    The list of decisions (possibly empty) made by the decider while processing this decision task. See the docs for the decision structure for details.

    - (associative-array)

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

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

      Access Control

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

      Decision Failure

      Decisions can fail for several reasons

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

      One of the following events might be added to the history to indicate an error. The event attribute's cause parameter indicates the cause. If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it lacked sufficient permissions. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows.

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

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

      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
      - ScheduleLambdaFunctionDecisionAttributes
      - RequestCancelActivityTaskDecisionAttributes
      - CompleteWorkflowExecutionDecisionAttributes
      - FailWorkflowExecutionDecisionAttributes
      - CancelWorkflowExecutionDecisionAttributes
      - ContinueAsNewWorkflowExecutionDecisionAttributes
      - RecordMarkerDecisionAttributes
      - StartTimerDecisionAttributes
      - CancelTimerDecisionAttributes
      - SignalExternalWorkflowExecutionDecisionAttributes
      - RequestCancelExternalWorkflowExecutionDecisionAttributes
      - StartChildWorkflowExecutionDecisionAttributes
      - decisionType => (string: ScheduleActivityTask | RequestCancelActivityTask | CompleteWorkflowExecution | FailWorkflowExecution | CancelWorkflowExecution | ContinueAsNewWorkflowExecution | RecordMarker | StartTimer | CancelTimer | SignalExternalWorkflowExecution | RequestCancelExternalWorkflowExecution | StartChildWorkflowExecution | ScheduleLambdaFunction )

        Specifies the type of the decision.

      - scheduleActivityTaskDecisionAttributes => (associative-array)

        Provides details of the ScheduleActivityTask decision. It is not set for other decision types.

        - activityType => (associative-array)

          Required. The type of the activity task to schedule.

          - name => (string)

            The name of this activity.

            The combination of activity type name and version must be unique within a domain.
          - version => (string)

            The version of this activity.

            The combination of activity type name and version must be unique with in a domain.
        - activityId => (string)

          Required. The activityId of the activity task.

          The specified string must not start or end with whitespace. It must not contain a : (colon), / (slash), | (vertical bar), or any control characters (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal string "arn".

        - control => (string)

          Optional. Data attached to the event that can be used by the decider in subsequent workflow tasks. This data is not sent to the activity.

        - input => (string)

          The input provided to the activity task.

        - scheduleToCloseTimeout => (string)

          The maximum duration for this activity task.

          The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.

          A schedule-to-close timeout for this activity task must be specified either as a default for the activity type or through this field. If neither this field is set nor a default schedule-to-close timeout was specified at registration time then a fault will be returned.
        - taskList => (associative-array)

          If set, specifies the name of the task list in which to schedule the activity task. If not specified, the defaultTaskList registered with the activity type will be used.

          A task list for this activity task must be specified either as a default for the activity type or through this field. If neither this field is set nor a default task list was specified at registration time then a fault will be returned.

          The specified string must not start or end with whitespace. It must not contain a : (colon), / (slash), | (vertical bar), or any control characters (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal string "arn".

          - name => (string)

            The name of the task list.

        - taskPriority => (string)

          Optional. If set, specifies the priority with which the activity task is to be assigned to a worker. This overrides the defaultTaskPriority specified when registering the activity type using RegisterActivityType. Valid values are integers that range from Java's Integer.MIN_VALUE (-2147483648) to Integer.MAX_VALUE (2147483647). Higher numbers indicate higher priority.

          For more information about setting task priority, see Setting Task Priority in the Amazon Simple Workflow Developer Guide.

        - scheduleToStartTimeout => (string)

          Optional. If set, specifies the maximum duration the activity task can wait to be assigned to a worker. This overrides the default schedule-to-start timeout specified when registering the activity type using RegisterActivityType.

          The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.

          A schedule-to-start timeout for this activity task must be specified either as a default for the activity type or through this field. If neither this field is set nor a default schedule-to-start timeout was specified at registration time then a fault will be returned.
        - startToCloseTimeout => (string)

          If set, specifies the maximum duration a worker may take to process this activity task. This overrides the default start-to-close timeout specified when registering the activity type using RegisterActivityType.

          The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.

          A start-to-close timeout for this activity task must be specified either as a default for the activity type or through this field. If neither this field is set nor a default start-to-close timeout was specified at registration time then a fault will be returned.
        - heartbeatTimeout => (string)

          If set, specifies the maximum time before which a worker processing a task of this type must report progress by calling RecordActivityTaskHeartbeat. If the timeout is exceeded, the activity task is automatically timed out. If the worker subsequently attempts to record a heartbeat or returns a result, it will be ignored. This overrides the default heartbeat timeout specified when registering the activity type using RegisterActivityType.

          The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.

      - requestCancelActivityTaskDecisionAttributes => (associative-array)

        Provides details of the RequestCancelActivityTask decision. It is not set for other decision types.

        - activityId => (string)

          The activityId of the activity task to be canceled.

      - completeWorkflowExecutionDecisionAttributes => (associative-array)

        Provides details of the CompleteWorkflowExecution decision. It is not set for other decision types.

        - result => (string)

          The result of the workflow execution. The form of the result is implementation defined.

      - failWorkflowExecutionDecisionAttributes => (associative-array)

        Provides details of the FailWorkflowExecution decision. It is not set for other decision types.

        - reason => (string)

          A descriptive reason for the failure that may help in diagnostics.

        - details => (string)

          Optional. Details of the failure.

      - cancelWorkflowExecutionDecisionAttributes => (associative-array)

        Provides details of the CancelWorkflowExecution decision. It is not set for other decision types.

        - details => (string)

          Optional. details of the cancellation.

      - continueAsNewWorkflowExecutionDecisionAttributes => (associative-array)

        Provides details of the ContinueAsNewWorkflowExecution decision. It is not set for other decision types.

        - input => (string)

          The input provided to the new workflow execution.

        - executionStartToCloseTimeout => (string)

          If set, specifies the total duration for this workflow execution. This overrides the defaultExecutionStartToCloseTimeout specified when registering the workflow type.

          The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.

          An execution start-to-close timeout for this workflow execution must be specified either as a default for the workflow type or through this field. If neither this field is set nor a default execution start-to-close timeout was specified at registration time then a fault will be returned.
        - taskList => (associative-array)

          Represents a task list.

          - name => (string)

            The name of the task list.

        - taskPriority => (string)

          Optional. The task priority that, if set, specifies the priority for the decision tasks for this workflow execution. This overrides the defaultTaskPriority specified when registering the workflow type. Valid values are integers that range from Java's Integer.MIN_VALUE (-2147483648) to Integer.MAX_VALUE (2147483647). Higher numbers indicate higher priority.

          For more information about setting task priority, see Setting Task Priority in the Amazon Simple Workflow Developer Guide.

        - taskStartToCloseTimeout => (string)

          Specifies the maximum duration of decision tasks for the new workflow execution. This parameter overrides the defaultTaskStartToCloseTimout specified when registering the workflow type using RegisterWorkflowType.

          The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.

          A task start-to-close timeout for the new workflow execution must be specified either as a default for the workflow type or through this parameter. If neither this parameter is set nor a default task start-to-close timeout was specified at registration time then a fault will be returned.
        - childPolicy => (string: TERMINATE | REQUEST_CANCEL | ABANDON )

          If set, specifies the policy to use for the child workflow executions of the new execution if it is terminated by calling the TerminateWorkflowExecution action explicitly or due to an expired timeout. This policy overrides the default child policy specified when registering the workflow type using RegisterWorkflowType.

          The supported child policies are:

          - TERMINATE: the child executions will be terminated.
          - REQUEST_CANCEL: a request to cancel will be attempted for each child execution by recording a WorkflowExecutionCancelRequested event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.
          - ABANDON: no action will be taken. The child executions will continue to run.
          A child policy for this workflow execution must be specified either as a default for the workflow type or through this parameter. If neither this parameter is set nor a default child policy was specified at registration time then a fault will be returned.
        - tagList => (array<string>)

          The list of tags to associate with the new workflow execution. A maximum of 5 tags can be specified. You can list workflow executions with a specific tag by calling ListOpenWorkflowExecutions or ListClosedWorkflowExecutions and specifying a TagFilter.

        - workflowTypeVersion => (string)
        - lambdaRole => (string)

          The ARN of an IAM role that authorizes Amazon SWF to invoke AWS Lambda functions.

          In order for this workflow execution to invoke AWS Lambda functions, an appropriate IAM role must be specified either as a default for the workflow type or through this field.
      - recordMarkerDecisionAttributes => (associative-array)

        Provides details of the RecordMarker decision. It is not set for other decision types.

        - markerName => (string)

          Required. The name of the marker.

        - details => (string)

          Optional. details of the marker.

      - startTimerDecisionAttributes => (associative-array)

        Provides details of the StartTimer decision. It is not set for other decision types.

        - timerId => (string)

          Required. The unique ID of the timer.

          The specified string must not start or end with whitespace. It must not contain a : (colon), / (slash), | (vertical bar), or any control characters (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal string "arn".

        - control => (string)

          Optional. Data attached to the event that can be used by the decider in subsequent workflow tasks.

        - startToFireTimeout => (string)

          Required. The duration to wait before firing the timer.

          The duration is specified in seconds; an integer greater than or equal to 0.

      - cancelTimerDecisionAttributes => (associative-array)

        Provides details of the CancelTimer decision. It is not set for other decision types.

        - timerId => (string)

          Required. The unique ID of the timer to cancel.

      - signalExternalWorkflowExecutionDecisionAttributes => (associative-array)

        Provides details of the SignalExternalWorkflowExecution decision. It is not set for other decision types.

        - workflowId => (string)

          Required. The workflowId of the workflow execution to be signaled.

        - runId => (string)

          The runId of the workflow execution to be signaled.

        - signalName => (string)

          Required. The name of the signal.The target workflow execution will use the signal name and input to process the signal.

        - input => (string)

          Optional. Input data to be provided with the signal. The target workflow execution will use the signal name and input data to process the signal.

        - control => (string)

          Optional. Data attached to the event that can be used by the decider in subsequent decision tasks.

      - requestCancelExternalWorkflowExecutionDecisionAttributes => (associative-array)

        Provides details of the RequestCancelExternalWorkflowExecution decision. It is not set for other decision types.

        - workflowId => (string)

          Required. The workflowId of the external workflow execution to cancel.

        - runId => (string)

          The runId of the external workflow execution to cancel.

        - control => (string)

          Optional. Data attached to the event that can be used by the decider in subsequent workflow tasks.

      - startChildWorkflowExecutionDecisionAttributes => (associative-array)

        Provides details of the StartChildWorkflowExecution decision. It is not set for other decision types.

        - workflowType => (associative-array)

          Required. The type of the workflow execution to be started.

          - name => (string)

            Required. The name of the workflow type.

            The combination of workflow type name and version must be unique with in a domain.
          - version => (string)

            Required. The version of the workflow type.

            The combination of workflow type name and version must be unique with in a domain.
        - workflowId => (string)

          Required. The workflowId of the workflow execution.

          The specified string must not start or end with whitespace. It must not contain a : (colon), / (slash), | (vertical bar), or any control characters (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal string "arn".

        - control => (string)

          Optional. Data attached to the event that can be used by the decider in subsequent workflow tasks. This data is not sent to the child workflow execution.

        - input => (string)

          The input to be provided to the workflow execution.

        - executionStartToCloseTimeout => (string)

          The total duration for this workflow execution. This overrides the defaultExecutionStartToCloseTimeout specified when registering the workflow type.

          The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.

          An execution start-to-close timeout for this workflow execution must be specified either as a default for the workflow type or through this parameter. If neither this parameter is set nor a default execution start-to-close timeout was specified at registration time then a fault will be returned.
        - taskList => (associative-array)

          The name of the task list to be used for decision tasks of the child workflow execution.

          A task list for this workflow execution must be specified either as a default for the workflow type or through this parameter. If neither this parameter is set nor a default task list was specified at registration time then a fault will be returned.

          The specified string must not start or end with whitespace. It must not contain a : (colon), / (slash), | (vertical bar), or any control characters (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal string "arn".

          - name => (string)

            The name of the task list.

        - taskPriority => (string)

          Optional. A task priority that, if set, specifies the priority for a decision task of this workflow execution. This overrides the defaultTaskPriority specified when registering the workflow type. Valid values are integers that range from Java's Integer.MIN_VALUE (-2147483648) to Integer.MAX_VALUE (2147483647). Higher numbers indicate higher priority.

          For more information about setting task priority, see Setting Task Priority in the Amazon Simple Workflow Developer Guide.

        - taskStartToCloseTimeout => (string)

          Specifies the maximum duration of decision tasks for this workflow execution. This parameter overrides the defaultTaskStartToCloseTimout specified when registering the workflow type using RegisterWorkflowType.

          The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.

          A task start-to-close timeout for this workflow execution must be specified either as a default for the workflow type or through this parameter. If neither this parameter is set nor a default task start-to-close timeout was specified at registration time then a fault will be returned.
        - childPolicy => (string: TERMINATE | REQUEST_CANCEL | ABANDON )

          Optional. If set, specifies the policy to use for the child workflow executions if the workflow execution being started is terminated by calling the TerminateWorkflowExecution action explicitly or due to an expired timeout. This policy overrides the default child policy specified when registering the workflow type using RegisterWorkflowType.

          The supported child policies are:

          - TERMINATE: the child executions will be terminated.
          - REQUEST_CANCEL: a request to cancel will be attempted for each child execution by recording a WorkflowExecutionCancelRequested event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.
          - ABANDON: no action will be taken. The child executions will continue to run.
          A child policy for this workflow execution must be specified either as a default for the workflow type or through this parameter. If neither this parameter is set nor a default child policy was specified at registration time then a fault will be returned.
        - tagList => (array<string>)

          The list of tags to associate with the child workflow execution. A maximum of 5 tags can be specified. You can list workflow executions with a specific tag by calling ListOpenWorkflowExecutions or ListClosedWorkflowExecutions and specifying a TagFilter.

        - lambdaRole => (string)

          The ARN of an IAM role that authorizes Amazon SWF to invoke AWS Lambda functions.

          In order for this workflow execution to invoke AWS Lambda functions, an appropriate IAM role must be specified either as a default for the workflow type or through this field.
      - scheduleLambdaFunctionDecisionAttributes => (associative-array)

        Provides details of the ScheduleLambdaFunction decision.

        Access Control

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

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

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

        - id => (string)

          Required. The SWF id of the AWS Lambda task.

          The specified string must not start or end with whitespace. It must not contain a : (colon), / (slash), | (vertical bar), or any control characters (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal string "arn".

        - name => (string)

          Required. The name of the AWS Lambda function to invoke.

        - input => (string)

          The input provided to the AWS Lambda function.

        - startToCloseTimeout => (string)

          If set, specifies the maximum duration the function may take to execute.

  - executionContext => (string)

    User defined context to add to workflow execution.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

# `public `Guzzle\Service\Resource\Model``
`signalWorkflowExecution( array $args = array() )`

Executes 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).

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. 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. 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.

#### Examples

- Basic formatting example

      $result = $client->signalWorkflowExecution(array(
          // domain is required
          'domain' => 'string',
          // workflowId is required
          'workflowId' => 'string',
          'runId' => 'string',
          // signalName is required
          'signalName' => 'string',
          'input' => 'string',
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - domain => (string)

    The name of the domain containing the workflow execution to signal.

  - workflowId => (string)

    The workflowId of the workflow execution to signal.

  - runId => (string)

    The runId of the workflow execution to signal.

  - signalName => (string)

    The name of the signal. This name must be meaningful to the target workflow.

  - input => (string)

    Data to attach to the WorkflowExecutionSignaled event in the target workflow execution's history.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

# `public `Guzzle\Service\Resource\Model``
`startWorkflowExecution( array $args = array() )`

Executes 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 .
  - 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.

#### Examples

- Basic formatting example

      $result = $client->startWorkflowExecution(array(
          // domain is required
          'domain' => 'string',
          // workflowId is required
          'workflowId' => 'string',
          // workflowType is required
          'workflowType' => array(
              // name is required
              'name' => 'string',
              // version is required
              'version' => 'string',
          ),
          'taskList' => array(
              // name is required
              'name' => 'string',
          ),
          'taskPriority' => 'string',
          'input' => 'string',
          'executionStartToCloseTimeout' => 'string',
          'tagList' => array('string', ... ),
          'taskStartToCloseTimeout' => 'string',
          'childPolicy' => 'string',
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - domain => (string)

    The name of the domain in which the workflow execution is created.

  - workflowId => (string)

    The user defined identifier associated with the workflow execution. You can use this to associate a custom identifier with the workflow execution. You may specify the same identifier if a workflow execution is logically a restart of a previous execution. You cannot have two open workflow executions with the same workflowId at the same time.

    The specified string must not start or end with whitespace. It must not contain a : (colon), / (slash), | (vertical bar), or any control characters (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal string "arn".

  - workflowType => (associative-array)

    The type of the workflow to start.

    - name => (string)

      Required. The name of the workflow type.

      The combination of workflow type name and version must be unique with in a domain.
    - version => (string)

      Required. The version of the workflow type.

      The combination of workflow type name and version must be unique with in a domain.
  - taskList => (associative-array)

    The task list to use for the decision tasks generated for this workflow execution. This overrides the defaultTaskList specified when registering the workflow type.

    A task list for this workflow execution must be specified either as a default for the workflow type or through this parameter. If neither this parameter is set nor a default task list was specified at registration time then a fault will be returned.

    The specified string must not start or end with whitespace. It must not contain a : (colon), / (slash), | (vertical bar), or any control characters (\u0000-\u001f | \u007f - \u009f). Also, it must not contain the literal string "arn".

    - name => (string)

      The name of the task list.

  - taskPriority => (string)

    The task priority to use for this workflow execution. This will override any default priority that was assigned when the workflow type was registered. If not set, then the default task priority for the workflow type will be used. Valid values are integers that range from Java's Integer.MIN_VALUE (-2147483648) to Integer.MAX_VALUE (2147483647). Higher numbers indicate higher priority.

    For more information about setting task priority, see Setting Task Priority in the Amazon Simple Workflow Developer Guide.

  - input => (string)

    The input for the workflow execution. This is a free form string which should be meaningful to the workflow you are starting. This input is made available to the new workflow execution in the WorkflowExecutionStarted history event.

  - executionStartToCloseTimeout => (string)

    The total duration for this workflow execution. This overrides the defaultExecutionStartToCloseTimeout specified when registering the workflow type.

    The duration is specified in seconds; an integer greater than or equal to 0. Exceeding this limit will cause the workflow execution to time out. Unlike some of the other timeout parameters in Amazon SWF, you cannot specify a value of "NONE" for this timeout; there is a one-year max limit on the time that a workflow execution can run.

    An execution start-to-close timeout must be specified either through this parameter or as a default when the workflow type is registered. If neither this parameter nor a default execution start-to-close timeout is specified, a fault is returned.
  - tagList => (array<string>)

    The list of tags to associate with the workflow execution. You can specify a maximum of 5 tags. You can list workflow executions with a specific tag by calling ListOpenWorkflowExecutions or ListClosedWorkflowExecutions and specifying a TagFilter.

  - taskStartToCloseTimeout => (string)

    Specifies the maximum duration of decision tasks for this workflow execution. This parameter overrides the defaultTaskStartToCloseTimout specified when registering the workflow type using RegisterWorkflowType.

    The duration is specified in seconds; an integer greater than or equal to 0. The value "NONE" can be used to specify unlimited duration.

    A task start-to-close timeout for this workflow execution must be specified either as a default for the workflow type or through this parameter. If neither this parameter is set nor a default task start-to-close timeout was specified at registration time then a fault will be returned.
  - childPolicy => (string: TERMINATE | REQUEST_CANCEL | ABANDON )

    If set, specifies the policy to use for the child workflow executions of this workflow execution if it is terminated, by calling the TerminateWorkflowExecution action explicitly or due to an expired timeout. This policy overrides the default child policy specified when registering the workflow type using RegisterWorkflowType.

    The supported child policies are:

    - TERMINATE: the child executions will be terminated.
    - REQUEST_CANCEL: a request to cancel will be attempted for each child execution by recording a WorkflowExecutionCancelRequested event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.
    - ABANDON: no action will be taken. The child executions will continue to run.
    A child policy for this workflow execution must be specified either as a default for the workflow type or through this parameter. If neither this parameter is set nor a default child policy was specified at registration time then a fault will be returned.
  - lambdaRole => (string)

    The ARN of an IAM role that authorizes Amazon SWF to invoke AWS Lambda functions.

    In order for this workflow execution to invoke AWS Lambda functions, an appropriate IAM role must be specified either as a default for the workflow type or through this field.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

- runId => (string)

  The runId of a workflow execution. This ID is generated by the service and can be used to uniquely identify the workflow execution within a domain.

# `public `Guzzle\Service\Resource\Model``
`terminateWorkflowExecution( array $args = array() )`

Executes 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.

If the identified workflow execution was in progress, it is terminated immediately. 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. 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. 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.

#### Examples

- Basic formatting example

      $result = $client->terminateWorkflowExecution(array(
          // domain is required
          'domain' => 'string',
          // workflowId is required
          'workflowId' => 'string',
          'runId' => 'string',
          'reason' => 'string',
          'details' => 'string',
          'childPolicy' => 'string',
      ));

#### Parameters

$args
  `array`
  $arg Associative array containing the following keys (required keys are bold):
  - domain => (string)

    The domain of the workflow execution to terminate.

  - workflowId => (string)

    The workflowId of the workflow execution to terminate.

  - runId => (string)

    The runId of the workflow execution to terminate.

  - reason => (string)

    Optional. A descriptive reason for terminating the workflow execution.

  - details => (string)

    Optional. Details for terminating the workflow execution.

  - childPolicy => (string: TERMINATE | REQUEST_CANCEL | ABANDON )

    If set, specifies the policy to use for the child workflow executions of the workflow execution being terminated. This policy overrides the child policy specified for the workflow execution at registration time or when starting the execution.

    The supported child policies are:

    - TERMINATE: the child executions will be terminated.
    - REQUEST_CANCEL: a request to cancel will be attempted for each child execution by recording a WorkflowExecutionCancelRequested event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.
    - ABANDON: no action will be taken. The child executions will continue to run.
    A child policy for this workflow execution must be specified either as a default for the workflow type or through this parameter. If neither this parameter is set nor a default child policy was specified at registration time then a fault will be returned.

#### Returns

``Guzzle\Service\Resource\Model``
Returns a response Model object

# `public `Guzzle\Service\Resource\ResourceIteratorInterface``
`getGetWorkflowExecutionHistoryIterator( array $args = array() )`

The input array uses the parameters of the GetWorkflowExecutionHistory operation

#### Parameters

$args
  `array`
  $args

#### Returns

``Guzzle\Service\Resource\ResourceIteratorInterface``
# `public `Guzzle\Service\Resource\ResourceIteratorInterface``
`getListActivityTypesIterator( array $args = array() )`

The input array uses the parameters of the ListActivityTypes operation

#### Parameters

$args
  `array`
  $args

#### Returns

``Guzzle\Service\Resource\ResourceIteratorInterface``
# `public `Guzzle\Service\Resource\ResourceIteratorInterface``
`getListClosedWorkflowExecutionsIterator( array $args = array() )`

The input array uses the parameters of the ListClosedWorkflowExecutions operation

#### Parameters

$args
  `array`
  $args

#### Returns

``Guzzle\Service\Resource\ResourceIteratorInterface``
# `public `Guzzle\Service\Resource\ResourceIteratorInterface``
`getListDomainsIterator( array $args = array() )`

The input array uses the parameters of the ListDomains operation

#### Parameters

$args
  `array`
  $args

#### Returns

``Guzzle\Service\Resource\ResourceIteratorInterface``
# `public `Guzzle\Service\Resource\ResourceIteratorInterface``
`getListOpenWorkflowExecutionsIterator( array $args = array() )`

The input array uses the parameters of the ListOpenWorkflowExecutions operation

#### Parameters

$args
  `array`
  $args

#### Returns

``Guzzle\Service\Resource\ResourceIteratorInterface``
# `public `Guzzle\Service\Resource\ResourceIteratorInterface``
`getListWorkflowTypesIterator( array $args = array() )`

The input array uses the parameters of the ListWorkflowTypes operation

#### Parameters

$args
  `array`
  $args

#### Returns

``Guzzle\Service\Resource\ResourceIteratorInterface``
# `public `Guzzle\Service\Resource\ResourceIteratorInterface``
`getPollForDecisionTaskIterator( array $args = array() )`

The input array uses the parameters of the PollForDecisionTask operation

#### Parameters

$args
  `array`
  $args

#### Returns

``Guzzle\Service\Resource\ResourceIteratorInterface``

### Methods inherited from Aws\Common\Client\AbstractClient

`__call()`, `__construct()`, `createRequest()`, `getAllEvents()`, `getApiVersion()`, `getCredentials()`, `getRegion()`, `getRegions()`, `getSignature()`, `getWaiter()`, `getWaiterFactory()`, `send()`, `setCredentials()`, `setRegion()`, `setWaiterFactory()`, `waitUntil()`

### Methods inherited from Guzzle\Service\Client

`execute()`, `executeMultiple()`, `getCommand()`, `getCommandFactory()`, `getDescription()`, `getInflector()`, `getIterator()`, `getResourceIteratorFactory()`, `prepareCommand()`, `setCommandFactory()`, `setDescription()`, `setInflector()`, `setResourceIteratorFactory()`

### Methods inherited from Guzzle\Http\Client

`delete()`, `expandTemplate()`, `extractPharCacert()`, `get()`, `getBaseUrl()`, `getConfig()`, `getCurlMulti()`, `getDefaultOption()`, `getDefaultUserAgent()`, `getUriTemplate()`, `head()`, `initSsl()`, `options()`, `patch()`, `post()`, `prepareRequest()`, `put()`, `sendMultiple()`, `setBaseUrl()`, `setConfig()`, `setCurlMulti()`, `setDefaultOption()`, `setRequestFactory()`, `setSslVerification()`, `setUriTemplate()`, `setUserAgent()`

### Methods inherited from Guzzle\Common\AbstractHasDispatcher

`addSubscriber()`, `dispatch()`, `getEventDispatcher()`, `setEventDispatcher()`

### Magic methods summary

## Constants summary

`string` | `LATEST_API_VERSION` | `'2012-01-25'` | #

### Constants inherited from Guzzle\Service\Client

`COMMAND_PARAMS`

### Constants inherited from Guzzle\Http\Client

`CURL_OPTIONS`, `DEFAULT_SELECT_TIMEOUT`, `DISABLE_REDIRECTS`, `MAX_HANDLES`, `REQUEST_OPTIONS`, `SSL_CERT_AUTHORITY`

### Constants inherited from Guzzle\Http\ClientInterface

`CREATE_REQUEST`, `HTTP_DATE`

## Properties summary

### Properties inherited from Aws\Common\Client\AbstractClient

`$aggregator`, `$credentials`, `$signature`, `$waiterFactory`

### Properties inherited from Guzzle\Service\Client

`$commandFactory`, `$inflector`, `$resourceIteratorFactory`, `$serviceDescription`

### Properties inherited from Guzzle\Http\Client

`$defaultHeaders`, `$requestFactory`, `$userAgent`

### Properties inherited from Guzzle\Common\AbstractHasDispatcher

`$eventDispatcher`