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 |
Updates the content of a 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 UpdateChannelMessage = UpdateChannelMessage' {}
- newUpdateChannelMessage :: Text -> Text -> UpdateChannelMessage
- updateChannelMessage_chimeBearer :: Lens' UpdateChannelMessage (Maybe Text)
- updateChannelMessage_content :: Lens' UpdateChannelMessage (Maybe Text)
- updateChannelMessage_metadata :: Lens' UpdateChannelMessage (Maybe Text)
- updateChannelMessage_channelArn :: Lens' UpdateChannelMessage Text
- updateChannelMessage_messageId :: Lens' UpdateChannelMessage Text
- data UpdateChannelMessageResponse = UpdateChannelMessageResponse' {
- channelArn :: Maybe Text
- messageId :: Maybe Text
- httpStatus :: Int
- newUpdateChannelMessageResponse :: Int -> UpdateChannelMessageResponse
- updateChannelMessageResponse_channelArn :: Lens' UpdateChannelMessageResponse (Maybe Text)
- updateChannelMessageResponse_messageId :: Lens' UpdateChannelMessageResponse (Maybe Text)
- updateChannelMessageResponse_httpStatus :: Lens' UpdateChannelMessageResponse Int
Creating a Request
data UpdateChannelMessage Source #
See: newUpdateChannelMessage
smart constructor.
UpdateChannelMessage' | |
|
Instances
newUpdateChannelMessage Source #
:: Text | |
-> Text | |
-> UpdateChannelMessage |
Create a value of UpdateChannelMessage
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:UpdateChannelMessage'
, updateChannelMessage_chimeBearer
- The AppInstanceUserArn
of the user that makes the API call.
$sel:content:UpdateChannelMessage'
, updateChannelMessage_content
- The content of the message being updated.
$sel:metadata:UpdateChannelMessage'
, updateChannelMessage_metadata
- The metadata of the message being updated.
$sel:channelArn:UpdateChannelMessage'
, updateChannelMessage_channelArn
- The ARN of the channel.
$sel:messageId:UpdateChannelMessage'
, updateChannelMessage_messageId
- The ID string of the message being updated.
Request Lenses
updateChannelMessage_chimeBearer :: Lens' UpdateChannelMessage (Maybe Text) Source #
The AppInstanceUserArn
of the user that makes the API call.
updateChannelMessage_content :: Lens' UpdateChannelMessage (Maybe Text) Source #
The content of the message being updated.
updateChannelMessage_metadata :: Lens' UpdateChannelMessage (Maybe Text) Source #
The metadata of the message being updated.
updateChannelMessage_channelArn :: Lens' UpdateChannelMessage Text Source #
The ARN of the channel.
updateChannelMessage_messageId :: Lens' UpdateChannelMessage Text Source #
The ID string of the message being updated.
Destructuring the Response
data UpdateChannelMessageResponse Source #
See: newUpdateChannelMessageResponse
smart constructor.
UpdateChannelMessageResponse' | |
|
Instances
newUpdateChannelMessageResponse Source #
Create a value of UpdateChannelMessageResponse
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:UpdateChannelMessage'
, updateChannelMessageResponse_channelArn
- The ARN of the channel.
$sel:messageId:UpdateChannelMessage'
, updateChannelMessageResponse_messageId
- The ID string of the message being updated.
$sel:httpStatus:UpdateChannelMessageResponse'
, updateChannelMessageResponse_httpStatus
- The response's http status code.
Response Lenses
updateChannelMessageResponse_channelArn :: Lens' UpdateChannelMessageResponse (Maybe Text) Source #
The ARN of the channel.
updateChannelMessageResponse_messageId :: Lens' UpdateChannelMessageResponse (Maybe Text) Source #
The ID string of the message being updated.
updateChannelMessageResponse_httpStatus :: Lens' UpdateChannelMessageResponse Int Source #
The response's http status code.