states:GetActivityTask is a Write access-level action in the states service. Grants permission to be used by workers to retrieve a task (with the specified activity ARN) which has been scheduled for execution by a running state machine
ARNs that states:GetActivityTask can be scoped to in an IAM policy.
Keys you can use in the Condition block of a policy that grants states:GetActivityTask.
Filters access by a tag key and value pair of a resource
A minimal policy that allows states:GetActivityTask. Replace "Resource": "*" with a specific ARN to follow least privilege.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowStatesGetActivityTask",
"Effect": "Allow",
"Action": "states:GetActivityTask",
"Resource": "*"
}
]
}