amazonka-appsync-1.6.0: Amazon AppSync SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.AppSync.StartSchemaCreation

Contents

Description

Adds a new schema to your GraphQL API.

This operation is asynchronous. Use to determine when it has completed.

Synopsis

Creating a Request

startSchemaCreation Source #

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: 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.

data StartSchemaCreation Source #

See: startSchemaCreation smart constructor.

Instances

Eq StartSchemaCreation Source # 
Data StartSchemaCreation Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> StartSchemaCreation -> c StartSchemaCreation #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c StartSchemaCreation #

toConstr :: StartSchemaCreation -> Constr #

dataTypeOf :: StartSchemaCreation -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c StartSchemaCreation) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c StartSchemaCreation) #

gmapT :: (forall b. Data b => b -> b) -> StartSchemaCreation -> StartSchemaCreation #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> StartSchemaCreation -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> StartSchemaCreation -> r #

gmapQ :: (forall d. Data d => d -> u) -> StartSchemaCreation -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> StartSchemaCreation -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> StartSchemaCreation -> m StartSchemaCreation #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> StartSchemaCreation -> m StartSchemaCreation #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> StartSchemaCreation -> m StartSchemaCreation #

Read StartSchemaCreation Source # 
Show StartSchemaCreation Source # 
Generic StartSchemaCreation Source # 
Hashable StartSchemaCreation Source # 
ToJSON StartSchemaCreation Source # 
NFData StartSchemaCreation Source # 

Methods

rnf :: StartSchemaCreation -> () #

AWSRequest StartSchemaCreation Source # 
ToHeaders StartSchemaCreation Source # 
ToPath StartSchemaCreation Source # 
ToQuery StartSchemaCreation Source # 
type Rep StartSchemaCreation Source # 
type Rep StartSchemaCreation = D1 * (MetaData "StartSchemaCreation" "Network.AWS.AppSync.StartSchemaCreation" "amazonka-appsync-1.6.0-T90u3sf1xIAHhsH8NXxyF" False) (C1 * (MetaCons "StartSchemaCreation'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_sscApiId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_sscDefinition") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Base64))))
type Rs StartSchemaCreation Source # 

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

Eq StartSchemaCreationResponse Source # 
Data StartSchemaCreationResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> StartSchemaCreationResponse -> c StartSchemaCreationResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c StartSchemaCreationResponse #

toConstr :: StartSchemaCreationResponse -> Constr #

dataTypeOf :: StartSchemaCreationResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c StartSchemaCreationResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c StartSchemaCreationResponse) #

gmapT :: (forall b. Data b => b -> b) -> StartSchemaCreationResponse -> StartSchemaCreationResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> StartSchemaCreationResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> StartSchemaCreationResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> StartSchemaCreationResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> StartSchemaCreationResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> StartSchemaCreationResponse -> m StartSchemaCreationResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> StartSchemaCreationResponse -> m StartSchemaCreationResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> StartSchemaCreationResponse -> m StartSchemaCreationResponse #

Read StartSchemaCreationResponse Source # 
Show StartSchemaCreationResponse Source # 
Generic StartSchemaCreationResponse Source # 
NFData StartSchemaCreationResponse Source # 
type Rep StartSchemaCreationResponse Source # 
type Rep StartSchemaCreationResponse = D1 * (MetaData "StartSchemaCreationResponse" "Network.AWS.AppSync.StartSchemaCreation" "amazonka-appsync-1.6.0-T90u3sf1xIAHhsH8NXxyF" False) (C1 * (MetaCons "StartSchemaCreationResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_sscrsStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe SchemaStatus))) (S1 * (MetaSel (Just Symbol "_sscrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

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.