---
type: resource-type
title: FunctionConfiguration
description: aws resource type AWS::AppSync::FunctionConfiguration
name: FunctionConfiguration
lexicon: aws
resource_type: AWS::AppSync::FunctionConfiguration
---
`AWS::AppSync::FunctionConfiguration`, a resource type of the aws lexicon.

## Properties

- `ApiId` (`string`, required): The AWS AppSync GraphQL API that you want to attach using this function.
- `DataSourceName` (`string`, required): The name of data source this function will attach.
- `Name` (`string`, required): The name of the function.
- `Code` (`string`, optional): 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.
- `CodeS3Location` (`string`, optional): The Amazon S3 endpoint (where the code is located??).
- `Description` (`string`, optional): The function description.
- `FunctionArn` (`string`, optional): The ARN for the function generated by the service
- `FunctionId` (`string`, optional): The unique identifier for the function generated by the service
- `FunctionVersion` (`string`, optional): The version of the request mapping template. Currently, only the 2018-05-29 version of the template is supported.
- `MaxBatchSize` (`number`, optional): The maximum number of resolver request inputs that will be sent to a single AWS Lambda function in a BatchInvoke operation.
- `RequestMappingTemplate` (`string`, optional): The Function request mapping template. Functions support only the 2018-05-29 version of the request mapping template.
- `RequestMappingTemplateS3Location` (`string`, optional): Describes a Sync configuration for a resolver. Contains information on which Conflict Detection, as well as Resolution strategy, should be performed when the resolver is invoked.
- `ResponseMappingTemplate` (`string`, optional): The Function response mapping template.
- `ResponseMappingTemplateS3Location` (`string`, optional): The location of a response mapping template in an Amazon S3 bucket. Use this if you want to provision with a template file in Amazon S3 rather than embedding it in your CloudFormation template.
- `Runtime` (`FunctionConfiguration_AppSyncRuntime`, optional): Describes a runtime used by an AWS AppSync pipeline resolver or AWS AppSync function. Specifies the name and version of the runtime to use. Note that if a runtime is specified, code must also be specified.
- `SyncConfig` (`FunctionConfiguration_SyncConfig`, optional): Describes a Sync configuration for a resolver. Specifies which Conflict Detection strategy and Resolution strategy to use when the resolver is invoked.

## Attributes

- `FunctionArn`
- `FunctionId`
