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

Contents

Description

Updates an API key.

Synopsis

Creating a Request

updateAPIKey Source #

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

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

  • uakExpires - The time from update time after which the API key expires. The date is represented as seconds since the epoch. For more information, see .
  • uakDescription - A description of the purpose of the API key.
  • uakApiId - The ID for the GraphQL API
  • uakId - The API key ID.

data UpdateAPIKey Source #

See: updateAPIKey smart constructor.

Instances

Eq UpdateAPIKey Source # 
Data UpdateAPIKey Source # 

Methods

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

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

toConstr :: UpdateAPIKey -> Constr #

dataTypeOf :: UpdateAPIKey -> DataType #

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

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

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

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

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

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

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

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

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

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

Read UpdateAPIKey Source # 
Show UpdateAPIKey Source # 
Generic UpdateAPIKey Source # 

Associated Types

type Rep UpdateAPIKey :: * -> * #

Hashable UpdateAPIKey Source # 
ToJSON UpdateAPIKey Source # 
NFData UpdateAPIKey Source # 

Methods

rnf :: UpdateAPIKey -> () #

AWSRequest UpdateAPIKey Source # 
ToHeaders UpdateAPIKey Source # 
ToPath UpdateAPIKey Source # 
ToQuery UpdateAPIKey Source # 
type Rep UpdateAPIKey Source # 
type Rep UpdateAPIKey = D1 * (MetaData "UpdateAPIKey" "Network.AWS.AppSync.UpdateAPIKey" "amazonka-appsync-1.6.0-T90u3sf1xIAHhsH8NXxyF" False) (C1 * (MetaCons "UpdateAPIKey'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_uakExpires") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Integer))) (S1 * (MetaSel (Just Symbol "_uakDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_uakApiId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_uakId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)))))
type Rs UpdateAPIKey Source # 

Request Lenses

uakExpires :: Lens' UpdateAPIKey (Maybe Integer) Source #

The time from update time after which the API key expires. The date is represented as seconds since the epoch. For more information, see .

uakDescription :: Lens' UpdateAPIKey (Maybe Text) Source #

A description of the purpose of the API key.

uakApiId :: Lens' UpdateAPIKey Text Source #

The ID for the GraphQL API

uakId :: Lens' UpdateAPIKey Text Source #

The API key ID.

Destructuring the Response

updateAPIKeyResponse Source #

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

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

data UpdateAPIKeyResponse Source #

See: updateAPIKeyResponse smart constructor.

Instances

Eq UpdateAPIKeyResponse Source # 
Data UpdateAPIKeyResponse Source # 

Methods

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

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

toConstr :: UpdateAPIKeyResponse -> Constr #

dataTypeOf :: UpdateAPIKeyResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read UpdateAPIKeyResponse Source # 
Show UpdateAPIKeyResponse Source # 
Generic UpdateAPIKeyResponse Source # 
NFData UpdateAPIKeyResponse Source # 

Methods

rnf :: UpdateAPIKeyResponse -> () #

type Rep UpdateAPIKeyResponse Source # 
type Rep UpdateAPIKeyResponse = D1 * (MetaData "UpdateAPIKeyResponse" "Network.AWS.AppSync.UpdateAPIKey" "amazonka-appsync-1.6.0-T90u3sf1xIAHhsH8NXxyF" False) (C1 * (MetaCons "UpdateAPIKeyResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_uakrsApiKey") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe APIKey))) (S1 * (MetaSel (Just Symbol "_uakrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses

uakrsResponseStatus :: Lens' UpdateAPIKeyResponse Int Source #

  • - | The response status code.