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 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 .

Namespace: Amazon.IdentityManagement.Model
Assembly: AWSSDK (in AWSSDK.dll) Version: 1.4.10.0 (1.4.10.0)

Syntax

         
 C#  Visual Basic  Visual C++ 
public class UpdateAccessKeyRequest : AmazonWebServiceRequest
Public Class UpdateAccessKeyRequest _
	Inherits AmazonWebServiceRequest
public ref class UpdateAccessKeyRequest : public AmazonWebServiceRequest

Members

            
 All Members  Constructors   Properties   Methods  
 Public

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

 MemberDescription
UpdateAccessKeyRequest()()()()
Initializes a new instance of the UpdateAccessKeyRequest class
AccessKeyId
The Access Key ID of the Secret Access Key you want to update.

Constraints:

Length
16 - 32
Pattern
[\w]*

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
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.

Constraints:

Allowed Values
Active, Inactive

ToString()()()()
Returns a String that represents the current Object.
(Inherited from Object.)
UserName
Name of the user whose key you want to update.

Constraints:

Length
1 - 128
Pattern
[\w+=,.@-]*

WithAccessKeyId(String)
Sets the AccessKeyId property
WithStatus(String)
Sets the Status property
WithUserName(String)
Sets the UserName property

Inheritance Hierarchy

System..::..Object
  Amazon.Runtime..::..AmazonWebServiceRequest
    Amazon.IdentityManagement.Model..::..UpdateAccessKeyRequest

See Also