Container for the parameters to the UpdateAccessKey operation.
Namespace: Amazon.IdentityManagement.ModelChanges 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 .
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 |
| Member | Description | |
|---|---|---|
| UpdateAccessKeyRequest()()()() | Initializes a new instance of the UpdateAccessKeyRequest class | |
| AccessKeyId |
The Access Key ID of the Secret Access Key you want to update.
Constraints: | |
| Equals(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: | |
| ToString()()()() | (Inherited from Object.) | |
| UserName |
Name of the user whose key you want to update.
Constraints: | |
| 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
Amazon.Runtime..::..AmazonWebServiceRequest
Amazon.IdentityManagement.Model..::..UpdateAccessKeyRequest