libZSservicesZSamazonka-connectparticipantZSamazonka-connectparticipant
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.ConnectParticipant.SendEvent

Description

Sends an event. Note that ConnectionToken is used for invoking this API instead of ParticipantToken.

The Amazon Connect Participant Service APIs do not use Signature Version 4 authentication.

Synopsis

Creating a Request

data SendEvent Source #

See: newSendEvent smart constructor.

Constructors

SendEvent' 

Fields

  • clientToken :: Maybe Text

    A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

  • content :: Maybe Text

    The content of the event to be sent (for example, message text). This is not yet supported.

  • contentType :: Text

    The content type of the request. Supported types are:

    • application/vnd.amazonaws.connect.event.typing
    • application/vnd.amazonaws.connect.event.connection.acknowledged
  • connectionToken :: Text

    The authentication token associated with the participant's connection.

Instances

Instances details
Eq SendEvent Source # 
Instance details

Defined in Amazonka.ConnectParticipant.SendEvent

Read SendEvent Source # 
Instance details

Defined in Amazonka.ConnectParticipant.SendEvent

Show SendEvent Source # 
Instance details

Defined in Amazonka.ConnectParticipant.SendEvent

Generic SendEvent Source # 
Instance details

Defined in Amazonka.ConnectParticipant.SendEvent

Associated Types

type Rep SendEvent :: Type -> Type #

NFData SendEvent Source # 
Instance details

Defined in Amazonka.ConnectParticipant.SendEvent

Methods

rnf :: SendEvent -> () #

Hashable SendEvent Source # 
Instance details

Defined in Amazonka.ConnectParticipant.SendEvent

ToJSON SendEvent Source # 
Instance details

Defined in Amazonka.ConnectParticipant.SendEvent

AWSRequest SendEvent Source # 
Instance details

Defined in Amazonka.ConnectParticipant.SendEvent

Associated Types

type AWSResponse SendEvent #

ToHeaders SendEvent Source # 
Instance details

Defined in Amazonka.ConnectParticipant.SendEvent

Methods

toHeaders :: SendEvent -> [Header] #

ToPath SendEvent Source # 
Instance details

Defined in Amazonka.ConnectParticipant.SendEvent

ToQuery SendEvent Source # 
Instance details

Defined in Amazonka.ConnectParticipant.SendEvent

type Rep SendEvent Source # 
Instance details

Defined in Amazonka.ConnectParticipant.SendEvent

type Rep SendEvent = D1 ('MetaData "SendEvent" "Amazonka.ConnectParticipant.SendEvent" "libZSservicesZSamazonka-connectparticipantZSamazonka-connectparticipant" 'False) (C1 ('MetaCons "SendEvent'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "clientToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "content") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "contentType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "connectionToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse SendEvent Source # 
Instance details

Defined in Amazonka.ConnectParticipant.SendEvent

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:clientToken:SendEvent', sendEvent_clientToken - A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

$sel:content:SendEvent', sendEvent_content - The content of the event to be sent (for example, message text). This is not yet supported.

$sel:contentType:SendEvent', sendEvent_contentType - The content type of the request. Supported types are:

  • application/vnd.amazonaws.connect.event.typing
  • application/vnd.amazonaws.connect.event.connection.acknowledged

$sel:connectionToken:SendEvent', sendEvent_connectionToken - The authentication token associated with the participant's connection.

Request Lenses

sendEvent_clientToken :: Lens' SendEvent (Maybe Text) Source #

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

sendEvent_content :: Lens' SendEvent (Maybe Text) Source #

The content of the event to be sent (for example, message text). This is not yet supported.

sendEvent_contentType :: Lens' SendEvent Text Source #

The content type of the request. Supported types are:

  • application/vnd.amazonaws.connect.event.typing
  • application/vnd.amazonaws.connect.event.connection.acknowledged

sendEvent_connectionToken :: Lens' SendEvent Text Source #

The authentication token associated with the participant's connection.

Destructuring the Response

data SendEventResponse Source #

See: newSendEventResponse smart constructor.

Constructors

SendEventResponse' 

Fields

  • absoluteTime :: Maybe Text

    The time when the event was sent.

    It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.

  • id :: Maybe Text

    The ID of the response.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq SendEventResponse Source # 
Instance details

Defined in Amazonka.ConnectParticipant.SendEvent

Read SendEventResponse Source # 
Instance details

Defined in Amazonka.ConnectParticipant.SendEvent

Show SendEventResponse Source # 
Instance details

Defined in Amazonka.ConnectParticipant.SendEvent

Generic SendEventResponse Source # 
Instance details

Defined in Amazonka.ConnectParticipant.SendEvent

Associated Types

type Rep SendEventResponse :: Type -> Type #

NFData SendEventResponse Source # 
Instance details

Defined in Amazonka.ConnectParticipant.SendEvent

Methods

rnf :: SendEventResponse -> () #

type Rep SendEventResponse Source # 
Instance details

Defined in Amazonka.ConnectParticipant.SendEvent

type Rep SendEventResponse = D1 ('MetaData "SendEventResponse" "Amazonka.ConnectParticipant.SendEvent" "libZSservicesZSamazonka-connectparticipantZSamazonka-connectparticipant" 'False) (C1 ('MetaCons "SendEventResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "absoluteTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (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:

$sel:absoluteTime:SendEventResponse', sendEventResponse_absoluteTime - The time when the event was sent.

It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.

$sel:id:SendEventResponse', sendEventResponse_id - The ID of the response.

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

Response Lenses

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

The time when the event was sent.

It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.

sendEventResponse_httpStatus :: Lens' SendEventResponse Int Source #

The response's http status code.