AppSync Function

An AppSync Function in AWS is a reusable unit of business logic within an AppSync pipeline resolver. It allows you to define operations such as data fetching, transformation, or validation that can be composed together in sequence. Functions can interact with data sources like DynamoDB, Lambda, or HTTP endpoints, and are executed in the order defined by the pipeline. This helps modularize resolver logic, making it easier to maintain, reuse, and scale GraphQL APIs.

aws.appsync_function

Fields

TitleIDTypeData TypeDescription
_keycorestring
account_idcorestring
codecorestringThe function code that contains the request and response functions. When code is used, the runtime is required. The runtime value must be APPSYNC_JS.
data_source_namecorestringThe name of the DataSource.
descriptioncorestringThe Function description.
function_arncorestringThe Amazon Resource Name (ARN) of the Function object.
function_idcorestringA unique ID representing the Function object.
function_versioncorestringThe version of the request mapping template. Currently, only the 2018-05-29 version of the template is supported.
max_batch_sizecoreint64The maximum batching size for a resolver.
namecorestringThe name of the Function object.
request_mapping_templatecorestringThe Function request mapping template. Functions support only the 2018-05-29 version of the request mapping template.
response_mapping_templatecorestringThe Function response mapping template.
runtimecorejsonDescribes 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.
sync_configcorejsonDescribes a Sync configuration for a resolver. Specifies which Conflict Detection strategy and Resolution strategy to use when the resolver is invoked.
tagscorehstore