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 |
List all the messages in a channel. Returns a paginated list of
ChannelMessages
. By default, sorted by creation timestamp in
descending order.
Redacted messages appear in the results as empty, since they are only redacted, not deleted. Deleted messages do not appear in the results. This action always returns the latest version of an edited message.
Also, 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 ListChannelMessages = ListChannelMessages' {}
- newListChannelMessages :: Text -> ListChannelMessages
- listChannelMessages_chimeBearer :: Lens' ListChannelMessages (Maybe Text)
- listChannelMessages_nextToken :: Lens' ListChannelMessages (Maybe Text)
- listChannelMessages_notBefore :: Lens' ListChannelMessages (Maybe UTCTime)
- listChannelMessages_sortOrder :: Lens' ListChannelMessages (Maybe SortOrder)
- listChannelMessages_maxResults :: Lens' ListChannelMessages (Maybe Natural)
- listChannelMessages_notAfter :: Lens' ListChannelMessages (Maybe UTCTime)
- listChannelMessages_channelArn :: Lens' ListChannelMessages Text
- data ListChannelMessagesResponse = ListChannelMessagesResponse' {}
- newListChannelMessagesResponse :: Int -> ListChannelMessagesResponse
- listChannelMessagesResponse_channelArn :: Lens' ListChannelMessagesResponse (Maybe Text)
- listChannelMessagesResponse_nextToken :: Lens' ListChannelMessagesResponse (Maybe Text)
- listChannelMessagesResponse_channelMessages :: Lens' ListChannelMessagesResponse (Maybe [ChannelMessageSummary])
- listChannelMessagesResponse_httpStatus :: Lens' ListChannelMessagesResponse Int
Creating a Request
data ListChannelMessages Source #
See: newListChannelMessages
smart constructor.
ListChannelMessages' | |
|
Instances
newListChannelMessages Source #
Create a value of ListChannelMessages
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:ListChannelMessages'
, listChannelMessages_chimeBearer
- The AppInstanceUserArn
of the user that makes the API call.
$sel:nextToken:ListChannelMessages'
, listChannelMessages_nextToken
- The token passed by previous API calls until all requested messages are
returned.
$sel:notBefore:ListChannelMessages'
, listChannelMessages_notBefore
- The initial or starting time stamp for your requested messages.
$sel:sortOrder:ListChannelMessages'
, listChannelMessages_sortOrder
- The order in which you want messages sorted. Default is Descending,
based on time created.
$sel:maxResults:ListChannelMessages'
, listChannelMessages_maxResults
- The maximum number of messages that you want returned.
$sel:notAfter:ListChannelMessages'
, listChannelMessages_notAfter
- The final or ending time stamp for your requested messages.
$sel:channelArn:ListChannelMessages'
, listChannelMessages_channelArn
- The ARN of the channel.
Request Lenses
listChannelMessages_chimeBearer :: Lens' ListChannelMessages (Maybe Text) Source #
The AppInstanceUserArn
of the user that makes the API call.
listChannelMessages_nextToken :: Lens' ListChannelMessages (Maybe Text) Source #
The token passed by previous API calls until all requested messages are returned.
listChannelMessages_notBefore :: Lens' ListChannelMessages (Maybe UTCTime) Source #
The initial or starting time stamp for your requested messages.
listChannelMessages_sortOrder :: Lens' ListChannelMessages (Maybe SortOrder) Source #
The order in which you want messages sorted. Default is Descending, based on time created.
listChannelMessages_maxResults :: Lens' ListChannelMessages (Maybe Natural) Source #
The maximum number of messages that you want returned.
listChannelMessages_notAfter :: Lens' ListChannelMessages (Maybe UTCTime) Source #
The final or ending time stamp for your requested messages.
listChannelMessages_channelArn :: Lens' ListChannelMessages Text Source #
The ARN of the channel.
Destructuring the Response
data ListChannelMessagesResponse Source #
See: newListChannelMessagesResponse
smart constructor.
ListChannelMessagesResponse' | |
|
Instances
newListChannelMessagesResponse Source #
Create a value of ListChannelMessagesResponse
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:ListChannelMessages'
, listChannelMessagesResponse_channelArn
- The ARN of the channel containing the requested messages.
$sel:nextToken:ListChannelMessages'
, listChannelMessagesResponse_nextToken
- The token passed by previous API calls until all requested messages are
returned.
$sel:channelMessages:ListChannelMessagesResponse'
, listChannelMessagesResponse_channelMessages
- The information about, and content of, each requested message.
$sel:httpStatus:ListChannelMessagesResponse'
, listChannelMessagesResponse_httpStatus
- The response's http status code.
Response Lenses
listChannelMessagesResponse_channelArn :: Lens' ListChannelMessagesResponse (Maybe Text) Source #
The ARN of the channel containing the requested messages.
listChannelMessagesResponse_nextToken :: Lens' ListChannelMessagesResponse (Maybe Text) Source #
The token passed by previous API calls until all requested messages are returned.
listChannelMessagesResponse_channelMessages :: Lens' ListChannelMessagesResponse (Maybe [ChannelMessageSummary]) Source #
The information about, and content of, each requested message.
listChannelMessagesResponse_httpStatus :: Lens' ListChannelMessagesResponse Int Source #
The response's http status code.