View a markdown version of this page

Actions, resources, and condition keys for Amazon Redshift Data API - Service Authorization Reference
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Actions, resources, and condition keys for Amazon Redshift Data API

Amazon Redshift Data API (service prefix: redshift-data) provides the following service-specific operations, resources, actions, and condition keys for use in IAM permission policies.

References:

API operations defined by Amazon Redshift Data API

The following table maps API operations to the IAM actions they authorize. Only condition keys that have static values for the given API and action are listed; for the full set of condition keys supported by each action, see the Actions table.

Operation IAM action Condition key Possible value(s) Access level

BatchExecuteStatement

redshift-data:BatchExecuteStatement

Write

CancelStatement

redshift-data:CancelStatement

Write

DescribeStatement

redshift-data:DescribeStatement

Read

DescribeTable

redshift-data:DescribeTable

Read

ExecuteStatement

redshift-data:ExecuteStatement

Write

GetStatementResult

redshift-data:GetStatementResult

Read

GetStatementResultV2

redshift-data:GetStatementResult

Read

ListDatabases

redshift-data:ListDatabases

Read

ListSchemas

redshift-data:ListSchemas

Read

ListStatements

redshift-data:ListStatements

List

ListTables

redshift-data:ListTables

List

Actions defined by Amazon Redshift Data API

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

Actions Description Resource types (*required) Condition keys Access level

BatchExecuteStatement

Grants permission to execute multiple queries under a single connection

cluster

aws:ResourceTag/${TagKey}

redshift-data:glue-catalog-arn

redshift-data:session-owner-iam-userid

Write

workgroup

aws:ResourceTag/${TagKey}

redshift-data:glue-catalog-arn

redshift-data:session-owner-iam-userid

CancelStatement

Grants permission to cancel a running query

redshift-data:statement-owner-iam-userid

Write

DescribeStatement

Grants permission to retrieve detailed information about a statement execution

redshift-data:statement-owner-iam-userid

Read

DescribeTable

Grants permission to retrieve metadata about a particular table

cluster*

aws:ResourceTag/${TagKey}

Read

workgroup*

aws:ResourceTag/${TagKey}

ExecuteStatement

Grants permission to execute a query

cluster

aws:ResourceTag/${TagKey}

redshift-data:glue-catalog-arn

redshift-data:session-owner-iam-userid

Write

workgroup

aws:ResourceTag/${TagKey}

redshift-data:glue-catalog-arn

redshift-data:session-owner-iam-userid

GetStagingBucketLocation

Grants permission to get staging bucket location for a given managed workgroup

managed-workgroup*

Read

GetStatementResult

Grants permission to fetch the result of a query

redshift-data:statement-owner-iam-userid

Read

ListDatabases

Grants permission to list databases for a given cluster

cluster*

aws:ResourceTag/${TagKey}

Read

workgroup*

aws:ResourceTag/${TagKey}

ListSchemas

Grants permission to list schemas for a given cluster

cluster*

aws:ResourceTag/${TagKey}

Read

workgroup*

aws:ResourceTag/${TagKey}

ListStatements

Grants permission to list queries for a given principal

redshift-data:statement-owner-iam-userid

List

ListTables

Grants permission to list tables for a given cluster

cluster*

aws:ResourceTag/${TagKey}

List

workgroup*

aws:ResourceTag/${TagKey}

Resource types defined by Amazon Redshift Data API

The following resource types are defined by this service and can be used in the Resource element of IAM permission policy statements.

Resource types ARN Condition keys

cluster

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

aws:ResourceTag/${TagKey}

managed-workgroup

arn:${Partition}:redshift-serverless:${Region}:${Account}:managed-workgroup/${ManagedWorkgroupId}

workgroup

arn:${Partition}:redshift-serverless:${Region}:${Account}:workgroup/${WorkgroupId}

aws:ResourceTag/${TagKey}

Condition keys for Amazon Redshift Data API

Amazon Redshift Data API defines the following condition keys that can be used in the Condition element of an IAM policy.

Condition keys Description Type

aws:ResourceTag/${TagKey}

Filters access by tag-value associated with the resource

String

redshift-data:glue-catalog-arn

Filters access by glue catalog arn

ARN

redshift-data:session-owner-iam-userid

Filters access by session owner iam userid

String

redshift-data:statement-owner-iam-userid

Filters access by statement owner iam userid

String