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

Contents

Description

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

Synopsis

Creating a Request

deleteKeyPair Source #

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 Source #

Contains the parameters for DeleteKeyPair.

See: deleteKeyPair smart constructor.

Instances
Eq DeleteKeyPair Source # 
Instance details

Defined in Network.AWS.EC2.DeleteKeyPair

Data DeleteKeyPair Source # 
Instance details

Defined in Network.AWS.EC2.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 Source # 
Instance details

Defined in Network.AWS.EC2.DeleteKeyPair

Show DeleteKeyPair Source # 
Instance details

Defined in Network.AWS.EC2.DeleteKeyPair

Generic DeleteKeyPair Source # 
Instance details

Defined in Network.AWS.EC2.DeleteKeyPair

Associated Types

type Rep DeleteKeyPair :: Type -> Type #

Hashable DeleteKeyPair Source # 
Instance details

Defined in Network.AWS.EC2.DeleteKeyPair

AWSRequest DeleteKeyPair Source # 
Instance details

Defined in Network.AWS.EC2.DeleteKeyPair

Associated Types

type Rs DeleteKeyPair :: Type #

ToHeaders DeleteKeyPair Source # 
Instance details

Defined in Network.AWS.EC2.DeleteKeyPair

ToPath DeleteKeyPair Source # 
Instance details

Defined in Network.AWS.EC2.DeleteKeyPair

ToQuery DeleteKeyPair Source # 
Instance details

Defined in Network.AWS.EC2.DeleteKeyPair

NFData DeleteKeyPair Source # 
Instance details

Defined in Network.AWS.EC2.DeleteKeyPair

Methods

rnf :: DeleteKeyPair -> () #

type Rep DeleteKeyPair Source # 
Instance details

Defined in Network.AWS.EC2.DeleteKeyPair

type Rep DeleteKeyPair = D1 (MetaData "DeleteKeyPair" "Network.AWS.EC2.DeleteKeyPair" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "DeleteKeyPair'" PrefixI True) (S1 (MetaSel (Just "_dkpDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_dkpKeyName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))
type Rs DeleteKeyPair Source # 
Instance details

Defined in Network.AWS.EC2.DeleteKeyPair

Request Lenses

dkpDryRun :: Lens' DeleteKeyPair (Maybe Bool) Source #

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 Source #

The name of the key pair.

Destructuring the Response

deleteKeyPairResponse :: DeleteKeyPairResponse Source #

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

data DeleteKeyPairResponse Source #

See: deleteKeyPairResponse smart constructor.

Instances
Eq DeleteKeyPairResponse Source # 
Instance details

Defined in Network.AWS.EC2.DeleteKeyPair

Data DeleteKeyPairResponse Source # 
Instance details

Defined in Network.AWS.EC2.DeleteKeyPair

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

Defined in Network.AWS.EC2.DeleteKeyPair

Show DeleteKeyPairResponse Source # 
Instance details

Defined in Network.AWS.EC2.DeleteKeyPair

Generic DeleteKeyPairResponse Source # 
Instance details

Defined in Network.AWS.EC2.DeleteKeyPair

Associated Types

type Rep DeleteKeyPairResponse :: Type -> Type #

NFData DeleteKeyPairResponse Source # 
Instance details

Defined in Network.AWS.EC2.DeleteKeyPair

Methods

rnf :: DeleteKeyPairResponse -> () #

type Rep DeleteKeyPairResponse Source # 
Instance details

Defined in Network.AWS.EC2.DeleteKeyPair

type Rep DeleteKeyPairResponse = D1 (MetaData "DeleteKeyPairResponse" "Network.AWS.EC2.DeleteKeyPair" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "DeleteKeyPairResponse'" PrefixI False) (U1 :: Type -> Type))