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 access key from Active to Inactive, or vice versa. This operation can be used to disable a user's key as part of a key rotation workflow.
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.
For information about rotating keys, see Managing Keys and Certificates in the IAM User Guide .
Synopsis
- updateAccessKey :: AccessKey -> StatusType -> UpdateAccessKey
- data UpdateAccessKey
- uakUserName :: Lens' UpdateAccessKey (Maybe Text)
- uakAccessKeyId :: Lens' UpdateAccessKey AccessKey
- uakStatus :: Lens' UpdateAccessKey StatusType
- updateAccessKeyResponse :: UpdateAccessKeyResponse
- data UpdateAccessKeyResponse
Creating a Request
Creates a value of UpdateAccessKey
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
uakUserName
- The name of the user whose key you want to update. 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: _+=,.@-uakAccessKeyId
- The access key ID of the secret access key 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.uakStatus
- The status you want to assign to the secret access key.Active
means that the key can be used for API calls to AWS, whileInactive
means that the key cannot be used.
data UpdateAccessKey Source #
See: updateAccessKey
smart constructor.
Instances
Request Lenses
uakUserName :: Lens' UpdateAccessKey (Maybe Text) Source #
The name of the user whose key you want to update. 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: _+=,.@-
uakAccessKeyId :: Lens' UpdateAccessKey AccessKey Source #
The access key ID of the secret access key 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.
uakStatus :: Lens' UpdateAccessKey StatusType Source #
The status you want to assign to the secret access key. Active
means that the key can be used for API calls to AWS, while Inactive
means that the key cannot be used.
Destructuring the Response
updateAccessKeyResponse :: UpdateAccessKeyResponse Source #
Creates a value of UpdateAccessKeyResponse
with the minimum fields required to make a request.
data UpdateAccessKeyResponse Source #
See: updateAccessKeyResponse
smart constructor.