| 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.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' {
- subChannelId :: Maybe Text
- channelArn :: Text
- messageId :: Text
- chimeBearer :: Text
- newDeleteChannelMessage :: Text -> Text -> Text -> DeleteChannelMessage
- deleteChannelMessage_subChannelId :: Lens' DeleteChannelMessage (Maybe Text)
- deleteChannelMessage_channelArn :: Lens' DeleteChannelMessage Text
- deleteChannelMessage_messageId :: Lens' DeleteChannelMessage Text
- deleteChannelMessage_chimeBearer :: 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 | |
| -> 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:
DeleteChannelMessage, deleteChannelMessage_subChannelId - The ID of the SubChannel in the request.
Only required when deleting messages in a SubChannel that the user belongs to.
DeleteChannelMessage, deleteChannelMessage_channelArn - The ARN of the channel.
DeleteChannelMessage, deleteChannelMessage_messageId - The ID of the message being deleted.
$sel:chimeBearer:DeleteChannelMessage', deleteChannelMessage_chimeBearer - The AppInstanceUserArn of the user that makes the API call.
Request Lenses
deleteChannelMessage_subChannelId :: Lens' DeleteChannelMessage (Maybe Text) Source #
The ID of the SubChannel in the request.
Only required when deleting messages in a SubChannel that the user belongs to.
deleteChannelMessage_channelArn :: Lens' DeleteChannelMessage Text Source #
The ARN of the channel.
deleteChannelMessage_messageId :: Lens' DeleteChannelMessage Text Source #
The ID of the message being deleted.
deleteChannelMessage_chimeBearer :: Lens' DeleteChannelMessage Text Source #
The AppInstanceUserArn of the user that makes the API call.
Destructuring the Response
data DeleteChannelMessageResponse Source #
See: newDeleteChannelMessageResponse smart constructor.
Constructors
| DeleteChannelMessageResponse' | |
Instances
| Generic DeleteChannelMessageResponse Source # | |
Defined in Amazonka.ChimeSDKMessaging.DeleteChannelMessage Associated Types type Rep DeleteChannelMessageResponse :: Type -> Type # | |
| Read DeleteChannelMessageResponse Source # | |
| Show DeleteChannelMessageResponse Source # | |
Defined in Amazonka.ChimeSDKMessaging.DeleteChannelMessage Methods showsPrec :: Int -> DeleteChannelMessageResponse -> ShowS # show :: DeleteChannelMessageResponse -> String # showList :: [DeleteChannelMessageResponse] -> ShowS # | |
| NFData DeleteChannelMessageResponse Source # | |
Defined in Amazonka.ChimeSDKMessaging.DeleteChannelMessage Methods rnf :: DeleteChannelMessageResponse -> () # | |
| Eq DeleteChannelMessageResponse Source # | |
Defined in Amazonka.ChimeSDKMessaging.DeleteChannelMessage Methods (==) :: DeleteChannelMessageResponse -> DeleteChannelMessageResponse -> Bool # (/=) :: DeleteChannelMessageResponse -> DeleteChannelMessageResponse -> Bool # | |
| type Rep DeleteChannelMessageResponse Source # | |
newDeleteChannelMessageResponse :: DeleteChannelMessageResponse Source #
Create a value of DeleteChannelMessageResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.