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
4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 | |