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 |
Changes the status of the specified user signing certificate from active to disabled, or vice versa. This operation can be used to disable an IAM user's signing certificate as part of a certificate rotation work flow.
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 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
- updateSigningCertificate :: Text -> StatusType -> UpdateSigningCertificate
- data UpdateSigningCertificate
- uscUserName :: Lens' UpdateSigningCertificate (Maybe Text)
- uscCertificateId :: Lens' UpdateSigningCertificate Text
- uscStatus :: Lens' UpdateSigningCertificate StatusType
- updateSigningCertificateResponse :: UpdateSigningCertificateResponse
- data UpdateSigningCertificateResponse
Creating a Request
updateSigningCertificate Source #
Creates a value of UpdateSigningCertificate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
uscUserName
- The name of the IAM user the signing certificate belongs to. 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: _+=,.@-uscCertificateId
- The ID of the signing certificate you want to update. This parameter allows (per its regex pattern ) a string of characters that can consist of any upper or lowercased letter or digit.uscStatus
- The status you want to assign to the certificate.Active
means that the certificate can be used for API calls to AWSInactive
means that the certificate cannot be used.
data UpdateSigningCertificate Source #
See: updateSigningCertificate
smart constructor.
Instances
Request Lenses
uscUserName :: Lens' UpdateSigningCertificate (Maybe Text) Source #
The name of the IAM user the signing certificate belongs to. 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: _+=,.@-
uscCertificateId :: Lens' UpdateSigningCertificate Text Source #
The ID of the signing certificate you want to update. This parameter allows (per its regex pattern ) a string of characters that can consist of any upper or lowercased letter or digit.
uscStatus :: Lens' UpdateSigningCertificate StatusType Source #
The status you want to assign to the certificate. Active
means that the certificate can be used for API calls to AWS Inactive
means that the certificate cannot be used.
Destructuring the Response
updateSigningCertificateResponse :: UpdateSigningCertificateResponse Source #
Creates a value of UpdateSigningCertificateResponse
with the minimum fields required to make a request.
data UpdateSigningCertificateResponse Source #
See: updateSigningCertificateResponse
smart constructor.