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

See: AWS API Reference for GetSSHPublicKey.

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:

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:

Response Lenses

gspkrsSSHPublicKey :: Lens' GetSSHPublicKeyResponse (Maybe SSHPublicKey) Source

Information about the SSH public key.