diff --git a/moto/iam/models.py b/moto/iam/models.py index 25bfca05f..1d4399b81 100644 --- a/moto/iam/models.py +++ b/moto/iam/models.py @@ -340,6 +340,7 @@ class Role(BaseModel): permissions_boundary=properties.get("PermissionsBoundary", ""), description=properties.get("Description", ""), tags=properties.get("Tags", {}), + max_session_duration=properties.get("MaxSessionDuration", 3600) ) policies = properties.get("Policies", [])