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.DeleteChannelMessage
Description
Deletes a channel message. Only admins can perform this action. Deletion
makes messages inaccessible immediately. A background process deletes
any revisions created by UpdateChannelMessage
.
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 DeleteChannelMessage = DeleteChannelMessage' {
- chimeBearer :: Maybe Text
- channelArn :: Text
- messageId :: Text
- newDeleteChannelMessage :: Text -> Text -> DeleteChannelMessage
- deleteChannelMessage_chimeBearer :: Lens' DeleteChannelMessage (Maybe Text)
- deleteChannelMessage_channelArn :: Lens' DeleteChannelMessage Text
- deleteChannelMessage_messageId :: Lens' DeleteChannelMessage Text
- data DeleteChannelMessageResponse = DeleteChannelMessageResponse' {
- newDeleteChannelMessageResponse :: DeleteChannelMessageResponse
Creating a Request
data DeleteChannelMessage Source #
See: newDeleteChannelMessage
smart constructor.
Constructors
DeleteChannelMessage' | |
Fields
|
Instances
newDeleteChannelMessage Source #
Arguments
:: Text | |
-> Text | |
-> DeleteChannelMessage |
Create a value of DeleteChannelMessage
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:DeleteChannelMessage'
, deleteChannelMessage_chimeBearer
- The AppInstanceUserArn
of the user that makes the API call.
$sel:channelArn:DeleteChannelMessage'
, deleteChannelMessage_channelArn
- The ARN of the channel.
$sel:messageId:DeleteChannelMessage'
, deleteChannelMessage_messageId
- The ID of the message being deleted.
Request Lenses
deleteChannelMessage_chimeBearer :: Lens' DeleteChannelMessage (Maybe Text) Source #
The AppInstanceUserArn
of the user that makes the API call.
deleteChannelMessage_channelArn :: Lens' DeleteChannelMessage Text Source #
The ARN of the channel.
deleteChannelMessage_messageId :: Lens' DeleteChannelMessage Text Source #
The ID of the message being deleted.
Destructuring the Response
data DeleteChannelMessageResponse Source #
See: newDeleteChannelMessageResponse
smart constructor.
Constructors
DeleteChannelMessageResponse' | |
Instances
Eq DeleteChannelMessageResponse Source # | |
Defined in Amazonka.Chime.DeleteChannelMessage Methods (==) :: DeleteChannelMessageResponse -> DeleteChannelMessageResponse -> Bool # (/=) :: DeleteChannelMessageResponse -> DeleteChannelMessageResponse -> Bool # | |
Read DeleteChannelMessageResponse Source # | |
Show DeleteChannelMessageResponse Source # | |
Defined in Amazonka.Chime.DeleteChannelMessage Methods showsPrec :: Int -> DeleteChannelMessageResponse -> ShowS # show :: DeleteChannelMessageResponse -> String # showList :: [DeleteChannelMessageResponse] -> ShowS # | |
Generic DeleteChannelMessageResponse Source # | |
Defined in Amazonka.Chime.DeleteChannelMessage Associated Types type Rep DeleteChannelMessageResponse :: Type -> Type # | |
NFData DeleteChannelMessageResponse Source # | |
Defined in Amazonka.Chime.DeleteChannelMessage Methods rnf :: DeleteChannelMessageResponse -> () # | |
type Rep DeleteChannelMessageResponse Source # | |
Defined in Amazonka.Chime.DeleteChannelMessage |
newDeleteChannelMessageResponse :: DeleteChannelMessageResponse Source #
Create a value of DeleteChannelMessageResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.