amazonka-iam-1.5.0: Amazon Identity and Access Management SDK.

Copyright(c) 2013-2017 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@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 .

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:

  • usshpkUserName - The name of the IAM user to associate the SSH public key with. This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-
  • usshpkSSHPublicKeyBody - The SSH public key. The public key must be encoded in ssh-rsa format or PEM format. The regex pattern used to validate this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (u0020) through end of the ASCII character range as well as the printable characters in the Basic Latin and Latin-1 Supplement character set (through u00FF). It also includes the special characters tab (u0009), line feed (u000A), and carriage return (u000D).

data UploadSSHPublicKey Source #

See: uploadSSHPublicKey smart constructor.

Instances

Eq UploadSSHPublicKey Source # 
Data UploadSSHPublicKey Source # 

Methods

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

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

toConstr :: UploadSSHPublicKey -> Constr #

dataTypeOf :: UploadSSHPublicKey -> DataType #

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

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

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

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

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

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

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

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

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

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

Read UploadSSHPublicKey Source # 
Show UploadSSHPublicKey Source # 
Generic UploadSSHPublicKey Source # 
Hashable UploadSSHPublicKey Source # 
NFData UploadSSHPublicKey Source # 

Methods

rnf :: UploadSSHPublicKey -> () #

AWSRequest UploadSSHPublicKey Source # 
ToQuery UploadSSHPublicKey Source # 
ToPath UploadSSHPublicKey Source # 
ToHeaders UploadSSHPublicKey Source # 
type Rep UploadSSHPublicKey Source # 
type Rep UploadSSHPublicKey = D1 (MetaData "UploadSSHPublicKey" "Network.AWS.IAM.UploadSSHPublicKey" "amazonka-iam-1.5.0-2w4nVHAOrDgI2P1QVLKd9e" False) (C1 (MetaCons "UploadSSHPublicKey'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_usshpkUserName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_usshpkSSHPublicKeyBody") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs UploadSSHPublicKey Source # 

Request Lenses

usshpkUserName :: Lens' UploadSSHPublicKey Text Source #

The name of the IAM user to associate the SSH public key with. This parameter allows (per its regex pattern ) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: =,.@-

usshpkSSHPublicKeyBody :: Lens' UploadSSHPublicKey Text Source #

The SSH public key. The public key must be encoded in ssh-rsa format or PEM format. The regex pattern used to validate this parameter is a string of characters consisting of any printable ASCII character ranging from the space character (u0020) through end of the ASCII character range as well as the printable characters in the Basic Latin and Latin-1 Supplement character set (through u00FF). It also includes the special characters tab (u0009), line feed (u000A), and carriage return (u000D).

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:

data UploadSSHPublicKeyResponse Source #

Contains the response to a successful UploadSSHPublicKey request.

See: uploadSSHPublicKeyResponse smart constructor.

Instances

Eq UploadSSHPublicKeyResponse Source # 
Data UploadSSHPublicKeyResponse Source # 

Methods

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

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

toConstr :: UploadSSHPublicKeyResponse -> Constr #

dataTypeOf :: UploadSSHPublicKeyResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read UploadSSHPublicKeyResponse Source # 
Show UploadSSHPublicKeyResponse Source # 
Generic UploadSSHPublicKeyResponse Source # 
NFData UploadSSHPublicKeyResponse Source # 
type Rep UploadSSHPublicKeyResponse Source # 
type Rep UploadSSHPublicKeyResponse = D1 (MetaData "UploadSSHPublicKeyResponse" "Network.AWS.IAM.UploadSSHPublicKey" "amazonka-iam-1.5.0-2w4nVHAOrDgI2P1QVLKd9e" False) (C1 (MetaCons "UploadSSHPublicKeyResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_uspkrsSSHPublicKey") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe SSHPublicKey))) (S1 (MetaSel (Just Symbol "_uspkrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

uspkrsSSHPublicKey :: Lens' UploadSSHPublicKeyResponse (Maybe SSHPublicKey) Source #

Contains information about the SSH public key.