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

Contents

Description

Creates a unique key that you can distribute to clients who are executing your API.

Synopsis

Creating a Request

createAPIKey Source #

Arguments

:: Text

cakApiId

-> CreateAPIKey 

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

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

  • cakExpires - The time from creation time after which the API key expires. The date is represented as seconds since the epoch, rounded down to the nearest hour. The default value for this parameter is 7 days from creation time. For more information, see .
  • cakDescription - A description of the purpose of the API key.
  • cakApiId - The ID for your GraphQL API.

data CreateAPIKey Source #

See: createAPIKey smart constructor.

Instances

Eq CreateAPIKey Source # 
Data CreateAPIKey Source # 

Methods

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

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

toConstr :: CreateAPIKey -> Constr #

dataTypeOf :: CreateAPIKey -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateAPIKey Source # 
Show CreateAPIKey Source # 
Generic CreateAPIKey Source # 

Associated Types

type Rep CreateAPIKey :: * -> * #

Hashable CreateAPIKey Source # 
ToJSON CreateAPIKey Source # 
NFData CreateAPIKey Source # 

Methods

rnf :: CreateAPIKey -> () #

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

Request Lenses

cakExpires :: Lens' CreateAPIKey (Maybe Integer) Source #

The time from creation time after which the API key expires. The date is represented as seconds since the epoch, rounded down to the nearest hour. The default value for this parameter is 7 days from creation time. For more information, see .

cakDescription :: Lens' CreateAPIKey (Maybe Text) Source #

A description of the purpose of the API key.

cakApiId :: Lens' CreateAPIKey Text Source #

The ID for your GraphQL API.

Destructuring the Response

createAPIKeyResponse Source #

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

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

data CreateAPIKeyResponse Source #

See: createAPIKeyResponse smart constructor.

Instances

Eq CreateAPIKeyResponse Source # 
Data CreateAPIKeyResponse Source # 

Methods

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

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

toConstr :: CreateAPIKeyResponse -> Constr #

dataTypeOf :: CreateAPIKeyResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateAPIKeyResponse Source # 
Show CreateAPIKeyResponse Source # 
Generic CreateAPIKeyResponse Source # 
NFData CreateAPIKeyResponse Source # 

Methods

rnf :: CreateAPIKeyResponse -> () #

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

Response Lenses

cakrsResponseStatus :: Lens' CreateAPIKeyResponse Int Source #

  • - | The response status code.