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 |
Adds a new schema to your GraphQL API.
This operation is asynchronous. Use to determine when it has completed.
Synopsis
- startSchemaCreation :: Text -> ByteString -> StartSchemaCreation
- data StartSchemaCreation
- sscApiId :: Lens' StartSchemaCreation Text
- sscDefinition :: Lens' StartSchemaCreation ByteString
- startSchemaCreationResponse :: Int -> StartSchemaCreationResponse
- data StartSchemaCreationResponse
- sscrsStatus :: Lens' StartSchemaCreationResponse (Maybe SchemaStatus)
- sscrsResponseStatus :: Lens' StartSchemaCreationResponse Int
Creating a Request
Creates a value of StartSchemaCreation
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
sscApiId
- The API ID.sscDefinition
- The schema definition, in GraphQL schema language format.-- Note: ThisLens
automatically encodes and decodes Base64 data. The underlying isomorphism will encode to Base64 representation during serialisation, and decode from Base64 representation during deserialisation. ThisLens
accepts and returns only raw unencoded data.
data StartSchemaCreation Source #
See: startSchemaCreation
smart constructor.
Instances
Request Lenses
sscDefinition :: Lens' StartSchemaCreation ByteString Source #
The schema definition, in GraphQL schema language format.-- Note: This Lens
automatically encodes and decodes Base64 data. The underlying isomorphism will encode to Base64 representation during serialisation, and decode from Base64 representation during deserialisation. This Lens
accepts and returns only raw unencoded data.
Destructuring the Response
startSchemaCreationResponse Source #
Creates a value of StartSchemaCreationResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
sscrsStatus
- The current state of the schema (PROCESSING, ACTIVE, or DELETING). Once the schema is in the ACTIVE state, you can add data.sscrsResponseStatus
- -- | The response status code.
data StartSchemaCreationResponse Source #
See: startSchemaCreationResponse
smart constructor.
Instances
Response Lenses
sscrsStatus :: Lens' StartSchemaCreationResponse (Maybe SchemaStatus) Source #
The current state of the schema (PROCESSING, ACTIVE, or DELETING). Once the schema is in the ACTIVE state, you can add data.
sscrsResponseStatus :: Lens' StartSchemaCreationResponse Int Source #
- - | The response status code.