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 |
Sets the attributes for an endpoint for a device on one of the supported push notification services, such as GCM (Firebase Cloud Messaging) and APNS. For more information, see Using Amazon SNS Mobile Push Notifications.
Synopsis
- data SetEndpointAttributes = SetEndpointAttributes' {
- endpointArn :: Text
- attributes :: HashMap Text Text
- newSetEndpointAttributes :: Text -> SetEndpointAttributes
- setEndpointAttributes_endpointArn :: Lens' SetEndpointAttributes Text
- setEndpointAttributes_attributes :: Lens' SetEndpointAttributes (HashMap Text Text)
- data SetEndpointAttributesResponse = SetEndpointAttributesResponse' {
- newSetEndpointAttributesResponse :: SetEndpointAttributesResponse
Creating a Request
data SetEndpointAttributes Source #
Input for SetEndpointAttributes action.
See: newSetEndpointAttributes
smart constructor.
SetEndpointAttributes' | |
|
Instances
newSetEndpointAttributes Source #
Create a value of SetEndpointAttributes
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:endpointArn:SetEndpointAttributes'
, setEndpointAttributes_endpointArn
- EndpointArn used for SetEndpointAttributes action.
$sel:attributes:SetEndpointAttributes'
, setEndpointAttributes_attributes
- A map of the endpoint attributes. Attributes in this map include the
following:
CustomUserData
– arbitrary user data to associate with the endpoint. Amazon SNS does not use this data. The data must be in UTF-8 format and less than 2KB.Enabled
– flag that enables/disables delivery to the endpoint. Amazon SNS will set this to false when a notification service indicates to Amazon SNS that the endpoint is invalid. Users can set it back to true, typically after updating Token.Token
– device token, also referred to as a registration id, for an app and mobile device. This is returned from the notification service when an app and mobile device are registered with the notification service.
Request Lenses
setEndpointAttributes_endpointArn :: Lens' SetEndpointAttributes Text Source #
EndpointArn used for SetEndpointAttributes action.
setEndpointAttributes_attributes :: Lens' SetEndpointAttributes (HashMap Text Text) Source #
A map of the endpoint attributes. Attributes in this map include the following:
CustomUserData
– arbitrary user data to associate with the endpoint. Amazon SNS does not use this data. The data must be in UTF-8 format and less than 2KB.Enabled
– flag that enables/disables delivery to the endpoint. Amazon SNS will set this to false when a notification service indicates to Amazon SNS that the endpoint is invalid. Users can set it back to true, typically after updating Token.Token
– device token, also referred to as a registration id, for an app and mobile device. This is returned from the notification service when an app and mobile device are registered with the notification service.
Destructuring the Response
data SetEndpointAttributesResponse Source #
See: newSetEndpointAttributesResponse
smart constructor.
Instances
newSetEndpointAttributesResponse :: SetEndpointAttributesResponse Source #
Create a value of SetEndpointAttributesResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.