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 |
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' {
- channelArn :: Text
- messageId :: Text
- chimeBearer :: Text
- newDeleteChannelMessage :: Text -> Text -> Text -> DeleteChannelMessage
- 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.
DeleteChannelMessage' | |
|
Instances
newDeleteChannelMessage Source #
:: 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:
$sel:channelArn:DeleteChannelMessage'
, deleteChannelMessage_channelArn
- The ARN of the channel.
$sel:messageId: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_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.
Instances
Eq DeleteChannelMessageResponse Source # | |
Read DeleteChannelMessageResponse Source # | |
Show DeleteChannelMessageResponse Source # | |
Defined in Amazonka.ChimeSDKMessaging.DeleteChannelMessage showsPrec :: Int -> DeleteChannelMessageResponse -> ShowS # show :: DeleteChannelMessageResponse -> String # showList :: [DeleteChannelMessageResponse] -> ShowS # | |
Generic DeleteChannelMessageResponse Source # | |
NFData DeleteChannelMessageResponse Source # | |
Defined in Amazonka.ChimeSDKMessaging.DeleteChannelMessage rnf :: DeleteChannelMessageResponse -> () # | |
type Rep DeleteChannelMessageResponse Source # | |
Defined in Amazonka.ChimeSDKMessaging.DeleteChannelMessage type Rep DeleteChannelMessageResponse = D1 ('MetaData "DeleteChannelMessageResponse" "Amazonka.ChimeSDKMessaging.DeleteChannelMessage" "libZSservicesZSamazonka-chime-sdk-messagingZSamazonka-chime-sdk-messaging" 'False) (C1 ('MetaCons "DeleteChannelMessageResponse'" 'PrefixI 'False) (U1 :: Type -> Type)) |
newDeleteChannelMessageResponse :: DeleteChannelMessageResponse Source #
Create a value of DeleteChannelMessageResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.