#[non_exhaustive]pub struct SetEndpointAttributesInput {
pub endpoint_arn: Option<String>,
pub attributes: Option<HashMap<String, String>>,
}
Expand description
Input for SetEndpointAttributes action.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.endpoint_arn: Option<String>
EndpointArn used for SetEndpointAttributes action.
attributes: Option<HashMap<String, String>>
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.
Implementations§
source§impl SetEndpointAttributesInput
impl SetEndpointAttributesInput
sourcepub fn endpoint_arn(&self) -> Option<&str>
pub fn endpoint_arn(&self) -> Option<&str>
EndpointArn used for SetEndpointAttributes action.
sourcepub fn attributes(&self) -> Option<&HashMap<String, String>>
pub fn attributes(&self) -> Option<&HashMap<String, String>>
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.
source§impl SetEndpointAttributesInput
impl SetEndpointAttributesInput
sourcepub fn builder() -> SetEndpointAttributesInputBuilder
pub fn builder() -> SetEndpointAttributesInputBuilder
Creates a new builder-style object to manufacture SetEndpointAttributesInput
.
Trait Implementations§
source§impl Clone for SetEndpointAttributesInput
impl Clone for SetEndpointAttributesInput
source§fn clone(&self) -> SetEndpointAttributesInput
fn clone(&self) -> SetEndpointAttributesInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SetEndpointAttributesInput
impl Debug for SetEndpointAttributesInput
source§impl PartialEq for SetEndpointAttributesInput
impl PartialEq for SetEndpointAttributesInput
source§fn eq(&self, other: &SetEndpointAttributesInput) -> bool
fn eq(&self, other: &SetEndpointAttributesInput) -> bool
self
and other
values to be equal, and is used
by ==
.