redshift:CancelQuerySession

Write

redshift:CancelQuerySession is a Write access-level action in the redshift service. Grants permission to see queries in the Amazon Redshift console

Resource types

ARNs that redshift:CancelQuerySession can be scoped to in an IAM policy.

arn:${Partition}:redshift:${Region}:${Account}:cluster:${ClusterName}
cluster

Condition keys

Keys you can use in the Condition block of a policy that grants redshift:CancelQuerySession.

aws:ResourceTag/${TagKey} String

Filters access by actions based on tag-value associated with the resource

Example IAM policy

A minimal policy that allows redshift:CancelQuerySession. Replace "Resource": "*" with a specific ARN to follow least privilege.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowRedshiftCancelQuerySession",
      "Effect": "Allow",
      "Action": "redshift:CancelQuerySession",
      "Resource": "*"
    }
  ]
}

Related actions in redshift

View all redshift actions →