Struct aws_sdk_sns::input::CreatePlatformEndpointInput
source · [−]#[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
sourceimpl CreatePlatformEndpointInput
impl CreatePlatformEndpointInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreatePlatformEndpoint, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreatePlatformEndpoint, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<CreatePlatformEndpoint>
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture CreatePlatformEndpointInput
sourceimpl 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.
Trait Implementations
sourceimpl Clone for CreatePlatformEndpointInput
impl Clone for CreatePlatformEndpointInput
sourcefn clone(&self) -> CreatePlatformEndpointInput
fn clone(&self) -> CreatePlatformEndpointInput
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for CreatePlatformEndpointInput
impl Debug for CreatePlatformEndpointInput
sourceimpl PartialEq<CreatePlatformEndpointInput> for CreatePlatformEndpointInput
impl PartialEq<CreatePlatformEndpointInput> for CreatePlatformEndpointInput
sourcefn eq(&self, other: &CreatePlatformEndpointInput) -> bool
fn eq(&self, other: &CreatePlatformEndpointInput) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &CreatePlatformEndpointInput) -> bool
fn ne(&self, other: &CreatePlatformEndpointInput) -> bool
This method tests for !=.
impl StructuralPartialEq for CreatePlatformEndpointInput
Auto Trait Implementations
impl RefUnwindSafe for CreatePlatformEndpointInput
impl Send for CreatePlatformEndpointInput
impl Sync for CreatePlatformEndpointInput
impl Unpin for CreatePlatformEndpointInput
impl UnwindSafe for CreatePlatformEndpointInput
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more