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 |
Creates a Type
object.
- createType :: Text -> Text -> TypeDefinitionFormat -> CreateType
- data CreateType
- ctApiId :: Lens' CreateType Text
- ctDefinition :: Lens' CreateType Text
- ctFormat :: Lens' CreateType TypeDefinitionFormat
- createTypeResponse :: Int -> CreateTypeResponse
- data CreateTypeResponse
- ctrsType :: Lens' CreateTypeResponse (Maybe Type)
- ctrsResponseStatus :: Lens' CreateTypeResponse Int
Creating a Request
Creates a value of CreateType
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ctApiId
- The API ID.ctDefinition
- The type definition, in GraphQL Schema Definition Language (SDL) format. For more information, see the GraphQL SDL documentation .ctFormat
- The type format: SDL or JSON.
data CreateType Source #
See: createType
smart constructor.
Request Lenses
ctDefinition :: Lens' CreateType Text Source #
The type definition, in GraphQL Schema Definition Language (SDL) format. For more information, see the GraphQL SDL documentation .
ctFormat :: Lens' CreateType TypeDefinitionFormat Source #
The type format: SDL or JSON.
Destructuring the Response
Creates a value of CreateTypeResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ctrsType
- TheType
object.ctrsResponseStatus
- -- | The response status code.
data CreateTypeResponse Source #
See: createTypeResponse
smart constructor.
Response Lenses
ctrsResponseStatus :: Lens' CreateTypeResponse Int Source #
- - | The response status code.