Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Sets the membership preferences of an AppInstanceUser
for the
specified channel. The AppInstanceUser
must be a member of the
channel. Only the AppInstanceUser
who owns the membership can set
preferences. Users in the AppInstanceAdmin
and channel moderator roles
can't set preferences for other users. Banned users can't set
membership preferences for the channel from which they are banned.
Synopsis
- data PutChannelMembershipPreferences = PutChannelMembershipPreferences' {}
- newPutChannelMembershipPreferences :: Text -> Text -> Text -> ChannelMembershipPreferences -> PutChannelMembershipPreferences
- putChannelMembershipPreferences_channelArn :: Lens' PutChannelMembershipPreferences Text
- putChannelMembershipPreferences_memberArn :: Lens' PutChannelMembershipPreferences Text
- putChannelMembershipPreferences_chimeBearer :: Lens' PutChannelMembershipPreferences Text
- putChannelMembershipPreferences_preferences :: Lens' PutChannelMembershipPreferences ChannelMembershipPreferences
- data PutChannelMembershipPreferencesResponse = PutChannelMembershipPreferencesResponse' {}
- newPutChannelMembershipPreferencesResponse :: Int -> PutChannelMembershipPreferencesResponse
- putChannelMembershipPreferencesResponse_channelArn :: Lens' PutChannelMembershipPreferencesResponse (Maybe Text)
- putChannelMembershipPreferencesResponse_member :: Lens' PutChannelMembershipPreferencesResponse (Maybe Identity)
- putChannelMembershipPreferencesResponse_preferences :: Lens' PutChannelMembershipPreferencesResponse (Maybe ChannelMembershipPreferences)
- putChannelMembershipPreferencesResponse_httpStatus :: Lens' PutChannelMembershipPreferencesResponse Int
Creating a Request
data PutChannelMembershipPreferences Source #
See: newPutChannelMembershipPreferences
smart constructor.
PutChannelMembershipPreferences' | |
|
Instances
newPutChannelMembershipPreferences Source #
Create a value of PutChannelMembershipPreferences
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
PutChannelMembershipPreferences
, putChannelMembershipPreferences_channelArn
- The ARN of the channel.
PutChannelMembershipPreferences
, putChannelMembershipPreferences_memberArn
- The AppInstanceUserArn
of the member setting the preferences.
$sel:chimeBearer:PutChannelMembershipPreferences'
, putChannelMembershipPreferences_chimeBearer
- The AppInstanceUserARN
of the user making the API call.
PutChannelMembershipPreferences
, putChannelMembershipPreferences_preferences
- The channel membership preferences of an AppInstanceUser
.
Request Lenses
putChannelMembershipPreferences_channelArn :: Lens' PutChannelMembershipPreferences Text Source #
The ARN of the channel.
putChannelMembershipPreferences_memberArn :: Lens' PutChannelMembershipPreferences Text Source #
The AppInstanceUserArn
of the member setting the preferences.
putChannelMembershipPreferences_chimeBearer :: Lens' PutChannelMembershipPreferences Text Source #
The AppInstanceUserARN
of the user making the API call.
putChannelMembershipPreferences_preferences :: Lens' PutChannelMembershipPreferences ChannelMembershipPreferences Source #
The channel membership preferences of an AppInstanceUser
.
Destructuring the Response
data PutChannelMembershipPreferencesResponse Source #
See: newPutChannelMembershipPreferencesResponse
smart constructor.
PutChannelMembershipPreferencesResponse' | |
|
Instances
newPutChannelMembershipPreferencesResponse Source #
Create a value of PutChannelMembershipPreferencesResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
PutChannelMembershipPreferences
, putChannelMembershipPreferencesResponse_channelArn
- The ARN of the channel.
PutChannelMembershipPreferencesResponse
, putChannelMembershipPreferencesResponse_member
- The details of a user.
PutChannelMembershipPreferences
, putChannelMembershipPreferencesResponse_preferences
- The ARN and metadata of the member being added.
$sel:httpStatus:PutChannelMembershipPreferencesResponse'
, putChannelMembershipPreferencesResponse_httpStatus
- The response's http status code.
Response Lenses
putChannelMembershipPreferencesResponse_channelArn :: Lens' PutChannelMembershipPreferencesResponse (Maybe Text) Source #
The ARN of the channel.
putChannelMembershipPreferencesResponse_member :: Lens' PutChannelMembershipPreferencesResponse (Maybe Identity) Source #
The details of a user.
putChannelMembershipPreferencesResponse_preferences :: Lens' PutChannelMembershipPreferencesResponse (Maybe ChannelMembershipPreferences) Source #
The ARN and metadata of the member being added.
putChannelMembershipPreferencesResponse_httpStatus :: Lens' PutChannelMembershipPreferencesResponse Int Source #
The response's http status code.