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

Copyright(c) 2013-2015 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.

See: AWS API Reference for DeleteKeyPair.

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:

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.