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

Contents

Description

Lists the types for a given API.

Synopsis

Creating a Request

listTypes Source #

Creates a value of ListTypes with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • ltNextToken - An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.
  • ltMaxResults - The maximum number of results you want the request to return.
  • ltApiId - The API ID.
  • ltFormat - The type format: SDL or JSON.

data ListTypes Source #

See: listTypes smart constructor.

Instances

Eq ListTypes Source # 
Data ListTypes Source # 

Methods

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

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

toConstr :: ListTypes -> Constr #

dataTypeOf :: ListTypes -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListTypes Source # 
Show ListTypes Source # 
Generic ListTypes Source # 

Associated Types

type Rep ListTypes :: * -> * #

Hashable ListTypes Source # 
NFData ListTypes Source # 

Methods

rnf :: ListTypes -> () #

AWSRequest ListTypes Source # 
ToHeaders ListTypes Source # 

Methods

toHeaders :: ListTypes -> [Header] #

ToPath ListTypes Source # 
ToQuery ListTypes Source # 
type Rep ListTypes Source # 
type Rep ListTypes = D1 * (MetaData "ListTypes" "Network.AWS.AppSync.ListTypes" "amazonka-appsync-1.6.0-T90u3sf1xIAHhsH8NXxyF" False) (C1 * (MetaCons "ListTypes'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_ltNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_ltMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Nat)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_ltApiId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_ltFormat") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * TypeDefinitionFormat)))))
type Rs ListTypes Source # 

Request Lenses

ltNextToken :: Lens' ListTypes (Maybe Text) Source #

An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.

ltMaxResults :: Lens' ListTypes (Maybe Natural) Source #

The maximum number of results you want the request to return.

ltFormat :: Lens' ListTypes TypeDefinitionFormat Source #

The type format: SDL or JSON.

Destructuring the Response

listTypesResponse Source #

Creates a value of ListTypesResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • ltrsTypes - The Type objects.
  • ltrsNextToken - An identifier to be passed in the next request to this operation to return the next set of items in the list.
  • ltrsResponseStatus - -- | The response status code.

data ListTypesResponse Source #

See: listTypesResponse smart constructor.

Instances

Eq ListTypesResponse Source # 
Data ListTypesResponse Source # 

Methods

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

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

toConstr :: ListTypesResponse -> Constr #

dataTypeOf :: ListTypesResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListTypesResponse Source # 
Show ListTypesResponse Source # 
Generic ListTypesResponse Source # 
NFData ListTypesResponse Source # 

Methods

rnf :: ListTypesResponse -> () #

type Rep ListTypesResponse Source # 
type Rep ListTypesResponse = D1 * (MetaData "ListTypesResponse" "Network.AWS.AppSync.ListTypes" "amazonka-appsync-1.6.0-T90u3sf1xIAHhsH8NXxyF" False) (C1 * (MetaCons "ListTypesResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_ltrsTypes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [Type]))) ((:*:) * (S1 * (MetaSel (Just Symbol "_ltrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_ltrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)))))

Response Lenses

ltrsNextToken :: Lens' ListTypesResponse (Maybe Text) Source #

An identifier to be passed in the next request to this operation to return the next set of items in the list.

ltrsResponseStatus :: Lens' ListTypesResponse Int Source #

  • - | The response status code.