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 |
Amazonka.AppSync.UpdateFunction
Description
Updates a Function
object.
Synopsis
- data UpdateFunction = UpdateFunction' {
- code :: Maybe Text
- description :: Maybe Text
- functionVersion :: Maybe Text
- maxBatchSize :: Maybe Natural
- requestMappingTemplate :: Maybe Text
- responseMappingTemplate :: Maybe Text
- runtime :: Maybe AppSyncRuntime
- syncConfig :: Maybe SyncConfig
- apiId :: Text
- name :: Text
- functionId :: Text
- dataSourceName :: Text
- newUpdateFunction :: Text -> Text -> Text -> Text -> UpdateFunction
- updateFunction_code :: Lens' UpdateFunction (Maybe Text)
- updateFunction_description :: Lens' UpdateFunction (Maybe Text)
- updateFunction_functionVersion :: Lens' UpdateFunction (Maybe Text)
- updateFunction_maxBatchSize :: Lens' UpdateFunction (Maybe Natural)
- updateFunction_requestMappingTemplate :: Lens' UpdateFunction (Maybe Text)
- updateFunction_responseMappingTemplate :: Lens' UpdateFunction (Maybe Text)
- updateFunction_runtime :: Lens' UpdateFunction (Maybe AppSyncRuntime)
- updateFunction_syncConfig :: Lens' UpdateFunction (Maybe SyncConfig)
- updateFunction_apiId :: Lens' UpdateFunction Text
- updateFunction_name :: Lens' UpdateFunction Text
- updateFunction_functionId :: Lens' UpdateFunction Text
- updateFunction_dataSourceName :: Lens' UpdateFunction Text
- data UpdateFunctionResponse = UpdateFunctionResponse' {}
- newUpdateFunctionResponse :: Int -> UpdateFunctionResponse
- updateFunctionResponse_functionConfiguration :: Lens' UpdateFunctionResponse (Maybe FunctionConfiguration)
- updateFunctionResponse_httpStatus :: Lens' UpdateFunctionResponse Int
Creating a Request
data UpdateFunction Source #
See: newUpdateFunction
smart constructor.
Constructors
UpdateFunction' | |
Fields
|
Instances
Arguments
:: Text | |
-> Text | |
-> Text | |
-> Text | |
-> UpdateFunction |
Create a value of UpdateFunction
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:
UpdateFunction
, updateFunction_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
.
UpdateFunction
, updateFunction_description
- The Function
description.
UpdateFunction
, updateFunction_functionVersion
- The version
of the request mapping template. Currently, the supported
value is 2018-05-29. Note that when using VTL and mapping templates, the
functionVersion
is required.
UpdateFunction
, updateFunction_maxBatchSize
- The maximum batching size for a resolver.
UpdateFunction
, updateFunction_requestMappingTemplate
- The Function
request mapping template. Functions support only the
2018-05-29 version of the request mapping template.
UpdateFunction
, updateFunction_responseMappingTemplate
- The Function
request mapping template.
UpdateFunction
, updateFunction_runtime
- Undocumented member.
UpdateFunction
, updateFunction_syncConfig
- Undocumented member.
UpdateFunction
, updateFunction_apiId
- The GraphQL API ID.
UpdateFunction
, updateFunction_name
- The Function
name.
UpdateFunction
, updateFunction_functionId
- The function ID.
UpdateFunction
, updateFunction_dataSourceName
- The Function
DataSource
name.
Request Lenses
updateFunction_code :: Lens' UpdateFunction (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
.
updateFunction_description :: Lens' UpdateFunction (Maybe Text) Source #
The Function
description.
updateFunction_functionVersion :: Lens' UpdateFunction (Maybe Text) Source #
The version
of the request mapping template. Currently, the supported
value is 2018-05-29. Note that when using VTL and mapping templates, the
functionVersion
is required.
updateFunction_maxBatchSize :: Lens' UpdateFunction (Maybe Natural) Source #
The maximum batching size for a resolver.
updateFunction_requestMappingTemplate :: Lens' UpdateFunction (Maybe Text) Source #
The Function
request mapping template. Functions support only the
2018-05-29 version of the request mapping template.
updateFunction_responseMappingTemplate :: Lens' UpdateFunction (Maybe Text) Source #
The Function
request mapping template.
updateFunction_runtime :: Lens' UpdateFunction (Maybe AppSyncRuntime) Source #
Undocumented member.
updateFunction_syncConfig :: Lens' UpdateFunction (Maybe SyncConfig) Source #
Undocumented member.
updateFunction_apiId :: Lens' UpdateFunction Text Source #
The GraphQL API ID.
updateFunction_name :: Lens' UpdateFunction Text Source #
The Function
name.
updateFunction_functionId :: Lens' UpdateFunction Text Source #
The function ID.
updateFunction_dataSourceName :: Lens' UpdateFunction Text Source #
The Function
DataSource
name.
Destructuring the Response
data UpdateFunctionResponse Source #
See: newUpdateFunctionResponse
smart constructor.
Constructors
UpdateFunctionResponse' | |
Fields
|
Instances
newUpdateFunctionResponse Source #
Create a value of UpdateFunctionResponse
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:functionConfiguration:UpdateFunctionResponse'
, updateFunctionResponse_functionConfiguration
- The Function
object.
$sel:httpStatus:UpdateFunctionResponse'
, updateFunctionResponse_httpStatus
- The response's http status code.
Response Lenses
updateFunctionResponse_functionConfiguration :: Lens' UpdateFunctionResponse (Maybe FunctionConfiguration) Source #
The Function
object.
updateFunctionResponse_httpStatus :: Lens' UpdateFunctionResponse Int Source #
The response's http status code.