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.PublicEndpoint

Description

 
Synopsis

Documentation

data PublicEndpoint Source #

Specifies the properties and attributes of an endpoint that's associated with an event.

See: newPublicEndpoint smart constructor.

Constructors

PublicEndpoint' 

Fields

  • requestId :: Maybe Text

    A unique identifier that's generated each time the endpoint is updated.

  • metrics :: Maybe (HashMap Text Double)

    One or more custom metrics that your app reports to Amazon Pinpoint for the endpoint.

  • location :: Maybe EndpointLocation

    The geographic information for the endpoint.

  • demographic :: Maybe EndpointDemographic

    The demographic information for the endpoint, such as the time zone and platform.

  • address :: Maybe Text

    The unique identifier for the recipient, such as a device token, email address, or mobile phone number.

  • effectiveDate :: Maybe Text

    The date and time, in ISO 8601 format, when the endpoint was last updated.

  • user :: Maybe EndpointUser

    One or more custom user attributes that your app reports to Amazon Pinpoint for the user who's associated with the endpoint.

  • attributes :: Maybe (HashMap Text [Text])

    One or more custom attributes that describe the endpoint by associating a name with an array of values. You can use these attributes as filter criteria when you create segments.

  • endpointStatus :: Maybe Text

    Specifies whether to send messages or push notifications to the endpoint. Valid values are: ACTIVE, messages are sent to the endpoint; and, INACTIVE, messages aren’t sent to the endpoint.

    Amazon Pinpoint automatically sets this value to ACTIVE when you create an endpoint or update an existing endpoint. Amazon Pinpoint automatically sets this value to INACTIVE if you update another endpoint that has the same address specified by the Address property.

  • optOut :: Maybe Text

    Specifies whether the user who's associated with the endpoint has opted out of receiving messages and push notifications from you. Possible values are: ALL, the user has opted out and doesn't want to receive any messages or push notifications; and, NONE, the user hasn't opted out and wants to receive all messages and push notifications.

  • channelType :: Maybe ChannelType

    The channel that's used when sending messages or push notifications to the endpoint.

Instances

Instances details
Eq PublicEndpoint Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.PublicEndpoint

Read PublicEndpoint Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.PublicEndpoint

Show PublicEndpoint Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.PublicEndpoint

Generic PublicEndpoint Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.PublicEndpoint

Associated Types

type Rep PublicEndpoint :: Type -> Type #

NFData PublicEndpoint Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.PublicEndpoint

Methods

rnf :: PublicEndpoint -> () #

Hashable PublicEndpoint Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.PublicEndpoint

ToJSON PublicEndpoint Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.PublicEndpoint

type Rep PublicEndpoint Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.PublicEndpoint

type Rep PublicEndpoint = D1 ('MetaData "PublicEndpoint" "Amazonka.Pinpoint.Types.PublicEndpoint" "libZSservicesZSamazonka-pinpointZSamazonka-pinpoint" 'False) (C1 ('MetaCons "PublicEndpoint'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "requestId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "metrics") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Double)))) :*: (S1 ('MetaSel ('Just "location") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe EndpointLocation)) :*: (S1 ('MetaSel ('Just "demographic") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe EndpointDemographic)) :*: S1 ('MetaSel ('Just "address") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))) :*: ((S1 ('MetaSel ('Just "effectiveDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "user") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe EndpointUser)) :*: S1 ('MetaSel ('Just "attributes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text [Text]))))) :*: (S1 ('MetaSel ('Just "endpointStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "optOut") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "channelType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ChannelType)))))))

newPublicEndpoint :: PublicEndpoint Source #

Create a value of PublicEndpoint 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:PublicEndpoint', publicEndpoint_requestId - A unique identifier that's generated each time the endpoint is updated.

$sel:metrics:PublicEndpoint', publicEndpoint_metrics - One or more custom metrics that your app reports to Amazon Pinpoint for the endpoint.

$sel:location:PublicEndpoint', publicEndpoint_location - The geographic information for the endpoint.

$sel:demographic:PublicEndpoint', publicEndpoint_demographic - The demographic information for the endpoint, such as the time zone and platform.

$sel:address:PublicEndpoint', publicEndpoint_address - The unique identifier for the recipient, such as a device token, email address, or mobile phone number.

$sel:effectiveDate:PublicEndpoint', publicEndpoint_effectiveDate - The date and time, in ISO 8601 format, when the endpoint was last updated.

$sel:user:PublicEndpoint', publicEndpoint_user - One or more custom user attributes that your app reports to Amazon Pinpoint for the user who's associated with the endpoint.

$sel:attributes:PublicEndpoint', publicEndpoint_attributes - One or more custom attributes that describe the endpoint by associating a name with an array of values. You can use these attributes as filter criteria when you create segments.

$sel:endpointStatus:PublicEndpoint', publicEndpoint_endpointStatus - Specifies whether to send messages or push notifications to the endpoint. Valid values are: ACTIVE, messages are sent to the endpoint; and, INACTIVE, messages aren’t sent to the endpoint.

Amazon Pinpoint automatically sets this value to ACTIVE when you create an endpoint or update an existing endpoint. Amazon Pinpoint automatically sets this value to INACTIVE if you update another endpoint that has the same address specified by the Address property.

$sel:optOut:PublicEndpoint', publicEndpoint_optOut - Specifies whether the user who's associated with the endpoint has opted out of receiving messages and push notifications from you. Possible values are: ALL, the user has opted out and doesn't want to receive any messages or push notifications; and, NONE, the user hasn't opted out and wants to receive all messages and push notifications.

$sel:channelType:PublicEndpoint', publicEndpoint_channelType - The channel that's used when sending messages or push notifications to the endpoint.

publicEndpoint_requestId :: Lens' PublicEndpoint (Maybe Text) Source #

A unique identifier that's generated each time the endpoint is updated.

publicEndpoint_metrics :: Lens' PublicEndpoint (Maybe (HashMap Text Double)) Source #

One or more custom metrics that your app reports to Amazon Pinpoint for the endpoint.

publicEndpoint_location :: Lens' PublicEndpoint (Maybe EndpointLocation) Source #

The geographic information for the endpoint.

publicEndpoint_demographic :: Lens' PublicEndpoint (Maybe EndpointDemographic) Source #

The demographic information for the endpoint, such as the time zone and platform.

publicEndpoint_address :: Lens' PublicEndpoint (Maybe Text) Source #

The unique identifier for the recipient, such as a device token, email address, or mobile phone number.

publicEndpoint_effectiveDate :: Lens' PublicEndpoint (Maybe Text) Source #

The date and time, in ISO 8601 format, when the endpoint was last updated.

publicEndpoint_user :: Lens' PublicEndpoint (Maybe EndpointUser) Source #

One or more custom user attributes that your app reports to Amazon Pinpoint for the user who's associated with the endpoint.

publicEndpoint_attributes :: Lens' PublicEndpoint (Maybe (HashMap Text [Text])) Source #

One or more custom attributes that describe the endpoint by associating a name with an array of values. You can use these attributes as filter criteria when you create segments.

publicEndpoint_endpointStatus :: Lens' PublicEndpoint (Maybe Text) Source #

Specifies whether to send messages or push notifications to the endpoint. Valid values are: ACTIVE, messages are sent to the endpoint; and, INACTIVE, messages aren’t sent to the endpoint.

Amazon Pinpoint automatically sets this value to ACTIVE when you create an endpoint or update an existing endpoint. Amazon Pinpoint automatically sets this value to INACTIVE if you update another endpoint that has the same address specified by the Address property.

publicEndpoint_optOut :: Lens' PublicEndpoint (Maybe Text) Source #

Specifies whether the user who's associated with the endpoint has opted out of receiving messages and push notifications from you. Possible values are: ALL, the user has opted out and doesn't want to receive any messages or push notifications; and, NONE, the user hasn't opted out and wants to receive all messages and push notifications.

publicEndpoint_channelType :: Lens' PublicEndpoint (Maybe ChannelType) Source #

The channel that's used when sending messages or push notifications to the endpoint.