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.
apiIdID of the associated AppSync API.codeFunction code that contains the request and response functions. When code is used, the runtime is required. The runtime value must be APPSYNC_JS.dataSourceFunction data source name.descriptionFunction description.functionVersionVersion of the request mapping template. Currently the supported value is2018-05-29. Does not apply when specifyingcode.maxBatchSizeMaximum batching size for a resolver. Valid values are between0and2000.nameFunction name. The function name does not have to be unique.regionRegion where this resource will be managed. Defaults to the Region set in the provider configuration.requestMappingTemplateFunction request mapping template. Functions support only the 2018-05-29 version of the request mapping template.responseMappingTemplateFunction response mapping template.runtimeRuntime 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. SeeruntimeBlock for details.syncConfigSync configuration for a resolver. SeesyncConfigBlock 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 specifyingcode.final - hashCode → int
-
The hash code for this object.
no setterinherited
-
maxBatchSize
→ Input<
int?> ? -
Maximum batching size for a resolver. Valid values are between
0and2000.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
runtimeBlock 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
syncConfigBlock 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