C# Class Amazon.IdentityManagement.Model.UpdateAccessKeyRequest

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 .

Inheritance: AmazonIdentityManagementServiceRequest
Show file Open project: aws/aws-sdk-net Class Usage Examples

Public Methods

Method Description
UpdateAccessKeyRequest ( ) : System

Empty constructor used to set properties independently even when a simple constructor is available

UpdateAccessKeyRequest ( string accessKeyId, StatusType status ) : System

Instantiates UpdateAccessKeyRequest with the parameterized properties

Private Methods

Method Description
IsSetAccessKeyId ( ) : bool
IsSetStatus ( ) : bool
IsSetUserName ( ) : bool

Method Details

UpdateAccessKeyRequest() public method

Empty constructor used to set properties independently even when a simple constructor is available
public UpdateAccessKeyRequest ( ) : System
return System

UpdateAccessKeyRequest() public method

Instantiates UpdateAccessKeyRequest with the parameterized properties
public UpdateAccessKeyRequest ( string accessKeyId, StatusType status ) : System
accessKeyId string The access key ID of the secret access key you want to update. This parameter allows (per its regex pattern) a string of characters that can consist of any upper or lowercased letter or digit.
status StatusType 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.
return System