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

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

Synopsis

Creating a Request

describeKeyPairs :: DescribeKeyPairs #

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:

  • dkpsFilters - One or more filters. * fingerprint - The fingerprint of the key pair. * key-name - The name of the key pair.
  • dkpsKeyNames - One or more key pair names. Default: Describes all your key pairs.
  • dkpsDryRun - 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 .

data DescribeKeyPairs #

Contains the parameters for DescribeKeyPairs.

See: describeKeyPairs smart constructor.

Instances

Eq DescribeKeyPairs # 
Data DescribeKeyPairs # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DescribeKeyPairs -> c DescribeKeyPairs #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DescribeKeyPairs #

toConstr :: DescribeKeyPairs -> Constr #

dataTypeOf :: DescribeKeyPairs -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c DescribeKeyPairs) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DescribeKeyPairs) #

gmapT :: (forall b. Data b => b -> b) -> DescribeKeyPairs -> DescribeKeyPairs #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DescribeKeyPairs -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DescribeKeyPairs -> r #

gmapQ :: (forall d. Data d => d -> u) -> DescribeKeyPairs -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DescribeKeyPairs -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DescribeKeyPairs -> m DescribeKeyPairs #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeKeyPairs -> m DescribeKeyPairs #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeKeyPairs -> m DescribeKeyPairs #

Read DescribeKeyPairs # 
Show DescribeKeyPairs # 
Generic DescribeKeyPairs # 
Hashable DescribeKeyPairs # 
NFData DescribeKeyPairs # 

Methods

rnf :: DescribeKeyPairs -> () #

AWSRequest DescribeKeyPairs # 
ToQuery DescribeKeyPairs # 
ToPath DescribeKeyPairs # 
ToHeaders DescribeKeyPairs # 
type Rep DescribeKeyPairs # 
type Rep DescribeKeyPairs = D1 (MetaData "DescribeKeyPairs" "Network.AWS.EC2.DescribeKeyPairs" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" False) (C1 (MetaCons "DescribeKeyPairs'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_dkpsFilters") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Filter]))) ((:*:) (S1 (MetaSel (Just Symbol "_dkpsKeyNames") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))) (S1 (MetaSel (Just Symbol "_dkpsDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))))))
type Rs DescribeKeyPairs # 

Request Lenses

dkpsFilters :: Lens' DescribeKeyPairs [Filter] #

One or more filters. * fingerprint - The fingerprint of the key pair. * key-name - The name of the key pair.

dkpsKeyNames :: Lens' DescribeKeyPairs [Text] #

One or more key pair names. Default: Describes all your key pairs.

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

Destructuring the Response

describeKeyPairsResponse #

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:

data DescribeKeyPairsResponse #

Contains the output of DescribeKeyPairs.

See: describeKeyPairsResponse smart constructor.

Instances

Eq DescribeKeyPairsResponse # 
Data DescribeKeyPairsResponse # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DescribeKeyPairsResponse -> c DescribeKeyPairsResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DescribeKeyPairsResponse #

toConstr :: DescribeKeyPairsResponse -> Constr #

dataTypeOf :: DescribeKeyPairsResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c DescribeKeyPairsResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DescribeKeyPairsResponse) #

gmapT :: (forall b. Data b => b -> b) -> DescribeKeyPairsResponse -> DescribeKeyPairsResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DescribeKeyPairsResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DescribeKeyPairsResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> DescribeKeyPairsResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DescribeKeyPairsResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DescribeKeyPairsResponse -> m DescribeKeyPairsResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeKeyPairsResponse -> m DescribeKeyPairsResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeKeyPairsResponse -> m DescribeKeyPairsResponse #

Read DescribeKeyPairsResponse # 
Show DescribeKeyPairsResponse # 
Generic DescribeKeyPairsResponse # 
NFData DescribeKeyPairsResponse # 
type Rep DescribeKeyPairsResponse # 
type Rep DescribeKeyPairsResponse = D1 (MetaData "DescribeKeyPairsResponse" "Network.AWS.EC2.DescribeKeyPairs" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" False) (C1 (MetaCons "DescribeKeyPairsResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_dkprsKeyPairs") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [KeyPairInfo]))) (S1 (MetaSel (Just Symbol "_dkprsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))))

Response Lenses

dkprsKeyPairs :: Lens' DescribeKeyPairsResponse [KeyPairInfo] #

Information about one or more key pairs.

dkprsResponseStatus :: Lens' DescribeKeyPairsResponse Int #

  • - | The response status code.