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

Copyright(c) 2013-2016 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.UploadServerCertificate

Contents

Description

Uploads a server certificate entity for the AWS account. The server certificate entity includes a public key certificate, a private key, and an optional certificate chain, which should all be PEM-encoded.

For more information about working with server certificates, including a list of AWS services that can use the server certificates that you manage with IAM, go to Working with Server Certificates in the IAM User Guide.

For information about the number of server certificates you can upload, see Limitations on IAM Entities and Objects in the IAM User Guide.

Because the body of the public key certificate, private key, and the certificate chain can be large, you should use POST rather than GET when calling UploadServerCertificate. For information about setting up signatures and authorization through the API, go to Signing AWS API Requests in the AWS General Reference. For general information about using the Query API with IAM, go to Calling the API by Making HTTP Query Requests in the IAM User Guide.

Synopsis

Creating a Request

uploadServerCertificate Source #

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

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

data UploadServerCertificate Source #

See: uploadServerCertificate smart constructor.

Instances

Eq UploadServerCertificate Source # 
Data UploadServerCertificate Source # 

Methods

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

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

toConstr :: UploadServerCertificate -> Constr #

dataTypeOf :: UploadServerCertificate -> DataType #

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

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

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

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

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

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

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

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

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

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

Read UploadServerCertificate Source # 
Show UploadServerCertificate Source # 
Generic UploadServerCertificate Source # 
Hashable UploadServerCertificate Source # 
NFData UploadServerCertificate Source # 

Methods

rnf :: UploadServerCertificate -> () #

AWSRequest UploadServerCertificate Source # 
ToQuery UploadServerCertificate Source # 
ToPath UploadServerCertificate Source # 
ToHeaders UploadServerCertificate Source # 
type Rep UploadServerCertificate Source # 
type Rep UploadServerCertificate = D1 (MetaData "UploadServerCertificate" "Network.AWS.IAM.UploadServerCertificate" "amazonka-iam-1.4.1-7UxTCVdPNcf8CA4oHmoXZ6" False) (C1 (MetaCons "UploadServerCertificate'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_uscPath") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_uscCertificateChain") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_uscServerCertificateName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) ((:*:) (S1 (MetaSel (Just Symbol "_uscCertificateBody") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_uscPrivateKey") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Sensitive Text)))))))
type Rs UploadServerCertificate Source # 

Request Lenses

uscPath :: Lens' UploadServerCertificate (Maybe Text) Source #

The path for the server certificate. For more information about paths, see IAM Identifiers in the Using IAM guide.

This parameter is optional. If it is not included, it defaults to a slash (/).

If you are uploading a server certificate specifically for use with Amazon CloudFront distributions, you must specify a path using the '--path' option. The path must begin with '\/cloudfront' and must include a trailing slash (for example, '\/cloudfront\/test\/').

uscCertificateChain :: Lens' UploadServerCertificate (Maybe Text) Source #

The contents of the certificate chain. This is typically a concatenation of the PEM-encoded public key certificates of the chain.

uscServerCertificateName :: Lens' UploadServerCertificate Text Source #

The name for the server certificate. Do not include the path in this value. The name of the certificate cannot contain any spaces.

uscCertificateBody :: Lens' UploadServerCertificate Text Source #

The contents of the public key certificate in PEM-encoded format.

uscPrivateKey :: Lens' UploadServerCertificate Text Source #

The contents of the private key in PEM-encoded format.

Destructuring the Response

uploadServerCertificateResponse Source #

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

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

data UploadServerCertificateResponse Source #

Contains the response to a successful UploadServerCertificate request.

See: uploadServerCertificateResponse smart constructor.

Instances

Eq UploadServerCertificateResponse Source # 
Data UploadServerCertificateResponse Source # 

Methods

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

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

toConstr :: UploadServerCertificateResponse -> Constr #

dataTypeOf :: UploadServerCertificateResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read UploadServerCertificateResponse Source # 
Show UploadServerCertificateResponse Source # 
Generic UploadServerCertificateResponse Source # 
NFData UploadServerCertificateResponse Source # 
type Rep UploadServerCertificateResponse Source # 
type Rep UploadServerCertificateResponse = D1 (MetaData "UploadServerCertificateResponse" "Network.AWS.IAM.UploadServerCertificate" "amazonka-iam-1.4.1-7UxTCVdPNcf8CA4oHmoXZ6" False) (C1 (MetaCons "UploadServerCertificateResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_ursServerCertificateMetadata") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ServerCertificateMetadata))) (S1 (MetaSel (Just Symbol "_ursResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

ursServerCertificateMetadata :: Lens' UploadServerCertificateResponse (Maybe ServerCertificateMetadata) Source #

The meta information of the uploaded server certificate without its certificate body, certificate chain, and private key.