Menu
AWS Identity and Access Management
User Guide

Actions, Resources, and Condition Keys for AWS AppSync

AWS AppSync (service prefix: appsync) provides the following service-specific resources, actions, and condition context keys for use in IAM permission policies.

References:

Actions Defined by AWS AppSync

You can specify the following actions in the Action element of an IAM policy statement. By using policies, you define the permissions for anyone performing 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. For details about the columns in the following table, see The Actions Table.

Actions Description Access Level Resource Types (*required) Condition Keys Dependent Actions
CreateApiKey Creates a unique key that you can distribute to clients who are executing your API.

Write

CreateDataSource Creates a DataSource object.

Write

CreateGraphqlApi Creates a GraphqlApi object, which is the top level AppSync resource.

Write

CreateResolver Creates a Resolver object. A resolver converts incoming requests into a format that a data source can understand, and converts the data source's responses into GraphQL.

Write

CreateType Creates a Type object.

Write

DeleteApiKey Deletes an API key.

Write

DeleteDataSource Deletes a DataSource object.

Write

DeleteGraphqlApi Deletes a GraphqlApi object. This will also clean up every AppSync resource below that API.

Write

DeleteResolver Deletes a Resolver object.

Write

DeleteType Deletes a Type object.

Write

GetDataSource Retrieves a DataSource object.

Read

GetGraphqlApi Retrieves a GraphqlApi object.

Read

GetIntrospectionSchema Retrieves the introspection schema for a GraphQL API.

Read

GetResolver Retrieves a Resolver object.

Read

GetSchemaCreationStatus Retrieves the current status of a schema creation operation.

Read

GetType Retrieves a Type object.

Read

GraphQL Sends a GraphQL query to a GraphQL API.

Write

field*

graphqlapi*

ListApiKeys Lists the API keys for a given API.

List

ListDataSources Lists the data sources for a given API.

List

ListGraphqlApis Lists your GraphQL APIs.

List

ListResolvers Lists the resolvers for a given API and type.

List

ListTypes Lists the types for a given API.

List

StartSchemaCreation Adds a new schema to your GraphQL API. This operation is asynchronous - GetSchemaCreationStatus can show when it has completed.

Write

UpdateApiKey Updates an API key for a given API.

Write

UpdateDataSource Updates a DataSource object.

Write

UpdateGraphqlApi Updates a GraphqlApi object.

Write

UpdateResolver Updates a Resolver object.

Write

UpdateType Updates a Type object.

Write

Resources Defined by AppSync

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
datasource arn:${Partition}:appsync:${Region}:${Account}:apis/${GraphQLAPIId}/datasources/${DatasourceName}
field arn:${Partition}:appsync:${Region}:${Account}:apis/${GraphQLAPIId}/types/${TypeName}/fields/${FieldName}
graphqlapi arn:${Partition}:appsync:${Region}:${Account}:apis/${GraphQLAPIId}
type arn:${Partition}:appsync:${Region}:${Account}:apis/${GraphQLAPIId}/types/${TypeName}

Condition Keys for AWS AppSync

AppSync has no service-specific context keys that can be used in the Condition element of policy statements. For the list of the global context keys that are available to all services, see Available Keys for Conditions in the IAM Policy Reference.