@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AWSAppSyncClient extends AmazonWebServiceClient implements AWSAppSync
AWS AppSync provides API actions for creating and interacting with data sources using GraphQL from your application.
LOGGING_AWS_REQUEST_METRICENDPOINT_PREFIXaddRequestHandler, addRequestHandler, configureRegion, getEndpointPrefix, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, shutdown, withEndpoint, withRegion, withRegion, withTimeOffsetequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitshutdownpublic static AWSAppSyncClientBuilder builder()
public CreateApiKeyResult createApiKey(CreateApiKeyRequest request)
Creates a unique key that you can distribute to clients who are executing your API.
createApiKey in interface AWSAppSynccreateApiKeyRequest - 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.public CreateDataSourceResult createDataSource(CreateDataSourceRequest request)
Creates a DataSource object.
createDataSource in interface AWSAppSynccreateDataSourceRequest - 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.public CreateGraphqlApiResult createGraphqlApi(CreateGraphqlApiRequest request)
Creates a GraphqlApi object.
createGraphqlApi in interface AWSAppSynccreateGraphqlApiRequest - 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.public CreateResolverResult createResolver(CreateResolverRequest request)
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.
createResolver in interface AWSAppSynccreateResolverRequest - 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.public CreateTypeResult createType(CreateTypeRequest request)
Creates a Type object.
createType in interface AWSAppSynccreateTypeRequest - 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.public DeleteApiKeyResult deleteApiKey(DeleteApiKeyRequest request)
Deletes an API key.
deleteApiKey in interface AWSAppSyncdeleteApiKeyRequest - 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.public DeleteDataSourceResult deleteDataSource(DeleteDataSourceRequest request)
Deletes a DataSource object.
deleteDataSource in interface AWSAppSyncdeleteDataSourceRequest - 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.public DeleteGraphqlApiResult deleteGraphqlApi(DeleteGraphqlApiRequest request)
Deletes a GraphqlApi object.
deleteGraphqlApi in interface AWSAppSyncdeleteGraphqlApiRequest - 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.public DeleteResolverResult deleteResolver(DeleteResolverRequest request)
Deletes a Resolver object.
deleteResolver in interface AWSAppSyncdeleteResolverRequest - 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.public DeleteTypeResult deleteType(DeleteTypeRequest request)
Deletes a Type object.
deleteType in interface AWSAppSyncdeleteTypeRequest - 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.public GetDataSourceResult getDataSource(GetDataSourceRequest request)
Retrieves a DataSource object.
getDataSource in interface AWSAppSyncgetDataSourceRequest - 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.public GetGraphqlApiResult getGraphqlApi(GetGraphqlApiRequest request)
Retrieves a GraphqlApi object.
getGraphqlApi in interface AWSAppSyncgetGraphqlApiRequest - 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.public GetIntrospectionSchemaResult getIntrospectionSchema(GetIntrospectionSchemaRequest request)
Retrieves the introspection schema for a GraphQL API.
getIntrospectionSchema in interface AWSAppSyncgetIntrospectionSchemaRequest - 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.public GetResolverResult getResolver(GetResolverRequest request)
Retrieves a Resolver object.
getResolver in interface AWSAppSyncgetResolverRequest - 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.public GetSchemaCreationStatusResult getSchemaCreationStatus(GetSchemaCreationStatusRequest request)
Retrieves the current status of a schema creation operation.
getSchemaCreationStatus in interface AWSAppSyncgetSchemaCreationStatusRequest - 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.public GetTypeResult getType(GetTypeRequest request)
Retrieves a Type object.
getType in interface AWSAppSyncgetTypeRequest - 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.public ListApiKeysResult listApiKeys(ListApiKeysRequest request)
Lists the API keys for a given API.
listApiKeys in interface AWSAppSynclistApiKeysRequest - 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.public ListDataSourcesResult listDataSources(ListDataSourcesRequest request)
Lists the data sources for a given API.
listDataSources in interface AWSAppSynclistDataSourcesRequest - 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.public ListGraphqlApisResult listGraphqlApis(ListGraphqlApisRequest request)
Lists your GraphQL APIs.
listGraphqlApis in interface AWSAppSynclistGraphqlApisRequest - 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.public ListResolversResult listResolvers(ListResolversRequest request)
Lists the resolvers for a given API and type.
listResolvers in interface AWSAppSynclistResolversRequest - 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.public ListTypesResult listTypes(ListTypesRequest request)
Lists the types for a given API.
listTypes in interface AWSAppSynclistTypesRequest - 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.public StartSchemaCreationResult startSchemaCreation(StartSchemaCreationRequest request)
Adds a new schema to your GraphQL API.
This operation is asynchronous. Use to determine when it has completed.
startSchemaCreation in interface AWSAppSyncstartSchemaCreationRequest - 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.public UpdateDataSourceResult updateDataSource(UpdateDataSourceRequest request)
Updates a DataSource object.
updateDataSource in interface AWSAppSyncupdateDataSourceRequest - 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.public UpdateGraphqlApiResult updateGraphqlApi(UpdateGraphqlApiRequest request)
Updates a GraphqlApi object.
updateGraphqlApi in interface AWSAppSyncupdateGraphqlApiRequest - 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.public UpdateResolverResult updateResolver(UpdateResolverRequest request)
Updates a Resolver object.
updateResolver in interface AWSAppSyncupdateResolverRequest - 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.public UpdateTypeResult updateType(UpdateTypeRequest request)
Updates a Type object.
updateType in interface AWSAppSyncupdateTypeRequest - 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.public 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 the request.
getCachedResponseMetadata in interface AWSAppSyncrequest - The originally executed requestCopyright © 2013 Amazon Web Services, Inc. All Rights Reserved.