FunctionConfiguration - AWS AppSync

FunctionConfiguration

A function is a reusable entity. You can use multiple functions to compose the resolver logic.

Contents

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

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: