delete_all_entity_sessions
async
¶
delete_all_entity_sessions(
instance_id: InstanceId,
entity_id: EntityId,
entity_type: SessionEntityType,
*,
config_overrides: Optional[AsyncConnectClientConfig] = None,
) -> DeleteAllEntitySessionsResponse
Deletes all active sessions for the specified entity in the specified Connect Customer instance. The operation supports only the USER entity type, so you can use it to sign out all of a user's active sessions. Use it when you need to end a user's access right away, for example when they leave your organization or you suspect that their credentials are compromised.
Parameters:
-
instance_id(InstanceId) –The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
-
entity_id(EntityId) –The identifier of the entity whose sessions you want to delete. For
USER, use the user ID or the user ARN. -
entity_type(SessionEntityType) –The type of entity whose sessions you want to delete.
The only valid value is
USER, which signs out a user in your Connect Customer instance.
Raises:
-
AccessDeniedException–You do not have sufficient permissions to perform this action.
-
InternalServiceException–Request processing failed because of an error or failure with the service.
-
InvalidParameterException–One or more of the specified parameters are not valid.
-
InvalidRequestException–The request is not valid.
-
ResourceNotFoundException–The specified resource was not found.
-
ThrottlingException–The throttling limit has been exceeded.
-
UnknownServiceError–The service returned an error code this client does not model.