| Copyright | (c) 2013-2018 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 |
| Language | Haskell2010 |
Network.AWS.AppSync.GetType
Description
Retrieves a Type object.
- getType :: Text -> Text -> TypeDefinitionFormat -> GetType
- data GetType
- gtApiId :: Lens' GetType Text
- gtTypeName :: Lens' GetType Text
- gtFormat :: Lens' GetType TypeDefinitionFormat
- getTypeResponse :: Int -> GetTypeResponse
- data GetTypeResponse
- gtrsType :: Lens' GetTypeResponse (Maybe Type)
- gtrsResponseStatus :: Lens' GetTypeResponse Int
Creating a Request
Arguments
| :: Text | |
| -> Text | |
| -> TypeDefinitionFormat | |
| -> GetType |
Creates a value of GetType with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gtApiId- The API ID.gtTypeName- The type name.gtFormat- The type format: SDL or JSON.
See: getType smart constructor.
Instances
Request Lenses
Destructuring the Response
Arguments
| :: Int | |
| -> GetTypeResponse |
Creates a value of GetTypeResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gtrsType- TheTypeobject.gtrsResponseStatus- -- | The response status code.
data GetTypeResponse Source #
See: getTypeResponse smart constructor.
Response Lenses
gtrsResponseStatus :: Lens' GetTypeResponse Int Source #
- - | The response status code.