amazonka-ec2-1.6.0: 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 #

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

Defined in Network.AWS.EC2.DeleteKeyPair

Data DeleteKeyPair # 
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 # 
Instance details

Defined in Network.AWS.EC2.DeleteKeyPair

Show DeleteKeyPair # 
Instance details

Defined in Network.AWS.EC2.DeleteKeyPair

Generic DeleteKeyPair # 
Instance details

Defined in Network.AWS.EC2.DeleteKeyPair

Associated Types

type Rep DeleteKeyPair :: * -> * #

Hashable DeleteKeyPair # 
Instance details

Defined in Network.AWS.EC2.DeleteKeyPair

AWSRequest DeleteKeyPair # 
Instance details

Defined in Network.AWS.EC2.DeleteKeyPair

Associated Types

type Rs DeleteKeyPair :: * #

ToHeaders DeleteKeyPair # 
Instance details

Defined in Network.AWS.EC2.DeleteKeyPair

ToPath DeleteKeyPair # 
Instance details

Defined in Network.AWS.EC2.DeleteKeyPair

ToQuery DeleteKeyPair # 
Instance details

Defined in Network.AWS.EC2.DeleteKeyPair

NFData DeleteKeyPair # 
Instance details

Defined in Network.AWS.EC2.DeleteKeyPair

Methods

rnf :: DeleteKeyPair -> () #

type Rep DeleteKeyPair # 
Instance details

Defined in Network.AWS.EC2.DeleteKeyPair

type Rep DeleteKeyPair = D1 (MetaData "DeleteKeyPair" "Network.AWS.EC2.DeleteKeyPair" "amazonka-ec2-1.6.0-G6ppxISnQxeI7PhDx9p8Zy" 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 # 
Instance details

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

Defined in Network.AWS.EC2.DeleteKeyPair

Data DeleteKeyPairResponse # 
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 # 
Instance details

Defined in Network.AWS.EC2.DeleteKeyPair

Show DeleteKeyPairResponse # 
Instance details

Defined in Network.AWS.EC2.DeleteKeyPair

Generic DeleteKeyPairResponse # 
Instance details

Defined in Network.AWS.EC2.DeleteKeyPair

Associated Types

type Rep DeleteKeyPairResponse :: * -> * #

NFData DeleteKeyPairResponse # 
Instance details

Defined in Network.AWS.EC2.DeleteKeyPair

Methods

rnf :: DeleteKeyPairResponse -> () #

type Rep DeleteKeyPairResponse # 
Instance details

Defined in Network.AWS.EC2.DeleteKeyPair

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