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 |
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.
GetFunction' | |
|
Instances
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:
$sel:apiId:GetFunction'
, getFunction_apiId
- The GraphQL API ID.
$sel:functionId: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.
GetFunctionResponse' | |
|
Instances
newGetFunctionResponse Source #
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.