aws iam update-role
Updates the description or maximum session duration setting of a role. AWS CLI reference
1 example 3 options Its page in the AWS CLI reference
Examples
To change an IAM role's description or session duration
The following update-role example changes the description of the IAM role production-role to Main production role and sets the maximum session duration to 12 hours.
aws iam update-role --role-name production-role --description 'Main production role' --max-session-duration 43200Identify--role-nameThe name of the role that you want to modify.--descriptionThe new description that you want to apply to the specified role.--max-session-durationThe maximum session duration (in seconds) that you want to set for the specified role.This command produces no output.
For more information, see IAM role management in the AWS IAM User Guide.
Options
--descriptionThe new description that you want to apply to the specified role.--max-session-durationThe maximum session duration (in seconds) that you want to set for the specified role.--role-nameThe name of the role that you want to modify.