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 |
Gets the full details of a channel message.
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 GetChannelMessage = GetChannelMessage' {
- channelArn :: Text
- messageId :: Text
- chimeBearer :: Text
- newGetChannelMessage :: Text -> Text -> Text -> GetChannelMessage
- getChannelMessage_channelArn :: Lens' GetChannelMessage Text
- getChannelMessage_messageId :: Lens' GetChannelMessage Text
- getChannelMessage_chimeBearer :: Lens' GetChannelMessage Text
- data GetChannelMessageResponse = GetChannelMessageResponse' {}
- newGetChannelMessageResponse :: Int -> GetChannelMessageResponse
- getChannelMessageResponse_channelMessage :: Lens' GetChannelMessageResponse (Maybe ChannelMessage)
- getChannelMessageResponse_httpStatus :: Lens' GetChannelMessageResponse Int
Creating a Request
data GetChannelMessage Source #
See: newGetChannelMessage
smart constructor.
GetChannelMessage' | |
|
Instances
:: Text | |
-> Text | |
-> Text | |
-> GetChannelMessage |
Create a value of GetChannelMessage
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:GetChannelMessage'
, getChannelMessage_channelArn
- The ARN of the channel.
$sel:messageId:GetChannelMessage'
, getChannelMessage_messageId
- The ID of the message.
$sel:chimeBearer:GetChannelMessage'
, getChannelMessage_chimeBearer
- The AppInstanceUserArn
of the user that makes the API call.
Request Lenses
getChannelMessage_channelArn :: Lens' GetChannelMessage Text Source #
The ARN of the channel.
getChannelMessage_messageId :: Lens' GetChannelMessage Text Source #
The ID of the message.
getChannelMessage_chimeBearer :: Lens' GetChannelMessage Text Source #
The AppInstanceUserArn
of the user that makes the API call.
Destructuring the Response
data GetChannelMessageResponse Source #
See: newGetChannelMessageResponse
smart constructor.
GetChannelMessageResponse' | |
|
Instances
newGetChannelMessageResponse Source #
Create a value of GetChannelMessageResponse
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:channelMessage:GetChannelMessageResponse'
, getChannelMessageResponse_channelMessage
- The details of and content in the message.
$sel:httpStatus:GetChannelMessageResponse'
, getChannelMessageResponse_httpStatus
- The response's http status code.
Response Lenses
getChannelMessageResponse_channelMessage :: Lens' GetChannelMessageResponse (Maybe ChannelMessage) Source #
The details of and content in the message.
getChannelMessageResponse_httpStatus :: Lens' GetChannelMessageResponse Int Source #
The response's http status code.