AWS SDK for .NET Documentation
UpdateAccessKey Method (request)
AmazonAmazon.IdentityManagementAmazonIdentityManagementServiceClientUpdateAccessKey(UpdateAccessKeyRequest) Did this page help you?   Yes   No    Tell us about it...
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#
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, this API can be used to manage root credentials even if the AWS account has no associated users.

For information about rotating keys, see Managing Keys and Certificates in Using AWS Identity and Access Management.

Declaration Syntax
C#
public UpdateAccessKeyResponse UpdateAccessKey(
	UpdateAccessKeyRequest request
)
Parameters
request (UpdateAccessKeyRequest)
Container for the necessary parameters to execute the UpdateAccessKey service method.
Return Value
The response from the UpdateAccessKey service method, as returned by IdentityManagementService.
Exceptions
ExceptionCondition
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.

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.60.0 (1.5.60.0)