amazonka-ivschat-2.0: Amazon Interactive Video Service Chat SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.IVSChat.DeleteMessage

Description

Sends an event to a specific room which directs clients to delete a specific message; that is, unrender it from view and delete it from the client’s chat history. This event’s EventName is aws:DELETE_MESSAGE. This replicates the DeleteMessage WebSocket operation in the Amazon IVS Chat Messaging API.

Synopsis

Creating a Request

data DeleteMessage Source #

See: newDeleteMessage smart constructor.

Constructors

DeleteMessage' 

Fields

  • reason :: Maybe Text

    Reason for deleting the message.

  • id :: Text

    ID of the message to be deleted. This is the Id field in the received message (see Message (Subscribe) in the Chat Messaging API).

  • roomIdentifier :: Text

    Identifier of the room where the message should be deleted. Currently this must be an ARN.

Instances

Instances details
ToJSON DeleteMessage Source # 
Instance details

Defined in Amazonka.IVSChat.DeleteMessage

ToHeaders DeleteMessage Source # 
Instance details

Defined in Amazonka.IVSChat.DeleteMessage

ToPath DeleteMessage Source # 
Instance details

Defined in Amazonka.IVSChat.DeleteMessage

ToQuery DeleteMessage Source # 
Instance details

Defined in Amazonka.IVSChat.DeleteMessage

AWSRequest DeleteMessage Source # 
Instance details

Defined in Amazonka.IVSChat.DeleteMessage

Associated Types

type AWSResponse DeleteMessage #

Generic DeleteMessage Source # 
Instance details

Defined in Amazonka.IVSChat.DeleteMessage

Associated Types

type Rep DeleteMessage :: Type -> Type #

Read DeleteMessage Source # 
Instance details

Defined in Amazonka.IVSChat.DeleteMessage

Show DeleteMessage Source # 
Instance details

Defined in Amazonka.IVSChat.DeleteMessage

NFData DeleteMessage Source # 
Instance details

Defined in Amazonka.IVSChat.DeleteMessage

Methods

rnf :: DeleteMessage -> () #

Eq DeleteMessage Source # 
Instance details

Defined in Amazonka.IVSChat.DeleteMessage

Hashable DeleteMessage Source # 
Instance details

Defined in Amazonka.IVSChat.DeleteMessage

type AWSResponse DeleteMessage Source # 
Instance details

Defined in Amazonka.IVSChat.DeleteMessage

type Rep DeleteMessage Source # 
Instance details

Defined in Amazonka.IVSChat.DeleteMessage

type Rep DeleteMessage = D1 ('MetaData "DeleteMessage" "Amazonka.IVSChat.DeleteMessage" "amazonka-ivschat-2.0-AB4QlCKEEGt4izEWjWKMb2" 'False) (C1 ('MetaCons "DeleteMessage'" 'PrefixI 'True) (S1 ('MetaSel ('Just "reason") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "roomIdentifier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newDeleteMessage Source #

Create a value of DeleteMessage 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:reason:DeleteMessage', deleteMessage_reason - Reason for deleting the message.

DeleteMessage, deleteMessage_id - ID of the message to be deleted. This is the Id field in the received message (see Message (Subscribe) in the Chat Messaging API).

$sel:roomIdentifier:DeleteMessage', deleteMessage_roomIdentifier - Identifier of the room where the message should be deleted. Currently this must be an ARN.

Request Lenses

deleteMessage_reason :: Lens' DeleteMessage (Maybe Text) Source #

Reason for deleting the message.

deleteMessage_id :: Lens' DeleteMessage Text Source #

ID of the message to be deleted. This is the Id field in the received message (see Message (Subscribe) in the Chat Messaging API).

deleteMessage_roomIdentifier :: Lens' DeleteMessage Text Source #

Identifier of the room where the message should be deleted. Currently this must be an ARN.

Destructuring the Response

data DeleteMessageResponse Source #

See: newDeleteMessageResponse smart constructor.

Constructors

DeleteMessageResponse' 

Fields

Instances

Instances details
Generic DeleteMessageResponse Source # 
Instance details

Defined in Amazonka.IVSChat.DeleteMessage

Associated Types

type Rep DeleteMessageResponse :: Type -> Type #

Read DeleteMessageResponse Source # 
Instance details

Defined in Amazonka.IVSChat.DeleteMessage

Show DeleteMessageResponse Source # 
Instance details

Defined in Amazonka.IVSChat.DeleteMessage

NFData DeleteMessageResponse Source # 
Instance details

Defined in Amazonka.IVSChat.DeleteMessage

Methods

rnf :: DeleteMessageResponse -> () #

Eq DeleteMessageResponse Source # 
Instance details

Defined in Amazonka.IVSChat.DeleteMessage

type Rep DeleteMessageResponse Source # 
Instance details

Defined in Amazonka.IVSChat.DeleteMessage

type Rep DeleteMessageResponse = D1 ('MetaData "DeleteMessageResponse" "Amazonka.IVSChat.DeleteMessage" "amazonka-ivschat-2.0-AB4QlCKEEGt4izEWjWKMb2" 'False) (C1 ('MetaCons "DeleteMessageResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newDeleteMessageResponse Source #

Create a value of DeleteMessageResponse 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:

DeleteMessage, deleteMessageResponse_id - Operation identifier, generated by Amazon IVS Chat.

$sel:httpStatus:DeleteMessageResponse', deleteMessageResponse_httpStatus - The response's http status code.

Response Lenses

deleteMessageResponse_id :: Lens' DeleteMessageResponse (Maybe Text) Source #

Operation identifier, generated by Amazon IVS Chat.