#[non_exhaustive]pub struct CreatePlatformEndpointInput {
pub platform_application_arn: Option<String>,
pub token: Option<String>,
pub custom_user_data: Option<String>,
pub attributes: Option<HashMap<String, String>>,
}Expand description
Input for CreatePlatformEndpoint 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.platform_application_arn: Option<String>PlatformApplicationArn returned from CreatePlatformApplication is used to create a an endpoint.
token: Option<String>Unique identifier created by the notification service for an app on a device. The specific name for Token will vary, depending on which notification service is being used. For example, when using APNS as the notification service, you need the device token. Alternatively, when using GCM (Firebase Cloud Messaging) or ADM, the device token equivalent is called the registration ID.
custom_user_data: Option<String>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.
attributes: Option<HashMap<String, String>>For a list of attributes, see SetEndpointAttributes.
Implementations§
source§impl CreatePlatformEndpointInput
impl CreatePlatformEndpointInput
sourcepub fn platform_application_arn(&self) -> Option<&str>
pub fn platform_application_arn(&self) -> Option<&str>
PlatformApplicationArn returned from CreatePlatformApplication is used to create a an endpoint.
sourcepub fn token(&self) -> Option<&str>
pub fn token(&self) -> Option<&str>
Unique identifier created by the notification service for an app on a device. The specific name for Token will vary, depending on which notification service is being used. For example, when using APNS as the notification service, you need the device token. Alternatively, when using GCM (Firebase Cloud Messaging) or ADM, the device token equivalent is called the registration ID.
sourcepub fn custom_user_data(&self) -> Option<&str>
pub fn custom_user_data(&self) -> Option<&str>
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.
sourcepub fn attributes(&self) -> Option<&HashMap<String, String>>
pub fn attributes(&self) -> Option<&HashMap<String, String>>
For a list of attributes, see SetEndpointAttributes.
source§impl CreatePlatformEndpointInput
impl CreatePlatformEndpointInput
sourcepub fn builder() -> CreatePlatformEndpointInputBuilder
pub fn builder() -> CreatePlatformEndpointInputBuilder
Creates a new builder-style object to manufacture CreatePlatformEndpointInput.
Trait Implementations§
source§impl Clone for CreatePlatformEndpointInput
impl Clone for CreatePlatformEndpointInput
source§fn clone(&self) -> CreatePlatformEndpointInput
fn clone(&self) -> CreatePlatformEndpointInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CreatePlatformEndpointInput
impl Debug for CreatePlatformEndpointInput
source§impl PartialEq for CreatePlatformEndpointInput
impl PartialEq for CreatePlatformEndpointInput
source§fn eq(&self, other: &CreatePlatformEndpointInput) -> bool
fn eq(&self, other: &CreatePlatformEndpointInput) -> bool
self and other values to be equal, and is used
by ==.