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 |
Retrieves a Type
object.
Synopsis
- 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
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
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
- TheType
object.gtrsResponseStatus
- -- | The response status code.
data GetTypeResponse Source #
See: getTypeResponse
smart constructor.
Instances
Response Lenses
gtrsResponseStatus :: Lens' GetTypeResponse Int Source #
- - | The response status code.