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 |
Creates a Type
object.
Synopsis
- data CreateType = CreateType' {}
- newCreateType :: Text -> Text -> TypeDefinitionFormat -> CreateType
- createType_apiId :: Lens' CreateType Text
- createType_definition :: Lens' CreateType Text
- createType_format :: Lens' CreateType TypeDefinitionFormat
- data CreateTypeResponse = CreateTypeResponse' {
- type' :: Maybe Type
- httpStatus :: Int
- newCreateTypeResponse :: Int -> CreateTypeResponse
- createTypeResponse_type :: Lens' CreateTypeResponse (Maybe Type)
- createTypeResponse_httpStatus :: Lens' CreateTypeResponse Int
Creating a Request
data CreateType Source #
See: newCreateType
smart constructor.
CreateType' | |
|
Instances
:: Text | |
-> Text | |
-> TypeDefinitionFormat | |
-> CreateType |
Create a value of CreateType
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:CreateType'
, createType_apiId
- The API ID.
$sel:definition:CreateType'
, createType_definition
- The type definition, in GraphQL Schema Definition Language (SDL) format.
For more information, see the GraphQL SDL documentation.
$sel:format:CreateType'
, createType_format
- The type format: SDL or JSON.
Request Lenses
createType_apiId :: Lens' CreateType Text Source #
The API ID.
createType_definition :: Lens' CreateType Text Source #
The type definition, in GraphQL Schema Definition Language (SDL) format.
For more information, see the GraphQL SDL documentation.
createType_format :: Lens' CreateType TypeDefinitionFormat Source #
The type format: SDL or JSON.
Destructuring the Response
data CreateTypeResponse Source #
See: newCreateTypeResponse
smart constructor.
CreateTypeResponse' | |
|
Instances
newCreateTypeResponse Source #
Create a value of CreateTypeResponse
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:type':CreateTypeResponse'
, createTypeResponse_type
- The Type
object.
$sel:httpStatus:CreateTypeResponse'
, createTypeResponse_httpStatus
- The response's http status code.
Response Lenses
createTypeResponse_type :: Lens' CreateTypeResponse (Maybe Type) Source #
The Type
object.
createTypeResponse_httpStatus :: Lens' CreateTypeResponse Int Source #
The response's http status code.