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 |
Amazonka.Chime.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' {
- chimeBearer :: Maybe Text
- channelArn :: Text
- messageId :: Text
- newGetChannelMessage :: Text -> Text -> GetChannelMessage
- getChannelMessage_chimeBearer :: Lens' GetChannelMessage (Maybe Text)
- getChannelMessage_channelArn :: Lens' GetChannelMessage Text
- getChannelMessage_messageId :: 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 | |
-> 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:chimeBearer:GetChannelMessage'
, getChannelMessage_chimeBearer
- The AppInstanceUserArn
of the user that makes the API call.
$sel:channelArn:GetChannelMessage'
, getChannelMessage_channelArn
- The ARN of the channel.
$sel:messageId:GetChannelMessage'
, getChannelMessage_messageId
- The ID of the message.
Request Lenses
getChannelMessage_chimeBearer :: Lens' GetChannelMessage (Maybe Text) Source #
The AppInstanceUserArn
of the user that makes the API call.
getChannelMessage_channelArn :: Lens' GetChannelMessage Text Source #
The ARN of the channel.
getChannelMessage_messageId :: Lens' GetChannelMessage Text Source #
The ID of the message.
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.