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 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:

  • 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 Source #

Contains the parameters for DescribeKeyPairs.

See: describeKeyPairs smart constructor.

Instances

Eq DescribeKeyPairs Source # 
Data DescribeKeyPairs Source # 

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 Source # 
Show DescribeKeyPairs Source # 
Generic DescribeKeyPairs Source # 
Hashable DescribeKeyPairs Source # 
NFData DescribeKeyPairs Source # 

Methods

rnf :: DescribeKeyPairs -> () #

AWSRequest DescribeKeyPairs Source # 
ToPath DescribeKeyPairs Source # 
ToHeaders DescribeKeyPairs Source # 
ToQuery DescribeKeyPairs Source # 
type Rep DescribeKeyPairs Source # 
type Rep DescribeKeyPairs = D1 (MetaData "DescribeKeyPairs" "Network.AWS.EC2.DescribeKeyPairs" "amazonka-ec2-1.4.5-4J1X1aohvSR7xjHvMmTrf6" 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 Source # 

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:

data DescribeKeyPairsResponse Source #

Contains the output of DescribeKeyPairs.

See: describeKeyPairsResponse smart constructor.

Instances

Eq DescribeKeyPairsResponse Source # 
Data DescribeKeyPairsResponse Source # 

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 Source # 
Show DescribeKeyPairsResponse Source # 
Generic DescribeKeyPairsResponse Source # 
NFData DescribeKeyPairsResponse Source # 
type Rep DescribeKeyPairsResponse Source # 
type Rep DescribeKeyPairsResponse = D1 (MetaData "DescribeKeyPairsResponse" "Network.AWS.EC2.DescribeKeyPairs" "amazonka-ec2-1.4.5-4J1X1aohvSR7xjHvMmTrf6" 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] Source #

Information about one or more key pairs.