amazonka-ec2-1.3.5: 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.DescribeKeyPairs

Contents

Description

Describes one or more of your key pairs.

For more information about key pairs, see Key Pairs in the Amazon Elastic Compute Cloud User Guide.

See: AWS API Reference for DescribeKeyPairs.

Synopsis

Creating a Request

describeKeyPairs :: DescribeKeyPairs Source

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

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

Request Lenses

dkpsFilters :: Lens' DescribeKeyPairs [Filter] Source

One or more filters.

  • fingerprint - The fingerprint of the key pair.
  • 'key-name' - The name of the key pair.

dkpsKeyNames :: Lens' DescribeKeyPairs [Text] Source

One or more key pair names.

Default: Describes all your key pairs.

dkpsDryRun :: Lens' DescribeKeyPairs (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.

Destructuring the Response

describeKeyPairsResponse Source

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

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

Response Lenses

dkprsKeyPairs :: Lens' DescribeKeyPairsResponse [KeyPairInfo] Source

Information about one or more key pairs.