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 |
Retrieves the endpoint attributes 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 GetEndpointAttributes = GetEndpointAttributes' {
- endpointArn :: Text
- newGetEndpointAttributes :: Text -> GetEndpointAttributes
- getEndpointAttributes_endpointArn :: Lens' GetEndpointAttributes Text
- data GetEndpointAttributesResponse = GetEndpointAttributesResponse' {
- attributes :: Maybe (HashMap Text Text)
- httpStatus :: Int
- newGetEndpointAttributesResponse :: Int -> GetEndpointAttributesResponse
- getEndpointAttributesResponse_attributes :: Lens' GetEndpointAttributesResponse (Maybe (HashMap Text Text))
- getEndpointAttributesResponse_httpStatus :: Lens' GetEndpointAttributesResponse Int
Creating a Request
data GetEndpointAttributes Source #
Input for GetEndpointAttributes action.
See: newGetEndpointAttributes
smart constructor.
GetEndpointAttributes' | |
|
Instances
newGetEndpointAttributes Source #
Create a value of GetEndpointAttributes
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:GetEndpointAttributes'
, getEndpointAttributes_endpointArn
- EndpointArn for GetEndpointAttributes input.
Request Lenses
getEndpointAttributes_endpointArn :: Lens' GetEndpointAttributes Text Source #
EndpointArn for GetEndpointAttributes input.
Destructuring the Response
data GetEndpointAttributesResponse Source #
Response from GetEndpointAttributes of the EndpointArn.
See: newGetEndpointAttributesResponse
smart constructor.
GetEndpointAttributesResponse' | |
|
Instances
newGetEndpointAttributesResponse Source #
Create a value of GetEndpointAttributesResponse
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:attributes:GetEndpointAttributesResponse'
, getEndpointAttributesResponse_attributes
- Attributes 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.The device token for the iOS platform is returned in lowercase.
$sel:httpStatus:GetEndpointAttributesResponse'
, getEndpointAttributesResponse_httpStatus
- The response's http status code.
Response Lenses
getEndpointAttributesResponse_attributes :: Lens' GetEndpointAttributesResponse (Maybe (HashMap Text Text)) Source #
Attributes 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.The device token for the iOS platform is returned in lowercase.
getEndpointAttributesResponse_httpStatus :: Lens' GetEndpointAttributesResponse Int Source #
The response's http status code.