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 Channels created under a single Chime App as a paginated list. You can specify filters to narrow results.
Functionality & restrictions
- Use privacy =
PUBLIC
to retrieve all public channels in the account. - Only an
AppInstanceAdmin
can set privacy =PRIVATE
to list the private channels in an account.
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 ListChannels = ListChannels' {}
- newListChannels :: Text -> Text -> ListChannels
- listChannels_privacy :: Lens' ListChannels (Maybe ChannelPrivacy)
- listChannels_nextToken :: Lens' ListChannels (Maybe Text)
- listChannels_maxResults :: Lens' ListChannels (Maybe Natural)
- listChannels_appInstanceArn :: Lens' ListChannels Text
- listChannels_chimeBearer :: Lens' ListChannels Text
- data ListChannelsResponse = ListChannelsResponse' {
- channels :: Maybe [ChannelSummary]
- nextToken :: Maybe (Sensitive Text)
- httpStatus :: Int
- newListChannelsResponse :: Int -> ListChannelsResponse
- listChannelsResponse_channels :: Lens' ListChannelsResponse (Maybe [ChannelSummary])
- listChannelsResponse_nextToken :: Lens' ListChannelsResponse (Maybe Text)
- listChannelsResponse_httpStatus :: Lens' ListChannelsResponse Int
Creating a Request
data ListChannels Source #
See: newListChannels
smart constructor.
ListChannels' | |
|
Instances
Create a value of ListChannels
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:privacy:ListChannels'
, listChannels_privacy
- The privacy setting. PUBLIC
retrieves all the public channels.
PRIVATE
retrieves private channels. Only an AppInstanceAdmin
can
retrieve private channels.
$sel:nextToken:ListChannels'
, listChannels_nextToken
- The token passed by previous API calls until all requested channels are
returned.
$sel:maxResults:ListChannels'
, listChannels_maxResults
- The maximum number of channels that you want to return.
$sel:appInstanceArn:ListChannels'
, listChannels_appInstanceArn
- The ARN of the AppInstance
.
$sel:chimeBearer:ListChannels'
, listChannels_chimeBearer
- The AppInstanceUserArn
of the user that makes the API call.
Request Lenses
listChannels_privacy :: Lens' ListChannels (Maybe ChannelPrivacy) Source #
The privacy setting. PUBLIC
retrieves all the public channels.
PRIVATE
retrieves private channels. Only an AppInstanceAdmin
can
retrieve private channels.
listChannels_nextToken :: Lens' ListChannels (Maybe Text) Source #
The token passed by previous API calls until all requested channels are returned.
listChannels_maxResults :: Lens' ListChannels (Maybe Natural) Source #
The maximum number of channels that you want to return.
listChannels_appInstanceArn :: Lens' ListChannels Text Source #
The ARN of the AppInstance
.
listChannels_chimeBearer :: Lens' ListChannels Text Source #
The AppInstanceUserArn
of the user that makes the API call.
Destructuring the Response
data ListChannelsResponse Source #
See: newListChannelsResponse
smart constructor.
ListChannelsResponse' | |
|
Instances
newListChannelsResponse Source #
Create a value of ListChannelsResponse
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:channels:ListChannelsResponse'
, listChannelsResponse_channels
- The information about each channel.
$sel:nextToken:ListChannels'
, listChannelsResponse_nextToken
- The token returned from previous API requests until the number of
channels is reached.
$sel:httpStatus:ListChannelsResponse'
, listChannelsResponse_httpStatus
- The response's http status code.
Response Lenses
listChannelsResponse_channels :: Lens' ListChannelsResponse (Maybe [ChannelSummary]) Source #
The information about each channel.
listChannelsResponse_nextToken :: Lens' ListChannelsResponse (Maybe Text) Source #
The token returned from previous API requests until the number of channels is reached.
listChannelsResponse_httpStatus :: Lens' ListChannelsResponse Int Source #
The response's http status code.