describe_sessions
¶
describe_sessions(
state: SessionState,
*,
config_overrides: Optional[SSMClientConfig] = None,
max_results: Optional[SessionMaxResults] = None,
next_token: Optional[NextToken] = None,
filters: Optional[SessionFilterList] = None,
) -> DescribeSessionsResponse
Retrieves a list of all active sessions (both connected and disconnected) or terminated sessions from the past 30 days.
Parameters:
-
state(SessionState) –The session status to retrieve a list of sessions for. For example, "Active".
-
max_results(Optional[SessionMaxResults], default:None) –The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.
-
next_token(Optional[NextToken], default:None) –The token for the next set of items to return. (You received this token from a previous call.)
-
filters(Optional[SessionFilterList], default:None) –One or more filters to limit the type of sessions returned by the request.
Raises:
-
InternalServerError–An error occurred on the server side.
-
InvalidFilterKey–The specified key isn't valid.
-
InvalidNextToken–The specified token isn't valid.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ssm/_services/ssm.py
5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 | |