FunctionArgs constructor
- required Input<
String> apiId, - Input<
String?> ? code, - required Input<
String> dataSource, - Input<
String?> ? description, - Input<
String?> ? functionVersion, - Input<
int?> ? maxBatchSize, - Input<
String?> ? name, - Input<
String?> ? region, - Input<
String?> ? requestMappingTemplate, - Input<
String?> ? responseMappingTemplate, - Input<
FunctionRuntime?> ? runtime, - Input<
FunctionSyncConfig?> ? syncConfig,
Creates a new FunctionArgs.
apiId ID of the associated AppSync API.
code Function code that contains the request and response functions. When code is used, the runtime is required. The runtime value must be APPSYNC_JS.
dataSource Function data source name.
description Function description.
functionVersion Version of the request mapping template. Currently the supported value is 2018-05-29. Does not apply when specifying code.
maxBatchSize Maximum batching size for a resolver. Valid values are between 0 and 2000.
name Function name. The function name does not have to be unique.
region Region where this resource will be managed. Defaults to the Region set in the provider configuration.
requestMappingTemplate Function request mapping template. Functions support only the 2018-05-29 version of the request mapping template.
responseMappingTemplate Function response mapping template.
runtime 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. See runtime Block for details.
syncConfig Sync configuration for a resolver. See syncConfig Block for details.
Implementation
const FunctionArgs({
required this.apiId,
this.code,
required this.dataSource,
this.description,
this.functionVersion,
this.maxBatchSize,
this.name,
this.region,
this.requestMappingTemplate,
this.responseMappingTemplate,
this.runtime,
this.syncConfig,
});