| 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 |
Amazonka.AppSync.CreateFunction
Description
Creates a Function object.
A function is a reusable entity. Multiple functions can be used to compose the resolver logic.
Synopsis
- data CreateFunction = CreateFunction' {}
- newCreateFunction :: Text -> Text -> Text -> Text -> CreateFunction
- createFunction_requestMappingTemplate :: Lens' CreateFunction (Maybe Text)
- createFunction_responseMappingTemplate :: Lens' CreateFunction (Maybe Text)
- createFunction_syncConfig :: Lens' CreateFunction (Maybe SyncConfig)
- createFunction_description :: Lens' CreateFunction (Maybe Text)
- createFunction_apiId :: Lens' CreateFunction Text
- createFunction_name :: Lens' CreateFunction Text
- createFunction_dataSourceName :: Lens' CreateFunction Text
- createFunction_functionVersion :: Lens' CreateFunction Text
- data CreateFunctionResponse = CreateFunctionResponse' {}
- newCreateFunctionResponse :: Int -> CreateFunctionResponse
- createFunctionResponse_functionConfiguration :: Lens' CreateFunctionResponse (Maybe FunctionConfiguration)
- createFunctionResponse_httpStatus :: Lens' CreateFunctionResponse Int
Creating a Request
data CreateFunction Source #
See: newCreateFunction smart constructor.
Constructors
| CreateFunction' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> Text | |
| -> Text | |
| -> CreateFunction |
Create a value of CreateFunction 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:CreateFunction', createFunction_requestMappingTemplate - The Function request mapping template. Functions support only the
2018-05-29 version of the request mapping template.
$sel:responseMappingTemplate:CreateFunction', createFunction_responseMappingTemplate - The Function response mapping template.
$sel:syncConfig:CreateFunction', createFunction_syncConfig - Undocumented member.
$sel:description:CreateFunction', createFunction_description - The Function description.
$sel:apiId:CreateFunction', createFunction_apiId - The GraphQL API ID.
$sel:name:CreateFunction', createFunction_name - The Function name. The function name does not have to be unique.
$sel:dataSourceName:CreateFunction', createFunction_dataSourceName - The Function DataSource name.
$sel:functionVersion:CreateFunction', createFunction_functionVersion - The version of the request mapping template. Currently the supported
value is 2018-05-29.
Request Lenses
createFunction_requestMappingTemplate :: Lens' CreateFunction (Maybe Text) Source #
The Function request mapping template. Functions support only the
2018-05-29 version of the request mapping template.
createFunction_responseMappingTemplate :: Lens' CreateFunction (Maybe Text) Source #
The Function response mapping template.
createFunction_syncConfig :: Lens' CreateFunction (Maybe SyncConfig) Source #
Undocumented member.
createFunction_description :: Lens' CreateFunction (Maybe Text) Source #
The Function description.
createFunction_apiId :: Lens' CreateFunction Text Source #
The GraphQL API ID.
createFunction_name :: Lens' CreateFunction Text Source #
The Function name. The function name does not have to be unique.
createFunction_dataSourceName :: Lens' CreateFunction Text Source #
The Function DataSource name.
createFunction_functionVersion :: Lens' CreateFunction Text Source #
The version of the request mapping template. Currently the supported
value is 2018-05-29.
Destructuring the Response
data CreateFunctionResponse Source #
See: newCreateFunctionResponse smart constructor.
Constructors
| CreateFunctionResponse' | |
Fields
| |
Instances
newCreateFunctionResponse Source #
Create a value of CreateFunctionResponse 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:CreateFunctionResponse', createFunctionResponse_functionConfiguration - The Function object.
$sel:httpStatus:CreateFunctionResponse', createFunctionResponse_httpStatus - The response's http status code.
Response Lenses
createFunctionResponse_functionConfiguration :: Lens' CreateFunctionResponse (Maybe FunctionConfiguration) Source #
The Function object.
createFunctionResponse_httpStatus :: Lens' CreateFunctionResponse Int Source #
The response's http status code.