| 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 |
Amazonka.ChimeSDKMessaging.ListChannelBans
Description
Lists all the users banned from a particular channel.
The x-amz-chime-bearer request header is mandatory. Use the
AppInstanceUserArn of the user that makes the API call as the value in
the header.
Synopsis
- data ListChannelBans = ListChannelBans' {
- maxResults :: Maybe Natural
- nextToken :: Maybe (Sensitive Text)
- channelArn :: Text
- chimeBearer :: Text
- newListChannelBans :: Text -> Text -> ListChannelBans
- listChannelBans_maxResults :: Lens' ListChannelBans (Maybe Natural)
- listChannelBans_nextToken :: Lens' ListChannelBans (Maybe Text)
- listChannelBans_channelArn :: Lens' ListChannelBans Text
- listChannelBans_chimeBearer :: Lens' ListChannelBans Text
- data ListChannelBansResponse = ListChannelBansResponse' {
- channelArn :: Maybe Text
- channelBans :: Maybe [ChannelBanSummary]
- nextToken :: Maybe (Sensitive Text)
- httpStatus :: Int
- newListChannelBansResponse :: Int -> ListChannelBansResponse
- listChannelBansResponse_channelArn :: Lens' ListChannelBansResponse (Maybe Text)
- listChannelBansResponse_channelBans :: Lens' ListChannelBansResponse (Maybe [ChannelBanSummary])
- listChannelBansResponse_nextToken :: Lens' ListChannelBansResponse (Maybe Text)
- listChannelBansResponse_httpStatus :: Lens' ListChannelBansResponse Int
Creating a Request
data ListChannelBans Source #
See: newListChannelBans smart constructor.
Constructors
| ListChannelBans' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> ListChannelBans |
Create a value of ListChannelBans 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:
$sel:maxResults:ListChannelBans', listChannelBans_maxResults - The maximum number of bans that you want returned.
ListChannelBans, listChannelBans_nextToken - The token passed by previous API calls until all requested bans are
returned.
ListChannelBans, listChannelBans_channelArn - The ARN of the channel.
$sel:chimeBearer:ListChannelBans', listChannelBans_chimeBearer - The AppInstanceUserArn of the user that makes the API call.
Request Lenses
listChannelBans_maxResults :: Lens' ListChannelBans (Maybe Natural) Source #
The maximum number of bans that you want returned.
listChannelBans_nextToken :: Lens' ListChannelBans (Maybe Text) Source #
The token passed by previous API calls until all requested bans are returned.
listChannelBans_channelArn :: Lens' ListChannelBans Text Source #
The ARN of the channel.
listChannelBans_chimeBearer :: Lens' ListChannelBans Text Source #
The AppInstanceUserArn of the user that makes the API call.
Destructuring the Response
data ListChannelBansResponse Source #
See: newListChannelBansResponse smart constructor.
Constructors
| ListChannelBansResponse' | |
Fields
| |
Instances
newListChannelBansResponse Source #
Create a value of ListChannelBansResponse 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:
ListChannelBans, listChannelBansResponse_channelArn - The ARN of the channel.
$sel:channelBans:ListChannelBansResponse', listChannelBansResponse_channelBans - The information for each requested ban.
ListChannelBans, listChannelBansResponse_nextToken - The token passed by previous API calls until all requested bans are
returned.
$sel:httpStatus:ListChannelBansResponse', listChannelBansResponse_httpStatus - The response's http status code.
Response Lenses
listChannelBansResponse_channelArn :: Lens' ListChannelBansResponse (Maybe Text) Source #
The ARN of the channel.
listChannelBansResponse_channelBans :: Lens' ListChannelBansResponse (Maybe [ChannelBanSummary]) Source #
The information for each requested ban.
listChannelBansResponse_nextToken :: Lens' ListChannelBansResponse (Maybe Text) Source #
The token passed by previous API calls until all requested bans are returned.
listChannelBansResponse_httpStatus :: Lens' ListChannelBansResponse Int Source #
The response's http status code.