amazonka-lightsail-1.5.0: Amazon Lightsail SDK.

Copyright(c) 2013-2017 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.Lightsail.GetKeyPairs

Contents

Description

Returns information about all key pairs in the user's account.

This operation returns paginated results.

Synopsis

Creating a Request

getKeyPairs :: GetKeyPairs Source #

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

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

  • gkpPageToken - A token used for advancing to the next page of results from your get key pairs request.

data GetKeyPairs Source #

See: getKeyPairs smart constructor.

Instances

Eq GetKeyPairs Source # 
Data GetKeyPairs Source # 

Methods

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

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

toConstr :: GetKeyPairs -> Constr #

dataTypeOf :: GetKeyPairs -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetKeyPairs Source # 
Show GetKeyPairs Source # 
Generic GetKeyPairs Source # 

Associated Types

type Rep GetKeyPairs :: * -> * #

Hashable GetKeyPairs Source # 
ToJSON GetKeyPairs Source # 
NFData GetKeyPairs Source # 

Methods

rnf :: GetKeyPairs -> () #

AWSPager GetKeyPairs Source # 
AWSRequest GetKeyPairs Source # 
ToQuery GetKeyPairs Source # 
ToPath GetKeyPairs Source # 
ToHeaders GetKeyPairs Source # 

Methods

toHeaders :: GetKeyPairs -> [Header] #

type Rep GetKeyPairs Source # 
type Rep GetKeyPairs = D1 (MetaData "GetKeyPairs" "Network.AWS.Lightsail.GetKeyPairs" "amazonka-lightsail-1.5.0-E35HA2Q1qxxGaFNVAGVi4N" True) (C1 (MetaCons "GetKeyPairs'" PrefixI True) (S1 (MetaSel (Just Symbol "_gkpPageToken") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Text))))
type Rs GetKeyPairs Source # 

Request Lenses

gkpPageToken :: Lens' GetKeyPairs (Maybe Text) Source #

A token used for advancing to the next page of results from your get key pairs request.

Destructuring the Response

getKeyPairsResponse Source #

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

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

data GetKeyPairsResponse Source #

See: getKeyPairsResponse smart constructor.

Instances

Eq GetKeyPairsResponse Source # 
Data GetKeyPairsResponse Source # 

Methods

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

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

toConstr :: GetKeyPairsResponse -> Constr #

dataTypeOf :: GetKeyPairsResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetKeyPairsResponse Source # 
Show GetKeyPairsResponse Source # 
Generic GetKeyPairsResponse Source # 
NFData GetKeyPairsResponse Source # 

Methods

rnf :: GetKeyPairsResponse -> () #

type Rep GetKeyPairsResponse Source # 
type Rep GetKeyPairsResponse = D1 (MetaData "GetKeyPairsResponse" "Network.AWS.Lightsail.GetKeyPairs" "amazonka-lightsail-1.5.0-E35HA2Q1qxxGaFNVAGVi4N" False) (C1 (MetaCons "GetKeyPairsResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_gkpsrsNextPageToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_gkpsrsKeyPairs") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [KeyPair]))) (S1 (MetaSel (Just Symbol "_gkpsrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))))

Response Lenses

gkpsrsNextPageToken :: Lens' GetKeyPairsResponse (Maybe Text) Source #

A token used for advancing to the next page of results from your get key pairs request.

gkpsrsKeyPairs :: Lens' GetKeyPairsResponse [KeyPair] Source #

An array of key-value pairs containing information about the key pairs.

gkpsrsResponseStatus :: Lens' GetKeyPairsResponse Int Source #

  • - | The response status code.