Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data FunctionConfiguration = FunctionConfiguration' {
- code :: Maybe Text
- dataSourceName :: Maybe Text
- description :: Maybe Text
- functionArn :: Maybe Text
- functionId :: Maybe Text
- functionVersion :: Maybe Text
- maxBatchSize :: Maybe Natural
- name :: Maybe Text
- requestMappingTemplate :: Maybe Text
- responseMappingTemplate :: Maybe Text
- runtime :: Maybe AppSyncRuntime
- syncConfig :: Maybe SyncConfig
- newFunctionConfiguration :: FunctionConfiguration
- functionConfiguration_code :: Lens' FunctionConfiguration (Maybe Text)
- functionConfiguration_dataSourceName :: Lens' FunctionConfiguration (Maybe Text)
- functionConfiguration_description :: Lens' FunctionConfiguration (Maybe Text)
- functionConfiguration_functionArn :: Lens' FunctionConfiguration (Maybe Text)
- functionConfiguration_functionId :: Lens' FunctionConfiguration (Maybe Text)
- functionConfiguration_functionVersion :: Lens' FunctionConfiguration (Maybe Text)
- functionConfiguration_maxBatchSize :: Lens' FunctionConfiguration (Maybe Natural)
- functionConfiguration_name :: Lens' FunctionConfiguration (Maybe Text)
- functionConfiguration_requestMappingTemplate :: Lens' FunctionConfiguration (Maybe Text)
- functionConfiguration_responseMappingTemplate :: Lens' FunctionConfiguration (Maybe Text)
- functionConfiguration_runtime :: Lens' FunctionConfiguration (Maybe AppSyncRuntime)
- functionConfiguration_syncConfig :: Lens' FunctionConfiguration (Maybe SyncConfig)
Documentation
data FunctionConfiguration Source #
A function is a reusable entity. You can use multiple functions to compose the resolver logic.
See: newFunctionConfiguration
smart constructor.
FunctionConfiguration' | |
|
Instances
newFunctionConfiguration :: FunctionConfiguration Source #
Create a value of FunctionConfiguration
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:code:FunctionConfiguration'
, functionConfiguration_code
- The function
code that contains the request and response functions.
When code is used, the runtime
is required. The runtime
value must
be APPSYNC_JS
.
$sel:dataSourceName:FunctionConfiguration'
, functionConfiguration_dataSourceName
- The name of the DataSource
.
$sel:description:FunctionConfiguration'
, functionConfiguration_description
- The Function
description.
$sel:functionArn:FunctionConfiguration'
, functionConfiguration_functionArn
- The Amazon Resource Name (ARN) of the Function
object.
$sel:functionId:FunctionConfiguration'
, functionConfiguration_functionId
- A unique ID representing the Function
object.
$sel:functionVersion:FunctionConfiguration'
, functionConfiguration_functionVersion
- The version of the request mapping template. Currently, only the
2018-05-29 version of the template is supported.
$sel:maxBatchSize:FunctionConfiguration'
, functionConfiguration_maxBatchSize
- The maximum batching size for a resolver.
FunctionConfiguration
, functionConfiguration_name
- The name of the Function
object.
$sel:requestMappingTemplate:FunctionConfiguration'
, functionConfiguration_requestMappingTemplate
- The Function
request mapping template. Functions support only the
2018-05-29 version of the request mapping template.
$sel:responseMappingTemplate:FunctionConfiguration'
, functionConfiguration_responseMappingTemplate
- The Function
response mapping template.
$sel:runtime:FunctionConfiguration'
, functionConfiguration_runtime
- Undocumented member.
$sel:syncConfig:FunctionConfiguration'
, functionConfiguration_syncConfig
- Undocumented member.
functionConfiguration_code :: Lens' FunctionConfiguration (Maybe Text) Source #
The function
code that contains the request and response functions.
When code is used, the runtime
is required. The runtime
value must
be APPSYNC_JS
.
functionConfiguration_dataSourceName :: Lens' FunctionConfiguration (Maybe Text) Source #
The name of the DataSource
.
functionConfiguration_description :: Lens' FunctionConfiguration (Maybe Text) Source #
The Function
description.
functionConfiguration_functionArn :: Lens' FunctionConfiguration (Maybe Text) Source #
The Amazon Resource Name (ARN) of the Function
object.
functionConfiguration_functionId :: Lens' FunctionConfiguration (Maybe Text) Source #
A unique ID representing the Function
object.
functionConfiguration_functionVersion :: Lens' FunctionConfiguration (Maybe Text) Source #
The version of the request mapping template. Currently, only the 2018-05-29 version of the template is supported.
functionConfiguration_maxBatchSize :: Lens' FunctionConfiguration (Maybe Natural) Source #
The maximum batching size for a resolver.
functionConfiguration_name :: Lens' FunctionConfiguration (Maybe Text) Source #
The name of the Function
object.
functionConfiguration_requestMappingTemplate :: Lens' FunctionConfiguration (Maybe Text) Source #
The Function
request mapping template. Functions support only the
2018-05-29 version of the request mapping template.
functionConfiguration_responseMappingTemplate :: Lens' FunctionConfiguration (Maybe Text) Source #
The Function
response mapping template.
functionConfiguration_runtime :: Lens' FunctionConfiguration (Maybe AppSyncRuntime) Source #
Undocumented member.
functionConfiguration_syncConfig :: Lens' FunctionConfiguration (Maybe SyncConfig) Source #
Undocumented member.