search_channels
async
¶
search_channels(
fields: SearchFields,
*,
config_overrides: Optional[AsyncChimeSDKMessagingClientConfig] = None,
chime_bearer: Optional[ChimeArn] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[NextToken] = None,
) -> SearchChannelsResponse
Allows the ChimeBearer to search channels by channel members. Users or bots can search across the channels that they belong to. Users in the AppInstanceAdmin role can search across all channels.
The x-amz-chime-bearer request header is mandatory. Use the ARN of the AppInstanceUser or AppInstanceBot that makes the API call as the value in the header.
This operation isn't supported for AppInstanceUsers with a large number of memberships.
Parameters:
-
chime_bearer(Optional[ChimeArn], default:None) –The
AppInstanceUserArnof the user making the API call. -
fields(SearchFields) –A list of the
Fieldobjects in the channel being searched. -
max_results(Optional[MaxResults], default:None) –The maximum number of channels that you want returned.
-
next_token(Optional[NextToken], default:None) –The token returned from previous API requests until the number of channels is reached.
Raises:
-
BadRequestException–The input parameters don't match the service's restrictions.
-
ForbiddenException–The client is permanently forbidden from making the request.
-
ServiceFailureException–The service encountered an unexpected error.
-
ServiceUnavailableException–The service is currently unavailable.
-
ThrottledClientException–The client exceeded its request rate limit.
-
UnauthorizedClientException–The client is not currently authorized to make the request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_chime_sdk_messaging/_services/async_chime_sdk_messaging.py
3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 | |