Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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' {
- chimeBearer :: Maybe Text
- nextToken :: Maybe (Sensitive Text)
- maxResults :: Maybe Natural
- channelArn :: Text
- newListChannelBans :: Text -> ListChannelBans
- listChannelBans_chimeBearer :: Lens' ListChannelBans (Maybe Text)
- listChannelBans_nextToken :: Lens' ListChannelBans (Maybe Text)
- listChannelBans_maxResults :: Lens' ListChannelBans (Maybe Natural)
- listChannelBans_channelArn :: Lens' ListChannelBans Text
- data ListChannelBansResponse = ListChannelBansResponse' {
- channelArn :: Maybe Text
- nextToken :: Maybe (Sensitive Text)
- channelBans :: Maybe [ChannelBanSummary]
- httpStatus :: Int
- newListChannelBansResponse :: Int -> ListChannelBansResponse
- listChannelBansResponse_channelArn :: Lens' ListChannelBansResponse (Maybe Text)
- listChannelBansResponse_nextToken :: Lens' ListChannelBansResponse (Maybe Text)
- listChannelBansResponse_channelBans :: Lens' ListChannelBansResponse (Maybe [ChannelBanSummary])
- listChannelBansResponse_httpStatus :: Lens' ListChannelBansResponse Int
Creating a Request
data ListChannelBans Source #
See: newListChannelBans
smart constructor.
ListChannelBans' | |
|
Instances
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:chimeBearer:ListChannelBans'
, listChannelBans_chimeBearer
- The AppInstanceUserArn
of the user that makes the API call.
$sel:nextToken:ListChannelBans'
, listChannelBans_nextToken
- The token passed by previous API calls until all requested bans are
returned.
$sel:maxResults:ListChannelBans'
, listChannelBans_maxResults
- The maximum number of bans that you want returned.
$sel:channelArn:ListChannelBans'
, listChannelBans_channelArn
- The ARN of the channel.
Request Lenses
listChannelBans_chimeBearer :: Lens' ListChannelBans (Maybe Text) Source #
The AppInstanceUserArn
of the user that makes the API call.
listChannelBans_nextToken :: Lens' ListChannelBans (Maybe Text) Source #
The token passed by previous API calls until all requested bans are returned.
listChannelBans_maxResults :: Lens' ListChannelBans (Maybe Natural) Source #
The maximum number of bans that you want returned.
listChannelBans_channelArn :: Lens' ListChannelBans Text Source #
The ARN of the channel.
Destructuring the Response
data ListChannelBansResponse Source #
See: newListChannelBansResponse
smart constructor.
ListChannelBansResponse' | |
|
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:
$sel:channelArn:ListChannelBans'
, listChannelBansResponse_channelArn
- The ARN of the channel.
$sel:nextToken:ListChannelBans'
, listChannelBansResponse_nextToken
- The token passed by previous API calls until all requested bans are
returned.
$sel:channelBans:ListChannelBansResponse'
, listChannelBansResponse_channelBans
- The information for each requested ban.
$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_nextToken :: Lens' ListChannelBansResponse (Maybe Text) Source #
The token passed by previous API calls until all requested bans are returned.
listChannelBansResponse_channelBans :: Lens' ListChannelBansResponse (Maybe [ChannelBanSummary]) Source #
The information for each requested ban.
listChannelBansResponse_httpStatus :: Lens' ListChannelBansResponse Int Source #
The response's http status code.