Copyright | (c) 2013-2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Uploads an X.509 signing certificate and associates it with the
specified 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 user name is determined
implicitly based on the AWS access key ID used to sign the request.
Because this action works for access keys under the AWS account, you can
use this action to manage root credentials even if the AWS account has
no associated users.
Because the body of a X.509 certificate can be large, you should use
POST rather than GET when calling UploadSigningCertificate
. 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
Making Query Requests
in the Using IAMguide.
See: AWS API Reference for UploadSigningCertificate.
- uploadSigningCertificate :: Text -> UploadSigningCertificate
- data UploadSigningCertificate
- uplUserName :: Lens' UploadSigningCertificate (Maybe Text)
- uplCertificateBody :: Lens' UploadSigningCertificate Text
- uploadSigningCertificateResponse :: Int -> SigningCertificate -> UploadSigningCertificateResponse
- data UploadSigningCertificateResponse
- uscrsStatus :: Lens' UploadSigningCertificateResponse Int
- uscrsCertificate :: Lens' UploadSigningCertificateResponse SigningCertificate
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:
data UploadSigningCertificate Source
See: uploadSigningCertificate
smart constructor.
Request Lenses
uplUserName :: Lens' UploadSigningCertificate (Maybe Text) Source
The name of the user the signing certificate is for.
uplCertificateBody :: Lens' UploadSigningCertificate Text Source
The contents of the signing certificate.
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.
Response Lenses
uscrsStatus :: Lens' UploadSigningCertificateResponse Int Source
The response status code.
uscrsCertificate :: Lens' UploadSigningCertificateResponse SigningCertificate Source
Information about the certificate.