ChimeSDKMessaging / Client / get_channel_membership_preferences
get_channel_membership_preferences#
- ChimeSDKMessaging.Client.get_channel_membership_preferences(**kwargs)#
Gets the membership preferences of an
AppInstanceUserfor the specified channel. TheAppInstanceUsermust be a member of the channel. Only theAppInstanceUserwho owns the membership can retrieve preferences. Users in theAppInstanceAdminand channel moderator roles can’t retrieve preferences for other users. Banned users can’t retrieve membership preferences for the channel from which they are banned.See also: AWS API Documentation
Request Syntax
response = client.get_channel_membership_preferences( ChannelArn='string', MemberArn='string', ChimeBearer='string' )
- Parameters:
ChannelArn (string) –
[REQUIRED]
The ARN of the channel.
MemberArn (string) –
[REQUIRED]
The
AppInstanceUserArnof the member retrieving the preferences.ChimeBearer (string) –
[REQUIRED]
The
AppInstanceUserARNof the user making the API call.
- Return type:
dict
- Returns:
Response Syntax
{ 'ChannelArn': 'string', 'Member': { 'Arn': 'string', 'Name': 'string' }, 'Preferences': { 'PushNotifications': { 'AllowNotifications': 'ALL'|'NONE'|'FILTERED', 'FilterRule': 'string' } } }
Response Structure
(dict) –
ChannelArn (string) –
The ARN of the channel.
Member (dict) –
The details of a user.
Arn (string) –
The ARN in an Identity.
Name (string) –
The name in an Identity.
Preferences (dict) –
The channel membership preferences for an
AppInstanceUser.PushNotifications (dict) –
The push notification configuration of a message.
AllowNotifications (string) –
Enum value that indicates which push notifications to send to the requested member of a channel.
ALLsends all push notifications,NONEsends no push notifications,FILTEREDsends only filtered push notifications.FilterRule (string) –
The simple JSON object used to send a subset of a push notification to the requested member.
Exceptions
ChimeSDKMessaging.Client.exceptions.BadRequestExceptionChimeSDKMessaging.Client.exceptions.UnauthorizedClientExceptionChimeSDKMessaging.Client.exceptions.ForbiddenExceptionChimeSDKMessaging.Client.exceptions.ThrottledClientExceptionChimeSDKMessaging.Client.exceptions.ServiceUnavailableExceptionChimeSDKMessaging.Client.exceptions.ServiceFailureException