| 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.Types.EndpointMessageResult
Description
Synopsis
- data EndpointMessageResult = EndpointMessageResult' {}
- newEndpointMessageResult :: DeliveryStatus -> Int -> EndpointMessageResult
- endpointMessageResult_address :: Lens' EndpointMessageResult (Maybe Text)
- endpointMessageResult_messageId :: Lens' EndpointMessageResult (Maybe Text)
- endpointMessageResult_statusMessage :: Lens' EndpointMessageResult (Maybe Text)
- endpointMessageResult_updatedToken :: Lens' EndpointMessageResult (Maybe Text)
- endpointMessageResult_deliveryStatus :: Lens' EndpointMessageResult DeliveryStatus
- endpointMessageResult_statusCode :: Lens' EndpointMessageResult Int
Documentation
data EndpointMessageResult Source #
Provides information about the delivery status and results of sending a message directly to an endpoint.
See: newEndpointMessageResult smart constructor.
Constructors
| EndpointMessageResult' | |
Fields
| |
Instances
newEndpointMessageResult Source #
Arguments
| :: DeliveryStatus | |
| -> Int | |
| -> EndpointMessageResult |
Create a value of EndpointMessageResult 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:address:EndpointMessageResult', endpointMessageResult_address - The endpoint address that the message was delivered to.
$sel:messageId:EndpointMessageResult', endpointMessageResult_messageId - The unique identifier for the message that was sent.
$sel:statusMessage:EndpointMessageResult', endpointMessageResult_statusMessage - The status message for delivering the message.
$sel:updatedToken:EndpointMessageResult', endpointMessageResult_updatedToken - For push notifications that are sent through the GCM channel, specifies
whether the endpoint's device registration token was updated as part of
delivering the message.
$sel:deliveryStatus:EndpointMessageResult', endpointMessageResult_deliveryStatus - The delivery status of the message. Possible values are:
- DUPLICATE - The endpoint address is a duplicate of another endpoint address. Amazon Pinpoint won't attempt to send the message again.
- OPT_OUT - The user who's associated with the endpoint has opted out of receiving messages from you. Amazon Pinpoint won't attempt to send the message again.
- PERMANENT_FAILURE - An error occurred when delivering the message to the endpoint. Amazon Pinpoint won't attempt to send the message again.
- SUCCESSFUL - The message was successfully delivered to the endpoint.
- TEMPORARY_FAILURE - A temporary error occurred. Amazon Pinpoint won't attempt to send the message again.
- THROTTLED - Amazon Pinpoint throttled the operation to send the message to the endpoint.
- TIMEOUT - The message couldn't be sent within the timeout period.
- UNKNOWN_FAILURE - An unknown error occurred.
$sel:statusCode:EndpointMessageResult', endpointMessageResult_statusCode - The downstream service status code for delivering the message.
endpointMessageResult_address :: Lens' EndpointMessageResult (Maybe Text) Source #
The endpoint address that the message was delivered to.
endpointMessageResult_messageId :: Lens' EndpointMessageResult (Maybe Text) Source #
The unique identifier for the message that was sent.
endpointMessageResult_statusMessage :: Lens' EndpointMessageResult (Maybe Text) Source #
The status message for delivering the message.
endpointMessageResult_updatedToken :: Lens' EndpointMessageResult (Maybe Text) Source #
For push notifications that are sent through the GCM channel, specifies whether the endpoint's device registration token was updated as part of delivering the message.
endpointMessageResult_deliveryStatus :: Lens' EndpointMessageResult DeliveryStatus Source #
The delivery status of the message. Possible values are:
- DUPLICATE - The endpoint address is a duplicate of another endpoint address. Amazon Pinpoint won't attempt to send the message again.
- OPT_OUT - The user who's associated with the endpoint has opted out of receiving messages from you. Amazon Pinpoint won't attempt to send the message again.
- PERMANENT_FAILURE - An error occurred when delivering the message to the endpoint. Amazon Pinpoint won't attempt to send the message again.
- SUCCESSFUL - The message was successfully delivered to the endpoint.
- TEMPORARY_FAILURE - A temporary error occurred. Amazon Pinpoint won't attempt to send the message again.
- THROTTLED - Amazon Pinpoint throttled the operation to send the message to the endpoint.
- TIMEOUT - The message couldn't be sent within the timeout period.
- UNKNOWN_FAILURE - An unknown error occurred.
endpointMessageResult_statusCode :: Lens' EndpointMessageResult Int Source #
The downstream service status code for delivering the message.