amazonka-ec2-0.3.6: Amazon Elastic Compute Cloud SDK.

Safe HaskellNone
LanguageHaskell2010

Network.AWS.EC2.DeleteKeyPair

Contents

Description

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

http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ApiReference-query-DeleteKeyPair.html

Synopsis

Request

Request constructor

deleteKeyPair Source

DeleteKeyPair constructor.

The fields accessible through corresponding lenses are:

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.

Response

Response constructor