:doc:`Role <index>` / Attribute / max_session_duration

********************
max_session_duration
********************



.. py:attribute:: IAM.Role.max_session_duration

  

  - *(integer) --* 

    The maximum session duration (in seconds) for the specified role. Anyone who uses the CLI, or API to assume the role can specify the duration using the optional ``DurationSeconds`` API parameter or ``duration-seconds`` CLI parameter.

    