amazonka-appsync-1.6.1: 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 # 
Instance details

Defined in Network.AWS.AppSync.StartSchemaCreation

Data StartSchemaCreation Source # 
Instance details

Defined in Network.AWS.AppSync.StartSchemaCreation

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 # 
Instance details

Defined in Network.AWS.AppSync.StartSchemaCreation

Show StartSchemaCreation Source # 
Instance details

Defined in Network.AWS.AppSync.StartSchemaCreation

Generic StartSchemaCreation Source # 
Instance details

Defined in Network.AWS.AppSync.StartSchemaCreation

Associated Types

type Rep StartSchemaCreation :: Type -> Type #

Hashable StartSchemaCreation Source # 
Instance details

Defined in Network.AWS.AppSync.StartSchemaCreation

ToJSON StartSchemaCreation Source # 
Instance details

Defined in Network.AWS.AppSync.StartSchemaCreation

AWSRequest StartSchemaCreation Source # 
Instance details

Defined in Network.AWS.AppSync.StartSchemaCreation

Associated Types

type Rs StartSchemaCreation :: Type #

ToHeaders StartSchemaCreation Source # 
Instance details

Defined in Network.AWS.AppSync.StartSchemaCreation

ToPath StartSchemaCreation Source # 
Instance details

Defined in Network.AWS.AppSync.StartSchemaCreation

ToQuery StartSchemaCreation Source # 
Instance details

Defined in Network.AWS.AppSync.StartSchemaCreation

NFData StartSchemaCreation Source # 
Instance details

Defined in Network.AWS.AppSync.StartSchemaCreation

Methods

rnf :: StartSchemaCreation -> () #

type Rep StartSchemaCreation Source # 
Instance details

Defined in Network.AWS.AppSync.StartSchemaCreation

type Rep StartSchemaCreation = D1 (MetaData "StartSchemaCreation" "Network.AWS.AppSync.StartSchemaCreation" "amazonka-appsync-1.6.1-4DHxIkxAhvS86OTagCP3cH" False) (C1 (MetaCons "StartSchemaCreation'" PrefixI True) (S1 (MetaSel (Just "_sscApiId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_sscDefinition") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Base64)))
type Rs StartSchemaCreation Source # 
Instance details

Defined in Network.AWS.AppSync.StartSchemaCreation

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 # 
Instance details

Defined in Network.AWS.AppSync.StartSchemaCreation

Data StartSchemaCreationResponse Source # 
Instance details

Defined in Network.AWS.AppSync.StartSchemaCreation

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 # 
Instance details

Defined in Network.AWS.AppSync.StartSchemaCreation

Show StartSchemaCreationResponse Source # 
Instance details

Defined in Network.AWS.AppSync.StartSchemaCreation

Generic StartSchemaCreationResponse Source # 
Instance details

Defined in Network.AWS.AppSync.StartSchemaCreation

Associated Types

type Rep StartSchemaCreationResponse :: Type -> Type #

NFData StartSchemaCreationResponse Source # 
Instance details

Defined in Network.AWS.AppSync.StartSchemaCreation

type Rep StartSchemaCreationResponse Source # 
Instance details

Defined in Network.AWS.AppSync.StartSchemaCreation

type Rep StartSchemaCreationResponse = D1 (MetaData "StartSchemaCreationResponse" "Network.AWS.AppSync.StartSchemaCreation" "amazonka-appsync-1.6.1-4DHxIkxAhvS86OTagCP3cH" False) (C1 (MetaCons "StartSchemaCreationResponse'" PrefixI True) (S1 (MetaSel (Just "_sscrsStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe SchemaStatus)) :*: S1 (MetaSel (Just "_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.