FunctionState constructor

const FunctionState({
  1. Input<String?>? apiId,
  2. Input<String?>? arn,
  3. Input<String?>? code,
  4. Input<String?>? dataSource,
  5. Input<String?>? description,
  6. Input<String?>? functionId,
  7. Input<String?>? functionVersion,
  8. Input<int?>? maxBatchSize,
  9. Input<String?>? name,
  10. Input<String?>? region,
  11. Input<String?>? requestMappingTemplate,
  12. Input<String?>? responseMappingTemplate,
  13. Input<FunctionRuntime?>? runtime,
  14. Input<FunctionSyncConfig?>? syncConfig,
})

Creates a new FunctionState. apiId ID of the associated AppSync API. arn ARN of the Function object. 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. functionId Unique ID representing the Function object. 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 FunctionState({
  this.apiId,
  this.arn,
  this.code,
  this.dataSource,
  this.description,
  this.functionId,
  this.functionVersion,
  this.maxBatchSize,
  this.name,
  this.region,
  this.requestMappingTemplate,
  this.responseMappingTemplate,
  this.runtime,
  this.syncConfig,
});