openapi: 3.0.0 info: version: '2012-01-25' x-release: v4 title: 'Amazon Simple Workflow Service #X Amz Target=SimpleWorkflowService.CountClosedWorkflowExecutions #X Amz Target=SimpleWorkflowService.CountClosedWorkflowExecutions #X Amz Target=SimpleWorkflowService.RespondDecisionTaskCompleted API' description: Amazon Simple Workflow Service

The Amazon Simple Workflow Service (Amazon SWF) makes it easy to build applications that use Amazon's cloud to coordinate work across distributed components. In Amazon SWF, a task represents a logical unit of work that is performed by a component of your workflow. Coordinating tasks in a workflow involves managing intertask dependencies, scheduling, and concurrency in accordance with the logical flow of the application.

Amazon SWF gives you full control over implementing tasks and coordinating them without worrying about underlying complexities such as tracking their progress and maintaining their state.

This documentation serves as reference only. For a broader overview of the Amazon SWF programming model, see the Amazon SWF Developer Guide .

x-logo: url: https://twitter.com/awscloud/profile_image?size=original backgroundColor: '#FFFFFF' termsOfService: https://aws.amazon.com/service-terms/ contact: name: Mike Ralphson email: mike.ralphson@gmail.com url: https://github.com/mermade/aws2openapi x-twitter: PermittedSoc license: name: Apache 2.0 License url: http://www.apache.org/licenses/ x-providerName: amazonaws.com x-serviceName: swf x-origin: - contentType: application/json url: https://raw.githubusercontent.com/aws/aws-sdk-js/master/apis/swf-2012-01-25.normal.json converter: url: https://github.com/mermade/aws2openapi version: 1.0.0 x-apisguru-driver: external x-apiClientRegistration: url: https://portal.aws.amazon.com/gp/aws/developer/registration/index.html?nc2=h_ct x-apisguru-categories: - cloud x-preferred: true servers: - url: http://swf.{region}.amazonaws.com variables: region: description: The AWS region enum: - us-east-1 - us-east-2 - us-west-1 - us-west-2 - us-gov-west-1 - us-gov-east-1 - ca-central-1 - eu-north-1 - eu-west-1 - eu-west-2 - eu-west-3 - eu-central-1 - eu-south-1 - af-south-1 - ap-northeast-1 - ap-northeast-2 - ap-northeast-3 - ap-southeast-1 - ap-southeast-2 - ap-east-1 - ap-south-1 - sa-east-1 - me-south-1 default: us-east-1 description: The Amazon SWF multi-region endpoint - url: https://swf.{region}.amazonaws.com variables: region: description: The AWS region enum: - us-east-1 - us-east-2 - us-west-1 - us-west-2 - us-gov-west-1 - us-gov-east-1 - ca-central-1 - eu-north-1 - eu-west-1 - eu-west-2 - eu-west-3 - eu-central-1 - eu-south-1 - af-south-1 - ap-northeast-1 - ap-northeast-2 - ap-northeast-3 - ap-southeast-1 - ap-southeast-2 - ap-east-1 - ap-south-1 - sa-east-1 - me-south-1 default: us-east-1 description: The Amazon SWF multi-region endpoint - url: http://swf.{region}.amazonaws.com.cn variables: region: description: The AWS region enum: - cn-north-1 - cn-northwest-1 default: cn-north-1 description: The Amazon SWF endpoint for China (Beijing) and China (Ningxia) - url: https://swf.{region}.amazonaws.com.cn variables: region: description: The AWS region enum: - cn-north-1 - cn-northwest-1 default: cn-north-1 description: The Amazon SWF endpoint for China (Beijing) and China (Ningxia) security: - hmac: [] tags: - name: '#X Amz Target=SimpleWorkflowService.RespondDecisionTaskCompleted' paths: /#X-Amz-Target=SimpleWorkflowService.RespondDecisionTaskCompleted: parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' post: operationId: RespondDecisionTaskCompleted description:

Used by deciders to tell the service that the DecisionTask identified by the taskToken has successfully completed. The decisions argument specifies the list of decisions made while processing the task.

A DecisionTaskCompleted event is added to the workflow history. The executionContext specified is attached to the event in the workflow execution history.

Access Control

If an IAM policy grants permission to use RespondDecisionTaskCompleted, it can express permissions for the list of decisions in the decisions parameter. Each of the decisions has one or more parameters, much like a regular API call. To allow for policies to be as readable as possible, you can express permissions on decisions as if they were actual API calls, including applying conditions to some parameters. For more information, see Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer Guide.

responses: '200': description: Success '480': description: UnknownResourceFault content: application/json: schema: $ref: '#/components/schemas/UnknownResourceFault' '481': description: OperationNotPermittedFault content: application/json: schema: $ref: '#/components/schemas/OperationNotPermittedFault' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/RespondDecisionTaskCompletedInput' parameters: - name: X-Amz-Target in: header required: true schema: type: string enum: - SimpleWorkflowService.RespondDecisionTaskCompleted example: SimpleWorkflowService.RespondDecisionTaskCompleted summary: Amazon SWF Respond Decision Task Completed x-microcks-operation: delay: 0 dispatcher: FALLBACK tags: - '#X Amz Target=SimpleWorkflowService.RespondDecisionTaskCompleted' components: schemas: RequestCancelExternalWorkflowExecutionDecisionAttributes: type: object required: - workflowId properties: workflowId: allOf: - $ref: '#/components/schemas/WorkflowId' - description: ' The workflowId of the external workflow execution to cancel.' runId: allOf: - $ref: '#/components/schemas/WorkflowRunIdOptional' - description: The runId of the external workflow execution to cancel. control: allOf: - $ref: '#/components/schemas/Data' - description: The data attached to the event that can be used by the decider in subsequent workflow tasks. description:

Provides the details of the RequestCancelExternalWorkflowExecution decision.

Access Control

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

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

RespondDecisionTaskCompletedInput: type: object required: - taskToken title: RespondDecisionTaskCompletedInput properties: taskToken: allOf: - $ref: '#/components/schemas/TaskToken' - description:

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: allOf: - $ref: '#/components/schemas/DecisionList' - description: The list of decisions (possibly empty) made by the decider while processing this decision task. See the docs for the Decision structure for details. executionContext: allOf: - $ref: '#/components/schemas/Data' - description: User defined context to add to workflow execution. description: Input data for a TaskCompleted response to a decision task. UnknownResourceFault: {} WorkflowId: type: string minLength: 1 maxLength: 256 MarkerName: type: string minLength: 1 maxLength: 256 Tag: type: string minLength: 0 maxLength: 256 ActivityType: type: object required: - name - version properties: name: allOf: - $ref: '#/components/schemas/Name' - description:

The name of this activity.

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

version: allOf: - $ref: '#/components/schemas/Version' - description:

The version of this activity.

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

description: Represents an activity type. TaskToken: type: string minLength: 1 maxLength: 1024 ChildPolicy: type: string enum: - TERMINATE - REQUEST_CANCEL - ABANDON FunctionName: type: string minLength: 1 maxLength: 64 ScheduleActivityTaskDecisionAttributes: type: object required: - activityType - activityId properties: activityType: allOf: - $ref: '#/components/schemas/ActivityType' - description: ' The type of the activity task to schedule.' activityId: allOf: - $ref: '#/components/schemas/ActivityId' - description:

The activityId of the activity task.

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

control: allOf: - $ref: '#/components/schemas/Data' - description: Data attached to the event that can be used by the decider in subsequent workflow tasks. This data isn't sent to the activity. input: allOf: - $ref: '#/components/schemas/Data' - description: The input provided to the activity task. scheduleToCloseTimeout: allOf: - $ref: '#/components/schemas/DurationInSecondsOptional' - description:

The maximum duration for this activity task.

The duration is specified in seconds, an integer greater than or equal to 0. You can use NONE to specify unlimited duration.

A schedule-to-close timeout for this activity task must be specified either as a default for the activity type or through this field. If neither this field is set nor a default schedule-to-close timeout was specified at registration time then a fault is returned.

taskList: allOf: - $ref: '#/components/schemas/TaskList' - description:

If set, specifies the name of the task list in which to schedule the activity task. If not specified, the defaultTaskList registered with the activity type is used.

A task list for this activity task must be specified either as a default for the activity type or through this field. If neither this field is set nor a default task list was specified at registration time then a fault is returned.

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

taskPriority: allOf: - $ref: '#/components/schemas/TaskPriority' - description:

If set, specifies the priority with which the activity task is to be assigned to a worker. This overrides the defaultTaskPriority specified when registering the activity type using RegisterActivityType. Valid values are integers that range from Java's Integer.MIN_VALUE (-2147483648) to Integer.MAX_VALUE (2147483647). Higher numbers indicate higher priority.

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

scheduleToStartTimeout: allOf: - $ref: '#/components/schemas/DurationInSecondsOptional' - description:

If set, specifies the maximum duration the activity task can wait to be assigned to a worker. This overrides the default schedule-to-start timeout specified when registering the activity type using RegisterActivityType.

The duration is specified in seconds, an integer greater than or equal to 0. You can use NONE to specify unlimited duration.

A schedule-to-start timeout for this activity task must be specified either as a default for the activity type or through this field. If neither this field is set nor a default schedule-to-start timeout was specified at registration time then a fault is returned.

startToCloseTimeout: allOf: - $ref: '#/components/schemas/DurationInSecondsOptional' - description:

If set, specifies the maximum duration a worker may take to process this activity task. This overrides the default start-to-close timeout specified when registering the activity type using RegisterActivityType.

The duration is specified in seconds, an integer greater than or equal to 0. You can use NONE to specify unlimited duration.

A start-to-close timeout for this activity task must be specified either as a default for the activity type or through this field. If neither this field is set nor a default start-to-close timeout was specified at registration time then a fault is returned.

heartbeatTimeout: allOf: - $ref: '#/components/schemas/DurationInSecondsOptional' - description:

If set, specifies the maximum time before which a worker processing a task of this type must report progress by calling RecordActivityTaskHeartbeat. If the timeout is exceeded, the activity task is automatically timed out. If the worker subsequently attempts to record a heartbeat or returns a result, it is ignored. This overrides the default heartbeat timeout specified when registering the activity type using RegisterActivityType.

The duration is specified in seconds, an integer greater than or equal to 0. You can use NONE to specify unlimited duration.

description:

Provides the details of the ScheduleActivityTask decision.

Access Control

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

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

CancelTimerDecisionAttributes: type: object required: - timerId properties: timerId: allOf: - $ref: '#/components/schemas/TimerId' - description: ' The unique ID of the timer to cancel.' description:

Provides the details of the CancelTimer decision.

Access Control

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

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

OperationNotPermittedFault: {} TagList: type: array items: $ref: '#/components/schemas/Tag' maxItems: 5 WorkflowRunIdOptional: type: string maxLength: 64 ActivityId: type: string minLength: 1 maxLength: 256 Arn: type: string minLength: 1 maxLength: 1600 CompleteWorkflowExecutionDecisionAttributes: type: object properties: result: allOf: - $ref: '#/components/schemas/Data' - description: The result of the workflow execution. The form of the result is implementation defined. description:

Provides the details of the CompleteWorkflowExecution decision.

Access Control

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

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

SignalExternalWorkflowExecutionDecisionAttributes: type: object required: - workflowId - signalName properties: workflowId: allOf: - $ref: '#/components/schemas/WorkflowId' - description: ' The workflowId of the workflow execution to be signaled.' runId: allOf: - $ref: '#/components/schemas/WorkflowRunIdOptional' - description: The runId of the workflow execution to be signaled. signalName: allOf: - $ref: '#/components/schemas/SignalName' - description: ' The name of the signal.The target workflow execution uses the signal name and input to process the signal.' input: allOf: - $ref: '#/components/schemas/Data' - description: ' The input data to be provided with the signal. The target workflow execution uses the signal name and input data to process the signal.' control: allOf: - $ref: '#/components/schemas/Data' - description: The data attached to the event that can be used by the decider in subsequent decision tasks. description:

Provides the details of the SignalExternalWorkflowExecution decision.

Access Control

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

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

Decision: type: object required: - decisionType properties: decisionType: allOf: - $ref: '#/components/schemas/DecisionType' - description: Specifies the type of the decision. scheduleActivityTaskDecisionAttributes: allOf: - $ref: '#/components/schemas/ScheduleActivityTaskDecisionAttributes' - description: Provides the details of the ScheduleActivityTask decision. It isn't set for other decision types. requestCancelActivityTaskDecisionAttributes: allOf: - $ref: '#/components/schemas/RequestCancelActivityTaskDecisionAttributes' - description: Provides the details of the RequestCancelActivityTask decision. It isn't set for other decision types. completeWorkflowExecutionDecisionAttributes: allOf: - $ref: '#/components/schemas/CompleteWorkflowExecutionDecisionAttributes' - description: Provides the details of the CompleteWorkflowExecution decision. It isn't set for other decision types. failWorkflowExecutionDecisionAttributes: allOf: - $ref: '#/components/schemas/FailWorkflowExecutionDecisionAttributes' - description: Provides the details of the FailWorkflowExecution decision. It isn't set for other decision types. cancelWorkflowExecutionDecisionAttributes: allOf: - $ref: '#/components/schemas/CancelWorkflowExecutionDecisionAttributes' - description: Provides the details of the CancelWorkflowExecution decision. It isn't set for other decision types. continueAsNewWorkflowExecutionDecisionAttributes: allOf: - $ref: '#/components/schemas/ContinueAsNewWorkflowExecutionDecisionAttributes' - description: Provides the details of the ContinueAsNewWorkflowExecution decision. It isn't set for other decision types. recordMarkerDecisionAttributes: allOf: - $ref: '#/components/schemas/RecordMarkerDecisionAttributes' - description: Provides the details of the RecordMarker decision. It isn't set for other decision types. startTimerDecisionAttributes: allOf: - $ref: '#/components/schemas/StartTimerDecisionAttributes' - description: Provides the details of the StartTimer decision. It isn't set for other decision types. cancelTimerDecisionAttributes: allOf: - $ref: '#/components/schemas/CancelTimerDecisionAttributes' - description: Provides the details of the CancelTimer decision. It isn't set for other decision types. signalExternalWorkflowExecutionDecisionAttributes: allOf: - $ref: '#/components/schemas/SignalExternalWorkflowExecutionDecisionAttributes' - description: Provides the details of the SignalExternalWorkflowExecution decision. It isn't set for other decision types. requestCancelExternalWorkflowExecutionDecisionAttributes: allOf: - $ref: '#/components/schemas/RequestCancelExternalWorkflowExecutionDecisionAttributes' - description: Provides the details of the RequestCancelExternalWorkflowExecution decision. It isn't set for other decision types. startChildWorkflowExecutionDecisionAttributes: allOf: - $ref: '#/components/schemas/StartChildWorkflowExecutionDecisionAttributes' - description: Provides the details of the StartChildWorkflowExecution decision. It isn't set for other decision types. scheduleLambdaFunctionDecisionAttributes: allOf: - $ref: '#/components/schemas/ScheduleLambdaFunctionDecisionAttributes' - description: Provides the details of the ScheduleLambdaFunction decision. It isn't set for other decision types. description: '

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

Access Control

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

Decision Failure

Decisions can fail for several reasons

One of the following events might be added to the history to indicate an error. The event attribute''s cause parameter indicates the cause. If cause is set to OPERATION_NOT_PERMITTED, the decision failed because it lacked sufficient permissions. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer Guide.

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

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

How to Code a Decision

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

' TaskList: type: object required: - name properties: name: allOf: - $ref: '#/components/schemas/Name' - description: The name of the task list. description: Represents a task list. ScheduleLambdaFunctionDecisionAttributes: type: object required: - id - name properties: id: allOf: - $ref: '#/components/schemas/FunctionId' - description: A string that identifies the Lambda function execution in the event history. name: allOf: - $ref: '#/components/schemas/FunctionName' - description: The name, or ARN, of the Lambda function to schedule. control: allOf: - $ref: '#/components/schemas/Data' - description: The data attached to the event that the decider can use in subsequent workflow tasks. This data isn't sent to the Lambda task. input: allOf: - $ref: '#/components/schemas/FunctionInput' - description: The optional input data to be supplied to the Lambda function. startToCloseTimeout: allOf: - $ref: '#/components/schemas/DurationInSecondsOptional' - description:

The timeout value, in seconds, after which the Lambda function is considered to be failed once it has started. This can be any integer from 1-900 (1s-15m).

If no value is supplied, then a default value of 900s is assumed.

description: Decision attributes specified in scheduleLambdaFunctionDecisionAttributes within the list of decisions decisions passed to RespondDecisionTaskCompleted. FailWorkflowExecutionDecisionAttributes: type: object properties: reason: allOf: - $ref: '#/components/schemas/FailureReason' - description: A descriptive reason for the failure that may help in diagnostics. details: allOf: - $ref: '#/components/schemas/Data' - description: ' Details of the failure.' description:

Provides the details of the FailWorkflowExecution decision.

Access Control

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

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

RecordMarkerDecisionAttributes: type: object required: - markerName properties: markerName: allOf: - $ref: '#/components/schemas/MarkerName' - description: ' The name of the marker.' details: allOf: - $ref: '#/components/schemas/Data' - description: ' The details of the marker.' description:

Provides the details of the RecordMarker decision.

Access Control

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

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

TaskPriority: type: string DecisionList: type: array items: $ref: '#/components/schemas/Decision' DecisionType: type: string enum: - ScheduleActivityTask - RequestCancelActivityTask - CompleteWorkflowExecution - FailWorkflowExecution - CancelWorkflowExecution - ContinueAsNewWorkflowExecution - RecordMarker - StartTimer - CancelTimer - SignalExternalWorkflowExecution - RequestCancelExternalWorkflowExecution - StartChildWorkflowExecution - ScheduleLambdaFunction FunctionId: type: string minLength: 1 maxLength: 256 SignalName: type: string minLength: 1 maxLength: 256 FailureReason: type: string maxLength: 256 Name: type: string minLength: 1 maxLength: 256 CancelWorkflowExecutionDecisionAttributes: type: object properties: details: allOf: - $ref: '#/components/schemas/Data' - description: ' Details of the cancellation.' description:

Provides the details of the CancelWorkflowExecution decision.

Access Control

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

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

StartChildWorkflowExecutionDecisionAttributes: type: object required: - workflowType - workflowId properties: workflowType: allOf: - $ref: '#/components/schemas/WorkflowType' - description: ' The type of the workflow execution to be started.' workflowId: allOf: - $ref: '#/components/schemas/WorkflowId' - description:

The workflowId of the workflow execution.

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

control: allOf: - $ref: '#/components/schemas/Data' - description: The data attached to the event that can be used by the decider in subsequent workflow tasks. This data isn't sent to the child workflow execution. input: allOf: - $ref: '#/components/schemas/Data' - description: The input to be provided to the workflow execution. executionStartToCloseTimeout: allOf: - $ref: '#/components/schemas/DurationInSecondsOptional' - description:

The total duration for this workflow execution. This overrides the defaultExecutionStartToCloseTimeout specified when registering the workflow type.

The duration is specified in seconds, an integer greater than or equal to 0. You can use NONE to specify unlimited duration.

An execution start-to-close timeout for this workflow execution must be specified either as a default for the workflow type or through this parameter. If neither this parameter is set nor a default execution start-to-close timeout was specified at registration time then a fault is returned.

taskList: allOf: - $ref: '#/components/schemas/TaskList' - description:

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

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

taskPriority: allOf: - $ref: '#/components/schemas/TaskPriority' - description:

A task priority that, if set, specifies the priority for a decision task of this workflow execution. This overrides the defaultTaskPriority specified when registering the workflow type. Valid values are integers that range from Java's Integer.MIN_VALUE (-2147483648) to Integer.MAX_VALUE (2147483647). Higher numbers indicate higher priority.

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

taskStartToCloseTimeout: allOf: - $ref: '#/components/schemas/DurationInSecondsOptional' - description:

Specifies the maximum duration of decision tasks for this workflow execution. This parameter overrides the defaultTaskStartToCloseTimout specified when registering the workflow type using RegisterWorkflowType.

The duration is specified in seconds, an integer greater than or equal to 0. You can use NONE to specify unlimited duration.

A task start-to-close timeout for this workflow execution must be specified either as a default for the workflow type or through this parameter. If neither this parameter is set nor a default task start-to-close timeout was specified at registration time then a fault is returned.

childPolicy: allOf: - $ref: '#/components/schemas/ChildPolicy' - description:

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:

A child policy for this workflow execution must be specified either as a default for the workflow type or through this parameter. If neither this parameter is set nor a default child policy was specified at registration time then a fault is returned.

tagList: allOf: - $ref: '#/components/schemas/TagList' - description: 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: allOf: - $ref: '#/components/schemas/Arn' - description: The IAM role attached to the child workflow execution. description:

Provides the details of the StartChildWorkflowExecution decision.

Access Control

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

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

ContinueAsNewWorkflowExecutionDecisionAttributes: type: object properties: input: allOf: - $ref: '#/components/schemas/Data' - description: The input provided to the new workflow execution. executionStartToCloseTimeout: allOf: - $ref: '#/components/schemas/DurationInSecondsOptional' - description:

If set, specifies the total duration for this workflow execution. This overrides the defaultExecutionStartToCloseTimeout specified when registering the workflow type.

The duration is specified in seconds, an integer greater than or equal to 0. You can use NONE to specify unlimited duration.

An execution start-to-close timeout for this workflow execution must be specified either as a default for the workflow type or through this field. If neither this field is set nor a default execution start-to-close timeout was specified at registration time then a fault is returned.

taskList: allOf: - $ref: '#/components/schemas/TaskList' - description: The task list to use for the decisions of the new (continued) workflow execution. taskPriority: allOf: - $ref: '#/components/schemas/TaskPriority' - description:

The task priority that, if set, specifies the priority for the decision tasks for this workflow execution. This overrides the defaultTaskPriority specified when registering the workflow type. Valid values are integers that range from Java's Integer.MIN_VALUE (-2147483648) to Integer.MAX_VALUE (2147483647). Higher numbers indicate higher priority.

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

taskStartToCloseTimeout: allOf: - $ref: '#/components/schemas/DurationInSecondsOptional' - description:

Specifies the maximum duration of decision tasks for the new workflow execution. This parameter overrides the defaultTaskStartToCloseTimout specified when registering the workflow type using RegisterWorkflowType.

The duration is specified in seconds, an integer greater than or equal to 0. You can use NONE to specify unlimited duration.

A task start-to-close timeout for the new workflow execution must be specified either as a default for the workflow type or through this parameter. If neither this parameter is set nor a default task start-to-close timeout was specified at registration time then a fault is returned.

childPolicy: allOf: - $ref: '#/components/schemas/ChildPolicy' - description:

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:

A child policy for this workflow execution must be specified either as a default for the workflow type or through this parameter. If neither this parameter is set nor a default child policy was specified at registration time then a fault is returned.

tagList: allOf: - $ref: '#/components/schemas/TagList' - description: 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: allOf: - $ref: '#/components/schemas/Version' - description: The version of the workflow to start. lambdaRole: allOf: - $ref: '#/components/schemas/Arn' - description: The IAM role to attach to the new (continued) execution. description:

Provides the details of the ContinueAsNewWorkflowExecution decision.

Access Control

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

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

TimerId: type: string minLength: 1 maxLength: 256 Data: type: string maxLength: 32768 Version: type: string minLength: 1 maxLength: 64 RequestCancelActivityTaskDecisionAttributes: type: object required: - activityId properties: activityId: allOf: - $ref: '#/components/schemas/ActivityId' - description: The activityId of the activity task to be canceled. description:

Provides the details of the RequestCancelActivityTask decision.

Access Control

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

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

DurationInSecondsOptional: type: string maxLength: 8 WorkflowType: type: object required: - name - version properties: name: allOf: - $ref: '#/components/schemas/Name' - description:

The name of the workflow type.

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

version: allOf: - $ref: '#/components/schemas/Version' - description:

The version of the workflow type.

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

description: Represents a workflow type. FunctionInput: type: string minLength: 0 maxLength: 32768 StartTimerDecisionAttributes: type: object required: - timerId - startToFireTimeout properties: timerId: allOf: - $ref: '#/components/schemas/TimerId' - description:

The unique ID of the timer.

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

control: allOf: - $ref: '#/components/schemas/Data' - description: The data attached to the event that can be used by the decider in subsequent workflow tasks. startToFireTimeout: allOf: - $ref: '#/components/schemas/DurationInSeconds' - description:

The duration to wait before firing the timer.

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

description:

Provides the details of the StartTimer decision.

Access Control

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

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

DurationInSeconds: type: string minLength: 1 maxLength: 8 parameters: X-Amz-Credential: name: X-Amz-Credential in: header schema: type: string required: false X-Amz-Security-Token: name: X-Amz-Security-Token in: header schema: type: string required: false X-Amz-Date: name: X-Amz-Date in: header schema: type: string required: false X-Amz-Algorithm: name: X-Amz-Algorithm in: header schema: type: string required: false X-Amz-SignedHeaders: name: X-Amz-SignedHeaders in: header schema: type: string required: false X-Amz-Content-Sha256: name: X-Amz-Content-Sha256 in: header schema: type: string required: false X-Amz-Signature: name: X-Amz-Signature in: header schema: type: string required: false securitySchemes: hmac: type: apiKey name: Authorization in: header description: Amazon Signature authorization v4 x-amazon-apigateway-authtype: awsSigv4 externalDocs: description: Amazon Web Services documentation url: https://docs.aws.amazon.com/swf/ x-hasEquivalentPaths: true