amazonka-iam-1.3.3.1: 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.UploadSSHPublicKey

Contents

Description

Uploads an SSH public key and associates it with the specified IAM user.

The SSH public key uploaded by this action can be 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 UploadSSHPublicKey.

Synopsis

Creating a Request

uploadSSHPublicKey Source

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

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

Request Lenses

usshpkUserName :: Lens' UploadSSHPublicKey Text Source

The name of the IAM user to associate the SSH public key with.

usshpkSSHPublicKeyBody :: Lens' UploadSSHPublicKey Text Source

The SSH public key. The public key must be encoded in ssh-rsa format or PEM format.

Destructuring the Response

uploadSSHPublicKeyResponse Source

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

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

Response Lenses

uspkrsSSHPublicKey :: Lens' UploadSSHPublicKeyResponse (Maybe SSHPublicKey) Source

Contains information about the SSH public key.