@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AWSAppSyncClient extends AmazonWebServiceClient implements AWSAppSync
AppSync provides API actions for creating and interacting with data sources using GraphQL from your application.
LOGGING_AWS_REQUEST_METRIC
ENDPOINT_PREFIX
addRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffset
public static AWSAppSyncClientBuilder builder()
public AssociateApiResult associateApi(AssociateApiRequest request)
Maps an endpoint to your custom domain.
associateApi
in interface AWSAppSync
associateApiRequest
- AccessDeniedException
- You don't have access to perform this operation on this resource.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and then try again.InternalFailureException
- An internal AppSync error occurred. Try your request again.NotFoundException
- The resource specified in the request was not found. Check the resource, and then try again.public AssociateMergedGraphqlApiResult associateMergedGraphqlApi(AssociateMergedGraphqlApiRequest request)
Creates an association between a Merged API and source API using the source API's identifier.
associateMergedGraphqlApi
in interface AWSAppSync
associateMergedGraphqlApiRequest
- UnauthorizedException
- You aren't authorized to perform this operation.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and then try again.InternalFailureException
- An internal AppSync error occurred. Try your request again.NotFoundException
- The resource specified in the request was not found. Check the resource, and then try again.LimitExceededException
- The request exceeded a limit. Try your request again.ConcurrentModificationException
- Another modification is in progress at this time and it must complete before you can make your change.public AssociateSourceGraphqlApiResult associateSourceGraphqlApi(AssociateSourceGraphqlApiRequest request)
Creates an association between a Merged API and source API using the Merged API's identifier.
associateSourceGraphqlApi
in interface AWSAppSync
associateSourceGraphqlApiRequest
- UnauthorizedException
- You aren't authorized to perform this operation.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and then try again.InternalFailureException
- An internal AppSync error occurred. Try your request again.NotFoundException
- The resource specified in the request was not found. Check the resource, and then try again.LimitExceededException
- The request exceeded a limit. Try your request again.ConcurrentModificationException
- Another modification is in progress at this time and it must complete before you can make your change.public CreateApiCacheResult createApiCache(CreateApiCacheRequest request)
Creates a cache for the GraphQL API.
createApiCache
in interface AWSAppSync
createApiCacheRequest
- Represents the input of a CreateApiCache
operation.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and then try again.ConcurrentModificationException
- Another modification is in progress at this time and it must complete before you can make your change.NotFoundException
- The resource specified in the request was not found. Check the resource, and then try again.UnauthorizedException
- You aren't authorized to perform this operation.InternalFailureException
- An internal AppSync error occurred. Try your request again.public CreateApiKeyResult createApiKey(CreateApiKeyRequest request)
Creates a unique key that you can distribute to clients who invoke your API.
createApiKey
in interface AWSAppSync
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 then try again.NotFoundException
- The resource specified in the request was not found. Check the resource, and then try again.LimitExceededException
- The request exceeded a limit. Try your request again.UnauthorizedException
- You aren't authorized to perform this operation.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal 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 from creation (for
CreateApiKey
) or from update (for UpdateApiKey
).public CreateDataSourceResult createDataSource(CreateDataSourceRequest request)
Creates a DataSource
object.
createDataSource
in interface AWSAppSync
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 then try again.ConcurrentModificationException
- Another modification is in progress at this time and it must complete before you can make your change.NotFoundException
- The resource specified in the request was not found. Check the resource, and then try again.UnauthorizedException
- You aren't authorized to perform this operation.InternalFailureException
- An internal AppSync error occurred. Try your request again.public CreateDomainNameResult createDomainName(CreateDomainNameRequest request)
Creates a custom DomainName
object.
createDomainName
in interface AWSAppSync
createDomainNameRequest
- AccessDeniedException
- You don't have access to perform this operation on this resource.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and then try again.InternalFailureException
- An internal AppSync error occurred. Try your request again.public CreateFunctionResult createFunction(CreateFunctionRequest request)
Creates a Function
object.
A function is a reusable entity. You can use multiple functions to compose the resolver logic.
createFunction
in interface AWSAppSync
createFunctionRequest
- ConcurrentModificationException
- Another modification is in progress at this time and it must complete before you can make your change.NotFoundException
- The resource specified in the request was not found. Check the resource, and then try again.UnauthorizedException
- You aren't authorized to perform this operation.InternalFailureException
- An internal AppSync error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and then try again.public CreateGraphqlApiResult createGraphqlApi(CreateGraphqlApiRequest request)
Creates a GraphqlApi
object.
createGraphqlApi
in interface AWSAppSync
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 then try again.LimitExceededException
- The request exceeded a limit. Try your request again.ConcurrentModificationException
- Another modification is in progress at this time and it must complete before you can make your change.UnauthorizedException
- You aren't authorized to perform this operation.InternalFailureException
- An internal AppSync error occurred. 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 AWSAppSync
createResolverRequest
- ConcurrentModificationException
- Another modification is in progress at this time and it must complete before you can make your change.NotFoundException
- The resource specified in the request was not found. Check the resource, and then try again.UnauthorizedException
- You aren't authorized to perform this operation.InternalFailureException
- An internal AppSync error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and then try again.public CreateTypeResult createType(CreateTypeRequest request)
Creates a Type
object.
createType
in interface AWSAppSync
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 then try again.ConcurrentModificationException
- Another modification is in progress at this time and it must complete before you can make your change.NotFoundException
- The resource specified in the request was not found. Check the resource, and then try again.UnauthorizedException
- You aren't authorized to perform this operation.InternalFailureException
- An internal AppSync error occurred. Try your request again.public DeleteApiCacheResult deleteApiCache(DeleteApiCacheRequest request)
Deletes an ApiCache
object.
deleteApiCache
in interface AWSAppSync
deleteApiCacheRequest
- Represents the input of a DeleteApiCache
operation.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and then try again.ConcurrentModificationException
- Another modification is in progress at this time and it must complete before you can make your change.NotFoundException
- The resource specified in the request was not found. Check the resource, and then try again.UnauthorizedException
- You aren't authorized to perform this operation.InternalFailureException
- An internal AppSync error occurred. Try your request again.public DeleteApiKeyResult deleteApiKey(DeleteApiKeyRequest request)
Deletes an API key.
deleteApiKey
in interface AWSAppSync
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 then try again.NotFoundException
- The resource specified in the request was not found. Check the resource, and then try again.UnauthorizedException
- You aren't authorized to perform this operation.InternalFailureException
- An internal AppSync error occurred. Try your request again.public DeleteDataSourceResult deleteDataSource(DeleteDataSourceRequest request)
Deletes a DataSource
object.
deleteDataSource
in interface AWSAppSync
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 then try again.ConcurrentModificationException
- Another modification is in progress at this time and it must complete before you can make your change.NotFoundException
- The resource specified in the request was not found. Check the resource, and then try again.UnauthorizedException
- You aren't authorized to perform this operation.InternalFailureException
- An internal AppSync error occurred. Try your request again.public DeleteDomainNameResult deleteDomainName(DeleteDomainNameRequest request)
Deletes a custom DomainName
object.
deleteDomainName
in interface AWSAppSync
deleteDomainNameRequest
- AccessDeniedException
- You don't have access to perform this operation on this resource.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and then try again.ConcurrentModificationException
- Another modification is in progress at this time and it must complete before you can make your change.InternalFailureException
- An internal AppSync error occurred. Try your request again.NotFoundException
- The resource specified in the request was not found. Check the resource, and then try again.public DeleteFunctionResult deleteFunction(DeleteFunctionRequest request)
Deletes a Function
.
deleteFunction
in interface AWSAppSync
deleteFunctionRequest
- ConcurrentModificationException
- Another modification is in progress at this time and it must complete before you can make your change.NotFoundException
- The resource specified in the request was not found. Check the resource, and then try again.UnauthorizedException
- You aren't authorized to perform this operation.InternalFailureException
- An internal AppSync error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and then try again.public DeleteGraphqlApiResult deleteGraphqlApi(DeleteGraphqlApiRequest request)
Deletes a GraphqlApi
object.
deleteGraphqlApi
in interface AWSAppSync
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 then try again.ConcurrentModificationException
- Another modification is in progress at this time and it must complete before you can make your change.NotFoundException
- The resource specified in the request was not found. Check the resource, and then try again.UnauthorizedException
- You aren't authorized to perform this operation.InternalFailureException
- An internal AppSync error occurred. Try your request again.AccessDeniedException
- You don't have access to perform this operation on this resource.public DeleteResolverResult deleteResolver(DeleteResolverRequest request)
Deletes a Resolver
object.
deleteResolver
in interface AWSAppSync
deleteResolverRequest
- ConcurrentModificationException
- Another modification is in progress at this time and it must complete before you can make your change.NotFoundException
- The resource specified in the request was not found. Check the resource, and then try again.UnauthorizedException
- You aren't authorized to perform this operation.InternalFailureException
- An internal AppSync error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and then try again.public DeleteTypeResult deleteType(DeleteTypeRequest request)
Deletes a Type
object.
deleteType
in interface AWSAppSync
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 then try again.ConcurrentModificationException
- Another modification is in progress at this time and it must complete before you can make your change.NotFoundException
- The resource specified in the request was not found. Check the resource, and then try again.UnauthorizedException
- You aren't authorized to perform this operation.InternalFailureException
- An internal AppSync error occurred. Try your request again.public DisassociateApiResult disassociateApi(DisassociateApiRequest request)
Removes an ApiAssociation
object from a custom domain.
disassociateApi
in interface AWSAppSync
disassociateApiRequest
- AccessDeniedException
- You don't have access to perform this operation on this resource.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and then try again.ConcurrentModificationException
- Another modification is in progress at this time and it must complete before you can make your change.InternalFailureException
- An internal AppSync error occurred. Try your request again.NotFoundException
- The resource specified in the request was not found. Check the resource, and then try again.public DisassociateMergedGraphqlApiResult disassociateMergedGraphqlApi(DisassociateMergedGraphqlApiRequest request)
Deletes an association between a Merged API and source API using the source API's identifier and the association ID.
disassociateMergedGraphqlApi
in interface AWSAppSync
disassociateMergedGraphqlApiRequest
- UnauthorizedException
- You aren't authorized to perform this operation.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and then try again.InternalFailureException
- An internal AppSync error occurred. Try your request again.NotFoundException
- The resource specified in the request was not found. Check the resource, and then try again.ConcurrentModificationException
- Another modification is in progress at this time and it must complete before you can make your change.public DisassociateSourceGraphqlApiResult disassociateSourceGraphqlApi(DisassociateSourceGraphqlApiRequest request)
Deletes an association between a Merged API and source API using the Merged API's identifier and the association ID.
disassociateSourceGraphqlApi
in interface AWSAppSync
disassociateSourceGraphqlApiRequest
- UnauthorizedException
- You aren't authorized to perform this operation.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and then try again.InternalFailureException
- An internal AppSync error occurred. Try your request again.NotFoundException
- The resource specified in the request was not found. Check the resource, and then try again.ConcurrentModificationException
- Another modification is in progress at this time and it must complete before you can make your change.public EvaluateCodeResult evaluateCode(EvaluateCodeRequest request)
Evaluates the given code and returns the response. The code definition requirements depend on the specified
runtime. For APPSYNC_JS
runtimes, the code defines the request and response functions. The request
function takes the incoming request after a GraphQL operation is parsed and converts it into a request
configuration for the selected data source operation. The response function interprets responses from the data
source and maps it to the shape of the GraphQL field output type.
evaluateCode
in interface AWSAppSync
evaluateCodeRequest
- AccessDeniedException
- You don't have access to perform this operation on this resource.InternalFailureException
- An internal AppSync error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and then try again.public EvaluateMappingTemplateResult evaluateMappingTemplate(EvaluateMappingTemplateRequest request)
Evaluates a given template and returns the response. The mapping template can be a request or response template.
Request templates take the incoming request after a GraphQL operation is parsed and convert it into a request configuration for the selected data source operation. Response templates interpret responses from the data source and map it to the shape of the GraphQL field output type.
Mapping templates are written in the Apache Velocity Template Language (VTL).
evaluateMappingTemplate
in interface AWSAppSync
evaluateMappingTemplateRequest
- AccessDeniedException
- You don't have access to perform this operation on this resource.InternalFailureException
- An internal AppSync error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and then try again.public FlushApiCacheResult flushApiCache(FlushApiCacheRequest request)
Flushes an ApiCache
object.
flushApiCache
in interface AWSAppSync
flushApiCacheRequest
- Represents the input of a FlushApiCache
operation.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and then try again.ConcurrentModificationException
- Another modification is in progress at this time and it must complete before you can make your change.NotFoundException
- The resource specified in the request was not found. Check the resource, and then try again.UnauthorizedException
- You aren't authorized to perform this operation.InternalFailureException
- An internal AppSync error occurred. Try your request again.public GetApiAssociationResult getApiAssociation(GetApiAssociationRequest request)
Retrieves an ApiAssociation
object.
getApiAssociation
in interface AWSAppSync
getApiAssociationRequest
- AccessDeniedException
- You don't have access to perform this operation on this resource.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and then try again.InternalFailureException
- An internal AppSync error occurred. Try your request again.NotFoundException
- The resource specified in the request was not found. Check the resource, and then try again.public GetApiCacheResult getApiCache(GetApiCacheRequest request)
Retrieves an ApiCache
object.
getApiCache
in interface AWSAppSync
getApiCacheRequest
- Represents the input of a GetApiCache
operation.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and then try again.ConcurrentModificationException
- Another modification is in progress at this time and it must complete before you can make your change.NotFoundException
- The resource specified in the request was not found. Check the resource, and then try again.UnauthorizedException
- You aren't authorized to perform this operation.InternalFailureException
- An internal AppSync error occurred. Try your request again.public GetDataSourceResult getDataSource(GetDataSourceRequest request)
Retrieves a DataSource
object.
getDataSource
in interface AWSAppSync
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 then try again.ConcurrentModificationException
- Another modification is in progress at this time and it must complete before you can make your change.NotFoundException
- The resource specified in the request was not found. Check the resource, and then try again.UnauthorizedException
- You aren't authorized to perform this operation.InternalFailureException
- An internal AppSync error occurred. Try your request again.public GetDataSourceIntrospectionResult getDataSourceIntrospection(GetDataSourceIntrospectionRequest request)
Retrieves the record of an existing introspection. If the retrieval is successful, the result of the instrospection will also be returned. If the retrieval fails the operation, an error message will be returned instead.
getDataSourceIntrospection
in interface AWSAppSync
getDataSourceIntrospectionRequest
- BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and then try again.NotFoundException
- The resource specified in the request was not found. Check the resource, and then try again.InternalFailureException
- An internal AppSync error occurred. Try your request again.public GetDomainNameResult getDomainName(GetDomainNameRequest request)
Retrieves a custom DomainName
object.
getDomainName
in interface AWSAppSync
getDomainNameRequest
- AccessDeniedException
- You don't have access to perform this operation on this resource.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and then try again.InternalFailureException
- An internal AppSync error occurred. Try your request again.NotFoundException
- The resource specified in the request was not found. Check the resource, and then try again.public GetFunctionResult getFunction(GetFunctionRequest request)
Get a Function
.
getFunction
in interface AWSAppSync
getFunctionRequest
- ConcurrentModificationException
- Another modification is in progress at this time and it must complete before you can make your change.NotFoundException
- The resource specified in the request was not found. Check the resource, and then try again.UnauthorizedException
- You aren't authorized to perform this operation.public GetGraphqlApiResult getGraphqlApi(GetGraphqlApiRequest request)
Retrieves a GraphqlApi
object.
getGraphqlApi
in interface AWSAppSync
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 then try again.NotFoundException
- The resource specified in the request was not found. Check the resource, and then try again.UnauthorizedException
- You aren't authorized to perform this operation.InternalFailureException
- An internal AppSync error occurred. Try your request again.AccessDeniedException
- You don't have access to perform this operation on this resource.public GetGraphqlApiEnvironmentVariablesResult getGraphqlApiEnvironmentVariables(GetGraphqlApiEnvironmentVariablesRequest request)
Retrieves the list of environmental variable key-value pairs associated with an API by its ID value.
getGraphqlApiEnvironmentVariables
in interface AWSAppSync
getGraphqlApiEnvironmentVariablesRequest
- BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and then try again.NotFoundException
- The resource specified in the request was not found. Check the resource, and then try again.UnauthorizedException
- You aren't authorized to perform this operation.InternalFailureException
- An internal AppSync error occurred. Try your request again.AccessDeniedException
- You don't have access to perform this operation on this resource.public GetIntrospectionSchemaResult getIntrospectionSchema(GetIntrospectionSchemaRequest request)
Retrieves the introspection schema for a GraphQL API.
getIntrospectionSchema
in interface AWSAppSync
getIntrospectionSchemaRequest
- GraphQLSchemaException
- The GraphQL schema is not valid.NotFoundException
- The resource specified in the request was not found. Check the resource, and then try again.UnauthorizedException
- You aren't authorized to perform this operation.InternalFailureException
- An internal AppSync error occurred. Try your request again.public GetResolverResult getResolver(GetResolverRequest request)
Retrieves a Resolver
object.
getResolver
in interface AWSAppSync
getResolverRequest
- ConcurrentModificationException
- Another modification is in progress at this time and it must complete before you can make your change.NotFoundException
- The resource specified in the request was not found. Check the resource, and then try again.UnauthorizedException
- You aren't authorized to perform this operation.public GetSchemaCreationStatusResult getSchemaCreationStatus(GetSchemaCreationStatusRequest request)
Retrieves the current status of a schema creation operation.
getSchemaCreationStatus
in interface AWSAppSync
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 then try again.NotFoundException
- The resource specified in the request was not found. Check the resource, and then try again.UnauthorizedException
- You aren't authorized to perform this operation.InternalFailureException
- An internal AppSync error occurred. Try your request again.public GetSourceApiAssociationResult getSourceApiAssociation(GetSourceApiAssociationRequest request)
Retrieves a SourceApiAssociation
object.
getSourceApiAssociation
in interface AWSAppSync
getSourceApiAssociationRequest
- UnauthorizedException
- You aren't authorized to perform this operation.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and then try again.InternalFailureException
- An internal AppSync error occurred. Try your request again.NotFoundException
- The resource specified in the request was not found. Check the resource, and then try again.public GetTypeResult getType(GetTypeRequest request)
Retrieves a Type
object.
getType
in interface AWSAppSync
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 then try again.ConcurrentModificationException
- Another modification is in progress at this time and it must complete before you can make your change.NotFoundException
- The resource specified in the request was not found. Check the resource, and then try again.UnauthorizedException
- You aren't authorized to perform this operation.InternalFailureException
- An internal AppSync error occurred. Try your request again.public ListApiKeysResult listApiKeys(ListApiKeysRequest request)
Lists the API keys for a given API.
API keys are deleted automatically 60 days after they expire. However, they may still be included in the response
until they have actually been deleted. You can safely call DeleteApiKey
to manually delete a key
before it's automatically deleted.
listApiKeys
in interface AWSAppSync
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 then try again.NotFoundException
- The resource specified in the request was not found. Check the resource, and then try again.UnauthorizedException
- You aren't authorized to perform this operation.InternalFailureException
- An internal AppSync error occurred. Try your request again.public ListDataSourcesResult listDataSources(ListDataSourcesRequest request)
Lists the data sources for a given API.
listDataSources
in interface AWSAppSync
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 then try again.NotFoundException
- The resource specified in the request was not found. Check the resource, and then try again.UnauthorizedException
- You aren't authorized to perform this operation.InternalFailureException
- An internal AppSync error occurred. Try your request again.public ListDomainNamesResult listDomainNames(ListDomainNamesRequest request)
Lists multiple custom domain names.
listDomainNames
in interface AWSAppSync
listDomainNamesRequest
- AccessDeniedException
- You don't have access to perform this operation on this resource.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and then try again.InternalFailureException
- An internal AppSync error occurred. Try your request again.public ListFunctionsResult listFunctions(ListFunctionsRequest request)
List multiple functions.
listFunctions
in interface AWSAppSync
listFunctionsRequest
- BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and then try again.NotFoundException
- The resource specified in the request was not found. Check the resource, and then try again.UnauthorizedException
- You aren't authorized to perform this operation.InternalFailureException
- An internal AppSync error occurred. Try your request again.public ListGraphqlApisResult listGraphqlApis(ListGraphqlApisRequest request)
Lists your GraphQL APIs.
listGraphqlApis
in interface AWSAppSync
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 then try again.UnauthorizedException
- You aren't authorized to perform this operation.InternalFailureException
- An internal AppSync error occurred. Try your request again.public ListResolversResult listResolvers(ListResolversRequest request)
Lists the resolvers for a given API and type.
listResolvers
in interface AWSAppSync
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 then try again.NotFoundException
- The resource specified in the request was not found. Check the resource, and then try again.UnauthorizedException
- You aren't authorized to perform this operation.InternalFailureException
- An internal AppSync error occurred. Try your request again.public ListResolversByFunctionResult listResolversByFunction(ListResolversByFunctionRequest request)
List the resolvers that are associated with a specific function.
listResolversByFunction
in interface AWSAppSync
listResolversByFunctionRequest
- BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and then try again.NotFoundException
- The resource specified in the request was not found. Check the resource, and then try again.UnauthorizedException
- You aren't authorized to perform this operation.InternalFailureException
- An internal AppSync error occurred. Try your request again.public ListSourceApiAssociationsResult listSourceApiAssociations(ListSourceApiAssociationsRequest request)
Lists the SourceApiAssociationSummary
data.
listSourceApiAssociations
in interface AWSAppSync
listSourceApiAssociationsRequest
- UnauthorizedException
- You aren't authorized to perform this operation.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and then try again.InternalFailureException
- An internal AppSync error occurred. Try your request again.NotFoundException
- The resource specified in the request was not found. Check the resource, and then try again.public ListTagsForResourceResult listTagsForResource(ListTagsForResourceRequest request)
Lists the tags for a resource.
listTagsForResource
in interface AWSAppSync
listTagsForResourceRequest
- BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and then try again.NotFoundException
- The resource specified in the request was not found. Check the resource, and then try again.LimitExceededException
- The request exceeded a limit. Try your request again.UnauthorizedException
- You aren't authorized to perform this operation.InternalFailureException
- An internal AppSync error occurred. Try your request again.AccessDeniedException
- You don't have access to perform this operation on this resource.public ListTypesResult listTypes(ListTypesRequest request)
Lists the types for a given API.
listTypes
in interface AWSAppSync
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 then try again.ConcurrentModificationException
- Another modification is in progress at this time and it must complete before you can make your change.NotFoundException
- The resource specified in the request was not found. Check the resource, and then try again.UnauthorizedException
- You aren't authorized to perform this operation.InternalFailureException
- An internal AppSync error occurred. Try your request again.public ListTypesByAssociationResult listTypesByAssociation(ListTypesByAssociationRequest request)
Lists Type
objects by the source API association ID.
listTypesByAssociation
in interface AWSAppSync
listTypesByAssociationRequest
- BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and then try again.ConcurrentModificationException
- Another modification is in progress at this time and it must complete before you can make your change.NotFoundException
- The resource specified in the request was not found. Check the resource, and then try again.UnauthorizedException
- You aren't authorized to perform this operation.InternalFailureException
- An internal AppSync error occurred. Try your request again.public PutGraphqlApiEnvironmentVariablesResult putGraphqlApiEnvironmentVariables(PutGraphqlApiEnvironmentVariablesRequest request)
Creates a list of environmental variables in an API by its ID value.
When creating an environmental variable, it must follow the constraints below:
Both JavaScript and VTL templates support environmental variables.
Environmental variables are not evaluated before function invocation.
Environmental variables only support string values.
Any defined value in an environmental variable is considered a string literal and not expanded.
Variable evaluations should ideally be performed in the function code.
When creating an environmental variable key-value pair, it must follow the additional constraints below:
Keys must begin with a letter.
Keys must be at least two characters long.
Keys can only contain letters, numbers, and the underscore character (_).
Values can be up to 512 characters long.
You can configure up to 50 key-value pairs in a GraphQL API.
You can create a list of environmental variables by adding it to the environmentVariables
payload as
a list in the format {"key1":"value1","key2":"value2", …}
. Note that each call of the
PutGraphqlApiEnvironmentVariables
action will result in the overwriting of the existing
environmental variable list of that API. This means the existing environmental variables will be lost. To avoid
this, you must include all existing and new environmental variables in the list each time you call this action.
putGraphqlApiEnvironmentVariables
in interface AWSAppSync
putGraphqlApiEnvironmentVariablesRequest
- BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and then try again.ConcurrentModificationException
- Another modification is in progress at this time and it must complete before you can make your change.NotFoundException
- The resource specified in the request was not found. Check the resource, and then try again.UnauthorizedException
- You aren't authorized to perform this operation.InternalFailureException
- An internal AppSync error occurred. Try your request again.AccessDeniedException
- You don't have access to perform this operation on this resource.public StartDataSourceIntrospectionResult startDataSourceIntrospection(StartDataSourceIntrospectionRequest request)
Creates a new introspection. Returns the introspectionId
of the new introspection after its
creation.
startDataSourceIntrospection
in interface AWSAppSync
startDataSourceIntrospectionRequest
- NotFoundException
- The resource specified in the request was not found. Check the resource, and then try again.UnauthorizedException
- You aren't authorized to perform this operation.InternalFailureException
- An internal AppSync error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and then try 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 AWSAppSync
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 then try again.ConcurrentModificationException
- Another modification is in progress at this time and it must complete before you can make your change.NotFoundException
- The resource specified in the request was not found. Check the resource, and then try again.UnauthorizedException
- You aren't authorized to perform this operation.InternalFailureException
- An internal AppSync error occurred. Try your request again.public StartSchemaMergeResult startSchemaMerge(StartSchemaMergeRequest request)
Initiates a merge operation. Returns a status that shows the result of the merge operation.
startSchemaMerge
in interface AWSAppSync
startSchemaMergeRequest
- UnauthorizedException
- You aren't authorized to perform this operation.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and then try again.InternalFailureException
- An internal AppSync error occurred. Try your request again.NotFoundException
- The resource specified in the request was not found. Check the resource, and then try again.ConcurrentModificationException
- Another modification is in progress at this time and it must complete before you can make your change.public TagResourceResult tagResource(TagResourceRequest request)
Tags a resource with user-supplied tags.
tagResource
in interface AWSAppSync
tagResourceRequest
- BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and then try again.NotFoundException
- The resource specified in the request was not found. Check the resource, and then try again.LimitExceededException
- The request exceeded a limit. Try your request again.UnauthorizedException
- You aren't authorized to perform this operation.InternalFailureException
- An internal AppSync error occurred. Try your request again.AccessDeniedException
- You don't have access to perform this operation on this resource.public UntagResourceResult untagResource(UntagResourceRequest request)
Untags a resource.
untagResource
in interface AWSAppSync
untagResourceRequest
- BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and then try again.NotFoundException
- The resource specified in the request was not found. Check the resource, and then try again.LimitExceededException
- The request exceeded a limit. Try your request again.UnauthorizedException
- You aren't authorized to perform this operation.InternalFailureException
- An internal AppSync error occurred. Try your request again.AccessDeniedException
- You don't have access to perform this operation on this resource.public UpdateApiCacheResult updateApiCache(UpdateApiCacheRequest request)
Updates the cache for the GraphQL API.
updateApiCache
in interface AWSAppSync
updateApiCacheRequest
- Represents the input of a UpdateApiCache
operation.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and then try again.ConcurrentModificationException
- Another modification is in progress at this time and it must complete before you can make your change.NotFoundException
- The resource specified in the request was not found. Check the resource, and then try again.UnauthorizedException
- You aren't authorized to perform this operation.InternalFailureException
- An internal AppSync error occurred. Try your request again.public UpdateApiKeyResult updateApiKey(UpdateApiKeyRequest request)
Updates an API key. You can update the key as long as it's not deleted.
updateApiKey
in interface AWSAppSync
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 then try again.NotFoundException
- The resource specified in the request was not found. Check the resource, and then try again.UnauthorizedException
- You aren't authorized to perform this operation.LimitExceededException
- The request exceeded a limit. Try your request again.InternalFailureException
- An internal AppSync error occurred. Try your request again.ApiKeyValidityOutOfBoundsException
- The API key expiration must be set to a value between 1 and 365 days from creation (for
CreateApiKey
) or from update (for UpdateApiKey
).public UpdateDataSourceResult updateDataSource(UpdateDataSourceRequest request)
Updates a DataSource
object.
updateDataSource
in interface AWSAppSync
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 then try again.ConcurrentModificationException
- Another modification is in progress at this time and it must complete before you can make your change.NotFoundException
- The resource specified in the request was not found. Check the resource, and then try again.UnauthorizedException
- You aren't authorized to perform this operation.InternalFailureException
- An internal AppSync error occurred. Try your request again.public UpdateDomainNameResult updateDomainName(UpdateDomainNameRequest request)
Updates a custom DomainName
object.
updateDomainName
in interface AWSAppSync
updateDomainNameRequest
- AccessDeniedException
- You don't have access to perform this operation on this resource.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and then try again.ConcurrentModificationException
- Another modification is in progress at this time and it must complete before you can make your change.InternalFailureException
- An internal AppSync error occurred. Try your request again.NotFoundException
- The resource specified in the request was not found. Check the resource, and then try again.public UpdateFunctionResult updateFunction(UpdateFunctionRequest request)
Updates a Function
object.
updateFunction
in interface AWSAppSync
updateFunctionRequest
- ConcurrentModificationException
- Another modification is in progress at this time and it must complete before you can make your change.NotFoundException
- The resource specified in the request was not found. Check the resource, and then try again.UnauthorizedException
- You aren't authorized to perform this operation.InternalFailureException
- An internal AppSync error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and then try again.public UpdateGraphqlApiResult updateGraphqlApi(UpdateGraphqlApiRequest request)
Updates a GraphqlApi
object.
updateGraphqlApi
in interface AWSAppSync
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 then try again.ConcurrentModificationException
- Another modification is in progress at this time and it must complete before you can make your change.NotFoundException
- The resource specified in the request was not found. Check the resource, and then try again.UnauthorizedException
- You aren't authorized to perform this operation.InternalFailureException
- An internal AppSync error occurred. Try your request again.AccessDeniedException
- You don't have access to perform this operation on this resource.public UpdateResolverResult updateResolver(UpdateResolverRequest request)
Updates a Resolver
object.
updateResolver
in interface AWSAppSync
updateResolverRequest
- ConcurrentModificationException
- Another modification is in progress at this time and it must complete before you can make your change.NotFoundException
- The resource specified in the request was not found. Check the resource, and then try again.UnauthorizedException
- You aren't authorized to perform this operation.InternalFailureException
- An internal AppSync error occurred. Try your request again.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and then try again.public UpdateSourceApiAssociationResult updateSourceApiAssociation(UpdateSourceApiAssociationRequest request)
Updates some of the configuration choices of a particular source API association.
updateSourceApiAssociation
in interface AWSAppSync
updateSourceApiAssociationRequest
- UnauthorizedException
- You aren't authorized to perform this operation.BadRequestException
- The request is not well formed. For example, a value is invalid or a required field is missing. Check the
field values, and then try again.InternalFailureException
- An internal AppSync error occurred. Try your request again.NotFoundException
- The resource specified in the request was not found. Check the resource, and then try again.ConcurrentModificationException
- Another modification is in progress at this time and it must complete before you can make your change.public UpdateTypeResult updateType(UpdateTypeRequest request)
Updates a Type
object.
updateType
in interface AWSAppSync
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 then try again.ConcurrentModificationException
- Another modification is in progress at this time and it must complete before you can make your change.NotFoundException
- The resource specified in the request was not found. Check the resource, and then try again.UnauthorizedException
- You aren't authorized to perform this operation.InternalFailureException
- An internal 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 AWSAppSync
request
- The originally executed requestpublic void shutdown()
AmazonWebServiceClient
shutdown
in interface AWSAppSync
shutdown
in class AmazonWebServiceClient