libZSservicesZSamazonka-pinpointZSamazonka-pinpoint
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.Pinpoint.Types.MessageResponse

Description

 
Synopsis

Documentation

data MessageResponse Source #

Provides information about the results of a request to send a message to an endpoint address.

See: newMessageResponse smart constructor.

Constructors

MessageResponse' 

Fields

  • requestId :: Maybe Text

    The identifier for the original request that the message was delivered for.

  • result :: Maybe (HashMap Text MessageResult)

    A map that contains a multipart response for each address (email address, phone number, or push notification token) that the message was sent to. In the map, the address is the key and the result is the value.

  • endpointResult :: Maybe (HashMap Text EndpointMessageResult)

    A map that contains a multipart response for each address that the message was sent to. In the map, the endpoint ID is the key and the result is the value.

  • applicationId :: Text

    The unique identifier for the application that was used to send the message.

Instances

Instances details
Eq MessageResponse Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.MessageResponse

Read MessageResponse Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.MessageResponse

Show MessageResponse Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.MessageResponse

Generic MessageResponse Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.MessageResponse

Associated Types

type Rep MessageResponse :: Type -> Type #

NFData MessageResponse Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.MessageResponse

Methods

rnf :: MessageResponse -> () #

Hashable MessageResponse Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.MessageResponse

FromJSON MessageResponse Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.MessageResponse

type Rep MessageResponse Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.MessageResponse

type Rep MessageResponse = D1 ('MetaData "MessageResponse" "Amazonka.Pinpoint.Types.MessageResponse" "libZSservicesZSamazonka-pinpointZSamazonka-pinpoint" 'False) (C1 ('MetaCons "MessageResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "requestId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "result") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text MessageResult)))) :*: (S1 ('MetaSel ('Just "endpointResult") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text EndpointMessageResult))) :*: S1 ('MetaSel ('Just "applicationId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newMessageResponse Source #

Create a value of MessageResponse 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:requestId:MessageResponse', messageResponse_requestId - The identifier for the original request that the message was delivered for.

$sel:result:MessageResponse', messageResponse_result - A map that contains a multipart response for each address (email address, phone number, or push notification token) that the message was sent to. In the map, the address is the key and the result is the value.

$sel:endpointResult:MessageResponse', messageResponse_endpointResult - A map that contains a multipart response for each address that the message was sent to. In the map, the endpoint ID is the key and the result is the value.

$sel:applicationId:MessageResponse', messageResponse_applicationId - The unique identifier for the application that was used to send the message.

messageResponse_requestId :: Lens' MessageResponse (Maybe Text) Source #

The identifier for the original request that the message was delivered for.

messageResponse_result :: Lens' MessageResponse (Maybe (HashMap Text MessageResult)) Source #

A map that contains a multipart response for each address (email address, phone number, or push notification token) that the message was sent to. In the map, the address is the key and the result is the value.

messageResponse_endpointResult :: Lens' MessageResponse (Maybe (HashMap Text EndpointMessageResult)) Source #

A map that contains a multipart response for each address that the message was sent to. In the map, the endpoint ID is the key and the result is the value.

messageResponse_applicationId :: Lens' MessageResponse Text Source #

The unique identifier for the application that was used to send the message.