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.UploadSigningCertificate

Contents

Description

Uploads an X.509 signing certificate and associates it with the specified IAM user. Some AWS services use X.509 signing certificates to validate requests that are signed with a corresponding private key. When you upload the certificate, its default status is Active .

If the UserName field is not specified, the IAM user name is determined implicitly based on the AWS access key ID used to sign the request. Because this operation works for access keys under the AWS account, you can use this operation to manage AWS account root user credentials even if the AWS account has no associated users.

Synopsis

Creating a Request

uploadSigningCertificate Source #

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

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

  • uplUserName - The name of the user the signing certificate is for. 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: _+=,.@-
  • uplCertificateBody - The contents of the signing certificate. 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 UploadSigningCertificate Source #

See: uploadSigningCertificate smart constructor.

Instances

Eq UploadSigningCertificate Source # 
Data UploadSigningCertificate Source # 

Methods

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

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

toConstr :: UploadSigningCertificate -> Constr #

dataTypeOf :: UploadSigningCertificate -> DataType #

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

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

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

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

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

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

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

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

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

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

Read UploadSigningCertificate Source # 
Show UploadSigningCertificate Source # 
Generic UploadSigningCertificate Source # 
Hashable UploadSigningCertificate Source # 
NFData UploadSigningCertificate Source # 
AWSRequest UploadSigningCertificate Source # 
ToHeaders UploadSigningCertificate Source # 
ToPath UploadSigningCertificate Source # 
ToQuery UploadSigningCertificate Source # 
type Rep UploadSigningCertificate Source # 
type Rep UploadSigningCertificate = D1 * (MetaData "UploadSigningCertificate" "Network.AWS.IAM.UploadSigningCertificate" "amazonka-iam-1.6.0-CI3f7XZIc4eD0Ehb04tNY7" False) (C1 * (MetaCons "UploadSigningCertificate'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_uplUserName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_uplCertificateBody") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))))
type Rs UploadSigningCertificate Source # 

Request Lenses

uplUserName :: Lens' UploadSigningCertificate (Maybe Text) Source #

The name of the user the signing certificate is for. 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: _+=,.@-

uplCertificateBody :: Lens' UploadSigningCertificate Text Source #

The contents of the signing certificate. 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

uploadSigningCertificateResponse Source #

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

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

data UploadSigningCertificateResponse Source #

Contains the response to a successful UploadSigningCertificate request.

See: uploadSigningCertificateResponse smart constructor.

Instances

Eq UploadSigningCertificateResponse Source # 
Data UploadSigningCertificateResponse Source # 

Methods

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

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

toConstr :: UploadSigningCertificateResponse -> Constr #

dataTypeOf :: UploadSigningCertificateResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read UploadSigningCertificateResponse Source # 
Show UploadSigningCertificateResponse Source # 
Generic UploadSigningCertificateResponse Source # 
NFData UploadSigningCertificateResponse Source # 
type Rep UploadSigningCertificateResponse Source # 
type Rep UploadSigningCertificateResponse = D1 * (MetaData "UploadSigningCertificateResponse" "Network.AWS.IAM.UploadSigningCertificate" "amazonka-iam-1.6.0-CI3f7XZIc4eD0Ehb04tNY7" False) (C1 * (MetaCons "UploadSigningCertificateResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_uscrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)) (S1 * (MetaSel (Just Symbol "_uscrsCertificate") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * SigningCertificate))))

Response Lenses