describe_sessions
¶
describe_sessions(
*,
config_overrides: Optional[AppStreamClientConfig] = 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/app_stream.py
3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 | |