Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Amazonka.ConnectParticipant.SendEvent
Description
Sends an event.
ConnectionToken
is used for invoking this API instead of
ParticipantToken
.
The Amazon Connect Participant Service APIs do not use Signature Version 4 authentication.
Synopsis
- data SendEvent = SendEvent' {
- clientToken :: Maybe Text
- content :: Maybe Text
- contentType :: Text
- connectionToken :: Text
- newSendEvent :: Text -> Text -> SendEvent
- sendEvent_clientToken :: Lens' SendEvent (Maybe Text)
- sendEvent_content :: Lens' SendEvent (Maybe Text)
- sendEvent_contentType :: Lens' SendEvent Text
- sendEvent_connectionToken :: Lens' SendEvent Text
- data SendEventResponse = SendEventResponse' {
- absoluteTime :: Maybe Text
- id :: Maybe Text
- httpStatus :: Int
- newSendEventResponse :: Int -> SendEventResponse
- sendEventResponse_absoluteTime :: Lens' SendEventResponse (Maybe Text)
- sendEventResponse_id :: Lens' SendEventResponse (Maybe Text)
- sendEventResponse_httpStatus :: Lens' SendEventResponse Int
Creating a Request
See: newSendEvent
smart constructor.
Constructors
SendEvent' | |
Fields
|
Instances
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. If not provided, the Amazon Web Services SDK
populates this field. For more information about idempotency, see
Making retries safe with idempotent APIs.
SendEvent
, sendEvent_content
- The content of the event to be sent (for example, message text). For
content related to message receipts, this is supported in the form of a
JSON string.
Sample Content: "{\"messageId\":\"11111111-aaaa-bbbb-cccc-EXAMPLE01234\"}"
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
- application/vnd.amazonaws.connect.event.message.delivered
- application/vnd.amazonaws.connect.event.message.read
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. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
sendEvent_content :: Lens' SendEvent (Maybe Text) Source #
The content of the event to be sent (for example, message text). For content related to message receipts, this is supported in the form of a JSON string.
Sample Content: "{\"messageId\":\"11111111-aaaa-bbbb-cccc-EXAMPLE01234\"}"
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
- application/vnd.amazonaws.connect.event.message.delivered
- application/vnd.amazonaws.connect.event.message.read
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
|
Instances
Arguments
:: Int | |
-> SendEventResponse |
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_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.
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_id :: Lens' SendEventResponse (Maybe Text) Source #
The ID of the response.
sendEventResponse_httpStatus :: Lens' SendEventResponse Int Source #
The response's http status code.