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.SendEvent

Description

Sends an event to a room. Use this within your application’s business logic to send events to clients of a room; e.g., to notify clients to change the way the chat UI is rendered.

Synopsis

Creating a Request

data SendEvent Source #

See: newSendEvent smart constructor.

Constructors

SendEvent' 

Fields

  • attributes :: Maybe (HashMap Text Text)

    Application-defined metadata to attach to the event sent to clients. The maximum length of the metadata is 1 KB total.

  • eventName :: Text

    Application-defined name of the event to send to clients.

  • roomIdentifier :: Text

    Identifier of the room to which the event will be sent. Currently this must be an ARN.

Instances

Instances details
ToJSON SendEvent Source # 
Instance details

Defined in Amazonka.IVSChat.SendEvent

ToHeaders SendEvent Source # 
Instance details

Defined in Amazonka.IVSChat.SendEvent

Methods

toHeaders :: SendEvent -> [Header] #

ToPath SendEvent Source # 
Instance details

Defined in Amazonka.IVSChat.SendEvent

ToQuery SendEvent Source # 
Instance details

Defined in Amazonka.IVSChat.SendEvent

AWSRequest SendEvent Source # 
Instance details

Defined in Amazonka.IVSChat.SendEvent

Associated Types

type AWSResponse SendEvent #

Generic SendEvent Source # 
Instance details

Defined in Amazonka.IVSChat.SendEvent

Associated Types

type Rep SendEvent :: Type -> Type #

Read SendEvent Source # 
Instance details

Defined in Amazonka.IVSChat.SendEvent

Show SendEvent Source # 
Instance details

Defined in Amazonka.IVSChat.SendEvent

NFData SendEvent Source # 
Instance details

Defined in Amazonka.IVSChat.SendEvent

Methods

rnf :: SendEvent -> () #

Eq SendEvent Source # 
Instance details

Defined in Amazonka.IVSChat.SendEvent

Hashable SendEvent Source # 
Instance details

Defined in Amazonka.IVSChat.SendEvent

type AWSResponse SendEvent Source # 
Instance details

Defined in Amazonka.IVSChat.SendEvent

type Rep SendEvent Source # 
Instance details

Defined in Amazonka.IVSChat.SendEvent

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

newSendEvent Source #

Create a value of SendEvent 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:attributes:SendEvent', sendEvent_attributes - Application-defined metadata to attach to the event sent to clients. The maximum length of the metadata is 1 KB total.

$sel:eventName:SendEvent', sendEvent_eventName - Application-defined name of the event to send to clients.

$sel:roomIdentifier:SendEvent', sendEvent_roomIdentifier - Identifier of the room to which the event will be sent. Currently this must be an ARN.

Request Lenses

sendEvent_attributes :: Lens' SendEvent (Maybe (HashMap Text Text)) Source #

Application-defined metadata to attach to the event sent to clients. The maximum length of the metadata is 1 KB total.

sendEvent_eventName :: Lens' SendEvent Text Source #

Application-defined name of the event to send to clients.

sendEvent_roomIdentifier :: Lens' SendEvent Text Source #

Identifier of the room to which the event will be sent. Currently this must be an ARN.

Destructuring the Response

data SendEventResponse Source #

See: newSendEventResponse smart constructor.

Constructors

SendEventResponse' 

Fields

  • id :: Maybe Text

    An identifier generated by Amazon IVS Chat. This identifier must be used in subsequent operations for this message, such as DeleteMessage.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic SendEventResponse Source # 
Instance details

Defined in Amazonka.IVSChat.SendEvent

Associated Types

type Rep SendEventResponse :: Type -> Type #

Read SendEventResponse Source # 
Instance details

Defined in Amazonka.IVSChat.SendEvent

Show SendEventResponse Source # 
Instance details

Defined in Amazonka.IVSChat.SendEvent

NFData SendEventResponse Source # 
Instance details

Defined in Amazonka.IVSChat.SendEvent

Methods

rnf :: SendEventResponse -> () #

Eq SendEventResponse Source # 
Instance details

Defined in Amazonka.IVSChat.SendEvent

type Rep SendEventResponse Source # 
Instance details

Defined in Amazonka.IVSChat.SendEvent

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

newSendEventResponse Source #

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

SendEventResponse, sendEventResponse_id - An identifier generated by Amazon IVS Chat. This identifier must be used in subsequent operations for this message, such as DeleteMessage.

$sel:httpStatus:SendEventResponse', sendEventResponse_httpStatus - The response's http status code.

Response Lenses

sendEventResponse_id :: Lens' SendEventResponse (Maybe Text) Source #

An identifier generated by Amazon IVS Chat. This identifier must be used in subsequent operations for this message, such as DeleteMessage.

sendEventResponse_httpStatus :: Lens' SendEventResponse Int Source #

The response's http status code.