Try it now and let us know what you think. Switch to the new look >>
You can return to the original look by selecting English in the language selector above.
Actions, Resources, and Condition Keys for Amazon Simple Workflow Service
Amazon Simple Workflow Service (service prefix: swf
) provides the following service-specific resources, actions, and condition context
keys for use in IAM permission policies.
References:
-
Learn how to configure this service.
-
View a list of the API operations available for this service.
-
Learn how to secure this service and its resources by using IAM permission policies.
Topics
Actions Defined by Amazon Simple Workflow Service
You can specify the following actions in the Action
element of an IAM policy statement. Use policies to grant permissions to perform
an operation in AWS. When you use an action in a policy, you usually allow or
deny access to the API operation or CLI command with the same name. However,
in some cases, a single action controls access to more than one operation. Alternatively,
some operations require several different actions.
The Resource column indicates whether each action supports resource-level permissions. If
there is no value for this column, you must specify all resources ("*") in the
Resource
element of your policy statement. If the column includes a resource type, then
you can specify an ARN of that type in a statement with that action. Required
resources are indicated in the table with an asterisk (*). If you specify a resource-level
permission ARN in a statement using this action, then it must be of this type.
Some actions support multiple resource types. If the resource type is optional (not
indicated as required), then you can choose to use one but not the other.
For details about the columns in the following table, see The Actions Table.
Actions | Description | Access Level | Resource Types (*required) | Condition Keys | Dependent Actions |
---|---|---|---|---|---|
CancelTimer | Description for CancelTimer | Write | |||
CancelWorkflowExecution | Description for CancelWorkflowExecution | Write | |||
CompleteWorkflowExecution | Description for CompleteWorkflowExecution | Write | |||
ContinueAsNewWorkflowExecution | Description for ContinueAsNewWorkflowExecution | Write | |||
CountClosedWorkflowExecutions | Returns the number of closed workflow executions within the given domain that meet the specified filtering criteria. | Read | |||
CountOpenWorkflowExecutions | Returns the number of open workflow executions within the given domain that meet the specified filtering criteria. | Read | |||
CountPendingActivityTasks | Returns the estimated number of activity tasks in the specified task list. | Read | |||
CountPendingDecisionTasks | Returns the estimated number of decision tasks in the specified task list. | Read | |||
DeprecateActivityType | Deprecates the specified activity type. | Write | |||
DeprecateDomain | Deprecates the specified domain. | Write | |||
DeprecateWorkflowType | Deprecates the specified workflow type. | Write | |||
DescribeActivityType | Returns information about the specified activity type. | Read | |||
DescribeDomain | Returns information about the specified domain, including description and status. | Read | |||
DescribeWorkflowExecution | Returns information about the specified workflow execution including its type and some statistics. | Read | |||
DescribeWorkflowType | Returns information about the specified workflow type. | Read | |||
FailWorkflowExecution | Description for FailWorkflowExecution | Write | |||
GetWorkflowExecutionHistory | Returns the history of the specified workflow execution. | Read | |||
ListActivityTypes | Returns information about all activities registered in the specified domain that match the specified name and registration status. | List | |||
ListClosedWorkflowExecutions | Returns a list of closed workflow executions in the specified domain that meet the filtering criteria. | List | |||
ListDomains | Returns the list of domains registered in the account. | List | |||
ListOpenWorkflowExecutions | Returns a list of open workflow executions in the specified domain that meet the filtering criteria. | List | |||
ListTagsForResource | This action lists tags for an AWS SWF resource. | List | |||
ListWorkflowTypes | Returns information about workflow types in the specified domain. | List | |||
PollForActivityTask | Used by workers to get an ActivityTask from the specified activity taskList. | Write | |||
PollForDecisionTask | Used by deciders to get a DecisionTask from the specified decision taskList. | Write | |||
RecordActivityTaskHeartbeat | Used by activity workers to report to the service that the ActivityTask represented by the specified taskToken is still making progress. | Write | |||
RecordMarker | Description for RecordMarker | Write | |||
RegisterActivityType | Registers a new activity type along with its configuration settings in the specified domain. | Write | |||
RegisterDomain | Registers a new domain. | Write | |||
RegisterWorkflowType | Registers a new workflow type and its configuration settings in the specified domain. | Write | |||
RequestCancelActivityTask | Description for RequestCancelActivityTask | Write | |||
RequestCancelExternalWorkflowExecution | Description for RequestCancelExternalWorkflowExecution | Write | |||
RequestCancelWorkflowExecution | Records a WorkflowExecutionCancelRequested event in the currently running workflow execution identified by the given domain, workflowId, and runId. | Write | |||
RespondActivityTaskCanceled | Used by workers to tell the service that the ActivityTask identified by the taskToken was successfully canceled. | Write | |||
RespondActivityTaskCompleted | Used by workers to tell the service that the ActivityTask identified by the taskToken completed successfully with a result (if provided). | Write | |||
RespondActivityTaskFailed | Used by workers to tell the service that the ActivityTask identified by the taskToken has failed with reason (if specified). | Write | |||
RespondDecisionTaskCompleted | Used by deciders to tell the service that the DecisionTask identified by the taskToken has successfully completed. | Write | |||
ScheduleActivityTask | Description for ScheduleActivityTask | Write | |||
SignalExternalWorkflowExecution | Description for SignalExternalWorkflowExecution | Write | |||
SignalWorkflowExecution | 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. | Write | |||
StartChildWorkflowExecution | Description for StartChildWorkflowExecution | Write | |||
StartTimer | Description for StartTimer | Write | |||
StartWorkflowExecution | Starts an execution of the workflow type in the specified domain using the provided workflowId and input data. | Write | |||
TagResource | This action tags an AWS SWF resource. | Tagging | |||
TerminateWorkflowExecution | Records a WorkflowExecutionTerminated event and forces closure of the workflow execution identified by the given domain, runId, and workflowId. | Write | |||
UntagResource | This action removes a tag from an AWS SWF resource. | Tagging | |||
Resources Defined by Amazon Simple Workflow Service
The following resource types are defined by this service and can be used in the
Resource
element of IAM permission policy statements. Each action in the Actions table identifies the resource types that can be specified with that action. A resource
type can also define which condition keys you can include in a policy. These
keys are displayed in the last column of the table. For details about the columns
in the following table, see The Resource Types Table.
Resource Types | ARN | Condition Keys |
---|---|---|
domain |
arn:${Partition}:swf::${Account}:domain/${DomainName}
|
Condition Keys for Amazon Simple Workflow Service
Amazon Simple Workflow Service defines the following condition keys that can be used
in the Condition
element of an IAM policy. You can use these keys to further refine the conditions
under which the policy statement applies. For details about the columns in the
following table, see The Condition Keys Table.
To view the global condition keys that are available to all services, see Available Global Condition Keys in the IAM Policy Reference.
Condition Keys | Description | Type |
---|---|---|
aws:RequestTag/${TagKey} | Tag for request. | String |
aws:ResourceTag/${TagKey} | Tag for resource. | String |
aws:TagKeys | Tag for key. | String |
swf:activityType.name | Constrains the policy statement to only an activity type of the specified name. | String |
swf:activityType.version | Contstrains the policy statement to only an activity type of the specified version. | String |
swf:defaultTaskList.name | Constrains the policy statement to only requests that specify a matching defaultTaskList name. | String |
swf:name | Constrains the policy statement to only activities or workflows with the specified name. | String |
swf:tagFilter.tag | Constrains the policy statement to only requests that specify a matching tagFilter.tag value. | String |
swf:tagList.member.0 | Constrains the policy statement to only requests that contain the specified tag. | String |
swf:tagList.member.1 | Constrains the policy statement to only requests that contain the specified tag. | String |
swf:tagList.member.2 | Constrains the policy statement to only requests that contain the specified tag. | String |
swf:tagList.member.3 | Constrains the policy statement to only requests that contain the specified tag. | String |
swf:tagList.member.4 | Constrains the policy statement to only requests that contain the specified tag. | String |
swf:taskList.name | Constrains the policy statement to only requests that specify a tasklist with the specified name. | String |
swf:typeFilter.name | Constrains the policy statement to only requests that specify a type filter with the specified name. | String |
swf:typeFilter.version | Constrains the policy statement to only requests that specify a type filter with the specified version. | String |
swf:version | Constrains the policy statement to only activities or workflows with the specified version. | String |
swf:workflowType.name | Constrains the policy statement to only a workflow of the specified type. | String |
swf:workflowType.name | Constrains the policy statement to only requests that specify a workflow type of the specified name. | String |
swf:workflowType.version | Constrains the policy statement to only requests that specify a workflow type of the specified version. | String |