Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Creates and sends a direct message.
Synopsis
- data SendMessages = SendMessages' {}
- newSendMessages :: Text -> MessageRequest -> SendMessages
- sendMessages_applicationId :: Lens' SendMessages Text
- sendMessages_messageRequest :: Lens' SendMessages MessageRequest
- data SendMessagesResponse = SendMessagesResponse' {}
- newSendMessagesResponse :: Int -> MessageResponse -> SendMessagesResponse
- sendMessagesResponse_httpStatus :: Lens' SendMessagesResponse Int
- sendMessagesResponse_messageResponse :: Lens' SendMessagesResponse MessageResponse
Creating a Request
data SendMessages Source #
See: newSendMessages
smart constructor.
SendMessages' | |
|
Instances
:: Text | |
-> MessageRequest | |
-> SendMessages |
Create a value of SendMessages
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:applicationId:SendMessages'
, sendMessages_applicationId
- The unique identifier for the application. This identifier is displayed
as the Project ID on the Amazon Pinpoint console.
$sel:messageRequest:SendMessages'
, sendMessages_messageRequest
- Undocumented member.
Request Lenses
sendMessages_applicationId :: Lens' SendMessages Text Source #
The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
sendMessages_messageRequest :: Lens' SendMessages MessageRequest Source #
Undocumented member.
Destructuring the Response
data SendMessagesResponse Source #
See: newSendMessagesResponse
smart constructor.
SendMessagesResponse' | |
|
Instances
newSendMessagesResponse Source #
Create a value of SendMessagesResponse
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:httpStatus:SendMessagesResponse'
, sendMessagesResponse_httpStatus
- The response's http status code.
$sel:messageResponse:SendMessagesResponse'
, sendMessagesResponse_messageResponse
- Undocumented member.
Response Lenses
sendMessagesResponse_httpStatus :: Lens' SendMessagesResponse Int Source #
The response's http status code.
sendMessagesResponse_messageResponse :: Lens' SendMessagesResponse MessageResponse Source #
Undocumented member.