{ "version":"2.0", "metadata":{ "apiVersion":"2017-07-25", "endpointPrefix":"appsync", "jsonVersion":"1.1", "protocol":"rest-json", "serviceAbbreviation":"AWSAppSync", "serviceFullName":"AWS AppSync", "serviceId":"AppSync", "signatureVersion":"v4", "signingName":"appsync", "uid":"appsync-2017-07-25" }, "operations":{ "AssociateApi":{ "name":"AssociateApi", "http":{ "method":"POST", "requestUri":"/v1/domainnames/{domainName}/apiassociation" }, "input":{"shape":"AssociateApiRequest"}, "output":{"shape":"AssociateApiResponse"}, "errors":[ {"shape":"AccessDeniedException"}, {"shape":"BadRequestException"}, {"shape":"InternalFailureException"}, {"shape":"NotFoundException"} ], "documentation":"
Maps an endpoint to your custom domain.
" }, "CreateApiCache":{ "name":"CreateApiCache", "http":{ "method":"POST", "requestUri":"/v1/apis/{apiId}/ApiCaches" }, "input":{"shape":"CreateApiCacheRequest"}, "output":{"shape":"CreateApiCacheResponse"}, "errors":[ {"shape":"BadRequestException"}, {"shape":"ConcurrentModificationException"}, {"shape":"NotFoundException"}, {"shape":"UnauthorizedException"}, {"shape":"InternalFailureException"} ], "documentation":"Creates a cache for the GraphQL API.
" }, "CreateApiKey":{ "name":"CreateApiKey", "http":{ "method":"POST", "requestUri":"/v1/apis/{apiId}/apikeys" }, "input":{"shape":"CreateApiKeyRequest"}, "output":{"shape":"CreateApiKeyResponse"}, "errors":[ {"shape":"BadRequestException"}, {"shape":"NotFoundException"}, {"shape":"LimitExceededException"}, {"shape":"UnauthorizedException"}, {"shape":"LimitExceededException"}, {"shape":"InternalFailureException"}, {"shape":"ApiKeyLimitExceededException"}, {"shape":"ApiKeyValidityOutOfBoundsException"} ], "documentation":"Creates a unique key that you can distribute to clients who invoke your API.
" }, "CreateDataSource":{ "name":"CreateDataSource", "http":{ "method":"POST", "requestUri":"/v1/apis/{apiId}/datasources" }, "input":{"shape":"CreateDataSourceRequest"}, "output":{"shape":"CreateDataSourceResponse"}, "errors":[ {"shape":"BadRequestException"}, {"shape":"ConcurrentModificationException"}, {"shape":"NotFoundException"}, {"shape":"UnauthorizedException"}, {"shape":"InternalFailureException"} ], "documentation":"Creates a DataSource
object.
Creates a custom DomainName
object.
Creates a Function
object.
A function is a reusable entity. You can use multiple functions to compose the resolver logic.
" }, "CreateGraphqlApi":{ "name":"CreateGraphqlApi", "http":{ "method":"POST", "requestUri":"/v1/apis" }, "input":{"shape":"CreateGraphqlApiRequest"}, "output":{"shape":"CreateGraphqlApiResponse"}, "errors":[ {"shape":"BadRequestException"}, {"shape":"LimitExceededException"}, {"shape":"ConcurrentModificationException"}, {"shape":"UnauthorizedException"}, {"shape":"InternalFailureException"}, {"shape":"ApiLimitExceededException"} ], "documentation":"Creates a GraphqlApi
object.
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.
" }, "CreateType":{ "name":"CreateType", "http":{ "method":"POST", "requestUri":"/v1/apis/{apiId}/types" }, "input":{"shape":"CreateTypeRequest"}, "output":{"shape":"CreateTypeResponse"}, "errors":[ {"shape":"BadRequestException"}, {"shape":"ConcurrentModificationException"}, {"shape":"NotFoundException"}, {"shape":"UnauthorizedException"}, {"shape":"InternalFailureException"} ], "documentation":"Creates a Type
object.
Deletes an ApiCache
object.
Deletes an API key.
" }, "DeleteDataSource":{ "name":"DeleteDataSource", "http":{ "method":"DELETE", "requestUri":"/v1/apis/{apiId}/datasources/{name}" }, "input":{"shape":"DeleteDataSourceRequest"}, "output":{"shape":"DeleteDataSourceResponse"}, "errors":[ {"shape":"BadRequestException"}, {"shape":"ConcurrentModificationException"}, {"shape":"NotFoundException"}, {"shape":"UnauthorizedException"}, {"shape":"InternalFailureException"} ], "documentation":"Deletes a DataSource
object.
Deletes a custom DomainName
object.
Deletes a Function
.
Deletes a GraphqlApi
object.
Deletes a Resolver
object.
Deletes a Type
object.
Removes an ApiAssociation
object from a custom domain.
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.
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).
" }, "FlushApiCache":{ "name":"FlushApiCache", "http":{ "method":"DELETE", "requestUri":"/v1/apis/{apiId}/FlushCache" }, "input":{"shape":"FlushApiCacheRequest"}, "output":{"shape":"FlushApiCacheResponse"}, "errors":[ {"shape":"BadRequestException"}, {"shape":"ConcurrentModificationException"}, {"shape":"NotFoundException"}, {"shape":"UnauthorizedException"}, {"shape":"InternalFailureException"} ], "documentation":"Flushes an ApiCache
object.
Retrieves an ApiAssociation
object.
Retrieves an ApiCache
object.
Retrieves a DataSource
object.
Retrieves a custom DomainName
object.
Get a Function
.
Retrieves a GraphqlApi
object.
Retrieves the introspection schema for a GraphQL API.
" }, "GetResolver":{ "name":"GetResolver", "http":{ "method":"GET", "requestUri":"/v1/apis/{apiId}/types/{typeName}/resolvers/{fieldName}" }, "input":{"shape":"GetResolverRequest"}, "output":{"shape":"GetResolverResponse"}, "errors":[ {"shape":"ConcurrentModificationException"}, {"shape":"NotFoundException"}, {"shape":"UnauthorizedException"} ], "documentation":"Retrieves a Resolver
object.
Retrieves the current status of a schema creation operation.
" }, "GetType":{ "name":"GetType", "http":{ "method":"GET", "requestUri":"/v1/apis/{apiId}/types/{typeName}" }, "input":{"shape":"GetTypeRequest"}, "output":{"shape":"GetTypeResponse"}, "errors":[ {"shape":"BadRequestException"}, {"shape":"ConcurrentModificationException"}, {"shape":"NotFoundException"}, {"shape":"UnauthorizedException"}, {"shape":"InternalFailureException"} ], "documentation":"Retrieves a Type
object.
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.
Lists the data sources for a given API.
" }, "ListDomainNames":{ "name":"ListDomainNames", "http":{ "method":"GET", "requestUri":"/v1/domainnames" }, "input":{"shape":"ListDomainNamesRequest"}, "output":{"shape":"ListDomainNamesResponse"}, "errors":[ {"shape":"AccessDeniedException"}, {"shape":"BadRequestException"}, {"shape":"InternalFailureException"} ], "documentation":"Lists multiple custom domain names.
" }, "ListFunctions":{ "name":"ListFunctions", "http":{ "method":"GET", "requestUri":"/v1/apis/{apiId}/functions" }, "input":{"shape":"ListFunctionsRequest"}, "output":{"shape":"ListFunctionsResponse"}, "errors":[ {"shape":"BadRequestException"}, {"shape":"NotFoundException"}, {"shape":"UnauthorizedException"}, {"shape":"InternalFailureException"} ], "documentation":"List multiple functions.
" }, "ListGraphqlApis":{ "name":"ListGraphqlApis", "http":{ "method":"GET", "requestUri":"/v1/apis" }, "input":{"shape":"ListGraphqlApisRequest"}, "output":{"shape":"ListGraphqlApisResponse"}, "errors":[ {"shape":"BadRequestException"}, {"shape":"UnauthorizedException"}, {"shape":"InternalFailureException"} ], "documentation":"Lists your GraphQL APIs.
" }, "ListResolvers":{ "name":"ListResolvers", "http":{ "method":"GET", "requestUri":"/v1/apis/{apiId}/types/{typeName}/resolvers" }, "input":{"shape":"ListResolversRequest"}, "output":{"shape":"ListResolversResponse"}, "errors":[ {"shape":"BadRequestException"}, {"shape":"NotFoundException"}, {"shape":"UnauthorizedException"}, {"shape":"InternalFailureException"} ], "documentation":"Lists the resolvers for a given API and type.
" }, "ListResolversByFunction":{ "name":"ListResolversByFunction", "http":{ "method":"GET", "requestUri":"/v1/apis/{apiId}/functions/{functionId}/resolvers" }, "input":{"shape":"ListResolversByFunctionRequest"}, "output":{"shape":"ListResolversByFunctionResponse"}, "errors":[ {"shape":"BadRequestException"}, {"shape":"NotFoundException"}, {"shape":"UnauthorizedException"}, {"shape":"InternalFailureException"} ], "documentation":"List the resolvers that are associated with a specific function.
" }, "ListTagsForResource":{ "name":"ListTagsForResource", "http":{ "method":"GET", "requestUri":"/v1/tags/{resourceArn}" }, "input":{"shape":"ListTagsForResourceRequest"}, "output":{"shape":"ListTagsForResourceResponse"}, "errors":[ {"shape":"BadRequestException"}, {"shape":"NotFoundException"}, {"shape":"LimitExceededException"}, {"shape":"UnauthorizedException"}, {"shape":"InternalFailureException"}, {"shape":"AccessDeniedException"} ], "documentation":"Lists the tags for a resource.
" }, "ListTypes":{ "name":"ListTypes", "http":{ "method":"GET", "requestUri":"/v1/apis/{apiId}/types" }, "input":{"shape":"ListTypesRequest"}, "output":{"shape":"ListTypesResponse"}, "errors":[ {"shape":"BadRequestException"}, {"shape":"ConcurrentModificationException"}, {"shape":"NotFoundException"}, {"shape":"UnauthorizedException"}, {"shape":"InternalFailureException"} ], "documentation":"Lists the types for a given API.
" }, "StartSchemaCreation":{ "name":"StartSchemaCreation", "http":{ "method":"POST", "requestUri":"/v1/apis/{apiId}/schemacreation" }, "input":{"shape":"StartSchemaCreationRequest"}, "output":{"shape":"StartSchemaCreationResponse"}, "errors":[ {"shape":"BadRequestException"}, {"shape":"ConcurrentModificationException"}, {"shape":"NotFoundException"}, {"shape":"UnauthorizedException"}, {"shape":"InternalFailureException"} ], "documentation":"Adds a new schema to your GraphQL API.
This operation is asynchronous. Use to determine when it has completed.
" }, "TagResource":{ "name":"TagResource", "http":{ "method":"POST", "requestUri":"/v1/tags/{resourceArn}" }, "input":{"shape":"TagResourceRequest"}, "output":{"shape":"TagResourceResponse"}, "errors":[ {"shape":"BadRequestException"}, {"shape":"NotFoundException"}, {"shape":"LimitExceededException"}, {"shape":"UnauthorizedException"}, {"shape":"InternalFailureException"}, {"shape":"AccessDeniedException"} ], "documentation":"Tags a resource with user-supplied tags.
" }, "UntagResource":{ "name":"UntagResource", "http":{ "method":"DELETE", "requestUri":"/v1/tags/{resourceArn}" }, "input":{"shape":"UntagResourceRequest"}, "output":{"shape":"UntagResourceResponse"}, "errors":[ {"shape":"BadRequestException"}, {"shape":"NotFoundException"}, {"shape":"LimitExceededException"}, {"shape":"UnauthorizedException"}, {"shape":"InternalFailureException"}, {"shape":"AccessDeniedException"} ], "documentation":"Untags a resource.
" }, "UpdateApiCache":{ "name":"UpdateApiCache", "http":{ "method":"POST", "requestUri":"/v1/apis/{apiId}/ApiCaches/update" }, "input":{"shape":"UpdateApiCacheRequest"}, "output":{"shape":"UpdateApiCacheResponse"}, "errors":[ {"shape":"BadRequestException"}, {"shape":"ConcurrentModificationException"}, {"shape":"NotFoundException"}, {"shape":"UnauthorizedException"}, {"shape":"InternalFailureException"} ], "documentation":"Updates the cache for the GraphQL API.
" }, "UpdateApiKey":{ "name":"UpdateApiKey", "http":{ "method":"POST", "requestUri":"/v1/apis/{apiId}/apikeys/{id}" }, "input":{"shape":"UpdateApiKeyRequest"}, "output":{"shape":"UpdateApiKeyResponse"}, "errors":[ {"shape":"BadRequestException"}, {"shape":"NotFoundException"}, {"shape":"UnauthorizedException"}, {"shape":"LimitExceededException"}, {"shape":"InternalFailureException"}, {"shape":"ApiKeyValidityOutOfBoundsException"} ], "documentation":"Updates an API key. You can update the key as long as it's not deleted.
" }, "UpdateDataSource":{ "name":"UpdateDataSource", "http":{ "method":"POST", "requestUri":"/v1/apis/{apiId}/datasources/{name}" }, "input":{"shape":"UpdateDataSourceRequest"}, "output":{"shape":"UpdateDataSourceResponse"}, "errors":[ {"shape":"BadRequestException"}, {"shape":"ConcurrentModificationException"}, {"shape":"NotFoundException"}, {"shape":"UnauthorizedException"}, {"shape":"InternalFailureException"} ], "documentation":"Updates a DataSource
object.
Updates a custom DomainName
object.
Updates a Function
object.
Updates a GraphqlApi
object.
Updates a Resolver
object.
Updates a Type
object.
You don't have access to perform this operation on this resource.
", "error":{"httpStatusCode":403}, "exception":true }, "AdditionalAuthenticationProvider":{ "type":"structure", "members":{ "authenticationType":{ "shape":"AuthenticationType", "documentation":"The authentication type: API key, Identity and Access Management (IAM), OpenID Connect (OIDC), Amazon Cognito user pools, or Lambda.
" }, "openIDConnectConfig":{ "shape":"OpenIDConnectConfig", "documentation":"The OIDC configuration.
" }, "userPoolConfig":{ "shape":"CognitoUserPoolConfig", "documentation":"The Amazon Cognito user pool configuration.
" }, "lambdaAuthorizerConfig":{ "shape":"LambdaAuthorizerConfig", "documentation":"Configuration for Lambda function authorization.
" } }, "documentation":"Describes an additional authentication provider.
" }, "AdditionalAuthenticationProviders":{ "type":"list", "member":{"shape":"AdditionalAuthenticationProvider"} }, "ApiAssociation":{ "type":"structure", "members":{ "domainName":{ "shape":"DomainName", "documentation":"The domain name.
" }, "apiId":{ "shape":"String", "documentation":"The API ID.
" }, "associationStatus":{ "shape":"AssociationStatus", "documentation":"Identifies the status of an association.
PROCESSING: The API association is being created. You cannot modify association requests during processing.
SUCCESS: The API association was successful. You can modify associations after success.
FAILED: The API association has failed. You can modify associations after failure.
Details about the last deployment status.
" } }, "documentation":"Describes an ApiAssociation
object.
TTL in seconds for cache entries.
Valid values are 1–3,600 seconds.
" }, "apiCachingBehavior":{ "shape":"ApiCachingBehavior", "documentation":"Caching behavior.
FULL_REQUEST_CACHING: All requests are fully cached.
PER_RESOLVER_CACHING: Individual resolvers that you specify are cached.
Transit encryption flag when connecting to cache. You cannot update this setting after creation.
" }, "atRestEncryptionEnabled":{ "shape":"Boolean", "documentation":"At-rest encryption flag for cache. You cannot update this setting after creation.
" }, "type":{ "shape":"ApiCacheType", "documentation":"The cache instance type. Valid values are
SMALL
MEDIUM
LARGE
XLARGE
LARGE_2X
LARGE_4X
LARGE_8X
(not available in all regions)
LARGE_12X
Historically, instance types were identified by an EC2-style value. As of July 2020, this is deprecated, and the generic identifiers above should be used.
The following legacy instance types are available, but their use is discouraged:
T2_SMALL: A t2.small instance type.
T2_MEDIUM: A t2.medium instance type.
R4_LARGE: A r4.large instance type.
R4_XLARGE: A r4.xlarge instance type.
R4_2XLARGE: A r4.2xlarge instance type.
R4_4XLARGE: A r4.4xlarge instance type.
R4_8XLARGE: A r4.8xlarge instance type.
The cache instance status.
AVAILABLE: The instance is available for use.
CREATING: The instance is currently creating.
DELETING: The instance is currently deleting.
MODIFYING: The instance is currently modifying.
FAILED: The instance has failed creation.
The ApiCache
object.
The API key ID.
" }, "description":{ "shape":"String", "documentation":"A description of the purpose of the API key.
" }, "expires":{ "shape":"Long", "documentation":"The time after which the API key expires. The date is represented as seconds since the epoch, rounded down to the nearest hour.
" }, "deletes":{ "shape":"Long", "documentation":"The time after which the API key is deleted. The date is represented as seconds since the epoch, rounded down to the nearest hour.
" } }, "documentation":"Describes an API key.
Customers invoke AppSync GraphQL API operations with API keys as an identity mechanism. There are two key versions:
da1: We introduced this version at launch in November 2017. These keys always expire after 7 days. Amazon DynamoDB TTL manages key expiration. These keys ceased to be valid after February 21, 2018, and they should no longer be used.
ListApiKeys
returns the expiration time in milliseconds.
CreateApiKey
returns the expiration time in milliseconds.
UpdateApiKey
is not available for this key version.
DeleteApiKey
deletes the item from the table.
Expiration is stored in DynamoDB as milliseconds. This results in a bug where keys are not automatically deleted because DynamoDB expects the TTL to be stored in seconds. As a one-time action, we deleted these keys from the table on February 21, 2018.
da2: We introduced this version in February 2018 when AppSync added support to extend key expiration.
ListApiKeys
returns the expiration time and deletion time in seconds.
CreateApiKey
returns the expiration time and deletion time in seconds and accepts a user-provided expiration time in seconds.
UpdateApiKey
returns the expiration time and and deletion time in seconds and accepts a user-provided expiration time in seconds. Expired API keys are kept for 60 days after the expiration time. You can update the key expiration time as long as the key isn't deleted.
DeleteApiKey
deletes the item from the table.
Expiration is stored in DynamoDB as seconds. After the expiration time, using the key to authenticate will fail. However, you can reinstate the key before deletion.
Deletion is stored in DynamoDB as seconds. The key is deleted after deletion time.
The API key exceeded a limit. Try your request again.
", "error":{"httpStatusCode":400}, "exception":true }, "ApiKeyValidityOutOfBoundsException":{ "type":"structure", "members":{ "message":{"shape":"String"} }, "documentation":"The API key expiration must be set to a value between 1 and 365 days from creation (for CreateApiKey
) or from update (for UpdateApiKey
).
The GraphQL API exceeded a limit. Try your request again.
", "error":{"httpStatusCode":400}, "exception":true }, "AppSyncRuntime":{ "type":"structure", "required":[ "name", "runtimeVersion" ], "members":{ "name":{ "shape":"RuntimeName", "documentation":"The name
of the runtime to use. Currently, the only allowed value is APPSYNC_JS
.
The version
of the runtime to use. Currently, the only allowed version is 1.0.0
.
Describes a runtime used by an Amazon Web Services AppSync pipeline resolver or Amazon Web Services AppSync function. Specifies the name and version of the runtime to use. Note that if a runtime is specified, code must also be specified.
" }, "AssociateApiRequest":{ "type":"structure", "required":[ "domainName", "apiId" ], "members":{ "domainName":{ "shape":"DomainName", "documentation":"The domain name.
", "location":"uri", "locationName":"domainName" }, "apiId":{ "shape":"String", "documentation":"The API ID.
" } } }, "AssociateApiResponse":{ "type":"structure", "members":{ "apiAssociation":{ "shape":"ApiAssociation", "documentation":"The ApiAssociation
object.
The authorization type that the HTTP endpoint requires.
AWS_IAM: The authorization type is Signature Version 4 (SigV4).
The Identity and Access Management (IAM) settings.
" } }, "documentation":"The authorization configuration in case the HTTP endpoint requires authorization.
" }, "AuthorizationType":{ "type":"string", "enum":["AWS_IAM"] }, "AwsIamConfig":{ "type":"structure", "members":{ "signingRegion":{ "shape":"String", "documentation":"The signing Amazon Web Services Region for IAM authorization.
" }, "signingServiceName":{ "shape":"String", "documentation":"The signing service name for IAM authorization.
" } }, "documentation":"The Identity and Access Management (IAM) configuration.
" }, "BadRequestDetail":{ "type":"structure", "members":{ "codeErrors":{ "shape":"CodeErrors", "documentation":"Contains the list of errors in the request.
" } }, "documentation":"Provides further details for the reason behind the bad request. For reason type CODE_ERROR
, the detail will contain a list of code errors.
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.
", "error":{"httpStatusCode":400}, "exception":true }, "BadRequestReason":{ "type":"string", "documentation":"Provides context for the cause of the bad request. The only supported value is CODE_ERROR
.
The TTL in seconds for a resolver that has caching activated.
Valid values are 1–3,600 seconds.
" }, "cachingKeys":{ "shape":"CachingKeys", "documentation":"The caching keys for a resolver that has caching activated.
Valid values are entries from the $context.arguments
, $context.source
, and $context.identity
maps.
The caching configuration for a resolver that has caching activated.
" }, "CachingKeys":{ "type":"list", "member":{"shape":"String"} }, "CertificateArn":{ "type":"string", "max":2048, "min":20, "pattern":"^arn:[a-z-]*:(acm|iam):[a-z0-9-]*:\\d{12}:(certificate|server-certificate)/[0-9A-Za-z_/-]*$" }, "Code":{ "type":"string", "max":32768, "min":1 }, "CodeError":{ "type":"structure", "members":{ "errorType":{ "shape":"String", "documentation":"The type of code error.
Examples include, but aren't limited to: LINT_ERROR
, PARSER_ERROR
.
A user presentable error.
Examples include, but aren't limited to: Parsing error: Unterminated string literal
.
The line, column, and span location of the error in the code.
" } }, "documentation":"Describes an AppSync error.
" }, "CodeErrorColumn":{"type":"integer"}, "CodeErrorLine":{"type":"integer"}, "CodeErrorLocation":{ "type":"structure", "members":{ "line":{ "shape":"CodeErrorLine", "documentation":"The line number in the code. Defaults to 0
if unknown.
The column number in the code. Defaults to 0
if unknown.
The span/length of the error. Defaults to -1
if unknown.
Describes the location of the error in a code sample.
" }, "CodeErrorSpan":{"type":"integer"}, "CodeErrors":{ "type":"list", "member":{"shape":"CodeError"} }, "CognitoUserPoolConfig":{ "type":"structure", "required":[ "userPoolId", "awsRegion" ], "members":{ "userPoolId":{ "shape":"String", "documentation":"The user pool ID.
" }, "awsRegion":{ "shape":"String", "documentation":"The Amazon Web Services Region in which the user pool was created.
" }, "appIdClientRegex":{ "shape":"String", "documentation":"A regular expression for validating the incoming Amazon Cognito user pool app client ID. If this value isn't set, no filtering is applied.
" } }, "documentation":"Describes an Amazon Cognito user pool configuration.
" }, "ConcurrentModificationException":{ "type":"structure", "members":{ "message":{"shape":"ErrorMessage"} }, "documentation":"Another modification is in progress at this time and it must complete before you can make your change.
", "error":{"httpStatusCode":409}, "exception":true }, "ConflictDetectionType":{ "type":"string", "enum":[ "VERSION", "NONE" ] }, "ConflictHandlerType":{ "type":"string", "enum":[ "OPTIMISTIC_CONCURRENCY", "LAMBDA", "AUTOMERGE", "NONE" ] }, "Context":{ "type":"string", "max":28000, "min":2, "pattern":"^[\\s\\S]*$" }, "CreateApiCacheRequest":{ "type":"structure", "required":[ "apiId", "ttl", "apiCachingBehavior", "type" ], "members":{ "apiId":{ "shape":"String", "documentation":"The GraphQL API ID.
", "location":"uri", "locationName":"apiId" }, "ttl":{ "shape":"Long", "documentation":"TTL in seconds for cache entries.
Valid values are 1–3,600 seconds.
" }, "transitEncryptionEnabled":{ "shape":"Boolean", "documentation":"Transit encryption flag when connecting to cache. You cannot update this setting after creation.
" }, "atRestEncryptionEnabled":{ "shape":"Boolean", "documentation":"At-rest encryption flag for cache. You cannot update this setting after creation.
" }, "apiCachingBehavior":{ "shape":"ApiCachingBehavior", "documentation":"Caching behavior.
FULL_REQUEST_CACHING: All requests are fully cached.
PER_RESOLVER_CACHING: Individual resolvers that you specify are cached.
The cache instance type. Valid values are
SMALL
MEDIUM
LARGE
XLARGE
LARGE_2X
LARGE_4X
LARGE_8X
(not available in all regions)
LARGE_12X
Historically, instance types were identified by an EC2-style value. As of July 2020, this is deprecated, and the generic identifiers above should be used.
The following legacy instance types are available, but their use is discouraged:
T2_SMALL: A t2.small instance type.
T2_MEDIUM: A t2.medium instance type.
R4_LARGE: A r4.large instance type.
R4_XLARGE: A r4.xlarge instance type.
R4_2XLARGE: A r4.2xlarge instance type.
R4_4XLARGE: A r4.4xlarge instance type.
R4_8XLARGE: A r4.8xlarge instance type.
Represents the input of a CreateApiCache
operation.
The ApiCache
object.
Represents the output of a CreateApiCache
operation.
The ID for your GraphQL API.
", "location":"uri", "locationName":"apiId" }, "description":{ "shape":"String", "documentation":"A description of the purpose of the API key.
" }, "expires":{ "shape":"Long", "documentation":"From the creation time, the time after which the API key expires. The date is represented as seconds since the epoch, rounded down to the nearest hour. The default value for this parameter is 7 days from creation time. For more information, see .
" } } }, "CreateApiKeyResponse":{ "type":"structure", "members":{ "apiKey":{ "shape":"ApiKey", "documentation":"The API key.
" } } }, "CreateDataSourceRequest":{ "type":"structure", "required":[ "apiId", "name", "type" ], "members":{ "apiId":{ "shape":"String", "documentation":"The API ID for the GraphQL API for the DataSource
.
A user-supplied name for the DataSource
.
A description of the DataSource
.
The type of the DataSource
.
The Identity and Access Management (IAM) service role Amazon Resource Name (ARN) for the data source. The system assumes this role when accessing the data source.
" }, "dynamodbConfig":{ "shape":"DynamodbDataSourceConfig", "documentation":"Amazon DynamoDB settings.
" }, "lambdaConfig":{ "shape":"LambdaDataSourceConfig", "documentation":"Lambda settings.
" }, "elasticsearchConfig":{ "shape":"ElasticsearchDataSourceConfig", "documentation":"Amazon OpenSearch Service settings.
As of September 2021, Amazon Elasticsearch service is Amazon OpenSearch Service. This configuration is deprecated. For new data sources, use CreateDataSourceRequest$openSearchServiceConfig to create an OpenSearch data source.
" }, "openSearchServiceConfig":{ "shape":"OpenSearchServiceDataSourceConfig", "documentation":"Amazon OpenSearch Service settings.
" }, "httpConfig":{ "shape":"HttpDataSourceConfig", "documentation":"HTTP endpoint settings.
" }, "relationalDatabaseConfig":{ "shape":"RelationalDatabaseDataSourceConfig", "documentation":"Relational database settings.
" } } }, "CreateDataSourceResponse":{ "type":"structure", "members":{ "dataSource":{ "shape":"DataSource", "documentation":"The DataSource
object.
The domain name.
" }, "certificateArn":{ "shape":"CertificateArn", "documentation":"The Amazon Resource Name (ARN) of the certificate. This can be an Certificate Manager (ACM) certificate or an Identity and Access Management (IAM) server certificate.
" }, "description":{ "shape":"Description", "documentation":"A description of the DomainName
.
The configuration for the DomainName
.
The GraphQL API ID.
", "location":"uri", "locationName":"apiId" }, "name":{ "shape":"ResourceName", "documentation":"The Function
name. The function name does not have to be unique.
The Function
description.
The Function
DataSource
name.
The Function
request mapping template. Functions support only the 2018-05-29 version of the request mapping template.
The Function
response mapping template.
The version
of the request mapping template. Currently, the supported value is 2018-05-29. Note that when using VTL and mapping templates, the functionVersion
is required.
The maximum batching size for a resolver.
" }, "runtime":{"shape":"AppSyncRuntime"}, "code":{ "shape":"Code", "documentation":"The function
code that contains the request and response functions. When code is used, the runtime
is required. The runtime
value must be APPSYNC_JS
.
The Function
object.
A user-supplied name for the GraphqlApi
.
The Amazon CloudWatch Logs configuration.
" }, "authenticationType":{ "shape":"AuthenticationType", "documentation":"The authentication type: API key, Identity and Access Management (IAM), OpenID Connect (OIDC), Amazon Cognito user pools, or Lambda.
" }, "userPoolConfig":{ "shape":"UserPoolConfig", "documentation":"The Amazon Cognito user pool configuration.
" }, "openIDConnectConfig":{ "shape":"OpenIDConnectConfig", "documentation":"The OIDC configuration.
" }, "tags":{ "shape":"TagMap", "documentation":"A TagMap
object.
A list of additional authentication providers for the GraphqlApi
API.
A flag indicating whether to use X-Ray tracing for the GraphqlApi
.
Configuration for Lambda function authorization.
" } } }, "CreateGraphqlApiResponse":{ "type":"structure", "members":{ "graphqlApi":{ "shape":"GraphqlApi", "documentation":"The GraphqlApi
.
The ID for the GraphQL API for which the resolver is being created.
", "location":"uri", "locationName":"apiId" }, "typeName":{ "shape":"ResourceName", "documentation":"The name of the Type
.
The name of the field to attach the resolver to.
" }, "dataSourceName":{ "shape":"ResourceName", "documentation":"The name of the data source for which the resolver is being created.
" }, "requestMappingTemplate":{ "shape":"MappingTemplate", "documentation":"The mapping template to use for requests.
A resolver uses a request mapping template to convert a GraphQL expression into a format that a data source can understand. Mapping templates are written in Apache Velocity Template Language (VTL).
VTL request mapping templates are optional when using an Lambda data source. For all other data sources, VTL request and response mapping templates are required.
" }, "responseMappingTemplate":{ "shape":"MappingTemplate", "documentation":"The mapping template to use for responses from the data source.
" }, "kind":{ "shape":"ResolverKind", "documentation":"The resolver type.
UNIT: A UNIT resolver type. A UNIT resolver is the default resolver type. You can use a UNIT resolver to run a GraphQL query against a single data source.
PIPELINE: A PIPELINE resolver type. You can use a PIPELINE resolver to invoke a series of Function
objects in a serial manner. You can use a pipeline resolver to run a GraphQL query against multiple data sources.
The PipelineConfig
.
The SyncConfig
for a resolver attached to a versioned data source.
The caching configuration for the resolver.
" }, "maxBatchSize":{ "shape":"MaxBatchSize", "documentation":"The maximum batching size for a resolver.
" }, "runtime":{"shape":"AppSyncRuntime"}, "code":{ "shape":"Code", "documentation":"The resolver
code that contains the request and response functions. When code is used, the runtime
is required. The runtime
value must be APPSYNC_JS
.
The Resolver
object.
The API ID.
", "location":"uri", "locationName":"apiId" }, "definition":{ "shape":"String", "documentation":"The type definition, in GraphQL Schema Definition Language (SDL) format.
For more information, see the GraphQL SDL documentation.
" }, "format":{ "shape":"TypeDefinitionFormat", "documentation":"The type format: SDL or JSON.
" } } }, "CreateTypeResponse":{ "type":"structure", "members":{ "type":{ "shape":"Type", "documentation":"The Type
object.
The data source Amazon Resource Name (ARN).
" }, "name":{ "shape":"ResourceName", "documentation":"The name of the data source.
" }, "description":{ "shape":"String", "documentation":"The description of the data source.
" }, "type":{ "shape":"DataSourceType", "documentation":"The type of the data source.
AWS_LAMBDA: The data source is an Lambda function.
AMAZON_DYNAMODB: The data source is an Amazon DynamoDB table.
AMAZON_ELASTICSEARCH: The data source is an Amazon OpenSearch Service domain.
AMAZON_OPENSEARCH_SERVICE: The data source is an Amazon OpenSearch Service domain.
NONE: There is no data source. Use this type when you want to invoke a GraphQL operation without connecting to a data source, such as when you're performing data transformation with resolvers or invoking a subscription from a mutation.
HTTP: The data source is an HTTP endpoint.
RELATIONAL_DATABASE: The data source is a relational database.
The Identity and Access Management (IAM) service role Amazon Resource Name (ARN) for the data source. The system assumes this role when accessing the data source.
" }, "dynamodbConfig":{ "shape":"DynamodbDataSourceConfig", "documentation":"DynamoDB settings.
" }, "lambdaConfig":{ "shape":"LambdaDataSourceConfig", "documentation":"Lambda settings.
" }, "elasticsearchConfig":{ "shape":"ElasticsearchDataSourceConfig", "documentation":"Amazon OpenSearch Service settings.
" }, "openSearchServiceConfig":{ "shape":"OpenSearchServiceDataSourceConfig", "documentation":"Amazon OpenSearch Service settings.
" }, "httpConfig":{ "shape":"HttpDataSourceConfig", "documentation":"HTTP endpoint settings.
" }, "relationalDatabaseConfig":{ "shape":"RelationalDatabaseDataSourceConfig", "documentation":"Relational database settings.
" } }, "documentation":"Describes a data source.
" }, "DataSourceType":{ "type":"string", "enum":[ "AWS_LAMBDA", "AMAZON_DYNAMODB", "AMAZON_ELASTICSEARCH", "NONE", "HTTP", "RELATIONAL_DATABASE", "AMAZON_OPENSEARCH_SERVICE" ] }, "DataSources":{ "type":"list", "member":{"shape":"DataSource"} }, "DefaultAction":{ "type":"string", "enum":[ "ALLOW", "DENY" ] }, "DeleteApiCacheRequest":{ "type":"structure", "required":["apiId"], "members":{ "apiId":{ "shape":"String", "documentation":"The API ID.
", "location":"uri", "locationName":"apiId" } }, "documentation":"Represents the input of a DeleteApiCache
operation.
Represents the output of a DeleteApiCache
operation.
The API ID.
", "location":"uri", "locationName":"apiId" }, "id":{ "shape":"String", "documentation":"The ID for the API key.
", "location":"uri", "locationName":"id" } } }, "DeleteApiKeyResponse":{ "type":"structure", "members":{ } }, "DeleteDataSourceRequest":{ "type":"structure", "required":[ "apiId", "name" ], "members":{ "apiId":{ "shape":"String", "documentation":"The API ID.
", "location":"uri", "locationName":"apiId" }, "name":{ "shape":"ResourceName", "documentation":"The name of the data source.
", "location":"uri", "locationName":"name" } } }, "DeleteDataSourceResponse":{ "type":"structure", "members":{ } }, "DeleteDomainNameRequest":{ "type":"structure", "required":["domainName"], "members":{ "domainName":{ "shape":"DomainName", "documentation":"The domain name.
", "location":"uri", "locationName":"domainName" } } }, "DeleteDomainNameResponse":{ "type":"structure", "members":{ } }, "DeleteFunctionRequest":{ "type":"structure", "required":[ "apiId", "functionId" ], "members":{ "apiId":{ "shape":"String", "documentation":"The GraphQL API ID.
", "location":"uri", "locationName":"apiId" }, "functionId":{ "shape":"ResourceName", "documentation":"The Function
ID.
The API ID.
", "location":"uri", "locationName":"apiId" } } }, "DeleteGraphqlApiResponse":{ "type":"structure", "members":{ } }, "DeleteResolverRequest":{ "type":"structure", "required":[ "apiId", "typeName", "fieldName" ], "members":{ "apiId":{ "shape":"String", "documentation":"The API ID.
", "location":"uri", "locationName":"apiId" }, "typeName":{ "shape":"ResourceName", "documentation":"The name of the resolver type.
", "location":"uri", "locationName":"typeName" }, "fieldName":{ "shape":"ResourceName", "documentation":"The resolver field name.
", "location":"uri", "locationName":"fieldName" } } }, "DeleteResolverResponse":{ "type":"structure", "members":{ } }, "DeleteTypeRequest":{ "type":"structure", "required":[ "apiId", "typeName" ], "members":{ "apiId":{ "shape":"String", "documentation":"The API ID.
", "location":"uri", "locationName":"apiId" }, "typeName":{ "shape":"ResourceName", "documentation":"The type name.
", "location":"uri", "locationName":"typeName" } } }, "DeleteTypeResponse":{ "type":"structure", "members":{ } }, "DeltaSyncConfig":{ "type":"structure", "members":{ "baseTableTTL":{ "shape":"Long", "documentation":"The number of minutes that an Item is stored in the data source.
" }, "deltaSyncTableName":{ "shape":"String", "documentation":"The Delta Sync table name.
" }, "deltaSyncTableTTL":{ "shape":"Long", "documentation":"The number of minutes that a Delta Sync log entry is stored in the Delta Sync table.
" } }, "documentation":"Describes a Delta Sync configuration.
" }, "Description":{ "type":"string", "max":255, "min":0, "pattern":"^.*$" }, "DisassociateApiRequest":{ "type":"structure", "required":["domainName"], "members":{ "domainName":{ "shape":"DomainName", "documentation":"The domain name.
", "location":"uri", "locationName":"domainName" } } }, "DisassociateApiResponse":{ "type":"structure", "members":{ } }, "DomainName":{ "type":"string", "max":253, "min":1, "pattern":"^(\\*[\\w\\d-]*\\.)?([\\w\\d-]+\\.)+[\\w\\d-]+$" }, "DomainNameConfig":{ "type":"structure", "members":{ "domainName":{ "shape":"DomainName", "documentation":"The domain name.
" }, "description":{ "shape":"Description", "documentation":"A description of the DomainName
configuration.
The Amazon Resource Name (ARN) of the certificate. This can be an Certificate Manager (ACM) certificate or an Identity and Access Management (IAM) server certificate.
" }, "appsyncDomainName":{ "shape":"String", "documentation":"The domain name that AppSync provides.
" }, "hostedZoneId":{ "shape":"String", "documentation":"The ID of your Amazon Route 53 hosted zone.
" } }, "documentation":"Describes a configuration for a custom domain.
" }, "DomainNameConfigs":{ "type":"list", "member":{"shape":"DomainNameConfig"} }, "DynamodbDataSourceConfig":{ "type":"structure", "required":[ "tableName", "awsRegion" ], "members":{ "tableName":{ "shape":"String", "documentation":"The table name.
" }, "awsRegion":{ "shape":"String", "documentation":"The Amazon Web Services Region.
" }, "useCallerCredentials":{ "shape":"Boolean", "documentation":"Set to TRUE to use Amazon Cognito credentials with this data source.
" }, "deltaSyncConfig":{ "shape":"DeltaSyncConfig", "documentation":"The DeltaSyncConfig
for a versioned data source.
Set to TRUE to use Conflict Detection and Resolution with this data source.
" } }, "documentation":"Describes an Amazon DynamoDB data source configuration.
" }, "ElasticsearchDataSourceConfig":{ "type":"structure", "required":[ "endpoint", "awsRegion" ], "members":{ "endpoint":{ "shape":"String", "documentation":"The endpoint.
" }, "awsRegion":{ "shape":"String", "documentation":"The Amazon Web Services Region.
" } }, "documentation":"Describes an OpenSearch data source configuration.
As of September 2021, Amazon Elasticsearch service is Amazon OpenSearch Service. This configuration is deprecated. For new data sources, use OpenSearchServiceDataSourceConfig to specify an OpenSearch data source.
" }, "ErrorDetail":{ "type":"structure", "members":{ "message":{ "shape":"ErrorMessage", "documentation":"The error payload.
" } }, "documentation":"Contains the list of errors generated. When using JavaScript, this will apply to the request or response function evaluation.
" }, "ErrorMessage":{"type":"string"}, "EvaluateCodeErrorDetail":{ "type":"structure", "members":{ "message":{ "shape":"ErrorMessage", "documentation":"The error payload.
" }, "codeErrors":{ "shape":"CodeErrors", "documentation":"Contains the list of CodeError
objects.
Contains the list of errors from a code evaluation response.
" }, "EvaluateCodeRequest":{ "type":"structure", "required":[ "runtime", "code", "context" ], "members":{ "runtime":{ "shape":"AppSyncRuntime", "documentation":"The runtime to be used when evaluating the code. Currently, only the APPSYNC_JS
runtime is supported.
The code definition to be evaluated. Note that code
and runtime
are both required for this action. The runtime
value must be APPSYNC_JS
.
The map that holds all of the contextual information for your resolver invocation. A context
is required for this action.
The function within the code to be evaluated. If provided, the valid values are request
and response
.
The result of the evaluation operation.
" }, "error":{ "shape":"EvaluateCodeErrorDetail", "documentation":"Contains the payload of the response error.
" }, "logs":{ "shape":"Logs", "documentation":"A list of logs that were generated by calls to util.log.info
and util.log.error
in the evaluated code.
The mapping template; this can be a request or response template. A template
is required for this action.
The map that holds all of the contextual information for your resolver invocation. A context
is required for this action.
The mapping template; this can be a request or response template.
" }, "error":{ "shape":"ErrorDetail", "documentation":"The ErrorDetail
object.
A list of logs that were generated by calls to util.log.info
and util.log.error
in the evaluated code.
The API ID.
", "location":"uri", "locationName":"apiId" } }, "documentation":"Represents the input of a FlushApiCache
operation.
Represents the output of a FlushApiCache
operation.
A unique ID representing the Function
object.
The Amazon Resource Name (ARN) of the Function
object.
The name of the Function
object.
The Function
description.
The name of the DataSource
.
The Function
request mapping template. Functions support only the 2018-05-29 version of the request mapping template.
The Function
response mapping template.
The version of the request mapping template. Currently, only the 2018-05-29 version of the template is supported.
" }, "syncConfig":{"shape":"SyncConfig"}, "maxBatchSize":{ "shape":"MaxBatchSize", "documentation":"The maximum batching size for a resolver.
" }, "runtime":{"shape":"AppSyncRuntime"}, "code":{ "shape":"Code", "documentation":"The function
code that contains the request and response functions. When code is used, the runtime
is required. The runtime
value must be APPSYNC_JS
.
A function is a reusable entity. You can use multiple functions to compose the resolver logic.
" }, "Functions":{ "type":"list", "member":{"shape":"FunctionConfiguration"} }, "FunctionsIds":{ "type":"list", "member":{"shape":"String"} }, "GetApiAssociationRequest":{ "type":"structure", "required":["domainName"], "members":{ "domainName":{ "shape":"DomainName", "documentation":"The domain name.
", "location":"uri", "locationName":"domainName" } } }, "GetApiAssociationResponse":{ "type":"structure", "members":{ "apiAssociation":{ "shape":"ApiAssociation", "documentation":"The ApiAssociation
object.
The API ID.
", "location":"uri", "locationName":"apiId" } }, "documentation":"Represents the input of a GetApiCache
operation.
The ApiCache
object.
Represents the output of a GetApiCache
operation.
The API ID.
", "location":"uri", "locationName":"apiId" }, "name":{ "shape":"ResourceName", "documentation":"The name of the data source.
", "location":"uri", "locationName":"name" } } }, "GetDataSourceResponse":{ "type":"structure", "members":{ "dataSource":{ "shape":"DataSource", "documentation":"The DataSource
object.
The domain name.
", "location":"uri", "locationName":"domainName" } } }, "GetDomainNameResponse":{ "type":"structure", "members":{ "domainNameConfig":{ "shape":"DomainNameConfig", "documentation":"The configuration for the DomainName
.
The GraphQL API ID.
", "location":"uri", "locationName":"apiId" }, "functionId":{ "shape":"ResourceName", "documentation":"The Function
ID.
The Function
object.
The API ID for the GraphQL API.
", "location":"uri", "locationName":"apiId" } } }, "GetGraphqlApiResponse":{ "type":"structure", "members":{ "graphqlApi":{ "shape":"GraphqlApi", "documentation":"The GraphqlApi
object.
The API ID.
", "location":"uri", "locationName":"apiId" }, "format":{ "shape":"OutputType", "documentation":"The schema format: SDL or JSON.
", "location":"querystring", "locationName":"format" }, "includeDirectives":{ "shape":"BooleanValue", "documentation":"A flag that specifies whether the schema introspection should contain directives.
", "location":"querystring", "locationName":"includeDirectives" } } }, "GetIntrospectionSchemaResponse":{ "type":"structure", "members":{ "schema":{ "shape":"Blob", "documentation":"The schema, in GraphQL Schema Definition Language (SDL) format.
For more information, see the GraphQL SDL documentation.
" } }, "payload":"schema" }, "GetResolverRequest":{ "type":"structure", "required":[ "apiId", "typeName", "fieldName" ], "members":{ "apiId":{ "shape":"String", "documentation":"The API ID.
", "location":"uri", "locationName":"apiId" }, "typeName":{ "shape":"ResourceName", "documentation":"The resolver type name.
", "location":"uri", "locationName":"typeName" }, "fieldName":{ "shape":"ResourceName", "documentation":"The resolver field name.
", "location":"uri", "locationName":"fieldName" } } }, "GetResolverResponse":{ "type":"structure", "members":{ "resolver":{ "shape":"Resolver", "documentation":"The Resolver
object.
The API ID.
", "location":"uri", "locationName":"apiId" } } }, "GetSchemaCreationStatusResponse":{ "type":"structure", "members":{ "status":{ "shape":"SchemaStatus", "documentation":"The current state of the schema (PROCESSING, FAILED, SUCCESS, or NOT_APPLICABLE). When the schema is in the ACTIVE state, you can add data.
" }, "details":{ "shape":"String", "documentation":"Detailed information about the status of the schema creation operation.
" } } }, "GetTypeRequest":{ "type":"structure", "required":[ "apiId", "typeName", "format" ], "members":{ "apiId":{ "shape":"String", "documentation":"The API ID.
", "location":"uri", "locationName":"apiId" }, "typeName":{ "shape":"ResourceName", "documentation":"The type name.
", "location":"uri", "locationName":"typeName" }, "format":{ "shape":"TypeDefinitionFormat", "documentation":"The type format: SDL or JSON.
", "location":"querystring", "locationName":"format" } } }, "GetTypeResponse":{ "type":"structure", "members":{ "type":{ "shape":"Type", "documentation":"The Type
object.
The GraphQL schema is not valid.
", "error":{"httpStatusCode":400}, "exception":true }, "GraphqlApi":{ "type":"structure", "members":{ "name":{ "shape":"ResourceName", "documentation":"The API name.
" }, "apiId":{ "shape":"String", "documentation":"The API ID.
" }, "authenticationType":{ "shape":"AuthenticationType", "documentation":"The authentication type.
" }, "logConfig":{ "shape":"LogConfig", "documentation":"The Amazon CloudWatch Logs configuration.
" }, "userPoolConfig":{ "shape":"UserPoolConfig", "documentation":"The Amazon Cognito user pool configuration.
" }, "openIDConnectConfig":{ "shape":"OpenIDConnectConfig", "documentation":"The OpenID Connect configuration.
" }, "arn":{ "shape":"String", "documentation":"The Amazon Resource Name (ARN).
" }, "uris":{ "shape":"MapOfStringToString", "documentation":"The URIs.
" }, "tags":{ "shape":"TagMap", "documentation":"The tags.
" }, "additionalAuthenticationProviders":{ "shape":"AdditionalAuthenticationProviders", "documentation":"A list of additional authentication providers for the GraphqlApi
API.
A flag indicating whether to use X-Ray tracing for this GraphqlApi
.
The ARN of the WAF access control list (ACL) associated with this GraphqlApi
, if one exists.
Configuration for Lambda function authorization.
" } }, "documentation":"Describes a GraphQL API.
" }, "GraphqlApis":{ "type":"list", "member":{"shape":"GraphqlApi"} }, "HttpDataSourceConfig":{ "type":"structure", "members":{ "endpoint":{ "shape":"String", "documentation":"The HTTP URL endpoint. You can specify either the domain name or IP, and port combination, and the URL scheme must be HTTP or HTTPS. If you don't specify the port, AppSync uses the default port 80 for the HTTP endpoint and port 443 for HTTPS endpoints.
" }, "authorizationConfig":{ "shape":"AuthorizationConfig", "documentation":"The authorization configuration in case the HTTP endpoint requires authorization.
" } }, "documentation":"Describes an HTTP data source configuration.
" }, "InternalFailureException":{ "type":"structure", "members":{ "message":{"shape":"String"} }, "documentation":"An internal AppSync error occurred. Try your request again.
", "error":{"httpStatusCode":500}, "exception":true, "fault":true }, "LambdaAuthorizerConfig":{ "type":"structure", "required":["authorizerUri"], "members":{ "authorizerResultTtlInSeconds":{ "shape":"TTL", "documentation":"The number of seconds a response should be cached for. The default is 5 minutes (300 seconds). The Lambda function can override this by returning a ttlOverride
key in its response. A value of 0 disables caching of responses.
The Amazon Resource Name (ARN) of the Lambda function to be called for authorization. This can be a standard Lambda ARN, a version ARN (.../v3
), or an alias ARN.
Note: This Lambda function must have the following resource-based policy assigned to it. When configuring Lambda authorizers in the console, this is done for you. To use the Command Line Interface (CLI), run the following:
aws lambda add-permission --function-name \"arn:aws:lambda:us-east-2:111122223333:function:my-function\" --statement-id \"appsync\" --principal appsync.amazonaws.com --action lambda:InvokeFunction
A regular expression for validation of tokens before the Lambda function is called.
" } }, "documentation":"A LambdaAuthorizerConfig
specifies how to authorize AppSync API access when using the AWS_LAMBDA
authorizer mode. Be aware that an AppSync API can have only one Lambda authorizer configured at a time.
The Amazon Resource Name (ARN) for the Lambda function to use as the Conflict Handler.
" } }, "documentation":"The LambdaConflictHandlerConfig
object when configuring LAMBDA
as the Conflict Handler.
The Amazon Resource Name (ARN) for the Lambda function.
" } }, "documentation":"Describes an Lambda data source configuration.
" }, "LimitExceededException":{ "type":"structure", "members":{ "message":{"shape":"String"} }, "documentation":"The request exceeded a limit. Try your request again.
", "error":{"httpStatusCode":429}, "exception":true }, "ListApiKeysRequest":{ "type":"structure", "required":["apiId"], "members":{ "apiId":{ "shape":"String", "documentation":"The API ID.
", "location":"uri", "locationName":"apiId" }, "nextToken":{ "shape":"PaginationToken", "documentation":"An identifier that was returned from the previous call to this operation, which you can use to return the next set of items in the list.
", "location":"querystring", "locationName":"nextToken" }, "maxResults":{ "shape":"MaxResults", "documentation":"The maximum number of results that you want the request to return.
", "location":"querystring", "locationName":"maxResults" } } }, "ListApiKeysResponse":{ "type":"structure", "members":{ "apiKeys":{ "shape":"ApiKeys", "documentation":"The ApiKey
objects.
An identifier to pass in the next request to this operation to return the next set of items in the list.
" } } }, "ListDataSourcesRequest":{ "type":"structure", "required":["apiId"], "members":{ "apiId":{ "shape":"String", "documentation":"The API ID.
", "location":"uri", "locationName":"apiId" }, "nextToken":{ "shape":"PaginationToken", "documentation":"An identifier that was returned from the previous call to this operation, which you can use to return the next set of items in the list.
", "location":"querystring", "locationName":"nextToken" }, "maxResults":{ "shape":"MaxResults", "documentation":"The maximum number of results that you want the request to return.
", "location":"querystring", "locationName":"maxResults" } } }, "ListDataSourcesResponse":{ "type":"structure", "members":{ "dataSources":{ "shape":"DataSources", "documentation":"The DataSource
objects.
An identifier to pass in the next request to this operation to return the next set of items in the list.
" } } }, "ListDomainNamesRequest":{ "type":"structure", "members":{ "nextToken":{ "shape":"PaginationToken", "documentation":"The API token.
", "location":"querystring", "locationName":"nextToken" }, "maxResults":{ "shape":"MaxResults", "documentation":"The maximum number of results that you want the request to return.
", "location":"querystring", "locationName":"maxResults" } } }, "ListDomainNamesResponse":{ "type":"structure", "members":{ "domainNameConfigs":{ "shape":"DomainNameConfigs", "documentation":"Lists configurations for multiple domain names.
" }, "nextToken":{ "shape":"PaginationToken", "documentation":"The API token.
" } } }, "ListFunctionsRequest":{ "type":"structure", "required":["apiId"], "members":{ "apiId":{ "shape":"String", "documentation":"The GraphQL API ID.
", "location":"uri", "locationName":"apiId" }, "nextToken":{ "shape":"PaginationToken", "documentation":"An identifier that was returned from the previous call to this operation, which you can use to return the next set of items in the list.
", "location":"querystring", "locationName":"nextToken" }, "maxResults":{ "shape":"MaxResults", "documentation":"The maximum number of results that you want the request to return.
", "location":"querystring", "locationName":"maxResults" } } }, "ListFunctionsResponse":{ "type":"structure", "members":{ "functions":{ "shape":"Functions", "documentation":"A list of Function
objects.
An identifier that was returned from the previous call to this operation, which you can use to return the next set of items in the list.
" } } }, "ListGraphqlApisRequest":{ "type":"structure", "members":{ "nextToken":{ "shape":"PaginationToken", "documentation":"An identifier that was returned from the previous call to this operation, which you can use to return the next set of items in the list.
", "location":"querystring", "locationName":"nextToken" }, "maxResults":{ "shape":"MaxResults", "documentation":"The maximum number of results that you want the request to return.
", "location":"querystring", "locationName":"maxResults" } } }, "ListGraphqlApisResponse":{ "type":"structure", "members":{ "graphqlApis":{ "shape":"GraphqlApis", "documentation":"The GraphqlApi
objects.
An identifier to pass in the next request to this operation to return the next set of items in the list.
" } } }, "ListResolversByFunctionRequest":{ "type":"structure", "required":[ "apiId", "functionId" ], "members":{ "apiId":{ "shape":"String", "documentation":"The API ID.
", "location":"uri", "locationName":"apiId" }, "functionId":{ "shape":"String", "documentation":"The function ID.
", "location":"uri", "locationName":"functionId" }, "nextToken":{ "shape":"PaginationToken", "documentation":"An identifier that was returned from the previous call to this operation, which you can use to return the next set of items in the list.
", "location":"querystring", "locationName":"nextToken" }, "maxResults":{ "shape":"MaxResults", "documentation":"The maximum number of results that you want the request to return.
", "location":"querystring", "locationName":"maxResults" } } }, "ListResolversByFunctionResponse":{ "type":"structure", "members":{ "resolvers":{ "shape":"Resolvers", "documentation":"The list of resolvers.
" }, "nextToken":{ "shape":"PaginationToken", "documentation":"An identifier that you can use to return the next set of items in the list.
" } } }, "ListResolversRequest":{ "type":"structure", "required":[ "apiId", "typeName" ], "members":{ "apiId":{ "shape":"String", "documentation":"The API ID.
", "location":"uri", "locationName":"apiId" }, "typeName":{ "shape":"String", "documentation":"The type name.
", "location":"uri", "locationName":"typeName" }, "nextToken":{ "shape":"PaginationToken", "documentation":"An identifier that was returned from the previous call to this operation, which you can use to return the next set of items in the list.
", "location":"querystring", "locationName":"nextToken" }, "maxResults":{ "shape":"MaxResults", "documentation":"The maximum number of results that you want the request to return.
", "location":"querystring", "locationName":"maxResults" } } }, "ListResolversResponse":{ "type":"structure", "members":{ "resolvers":{ "shape":"Resolvers", "documentation":"The Resolver
objects.
An identifier to pass in the next request to this operation to return the next set of items in the list.
" } } }, "ListTagsForResourceRequest":{ "type":"structure", "required":["resourceArn"], "members":{ "resourceArn":{ "shape":"ResourceArn", "documentation":"The GraphqlApi
Amazon Resource Name (ARN).
A TagMap
object.
The API ID.
", "location":"uri", "locationName":"apiId" }, "format":{ "shape":"TypeDefinitionFormat", "documentation":"The type format: SDL or JSON.
", "location":"querystring", "locationName":"format" }, "nextToken":{ "shape":"PaginationToken", "documentation":"An identifier that was returned from the previous call to this operation, which you can use to return the next set of items in the list.
", "location":"querystring", "locationName":"nextToken" }, "maxResults":{ "shape":"MaxResults", "documentation":"The maximum number of results that you want the request to return.
", "location":"querystring", "locationName":"maxResults" } } }, "ListTypesResponse":{ "type":"structure", "members":{ "types":{ "shape":"TypeList", "documentation":"The Type
objects.
An identifier to pass in the next request to this operation to return the next set of items in the list.
" } } }, "LogConfig":{ "type":"structure", "required":[ "fieldLogLevel", "cloudWatchLogsRoleArn" ], "members":{ "fieldLogLevel":{ "shape":"FieldLogLevel", "documentation":"The field logging level. Values can be NONE, ERROR, or ALL.
NONE: No field-level logs are captured.
ERROR: Logs the following information only for the fields that are in error:
The error section in the server response.
Field-level errors.
The generated request/response functions that got resolved for error fields.
ALL: The following information is logged for all fields in the query:
Field-level tracing information.
The generated request/response functions that got resolved for each field.
The service role that AppSync assumes to publish to CloudWatch logs in your account.
" }, "excludeVerboseContent":{ "shape":"Boolean", "documentation":"Set to TRUE to exclude sections that contain information such as headers, context, and evaluated mapping templates, regardless of logging level.
" } }, "documentation":"The Amazon CloudWatch Logs configuration.
" }, "Logs":{ "type":"list", "member":{"shape":"String"} }, "Long":{"type":"long"}, "MapOfStringToString":{ "type":"map", "key":{"shape":"String"}, "value":{"shape":"String"} }, "MappingTemplate":{ "type":"string", "max":65536, "min":1, "pattern":"^.*$" }, "MaxBatchSize":{ "type":"integer", "max":2000, "min":0 }, "MaxResults":{ "type":"integer", "max":25, "min":0 }, "NotFoundException":{ "type":"structure", "members":{ "message":{"shape":"String"} }, "documentation":"The resource specified in the request was not found. Check the resource, and then try again.
", "error":{"httpStatusCode":404}, "exception":true }, "OpenIDConnectConfig":{ "type":"structure", "required":["issuer"], "members":{ "issuer":{ "shape":"String", "documentation":"The issuer for the OIDC configuration. The issuer returned by discovery must exactly match the value of iss
in the ID token.
The client identifier of the relying party at the OpenID identity provider. This identifier is typically obtained when the relying party is registered with the OpenID identity provider. You can specify a regular expression so that AppSync can validate against multiple client identifiers at a time.
" }, "iatTTL":{ "shape":"Long", "documentation":"The number of milliseconds that a token is valid after it's issued to a user.
" }, "authTTL":{ "shape":"Long", "documentation":"The number of milliseconds that a token is valid after being authenticated.
" } }, "documentation":"Describes an OpenID Connect (OIDC) configuration.
" }, "OpenSearchServiceDataSourceConfig":{ "type":"structure", "required":[ "endpoint", "awsRegion" ], "members":{ "endpoint":{ "shape":"String", "documentation":"The endpoint.
" }, "awsRegion":{ "shape":"String", "documentation":"The Amazon Web Services Region.
" } }, "documentation":"Describes an OpenSearch data source configuration.
" }, "OutputType":{ "type":"string", "enum":[ "SDL", "JSON" ] }, "PaginationToken":{ "type":"string", "max":65536, "min":1, "pattern":"[\\\\S]+" }, "PipelineConfig":{ "type":"structure", "members":{ "functions":{ "shape":"FunctionsIds", "documentation":"A list of Function
objects.
The pipeline configuration for a resolver of kind PIPELINE
.
Amazon Web Services Region for Amazon RDS HTTP endpoint.
" }, "dbClusterIdentifier":{ "shape":"String", "documentation":"Amazon RDS cluster Amazon Resource Name (ARN).
" }, "databaseName":{ "shape":"String", "documentation":"Logical database name.
" }, "schema":{ "shape":"String", "documentation":"Logical schema name.
" }, "awsSecretStoreArn":{ "shape":"String", "documentation":"Amazon Web Services secret store Amazon Resource Name (ARN) for database credentials.
" } }, "documentation":"The Amazon Relational Database Service (Amazon RDS) HTTP endpoint configuration.
" }, "RelationalDatabaseDataSourceConfig":{ "type":"structure", "members":{ "relationalDatabaseSourceType":{ "shape":"RelationalDatabaseSourceType", "documentation":"Source type for the relational database.
RDS_HTTP_ENDPOINT: The relational database source type is an Amazon Relational Database Service (Amazon RDS) HTTP endpoint.
Amazon RDS HTTP endpoint settings.
" } }, "documentation":"Describes a relational database data source configuration.
" }, "RelationalDatabaseSourceType":{ "type":"string", "enum":["RDS_HTTP_ENDPOINT"] }, "Resolver":{ "type":"structure", "members":{ "typeName":{ "shape":"ResourceName", "documentation":"The resolver type name.
" }, "fieldName":{ "shape":"ResourceName", "documentation":"The resolver field name.
" }, "dataSourceName":{ "shape":"ResourceName", "documentation":"The resolver data source name.
" }, "resolverArn":{ "shape":"String", "documentation":"The resolver Amazon Resource Name (ARN).
" }, "requestMappingTemplate":{ "shape":"MappingTemplate", "documentation":"The request mapping template.
" }, "responseMappingTemplate":{ "shape":"MappingTemplate", "documentation":"The response mapping template.
" }, "kind":{ "shape":"ResolverKind", "documentation":"The resolver type.
UNIT: A UNIT resolver type. A UNIT resolver is the default resolver type. You can use a UNIT resolver to run a GraphQL query against a single data source.
PIPELINE: A PIPELINE resolver type. You can use a PIPELINE resolver to invoke a series of Function
objects in a serial manner. You can use a pipeline resolver to run a GraphQL query against multiple data sources.
The PipelineConfig
.
The SyncConfig
for a resolver attached to a versioned data source.
The caching configuration for the resolver.
" }, "maxBatchSize":{ "shape":"MaxBatchSize", "documentation":"The maximum batching size for a resolver.
" }, "runtime":{"shape":"AppSyncRuntime"}, "code":{ "shape":"Code", "documentation":"The resolver
code that contains the request and response functions. When code is used, the runtime
is required. The runtime
value must be APPSYNC_JS
.
Describes a resolver.
" }, "ResolverKind":{ "type":"string", "enum":[ "UNIT", "PIPELINE" ] }, "Resolvers":{ "type":"list", "member":{"shape":"Resolver"} }, "ResourceArn":{ "type":"string", "max":75, "min":70, "pattern":"^arn:aws:appsync:[A-Za-z0-9_/.-]{0,63}:\\d{12}:apis/[0-9A-Za-z_-]{26}$" }, "ResourceName":{ "type":"string", "max":65536, "min":1, "pattern":"[_A-Za-z][_0-9A-Za-z]*" }, "RuntimeName":{ "type":"string", "enum":["APPSYNC_JS"] }, "SchemaStatus":{ "type":"string", "enum":[ "PROCESSING", "ACTIVE", "DELETING", "FAILED", "SUCCESS", "NOT_APPLICABLE" ] }, "StartSchemaCreationRequest":{ "type":"structure", "required":[ "apiId", "definition" ], "members":{ "apiId":{ "shape":"String", "documentation":"The API ID.
", "location":"uri", "locationName":"apiId" }, "definition":{ "shape":"Blob", "documentation":"The schema definition, in GraphQL schema language format.
" } } }, "StartSchemaCreationResponse":{ "type":"structure", "members":{ "status":{ "shape":"SchemaStatus", "documentation":"The current state of the schema (PROCESSING, FAILED, SUCCESS, or NOT_APPLICABLE). When the schema is in the ACTIVE state, you can add data.
" } } }, "String":{"type":"string"}, "SyncConfig":{ "type":"structure", "members":{ "conflictHandler":{ "shape":"ConflictHandlerType", "documentation":"The Conflict Resolution strategy to perform in the event of a conflict.
OPTIMISTIC_CONCURRENCY: Resolve conflicts by rejecting mutations when versions don't match the latest version at the server.
AUTOMERGE: Resolve conflicts with the Automerge conflict resolution strategy.
LAMBDA: Resolve conflicts with an Lambda function supplied in the LambdaConflictHandlerConfig
.
The Conflict Detection strategy to use.
VERSION: Detect conflicts based on object versions for this resolver.
NONE: Do not detect conflicts when invoking this resolver.
The LambdaConflictHandlerConfig
when configuring LAMBDA
as the Conflict Handler.
Describes a Sync configuration for a resolver.
Specifies which Conflict Detection strategy and Resolution strategy to use when the resolver is invoked.
" }, "TTL":{ "type":"integer", "max":3600, "min":0 }, "TagKey":{ "type":"string", "documentation":"The key for the tag.
", "max":128, "min":1, "pattern":"^(?!aws:)[ a-zA-Z+-=._:/]+$" }, "TagKeyList":{ "type":"list", "member":{"shape":"TagKey"}, "max":50, "min":1 }, "TagMap":{ "type":"map", "key":{"shape":"TagKey"}, "value":{"shape":"TagValue"}, "documentation":"A map with keys of TagKey
objects and values of TagValue
objects.
The GraphqlApi
Amazon Resource Name (ARN).
A TagMap
object.
The value for the tag.
", "max":256, "pattern":"^[\\s\\w+-=\\.:/@]*$" }, "Template":{ "type":"string", "max":65536, "min":2, "pattern":"^[\\s\\S]*$" }, "Type":{ "type":"structure", "members":{ "name":{ "shape":"ResourceName", "documentation":"The type name.
" }, "description":{ "shape":"String", "documentation":"The type description.
" }, "arn":{ "shape":"String", "documentation":"The type Amazon Resource Name (ARN).
" }, "definition":{ "shape":"String", "documentation":"The type definition.
" }, "format":{ "shape":"TypeDefinitionFormat", "documentation":"The type format: SDL or JSON.
" } }, "documentation":"Describes a type.
" }, "TypeDefinitionFormat":{ "type":"string", "enum":[ "SDL", "JSON" ] }, "TypeList":{ "type":"list", "member":{"shape":"Type"} }, "UnauthorizedException":{ "type":"structure", "members":{ "message":{"shape":"String"} }, "documentation":"You aren't authorized to perform this operation.
", "error":{"httpStatusCode":401}, "exception":true }, "UntagResourceRequest":{ "type":"structure", "required":[ "resourceArn", "tagKeys" ], "members":{ "resourceArn":{ "shape":"ResourceArn", "documentation":"The GraphqlApi
Amazon Resource Name (ARN).
A list of TagKey
objects.
The GraphQL API ID.
", "location":"uri", "locationName":"apiId" }, "ttl":{ "shape":"Long", "documentation":"TTL in seconds for cache entries.
Valid values are 1–3,600 seconds.
" }, "apiCachingBehavior":{ "shape":"ApiCachingBehavior", "documentation":"Caching behavior.
FULL_REQUEST_CACHING: All requests are fully cached.
PER_RESOLVER_CACHING: Individual resolvers that you specify are cached.
The cache instance type. Valid values are
SMALL
MEDIUM
LARGE
XLARGE
LARGE_2X
LARGE_4X
LARGE_8X
(not available in all regions)
LARGE_12X
Historically, instance types were identified by an EC2-style value. As of July 2020, this is deprecated, and the generic identifiers above should be used.
The following legacy instance types are available, but their use is discouraged:
T2_SMALL: A t2.small instance type.
T2_MEDIUM: A t2.medium instance type.
R4_LARGE: A r4.large instance type.
R4_XLARGE: A r4.xlarge instance type.
R4_2XLARGE: A r4.2xlarge instance type.
R4_4XLARGE: A r4.4xlarge instance type.
R4_8XLARGE: A r4.8xlarge instance type.
Represents the input of a UpdateApiCache
operation.
The ApiCache
object.
Represents the output of a UpdateApiCache
operation.
The ID for the GraphQL API.
", "location":"uri", "locationName":"apiId" }, "id":{ "shape":"String", "documentation":"The API key ID.
", "location":"uri", "locationName":"id" }, "description":{ "shape":"String", "documentation":"A description of the purpose of the API key.
" }, "expires":{ "shape":"Long", "documentation":"From the update time, the time after which the API key expires. The date is represented as seconds since the epoch. For more information, see .
" } } }, "UpdateApiKeyResponse":{ "type":"structure", "members":{ "apiKey":{ "shape":"ApiKey", "documentation":"The API key.
" } } }, "UpdateDataSourceRequest":{ "type":"structure", "required":[ "apiId", "name", "type" ], "members":{ "apiId":{ "shape":"String", "documentation":"The API ID.
", "location":"uri", "locationName":"apiId" }, "name":{ "shape":"ResourceName", "documentation":"The new name for the data source.
", "location":"uri", "locationName":"name" }, "description":{ "shape":"String", "documentation":"The new description for the data source.
" }, "type":{ "shape":"DataSourceType", "documentation":"The new data source type.
" }, "serviceRoleArn":{ "shape":"String", "documentation":"The new service role Amazon Resource Name (ARN) for the data source.
" }, "dynamodbConfig":{ "shape":"DynamodbDataSourceConfig", "documentation":"The new Amazon DynamoDB configuration.
" }, "lambdaConfig":{ "shape":"LambdaDataSourceConfig", "documentation":"The new Lambda configuration.
" }, "elasticsearchConfig":{ "shape":"ElasticsearchDataSourceConfig", "documentation":"The new OpenSearch configuration.
As of September 2021, Amazon Elasticsearch service is Amazon OpenSearch Service. This configuration is deprecated. Instead, use UpdateDataSourceRequest$openSearchServiceConfig to update an OpenSearch data source.
" }, "openSearchServiceConfig":{ "shape":"OpenSearchServiceDataSourceConfig", "documentation":"The new OpenSearch configuration.
" }, "httpConfig":{ "shape":"HttpDataSourceConfig", "documentation":"The new HTTP endpoint configuration.
" }, "relationalDatabaseConfig":{ "shape":"RelationalDatabaseDataSourceConfig", "documentation":"The new relational database configuration.
" } } }, "UpdateDataSourceResponse":{ "type":"structure", "members":{ "dataSource":{ "shape":"DataSource", "documentation":"The updated DataSource
object.
The domain name.
", "location":"uri", "locationName":"domainName" }, "description":{ "shape":"Description", "documentation":"A description of the DomainName
.
The configuration for the DomainName
.
The GraphQL API ID.
", "location":"uri", "locationName":"apiId" }, "name":{ "shape":"ResourceName", "documentation":"The Function
name.
The Function
description.
The function ID.
", "location":"uri", "locationName":"functionId" }, "dataSourceName":{ "shape":"ResourceName", "documentation":"The Function
DataSource
name.
The Function
request mapping template. Functions support only the 2018-05-29 version of the request mapping template.
The Function
request mapping template.
The version
of the request mapping template. Currently, the supported value is 2018-05-29. Note that when using VTL and mapping templates, the functionVersion
is required.
The maximum batching size for a resolver.
" }, "runtime":{"shape":"AppSyncRuntime"}, "code":{ "shape":"Code", "documentation":"The function
code that contains the request and response functions. When code is used, the runtime
is required. The runtime
value must be APPSYNC_JS
.
The Function
object.
The API ID.
", "location":"uri", "locationName":"apiId" }, "name":{ "shape":"String", "documentation":"The new name for the GraphqlApi
object.
The Amazon CloudWatch Logs configuration for the GraphqlApi
object.
The new authentication type for the GraphqlApi
object.
The new Amazon Cognito user pool configuration for the ~GraphqlApi
object.
The OpenID Connect configuration for the GraphqlApi
object.
A list of additional authentication providers for the GraphqlApi
API.
A flag indicating whether to use X-Ray tracing for the GraphqlApi
.
Configuration for Lambda function authorization.
" } } }, "UpdateGraphqlApiResponse":{ "type":"structure", "members":{ "graphqlApi":{ "shape":"GraphqlApi", "documentation":"The updated GraphqlApi
object.
The API ID.
", "location":"uri", "locationName":"apiId" }, "typeName":{ "shape":"ResourceName", "documentation":"The new type name.
", "location":"uri", "locationName":"typeName" }, "fieldName":{ "shape":"ResourceName", "documentation":"The new field name.
", "location":"uri", "locationName":"fieldName" }, "dataSourceName":{ "shape":"ResourceName", "documentation":"The new data source name.
" }, "requestMappingTemplate":{ "shape":"MappingTemplate", "documentation":"The new request mapping template.
A resolver uses a request mapping template to convert a GraphQL expression into a format that a data source can understand. Mapping templates are written in Apache Velocity Template Language (VTL).
VTL request mapping templates are optional when using an Lambda data source. For all other data sources, VTL request and response mapping templates are required.
" }, "responseMappingTemplate":{ "shape":"MappingTemplate", "documentation":"The new response mapping template.
" }, "kind":{ "shape":"ResolverKind", "documentation":"The resolver type.
UNIT: A UNIT resolver type. A UNIT resolver is the default resolver type. You can use a UNIT resolver to run a GraphQL query against a single data source.
PIPELINE: A PIPELINE resolver type. You can use a PIPELINE resolver to invoke a series of Function
objects in a serial manner. You can use a pipeline resolver to run a GraphQL query against multiple data sources.
The PipelineConfig
.
The SyncConfig
for a resolver attached to a versioned data source.
The caching configuration for the resolver.
" }, "maxBatchSize":{ "shape":"MaxBatchSize", "documentation":"The maximum batching size for a resolver.
" }, "runtime":{"shape":"AppSyncRuntime"}, "code":{ "shape":"Code", "documentation":"The resolver
code that contains the request and response functions. When code is used, the runtime
is required. The runtime
value must be APPSYNC_JS
.
The updated Resolver
object.
The API ID.
", "location":"uri", "locationName":"apiId" }, "typeName":{ "shape":"ResourceName", "documentation":"The new type name.
", "location":"uri", "locationName":"typeName" }, "definition":{ "shape":"String", "documentation":"The new definition.
" }, "format":{ "shape":"TypeDefinitionFormat", "documentation":"The new type format: SDL or JSON.
" } } }, "UpdateTypeResponse":{ "type":"structure", "members":{ "type":{ "shape":"Type", "documentation":"The updated Type
object.
The user pool ID.
" }, "awsRegion":{ "shape":"String", "documentation":"The Amazon Web Services Region in which the user pool was created.
" }, "defaultAction":{ "shape":"DefaultAction", "documentation":"The action that you want your GraphQL API to take when a request that uses Amazon Cognito user pool authentication doesn't match the Amazon Cognito user pool configuration.
" }, "appIdClientRegex":{ "shape":"String", "documentation":"A regular expression for validating the incoming Amazon Cognito user pool app client ID. If this value isn't set, no filtering is applied.
" } }, "documentation":"Describes an Amazon Cognito user pool configuration.
" } }, "documentation":"AppSync provides API actions for creating and interacting with data sources using GraphQL from your application.
" }