| 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.GetFunction
Description
Get a Function.
Synopsis
- data GetFunction = GetFunction' {
- apiId :: Text
- functionId :: Text
- newGetFunction :: Text -> Text -> GetFunction
- getFunction_apiId :: Lens' GetFunction Text
- getFunction_functionId :: Lens' GetFunction Text
- data GetFunctionResponse = GetFunctionResponse' {}
- newGetFunctionResponse :: Int -> GetFunctionResponse
- getFunctionResponse_functionConfiguration :: Lens' GetFunctionResponse (Maybe FunctionConfiguration)
- getFunctionResponse_httpStatus :: Lens' GetFunctionResponse Int
Creating a Request
data GetFunction Source #
See: newGetFunction smart constructor.
Constructors
| GetFunction' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> GetFunction |
Create a value of GetFunction 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:
GetFunction, getFunction_apiId - The GraphQL API ID.
GetFunction, getFunction_functionId - The Function ID.
Request Lenses
getFunction_apiId :: Lens' GetFunction Text Source #
The GraphQL API ID.
getFunction_functionId :: Lens' GetFunction Text Source #
The Function ID.
Destructuring the Response
data GetFunctionResponse Source #
See: newGetFunctionResponse smart constructor.
Constructors
| GetFunctionResponse' | |
Fields
| |
Instances
newGetFunctionResponse Source #
Arguments
| :: Int | |
| -> GetFunctionResponse |
Create a value of GetFunctionResponse 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:GetFunctionResponse', getFunctionResponse_functionConfiguration - The Function object.
$sel:httpStatus:GetFunctionResponse', getFunctionResponse_httpStatus - The response's http status code.
Response Lenses
getFunctionResponse_functionConfiguration :: Lens' GetFunctionResponse (Maybe FunctionConfiguration) Source #
The Function object.
getFunctionResponse_httpStatus :: Lens' GetFunctionResponse Int Source #
The response's http status code.