View a markdown version of this page

Actions, resources, and condition keys for Amazon API Gateway - 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 API Gateway

Amazon API Gateway (service prefix: execute-api) provides the following service-specific operations, resources, actions, and condition keys for use in IAM permission policies.

References:

Actions defined by Amazon API Gateway

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

InvalidateCache

Grants permission to invalidate API cache upon a client request

execute-api-general*

execute-api:viaDomainArn

Write

Invoke

Grants permission to invoke an API upon a client request

execute-api-domain

Write

execute-api-general

execute-api:viaDomainArn

ManageConnections

Grants permission to access the Websocket @connections Route

execute-api-general*

execute-api:viaDomainArn

Write

Resource types defined by Amazon API Gateway

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

execute-api-domain

arn:${Partition}:execute-api:${Region}:${Account}:/domainnames/${DomainName}+${DomainIdentifier}

execute-api-general

arn:${Partition}:execute-api:${Region}:${Account}:${ApiId}/${Stage}/${Method}/${ApiSpecificResourcePath}

execute-api:viaDomainArn

Condition keys for Amazon API Gateway

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

Condition keys Description Type

execute-api:viaDomainArn

Filters access by the DomainName ARN the API is called from

ARN