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
4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 | |