| 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.ChimeSDKMessaging.GetChannelMessage
Description
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' {
- subChannelId :: Maybe Text
- channelArn :: Text
- messageId :: Text
- chimeBearer :: Text
- newGetChannelMessage :: Text -> Text -> Text -> GetChannelMessage
- getChannelMessage_subChannelId :: Lens' GetChannelMessage (Maybe Text)
- 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.
Constructors
| GetChannelMessage' | |
Fields
| |
Instances
Arguments
| :: 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:
GetChannelMessage, getChannelMessage_subChannelId - The ID of the SubChannel in the request.
Only required when getting messages in a SubChannel that the user belongs to.
GetChannelMessage, getChannelMessage_channelArn - The ARN of the channel.
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_subChannelId :: Lens' GetChannelMessage (Maybe Text) Source #
The ID of the SubChannel in the request.
Only required when getting messages in a SubChannel that the user belongs to.
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.
Constructors
| GetChannelMessageResponse' | |
Fields
| |
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.