describe_sessions
async
¶
describe_sessions(
*,
config_overrides: Optional[AsyncAppStreamClientConfig] = None,
stack_name: Optional[Name] = None,
fleet_name: Optional[Name] = None,
user_id: Optional[UserId] = None,
next_token: Optional[String] = None,
limit: Optional[Integer] = None,
authentication_type: Optional[AuthenticationType] = None,
instance_id: Optional[String] = None,
) -> DescribeSessionsResult
Retrieves a list that describes the streaming sessions for a specified stack and fleet. If a UserId is provided for the stack and fleet, only streaming sessions for that user are described. If an authentication type is not provided, the default is to authenticate users using a streaming URL.
Parameters:
-
stack_name(Optional[Name], default:None) –The name of the stack. This value is case-sensitive.
-
fleet_name(Optional[Name], default:None) –The name of the fleet. This value is case-sensitive.
-
user_id(Optional[UserId], default:None) –The user identifier (ID). If you specify a user ID, you must also specify the authentication type.
-
next_token(Optional[String], default:None) –The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.
-
limit(Optional[Integer], default:None) –The size of each page of results. The default value is 20 and the maximum value is 50.
-
authentication_type(Optional[AuthenticationType], default:None) –The authentication method. Specify
APIfor a user authenticated using a streaming URL orSAMLfor a SAML federated user. The default is to authenticate users using a streaming URL. -
instance_id(Optional[String], default:None) –The identifier for the instance hosting the session.
Raises:
-
InvalidParameterCombinationException–Indicates an incorrect combination of parameters, or a missing parameter.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_appstream/_services/async_app_stream.py
3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 | |