@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public interface AWSAppSync
Note: Do not directly implement this interface, new methods are added to it regularly. Extend from
AbstractAWSAppSync
instead.
AWS AppSync provides API actions for creating and interacting with data sources using GraphQL from your application.
Modifier and Type | Field and Description |
---|---|
static String |
ENDPOINT_PREFIX
The region metadata service name for computing region endpoints.
|
Modifier and Type | Method and Description |
---|---|
CreateApiKeyResult |
createApiKey(CreateApiKeyRequest createApiKeyRequest)
Creates a unique key that you can distribute to clients who are executing your API.
|
CreateDataSourceResult |
createDataSource(CreateDataSourceRequest createDataSourceRequest)
Creates a
DataSource object. |
CreateGraphqlApiResult |
createGraphqlApi(CreateGraphqlApiRequest createGraphqlApiRequest)
Creates a
GraphqlApi object. |
CreateResolverResult |
createResolver(CreateResolverRequest createResolverRequest)
Creates a
Resolver object. |
CreateTypeResult |
createType(CreateTypeRequest createTypeRequest)
Creates a
Type object. |
DeleteApiKeyResult |
deleteApiKey(DeleteApiKeyRequest deleteApiKeyRequest)
Deletes an API key.
|
DeleteDataSourceResult |
deleteDataSource(DeleteDataSourceRequest deleteDataSourceRequest)
Deletes a
DataSource object. |
DeleteGraphqlApiResult |
deleteGraphqlApi(DeleteGraphqlApiRequest deleteGraphqlApiRequest)
Deletes a
GraphqlApi object. |
DeleteResolverResult |
deleteResolver(DeleteResolverRequest deleteResolverRequest)
Deletes a
Resolver object. |
DeleteTypeResult |
deleteType(DeleteTypeRequest deleteTypeRequest)
Deletes a
Type object. |
ResponseMetadata |
getCachedResponseMetadata(AmazonWebServiceRequest request)
Returns additional metadata for a previously executed successful request, typically used for debugging issues
where a service isn't acting as expected.
|
GetDataSourceResult |
getDataSource(GetDataSourceRequest getDataSourceRequest)
Retrieves a
DataSource object. |
GetGraphqlApiResult |
getGraphqlApi(GetGraphqlApiRequest getGraphqlApiRequest)
Retrieves a
GraphqlApi object. |
GetIntrospectionSchemaResult |
getIntrospectionSchema(GetIntrospectionSchemaRequest getIntrospectionSchemaRequest)
Retrieves the introspection schema for a GraphQL API.
|
GetResolverResult |
getResolver(GetResolverRequest getResolverRequest)
Retrieves a
Resolver object. |
GetSchemaCreationStatusResult |
getSchemaCreationStatus(GetSchemaCreationStatusRequest getSchemaCreationStatusRequest)
Retrieves the current status of a schema creation operation.
|
GetTypeResult |
getType(GetTypeRequest getTypeRequest)
Retrieves a
Type object. |
ListApiKeysResult |
listApiKeys(ListApiKeysRequest listApiKeysRequest)
Lists the API keys for a given API.
|
ListDataSourcesResult |
listDataSources(ListDataSourcesRequest listDataSourcesRequest)
Lists the data sources for a given API.
|
ListGraphqlApisResult |
listGraphqlApis(ListGraphqlApisRequest listGraphqlApisRequest)
Lists your GraphQL APIs.
|
ListResolversResult |
listResolvers(ListResolversRequest listResolversRequest)
Lists the resolvers for a given API and type.
|
ListTypesResult |
listTypes(ListTypesRequest listTypesRequest)
Lists the types for a given API.
|
void |
shutdown()
Shuts down this client object, releasing any resources that might be held open.
|
StartSchemaCreationResult |
startSchemaCreation(StartSchemaCreationRequest startSchemaCreationRequest)
Adds a new schema to your GraphQL API.
|
UpdateApiKeyResult |
updateApiKey(UpdateApiKeyRequest updateApiKeyRequest)
Updates an API key.
|
UpdateDataSourceResult |
updateDataSource(UpdateDataSourceRequest updateDataSourceRequest)
Updates a
DataSource object. |
UpdateGraphqlApiResult |
updateGraphqlApi(UpdateGraphqlApiRequest updateGraphqlApiRequest)
Updates a
GraphqlApi object. |
UpdateResolverResult |
updateResolver(UpdateResolverRequest updateResolverRequest)
Updates a
Resolver object. |
UpdateTypeResult |
updateType(UpdateTypeRequest updateTypeRequest)
Updates a
Type object. |
static final String ENDPOINT_PREFIX
CreateApiKeyResult createApiKey(CreateApiKeyRequest createApiKeyRequest)
Creates a unique key that you can distribute to clients who are executing your API.
createApiKeyRequest
- BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.NotFoundException
- The resource specified in the request was not found. Check the resource and try again.LimitExceededException
- The request exceeded a limit. Try your request again.UnauthorizedException
- You are not authorized to perform this operation.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal AWS AppSync error occurred. Try your request again.ApiKeyLimitExceededException
- The API key exceeded a limit. Try your request again.ApiKeyValidityOutOfBoundsException
- The API key expiration must be set to a value between 1 and 365 days.CreateDataSourceResult createDataSource(CreateDataSourceRequest createDataSourceRequest)
Creates a DataSource
object.
createDataSourceRequest
- BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.ConcurrentModificationException
- Another modification is being made. That modification must complete before you can make your change.NotFoundException
- The resource specified in the request was not found. Check the resource and try again.UnauthorizedException
- You are not authorized to perform this operation.InternalFailureException
- An internal AWS AppSync error occurred. Try your request again.CreateGraphqlApiResult createGraphqlApi(CreateGraphqlApiRequest createGraphqlApiRequest)
Creates a GraphqlApi
object.
createGraphqlApiRequest
- BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.LimitExceededException
- The request exceeded a limit. Try your request again.ConcurrentModificationException
- Another modification is being made. That modification must complete before you can make your change.UnauthorizedException
- You are not authorized to perform this operation.InternalFailureException
- An internal AWS AppSync error occurred. Try your request again.LimitExceededException
- The request exceeded a limit. Try your request again.ApiLimitExceededException
- The GraphQL API exceeded a limit. Try your request again.CreateResolverResult createResolver(CreateResolverRequest createResolverRequest)
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.
createResolverRequest
- ConcurrentModificationException
- Another modification is being made. That modification must complete before you can make your change.NotFoundException
- The resource specified in the request was not found. Check the resource and try again.UnauthorizedException
- You are not authorized to perform this operation.InternalFailureException
- An internal AWS AppSync error occurred. Try your request again.CreateTypeResult createType(CreateTypeRequest createTypeRequest)
Creates a Type
object.
createTypeRequest
- BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.ConcurrentModificationException
- Another modification is being made. That modification must complete before you can make your change.NotFoundException
- The resource specified in the request was not found. Check the resource and try again.UnauthorizedException
- You are not authorized to perform this operation.InternalFailureException
- An internal AWS AppSync error occurred. Try your request again.DeleteApiKeyResult deleteApiKey(DeleteApiKeyRequest deleteApiKeyRequest)
Deletes an API key.
deleteApiKeyRequest
- BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.NotFoundException
- The resource specified in the request was not found. Check the resource and try again.UnauthorizedException
- You are not authorized to perform this operation.InternalFailureException
- An internal AWS AppSync error occurred. Try your request again.DeleteDataSourceResult deleteDataSource(DeleteDataSourceRequest deleteDataSourceRequest)
Deletes a DataSource
object.
deleteDataSourceRequest
- BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.ConcurrentModificationException
- Another modification is being made. That modification must complete before you can make your change.NotFoundException
- The resource specified in the request was not found. Check the resource and try again.UnauthorizedException
- You are not authorized to perform this operation.InternalFailureException
- An internal AWS AppSync error occurred. Try your request again.DeleteGraphqlApiResult deleteGraphqlApi(DeleteGraphqlApiRequest deleteGraphqlApiRequest)
Deletes a GraphqlApi
object.
deleteGraphqlApiRequest
- BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.ConcurrentModificationException
- Another modification is being made. That modification must complete before you can make your change.NotFoundException
- The resource specified in the request was not found. Check the resource and try again.UnauthorizedException
- You are not authorized to perform this operation.InternalFailureException
- An internal AWS AppSync error occurred. Try your request again.DeleteResolverResult deleteResolver(DeleteResolverRequest deleteResolverRequest)
Deletes a Resolver
object.
deleteResolverRequest
- ConcurrentModificationException
- Another modification is being made. That modification must complete before you can make your change.NotFoundException
- The resource specified in the request was not found. Check the resource and try again.UnauthorizedException
- You are not authorized to perform this operation.InternalFailureException
- An internal AWS AppSync error occurred. Try your request again.DeleteTypeResult deleteType(DeleteTypeRequest deleteTypeRequest)
Deletes a Type
object.
deleteTypeRequest
- BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.ConcurrentModificationException
- Another modification is being made. That modification must complete before you can make your change.NotFoundException
- The resource specified in the request was not found. Check the resource and try again.UnauthorizedException
- You are not authorized to perform this operation.InternalFailureException
- An internal AWS AppSync error occurred. Try your request again.GetDataSourceResult getDataSource(GetDataSourceRequest getDataSourceRequest)
Retrieves a DataSource
object.
getDataSourceRequest
- BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.ConcurrentModificationException
- Another modification is being made. That modification must complete before you can make your change.NotFoundException
- The resource specified in the request was not found. Check the resource and try again.UnauthorizedException
- You are not authorized to perform this operation.InternalFailureException
- An internal AWS AppSync error occurred. Try your request again.GetGraphqlApiResult getGraphqlApi(GetGraphqlApiRequest getGraphqlApiRequest)
Retrieves a GraphqlApi
object.
getGraphqlApiRequest
- BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.NotFoundException
- The resource specified in the request was not found. Check the resource and try again.UnauthorizedException
- You are not authorized to perform this operation.InternalFailureException
- An internal AWS AppSync error occurred. Try your request again.GetIntrospectionSchemaResult getIntrospectionSchema(GetIntrospectionSchemaRequest getIntrospectionSchemaRequest)
Retrieves the introspection schema for a GraphQL API.
getIntrospectionSchemaRequest
- GraphQLSchemaException
- The GraphQL schema is not valid.NotFoundException
- The resource specified in the request was not found. Check the resource and try again.UnauthorizedException
- You are not authorized to perform this operation.InternalFailureException
- An internal AWS AppSync error occurred. Try your request again.GetResolverResult getResolver(GetResolverRequest getResolverRequest)
Retrieves a Resolver
object.
getResolverRequest
- ConcurrentModificationException
- Another modification is being made. That modification must complete before you can make your change.NotFoundException
- The resource specified in the request was not found. Check the resource and try again.UnauthorizedException
- You are not authorized to perform this operation.GetSchemaCreationStatusResult getSchemaCreationStatus(GetSchemaCreationStatusRequest getSchemaCreationStatusRequest)
Retrieves the current status of a schema creation operation.
getSchemaCreationStatusRequest
- BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.NotFoundException
- The resource specified in the request was not found. Check the resource and try again.UnauthorizedException
- You are not authorized to perform this operation.InternalFailureException
- An internal AWS AppSync error occurred. Try your request again.GetTypeResult getType(GetTypeRequest getTypeRequest)
Retrieves a Type
object.
getTypeRequest
- BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.ConcurrentModificationException
- Another modification is being made. That modification must complete before you can make your change.NotFoundException
- The resource specified in the request was not found. Check the resource and try again.UnauthorizedException
- You are not authorized to perform this operation.InternalFailureException
- An internal AWS AppSync error occurred. Try your request again.ListApiKeysResult listApiKeys(ListApiKeysRequest listApiKeysRequest)
Lists the API keys for a given API.
listApiKeysRequest
- BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.NotFoundException
- The resource specified in the request was not found. Check the resource and try again.UnauthorizedException
- You are not authorized to perform this operation.InternalFailureException
- An internal AWS AppSync error occurred. Try your request again.ListDataSourcesResult listDataSources(ListDataSourcesRequest listDataSourcesRequest)
Lists the data sources for a given API.
listDataSourcesRequest
- BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.NotFoundException
- The resource specified in the request was not found. Check the resource and try again.UnauthorizedException
- You are not authorized to perform this operation.InternalFailureException
- An internal AWS AppSync error occurred. Try your request again.ListGraphqlApisResult listGraphqlApis(ListGraphqlApisRequest listGraphqlApisRequest)
Lists your GraphQL APIs.
listGraphqlApisRequest
- BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.UnauthorizedException
- You are not authorized to perform this operation.InternalFailureException
- An internal AWS AppSync error occurred. Try your request again.ListResolversResult listResolvers(ListResolversRequest listResolversRequest)
Lists the resolvers for a given API and type.
listResolversRequest
- BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.NotFoundException
- The resource specified in the request was not found. Check the resource and try again.UnauthorizedException
- You are not authorized to perform this operation.InternalFailureException
- An internal AWS AppSync error occurred. Try your request again.ListTypesResult listTypes(ListTypesRequest listTypesRequest)
Lists the types for a given API.
listTypesRequest
- BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.ConcurrentModificationException
- Another modification is being made. That modification must complete before you can make your change.NotFoundException
- The resource specified in the request was not found. Check the resource and try again.UnauthorizedException
- You are not authorized to perform this operation.InternalFailureException
- An internal AWS AppSync error occurred. Try your request again.StartSchemaCreationResult startSchemaCreation(StartSchemaCreationRequest startSchemaCreationRequest)
Adds a new schema to your GraphQL API.
This operation is asynchronous. Use to determine when it has completed.
startSchemaCreationRequest
- BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.ConcurrentModificationException
- Another modification is being made. That modification must complete before you can make your change.NotFoundException
- The resource specified in the request was not found. Check the resource and try again.UnauthorizedException
- You are not authorized to perform this operation.InternalFailureException
- An internal AWS AppSync error occurred. Try your request again.UpdateApiKeyResult updateApiKey(UpdateApiKeyRequest updateApiKeyRequest)
Updates an API key.
updateApiKeyRequest
- BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.NotFoundException
- The resource specified in the request was not found. Check the resource and try again.UnauthorizedException
- You are not authorized to perform this operation.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal AWS AppSync error occurred. Try your request again.ApiKeyValidityOutOfBoundsException
- The API key expiration must be set to a value between 1 and 365 days.UpdateDataSourceResult updateDataSource(UpdateDataSourceRequest updateDataSourceRequest)
Updates a DataSource
object.
updateDataSourceRequest
- BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.ConcurrentModificationException
- Another modification is being made. That modification must complete before you can make your change.NotFoundException
- The resource specified in the request was not found. Check the resource and try again.UnauthorizedException
- You are not authorized to perform this operation.InternalFailureException
- An internal AWS AppSync error occurred. Try your request again.UpdateGraphqlApiResult updateGraphqlApi(UpdateGraphqlApiRequest updateGraphqlApiRequest)
Updates a GraphqlApi
object.
updateGraphqlApiRequest
- BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.ConcurrentModificationException
- Another modification is being made. That modification must complete before you can make your change.NotFoundException
- The resource specified in the request was not found. Check the resource and try again.UnauthorizedException
- You are not authorized to perform this operation.InternalFailureException
- An internal AWS AppSync error occurred. Try your request again.UpdateResolverResult updateResolver(UpdateResolverRequest updateResolverRequest)
Updates a Resolver
object.
updateResolverRequest
- ConcurrentModificationException
- Another modification is being made. That modification must complete before you can make your change.NotFoundException
- The resource specified in the request was not found. Check the resource and try again.UnauthorizedException
- You are not authorized to perform this operation.InternalFailureException
- An internal AWS AppSync error occurred. Try your request again.UpdateTypeResult updateType(UpdateTypeRequest updateTypeRequest)
Updates a Type
object.
updateTypeRequest
- BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and try again.ConcurrentModificationException
- Another modification is being made. That modification must complete before you can make your change.NotFoundException
- The resource specified in the request was not found. Check the resource and try again.UnauthorizedException
- You are not authorized to perform this operation.InternalFailureException
- An internal AWS AppSync error occurred. Try your request again.void shutdown()
ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing a request.
request
- The originally executed request.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.