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

Safe HaskellNone




Changes the status of the specified access key from Active to Inactive, or vice versa. This action can be used to disable a user's key as part of a key rotation work flow.

If the UserName field is not specified, the UserName 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.

For information about rotating keys, see Managing Keys and Certificates in the Using IAM guide.



Request constructor

updateAccessKey Source

UpdateAccessKey constructor.

The fields accessible through corresponding lenses are:

Request lenses

uakAccessKeyId :: Lens' UpdateAccessKey Text Source

The access key ID of the secret access key you want to update.

uakStatus :: Lens' UpdateAccessKey StatusType Source

The status you want to assign to the secret access key. Active means the key can be used for API calls to AWS, while Inactive means the key cannot be used.

uakUserName :: Lens' UpdateAccessKey (Maybe Text) Source

The name of the user whose key you want to update.


Response constructor