| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.AppSync.CreateType
Description
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.
Constructors
| CreateType' | |
Fields
| |
Instances
Arguments
| :: 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:
CreateType, createType_apiId - The API ID.
CreateType, createType_definition - The type definition, in GraphQL Schema Definition Language (SDL) format.
For more information, see the GraphQL SDL documentation.
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.
Constructors
| CreateTypeResponse' | |
Fields
| |
Instances
newCreateTypeResponse Source #
Arguments
| :: Int | |
| -> CreateTypeResponse |
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:
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.