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 CopyC#
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, this API can be used to manage root credentials even if the
AWS account has no associated users.
UserName
For information about rotating keys, see Managing Keys and Certificates in Using AWS Identity and Access Management.

C# |
public UpdateAccessKeyResponse UpdateAccessKey( UpdateAccessKeyRequest request )

- request (UpdateAccessKeyRequest)
- Container for the necessary parameters to execute the UpdateAccessKey service method.

The response from the UpdateAccessKey service method, as returned by IdentityManagementService.

Exception | Condition |
---|---|
LimitExceededException |
The request was rejected because it attempted to create resources beyond the current
AWS account limits. The error message describes the limit exceeded.
|
NoSuchEntityException |
The request was rejected because it referenced an entity that does not exist. The
error message describes the entity.
|