Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Updates a Function
object.
Synopsis
- data UpdateFunction = UpdateFunction' {}
- newUpdateFunction :: Text -> Text -> Text -> Text -> Text -> UpdateFunction
- updateFunction_requestMappingTemplate :: Lens' UpdateFunction (Maybe Text)
- updateFunction_responseMappingTemplate :: Lens' UpdateFunction (Maybe Text)
- updateFunction_syncConfig :: Lens' UpdateFunction (Maybe SyncConfig)
- updateFunction_description :: Lens' UpdateFunction (Maybe Text)
- updateFunction_apiId :: Lens' UpdateFunction Text
- updateFunction_name :: Lens' UpdateFunction Text
- updateFunction_functionId :: Lens' UpdateFunction Text
- updateFunction_dataSourceName :: Lens' UpdateFunction Text
- updateFunction_functionVersion :: 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.
UpdateFunction' | |
|
Instances
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:
$sel:requestMappingTemplate:UpdateFunction'
, updateFunction_requestMappingTemplate
- The Function
request mapping template. Functions support only the
2018-05-29 version of the request mapping template.
$sel:responseMappingTemplate:UpdateFunction'
, updateFunction_responseMappingTemplate
- The Function
request mapping template.
$sel:syncConfig:UpdateFunction'
, updateFunction_syncConfig
- Undocumented member.
$sel:description:UpdateFunction'
, updateFunction_description
- The Function
description.
$sel:apiId:UpdateFunction'
, updateFunction_apiId
- The GraphQL API ID.
$sel:name:UpdateFunction'
, updateFunction_name
- The Function
name.
$sel:functionId:UpdateFunction'
, updateFunction_functionId
- The function ID.
$sel:dataSourceName:UpdateFunction'
, updateFunction_dataSourceName
- The Function
DataSource
name.
$sel:functionVersion:UpdateFunction'
, updateFunction_functionVersion
- The version
of the request mapping template. Currently the supported
value is 2018-05-29.
Request Lenses
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_syncConfig :: Lens' UpdateFunction (Maybe SyncConfig) Source #
Undocumented member.
updateFunction_description :: Lens' UpdateFunction (Maybe Text) Source #
The Function
description.
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.
updateFunction_functionVersion :: Lens' UpdateFunction Text Source #
The version
of the request mapping template. Currently the supported
value is 2018-05-29.
Destructuring the Response
data UpdateFunctionResponse Source #
See: newUpdateFunctionResponse
smart constructor.
UpdateFunctionResponse' | |
|
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.