amazonka-ec2-1.4.5: Amazon Elastic Compute Cloud 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.EC2.DeleteKeyPair

Contents

Description

Deletes the specified key pair, by removing the public key from Amazon EC2.

Synopsis

Creating a Request

deleteKeyPair #

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

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

  • dkpDryRun - Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation . Otherwise, it is UnauthorizedOperation .
  • dkpKeyName - The name of the key pair.

data DeleteKeyPair #

Contains the parameters for DeleteKeyPair.

See: deleteKeyPair smart constructor.

Instances

Eq DeleteKeyPair # 
Data DeleteKeyPair # 

Methods

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

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

toConstr :: DeleteKeyPair -> Constr #

dataTypeOf :: DeleteKeyPair -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeleteKeyPair # 
Show DeleteKeyPair # 
Generic DeleteKeyPair # 

Associated Types

type Rep DeleteKeyPair :: * -> * #

Hashable DeleteKeyPair # 
NFData DeleteKeyPair # 

Methods

rnf :: DeleteKeyPair -> () #

AWSRequest DeleteKeyPair # 
ToQuery DeleteKeyPair # 
ToPath DeleteKeyPair # 
ToHeaders DeleteKeyPair # 
type Rep DeleteKeyPair # 
type Rep DeleteKeyPair = D1 (MetaData "DeleteKeyPair" "Network.AWS.EC2.DeleteKeyPair" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" False) (C1 (MetaCons "DeleteKeyPair'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_dkpDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) (S1 (MetaSel (Just Symbol "_dkpKeyName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs DeleteKeyPair # 

Request Lenses

dkpDryRun :: Lens' DeleteKeyPair (Maybe Bool) #

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation . Otherwise, it is UnauthorizedOperation .

dkpKeyName :: Lens' DeleteKeyPair Text #

The name of the key pair.

Destructuring the Response

deleteKeyPairResponse :: DeleteKeyPairResponse #

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

data DeleteKeyPairResponse #

See: deleteKeyPairResponse smart constructor.

Instances

Eq DeleteKeyPairResponse # 
Data DeleteKeyPairResponse # 

Methods

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

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

toConstr :: DeleteKeyPairResponse -> Constr #

dataTypeOf :: DeleteKeyPairResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeleteKeyPairResponse # 
Show DeleteKeyPairResponse # 
Generic DeleteKeyPairResponse # 
NFData DeleteKeyPairResponse # 

Methods

rnf :: DeleteKeyPairResponse -> () #

type Rep DeleteKeyPairResponse # 
type Rep DeleteKeyPairResponse = D1 (MetaData "DeleteKeyPairResponse" "Network.AWS.EC2.DeleteKeyPair" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" False) (C1 (MetaCons "DeleteKeyPairResponse'" PrefixI False) U1)