amazonka-lightsail-1.4.5: Amazon Lightsail SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.Lightsail.ImportKeyPair

Contents

Description

Imports a public SSH key from a specific key pair.

Synopsis

Creating a Request

importKeyPair Source #

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

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

data ImportKeyPair Source #

See: importKeyPair smart constructor.

Instances

Eq ImportKeyPair Source # 
Data ImportKeyPair Source # 

Methods

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

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

toConstr :: ImportKeyPair -> Constr #

dataTypeOf :: ImportKeyPair -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ImportKeyPair Source # 
Show ImportKeyPair Source # 
Generic ImportKeyPair Source # 

Associated Types

type Rep ImportKeyPair :: * -> * #

Hashable ImportKeyPair Source # 
ToJSON ImportKeyPair Source # 
NFData ImportKeyPair Source # 

Methods

rnf :: ImportKeyPair -> () #

AWSRequest ImportKeyPair Source # 
ToPath ImportKeyPair Source # 
ToHeaders ImportKeyPair Source # 
ToQuery ImportKeyPair Source # 
type Rep ImportKeyPair Source # 
type Rep ImportKeyPair = D1 (MetaData "ImportKeyPair" "Network.AWS.Lightsail.ImportKeyPair" "amazonka-lightsail-1.4.5-5jz0XqtfwkUBGV0E8NKblJ" False) (C1 (MetaCons "ImportKeyPair'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_ikpKeyPairName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_ikpPublicKeyBase64") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs ImportKeyPair Source # 

Request Lenses

ikpKeyPairName :: Lens' ImportKeyPair Text Source #

The name of the key pair for which you want to import the public key.

ikpPublicKeyBase64 :: Lens' ImportKeyPair Text Source #

A base64-encoded public key of the ssh-rsa type.

Destructuring the Response

importKeyPairResponse Source #

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

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

data ImportKeyPairResponse Source #

See: importKeyPairResponse smart constructor.

Instances

Eq ImportKeyPairResponse Source # 
Data ImportKeyPairResponse Source # 

Methods

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

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

toConstr :: ImportKeyPairResponse -> Constr #

dataTypeOf :: ImportKeyPairResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ImportKeyPairResponse Source # 
Show ImportKeyPairResponse Source # 
Generic ImportKeyPairResponse Source # 
NFData ImportKeyPairResponse Source # 

Methods

rnf :: ImportKeyPairResponse -> () #

type Rep ImportKeyPairResponse Source # 
type Rep ImportKeyPairResponse = D1 (MetaData "ImportKeyPairResponse" "Network.AWS.Lightsail.ImportKeyPair" "amazonka-lightsail-1.4.5-5jz0XqtfwkUBGV0E8NKblJ" False) (C1 (MetaCons "ImportKeyPairResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_ikprsOperation") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Operation))) (S1 (MetaSel (Just Symbol "_ikprsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))))

Response Lenses

ikprsOperation :: Lens' ImportKeyPairResponse (Maybe Operation) Source #

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

ikprsResponseStatus :: Lens' ImportKeyPairResponse Int Source #

  • - | The response status code.