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

Description

Sends a message. 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 SendMessage Source #

See: newSendMessage smart constructor.

Constructors

SendMessage' 

Fields

Instances

Instances details
Eq SendMessage Source # 
Instance details

Defined in Amazonka.ConnectParticipant.SendMessage

Read SendMessage Source # 
Instance details

Defined in Amazonka.ConnectParticipant.SendMessage

Show SendMessage Source # 
Instance details

Defined in Amazonka.ConnectParticipant.SendMessage

Generic SendMessage Source # 
Instance details

Defined in Amazonka.ConnectParticipant.SendMessage

Associated Types

type Rep SendMessage :: Type -> Type #

NFData SendMessage Source # 
Instance details

Defined in Amazonka.ConnectParticipant.SendMessage

Methods

rnf :: SendMessage -> () #

Hashable SendMessage Source # 
Instance details

Defined in Amazonka.ConnectParticipant.SendMessage

ToJSON SendMessage Source # 
Instance details

Defined in Amazonka.ConnectParticipant.SendMessage

AWSRequest SendMessage Source # 
Instance details

Defined in Amazonka.ConnectParticipant.SendMessage

Associated Types

type AWSResponse SendMessage #

ToHeaders SendMessage Source # 
Instance details

Defined in Amazonka.ConnectParticipant.SendMessage

Methods

toHeaders :: SendMessage -> [Header] #

ToPath SendMessage Source # 
Instance details

Defined in Amazonka.ConnectParticipant.SendMessage

ToQuery SendMessage Source # 
Instance details

Defined in Amazonka.ConnectParticipant.SendMessage

type Rep SendMessage Source # 
Instance details

Defined in Amazonka.ConnectParticipant.SendMessage

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

Defined in Amazonka.ConnectParticipant.SendMessage

newSendMessage Source #

Create a value of SendMessage 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:SendMessage', sendMessage_clientToken - A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

$sel:contentType:SendMessage', sendMessage_contentType - The type of the content. Supported types are text/plain.

$sel:content:SendMessage', sendMessage_content - The content of the message.

$sel:connectionToken:SendMessage', sendMessage_connectionToken - The authentication token associated with the connection.

Request Lenses

sendMessage_clientToken :: Lens' SendMessage (Maybe Text) Source #

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

sendMessage_contentType :: Lens' SendMessage Text Source #

The type of the content. Supported types are text/plain.

sendMessage_content :: Lens' SendMessage Text Source #

The content of the message.

sendMessage_connectionToken :: Lens' SendMessage Text Source #

The authentication token associated with the connection.

Destructuring the Response

data SendMessageResponse Source #

See: newSendMessageResponse smart constructor.

Constructors

SendMessageResponse' 

Fields

  • absoluteTime :: Maybe Text

    The time when the message 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 message.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq SendMessageResponse Source # 
Instance details

Defined in Amazonka.ConnectParticipant.SendMessage

Read SendMessageResponse Source # 
Instance details

Defined in Amazonka.ConnectParticipant.SendMessage

Show SendMessageResponse Source # 
Instance details

Defined in Amazonka.ConnectParticipant.SendMessage

Generic SendMessageResponse Source # 
Instance details

Defined in Amazonka.ConnectParticipant.SendMessage

Associated Types

type Rep SendMessageResponse :: Type -> Type #

NFData SendMessageResponse Source # 
Instance details

Defined in Amazonka.ConnectParticipant.SendMessage

Methods

rnf :: SendMessageResponse -> () #

type Rep SendMessageResponse Source # 
Instance details

Defined in Amazonka.ConnectParticipant.SendMessage

type Rep SendMessageResponse = D1 ('MetaData "SendMessageResponse" "Amazonka.ConnectParticipant.SendMessage" "libZSservicesZSamazonka-connectparticipantZSamazonka-connectparticipant" 'False) (C1 ('MetaCons "SendMessageResponse'" '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))))

newSendMessageResponse Source #

Create a value of SendMessageResponse 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:SendMessageResponse', sendMessageResponse_absoluteTime - The time when the message 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:SendMessageResponse', sendMessageResponse_id - The ID of the message.

$sel:httpStatus:SendMessageResponse', sendMessageResponse_httpStatus - The response's http status code.

Response Lenses

sendMessageResponse_absoluteTime :: Lens' SendMessageResponse (Maybe Text) Source #

The time when the message was sent.

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