Ensure that all active sessions in the AWS Session Manager do not exceed the duration set in the settings.
The session manager gives users the ability to either open a shell in a EC2 instance or execute commands in a ECS task. This can be useful for when debugging issues in a container or instance.
Terminate all the sessions which exceed the specified duration mentioned in settings.