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 -> Text -> UpdateChannelMessage
- updateChannelMessage_content :: Lens' UpdateChannelMessage (Maybe Text)
- updateChannelMessage_metadata :: Lens' UpdateChannelMessage (Maybe Text)
- updateChannelMessage_channelArn :: Lens' UpdateChannelMessage Text
- updateChannelMessage_messageId :: Lens' UpdateChannelMessage Text
- updateChannelMessage_chimeBearer :: Lens' UpdateChannelMessage Text
- data UpdateChannelMessageResponse = UpdateChannelMessageResponse' {}
- newUpdateChannelMessageResponse :: Int -> UpdateChannelMessageResponse
- updateChannelMessageResponse_status :: Lens' UpdateChannelMessageResponse (Maybe ChannelMessageStatusStructure)
- 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 | |
-> 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: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.
$sel:chimeBearer:UpdateChannelMessage'
, updateChannelMessage_chimeBearer
- The AppInstanceUserArn
of the user that makes the API call.
Request Lenses
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.
updateChannelMessage_chimeBearer :: Lens' UpdateChannelMessage Text Source #
The AppInstanceUserArn
of the user that makes the API call.
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:status:UpdateChannelMessageResponse'
, updateChannelMessageResponse_status
- The status of the message update.
$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_status :: Lens' UpdateChannelMessageResponse (Maybe ChannelMessageStatusStructure) Source #
The status of the message update.
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.