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
Afficher le fichier Open project: aws/aws-sdk-net Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
IsSetAccessKeyId ( ) : bool
IsSetStatus ( ) : bool
IsSetUserName ( ) : bool

Method Details

UpdateAccessKeyRequest() public méthode

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

UpdateAccessKeyRequest() public méthode

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.
Résultat System