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 |
Synopsis
- data PublicEndpoint = PublicEndpoint' {
- address :: Maybe Text
- attributes :: Maybe (HashMap Text [Text])
- channelType :: Maybe ChannelType
- demographic :: Maybe EndpointDemographic
- effectiveDate :: Maybe Text
- endpointStatus :: Maybe Text
- location :: Maybe EndpointLocation
- metrics :: Maybe (HashMap Text Double)
- optOut :: Maybe Text
- requestId :: Maybe Text
- user :: Maybe EndpointUser
- newPublicEndpoint :: PublicEndpoint
- publicEndpoint_address :: Lens' PublicEndpoint (Maybe Text)
- publicEndpoint_attributes :: Lens' PublicEndpoint (Maybe (HashMap Text [Text]))
- publicEndpoint_channelType :: Lens' PublicEndpoint (Maybe ChannelType)
- publicEndpoint_demographic :: Lens' PublicEndpoint (Maybe EndpointDemographic)
- publicEndpoint_effectiveDate :: Lens' PublicEndpoint (Maybe Text)
- publicEndpoint_endpointStatus :: Lens' PublicEndpoint (Maybe Text)
- publicEndpoint_location :: Lens' PublicEndpoint (Maybe EndpointLocation)
- publicEndpoint_metrics :: Lens' PublicEndpoint (Maybe (HashMap Text Double))
- publicEndpoint_optOut :: Lens' PublicEndpoint (Maybe Text)
- publicEndpoint_requestId :: Lens' PublicEndpoint (Maybe Text)
- publicEndpoint_user :: Lens' PublicEndpoint (Maybe EndpointUser)
Documentation
data PublicEndpoint Source #
Specifies the properties and attributes of an endpoint that's associated with an event.
See: newPublicEndpoint
smart constructor.
PublicEndpoint' | |
|
Instances
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.