| « PreviousNext » | |
![]() ![]() | Did this page help you? Yes | No | Tell us about it... |
Changes the status of the specified key from active to inactive, or vice versa. This action lets you rotate a user's keys, or immediately disable (or re enable) a user's ability to make API calls to AWS. For information about rotating keys, go to Managing Keys and Certificates in Using AWS Identity and Access Management.
Important
Calling this command without specifying a user name modifies the key for the user who owns the requesting credentials.
iam-usermodkey [-u
USERNAME] -k
ACCESSKEYID -s Active|Inactive
| Name | Description | Required |
|---|---|---|
|
|
Name of the user whose key you want to update. Type: String Default: None |
Optional |
|
|
The Access Key ID of the Secret Access Key you want to update. Type: String Default: None |
Yes |
|
|
The status you want to assign to the Secret Access Key.
Type: String |
Yes |
If the key is successfully updated, the output is empty.
The following example changes the status to Inactive for the Secret
Access Key with Access Key ID AKIAIOSFODNN7EXAMPLE, which belongs to the user named
Bob.
PROMPT> iam-usermodkey -u Bob -k AKIAIOSFODNN7EXAMPLE -s Inactive