AWS SDK for .NET Documentation
UpdateAccessKeyRequest Class
AmazonAmazon.IdentityManagement.ModelUpdateAccessKeyRequest Did this page help you?   Yes   No    Tell us about it...
Container for the parameters to the UpdateAccessKey operation. 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 class UpdateAccessKeyRequest : AmazonWebServiceRequest
Members
All MembersConstructorsMethodsProperties



IconMemberDescription
UpdateAccessKeyRequest()()()()
Initializes a new instance of the UpdateAccessKeyRequest class

AccessKeyId
Gets and sets the property AccessKeyId.

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


Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()()
Gets the type of the current instance.
(Inherited from Object.)
Status
Gets and sets the property Status.

The status you want to assign to the secret access key.

CopyC#
Active
means the key can be used for API calls to AWS, while
CopyC#
Inactive
means the key cannot be used.


ToString()()()()
Returns a string that represents the current object.
(Inherited from Object.)
UserName
Gets and sets the property UserName.

Name of the user whose key you want to update.


WithAccessKeyId(String) Obsolete.
Sets the AccessKeyId property

WithStatus(String) Obsolete.
Sets the Status property

WithUserName(String) Obsolete.
Sets the UserName property

Inheritance Hierarchy
Object
AmazonWebServiceRequest
 UpdateAccessKeyRequest

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