amazonka-lightsail-1.6.0: Amazon Lightsail 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.Lightsail.GetKeyPair

Contents

Description

Returns information about a specific key pair.

Synopsis

Creating a Request

getKeyPair #

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

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

  • gkpKeyPairName - The name of the key pair for which you are requesting information.

data GetKeyPair #

See: getKeyPair smart constructor.

Instances
Eq GetKeyPair # 
Instance details

Defined in Network.AWS.Lightsail.GetKeyPair

Data GetKeyPair # 
Instance details

Defined in Network.AWS.Lightsail.GetKeyPair

Methods

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

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

toConstr :: GetKeyPair -> Constr #

dataTypeOf :: GetKeyPair -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetKeyPair # 
Instance details

Defined in Network.AWS.Lightsail.GetKeyPair

Show GetKeyPair # 
Instance details

Defined in Network.AWS.Lightsail.GetKeyPair

Generic GetKeyPair # 
Instance details

Defined in Network.AWS.Lightsail.GetKeyPair

Associated Types

type Rep GetKeyPair :: * -> * #

Hashable GetKeyPair # 
Instance details

Defined in Network.AWS.Lightsail.GetKeyPair

ToJSON GetKeyPair # 
Instance details

Defined in Network.AWS.Lightsail.GetKeyPair

AWSRequest GetKeyPair # 
Instance details

Defined in Network.AWS.Lightsail.GetKeyPair

Associated Types

type Rs GetKeyPair :: * #

ToHeaders GetKeyPair # 
Instance details

Defined in Network.AWS.Lightsail.GetKeyPair

Methods

toHeaders :: GetKeyPair -> [Header] #

ToPath GetKeyPair # 
Instance details

Defined in Network.AWS.Lightsail.GetKeyPair

ToQuery GetKeyPair # 
Instance details

Defined in Network.AWS.Lightsail.GetKeyPair

NFData GetKeyPair # 
Instance details

Defined in Network.AWS.Lightsail.GetKeyPair

Methods

rnf :: GetKeyPair -> () #

type Rep GetKeyPair # 
Instance details

Defined in Network.AWS.Lightsail.GetKeyPair

type Rep GetKeyPair = D1 (MetaData "GetKeyPair" "Network.AWS.Lightsail.GetKeyPair" "amazonka-lightsail-1.6.0-KbsnSgop875C22ikCzX5R7" True) (C1 (MetaCons "GetKeyPair'" PrefixI True) (S1 (MetaSel (Just "_gkpKeyPairName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))
type Rs GetKeyPair # 
Instance details

Defined in Network.AWS.Lightsail.GetKeyPair

Request Lenses

gkpKeyPairName :: Lens' GetKeyPair Text #

The name of the key pair for which you are requesting information.

Destructuring the Response

getKeyPairResponse #

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

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

data GetKeyPairResponse #

See: getKeyPairResponse smart constructor.

Instances
Eq GetKeyPairResponse # 
Instance details

Defined in Network.AWS.Lightsail.GetKeyPair

Data GetKeyPairResponse # 
Instance details

Defined in Network.AWS.Lightsail.GetKeyPair

Methods

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

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

toConstr :: GetKeyPairResponse -> Constr #

dataTypeOf :: GetKeyPairResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetKeyPairResponse # 
Instance details

Defined in Network.AWS.Lightsail.GetKeyPair

Show GetKeyPairResponse # 
Instance details

Defined in Network.AWS.Lightsail.GetKeyPair

Generic GetKeyPairResponse # 
Instance details

Defined in Network.AWS.Lightsail.GetKeyPair

Associated Types

type Rep GetKeyPairResponse :: * -> * #

NFData GetKeyPairResponse # 
Instance details

Defined in Network.AWS.Lightsail.GetKeyPair

Methods

rnf :: GetKeyPairResponse -> () #

type Rep GetKeyPairResponse # 
Instance details

Defined in Network.AWS.Lightsail.GetKeyPair

type Rep GetKeyPairResponse = D1 (MetaData "GetKeyPairResponse" "Network.AWS.Lightsail.GetKeyPair" "amazonka-lightsail-1.6.0-KbsnSgop875C22ikCzX5R7" False) (C1 (MetaCons "GetKeyPairResponse'" PrefixI True) (S1 (MetaSel (Just "_gkprsKeyPair") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe KeyPair)) :*: S1 (MetaSel (Just "_gkprsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses

gkprsKeyPair :: Lens' GetKeyPairResponse (Maybe KeyPair) #

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

gkprsResponseStatus :: Lens' GetKeyPairResponse Int #

  • - | The response status code.