Modify Access Keys
Enable or disable IAM access keys.
Usage
Input
Parameter | Description | Type | Required | Default value |
---|---|---|---|---|
key | Access key with Id and Username. Repeatable for multiple keys. Format: id username | string | Yes | None |
enable | Enable access keys | bool | If not disable | False |
disable | Disable access keys | bool | If not enable | False |
region | Region for operation | string | No | Session default |
debug | Increase log verbosity | bool | No | False |
silent | Decrease log verbosity | bool | No | False |
output | Output format table | string | No | None |
session | Established session | object | No | None |
Output
Returns a list
of access keys that failed the update:
['AKIA12ZAWVSH44WXASKY']
Examples
Disable access keys for users:
aaws iam modify_access_keys --key AKIA12ZAWVSH44WXASKY acme --key AKEA112WWDAH44CXZSRE foo --disable