CmdID

CmdID / aws / aws iam

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

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

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

3 in the AWS CLI reference
--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.