FunctionConfiguration
A function is a reusable entity. You can use multiple functions to compose the resolver logic.
Contents
- code
- 
               The functioncode that contains the request and response functions. When code is used, theruntimeis required. Theruntimevalue must beAPPSYNC_JS.Type: String Length Constraints: Minimum length of 1. Maximum length of 32768. Required: No 
- dataSourceName
- 
               The name of the DataSource.Type: String Length Constraints: Minimum length of 1. Maximum length of 65536. Pattern: [_A-Za-z][_0-9A-Za-z]*Required: No 
- description
- 
               The Functiondescription.Type: String Required: No 
- functionArn
- 
               The Amazon Resource Name (ARN) of the Functionobject.Type: String Required: No 
- functionId
- 
               A unique ID representing the Functionobject.Type: String Required: No 
- functionVersion
- 
               The version of the request mapping template. Currently, only the 2018-05-29 version of the template is supported. Type: String Required: No 
- maxBatchSize
- 
               The maximum batching size for a resolver. Type: Integer Valid Range: Minimum value of 0. Maximum value of 2000. Required: No 
- name
- 
               The name of the Functionobject.Type: String Length Constraints: Minimum length of 1. Maximum length of 65536. Pattern: [_A-Za-z][_0-9A-Za-z]*Required: No 
- requestMappingTemplate
- 
               The Functionrequest mapping template. Functions support only the 2018-05-29 version of the request mapping template.Type: String Length Constraints: Minimum length of 1. Maximum length of 65536. Pattern: ^.*$Required: No 
- responseMappingTemplate
- 
               The Functionresponse mapping template.Type: String Length Constraints: Minimum length of 1. Maximum length of 65536. Pattern: ^.*$Required: No 
- runtime
- 
               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. Type: AppSyncRuntime object Required: No 
- syncConfig
- 
               Describes a Sync configuration for a resolver. Specifies which Conflict Detection strategy and Resolution strategy to use when the resolver is invoked. Type: SyncConfig object Required: No 
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: