FunctionArgs class

The set of arguments for Function. The set of arguments for Function.

Constructors

FunctionArgs({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.
const
FunctionArgs.fromMap(Map<String, dynamic> map)
factory

Properties

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

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited