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

Copyright(c) 2013-2018 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 operation 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 #

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 the following: * Any printable ASCII character ranging from the space character (u0020) through the end of the ASCII character range * The printable characters in the Basic Latin and Latin-1 Supplement character set (through u00FF) * The special characters tab (u0009), line feed (u000A), and carriage return (u000D)

data UploadSSHPublicKey #

See: uploadSSHPublicKey smart constructor.

Instances
Eq UploadSSHPublicKey # 
Instance details

Defined in Network.AWS.IAM.UploadSSHPublicKey

Data UploadSSHPublicKey # 
Instance details

Defined in Network.AWS.IAM.UploadSSHPublicKey

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 # 
Instance details

Defined in Network.AWS.IAM.UploadSSHPublicKey

Show UploadSSHPublicKey # 
Instance details

Defined in Network.AWS.IAM.UploadSSHPublicKey

Generic UploadSSHPublicKey # 
Instance details

Defined in Network.AWS.IAM.UploadSSHPublicKey

Associated Types

type Rep UploadSSHPublicKey :: * -> * #

Hashable UploadSSHPublicKey # 
Instance details

Defined in Network.AWS.IAM.UploadSSHPublicKey

AWSRequest UploadSSHPublicKey # 
Instance details

Defined in Network.AWS.IAM.UploadSSHPublicKey

Associated Types

type Rs UploadSSHPublicKey :: * #

ToHeaders UploadSSHPublicKey # 
Instance details

Defined in Network.AWS.IAM.UploadSSHPublicKey

ToPath UploadSSHPublicKey # 
Instance details

Defined in Network.AWS.IAM.UploadSSHPublicKey

ToQuery UploadSSHPublicKey # 
Instance details

Defined in Network.AWS.IAM.UploadSSHPublicKey

NFData UploadSSHPublicKey # 
Instance details

Defined in Network.AWS.IAM.UploadSSHPublicKey

Methods

rnf :: UploadSSHPublicKey -> () #

type Rep UploadSSHPublicKey # 
Instance details

Defined in Network.AWS.IAM.UploadSSHPublicKey

type Rep UploadSSHPublicKey = D1 (MetaData "UploadSSHPublicKey" "Network.AWS.IAM.UploadSSHPublicKey" "amazonka-iam-1.6.0-KLHg33OPBsA2oss7MTCyZq" False) (C1 (MetaCons "UploadSSHPublicKey'" PrefixI True) (S1 (MetaSel (Just "_usshpkUserName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_usshpkSSHPublicKeyBody") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))
type Rs UploadSSHPublicKey # 
Instance details

Defined in Network.AWS.IAM.UploadSSHPublicKey

Request Lenses

usshpkUserName :: Lens' UploadSSHPublicKey Text #

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 #

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 the following: * Any printable ASCII character ranging from the space character (u0020) through the end of the ASCII character range * The printable characters in the Basic Latin and Latin-1 Supplement character set (through u00FF) * The special characters tab (u0009), line feed (u000A), and carriage return (u000D)

Destructuring the Response

uploadSSHPublicKeyResponse #

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 #

Contains the response to a successful UploadSSHPublicKey request.

See: uploadSSHPublicKeyResponse smart constructor.

Instances
Eq UploadSSHPublicKeyResponse # 
Instance details

Defined in Network.AWS.IAM.UploadSSHPublicKey

Data UploadSSHPublicKeyResponse # 
Instance details

Defined in Network.AWS.IAM.UploadSSHPublicKey

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 # 
Instance details

Defined in Network.AWS.IAM.UploadSSHPublicKey

Show UploadSSHPublicKeyResponse # 
Instance details

Defined in Network.AWS.IAM.UploadSSHPublicKey

Generic UploadSSHPublicKeyResponse # 
Instance details

Defined in Network.AWS.IAM.UploadSSHPublicKey

Associated Types

type Rep UploadSSHPublicKeyResponse :: * -> * #

NFData UploadSSHPublicKeyResponse # 
Instance details

Defined in Network.AWS.IAM.UploadSSHPublicKey

type Rep UploadSSHPublicKeyResponse # 
Instance details

Defined in Network.AWS.IAM.UploadSSHPublicKey

type Rep UploadSSHPublicKeyResponse = D1 (MetaData "UploadSSHPublicKeyResponse" "Network.AWS.IAM.UploadSSHPublicKey" "amazonka-iam-1.6.0-KLHg33OPBsA2oss7MTCyZq" False) (C1 (MetaCons "UploadSSHPublicKeyResponse'" PrefixI True) (S1 (MetaSel (Just "_uspkrsSSHPublicKey") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe SSHPublicKey)) :*: S1 (MetaSel (Just "_uspkrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses

uspkrsSSHPublicKey :: Lens' UploadSSHPublicKeyResponse (Maybe SSHPublicKey) #

Contains information about the SSH public key.