amazonka-iam-1.6.1: 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 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 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 Source #

See: uploadSSHPublicKey smart constructor.

Instances
Eq UploadSSHPublicKey Source # 
Instance details

Defined in Network.AWS.IAM.UploadSSHPublicKey

Data UploadSSHPublicKey Source # 
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 Source # 
Instance details

Defined in Network.AWS.IAM.UploadSSHPublicKey

Show UploadSSHPublicKey Source # 
Instance details

Defined in Network.AWS.IAM.UploadSSHPublicKey

Generic UploadSSHPublicKey Source # 
Instance details

Defined in Network.AWS.IAM.UploadSSHPublicKey

Associated Types

type Rep UploadSSHPublicKey :: Type -> Type #

Hashable UploadSSHPublicKey Source # 
Instance details

Defined in Network.AWS.IAM.UploadSSHPublicKey

AWSRequest UploadSSHPublicKey Source # 
Instance details

Defined in Network.AWS.IAM.UploadSSHPublicKey

Associated Types

type Rs UploadSSHPublicKey :: Type #

ToHeaders UploadSSHPublicKey Source # 
Instance details

Defined in Network.AWS.IAM.UploadSSHPublicKey

ToPath UploadSSHPublicKey Source # 
Instance details

Defined in Network.AWS.IAM.UploadSSHPublicKey

ToQuery UploadSSHPublicKey Source # 
Instance details

Defined in Network.AWS.IAM.UploadSSHPublicKey

NFData UploadSSHPublicKey Source # 
Instance details

Defined in Network.AWS.IAM.UploadSSHPublicKey

Methods

rnf :: UploadSSHPublicKey -> () #

type Rep UploadSSHPublicKey Source # 
Instance details

Defined in Network.AWS.IAM.UploadSSHPublicKey

type Rep UploadSSHPublicKey = D1 (MetaData "UploadSSHPublicKey" "Network.AWS.IAM.UploadSSHPublicKey" "amazonka-iam-1.6.1-BDjAp2BAcQu3GSS4Bsr6zu" 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 Source # 
Instance details

Defined in Network.AWS.IAM.UploadSSHPublicKey

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

Defined in Network.AWS.IAM.UploadSSHPublicKey

Data UploadSSHPublicKeyResponse Source # 
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 Source # 
Instance details

Defined in Network.AWS.IAM.UploadSSHPublicKey

Show UploadSSHPublicKeyResponse Source # 
Instance details

Defined in Network.AWS.IAM.UploadSSHPublicKey

Generic UploadSSHPublicKeyResponse Source # 
Instance details

Defined in Network.AWS.IAM.UploadSSHPublicKey

Associated Types

type Rep UploadSSHPublicKeyResponse :: Type -> Type #

NFData UploadSSHPublicKeyResponse Source # 
Instance details

Defined in Network.AWS.IAM.UploadSSHPublicKey

type Rep UploadSSHPublicKeyResponse Source # 
Instance details

Defined in Network.AWS.IAM.UploadSSHPublicKey

type Rep UploadSSHPublicKeyResponse = D1 (MetaData "UploadSSHPublicKeyResponse" "Network.AWS.IAM.UploadSSHPublicKey" "amazonka-iam-1.6.1-BDjAp2BAcQu3GSS4Bsr6zu" 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) Source #

Contains information about the SSH public key.