Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@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 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
- uploadSigningCertificate :: Text -> UploadSigningCertificate
- data UploadSigningCertificate
- uplUserName :: Lens' UploadSigningCertificate (Maybe Text)
- uplCertificateBody :: Lens' UploadSigningCertificate Text
- uploadSigningCertificateResponse :: Int -> SigningCertificate -> UploadSigningCertificateResponse
- data UploadSigningCertificateResponse
- uscrsResponseStatus :: 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:
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
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:
uscrsResponseStatus
- -- | The response status code.uscrsCertificate
- Information about the certificate.
data UploadSigningCertificateResponse Source #
Contains the response to a successful UploadSigningCertificate
request.
See: uploadSigningCertificateResponse
smart constructor.
Instances
Response Lenses
uscrsResponseStatus :: Lens' UploadSigningCertificateResponse Int Source #
- - | The response status code.
uscrsCertificate :: Lens' UploadSigningCertificateResponse SigningCertificate Source #
Information about the certificate.