| 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.Chime.ListChannels
Description
Lists all Channels created under a single Chime App as a paginated list. You can specify filters to narrow results.
Functionality & restrictions
- Use privacy =
PUBLICto retrieve all public channels in the account. - Only an
AppInstanceAdmincan set privacy =PRIVATEto 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 -> ListChannels
- listChannels_chimeBearer :: Lens' ListChannels (Maybe Text)
- listChannels_maxResults :: Lens' ListChannels (Maybe Natural)
- listChannels_nextToken :: Lens' ListChannels (Maybe Text)
- listChannels_privacy :: Lens' ListChannels (Maybe ChannelPrivacy)
- listChannels_appInstanceArn :: 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.
Constructors
| ListChannels' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> ListChannels |
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:chimeBearer:ListChannels', listChannels_chimeBearer - The AppInstanceUserArn of the user that makes the API call.
$sel:maxResults:ListChannels', listChannels_maxResults - The maximum number of channels that you want to return.
ListChannels, listChannels_nextToken - The token passed by previous API calls until all requested channels are
returned.
ListChannels, listChannels_privacy - The privacy setting. PUBLIC retrieves all the public channels.
PRIVATE retrieves private channels. Only an AppInstanceAdmin can
retrieve private channels.
ListChannels, listChannels_appInstanceArn - The ARN of the AppInstance.
Request Lenses
listChannels_chimeBearer :: Lens' ListChannels (Maybe Text) Source #
The AppInstanceUserArn of the user that makes the API call.
listChannels_maxResults :: Lens' ListChannels (Maybe Natural) Source #
The maximum number of channels that you want to return.
listChannels_nextToken :: Lens' ListChannels (Maybe Text) Source #
The token passed by previous API calls until all requested channels are returned.
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_appInstanceArn :: Lens' ListChannels Text Source #
The ARN of the AppInstance.
Destructuring the Response
data ListChannelsResponse Source #
See: newListChannelsResponse smart constructor.
Constructors
| ListChannelsResponse' | |
Fields
| |
Instances
newListChannelsResponse Source #
Arguments
| :: Int | |
| -> ListChannelsResponse |
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.
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.