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

Defined in Network.AWS.AppSync.CreateAPIKey

Data CreateAPIKey Source # 
Instance details

Defined in Network.AWS.AppSync.CreateAPIKey

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

Defined in Network.AWS.AppSync.CreateAPIKey

Show CreateAPIKey Source # 
Instance details

Defined in Network.AWS.AppSync.CreateAPIKey

Generic CreateAPIKey Source # 
Instance details

Defined in Network.AWS.AppSync.CreateAPIKey

Associated Types

type Rep CreateAPIKey :: Type -> Type #

Hashable CreateAPIKey Source # 
Instance details

Defined in Network.AWS.AppSync.CreateAPIKey

ToJSON CreateAPIKey Source # 
Instance details

Defined in Network.AWS.AppSync.CreateAPIKey

AWSRequest CreateAPIKey Source # 
Instance details

Defined in Network.AWS.AppSync.CreateAPIKey

Associated Types

type Rs CreateAPIKey :: Type #

ToHeaders CreateAPIKey Source # 
Instance details

Defined in Network.AWS.AppSync.CreateAPIKey

ToPath CreateAPIKey Source # 
Instance details

Defined in Network.AWS.AppSync.CreateAPIKey

ToQuery CreateAPIKey Source # 
Instance details

Defined in Network.AWS.AppSync.CreateAPIKey

NFData CreateAPIKey Source # 
Instance details

Defined in Network.AWS.AppSync.CreateAPIKey

Methods

rnf :: CreateAPIKey -> () #

type Rep CreateAPIKey Source # 
Instance details

Defined in Network.AWS.AppSync.CreateAPIKey

type Rep CreateAPIKey = D1 (MetaData "CreateAPIKey" "Network.AWS.AppSync.CreateAPIKey" "amazonka-appsync-1.6.1-4DHxIkxAhvS86OTagCP3cH" False) (C1 (MetaCons "CreateAPIKey'" PrefixI True) (S1 (MetaSel (Just "_cakExpires") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Integer)) :*: (S1 (MetaSel (Just "_cakDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_cakApiId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs CreateAPIKey Source # 
Instance details

Defined in Network.AWS.AppSync.CreateAPIKey

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

Defined in Network.AWS.AppSync.CreateAPIKey

Data CreateAPIKeyResponse Source # 
Instance details

Defined in Network.AWS.AppSync.CreateAPIKey

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

Defined in Network.AWS.AppSync.CreateAPIKey

Show CreateAPIKeyResponse Source # 
Instance details

Defined in Network.AWS.AppSync.CreateAPIKey

Generic CreateAPIKeyResponse Source # 
Instance details

Defined in Network.AWS.AppSync.CreateAPIKey

Associated Types

type Rep CreateAPIKeyResponse :: Type -> Type #

NFData CreateAPIKeyResponse Source # 
Instance details

Defined in Network.AWS.AppSync.CreateAPIKey

Methods

rnf :: CreateAPIKeyResponse -> () #

type Rep CreateAPIKeyResponse Source # 
Instance details

Defined in Network.AWS.AppSync.CreateAPIKey

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

Response Lenses

cakrsResponseStatus :: Lens' CreateAPIKeyResponse Int Source #

  • - | The response status code.