Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data PublicEndpoint = PublicEndpoint' {
- requestId :: Maybe Text
- metrics :: Maybe (HashMap Text Double)
- location :: Maybe EndpointLocation
- demographic :: Maybe EndpointDemographic
- address :: Maybe Text
- effectiveDate :: Maybe Text
- user :: Maybe EndpointUser
- attributes :: Maybe (HashMap Text [Text])
- endpointStatus :: Maybe Text
- optOut :: Maybe Text
- channelType :: Maybe ChannelType
- newPublicEndpoint :: PublicEndpoint
- publicEndpoint_requestId :: Lens' PublicEndpoint (Maybe Text)
- publicEndpoint_metrics :: Lens' PublicEndpoint (Maybe (HashMap Text Double))
- publicEndpoint_location :: Lens' PublicEndpoint (Maybe EndpointLocation)
- publicEndpoint_demographic :: Lens' PublicEndpoint (Maybe EndpointDemographic)
- publicEndpoint_address :: Lens' PublicEndpoint (Maybe Text)
- publicEndpoint_effectiveDate :: Lens' PublicEndpoint (Maybe Text)
- publicEndpoint_user :: Lens' PublicEndpoint (Maybe EndpointUser)
- publicEndpoint_attributes :: Lens' PublicEndpoint (Maybe (HashMap Text [Text]))
- publicEndpoint_endpointStatus :: Lens' PublicEndpoint (Maybe Text)
- publicEndpoint_optOut :: Lens' PublicEndpoint (Maybe Text)
- publicEndpoint_channelType :: Lens' PublicEndpoint (Maybe ChannelType)
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: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.