FunctionConfiguration
A function is a reusable entity. You can use multiple functions to compose the resolver logic.
Contents
- code
-
The
function
code that contains the request and response functions. When code is used, theruntime
is required. Theruntime
value 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
Function
description.Type: String
Required: No
- functionArn
-
The Amazon Resource Name (ARN) of the
Function
object.Type: String
Required: No
- functionId
-
A unique ID representing the
Function
object.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
Function
object.Type: String
Length Constraints: Minimum length of 1. Maximum length of 65536.
Pattern:
[_A-Za-z][_0-9A-Za-z]*
Required: No
- requestMappingTemplate
-
The
Function
request 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
Function
response mapping template.Type: String
Length Constraints: Minimum length of 1. Maximum length of 65536.
Pattern:
^.*$
Required: No
- runtime
-
Describes a runtime used by an Amazon AppSync pipeline resolver or Amazon 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 Amazon SDKs, see the following: