amazonka-iam-1.4.2: Amazon Identity and Access Management 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.IAM.GetSSHPublicKey

Contents

Description

Retrieves the specified SSH public key, including metadata about the key.

The SSH public key retrieved by this action is used only for authenticating the associated IAM user to an AWS CodeCommit repository. For more information about using SSH keys to authenticate to an AWS CodeCommit repository, see Set up AWS CodeCommit for SSH Connections in the AWS CodeCommit User Guide.

Synopsis

Creating a Request

getSSHPublicKey Source #

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

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

data GetSSHPublicKey Source #

See: getSSHPublicKey smart constructor.

Instances

Eq GetSSHPublicKey Source # 
Data GetSSHPublicKey Source # 

Methods

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

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

toConstr :: GetSSHPublicKey -> Constr #

dataTypeOf :: GetSSHPublicKey -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetSSHPublicKey Source # 
Show GetSSHPublicKey Source # 
Generic GetSSHPublicKey Source # 
Hashable GetSSHPublicKey Source # 
NFData GetSSHPublicKey Source # 

Methods

rnf :: GetSSHPublicKey -> () #

AWSRequest GetSSHPublicKey Source # 
ToQuery GetSSHPublicKey Source # 
ToPath GetSSHPublicKey Source # 
ToHeaders GetSSHPublicKey Source # 
type Rep GetSSHPublicKey Source # 
type Rep GetSSHPublicKey = D1 (MetaData "GetSSHPublicKey" "Network.AWS.IAM.GetSSHPublicKey" "amazonka-iam-1.4.2-IxxX1VashHkGLYx0CCJHht" False) (C1 (MetaCons "GetSSHPublicKey'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_gspkUserName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) ((:*:) (S1 (MetaSel (Just Symbol "_gspkSSHPublicKeyId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_gspkEncoding") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 EncodingType)))))
type Rs GetSSHPublicKey Source # 

Request Lenses

gspkUserName :: Lens' GetSSHPublicKey Text Source #

The name of the IAM user associated with the SSH public key.

gspkSSHPublicKeyId :: Lens' GetSSHPublicKey Text Source #

The unique identifier for the SSH public key.

gspkEncoding :: Lens' GetSSHPublicKey EncodingType Source #

Specifies the public key encoding format to use in the response. To retrieve the public key in ssh-rsa format, use SSH. To retrieve the public key in PEM format, use PEM.

Destructuring the Response

getSSHPublicKeyResponse Source #

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

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

data GetSSHPublicKeyResponse Source #

Contains the response to a successful GetSSHPublicKey request.

See: getSSHPublicKeyResponse smart constructor.

Instances

Eq GetSSHPublicKeyResponse Source # 
Data GetSSHPublicKeyResponse Source # 

Methods

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

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

toConstr :: GetSSHPublicKeyResponse -> Constr #

dataTypeOf :: GetSSHPublicKeyResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetSSHPublicKeyResponse Source # 
Show GetSSHPublicKeyResponse Source # 
Generic GetSSHPublicKeyResponse Source # 
NFData GetSSHPublicKeyResponse Source # 

Methods

rnf :: GetSSHPublicKeyResponse -> () #

type Rep GetSSHPublicKeyResponse Source # 
type Rep GetSSHPublicKeyResponse = D1 (MetaData "GetSSHPublicKeyResponse" "Network.AWS.IAM.GetSSHPublicKey" "amazonka-iam-1.4.2-IxxX1VashHkGLYx0CCJHht" False) (C1 (MetaCons "GetSSHPublicKeyResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_gspkrsSSHPublicKey") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe SSHPublicKey))) (S1 (MetaSel (Just Symbol "_gspkrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

gspkrsSSHPublicKey :: Lens' GetSSHPublicKeyResponse (Maybe SSHPublicKey) Source #

Information about the SSH public key.