| 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.Pinpoint.SendMessages
Description
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.
Constructors
| SendMessages' | |
Fields
| |
Instances
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:
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.
Constructors
| SendMessagesResponse' | |
Fields
| |
Instances
newSendMessagesResponse Source #
Arguments
| :: Int | |
| -> MessageResponse | |
| -> SendMessagesResponse |
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.