aws iam update-ssh-public-key
Sets the status of an IAM user's SSH public key to active or inactive. AWS CLI reference
1 example 3 options Its page in the AWS CLI reference
Examples
To change the status of an SSH public key
The following update-ssh-public-key example changes the status of the specified public key to Inactive.
aws iam update-ssh-public-key --user-name sofia --ssh-public-key-id APKA1234567890EXAMPLE --status InactiveIdentify--user-nameThe name of the IAM user associated with the SSH public key.--ssh-public-key-idThe unique identifier for the SSH public key.--statusThe status to assign to the SSH public key.This command produces no output.
For more information, see Use SSH keys and SSH with CodeCommit in the AWS IAM User Guide.
Options
--ssh-public-key-idThe unique identifier for the SSH public key.--statusThe status to assign to the SSH public key.--user-nameThe name of the IAM user associated with the SSH public key.