amazonka-pinpoint-2.0: Amazon Pinpoint SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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

  • address :: Maybe Text

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

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

  • channelType :: Maybe ChannelType

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

  • demographic :: Maybe EndpointDemographic

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

  • effectiveDate :: Maybe Text

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

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

  • location :: Maybe EndpointLocation

    The geographic information for the endpoint.

  • metrics :: Maybe (HashMap Text Double)

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

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

  • requestId :: Maybe Text

    A unique identifier that's generated each time the endpoint is 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.

Instances

Instances details
ToJSON 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 #

Read PublicEndpoint Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.PublicEndpoint

Show PublicEndpoint Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.PublicEndpoint

NFData PublicEndpoint Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.PublicEndpoint

Methods

rnf :: PublicEndpoint -> () #

Eq PublicEndpoint Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.PublicEndpoint

Hashable 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" "amazonka-pinpoint-2.0-GBFs9S7wa7bFiDe66NqAzt" 'False) (C1 ('MetaCons "PublicEndpoint'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "address") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "attributes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text [Text])))) :*: (S1 ('MetaSel ('Just "channelType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ChannelType)) :*: (S1 ('MetaSel ('Just "demographic") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe EndpointDemographic)) :*: S1 ('MetaSel ('Just "effectiveDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))) :*: ((S1 ('MetaSel ('Just "endpointStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "location") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe EndpointLocation)) :*: S1 ('MetaSel ('Just "metrics") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Double))))) :*: (S1 ('MetaSel ('Just "optOut") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "requestId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "user") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe EndpointUser)))))))

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:address:PublicEndpoint', publicEndpoint_address - The unique identifier for the recipient, such as a device token, email address, or mobile phone number.

$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:channelType:PublicEndpoint', publicEndpoint_channelType - The channel that's used when sending messages or push notifications to the endpoint.

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

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

$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:location:PublicEndpoint', publicEndpoint_location - The geographic information for the endpoint.

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

$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:requestId:PublicEndpoint', publicEndpoint_requestId - A unique identifier that's generated each time the endpoint is 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.

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_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_channelType :: Lens' PublicEndpoint (Maybe ChannelType) Source #

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

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

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

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

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

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_location :: Lens' PublicEndpoint (Maybe EndpointLocation) Source #

The geographic information for the endpoint.

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_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_requestId :: Lens' PublicEndpoint (Maybe Text) Source #

A unique identifier that's generated each time the endpoint is 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.